@webitel/ui-sdk 26.6.108 → 26.6.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{components--jBlnDLD.js → components-D-OqQDfD.js} +3 -3
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +2 -2
- package/dist/ui-sdk.umd.cjs +2 -2
- package/dist/{wt-chat-emoji-RGvDu3oK.js → wt-chat-emoji-1hWR2L8o.js} +1 -1
- package/dist/{wt-display-chip-items-DOkxyvI3.js → wt-display-chip-items-CMaITt-I.js} +1 -1
- package/dist/{wt-send-message-popup-iyn0Eh2e.js → wt-send-message-popup-BtaPaXfM.js} +1 -1
- package/dist/{wt-timepicker-CHNPor19.js → wt-timepicker-Dj0y9-U_.js} +8 -3
- package/dist/{wt-type-extension-value-input-Q2qwunaW.js → wt-type-extension-value-input-D7dRKJ6S.js} +1 -1
- package/dist/{wt-vidstack-player-CnVeTmnM.js → wt-vidstack-player-C59T6heF.js} +1 -1
- package/package.json +1 -1
- package/src/components/wt-timepicker/wt-timepicker.vue +5 -2
- package/src/plugins/primevue/theme/components/tooltip/tooltip.js +1 -1
- package/types/.tsbuildinfo +1 -1
package/dist/ui-sdk.umd.cjs
CHANGED
|
@@ -1381,7 +1381,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
1381
1381
|
`).map(e=>e.trim()).join(`
|
|
1382
1382
|
`).trim(),{type:e.type}).then(({cues:e,regions:t})=>{this.#a=e,this.#i=t,this.#u()})})}async#l(){if(!(!this.#e||this[NF.readyState]>0)){if(this[NF.readyState]=1,this.dispatchEvent(new FM(`load-start`)),!this.src){this.#u();return}try{let{parseResponse:e,VTTCue:t,VTTRegion:n}=await Promise.resolve().then(()=>(jF(),AF)),r=this[NF.crossOrigin]?.(),i=fetch(this.src,{headers:this.type===`json`?{"Content-Type":`application/json`}:void 0,credentials:QN(r)});if(this.type===`json`)this.#f(await(await i).text(),t,n);else{let{errors:t,metadata:n,regions:r,cues:a}=await e(i,{type:this.type,encoding:this.encoding});if(t[0]?.code===0)throw t[0];this.#r=n,this.#i=r,this.#a=a}this.#u()}catch(e){this.#d(e)}}}#u(){if(this[NF.readyState]=2,!this.src||this.type!==`vtt`){let e=this[NF.native];if(e&&!e.managed)for(let t of this.#a)e.track.addCue(t)}let e=new FM(`load`);this[NF.updateActiveCues](this.#t,e),this.dispatchEvent(e)}#d(e){this[NF.readyState]=3,this.dispatchEvent(new FM(`error`,{detail:e}))}#f(e,t,n){try{let{regions:r,cues:i}=zbe(e,t,n);this.#i=r,this.#a=i}catch(e){this.#d(e)}}#p(e){this.dispatchEvent(new FM(`cue-change`,{trigger:e}))}},FF=/captions|subtitles/}));function LF(){return nM(RF)}var RF,zF=F((()=>{hN(),RF=eM()}));function BF(e,t=2){return Number(e.toFixed(t))}function VF(e){return String(e).split(`.`)[1]?.length??0}function HF(e,t,n){return Math.max(e,Math.min(n,t))}var UF=F((()=>{}));function WF(e,t){let n=t.composedPath()[0];return Uye(n)&&e.contains(n)}function Bbe(e){return aI.add(e),()=>aI.delete(e)}function GF(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}function KF(e,t){if(e.hasAttribute(`aria-label`)||e.hasAttribute(`data-no-label`))return;if(!Gj(t)){Qj(e,`aria-label`,t);return}function n(){Qj(e,`aria-label`,t())}Y(n)}function qF(e){let t=getComputedStyle(e);return t.display!==`none`&&parseInt(t.opacity)>0}function Vbe(e){return!!e&&(`checkVisibility`in e?e.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}):qF(e))}function JF(e,t){return Bbe(()=>t(Vbe(e)))}function YF(e,t,n){for(;t;)if(t===e)return!0;else if(n?.(t))break;else t=t.parentElement;return!1}function XF(e,t){return new RM(e).add(`pointerup`,e=>{e.button===0&&!e.defaultPrevented&&t(e)}).add(`keydown`,e=>{Zj(e)&&t(e)})}function ZF(e){return Yj(e)&&(e.touches.length>1||e.changedTouches.length>1)}function QF(e){let t=vj(),n=window.requestAnimationFrame(()=>{yj(e,t),n=-1});return()=>void window.cancelAnimationFrame(n)}function $F(e,t,n){let r,i=e,a=e.parentElement,o=e.content.firstElementChild,s=[];!o&&e.firstElementChild&&(e.innerHTML=e.firstElementChild.outerHTML,e.firstElementChild.remove(),o=e.content.firstElementChild);for(let e=0;e<t;e++)r=document.importNode(o,!0),n?.(r,e),a.insertBefore(r,i.nextSibling),s.push(r),i=r;return xj(()=>{for(let e=0;e<s.length;e++)s[e].remove()}),s}function eI(e){let t=document.createElement(`template`);return t.innerHTML=e,t.content}function tI(e){return e.cloneNode(!0).firstElementChild}function nI(e,t,n,{offsetVarName:r,xOffset:i,yOffset:a,...o}){if(!e)return;let s=n.replace(` `,`-`).replace(`-center`,``);if($j(e,`visibility`,t?null:`hidden`),!t)return;let c=n.includes(`top`),l=e=>n.includes(`left`)?`calc(-1 * ${e})`:e,u=e=>c?`calc(-1 * ${e})`:e;return LO(t,e,()=>{KO(t,e,{placement:s,middleware:[...o.middleware??[],GO({fallbackAxisSideDirection:`start`,crossAxis:!1}),WO()],...o}).then(({x:t,y:o,middlewareData:s})=>{let d=!!s.flip?.index;c=n.includes(d?`bottom`:`top`),e.setAttribute(`data-placement`,d?n.startsWith(`top`)?n.replace(`top`,`bottom`):n.replace(`bottom`,`top`):n),Object.assign(e.style,{top:`calc(${o+`px`} + ${u(a?a+`px`:`var(--${r}-y-offset, 0px)`)})`,left:`calc(${t+`px`} + ${l(i?i+`px`:`var(--${r}-x-offset, 0px)`)})`})})})}function Hbe(e){return getComputedStyle(e).animationName!==`none`}function rI(e){return e instanceof HTMLElement}function Ube(e){return e?`true`:`false`}function iI(e){return()=>Ube(e())}function Wbe(){return typeof window>`u`?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}var aI,oI=F((()=>{hN(),qO(),aI=new Set;{function e(){for(let e of aI)try{e()}catch{}window.requestAnimationFrame(e)}e()}})),sI,cI=F((()=>{sI={setAuto:Symbol(0),enableAuto:Symbol(0)}}));function lI(e){return e instanceof Error?e:Error(typeof e==`string`?e:JSON.stringify(e))}function uI(e,t){if(!e)throw Error(t||`Assertion failed.`)}var dI=F((()=>{}));function fI(e,t){Qj(e,`data-focus`,t),Qj(e,`data-hocus`,t)}function pI(e,t){Qj(e,`data-hocus`,t),Qj(e,`data-hover`,t)}var mI,hI,gI=F((()=>{hN(),mI=Ij(!1),qj(document,`pointerdown`,()=>{mI.set(!1)}),qj(document,`keydown`,e=>{e.metaKey||e.altKey||e.ctrlKey||mI.set(!0)}),hI=class extends GM{#e=Ij(!1);onConnect(e){Y(()=>{let t=new RM(e);if(!mI()){this.#e.set(!1),fI(e,!1),t.add(`pointerenter`,this.#r.bind(this)).add(`pointerleave`,this.#i.bind(this));return}let n=document.activeElement===e;this.#e.set(n),fI(e,n),t.add(`focus`,this.#t.bind(this)).add(`blur`,this.#n.bind(this))})}focused(){return this.#e()}#t(){this.#e.set(!0),fI(this.el,!0)}#n(){this.#e.set(!1),fI(this.el,!1)}#r(){pI(this.el,!0)}#i(){pI(this.el,!1)}}})),_I,vI,yI,bI,xI,SI,CI,Gbe=F((()=>{_I={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},vI=[`webkitFullscreenEnabled`,`webkitFullscreenElement`,`webkitRequestFullscreen`,`webkitExitFullscreen`,`webkitfullscreenchange`,`webkitfullscreenerror`,`-webkit-full-screen`],yI=[`mozFullScreenEnabled`,`mozFullScreenElement`,`mozRequestFullScreen`,`mozCancelFullScreen`,`mozfullscreenchange`,`mozfullscreenerror`,`-moz-full-screen`],bI=[`msFullscreenEnabled`,`msFullscreenElement`,`msRequestFullscreen`,`msExitFullscreen`,`MSFullscreenChange`,`MSFullscreenError`,`-ms-fullscreen`],xI=typeof window<`u`&&window.document!==void 0?window.document:{},SI=`fullscreenEnabled`in xI&&Object.keys(_I)||vI[0]in xI&&vI||yI[0]in xI&&yI||bI[0]in xI&&bI||[],CI={requestFullscreen:function(e){return e[SI[_I.requestFullscreen]]()},requestFullscreenFunction:function(e){return e[SI[_I.requestFullscreen]]},get exitFullscreen(){return xI[SI[_I.exitFullscreen]].bind(xI)},get fullscreenPseudoClass(){return`:`+SI[_I.fullscreen]},addEventListener:function(e,t,n){return xI.addEventListener(SI[_I[e]],t,n)},removeEventListener:function(e,t,n){return xI.removeEventListener(SI[_I[e]],t,n)},get fullscreenEnabled(){return!!xI[SI[_I.fullscreenEnabled]]},set fullscreenEnabled(e){},get fullscreenElement(){return xI[SI[_I.fullscreenElement]]},set fullscreenElement(e){},get onfullscreenchange(){return xI[(`on`+SI[_I.fullscreenchange]).toLowerCase()]},set onfullscreenchange(e){return xI[(`on`+SI[_I.fullscreenchange]).toLowerCase()]=e},get onfullscreenerror(){return xI[(`on`+SI[_I.fullscreenerror]).toLowerCase()]},set onfullscreenerror(e){return xI[(`on`+SI[_I.fullscreenerror]).toLowerCase()]=e}}}));function wI(){return DI??=new AudioContext}function Kbe(){let e=wI(),t=e.createGain();return t.connect(e.destination),OI.push(t),t}function qbe(e,t){let n=wI().createMediaElementSource(e);return t&&n.connect(t),kI.push(n),n}function Jbe(e){let t=OI.indexOf(e);t!==-1&&(OI.splice(t,1),e.disconnect(),TI())}function Ybe(e){let t=kI.indexOf(e);t!==-1&&(kI.splice(t,1),e.disconnect(),TI())}function TI(){DI&&OI.length===0&&kI.length===0&&DI.close().then(()=>{DI=null})}function EI(e){return e?.type===`blur`||document.visibilityState===`hidden`?`hidden`:document.hasFocus()?`active`:`passive`}var DI,OI,kI,AI,jI,MI,NI,PI,FI,II=F((()=>{hN(),vN(),GN(),UF(),DI=null,OI=[],kI=[],AI=class{#e;#t;#n=null;#r=null;get currentGain(){return this.#n?.gain?.value??null}get supported(){return!0}constructor(e,t){this.#e=e,this.#t=t}setGain(e){let t=this.currentGain;if(e!==this.currentGain){if(e===1&&t!==1){this.removeGain();return}this.#n||(this.#n=Kbe(),this.#r&&this.#r.connect(this.#n)),this.#r||=qbe(this.#e,this.#n),this.#n.gain.value=e,this.#t(e)}}removeGain(){this.#n&&(this.#r&&this.#r.connect(wI().destination),this.#a(),this.#t(null))}destroy(){this.#i(),this.#a()}#i(){if(this.#r)try{Ybe(this.#r)}catch{}finally{this.#r=null}}#a(){if(this.#n)try{Jbe(this.#n)}catch{}finally{this.#n=null}}},jI=[`focus`,`blur`,`visibilitychange`,`pageshow`,`pagehide`],MI=class{#e=Ij(EI());#t=Ij(document.visibilityState);#n;connect(){let e=new RM(window),t=this.#r.bind(this);for(let n of jI)e.add(n,t);IN&&e.add(`beforeunload`,e=>{this.#n=setTimeout(()=>{e.defaultPrevented||e.returnValue.length>0||(this.#e.set(`hidden`),this.#t.set(`hidden`))},0)})}get pageState(){return this.#e()}get visibility(){return this.#t()}#r(e){IN&&window.clearTimeout(this.#n),(e.type!==`blur`||this.#e()===`active`)&&(this.#e.set(EI(e)),this.#t.set(document.visibilityState==`hidden`?`hidden`:`visible`))}},NI=class{#e;#t;#n=!1;#r=!1;#i=!1;#a=new _N(this.#f.bind(this));#o=new MI;#s;get#c(){return this.#e.media}constructor(e,t){this.#e=e,this.#t=t,this.#s=new RM(e.media),this.#p(),this.#o.connect(),Y(this.#N.bind(this)),xj(this.#l.bind(this))}#l(){this.#r=!1,this.#i=!1,this.#a.stop(),this.#s.abort(),this.#g?.clear()}#u=0;#d=-1;#f(){let e=this.#c.currentTime;!(IN&&e-this.#d<.35)&&this.#u!==e&&(this.#v(e),this.#u=e)}#p(){this.#_(`loadstart`,this.#y),this.#_(`abort`,this.#b),this.#_(`emptied`,this.#x),this.#_(`error`,this.#H),this.#_(`volumechange`,this.#I)}#m(){this.#r||=(this.#_(`loadeddata`,this.#S),this.#_(`loadedmetadata`,this.#C),this.#_(`canplay`,this.#D),this.#_(`canplaythrough`,this.#O),this.#_(`durationchange`,this.#F),this.#_(`play`,this.#T),this.#_(`progress`,this.#z),this.#_(`stalled`,this.#A),this.#_(`suspend`,this.#B),this.#_(`ratechange`,this.#V),!0)}#h(){this.#i||=(this.#_(`pause`,this.#E),this.#_(`playing`,this.#k),this.#_(`seeked`,this.#L),this.#_(`seeking`,this.#R),this.#_(`ended`,this.#M),this.#_(`waiting`,this.#j),!0)}#g=void 0;#_(e,t){this.#s.add(e,t.bind(this))}#v(e,t){let n=Math.min(e,this.#t.$state.seekableEnd());this.#t.notify(`time-change`,n,t)}#y(e){if(this.#c.networkState===3){this.#b(e);return}this.#m(),this.#t.notify(`load-start`,void 0,e)}#b(e){this.#t.notify(`abort`,void 0,e)}#x(e){this.#t.notify(`emptied`,void 0,e)}#S(e){this.#t.notify(`loaded-data`,void 0,e)}#C(e){this.#u=0,this.#d=-1,this.#h(),this.#t.notify(`loaded-metadata`,void 0,e),(NN||IN&&kN(this.#t.$state.source()))&&this.#t.delegate.ready(this.#w(),e)}#w(){return{provider:J(this.#t.$provider),duration:this.#c.duration,buffered:this.#c.buffered,seekable:this.#c.seekable}}#T(e){this.#t.$state.canPlay()&&this.#t.notify(`play`,void 0,e)}#E(e){this.#c.readyState===1&&!this.#n||(this.#n=!1,this.#a.stop(),this.#t.notify(`pause`,void 0,e))}#D(e){this.#t.delegate.ready(this.#w(),e)}#O(e){this.#t.$state.started()||this.#t.notify(`can-play-through`,this.#w(),e)}#k(e){this.#c.paused||(this.#n=!1,this.#t.notify(`playing`,void 0,e),this.#a.start())}#A(e){this.#t.notify(`stalled`,void 0,e),this.#c.readyState<3&&(this.#n=!0,this.#t.notify(`waiting`,void 0,e))}#j(e){this.#c.readyState<3&&(this.#n=!0,this.#t.notify(`waiting`,void 0,e))}#M(e){this.#a.stop(),this.#v(this.#c.duration,e),this.#t.notify(`end`,void 0,e),this.#t.$state.loop()&&Rye(this.#c.controls)&&(this.#c.controls=!1)}#N(){let e=this.#t.$state.paused(),t=this.#o.visibility===`hidden`;(e||t)&&qj(this.#c,`timeupdate`,this.#P.bind(this))}#P(e){this.#v(this.#c.currentTime,e)}#F(e){this.#t.$state.ended()&&this.#v(this.#c.duration,e),this.#t.notify(`duration-change`,this.#c.duration,e)}#I(e){let t={volume:this.#c.volume,muted:this.#c.muted};this.#t.notify(`volume-change`,t,e)}#L(e){this.#d=this.#c.currentTime,this.#v(this.#c.currentTime,e),this.#t.notify(`seeked`,this.#c.currentTime,e),Math.trunc(this.#c.currentTime)===Math.trunc(this.#c.duration)&&VF(this.#c.duration)>VF(this.#c.currentTime)&&(this.#v(this.#c.duration,e),this.#c.ended||this.#t.player.dispatch(new FM(`media-play-request`,{trigger:e})))}#R(e){this.#t.notify(`seeking`,this.#c.currentTime,e)}#z(e){let t={buffered:this.#c.buffered,seekable:this.#c.seekable};this.#t.notify(`progress`,t,e)}#B(e){this.#t.notify(`suspend`,void 0,e)}#V(e){this.#t.notify(`rate-change`,this.#c.playbackRate,e)}#H(e){let t=this.#c.error;if(!t)return;let n={message:t.message,code:t.code,mediaError:t};this.#t.notify(`error`,n,e)}},PI=class{#e;#t;get#n(){return this.#e.media.audioTracks}constructor(e,t){this.#e=e,this.#t=t,this.#n.onaddtrack=this.#r.bind(this),this.#n.onremovetrack=this.#i.bind(this),this.#n.onchange=this.#a.bind(this),qj(this.#t.audioTracks,`change`,this.#s.bind(this))}#r(e){let t=e.track;if(t.label===``)return;let n={id:t.id.toString()||`native-audio-${this.#t.audioTracks.length}`,label:t.label,language:t.language,kind:t.kind,selected:!1};this.#t.audioTracks[gN.add](n,e),t.enabled&&(n.selected=!0)}#i(e){let t=this.#t.audioTracks.getById(e.track.id);t&&this.#t.audioTracks[gN.remove](t,e)}#a(e){let t=this.#o();if(!t)return;let n=this.#t.audioTracks.getById(t.id);n&&this.#t.audioTracks[gN.select](n,!0,e)}#o(){return Array.from(this.#n).find(e=>e.enabled)}#s(e){let{current:t}=e.detail;if(!t)return;let n=this.#n.getTrackById(t.id);if(n){let e=this.#o();e&&(e.enabled=!1),n.enabled=!0}}},FI=class{media;ctx;scope=Oj();currentSrc=null;audioGain;constructor(e,t){this.media=e,this.ctx=t,this.audioGain=new AI(e,e=>{this.ctx.notify(`audio-gain-change`,e)})}setup(){new NI(this,this.ctx),`audioTracks`in this.media&&new PI(this,this.ctx),xj(()=>{this.audioGain.destroy(),this.media.srcObject=null,this.media.removeAttribute(`src`);for(let e of this.media.querySelectorAll(`source`))e.remove();this.media.load()})}get type(){return``}setPlaybackRate(e){this.media.playbackRate=e}async play(){return this.media.play()}async pause(){return this.media.pause()}setMuted(e){this.media.muted=e}setVolume(e){this.media.volume=e}setCurrentTime(e){this.media.currentTime=e}setPlaysInline(e){Qj(this.media,`playsinline`,e)}async loadSource({src:e,type:t},n){this.media.preload=n||``,cbe(e)?(this.removeSource(),this.media.srcObject=e):(this.media.srcObject=null,Uj(e)?t===`?`?(this.removeSource(),this.media.src=this.#e(e)):this.appendSource({src:e,type:t}):(this.removeSource(),this.media.src=window.URL.createObjectURL(e))),this.media.load(),this.currentSrc={src:e,type:t}}appendSource(e,t){let n=this.media.querySelector(`source[data-vds]`),r=n??document.createElement(`source`);Qj(r,`src`,this.#e(e.src)),Qj(r,`type`,e.type===`?`?t:e.type),Qj(r,`data-vds`,``),n||this.media.append(r)}removeSource(){this.media.querySelector(`source[data-vds]`)?.remove()}#e(e){let{clipStartTime:t,clipEndTime:n}=this.ctx.$state,r=t(),i=n();return r>0&&i>0?`${e}#t=${r},${i}`:r>0?`${e}#t=${r}`:i>0?`${e}#t=0,${i}`:e}}})),LI,RI,zI=F((()=>{hN(),LI=class{#e;#t;#n;#r=Ij(!1);get supported(){return this.#r()}constructor(e,t){this.#e=e,this.#t=t,this.#i()}#i(){!this.#e?.remote||!this.canPrompt||(this.#e.remote.watchAvailability(e=>{this.#r.set(e)}).catch(()=>{this.#r.set(!1)}),Y(this.#a.bind(this)))}#a(){if(!this.#r())return;let e=[`connecting`,`connect`,`disconnect`],t=this.#o.bind(this);t(),qj(this.#e,`playing`,t);let n=new RM(this.#e.remote);for(let r of e)n.add(r,t)}async prompt(){if(!this.supported)throw Error(`Not supported on this platform.`);return this.type===`airplay`&&this.#e.webkitShowPlaybackTargetPicker?this.#e.webkitShowPlaybackTargetPicker():this.#e.remote.prompt()}#o(e){let t=this.#e.remote.state;if(t===this.#n)return;let n={type:this.type,state:t};this.#t.notify(`remote-playback-change`,n,e),this.#n=t}},RI=class extends LI{type=`airplay`;get canPrompt(){return`WebKitPlaybackTargetAvailabilityEvent`in window}}})),Xbe=L({AudioProvider:()=>BI}),BI,Zbe=F((()=>{hN(),II(),zI(),BI=class extends FI{$$PROVIDER_TYPE=`AUDIO`;get type(){return`audio`}airPlay;constructor(e,t){super(e,t),yj(()=>{this.airPlay=new RI(this.media,t)},this.scope)}setup(){super.setup(),this.type===`audio`&&this.ctx.notify(`provider-setup`,this)}get audio(){return this.media}}}));function Qbe(e,t){return Array.from(e.children).find(e=>e.track===t)}var VI,HI,UI,WI,GI,KI,qI=F((()=>{hN(),GN(),IF(),II(),zI(),VI=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t,e.textTracks.onaddtrack=this.#n.bind(this),xj(this.#r.bind(this))}#n(e){let t=e.track;if(!t||Qbe(this.#e,t))return;let n=new PF({id:t.id,kind:t.kind,label:t.label??``,language:t.language,type:`vtt`});n[NF.native]={track:t},n[NF.readyState]=2,n[NF.nativeHLS]=!0;let r=0,i=e=>{if(t.cues)for(let i=r;i<t.cues.length;i++)n.addCue(t.cues[i],e),r++};i(e),t.oncuechange=i,this.#t.textTracks.add(n,e),n.setMode(t.mode,e)}#r(){this.#e.textTracks.onaddtrack=null;for(let e of this.#t.textTracks){let t=e[NF.native]?.track;t?.oncuechange&&(t.oncuechange=null)}}},HI=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t,new RM(e).add(`enterpictureinpicture`,this.#n.bind(this)).add(`leavepictureinpicture`,this.#r.bind(this))}get active(){return document.pictureInPictureElement===this.#e}get supported(){return CN(this.#e)}async enter(){return this.#e.requestPictureInPicture()}exit(){return document.exitPictureInPicture()}#n(e){this.#i(!0,e)}#r(e){this.#i(!1,e)}#i=(e,t)=>{this.#t.notify(`picture-in-picture-change`,e,t)}},UI=class{#e;#t;#n=`inline`;get mode(){return this.#n}constructor(e,t){this.#e=e,this.#t=t,qj(e,`webkitpresentationmodechanged`,this.#r.bind(this))}get supported(){return wN(this.#e)}async setPresentationMode(e){this.#n!==e&&this.#e.webkitSetPresentationMode(e)}#r(e){let t=this.#n;this.#n=this.#e.webkitPresentationMode,this.#t.player?.dispatch(new FM(`video-presentation-change`,{detail:this.#n,trigger:e})),[`fullscreen`,`picture-in-picture`].forEach(n=>{(this.#n===n||t===n)&&this.#t.notify(`${n}-change`,this.#n===n,e)})}},WI=class{#e;get active(){return this.#e.mode===`fullscreen`}get supported(){return this.#e.supported}constructor(e){this.#e=e}async enter(){this.#e.setPresentationMode(`fullscreen`)}async exit(){this.#e.setPresentationMode(`inline`)}},GI=class{#e;get active(){return this.#e.mode===`picture-in-picture`}get supported(){return this.#e.supported}constructor(e){this.#e=e}async enter(){this.#e.setPresentationMode(`picture-in-picture`)}async exit(){this.#e.setPresentationMode(`inline`)}},KI=class extends FI{$$PROVIDER_TYPE=`VIDEO`;get type(){return`video`}airPlay;fullscreen;pictureInPicture;constructor(e,t){super(e,t),yj(()=>{if(this.airPlay=new RI(e,t),wN(e)){let n=new UI(e,t);this.fullscreen=new WI(n),this.pictureInPicture=new GI(n)}else CN(e)&&(this.pictureInPicture=new HI(e,t))},this.scope)}setup(){super.setup(),SN(this.video)&&new VI(this.video,this.ctx),this.ctx.textRenderers.attachVideo(this.video),xj(()=>{this.ctx.textRenderers.attachVideo(null)}),this.type===`video`&&this.ctx.notify(`provider-setup`,this)}get video(){return this.media}}})),$be=L({VideoProvider:()=>KI}),exe=F((()=>{qI()})),txe=L({HLSProvider:()=>QI});async function nxe(e,t={}){if(!Bj(e)){if(t.onLoadStart?.(),e.prototype&&e.prototype!==Function)return t.onLoaded?.(e),e;try{let n=(await e())?.default;if(n&&n.isSupported)t.onLoaded?.(n);else throw Error(``);return n}catch(e){t.onLoadError?.(e)}}}async function rxe(e,t={}){if(Uj(e)){t.onLoadStart?.();try{if(await ZN(e),!Gj(window.Hls))throw Error(``);let n=window.Hls;return t.onLoaded?.(n),n}catch(e){t.onLoadError?.(e)}}}var JI,YI,XI,ZI,QI,ixe=F((()=>{hN(),vN(),GN(),eP(),IF(),cI(),qI(),dI(),JI=e=>sM(e),YI=class{#e;#t;#n=null;#r=null;config={};#i=new Set;get instance(){return this.#n}constructor(e,t){this.#e=e,this.#t=t}setup(e){let{streamType:t}=this.#t.$state,n=J(t).includes(`live`),r=J(t).includes(`ll-`),i=this.#n=new e({lowLatencyMode:r,backBufferLength:r?4:n?8:void 0,renderTextTracksNatively:!1,...this.config}),a=e=>(t,n)=>{this.#n===i&&e(t,n)},o=a(this.#c.bind(this));for(let t of Object.values(e.Events))i.on(t,o);i.on(e.Events.ERROR,a(this.#h.bind(this)));for(let e of this.#i)e(i);this.#t.player.dispatch(`hls-instance`,{detail:i}),i.attachMedia(this.#e),i.on(e.Events.AUDIO_TRACK_SWITCHED,a(this.#d.bind(this))),i.on(e.Events.LEVEL_SWITCHED,a(this.#f.bind(this))),i.on(e.Events.LEVEL_LOADED,a(this.#m.bind(this,i))),i.on(e.Events.LEVEL_UPDATED,a(this.#p.bind(this))),i.on(e.Events.NON_NATIVE_TEXT_TRACKS_FOUND,a(this.#l.bind(this,i))),i.on(e.Events.CUES_PARSED,a(this.#u.bind(this,i))),this.#t.qualities[sI.enableAuto]=this.#_.bind(this),qj(this.#t.qualities,`change`,this.#v.bind(this)),qj(this.#t.audioTracks,`change`,this.#y.bind(this)),this.#r=Y(this.#o.bind(this))}#a(e,t){return new FM(JI(e),{detail:t})}#o(){if(!this.#t.$state.live())return;let e=new _N(this.#s.bind(this));return e.start(),e.stop.bind(e)}#s(){this.#t.$state.liveSyncPosition.set(this.#n?.liveSyncPosition??1/0)}#c(e,t){this.#t.player?.dispatch(this.#a(e,t))}#l(e,t,n){let r=this.#a(t,n),i=-1;for(let t=0;t<n.tracks.length;t++){let a=n.tracks[t],o=a.subtitleTrack??a.closedCaptions,s=new PF({id:`hls-${a.kind}-${t}`,src:o?.url,label:a.label,language:o?.lang,kind:a.kind,default:a.default});s[NF.readyState]=2,s[NF.onModeChange]=()=>{this.#n===e&&(s.mode===`showing`?(e.subtitleTrack=t,i=t):i===t&&(e.subtitleTrack=-1,i=-1))},this.#t.textTracks.add(s,r)}}#u(e,t,n){let r=e.subtitleTrack,i=this.#t.textTracks.getById(`hls-${n.type}-${r}`);if(!i)return;let a=this.#a(t,n);for(let e of n.cues)e.positionAlign=`auto`,i.addCue(e,a)}#d(e,t){let n=this.#t.audioTracks[t.id];if(n){let r=this.#a(e,t);this.#t.audioTracks[gN.select](n,!0,r)}}#f(e,t){let n=this.#t.qualities[t.level];if(n){let r=this.#a(e,t);this.#t.qualities[gN.select](n,!0,r)}}#p(e,t){t.details.totalduration>0&&this.#t.$state.inferredLiveDVRWindow.set(t.details.totalduration)}#m(e,t,n){if(this.#t.$state.canPlay())return;let r=e.media;if(!r)return;let{type:i,live:a,totalduration:o,targetduration:s}=n.details,c=this.#a(t,n);this.#t.notify(`stream-type-change`,a?i===`EVENT`&&Number.isFinite(o)&&s>=10?`live:dvr`:`live`:`on-demand`,c),this.#t.notify(`duration-change`,o,c),e.currentLevel===-1&&this.#t.qualities[sI.setAuto](!0,c);for(let t of e.audioTracks){let e={id:t.id.toString(),label:t.name,language:t.lang||``,kind:`main`};this.#t.audioTracks[gN.add](e,c)}for(let t of e.levels){let e={id:t.id?.toString()??t.height+`p`,width:t.width,height:t.height,codec:t.codecSet,bitrate:t.bitrate};this.#t.qualities[gN.add](e,c)}r.dispatchEvent(new FM(`canplay`,{trigger:c}))}#h(e,t){if(t.fatal)switch(t.type){case`mediaError`:this.#n?.recoverMediaError();break;default:this.#g(t.error);break}}#g(e){this.#t.notify(`error`,{message:e.message,code:1,error:e})}#_(){this.#n&&(this.#n.currentLevel=-1)}#v(){let{qualities:e}=this.#t;!this.#n||e.auto||(this.#n[e.switch+`Level`]=e.selectedIndex,FN&&(this.#e.currentTime=this.#e.currentTime))}#y(){let{audioTracks:e}=this.#t;this.#n&&this.#n.audioTrack!==e.selectedIndex&&(this.#n.audioTrack=e.selectedIndex)}onInstance(e){return this.#i.add(e),()=>this.#i.delete(e)}loadSource(e){Uj(e.src)&&this.#n?.loadSource(e.src)}destroy(){this.#n?.destroy(),this.#n=null,this.#r?.(),this.#r=null}},XI=class{#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n,this.#r()}async#r(){let e={onLoadStart:this.#i.bind(this),onLoaded:this.#a.bind(this),onLoadError:this.#o.bind(this)},t=await rxe(this.#e,e);return Bj(t)&&!Uj(this.#e)&&(t=await nxe(this.#e,e)),t?t.isSupported()?t:(this.#t.player.dispatch(new FM(`hls-unsupported`)),this.#t.notify(`error`,{message:"[vidstack] `hls.js` is not supported in this environment",code:4}),null):null}#i(){this.#t.player.dispatch(new FM(`hls-lib-load-start`))}#a(e){this.#t.player.dispatch(new FM(`hls-lib-loaded`,{detail:e})),this.#n(e)}#o(e){let t=lI(e);this.#t.player.dispatch(new FM(`hls-lib-load-error`,{detail:t})),this.#t.notify(`error`,{message:t.message,code:4,error:t})}},ZI=`https://cdn.jsdelivr.net`,QI=class extends KI{$$PROVIDER_TYPE=`HLS`;#e=null;#t=new YI(this.video,this.ctx);get ctor(){return this.#e}get instance(){return this.#t.instance}static supported=TN();get type(){return`hls`}get canLiveSync(){return!0}#n=`${ZI}/npm/hls.js@^1.5.0/dist/hls.min.js`;get config(){return this.#t.config}set config(e){this.#t.config=e}get library(){return this.#n}set library(e){this.#n=e}preconnect(){Uj(this.#n)&&XN(this.#n)}setup(){super.setup(),new XI(this.#n,this.ctx,e=>{this.#e=e,this.#t.setup(e),this.ctx.notify(`provider-setup`,this);let t=J(this.ctx.$state.source);t&&this.loadSource(t)})}async loadSource(e,t){if(!Uj(e.src)){this.removeSource();return}this.media.preload=t||``,this.appendSource(e,`application/x-mpegurl`),this.#t.loadSource(e),this.currentSrc=e}onInstance(e){let t=this.#t.instance;return t&&e(t),this.#t.onInstance(e)}destroy(){this.#t.destroy()}}}));function $I(e){try{return new Intl.DisplayNames(navigator.languages,{type:`language`}).of(e)??null}catch{return null}}async function axe(e,t={}){if(!Bj(e)){if(t.onLoadStart?.(),sxe(e))return t.onLoaded?.(e),e;if(eL(e)){let n=e.MediaPlayer;return t.onLoaded?.(n),n}try{let n=(await e())?.default;if(eL(n))return t.onLoaded?.(n.MediaPlayer),n.MediaPlayer;if(n)t.onLoaded?.(n);else throw Error(``);return n}catch(e){t.onLoadError?.(e)}}}async function oxe(e,t={}){if(Uj(e)){t.onLoadStart?.();try{if(await ZN(e),!Gj(window.dashjs.MediaPlayer))throw Error(``);let n=window.dashjs.MediaPlayer;return t.onLoaded?.(n),n}catch(e){t.onLoadError?.(e)}}}function sxe(e){return e&&e.prototype&&e.prototype!==Function}function eL(e){return e&&`MediaPlayer`in e}var tL,nL,rL,iL,aL,cxe=F((()=>{hN(),vN(),GN(),eP(),IF(),cI(),qI(),dI(),tL=e=>`dash-${sM(e)}`,nL=class{#e;#t;#n=null;#r=new Set;#i=null;config={};get instance(){return this.#n}constructor(e,t){this.#e=e,this.#t=t}setup(e){this.#n=e().create();let t=this.#c.bind(this);for(let n of Object.values(e.events))this.#n.on(n,t);this.#n.on(e.events.ERROR,this.#g.bind(this));for(let e of this.#r)e(this.#n);this.#t.player.dispatch(`dash-instance`,{detail:this.#n}),this.#n.initialize(this.#e,void 0,!1),this.#n.updateSettings({streaming:{text:{defaultEnabled:!1,dispatchForManualRendering:!0},buffer:{fastSwitchEnabled:!0}},...this.config}),this.#n.on(e.events.FRAGMENT_LOADING_STARTED,this.#_.bind(this)),this.#n.on(e.events.FRAGMENT_LOADING_COMPLETED,this.#v.bind(this)),this.#n.on(e.events.MANIFEST_LOADED,this.#h.bind(this)),this.#n.on(e.events.QUALITY_CHANGE_RENDERED,this.#m.bind(this)),this.#n.on(e.events.TEXT_TRACKS_ADDED,this.#f.bind(this)),this.#n.on(e.events.TRACK_CHANGE_RENDERED,this.#p.bind(this)),this.#t.qualities[sI.enableAuto]=this.#C.bind(this),qj(this.#t.qualities,`change`,this.#T.bind(this)),qj(this.#t.audioTracks,`change`,this.#E.bind(this)),this.#i=Y(this.#o.bind(this))}#a(e){return new FM(tL(e.type),{detail:e})}#o(){if(!this.#t.$state.live())return;let e=new _N(this.#s.bind(this));return e.start(),e.stop.bind(e)}#s(){if(!this.#n)return;let e=this.#n.duration()-this.#n.time();this.#t.$state.liveSyncPosition.set(isNaN(e)?1/0:e)}#c(e){this.#t.player?.dispatch(this.#a(e))}#l=null;#u={};#d(e){let t=this.#l?.[NF.native],n=(t?.track).cues;if(!t||!n)return;let r=this.#l.id,i=this.#u[r]??0,a=this.#a(e);for(let e=i;e<n.length;e++){let t=n[e];t.positionAlign||=`auto`,this.#l.addCue(t,a)}this.#u[r]=n.length}#f(e){if(!this.#n)return;let t=e.tracks,n=[...this.#e.textTracks].filter(e=>`manualMode`in e),r=this.#a(e);for(let e=0;e<n.length;e++){let i=t[e],a=n[e],o=new PF({id:`dash-${i.kind}-${e}`,label:i?.label??i.labels.find(e=>e.text)?.text??(i?.lang&&$I(i.lang))??i?.lang??void 0,language:i.lang??void 0,kind:i.kind,default:i.defaultTrack});o[NF.native]={managed:!0,track:a},o[NF.readyState]=2,o[NF.onModeChange]=()=>{this.#n&&(o.mode===`showing`?(this.#n.setTextTrack(e),this.#l=o):(this.#n.setTextTrack(-1),this.#l=null))},this.#t.textTracks.add(o,r)}}#p(e){let{mediaType:t,newMediaInfo:n}=e;if(t===`audio`){let t=this.#t.audioTracks.getById(`dash-audio-${n.index}`);if(t){let n=this.#a(e);this.#t.audioTracks[gN.select](t,!0,n)}}}#m(e){if(e.mediaType!==`video`)return;let t=this.#t.qualities[e.newQuality];if(t){let n=this.#a(e);this.#t.qualities[gN.select](t,!0,n)}}#h(e){if(this.#t.$state.canPlay()||!this.#n)return;let{type:t,mediaPresentationDuration:n}=e.data,r=this.#a(e);this.#t.notify(`stream-type-change`,t===`static`?`on-demand`:`live`,r),this.#t.notify(`duration-change`,n,r),this.#t.qualities[sI.setAuto](!0,r);let i=this.#n.getVideoElement(),a=this.#n.getTracksForTypeFromManifest(`video`,e.data),o=[...new Set(a.map(e=>e.mimeType))].find(e=>e&&xN(i,e)),s=a.find(e=>o===e.mimeType),c=this.#n.getTracksForTypeFromManifest(`audio`,e.data),l=[...new Set(c.map(e=>e.mimeType))].find(e=>e&&bN(i,e));if(c=c.filter(e=>l===e.mimeType),s&&(s.bitrateList.forEach((e,t)=>{let n={id:e.id?.toString()??`dash-bitrate-${t}`,width:e.width??0,height:e.height??0,bitrate:e.bandwidth??0,codec:s.codec,index:t};this.#t.qualities[gN.add](n,r)}),Hj(s.index))){let e=this.#t.qualities[s.index];e&&this.#t.qualities[gN.select](e,!0,r)}c.forEach((e,t)=>{let n=e.labels.find(e=>navigator.languages.some(t=>e.lang&&t.toLowerCase().startsWith(e.lang.toLowerCase())))||e.labels[0],i={id:`dash-audio-${e?.index}`,label:n?.text??(e.lang&&$I(e.lang))??e.lang??``,language:e.lang??``,kind:`main`,mimeType:e.mimeType,codec:e.codec,index:t};this.#t.audioTracks[gN.add](i,r)}),i.dispatchEvent(new FM(`canplay`,{trigger:r}))}#g(e){let{type:t,error:n}=e;switch(n.code){case 27:this.#b(n);break;default:this.#S(n);break}}#_(){this.#y>=0&&this.#x()}#v(e){e.mediaType===`text`&&requestAnimationFrame(this.#d.bind(this,e))}#y=-1;#b(e){this.#x(),this.#n?.play(),this.#y=window.setTimeout(()=>{this.#y=-1,this.#S(e)},5e3)}#x(){clearTimeout(this.#y),this.#y=-1}#S(e){this.#t.notify(`error`,{message:e.message??``,code:1,error:e})}#C(){this.#w(`video`,!0);let{qualities:e}=this.#t;this.#n?.setQualityFor(`video`,e.selectedIndex,!0)}#w(e,t){this.#n?.updateSettings({streaming:{abr:{autoSwitchBitrate:{[e]:t}}}})}#T(){let{qualities:e}=this.#t;!this.#n||e.auto||!e.selected||(this.#w(`video`,!1),this.#n.setQualityFor(`video`,e.selectedIndex,e.switch===`current`),FN&&(this.#e.currentTime=this.#e.currentTime))}#E(){if(!this.#n)return;let{audioTracks:e}=this.#t,t=this.#n.getTracksFor(`audio`).find(t=>e.selected&&e.selected.id===`dash-audio-${t.index}`);t&&this.#n.setCurrentTrack(t)}#D(){this.#x(),this.#l=null,this.#u={}}onInstance(e){return this.#r.add(e),()=>this.#r.delete(e)}loadSource(e){this.#D(),Uj(e.src)&&this.#n?.attachSource(e.src)}destroy(){this.#D(),this.#n?.destroy(),this.#n=null,this.#i?.(),this.#i=null}},rL=class{#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n,this.#r()}async#r(){let e={onLoadStart:this.#i.bind(this),onLoaded:this.#a.bind(this),onLoadError:this.#o.bind(this)},t=await oxe(this.#e,e);return Bj(t)&&!Uj(this.#e)&&(t=await axe(this.#e,e)),t?window.dashjs.supportsMediaSource()?t:(this.#t.player.dispatch(new FM(`dash-unsupported`)),this.#t.notify(`error`,{message:"[vidstack] `dash.js` is not supported in this environment",code:4}),null):null}#i(){this.#t.player.dispatch(new FM(`dash-lib-load-start`))}#a(e){this.#t.player.dispatch(new FM(`dash-lib-loaded`,{detail:e})),this.#n(e)}#o(e){let t=lI(e);this.#t.player.dispatch(new FM(`dash-lib-load-error`,{detail:t})),this.#t.notify(`error`,{message:t.message,code:4,error:t})}},iL=`https://cdn.jsdelivr.net`,aL=class extends KI{$$PROVIDER_TYPE=`DASH`;#e=null;#t=new nL(this.video,this.ctx);get ctor(){return this.#e}get instance(){return this.#t.instance}static supported=EN();get type(){return`dash`}get canLiveSync(){return!0}#n=`${iL}/npm/dashjs@4.7.4/dist/dash.all.min.js`;get config(){return this.#t.config}set config(e){this.#t.config=e}get library(){return this.#n}set library(e){this.#n=e}preconnect(){Uj(this.#n)&&XN(this.#n)}setup(){super.setup(),new rL(this.#n,this.ctx,e=>{this.#e=e,this.#t.setup(e),this.ctx.notify(`provider-setup`,this);let t=J(this.ctx.$state.source);t&&this.loadSource(t)})}async loadSource(e,t){if(!Uj(e.src)){this.removeSource();return}this.media.preload=t||``,this.appendSource(e,`application/x-mpegurl`),this.#t.loadSource(e),this.currentSrc=e}onInstance(e){let t=this.#t.instance;return t&&e(t),this.#t.onInstance(e)}destroy(){this.#t.destroy()}}})),lxe=L({DASHProvider:()=>aL}),uxe=F((()=>{cxe()})),oL,sL=F((()=>{hN(),eP(),oL=class{#e;src=Ij(``);referrerPolicy=null;get iframe(){return this.#e}constructor(e){this.#e=e,e.setAttribute(`frameBorder`,`0`),e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`allow`,`autoplay; fullscreen; encrypted-media; picture-in-picture; accelerometer; gyroscope`),this.referrerPolicy!==null&&e.setAttribute(`referrerpolicy`,this.referrerPolicy)}setup(){qj(window,`message`,this.#n.bind(this)),qj(this.#e,`load`,this.onLoad.bind(this)),Y(this.#t.bind(this))}#t(){let e=this.src();if(!e.length){this.#e.setAttribute(`src`,``);return}let t=J(()=>this.buildParams());this.#e.setAttribute(`src`,dbe(e,t))}postMessage(e,t){this.#e.contentWindow?.postMessage(JSON.stringify(e),t??`*`)}#n(e){let t=this.getOrigin();if((e.source===null||e.source===this.#e?.contentWindow)&&(!Uj(t)||t===e.origin)){try{let t=JSON.parse(e.data);t&&this.onMessage(t,e);return}catch{}e.data&&this.onMessage(e.data,e)}}}})),cL,lL,uL=F((()=>{cL=Object.defineProperty,lL=(e,t)=>{let n={};for(var r in e)cL(n,r,{get:e[r],enumerable:!0});return t||cL(n,Symbol.toStringTag,{value:`Module`}),n}})),dxe=L({getVimeoVideoInfo:()=>fL,resolveVimeoVideoId:()=>dL,utils_exports:()=>pL});function dL(e){let t=e.match(mL);return{videoId:t?.[1],hash:t?.[2]}}async function fL(e,t,n){if(hL.has(e))return hL.get(e);if(gL.has(e))return gL.get(e);let r=`https://vimeo.com/api/oembed.json?url=https://player.vimeo.com/video/${e}`;n&&(r=r.concat(`?h=${n}`));let i=window.fetch(r,{mode:`cors`,signal:t.signal}).then(e=>e.json()).then(t=>{let n={title:t?.title??``,duration:t?.duration??0,poster:fxe(t),pro:t.account_type!==`basic`};return hL.set(e,n),n}).finally(()=>gL.delete(e));return gL.set(e,i),i}function fxe(e){let t=e?.thumbnail_url??``,n=t.match(/vimeocdn\.com\/video\/([^_/?#]+)_/)?.[1];if(!n)return t;let r=pxe(e);return r?`https://i.vimeocdn.com/video/${n}_${r.width}x${r.height}.webp`:t}function pxe(e){let t=e.width||e.thumbnail_width,n=e.height||e.thumbnail_height;return!t||!n?null:t>n?{width:_L,height:Math.round(_L*n/t)}:{width:Math.round(_L*t/n),height:_L}}var pL,mL,hL,gL,_L,vL=F((()=>{uL(),pL=lL({getVimeoVideoInfo:()=>fL,resolveVimeoVideoId:()=>dL}),mL=/(?:https:\/\/)?(?:player\.)?vimeo(?:\.com)?\/(?:video\/)?(\d+)(?:(?:\?hash=|\?h=|\/)(.*))?/,hL=new Map,gL=new Map,_L=1920})),mxe=L({VimeoProvider:()=>bL}),yL,bL,hxe=F((()=>{hN(),vN(),YN(),eP(),IF(),cI(),sL(),vL(),yL=[`bufferend`,`bufferstart`,`durationchange`,`ended`,`enterpictureinpicture`,`error`,`fullscreenchange`,`leavepictureinpicture`,`loaded`,`playProgress`,`loadProgress`,`pause`,`play`,`playbackratechange`,`qualitychange`,`seeked`,`seeking`,`timeupdate`,`volumechange`,`waiting`],bL=class extends oL{$$PROVIDER_TYPE=`VIMEO`;scope=Oj();fullscreen;#e;#t=Ij(``);#n=Ij(!1);#r=null;#i=null;#a=!1;#o=new JN(0,0);#s=new _N(this.#h.bind(this));#c=null;#l=null;#u=new Map;#d=null;constructor(e,t){super(e),this.#e=t;let n=this;this.fullscreen={get active(){return n.#a},supported:!0,enter:()=>this.#L(`requestFullscreen`),exit:()=>this.#L(`exitFullscreen`)}}cookies=!1;title=!0;byline=!0;portrait=!0;color=`00ADEF`;get type(){return`vimeo`}get currentSrc(){return this.#i}get videoId(){return this.#t()}get hash(){return this.#r}get isPro(){return this.#n()}preconnect(){XN(this.getOrigin())}setup(){super.setup(),Y(this.#f.bind(this)),Y(this.#p.bind(this)),Y(this.#m.bind(this)),this.#e.notify(`provider-setup`,this)}destroy(){this.#R(),this.fullscreen=void 0;for(let e of this.#u.values())for(let{reject:t}of e)t(`provider destroyed`);this.#u.clear(),this.#L(`destroy`)}async play(){return this.#L(`play`)}async pause(){return this.#L(`pause`)}setMuted(e){this.#L(`setMuted`,e)}setCurrentTime(e){this.#L(`seekTo`,e),this.#e.notify(`seeking`,e)}setVolume(e){this.#L(`setVolume`,e),this.#L(`setMuted`,J(this.#e.$state.muted))}setPlaybackRate(e){this.#L(`setPlaybackRate`,e)}async loadSource(e){if(!Uj(e.src)){this.#i=null,this.#r=null,this.#t.set(``);return}let{videoId:t,hash:n}=dL(e.src);this.#t.set(t??``),this.#r=n??null,this.#i=e}#f(){this.#R();let e=this.#t();if(!e){this.src.set(``);return}this.src.set(`${this.getOrigin()}/video/${e}`),this.#e.notify(`load-start`)}#p(){let e=this.#t();if(!e)return;let t=uM(),n=new AbortController;return this.#d=t,fL(e,n,this.#r).then(e=>{t.resolve(e)}).catch(e=>{t.reject()}),()=>{t.reject(),n.abort()}}#m(){let e=this.#n(),{$state:t,qualities:n}=this.#e;if(t.canSetPlaybackRate.set(e),n[gN.setReadonly](!e),e)return qj(n,`change`,()=>{if(n.auto)return;let e=n.selected?.id;e&&this.#L(`setQuality`,e)})}getOrigin(){return`https://player.vimeo.com`}buildParams(){let{keyDisabled:e}=this.#e.$props,{playsInline:t,nativeControls:n}=this.#e.$state,r=n();return{title:this.title,byline:this.byline,color:this.color,portrait:this.portrait,controls:r,h:this.hash,keyboard:r&&!e(),transparent:!0,playsinline:t(),dnt:!this.cookies}}#h(){this.#L(`getCurrentTime`)}#g=!1;#_(e,t){if(this.#g&&e===0)return;let{realCurrentTime:n,paused:r,bufferedEnd:i,seekableEnd:a,live:o}=this.#e.$state;if(n()===e)return;let s=n();this.#e.notify(`time-change`,e,t),Math.abs(s-e)>1.5&&(this.#e.notify(`seeking`,e,t),!r()&&i()<e&&this.#e.notify(`waiting`,void 0,t)),!o()&&a()-e<.01&&(this.#e.notify(`end`,void 0,t),this.#g=!0,setTimeout(()=>{this.#g=!1},500))}#v(e,t){this.#e.notify(`seeked`,e,t)}#y(e){let t=this.#t();this.#d?.promise.then(t=>{if(!t)return;let{title:n,poster:r,duration:i,pro:a}=t;this.#n.set(a),this.#e.notify(`title-change`,n,e),this.#e.notify(`poster-change`,r,e),this.#e.notify(`duration-change`,i,e),this.#b(i,e)}).catch(()=>{t===this.#t()&&(this.#L(`getVideoTitle`),this.#L(`getDuration`))})}#b(e,t){let{nativeControls:n}=this.#e.$state,r=n();this.#o=new JN(0,e);let i={buffered:new JN(0,0),seekable:this.#o,duration:e};this.#e.delegate.ready(i,t),r||this.#L(`_hideOverlay`),this.#L(`getQualities`),this.#L(`getChapters`)}#x(e,t,n){switch(e){case`getVideoTitle`:let e=t;this.#e.notify(`title-change`,e,n);break;case`getDuration`:let r=t;this.#e.$state.canPlay()?this.#e.notify(`duration-change`,r,n):this.#b(r,n);break;case`getCurrentTime`:this.#_(t,n);break;case`getBuffered`:Kj(t)&&t.length&&this.#E(t[t.length-1][1],n);break;case`setMuted`:case`getMuted`:this.#A(J(this.#e.$state.volume),t,n);break;case`getChapters`:this.#j(t);break;case`getQualities`:this.#N(t,n);break}this.#z(e)?.resolve()}#S(){for(let e of yL)this.#L(`addEventListener`,e)}#C(e){this.#s.stop(),this.#e.notify(`pause`,void 0,e)}async#w(e){this.#s.start(),await this.#L(`getMuted`),this.#e.notify(`play`,void 0,e)}#T(e){let{paused:t}=this.#e.$state;!t()&&!this.#g&&this.#e.notify(`playing`,void 0,e)}#E(e,t){let n={buffered:new JN(0,e),seekable:this.#o};this.#e.notify(`progress`,n,t)}#D(e){this.#e.notify(`waiting`,void 0,e)}#O(e){let{paused:t}=this.#e.$state;t()||this.#e.notify(`playing`,void 0,e)}async#k(e){let{paused:t}=this.#e.$state;t()&&(await this.#L(`getMuted`),this.#e.notify(`play`,void 0,e)),this.#e.notify(`waiting`,void 0,e)}#A(e,t,n){let r={volume:e,muted:t};this.#e.notify(`volume-change`,r,n)}#j(e){if(this.#M(),!e.length)return;let t=new PF({kind:`chapters`,default:!0}),{seekableEnd:n}=this.#e.$state;for(let r=0;r<e.length;r++){let i=e[r],a=e[r+1];t.addCue(new window.VTTCue(i.startTime,a?.startTime??n(),i.title))}this.#l=t,this.#e.textTracks.add(t)}#M(){this.#l&&=(this.#e.textTracks.remove(this.#l),null)}#N(e,t){this.#e.qualities[sI.enableAuto]=e.some(e=>e.id===`auto`)?()=>this.#L(`setQuality`,`auto`):void 0;for(let n of e){if(n.id===`auto`)continue;let e=+n.id.slice(0,-1);isNaN(e)||this.#e.qualities[gN.add]({id:n.id,width:16/9*e,height:e,codec:`avc1,h.264`,bitrate:-1},t)}this.#P(e.find(e=>e.active),t)}#P({id:e}={},t){if(!e)return;let n=e===`auto`,r=this.#e.qualities.getById(e);n?(this.#e.qualities[sI.setAuto](n,t),this.#e.qualities[gN.select](void 0,!0,t)):this.#e.qualities[gN.select](r??void 0,!0,t)}#F(e,t,n){switch(e){case`ready`:this.#S();break;case`loaded`:this.#y(n);break;case`play`:this.#w(n);break;case`playProgress`:this.#T(n);break;case`pause`:this.#C(n);break;case`loadProgress`:this.#E(t.seconds,n);break;case`waiting`:this.#k(n);break;case`bufferstart`:this.#D(n);break;case`bufferend`:this.#O(n);break;case`volumechange`:this.#A(t.volume,J(this.#e.$state.muted),n);break;case`durationchange`:this.#o=new JN(0,t.duration),this.#e.notify(`duration-change`,t.duration,n);break;case`playbackratechange`:this.#e.notify(`rate-change`,t.playbackRate,n);break;case`qualitychange`:this.#P(t,n);break;case`fullscreenchange`:this.#a=t.fullscreen,this.#e.notify(`fullscreen-change`,t.fullscreen,n);break;case`enterpictureinpicture`:this.#e.notify(`picture-in-picture-change`,!0,n);break;case`leavepictureinpicture`:this.#e.notify(`picture-in-picture-change`,!1,n);break;case`ended`:this.#e.notify(`end`,void 0,n);break;case`error`:this.#I(t,n);break;case`seek`:case`seeked`:this.#v(t.seconds,n);break}}#I(e,t){let{message:n,method:r}=e;r===`setPlaybackRate`&&this.#n.set(!1),r&&this.#z(r)?.reject(n)}onMessage(e,t){e.event?this.#F(e.event,e.data,t):e.method&&this.#x(e.method,e.value,t)}onLoad(){}async#L(e,t){let n=uM(),r=this.#u.get(e);return r||this.#u.set(e,r=[]),r.push(n),this.postMessage({method:e,value:t}),n.promise}#R(){this.#s.stop(),this.#o=new JN(0,0),this.#d=null,this.#c=null,this.#n.set(!1),this.#M()}#z(e){return this.#u.get(e)?.shift()}}})),gxe=L({resolveYouTubeVideoId:()=>xL,utils_exports:()=>SL});function xL(e){return e.match(CL)?.[1]}async function _xe(e,t){if(wL.has(e))return wL.get(e);if(TL.has(e))return TL.get(e);let n=new Promise(async n=>{for(let r of[`maxresdefault`,`sddefault`,`hqdefault`])for(let i of[!0,!1]){let a=vxe(e,r,i);if((await fetch(a,{mode:`no-cors`,signal:t.signal})).status<400){wL.set(e,a),n(a);return}}}).catch(()=>``).finally(()=>TL.delete(e));return TL.set(e,n),n}function vxe(e,t,n){return`https://i.ytimg.com/${n?`vi_webp`:`vi`}/${e}/${t}.${n?`webp`:`jpg`}`}var SL,CL,wL,TL,EL=F((()=>{uL(),SL=lL({findYouTubePoster:()=>_xe,resolveYouTubeVideoId:()=>xL}),CL=/(?:youtu\.be|youtube|youtube\.com|youtube-nocookie\.com)(?:\/shorts)?\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|)((?:\w|-){11})/,wL=new Map,TL=new Map})),yxe=L({YouTubeProvider:()=>OL}),DL,OL,bxe=F((()=>{hN(),YN(),eP(),sL(),EL(),DL={Unstarted:-1,Ended:0,Playing:1,Paused:2,Buffering:3,Cued:5},OL=class extends oL{$$PROVIDER_TYPE=`YOUTUBE`;scope=Oj();#e;#t=Ij(``);#n=-1;#r=null;#i=-1;#a=!1;#o=new Map;constructor(e,t){super(e),this.#e=t}language=`en`;color=`red`;cookies=!1;get currentSrc(){return this.#r}get type(){return`youtube`}get videoId(){return this.#t()}preconnect(){XN(this.getOrigin())}setup(){super.setup(),Y(this.#s.bind(this)),this.#e.notify(`provider-setup`,this)}destroy(){this.#g();for(let e of this.#o.values())for(let{reject:t}of e)t(`provider destroyed`);this.#o.clear()}async play(){return this.#c(`playVideo`)}async pause(){return this.#c(`pauseVideo`)}setMuted(e){e?this.#c(`mute`):this.#c(`unMute`)}setCurrentTime(e){this.#c(`seekTo`,[e,!0]),this.#e.notify(`seeking`,e)}setVolume(e){this.#c(`setVolume`,e*100)}setPlaybackRate(e){this.#c(`setPlaybackRate`,e)}async loadSource(e){if(!Uj(e.src)){this.#r=null,this.#t.set(``);return}let t=xL(e.src);this.#t.set(t??``),this.#r=e}getOrigin(){return this.cookies?`https://www.youtube.com`:`https://www.youtube-nocookie.com`}#s(){this.#g();let e=this.#t();if(!e){this.src.set(``);return}this.src.set(`${this.getOrigin()}/embed/${e}`),this.#e.notify(`load-start`)}buildParams(){let{keyDisabled:e}=this.#e.$props,{muted:t,playsInline:n,nativeControls:r}=this.#e.$state,i=r();return{rel:0,autoplay:0,cc_lang_pref:this.language,cc_load_policy:i?1:void 0,color:this.color,controls:+!!i,disablekb:!i||e()?1:0,enablejsapi:1,fs:1,hl:this.language,iv_load_policy:i?1:3,mute:+!!t(),playsinline:+!!n()}}#c(e,t){let n=uM(),r=this.#o.get(e);r||this.#o.set(e,r=[]),r.push(n);let i=Array.isArray(t)?t:t?[t]:void 0;return this.postMessage({event:`command`,func:e,args:i}),n.promise}onLoad(){window.setTimeout(()=>this.postMessage({event:`listening`}),100)}#l(e){this.#e.notify(`loaded-metadata`),this.#e.notify(`loaded-data`),this.#e.delegate.ready(void 0,e)}#u(e){this.#_(`pauseVideo`)?.resolve(),this.#e.notify(`pause`,void 0,e)}#d(e,t){let{duration:n,realCurrentTime:r}=this.#e.$state,i=this.#n===DL.Ended,a=i?n():e;this.#e.notify(`time-change`,a,t),!i&&Math.abs(a-r())>1&&this.#e.notify(`seeking`,a,t)}#f(e,t,n){let r={buffered:new JN(0,e),seekable:t};this.#e.notify(`progress`,r,n);let{seeking:i,realCurrentTime:a}=this.#e.$state;i()&&e>a()&&this.#p(n)}#p(e){let{paused:t,realCurrentTime:n}=this.#e.$state;window.clearTimeout(this.#i),this.#i=window.setTimeout(()=>{this.#e.notify(`seeked`,n(),e),this.#i=-1},t()?100:0)}#m(e){let{seeking:t}=this.#e.$state;t()&&this.#p(e),this.#e.notify(`pause`,void 0,e),this.#e.notify(`end`,void 0,e)}#h(e,t){let{paused:n,seeking:r}=this.#e.$state,i=e===DL.Playing,a=e===DL.Buffering,o=this.#v(`playVideo`),s=n()&&(a||i);if(a&&this.#e.notify(`waiting`,void 0,t),r()&&i&&this.#p(t),this.#a&&i){this.pause(),this.#a=!1,this.setMuted(this.#e.$state.muted());return}if(!o&&s){this.#a=!0,this.setMuted(!0);return}switch(s&&(this.#_(`playVideo`)?.resolve(),this.#e.notify(`play`,void 0,t)),e){case DL.Cued:this.#l(t);break;case DL.Playing:this.#e.notify(`playing`,void 0,t);break;case DL.Paused:this.#u(t);break;case DL.Ended:this.#m(t);break}this.#n=e}onMessage({info:e},t){if(!e)return;let{title:n,intrinsicDuration:r,playbackRate:i}=this.#e.$state;if(Vj(e.videoData)&&e.videoData.title!==n()&&this.#e.notify(`title-change`,e.videoData.title,t),Hj(e.duration)&&e.duration!==r()){if(Hj(e.videoLoadedFraction)){let n=e.progressState?.loaded??e.videoLoadedFraction*e.duration,r=new JN(0,e.duration);this.#f(n,r,t)}this.#e.notify(`duration-change`,e.duration,t)}if(Hj(e.playbackRate)&&e.playbackRate!==i()&&this.#e.notify(`rate-change`,e.playbackRate,t),e.progressState){let{current:n,seekableStart:i,seekableEnd:a,loaded:o,duration:s}=e.progressState;this.#d(n,t),this.#f(o,new JN(i,a),t),s!==r()&&this.#e.notify(`duration-change`,s,t)}if(Hj(e.volume)&&Wj(e.muted)&&!this.#a){let n={muted:e.muted,volume:e.volume/100};this.#e.notify(`volume-change`,n,t)}Hj(e.playerState)&&e.playerState!==this.#n&&this.#h(e.playerState,t)}#g(){this.#n=-1,this.#i=-1,this.#a=!1}#_(e){return this.#o.get(e)?.shift()}#v(e){return!!this.#o.get(e)?.length}}}));function xxe(){return`https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1`}function Sxe(){return!!window.cast?.framework}function Cxe(){return!!window.chrome?.cast?.isAvailable}function kL(){return AL().getCastState()===cast.framework.CastState.CONNECTED}function AL(){return window.cast.framework.CastContext.getInstance()}function jL(){return AL().getCurrentSession()}function ML(){return jL()?.getSessionObj().media[0]}function NL(e){return ML()?.media.contentId===e?.src}function wxe(){return{language:`en-US`,autoJoinPolicy:chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED,receiverApplicationId:chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,resumeSavedSession:!0,androidReceiverCompatible:!0}}function PL(e){return`Google Cast Error Code: ${e}`}function Txe(e,t){return qj(AL(),e,t)}var FL=F((()=>{hN()})),Exe=L({GoogleCastProvider:()=>RL}),IL,LL,RL,Dxe=F((()=>{hN(),vN(),YN(),FL(),IL=class{#e;constructor(e){this.#e=new chrome.cast.media.MediaInfo(e.src,e.type)}build(){return this.#e}setStreamType(e){return e.includes(`live`)?this.#e.streamType=chrome.cast.media.StreamType.LIVE:this.#e.streamType=chrome.cast.media.StreamType.BUFFERED,this}setTracks(e){return this.#e.tracks=e.map(this.#t),this}setMetadata(e,t){return this.#e.metadata=new chrome.cast.media.GenericMediaMetadata,this.#e.metadata.title=e,this.#e.metadata.images=[{url:t}],this}#t(e,t){let n=new chrome.cast.media.Track(t,chrome.cast.media.TrackType.TEXT);return n.name=e.label,n.trackContentId=e.src,n.trackContentType=`text/vtt`,n.language=e.language,n.subtype=e.kind.toUpperCase(),n}},LL=class{#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}setup(){let e=this.syncRemoteActiveIds.bind(this);qj(this.#t.audioTracks,`change`,e),qj(this.#t.textTracks,`mode-change`,e),Y(this.#o.bind(this))}getLocalTextTracks(){return this.#t.$state.textTracks().filter(e=>e.src&&e.type===`vtt`)}#r(){return this.#t.$state.audioTracks()}#i(e){let t=this.#e.mediaInfo?.tracks??[];return e?t.filter(t=>t.type===e):t}#a(){let e=[],t=this.#r().find(e=>e.selected),n=this.getLocalTextTracks().filter(e=>e.mode===`showing`);if(t){let n=this.#i(chrome.cast.media.TrackType.AUDIO),r=this.#l(n,t);r&&e.push(r.trackId)}if(n?.length){let t=this.#i(chrome.cast.media.TrackType.TEXT);if(t.length)for(let r of n){let n=this.#l(t,r);n&&e.push(n.trackId)}}return e}#o(){let e=this.getLocalTextTracks();if(!this.#e.isMediaLoaded)return;let t=this.#i(chrome.cast.media.TrackType.TEXT);for(let n of e)if(!this.#l(t,n)){gj(()=>this.#n?.());break}}syncRemoteTracks(e){if(!this.#e.isMediaLoaded)return;let t=this.#r(),n=this.getLocalTextTracks(),r=this.#i(chrome.cast.media.TrackType.AUDIO),i=this.#i(chrome.cast.media.TrackType.TEXT);for(let n of r){if(this.#c(t,n))continue;let r={id:n.trackId.toString(),label:n.name,language:n.language,kind:n.subtype??`main`,selected:!1};this.#t.audioTracks[gN.add](r,e)}for(let t of i){if(this.#c(n,t))continue;let r={id:t.trackId.toString(),src:t.trackContentId,label:t.name,language:t.language,kind:t.subtype.toLowerCase()};this.#t.textTracks.add(r,e)}}syncRemoteActiveIds(e){if(!this.#e.isMediaLoaded)return;let t=this.#a(),n=new chrome.cast.media.EditTracksInfoRequest(t);this.#s(n).catch(e=>{})}#s(e){let t=ML();return new Promise((n,r)=>t?.editTracksInfo(e,n,r))}#c(e,t){return e.find(e=>this.#u(e,t))}#l(e,t){return e.find(e=>this.#u(t,e))}#u(e,t){return t.name===e.label&&t.language===e.language&&t.subtype.toLowerCase()===e.kind.toLowerCase()}},RL=class{$$PROVIDER_TYPE=`GOOGLE_CAST`;scope=Oj();#e;#t;#n;#r=null;#i=`disconnected`;#a=0;#o=0;#s=new JN(0,0);#c=new _N(this.#v.bind(this));#l;#u=null;#d=!1;constructor(e,t){this.#e=e,this.#t=t,this.#n=new LL(e,t,this.#I.bind(this))}get type(){return`google-cast`}get currentSrc(){return this.#r}get player(){return this.#e}get cast(){return AL()}get session(){return jL()}get media(){return ML()}get hasActiveSession(){return NL(this.#r)}setup(){this.#f(),this.#p(),this.#n.setup(),this.#t.notify(`provider-setup`,this)}#f(){Txe(cast.framework.CastContextEventType.CAST_STATE_CHANGED,this.#b.bind(this))}#p(){let e=cast.framework.RemotePlayerEventType,t={[e.IS_CONNECTED_CHANGED]:this.#b,[e.IS_MEDIA_LOADED_CHANGED]:this.#x,[e.CAN_CONTROL_VOLUME_CHANGED]:this.#S,[e.CAN_SEEK_CHANGED]:this.#C,[e.DURATION_CHANGED]:this.#E,[e.IS_MUTED_CHANGED]:this.#D,[e.VOLUME_LEVEL_CHANGED]:this.#D,[e.IS_PAUSED_CHANGED]:this.#O,[e.LIVE_SEEKABLE_RANGE_CHANGED]:this.#k,[e.PLAYER_STATE_CHANGED]:this.#A};this.#l=t;let n=this.#y.bind(this);for(let e of lM(t))this.#e.controller.addEventListener(e,n);xj(()=>{for(let e of lM(t))this.#e.controller.removeEventListener(e,n)})}async play(){if(!(!this.#e.isPaused&&!this.#d)){if(this.#d){await this.#F(!1,0);return}this.#e.controller?.playOrPause()}}async pause(){this.#e.isPaused||this.#e.controller?.playOrPause()}getMediaStatus(e){return new Promise((t,n)=>{this.media?.getStatus(e,t,n)})}setMuted(e){(e&&!this.#e.isMuted||!e&&this.#e.isMuted)&&this.#e.controller?.muteOrUnmute()}setCurrentTime(e){this.#e.currentTime=e,this.#t.notify(`seeking`,e),this.#e.controller?.seek()}setVolume(e){this.#e.volumeLevel=e,this.#e.controller?.setVolumeLevel()}async loadSource(e){if(this.#u?.src!==e&&(this.#u=null),NL(e)){this.#h(),this.#r=e;return}this.#t.notify(`load-start`);let t=this.#P(e),n=await this.session.loadMedia(t);if(n){this.#r=null,this.#t.notify(`error`,Error(PL(n)));return}this.#r=e}destroy(){this.#m(),this.#g()}#m(){this.#u||(this.#o=0,this.#s=new JN(0,0)),this.#c.stop(),this.#a=0,this.#u=null}#h(){let e=new FM(`resume-session`,{detail:this.session});this.#x(e);let{muted:t,volume:n,savedState:r}=this.#t.$state,i=r();this.setCurrentTime(Math.max(this.#e.currentTime,i?.currentTime??0)),this.setMuted(t()),this.setVolume(n()),i?.paused===!1&&this.play()}#g(){this.cast.endCurrentSession(!0);let{remotePlaybackLoader:e}=this.#t.$state;e.set(null)}#_(){let{savedState:e}=this.#t.$state;e.set({paused:this.#e.isPaused,currentTime:this.#e.currentTime}),this.#g()}#v(){this.#T()}#y(e){this.#l[e.type].call(this,e)}#b(e){let t=this.cast.getCastState(),n=t===cast.framework.CastState.CONNECTED?`connected`:t===cast.framework.CastState.CONNECTING?`connecting`:`disconnected`;if(this.#i===n)return;let r={type:`google-cast`,state:n},i=this.#M(e);this.#i=n,this.#t.notify(`remote-playback-change`,r,i),n===`disconnected`&&this.#_()}#x(e){if(!this.#e.isMediaLoaded)return;let t=J(this.#t.$state.source);Promise.resolve().then(()=>{if(t!==J(this.#t.$state.source)||!this.#e.isMediaLoaded)return;this.#m();let n=this.#e.duration;this.#s=new JN(0,n);let r={provider:this,duration:n,buffered:new JN(0,0),seekable:this.#j()},i=this.#M(e);this.#t.notify(`loaded-metadata`,void 0,i),this.#t.notify(`loaded-data`,void 0,i),this.#t.notify(`can-play`,r,i),this.#S(),this.#C(e);let{volume:a,muted:o}=this.#t.$state;this.setVolume(a()),this.setMuted(o()),this.#c.start(),this.#n.syncRemoteTracks(i),this.#n.syncRemoteActiveIds(i)})}#S(){this.#t.$state.canSetVolume.set(this.#e.canControlVolume)}#C(e){let t=this.#M(e);this.#t.notify(`stream-type-change`,this.#w(),t)}#w(){return this.#e.mediaInfo?.streamType===chrome.cast.media.StreamType.LIVE?this.#e.canSeek?`live:dvr`:`live`:`on-demand`}#T(){if(this.#u)return;let e=this.#e.currentTime;e!==this.#a&&(this.#t.notify(`time-change`,e),e>this.#o&&(this.#o=e,this.#k()),this.#t.$state.seeking()&&this.#t.notify(`seeked`,e),this.#a=e)}#E(e){if(!this.#e.isMediaLoaded||this.#u)return;let t=this.#e.duration,n=this.#M(e);this.#s=new JN(0,t),this.#t.notify(`duration-change`,t,n)}#D(e){if(!this.#e.isMediaLoaded)return;let t={muted:this.#e.isMuted,volume:this.#e.volumeLevel},n=this.#M(e);this.#t.notify(`volume-change`,t,n)}#O(e){let t=this.#M(e);this.#e.isPaused?this.#t.notify(`pause`,void 0,t):this.#t.notify(`play`,void 0,t)}#k(e){let t={seekable:this.#j(),buffered:new JN(0,this.#o)},n=e?this.#M(e):void 0;this.#t.notify(`progress`,t,n)}#A(e){let t=this.#e.playerState,n=chrome.cast.media.PlayerState;if(this.#d=t===n.IDLE,t===n.PAUSED)return;let r=this.#M(e);switch(t){case n.PLAYING:this.#t.notify(`playing`,void 0,r);break;case n.BUFFERING:this.#t.notify(`waiting`,void 0,r);break;case n.IDLE:this.#c.stop(),this.#t.notify(`pause`),this.#t.notify(`end`);break}}#j(){return this.#e.liveSeekableRange?new JN(this.#e.liveSeekableRange.start,this.#e.liveSeekableRange.end):this.#s}#M(e){return e instanceof Event?e:new FM(e.type,{detail:e})}#N(e){let{streamType:t,title:n,poster:r}=this.#t.$state;return new IL(e).setMetadata(n(),r()).setStreamType(t()).setTracks(this.#n.getLocalTextTracks()).build()}#P(e){let t=this.#N(e),n=new chrome.cast.media.LoadRequest(t),r=this.#t.$state.savedState();return n.autoplay=(this.#u?.paused??r?.paused)===!1,n.currentTime=this.#u?.time??r?.currentTime??0,n}async#F(e,t){let n=J(this.#t.$state.source);this.#u={src:n,paused:e,time:t},await this.loadSource(n)}#I(){this.#F(this.#e.isPaused,this.#e.currentTime).catch(e=>{})}}})),Oxe=L({GoogleCastLoader:()=>zL}),zL,kxe=F((()=>{hN(),GN(),eP(),FL(),zL=class{name=`google-cast`;target;#e;get cast(){return AL()}mediaType(){return`video`}canPlay(e){return FN&&!NN&&jN(e)}async prompt(e){let t,n,r;try{t=await this.#t(e),this.#e||(this.#e=new cast.framework.RemotePlayer,new cast.framework.RemotePlayerController(this.#e)),n=e.player.createEvent(`google-cast-prompt-open`,{trigger:t}),e.player.dispatchEvent(n),this.#i(e,`connecting`,n),await this.#n(J(e.$props.googleCast)),e.$state.remotePlaybackInfo.set({deviceName:jL()?.getCastDevice().friendlyName}),kL()&&this.#i(e,`connected`,n)}catch(i){let a=i instanceof Error?i:this.#a((i+``).toUpperCase(),`Prompt failed.`);throw r=e.player.createEvent(`google-cast-prompt-error`,{detail:a,trigger:n??t,cancelable:!0}),e.player.dispatch(r),this.#i(e,kL()?`connected`:`disconnected`,r),a}finally{e.player.dispatch(`google-cast-prompt-close`,{trigger:r??n??t})}}async load(e){if(!this.#e)throw Error(`[vidstack] google cast player was not initialized`);return new(await(Promise.resolve().then(()=>(Dxe(),Exe)))).GoogleCastProvider(this.#e,e)}async#t(e){if(Sxe())return;let t=e.player.createEvent(`google-cast-load-start`);e.player.dispatch(t),await ZN(xxe()),await customElements.whenDefined(`google-cast-launcher`);let n=e.player.createEvent(`google-cast-loaded`,{trigger:t});if(e.player.dispatch(n),!Cxe())throw this.#a(`CAST_NOT_AVAILABLE`,`Google Cast not available on this platform.`);return n}async#n(e){this.#r(e);let t=await this.cast.requestSession();if(t)throw this.#a(t.toUpperCase(),PL(t))}#r(e){this.cast?.setOptions({...wxe(),...e})}#i(e,t,n){let r={type:`google-cast`,state:t};e.notify(`remote-playback-change`,r,n)}#a(e,t){let n=Error(t);return n.code=e,n}}}));function BL(e){if(CI.fullscreenElement===e)return!0;try{return e.matches(CI.fullscreenPseudoClass)}catch{return!1}}function VL(){if(!QL)throw Error(`[vidstack] no fullscreen API`)}function HL(e){return!Uj(e)&&`width`in e&&`height`in e&&Hj(e.width)&&Hj(e.height)}function UL(e,t=!1){let n=t?nR:rR;tR.reset(e,e=>n.has(e)),_j()}function WL(e,t){let n=e+t.clipStartTime(),r=n<=t.seekableStart(),i=n>=t.seekableEnd();return r?t.seekableStart():i?t.seekableEnd():t.isLiveDVR()&&t.liveDVRWindow()>0&&n<t.seekableEnd()-t.liveDVRWindow()?t.bufferedStart():Math.min(Math.max(t.seekableStart()+.1,n),t.seekableEnd()-.1)}function Axe(e){return e instanceof HTMLAudioElement}function jxe(e){return e instanceof HTMLVideoElement}function Mxe(e){return Axe(e)||jxe(e)}function Nxe(e){return e.replace(/Shift\+(\d)/g,(e,t)=>yR[t-1])}function Pxe(e){for(let t of hR)if(e[t.toLowerCase()+`Key`])return!0;return!1}function GL(e,t){if(!(e&&t))throw Error(`[vidstack] media not ready`)}function KL(e,t){if(!t?.supported)throw Error(`[vidstack] no fullscreen support`)}function Fxe(e){if(!(!Wbe()||!e))throw Error(`[vidstack] autoplay blocked`)}function Ixe(e,t){return fetch(e,t).then(e=>e.text()).then(e=>/type="static"/.test(e)?`on-demand`:`live`)}function qL(e,t){return fetch(e,t).then(e=>e.text()).then(n=>{let r=Lxe(n);if(r)return qL(/^https?:/.test(r)?r:new URL(r,e).href,t);let i=/EXT-X-PLAYLIST-TYPE:\s*VOD/.test(n)?`on-demand`:`live`;return i===`live`&&Rxe(n)>=10&&(/#EXT-X-DVR-ENABLED:\s*true/.test(n)||n.includes(`#EXT-X-DISCONTINUITY`))?`live:dvr`:i})}function Lxe(e){let t=e.match(/#EXT-X-STREAM-INF:[^\n]+(\n[^\n]+)*/g);return t?t[0].split(`
|
|
1383
1383
|
`)[1].trim():null}function Rxe(e){let t=e.split(`
|
|
1384
|
-
`);for(let e of t)if(e.startsWith(`#EXT-X-TARGETDURATION`)){let t=parseFloat(e.split(`:`)[1]);if(!isNaN(t))return t}return-1}function JL(e){return(Kj(e)?e:[e]).map(e=>Uj(e)?{src:e,type:YL(e)}:{...e,type:YL(e.src,e.type)})}function YL(e,t){return Uj(t)&&t.length?t:Uj(e)&&UR.has(e)?UR.get(e):!t&&kN({src:e,type:``})?`application/x-mpegurl`:!t&&AN({src:e,type:``})?`application/dash+xml`:!Uj(e)||e.startsWith(`blob:`)?`video/object`:e.includes(`youtube`)||e.includes(`youtu.be`)?`video/youtube`:e.includes(`vimeo`)&&!e.includes(`progressive_redirect`)&&!e.includes(`.m3u8`)?`video/vimeo`:`?`}function XL(e,t){return e?.src===t?.src&&e?.type===t?.type}var ZL,QL,$L,eR,tR,nR,rR,iR,aR,oR,sR,cR,lR,uR,dR,fR,pR,mR,hR,gR,_R,vR,yR,bR,xR,SR,CR,wR,TR,ER,DR,OR,kR,AR,jR,MR,NR,PR,FR,IR,LR,RR,zR,BR,VR,HR,UR,WR,GR,KR,qR,zxe=F((()=>{hN(),vN(),GN(),YN(),eP(),IF(),zF(),UF(),oI(),cI(),dI(),gI(),Gbe(),ZL=class extends LM{items=[];[gN.readonly]=!1;get length(){return this.items.length}get readonly(){return this[gN.readonly]}indexOf(e){return this.items.indexOf(e)}getById(e){return e===``?null:this.items.find(t=>t.id===e)??null}toArray(){return[...this.items]}[Symbol.iterator](){return this.items.values()}[gN.add](e,t){let n=this.items.length;``+n in this||Object.defineProperty(this,n,{get(){return this.items[n]}}),!this.items.includes(e)&&(this.items.push(e),this.dispatchEvent(new FM(`add`,{detail:e,trigger:t})))}[gN.remove](e,t){let n=this.items.indexOf(e);n>=0&&(this[gN.onRemove]?.(e,t),this.items.splice(n,1),this.dispatchEvent(new FM(`remove`,{detail:e,trigger:t})))}[gN.reset](e){for(let t of[...this.items])this[gN.remove](t,e);this.items=[],this[gN.setReadonly](!1,e),this[gN.onReset]?.()}[gN.setReadonly](e,t){this[gN.readonly]!==e&&(this[gN.readonly]=e,this.dispatchEvent(new FM(`readonly-change`,{detail:e,trigger:t})))}},QL=CI.fullscreenEnabled,$L=class extends GM{#e=!1;#t=!1;get active(){return this.#t}get supported(){return QL}onConnect(){new RM(CI).add(`fullscreenchange`,this.#r.bind(this)).add(`fullscreenerror`,this.#i.bind(this)),xj(this.#n.bind(this))}#n(){QL&&this.exit().catch(Rj)}#r(e){let t=BL(this.el);t!==this.#t&&(t||(this.#e=!1),this.#t=t,this.dispatch(`fullscreen-change`,{detail:t,trigger:e}))}#i(e){this.#e&&=(this.dispatch(`fullscreen-error`,{detail:null,trigger:e}),!1)}async enter(){try{return this.#e=!0,!this.el||BL(this.el)?void 0:(VL(),CI.requestFullscreen(this.el))}catch(e){throw this.#e=!1,e}}async exit(){if(!(!this.el||!BL(this.el)))return VL(),CI.exitFullscreen()}},eR=class e extends GM{#e=Ij(this.#o());#t=Ij(!1);#n;get type(){return this.#e()}get locked(){return this.#t()}get portrait(){return this.#e().startsWith(`portrait`)}get landscape(){return this.#e().startsWith(`landscape`)}static supported=yN();get supported(){return e.supported}onConnect(){if(this.supported)qj(screen.orientation,`change`,this.#i.bind(this));else{let e=window.matchMedia(`(orientation: landscape)`);e.onchange=this.#i.bind(this),xj(()=>e.onchange=null)}xj(this.#r.bind(this))}async#r(){this.supported&&this.#t()&&await this.unlock()}#i(e){this.#e.set(this.#o()),this.dispatch(`orientation-change`,{detail:{orientation:J(this.#e),lock:this.#n},trigger:e})}async lock(e){J(this.#t)||this.#n===e||(this.#a(),await screen.orientation.lock(e),this.#t.set(!0),this.#n=e)}async unlock(){J(this.#t)&&(this.#a(),this.#n=void 0,await screen.orientation.unlock(),this.#t.set(!1))}#a(){if(!this.supported)throw Error(`[vidstack] no orientation API`)}#o(){return this.supported?window.screen.orientation.type:window.innerWidth>=window.innerHeight?`landscape-primary`:`portrait-primary`}},tR=new qM({artist:``,artwork:null,audioTrack:null,audioTracks:[],autoPlay:!1,autoPlayError:null,audioGain:null,buffered:new JN,canLoad:!1,canLoadPoster:!1,canFullscreen:!1,canOrientScreen:yN(),canPictureInPicture:!1,canPlay:!1,clipStartTime:0,clipEndTime:0,controls:!1,get iOSControls(){return PN&&this.mediaType===`video`&&(!this.playsInline||!CI.fullscreenEnabled&&this.fullscreen)},get nativeControls(){return this.controls||this.iOSControls},controlsVisible:!1,get controlsHidden(){return!this.controlsVisible},crossOrigin:null,ended:!1,error:null,fullscreen:!1,get loop(){return this.providedLoop||this.userPrefersLoop},logLevel:`silent`,mediaType:`unknown`,muted:!1,paused:!0,played:new JN,playing:!1,playsInline:!1,pictureInPicture:!1,preload:`metadata`,playbackRate:1,qualities:[],quality:null,autoQuality:!1,canSetQuality:!0,canSetPlaybackRate:!0,canSetVolume:!1,canSetAudioGain:!1,seekable:new JN,seeking:!1,source:{src:``,type:``},sources:[],started:!1,textTracks:[],textTrack:null,get hasCaptions(){return this.textTracks.filter(MF).length>0},volume:1,waiting:!1,realCurrentTime:0,get currentTime(){return this.ended?this.duration:this.clipStartTime>0?Math.max(0,Math.min(this.realCurrentTime-this.clipStartTime,this.duration)):this.realCurrentTime},providedDuration:-1,intrinsicDuration:0,get duration(){return this.seekableWindow},get title(){return this.providedTitle||this.inferredTitle},get poster(){return this.providedPoster||this.inferredPoster},get viewType(){return this.providedViewType===`unknown`?this.inferredViewType:this.providedViewType},get streamType(){return this.providedStreamType===`unknown`?this.inferredStreamType:this.providedStreamType},get currentSrc(){return this.source},get bufferedStart(){let e=KN(this.buffered)??0;return Math.max(e,this.clipStartTime)},get bufferedEnd(){let e=qN(this.buffered)??0;return Math.min(this.seekableEnd,Math.max(0,e-this.clipStartTime))},get bufferedWindow(){return Math.max(0,this.bufferedEnd-this.bufferedStart)},get seekableStart(){if(this.isLiveDVR&&this.liveDVRWindow>0)return Math.max(0,this.seekableEnd-this.liveDVRWindow);let e=KN(this.seekable)??0;return Math.max(e,this.clipStartTime)},get seekableEnd(){if(this.providedDuration>0)return this.providedDuration;let e=this.liveSyncPosition>0?this.liveSyncPosition:this.canPlay?qN(this.seekable)??1/0:0;return this.clipEndTime>0?Math.min(this.clipEndTime,e):e},get seekableWindow(){let e=this.seekableEnd-this.seekableStart;return isNaN(e)?1/0:Math.max(0,e)},canAirPlay:!1,canGoogleCast:!1,remotePlaybackState:`disconnected`,remotePlaybackType:`none`,remotePlaybackLoader:null,remotePlaybackInfo:null,get isAirPlayConnected(){return this.remotePlaybackType===`airplay`&&this.remotePlaybackState===`connected`},get isGoogleCastConnected(){return this.remotePlaybackType===`google-cast`&&this.remotePlaybackState===`connected`},pointer:`fine`,orientation:`landscape`,width:0,height:0,mediaWidth:0,mediaHeight:0,lastKeyboardAction:null,userBehindLiveEdge:!1,liveEdgeTolerance:10,minLiveDVRWindow:60,get canSeek(){return/unknown|on-demand|:dvr/.test(this.streamType)&&Number.isFinite(this.duration)&&(!this.isLiveDVR||this.duration>=this.liveDVRWindow)},get live(){return this.streamType.includes(`live`)||!Number.isFinite(this.duration)},get liveEdgeStart(){return this.live&&Number.isFinite(this.seekableEnd)?Math.max(0,this.seekableEnd-this.liveEdgeTolerance):0},get liveEdge(){return this.live&&(!this.canSeek||!this.userBehindLiveEdge&&this.currentTime>=this.liveEdgeStart)},get liveEdgeWindow(){return this.live&&Number.isFinite(this.seekableEnd)?this.seekableEnd-this.liveEdgeStart:0},get isLiveDVR(){return/:dvr/.test(this.streamType)},get liveDVRWindow(){return Math.max(this.inferredLiveDVRWindow,this.minLiveDVRWindow)},autoPlaying:!1,providedTitle:``,inferredTitle:``,providedLoop:!1,userPrefersLoop:!1,providedPoster:``,inferredPoster:``,inferredViewType:`unknown`,providedViewType:`unknown`,providedStreamType:`unknown`,inferredStreamType:`unknown`,liveSyncPosition:null,inferredLiveDVRWindow:0,savedState:null}),nR=new Set([`autoPlayError`,`autoPlaying`,`buffered`,`canPlay`,`error`,`paused`,`played`,`playing`,`seekable`,`seeking`,`waiting`]),rR=new Set([...nR,`ended`,`inferredPoster`,`inferredStreamType`,`inferredTitle`,`intrinsicDuration`,`inferredLiveDVRWindow`,`liveSyncPosition`,`realCurrentTime`,`savedState`,`started`,`userBehindLiveEdge`]),iR=class{#e=null;#t=null;#n=-1;#r;constructor(e=void 0){this.#r=e}setTarget(e){this.#e=e}getPlayer(e){return this.#t||(e??this.#e)?.dispatchEvent(new FM(`find-media-player`,{detail:e=>void(this.#t=e),bubbles:!0,composed:!0})),this.#t}setPlayer(e){this.#t=e}startLoading(e){this.#i(`media-start-loading`,e)}startLoadingPoster(e){this.#i(`media-poster-start-loading`,e)}requestAirPlay(e){this.#i(`media-airplay-request`,e)}requestGoogleCast(e){this.#i(`media-google-cast-request`,e)}play(e){this.#i(`media-play-request`,e)}pause(e){this.#i(`media-pause-request`,e)}mute(e){this.#i(`media-mute-request`,e)}unmute(e){this.#i(`media-unmute-request`,e)}enterFullscreen(e,t){this.#i(`media-enter-fullscreen-request`,t,e)}exitFullscreen(e,t){this.#i(`media-exit-fullscreen-request`,t,e)}lockScreenOrientation(e,t){this.#i(`media-orientation-lock-request`,t,e)}unlockScreenOrientation(e){this.#i(`media-orientation-unlock-request`,e)}enterPictureInPicture(e){this.#i(`media-enter-pip-request`,e)}exitPictureInPicture(e){this.#i(`media-exit-pip-request`,e)}seeking(e,t){this.#i(`media-seeking-request`,t,e)}seek(e,t){this.#i(`media-seek-request`,t,e)}seekToLiveEdge(e){this.#i(`media-live-edge-request`,e)}changeDuration(e,t){this.#i(`media-duration-change-request`,t,e)}changeClipStart(e,t){this.#i(`media-clip-start-change-request`,t,e)}changeClipEnd(e,t){this.#i(`media-clip-end-change-request`,t,e)}changeVolume(e,t){this.#i(`media-volume-change-request`,t,Math.max(0,Math.min(1,e)))}changeAudioTrack(e,t){this.#i(`media-audio-track-change-request`,t,e)}changeQuality(e,t){this.#i(`media-quality-change-request`,t,e)}requestAutoQuality(e){this.changeQuality(-1,e)}changeTextTrackMode(e,t,n){this.#i(`media-text-track-change-request`,n,{index:e,mode:t})}changePlaybackRate(e,t){this.#i(`media-rate-change-request`,t,e)}changeAudioGain(e,t){this.#i(`media-audio-gain-change-request`,t,e)}resumeControls(e){this.#i(`media-resume-controls-request`,e)}pauseControls(e){this.#i(`media-pause-controls-request`,e)}togglePaused(e){let t=this.getPlayer(e?.target);t&&(t.state.paused?this.play(e):this.pause(e))}toggleControls(e){let t=this.getPlayer(e?.target);t&&(t.controls.showing?t.controls.hide(0,e):t.controls.show(0,e))}toggleMuted(e){let t=this.getPlayer(e?.target);t&&(t.state.muted?this.unmute(e):this.mute(e))}toggleFullscreen(e,t){let n=this.getPlayer(t?.target);n&&(n.state.fullscreen?this.exitFullscreen(e,t):this.enterFullscreen(e,t))}togglePictureInPicture(e){let t=this.getPlayer(e?.target);t&&(t.state.pictureInPicture?this.exitPictureInPicture(e):this.enterPictureInPicture(e))}showCaptions(e){let t=this.getPlayer(e?.target);if(!t)return;let n=t.state.textTracks,r=this.#n;(!n[r]||!MF(n[r]))&&(r=-1),r===-1&&(r=n.findIndex(e=>MF(e)&&e.default)),r===-1&&(r=n.findIndex(e=>MF(e))),r>=0&&this.changeTextTrackMode(r,`showing`,e),this.#n=-1}disableCaptions(e){let t=this.getPlayer(e?.target);if(!t)return;let n=t.state.textTracks,r=t.state.textTrack;if(r){let t=n.indexOf(r);this.changeTextTrackMode(t,`disabled`,e),this.#n=t}}toggleCaptions(e){let t=this.getPlayer(e?.target);t&&(t.state.textTrack?this.disableCaptions():this.showCaptions())}userPrefersLoopChange(e,t){this.#i(`media-user-loop-change-request`,t,e)}#i(e,t,n){let r=new FM(e,{bubbles:!0,composed:!0,cancelable:!0,detail:n,trigger:t}),i=t?.target||null;i&&i instanceof KM&&(i=i.el),i=!i||i===document||i===window||i===document.body||this.#t?.el&&i instanceof Node&&!this.#t.el.contains(i)?this.#e??this.getPlayer()?.el:i??this.#e,this.#t?e===`media-play-request`&&!this.#t.state.canLoad?i?.dispatchEvent(r):this.#t.canPlayQueue.enqueue(e,()=>i?.dispatchEvent(r)):i?.dispatchEvent(r)}},aR=class{playerId=`vds-player`;mediaId=null;#e={volume:null,muted:null,audioGain:null,time:null,lang:null,captions:null,rate:null,quality:null};async getVolume(){return this.#e.volume}async setVolume(e){this.#e.volume=e,this.save()}async getMuted(){return this.#e.muted}async setMuted(e){this.#e.muted=e,this.save()}async getTime(){return this.#e.time}async setTime(e,t){let n=e<0;this.#e.time=n?null:e,n||t?this.saveTime():this.saveTimeThrottled()}async getLang(){return this.#e.lang}async setLang(e){this.#e.lang=e,this.save()}async getCaptions(){return this.#e.captions}async setCaptions(e){this.#e.captions=e,this.save()}async getPlaybackRate(){return this.#e.rate}async setPlaybackRate(e){this.#e.rate=e,this.save()}async getAudioGain(){return this.#e.audioGain}async setAudioGain(e){this.#e.audioGain=e,this.save()}async getVideoQuality(){return this.#e.quality}async setVideoQuality(e){this.#e.quality=e,this.save()}onChange(e,t,n=`vds-player`){let r=n?localStorage.getItem(n):null,i=t?localStorage.getItem(t):null;this.playerId=n,this.mediaId=t,this.#e={volume:null,muted:null,audioGain:null,lang:null,captions:null,rate:null,quality:null,...r?JSON.parse(r):{},time:i?+i:null}}save(){if(!this.playerId)return;let e=JSON.stringify({...this.#e,time:void 0});localStorage.setItem(this.playerId,e)}saveTimeThrottled=YM(this.saveTime.bind(this),1e3);saveTime(){if(!this.mediaId)return;let e=(this.#e.time??0).toString();localStorage.setItem(this.mediaId,e)}},oR=Symbol(0),sR=class extends ZL{get selected(){return this.items.find(e=>e.selected)??null}get selectedIndex(){return this.items.findIndex(e=>e.selected)}[gN.onRemove](e,t){this[gN.select](e,!1,t)}[gN.add](e,t){e[oR]=!1,Object.defineProperty(e,"selected",{get(){return this[oR]},set:t=>{this.readonly||(this[gN.onUserSelect]?.(),this[gN.select](e,t))}}),super[gN.add](e,t)}[gN.select](e,t,n){if(t===e?.[oR])return;let r=this.selected;e&&(e[oR]=t),(t?r!==e:r===e)&&(r&&(r[oR]=!1),this.dispatchEvent(new FM(`change`,{detail:{prev:r,current:this.selected},trigger:n})))}},cR=class extends sR{},lR=class{priority=0;#e=!0;#t=null;#n=null;#r=new Set;canRender(e,t){return!!t}attach(e){this.#t=e,e&&(e.textTracks.onchange=this.#s.bind(this))}addTrack(e){this.#r.add(e),this.#i(e)}removeTrack(e){e[NF.native]?.remove?.(),e[NF.native]=null,this.#r.delete(e)}changeTrack(e){let t=e?.[NF.native];t&&t.track.mode!==`showing`&&(t.track.mode=`showing`),this.#n=e}setDisplay(e){this.#e=e,this.#s()}detach(){this.#t&&(this.#t.textTracks.onchange=null);for(let e of this.#r)this.removeTrack(e);this.#r.clear(),this.#t=null,this.#n=null}#i(e){if(!this.#t)return;let t=e[NF.native]??=this.#a(e);rI(t)&&(this.#t.append(t),t.track.mode=t.default?`showing`:`disabled`)}#a(e){let t=document.createElement(`track`),n=e.default||e.mode===`showing`,r=e.src&&e.type===`vtt`;return t.id=e.id,t.src=r?e.src:``,t.label=e.label,t.kind=e.kind,t.default=n,e.language&&(t.srclang=e.language),n&&!r&&this.#o(e,t.track),t}#o(e,t){if(!(e.src&&e.type===`vtt`||t.cues?.length))for(let n of e.cues)t.addCue(n)}#s(e){for(let t of this.#r){let n=t[NF.native];if(!n)continue;if(!this.#e){n.track.mode=n.managed?`hidden`:`disabled`;continue}let r=n.track.mode===`showing`;r&&this.#o(t,n.track),t.setMode(r?`showing`:`disabled`,e)}}},uR=class{#e=null;#t;#n=[];#r;#i=!1;#a=null;#o=null;constructor(e){this.#r=e;let t=e.textTracks;this.#t=t,Y(this.#s.bind(this)),xj(this.#p.bind(this)),new RM(t).add(`add`,this.#u.bind(this)).add(`remove`,this.#d.bind(this)).add(`mode-change`,this.#f.bind(this))}#s(){let{nativeControls:e}=this.#r.$state;this.#i=e(),this.#f()}add(e){this.#n.push(e),gj(this.#f.bind(this))}remove(e){e.detach(),this.#n.splice(this.#n.indexOf(e),1),gj(this.#f.bind(this))}attachVideo(e){requestAnimationFrame(()=>{if(this.#e=e,e){this.#a=new lR,this.#a.attach(e);for(let e of this.#t)this.#c(e)}this.#f()})}#c(e){MF(e)&&this.#a?.addTrack(e)}#l(e){MF(e)&&this.#a?.removeTrack(e)}#u(e){this.#c(e.detail)}#d(e){this.#l(e.detail)}#f(){let e=this.#t.selected;if(this.#e&&(this.#i||e?.[NF.nativeHLS])){this.#o?.changeTrack(null),this.#a?.setDisplay(!0),this.#a?.changeTrack(e);return}if(this.#a?.setDisplay(!1),this.#a?.changeTrack(null),!e){this.#o?.changeTrack(null);return}let t=this.#n.sort((e,t)=>e.priority-t.priority).find(t=>t.canRender(e,this.#e));this.#o!==t&&(this.#o?.detach(),t?.attach(this.#e),this.#o=t??null),t?.changeTrack(e)}#p(){this.#a?.detach(),this.#a=null,this.#o?.detach(),this.#o=null}},dR=class extends ZL{#e=!1;#t={};#n=null;#r=null;[NF.crossOrigin];constructor(){super()}get selected(){return this.items.find(e=>e.mode===`showing`&&MF(e))??null}get selectedIndex(){let e=this.selected;return e?this.indexOf(e):-1}get preferredLang(){return this.#r}set preferredLang(e){this.#r=e,this.#l(e)}add(e,t){let n=e instanceof PF?e:new PF(e),r=e.kind===`captions`||e.kind===`subtitles`?`captions`:e.kind;return this.#t[r]&&e.default&&delete e.default,n.addEventListener(`mode-change`,this.#o),this[gN.add](n,t),n[NF.crossOrigin]=this[NF.crossOrigin],this.#e&&n[NF.canLoad](),e.default&&(this.#t[r]=n),this.#i(),this}remove(e,t){if(this.#a=e,this.items.includes(e))return e===this.#t[e.kind]&&delete this.#t[e.kind],e.mode=`disabled`,e[NF.onModeChange]=null,e.removeEventListener(`mode-change`,this.#o),this[gN.remove](e,t),this.#a=null,this}clear(e){for(let t of[...this.items])this.remove(t,e);return this}getByKind(e){let t=Array.isArray(e)?e:[e];return this.items.filter(e=>t.includes(e.kind))}[NF.canLoad](){if(!this.#e){for(let e of this.items)e[NF.canLoad]();this.#e=!0,this.#i()}}#i=XM(async()=>{if(!this.#e)return;!this.#r&&this.#n&&(this.#r=await this.#n.getLang());let e=await this.#n?.getCaptions();for(let t of[[`captions`,`subtitles`],`chapters`,`descriptions`,`metadata`]){let n=this.getByKind(t);if(n.find(e=>e.mode===`showing`))continue;let r=this.#r?n.find(e=>e.language===this.#r):null,i=Kj(t)?this.#t[t.find(e=>this.#t[e])||``]:this.#t[t],a=r??i,o=a&&MF(a);a&&(!o||e!==!1)&&(a.mode=`showing`,o&&this.#c(a))}},300);#a=null;#o=this.#s.bind(this);#s(e){let t=e.detail;if(this.#n&&MF(t)&&t!==this.#a&&this.#c(t),t.mode===`showing`){let e=MF(t)?[`captions`,`subtitles`]:[t.kind];for(let n of this.items)n.mode===`showing`&&n!=t&&e.includes(n.kind)&&(n.mode=`disabled`)}this.dispatchEvent(new FM(`mode-change`,{detail:e.detail,trigger:e}))}#c(e){e.mode!==`disabled`&&this.#l(e.language),this.#n?.setCaptions?.(e.mode===`showing`)}#l(e){this.#n?.setLang?.(this.#r=e)}setStorage(e){this.#n=e}},fR=class extends sR{#e=!1;switch=`current`;get auto(){return this.#e||this.readonly}[sI.enableAuto];[gN.onUserSelect](){this[sI.setAuto](!1)}[gN.onReset](e){this[sI.enableAuto]=void 0,this[sI.setAuto](!1,e)}autoSelect(e){this.readonly||this.#e||!this[sI.enableAuto]||(this[sI.enableAuto]?.(e),this[sI.setAuto](!0,e))}getBySrc(e){return this.items.find(t=>t.src===e)}[sI.setAuto](e,t){this.#e!==e&&(this.#e=e,this.dispatchEvent(new FM(`auto-change`,{detail:e,trigger:t})))}},pR=class extends GM{},mR={togglePaused:`k Space`,toggleMuted:`m`,toggleFullscreen:`f`,togglePictureInPicture:`i`,toggleCaptions:`c`,seekBackward:`j J ArrowLeft`,seekForward:`l L ArrowRight`,volumeUp:`ArrowUp`,volumeDown:`ArrowDown`,speedUp:`>`,slowDown:`<`},hR=new Set([`Shift`,`Alt`,`Meta`,`Ctrl`]),gR=`button, [role="button"]`,_R=`input, textarea, select, [contenteditable], [role^="menuitem"], [role="timer"]`,vR=class extends pR{#e;constructor(e){super(),this.#e=e}onConnect(){Y(this.#t.bind(this))}#t(){let{keyDisabled:e,keyTarget:t}=this.$props;if(e())return;let n=t()===`player`?this.el:document,r=Ij(!1);n===this.el?new RM(this.el).add(`focusin`,()=>r.set(!0)).add(`focusout`,e=>{this.el.contains(e.target)||r.set(!1)}):(J(r)||r.set(document.querySelector(`[data-media-player]`)===this.el),qj(document,`focusin`,e=>{let t=e.composedPath().find(e=>e instanceof Element&&e.localName===`media-player`);t!==void 0&&r.set(this.el===t)})),Y(()=>{r()&&new RM(n).add(`keyup`,this.#n.bind(this)).add(`keydown`,this.#r.bind(this)).add(`keydown`,this.#i.bind(this),{capture:!0})})}#n(e){let t=document.activeElement;if(!e.key||!this.$state.canSeek()||t?.matches(_R))return;let{method:n,value:r}=this.#a(e);if(!Uj(r)&&!Kj(r)){r?.onKeyUp?.({event:e,player:this.#e.player,remote:this.#e.remote}),r?.callback?.(e,this.#e.remote);return}n?.startsWith(`seek`)&&(e.preventDefault(),e.stopPropagation(),this.#c?(this.#l(e,n===`seekForward`),this.#c=null):(this.#e.remote.seek(this.#o,e),this.#o=void 0)),n?.startsWith(`volume`)&&this.el.querySelector(`[data-media-volume-slider]`)?.dispatchEvent(new KeyboardEvent(`keyup`,{key:n===`volumeUp`?`Up`:`Down`,shiftKey:e.shiftKey,trigger:e}))}#r(e){if(!e.key||hR.has(e.key))return;let t=document.activeElement;if(t?.matches(_R)||Zj(e)&&t?.matches(gR))return;let{method:n,value:r}=this.#a(e),i=!e.metaKey&&/^[0-9]$/.test(e.key);if(!Uj(r)&&!Kj(r)&&!i){r?.onKeyDown?.({event:e,player:this.#e.player,remote:this.#e.remote}),r?.callback?.(e,this.#e.remote);return}if(!n&&i&&!Pxe(e)){e.preventDefault(),e.stopPropagation(),this.#e.remote.seek(this.$state.duration()/10*Number(e.key),e);return}if(n){switch(e.preventDefault(),e.stopPropagation(),n){case`seekForward`:case`seekBackward`:this.#u(e,n,n===`seekForward`);break;case`volumeUp`:case`volumeDown`:let t=this.el.querySelector(`[data-media-volume-slider]`);if(t)t.dispatchEvent(new KeyboardEvent(`keydown`,{key:n===`volumeUp`?`Up`:`Down`,shiftKey:e.shiftKey,trigger:e}));else{let t=e.shiftKey?.1:.05;this.#e.remote.changeVolume(this.$state.volume()+(n===`volumeUp`?+t:-t),e)}break;case`toggleFullscreen`:this.#e.remote.toggleFullscreen(`prefer-media`,e);break;case`speedUp`:case`slowDown`:let r=this.$state.playbackRate();this.#e.remote.changePlaybackRate(Math.max(.25,Math.min(2,r+(n===`speedUp`?.25:-.25))),e);break;default:this.#e.remote[n]?.(e)}this.$state.lastKeyboardAction.set({action:n,event:e})}}#i(e){Mxe(e.target)&&this.#a(e).method&&e.preventDefault()}#a(e){let t={...this.$props.keyShortcuts(),...this.#e.ariaKeys},n=Object.keys(t).find(n=>{let r=t[n],i=Kj(r)?r.join(` `):Uj(r)?r:r?.keys;return((Kj(i)?i:i?.split(` `))?.map(e=>Nxe(e).replace(/Control/g,`Ctrl`).split(`+`)))?.some(t=>{let n=new Set(t.filter(e=>hR.has(e)));`<>`.includes(e.key)&&n.add(`Shift`);for(let t of hR){let r=t.toLowerCase()+`Key`;if(!n.has(t)&&e[r])return!1}return t.every(t=>hR.has(t)?e[t.toLowerCase()+`Key`]:e.key===t.replace(`Space`,` `))})});return{method:n,value:n?t[n]:null}}#o;#s(e,t){let n=e.shiftKey?10:5;return this.#o=Math.max(0,Math.min((this.#o??this.$state.currentTime())+(t===`seekForward`?+n:-n),this.$state.duration()))}#c=null;#l(e,t){this.#c?.dispatchEvent(new KeyboardEvent(e.type,{key:t?`Right`:`Left`,shiftKey:e.shiftKey,trigger:e}))}#u(e,t,n){this.$state.canSeek()&&(this.#c||=this.el.querySelector(`[data-media-time-slider]`),this.#c?this.#l(e,n):this.#e.remote.seeking(this.#s(e,t),e))}},yR=[`!`,`@`,`#`,`$`,`%`,`^`,`&`,`*`,`(`,`)`],bR=class extends pR{#e=-2;#t=!1;#n=Ij(!1);#r=Ij(!1);#i=null;#a=Ij(!0);defaultDelay=2e3;get canIdle(){return this.#a()}set canIdle(e){this.#a.set(e)}get hideOnMouseLeave(){let{hideControlsOnMouseLeave:e}=this.$props;return this.#n()||e()}set hideOnMouseLeave(e){this.#n.set(e)}get showing(){return this.$state.controlsVisible()}show(e=0,t){this.#m(),this.#t||this.#g(!0,e,t)}hide(e=this.defaultDelay,t){this.#m(),this.#t||this.#g(!1,e,t)}pause(e){this.#t=!0,this.#m(),this.#g(!0,0,e)}resume(e){this.#t=!1,!this.$state.paused()&&this.#g(!1,this.defaultDelay,e)}onConnect(){Y(this.#o.bind(this))}#o(){let{viewType:e}=this.$state;if(!this.el||!this.#a())return;if(e()===`audio`){this.show();return}Y(this.#s.bind(this)),Y(this.#c.bind(this));let t=this.#l.bind(this),n=this.#u.bind(this),r=this.#d.bind(this);new RM(this.el).add(`can-play`,e=>this.show(0,e)).add(`play`,t).add(`pause`,n).add(`end`,r).add(`auto-play-fail`,n)}#s(){if(!this.el)return;let{started:e,pointer:t,paused:n}=this.$state;if(!e()||t()!==`fine`)return;let r=new RM(this.el),i=this.hideOnMouseLeave;(!i||!this.#r())&&Y(()=>{n()||r.add(`pointermove`,this.#h.bind(this))}),i&&r.add(`mouseenter`,this.#f.bind(this)).add(`mouseleave`,this.#p.bind(this))}#c(){let{paused:e,started:t,autoPlayError:n}=this.$state;if(e()||n()&&!t())return;let r=this.#h.bind(this);Y(()=>{if(!this.el)return;let e=this.$state.pointer()===`coarse`,t=new RM(this.el),n=[e?`touchend`:`pointerup`,`keydown`];for(let e of n)t.add(e,r,{passive:!1})})}#l(e){e.triggers.hasType(`ended`)||(this.show(0,e),this.hide(void 0,e))}#u(e){this.show(0,e)}#d(e){let{loop:t}=this.$state;t()&&this.hide(0,e)}#f(e){this.#r.set(!1),this.show(0,e),this.hide(void 0,e)}#p(e){this.#r.set(!0),this.hide(0,e)}#m(){window.clearTimeout(this.#e),this.#e=-1}#h(e){e.MEDIA_GESTURE||this.#t||ZF(e)||(Xj(e)&&(e.key===`Escape`?(this.el?.focus(),this.#i=null):this.#i&&(e.preventDefault(),requestAnimationFrame(()=>{this.#i?.focus(),this.#i=null}))),this.show(0,e),this.hide(this.defaultDelay,e))}#g(e,t,n){if(t===0){this.#_(e,n);return}this.#e=window.setTimeout(()=>{this.scope&&this.#_(e&&!this.#t,n)},t)}#_(e,t){this.$state.controlsVisible()!==e&&(this.$state.controlsVisible.set(e),!e&&document.activeElement&&this.el?.contains(document.activeElement)&&(this.#i=document.activeElement,requestAnimationFrame(()=>{this.el?.focus({preventScroll:!0})})),this.dispatch(`controls-change`,{detail:e,trigger:t}))}},xR=class{name=`audio`;target;canPlay(e){return DN(e)?!Uj(e.src)||e.type===`?`||bN(this.target,e.type):!1}mediaType(){return`audio`}async load(e){return new(await(Promise.resolve().then(()=>(Zbe(),Xbe)))).AudioProvider(this.target,e)}},SR=class{name=`video`;target;canPlay(e){return ON(e)?!Uj(e.src)||e.type===`?`||xN(this.target,e.type):!1}mediaType(){return`video`}async load(e){return new(await(Promise.resolve().then(()=>(exe(),$be)))).VideoProvider(this.target,e)}},CR=class e extends SR{static supported=TN();name=`hls`;canPlay(t){return e.supported&&kN(t)}async load(e){return new(await(Promise.resolve().then(()=>(ixe(),txe)))).HLSProvider(this.target,e)}},wR=class e extends SR{static supported=EN();name=`dash`;canPlay(t){return e.supported&&AN(t)}async load(e){return new(await(Promise.resolve().then(()=>(uxe(),lxe)))).DASHProvider(this.target,e)}},TR=class{name=`vimeo`;target;preconnect(){for(let e of[`https://i.vimeocdn.com`,`https://f.vimeocdn.com`,`https://fresnel.vimeocdn.com`])XN(e)}canPlay(e){return Uj(e.src)&&e.type===`video/vimeo`}mediaType(){return`video`}async load(e){return new(await(Promise.resolve().then(()=>(hxe(),mxe)))).VimeoProvider(this.target,e)}async loadPoster(e,t,n){let{resolveVimeoVideoId:r,getVimeoVideoInfo:i}=await Promise.resolve().then(()=>(vL(),dxe)).then(e=>e.utils_exports);if(!Uj(e.src))return null;let{videoId:a,hash:o}=r(e.src);return a?i(a,n,o).then(e=>e?e.poster:null):null}},ER=class{name=`youtube`;target;preconnect(){for(let e of[`https://www.google.com`,`https://i.ytimg.com`,`https://googleads.g.doubleclick.net`,`https://static.doubleclick.net`])XN(e)}canPlay(e){return Uj(e.src)&&e.type===`video/youtube`}mediaType(){return`video`}async load(e){return new(await(Promise.resolve().then(()=>(bxe(),yxe)))).YouTubeProvider(this.target,e)}async loadPoster(e,t,n){let{findYouTubePoster:r,resolveYouTubeVideoId:i}=await Promise.resolve().then(()=>(EL(),gxe)).then(e=>e.utils_exports),a=Uj(e.src)&&i(e.src);return a?r(a,n):null}},DR=Symbol(0),OR=`autoPlay.canAirPlay.canFullscreen.canGoogleCast.canLoad.canLoadPoster.canPictureInPicture.canPlay.canSeek.ended.fullscreen.isAirPlayConnected.isGoogleCastConnected.live.liveEdge.loop.mediaType.muted.paused.pictureInPicture.playing.playsInline.remotePlaybackState.remotePlaybackType.seeking.started.streamType.viewType.waiting`.split(`.`),kR={artist:``,artwork:null,ariaLabel:``,autoplay:!1,autoPlay:!1,clipStartTime:0,clipEndTime:0,controls:!1,currentTime:0,crossorigin:null,crossOrigin:null,duration:-1,fullscreenOrientation:`landscape`,googleCast:{},load:`visible`,posterLoad:`visible`,logLevel:`silent`,loop:!1,muted:!1,paused:!0,playsinline:!1,playsInline:!1,playbackRate:1,poster:``,preload:`metadata`,preferNativeHLS:!1,src:``,title:``,controlsDelay:2e3,hideControlsOnMouseLeave:!1,viewType:`unknown`,streamType:`unknown`,volume:1,liveEdgeTolerance:10,minLiveDVRWindow:60,keyDisabled:!1,keyTarget:`player`,keyShortcuts:mR,storage:null},AR=class extends pR{#e;#t;constructor(e,t){super(),this.#e=e,this.#t=t}async onAttach(e){let t=this.$props[this.#e]();if(t===`eager`)requestAnimationFrame(this.#t);else if(t===`idle`)Xye(this.#t);else if(t===`visible`){let t,n=new IntersectionObserver(e=>{this.scope&&e[0].isIntersecting&&(t?.(),t=void 0,this.#t())});n.observe(e),t=xj(()=>n.disconnect())}}},jR=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}notify(e,...t){this.#e(new FM(e,{detail:t?.[0],trigger:t?.[1]}))}async ready(e,t){return gj(async()=>{let{logger:n}=this.#t,{autoPlay:r,canPlay:i,started:a,duration:o,seekable:s,buffered:c,remotePlaybackInfo:l,playsInline:u,savedState:d,source:f}=this.#t.$state;if(i())return;let p={duration:e?.duration??o(),seekable:e?.seekable??s(),buffered:e?.buffered??c(),provider:this.#t.$provider()};this.notify(`can-play`,p,t),_j();let m=this.#t.$provider(),{storage:h,qualities:g}=this.#t,{muted:_,volume:v,clipStartTime:y,playbackRate:b}=this.#t.$props;await h?.onLoad?.(f());let x=d()?.currentTime,S=d()?.paused,C=await h?.getTime(),w=x??C??y(),T=S===!1||S!==!0&&!a()&&r();if(m){m.setVolume(await h?.getVolume()??v()),m.setMuted(_()||!!await h?.getMuted());let e=await h?.getAudioGain()??1;e>1&&m.audioGain?.setGain?.(e),m.setPlaybackRate?.(await h?.getPlaybackRate()??b()),m.setPlaysInline?.(u()),w>0&&m.setCurrentTime(w)}let E=await h?.getVideoQuality();if(E&&g.length){let e=null,t=1/0;for(let n of g){let r=Math.abs(E.width-n.width)+Math.abs(E.height-n.height)+(E.bitrate?Math.abs(E.bitrate-(n.bitrate??0)):0);r<t&&(e=n,t=r)}e&&(e.selected=!0)}i()&&T?await this.#n(t):C&&C>0&&this.notify(`started`,void 0,t),l.set(null)})}async#n(e){let{player:t,$state:{autoPlaying:n,muted:r}}=this.#t;n.set(!0);let i=new FM(`auto-play-attempt`,{trigger:e});try{await t.play(i)}catch{}}},MR=class{#e=new Map;enqueue(e,t){this.#e.set(e,t)}serve(e){let t=this.peek(e);return this.#e.delete(e),t}peek(e){return this.#e.get(e)}delete(e){this.#e.delete(e)}clear(){this.#e.clear()}},NR=class{#e=!1;#t=uM();#n=new Map;get size(){return this.#n.size}get isServing(){return this.#e}async waitForFlush(){this.#e||await this.#t.promise}enqueue(e,t){if(this.#e){t();return}this.#n.delete(e),this.#n.set(e,t)}serve(e){this.#n.get(e)?.(),this.#n.delete(e)}start(){this.#r(),this.#e=!0,this.#n.size>0&&this.#r()}stop(){this.#e=!1}reset(){this.stop(),this.#n.clear(),this.#i()}#r(){for(let e of this.#n.keys())this.serve(e);this.#i()}#i(){this.#t.resolve(),this.#t=uM()}},PR=class extends pR{#e;#t;#n;controls;#r;#i;#a;#o=new NR;constructor(e,t,n){super(),this.#e=e,this.#t=t,this.#n=n,this.#a=n.$provider,this.controls=new bR,this.#r=new $L,this.#i=new eR}onAttach(){this.listen(`fullscreen-change`,this.#x.bind(this))}onConnect(e){let t=Object.getOwnPropertyNames(Object.getPrototypeOf(this)),n=new RM(e),r=this.#l.bind(this);for(let e of t)e.startsWith(`media-`)&&n.add(e,r);this.#s(),Y(this.#c.bind(this)),Y(this.#m.bind(this)),Y(this.#h.bind(this)),Y(this.#g.bind(this)),Y(this.#_.bind(this)),Y(this.#v.bind(this)),Y(this.#y.bind(this))}onDestroy(){try{let e=this.createEvent(`destroy`),{pictureInPicture:t,fullscreen:n}=this.$state;n()&&this.exitFullscreen(`prefer-media`,e),t()&&this.exitPictureInPicture(e)}catch{}this.#o.reset()}#s(){let{load:e}=this.$props,{canLoad:t}=this.$state;if(e()!==`play`||t())return;let n=this.listen(`media-play-request`,e=>{this.#u(e),n()})}#c(){let e=this.#a(),t=this.$state.canPlay();return e&&t&&this.#o.start(),()=>{this.#o.stop()}}#l(e){e.stopPropagation(),!e.defaultPrevented&&this[e.type]&&(J(this.#a)?this[e.type](e):this.#o.enqueue(e.type,()=>{J(this.#a)&&this[e.type](e)}))}async play(e){let{canPlay:t,paused:n,autoPlaying:r}=this.$state;if(this.#u(e)||!J(n))return;e&&this.#t.queue.enqueue(`media-play-request`,e);let i=J(r);try{let e=J(this.#a);return GL(e,J(t)),Fxe(i),await e.play()}catch(t){let n=this.createEvent(`play-fail`,{detail:lI(t),trigger:e});throw n.autoPlay=i,this.#e.handle(n),t}}#u(e){let{load:t}=this.$props,{canLoad:n}=this.$state;if(t()===`play`&&!n()){let t=this.createEvent(`media-start-loading`,{trigger:e});return this.dispatchEvent(t),this.#o.enqueue(`media-play-request`,async()=>{try{await this.play(t)}catch{}}),!0}return!1}async pause(e){let{canPlay:t,paused:n}=this.$state;if(!J(n)){e&&this.#t.queue.enqueue(`media-pause-request`,e);try{let e=J(this.#a);return GL(e,J(t)),await e.pause()}catch(e){throw this.#t.queue.delete(`media-pause-request`),e}}}setAudioGain(e,t){let{audioGain:n,canSetAudioGain:r}=this.$state;if(n()===e)return;let i=this.#a();if(!i?.audioGain||!r())throw Error(`[vidstack] audio gain api not available`);t&&this.#t.queue.enqueue(`media-audio-gain-change-request`,t),i.audioGain.setGain(e)}seekToLiveEdge(e){let{canPlay:t,live:n,liveEdge:r,canSeek:i,liveSyncPosition:a,seekableEnd:o,userBehindLiveEdge:s}=this.$state;if(s.set(!1),J(()=>!n()||i()&&r()))return;let c=J(this.#a);GL(c,J(t));let l=o()-2,u=Math.min(l,a()??l);Number.isFinite(u)&&(e&&this.#t.queue.enqueue(`media-seek-request`,e),c.setCurrentTime(u))}#d=!1;async enterFullscreen(e=`prefer-media`,t){let n=this.#f(e);if(KL(e,n),!n.active)return J(this.$state.pictureInPicture)&&(this.#d=!0,await this.exitPictureInPicture(t)),t&&this.#t.queue.enqueue(`media-enter-fullscreen-request`,t),n.enter()}async exitFullscreen(e=`prefer-media`,t){let n=this.#f(e);if(KL(e,n),n.active){t&&this.#t.queue.enqueue(`media-exit-fullscreen-request`,t);try{let e=await n.exit();return this.#d&&J(this.$state.canPictureInPicture)&&await this.enterPictureInPicture(),e}finally{this.#d=!1}}}#f(e){let t=J(this.#a);return e===`prefer-media`&&this.#r.supported||e===`media`?this.#r:t?.fullscreen}async enterPictureInPicture(e){if(this.#p(),!this.$state.pictureInPicture())return e&&this.#t.queue.enqueue(`media-enter-pip-request`,e),await this.#a().pictureInPicture.enter()}async exitPictureInPicture(e){if(this.#p(),this.$state.pictureInPicture()){e&&this.#t.queue.enqueue(`media-exit-pip-request`,e);try{if(document?.pictureInPictureElement&&document.exitPictureInPicture){await document.exitPictureInPicture();return}let e=this.#a();if(e?.pictureInPicture){await e.pictureInPicture.exit();return}let t=document?.querySelectorAll?.(`video`)||[];for(let e of t){if(e===document.pictureInPictureElement&&document.exitPictureInPicture){await document.exitPictureInPicture();return}if(e.webkitPresentationMode===`picture-in-picture`){e.webkitSetPresentationMode(`inline`);return}}}catch{}}}#p(){if(!this.$state.canPictureInPicture())throw Error(`[vidstack] no pip support`)}#m(){this.controls.defaultDelay=this.$props.controlsDelay()}#h(){let{canSetAudioGain:e}=this.$state,t=!!this.#a()?.audioGain?.supported;e.set(t)}#g(){let{canAirPlay:e}=this.$state,t=!!this.#a()?.airPlay?.supported;e.set(t)}#_(){let{canGoogleCast:e,source:t}=this.$state,n=FN&&!NN&&jN(t());e.set(n)}#v(){let{canFullscreen:e}=this.$state,t=this.#r.supported||!!this.#a()?.fullscreen?.supported;e.set(t)}#y(){let{canPictureInPicture:e}=this.$state,t=!!this.#a()?.pictureInPicture?.supported;e.set(t)}async"media-airplay-request"(e){try{await this.requestAirPlay(e)}catch{}}async requestAirPlay(e){try{let t=this.#a()?.airPlay;if(!t?.supported)throw Error(`No AirPlay adapter.`);return e&&this.#t.queue.enqueue(`media-airplay-request`,e),await t.prompt()}catch(e){throw this.#t.queue.delete(`media-airplay-request`),e}}async"media-google-cast-request"(e){try{await this.requestGoogleCast(e)}catch{}}#b;async requestGoogleCast(e){try{let{canGoogleCast:t}=this.$state;if(!J(t)){let e=Error(`Cast not available.`);throw e.code=`CAST_NOT_AVAILABLE`,e}if(XN(`https://www.gstatic.com`),!this.#b){let e=await Promise.resolve().then(()=>(kxe(),Oxe));this.#b=new e.GoogleCastLoader}await this.#b.prompt(this.#n),e&&this.#t.queue.enqueue(`media-google-cast-request`,e);let n=J(this.$state.remotePlaybackState)!==`disconnected`;n&&this.$state.savedState.set({paused:J(this.$state.paused),currentTime:J(this.$state.currentTime)}),this.$state.remotePlaybackLoader.set(n?this.#b:null)}catch(e){throw this.#t.queue.delete(`media-google-cast-request`),e}}"media-clip-start-change-request"(e){let{clipStartTime:t}=this.$state;t.set(e.detail)}"media-clip-end-change-request"(e){let{clipEndTime:t}=this.$state;t.set(e.detail),this.dispatch(`duration-change`,{detail:e.detail,trigger:e})}"media-duration-change-request"(e){let{providedDuration:t,clipEndTime:n}=this.$state;t.set(e.detail),n()<=0&&this.dispatch(`duration-change`,{detail:e.detail,trigger:e})}"media-audio-track-change-request"(e){let{logger:t,audioTracks:n}=this.#n;if(n.readonly)return;let r=n[e.detail];if(r){let t=e.type;this.#t.queue.enqueue(t,e),r.selected=!0}}async"media-enter-fullscreen-request"(e){try{await this.enterFullscreen(e.detail,e)}catch(t){this.#S(t,e)}}async"media-exit-fullscreen-request"(e){try{await this.exitFullscreen(e.detail,e)}catch(t){this.#S(t,e)}}async#x(e){let t=J(this.$props.fullscreenOrientation),n=e.detail;if(!(Bj(t)||t===`none`||!this.#i.supported))if(n){if(this.#i.locked)return;this.dispatch(`media-orientation-lock-request`,{detail:t,trigger:e})}else this.#i.locked&&this.dispatch(`media-orientation-unlock-request`,{trigger:e})}#S(e,t){this.#e.handle(this.createEvent(`fullscreen-error`,{detail:lI(e)}))}async"media-orientation-lock-request"(e){let t=e.type;try{this.#t.queue.enqueue(t,e),await this.#i.lock(e.detail)}catch{this.#t.queue.delete(t)}}async"media-orientation-unlock-request"(e){let t=e.type;try{this.#t.queue.enqueue(t,e),await this.#i.unlock()}catch{this.#t.queue.delete(t)}}async"media-enter-pip-request"(e){try{await this.enterPictureInPicture(e)}catch(t){this.#C(t,e)}}async"media-exit-pip-request"(e){try{await this.exitPictureInPicture(e)}catch(t){this.#C(t,e)}}#C(e,t){this.#e.handle(this.createEvent(`picture-in-picture-error`,{detail:lI(e)}))}"media-live-edge-request"(e){let{live:t,liveEdge:n,canSeek:r}=this.$state;if(!(!t()||r()&&n()))try{this.seekToLiveEdge(e)}catch{this.#t.queue.delete(`media-seek-request`)}}async"media-loop-request"(e){try{this.#t.looping=!0,this.#t.replaying=!0,await this.play(e)}catch{this.#t.looping=!1}}"media-user-loop-change-request"(e){this.$state.userPrefersLoop.set(e.detail)}async"media-pause-request"(e){if(!this.$state.paused())try{await this.pause(e)}catch{}}async"media-play-request"(e){if(this.$state.paused())try{await this.play(e)}catch{}}"media-rate-change-request"(e){let{playbackRate:t,canSetPlaybackRate:n}=this.$state;if(t()===e.detail||!n())return;let r=this.#a();r?.setPlaybackRate&&(this.#t.queue.enqueue(`media-rate-change-request`,e),r.setPlaybackRate(e.detail))}"media-audio-gain-change-request"(e){try{this.setAudioGain(e.detail,e)}catch{}}"media-quality-change-request"(e){let{qualities:t,storage:n,logger:r}=this.#n;if(t.readonly)return;this.#t.queue.enqueue(`media-quality-change-request`,e);let i=e.detail;if(i<0)t.autoSelect(e),e.isOriginTrusted&&n?.setVideoQuality?.(null);else{let r=t[i];r&&(r.selected=!0,e.isOriginTrusted&&n?.setVideoQuality?.({id:r.id,width:r.width,height:r.height,bitrate:r.bitrate}))}}"media-pause-controls-request"(e){let t=e.type;this.#t.queue.enqueue(t,e),this.controls.pause(e)}"media-resume-controls-request"(e){let t=e.type;this.#t.queue.enqueue(t,e),this.controls.resume(e)}"media-seek-request"(e){let{canSeek:t,ended:n,live:r,seekableEnd:i,userBehindLiveEdge:a}=this.$state,o=e.detail;n()&&(this.#t.replaying=!0);let s=e.type;this.#t.seeking=!1,this.#t.queue.delete(s);let c=WL(o,this.$state);!Number.isFinite(c)||!t()||(this.#t.queue.enqueue(s,e),this.#a().setCurrentTime(c),r()&&e.isOriginTrusted&&Math.abs(i()-c)>=2&&a.set(!0))}"media-seeking-request"(e){let t=e.type;this.#t.queue.enqueue(t,e),this.$state.seeking.set(!0),this.#t.seeking=!0}"media-start-loading"(e){if(this.$state.canLoad())return;let t=e.type;this.#t.queue.enqueue(t,e),this.#e.handle(this.createEvent(`can-load`))}"media-poster-start-loading"(e){if(this.$state.canLoadPoster())return;let t=e.type;this.#t.queue.enqueue(t,e),this.#e.handle(this.createEvent(`can-load-poster`))}"media-text-track-change-request"(e){let{index:t,mode:n}=e.detail,r=this.#n.textTracks[t];if(r){let t=e.type;this.#t.queue.enqueue(t,e),r.setMode(n,e)}}"media-mute-request"(e){if(this.$state.muted())return;let t=e.type;this.#t.queue.enqueue(t,e),this.#a().setMuted(!0)}"media-unmute-request"(e){let{muted:t,volume:n}=this.$state;if(!t())return;let r=e.type;this.#t.queue.enqueue(r,e),this.#n.$provider().setMuted(!1),n()===0&&(this.#t.queue.enqueue(r,e),this.#a().setVolume(.25))}"media-volume-change-request"(e){let{muted:t,volume:n}=this.$state,r=e.detail;if(n()===r)return;let i=e.type;this.#t.queue.enqueue(i,e),this.#a().setVolume(r),r>0&&t()&&(this.#t.queue.enqueue(i,e),this.#a().setMuted(!1))}},FR=class{seeking=!1;looping=!1;replaying=!1;queue=new MR},IR=new Set([`auto-play`,`auto-play-fail`,`can-load`,`sources-change`,`source-change`,`load-start`,`abort`,`error`,`loaded-metadata`,`loaded-data`,`can-play`,`play`,`play-fail`,`pause`,`playing`,`seeking`,`seeked`,`waiting`]),LR=class extends pR{#e;#t;#n=new Map;#r=!1;#i=[];#a=[-1,-1];#o=!1;#s;constructor(e,t){super(),this.#e=e,this.#t=t}onAttach(e){e.setAttribute(`aria-busy`,`true`),new RM(this).add(`fullscreen-change`,this[`fullscreen-change`].bind(this)).add(`fullscreen-error`,this[`fullscreen-error`].bind(this)).add(`orientation-change`,this[`orientation-change`].bind(this))}onConnect(e){Y(this.#D.bind(this)),this.#p(),this.#m(),this.#h(),this.#l(),xj(this.#u.bind(this))}onDestroy(){let{audioTracks:e,qualities:t,textTracks:n}=this.#t;e[gN.reset](),t[gN.reset](),n[gN.reset](),this.#T()}handle(e){if(!this.scope)return;let t=e.type;gj(()=>this[e.type]?.(e)),IR.has(t)&&this.#n.set(t,e),this.dispatch(e)}#c=!1;#l(){this.#c&&=(requestAnimationFrame(()=>{this.scope&&this.#t.remote.play(new FM(`dom-connect`))}),!1)}#u(){this.#c||(this.#c=!this.$state.paused(),this.#t.$provider()?.pause())}#d(){this.#L(),this.#r=!1,this.#e.replaying=!1,this.#e.looping=!1,this.#o=!1,this.#s=void 0,this.#n.clear()}#f(e,t){let n=this.#e.queue.serve(e);n&&(t.request=n,t.triggers.add(n))}#p(){this.#g(),this.#_();let e=this.#t.textTracks;new RM(e).add(`add`,this.#g.bind(this)).add(`remove`,this.#g.bind(this)).add(`mode-change`,this.#_.bind(this))}#m(){let e=this.#t.qualities;new RM(e).add(`add`,this.#b.bind(this)).add(`remove`,this.#b.bind(this)).add(`change`,this.#x.bind(this)).add(`auto-change`,this.#S.bind(this)).add(`readonly-change`,this.#E.bind(this))}#h(){let e=this.#t.audioTracks;new RM(e).add(`add`,this.#v.bind(this)).add(`remove`,this.#v.bind(this)).add(`change`,this.#y.bind(this))}#g(e){let{textTracks:t}=this.$state;t.set(this.#t.textTracks.toArray()),this.dispatch(`text-tracks-change`,{detail:t(),trigger:e})}#_(e){e&&this.#f(`media-text-track-change-request`,e);let t=this.#t.textTracks.selected,{textTrack:n}=this.$state;n()!==t&&(n.set(t),this.dispatch(`text-track-change`,{detail:t,trigger:e}))}#v(e){let{audioTracks:t}=this.$state;t.set(this.#t.audioTracks.toArray()),this.dispatch(`audio-tracks-change`,{detail:t(),trigger:e})}#y(e){let{audioTrack:t}=this.$state;t.set(this.#t.audioTracks.selected),e&&this.#f(`media-audio-track-change-request`,e),this.dispatch(`audio-track-change`,{detail:t(),trigger:e})}#b(e){let{qualities:t}=this.$state;t.set(this.#t.qualities.toArray()),this.dispatch(`qualities-change`,{detail:t(),trigger:e})}#x(e){let{quality:t}=this.$state;t.set(this.#t.qualities.selected),e&&this.#f(`media-quality-change-request`,e),this.dispatch(`quality-change`,{detail:t(),trigger:e})}#S(){let{qualities:e}=this.#t,t=e.auto;this.$state.autoQuality.set(t),t||this.#T()}#C=null;#w(){this.#T(),this.#C=Y(()=>{let{qualities:e}=this.#t,{mediaWidth:t,mediaHeight:n}=this.$state,r=t(),i=n();if(r===0||i===0)return;let a=null,o=1/0;for(let t of e){let e=Math.abs(t.width-r)+Math.abs(t.height-i);e<o&&(o=e,a=t)}a&&e[gN.select](a,!0,new FM(`resize`,{detail:{width:r,height:i}}))})}#T(){this.#C?.(),this.#C=null}#E(){this.$state.canSetQuality.set(!this.#t.qualities.readonly)}#D(){let{canSetVolume:e,isGoogleCastConnected:t}=this.$state;if(t()){e.set(!1);return}abe().then(e.set)}"provider-change"(e){let t=this.#t.$provider(),n=e.detail;t?.type!==n?.type&&(t?.destroy?.(),t?.scope?.dispose(),this.#t.$provider.set(e.detail),t&&e.detail===null&&this.#k(e))}"provider-loader-change"(e){}"auto-play"(e){this.$state.autoPlayError.set(null)}"auto-play-fail"(e){this.$state.autoPlayError.set(e.detail),this.#d()}"can-load"(e){this.$state.canLoad.set(!0),this.#n.set(`can-load`,e),this.#t.textTracks[NF.canLoad](),this.#f(`media-start-loading`,e)}"can-load-poster"(e){this.$state.canLoadPoster.set(!0),this.#n.set(`can-load-poster`,e),this.#f(`media-poster-start-loading`,e)}"media-type-change"(e){let t=this.#n.get(`source-change`);t&&e.triggers.add(t);let n=this.$state.viewType();this.$state.mediaType.set(e.detail);let r=this.$state.providedViewType(),i=r===`unknown`?e.detail:r;n!==i&&setTimeout(()=>{requestAnimationFrame(()=>{this.scope&&(this.$state.inferredViewType.set(e.detail),this.dispatch(`view-type-change`,{detail:i,trigger:e}))})},0)}"stream-type-change"(e){let t=this.#n.get(`source-change`);t&&e.triggers.add(t);let{streamType:n,inferredStreamType:r}=this.$state;r.set(e.detail),e.detail=n()}"rate-change"(e){let{storage:t}=this.#t,{canPlay:n}=this.$state;this.$state.playbackRate.set(e.detail),this.#f(`media-rate-change-request`,e),n()&&t?.setPlaybackRate?.(e.detail)}"remote-playback-change"(e){let{remotePlaybackState:t,remotePlaybackType:n}=this.$state,{type:r,state:i}=e.detail,a=i===`connected`;n.set(r),t.set(i);let o=r===`airplay`?`media-airplay-request`:`media-google-cast-request`;if(a)this.#f(o,e);else{let t=this.#e.queue.peek(o);t&&(e.request=t,e.triggers.add(t))}}"sources-change"(e){let t=this.$state.sources(),n=e.detail;this.$state.sources.set(n),this.#O(t,n,e)}#O(e,t,n){let{qualities:r}=this.#t,i=!1,a=!1;for(let i of e)if(HL(i)&&!t.some(e=>e.src===i.src)){let e=r.getBySrc(i.src);e&&(r[gN.remove](e,n),a=!0)}a&&!r.length&&(this.$state.savedState.set(null),r[gN.reset](n));for(let e of t){if(!HL(e)||r.getBySrc(e.src))continue;let t={id:e.id??e.height+`p`,bitrate:null,codec:null,...e,selected:!1};r[gN.add](t,n),i=!0}i&&!r[sI.enableAuto]&&(this.#w(),r[sI.enableAuto]=this.#w.bind(this),r[sI.setAuto](!0,n))}"source-change"(e){e.isQualityChange=e.originEvent?.type===`quality-change`;let t=e.detail;this.#k(e,e.isQualityChange),this.#n.set(e.type,e),this.$state.source.set(t),this.el?.setAttribute(`aria-busy`,`true`)}#k(e,t=!1){let{audioTracks:n,qualities:r}=this.#t;if(!t){this.#i=[],this.#a=[-1,-1],n[gN.reset](e),r[gN.reset](e),UL(this.$state,t),this.#d();return}UL(this.$state,t),this.#d()}abort(e){let t=this.#n.get(`source-change`);t&&e.triggers.add(t);let n=this.#n.get(`can-load`);n&&!e.triggers.hasType(`can-load`)&&e.triggers.add(n)}"load-start"(e){let t=this.#n.get(`source-change`);t&&e.triggers.add(t)}error(e){this.$state.error.set(e.detail);let t=this.#n.get(`abort`);t&&e.triggers.add(t)}"loaded-metadata"(e){let t=this.#n.get(`load-start`);t&&e.triggers.add(t)}"loaded-data"(e){let t=this.#n.get(`load-start`);t&&e.triggers.add(t)}"can-play"(e){let t=this.#n.get(`loaded-metadata`);t&&e.triggers.add(t),this.#A(e.detail),this.el?.setAttribute(`aria-busy`,`false`)}"can-play-through"(e){this.#A(e.detail);let t=this.#n.get(`can-play`);t&&e.triggers.add(t)}#A(e){let{seekable:t,buffered:n,intrinsicDuration:r,canPlay:i}=this.$state;i.set(!0),n.set(e.buffered),t.set(e.seekable);let a=qN(e.seekable)??1/0;r.set(a)}"duration-change"(e){let{live:t,intrinsicDuration:n,providedDuration:r,clipEndTime:i,ended:a}=this.$state,o=e.detail;if(!t()){let t=Number.isNaN(o)?0:o;n.set(t),a()&&this.#N(e)}(r()>0||i()>0)&&e.stopImmediatePropagation()}progress(e){let{buffered:t,seekable:n}=this.$state,{buffered:r,seekable:i}=e.detail,a=qN(r),o=r.length!==t().length,s=a!==qN(t()),c=qN(i),l=i.length!==n().length,u=c!==qN(n());(o||s)&&t.set(r),(l||u)&&n.set(i)}play(e){let{paused:t,autoPlayError:n,ended:r,autoPlaying:i,playsInline:a,pointer:o,muted:s,viewType:c,live:l,userBehindLiveEdge:u}=this.$state;if(this.#j(),!t()){e.stopImmediatePropagation();return}e.autoPlay=i();let d=this.#n.get(`waiting`);d&&e.triggers.add(d),this.#f(`media-play-request`,e),this.#n.set(`play`,e),t.set(!1),n.set(null),e.autoPlay&&(this.handle(this.createEvent(`auto-play`,{detail:{muted:s()},trigger:e})),i.set(!1)),(r()||this.#e.replaying)&&(this.#e.replaying=!1,r.set(!1),this.handle(this.createEvent(`replay`,{trigger:e}))),!a()&&c()===`video`&&o()===`coarse`&&this.#t.remote.enterFullscreen(`prefer-media`,e),l()&&!u()&&this.#t.remote.seekToLiveEdge(e)}#j(e){if(!J(this.#t.$provider))return;let{ended:t,seekableStart:n,clipEndTime:r,currentTime:i,realCurrentTime:a,duration:o}=this.$state,s=t()||a()<n()||r()>0&&a()>=r()||Math.abs(i()-o())<.1;return s&&this.dispatch(`media-seek-request`,{detail:n(),trigger:e}),s}"play-fail"(e){let{muted:t,autoPlaying:n}=this.$state,r=this.#n.get(`play`);r&&e.triggers.add(r),this.#f(`media-play-request`,e);let{paused:i,playing:a}=this.$state;i.set(!0),a.set(!1),this.#d(),this.#n.set(`play-fail`,e),e.autoPlay&&(this.handle(this.createEvent(`auto-play-fail`,{detail:{muted:t(),error:e.detail},trigger:e})),n.set(!1))}playing(e){let t=this.#n.get(`play`),n=this.#n.get(`seeked`);t?e.triggers.add(t):n&&e.triggers.add(n),setTimeout(()=>this.#d(),0);let{paused:r,playing:i,live:a,liveSyncPosition:o,seekableEnd:s,started:c,currentTime:l,seeking:u,ended:d}=this.$state;if(r.set(!1),i.set(!0),u.set(!1),d.set(!1),this.#e.looping){this.#e.looping=!1;return}if(a()&&!c()&&l()===0){let e=o()??s()-2;Number.isFinite(e)&&this.#t.$provider().setCurrentTime(e)}this.started(e)}started(e){let{started:t}=this.$state;t()||(t.set(!0),this.handle(this.createEvent(`started`,{trigger:e})))}pause(e){this.el?.isConnected||(this.#c=!0),this.#f(`media-pause-request`,e);let t=this.#n.get(`seeked`);t&&e.triggers.add(t);let{paused:n,playing:r}=this.$state;n.set(!0),r.set(!1),this.#r&&setTimeout(()=>{this.handle(this.createEvent(`end`,{trigger:e})),this.#r=!1},0),this.#d()}"time-change"(e){if(this.#e.looping){e.stopImmediatePropagation();return}let{waiting:t,played:n,clipEndTime:r,realCurrentTime:i,currentTime:a}=this.$state,o=e.detail,s=r();i.set(o),this.#M(),t.set(!1);for(let t of this.#t.textTracks)t[NF.updateActiveCues](o,e);s>0&&o>=s&&(this.#r=!0,this.dispatch(`media-pause-request`,{trigger:e})),this.#P(),this.dispatch(`time-update`,{detail:{currentTime:a(),played:n()},trigger:e})}#M(){let{currentTime:e,played:t,paused:n}=this.$state;n()||(this.#a=ube(this.#i,this.#a,e()),t.set(new JN(this.#i)))}#N(e){let{clipStartTime:t,clipEndTime:n,duration:r}=this.$state;t()>0||n()>0||this.handle(this.createEvent(`time-change`,{detail:r(),trigger:e}))}#P(){let{storage:e}=this.#t,{canPlay:t,realCurrentTime:n}=this.$state;t()&&e?.setTime?.(n())}"audio-gain-change"(e){let{storage:t}=this.#t,{canPlay:n,audioGain:r}=this.$state;r.set(e.detail),this.#f(`media-audio-gain-change-request`,e),n()&&t?.setAudioGain?.(r())}"volume-change"(e){let{storage:t}=this.#t,{volume:n,muted:r,canPlay:i}=this.$state,a=e.detail;n.set(a.volume),r.set(a.muted||a.volume===0),this.#f(`media-volume-change-request`,e),this.#f(a.muted?`media-mute-request`:`media-unmute-request`,e),i()&&(t?.setVolume?.(n()),t?.setMuted?.(r()))}seeking=YM(e=>{let{seeking:t,realCurrentTime:n,paused:r}=this.$state;t.set(!0),n.set(e.detail),this.#f(`media-seeking-request`,e),r()&&(this.#s=e,this.#F()),this.#a=[-1,-1]},150,{leading:!0});seeked(e){let{seeking:t,currentTime:n,realCurrentTime:r,paused:i,seekableEnd:a,ended:o,live:s}=this.$state;if(this.#e.seeking)t.set(!0),e.stopImmediatePropagation();else if(t()){let n=this.#n.get(`waiting`);n&&e.triggers.add(n);let a=this.#n.get(`seeking`);a&&!e.triggers.has(a)&&e.triggers.add(a),i()&&this.#L(),t.set(!1),r.set(e.detail),this.#f(`media-seek-request`,e);let o=e?.originEvent;o?.isTrusted&&!(o instanceof MessageEvent)&&!/seek/.test(o.type)&&this.started(e)}s()||(Math.floor(n())===Math.floor(a())?this.end(e):o.set(!1))}waiting(e){this.#o||this.#e.seeking||(e.stopImmediatePropagation(),this.#s=e,this.#F())}#F=XM(()=>{if(!this.#s)return;this.#o=!0;let{waiting:e,playing:t}=this.$state;e.set(!0),t.set(!1);let n=this.createEvent(`waiting`,{trigger:this.#s});this.#n.set(`waiting`,n),this.dispatch(n),this.#s=void 0,this.#o=!1},300);end(e){let{loop:t,ended:n}=this.$state;if(!(!t()&&n())){if(t()){setTimeout(()=>{requestAnimationFrame(()=>{this.#j(e),this.dispatch(`media-loop-request`,{trigger:e})})},10);return}setTimeout(()=>this.#I(e),0)}}#I(e){let{storage:t}=this.#t,{paused:n,seeking:r,ended:i,duration:a}=this.$state;this.#N(e),n()||this.dispatch(`pause`,{trigger:e}),r()&&this.dispatch(`seeked`,{detail:a(),trigger:e}),i.set(!0),this.#d(),t?.setTime?.(a(),!0),this.dispatch(`ended`,{trigger:e})}#L(){this.#F.cancel(),this.$state.waiting.set(!1)}"fullscreen-change"(e){let t=e.detail;this.$state.fullscreen.set(t),this.#f(t?`media-enter-fullscreen-request`:`media-exit-fullscreen-request`,e)}"fullscreen-error"(e){this.#f(`media-enter-fullscreen-request`,e),this.#f(`media-exit-fullscreen-request`,e)}"orientation-change"(e){let t=e.detail.lock;this.#f(t?`media-orientation-lock-request`:`media-orientation-unlock-request`,e)}"picture-in-picture-change"(e){let t=e.detail;this.$state.pictureInPicture.set(t),this.#f(t?`media-enter-pip-request`:`media-exit-pip-request`,e)}"picture-in-picture-error"(e){this.#f(`media-enter-pip-request`,e),this.#f(`media-exit-pip-request`,e)}"title-change"(e){e.trigger&&(e.stopImmediatePropagation(),this.$state.inferredTitle.set(e.detail))}"poster-change"(e){e.trigger&&(e.stopImmediatePropagation(),this.$state.inferredPoster.set(e.detail))}},RR=class extends pR{onSetup(){this.#e();let e=[this.#n,this.#i,this.#d,this.#f,this.#o,this.#c,this.#l,this.#p,this.#h,this.#m,this.#a,this.#u,this.#s,this.#t,this.#r];for(let t of e)Y(t.bind(this))}#e(){let e={duration:`providedDuration`,loop:`providedLoop`,poster:`providedPoster`,streamType:`providedStreamType`,title:`providedTitle`,viewType:`providedViewType`},t=new Set([`currentTime`,`paused`,`playbackRate`,`volume`]);for(let n of Object.keys(this.$props))t.has(n)||this.$state[e[n]??n]?.set(this.$props[n]());this.$state.muted.set(this.$props.muted()||this.$props.volume()===0)}#t(){let{viewType:e,streamType:t,title:n,poster:r,loop:i}=this.$props,a=this.$state;a.providedPoster.set(r()),a.providedStreamType.set(t()),a.providedViewType.set(e()),a.providedTitle.set(n()),a.providedLoop.set(i())}#n(){let{artist:e,artwork:t}=this.$props;this.$state.artist.set(e()),this.$state.artwork.set(t())}#r(){let{title:e}=this.$state;this.dispatch(`title-change`,{detail:e()})}#i(){let e=this.$props.autoPlay()||this.$props.autoplay();this.$state.autoPlay.set(e),this.dispatch(`auto-play-change`,{detail:e})}#a(){let e=this.$state.loop();this.dispatch(`loop-change`,{detail:e})}#o(){let e=this.$props.controls();this.$state.controls.set(e)}#s(){let{poster:e}=this.$state;this.dispatch(`poster-change`,{detail:e()})}#c(){let e=this.$props.crossOrigin()??this.$props.crossorigin(),t=e===!0?``:e;this.$state.crossOrigin.set(t)}#l(){let{duration:e}=this.$props;this.dispatch(`media-duration-change-request`,{detail:e()})}#u(){let e=this.$props.playsInline()||this.$props.playsinline();this.$state.playsInline.set(e),this.dispatch(`plays-inline-change`,{detail:e})}#d(){let{clipStartTime:e}=this.$props;this.dispatch(`media-clip-start-change-request`,{detail:e()})}#f(){let{clipEndTime:e}=this.$props;this.dispatch(`media-clip-end-change-request`,{detail:e()})}#p(){this.dispatch(`live-change`,{detail:this.$state.live()})}#m(){this.$state.liveEdgeTolerance.set(this.$props.liveEdgeTolerance()),this.$state.minLiveDVRWindow.set(this.$props.minLiveDVRWindow())}#h(){this.dispatch(`live-edge-change`,{detail:this.$state.liveEdge()})}},zR=[`play`,`pause`,`seekforward`,`seekbackward`,`seekto`],BR=class extends pR{onConnect(){Y(this.#t.bind(this)),Y(this.#n.bind(this));let e=this.#r.bind(this);for(let t of zR)navigator.mediaSession.setActionHandler(t,e);xj(this.#e.bind(this))}#e(){for(let e of zR)navigator.mediaSession.setActionHandler(e,null)}#t(){let{title:e,artist:t,artwork:n,poster:r}=this.$state;navigator.mediaSession.metadata=new MediaMetadata({title:e(),artist:t(),artwork:n()??[{src:r()}]})}#n(){let{canPlay:e,paused:t}=this.$state;navigator.mediaSession.playbackState=e()?t()?`paused`:`playing`:`none`}#r(e){let t=new FM(`media-session-action`,{detail:e});switch(e.action){case`play`:this.dispatch(`media-play-request`,{trigger:t});break;case`pause`:this.dispatch(`media-pause-request`,{trigger:t});break;case`seekto`:case`seekforward`:case`seekbackward`:this.dispatch(`media-seek-request`,{detail:Hj(e.seekTime)?e.seekTime:this.$state.currentTime()+(e.seekOffset??(e.action===`seekforward`?10:-10)),trigger:t});break}}},VR=class e extends KM{static props=kR;static state=tR;#e;#t;#n;canPlayQueue=new NR;remoteControl;get#r(){return this.#e.$provider()}get#i(){return this.$props}constructor(){super(),new RR;let e={player:this,qualities:new fR,audioTracks:new cR,storage:null,$provider:Ij(null),$providerSetup:Ij(!1),$props:this.$props,$state:this.$state};e.remote=this.remoteControl=new iR(void 0),e.remote.setPlayer(this),e.textTracks=new dR,e.textTracks[NF.crossOrigin]=this.$state.crossOrigin,e.textRenderers=new uR(e),e.ariaKeys={},this.#e=e,tM(RF,e),this.orientation=new eR,new hI,new vR(e);let t=new FR;this.#t=new LR(t,e),this.#n=new PR(this.#t,t,e),e.delegate=new jR(this.#t.handle.bind(this.#t),e),e.notify=e.delegate.notify.bind(e.delegate),typeof navigator<`u`&&`mediaSession`in navigator&&new BR,new AR(`load`,this.startLoading.bind(this)),new AR(`posterLoad`,this.startLoadingPoster.bind(this))}onSetup(){this.#l(),Y(this.#c.bind(this)),Y(this.#h.bind(this)),Y(this.#p.bind(this)),Y(this.#y.bind(this)),Y(this.#_.bind(this)),Y(this.#C.bind(this)),Y(this.#x.bind(this))}onAttach(e){e.setAttribute(`data-media-player`,``),GF(e,`tabindex`,`0`),GF(e,`role`,`region`),Y(this.#T.bind(this)),Y(this.#o.bind(this)),Y(this.#s.bind(this)),qj(e,`find-media-player`,this.#u.bind(this))}onConnect(e){PN&&Qj(e,`data-iphone`,``);let t=window.matchMedia(`(pointer: coarse)`);this.#f(t),t.onchange=this.#f.bind(this);let n=new ResizeObserver(dM(this.#d.bind(this)));n.observe(e),Y(this.#d.bind(this)),this.dispatch(`media-player-connect`,{detail:this,bubbles:!0,composed:!0}),xj(()=>{n.disconnect(),t.onchange=null})}onDestroy(){this.#e.player=null,this.canPlayQueue.reset()}#a=!1;#o(){let e=this.$el,{ariaLabel:t}=this.$props,{title:n,live:r,viewType:i,providedTitle:a}=this.$state,o=r(),s=Jye(i()),c=s===`Unknown`?o?`Live`:`Media`:`${o?`Live `:``}${s}`,l=n(),u=t()||`${c} Player`+(l?` - ${l}`:``);Qj(this.el,`aria-label`,u),e?.hasAttribute(`title`)&&(this.#a=!0,e?.removeAttribute(`title`))}#s(){let e=this.orientation.landscape?`landscape`:`portrait`;this.$state.orientation.set(e),Qj(this.el,`data-orientation`,e),this.#d()}#c(){this.$state.canPlay()&&this.#r?this.canPlayQueue.start():this.canPlayQueue.stop()}#l(){if(e[DR]){this.setAttributes(e[DR]);return}let t={"data-load":function(){return this.$props.load()},"data-captions":function(){let e=this.$state.textTrack();return!!e&&MF(e)},"data-ios-controls":function(){return this.$state.iOSControls()},"data-controls":function(){return this.controls.showing},"data-buffering":function(){let{canLoad:e,canPlay:t,waiting:n}=this.$state;return e()&&(!t()||n())},"data-error":function(){let{error:e}=this.$state;return!!e()},"data-autoplay-error":function(){let{autoPlayError:e}=this.$state;return!!e()}},n={autoPlay:`autoplay`,canAirPlay:`can-airplay`,canPictureInPicture:`can-pip`,pictureInPicture:`pip`,playsInline:`playsinline`,remotePlaybackState:`remote-state`,remotePlaybackType:`remote-type`,isAirPlayConnected:`airplay`,isGoogleCastConnected:`google-cast`};for(let e of OR){let r=`data-`+(n[e]??sM(e));t[r]=function(){return this.$state[e]()}}delete t.title,e[DR]=t,this.setAttributes(t)}#u(e){e.detail(this)}#d(){if(!this.el)return;let e=this.el.clientWidth,t=this.el.clientHeight;this.$state.width.set(e),this.$state.height.set(t),$j(this.el,`--player-width`,e+`px`),$j(this.el,`--player-height`,t+`px`)}#f(e){let t=e.matches?`coarse`:`fine`;Qj(this.el,`data-pointer`,t),this.$state.pointer.set(t),this.#d()}get provider(){return this.#r}get controls(){return this.#n.controls}set controls(e){this.#i.controls.set(e)}orientation;get title(){return J(this.$state.title)}set title(e){if(this.#a){this.#a=!1;return}this.#i.title.set(e)}get qualities(){return this.#e.qualities}get audioTracks(){return this.#e.audioTracks}get textTracks(){return this.#e.textTracks}get textRenderers(){return this.#e.textRenderers}get duration(){return this.$state.duration()}set duration(e){this.#i.duration.set(e)}get paused(){return J(this.$state.paused)}set paused(e){this.#m(e)}#p(){this.#m(this.$props.paused())}#m(e){e?this.canPlayQueue.enqueue(`paused`,()=>this.#n.pause()):this.canPlayQueue.enqueue(`paused`,()=>this.#n.play())}get muted(){return J(this.$state.muted)}set muted(e){this.#g(e)}#h(){this.#g(this.$props.muted())}#g(e){this.canPlayQueue.enqueue(`muted`,()=>{J(()=>{this.#r&&this.#r.setMuted(e)})})}get currentTime(){return J(this.$state.currentTime)}set currentTime(e){this.#v(e)}#_(){this.#v(this.$props.currentTime())}#v(e){this.canPlayQueue.enqueue(`currentTime`,()=>{let{currentTime:t}=this.$state;e!==J(t)&&J(()=>{if(!this.#r)return;let t=WL(e,this.$state);Number.isFinite(t)&&this.#r.setCurrentTime(t)})})}get volume(){return J(this.$state.volume)}set volume(e){this.#b(e)}#y(){this.#b(this.$props.volume())}#b(e){let t=HF(0,e,1);this.canPlayQueue.enqueue(`volume`,()=>{this.#r&&this.#r.setVolume(t)})}get playbackRate(){return J(this.$state.playbackRate)}set playbackRate(e){this.#S(e)}#x(){this.#S(this.$props.playbackRate())}#S(e){this.canPlayQueue.enqueue(`rate`,()=>{this.#r&&this.#r.setPlaybackRate?.(e)})}#C(){this.#w(this.$props.playsInline())}#w(e){this.canPlayQueue.enqueue(`playsinline`,()=>{this.#r&&this.#r.setPlaysInline?.(e)})}#T(){let e=this.$props.storage(),t=Uj(e)?new aR:e;if(t?.onChange){let{source:n}=this.$state,r=Uj(e)?e:this.el?.id,i=Lj(this.#E.bind(this));Y(()=>t.onChange(n(),i(),r||void 0))}this.#e.storage=t,this.#e.textTracks.setStorage(t),xj(()=>{t?.onDestroy?.(),this.#e.storage=null,this.#e.textTracks.setStorage(null)})}#E(){let{clipStartTime:e,clipEndTime:t}=this.$props,{source:n}=this.$state,r=n();return r.src?`${r.src}:${e()}:${t()}`:null}async play(e){return this.#n.play(e)}async pause(e){return this.#n.pause(e)}async enterFullscreen(e,t){return this.#n.enterFullscreen(e,t)}async exitFullscreen(e,t){return this.#n.exitFullscreen(e,t)}enterPictureInPicture(e){return this.#n.enterPictureInPicture(e)}exitPictureInPicture(e){return this.#n.exitPictureInPicture(e)}seekToLiveEdge(e){this.#n.seekToLiveEdge(e)}startLoading(e){this.#e.notify(`can-load`,void 0,e)}startLoadingPoster(e){this.#e.notify(`can-load-poster`,void 0,e)}requestAirPlay(e){return this.#n.requestAirPlay(e)}requestGoogleCast(e){return this.#n.requestGoogleCast(e)}setAudioGain(e,t){return this.#n.setAudioGain(e,t)}destroy(){super.destroy(),this.#e.remote.setPlayer(null),this.dispatch(`destroy`)}},HR=VR.prototype,iM(HR,`canPlayQueue`),iM(HR,`remoteControl`),iM(HR,`provider`),iM(HR,`controls`),iM(HR,`orientation`),iM(HR,`title`),iM(HR,`qualities`),iM(HR,`audioTracks`),iM(HR,`textTracks`),iM(HR,`textRenderers`),iM(HR,`duration`),iM(HR,`paused`),iM(HR,`muted`),iM(HR,`currentTime`),iM(HR,`volume`),iM(HR,`playbackRate`),aM(HR,`play`),aM(HR,`pause`),aM(HR,`enterFullscreen`),aM(HR,`exitFullscreen`),aM(HR,`enterPictureInPicture`),aM(HR,`exitPictureInPicture`),aM(HR,`seekToLiveEdge`),aM(HR,`startLoading`),aM(HR,`startLoadingPoster`),aM(HR,`requestAirPlay`),aM(HR,`requestGoogleCast`),aM(HR,`setAudioGain`),UR=new Map,WR=class{#e=!1;#t;#n;#r;#i;constructor(e,t,n,r=[]){this.#n=e,this.#r=t,this.#i=n;let i=new wR,a=new CR,o=new SR,s=new xR,c=[new ER,new TR];this.#t=Lj(()=>{let e=t.$state.remotePlaybackLoader(),n=t.$props.preferNativeHLS()?[o,s,i,a,...c,...r]:[a,o,s,i,...c,...r];return e?[e,...n]:n});let{$state:l}=t;l.sources.set(JL(t.$props.src()));for(let e of l.sources()){let n=this.#t().find(t=>t.canPlay(e));if(!n)continue;let r=n.mediaType(e);t.$state.source.set(e),t.$state.mediaType.set(r),t.$state.inferredViewType.set(r),this.#i.set(n),this.#e=!0;break}}connect(){let e=this.#i();this.#e&&=(this.#c(this.#r.$state.source(),e),this.#l(e),!1),Y(this.#a.bind(this)),Y(this.#o.bind(this)),Y(this.#u.bind(this)),Y(this.#d.bind(this)),Y(this.#f.bind(this))}#a(){this.#r.notify(`sources-change`,[...JL(this.#r.$props.src()),...this.#n()])}#o(){let{$state:e}=this.#r,t=e.sources(),n=J(e.source),r=this.#s(n,t);if(t[0]?.src&&!r.src&&!r.type){let{crossOrigin:n}=e,r=QN(n()),i=new AbortController;return Promise.all(t.map(e=>Uj(e.src)&&e.type===`?`?fetch(e.src,{method:`HEAD`,credentials:r,signal:i.signal}).then(t=>(e.type=t.headers.get(`content-type`)||`??`,UR.set(e.src,e.type),e)).catch(()=>e):e)).then(t=>{if(i.signal.aborted)return;let n=this.#s(J(e.source),t);_j(),n.src||this.#r.notify(`error`,{message:`Failed to load resource.`,code:4})}),()=>i.abort()}_j()}#s(e,t){let n={src:``,type:``},r=null,i=new FM(`sources-change`,{detail:{sources:t}}),a=this.#t(),{started:o,paused:s,currentTime:c,quality:l,savedState:u}=this.#r.$state;for(let e of t){let t=a.find(t=>t.canPlay(e));if(t){n=e,r=t;break}}if(HL(n)){let e=l(),r=t.find(t=>t.src===e?.src);J(o)?u.set({paused:J(s),currentTime:J(c)}):u.set(null),r&&(n=r,i=new FM(`quality-change`,{detail:{quality:e}}))}return XL(e,n)||this.#c(n,r,i),r!==J(this.#i)&&this.#l(r,i),n}#c(e,t,n){this.#r.notify(`source-change`,e,n),this.#r.notify(`media-type-change`,t?.mediaType(e)||`unknown`,n)}#l(e,t){this.#r.$providerSetup.set(!1),this.#r.notify(`provider-change`,null,t),e&&J(()=>e.preconnect?.(this.#r)),this.#i.set(e),this.#r.notify(`provider-loader-change`,e,t)}#u(){let e=this.#r.$provider();if(!(!e||J(this.#r.$providerSetup))){if(this.#r.$state.canLoad()){yj(()=>e.setup(),e.scope),this.#r.$providerSetup.set(!0);return}J(()=>e.preconnect?.())}}#d(){if(!this.#r.$providerSetup())return;let e=this.#r.$provider(),t=this.#r.$state.source(),n=J(this.#r.$state.crossOrigin),r=J(this.#r.$props.preferNativeHLS);if(!XL(e?.currentSrc,t)){if(this.#r.$state.canLoad()){let i=new AbortController;return kN(t)?(r||!TN())&&qL(t.src,{credentials:QN(n),signal:i.signal}).then(e=>{this.#r.notify(`stream-type-change`,e)}).catch(Rj):AN(t)?Ixe(t.src,{credentials:QN(n),signal:i.signal}).then(e=>{this.#r.notify(`stream-type-change`,e)}).catch(Rj):this.#r.notify(`stream-type-change`,`on-demand`),J(()=>{let n=J(this.#r.$state.preload);return e?.loadSource(t,n).catch(e=>{})}),()=>i.abort()}try{Uj(t.src)&&XN(new URL(t.src).origin)}catch{}}}#f(){let e=this.#i(),{providedPoster:t,source:n,canLoadPoster:r}=this.#r.$state;if(!e||!e.loadPoster||!n()||!r()||t())return;let i=new AbortController,a=new FM(`source-change`,{detail:n});return e.loadPoster(n(),this.#r,i).then(e=>{this.#r.notify(`poster-change`,e||``,a)}).catch(()=>{this.#r.notify(`poster-change`,``,a)}),()=>{i.abort()}}},GR=class{#e;#t;#n=[];constructor(e,t){this.#e=e,this.#t=t,Y(this.#r.bind(this))}#r(){let e=this.#e();for(let t of this.#n)if(!e.some(e=>e.id===t.id)){let e=t.id&&this.#t.textTracks.getById(t.id);e&&this.#t.textTracks.remove(e)}for(let t of e){let e=t.id||PF.createId(t);this.#t.textTracks.getById(e)||(t.id=e,this.#t.textTracks.add(t))}this.#n=e}},KR=class extends KM{static props={loaders:[]};static state=new qM({loader:null});#e;#t;#n=Ij([]);#r=Ij([]);#i=null;#a=null;#o=!1;onSetup(){this.#e=LF(),this.#t=new WR(this.#n,this.#e,this.$state.loader,this.$props.loaders())}onAttach(e){e.setAttribute(`data-media-provider`,``)}onConnect(e){this.#o=!0,this.#t.connect(),new GR(this.#r,this.#e);let t=new ResizeObserver(dM(this.#u.bind(this)));t.observe(e);let n=new MutationObserver(this.#d.bind(this));n.observe(e,{attributes:!0,childList:!0}),this.#u(),this.#d(),this.#a&&this.load(this.#a),xj(()=>{this.#o=!1,t.disconnect(),n.disconnect()})}#s=-1;load(e){this.#a=e||null,e?.setAttribute(`aria-hidden`,`true`),this.#o&&(window.cancelAnimationFrame(this.#s),this.#s=requestAnimationFrame(()=>this.#c(e)),xj(()=>{window.cancelAnimationFrame(this.#s)}))}#c(e){if(!this.scope)return;let t=this.$state.loader(),{$provider:n}=this.#e;this.#i===t&&t?.target===e&&J(n)||(this.#l(),this.#i=t,t&&(t.target=e||null),!(!t||!e)&&t.load(this.#e).then(e=>{this.scope&&J(this.$state.loader)===t&&this.#e.notify(`provider-change`,e)}))}onDestroy(){this.#i=null,this.#l()}#l(){this.#e?.notify(`provider-change`,null)}#u(){if(!this.el)return;let{player:e,$state:t}=this.#e,n=this.el.offsetWidth,r=this.el.offsetHeight;e&&(t.mediaWidth.set(n),t.mediaHeight.set(r),e.el&&($j(e.el,`--media-width`,n+`px`),$j(e.el,`--media-height`,r+`px`)))}#d(){let e=[],t=[],n=this.el.children;for(let r of n)if(!r.hasAttribute(`data-vds`)){if(r instanceof HTMLSourceElement){let t={id:r.id,src:r.src,type:r.type};for(let e of[`id`,`src`,`width`,`height`,`bitrate`,`codec`]){let n=r.getAttribute(`data-${e}`);Uj(n)&&(t[e]=/id|src|codec/.test(e)?n:Number(n))}e.push(t)}else if(r instanceof HTMLTrackElement){let e={src:r.src,kind:r.track.kind,language:r.srclang,label:r.label,default:r.default,type:r.getAttribute(`data-type`)};t.push({id:r.id||PF.createId(e),...e})}}this.#n.set(e),this.#r.set(t),_j()}},qR=KR.prototype,aM(qR,`load`)}));function JR(e,t){return[...e].sort(t?Vxe:Bxe)}function Bxe(e,t){return e.height===t.height?(e.bitrate??0)-(t.bitrate??0):e.height-t.height}function Vxe(e,t){return t.height===e.height?(t.bitrate??0)-(e.bitrate??0):t.height-e.height}function YR(e,t){let n=String(e),r=n.length;if(r<t){let n=t-r;return`${`0`.repeat(n)}${e}`}return n}function XR(e){return{hours:Math.trunc(e/3600),minutes:Math.trunc(e%3600/60),seconds:Math.trunc(e%60),fraction:Number((e-Math.trunc(e)).toPrecision(3))}}function ZR(e,{padHrs:t=null,padMins:n=null,showHrs:r=!1,showMs:i=!1}={}){let{hours:a,minutes:o,seconds:s,fraction:c}=XR(e),l=t?YR(a,2):a,u=`${n||zj(n)&&e>=3600?YR(o,2):o}:${YR(s,2)}${i&&c>0?`.${String(c).replace(/^0?\./,``)}`:``}`;return a>0||r?`${l}:${u}`:u}function QR(e){let t=[],{hours:n,minutes:r,seconds:i}=XR(e);return n>0&&t.push(`${n} hour`),r>0&&t.push(`${r} min`),(i>0||t.length===0)&&t.push(`${i} sec`),t.join(` `)}function $R(e,t,n){let r=t-e,i=n-e;return r>0?i/r:0}function Hxe(e,t,n,r){return HF(e,BF(n,VF(r)),t)}function Uxe(e,t,n,r){let i=HF(0,n,1),a=(t-e)*i/r;return e+r*Math.round(a)}function Wxe(e,t){let n=`${e}::${t}`;if(Ez.has(n)){let e=Ez.get(n);Ez.delete(n),Ez.set(n,e);return}let r=new Image;if(r.decoding=`async`,r.crossOrigin=t,r.src=e,Ez.set(n,r),Ez.size>Tz){let e=Ez.keys().next().value;Ez.delete(e)}}function Gxe(e,{clamp:t,offset:n,orientation:r}){let i=getComputedStyle(e),a=parseFloat(i.width),o=parseFloat(i.height),s={top:null,right:null,bottom:null,left:null};if(s[r===`horizontal`?`bottom`:`left`]=`calc(100% + var(--media-slider-preview-offset, ${n}px))`,r===`horizontal`){let e=a/2;t?s.left=`min(${`max(0px, calc(var(--slider-pointer) - ${e}px))`}, ${`calc(100% - ${a}px)`})`:s.left=`calc(var(--slider-pointer) - ${e}px)`}else{let e=o/2;t?s.bottom=`min(${`max(${e}px, calc(var(--slider-pointer) - ${e}px))`}, ${`calc(100% - ${o}px)`})`:s.bottom=`calc(var(--slider-pointer) - ${e}px)`}Object.assign(e.style,s)}function Kxe(e,t){let n=nN(e,t);for(let{el:e,top:r,left:i}of n)e.scroll({top:r,left:i,behavior:t.behavior})}function qxe(e,t={}){Kxe(e,{scrollMode:`if-needed`,block:`center`,inline:`center`,...t})}function ez(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var tz,nz,rz,iz,az,oz,sz,cz,lz,uz,dz,fz,pz,mz,hz,gz,_z,vz,yz,bz,xz,Sz,Cz,wz,Tz,Ez,Dz,Oz,kz,Az,jz,Mz,Nz,Pz,Fz,Iz,Lz,Rz,zz,Bz,Vz,Hz,Uz,Wz,Gz,Kz,qz,Jz,Yz,Xz,Zz,Qz,$z,eB,tB,nB,rB,iB,aB=F((()=>{hN(),eP(),IF(),rP(),zF(),UF(),oI(),dI(),gI(),tz=class extends GM{#e;constructor(e){super(),this.#e=e}onAttach(e){let{$props:t,ariaKeys:n}=LF(),r=e.getAttribute(`aria-keyshortcuts`);if(r){n[this.#e]=r,xj(()=>{delete n[this.#e]});return}let i=t.keyShortcuts()[this.#e];if(i){let t=Kj(i)?i.join(` `):Uj(i)?i:i?.keys;e.setAttribute(`aria-keyshortcuts`,Kj(t)?t.join(` `):t)}}},nz=class extends GM{#e;constructor(e){super(),this.#e=e,Y(this.#t.bind(this))}onDestroy(){this.#i?.(),this.#i=null}#t(){let e=this.#e.trigger();if(!e){this.hide();return}let t=this.show.bind(this),n=this.hide.bind(this);this.#e.listen(e,t,n)}#n=-1;#r=-1;#i=null;show(e){this.#a(),window.cancelAnimationFrame(this.#r),this.#r=-1,this.#i?.(),this.#i=null,this.#n=window.setTimeout(()=>{this.#n=-1;let t=this.#e.content();t&&t.style.removeProperty(`display`),J(()=>this.#e.onChange(!0,e))},this.#e.showDelay?.()??0)}hide(e){this.#a(),J(()=>this.#e.onChange(!1,e)),this.#r=requestAnimationFrame(()=>{this.#a(),this.#r=-1;let e=this.#e.content();if(e){let t=()=>{e.style.display=`none`,this.#i=null};if(Hbe(e)){this.#i?.();let n=qj(e,`animationend`,t,{once:!0});this.#i=n}else t()}})}#a(){window.clearTimeout(this.#n),this.#n=-1}},rz=class extends GM{static props={disabled:!1};#e;constructor(e){super(),this.#e=e,new hI,e.keyShortcut&&new tz(e.keyShortcut)}onSetup(){let{disabled:e}=this.$props;this.setAttributes({"data-pressed":this.#e.isPresssed,"aria-pressed":this.#t.bind(this),"aria-disabled":()=>e()?`true`:null})}onAttach(e){GF(e,`tabindex`,`0`),GF(e,`role`,`button`),GF(e,`type`,`button`)}onConnect(e){let t=XF(e,this.#r.bind(this));for(let e of[`click`,`touchstart`])t.add(e,this.#i.bind(this),{passive:!0})}#t(){return cM(this.#e.isPresssed())}#n(e){Lye(this.#e.isPresssed)&&this.#e.isPresssed.set(e=>!e)}#r(e){if(this.$props.disabled()||this.el.hasAttribute(`data-disabled`)){e.preventDefault(),e.stopImmediatePropagation();return}e.preventDefault(),(this.#e.onPress??this.#n).call(this,e)}#i(e){this.$props.disabled()&&(e.preventDefault(),e.stopImmediatePropagation())}},iz=class extends KM{static props=rz.props;#e;constructor(){super(),new rz({isPresssed:this.#n.bind(this),onPress:this.#t.bind(this)})}onSetup(){this.#e=LF();let{canAirPlay:e,isAirPlayConnected:t}=this.#e.$state;this.setAttributes({"data-active":t,"data-supported":e,"data-state":this.#r.bind(this),"aria-hidden":iI(()=>!e())})}onAttach(e){e.setAttribute(`data-media-tooltip`,`airplay`),KF(e,this.#i.bind(this))}#t(e){this.#e.remote.requestAirPlay(e)}#n(){let{remotePlaybackType:e,remotePlaybackState:t}=this.#e.$state;return e()===`airplay`&&t()!==`disconnected`}#r(){let{remotePlaybackType:e,remotePlaybackState:t}=this.#e.$state;return e()===`airplay`&&t()}#i(){let{remotePlaybackState:e}=this.#e.$state;return`AirPlay ${e()}`}},az=class extends KM{static props=rz.props;#e;constructor(){super(),new rz({isPresssed:this.#n.bind(this),keyShortcut:`togglePaused`,onPress:this.#t.bind(this)})}onSetup(){this.#e=LF();let{paused:e,ended:t}=this.#e.$state;this.setAttributes({"data-paused":e,"data-ended":t})}onAttach(e){e.setAttribute(`data-media-tooltip`,`play`),KF(e,`Play`)}#t(e){let t=this.#e.remote;this.#n()?t.pause(e):t.play(e)}#n(){let{paused:e}=this.#e.$state;return!e()}},oz=class extends KM{static props=rz.props;#e;constructor(){super(),new rz({isPresssed:this.#n.bind(this),keyShortcut:`toggleCaptions`,onPress:this.#t.bind(this)})}onSetup(){this.#e=LF(),this.setAttributes({"data-active":this.#n.bind(this),"data-supported":()=>!this.#r(),"aria-hidden":iI(this.#r.bind(this))})}onAttach(e){e.setAttribute(`data-media-tooltip`,`caption`),KF(e,`Captions`)}#t(e){this.#e.remote.toggleCaptions(e)}#n(){let{textTrack:e}=this.#e.$state,t=e();return!!t&&MF(t)}#r(){let{hasCaptions:e}=this.#e.$state;return!e()}},sz=class extends KM{static props={...rz.props,target:`prefer-media`};#e;constructor(){super(),new rz({isPresssed:this.#n.bind(this),keyShortcut:`toggleFullscreen`,onPress:this.#t.bind(this)})}onSetup(){this.#e=LF();let{fullscreen:e}=this.#e.$state,t=this.#r.bind(this);this.setAttributes({"data-active":e,"data-supported":t,"aria-hidden":iI(()=>!t())})}onAttach(e){e.setAttribute(`data-media-tooltip`,`fullscreen`),KF(e,`Fullscreen`)}#t(e){let t=this.#e.remote,n=this.$props.target();this.#n()?t.exitFullscreen(n,e):t.enterFullscreen(n,e)}#n(){let{fullscreen:e}=this.#e.$state;return e()}#r(){let{canFullscreen:e}=this.#e.$state;return e()}},cz=class extends KM{static props=rz.props;#e;constructor(){super(),new rz({isPresssed:this.#n.bind(this),keyShortcut:`toggleMuted`,onPress:this.#t.bind(this)})}onSetup(){this.#e=LF(),this.setAttributes({"data-muted":this.#n.bind(this),"data-state":this.#r.bind(this)})}onAttach(e){e.setAttribute(`data-media-mute-button`,``),e.setAttribute(`data-media-tooltip`,`mute`),KF(e,`Mute`)}#t(e){let t=this.#e.remote;this.#n()?t.unmute(e):t.mute(e)}#n(){let{muted:e,volume:t}=this.#e.$state;return e()||t()===0}#r(){let{muted:e,volume:t}=this.#e.$state,n=t();if(e()||n===0)return`muted`;if(n>=.5)return`high`;if(n<.5)return`low`}},lz=class extends KM{static props=rz.props;#e;constructor(){super(),new rz({isPresssed:this.#n.bind(this),keyShortcut:`togglePictureInPicture`,onPress:this.#t.bind(this)})}onSetup(){this.#e=LF();let{pictureInPicture:e}=this.#e.$state,t=this.#r.bind(this);this.setAttributes({"data-active":e,"data-supported":t,"aria-hidden":iI(()=>!t())})}onAttach(e){e.setAttribute(`data-media-tooltip`,`pip`),KF(e,`PiP`)}#t(e){let t=this.#e.remote;this.#n()?t.exitPictureInPicture(e):t.enterPictureInPicture(e)}#n(){let{pictureInPicture:e}=this.#e.$state;return e()}#r(){let{canPictureInPicture:e}=this.#e.$state;return e()}},uz=class extends KM{static props={disabled:!1,seconds:30};#e;constructor(){super(),new hI}onSetup(){this.#e=LF();let{seeking:e}=this.#e.$state,{seconds:t}=this.$props,n=this.#t.bind(this);this.setAttributes({seconds:t,"data-seeking":e,"data-supported":n,"aria-hidden":iI(()=>!n())})}onAttach(e){GF(e,`tabindex`,`0`),GF(e,`role`,`button`),GF(e,`type`,`button`),e.setAttribute(`data-media-tooltip`,`seek`),KF(e,this.#n.bind(this))}onConnect(e){XF(e,this.#r.bind(this))}#t(){let{canSeek:e}=this.#e.$state;return e()}#n(){let{seconds:e}=this.$props;return`Seek ${e()>0?`forward`:`backward`} ${e()} seconds`}#r(e){let{seconds:t,disabled:n}=this.$props;if(n())return;let{currentTime:r}=this.#e.$state,i=r()+t();this.#e.remote.seek(i,e)}},dz=class extends KM{static props={disabled:!1};#e;constructor(){super(),new hI}onSetup(){this.#e=LF();let{disabled:e}=this.$props,{live:t,liveEdge:n}=this.#e.$state,r=()=>!t();this.setAttributes({"data-edge":n,"data-hidden":r,"aria-disabled":iI(()=>e()||n()),"aria-hidden":iI(r)})}onAttach(e){GF(e,`tabindex`,`0`),GF(e,`role`,`button`),GF(e,`type`,`button`),e.setAttribute(`data-media-tooltip`,`live`)}onConnect(e){XF(e,this.#t.bind(this))}#t(e){let{disabled:t}=this.$props,{liveEdge:n}=this.#e.$state;t()||n()||this.#e.remote.seekToLiveEdge(e)}},fz=new qM({min:0,max:100,value:0,step:1,pointerValue:0,focused:!1,dragging:!1,pointing:!1,hidden:!1,get active(){return this.dragging||this.focused||this.pointing},get fillRate(){return $R(this.min,this.max,this.value)},get fillPercent(){return this.fillRate*100},get pointerRate(){return $R(this.min,this.max,this.pointerValue)},get pointerPercent(){return this.pointerRate*100}}),pz=class extends GM{#e;#t;constructor(e){super(),this.#e=e}onConnect(e){this.#t=new IntersectionObserver(e=>{this.#e.callback?.(e,this.#t)},this.#e),this.#t.observe(e),xj(this.#n.bind(this))}#n(){this.#t?.disconnect(),this.#t=void 0}},mz=eM(),hz=eM(),gz={Left:-1,ArrowLeft:-1,Up:1,ArrowUp:1,Right:1,ArrowRight:1,Down:-1,ArrowDown:-1},_z=class extends GM{#e;#t;#n;constructor(e,t){super(),this.#e=e,this.#t=t}onSetup(){rM(hz)&&(this.#n=nM(hz))}onConnect(e){Y(this.#u.bind(this,e)),Y(this.#d.bind(this,e)),this.#e.swipeGesture&&Y(this.#r.bind(this))}#r(){let{pointer:e}=this.#t.$state;if(e()!==`coarse`||!this.#e.swipeGesture()){this.#i=null,this.#s();return}if(this.#i=this.#t.player.el?.querySelector(`media-provider,[data-media-provider]`),!this.#i){this.#s();return}new RM(this.#i).add(`touchstart`,this.#c.bind(this),{passive:!0}).add(`touchmove`,this.#l.bind(this),{passive:!1})}#i=null;#a=null;#o=null;#s(){this.#a=null,this.#o=null}#c(e){this.#a=e.touches[0]}#l(e){if(zj(this.#a)||ZF(e))return;let t=e.touches[0],n=t.clientX-this.#a.clientX,r=t.clientY-this.#a.clientY,i=this.$state.dragging();!i&&Math.abs(r)>5||i||(e.preventDefault(),Math.abs(n)>20&&(this.#a=t,this.#o=this.$state.value(),this.#b(this.#o,e)))}#u(e){let{hidden:t}=this.$props;qj(e,`focus`,this.#f.bind(this)),!(t()||this.#e.isDisabled())&&new RM(e).add(`keyup`,this.#T.bind(this)).add(`keydown`,this.#w.bind(this)).add(`pointerenter`,this.#g.bind(this)).add(`pointermove`,this.#_.bind(this)).add(`pointerleave`,this.#v.bind(this)).add(`pointerdown`,this.#y.bind(this))}#d(e){this.#e.isDisabled()||!this.$state.dragging()||new RM(document).add(`pointerup`,this.#O.bind(this),{capture:!0}).add(`pointermove`,this.#A.bind(this)).add(`touchmove`,this.#k.bind(this),{passive:!1})}#f(){this.#m(this.$state.value())}#p(e,t){let{value:n,min:r,max:i,dragging:a}=this.$state,o=Math.max(r(),Math.min(e,i()));n.set(o);let s=this.createEvent(`value-change`,{detail:o,trigger:t});if(this.dispatch(s),this.#e.onValueChange?.(s),a()){let e=this.createEvent(`drag-value-change`,{detail:o,trigger:t});this.dispatch(e),this.#e.onDragValueChange?.(e)}}#m(e,t){let{pointerValue:n,dragging:r}=this.$state;n.set(e),this.dispatch(`pointer-value-change`,{detail:e,trigger:t}),r()&&this.#p(e,t)}#h(e){let t,n=this.el.getBoundingClientRect(),{min:r,max:i}=this.$state;if(this.$props.orientation()===`vertical`){let{bottom:r,height:i}=n;t=(r-e.clientY)/i}else if(this.#a&&Hj(this.#o)&&this.#i){let{width:n}=this.#i.getBoundingClientRect(),a=(e.clientX-this.#a.clientX)/n,o=i()-r(),s=o*Math.abs(a);t=(a<0?this.#o-s:this.#o+s)/o}else{this.#a&&Hj(this.#o)&&this.#s();let{left:r,width:i}=n;t=(e.clientX-r)/i}return Math.max(r(),Math.min(i(),this.#e.roundValue(Uxe(r(),i(),t,this.#e.getStep()))))}#g(e){this.$state.pointing.set(!0)}#_(e){let{dragging:t}=this.$state;t()||this.#m(this.#h(e),e)}#v(e){this.$state.pointing.set(!1)}#y(e){if(e.button!==0)return;let t=this.#h(e);this.#b(t,e),this.#m(t,e)}#b(e,t){let{dragging:n}=this.$state;if(n())return;n.set(!0),this.#t.remote.pauseControls(t);let r=this.createEvent(`drag-start`,{detail:e,trigger:t});this.dispatch(r),this.#e.onDragStart?.(r),this.#n?.onDragStart?.()}#x(e,t){let{dragging:n}=this.$state;if(!n())return;n.set(!1),this.#t.remote.resumeControls(t);let r=this.createEvent(`drag-end`,{detail:e,trigger:t});this.dispatch(r),this.#e.onDragEnd?.(r),this.#s(),this.#n?.onDragEnd?.()}#S;#C=!1;#w(e){if(!Object.keys(gz).includes(e.key))return;let{key:t}=e,n=this.#E(e);if(!zj(n)){this.#m(n,e),this.#p(n,e);return}let r=this.#D(e);this.#C||(this.#C=t===this.#S,!this.$state.dragging()&&this.#C&&this.#b(r,e)),this.#m(r,e),this.#S=t}#T(e){if(!Object.keys(gz).includes(e.key)||!zj(this.#E(e)))return;let t=this.#C?this.$state.pointerValue():this.#D(e);this.#p(t,e),this.#x(t,e),this.#S=``,this.#C=!1}#E(e){let t=e.key,{min:n,max:r}=this.$state;return t===`Home`||t===`PageUp`?n():t===`End`||t===`PageDown`?r():!e.metaKey&&/^[0-9]$/.test(t)?(r()-n())/10*Number(t):null}#D(e){let{key:t,shiftKey:n}=e;e.preventDefault(),e.stopPropagation();let{shiftKeyMultiplier:r}=this.$props,{min:i,max:a,value:o,pointerValue:s}=this.$state,c=this.#e.getStep(),l=this.#e.getKeyStep(),u=(n?l*r():l)*Number(gz[t]),d=((this.#C?s():this.#e.getValue?.()??o())+u)/c;return Math.max(i(),Math.min(a(),Number((c*d).toFixed(3))))}#O(e){if(e.button!==0)return;e.preventDefault(),e.stopImmediatePropagation();let t=this.#h(e);this.#m(t,e),this.#x(t,e)}#k(e){e.preventDefault()}#A=YM(e=>{this.#m(this.#h(e),e)},20,{leading:!0})},vz=eM(()=>({})),yz=class extends GM{static props={hidden:!1,disabled:!1,step:1,keyStep:1,orientation:`horizontal`,shiftKeyMultiplier:5};#e;#t;#n=Ij(!0);#r=Ij(!0);constructor(e){super(),this.#t=e}onSetup(){this.#e=LF();let e=new hI;e.attach(this),this.$state.focused=e.focused.bind(e),rM(vz)||tM(vz,{default:`value`}),tM(mz,{orientation:this.$props.orientation,disabled:this.#t.isDisabled,preview:Ij(null)}),Y(this.#o.bind(this)),Y(this.#s.bind(this)),Y(this.#c.bind(this)),this.#u(),new _z(this.#t,this.#e).attach(this),new pz({callback:this.#i.bind(this)}).attach(this)}onAttach(e){GF(e,`role`,`slider`),GF(e,`tabindex`,`0`),GF(e,`autocomplete`,`off`),Y(this.#d.bind(this))}onConnect(e){xj(JF(e,this.#n.set)),Y(this.#a.bind(this))}#i(e){this.#r.set(e[0].isIntersecting)}#a(){let{hidden:e}=this.$props;this.$state.hidden.set(e()||!this.#n()||!this.#r())}#o(){let{dragging:e,value:t,min:n,max:r}=this.$state;J(e)||t.set(Hxe(n(),r(),t(),this.#t.getStep()))}#s(){this.$state.step.set(this.#t.getStep())}#c(){if(!this.#t.isDisabled())return;let{dragging:e,pointing:t}=this.$state;e.set(!1),t.set(!1)}#l(){return cM(this.#t.isDisabled())}#u(){let{orientation:e}=this.$props,{dragging:t,active:n,pointing:r}=this.$state;this.setAttributes({"data-dragging":t,"data-pointing":r,"data-active":n,"aria-disabled":this.#l.bind(this),"aria-valuemin":this.#t.aria.valueMin??this.$state.min,"aria-valuemax":this.#t.aria.valueMax??this.$state.max,"aria-valuenow":this.#t.aria.valueNow,"aria-valuetext":this.#t.aria.valueText,"aria-orientation":e})}#d(){let{fillPercent:e,pointerPercent:t}=this.$state;this.#f(BF(e(),3),BF(t(),3))}#f=dM((e,t)=>{this.el?.style.setProperty(`--slider-fill`,e+`%`),this.el?.style.setProperty(`--slider-pointer`,t+`%`)})},bz=class extends KM{static props={...yz.props,min:0,max:100,value:0};static state=fz;constructor(){super(),new yz({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:Math.round,isDisabled:this.$props.disabled,aria:{valueNow:this.#e.bind(this),valueText:this.#t.bind(this)}})}onSetup(){Y(this.#n.bind(this)),Y(this.#r.bind(this))}#e(){let{value:e}=this.$state;return Math.round(e())}#t(){let{value:e,max:t}=this.$state;return BF(e()/t()*100,2)+`%`}#n(){let{value:e}=this.$props;this.$state.value.set(e())}#r(){let{min:e,max:t}=this.$props;this.$state.min.set(e()),this.$state.max.set(t())}},xz=new Map,Sz=new Map,Cz=class e{#e;#t;#n;$images=Ij([]);static create(t,n){return new e(t,n,LF())}constructor(e,t,n){this.#t=e,this.#n=t,this.#e=n,Y(this.#r.bind(this))}#r(){let{canLoad:e}=this.#e.$state;if(!e())return;let t=this.#t();if(t){if(Uj(t)&&xz.has(t)){let e=xz.get(t);if(xz.delete(t),xz.set(t,e),xz.size>99){let e=xz.keys().next().value;xz.delete(e)}this.$images.set(xz.get(t))}else if(Uj(t)){let e=this.#n(),n=t+`::`+e;if(!Sz.has(n)){let r=new Promise(async(n,r)=>{try{let i=await fetch(t,{credentials:QN(e)});if(i.headers.get(`content-type`)===`application/json`){let e=await i.json();if(Kj(e))if(e[0]&&`text`in e[0])n(this.#o(e));else{for(let t=0;t<e.length;t++){let n=e[t];uI(Vj(n),!1),uI(`url`in n&&Uj(n.url),!1),uI(`startTime`in n&&Hj(n.startTime),!1)}n(e)}else n(this.#a(e));return}Promise.resolve().then(()=>(jF(),AF)).then(async({parseResponse:e})=>{try{let{cues:t}=await e(i);n(this.#o(t))}catch(e){r(e)}})}catch(e){r(e)}}).then(e=>(xz.set(n,e),e)).catch(e=>{this.#u(t,e)}).finally(()=>{Uj(n)&&Sz.delete(n)});Sz.set(n,r)}Sz.get(n)?.then(e=>{this.$images.set(e||[])})}else if(Kj(t))try{this.$images.set(this.#i(t))}catch(e){this.#u(t,e)}else try{this.$images.set(this.#a(t))}catch(e){this.#u(t,e)}return()=>{this.$images.set([])}}}#i(e){let t=this.#s();return e.map((e,n)=>(uI(e.url&&Uj(e.url),!1),uI(`startTime`in e&&Hj(e.startTime),!1),{...e,url:Uj(e.url)?this.#c(e.url,t):e.url}))}#a(e){uI(Uj(e.url),!1),uI(Kj(e.tiles)&&e.tiles?.length,!1);let t=new URL(e.url),n=[],r=`tile_width`in e?e.tile_width:e.tileWidth,i=`tile_height`in e?e.tile_height:e.tileHeight;for(let a of e.tiles)n.push({url:t,startTime:`start`in a?a.start:a.startTime,width:r,height:i,coords:{x:a.x,y:a.y}});return n}#o(e){for(let t=0;t<e.length;t++){let n=e[t];uI(`startTime`in n&&Hj(n.startTime),!1),uI(`text`in n&&Uj(n.text),!1)}let t=[],n=this.#s();for(let r of e){let[e,i]=r.text.split(`#`),a=this.#l(i);t.push({url:this.#c(e,n),startTime:r.startTime,endTime:r.endTime,width:a?.w,height:a?.h,coords:a&&Hj(a.x)&&Hj(a.y)?{x:a.x,y:a.y}:void 0})}return t}#s(){let e=J(this.#t);return!Uj(e)||!/^https?:/.test(e)?location.href:e}#c(e,t){return/^https?:/.test(e)?new URL(e):new URL(e,t)}#l(e){if(!e)return{};let[t,n]=e.split(`=`),r=n?.split(`,`),i={};if(!t||!r)return null;for(let e=0;e<t.length;e++){let n=+r[e];isNaN(n)||(i[t[e]]=n)}return i}#u(e,t){}},wz=2,Tz=32,Ez=new Map,Dz=class extends KM{static props={src:null,time:0,crossOrigin:null};static state=new qM({src:``,img:null,thumbnails:[],activeThumbnail:null,crossOrigin:null,loading:!1,error:null,hidden:!1});media;#e;#t=[];onSetup(){this.media=LF(),this.#e=Cz.create(this.$props.src,this.$state.crossOrigin),this.#r(),this.setAttributes({"data-loading":this.#s.bind(this),"data-error":this.#c.bind(this),"data-hidden":this.$state.hidden,"aria-hidden":iI(this.$state.hidden)})}onConnect(e){Y(this.#n.bind(this)),Y(this.#l.bind(this)),Y(this.#r.bind(this)),Y(this.#i.bind(this)),Y(this.#u.bind(this)),Y(this.#d.bind(this)),Y(this.#f.bind(this))}#n(){let e=this.$state.img();e&&new RM(e).add(`load`,this.#a.bind(this)).add(`error`,this.#o.bind(this))}#r(){let{crossOrigin:e}=this.$props,{crossOrigin:t}=this.$state,{crossOrigin:n}=this.media.$state,r=e()===null?n():e();t.set(r===!0?`anonymous`:r)}#i(){let{src:e,loading:t,error:n}=this.$state;return e()&&(t.set(!0),n.set(null)),()=>{this.#m(),t.set(!1),n.set(null)}}#a(){let{loading:e,error:t}=this.$state;this.#f(),e.set(!1),t.set(null)}#o(e){let{loading:t,error:n}=this.$state;t.set(!1),n.set(e)}#s(){let{loading:e,hidden:t}=this.$state;return!t()&&e()}#c(){let{error:e}=this.$state;return!zj(e())}#l(){let{hidden:e}=this.$state,{duration:t}=this.media.$state,n=this.#e.$images();e.set(this.#c()||!Number.isFinite(t())||n.length===0)}getTime(){return this.$props.time()}#u(){let e=this.#e.$images();if(!e.length)return;let t=this.getTime(),{src:n,activeThumbnail:r}=this.$state,i=-1,a=null;for(let n=e.length-1;n>=0;n--){let r=e[n];if(t>=r.startTime&&(!r.endTime||t<r.endTime)){i=n;break}}e[i]&&(a=e[i]),n.set(a?.url.href||``),r.set(a)}#d(){let e=this.#e.$images(),t=this.$state.activeThumbnail();if(!t)return;let n=e.indexOf(t);if(n<0)return;let r=t.url.href,i=this.$state.crossOrigin(),a=n+1,o=Math.min(a+wz,e.length);for(let t=a;t<o;t++){let n=e[t].url.href;n!==r&&Wxe(n,i)}}#f(){if(!this.scope||this.$state.hidden())return;let e=this.el,t=this.$state.img(),n=this.$state.activeThumbnail();if(!t||!n||!e)return;let r=n.width??t.naturalWidth,i=n?.height??t.naturalHeight,{maxWidth:a,maxHeight:o,minWidth:s,minHeight:c,width:l,height:u}=getComputedStyle(this.el);s===`100%`&&(s=parseFloat(l)+``),c===`100%`&&(c=parseFloat(u)+``);let d=Math.max(parseInt(s)/r,parseInt(c)/i),f=Math.min(Math.max(parseInt(s),parseInt(a))/r,Math.max(parseInt(c),parseInt(o))/i),p=!isNaN(f)&&f<1?f:d>1?d:1;this.#p(e,`--thumbnail-width`,`${r*p}px`),this.#p(e,`--thumbnail-height`,`${i*p}px`),this.#p(e,`--thumbnail-aspect-ratio`,String(BF(r/i,5))),this.#p(t,`width`,`${t.naturalWidth*p}px`),this.#p(t,`height`,`${t.naturalHeight*p}px`),this.#p(t,`transform`,n.coords?`translate(-${n.coords.x*p}px, -${n.coords.y*p}px)`:``),this.#p(t,`max-width`,`none`)}#p(e,t,n){e.style.setProperty(t,n),this.#t.push(()=>e.style.removeProperty(t))}#m(){for(let e of this.#t)e();this.#t=[]}},Oz=class extends KM{static props={type:`pointer`,format:null,showHours:!1,showMs:!1,padHours:null,padMinutes:null,decimalPlaces:2};#e;#t;#n;onSetup(){this.#n=oM(bz.state),this.#e=nM(vz),this.#t=Lj(this.getValueText.bind(this))}getValueText(){let{type:e,format:t,decimalPlaces:n,padHours:r,padMinutes:i,showHours:a,showMs:o}=this.$props,{value:s,pointerValue:c,min:l,max:u}=this.#n,d=t?.()??this.#e.default,f=e()===`current`?s():c();if(d===`percent`){let e=f/(u()-l())*100;return(this.#e.percent??BF)(e,n())+`%`}else if(d===`time`)return(this.#e.time??ZR)(f,{padHrs:r(),padMins:i(),showHrs:a(),showMs:o()});else return(this.#e.value?.(f)??f.toFixed(2))+``}},kz=Oz.prototype,aM(kz,`getValueText`),Az=class extends KM{static props={offset:0,noClamp:!1};#e;onSetup(){this.#e=nM(mz);let{active:e}=oM(bz.state);this.setAttributes({"data-visible":e})}onAttach(e){Object.assign(e.style,{position:`absolute`,top:0,left:0,width:`max-content`})}onConnect(e){let{preview:t}=this.#e;t.set(e),xj(()=>t.set(null)),Y(this.#t.bind(this));let n=new ResizeObserver(this.#t.bind(this));n.observe(e),xj(()=>n.disconnect())}#t=dM(()=>{let{disabled:e,orientation:t}=this.#e;if(e())return;let n=this.el,{offset:r,noClamp:i}=this.$props;n&&Gxe(n,{clamp:!i(),offset:r(),orientation:t()})})},jz=class extends KM{static props={...yz.props,keyStep:5,shiftKeyMultiplier:2};static state=fz;#e;onSetup(){this.#e=LF();let{audioGain:e}=this.#e.$state;tM(vz,{default:`percent`,value(t){return(t*(e()??1)).toFixed(2)},percent(t){return Math.round(t*(e()??1))}}),new yz({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:Math.round,isDisabled:this.#i.bind(this),aria:{valueMax:this.#r.bind(this),valueNow:this.#t.bind(this),valueText:this.#n.bind(this)},onDragValueChange:this.#l.bind(this),onValueChange:this.#c.bind(this)}).attach(this),Y(this.#a.bind(this))}onAttach(e){e.setAttribute(`data-media-volume-slider`,``),GF(e,`aria-label`,`Volume`);let{canSetVolume:t}=this.#e.$state;this.setAttributes({"data-supported":t,"aria-hidden":iI(()=>!t())})}#t(){let{value:e}=this.$state,{audioGain:t}=this.#e.$state;return Math.round(e()*(t()??1))}#n(){let{value:e,max:t}=this.$state,{audioGain:n}=this.#e.$state;return BF(e()/t()*(n()??1)*100,2)+`%`}#r(){let{audioGain:e}=this.#e.$state;return this.$state.max()*(e()??1)}#i(){let{disabled:e}=this.$props,{canSetVolume:t}=this.#e.$state;return e()||!t()}#a(){let{muted:e,volume:t}=this.#e.$state,n=e()?0:t()*100;this.$state.value.set(n),this.dispatch(`value-change`,{detail:n})}#o=YM(this.#s.bind(this),25);#s(e){if(!e.trigger)return;let t=BF(e.detail/100,3);this.#e.remote.changeVolume(t,e)}#c(e){this.#o(e)}#l(e){this.#o(e)}},Mz=class extends KM{static props={...yz.props,step:.1,keyStep:5,shiftKeyMultiplier:2,pauseWhileDragging:!1,noSwipeGesture:!1,seekingRequestThrottle:100};static state=fz;#e;#t;#n=Ij(null);constructor(){super();let{noSwipeGesture:e}=this.$props;new yz({swipeGesture:()=>!e(),getValue:this.#h.bind(this),getStep:this.#g.bind(this),getKeyStep:this.#_.bind(this),roundValue:this.#v,isDisabled:this.#y.bind(this),aria:{valueNow:this.#b.bind(this),valueText:this.#x.bind(this)},onDragStart:this.#d.bind(this),onDragValueChange:this.#f.bind(this),onDragEnd:this.#p.bind(this),onValueChange:this.#m.bind(this)})}onSetup(){this.#e=LF(),tM(vz,{default:`time`,value:this.#w.bind(this),time:this.#T.bind(this)}),this.setAttributes({"data-chapters":this.#i.bind(this)}),this.setStyles({"--slider-progress":this.#r.bind(this)}),Y(this.#o.bind(this)),Y(this.#a.bind(this))}onAttach(e){e.setAttribute(`data-media-time-slider`,``),GF(e,`aria-label`,`Seek`)}onConnect(e){Y(this.#s.bind(this)),nP(this.#e.textTracks,`chapters`,this.#n.set)}#r(){let{bufferedEnd:e,duration:t}=this.#e.$state;return BF(Math.min(e()/Math.max(t(),1),1)*100,3)+`%`}#i(){let{duration:e}=this.#e.$state;return this.#n()?.cues.length&&Number.isFinite(e())&&e()>0}#a(){this.#t=YM(this.#c.bind(this),this.$props.seekingRequestThrottle())}#o(){if(this.$state.hidden())return;let{value:e,dragging:t}=this.$state,n=this.#h();J(t)||(e.set(n),this.dispatch(`value-change`,{detail:n}))}#s(){let e=this.#e.player.el,{preview:t}=nM(mz);e&&t()&&Qj(e,`data-preview`,this.$state.active())}#c(e,t){this.#e.remote.seeking(e,t)}#l(e,t,n){this.#t.cancel();let{live:r}=this.#e.$state;if(r()&&t>=99){this.#e.remote.seekToLiveEdge(n);return}this.#e.remote.seek(e,n)}#u=!1;#d(e){let{pauseWhileDragging:t}=this.$props;if(t()){let{paused:t}=this.#e.$state;this.#u=!t(),this.#e.remote.pause(e)}}#f(e){this.#t(this.#S(e.detail),e)}#p(e){let{seeking:t}=this.#e.$state;J(t)||this.#c(this.#S(e.detail),e);let n=e.detail;this.#l(this.#S(n),n,e);let{pauseWhileDragging:r}=this.$props;r()&&this.#u&&(this.#e.remote.play(e),this.#u=!1)}#m(e){let{dragging:t}=this.$state;t()||!e.trigger||this.#p(e)}#h(){let{currentTime:e}=this.#e.$state;return this.#C(e())}#g(){let e=this.$props.step()/this.#e.$state.duration()*100;return Number.isFinite(e)?e:1}#_(){let e=this.$props.keyStep()/this.#e.$state.duration()*100;return Number.isFinite(e)?e:1}#v(e){return BF(e,3)}#y(){let{disabled:e}=this.$props,{canSeek:t}=this.#e.$state;return e()||!t()}#b(){let{value:e}=this.$state;return Math.round(e())}#x(){let e=this.#S(this.$state.value()),{duration:t}=this.#e.$state;return Number.isFinite(e)?`${QR(e)} out of ${QR(t())}`:`live`}#S(e){let{duration:t}=this.#e.$state;return BF(e/100*t(),5)}#C(e){let{liveEdge:t,duration:n}=this.#e.$state,r=Math.max(0,Math.min(1,t()?1:Math.min(e,n())/n()));return Number.isNaN(r)?0:Number.isFinite(r)?r*100:100}#w(e){let t=this.#S(e),{live:n,duration:r}=this.#e.$state;return Number.isFinite(t)?(n()?t-r():t).toFixed(0):`LIVE`}#T(e,t){let n=this.#S(e),{live:r,duration:i}=this.#e.$state,a=r()?n-i():n;return Number.isFinite(n)?`${a<0?`-`:``}${ZR(Math.abs(a),t)}`:`LIVE`}},Nz=eM(),Pz=[`a[href]`,`[tabindex]`,`input`,`select`,`button`].map(e=>`${e}:not([aria-hidden='true'])`).join(`,`),Fz=new Set([`Escape`,`Tab`,`ArrowUp`,`ArrowDown`,`Home`,`PageUp`,`End`,`PageDown`,`Enter`,` `]),Iz=class{#e=-1;#t=null;#n=[];#r;get items(){return this.#n}constructor(e){this.#r=e}attachMenu(e){qj(e,`focus`,this.#o.bind(this)),this.#t=e,xj(()=>{this.#t=null})}listen(){this.#t&&(this.update(),new RM(this.#t).add(`keyup`,this.#c.bind(this)).add(`keydown`,this.#l.bind(this)),xj(()=>{this.#e=-1,this.#n=[]}))}update(){this.#e=0,this.#n=this.#d()}scroll(e=this.#a()){let t=this.#n[e];t&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{qxe(t,{behavior:`smooth`,boundary:e=>!e.hasAttribute(`data-root`)})})})}focusActive(e=!0){let t=this.#a();this.#i(t>=0?t:0,e)}#i(e,t=!0){this.#e=e,this.#n[e]?(this.#n[e].focus({preventScroll:!0}),t&&this.scroll(e)):this.#t?.focus({preventScroll:!0})}#a(){return this.#n.findIndex(e=>document.activeElement===e||e.getAttribute(`role`)===`menuitemradio`&&e.getAttribute(`aria-checked`)===`true`)}#o(){this.#e>=0||(this.update(),this.focusActive())}#s(e){let t=e.target;if(Hye(e)&&t instanceof Element){let e=t.getAttribute(`role`);return!/a|input|select|button/.test(t.localName)&&!e}return Fz.has(e.key)}#c(e){this.#s(e)&&(e.stopPropagation(),e.preventDefault())}#l(e){if(this.#s(e))switch(e.stopPropagation(),e.preventDefault(),e.key){case`Escape`:this.#r.closeMenu(e);break;case`Tab`:this.#i(this.#u(e.shiftKey?-1:1));break;case`ArrowUp`:this.#i(this.#u(-1));break;case`ArrowDown`:this.#i(this.#u(1));break;case`Home`:case`PageUp`:this.#i(0);break;case`End`:case`PageDown`:this.#i(this.#n.length-1);break}}#u(e){let t=this.#e;do t=(t+e+this.#n.length)%this.#n.length;while(this.#n[t]?.offsetParent===null);return t}#d(){if(!this.#t)return[];let e=this.#t.querySelectorAll(Pz),t=[],n=e=>e.getAttribute(`role`)===`menu`;for(let r of e)rI(r)&&r.offsetParent!==null&&YF(this.#t,r,n)&&t.push(r);return t}},Lz=0,Rz=class extends KM{static props={showDelay:0};#e;#t;#n;#r=Ij(!1);#i=Ij(!1);#a=Ij(null);#o=Ij(null);#s;#c=new Set;#l=null;#u;#d;#f=!1;#p=Ij(!1);#m=new Set;get triggerElement(){return this.#a()}get contentElement(){return this.#o()}get isSubmenu(){return!!this.#s}constructor(){super();let{showDelay:e}=this.$props;this.#u=new nz({trigger:this.#a,content:this.#o,showDelay:e,listen:(e,t,n)=>{XF(e,e=>{this.#r()?n(e):t(e)});let r=this.#A();r&&XF(r,e=>{e.stopPropagation(),n(e)})},onChange:this.#C.bind(this)})}onSetup(){this.#e=LF();let e=++Lz;this.#t=`media-menu-${e}`,this.#n=`media-menu-button-${e}`,this.#d=new Iz({closeMenu:this.close.bind(this)}),rM(Nz)&&(this.#s=nM(Nz)),this.#h(),this.setAttributes({"data-open":this.#r,"data-root":!this.isSubmenu,"data-submenu":this.isSubmenu,"data-disabled":this.#E.bind(this)}),tM(Nz,{button:this.#a,content:this.#o,expanded:this.#r,hint:Ij(``),submenu:!!this.#s,disable:this.#D.bind(this),attachMenuButton:this.#_.bind(this),attachMenuItems:this.#v.bind(this),attachObserver:this.#y.bind(this),disableMenuButton:this.#x.bind(this),addSubmenu:this.#M.bind(this),onTransitionEvent:e=>{this.#m.add(e),xj(()=>{this.#m.delete(e)})}})}onAttach(e){e.style.setProperty(`display`,`contents`)}onConnect(e){Y(this.#g.bind(this)),this.isSubmenu&&this.#s?.addSubmenu(this)}onDestroy(){this.#a.set(null),this.#o.set(null),this.#l=null,this.#m.clear()}#h(){let e=-1,t=rM(hz)?nM(hz):null;tM(hz,{onDragStart:()=>{t?.onDragStart?.(),window.clearTimeout(e),e=-1,this.#f=!0},onDragEnd:()=>{t?.onDragEnd?.(),e=window.setTimeout(()=>{this.#f=!1,e=-1},300)}})}#g(){let e=this.#T();this.isSubmenu||this.#B(),this.#b(e),e&&(Y(()=>{let{height:e}=this.#e.$state,t=this.#o();t&&$j(t,`--player-height`,e()+`px`)}),this.#d.listen(),this.listen(`pointerup`,this.#O.bind(this)),qj(window,`pointerup`,this.#k.bind(this)))}#_(e){let t=e.el,n=this.isSubmenu,r=iI(this.#E.bind(this));GF(t,`tabindex`,n?`-1`:`0`),GF(t,`role`,n?`menuitem`:`button`),Qj(t,`id`,this.#n),Qj(t,`aria-haspopup`,`menu`),Qj(t,`aria-expanded`,`false`),Qj(t,`data-root`,!this.isSubmenu),Qj(t,`data-submenu`,this.isSubmenu),Y(()=>{Qj(t,`data-open`,this.#r()),Qj(t,`aria-disabled`,r())}),this.#a.set(t),xj(()=>{this.#a.set(null)})}#v(e){let t=e.el;t.style.setProperty(`display`,`none`),Qj(t,`id`,this.#t),GF(t,`role`,`menu`),GF(t,`tabindex`,`-1`),Qj(t,`data-root`,!this.isSubmenu),Qj(t,`data-submenu`,this.isSubmenu),this.#o.set(t),xj(()=>this.#o.set(null)),Y(()=>Qj(t,`data-open`,this.#r())),this.#d.attachMenu(t),this.#b(!1);let n=this.#H.bind(this);this.isSubmenu?this.#s?.onTransitionEvent(n):(e.listen(`transitionstart`,n),e.listen(`transitionend`,n),e.listen(`animationend`,this.#B),e.listen(`vds-menu-resize`,this.#B))}#y(e){this.#l=e}#b(e){let t=J(this.#o);t&&Qj(t,`aria-hidden`,cM(!e))}#x(e){this.#p.set(e)}#S=!1;#C(e,t){if(this.#S=Xj(t),t?.stopPropagation(),this.#r()===e)return;if(this.#E()){e&&this.#u.hide(t);return}this.el?.dispatchEvent(new Event(`vds-menu-resize`,{bubbles:!0,composed:!0}));let n=this.#a(),r=this.#o();if(n&&(Qj(n,`aria-controls`,e&&this.#t),Qj(n,`aria-expanded`,cM(e))),r&&Qj(r,`aria-labelledby`,e&&this.#n),this.#r.set(e),this.#j(t),_j(),this.#S){e?r?.focus():n?.focus();for(let e of[this.el,r])e&&e.setAttribute(`data-keyboard`,``)}else for(let e of[this.el,r])e&&e.removeAttribute(`data-keyboard`);if(this.dispatch(e?`open`:`close`,{trigger:t}),e)!this.isSubmenu&&this.#e.activeMenu!==this&&(this.#e.activeMenu?.close(t),this.#e.activeMenu=this),this.#l?.onOpen?.(t);else{if(this.isSubmenu)for(let e of this.#c)e.close(t);else this.#e.activeMenu=null;this.#l?.onClose?.(t)}e&&requestAnimationFrame(this.#w.bind(this))}#w(){this.#V||this.#F||(this.#d.update(),requestAnimationFrame(()=>{this.#S?this.#d.focusActive():this.#d.scroll()}))}#T(){return!this.#E()&&this.#r()}#E(){return this.#i()||this.#p()}#D(e){this.#i.set(e)}#O(e){let t=this.#o();this.#f||t&&WF(t,e)||e.stopPropagation()}#k(e){let t=this.#o();this.#f||t&&WF(t,e)||this.close(e)}#A(){let e=this.el?.querySelector(`[data-part="close-target"]`);return this.el&&e&&YF(this.el,e,e=>e.getAttribute(`role`)===`menu`)?e:null}#j(e){this.isSubmenu||(this.#r()?this.#e.remote.pauseControls(e):this.#e.remote.resumeControls(e))}#M(e){this.#c.add(e),new RM(e).add(`open`,this.#I).add(`close`,this.#R),xj(this.#N)}#N=this.#P.bind(this);#P(e){this.#c.delete(e)}#F=!1;#I=this.#L.bind(this);#L(e){this.#F=!0;let t=this.#o();this.isSubmenu&&this.triggerElement?.setAttribute(`aria-hidden`,`true`);for(let t of this.#c)if(t!==e.target)for(let e of[t.el,t.triggerElement])e?.setAttribute(`aria-hidden`,`true`);if(t){let n=e.target.el;for(let e of t.children)e.contains(n)?e.setAttribute(`data-open`,``):e!==n&&e.setAttribute(`data-hidden`,``)}}#R=this.#z.bind(this);#z(e){this.#F=!1;let t=this.#o();this.isSubmenu&&this.triggerElement?.setAttribute(`aria-hidden`,`false`);for(let e of this.#c)for(let t of[e.el,e.triggerElement])t?.setAttribute(`aria-hidden`,`false`);if(t)for(let e of t.children)e.removeAttribute(`data-open`),e.removeAttribute(`data-hidden`)}#B=dM(()=>{let e=J(this.#o);if(!e)return;let t=0,n=getComputedStyle(e),r=[...e.children];for(let e of[`paddingTop`,`paddingBottom`,`borderTopWidth`,`borderBottomWidth`])t+=parseFloat(n[e])||0;for(let e of r)if(rI(e)&&e.style.display===`contents`)r.push(...e.children);else if(e.nodeType===3)t+=parseFloat(getComputedStyle(e).fontSize);else if(rI(e)){if(!qF(e))continue;let n=getComputedStyle(e);t+=e.offsetHeight+(parseFloat(n.marginTop)||0)+(parseFloat(n.marginBottom)||0)}$j(e,`--menu-height`,t+`px`)});#V=!1;#H(e){let t=this.#o();t&&e.propertyName===`height`&&(this.#V=e.type===`transitionstart`,Qj(t,`data-transition`,this.#V?`height`:null),this.#r()&&this.#w());for(let t of this.#m)t(e)}open(e){J(this.#r)||(this.#u.show(e),_j())}close(e){J(this.#r)&&(this.#u.hide(e),_j())}},ez([iM],Rz.prototype,`triggerElement`,null),ez([iM],Rz.prototype,`contentElement`,null),ez([iM],Rz.prototype,`isSubmenu`,null),ez([aM],Rz.prototype,`open`,null),ez([aM],Rz.prototype,`close`,null),zz=class extends KM{static props={disabled:!1};#e;#t=Ij(null);get expanded(){return this.#e?.expanded()??!1}constructor(){super(),new hI}onSetup(){this.#e=nM(Nz)}onAttach(e){this.#e.attachMenuButton(this),Y(this.#n.bind(this)),GF(e,`type`,`button`)}onConnect(e){Y(this.#r.bind(this)),this.#i();let t=new MutationObserver(this.#i.bind(this));t.observe(e,{attributeFilter:[`data-part`],childList:!0,subtree:!0}),xj(()=>t.disconnect()),XF(e,e=>{this.dispatch(`select`,{trigger:e})})}#n(){this.#e.disableMenuButton(this.$props.disabled())}#r(){let e=this.#t();e&&Y(()=>{let t=this.#e.hint();t&&(e.textContent=t)})}#i(){let e=this.el?.querySelector(`[data-part="hint"]`);this.#t.set(e??null)}},Bz=zz.prototype,iM(Bz,`expanded`),Vz=class extends zz{},Hz=class extends KM{static props={container:null,disabled:!1};#e=null;#t;onSetup(){this.#t=LF(),tM(Uz,{attach:this.#n.bind(this)})}onAttach(e){e.style.setProperty(`display`,`contents`)}onConnect(e){}onDestroy(){this.#e?.remove(),this.#e=null}#n(e){this.#i(!1),this.#e=e,QF(()=>{QF(()=>{this.connectScope&&Y(this.#r.bind(this))})})}#r(){let{fullscreen:e}=this.#t.$state,{disabled:t}=this.$props;this.#i(t()===`fullscreen`?!e():!t())}#i(e){if(!this.#e)return;let t=this.#a(this.$props.container());if(!t)return;let n=this.#e.parentElement===t;Qj(this.#e,`data-portal`,e),e?n||(this.#e.remove(),t.append(this.#e)):n&&this.#e.parentElement===t&&(this.#e.remove(),this.el?.append(this.#e))}#a(e){return rI(e)?e:e?document.querySelector(e):document.body}},Uz=eM(),Wz=class extends KM{static props={placement:null,offset:0,alignOffset:0};#e;constructor(){super(),new hI;let{placement:e}=this.$props;this.setAttributes({"data-placement":e})}onAttach(e){if(this.#e=nM(Nz),this.#e.attachMenuItems(this),rM(Uz)){let t=nM(Uz);t&&(tM(Uz,null),t.attach(e),xj(()=>t.attach(null)))}}onConnect(e){Y(this.#t.bind(this))}#t(){let{expanded:e}=this.#e;if(!this.el||!e())return;let t=this.$props.placement();if(!t)return;Object.assign(this.el.style,{position:`absolute`,top:0,left:0,width:`max-content`});let{offset:n,alignOffset:r}=this.$props;xj(nI(this.el,this.#r(),t,{offsetVarName:`media-menu`,xOffset:r(),yOffset:n()})),xj(this.#n.bind(this))}#n(){this.el&&(this.el.removeAttribute(`style`),this.el.style.display=`none`)}#r(){return this.#e.button()}},Gz=eM(),Kz=class extends GM{#e=new Set;#t=Ij(``);onValueChange;get values(){return Array.from(this.#e).map(e=>e.value())}get value(){return this.#t()}set value(e){this.#a(e)}onSetup(){tM(Gz,{add:this.#n.bind(this),remove:this.#r.bind(this)})}onAttach(e){rM(Nz)||GF(e,`role`,`radiogroup`),this.setAttributes({value:this.#t})}onDestroy(){this.#e.clear()}#n(e){this.#e.has(e)||(this.#e.add(e),e.onCheck=this.#i,e.check(e.value()===this.#t()))}#r(e){e.onCheck=null,this.#e.delete(e)}#i=this.#a.bind(this);#a(e,t){let n=J(this.#t);if(!e||e===n)return;let r=this.#o(n),i=this.#o(e);r?.check(!1,t),i?.check(!0,t),this.#t.set(e),this.onValueChange?.(e,t)}#o(e){for(let t of this.#e)if(e===J(t.value))return t;return null}},qz=class extends KM{static props={value:``};#e=Ij(!1);#t={value:this.$props.value,check:this.#o.bind(this),onCheck:null};get checked(){return this.#e()}constructor(){super(),new hI}onSetup(){this.setAttributes({value:this.$props.value,"data-checked":this.#e,"aria-checked":iI(this.#e)})}onAttach(e){let t=rM(Nz);GF(e,`tabindex`,t?`-1`:`0`),GF(e,`role`,t?`menuitemradio`:`radio`),Y(this.#i.bind(this))}onConnect(e){this.#r(),XF(e,this.#a.bind(this)),xj(this.#n.bind(this))}#n(){yj(()=>{nM(Gz).remove(this.#t)},this.connectScope)}#r(){nM(Gz).add(this.#t)}#i(){let{value:e}=this.$props,t=e();J(this.#e)&&this.#t.onCheck?.(t)}#a(e){J(this.#e)||(this.#s(!0,e),this.#c(e),this.#t.onCheck?.(J(this.$props.value),e))}#o(e,t){J(this.#e)!==e&&this.#s(e,t)}#s(e,t){this.#e.set(e),this.dispatch(`change`,{detail:e,trigger:t})}#c(e){this.dispatch(`select`,{trigger:e})}},Jz=qz.prototype,iM(Jz,`checked`),Yz=class extends KM{static props={emptyLabel:`Default`};#e;#t;#n;get value(){return this.#n.value}get disabled(){let{audioTracks:e}=this.#t.$state;return e().length<=1}constructor(){super(),this.#n=new Kz,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#t=LF(),rM(Nz)&&(this.#e=nM(Nz))}onConnect(e){Y(this.#r.bind(this)),Y(this.#a.bind(this)),Y(this.#i.bind(this))}getOptions(){let{audioTracks:e}=this.#t.$state;return e().map(e=>({track:e,label:e.label,value:e.label.toLowerCase()}))}#r(){this.#n.value=this.#o()}#i(){let{emptyLabel:e}=this.$props,{audioTrack:t}=this.#t.$state,n=t();this.#e?.hint.set(n?.label??e())}#a(){this.#e?.disable(this.disabled)}#o(){let{audioTrack:e}=this.#t.$state,t=e();return t?t.label.toLowerCase():``}#s(e,t){if(this.disabled)return;let n=this.#t.audioTracks.toArray().findIndex(t=>t.label.toLowerCase()===e);if(n>=0){let e=this.#t.audioTracks[n];this.#t.remote.changeAudioTrack(n,t),this.dispatch(`change`,{detail:e,trigger:t})}}},Xz=Yz.prototype,iM(Xz,`value`),iM(Xz,`disabled`),aM(Xz,`getOptions`),Zz=class extends KM{static props={offLabel:`Off`};#e;#t;#n;get value(){return this.#n.value}get disabled(){let{hasCaptions:e}=this.#e.$state;return!e()}constructor(){super(),this.#n=new Kz,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#e=LF(),rM(Nz)&&(this.#t=nM(Nz))}onConnect(e){super.onConnect?.(e),Y(this.#r.bind(this)),Y(this.#a.bind(this)),Y(this.#i.bind(this))}getOptions(){let{offLabel:e}=this.$props,{textTracks:t}=this.#e.$state;return[{value:`off`,label:e},...t().filter(MF).map(e=>({track:e,label:e.label,value:this.#c(e)}))]}#r(){this.#n.value=this.#o()}#i(){let{offLabel:e}=this.$props,{textTrack:t}=this.#e.$state,n=t();this.#t?.hint.set(n&&MF(n)&&n.mode===`showing`?n.label:e())}#a(){this.#t?.disable(this.disabled)}#o(){let{textTrack:e}=this.#e.$state,t=e();return t&&MF(t)&&t.mode===`showing`?this.#c(t):`off`}#s(e,t){if(this.disabled)return;if(e===`off`){let e=this.#e.textTracks.selected;if(e){let n=this.#e.textTracks.indexOf(e);this.#e.remote.changeTextTrackMode(n,`disabled`,t),this.dispatch(`change`,{detail:null,trigger:t})}return}let n=this.#e.textTracks.toArray().findIndex(t=>this.#c(t)===e);if(n>=0){let e=this.#e.textTracks[n];this.#e.remote.changeTextTrackMode(n,`showing`,t),this.dispatch(`change`,{detail:e,trigger:t})}}#c(e){return e.id+`:`+e.kind+`-`+e.label.toLowerCase()}},Qz=Zz.prototype,iM(Qz,`value`),iM(Qz,`disabled`),aM(Qz,`getOptions`),$z=[.25,.5,.75,1,1.25,1.5,1.75,2],eB=class extends KM{static props={normalLabel:`Normal`,rates:$z};#e;#t;#n;get value(){return this.#n.value}get disabled(){let{rates:e}=this.$props,{canSetPlaybackRate:t}=this.#e.$state;return!t()||e().length===0}constructor(){super(),this.#n=new Kz,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#e=LF(),rM(Nz)&&(this.#t=nM(Nz))}onConnect(e){Y(this.#r.bind(this)),Y(this.#i.bind(this)),Y(this.#a.bind(this))}getOptions(){let{rates:e,normalLabel:t}=this.$props;return e().map(e=>({label:e===1?t:e+`×`,value:e.toString()}))}#r(){this.#n.value=this.#o()}#i(){let{normalLabel:e}=this.$props,{playbackRate:t}=this.#e.$state,n=t();this.#t?.hint.set(n===1?e():n+`×`)}#a(){this.#t?.disable(this.disabled)}#o(){let{playbackRate:e}=this.#e.$state;return e().toString()}#s(e,t){if(this.disabled)return;let n=+e;this.#e.remote.changePlaybackRate(n,t),this.dispatch(`change`,{detail:n,trigger:t})}},tB=eB.prototype,iM(tB,`value`),iM(tB,`disabled`),aM(tB,`getOptions`),nB=class extends KM{static props={autoLabel:`Auto`,hideBitrate:!1,sort:`descending`};#e;#t;#n;get value(){return this.#n.value}get disabled(){let{canSetQuality:e,qualities:t}=this.#e.$state;return!e()||t().length<=1}#r=Lj(()=>{let{sort:e}=this.$props,{qualities:t}=this.#e.$state;return JR(t(),e()===`descending`)});constructor(){super(),this.#n=new Kz,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#e=LF(),rM(Nz)&&(this.#t=nM(Nz))}onConnect(e){Y(this.#i.bind(this)),Y(this.#o.bind(this)),Y(this.#a.bind(this))}getOptions(){let{autoLabel:e,hideBitrate:t}=this.$props;return[{value:`auto`,label:e},...this.#r().map(e=>{let n=e.bitrate&&e.bitrate>=0?`${BF(e.bitrate/1e6,2)} Mbps`:null;return{quality:e,label:e.height+`p`,value:this.#l(e),bitrate:()=>t()?null:n}})]}#i(){this.#n.value=this.#c()}#a(){let{autoLabel:e}=this.$props,{autoQuality:t,quality:n}=this.#e.$state,r=n()?n().height+`p`:``;this.#t?.hint.set(t()?e()+(r?` (${r})`:``):r)}#o(){this.#t?.disable(this.disabled)}#s(e,t){if(this.disabled)return;if(e===`auto`){this.#e.remote.changeQuality(-1,t),this.dispatch(`change`,{detail:`auto`,trigger:t});return}let{qualities:n}=this.#e.$state,r=J(n).findIndex(t=>this.#l(t)===e);if(r>=0){let e=J(n)[r];this.#e.remote.changeQuality(r,t),this.dispatch(`change`,{detail:e,trigger:t})}}#c(){let{quality:e,autoQuality:t}=this.#e.$state;if(t())return`auto`;let n=e();return n?this.#l(n):`auto`}#l(e){return e.height+`_`+e.bitrate}},rB=nB.prototype,iM(rB,`value`),iM(rB,`disabled`),aM(rB,`getOptions`),iB=class extends KM{static props={type:`current`,showHours:!1,padHours:null,padMinutes:null,remainder:!1,toggle:!1,hidden:!1};static state=new qM({timeText:``,hidden:!1});#e;#t=Ij(null);#n=Ij(!0);#r=Ij(!0);onSetup(){this.#e=LF(),this.#s();let{type:e}=this.$props;this.setAttributes({"data-type":e,"data-remainder":this.#u.bind(this)}),new pz({callback:this.#i.bind(this)}).attach(this)}onAttach(e){e.hasAttribute(`role`)||Y(this.#c.bind(this)),Y(this.#s.bind(this))}onConnect(e){xj(JF(e,this.#n.set)),Y(this.#a.bind(this)),Y(this.#o.bind(this))}#i(e){this.#r.set(e[0].isIntersecting)}#a(){let{hidden:e}=this.$props;this.$state.hidden.set(e()||!this.#n()||!this.#r())}#o(){if(!this.$props.toggle()){this.#t.set(null);return}this.el&&XF(this.el,this.#d.bind(this))}#s(){let{hidden:e,timeText:t}=this.$state,{duration:n}=this.#e.$state;if(e())return;let{type:r,padHours:i,padMinutes:a,showHours:o}=this.$props,s=this.#l(r()),c=n(),l=this.#u();if(!Number.isFinite(s+c)){t.set(`LIVE`);return}let u=ZR(l?Math.max(0,c-s):s,{padHrs:i(),padMins:a(),showHrs:o()});t.set((l?`-`:``)+u)}#c(){if(!this.el)return;let{toggle:e}=this.$props;Qj(this.el,`role`,e()?`timer`:null),Qj(this.el,`tabindex`,e()?0:null)}#l(e){let{bufferedEnd:t,duration:n,currentTime:r}=this.#e.$state;switch(e){case`buffered`:return t();case`duration`:return n();default:return r()}}#u(){return this.$props.remainder()&&this.#t()!==!1}#d(e){if(e.preventDefault(),this.#t()===null){this.#t.set(!this.$props.remainder());return}this.#t.set(e=>!e)}}})),oB,sB,cB,lB,uB,dB,fB,pB,mB,hB,gB,_B,vB,yB,bB,xB,SB,CB,wB,TB,EB,DB,OB,kB,AB,jB,MB,NB=F((()=>{hN(),IF(),rP(),zF(),UF(),oI(),aB(),gI(),oB=class extends KM{static props={translations:null};static state=new qM({label:null,busy:!1});#e;#t=!1;onSetup(){this.#e=LF()}onAttach(e){e.style.display=`contents`}onConnect(e){e.setAttribute(`data-media-announcer`,``),GF(e,`role`,`status`),GF(e,`aria-live`,`polite`);let{busy:t}=this.$state;this.setAttributes({"aria-busy":()=>t()?`true`:null}),this.#t=!0,Y(this.#n.bind(this)),Y(this.#o.bind(this)),Y(this.#a.bind(this)),Y(this.#r.bind(this)),Y(this.#i.bind(this)),Y(this.#l.bind(this)),Y(this.#d.bind(this)),_j(),this.#t=!1}#n(){let{paused:e}=this.#e.$state;this.#f(e()?`Pause`:`Play`)}#r(){let{fullscreen:e}=this.#e.$state;this.#f(e()?`Enter Fullscreen`:`Exit Fullscreen`)}#i(){let{pictureInPicture:e}=this.#e.$state;this.#f(e()?`Enter PiP`:`Exit PiP`)}#a(){let{textTrack:e}=this.#e.$state;this.#f(e()?`Closed-Captions On`:`Closed-Captions Off`)}#o(){let{muted:e,volume:t,audioGain:n}=this.#e.$state;this.#f(e()||t()===0?`Mute`:`${Math.round(t()*(n()??1)*100)}% ${this.#u(`Volume`)}`)}#s=-1;#c=-1;#l(){let{seeking:e,currentTime:t}=this.#e.$state,n=e();this.#s>0?(window.clearTimeout(this.#c),this.#c=window.setTimeout(()=>{if(!this.scope)return;let e=J(t),n=Math.abs(e-this.#s);if(n>=1){let t=e>=this.#s,r=QR(n);this.#f(`${this.#u(t?`Seek Forward`:`Seek Backward`)} ${r}`)}this.#s=-1,this.#c=-1},300)):n&&(this.#s=J(t))}#u(e){let{translations:t}=this.$props;return t?.()?.[e||``]??e}#d(){let{label:e,busy:t}=this.$state,n=this.#u(e());if(this.#t)return;t.set(!0);let r=window.setTimeout(()=>void t.set(!1),150);return this.el&&Qj(this.el,`aria-label`,n),Uj(n)&&this.dispatch(`change`,{detail:n}),()=>window.clearTimeout(r)}#f(e){let{label:t}=this.$state;t.set(e)}},sB=class extends KM{static props={hideDelay:2e3,hideOnMouseLeave:!1};#e;onSetup(){this.#e=LF(),Y(this.#n.bind(this))}onAttach(e){let{pictureInPicture:t,fullscreen:n}=this.#e.$state;$j(e,`pointer-events`,`none`),GF(e,`role`,`group`),this.setAttributes({"data-visible":this.#r.bind(this),"data-fullscreen":n,"data-pip":t}),Y(()=>{this.dispatch(`change`,{detail:this.#r()})}),Y(this.#t.bind(this)),Y(()=>{let t=n();for(let n of[`top`,`right`,`bottom`,`left`])$j(e,`padding-${n}`,t&&`env(safe-area-inset-${n})`)})}#t(){if(!this.el)return;let{nativeControls:e}=this.#e.$state,t=e();Qj(this.el,`aria-hidden`,t?`true`:null),$j(this.el,`display`,t?`none`:null)}#n(){let{controls:e}=this.#e.player,{hideDelay:t,hideOnMouseLeave:n}=this.$props;e.defaultDelay=t()===2e3?this.#e.$props.controlsDelay():t(),e.hideOnMouseLeave=n()}#r(){let{controlsVisible:e}=this.#e.$state;return e()}},cB=class extends KM{onAttach(e){e.style.pointerEvents||$j(e,`pointer-events`,`auto`)}},lB=eM(),uB=0,dB=class extends KM{static props={showDelay:700};#e=`media-tooltip-${++uB}`;#t=Ij(null);#n=Ij(null);#r=Ij(!1);constructor(){super(),new hI;let{showDelay:e}=this.$props;new nz({trigger:this.#t,content:this.#n,showDelay:e,listen(e,t,n){Y(()=>{mI()&&qj(e,`focus`,t),qj(e,`blur`,n)}),new RM(e).add(`touchstart`,e=>e.preventDefault(),{passive:!1}).add(`mouseenter`,t).add(`mouseleave`,n)},onChange:this.#c.bind(this)})}onAttach(e){e.style.setProperty(`display`,`contents`)}onSetup(){tM(lB,{trigger:this.#t,content:this.#n,showing:this.#r,attachTrigger:this.#i.bind(this),detachTrigger:this.#a.bind(this),attachContent:this.#o.bind(this),detachContent:this.#s.bind(this)})}#i(e){this.#t.set(e);let t=e.getAttribute(`data-media-tooltip`);t&&this.el?.setAttribute(`data-media-${t}-tooltip`,``),Qj(e,`data-describedby`,this.#e)}#a(e){e.removeAttribute(`data-describedby`),e.removeAttribute(`aria-describedby`),this.#t.set(null)}#o(e){e.setAttribute(`id`,this.#e),e.style.display=`none`,GF(e,`role`,`tooltip`),this.#n.set(e)}#s(e){e.removeAttribute(`id`),e.removeAttribute(`role`),this.#n.set(null)}#c(e){let t=this.#t(),n=this.#n();t&&Qj(t,`aria-describedby`,e?this.#e:null);for(let r of[this.el,t,n])r&&Qj(r,`data-visible`,e);this.#r.set(e)}},fB=class extends KM{constructor(){super(),new hI}onConnect(e){xj(QF(()=>{if(!this.connectScope)return;this.#e();let e=nM(lB);xj(()=>{let t=this.#t();t&&e.detachTrigger(t)})}))}#e(){let e=this.#t(),t=nM(lB);e&&t.attachTrigger(e)}#t(){let e=this.el.firstElementChild;return e?.localName===`button`||e?.getAttribute(`role`)===`button`?e:this.el}},pB=class extends KM{static props={placement:`top center`,offset:0,alignOffset:0};constructor(){super(),new hI;let{placement:e}=this.$props;this.setAttributes({"data-placement":e})}onAttach(e){this.#e(e),Object.assign(e.style,{position:`absolute`,top:0,left:0,width:`max-content`})}onConnect(e){this.#e(e);let t=nM(lB);xj(()=>t.detachContent(e)),xj(QF(()=>{this.connectScope&&Y(this.#t.bind(this))}))}#e(e){nM(lB).attachContent(e)}#t(){let{showing:e}=nM(lB);if(!e())return;let{placement:t,offset:n,alignOffset:r}=this.$props;return nI(this.el,this.#n(),t(),{offsetVarName:`media-tooltip`,xOffset:r(),yOffset:n()})}#n(){return nM(lB).trigger()}},mB=class extends KM{static props={disabled:!1,defaultPressed:!1};#e=Ij(!1);get pressed(){return this.#e()}constructor(){super(),new rz({isPresssed:this.#e})}},hB=mB.prototype,iM(hB,`pressed`),gB=class extends KM{static props=rz.props;#e;constructor(){super(),new rz({isPresssed:this.#n.bind(this),onPress:this.#t.bind(this)})}onSetup(){this.#e=LF();let{canGoogleCast:e,isGoogleCastConnected:t}=this.#e.$state;this.setAttributes({"data-active":t,"data-supported":e,"data-state":this.#r.bind(this),"aria-hidden":iI(()=>!e())})}onAttach(e){e.setAttribute(`data-media-tooltip`,`google-cast`),KF(e,this.#i.bind(this))}#t(e){this.#e.remote.requestGoogleCast(e)}#n(){let{remotePlaybackType:e,remotePlaybackState:t}=this.#e.$state;return e()===`google-cast`&&t()!==`disconnected`}#r(){let{remotePlaybackType:e,remotePlaybackState:t}=this.#e.$state;return e()===`google-cast`&&t()}#i(){let{remotePlaybackState:e}=this.#e.$state;return`Google Cast ${e()}`}},_B=class extends KM{static props={src:null,crossOrigin:null};static state=new qM({video:null,src:null,crossOrigin:null,canPlay:!1,error:null,hidden:!1});#e;#t;get video(){return this.$state.video()}onSetup(){this.#e=LF(),this.#t=oM(bz.state),this.#i(),this.setAttributes({"data-loading":this.#a.bind(this),"data-hidden":this.$state.hidden,"data-error":this.#o.bind(this),"aria-hidden":iI(this.$state.hidden)})}onAttach(e){Y(this.#n.bind(this)),Y(this.#r.bind(this)),Y(this.#i.bind(this)),Y(this.#s.bind(this)),Y(this.#c.bind(this)),Y(this.#d.bind(this))}#n(){let e=this.$state.video();e&&(e.readyState>=2&&this.#l(),new RM(e).add(`canplay`,this.#l.bind(this)).add(`error`,this.#u.bind(this)))}#r(){let{src:e}=this.$state,{canLoad:t}=this.#e.$state;e.set(t()?this.$props.src():null)}#i(){let{crossOrigin:e}=this.$props,{crossOrigin:t}=this.$state,{crossOrigin:n}=this.#e.$state,r=e()===null?n():e();t.set(r===!0?`anonymous`:r)}#a(){let{canPlay:e,hidden:t}=this.$state;return!e()&&!t()}#o(){let{error:e}=this.$state;return!zj(e)}#s(){let{src:e,hidden:t}=this.$state,{canLoad:n,duration:r}=this.#e.$state;t.set(n()&&(!e()||this.#o()||!Number.isFinite(r())))}#c(){let{src:e,canPlay:t,error:n}=this.$state;e(),t.set(!1),n.set(null)}#l(e){let{canPlay:t,error:n}=this.$state;t.set(!0),n.set(null),this.dispatch(`can-play`,{trigger:e})}#u(e){let{canPlay:t,error:n}=this.$state;t.set(!1),n.set(e),this.dispatch(`error`,{trigger:e})}#d(){let{video:e,canPlay:t}=this.$state,{duration:n}=this.#e.$state,{pointerRate:r}=this.#t,i=e();t()&&i&&Number.isFinite(n())&&Number.isFinite(r())&&(i.currentTime=r()*n())}},vB=_B.prototype,iM(vB,`video`),yB=class extends KM{static props={...yz.props,step:25,keyStep:25,shiftKeyMultiplier:2,min:0,max:300};static state=fz;#e;onSetup(){this.#e=LF(),tM(vz,{default:`percent`,percent:(e,t)=>BF(this.$state.value(),t)+`%`}),new yz({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:Math.round,isDisabled:this.#a.bind(this),aria:{valueNow:this.#t.bind(this),valueText:this.#n.bind(this)},onDragValueChange:this.#c.bind(this),onValueChange:this.#s.bind(this)}).attach(this),Y(this.#r.bind(this)),Y(this.#i.bind(this))}onAttach(e){e.setAttribute(`data-media-audio-gain-slider`,``),GF(e,`aria-label`,`Audio Boost`);let{canSetAudioGain:t}=this.#e.$state;this.setAttributes({"data-supported":t,"aria-hidden":iI(()=>!t())})}#t(){let{value:e}=this.$state;return Math.round(e())}#n(){let{value:e}=this.$state;return e()+`%`}#r(){let{min:e,max:t}=this.$props;this.$state.min.set(e()),this.$state.max.set(t())}#i(){let{audioGain:e}=this.#e.$state,t=((e()??1)-1)*100;this.$state.value.set(t),this.dispatch(`value-change`,{detail:t})}#a(){let{disabled:e}=this.$props,{canSetAudioGain:t}=this.#e.$state;return e()||!t()}#o(e){if(!e.trigger)return;let t=BF(1+e.detail/100,2);this.#e.remote.changeAudioGain(t,e)}#s(e){this.#o(e)}#c(e){this.#o(e)}},bB=class extends KM{static props={...yz.props,step:.25,keyStep:.25,shiftKeyMultiplier:2,min:0,max:2};static state=fz;#e;onSetup(){this.#e=LF(),new yz({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:this.#a,isDisabled:this.#o.bind(this),aria:{valueNow:this.#t.bind(this),valueText:this.#n.bind(this)},onDragValueChange:this.#u.bind(this),onValueChange:this.#l.bind(this)}).attach(this),Y(this.#r.bind(this)),Y(this.#i.bind(this))}onAttach(e){e.setAttribute(`data-media-speed-slider`,``),GF(e,`aria-label`,`Speed`);let{canSetPlaybackRate:t}=this.#e.$state;this.setAttributes({"data-supported":t,"aria-hidden":iI(()=>!t())})}#t(){let{value:e}=this.$state;return e()}#n(){let{value:e}=this.$state;return e()+`x`}#r(){let{min:e,max:t}=this.$props;this.$state.min.set(e()),this.$state.max.set(t())}#i(){let{playbackRate:e}=this.#e.$state,t=e();this.$state.value.set(t),this.dispatch(`value-change`,{detail:t})}#a(e){return BF(e,2)}#o(){let{disabled:e}=this.$props,{canSetPlaybackRate:t}=this.#e.$state;return e()||!t()}#s=YM(this.#c.bind(this),25);#c(e){if(!e.trigger)return;let t=e.detail;this.#e.remote.changePlaybackRate(t,e)}#l(e){this.#s(e)}#u(e){this.#s(e)}},xB=class extends KM{static props={...yz.props,step:1,keyStep:1,shiftKeyMultiplier:1};static state=fz;#e;#t=Lj(()=>{let{qualities:e}=this.#e.$state;return JR(e())});onSetup(){this.#e=LF(),new yz({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:Math.round,isDisabled:this.#o.bind(this),aria:{valueNow:this.#n.bind(this),valueText:this.#r.bind(this)},onDragValueChange:this.#u.bind(this),onValueChange:this.#l.bind(this)}).attach(this),Y(this.#i.bind(this)),Y(this.#a.bind(this))}onAttach(e){e.setAttribute(`data-media-quality-slider`,``),GF(e,`aria-label`,`Video Quality`);let{qualities:t,canSetQuality:n}=this.#e.$state,r=Lj(()=>n()&&t().length>0);this.setAttributes({"data-supported":r,"aria-hidden":iI(()=>!r())})}#n(){let{value:e}=this.$state;return e()}#r(){let{quality:e}=this.#e.$state;if(!e())return``;let{height:t,bitrate:n}=e(),r=n&&n>0?`${(n/1e6).toFixed(2)} Mbps`:null;return t?`${t}p${r?` (${r})`:``}`:`Auto`}#i(){let e=this.#t();this.$state.max.set(Math.max(0,e.length-1))}#a(){let{quality:e}=this.#e.$state,t=this.#t(),n=Math.max(0,t.indexOf(e()));this.$state.value.set(n),this.dispatch(`value-change`,{detail:n})}#o(){let{disabled:e}=this.$props,{canSetQuality:t,qualities:n}=this.#e.$state;return e()||n().length<=1||!t()}#s=YM(this.#c.bind(this),25);#c(e){if(!e.trigger)return;let{qualities:t}=this.#e,n=J(this.#t)[e.detail];this.#e.remote.changeQuality(t.indexOf(n),e)}#l(e){this.#s(e)}#u(e){this.#s(e)}},SB=class extends KM{static props={disabled:!1};#e;#t;#n;#r=null;#i=[];#a=Ij(null);#o=Ij([]);#s=Ij(-1);#c=Ij(-1);#l=0;get cues(){return this.#o()}get activeCue(){return this.#o()[this.#s()]||null}get activePointerCue(){return this.#o()[this.#c()]||null}onSetup(){this.#e=LF(),this.#t=oM(Mz.state)}onAttach(e){nP(this.#e.textTracks,`chapters`,this.#u.bind(this)),Y(this.#D.bind(this))}onConnect(){xj(()=>this.#d.bind(this))}onDestroy(){this.#u(null)}setRefs(e){if(this.#i=e,this.#n?.dispose(),this.#i.length===1){let e=this.#i[0];e.style.width=`100%`,e.style.setProperty(`--chapter-fill`,`var(--slider-fill)`),e.style.setProperty(`--chapter-progress`,`var(--slider-progress)`)}else this.#i.length>0&&yj(()=>this.#f(),this.#n=Oj())}#u(e){J(this.#a)!==e&&(this.#d(),this.#a.set(e))}#d(){this.#i=[],this.#o.set([]),this.#s.set(-1),this.#c.set(-1),this.#l=0,this.#n?.dispose()}#f(){this.#i.length&&Y(this.#p.bind(this))}#p(){let{hidden:e}=this.#t;e()||(Y(this.#m.bind(this)),Y(this.#h.bind(this)),Y(this.#g.bind(this)),Y(this.#b.bind(this)))}#m(){let e=this.#o();if(!e.length)return;let t,{seekableStart:n,seekableEnd:r}=this.#e.$state,i=n(),a=(r()||e[e.length-1].endTime)-i,o=100;for(let n=0;n<e.length;n++)if(t=e[n],this.#i[n]){let r=n===e.length-1?o:BF((t.endTime-Math.max(i,t.startTime))/a*100,3);this.#i[n].style.width=r+`%`,o-=r}}#h(){let{liveEdge:e,seekableStart:t,seekableEnd:n}=this.#e.$state,{fillPercent:r,value:i}=this.#t,a=this.#o(),o=e(),s=J(this.#s),c=a[s],l=o?this.#o.length-1:this.#y(c&&c.startTime/n()*100<=J(i)?s:0,r());o||!c?this.#_(0,a.length,100):l>s?this.#_(s,l,100):l<s&&this.#_(l+1,s+1,0);let u=o?100:this.#T(a[l],r(),t(),this.#w(a));this.#v(this.#i[l],u),this.#s.set(l)}#g(){let{hidden:e,pointerPercent:t}=this.#t;if(e()){this.#c.set(-1);return}let n=this.#y(0,t());this.#c.set(n)}#_(e,t,n){for(let r=e;r<t;r++)this.#v(this.#i[r],n)}#v(e,t){e&&(e.style.setProperty(`--chapter-fill`,t+`%`),Qj(e,`data-active`,t>0&&t<100),Qj(e,`data-ended`,t===100))}#y(e,t){let n=0,r=this.#o();if(t===0)return 0;if(t===100)return r.length-1;let{seekableStart:i}=this.#e.$state,a=i(),o=this.#w(r);for(let i=e;i<r.length;i++)if(n=this.#T(r[i],t,a,o),n>=0&&n<100)return i;return 0}#b(){this.#x(this.#S())}#x=dM(e=>{let t,n=this.#o(),{seekableStart:r}=this.#e.$state,i=r(),a=this.#w(n);for(let r=this.#l;r<this.#i.length;r++)if(t=this.#T(n[r],e,i,a),this.#i[r]?.style.setProperty(`--chapter-progress`,t+`%`),t<100){this.#l=r;break}});#S=Lj(this.#C.bind(this));#C(){let{bufferedEnd:e,duration:t}=this.#e.$state;return BF(Math.min(e()/Math.max(t(),1),1),3)*100}#w(e){let{seekableEnd:t}=this.#e.$state,n=t();return Number.isFinite(n)?n:e[e.length-1]?.endTime||0}#T(e,t,n,r){if(!e||this.#o().length===0)return 0;let i=r-n,a=Math.max(0,e.startTime-n),o=Math.min(r,e.endTime)-n,s=a/i,c=s*100,l=Math.min(1,s+(o-a)/i)*100;return Math.max(0,BF(t>=l?100:(t-c)/(l-c)*100,3))}#E(e){let t=[],{seekableStart:n,seekableEnd:r,duration:i}=this.#e.$state,a=n(),o=r();e=e.filter(e=>e.startTime<=o&&e.endTime>=a);let s=e[0];s&&s.startTime>a&&t.push(new window.VTTCue(a,s.startTime,``));for(let n=0;n<e.length-1;n++){let r=e[n],i=e[n+1];if(t.push(r),i){let e=i.startTime-r.endTime;e>0&&t.push(new window.VTTCue(r.endTime,r.endTime+e,``))}}let c=e[e.length-1];if(c){t.push(c);let e=i();e>=0&&e-c.endTime>1&&t.push(new window.VTTCue(c.endTime,i(),``))}return t}#D(){let{source:e}=this.#e.$state;e(),this.#O()}#O(){if(!this.scope)return;let{disabled:e}=this.$props;if(e()){this.#o.set([]),this.#s.set(0),this.#l=0;return}let t=this.#a();if(t){let e=this.#A.bind(this);e(),new RM(t).add(`add-cue`,e).add(`remove-cue`,e),Y(this.#k.bind(this))}return this.#r=this.#N(),this.#r&&Y(this.#j.bind(this)),()=>{this.#r&&=(this.#r.textContent=``,null)}}#k(){this.#e.$state.duration(),this.#A()}#A=XM(()=>{let e=J(this.#a);!this.scope||!e||!e.cues.length||(this.#o.set(this.#E(e.cues)),this.#s.set(0),this.#l=0)},150,!0);#j(){let e=this.activePointerCue||this.activeCue;this.#r&&(this.#r.textContent=e?.text||``)}#M(){let e=this.el;for(;e&&e.getAttribute(`role`)!==`slider`;)e=e.parentElement;return e}#N(){let e=this.#M();return e?e.querySelector(`[data-part="chapter-title"]`):null}},CB=SB.prototype,iM(CB,`cues`),iM(CB,`activeCue`),iM(CB,`activePointerCue`),aM(CB,`setRefs`),wB=class extends KM{static props={value:``};#e;get values(){return this.#e.values}get value(){return this.#e.value}set value(e){this.#e.value=e}constructor(){super(),this.#e=new Kz,this.#e.onValueChange=this.#n.bind(this)}onSetup(){Y(this.#t.bind(this))}#t(){this.#e.value=this.$props.value()}#n(e,t){let n=this.createEvent(`change`,{detail:e,trigger:t});this.dispatch(n)}},TB=wB.prototype,iM(TB,`values`),iM(TB,`value`),EB=class extends KM{static props={thumbnails:null};#e;#t;#n;#r=Ij(null);#i=Ij([]);get value(){return this.#n.value}get disabled(){return!this.#i()?.length}constructor(){super(),this.#n=new Kz,this.#n.onValueChange=this.#u.bind(this)}onSetup(){this.#e=LF(),rM(Nz)&&(this.#t=nM(Nz));let{thumbnails:e}=this.$props;this.setAttributes({"data-thumbnails":()=>!!e()})}onAttach(e){this.#t?.attachObserver({onOpen:this.#a.bind(this)})}getOptions(){let{seekableStart:e,seekableEnd:t}=this.#e.$state,n=e(),r=t();return this.#i().map((e,t)=>({cue:e,value:t.toString(),label:e.text,startTime:ZR(Math.max(0,e.startTime-n)),duration:QR(Math.min(r,e.endTime)-Math.max(n,e.startTime))}))}#a(){J(()=>this.#c())}onConnect(e){Y(this.#c.bind(this)),Y(this.#l.bind(this)),Y(this.#o.bind(this)),nP(this.#e.textTracks,`chapters`,this.#r.set)}#o(){let e=this.#r();if(!e)return;let t=this.#s.bind(this,e);return t(),new RM(e).add(`add-cue`,t).add(`remove-cue`,t),()=>{this.#i.set([])}}#s(e){let{seekableStart:t,seekableEnd:n}=this.#e.$state,r=t(),i=n();this.#i.set([...e.cues].filter(e=>e.startTime<=i&&e.endTime>=r))}#c(){if(!this.#t?.expanded())return;if(!this.#r()){this.#n.value=`-1`;return}let{realCurrentTime:e,seekableStart:t,seekableEnd:n}=this.#e.$state,r=t(),i=n(),a=e(),o=this.#i().findIndex(e=>tP(e,a));this.#n.value=o.toString(),o>=0&&QF(()=>{if(!this.connectScope)return;let e=this.#i()[o],t=this.el.querySelector(`[aria-checked='true']`),n=Math.max(r,e.startTime),s=Math.min(i,e.endTime)-n,c=Math.max(0,a-n)/s*100;t&&$j(t,`--progress`,BF(c,3)+`%`)})}#l(){this.#t?.disable(this.disabled)}#u(e,t){if(this.disabled||!t)return;let n=+e,r=this.#i(),{clipStartTime:i}=this.#e.$state;Hj(n)&&r?.[n]&&(this.#n.value=n.toString(),this.#e.remote.seek(r[n].startTime-i(),t),this.dispatch(`change`,{detail:r[n],trigger:t}))}},ez([iM],EB.prototype,`value`,null),ez([iM],EB.prototype,`disabled`,null),ez([aM],EB.prototype,`getOptions`,null),DB=[1,1.25,1.5,1.75,2,2.5,3,4],OB=class extends KM{static props={normalLabel:`Disabled`,gains:DB};#e;#t;#n;get value(){return this.#n.value}get disabled(){let{gains:e}=this.$props,{canSetAudioGain:t}=this.#e.$state;return!t()||e().length===0}constructor(){super(),this.#n=new Kz,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#e=LF(),rM(Nz)&&(this.#t=nM(Nz))}onConnect(e){Y(this.#r.bind(this)),Y(this.#i.bind(this)),Y(this.#a.bind(this))}getOptions(){let{gains:e,normalLabel:t}=this.$props;return e().map(e=>({label:e===1||e===null?t:String(e*100)+`%`,value:e.toString()}))}#r(){this.#n.value=this.#o()}#i(){let{normalLabel:e}=this.$props,{audioGain:t}=this.#e.$state,n=t();this.#t?.hint.set(n===1||n==null?e():String(n*100)+`%`)}#a(){this.#t?.disable(this.disabled)}#o(){let{audioGain:e}=this.#e.$state;return e()?.toString()??`1`}#s(e,t){if(this.disabled)return;let n=+e;this.#e.remote.changeAudioGain(n,t),this.dispatch(`change`,{detail:n,trigger:t})}},kB=OB.prototype,iM(kB,`value`),iM(kB,`disabled`),aM(kB,`getOptions`),AB=class extends KM{static props={disabled:!1,event:void 0,action:void 0};#e;#t=null;#n=null;onSetup(){this.#e=LF();let{event:e,action:t}=this.$props;this.setAttributes({event:e,action:t})}onAttach(e){e.setAttribute(`data-media-gesture`,``),e.style.setProperty(`pointer-events`,`none`)}onConnect(e){this.#t=this.#e.player.el?.querySelector(`[data-media-provider]`),Y(this.#r.bind(this))}#r(){let e=this.$props.event(),t=this.$props.disabled();!this.#t||!e||t||(/^dbl/.test(e)&&(e=e.split(/^dbl/)[1]),(e===`pointerup`||e===`pointerdown`)&&this.#e.$state.pointer()===`coarse`&&(e===`pointerup`&&qj(this.#t,`touchstart`,this.#s.bind(this),{passive:!0}),e=e===`pointerup`?`touchend`:`touchstart`),qj(this.#t,e,this.#o.bind(this),{passive:!1}))}#i=0;#a=-1;#o(e){if(!(this.$props.disabled()||Jj(e)&&(e.button!==0||this.#e.activeMenu)||Yj(e)&&this.#e.activeMenu||this.#c(e)||ZF(e)||!this.#u(e))){if(e.MEDIA_GESTURE=!0,e.preventDefault(),!J(this.$props.event)?.startsWith(`dbl`))this.#i===0&&setTimeout(()=>{this.#i===1&&this.#l(e)},250);else if(this.#i===1){queueMicrotask(()=>this.#l(e)),clearTimeout(this.#a),this.#i=0;return}this.#i===0&&(this.#a=window.setTimeout(()=>{this.#i=0},275)),this.#i++}}#s(e){if(ZF(e)){this.#n=null;return}let t=e.changedTouches[0]??e.touches[0];this.#n=t?{x:t.clientX,y:t.clientY}:null}#c(e){if(!Yj(e)||e.type!==`touchend`)return!1;let t=e.changedTouches[0]??e.touches[0],n=this.#n;return this.#n=null,!t||!n?!1:Math.abs(t.clientX-n.x)>10||Math.abs(t.clientY-n.y)>10}#l(e){this.el.setAttribute(`data-triggered`,``),requestAnimationFrame(()=>{this.#d()&&this.#f(J(this.$props.action),e),requestAnimationFrame(()=>{this.el.removeAttribute(`data-triggered`)})})}#u(e){if(!this.el)return!1;if(Jj(e)||Vye(e)||Yj(e)){let t=Yj(e)?e.changedTouches[0]??e.touches[0]:void 0,n=t?.clientX??e.clientX,r=t?.clientY??e.clientY,i=this.el.getBoundingClientRect(),a=r>=i.top&&r<=i.bottom&&n>=i.left&&n<=i.right;return e.type.includes(`leave`)?!a:a}return!0}#d(){let e=this.#e.player.el.querySelectorAll(`[data-media-gesture][data-triggered]`);return Array.from(e).sort((e,t)=>getComputedStyle(t).zIndex-+getComputedStyle(e).zIndex)[0]===this.el}#f(e,t){if(!e)return;let n=new FM(`will-trigger`,{detail:e,cancelable:!0,trigger:t});if(this.dispatchEvent(n),n.defaultPrevented)return;let[r,i]=e.replace(/:([a-z])/,`-$1`).split(`:`);e.includes(`:fullscreen`)?this.#e.remote.toggleFullscreen(`prefer-media`,t):e.includes(`seek:`)?this.#e.remote.seek(J(this.#e.$state.currentTime)+(+i||0),t):this.#e.remote[qye(r)](t),this.dispatch(`trigger`,{detail:e,trigger:t})}},jB=class{priority=10;#e=null;#t;#n;constructor(e){this.#t=e}attach(){}canRender(){return!0}detach(){this.#n?.abort(),this.#n=void 0,this.#t.reset(),this.#e=null}changeTrack(e){!e||this.#e===e||(this.#n?.abort(),this.#n=new RM(e),e.readyState<2?(this.#t.reset(),this.#n.add(`load`,()=>this.#r(e),{once:!0})):this.#r(e),this.#n.add(`add-cue`,e=>{this.#t.addCue(e.detail)}).add(`remove-cue`,e=>{this.#t.removeCue(e.detail)}),this.#e=e)}#r(e){this.#t.changeTrack({cues:[...e.cues],regions:[...e.regions]})}},MB=class e extends KM{static props={textDir:`ltr`,exampleText:`Captions look like this.`};#e;static lib=Ij(null);onSetup(){this.#e=LF(),this.setAttributes({"aria-hidden":iI(this.#t.bind(this))})}onAttach(e){e.style.setProperty(`pointer-events`,`none`)}onConnect(t){e.lib()||Promise.resolve().then(()=>(jF(),AF)).then(t=>e.lib.set(t)),Y(this.#n.bind(this))}#t(){let{textTrack:e,remotePlaybackState:t,iOSControls:n}=this.#e.$state,r=e();return n()||t()===`connected`||!r||!MF(r)}#n(){if(!e.lib())return;let{viewType:t}=this.#e.$state;return t()===`audio`?this.#r():this.#s()}#r(){return Y(this.#i.bind(this)),this.#u(null),()=>{this.el.textContent=``}}#i(){if(this.#t())return;this.#a();let{textTrack:e}=this.#e.$state;qj(e(),`cue-change`,this.#a.bind(this)),Y(this.#o.bind(this))}#a(){this.el.textContent=``,this.#p>=0&&this.#h();let{realCurrentTime:t,textTrack:n}=this.#e.$state,{renderVTTCueString:r}=e.lib(),i=J(t),a=J(n).activeCues;for(let e of a){let t=this.#g(),n=this.#_();n.innerHTML=r(e,i),t.append(n),this.el.append(n)}}#o(){let{realCurrentTime:t}=this.#e.$state,{updateTimedVTTCueNodes:n}=e.lib();n(this.el,t())}#s(){let{CaptionsRenderer:t}=e.lib(),n=new t(this.el),r=new jB(n);return this.#e.textRenderers.add(r),Y(this.#c.bind(this,n)),Y(this.#l.bind(this,n)),this.#u(n),()=>{this.el.textContent=``,this.#e.textRenderers.remove(r),n.destroy()}}#c(e){e.dir=this.$props.textDir()}#l(e){if(this.#t())return;let{realCurrentTime:t,textTrack:n}=this.#e.$state;e.currentTime=t(),this.#p>=0&&n()?.activeCues[0]&&this.#h()}#u(e){let t=this.#e.player;t&&qj(t,`vds-font-change`,this.#d.bind(this,e))}#d(e){if(this.#p>=0){this.#m();return}let{textTrack:t}=this.#e.$state;t()?.activeCues[0]?e?.update(!0):this.#f()}#f(){let e=this.#g();Qj(e,`data-example`,``);let t=this.#_();Qj(t,`data-example`,``),t.textContent=this.$props.exampleText(),e?.append(t),this.el?.append(e),this.el?.setAttribute(`data-example`,``),this.#m()}#p=-1;#m(){window.clearTimeout(this.#p),this.#p=window.setTimeout(this.#h.bind(this),2500)}#h(){this.el?.removeAttribute(`data-example`),this.el?.querySelector(`[data-example]`)&&(this.el.textContent=``),this.#p=-1}#g(){let e=document.createElement(`div`);return Qj(e,`data-part`,`cue-display`),e}#_(){let e=document.createElement(`div`);return Qj(e,`data-part`,`cue`),e}}})),PB,FB=F((()=>{hN(),eP(),zF(),PB=class extends KM{static props={src:null,alt:null,crossOrigin:null};static state=new qM({img:null,src:null,alt:null,crossOrigin:null,loading:!0,error:null,hidden:!1});#e;onSetup(){this.#e=LF(),this.#s(),this.#c(),this.#l(),this.#r()}onAttach(e){e.style.setProperty(`pointer-events`,`none`),Y(this.#a.bind(this)),Y(this.#s.bind(this)),Y(this.#c.bind(this)),Y(this.#l.bind(this)),Y(this.#r.bind(this));let{started:t}=this.#e.$state;this.setAttributes({"data-visible":()=>!t()&&!this.$state.hidden(),"data-loading":this.#i.bind(this),"data-error":this.#t.bind(this),"data-hidden":this.$state.hidden})}onConnect(e){Y(this.#n.bind(this)),Y(this.#u.bind(this))}#t(){let{error:e}=this.$state;return!zj(e())}#n(){let{canLoadPoster:e,poster:t}=this.#e.$state;!e()&&t()&&XN(t(),`preconnect`)}#r(){let{src:e}=this.$props,{poster:t,nativeControls:n}=this.#e.$state;this.el&&Qj(this.el,`display`,n()?`none`:null),this.$state.hidden.set(this.#t()||!(e()||t())||n())}#i(){let{loading:e,hidden:t}=this.$state;return!t()&&e()}#a(){let e=this.$state.img();e&&(new RM(e).add(`load`,this.#d.bind(this)).add(`error`,this.#f.bind(this)),e.complete&&this.#d())}#o=``;#s(){let{poster:e}=this.#e.$props,{canLoadPoster:t,providedPoster:n,inferredPoster:r}=this.#e.$state,i=this.$props.src()||``,a=i||e()||r();this.#o===n()&&n.set(i),this.$state.src.set(t()&&a.length?a:null),this.#o=i}#c(){let{src:e}=this.$props,{alt:t}=this.$state,{poster:n}=this.#e.$state;t.set(e()||n()?this.$props.alt():null)}#l(){let{crossOrigin:e}=this.$props,{crossOrigin:t}=this.$state,{crossOrigin:n,poster:r}=this.#e.$state,i=e()===null?n():e();t.set(/ytimg\.com|vimeo/.test(r()||``)?null:i===!0?`anonymous`:i)}#u(){let{loading:e,error:t}=this.$state,{canLoadPoster:n,poster:r}=this.#e.$state;e.set(n()&&!!r()),t.set(null)}#d(){let{loading:e,error:t}=this.$state;e.set(!1),t.set(null)}#f(e){let{loading:t,error:n}=this.$state;t.set(!1),n.set(e)}}})),IB=F((()=>{GN()}));function LB({src:e,type:t}){return DN({src:e,type:t})||ON({src:e,type:t})||RB({src:e,type:t})?{src:e,type:t}:t?.includes(`audio`)?{src:e,type:`audio/mp3`}:t?.includes(`video`)?{src:e,type:`video/mp4`}:{src:e,type:t}}function RB({type:e}){return e?.includes(`/object`)}var zB=F((()=>{IB()})),BB,VB=F((()=>{zB(),BB=({src:e,type:n,stream:r})=>{let i=(0,t.toRef)(e),a=(0,t.toRef)(n),o=(0,t.toRef)(r),s=(0,t.computed)(()=>o.value?`video/object`:a.value||i.value?.type),c=(0,t.computed)(()=>{if(o.value)return o.value;let e=typeof i.value==`string`?i.value:i.value?.src;return e instanceof Blob?e:e?.replace(`/download`,`/stream`)});return{normalizedSrcObject:(0,t.computed)(()=>LB({src:c.value,type:s.value}))}}})),HB=F((()=>{}));function UB(e,n){let r=(0,t.resolveComponent)(`wt-icon`);return(0,t.openBlock)(),(0,t.createElementBlock)(`media-mute-button`,GB,[(0,t.createVNode)(r,{type:`mute`,icon:`plyr-muted`,class:`mute-icon`,size:`sm`}),(0,t.createVNode)(r,{type:`volume`,icon:`plyr-volume`,class:`volume-icon`,size:`sm`})])}var WB,GB,KB,qB=F((()=>{HB(),K(),WB={},GB={class:`mute-button`},KB=G(WB,[[`render`,UB],[`__scopeId`,`data-v-45e5719d`]])})),JB,YB,XB=F((()=>{S_(),JB={class:`play-button`},YB=(0,t.defineComponent)({__name:`play-button`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`media-play-button`,JB,[(0,t.createVNode)(x_,{icon:`plyr-play`,type:`play`,class:`play-icon`,size:`sm`}),(0,t.createVNode)(x_,{icon:`plyr-pause`,type:`pause`,class:`pause-icon`,size:`sm`})]))}})})),ZB=F((()=>{})),QB,$B=F((()=>{XB(),XB(),ZB(),K(),QB=G(YB,[[`__scopeId`,`data-v-e6149485`]])})),eV,tV,nV=F((()=>{JA(),eV={class:`time-slider media-slider`},tV=(0,t.defineComponent)({__name:`time-slider`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`media-time-slider`,eV,[(0,t.createVNode)(qA,{class:`time-slider__slider`})]))}})})),rV=F((()=>{})),iV,aV=F((()=>{nV(),nV(),rV(),K(),iV=G(tV,[[`__scopeId`,`data-v-e57a9871`]])})),oV,sV,cV=F((()=>{JA(),oV={class:`volume-slider media-slider`},sV=(0,t.defineComponent)({__name:`volume-slider`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`media-volume-slider`,oV,[(0,t.createVNode)(qA,{class:`volume-slider__slider`})]))}})})),lV=F((()=>{})),uV,dV=F((()=>{cV(),cV(),lV(),K(),uV=G(sV,[[`__scopeId`,`data-v-b92a4daf`]])})),fV,pV,mV,hV=F((()=>{tf(),Eye(),mj(),VB(),qB(),$B(),aV(),dV(),fV=[`src`,`loop`,`autoplay`,`playback-rate`],pV={class:`controls-group`},mV=(0,t.defineComponent)({__name:`wt-player`,props:{src:{},id:{},fileName:{},autoplay:{type:Boolean,default:!0},loop:{type:Boolean,default:!1},download:{type:[String,Function,Boolean],default:()=>e=>e.replace(`/stream`,`/download`)},resetOnEnd:{type:Boolean,default:!1},countdownTimeMode:{type:Boolean},hideVolumeSlider:{type:Boolean,default:!1},hideMuteButton:{type:Boolean,default:!1},hideSettings:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},position:{default:`sticky`},invertTime:{type:Boolean,default:!0},resetVolume:{type:Boolean,default:!1}},emits:[`initialized`,`close`],setup(e,{emit:n}){let r=e,i=(0,t.ref)({playbackRate:1}),{src:a}=(0,t.toRefs)(r),{normalizedSrcObject:o}=BB({src:a});function s(){let e=typeof r.src==`string`?r.src:r.src?.src,t=typeof r.download==`function`?r.download(e):r.download,n=r.src?.type.split(`/`).pop(),i=r.fileName||r.id||`unknown`,a=document.createElement(`a`);a.style.display=`none`,a.href=t,a.download=`${i}.${n}`,document.body.appendChild(a),a.click(),document.body.removeChild(a)}function c(e){if(!r.resetOnEnd)return;let t=e.target;t.currentTime=0}function l(){i.value.playbackRate=1}return(0,t.watch)(()=>r.src,()=>{l()}),(n,a)=>{let l=(0,t.resolveComponent)(`wt-icon-btn`);return(0,t.openBlock)(),(0,t.createElementBlock)(`media-player`,{class:(0,t.normalizeClass)([`wt-player`,`wt-player--position-${r.position}`]),src:(0,t.unref)(o),loop:r.loop,autoplay:e.autoplay,"playback-rate":i.value.playbackRate,onEnded:c},[a[2]||=(0,t.createElementVNode)(`media-provider`,null,null,-1),(0,t.createElementVNode)(`media-controls-group`,pV,[(0,t.createVNode)(QB),(0,t.createVNode)(iV),(0,t.createVNode)(pj,{countdown:r.countdownTimeMode},null,8,[`countdown`]),r.hideMuteButton?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(KB,{key:0})),r.hideVolumeSlider?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(uV,{key:1})),r.hideSettings?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(cj,{key:2,"model-value":i.value,"onUpdate:modelValue":a[0]||=e=>i.value=e},null,8,[`model-value`])),r.download?((0,t.openBlock)(),(0,t.createElementBlock)(`media-button`,{key:3,class:`download-button`,onClick:s},[(0,t.createVNode)(l,{icon:`plyr-download`,size:(0,t.unref)(q).SM},null,8,[`size`])])):(0,t.createCommentVNode)(``,!0),r.closable?((0,t.openBlock)(),(0,t.createElementBlock)(`media-button`,{key:4,class:`close-button`,onClick:a[1]||=e=>n.$emit(`close`)},[(0,t.createVNode)(l,{icon:`close`,size:(0,t.unref)(q).SM},null,8,[`size`])])):(0,t.createCommentVNode)(``,!0)])],42,fV)}}})})),gV=F((()=>{})),_V=L({default:()=>vV}),vV,yV=F((()=>{hV(),hV(),gV(),K(),vV=G(mV,[[`__scopeId`,`data-v-b4642a75`]])})),bV,xV,SV=F((()=>{AC(),ox(),bV={class:`wt-search-bar__icon-controls`},xV=(0,t.defineComponent)({__name:`wt-search-bar`,props:{v:{type:Object},customValidators:{type:Array,default:()=>[]},value:{type:String,default:``},placeholder:{type:String},hint:{type:String,description:`Adds hint icon + tooltip with text, passed as "hint" prop`},searchMode:{type:[String,Object]},searchModeOptions:{type:Array,default:()=>[]},fullWidth:{type:Boolean,default:!1}},emits:[`input`,`search`,`enter`,`update:search-mode`,`change:search-mode`],setup(e,{emit:n}){let r=e,i=n,{v:a,customValidators:o}=(0,t.toRefs)(r),{invalid:s}=kC({v:a,customValidators:o}),c=(0,t.computed)(()=>s.value?`error`:`default`),l=(0,t.computed)(()=>r.value||r.searchMode||r.hint),u=ax(e=>{i(`search`,e)},1e3);function d(e){i(`input`,e),u(e)}function f(e){e.key===`Enter`?(u(e.target.value),e.preventDefault()):e.key===`Esc`&&(d(``),e.preventDefault())}function p({option:e}){i(`update:search-mode`,e),i(`change:search-mode`,e)}return(n,r)=>{let i=(0,t.resolveComponent)(`wt-icon`),u=(0,t.resolveComponent)(`wt-icon-btn`),m=(0,t.resolveComponent)(`wt-hint`),h=(0,t.resolveComponent)(`wt-radio`),g=(0,t.resolveComponent)(`wt-context-menu`),_=(0,t.resolveComponent)(`wt-input-text`),v=(0,t.resolveDirective)(`tooltip`);return(0,t.openBlock)(),(0,t.createBlock)(_,{"model-value":e.value,placeholder:e.placeholder||n.$t(`webitelUI.searchBar.placeholder`),invalid:(0,t.unref)(s),class:(0,t.normalizeClass)([`wt-search-bar`,{"wt-search-bar--full-width":e.fullWidth}]),type:`search`,v:(0,t.unref)(a),"custom-validators":(0,t.unref)(o),"onUpdate:modelValue":d,onKeyup:f},(0,t.createSlots)({prefix:(0,t.withCtx)(()=>[(0,t.createVNode)(i,{color:c.value,icon:e.searchMode?.icon||`search`},null,8,[`color`,`icon`])]),_:2},[l.value?{name:`suffix`,fn:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,bV,[e.value?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,color:c.value,class:`wt-search-bar__reset-icon-btn`,icon:`close`,onClick:r[0]||=e=>d(``)},null,8,[`color`])):(0,t.createCommentVNode)(``,!0),e.hint?((0,t.openBlock)(),(0,t.createBlock)(m,{key:1,"icon-color":c.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.hint),1)],void 0,!0),_:1},8,[`icon-color`])):(0,t.createCommentVNode)(``,!0),e.searchMode?((0,t.openBlock)(),(0,t.createBlock)(g,{key:2,options:e.searchModeOptions,onClick:p},{activator:(0,t.withCtx)(({toggle:e})=>[(0,t.withDirectives)((0,t.createVNode)(u,{color:(0,t.unref)(s)?`error`:`default`,icon:`filter`,onClick:e},null,8,[`color`,`onClick`]),[[v,n.$t(`webitelUI.searchBar.settingsHint`)]])]),option:(0,t.withCtx)(({value:n,text:r})=>[(0,t.createVNode)(h,{label:r,selected:(typeof e.searchMode==`string`?e.searchMode:e.searchMode.value)===n,value:!0},null,8,[`label`,`selected`])]),_:1},8,[`options`])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`additional-actions`,{invalid:(0,t.unref)(s)},void 0,!0)])]),key:`0`}:void 0]),1032,[`model-value`,`placeholder`,`invalid`,`class`,`v`,`custom-validators`])}}})})),CV=F((()=>{})),wV=L({default:()=>TV}),TV,EV=F((()=>{SV(),SV(),CV(),K(),TV=G(xV,[[`__scopeId`,`data-v-0b6f18a7`]])})),DV,OV=F((()=>{Pd(),DV=[{locale:`webitelUI.statusSelect.online`,color:`success`,value:Nd.ONLINE},{locale:`webitelUI.statusSelect.pause`,color:`primary`,value:Nd.PAUSE},{locale:`webitelUI.statusSelect.offline`,color:`secondary`,value:Nd.OFFLINE},{locale:`webitelUI.statusSelect.breakOut`,color:`break-out`,value:Nd.BREAK_OUT}]})),kV,AV=F((()=>{Ub(),tf(),Zpe(),OV(),kV=(0,t.defineComponent)({__name:`wt-status-select`,props:{status:{default:Nd.OFFLINE},statusDuration:{default:0},options:{}},emits:[`change`,`closed`],setup(e,{emit:n}){let r=e,i=n,{t:a}=bb(),o=(0,t.computed)(()=>r.options?r.options:DV.map(e=>({...e,text:a(e.locale)}))),s=(0,t.computed)(()=>o.value.find(e=>e.value===r.status)),c=(0,t.computed)(()=>o.value.reduce((e,t)=>(r.status===t.value&&t.value!==Nd.PAUSE||t.value===Nd.BREAK_OUT||e.push(t),e),[])),l=(0,t.computed)(()=>typeof r.statusDuration==`string`?r.statusDuration:r.statusDuration===void 0?s.value?.text??``:Xb(r.statusDuration));function u(e){i(`change`,e.value)}function d(e){i(`closed`,e)}return(e,n)=>{let r=(0,t.resolveComponent)(`wt-indicator`),i=(0,t.resolveComponent)(`wt-single-select`);return(0,t.openBlock)(),(0,t.createBlock)(i,{"show-clear":!1,options:c.value,filterable:!1,"model-value":s.value,class:`wt-status-select`,"data-key":`value`,size:(0,t.unref)(q).SM,onClosed:d,"onUpdate:modelValue":u},{value:(0,t.withCtx)(({value:e})=>[(0,t.createVNode)(r,{color:s.value.color,text:l.value},null,8,[`color`,`text`])]),option:(0,t.withCtx)(({option:e})=>[(0,t.createVNode)(r,{color:e.color,text:e.text},null,8,[`color`,`text`])]),_:1},8,[`options`,`model-value`,`size`])}}})})),jV=L({default:()=>MV}),MV,NV=F((()=>{AV(),AV(),MV=kV})),PV=F((()=>{})),FV=L({default:()=>HV}),IV,LV,RV,zV,BV,VV,HV,UV=F((()=>{PV(),K(),IV={class:`wt-stepper`},LV={class:`wt-stepper-header`},RV={class:`wt-stepper-steps`},zV={class:`wt-stepper-steps__wrapper`},BV={class:`wt-stepper-description`},VV={__name:`wt-stepper`,props:{steps:{type:Array,required:!0},activeStep:{type:Number,default:1}},setup(e){let n=e,r=(0,t.computed)(()=>n.steps[n.activeStep-1].description),i=(0,t.computed)(()=>n.steps.map((e,t)=>({...e,completed:n.activeStep>t})));return(e,n)=>{let a=(0,t.resolveComponent)(`wt-chip`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,IV,[(0,t.createElementVNode)(`div`,LV,[(0,t.createElementVNode)(`div`,RV,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value,({name:e,completed:n},r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,zV,[r===0?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)([{"wt-stepper-steps__divider--completed":n},`wt-stepper-steps__divider`])},null,2)),(0,t.createVNode)(a,{color:n?`primary`:`secondary`,class:`wt-stepper-steps__item`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e),1)],void 0,!0),_:2},1032,[`color`])]))),256))])]),(0,t.renderSlot)(e.$slots,`description`,{},()=>[(0,t.createElementVNode)(`p`,BV,(0,t.toDisplayString)(r.value),1)],!0),(0,t.renderSlot)(e.$slots,`main`,{},void 0,!0)])}}},HV=G(VV,[[`__scopeId`,`data-v-7b06c506`]])})),WV,GV,KV,qV,JV,YV=F((()=>{Cx(),Ub(),rw(),WV={class:`wt-table__th__content typo-body-1-bold`},GV={class:`wt-table__td__actions`},KV=10,qV=40,JV=(0,t.defineComponent)({__name:`wt-table`,props:{headers:{default:()=>[]},data:{default:()=>[]},sortable:{type:Boolean,default:!1},selectable:{type:Boolean,default:!0},selected:{},gridActions:{type:Boolean,default:!0},fixedActions:{type:Boolean,default:!1},headless:{type:Boolean,default:!1},rowReorder:{type:Boolean,default:!1},dataKey:{default:``},isRowReorderDisabled:{type:Function,default:()=>!1},rowExpansion:{type:Boolean,default:!1},rowClass:{type:Function,default:()=>``},rowStyle:{type:Function,default:()=>({})},resizableColumns:{type:Boolean,default:!1},reorderableColumns:{type:Boolean,default:!1},rowExpansionDisabled:{type:Function,default:()=>!1},lazy:{type:Boolean,default:!1},onLoading:{},loading:{type:Boolean},itemSize:{default:qV},value:{},rows:{},first:{},totalRecords:{},paginator:{type:Boolean},paginatorPosition:{},alwaysShowPaginator:{type:Boolean},paginatorTemplate:{},pageLinkSize:{},rowsPerPageOptions:{},currentPageReportTemplate:{},loadingIcon:{},sortField:{},sortOrder:{},nullSortOrder:{},defaultSortOrder:{},multiSortMeta:{},sortMode:{},removableSort:{type:Boolean},filters:{},filterDisplay:{},globalFilterFields:{},filterLocale:{},selection:{},selectionMode:{},compareSelectionBy:{},metaKeySelection:{type:Boolean},contextMenu:{type:Boolean},contextMenuSelection:{},selectAll:{},rowHover:{type:Boolean},csvSeparator:{},exportFilename:{},exportFunction:{},columnResizeMode:{},expandedRows:{},expandedRowIcon:{},collapsedRowIcon:{},rowGroupMode:{},groupRowsBy:{},expandableRowGroups:{type:Boolean},expandedRowGroups:{},stateStorage:{},stateKey:{},editMode:{},editingRows:{},scrollable:{type:Boolean},scrollHeight:{},virtualScrollerOptions:{},frozenValue:{},breakpoint:{},showHeaders:{type:Boolean},showGridlines:{type:Boolean},stripedRows:{type:Boolean},highlightOnSelect:{type:Boolean},size:{},tableStyle:{},tableClass:{},tableProps:{},filterInputProps:{},filterButtonProps:{},editButtonProps:{},dt:{},pt:{},ptOptions:{},unstyled:{type:Boolean}},emits:[`sort`,`update:selected`,`reorder:row`,`column-resize`,`column-reorder`],setup(e,{emit:n}){let r=e,{t:i}=bb(),a=(0,t.useSlots)(),o=n,s=(0,t.useTemplateRef)(`table`),c=(0,t.ref)(0),l=(0,t.ref)([]),{addTableDragListener:u,removeTableDragListener:d}=ew(s,r.reorderableColumns),f=[`row-select`,`row-reorder`,`row-actions`,`row-expander`],p=(0,t.computed)(()=>r.selectable?r.selected||r.data.filter(e=>e._isSelected):[]),m=(0,t.computed)(()=>r.headers.map(e=>!e.text&&e.locale?{...e,text:typeof e.locale==`string`?i(e.locale):i(...e.locale)}:e)),h=e=>e.show===!1,g=e=>{let t=e.width||`140px`;return r.lazy?{width:t}:{minWidth:t}},_=(0,t.computed)(()=>Object.keys(a).some(e=>e.includes(`-footer`))),v=(0,t.computed)(()=>Object.keys(a).some(e=>e===`footer`)),y=(0,t.computed)(()=>p.value.length===r.data.length&&r.data.length>0),b=(0,t.computed)(()=>r.headers.find(e=>e.sort===xx.ASC||e.sort===xx.DESC)?.field??null),x=({sortField:e})=>{let t=m.value.find(t=>t.field===e);if(!S(t))return;let n=Sx(t.sort);o(`sort`,t,n)},S=({sort:e})=>r.sortable&&e!==void 0,C=()=>{r.selected?y.value?o(`update:selected`,[]):o(`update:selected`,[...r.data]):y.value?r.data.forEach(e=>{e._isSelected=!1}):r.data.forEach(e=>{e._isSelected=!0})},w=(e,t)=>{r.selected?t?o(`update:selected`,[...p.value,e]):o(`update:selected`,p.value.filter(t=>t!==e)):e._isSelected=!e._isSelected},T=({element:e})=>{let t=e.getAttribute(`data-column-field`),n=getComputedStyle(e),r=Number.parseFloat(n.paddingLeft),i=Number.parseFloat(n.paddingRight),a=e.offsetWidth-r-i;o(`column-resize`,{columnName:t,columnWidth:`${a}px`})},E=()=>{let e=s.value.$el.querySelector(`.p-datatable-table-container`).scrollLeft,n=s.value.d_columnOrder.filter(e=>!f.includes(e));c.value+=1,o(`column-reorder`,n),(0,t.nextTick)(()=>{u(),s.value.$el.querySelector(`.p-datatable-table-container`).scrollLeft=e})},D=e=>l.value.some(t=>t?.id===e?.id),O=e=>{let t=l.value.findIndex(t=>t.id===e.id);t===-1?l.value.push(e):l.value.splice(t,1)},k=(0,t.computed)(()=>{if(r.lazy)return{lazy:r.lazy,onLazyLoad:r.onLoading,itemSize:r.itemSize,numToleratedItems:KV,totalRecords:r.data.length,autoSize:!0}});return(0,t.onMounted)(()=>{u()}),(0,t.onUnmounted)(()=>{d()}),(n,i)=>{let a=(0,t.resolveComponent)(`wt-icon-btn`),u=(0,t.resolveComponent)(`p-column`),d=(0,t.resolveComponent)(`wt-icon`),f=(0,t.resolveComponent)(`wt-checkbox`),A=(0,t.resolveComponent)(`p-table`),j=(0,t.resolveDirective)(`tooltip`);return(0,t.openBlock)(),(0,t.createBlock)(A,{key:c.value,ref_key:`table`,ref:s,"expanded-rows":l.value,"reorderable-columns":e.reorderableColumns,"resizable-columns":e.resizableColumns,"row-class":e.rowClass,"row-style":e.rowStyle,"show-headers":!e.headless,value:e.data,"sort-field":b.value,"data-key":r.dataKey,class:`wt-table`,"column-resize-mode":`expand`,lazy:``,"scroll-height":`flex`,scrollable:``,"virtual-scroller-options":k.value,pt:{tableContainer:`wt-scrollbar`},onSort:x,"onUpdate:expandedRows":i[0]||=e=>l.value=e,onColumnResizeEnd:T,onColumnReorder:E,onRowReorder:i[1]||=({dragIndex:e,dropIndex:t})=>o(`reorder:row`,{oldIndex:e,newIndex:t})},(0,t.createSlots)({expansion:(0,t.withCtx)(({data:e})=>[(0,t.createElementVNode)(`div`,null,[(0,t.renderSlot)(n.$slots,`expansion`,{item:e},void 0,!0)])]),default:(0,t.withCtx)(()=>[e.rowExpansion?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,pt:{columnresizer:{class:{hidden:!0}}},"body-style":`width: 1%;`,"column-key":`row-expander`,"header-style":`width: 1%;`},{body:(0,t.withCtx)(({data:e})=>[(0,t.createVNode)(a,{disabled:r.rowExpansionDisabled(e),icon:D(e)?`arrow-down`:`arrow-right`,onClick:(0,t.withModifiers)(t=>O(e),[`stop`])},null,8,[`disabled`,`icon`,`onClick`])]),_:1})):(0,t.createCommentVNode)(``,!0),e.rowReorder?((0,t.openBlock)(),(0,t.createBlock)(u,{key:1,pt:{columnresizer:{class:{hidden:!0}}},"reorderable-column":!1,"body-style":`width: 1%;`,"column-key":`row-reorder`,"header-style":`width: 1%;`,"row-reorder":``},{body:(0,t.withCtx)(({data:n})=>[e.isRowReorderDisabled(n)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(d,{key:0,"data-pc-section":`reorderablerowhandle`,icon:`move`}))]),_:1})):(0,t.createCommentVNode)(``,!0),e.selectable?((0,t.openBlock)(),(0,t.createBlock)(u,{key:2,pt:{columnresizer:{class:{hidden:!0}}},"reorderable-column":!1,"body-style":`width: 1%;`,"column-key":`row-select`,"header-style":`width: 1%;`},{header:(0,t.withCtx)(()=>[(0,t.createVNode)(f,{selected:y.value,"onUpdate:selected":C},null,8,[`selected`])]),body:(0,t.withCtx)(({data:e})=>[e?((0,t.openBlock)(),(0,t.createBlock)(f,{key:0,selected:p.value.includes(e),"onUpdate:selected":t=>w(e,t)},null,8,[`selected`,`onUpdate:selected`])):(0,t.createCommentVNode)(``,!0)]),_:1})):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(m.value,(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(u,{key:e.value,"column-key":e.field,field:e.field,hidden:h(e),pt:{root:{"data-column-field":e.field}},sortable:S(e)},(0,t.createSlots)({header:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`header-${e.value}`,{index:r,header:e},()=>[(0,t.createElementVNode)(`div`,WV,[(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`span`,null,[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)])),[[j,e.text]]),e.sort===`asc`?((0,t.openBlock)(),(0,t.createBlock)(d,{key:0,class:`wt-table__th__sort-arrow wt-table__th__sort-arrow--asc`,icon:`sort-arrow-up`,size:`sm`})):e.sort===`desc`?((0,t.openBlock)(),(0,t.createBlock)(d,{key:1,class:`wt-table__th__sort-arrow wt-table__th__sort-arrow--desc`,icon:`sort-arrow-down`,size:`sm`})):(0,t.createCommentVNode)(``,!0)])],!0)]),body:(0,t.withCtx)(({data:r,index:i})=>[(0,t.createElementVNode)(`div`,{style:(0,t.normalizeStyle)(g(e)),class:`wt-table__td__content typo-body-1`},[r?(0,t.renderSlot)(n.$slots,e.value,{key:0,index:i,item:r},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r[e.value]),1)],!0):(0,t.createCommentVNode)(``,!0)],4)]),sorticon:(0,t.withCtx)(()=>[]),_:2},[_.value?{name:`footer`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`${e.value}-footer`,{},void 0,!0)]),key:`0`}:void 0]),1032,[`column-key`,`field`,`hidden`,`pt`,`sortable`]))),128)),e.gridActions?((0,t.openBlock)(),(0,t.createBlock)(u,{key:3,frozen:e.fixedActions,"align-frozen":`right`,"column-key":`row-actions`,style:{width:`112px`}},{header:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`actions-header`,{},void 0,!0)]),body:(0,t.withCtx)(({data:e,index:r})=>[(0,t.createElementVNode)(`div`,GV,[e?(0,t.renderSlot)(n.$slots,`actions`,{key:0,index:r,item:e},void 0,!0):(0,t.createCommentVNode)(``,!0)])]),_:3},8,[`frozen`])):(0,t.createCommentVNode)(``,!0)],void 0,!0),_:2},[v.value?{name:`footer`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`footer`,{},void 0,!0)]),key:`0`}:void 0]),1032,[`expanded-rows`,`reorderable-columns`,`resizable-columns`,`row-class`,`row-style`,`show-headers`,`value`,`sort-field`,`data-key`,`virtual-scroller-options`])}}})})),XV=F((()=>{})),ZV=L({default:()=>QV}),QV,$V=F((()=>{YV(),YV(),XV(),K(),QV=G(JV,[[`__scopeId`,`data-v-88411100`]])})),eH,tH,nH=F((()=>{eH={class:`wt-table-actions`},tH=(0,t.defineComponent)({__name:`wt-table-actions`,props:{icons:{default:()=>[`refresh`]},isSettingsActive:{type:Boolean,default:!1},isSettingsBadge:{type:Boolean,default:!1}},emits:[`input`],setup(e){let n=e,r=(0,t.computed)(()=>n.icons.indexOf(`import`)!==-1),i=(0,t.computed)(()=>n.icons.indexOf(`export`)!==-1),a=(0,t.computed)(()=>n.icons.indexOf(`filter-reset`)!==-1),o=(0,t.computed)(()=>n.icons.indexOf(`column-select`)!==-1),s=(0,t.computed)(()=>n.icons.indexOf(`refresh`)!==-1),c=(0,t.computed)(()=>n.icons.indexOf(`settings`)!==-1);return(n,l)=>{let u=(0,t.resolveComponent)(`wt-icon-btn`),d=(0,t.resolveComponent)(`wt-badge`),f=(0,t.resolveDirective)(`tooltip`);return(0,t.openBlock)(),(0,t.createElementBlock)(`aside`,eH,[(0,t.renderSlot)(n.$slots,`default`,{},void 0,!0),r.value?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,icon:`download`,onClick:l[0]||=e=>n.$emit(`input`,`import`)},null,512)),[[f,n.$t(`reusable.import`)]]):(0,t.createCommentVNode)(``,!0),i.value?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(u,{key:1,icon:`upload`,onClick:l[1]||=e=>n.$emit(`input`,`export`)},null,512)),[[f,n.$t(`reusable.export`)]]):(0,t.createCommentVNode)(``,!0),a.value?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(u,{key:2,icon:`clear`,onClick:l[2]||=e=>n.$emit(`input`,`filterReset`)},null,512)),[[f,n.$t(`webitelUI.tableActions.filterReset`)]]):(0,t.createCommentVNode)(``,!0),o.value?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(u,{key:3,icon:`column-select`,onClick:l[3]||=e=>n.$emit(`input`,`columnSelect`)},null,512)),[[f,n.$t(`webitelUI.tableActions.columnSelect`)]]):(0,t.createCommentVNode)(``,!0),s.value?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(u,{key:4,icon:`refresh`,onClick:l[4]||=e=>n.$emit(`input`,`refresh`)},null,512)),[[f,n.$t(`webitelUI.tableActions.refreshTable`)]]):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(d,{hidden:!e.isSettingsBadge},{default:(0,t.withCtx)(()=>[c.value?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,class:(0,t.normalizeClass)({active:e.isSettingsActive}),icon:`filter`,onClick:l[5]||=e=>n.$emit(`input`,`settings`)},null,8,[`class`])),[[f,n.$t(`webitelUI.tableActions.expandFilters`)]]):(0,t.createCommentVNode)(``,!0)],void 0,!0),_:1},8,[`hidden`])])}}})})),rH=F((()=>{})),iH=L({default:()=>aH}),aH,oH=F((()=>{nH(),nH(),rH(),K(),aH=G(tH,[[`__scopeId`,`data-v-73cf33d9`]])})),sH=I(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=i():typeof define==`function`&&define.amd?define(i):r[n]=i()})(`dcopy`,e,function(){return function(t){if(/number|string|boolean/.test(typeof t))return t;if(t instanceof Date)return new Date(t.getTime());var n=t instanceof Array?[]:{};return r(t,n),n;function r(t,n){for(var i in t){var a=t[i];if(a instanceof Date){var o=new Date(a.getTime());e(n,i,o)}else if(a instanceof Function){var o=a;e(n,i,o)}else if(a instanceof Array){var o=[],s=e(n,i,o);r(a,s)}else if(a instanceof Object){var o={},s=e(n,i,o);r(a,s)}else{var o=a;e(n,i,o)}}}};function e(e,t,n){if(e instanceof Array)return e.push(n),e[e.length-1];if(e instanceof Object)return e[t]=n,e[t]}})})),cH,lH=F((()=>{cH=`data:image/svg+xml,%3csvg%20viewBox='0%200%20200%20200'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M77.0793%2026.8668C77.6555%2028.5378%2079.1152%2029.959%2080.3252%2030.0551C81.5352%2030.1511%2082.0538%2028.8643%2081.4584%2027.1933C80.863%2025.5224%2079.4225%2024.1011%2078.2125%2024.005C77.0025%2023.909%2076.4839%2025.1958%2077.0793%2026.8668Z'%20fill='%231A2EB2'/%3e%3cpath%20d='M71.4823%2071.7511C73.0572%2076.2646%2077.0138%2080.1251%2080.2981%2080.3556C83.5824%2080.5861%2084.9652%2077.1289%2083.3903%2072.6154C81.8154%2068.1019%2077.8588%2064.2414%2074.5745%2064.0109C71.2902%2063.7804%2069.9074%2067.2376%2071.4823%2071.7511Z'%20fill='%23C9981D'/%3e%3cpath%20d='M43.3249%2090.7521C46.3403%2092.4999%2048.7795%2096.7253%2048.7795%20100.202C48.7795%20103.678%2046.3211%20105.08%2043.2865%20103.332C40.2711%20101.585%2037.8319%2097.3592%2037.8319%2093.8828C37.8319%2090.4064%2040.2903%2089.0043%2043.3249%2090.7521Z'%20fill='%23161922'/%3e%3cpath%20d='M93.4077%20153.253L128.272%20133.127C128.692%20132.885%20129.373%20132.885%20129.798%20133.127L155.224%20147.805C155.644%20148.047%20155.644%20148.441%20155.224%20148.683L120.36%20168.81C119.939%20169.052%20119.258%20169.052%20118.834%20168.81L93.4077%20154.132C92.9871%20153.89%2092.9871%20153.495%2093.4077%20153.253Z'%20fill='%23040506'/%3e%3cpath%20d='M83.6125%20176C83.1919%20176%2082.7825%20175.9%2082.4625%20175.713L54.0814%20159.323C53.6422%20159.07%2053.3892%20158.672%2053.3892%20158.229C53.3892%20157.786%2053.6422%20157.392%2054.0814%20157.135L77.0326%20143.879C77.3527%20143.693%2077.7583%20143.592%2078.1826%20143.592C78.6069%20143.592%2079.0125%20143.693%2079.3326%20143.879L107.714%20160.269C108.153%20160.522%20108.406%20160.92%20108.406%20161.363C108.406%20161.806%20108.153%20162.2%20107.714%20162.457L84.7624%20175.713C84.4424%20175.9%2084.0367%20176%2083.6125%20176Z'%20fill='%23040506'/%3e%3cpath%20d='M60.181%20148.319C60.181%20148.319%2060.5941%20142.881%2058.7333%20138.244C56.8762%20133.607%2053.7277%20130.336%2050.3857%20129.416C47.0436%20128.501%2043.7053%20131.099%2046.9283%20133.938C50.1512%20136.778%2056.1839%20140.198%2057.6242%20148.787L60.1847%20148.319H60.181Z'%20fill='%23040506'/%3e%3cpath%20d='M59.4515%20146.748C59.4515%20146.748%2059.4775%20146.748%2059.4887%20146.748C59.5892%20146.729%2059.6524%20146.633%2059.6338%20146.532C57.7358%20137.027%2051.6212%20132.04%2048.6513%20130.73C48.5583%20130.689%2048.4503%20130.73%2048.4094%20130.823C48.3685%20130.916%2048.4094%20131.024%2048.5024%20131.065C51.409%20132.345%2057.4046%20137.243%2059.2728%20146.599C59.2914%20146.685%2059.3659%20146.748%2059.4515%20146.748Z'%20fill='%23272C3A'/%3e%3cpath%20d='M44.6283%20144.336C44.7735%20144.954%2045.3392%20145.371%2045.8751%20145.717C46.4073%20146.06%2046.9916%20146.432%2047.2037%20147.031C47.6279%20148.24%2046.2956%20149.577%2046.772%20150.767C46.9729%20151.266%2047.4568%20151.601%2047.9592%20151.795C48.376%20151.958%2048.8151%20152.04%2049.2469%20152.163C49.459%20152.2%2049.6711%20152.223%2049.8795%20152.234C50.4973%20152.26%2051.156%20152.357%2051.6473%20152.77C52.4214%20153.421%2052.4772%20154.567%2052.8419%20155.512C53.2811%20156.644%2054.271%20157.518%2055.4099%20157.902C56.37%20158.218%2057.8847%20158.281%2058.2197%20157.894C58.4765%20157.6%2058.0894%20156.495%2058.1527%20156.108C58.309%20155.122%2058.3723%20154.117%2058.3388%20153.119C58.3239%20152.632%2058.309%20152.237%2058.4058%20151.757C58.5063%20151.255%2058.603%20150.753%2058.6923%20150.25C58.8375%20149.439%2059.1054%20148.572%2058.9082%20147.742C58.6886%20146.83%2057.747%20146.633%2057.5498%20145.74C57.4679%20145.382%2057.4605%20145.018%2057.386%20144.66C57.159%20143.607%2056.2919%20142.718%2055.2461%20142.464C53.616%20142.066%2051.8818%20143.119%2050.2591%20142.68C49.8386%20142.565%2049.4478%20142.357%2049.0422%20142.2C47.7545%20141.694%2046.1393%20141.78%2045.1754%20142.766C44.7735%20143.179%2044.5018%20143.771%2044.632%20144.333L44.6283%20144.336Z'%20fill='%23040506'/%3e%3cpath%20d='M57.8774%20155.308C57.8774%20155.308%2057.8849%20155.308%2057.8886%20155.308C57.9667%20155.304%2058.0263%20155.233%2058.0226%20155.155C57.3787%20146.179%2048.6143%20143.224%2046.4781%20142.974C46.3999%20142.967%2046.3292%20143.023%2046.318%20143.101C46.3106%20143.179%2046.3664%20143.25%2046.4446%20143.261C48.5324%20143.507%2057.1033%20146.395%2057.736%20155.178C57.7397%20155.252%2057.803%20155.312%2057.8774%20155.312V155.308Z'%20fill='%23272C3A'/%3e%3cpath%20d='M48.7071%20149.067C48.7369%20149.067%2048.7629%20149.059%2048.789%20149.041C48.815%20149.022%2051.543%20147.198%2055.2423%20148.486C55.3167%20148.512%2055.3986%20148.471%2055.4246%20148.397C55.4507%20148.322%2055.4098%20148.24%2055.3353%20148.214C51.4909%20146.878%2048.655%20148.784%2048.6252%20148.802C48.5583%20148.847%2048.5434%20148.936%2048.588%20149C48.6141%20149.041%2048.6587%20149.063%2048.7034%20149.063L48.7071%20149.067Z'%20fill='%23272C3A'/%3e%3cpath%20d='M119.593%20165.896L97.572%20153.179V84.1653L119.593%2096.8783V165.896Z'%20fill='%23161922'/%3e%3cpath%20d='M119.593%2096.8783L151.052%2078.7168V147.731L119.593%20165.896V96.8783Z'%20fill='%23272C3A'/%3e%3cpath%20d='M151.052%2078.7168L119.593%2096.8783L97.572%2084.1652L129.031%2066L151.052%2078.7168Z'%20fill='%23272C3A'/%3e%3cpath%20d='M122.741%20141.608L147.907%20127.079V144.571L148.484%20144.902L123.318%20159.435L122.741%20159.1V141.608Z'%20fill='%23040506'/%3e%3cpath%20d='M123.318%20141.943L148.488%20127.414L148.484%20144.902L123.318%20159.435V141.943Z'%20fill='%23272C3A'/%3e%3cpath%20d='M133.184%20139.212L137.464%20136.741C138.019%20136.421%20138.469%20136.566%20138.469%20137.068C138.469%20137.57%20138.019%20138.237%20137.464%20138.557L133.184%20141.028C132.63%20141.348%20132.179%20141.203%20132.179%20140.7C132.179%20140.198%20132.63%20139.532%20133.184%20139.212Z'%20fill='%23040506'/%3e%3cpath%20d='M122.741%20120.488L147.907%20105.959V123.451L148.484%20123.786L123.318%20138.315L122.741%20137.98V120.488Z'%20fill='%23040506'/%3e%3cpath%20d='M123.318%20120.823L148.488%20106.294L148.484%20123.786L123.318%20138.315V120.823Z'%20fill='%23272C3A'/%3e%3cpath%20d='M133.184%20118.092L137.464%20115.62C138.019%20115.3%20138.469%20115.445%20138.469%20115.948C138.469%20116.45%20138.019%20117.116%20137.464%20117.437L133.184%20119.908C132.63%20120.228%20132.179%20120.083%20132.179%20119.58C132.179%20119.078%20132.63%20118.412%20133.184%20118.092Z'%20fill='%23040506'/%3e%3cpath%20d='M122.741%2099.368L147.907%2084.8388V102.327L122.741%20116.856V99.368Z'%20fill='%23040506'/%3e%3cpath%20d='M160.49%2095.0622L146.526%2087.0049V102.412L160.49%20110.47V95.0622Z'%20fill='%23040506'/%3e%3cg%20opacity='0.1'%3e%3cpath%20d='M160.49%2095.0622L146.526%2087.0049V102.412L160.49%20110.47V95.0622Z'%20fill='%23040506'/%3e%3c/g%3e%3cpath%20d='M147.501%2086.4392L146.526%2087.0011L160.49%2095.0622L161.465%2094.4965L147.501%2086.4392Z'%20fill='%23272C3A'/%3e%3cpath%20d='M151.435%2088.14C151.435%2087.9874%20151.383%2087.8832%20151.301%2087.8274C151.301%2087.8274%20151.29%2087.8162%20151.268%2087.8087L150.557%2087.3919C150.468%2087.3398%20150.345%2087.351%20150.211%2087.4254L135.987%2095.6279L135.574%2093.9569C135.537%2093.8303%20135.462%2093.741%20135.369%2093.6852L134.628%2093.2535C134.498%2093.179%20134.334%2093.1753%20134.178%2093.2684L128.127%2096.7592C127.855%2096.9156%20127.635%2097.2989%20127.635%2097.6115V117.79C127.635%20117.939%20127.684%20118.047%20127.769%20118.103L128.532%20118.546C128.622%20118.59%20128.737%20118.579%20128.867%20118.505L150.959%20105.751C151.231%20105.594%20151.45%20105.211%20151.45%20104.898L151.443%2088.1362L151.435%2088.14Z'%20fill='%23040506'/%3e%3cg%20opacity='0.2'%3e%3cmask%20id='path-25-inside-1_8152_16965'%20fill='white'%3e%3cpath%20d='M135.354%2093.6814C135.227%2093.6107%20135.067%2093.6145%20134.915%2093.7001L128.864%2097.1909C128.73%2097.2691%20128.607%2097.4031%20128.517%2097.5594L127.781%2097.1314C127.87%2096.9751%20127.993%2096.8411%20128.127%2096.7629L134.178%2093.2721C134.338%2093.1828%20134.502%2093.1865%20134.628%2093.2609L135.358%2093.6814H135.354Z'/%3e%3c/mask%3e%3cpath%20d='M135.354%2093.6814C135.227%2093.6107%20135.067%2093.6145%20134.915%2093.7001L128.864%2097.1909C128.73%2097.2691%20128.607%2097.4031%20128.517%2097.5594L127.781%2097.1314C127.87%2096.9751%20127.993%2096.8411%20128.127%2096.7629L134.178%2093.2721C134.338%2093.1828%20134.502%2093.1865%20134.628%2093.2609L135.358%2093.6814H135.354Z'%20fill='%23161922'/%3e%3cpath%20d='M135.354%2093.6814L134.866%2094.5544L135.094%2094.6814H135.354V93.6814ZM134.915%2093.7001L134.426%2092.8278L134.415%2092.8339L134.915%2093.7001ZM128.864%2097.1909L128.364%2096.3247L128.36%2096.3272L128.864%2097.1909ZM128.517%2097.5594L128.015%2098.4241L128.886%2098.9299L129.386%2098.0555L128.517%2097.5594ZM127.781%2097.1314L126.912%2096.6353L126.42%2097.4974L127.278%2097.9961L127.781%2097.1314ZM128.127%2096.7629L127.627%2095.8967L127.623%2095.8992L128.127%2096.7629ZM134.178%2093.2721L133.691%2092.3989L133.684%2092.4023L133.678%2092.4059L134.178%2093.2721ZM134.628%2093.2609L134.121%2094.1229L134.129%2094.1272L134.628%2093.2609ZM135.358%2093.6814V94.6814H139.094L135.857%2092.8151L135.358%2093.6814ZM135.842%2092.8085C135.365%2092.5418%20134.831%2092.6002%20134.426%2092.8279L135.404%2094.5722C135.303%2094.6287%20135.09%2094.6796%20134.866%2094.5544L135.842%2092.8085ZM134.415%2092.8339L128.364%2096.3247L129.363%2098.0571L135.415%2094.5663L134.415%2092.8339ZM128.36%2096.3272C128.04%2096.5134%20127.804%2096.7925%20127.649%2097.0632L129.386%2098.0555C129.39%2098.0486%20129.394%2098.0424%20129.397%2098.0374C129.401%2098.0323%20129.404%2098.0293%20129.405%2098.0282C129.406%2098.027%20129.404%2098.029%20129.399%2098.0333C129.394%2098.0375%20129.384%2098.0453%20129.367%2098.0547L128.36%2096.3272ZM129.02%2096.6946L128.283%2096.2667L127.278%2097.9961L128.015%2098.4241L129.02%2096.6946ZM128.649%2097.6275C128.653%2097.6206%20128.657%2097.6144%20128.66%2097.6094C128.664%2097.6043%20128.667%2097.6013%20128.668%2097.6002C128.669%2097.599%20128.667%2097.601%20128.662%2097.6053C128.657%2097.6095%20128.647%2097.6173%20128.63%2097.6267L127.623%2095.8992C127.303%2096.0855%20127.067%2096.3645%20126.912%2096.6353L128.649%2097.6275ZM128.626%2097.6292L134.678%2094.1383L133.678%2092.4059L127.627%2095.8967L128.626%2097.6292ZM134.665%2094.1453C134.612%2094.1749%20134.531%2094.2038%20134.428%2094.205C134.324%2094.2063%20134.217%2094.1791%20134.121%2094.1228L135.135%2092.399C134.672%2092.1266%20134.128%2092.1545%20133.691%2092.3989L134.665%2094.1453ZM134.129%2094.1272L134.858%2094.5478L135.857%2092.8151L135.128%2092.3946L134.129%2094.1272ZM135.358%2092.6814H135.354V94.6814H135.358V92.6814Z'%20fill='%23161922'%20mask='url(%23path-25-inside-1_8152_16965)'/%3e%3c/g%3e%3cpath%20opacity='0.2'%20d='M151.264%2087.8087C151.179%2087.7715%20151.063%2087.7864%20150.94%2087.8571L136.705%2096.0707C136.433%2096.2271%20136.139%2096.1117%20136.05%2095.8102L135.983%2095.6316L150.207%2087.4291C150.285%2087.3845%20150.36%2087.3622%20150.427%2087.3622C150.475%2087.3622%20150.516%2087.3733%20150.553%2087.3956L151.264%2087.8125V87.8087Z'%20fill='%23272C3A'/%3e%3cpath%20d='M151.435%2088.14L151.443%20104.898C151.443%20105.211%20151.223%20105.594%20150.951%20105.751L128.804%20118.534C128.611%20118.646%20128.369%20118.508%20128.369%20118.285V98.0432C128.369%2097.8869%20128.424%2097.712%20128.514%2097.5594C128.603%2097.4031%20128.73%2097.2691%20128.86%2097.191L134.911%2093.6963C135.068%2093.6108%20135.224%2093.607%20135.354%2093.6777L135.365%2093.6852C135.458%2093.741%20135.533%2093.8303%20135.57%2093.9569L135.983%2095.6279L136.05%2095.8065C136.139%2096.108%20136.433%2096.2233%20136.705%2096.067L150.944%2087.8534C151.067%2087.7827%20151.178%2087.7715%20151.264%2087.805L151.283%2087.8162C151.283%2087.8162%20151.29%2087.8162%20151.294%2087.8199H151.298C151.379%2087.8757%20151.432%2087.9837%20151.432%2088.1362L151.435%2088.14Z'%20fill='%23040506'/%3e%3cpath%20opacity='0.3'%20d='M151.435%2088.14L151.443%20104.898C151.443%20105.211%20151.223%20105.594%20150.951%20105.751L128.804%20118.534C128.611%20118.646%20128.369%20118.508%20128.369%20118.285V98.0432C128.369%2097.8869%20128.424%2097.712%20128.514%2097.5594C128.603%2097.4031%20128.73%2097.2691%20128.86%2097.191L134.911%2093.6963C135.068%2093.6108%20135.224%2093.607%20135.354%2093.6777L135.365%2093.6852C135.458%2093.741%20135.533%2093.8303%20135.57%2093.9569L135.983%2095.6279L136.05%2095.8065C136.139%2096.108%20136.433%2096.2233%20136.705%2096.067L150.944%2087.8534C151.067%2087.7827%20151.178%2087.7715%20151.264%2087.805L151.283%2087.8162C151.283%2087.8162%20151.29%2087.8162%20151.294%2087.8199H151.298C151.379%2087.8757%20151.432%2087.9837%20151.432%2088.1362L151.435%2088.14Z'%20fill='%23272C3A'/%3e%3cpath%20opacity='0.5'%20d='M128.547%20118.553C128.547%20118.553%20128.532%20118.553%20128.525%20118.546L127.762%20118.103C127.68%20118.047%20127.628%20117.943%20127.628%20117.79V97.6115C127.628%2097.4514%20127.684%2097.284%20127.773%2097.1277L128.51%2097.5556C128.421%2097.712%20128.365%2097.8831%20128.365%2098.0395V118.281C128.365%20118.408%20128.443%20118.508%20128.543%20118.549L128.547%20118.553Z'%20fill='%23040506'/%3e%3cpath%20d='M153.806%2089.5207C153.806%2089.3681%20153.754%2089.2639%20153.672%2089.2081C153.672%2089.2081%20153.661%2089.1969%20153.638%2089.1895L152.928%2088.7726C152.838%2088.7243%20152.715%2088.7317%20152.581%2088.8099L138.357%2097.0123L137.944%2095.3413C137.907%2095.2148%20137.833%2095.1254%20137.74%2095.0696L136.999%2094.6379C136.869%2094.5635%20136.705%2094.5598%20136.549%2094.6528L130.497%2098.1437C130.226%2098.3%20130.006%2098.6833%20130.006%2098.9959V119.175C130.006%20119.323%20130.054%20119.431%20130.14%20119.487L130.903%20119.93C130.992%20119.975%20131.108%20119.964%20131.238%20119.889L153.33%20107.135C153.601%20106.979%20153.821%20106.595%20153.821%20106.283L153.813%2089.5207H153.806Z'%20fill='%23040506'/%3e%3cg%20opacity='0.1'%3e%3cmask%20id='path-32-inside-2_8152_16965'%20fill='white'%3e%3cpath%20d='M137.725%2095.0622C137.598%2094.9915%20137.438%2094.9952%20137.285%2095.0808L131.234%2098.5717C131.1%2098.6498%20130.977%2098.7838%20130.888%2098.9401L130.151%2098.5121C130.24%2098.3558%20130.363%2098.2218%20130.497%2098.1437L136.549%2094.6528C136.709%2094.5635%20136.872%2094.5672%20136.999%2094.6416L137.728%2095.0622H137.725Z'/%3e%3c/mask%3e%3cpath%20d='M137.725%2095.0622C137.598%2094.9915%20137.438%2094.9952%20137.285%2095.0808L131.234%2098.5717C131.1%2098.6498%20130.977%2098.7838%20130.888%2098.9401L130.151%2098.5121C130.24%2098.3558%20130.363%2098.2218%20130.497%2098.1437L136.549%2094.6528C136.709%2094.5635%20136.872%2094.5672%20136.999%2094.6416L137.728%2095.0622H137.725Z'%20fill='%23161922'/%3e%3cpath%20d='M137.725%2095.0622L137.237%2095.9351L137.464%2096.0622H137.725V95.0622ZM137.285%2095.0808L136.796%2094.2086L136.786%2094.2146L137.285%2095.0808ZM131.234%2098.5717L130.734%2097.7055L130.73%2097.7079L131.234%2098.5717ZM130.888%2098.9401L130.386%2099.8048L131.257%20100.311L131.756%2099.4363L130.888%2098.9401ZM130.151%2098.5121L129.283%2098.016L128.79%2098.8781L129.649%2099.3769L130.151%2098.5121ZM130.497%2098.1437L129.998%2097.2775L129.993%2097.2799L130.497%2098.1437ZM136.549%2094.6528L136.061%2093.7796L136.055%2093.7831L136.049%2093.7866L136.549%2094.6528ZM136.999%2094.6416L136.492%2095.5036L136.499%2095.508L136.999%2094.6416ZM137.728%2095.0622V96.0622H141.465L138.228%2094.1959L137.728%2095.0622ZM138.212%2094.1892C137.735%2093.9226%20137.202%2093.981%20136.796%2094.2086L137.775%2095.9529C137.674%2096.0094%20137.461%2096.0604%20137.237%2095.9351L138.212%2094.1892ZM136.786%2094.2146L130.734%2097.7055L131.734%2099.4379L137.785%2095.947L136.786%2094.2146ZM130.73%2097.7079C130.411%2097.8942%20130.174%2098.1732%20130.02%2098.444L131.756%2099.4363C131.76%2099.4293%20131.764%2099.4232%20131.768%2099.4181C131.772%2099.413%20131.774%2099.41%20131.775%2099.4089C131.776%2099.4078%20131.775%2099.4097%20131.77%2099.414C131.764%2099.4182%20131.754%2099.426%20131.738%2099.4355L130.73%2097.7079ZM131.39%2098.0754L130.653%2097.6474L129.649%2099.3769L130.386%2099.8048L131.39%2098.0754ZM131.019%2099.0083C131.023%2099.0013%20131.027%2098.9952%20131.031%2098.9901C131.035%2098.985%20131.037%2098.982%20131.038%2098.9809C131.04%2098.9798%20131.038%2098.9818%20131.033%2098.986C131.028%2098.9902%20131.017%2098.998%20131.001%2099.0075L129.993%2097.2799C129.674%2097.4662%20129.438%2097.7452%20129.283%2098.016L131.019%2099.0083ZM130.997%2099.0099L137.048%2095.519L136.049%2093.7866L129.998%2097.2775L130.997%2099.0099ZM137.036%2095.526C136.983%2095.5557%20136.902%2095.5845%20136.798%2095.5857C136.695%2095.587%20136.588%2095.5598%20136.492%2095.5036L137.506%2093.7797C137.043%2093.5074%20136.499%2093.5352%20136.061%2093.7796L137.036%2095.526ZM136.499%2095.508L137.229%2095.9285L138.228%2094.1959L137.498%2093.7753L136.499%2095.508ZM137.728%2094.0622H137.725V96.0622H137.728V94.0622Z'%20fill='%23161922'%20mask='url(%23path-32-inside-2_8152_16965)'/%3e%3c/g%3e%3cpath%20opacity='0.1'%20d='M153.634%2089.1895C153.549%2089.1522%20153.434%2089.1671%20153.311%2089.2378L139.076%2097.4515C138.804%2097.6078%20138.51%2097.4924%20138.421%2097.1909L138.354%2097.0123L152.578%2088.8099C152.656%2088.7652%20152.73%2088.7429%20152.797%2088.7429C152.846%2088.7429%20152.886%2088.754%20152.924%2088.7764L153.634%2089.1932V89.1895Z'%20fill='%23272C3A'/%3e%3cpath%20d='M153.806%2089.5244L153.813%20106.283C153.813%20106.595%20153.594%20106.979%20153.322%20107.135L131.175%20119.923C130.981%20120.034%20130.739%20119.893%20130.739%20119.673V99.4314C130.739%2099.275%20130.795%2099.1001%20130.884%2098.9475C130.974%2098.7912%20131.1%2098.6573%20131.231%2098.5791L137.282%2095.0845C137.438%2094.9989%20137.594%2094.9952%20137.725%2095.0659L137.736%2095.0733C137.829%2095.1292%20137.903%2095.2185%20137.941%2095.345L138.354%2097.016L138.421%2097.1947C138.51%2097.4961%20138.804%2097.6115%20139.076%2097.4552L153.315%2089.2416C153.437%2089.1708%20153.549%2089.1597%20153.635%2089.1932L153.653%2089.2043C153.653%2089.2043%20153.661%2089.2043%20153.664%2089.2081H153.668C153.75%2089.2639%20153.802%2089.3718%20153.802%2089.5244H153.806Z'%20fill='%23040506'/%3e%3cpath%20opacity='0.2'%20d='M153.806%2089.5244L153.813%20106.283C153.813%20106.595%20153.594%20106.979%20153.322%20107.135L131.175%20119.923C130.981%20120.034%20130.739%20119.893%20130.739%20119.673V99.4314C130.739%2099.275%20130.795%2099.1001%20130.884%2098.9475C130.974%2098.7912%20131.1%2098.6573%20131.231%2098.5791L137.282%2095.0845C137.438%2094.9989%20137.594%2094.9952%20137.725%2095.0659L137.736%2095.0733C137.829%2095.1292%20137.903%2095.2185%20137.941%2095.345L138.354%2097.016L138.421%2097.1947C138.51%2097.4961%20138.804%2097.6115%20139.076%2097.4552L153.315%2089.2416C153.437%2089.1708%20153.549%2089.1597%20153.635%2089.1932L153.653%2089.2043C153.653%2089.2043%20153.661%2089.2043%20153.664%2089.2081H153.668C153.75%2089.2639%20153.802%2089.3718%20153.802%2089.5244H153.806Z'%20fill='%23272C3A'/%3e%3cpath%20opacity='0.4'%20d='M130.918%20119.938C130.918%20119.938%20130.903%20119.937%20130.895%20119.93L130.133%20119.487C130.051%20119.431%20129.999%20119.327%20129.999%20119.175V98.9959C129.999%2098.8359%20130.054%2098.6684%20130.144%2098.5121L130.881%2098.9401C130.791%2099.0964%20130.735%2099.2676%20130.735%2099.4239V119.666C130.735%20119.792%20130.814%20119.893%20130.914%20119.934L130.918%20119.938Z'%20fill='%23040506'/%3e%3cpath%20d='M156.176%2090.9051C156.176%2090.7525%20156.124%2090.6483%20156.043%2090.5925C156.043%2090.5925%20156.031%2090.5813%20156.009%2090.5739L155.298%2090.1571C155.209%2090.105%20155.086%2090.1161%20154.952%2090.1906L140.728%2098.393L140.315%2096.722C140.278%2096.5955%20140.203%2096.5061%20140.11%2096.4503L139.37%2096.0186C139.239%2095.9442%20139.076%2095.9405%20138.919%2096.0335L132.868%2099.5244C132.596%2099.6807%20132.377%20100.064%20132.377%20100.377V120.555C132.377%20120.704%20132.425%20120.812%20132.511%20120.868L133.274%20121.311C133.363%20121.355%20133.478%20121.344%20133.609%20121.27L155.7%20108.516C155.972%20108.36%20156.191%20107.976%20156.191%20107.664L156.184%2090.9014L156.176%2090.9051Z'%20fill='%23040506'/%3e%3cmask%20id='path-39-inside-3_8152_16965'%20fill='white'%3e%3cpath%20d='M140.095%2096.4429C139.969%2096.3722%20139.809%2096.3759%20139.656%2096.4615L133.605%2099.9524C133.471%20100.031%20133.348%20100.165%20133.259%20100.321L132.522%2099.8928C132.611%2099.7365%20132.734%2099.6025%20132.868%2099.5244L138.919%2096.0335C139.079%2095.9442%20139.243%2095.9479%20139.37%2096.0223L140.099%2096.4429H140.095Z'/%3e%3c/mask%3e%3cpath%20d='M140.095%2096.4429C139.969%2096.3722%20139.809%2096.3759%20139.656%2096.4615L133.605%2099.9524C133.471%20100.031%20133.348%20100.165%20133.259%20100.321L132.522%2099.8928C132.611%2099.7365%20132.734%2099.6025%20132.868%2099.5244L138.919%2096.0335C139.079%2095.9442%20139.243%2095.9479%20139.37%2096.0223L140.099%2096.4429H140.095Z'%20fill='%23040506'/%3e%3cpath%20d='M140.095%2096.4429L139.608%2097.3158L139.835%2097.4429H140.095V96.4429ZM139.656%2096.4615L139.167%2095.5893L139.157%2095.5953L139.656%2096.4615ZM133.605%2099.9524L133.105%2099.0862L133.101%2099.0886L133.605%2099.9524ZM133.259%20100.321L132.757%20101.186L133.627%20101.691L134.127%20100.817L133.259%20100.321ZM132.522%2099.8928L131.654%2099.3967L131.161%20100.259L132.02%20100.758L132.522%2099.8928ZM132.868%2099.5244L132.368%2098.6582L132.364%2098.6606L132.868%2099.5244ZM138.919%2096.0335L138.432%2095.1603L138.426%2095.1638L138.42%2095.1673L138.919%2096.0335ZM139.37%2096.0223L138.863%2096.8843L138.87%2096.8887L139.37%2096.0223ZM140.099%2096.4429V97.4429H143.836L140.599%2095.5766L140.099%2096.4429ZM140.583%2095.5699C140.106%2095.3033%20139.573%2095.3617%20139.167%2095.5894L140.146%2097.3336C140.045%2097.3901%20139.832%2097.4411%20139.608%2097.3158L140.583%2095.5699ZM139.157%2095.5953L133.105%2099.0862L134.105%20100.819L140.156%2097.3277L139.157%2095.5953ZM133.101%2099.0886C132.782%2099.2749%20132.545%2099.5539%20132.391%2099.8247L134.127%20100.817C134.131%20100.81%20134.135%20100.804%20134.139%20100.799C134.143%20100.794%20134.145%20100.791%20134.146%20100.79C134.147%20100.788%20134.146%20100.79%20134.14%20100.795C134.135%20100.799%20134.125%20100.807%20134.109%20100.816L133.101%2099.0886ZM133.761%2099.4561L133.024%2099.0281L132.02%20100.758L132.757%20101.186L133.761%2099.4561ZM133.39%20100.389C133.394%20100.382%20133.398%20100.376%20133.402%20100.371C133.406%20100.366%20133.408%20100.363%20133.409%20100.362C133.41%20100.36%20133.409%20100.362%20133.404%20100.367C133.398%20100.371%20133.388%20100.379%20133.372%20100.388L132.364%2098.6606C132.045%2098.8469%20131.808%2099.1259%20131.654%2099.3967L133.39%20100.389ZM133.368%20100.391L139.419%2096.8997L138.42%2095.1673L132.368%2098.6582L133.368%20100.391ZM139.407%2096.9067C139.354%2096.9364%20139.272%2096.9652%20139.169%2096.9665C139.066%2096.9677%20138.958%2096.9406%20138.863%2096.8843L139.877%2095.1604C139.414%2094.8881%20138.87%2094.9159%20138.432%2095.1603L139.407%2096.9067ZM138.87%2096.8887L139.6%2097.3092L140.599%2095.5766L139.869%2095.156L138.87%2096.8887ZM140.099%2095.4429H140.095V97.4429H140.099V95.4429Z'%20fill='%23161922'%20mask='url(%23path-39-inside-3_8152_16965)'/%3e%3cpath%20d='M156.005%2090.5739C155.92%2090.5367%20155.804%2090.5516%20155.682%2090.6223L141.446%2098.8359C141.175%2098.9922%20140.881%2098.8768%20140.791%2098.5754L140.724%2098.3967L154.948%2090.1943C155.027%2090.1496%20155.101%2090.1273%20155.168%2090.1273C155.216%2090.1273%20155.257%2090.1385%20155.295%2090.1608L156.005%2090.5776V90.5739Z'%20fill='%23040506'/%3e%3cpath%20d='M156.176%2090.9051L156.184%20107.664C156.184%20107.976%20155.964%20108.36%20155.693%20108.516L133.545%20121.303C133.352%20121.415%20133.11%20121.277%20133.11%20121.054V100.812C133.11%20100.656%20133.166%20100.481%20133.255%20100.328C133.344%20100.172%20133.471%20100.038%20133.601%2099.9598L139.652%2096.4652C139.809%2096.3796%20139.965%2096.3759%20140.095%2096.4466L140.107%2096.454C140.2%2096.5099%20140.274%2096.5992%20140.311%2096.7257L140.724%2098.3967L140.791%2098.5754C140.881%2098.8768%20141.175%2098.9922%20141.446%2098.8359L155.685%2090.6223C155.808%2090.5515%20155.92%2090.5404%20156.005%2090.5739L156.024%2090.585C156.024%2090.585%20156.031%2090.585%20156.035%2090.5888H156.039C156.121%2090.6446%20156.173%2090.7525%20156.173%2090.9051H156.176Z'%20fill='%23040506'/%3e%3cpath%20opacity='0.1'%20d='M156.176%2090.9051L156.184%20107.664C156.184%20107.976%20155.964%20108.36%20155.693%20108.516L133.545%20121.303C133.352%20121.415%20133.11%20121.277%20133.11%20121.054V100.812C133.11%20100.656%20133.166%20100.481%20133.255%20100.328C133.344%20100.172%20133.471%20100.038%20133.601%2099.9598L139.652%2096.4652C139.809%2096.3796%20139.965%2096.3759%20140.095%2096.4466L140.107%2096.454C140.2%2096.5099%20140.274%2096.5992%20140.311%2096.7257L140.724%2098.3967L140.791%2098.5754C140.881%2098.8768%20141.175%2098.9922%20141.446%2098.8359L155.685%2090.6223C155.808%2090.5515%20155.92%2090.5404%20156.005%2090.5739L156.024%2090.585C156.024%2090.585%20156.031%2090.585%20156.035%2090.5888H156.039C156.121%2090.6446%20156.173%2090.7525%20156.173%2090.9051H156.176Z'%20fill='%23272C3A'/%3e%3cpath%20opacity='0.3'%20d='M133.289%20121.318C133.289%20121.318%20133.274%20121.318%20133.266%20121.311L132.503%20120.868C132.421%20120.812%20132.369%20120.708%20132.369%20120.555V100.377C132.369%20100.22%20132.425%20100.049%20132.515%2099.8928L133.251%20100.321C133.162%20100.477%20133.106%20100.648%20133.106%20100.805V121.047C133.106%20121.173%20133.184%20121.274%20133.285%20121.314L133.289%20121.318Z'%20fill='%23040506'/%3e%3cpath%20d='M158.547%2092.2858C158.547%2092.1332%20158.495%2092.029%20158.413%2091.9732C158.413%2091.9732%20158.402%2091.962%20158.38%2091.9546L157.669%2091.5378C157.579%2091.4857%20157.457%2091.4968%20157.323%2091.5713L143.099%2099.7737L142.686%2098.1027C142.648%2097.9762%20142.574%2097.8869%20142.481%2097.831L141.74%2097.3993C141.61%2097.3249%20141.446%2097.3212%20141.29%2097.4142L135.239%20100.905C134.967%20101.061%20134.747%20101.445%20134.747%20101.757V121.936C134.747%20122.085%20134.796%20122.193%20134.881%20122.249L135.644%20122.691C135.734%20122.736%20135.849%20122.725%20135.979%20122.651L158.071%20109.897C158.342%20109.74%20158.562%20109.357%20158.562%20109.044L158.555%2092.2821L158.547%2092.2858Z'%20fill='%23040506'/%3e%3cg%20opacity='0.5'%3e%3cmask%20id='path-46-inside-4_8152_16965'%20fill='white'%3e%3cpath%20d='M142.466%2097.8236C142.339%2097.7529%20142.179%2097.7566%20142.027%2097.8422L135.975%20101.333C135.841%20101.411%20135.719%20101.545%20135.629%20101.701L134.892%20101.274C134.982%20101.117%20135.104%20100.983%20135.238%20100.905L141.29%2097.4142C141.45%2097.3249%20141.614%2097.3286%20141.74%2097.403L142.47%2097.8236H142.466Z'/%3e%3c/mask%3e%3cpath%20d='M142.466%2097.8236C142.339%2097.7529%20142.179%2097.7566%20142.027%2097.8422L135.975%20101.333C135.841%20101.411%20135.719%20101.545%20135.629%20101.701L134.892%20101.274C134.982%20101.117%20135.104%20100.983%20135.238%20100.905L141.29%2097.4142C141.45%2097.3249%20141.614%2097.3286%20141.74%2097.403L142.47%2097.8236H142.466Z'%20fill='%23272C3A'/%3e%3cpath%20d='M142.466%2097.8236L141.978%2098.6965L142.205%2098.8236H142.466V97.8236ZM142.027%2097.8422L141.537%2096.97L141.527%2096.976L142.027%2097.8422ZM135.975%20101.333L135.476%20100.467L135.471%20100.469L135.975%20101.333ZM135.629%20101.701L135.127%20102.566L135.998%20103.072L136.497%20102.198L135.629%20101.701ZM134.892%20101.274L134.024%20100.777L133.531%20101.64L134.39%20102.138L134.892%20101.274ZM135.238%20100.905L134.739%20100.039L134.735%20100.041L135.238%20100.905ZM141.29%2097.4142L140.802%2096.541L140.796%2096.5444L140.79%2096.548L141.29%2097.4142ZM141.74%2097.403L141.233%2098.265L141.241%2098.2694L141.74%2097.403ZM142.47%2097.8236V98.8236H146.206L142.969%2096.9572L142.47%2097.8236ZM142.954%2096.9506C142.476%2096.684%20141.943%2096.7424%20141.537%2096.97L142.516%2098.7143C142.415%2098.7708%20142.202%2098.8218%20141.978%2098.6965L142.954%2096.9506ZM141.527%2096.976L135.476%20100.467L136.475%20102.199L142.526%2098.7084L141.527%2096.976ZM135.471%20100.469C135.152%20100.656%20134.916%20100.935%20134.761%20101.205L136.497%20102.198C136.501%20102.191%20136.505%20102.185%20136.509%20102.179C136.513%20102.174%20136.516%20102.171%20136.517%20102.17C136.518%20102.169%20136.516%20102.171%20136.511%20102.175C136.506%20102.18%20136.495%20102.187%20136.479%20102.197L135.471%20100.469ZM136.131%20100.837L135.395%20100.409L134.39%20102.138L135.127%20102.566L136.131%20100.837ZM135.761%20101.77C135.765%20101.763%20135.769%20101.757%20135.772%20101.751C135.776%20101.746%20135.779%20101.743%20135.78%20101.742C135.781%20101.741%20135.779%20101.743%20135.774%20101.747C135.769%20101.752%20135.758%20101.759%20135.742%20101.769L134.735%20100.041C134.415%20100.228%20134.179%20100.507%20134.024%20100.777L135.761%20101.77ZM135.738%20101.771L141.789%2098.2804L140.79%2096.548L134.739%20100.039L135.738%20101.771ZM141.777%2098.2874C141.724%2098.3171%20141.643%2098.3459%20141.54%2098.3471C141.436%2098.3484%20141.329%2098.3212%20141.233%2098.265L142.247%2096.5411C141.784%2096.2688%20141.24%2096.2966%20140.802%2096.541L141.777%2098.2874ZM141.241%2098.2694L141.97%2098.6899L142.969%2096.9572L142.24%2096.5367L141.241%2098.2694ZM142.47%2096.8236H142.466V98.8236H142.47V96.8236Z'%20fill='%23161922'%20mask='url(%23path-46-inside-4_8152_16965)'/%3e%3c/g%3e%3cpath%20opacity='0.5'%20d='M158.376%2091.9546C158.29%2091.9174%20158.175%2091.9323%20158.052%2092.003L143.817%20100.217C143.545%20100.373%20143.251%20100.258%20143.162%2099.9561L143.095%2099.7774L157.319%2091.575C157.397%2091.5303%20157.472%2091.508%20157.539%2091.508C157.587%2091.508%20157.628%2091.5192%20157.665%2091.5415L158.376%2091.9583V91.9546Z'%20fill='%23272C3A'/%3e%3cpath%20d='M158.547%2092.2858L158.555%20109.044C158.555%20109.361%20158.335%20109.74%20158.063%20109.897L135.916%20122.684C135.722%20122.796%20135.48%20122.658%20135.48%20122.435V102.193C135.48%20102.036%20135.536%20101.862%20135.626%20101.709C135.715%20101.553%20135.841%20101.419%20135.972%20101.341L142.023%2097.8459C142.179%2097.7603%20142.336%2097.7566%20142.466%2097.8273L142.477%2097.8347C142.57%2097.8906%20142.645%2097.9799%20142.682%2098.1064L143.095%2099.7774L143.162%2099.9561C143.251%20100.258%20143.545%20100.373%20143.817%20100.217L158.056%2092.003C158.179%2091.9323%20158.294%2091.9211%20158.376%2091.9546L158.395%2091.9657C158.395%2091.9657%20158.402%2091.9658%20158.406%2091.9695H158.409C158.491%2092.0253%20158.543%2092.1332%20158.543%2092.2858H158.547Z'%20fill='%23161922'/%3e%3cpath%20opacity='0.2'%20d='M135.659%20122.699C135.659%20122.699%20135.644%20122.699%20135.637%20122.691L134.874%20122.249C134.792%20122.193%20134.74%20122.089%20134.74%20121.936V101.757C134.74%20101.601%20134.796%20101.43%20134.885%20101.274L135.622%20101.702C135.533%20101.858%20135.477%20102.029%20135.477%20102.185V122.427C135.477%20122.554%20135.555%20122.654%20135.656%20122.695L135.659%20122.699Z'%20fill='%23040506'/%3e%3cpath%20d='M137.282%20108.46L123.318%20100.403V115.814L137.282%20123.871V108.46Z'%20fill='%23161922'/%3e%3cpath%20d='M124.293%2099.837L123.318%20100.403L137.282%20108.46L138.257%20107.898L124.293%2099.837Z'%20fill='%23040506'/%3e%3cpath%20d='M136.999%20107.6L162.168%2093.0711L162.165%20110.559L136.999%20125.092V107.6Z'%20fill='%23272C3A'/%3e%3cpath%20d='M146.865%20104.869L151.145%20102.397C151.699%20102.077%20152.15%20102.223%20152.15%20102.725C152.15%20103.227%20151.699%20103.894%20151.145%20104.214L146.865%20106.685C146.31%20107.005%20145.86%20106.86%20145.86%20106.357C145.86%20105.855%20146.31%20105.189%20146.865%20104.869Z'%20fill='%23040506'/%3e%3cpath%20d='M136.999%20107.6L136.162%20107.116V124.604L136.999%20125.092V107.6Z'%20fill='%23040506'/%3e%3cpath%20d='M136.162%20107.116L161.327%2092.5872L162.168%2093.0711L136.999%20107.6L136.162%20107.116Z'%20fill='%23161922'/%3e%3cpath%20d='M83.616%20173.097V157.064L104.438%20145.044V161.073L83.616%20173.097Z'%20fill='%23272C3A'/%3e%3cpath%20d='M83.616%20157.064L57.5833%20142.036V158.066L83.616%20173.097V157.064Z'%20fill='%23161922'/%3e%3cpath%20d='M83.6161%20157.064L105.056%20144.679L78.4096%20129.29L56.9656%20141.675L83.6161%20157.064Z'%20fill='%23040506'/%3e%3cpath%20d='M83.616%20157.064V161.073L105.056%20148.694V144.679L83.616%20157.064Z'%20fill='%23272C3A'/%3e%3cpath%20opacity='0.2'%20d='M83.616%20161.073L104.438%20149.048V149.93L83.616%20161.955V161.073Z'%20fill='%23040506'/%3e%3cpath%20d='M56.9656%20141.675L83.6161%20157.064V161.073L56.9656%20145.687V141.675Z'%20fill='%23161922'/%3e%3cpath%20opacity='0.2'%20d='M83.616%20161.073L57.5833%20146.045V146.923L83.616%20161.955V161.073Z'%20fill='%23040506'/%3e%3cpath%20d='M90.4713%20159.502L97.5833%20155.393C97.8885%20155.215%2098.1378%20155.36%2098.1378%20155.713V159.919C98.1378%20160.272%2097.8885%20160.704%2097.5833%20160.879L90.4713%20164.988C90.1661%20165.166%2089.9167%20165.021%2089.9167%20164.668V160.462C89.9167%20160.109%2090.1661%20159.677%2090.4713%20159.502Z'%20fill='%23040506'/%3e%3cpath%20d='M90.9253%20159.978L97.1293%20156.398C97.334%20156.279%2097.4977%20156.376%2097.4977%20156.61V159.763C97.4977%20159.997%2097.3302%20160.287%2097.1293%20160.403L90.9253%20163.983C90.7206%20164.102%2090.5569%20164.005%2090.5569%20163.771V160.619C90.5569%20160.384%2090.7244%20160.098%2090.9253%20159.978Z'%20fill='%232F3546'/%3e%3cg%20opacity='0.5'%3e%3cpath%20d='M91.1003%20160.812C91.0705%20160.812%2091.0407%20160.797%2091.0221%20160.767C90.996%20160.723%2091.0109%20160.671%2091.0556%20160.645L96.9134%20157.265C96.9544%20157.239%2097.0102%20157.254%2097.0362%20157.299C97.0623%20157.344%2097.0474%20157.396%2097.0027%20157.422L91.1449%20160.801C91.1449%20160.801%2091.1151%20160.812%2091.1003%20160.812Z'%20fill='%23040506'/%3e%3cpath%20d='M91.1003%20161.586C91.0705%20161.586%2091.0407%20161.571%2091.0221%20161.542C90.996%20161.497%2091.0109%20161.445%2091.0556%20161.419L96.9134%20158.039C96.9544%20158.013%2097.0102%20158.028%2097.0362%20158.073C97.0623%20158.118%2097.0474%20158.17%2097.0027%20158.196L91.1449%20161.575C91.1449%20161.575%2091.1151%20161.586%2091.1003%20161.586Z'%20fill='%23040506'/%3e%3cpath%20d='M91.1003%20162.36C91.0705%20162.36%2091.0407%20162.345%2091.0221%20162.316C90.996%20162.271%2091.0109%20162.219%2091.0556%20162.193L96.9134%20158.814C96.9544%20158.788%2097.0102%20158.802%2097.0362%20158.847C97.0623%20158.892%2097.0474%20158.944%2097.0027%20158.97L91.1449%20162.349C91.1449%20162.349%2091.1151%20162.36%2091.1003%20162.36Z'%20fill='%23040506'/%3e%3cpath%20d='M91.1003%20163.134C91.0705%20163.134%2091.0407%20163.119%2091.0221%20163.09C90.996%20163.045%2091.0109%20162.993%2091.0556%20162.967L96.9134%20159.588C96.9544%20159.562%2097.0102%20159.576%2097.0362%20159.621C97.0623%20159.666%2097.0474%20159.718%2097.0027%20159.744L91.1449%20163.123C91.1449%20163.123%2091.1151%20163.134%2091.1003%20163.134Z'%20fill='%23040506'/%3e%3c/g%3e%3cpath%20opacity='0.1'%20d='M103.318%20143.674L83.6161%20155.051L58.7073%20140.663L58.0969%20141.024L83.6161%20155.706L103.929%20144.028L103.318%20143.674Z'%20fill='%23272C3A'/%3e%3cpath%20d='M83.616%20155.051V139.018L104.438%20126.997V143.026L83.616%20155.051Z'%20fill='%23272C3A'/%3e%3cpath%20d='M83.616%20139.018L57.5833%20123.99V140.019L83.616%20155.051V139.018Z'%20fill='%23161922'/%3e%3cpath%20d='M83.6161%20139.018L105.056%20126.633L78.4096%20111.244L56.9656%20123.629L83.6161%20139.018Z'%20fill='%23272C3A'/%3e%3cpath%20d='M83.616%20139.018V143.026L105.056%20130.648V126.633L83.616%20139.018Z'%20fill='%23272C3A'/%3e%3cpath%20opacity='0.2'%20d='M83.616%20143.026L104.438%20131.002V131.884L83.616%20143.908V143.026Z'%20fill='%23040506'/%3e%3cpath%20d='M56.9656%20123.629L83.6161%20139.018V143.026L56.9656%20127.641V123.629Z'%20fill='%23161922'/%3e%3cpath%20opacity='0.2'%20d='M83.616%20143.026L57.5833%20127.999V128.877L83.616%20143.908V143.026Z'%20fill='%23040506'/%3e%3cpath%20d='M90.4713%20141.456L97.5833%20137.347C97.8885%20137.169%2098.1378%20137.314%2098.1378%20137.667V141.873C98.1378%20142.226%2097.8885%20142.658%2097.5833%20142.833L90.4713%20146.942C90.1661%20147.12%2089.9167%20146.975%2089.9167%20146.622V142.416C89.9167%20142.063%2090.1661%20141.631%2090.4713%20141.456Z'%20fill='%23040506'/%3e%3cpath%20d='M90.9253%20141.932L97.1293%20138.352C97.334%20138.233%2097.4977%20138.33%2097.4977%20138.564V141.716C97.4977%20141.951%2097.3302%20142.241%2097.1293%20142.357L90.9253%20145.937C90.7206%20146.056%2090.5569%20145.959%2090.5569%20145.725V142.572C90.5569%20142.338%2090.7244%20142.051%2090.9253%20141.932Z'%20fill='%232F3546'/%3e%3cg%20opacity='0.5'%3e%3cpath%20d='M91.1003%20142.766C91.0705%20142.766%2091.0407%20142.751%2091.0221%20142.721C90.996%20142.677%2091.0109%20142.624%2091.0556%20142.598L96.9134%20139.219C96.9544%20139.193%2097.0102%20139.208%2097.0362%20139.253C97.0623%20139.297%2097.0474%20139.349%2097.0027%20139.376L91.1449%20142.755C91.1449%20142.755%2091.1151%20142.766%2091.1003%20142.766Z'%20fill='%23040506'/%3e%3cpath%20d='M91.1003%20143.54C91.0705%20143.54%2091.0407%20143.525%2091.0221%20143.495C90.996%20143.451%2091.0109%20143.399%2091.0556%20143.373L96.9134%20139.993C96.9544%20139.967%2097.0102%20139.982%2097.0362%20140.027C97.0623%20140.071%2097.0474%20140.124%2097.0027%20140.15L91.1449%20143.529C91.1449%20143.529%2091.1151%20143.54%2091.1003%20143.54Z'%20fill='%23040506'/%3e%3cpath%20d='M91.1003%20144.314C91.0705%20144.314%2091.0407%20144.299%2091.0221%20144.269C90.996%20144.225%2091.0109%20144.173%2091.0556%20144.147L96.9134%20140.767C96.9544%20140.741%2097.0102%20140.756%2097.0362%20140.801C97.0623%20140.846%2097.0474%20140.898%2097.0027%20140.924L91.1449%20144.303C91.1449%20144.303%2091.1151%20144.314%2091.1003%20144.314Z'%20fill='%23040506'/%3e%3cpath%20d='M91.1003%20145.088C91.0705%20145.088%2091.0407%20145.073%2091.0221%20145.044C90.996%20144.999%2091.0109%20144.947%2091.0556%20144.921L96.9134%20141.542C96.9544%20141.515%2097.0102%20141.53%2097.0362%20141.575C97.0623%20141.62%2097.0474%20141.672%2097.0027%20141.698L91.1449%20145.077C91.1449%20145.077%2091.1151%20145.088%2091.1003%20145.088Z'%20fill='%23040506'/%3e%3c/g%3e%3c/svg%3e`})),uH,Jxe=F((()=>{uH=`data:image/svg+xml,%3csvg%20viewBox='0%200%20200%20200'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M77.0793%2026.8668C77.6555%2028.5378%2079.1152%2029.959%2080.3252%2030.0551C81.5352%2030.1511%2082.0538%2028.8643%2081.4584%2027.1933C80.863%2025.5224%2079.4225%2024.1011%2078.2125%2024.005C77.0025%2023.909%2076.4839%2025.1958%2077.0793%2026.8668Z'%20fill='%231A2EB2'/%3e%3cpath%20d='M71.4823%2071.7511C73.0572%2076.2646%2077.0138%2080.1251%2080.2981%2080.3556C83.5824%2080.5861%2084.9652%2077.1289%2083.3903%2072.6154C81.8154%2068.1019%2077.8588%2064.2414%2074.5745%2064.0109C71.2902%2063.7804%2069.9074%2067.2376%2071.4823%2071.7511Z'%20fill='%23FAB404'/%3e%3cpath%20d='M43.3249%2090.7521C46.3403%2092.4999%2048.7795%2096.7253%2048.7795%20100.202C48.7795%20103.678%2046.3211%20105.08%2043.2865%20103.332C40.2711%20101.585%2037.8319%2097.3592%2037.8319%2093.8828C37.8319%2090.4064%2040.2903%2089.0043%2043.3249%2090.7521Z'%20fill='%23D4D8E2'/%3e%3cpath%20d='M93.4077%20153.253L128.272%20133.127C128.692%20132.885%20129.373%20132.885%20129.798%20133.127L155.224%20147.805C155.644%20148.047%20155.644%20148.441%20155.224%20148.683L120.36%20168.81C119.939%20169.052%20119.258%20169.052%20118.834%20168.81L93.4077%20154.132C92.9871%20153.89%2092.9871%20153.495%2093.4077%20153.253Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M83.6125%20176C83.1919%20176%2082.7825%20175.9%2082.4625%20175.713L54.0814%20159.323C53.6422%20159.07%2053.3892%20158.672%2053.3892%20158.229C53.3892%20157.786%2053.6422%20157.392%2054.0814%20157.135L77.0326%20143.879C77.3527%20143.693%2077.7583%20143.592%2078.1826%20143.592C78.6069%20143.592%2079.0125%20143.693%2079.3326%20143.879L107.714%20160.269C108.153%20160.522%20108.406%20160.92%20108.406%20161.363C108.406%20161.806%20108.153%20162.2%20107.714%20162.457L84.7624%20175.713C84.4424%20175.9%2084.0367%20176%2083.6125%20176Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M60.181%20148.319C60.181%20148.319%2060.5941%20142.881%2058.7333%20138.244C56.8762%20133.607%2053.7277%20130.336%2050.3857%20129.416C47.0436%20128.501%2043.7053%20131.099%2046.9283%20133.938C50.1512%20136.778%2056.1839%20140.198%2057.6242%20148.787L60.1847%20148.319H60.181Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M59.4515%20146.748C59.4515%20146.748%2059.4775%20146.748%2059.4887%20146.748C59.5892%20146.729%2059.6524%20146.633%2059.6338%20146.532C57.7358%20137.027%2051.6212%20132.04%2048.6513%20130.73C48.5583%20130.689%2048.4503%20130.73%2048.4094%20130.823C48.3685%20130.916%2048.4094%20131.024%2048.5024%20131.065C51.409%20132.345%2057.4046%20137.243%2059.2728%20146.599C59.2914%20146.685%2059.3659%20146.748%2059.4515%20146.748Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M44.6283%20144.336C44.7735%20144.954%2045.3392%20145.371%2045.8751%20145.717C46.4073%20146.06%2046.9916%20146.432%2047.2037%20147.031C47.6279%20148.24%2046.2956%20149.577%2046.772%20150.767C46.9729%20151.266%2047.4568%20151.601%2047.9592%20151.795C48.376%20151.958%2048.8151%20152.04%2049.2469%20152.163C49.459%20152.2%2049.6711%20152.223%2049.8795%20152.234C50.4973%20152.26%2051.156%20152.357%2051.6473%20152.77C52.4214%20153.421%2052.4772%20154.567%2052.8419%20155.512C53.2811%20156.644%2054.271%20157.518%2055.4099%20157.902C56.37%20158.218%2057.8847%20158.281%2058.2197%20157.894C58.4765%20157.6%2058.0894%20156.495%2058.1527%20156.108C58.309%20155.122%2058.3723%20154.117%2058.3388%20153.119C58.3239%20152.632%2058.309%20152.237%2058.4058%20151.757C58.5063%20151.255%2058.603%20150.753%2058.6923%20150.25C58.8375%20149.439%2059.1054%20148.572%2058.9082%20147.742C58.6886%20146.83%2057.747%20146.633%2057.5498%20145.74C57.4679%20145.382%2057.4605%20145.018%2057.386%20144.66C57.159%20143.607%2056.2919%20142.718%2055.2461%20142.464C53.616%20142.066%2051.8818%20143.119%2050.2591%20142.68C49.8386%20142.565%2049.4478%20142.357%2049.0422%20142.2C47.7545%20141.694%2046.1393%20141.78%2045.1754%20142.766C44.7735%20143.179%2044.5018%20143.771%2044.632%20144.333L44.6283%20144.336Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M57.8774%20155.308C57.8774%20155.308%2057.8849%20155.308%2057.8886%20155.308C57.9667%20155.304%2058.0263%20155.233%2058.0226%20155.155C57.3787%20146.179%2048.6143%20143.224%2046.4781%20142.974C46.3999%20142.967%2046.3292%20143.023%2046.318%20143.101C46.3106%20143.179%2046.3664%20143.25%2046.4446%20143.261C48.5324%20143.507%2057.1033%20146.395%2057.736%20155.178C57.7397%20155.252%2057.803%20155.312%2057.8774%20155.312V155.308Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M48.7071%20149.067C48.7369%20149.067%2048.7629%20149.059%2048.789%20149.041C48.815%20149.022%2051.543%20147.198%2055.2423%20148.486C55.3167%20148.512%2055.3986%20148.471%2055.4246%20148.397C55.4507%20148.322%2055.4098%20148.24%2055.3353%20148.214C51.4909%20146.878%2048.655%20148.784%2048.6252%20148.802C48.5583%20148.847%2048.5434%20148.936%2048.588%20149C48.6141%20149.041%2048.6587%20149.063%2048.7034%20149.063L48.7071%20149.067Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M119.593%20165.896L97.572%20153.179V84.1653L119.593%2096.8783V165.896Z'%20fill='%23D4D8E2'/%3e%3cpath%20d='M119.593%2096.8783L151.052%2078.7168V147.731L119.593%20165.896V96.8783Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M151.052%2078.7168L119.593%2096.8783L97.572%2084.1652L129.031%2066L151.052%2078.7168Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M122.741%20141.608L147.907%20127.079V144.571L148.484%20144.902L123.318%20159.435L122.741%20159.1V141.608Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M123.318%20141.943L148.488%20127.414L148.484%20144.902L123.318%20159.435V141.943Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M133.184%20139.212L137.464%20136.741C138.019%20136.421%20138.469%20136.566%20138.469%20137.068C138.469%20137.57%20138.019%20138.237%20137.464%20138.557L133.184%20141.028C132.63%20141.348%20132.179%20141.203%20132.179%20140.7C132.179%20140.198%20132.63%20139.532%20133.184%20139.212Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M122.741%20120.488L147.907%20105.959V123.451L148.484%20123.786L123.318%20138.315L122.741%20137.98V120.488Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M123.318%20120.823L148.488%20106.294L148.484%20123.786L123.318%20138.315V120.823Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M133.184%20118.092L137.464%20115.62C138.019%20115.3%20138.469%20115.445%20138.469%20115.948C138.469%20116.45%20138.019%20117.116%20137.464%20117.437L133.184%20119.908C132.63%20120.228%20132.179%20120.083%20132.179%20119.58C132.179%20119.078%20132.63%20118.412%20133.184%20118.092Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M122.741%2099.368L147.907%2084.8388V102.327L122.741%20116.856V99.368Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M160.49%2095.0622L146.526%2087.0049V102.412L160.49%20110.47V95.0622Z'%20fill='%23B9BED0'/%3e%3cg%20opacity='0.1'%3e%3cpath%20d='M160.49%2095.0622L146.526%2087.0049V102.412L160.49%20110.47V95.0622Z'%20fill='%23B9BED0'/%3e%3c/g%3e%3cpath%20d='M147.501%2086.4392L146.526%2087.0011L160.49%2095.0622L161.465%2094.4965L147.501%2086.4392Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M151.435%2088.14C151.435%2087.9874%20151.383%2087.8832%20151.301%2087.8274C151.301%2087.8274%20151.29%2087.8162%20151.268%2087.8087L150.557%2087.3919C150.468%2087.3398%20150.345%2087.351%20150.211%2087.4254L135.987%2095.6279L135.574%2093.9569C135.537%2093.8303%20135.462%2093.741%20135.369%2093.6852L134.628%2093.2535C134.498%2093.179%20134.334%2093.1753%20134.178%2093.2684L128.127%2096.7592C127.855%2096.9156%20127.635%2097.2989%20127.635%2097.6115V117.79C127.635%20117.939%20127.684%20118.047%20127.769%20118.103L128.532%20118.546C128.622%20118.59%20128.737%20118.579%20128.867%20118.505L150.959%20105.751C151.231%20105.594%20151.45%20105.211%20151.45%20104.898L151.443%2088.1362L151.435%2088.14Z'%20fill='%23B9BED0'/%3e%3cg%20opacity='0.2'%3e%3cmask%20id='path-25-inside-1_8152_16965'%20fill='white'%3e%3cpath%20d='M135.354%2093.6814C135.227%2093.6107%20135.067%2093.6145%20134.915%2093.7001L128.864%2097.1909C128.73%2097.2691%20128.607%2097.4031%20128.517%2097.5594L127.781%2097.1314C127.87%2096.9751%20127.993%2096.8411%20128.127%2096.7629L134.178%2093.2721C134.338%2093.1828%20134.502%2093.1865%20134.628%2093.2609L135.358%2093.6814H135.354Z'/%3e%3c/mask%3e%3cpath%20d='M135.354%2093.6814C135.227%2093.6107%20135.067%2093.6145%20134.915%2093.7001L128.864%2097.1909C128.73%2097.2691%20128.607%2097.4031%20128.517%2097.5594L127.781%2097.1314C127.87%2096.9751%20127.993%2096.8411%20128.127%2096.7629L134.178%2093.2721C134.338%2093.1828%20134.502%2093.1865%20134.628%2093.2609L135.358%2093.6814H135.354Z'%20fill='%23D4D8E2'/%3e%3cpath%20d='M135.354%2093.6814L134.866%2094.5544L135.094%2094.6814H135.354V93.6814ZM134.915%2093.7001L134.426%2092.8278L134.415%2092.8339L134.915%2093.7001ZM128.864%2097.1909L128.364%2096.3247L128.36%2096.3272L128.864%2097.1909ZM128.517%2097.5594L128.015%2098.4241L128.886%2098.9299L129.386%2098.0555L128.517%2097.5594ZM127.781%2097.1314L126.912%2096.6353L126.42%2097.4974L127.278%2097.9961L127.781%2097.1314ZM128.127%2096.7629L127.627%2095.8967L127.623%2095.8992L128.127%2096.7629ZM134.178%2093.2721L133.691%2092.3989L133.684%2092.4023L133.678%2092.4059L134.178%2093.2721ZM134.628%2093.2609L134.121%2094.1229L134.129%2094.1272L134.628%2093.2609ZM135.358%2093.6814V94.6814H139.094L135.857%2092.8151L135.358%2093.6814ZM135.842%2092.8085C135.365%2092.5418%20134.831%2092.6002%20134.426%2092.8279L135.404%2094.5722C135.303%2094.6287%20135.09%2094.6796%20134.866%2094.5544L135.842%2092.8085ZM134.415%2092.8339L128.364%2096.3247L129.363%2098.0571L135.415%2094.5663L134.415%2092.8339ZM128.36%2096.3272C128.04%2096.5134%20127.804%2096.7925%20127.649%2097.0632L129.386%2098.0555C129.39%2098.0486%20129.394%2098.0424%20129.397%2098.0374C129.401%2098.0323%20129.404%2098.0293%20129.405%2098.0282C129.406%2098.027%20129.404%2098.029%20129.399%2098.0333C129.394%2098.0375%20129.384%2098.0453%20129.367%2098.0547L128.36%2096.3272ZM129.02%2096.6946L128.283%2096.2667L127.278%2097.9961L128.015%2098.4241L129.02%2096.6946ZM128.649%2097.6275C128.653%2097.6206%20128.657%2097.6144%20128.66%2097.6094C128.664%2097.6043%20128.667%2097.6013%20128.668%2097.6002C128.669%2097.599%20128.667%2097.601%20128.662%2097.6053C128.657%2097.6095%20128.647%2097.6173%20128.63%2097.6267L127.623%2095.8992C127.303%2096.0855%20127.067%2096.3645%20126.912%2096.6353L128.649%2097.6275ZM128.626%2097.6292L134.678%2094.1383L133.678%2092.4059L127.627%2095.8967L128.626%2097.6292ZM134.665%2094.1453C134.612%2094.1749%20134.531%2094.2038%20134.428%2094.205C134.324%2094.2063%20134.217%2094.1791%20134.121%2094.1228L135.135%2092.399C134.672%2092.1266%20134.128%2092.1545%20133.691%2092.3989L134.665%2094.1453ZM134.129%2094.1272L134.858%2094.5478L135.857%2092.8151L135.128%2092.3946L134.129%2094.1272ZM135.358%2092.6814H135.354V94.6814H135.358V92.6814Z'%20fill='%23D4D8E2'%20mask='url(%23path-25-inside-1_8152_16965)'/%3e%3c/g%3e%3cpath%20opacity='0.2'%20d='M151.264%2087.8087C151.179%2087.7715%20151.063%2087.7864%20150.94%2087.8571L136.705%2096.0707C136.433%2096.2271%20136.139%2096.1117%20136.05%2095.8102L135.983%2095.6316L150.207%2087.4291C150.285%2087.3845%20150.36%2087.3622%20150.427%2087.3622C150.475%2087.3622%20150.516%2087.3733%20150.553%2087.3956L151.264%2087.8125V87.8087Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M151.435%2088.14L151.443%20104.898C151.443%20105.211%20151.223%20105.594%20150.951%20105.751L128.804%20118.534C128.611%20118.646%20128.369%20118.508%20128.369%20118.285V98.0432C128.369%2097.8869%20128.424%2097.712%20128.514%2097.5594C128.603%2097.4031%20128.73%2097.2691%20128.86%2097.191L134.911%2093.6963C135.068%2093.6108%20135.224%2093.607%20135.354%2093.6777L135.365%2093.6852C135.458%2093.741%20135.533%2093.8303%20135.57%2093.9569L135.983%2095.6279L136.05%2095.8065C136.139%2096.108%20136.433%2096.2233%20136.705%2096.067L150.944%2087.8534C151.067%2087.7827%20151.178%2087.7715%20151.264%2087.805L151.283%2087.8162C151.283%2087.8162%20151.29%2087.8162%20151.294%2087.8199H151.298C151.379%2087.8757%20151.432%2087.9837%20151.432%2088.1362L151.435%2088.14Z'%20fill='%23B9BED0'/%3e%3cpath%20opacity='0.3'%20d='M151.435%2088.14L151.443%20104.898C151.443%20105.211%20151.223%20105.594%20150.951%20105.751L128.804%20118.534C128.611%20118.646%20128.369%20118.508%20128.369%20118.285V98.0432C128.369%2097.8869%20128.424%2097.712%20128.514%2097.5594C128.603%2097.4031%20128.73%2097.2691%20128.86%2097.191L134.911%2093.6963C135.068%2093.6108%20135.224%2093.607%20135.354%2093.6777L135.365%2093.6852C135.458%2093.741%20135.533%2093.8303%20135.57%2093.9569L135.983%2095.6279L136.05%2095.8065C136.139%2096.108%20136.433%2096.2233%20136.705%2096.067L150.944%2087.8534C151.067%2087.7827%20151.178%2087.7715%20151.264%2087.805L151.283%2087.8162C151.283%2087.8162%20151.29%2087.8162%20151.294%2087.8199H151.298C151.379%2087.8757%20151.432%2087.9837%20151.432%2088.1362L151.435%2088.14Z'%20fill='%23EDEEF3'/%3e%3cpath%20opacity='0.5'%20d='M128.547%20118.553C128.547%20118.553%20128.532%20118.553%20128.525%20118.546L127.762%20118.103C127.68%20118.047%20127.628%20117.943%20127.628%20117.79V97.6115C127.628%2097.4514%20127.684%2097.284%20127.773%2097.1277L128.51%2097.5556C128.421%2097.712%20128.365%2097.8831%20128.365%2098.0395V118.281C128.365%20118.408%20128.443%20118.508%20128.543%20118.549L128.547%20118.553Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M153.806%2089.5207C153.806%2089.3681%20153.754%2089.2639%20153.672%2089.2081C153.672%2089.2081%20153.661%2089.1969%20153.638%2089.1895L152.928%2088.7726C152.838%2088.7243%20152.715%2088.7317%20152.581%2088.8099L138.357%2097.0123L137.944%2095.3413C137.907%2095.2148%20137.833%2095.1254%20137.74%2095.0696L136.999%2094.6379C136.869%2094.5635%20136.705%2094.5598%20136.549%2094.6528L130.497%2098.1437C130.226%2098.3%20130.006%2098.6833%20130.006%2098.9959V119.175C130.006%20119.323%20130.054%20119.431%20130.14%20119.487L130.903%20119.93C130.992%20119.975%20131.108%20119.964%20131.238%20119.889L153.33%20107.135C153.601%20106.979%20153.821%20106.595%20153.821%20106.283L153.813%2089.5207H153.806Z'%20fill='%23B9BED0'/%3e%3cg%20opacity='0.1'%3e%3cmask%20id='path-32-inside-2_8152_16965'%20fill='white'%3e%3cpath%20d='M137.725%2095.0622C137.598%2094.9915%20137.438%2094.9952%20137.285%2095.0808L131.234%2098.5717C131.1%2098.6498%20130.977%2098.7838%20130.888%2098.9401L130.151%2098.5121C130.24%2098.3558%20130.363%2098.2218%20130.497%2098.1437L136.549%2094.6528C136.709%2094.5635%20136.872%2094.5672%20136.999%2094.6416L137.728%2095.0622H137.725Z'/%3e%3c/mask%3e%3cpath%20d='M137.725%2095.0622C137.598%2094.9915%20137.438%2094.9952%20137.285%2095.0808L131.234%2098.5717C131.1%2098.6498%20130.977%2098.7838%20130.888%2098.9401L130.151%2098.5121C130.24%2098.3558%20130.363%2098.2218%20130.497%2098.1437L136.549%2094.6528C136.709%2094.5635%20136.872%2094.5672%20136.999%2094.6416L137.728%2095.0622H137.725Z'%20fill='%23D4D8E2'/%3e%3cpath%20d='M137.725%2095.0622L137.237%2095.9351L137.464%2096.0622H137.725V95.0622ZM137.285%2095.0808L136.796%2094.2086L136.786%2094.2146L137.285%2095.0808ZM131.234%2098.5717L130.734%2097.7055L130.73%2097.7079L131.234%2098.5717ZM130.888%2098.9401L130.386%2099.8048L131.257%20100.311L131.756%2099.4363L130.888%2098.9401ZM130.151%2098.5121L129.283%2098.016L128.79%2098.8781L129.649%2099.3769L130.151%2098.5121ZM130.497%2098.1437L129.998%2097.2775L129.993%2097.2799L130.497%2098.1437ZM136.549%2094.6528L136.061%2093.7796L136.055%2093.7831L136.049%2093.7866L136.549%2094.6528ZM136.999%2094.6416L136.492%2095.5036L136.499%2095.508L136.999%2094.6416ZM137.728%2095.0622V96.0622H141.465L138.228%2094.1959L137.728%2095.0622ZM138.212%2094.1892C137.735%2093.9226%20137.202%2093.981%20136.796%2094.2086L137.775%2095.9529C137.674%2096.0094%20137.461%2096.0604%20137.237%2095.9351L138.212%2094.1892ZM136.786%2094.2146L130.734%2097.7055L131.734%2099.4379L137.785%2095.947L136.786%2094.2146ZM130.73%2097.7079C130.411%2097.8942%20130.174%2098.1732%20130.02%2098.444L131.756%2099.4363C131.76%2099.4293%20131.764%2099.4232%20131.768%2099.4181C131.772%2099.413%20131.774%2099.41%20131.775%2099.4089C131.776%2099.4078%20131.775%2099.4097%20131.77%2099.414C131.764%2099.4182%20131.754%2099.426%20131.738%2099.4355L130.73%2097.7079ZM131.39%2098.0754L130.653%2097.6474L129.649%2099.3769L130.386%2099.8048L131.39%2098.0754ZM131.019%2099.0083C131.023%2099.0013%20131.027%2098.9952%20131.031%2098.9901C131.035%2098.985%20131.037%2098.982%20131.038%2098.9809C131.04%2098.9798%20131.038%2098.9818%20131.033%2098.986C131.028%2098.9902%20131.017%2098.998%20131.001%2099.0075L129.993%2097.2799C129.674%2097.4662%20129.438%2097.7452%20129.283%2098.016L131.019%2099.0083ZM130.997%2099.0099L137.048%2095.519L136.049%2093.7866L129.998%2097.2775L130.997%2099.0099ZM137.036%2095.526C136.983%2095.5557%20136.902%2095.5845%20136.798%2095.5857C136.695%2095.587%20136.588%2095.5598%20136.492%2095.5036L137.506%2093.7797C137.043%2093.5074%20136.499%2093.5352%20136.061%2093.7796L137.036%2095.526ZM136.499%2095.508L137.229%2095.9285L138.228%2094.1959L137.498%2093.7753L136.499%2095.508ZM137.728%2094.0622H137.725V96.0622H137.728V94.0622Z'%20fill='%23D4D8E2'%20mask='url(%23path-32-inside-2_8152_16965)'/%3e%3c/g%3e%3cpath%20opacity='0.1'%20d='M153.634%2089.1895C153.549%2089.1522%20153.434%2089.1671%20153.311%2089.2378L139.076%2097.4515C138.804%2097.6078%20138.51%2097.4924%20138.421%2097.1909L138.354%2097.0123L152.578%2088.8099C152.656%2088.7652%20152.73%2088.7429%20152.797%2088.7429C152.846%2088.7429%20152.886%2088.754%20152.924%2088.7764L153.634%2089.1932V89.1895Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M153.806%2089.5244L153.813%20106.283C153.813%20106.595%20153.594%20106.979%20153.322%20107.135L131.175%20119.923C130.981%20120.034%20130.739%20119.893%20130.739%20119.673V99.4314C130.739%2099.275%20130.795%2099.1001%20130.884%2098.9475C130.974%2098.7912%20131.1%2098.6573%20131.231%2098.5791L137.282%2095.0845C137.438%2094.9989%20137.594%2094.9952%20137.725%2095.0659L137.736%2095.0733C137.829%2095.1292%20137.903%2095.2185%20137.941%2095.345L138.354%2097.016L138.421%2097.1947C138.51%2097.4961%20138.804%2097.6115%20139.076%2097.4552L153.315%2089.2416C153.437%2089.1708%20153.549%2089.1597%20153.635%2089.1932L153.653%2089.2043C153.653%2089.2043%20153.661%2089.2043%20153.664%2089.2081H153.668C153.75%2089.2639%20153.802%2089.3718%20153.802%2089.5244H153.806Z'%20fill='%23B9BED0'/%3e%3cpath%20opacity='0.2'%20d='M153.806%2089.5244L153.813%20106.283C153.813%20106.595%20153.594%20106.979%20153.322%20107.135L131.175%20119.923C130.981%20120.034%20130.739%20119.893%20130.739%20119.673V99.4314C130.739%2099.275%20130.795%2099.1001%20130.884%2098.9475C130.974%2098.7912%20131.1%2098.6573%20131.231%2098.5791L137.282%2095.0845C137.438%2094.9989%20137.594%2094.9952%20137.725%2095.0659L137.736%2095.0733C137.829%2095.1292%20137.903%2095.2185%20137.941%2095.345L138.354%2097.016L138.421%2097.1947C138.51%2097.4961%20138.804%2097.6115%20139.076%2097.4552L153.315%2089.2416C153.437%2089.1708%20153.549%2089.1597%20153.635%2089.1932L153.653%2089.2043C153.653%2089.2043%20153.661%2089.2043%20153.664%2089.2081H153.668C153.75%2089.2639%20153.802%2089.3718%20153.802%2089.5244H153.806Z'%20fill='%23EDEEF3'/%3e%3cpath%20opacity='0.4'%20d='M130.918%20119.938C130.918%20119.938%20130.903%20119.937%20130.895%20119.93L130.133%20119.487C130.051%20119.431%20129.999%20119.327%20129.999%20119.175V98.9959C129.999%2098.8359%20130.054%2098.6684%20130.144%2098.5121L130.881%2098.9401C130.791%2099.0964%20130.735%2099.2676%20130.735%2099.4239V119.666C130.735%20119.792%20130.814%20119.893%20130.914%20119.934L130.918%20119.938Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M156.176%2090.9051C156.176%2090.7525%20156.124%2090.6483%20156.043%2090.5925C156.043%2090.5925%20156.031%2090.5813%20156.009%2090.5739L155.298%2090.1571C155.209%2090.105%20155.086%2090.1161%20154.952%2090.1906L140.728%2098.393L140.315%2096.722C140.278%2096.5955%20140.203%2096.5061%20140.11%2096.4503L139.37%2096.0186C139.239%2095.9442%20139.076%2095.9405%20138.919%2096.0335L132.868%2099.5244C132.596%2099.6807%20132.377%20100.064%20132.377%20100.377V120.555C132.377%20120.704%20132.425%20120.812%20132.511%20120.868L133.274%20121.311C133.363%20121.355%20133.478%20121.344%20133.609%20121.27L155.7%20108.516C155.972%20108.36%20156.191%20107.976%20156.191%20107.664L156.184%2090.9014L156.176%2090.9051Z'%20fill='%23B9BED0'/%3e%3cmask%20id='path-39-inside-3_8152_16965'%20fill='white'%3e%3cpath%20d='M140.095%2096.4429C139.969%2096.3722%20139.809%2096.3759%20139.656%2096.4615L133.605%2099.9524C133.471%20100.031%20133.348%20100.165%20133.259%20100.321L132.522%2099.8928C132.611%2099.7365%20132.734%2099.6025%20132.868%2099.5244L138.919%2096.0335C139.079%2095.9442%20139.243%2095.9479%20139.37%2096.0223L140.099%2096.4429H140.095Z'/%3e%3c/mask%3e%3cpath%20d='M140.095%2096.4429C139.969%2096.3722%20139.809%2096.3759%20139.656%2096.4615L133.605%2099.9524C133.471%20100.031%20133.348%20100.165%20133.259%20100.321L132.522%2099.8928C132.611%2099.7365%20132.734%2099.6025%20132.868%2099.5244L138.919%2096.0335C139.079%2095.9442%20139.243%2095.9479%20139.37%2096.0223L140.099%2096.4429H140.095Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M140.095%2096.4429L139.608%2097.3158L139.835%2097.4429H140.095V96.4429ZM139.656%2096.4615L139.167%2095.5893L139.157%2095.5953L139.656%2096.4615ZM133.605%2099.9524L133.105%2099.0862L133.101%2099.0886L133.605%2099.9524ZM133.259%20100.321L132.757%20101.186L133.627%20101.691L134.127%20100.817L133.259%20100.321ZM132.522%2099.8928L131.654%2099.3967L131.161%20100.259L132.02%20100.758L132.522%2099.8928ZM132.868%2099.5244L132.368%2098.6582L132.364%2098.6606L132.868%2099.5244ZM138.919%2096.0335L138.432%2095.1603L138.426%2095.1638L138.42%2095.1673L138.919%2096.0335ZM139.37%2096.0223L138.863%2096.8843L138.87%2096.8887L139.37%2096.0223ZM140.099%2096.4429V97.4429H143.836L140.599%2095.5766L140.099%2096.4429ZM140.583%2095.5699C140.106%2095.3033%20139.573%2095.3617%20139.167%2095.5894L140.146%2097.3336C140.045%2097.3901%20139.832%2097.4411%20139.608%2097.3158L140.583%2095.5699ZM139.157%2095.5953L133.105%2099.0862L134.105%20100.819L140.156%2097.3277L139.157%2095.5953ZM133.101%2099.0886C132.782%2099.2749%20132.545%2099.5539%20132.391%2099.8247L134.127%20100.817C134.131%20100.81%20134.135%20100.804%20134.139%20100.799C134.143%20100.794%20134.145%20100.791%20134.146%20100.79C134.147%20100.788%20134.146%20100.79%20134.14%20100.795C134.135%20100.799%20134.125%20100.807%20134.109%20100.816L133.101%2099.0886ZM133.761%2099.4561L133.024%2099.0281L132.02%20100.758L132.757%20101.186L133.761%2099.4561ZM133.39%20100.389C133.394%20100.382%20133.398%20100.376%20133.402%20100.371C133.406%20100.366%20133.408%20100.363%20133.409%20100.362C133.41%20100.36%20133.409%20100.362%20133.404%20100.367C133.398%20100.371%20133.388%20100.379%20133.372%20100.388L132.364%2098.6606C132.045%2098.8469%20131.808%2099.1259%20131.654%2099.3967L133.39%20100.389ZM133.368%20100.391L139.419%2096.8997L138.42%2095.1673L132.368%2098.6582L133.368%20100.391ZM139.407%2096.9067C139.354%2096.9364%20139.272%2096.9652%20139.169%2096.9665C139.066%2096.9677%20138.958%2096.9406%20138.863%2096.8843L139.877%2095.1604C139.414%2094.8881%20138.87%2094.9159%20138.432%2095.1603L139.407%2096.9067ZM138.87%2096.8887L139.6%2097.3092L140.599%2095.5766L139.869%2095.156L138.87%2096.8887ZM140.099%2095.4429H140.095V97.4429H140.099V95.4429Z'%20fill='%23D4D8E2'%20mask='url(%23path-39-inside-3_8152_16965)'/%3e%3cpath%20d='M156.005%2090.5739C155.92%2090.5367%20155.804%2090.5516%20155.682%2090.6223L141.446%2098.8359C141.175%2098.9922%20140.881%2098.8768%20140.791%2098.5754L140.724%2098.3967L154.948%2090.1943C155.027%2090.1496%20155.101%2090.1273%20155.168%2090.1273C155.216%2090.1273%20155.257%2090.1385%20155.295%2090.1608L156.005%2090.5776V90.5739Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M156.176%2090.9051L156.184%20107.664C156.184%20107.976%20155.964%20108.36%20155.693%20108.516L133.545%20121.303C133.352%20121.415%20133.11%20121.277%20133.11%20121.054V100.812C133.11%20100.656%20133.166%20100.481%20133.255%20100.328C133.344%20100.172%20133.471%20100.038%20133.601%2099.9598L139.652%2096.4652C139.809%2096.3796%20139.965%2096.3759%20140.095%2096.4466L140.107%2096.454C140.2%2096.5099%20140.274%2096.5992%20140.311%2096.7257L140.724%2098.3967L140.791%2098.5754C140.881%2098.8768%20141.175%2098.9922%20141.446%2098.8359L155.685%2090.6223C155.808%2090.5515%20155.92%2090.5404%20156.005%2090.5739L156.024%2090.585C156.024%2090.585%20156.031%2090.585%20156.035%2090.5888H156.039C156.121%2090.6446%20156.173%2090.7525%20156.173%2090.9051H156.176Z'%20fill='%23B9BED0'/%3e%3cpath%20opacity='0.1'%20d='M156.176%2090.9051L156.184%20107.664C156.184%20107.976%20155.964%20108.36%20155.693%20108.516L133.545%20121.303C133.352%20121.415%20133.11%20121.277%20133.11%20121.054V100.812C133.11%20100.656%20133.166%20100.481%20133.255%20100.328C133.344%20100.172%20133.471%20100.038%20133.601%2099.9598L139.652%2096.4652C139.809%2096.3796%20139.965%2096.3759%20140.095%2096.4466L140.107%2096.454C140.2%2096.5099%20140.274%2096.5992%20140.311%2096.7257L140.724%2098.3967L140.791%2098.5754C140.881%2098.8768%20141.175%2098.9922%20141.446%2098.8359L155.685%2090.6223C155.808%2090.5515%20155.92%2090.5404%20156.005%2090.5739L156.024%2090.585C156.024%2090.585%20156.031%2090.585%20156.035%2090.5888H156.039C156.121%2090.6446%20156.173%2090.7525%20156.173%2090.9051H156.176Z'%20fill='%23EDEEF3'/%3e%3cpath%20opacity='0.3'%20d='M133.289%20121.318C133.289%20121.318%20133.274%20121.318%20133.266%20121.311L132.503%20120.868C132.421%20120.812%20132.369%20120.708%20132.369%20120.555V100.377C132.369%20100.22%20132.425%20100.049%20132.515%2099.8928L133.251%20100.321C133.162%20100.477%20133.106%20100.648%20133.106%20100.805V121.047C133.106%20121.173%20133.184%20121.274%20133.285%20121.314L133.289%20121.318Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M158.547%2092.2858C158.547%2092.1332%20158.495%2092.029%20158.413%2091.9732C158.413%2091.9732%20158.402%2091.962%20158.38%2091.9546L157.669%2091.5378C157.579%2091.4857%20157.457%2091.4968%20157.323%2091.5713L143.099%2099.7737L142.686%2098.1027C142.648%2097.9762%20142.574%2097.8869%20142.481%2097.831L141.74%2097.3993C141.61%2097.3249%20141.446%2097.3212%20141.29%2097.4142L135.239%20100.905C134.967%20101.061%20134.747%20101.445%20134.747%20101.757V121.936C134.747%20122.085%20134.796%20122.193%20134.881%20122.249L135.644%20122.691C135.734%20122.736%20135.849%20122.725%20135.979%20122.651L158.071%20109.897C158.342%20109.74%20158.562%20109.357%20158.562%20109.044L158.555%2092.2821L158.547%2092.2858Z'%20fill='%23B9BED0'/%3e%3cg%20opacity='0.5'%3e%3cmask%20id='path-46-inside-4_8152_16965'%20fill='white'%3e%3cpath%20d='M142.466%2097.8236C142.339%2097.7529%20142.179%2097.7566%20142.027%2097.8422L135.975%20101.333C135.841%20101.411%20135.719%20101.545%20135.629%20101.701L134.892%20101.274C134.982%20101.117%20135.104%20100.983%20135.238%20100.905L141.29%2097.4142C141.45%2097.3249%20141.614%2097.3286%20141.74%2097.403L142.47%2097.8236H142.466Z'/%3e%3c/mask%3e%3cpath%20d='M142.466%2097.8236C142.339%2097.7529%20142.179%2097.7566%20142.027%2097.8422L135.975%20101.333C135.841%20101.411%20135.719%20101.545%20135.629%20101.701L134.892%20101.274C134.982%20101.117%20135.104%20100.983%20135.238%20100.905L141.29%2097.4142C141.45%2097.3249%20141.614%2097.3286%20141.74%2097.403L142.47%2097.8236H142.466Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M142.466%2097.8236L141.978%2098.6965L142.205%2098.8236H142.466V97.8236ZM142.027%2097.8422L141.537%2096.97L141.527%2096.976L142.027%2097.8422ZM135.975%20101.333L135.476%20100.467L135.471%20100.469L135.975%20101.333ZM135.629%20101.701L135.127%20102.566L135.998%20103.072L136.497%20102.198L135.629%20101.701ZM134.892%20101.274L134.024%20100.777L133.531%20101.64L134.39%20102.138L134.892%20101.274ZM135.238%20100.905L134.739%20100.039L134.735%20100.041L135.238%20100.905ZM141.29%2097.4142L140.802%2096.541L140.796%2096.5444L140.79%2096.548L141.29%2097.4142ZM141.74%2097.403L141.233%2098.265L141.241%2098.2694L141.74%2097.403ZM142.47%2097.8236V98.8236H146.206L142.969%2096.9572L142.47%2097.8236ZM142.954%2096.9506C142.476%2096.684%20141.943%2096.7424%20141.537%2096.97L142.516%2098.7143C142.415%2098.7708%20142.202%2098.8218%20141.978%2098.6965L142.954%2096.9506ZM141.527%2096.976L135.476%20100.467L136.475%20102.199L142.526%2098.7084L141.527%2096.976ZM135.471%20100.469C135.152%20100.656%20134.916%20100.935%20134.761%20101.205L136.497%20102.198C136.501%20102.191%20136.505%20102.185%20136.509%20102.179C136.513%20102.174%20136.516%20102.171%20136.517%20102.17C136.518%20102.169%20136.516%20102.171%20136.511%20102.175C136.506%20102.18%20136.495%20102.187%20136.479%20102.197L135.471%20100.469ZM136.131%20100.837L135.395%20100.409L134.39%20102.138L135.127%20102.566L136.131%20100.837ZM135.761%20101.77C135.765%20101.763%20135.769%20101.757%20135.772%20101.751C135.776%20101.746%20135.779%20101.743%20135.78%20101.742C135.781%20101.741%20135.779%20101.743%20135.774%20101.747C135.769%20101.752%20135.758%20101.759%20135.742%20101.769L134.735%20100.041C134.415%20100.228%20134.179%20100.507%20134.024%20100.777L135.761%20101.77ZM135.738%20101.771L141.789%2098.2804L140.79%2096.548L134.739%20100.039L135.738%20101.771ZM141.777%2098.2874C141.724%2098.3171%20141.643%2098.3459%20141.54%2098.3471C141.436%2098.3484%20141.329%2098.3212%20141.233%2098.265L142.247%2096.5411C141.784%2096.2688%20141.24%2096.2966%20140.802%2096.541L141.777%2098.2874ZM141.241%2098.2694L141.97%2098.6899L142.969%2096.9572L142.24%2096.5367L141.241%2098.2694ZM142.47%2096.8236H142.466V98.8236H142.47V96.8236Z'%20fill='%23D4D8E2'%20mask='url(%23path-46-inside-4_8152_16965)'/%3e%3c/g%3e%3cpath%20opacity='0.5'%20d='M158.376%2091.9546C158.29%2091.9174%20158.175%2091.9323%20158.052%2092.003L143.817%20100.217C143.545%20100.373%20143.251%20100.258%20143.162%2099.9561L143.095%2099.7774L157.319%2091.575C157.397%2091.5303%20157.472%2091.508%20157.539%2091.508C157.587%2091.508%20157.628%2091.5192%20157.665%2091.5415L158.376%2091.9583V91.9546Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M158.547%2092.2858L158.555%20109.044C158.555%20109.361%20158.335%20109.74%20158.063%20109.897L135.916%20122.684C135.722%20122.796%20135.48%20122.658%20135.48%20122.435V102.193C135.48%20102.036%20135.536%20101.862%20135.626%20101.709C135.715%20101.553%20135.841%20101.419%20135.972%20101.341L142.023%2097.8459C142.179%2097.7603%20142.336%2097.7566%20142.466%2097.8273L142.477%2097.8347C142.57%2097.8906%20142.645%2097.9799%20142.682%2098.1064L143.095%2099.7774L143.162%2099.9561C143.251%20100.258%20143.545%20100.373%20143.817%20100.217L158.056%2092.003C158.179%2091.9323%20158.294%2091.9211%20158.376%2091.9546L158.395%2091.9657C158.395%2091.9657%20158.402%2091.9658%20158.406%2091.9695H158.409C158.491%2092.0253%20158.543%2092.1332%20158.543%2092.2858H158.547Z'%20fill='%23D4D8E2'/%3e%3cpath%20opacity='0.2'%20d='M135.659%20122.699C135.659%20122.699%20135.644%20122.699%20135.637%20122.691L134.874%20122.249C134.792%20122.193%20134.74%20122.089%20134.74%20121.936V101.757C134.74%20101.601%20134.796%20101.43%20134.885%20101.274L135.622%20101.702C135.533%20101.858%20135.477%20102.029%20135.477%20102.185V122.427C135.477%20122.554%20135.555%20122.654%20135.656%20122.695L135.659%20122.699Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M137.282%20108.46L123.318%20100.403V115.814L137.282%20123.871V108.46Z'%20fill='%23D4D8E2'/%3e%3cpath%20d='M124.293%2099.837L123.318%20100.403L137.282%20108.46L138.257%20107.898L124.293%2099.837Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M136.999%20107.6L162.168%2093.0711L162.165%20110.559L136.999%20125.092V107.6Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M146.865%20104.869L151.145%20102.397C151.699%20102.077%20152.15%20102.223%20152.15%20102.725C152.15%20103.227%20151.699%20103.894%20151.145%20104.214L146.865%20106.685C146.31%20107.005%20145.86%20106.86%20145.86%20106.357C145.86%20105.855%20146.31%20105.189%20146.865%20104.869Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M136.999%20107.6L136.162%20107.116V124.604L136.999%20125.092V107.6Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M136.162%20107.116L161.327%2092.5872L162.168%2093.0711L136.999%20107.6L136.162%20107.116Z'%20fill='%23D4D8E2'/%3e%3cpath%20d='M83.616%20173.097V157.064L104.438%20145.044V161.073L83.616%20173.097Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M83.616%20157.064L57.5833%20142.036V158.066L83.616%20173.097V157.064Z'%20fill='%23D4D8E2'/%3e%3cpath%20d='M83.6161%20157.064L105.056%20144.679L78.4096%20129.29L56.9656%20141.675L83.6161%20157.064Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M83.616%20157.064V161.073L105.056%20148.694V144.679L83.616%20157.064Z'%20fill='%23EDEEF3'/%3e%3cpath%20opacity='0.2'%20d='M83.616%20161.073L104.438%20149.048V149.93L83.616%20161.955V161.073Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M56.9656%20141.675L83.6161%20157.064V161.073L56.9656%20145.687V141.675Z'%20fill='%23D4D8E2'/%3e%3cpath%20opacity='0.2'%20d='M83.616%20161.073L57.5833%20146.045V146.923L83.616%20161.955V161.073Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M90.4713%20159.502L97.5833%20155.393C97.8885%20155.215%2098.1378%20155.36%2098.1378%20155.713V159.919C98.1378%20160.272%2097.8885%20160.704%2097.5833%20160.879L90.4713%20164.988C90.1661%20165.166%2089.9167%20165.021%2089.9167%20164.668V160.462C89.9167%20160.109%2090.1661%20159.677%2090.4713%20159.502Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M90.9253%20159.978L97.1293%20156.398C97.334%20156.279%2097.4977%20156.376%2097.4977%20156.61V159.763C97.4977%20159.997%2097.3302%20160.287%2097.1293%20160.403L90.9253%20163.983C90.7206%20164.102%2090.5569%20164.005%2090.5569%20163.771V160.619C90.5569%20160.384%2090.7244%20160.098%2090.9253%20159.978Z'%20fill='%23F9F9FB'/%3e%3cg%20opacity='0.5'%3e%3cpath%20d='M91.1003%20160.812C91.0705%20160.812%2091.0407%20160.797%2091.0221%20160.767C90.996%20160.723%2091.0109%20160.671%2091.0556%20160.645L96.9134%20157.265C96.9544%20157.239%2097.0102%20157.254%2097.0362%20157.299C97.0623%20157.344%2097.0474%20157.396%2097.0027%20157.422L91.1449%20160.801C91.1449%20160.801%2091.1151%20160.812%2091.1003%20160.812Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M91.1003%20161.586C91.0705%20161.586%2091.0407%20161.571%2091.0221%20161.542C90.996%20161.497%2091.0109%20161.445%2091.0556%20161.419L96.9134%20158.039C96.9544%20158.013%2097.0102%20158.028%2097.0362%20158.073C97.0623%20158.118%2097.0474%20158.17%2097.0027%20158.196L91.1449%20161.575C91.1449%20161.575%2091.1151%20161.586%2091.1003%20161.586Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M91.1003%20162.36C91.0705%20162.36%2091.0407%20162.345%2091.0221%20162.316C90.996%20162.271%2091.0109%20162.219%2091.0556%20162.193L96.9134%20158.814C96.9544%20158.788%2097.0102%20158.802%2097.0362%20158.847C97.0623%20158.892%2097.0474%20158.944%2097.0027%20158.97L91.1449%20162.349C91.1449%20162.349%2091.1151%20162.36%2091.1003%20162.36Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M91.1003%20163.134C91.0705%20163.134%2091.0407%20163.119%2091.0221%20163.09C90.996%20163.045%2091.0109%20162.993%2091.0556%20162.967L96.9134%20159.588C96.9544%20159.562%2097.0102%20159.576%2097.0362%20159.621C97.0623%20159.666%2097.0474%20159.718%2097.0027%20159.744L91.1449%20163.123C91.1449%20163.123%2091.1151%20163.134%2091.1003%20163.134Z'%20fill='%23B9BED0'/%3e%3c/g%3e%3cpath%20opacity='0.1'%20d='M103.318%20143.674L83.6161%20155.051L58.7073%20140.663L58.0969%20141.024L83.6161%20155.706L103.929%20144.028L103.318%20143.674Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M83.616%20155.051V139.018L104.438%20126.997V143.026L83.616%20155.051Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M83.616%20139.018L57.5833%20123.99V140.019L83.616%20155.051V139.018Z'%20fill='%23D4D8E2'/%3e%3cpath%20d='M83.6161%20139.018L105.056%20126.633L78.4096%20111.244L56.9656%20123.629L83.6161%20139.018Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M83.616%20139.018V143.026L105.056%20130.648V126.633L83.616%20139.018Z'%20fill='%23EDEEF3'/%3e%3cpath%20opacity='0.2'%20d='M83.616%20143.026L104.438%20131.002V131.884L83.616%20143.908V143.026Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M56.9656%20123.629L83.6161%20139.018V143.026L56.9656%20127.641V123.629Z'%20fill='%23D4D8E2'/%3e%3cpath%20opacity='0.2'%20d='M83.616%20143.026L57.5833%20127.999V128.877L83.616%20143.908V143.026Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M90.4713%20141.456L97.5833%20137.347C97.8885%20137.169%2098.1378%20137.314%2098.1378%20137.667V141.873C98.1378%20142.226%2097.8885%20142.658%2097.5833%20142.833L90.4713%20146.942C90.1661%20147.12%2089.9167%20146.975%2089.9167%20146.622V142.416C89.9167%20142.063%2090.1661%20141.631%2090.4713%20141.456Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M90.9253%20141.932L97.1293%20138.352C97.334%20138.233%2097.4977%20138.33%2097.4977%20138.564V141.716C97.4977%20141.951%2097.3302%20142.241%2097.1293%20142.357L90.9253%20145.937C90.7206%20146.056%2090.5569%20145.959%2090.5569%20145.725V142.572C90.5569%20142.338%2090.7244%20142.051%2090.9253%20141.932Z'%20fill='%23F9F9FB'/%3e%3cg%20opacity='0.5'%3e%3cpath%20d='M91.1003%20142.766C91.0705%20142.766%2091.0407%20142.751%2091.0221%20142.721C90.996%20142.677%2091.0109%20142.624%2091.0556%20142.598L96.9134%20139.219C96.9544%20139.193%2097.0102%20139.208%2097.0362%20139.253C97.0623%20139.297%2097.0474%20139.349%2097.0027%20139.376L91.1449%20142.755C91.1449%20142.755%2091.1151%20142.766%2091.1003%20142.766Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M91.1003%20143.54C91.0705%20143.54%2091.0407%20143.525%2091.0221%20143.495C90.996%20143.451%2091.0109%20143.399%2091.0556%20143.373L96.9134%20139.993C96.9544%20139.967%2097.0102%20139.982%2097.0362%20140.027C97.0623%20140.071%2097.0474%20140.124%2097.0027%20140.15L91.1449%20143.529C91.1449%20143.529%2091.1151%20143.54%2091.1003%20143.54Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M91.1003%20144.314C91.0705%20144.314%2091.0407%20144.299%2091.0221%20144.269C90.996%20144.225%2091.0109%20144.173%2091.0556%20144.147L96.9134%20140.767C96.9544%20140.741%2097.0102%20140.756%2097.0362%20140.801C97.0623%20140.846%2097.0474%20140.898%2097.0027%20140.924L91.1449%20144.303C91.1449%20144.303%2091.1151%20144.314%2091.1003%20144.314Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M91.1003%20145.088C91.0705%20145.088%2091.0407%20145.073%2091.0221%20145.044C90.996%20144.999%2091.0109%20144.947%2091.0556%20144.921L96.9134%20141.542C96.9544%20141.515%2097.0102%20141.53%2097.0362%20141.575C97.0623%20141.62%2097.0474%20141.672%2097.0027%20141.698L91.1449%20145.077C91.1449%20145.077%2091.1151%20145.088%2091.1003%20145.088Z'%20fill='%23B9BED0'/%3e%3c/g%3e%3c/svg%3e`})),dH,fH,pH,mH=F((()=>{dH=R(sH(),1),Ub(),lH(),Jxe(),fH={class:`wt-table-column-select`},pH=(0,t.defineComponent)({__name:`wt-table-column-select`,props:{headers:{},staticHeaders:{default:()=>[]},enableSearch:{type:Boolean,default:!1}},emits:[`change`],setup(e,{emit:n}){let r=e,i=n,{t:a}=bb(),o=(0,t.inject)(`darkMode`),s=(0,t.ref)([]),c=(0,t.ref)(``),l=(0,t.ref)(!1);function u({text:e,locale:t}){return!e&&t?typeof t==`string`?a(t):a(...t):e}let d=(0,t.computed)(()=>s.value.filter(e=>!r.staticHeaders.includes(e.value)&&u(e)?.toLowerCase().includes(c.value?.toLowerCase())).sort((e,t)=>u(e)?.localeCompare(u(t)??``)??0));function f(){s.value=(0,dH.default)(r.headers)}function p(){l.value=!0}function m(){l.value=!1}function h(){i(`change`,s.value),m()}return(0,t.watch)(l,()=>{f()}),(n,r)=>{let i=(0,t.resolveComponent)(`wt-icon-btn`),a=(0,t.resolveComponent)(`wt-icon`),s=(0,t.resolveComponent)(`wt-input-text`),f=(0,t.resolveComponent)(`wt-checkbox`),g=(0,t.resolveComponent)(`wt-empty`),_=(0,t.resolveComponent)(`wt-button`),v=(0,t.resolveComponent)(`wt-popup`),y=(0,t.resolveDirective)(`tooltip`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,fH,[(0,t.withDirectives)((0,t.createVNode)(i,{icon:`column-select`,onClick:p},null,512),[[y,n.$t(`webitelUI.tableColumnSelect.title`)]]),(0,t.createVNode)(v,{shown:l.value,class:`wt-table-column-select__popup`,onClose:m},{title:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.$t(`webitelUI.tableColumnSelect.title`)),1)]),main:(0,t.withCtx)(()=>[e.enableSearch?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,class:`wt-table-column-select__popup-search`,"model-value":c.value,"onUpdate:modelValue":r[1]||=e=>c.value=e},{prefix:(0,t.withCtx)(()=>[(0,t.createVNode)(a,{icon:`search`})]),suffix:(0,t.withCtx)(()=>[c.value?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,icon:`close--filled`,onClick:r[0]||=e=>c.value=``})):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`model-value`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`wt-table-column-select__popup-list-wrap`,{"wt-table-column-select__popup-list-wrap__height-fixed":e.enableSearch}])},[d.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,{key:0,class:(0,t.normalizeClass)([{"wt-table-column-select__popup-list--md":d.value.length>10&&d.value.length<=20,"wt-table-column-select__popup-list--lg":d.value.length>20},`wt-table-column-select__popup-list`])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(d.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:e.value,class:`wt-table-column-select__popup-item`},[(0,t.createVNode)(f,{label:u(e),selected:e.show,"onUpdate:selected":t=>e.show=t},null,8,[`label`,`selected`,`onUpdate:selected`])]))),128))],2)):((0,t.openBlock)(),(0,t.createBlock)(g,{key:1,image:(0,t.unref)(o)?(0,t.unref)(cH):(0,t.unref)(uH),text:n.$t(`webitelUI.empty.text.filters`)},null,8,[`image`,`text`]))],2)]),actions:(0,t.withCtx)(()=>[(0,t.createVNode)(_,{onClick:h},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.$t(`reusable.add`)),1)],void 0,!0),_:1}),(0,t.createVNode)(_,{color:`secondary`,onClick:m},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.$t(`reusable.cancel`)),1)],void 0,!0),_:1})]),_:1},8,[`shown`])])}}})})),Yxe=F((()=>{})),Xxe=L({default:()=>hH}),hH,Zxe=F((()=>{mH(),mH(),Yxe(),K(),hH=G(pH,[[`__scopeId`,`data-v-1d316841`]])})),Qxe=F((()=>{})),$xe=L({default:()=>bH});function eSe(e,n,r,i,a,o){return(0,t.openBlock)(),(0,t.createElementBlock)(`nav`,{class:(0,t.normalizeClass)([{"wt-tabs--wide":r.wide},`wt-tabs`])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.tabs,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:n.value,class:(0,t.normalizeClass)([{"wt-tab--highlight":n.value===r.current.value},`wt-tab typo-body-1-bold`]),value:n.text,type:`button`,onClick:e=>o.open(n)},[(0,t.renderSlot)(e.$slots,n.value,(0,t.normalizeProps)((0,t.guardReactiveProps)({tab:n,current:r.current})),()=>[(0,t.createElementVNode)(`span`,vH,(0,t.toDisplayString)(n.text),1)],!0)],10,_H))),128)),(0,t.createElementVNode)(`div`,yH,[(0,t.createElementVNode)(`div`,{style:(0,t.normalizeStyle)({width:`${e.activeLineWidth}px`,transform:`translateX(${e.activeLineOffset}px)`}),class:`wt-tab__underline--highlight`},null,4)])],2)}var gH,_H,vH,yH,bH,tSe=F((()=>{Qxe(),K(),gH={name:`WtTabs`,model:{prop:`current`,event:`change`},props:{current:{type:Object,default:()=>({})},tabs:{type:Array,default:()=>[]},wide:{type:Boolean,default:!1}},emits:[`change`],data:()=>({activeLineWidth:0,activeLineOffset:0}),methods:{open(e){this.$emit(`change`,e),this.moveActiveLine(e)},moveActiveLine(e){if(!this.current||!this.$refs?.[e]?.[0])return;let t=this.$refs[e][0];this.activeLineWidth=t.clientWidth,this.activeLineOffset=t.offsetLeft}}},_H=[`value`,`onClick`],vH={style:{display:`block`}},yH={class:`wt-tabs__underline`},bH=G(gH,[[`render`,eSe],[`__scopeId`,`data-v-a6f6f0f3`]])})),xH,SH=F((()=>{xH=(0,t.defineComponent)({__name:`wt-time-input`,props:(0,t.mergeModels)({label:{default:``},name:{default:``},maxValue:{default:void 0},minValue:{default:0},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},labelProps:{default:()=>({})},hideInputInfo:{type:Boolean,default:!1},v:{default:null},regleValidation:{default:null},customValidators:{default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=(0,t.useModel)(e,`modelValue`);return(r,i)=>{let a=(0,t.resolveComponent)(`wt-input-number`);return(0,t.openBlock)(),(0,t.createBlock)(a,{"model-value":n.value,"onUpdate:modelValue":i[0]||=e=>n.value=e,label:e.label,"label-props":e.labelProps,name:e.name,max:e.maxValue,min:e.minValue,v:e.v,required:e.required,disabled:e.disabled,"hide-input-info":e.hideInputInfo},null,8,[`model-value`,`label`,`label-props`,`name`,`max`,`min`,`v`,`required`,`disabled`,`hide-input-info`])}}})})),nSe=L({default:()=>CH}),CH,rSe=F((()=>{SH(),SH(),CH=xH})),wH,TH,EH,DH,OH=F((()=>{Ub(),tf(),AC(),wH={class:`wt-timepicker__wrapper`},TH=3600,EH=60,DH=(0,t.defineComponent)({__name:`wt-timepicker`,props:{modelValue:{default:0},dateMode:{type:Boolean,default:!1},label:{default:``},format:{default:`hh:mm:ss`},disabled:{type:Boolean,default:!1},labelProps:{default:()=>({})},noLabel:{type:Boolean,default:!1},required:{type:Boolean,default:!1},v:{default:null},regleValidation:{default:null},customValidators:{default:()=>[]}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,{t:a}=bb(),{v:o,customValidators:s,regleValidation:c}=(0,t.toRefs)(r),{isValidation:l,invalid:u,validationText:d,validationTextColor:f}=kC({v:o,customValidators:s,regleValidation:c}),p=(0,t.computed)(()=>r.format.includes(`hh`)),m=(0,t.computed)(()=>r.format.includes(`mm`)),h=(0,t.computed)(()=>r.format.includes(`ss`)),g=(0,t.computed)(()=>r.noLabel||r.label?null:a(`webitelUI.timepicker.hour`)),_=(0,t.computed)(()=>r.noLabel||r.label?null:a(`webitelUI.timepicker.min`)),v=(0,t.computed)(()=>r.noLabel||r.label?null:a(`webitelUI.timepicker.sec`)),y=(0,t.computed)({get(){return r.dateMode?new Date(+r.modelValue).getHours():Math.floor(+r.modelValue/TH)},set(e){let t=r.dateMode?new Date(+r.modelValue).setHours(e):Math.max(0,+r.modelValue-y.value*TH+e*TH);i(`update:modelValue`,t)}}),b=(0,t.computed)({get(){return r.dateMode?new Date(+r.modelValue).getMinutes():Math.floor(+r.modelValue/EH%60)},set(e){let t=r.dateMode?new Date(+r.modelValue).setMinutes(e):Math.max(0,+r.modelValue-b.value*EH+e*EH);i(`update:modelValue`,t)}}),x=(0,t.computed)({get(){return r.dateMode?new Date(+r.modelValue).getSeconds():Math.floor(r.modelValue%60)},set(e){let t=r.dateMode?new Date(+r.modelValue).setSeconds(e):Math.max(0,+r.modelValue-x.value+ +e);i(`update:modelValue`,t)}}),S=(0,t.computed)(()=>r.required?`${r.label} (${r.format})*`:`${r.label} (${r.format})`),C=()=>{let e=r.dateMode?new Date(+r.modelValue).setHours(y.value):+r.modelValue-y.value*TH+y.value*TH;i(`update:modelValue`,0),(0,t.nextTick)(()=>{i(`update:modelValue`,e)})};return(n,r)=>{let i=(0,t.resolveComponent)(`wt-label`),a=(0,t.resolveComponent)(`wt-time-input`),s=(0,t.resolveComponent)(`wt-message`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([{"wt-timepicker--invalid":(0,t.unref)(u)},`wt-timepicker`])},[e.label||!e.noLabel?((0,t.openBlock)(),(0,t.createBlock)(i,(0,t.mergeProps)({key:0},e.labelProps,{invalid:(0,t.unref)(u)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`label`,(0,t.normalizeProps)((0,t.guardReactiveProps)({label:e.label})),()=>[(0,t.createTextVNode)((0,t.toDisplayString)(S.value),1)],!0)],void 0,!0),_:3},16,[`invalid`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,wH,[p.value?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,"model-value":y.value,"onUpdate:modelValue":r[0]||=e=>y.value=e,disabled:e.disabled,label:g.value,v:(0,t.unref)(o),"hide-input-info":``,onBlur:C},null,8,[`model-value`,`disabled`,`label`,`v`])):(0,t.createCommentVNode)(``,!0),m.value?((0,t.openBlock)(),(0,t.createBlock)(a,{key:1,"model-value":b.value,"onUpdate:modelValue":r[1]||=e=>b.value=e,disabled:e.disabled,label:_.value,"min-value":-1,"max-value":60,v:(0,t.unref)(o),"hide-input-info":``},null,8,[`model-value`,`disabled`,`label`,`v`])):(0,t.createCommentVNode)(``,!0),h.value?((0,t.openBlock)(),(0,t.createBlock)(a,{key:2,"model-value":x.value,"onUpdate:modelValue":r[2]||=e=>x.value=e,disabled:e.disabled,label:v.value,"min-value":-1,"max-value":60,v:(0,t.unref)(o),"hide-input-info":``},null,8,[`model-value`,`disabled`,`label`,`v`])):(0,t.createCommentVNode)(``,!0)]),(0,t.unref)(l)&&(0,t.unref)(d)?((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,color:(0,t.unref)(f),variant:(0,t.unref)(Xd).SIMPLE,size:(0,t.unref)(q).SM},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(d)),1)],void 0,!0),_:1},8,[`color`,`variant`,`size`])):(0,t.createCommentVNode)(``,!0)],2)}}})})),iSe=F((()=>{})),aSe=L({default:()=>kH}),kH,oSe=F((()=>{OH(),OH(),iSe(),K(),kH=G(DH,[[`__scopeId`,`data-v-323eaef0`]])})),AH=I(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){var t=n.call(e),r=t===`[object Arguments]`;return r||=t!==`[object Array]`&&typeof e==`object`&&!!e&&typeof e.length==`number`&&e.length>=0&&n.call(e.callee)===`[object Function]`,r}})),sSe=I(((e,t)=>{var n;if(!Object.keys){var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=AH(),o=Object.prototype.propertyIsEnumerable,s=!o.call({toString:null},`toString`),c=o.call(function(){},`prototype`),l=[`toString`,`toLocaleString`,`valueOf`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`constructor`],u=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if(typeof window>`u`)return!1;for(var e in window)try{if(!d[`$`+e]&&r.call(window,e)&&window[e]!==null&&typeof window[e]==`object`)try{u(window[e])}catch{return!0}}catch{return!0}return!1}(),p=function(e){if(typeof window>`u`||!f)return u(e);try{return u(e)}catch{return!1}};n=function(e){var t=typeof e==`object`&&!!e,n=i.call(e)===`[object Function]`,o=a(e),u=t&&i.call(e)===`[object String]`,d=[];if(!t&&!n&&!o)throw TypeError(`Object.keys called on a non-object`);var f=c&&n;if(u&&e.length>0&&!r.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(o&&e.length>0)for(var h=0;h<e.length;++h)d.push(String(h));else for(var g in e)!(f&&g===`prototype`)&&r.call(e,g)&&d.push(String(g));if(s)for(var _=p(e),v=0;v<l.length;++v)!(_&&l[v]===`constructor`)&&r.call(e,l[v])&&d.push(l[v]);return d}}t.exports=n})),jH=I(((e,t)=>{var n=Array.prototype.slice,r=AH(),i=Object.keys,a=i?function(e){return i(e)}:sSe(),o=Object.keys;a.shim=function(){return Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return r(e)?o(n.call(e)):o(e)}):Object.keys=a,Object.keys||a},t.exports=a})),MH=I(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),NH=I(((e,t)=>{t.exports=SyntaxError})),PH=I(((e,t)=>{t.exports=TypeError})),cSe=I(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),FH=I(((e,t)=>{var n=cSe();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),IH=I(((e,t)=>{var n=MH(),r=NH(),i=PH(),a=FH();t.exports=function(e,t,o){if(!e||typeof e!=`object`&&typeof e!=`function`)throw new i("`obj` must be an object or a function`");if(typeof t!=`string`&&typeof t!=`symbol`)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=`boolean`&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=`boolean`&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=`boolean`&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=`boolean`)throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,d=!!a&&a(e,t);if(n)n(e,t,{configurable:l===null&&d?d.configurable:!l,enumerable:s===null&&d?d.enumerable:!s,value:o,writable:c===null&&d?d.writable:!c});else if(u||!s&&!c&&!l)e[t]=o;else throw new r(`This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.`)}})),LH=I(((e,t)=>{var n=MH(),r=function(){return!!n};r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],`length`,{value:1}).length!==1}catch{return!0}},t.exports=r})),RH=I(((e,t)=>{var n=jH(),r=typeof Symbol==`function`&&typeof Symbol(`foo`)==`symbol`,i=Object.prototype.toString,a=Array.prototype.concat,o=IH(),s=function(e){return typeof e==`function`&&i.call(e)===`[object Function]`},c=LH()(),l=function(e,t,n,r){if(t in e){if(r===!0){if(e[t]===n)return}else if(!s(r)||!r())return}c?o(e,t,n,!0):o(e,t,n)},u=function(e,t){var i=arguments.length>2?arguments[2]:{},o=n(t);r&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)l(e,o[s],t[o[s]],i[o[s]])};u.supportsDescriptors=!!c,t.exports=u})),zH=I(((e,t)=>{t.exports=Object})),BH=I(((e,t)=>{t.exports=Error})),lSe=I(((e,t)=>{t.exports=EvalError})),uSe=I(((e,t)=>{t.exports=RangeError})),dSe=I(((e,t)=>{t.exports=ReferenceError})),fSe=I(((e,t)=>{t.exports=URIError})),pSe=I(((e,t)=>{t.exports=Math.abs})),mSe=I(((e,t)=>{t.exports=Math.floor})),hSe=I(((e,t)=>{t.exports=Math.max})),gSe=I(((e,t)=>{t.exports=Math.min})),_Se=I(((e,t)=>{t.exports=Math.pow})),vSe=I(((e,t)=>{t.exports=Math.round})),ySe=I(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),bSe=I(((e,t)=>{var n=ySe();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),VH=I(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),HH=I(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=VH();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),UH=I(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),WH=I(((e,t)=>{t.exports=zH().getPrototypeOf||null})),xSe=I(((e,t)=>{var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}})),GH=I(((e,t)=>{var n=xSe();t.exports=Function.prototype.bind||n})),KH=I(((e,t)=>{t.exports=Function.prototype.call})),qH=I(((e,t)=>{t.exports=Function.prototype.apply})),SSe=I(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),JH=I(((e,t)=>{var n=GH(),r=qH(),i=KH();t.exports=SSe()||n.call(i,r)})),YH=I(((e,t)=>{var n=GH(),r=PH(),i=KH(),a=JH();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),CSe=I(((e,t)=>{var n=YH(),r=FH(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1})),XH=I(((e,t)=>{var n=UH(),r=WH(),i=CSe();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),ZH=I(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=GH().call(n,r)})),QH=I(((e,t)=>{var n,r=zH(),i=BH(),a=lSe(),o=uSe(),s=dSe(),c=NH(),l=PH(),u=fSe(),d=pSe(),f=mSe(),p=hSe(),m=gSe(),h=_Se(),g=vSe(),_=bSe(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=FH(),x=MH(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=HH()(),T=XH(),E=WH(),D=UH(),O=qH(),k=KH(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},ee={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},te=GH(),ne=ZH(),P=te.call(k,Array.prototype.concat),re=te.call(O,Array.prototype.splice),ie=te.call(k,String.prototype.replace),ae=te.call(k,String.prototype.slice),oe=te.call(k,RegExp.prototype.exec),se=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ce=/\\(\\)?/g,le=function(e){var t=ae(e,0,1),n=ae(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return ie(e,se,function(e,t,n,i){r[r.length]=n?ie(i,ce,`$1`):t||e}),r},F=function(e,t){var n=e,r;if(ne(ee,n)&&(r=ee[n],n=`%`+r[0]+`%`),ne(M,n)){var i=M[n];if(i===A&&(i=N(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(oe(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=le(e),r=n.length>0?n[0]:``,i=F(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],re(n,P([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=ae(p,0,1),h=ae(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,ne(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=ne(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),wSe=I(((e,t)=>{var n=QH(),r=IH(),i=LH()(),a=FH(),o=PH(),s=n(`%Math.floor%`);t.exports=function(e,t){if(typeof e!=`function`)throw new o("`fn` is not a function");if(typeof t!=`number`||t<0||t>4294967295||s(t)!==t)throw new o("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],c=!0,l=!0;if(`length`in e&&a){var u=a(e,`length`);u&&!u.configurable&&(c=!1),u&&!u.writable&&(l=!1)}return(c||l||!n)&&(i?r(e,`length`,t,!0,!0):r(e,`length`,t)),e}})),TSe=I(((e,t)=>{var n=GH(),r=qH(),i=JH();t.exports=function(){return i(n,r,arguments)}})),$H=I(((e,t)=>{var n=wSe(),r=MH(),i=YH(),a=TSe();t.exports=function(e){var t=i(arguments),r=1+e.length-(arguments.length-1);return n(t,r>0?r:0,!0)},r?r(t.exports,`apply`,{value:a}):t.exports.apply=a})),eU=I(((e,t)=>{var n=QH(),r=YH(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),tU=I(((e,t)=>{var n=jH(),r=VH()(),i=eU(),a=zH(),o=i(`Array.prototype.push`),s=i(`Object.prototype.propertyIsEnumerable`),c=r?a.getOwnPropertySymbols:null;t.exports=function(e,t){if(e==null)throw TypeError(`target must be an object`);var i=a(e);if(arguments.length===1)return i;for(var l=1;l<arguments.length;++l){var u=a(arguments[l]),d=n(u),f=r&&(a.getOwnPropertySymbols||c);if(f)for(var p=f(u),m=0;m<p.length;++m){var h=p[m];s(u,h)&&o(d,h)}for(var g=0;g<d.length;++g){var _=d[g];s(u,_)&&(i[_]=u[_])}}return i}})),nU=I(((e,t)=>{var n=tU(),r=function(){if(!Object.assign)return!1;for(var e=`abcdefghijklmnopqrst`,t=e.split(``),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var i=Object.assign({},n),a=``;for(var o in i)a+=o;return e!==a},i=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,`xy`)}catch{return e[1]===`y`}return!1};t.exports=function(){return!Object.assign||r()||i()?n:Object.assign}})),ESe=I(((e,t)=>{var n=RH(),r=nU();t.exports=function(){var e=r();return n(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}})),DSe=I(((e,t)=>{var n=RH(),r=$H(),i=tU(),a=nU(),o=ESe(),s=r.apply(a()),c=function(e,t){return s(Object,arguments)};n(c,{getPolyfill:a,implementation:i,shim:o}),t.exports=c})),rU=I(((e,t)=>{var n=QH(),r=$H(),i=r(n(`String.prototype.indexOf`));t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r(a):a}})),OSe=I(((e,t)=>{var n=function(){return typeof function(){}.name==`string`},r=Object.getOwnPropertyDescriptor;if(r)try{r([],`length`)}catch{r=null}n.functionsHaveConfigurableNames=function(){if(!n()||!r)return!1;var e=r(function(){},`name`);return!!e&&!!e.configurable};var i=Function.prototype.bind;n.boundFunctionsHaveNames=function(){return n()&&typeof i==`function`&&function(){}.bind().name!==``},t.exports=n})),kSe=I(((e,t)=>{var n=IH(),r=LH()(),i=OSe().functionsHaveConfigurableNames(),a=PH();t.exports=function(e,t){if(typeof e!=`function`)throw new a("`fn` is not a function");return(!(arguments.length>2&&arguments[2])||i)&&(r?n(e,`name`,t,!0,!0):n(e,`name`,t)),e}})),iU=I(((e,t)=>{var n=kSe(),r=PH(),i=Object;t.exports=n(function(){if(this==null||this!==i(this))throw new r(`RegExp.prototype.flags getter called on non-object`);var e=``;return this.hasIndices&&(e+=`d`),this.global&&(e+=`g`),this.ignoreCase&&(e+=`i`),this.multiline&&(e+=`m`),this.dotAll&&(e+=`s`),this.unicode&&(e+=`u`),this.unicodeSets&&(e+=`v`),this.sticky&&(e+=`y`),e},`get flags`,!0)})),aU=I(((e,t)=>{var n=iU(),r=RH().supportsDescriptors,i=Object.getOwnPropertyDescriptor;t.exports=function(){if(r&&/a/gim.flags===`gim`){var e=i(RegExp.prototype,`flags`);if(e&&typeof e.get==`function`&&`dotAll`in RegExp.prototype&&`hasIndices`in RegExp.prototype){var t=``,a={};if(Object.defineProperty(a,"hasIndices",{get:function(){t+=`d`}}),Object.defineProperty(a,"sticky",{get:function(){t+=`y`}}),e.get.call(a),t===`dy`)return e.get}}return n}})),ASe=I(((e,t)=>{var n=RH().supportsDescriptors,r=aU(),i=FH(),a=Object.defineProperty,o=BH(),s=XH(),c=/a/;t.exports=function(){if(!n||!s)throw new o(`RegExp.prototype.flags requires a true ES5 environment that supports property descriptors`);var e=r(),t=s(c),l=i(t,`flags`);return(!l||l.get!==e)&&a(t,`flags`,{configurable:!0,enumerable:!1,get:e}),e}})),jSe=I(((e,t)=>{var n=RH(),r=$H(),i=iU(),a=aU(),o=ASe(),s=r(a());n(s,{getPolyfill:a,implementation:i,shim:o}),t.exports=s})),oU=I(((e,t)=>{var n=VH();t.exports=function(){return n()&&!!Symbol.toStringTag}})),sU=I(((e,t)=>{var n=oU()(),r=eU()(`Object.prototype.toString`),i=function(e){return n&&e&&typeof e==`object`&&Symbol.toStringTag in e?!1:r(e)===`[object Arguments]`},a=function(e){return i(e)?!0:typeof e==`object`&&!!e&&`length`in e&&typeof e.length==`number`&&e.length>=0&&r(e)!==`[object Array]`&&`callee`in e&&r(e.callee)===`[object Function]`},o=function(){return i(arguments)}();i.isLegacyArguments=a,t.exports=o?i:a})),MSe=I(((e,t)=>{t.exports={}})),cU=I(((e,t)=>{me();var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype?WeakMap.prototype.has:null,d=typeof WeakSet==`function`&&WeakSet.prototype?WeakSet.prototype.has:null,f=typeof WeakRef==`function`&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,_=String.prototype.slice,v=String.prototype.replace,y=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,w=Array.prototype.slice,T=Math.floor,E=typeof BigInt==`function`?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,O=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,k=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,A=typeof Symbol==`function`&&Symbol.toStringTag?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,M=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),a=_.call(t,i.length+1);return v.call(i,n,`$&_`)+`.`+v.call(v.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return v.call(t,n,`$&_`)}var ee=MSe(),te=ee.custom,ne=de(te)?te:null,P={__proto__:null,double:`"`,single:`'`},re={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(he(s,`quoteStyle`)&&!he(P,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(he(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=he(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(he(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(he(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return Te(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?N(t,f):f}if(typeof t==`bigint`){var m=String(t)+`n`;return d?N(t,m):m}var h=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=h&&h>0&&typeof t==`object`)return se(t)?`[Array]`:`[Object]`;var g=Ae(s,r);if(o===void 0)o=[];else if(ve(o,t)>=0)return`[Circular]`;function y(t,n,i){if(n&&(o=w.call(o),o.push(n)),i){var a={depth:s.depth};return he(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!le(t)){var x=_e(t),T=B(t,y);return`[Function`+(x?`: `+x:` (anonymous)`)+`]`+(T.length>0?` { `+C.call(T,`, `)+` }`:``)}if(de(t)){var D=k?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):O.call(t);return typeof t==`object`&&!k?De(D):D}if(we(t)){for(var te=`<`+b.call(String(t.nodeName)),re=t.attributes||[],oe=0;oe<re.length;oe++)te+=` `+re[oe].name+`=`+ie(ae(re[oe].value),`double`,s);return te+=`>`,t.childNodes&&t.childNodes.length&&(te+=`...`),te+=`</`+b.call(String(t.nodeName))+`>`,te}if(se(t)){if(t.length===0)return`[]`;var fe=B(t,y);return g&&!z(fe)?`[`+je(fe,g)+`]`:`[ `+C.call(fe,`, `)+` ]`}if(F(t)){var me=B(t,y);return!(`cause`in Error.prototype)&&`cause`in t&&!j.call(t,`cause`)?`{ [`+String(t)+`] `+C.call(S.call(`[cause]: `+y(t.cause),me),`, `)+` }`:me.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+C.call(me,`, `)+` }`}if(typeof t==`object`&&u){if(ne&&typeof t[ne]==`function`&&ee)return ee(t,{depth:h-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(ye(t)){var Ee=[];return a&&a.call(t,function(e,n){Ee.push(y(n,t,!0)+` => `+y(e,t))}),ke(`Map`,i.call(t),Ee,g)}if(Se(t)){var Me=[];return l&&l.call(t,function(e){Me.push(y(e,t))}),ke(`Set`,c.call(t),Me,g)}if(be(t))return Oe(`WeakMap`);if(Ce(t))return Oe(`WeakSet`);if(xe(t))return Oe(`WeakRef`);if(L(t))return De(y(Number(t)));if(R(t))return De(y(E.call(t)));if(ue(t))return De(p.call(t));if(I(t))return De(y(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||pe!==void 0&&t===pe)return`{ [object globalThis] }`;if(!ce(t)&&!le(t)){var Ne=B(t,y),Pe=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,Fe=t instanceof Object?``:`null prototype`,Ie=!Pe&&A&&Object(t)===t&&A in t?_.call(ge(t),8,-1):Fe?`Object`:``,Le=(Pe||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``)+(Ie||Fe?`[`+C.call(S.call([],Ie||[],Fe||[]),`: `)+`] `:``);return Ne.length===0?Le+`{}`:g?Le+`{`+je(Ne,g)+`}`:Le+`{ `+C.call(Ne,`, `)+` }`}return String(t)};function ie(e,t,n){var r=P[n.quoteStyle||t];return r+e+r}function ae(e){return v.call(String(e),/"/g,`"`)}function oe(e){return!A||!(typeof e==`object`&&(A in e||e[A]!==void 0))}function se(e){return ge(e)===`[object Array]`&&oe(e)}function ce(e){return ge(e)===`[object Date]`&&oe(e)}function le(e){return ge(e)===`[object RegExp]`&&oe(e)}function F(e){return ge(e)===`[object Error]`&&oe(e)}function I(e){return ge(e)===`[object String]`&&oe(e)}function L(e){return ge(e)===`[object Number]`&&oe(e)}function ue(e){return ge(e)===`[object Boolean]`&&oe(e)}function de(e){if(k)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!O)return!1;try{return O.call(e),!0}catch{}return!1}function R(e){if(!e||typeof e!=`object`||!E)return!1;try{return E.call(e),!0}catch{}return!1}var fe=Object.prototype.hasOwnProperty||function(e){return e in this};function he(e,t){return fe.call(e,t)}function ge(e){return m.call(e)}function _e(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ve(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function ye(e){if(!i||!e||typeof e!=`object`)return!1;try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function be(e){if(!u||!e||typeof e!=`object`)return!1;try{u.call(e,u);try{d.call(e,d)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function xe(e){if(!f||!e||typeof e!=`object`)return!1;try{return f.call(e),!0}catch{}return!1}function Se(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Ce(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{u.call(e,u)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function we(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function Te(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return Te(_.call(e,0,t.maxStringLength),t)+r}var i=re[t.quoteStyle||`single`];return i.lastIndex=0,ie(v.call(v.call(e,i,`\\$1`),/[\x00-\x1f]/g,Ee),`single`,t)}function Ee(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+y.call(t.toString(16))}function De(e){return`Object(`+e+`)`}function Oe(e){return e+` { ? }`}function ke(e,t,n,r){var i=r?je(n,r):C.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function z(e){for(var t=0;t<e.length;t++)if(ve(e[t],`
|
|
1384
|
+
`);for(let e of t)if(e.startsWith(`#EXT-X-TARGETDURATION`)){let t=parseFloat(e.split(`:`)[1]);if(!isNaN(t))return t}return-1}function JL(e){return(Kj(e)?e:[e]).map(e=>Uj(e)?{src:e,type:YL(e)}:{...e,type:YL(e.src,e.type)})}function YL(e,t){return Uj(t)&&t.length?t:Uj(e)&&UR.has(e)?UR.get(e):!t&&kN({src:e,type:``})?`application/x-mpegurl`:!t&&AN({src:e,type:``})?`application/dash+xml`:!Uj(e)||e.startsWith(`blob:`)?`video/object`:e.includes(`youtube`)||e.includes(`youtu.be`)?`video/youtube`:e.includes(`vimeo`)&&!e.includes(`progressive_redirect`)&&!e.includes(`.m3u8`)?`video/vimeo`:`?`}function XL(e,t){return e?.src===t?.src&&e?.type===t?.type}var ZL,QL,$L,eR,tR,nR,rR,iR,aR,oR,sR,cR,lR,uR,dR,fR,pR,mR,hR,gR,_R,vR,yR,bR,xR,SR,CR,wR,TR,ER,DR,OR,kR,AR,jR,MR,NR,PR,FR,IR,LR,RR,zR,BR,VR,HR,UR,WR,GR,KR,qR,zxe=F((()=>{hN(),vN(),GN(),YN(),eP(),IF(),zF(),UF(),oI(),cI(),dI(),gI(),Gbe(),ZL=class extends LM{items=[];[gN.readonly]=!1;get length(){return this.items.length}get readonly(){return this[gN.readonly]}indexOf(e){return this.items.indexOf(e)}getById(e){return e===``?null:this.items.find(t=>t.id===e)??null}toArray(){return[...this.items]}[Symbol.iterator](){return this.items.values()}[gN.add](e,t){let n=this.items.length;``+n in this||Object.defineProperty(this,n,{get(){return this.items[n]}}),!this.items.includes(e)&&(this.items.push(e),this.dispatchEvent(new FM(`add`,{detail:e,trigger:t})))}[gN.remove](e,t){let n=this.items.indexOf(e);n>=0&&(this[gN.onRemove]?.(e,t),this.items.splice(n,1),this.dispatchEvent(new FM(`remove`,{detail:e,trigger:t})))}[gN.reset](e){for(let t of[...this.items])this[gN.remove](t,e);this.items=[],this[gN.setReadonly](!1,e),this[gN.onReset]?.()}[gN.setReadonly](e,t){this[gN.readonly]!==e&&(this[gN.readonly]=e,this.dispatchEvent(new FM(`readonly-change`,{detail:e,trigger:t})))}},QL=CI.fullscreenEnabled,$L=class extends GM{#e=!1;#t=!1;get active(){return this.#t}get supported(){return QL}onConnect(){new RM(CI).add(`fullscreenchange`,this.#r.bind(this)).add(`fullscreenerror`,this.#i.bind(this)),xj(this.#n.bind(this))}#n(){QL&&this.exit().catch(Rj)}#r(e){let t=BL(this.el);t!==this.#t&&(t||(this.#e=!1),this.#t=t,this.dispatch(`fullscreen-change`,{detail:t,trigger:e}))}#i(e){this.#e&&=(this.dispatch(`fullscreen-error`,{detail:null,trigger:e}),!1)}async enter(){try{return this.#e=!0,!this.el||BL(this.el)?void 0:(VL(),CI.requestFullscreen(this.el))}catch(e){throw this.#e=!1,e}}async exit(){if(!(!this.el||!BL(this.el)))return VL(),CI.exitFullscreen()}},eR=class e extends GM{#e=Ij(this.#o());#t=Ij(!1);#n;get type(){return this.#e()}get locked(){return this.#t()}get portrait(){return this.#e().startsWith(`portrait`)}get landscape(){return this.#e().startsWith(`landscape`)}static supported=yN();get supported(){return e.supported}onConnect(){if(this.supported)qj(screen.orientation,`change`,this.#i.bind(this));else{let e=window.matchMedia(`(orientation: landscape)`);e.onchange=this.#i.bind(this),xj(()=>e.onchange=null)}xj(this.#r.bind(this))}async#r(){this.supported&&this.#t()&&await this.unlock()}#i(e){this.#e.set(this.#o()),this.dispatch(`orientation-change`,{detail:{orientation:J(this.#e),lock:this.#n},trigger:e})}async lock(e){J(this.#t)||this.#n===e||(this.#a(),await screen.orientation.lock(e),this.#t.set(!0),this.#n=e)}async unlock(){J(this.#t)&&(this.#a(),this.#n=void 0,await screen.orientation.unlock(),this.#t.set(!1))}#a(){if(!this.supported)throw Error(`[vidstack] no orientation API`)}#o(){return this.supported?window.screen.orientation.type:window.innerWidth>=window.innerHeight?`landscape-primary`:`portrait-primary`}},tR=new qM({artist:``,artwork:null,audioTrack:null,audioTracks:[],autoPlay:!1,autoPlayError:null,audioGain:null,buffered:new JN,canLoad:!1,canLoadPoster:!1,canFullscreen:!1,canOrientScreen:yN(),canPictureInPicture:!1,canPlay:!1,clipStartTime:0,clipEndTime:0,controls:!1,get iOSControls(){return PN&&this.mediaType===`video`&&(!this.playsInline||!CI.fullscreenEnabled&&this.fullscreen)},get nativeControls(){return this.controls||this.iOSControls},controlsVisible:!1,get controlsHidden(){return!this.controlsVisible},crossOrigin:null,ended:!1,error:null,fullscreen:!1,get loop(){return this.providedLoop||this.userPrefersLoop},logLevel:`silent`,mediaType:`unknown`,muted:!1,paused:!0,played:new JN,playing:!1,playsInline:!1,pictureInPicture:!1,preload:`metadata`,playbackRate:1,qualities:[],quality:null,autoQuality:!1,canSetQuality:!0,canSetPlaybackRate:!0,canSetVolume:!1,canSetAudioGain:!1,seekable:new JN,seeking:!1,source:{src:``,type:``},sources:[],started:!1,textTracks:[],textTrack:null,get hasCaptions(){return this.textTracks.filter(MF).length>0},volume:1,waiting:!1,realCurrentTime:0,get currentTime(){return this.ended?this.duration:this.clipStartTime>0?Math.max(0,Math.min(this.realCurrentTime-this.clipStartTime,this.duration)):this.realCurrentTime},providedDuration:-1,intrinsicDuration:0,get duration(){return this.seekableWindow},get title(){return this.providedTitle||this.inferredTitle},get poster(){return this.providedPoster||this.inferredPoster},get viewType(){return this.providedViewType===`unknown`?this.inferredViewType:this.providedViewType},get streamType(){return this.providedStreamType===`unknown`?this.inferredStreamType:this.providedStreamType},get currentSrc(){return this.source},get bufferedStart(){let e=KN(this.buffered)??0;return Math.max(e,this.clipStartTime)},get bufferedEnd(){let e=qN(this.buffered)??0;return Math.min(this.seekableEnd,Math.max(0,e-this.clipStartTime))},get bufferedWindow(){return Math.max(0,this.bufferedEnd-this.bufferedStart)},get seekableStart(){if(this.isLiveDVR&&this.liveDVRWindow>0)return Math.max(0,this.seekableEnd-this.liveDVRWindow);let e=KN(this.seekable)??0;return Math.max(e,this.clipStartTime)},get seekableEnd(){if(this.providedDuration>0)return this.providedDuration;let e=this.liveSyncPosition>0?this.liveSyncPosition:this.canPlay?qN(this.seekable)??1/0:0;return this.clipEndTime>0?Math.min(this.clipEndTime,e):e},get seekableWindow(){let e=this.seekableEnd-this.seekableStart;return isNaN(e)?1/0:Math.max(0,e)},canAirPlay:!1,canGoogleCast:!1,remotePlaybackState:`disconnected`,remotePlaybackType:`none`,remotePlaybackLoader:null,remotePlaybackInfo:null,get isAirPlayConnected(){return this.remotePlaybackType===`airplay`&&this.remotePlaybackState===`connected`},get isGoogleCastConnected(){return this.remotePlaybackType===`google-cast`&&this.remotePlaybackState===`connected`},pointer:`fine`,orientation:`landscape`,width:0,height:0,mediaWidth:0,mediaHeight:0,lastKeyboardAction:null,userBehindLiveEdge:!1,liveEdgeTolerance:10,minLiveDVRWindow:60,get canSeek(){return/unknown|on-demand|:dvr/.test(this.streamType)&&Number.isFinite(this.duration)&&(!this.isLiveDVR||this.duration>=this.liveDVRWindow)},get live(){return this.streamType.includes(`live`)||!Number.isFinite(this.duration)},get liveEdgeStart(){return this.live&&Number.isFinite(this.seekableEnd)?Math.max(0,this.seekableEnd-this.liveEdgeTolerance):0},get liveEdge(){return this.live&&(!this.canSeek||!this.userBehindLiveEdge&&this.currentTime>=this.liveEdgeStart)},get liveEdgeWindow(){return this.live&&Number.isFinite(this.seekableEnd)?this.seekableEnd-this.liveEdgeStart:0},get isLiveDVR(){return/:dvr/.test(this.streamType)},get liveDVRWindow(){return Math.max(this.inferredLiveDVRWindow,this.minLiveDVRWindow)},autoPlaying:!1,providedTitle:``,inferredTitle:``,providedLoop:!1,userPrefersLoop:!1,providedPoster:``,inferredPoster:``,inferredViewType:`unknown`,providedViewType:`unknown`,providedStreamType:`unknown`,inferredStreamType:`unknown`,liveSyncPosition:null,inferredLiveDVRWindow:0,savedState:null}),nR=new Set([`autoPlayError`,`autoPlaying`,`buffered`,`canPlay`,`error`,`paused`,`played`,`playing`,`seekable`,`seeking`,`waiting`]),rR=new Set([...nR,`ended`,`inferredPoster`,`inferredStreamType`,`inferredTitle`,`intrinsicDuration`,`inferredLiveDVRWindow`,`liveSyncPosition`,`realCurrentTime`,`savedState`,`started`,`userBehindLiveEdge`]),iR=class{#e=null;#t=null;#n=-1;#r;constructor(e=void 0){this.#r=e}setTarget(e){this.#e=e}getPlayer(e){return this.#t||(e??this.#e)?.dispatchEvent(new FM(`find-media-player`,{detail:e=>void(this.#t=e),bubbles:!0,composed:!0})),this.#t}setPlayer(e){this.#t=e}startLoading(e){this.#i(`media-start-loading`,e)}startLoadingPoster(e){this.#i(`media-poster-start-loading`,e)}requestAirPlay(e){this.#i(`media-airplay-request`,e)}requestGoogleCast(e){this.#i(`media-google-cast-request`,e)}play(e){this.#i(`media-play-request`,e)}pause(e){this.#i(`media-pause-request`,e)}mute(e){this.#i(`media-mute-request`,e)}unmute(e){this.#i(`media-unmute-request`,e)}enterFullscreen(e,t){this.#i(`media-enter-fullscreen-request`,t,e)}exitFullscreen(e,t){this.#i(`media-exit-fullscreen-request`,t,e)}lockScreenOrientation(e,t){this.#i(`media-orientation-lock-request`,t,e)}unlockScreenOrientation(e){this.#i(`media-orientation-unlock-request`,e)}enterPictureInPicture(e){this.#i(`media-enter-pip-request`,e)}exitPictureInPicture(e){this.#i(`media-exit-pip-request`,e)}seeking(e,t){this.#i(`media-seeking-request`,t,e)}seek(e,t){this.#i(`media-seek-request`,t,e)}seekToLiveEdge(e){this.#i(`media-live-edge-request`,e)}changeDuration(e,t){this.#i(`media-duration-change-request`,t,e)}changeClipStart(e,t){this.#i(`media-clip-start-change-request`,t,e)}changeClipEnd(e,t){this.#i(`media-clip-end-change-request`,t,e)}changeVolume(e,t){this.#i(`media-volume-change-request`,t,Math.max(0,Math.min(1,e)))}changeAudioTrack(e,t){this.#i(`media-audio-track-change-request`,t,e)}changeQuality(e,t){this.#i(`media-quality-change-request`,t,e)}requestAutoQuality(e){this.changeQuality(-1,e)}changeTextTrackMode(e,t,n){this.#i(`media-text-track-change-request`,n,{index:e,mode:t})}changePlaybackRate(e,t){this.#i(`media-rate-change-request`,t,e)}changeAudioGain(e,t){this.#i(`media-audio-gain-change-request`,t,e)}resumeControls(e){this.#i(`media-resume-controls-request`,e)}pauseControls(e){this.#i(`media-pause-controls-request`,e)}togglePaused(e){let t=this.getPlayer(e?.target);t&&(t.state.paused?this.play(e):this.pause(e))}toggleControls(e){let t=this.getPlayer(e?.target);t&&(t.controls.showing?t.controls.hide(0,e):t.controls.show(0,e))}toggleMuted(e){let t=this.getPlayer(e?.target);t&&(t.state.muted?this.unmute(e):this.mute(e))}toggleFullscreen(e,t){let n=this.getPlayer(t?.target);n&&(n.state.fullscreen?this.exitFullscreen(e,t):this.enterFullscreen(e,t))}togglePictureInPicture(e){let t=this.getPlayer(e?.target);t&&(t.state.pictureInPicture?this.exitPictureInPicture(e):this.enterPictureInPicture(e))}showCaptions(e){let t=this.getPlayer(e?.target);if(!t)return;let n=t.state.textTracks,r=this.#n;(!n[r]||!MF(n[r]))&&(r=-1),r===-1&&(r=n.findIndex(e=>MF(e)&&e.default)),r===-1&&(r=n.findIndex(e=>MF(e))),r>=0&&this.changeTextTrackMode(r,`showing`,e),this.#n=-1}disableCaptions(e){let t=this.getPlayer(e?.target);if(!t)return;let n=t.state.textTracks,r=t.state.textTrack;if(r){let t=n.indexOf(r);this.changeTextTrackMode(t,`disabled`,e),this.#n=t}}toggleCaptions(e){let t=this.getPlayer(e?.target);t&&(t.state.textTrack?this.disableCaptions():this.showCaptions())}userPrefersLoopChange(e,t){this.#i(`media-user-loop-change-request`,t,e)}#i(e,t,n){let r=new FM(e,{bubbles:!0,composed:!0,cancelable:!0,detail:n,trigger:t}),i=t?.target||null;i&&i instanceof KM&&(i=i.el),i=!i||i===document||i===window||i===document.body||this.#t?.el&&i instanceof Node&&!this.#t.el.contains(i)?this.#e??this.getPlayer()?.el:i??this.#e,this.#t?e===`media-play-request`&&!this.#t.state.canLoad?i?.dispatchEvent(r):this.#t.canPlayQueue.enqueue(e,()=>i?.dispatchEvent(r)):i?.dispatchEvent(r)}},aR=class{playerId=`vds-player`;mediaId=null;#e={volume:null,muted:null,audioGain:null,time:null,lang:null,captions:null,rate:null,quality:null};async getVolume(){return this.#e.volume}async setVolume(e){this.#e.volume=e,this.save()}async getMuted(){return this.#e.muted}async setMuted(e){this.#e.muted=e,this.save()}async getTime(){return this.#e.time}async setTime(e,t){let n=e<0;this.#e.time=n?null:e,n||t?this.saveTime():this.saveTimeThrottled()}async getLang(){return this.#e.lang}async setLang(e){this.#e.lang=e,this.save()}async getCaptions(){return this.#e.captions}async setCaptions(e){this.#e.captions=e,this.save()}async getPlaybackRate(){return this.#e.rate}async setPlaybackRate(e){this.#e.rate=e,this.save()}async getAudioGain(){return this.#e.audioGain}async setAudioGain(e){this.#e.audioGain=e,this.save()}async getVideoQuality(){return this.#e.quality}async setVideoQuality(e){this.#e.quality=e,this.save()}onChange(e,t,n=`vds-player`){let r=n?localStorage.getItem(n):null,i=t?localStorage.getItem(t):null;this.playerId=n,this.mediaId=t,this.#e={volume:null,muted:null,audioGain:null,lang:null,captions:null,rate:null,quality:null,...r?JSON.parse(r):{},time:i?+i:null}}save(){if(!this.playerId)return;let e=JSON.stringify({...this.#e,time:void 0});localStorage.setItem(this.playerId,e)}saveTimeThrottled=YM(this.saveTime.bind(this),1e3);saveTime(){if(!this.mediaId)return;let e=(this.#e.time??0).toString();localStorage.setItem(this.mediaId,e)}},oR=Symbol(0),sR=class extends ZL{get selected(){return this.items.find(e=>e.selected)??null}get selectedIndex(){return this.items.findIndex(e=>e.selected)}[gN.onRemove](e,t){this[gN.select](e,!1,t)}[gN.add](e,t){e[oR]=!1,Object.defineProperty(e,"selected",{get(){return this[oR]},set:t=>{this.readonly||(this[gN.onUserSelect]?.(),this[gN.select](e,t))}}),super[gN.add](e,t)}[gN.select](e,t,n){if(t===e?.[oR])return;let r=this.selected;e&&(e[oR]=t),(t?r!==e:r===e)&&(r&&(r[oR]=!1),this.dispatchEvent(new FM(`change`,{detail:{prev:r,current:this.selected},trigger:n})))}},cR=class extends sR{},lR=class{priority=0;#e=!0;#t=null;#n=null;#r=new Set;canRender(e,t){return!!t}attach(e){this.#t=e,e&&(e.textTracks.onchange=this.#s.bind(this))}addTrack(e){this.#r.add(e),this.#i(e)}removeTrack(e){e[NF.native]?.remove?.(),e[NF.native]=null,this.#r.delete(e)}changeTrack(e){let t=e?.[NF.native];t&&t.track.mode!==`showing`&&(t.track.mode=`showing`),this.#n=e}setDisplay(e){this.#e=e,this.#s()}detach(){this.#t&&(this.#t.textTracks.onchange=null);for(let e of this.#r)this.removeTrack(e);this.#r.clear(),this.#t=null,this.#n=null}#i(e){if(!this.#t)return;let t=e[NF.native]??=this.#a(e);rI(t)&&(this.#t.append(t),t.track.mode=t.default?`showing`:`disabled`)}#a(e){let t=document.createElement(`track`),n=e.default||e.mode===`showing`,r=e.src&&e.type===`vtt`;return t.id=e.id,t.src=r?e.src:``,t.label=e.label,t.kind=e.kind,t.default=n,e.language&&(t.srclang=e.language),n&&!r&&this.#o(e,t.track),t}#o(e,t){if(!(e.src&&e.type===`vtt`||t.cues?.length))for(let n of e.cues)t.addCue(n)}#s(e){for(let t of this.#r){let n=t[NF.native];if(!n)continue;if(!this.#e){n.track.mode=n.managed?`hidden`:`disabled`;continue}let r=n.track.mode===`showing`;r&&this.#o(t,n.track),t.setMode(r?`showing`:`disabled`,e)}}},uR=class{#e=null;#t;#n=[];#r;#i=!1;#a=null;#o=null;constructor(e){this.#r=e;let t=e.textTracks;this.#t=t,Y(this.#s.bind(this)),xj(this.#p.bind(this)),new RM(t).add(`add`,this.#u.bind(this)).add(`remove`,this.#d.bind(this)).add(`mode-change`,this.#f.bind(this))}#s(){let{nativeControls:e}=this.#r.$state;this.#i=e(),this.#f()}add(e){this.#n.push(e),gj(this.#f.bind(this))}remove(e){e.detach(),this.#n.splice(this.#n.indexOf(e),1),gj(this.#f.bind(this))}attachVideo(e){requestAnimationFrame(()=>{if(this.#e=e,e){this.#a=new lR,this.#a.attach(e);for(let e of this.#t)this.#c(e)}this.#f()})}#c(e){MF(e)&&this.#a?.addTrack(e)}#l(e){MF(e)&&this.#a?.removeTrack(e)}#u(e){this.#c(e.detail)}#d(e){this.#l(e.detail)}#f(){let e=this.#t.selected;if(this.#e&&(this.#i||e?.[NF.nativeHLS])){this.#o?.changeTrack(null),this.#a?.setDisplay(!0),this.#a?.changeTrack(e);return}if(this.#a?.setDisplay(!1),this.#a?.changeTrack(null),!e){this.#o?.changeTrack(null);return}let t=this.#n.sort((e,t)=>e.priority-t.priority).find(t=>t.canRender(e,this.#e));this.#o!==t&&(this.#o?.detach(),t?.attach(this.#e),this.#o=t??null),t?.changeTrack(e)}#p(){this.#a?.detach(),this.#a=null,this.#o?.detach(),this.#o=null}},dR=class extends ZL{#e=!1;#t={};#n=null;#r=null;[NF.crossOrigin];constructor(){super()}get selected(){return this.items.find(e=>e.mode===`showing`&&MF(e))??null}get selectedIndex(){let e=this.selected;return e?this.indexOf(e):-1}get preferredLang(){return this.#r}set preferredLang(e){this.#r=e,this.#l(e)}add(e,t){let n=e instanceof PF?e:new PF(e),r=e.kind===`captions`||e.kind===`subtitles`?`captions`:e.kind;return this.#t[r]&&e.default&&delete e.default,n.addEventListener(`mode-change`,this.#o),this[gN.add](n,t),n[NF.crossOrigin]=this[NF.crossOrigin],this.#e&&n[NF.canLoad](),e.default&&(this.#t[r]=n),this.#i(),this}remove(e,t){if(this.#a=e,this.items.includes(e))return e===this.#t[e.kind]&&delete this.#t[e.kind],e.mode=`disabled`,e[NF.onModeChange]=null,e.removeEventListener(`mode-change`,this.#o),this[gN.remove](e,t),this.#a=null,this}clear(e){for(let t of[...this.items])this.remove(t,e);return this}getByKind(e){let t=Array.isArray(e)?e:[e];return this.items.filter(e=>t.includes(e.kind))}[NF.canLoad](){if(!this.#e){for(let e of this.items)e[NF.canLoad]();this.#e=!0,this.#i()}}#i=XM(async()=>{if(!this.#e)return;!this.#r&&this.#n&&(this.#r=await this.#n.getLang());let e=await this.#n?.getCaptions();for(let t of[[`captions`,`subtitles`],`chapters`,`descriptions`,`metadata`]){let n=this.getByKind(t);if(n.find(e=>e.mode===`showing`))continue;let r=this.#r?n.find(e=>e.language===this.#r):null,i=Kj(t)?this.#t[t.find(e=>this.#t[e])||``]:this.#t[t],a=r??i,o=a&&MF(a);a&&(!o||e!==!1)&&(a.mode=`showing`,o&&this.#c(a))}},300);#a=null;#o=this.#s.bind(this);#s(e){let t=e.detail;if(this.#n&&MF(t)&&t!==this.#a&&this.#c(t),t.mode===`showing`){let e=MF(t)?[`captions`,`subtitles`]:[t.kind];for(let n of this.items)n.mode===`showing`&&n!=t&&e.includes(n.kind)&&(n.mode=`disabled`)}this.dispatchEvent(new FM(`mode-change`,{detail:e.detail,trigger:e}))}#c(e){e.mode!==`disabled`&&this.#l(e.language),this.#n?.setCaptions?.(e.mode===`showing`)}#l(e){this.#n?.setLang?.(this.#r=e)}setStorage(e){this.#n=e}},fR=class extends sR{#e=!1;switch=`current`;get auto(){return this.#e||this.readonly}[sI.enableAuto];[gN.onUserSelect](){this[sI.setAuto](!1)}[gN.onReset](e){this[sI.enableAuto]=void 0,this[sI.setAuto](!1,e)}autoSelect(e){this.readonly||this.#e||!this[sI.enableAuto]||(this[sI.enableAuto]?.(e),this[sI.setAuto](!0,e))}getBySrc(e){return this.items.find(t=>t.src===e)}[sI.setAuto](e,t){this.#e!==e&&(this.#e=e,this.dispatchEvent(new FM(`auto-change`,{detail:e,trigger:t})))}},pR=class extends GM{},mR={togglePaused:`k Space`,toggleMuted:`m`,toggleFullscreen:`f`,togglePictureInPicture:`i`,toggleCaptions:`c`,seekBackward:`j J ArrowLeft`,seekForward:`l L ArrowRight`,volumeUp:`ArrowUp`,volumeDown:`ArrowDown`,speedUp:`>`,slowDown:`<`},hR=new Set([`Shift`,`Alt`,`Meta`,`Ctrl`]),gR=`button, [role="button"]`,_R=`input, textarea, select, [contenteditable], [role^="menuitem"], [role="timer"]`,vR=class extends pR{#e;constructor(e){super(),this.#e=e}onConnect(){Y(this.#t.bind(this))}#t(){let{keyDisabled:e,keyTarget:t}=this.$props;if(e())return;let n=t()===`player`?this.el:document,r=Ij(!1);n===this.el?new RM(this.el).add(`focusin`,()=>r.set(!0)).add(`focusout`,e=>{this.el.contains(e.target)||r.set(!1)}):(J(r)||r.set(document.querySelector(`[data-media-player]`)===this.el),qj(document,`focusin`,e=>{let t=e.composedPath().find(e=>e instanceof Element&&e.localName===`media-player`);t!==void 0&&r.set(this.el===t)})),Y(()=>{r()&&new RM(n).add(`keyup`,this.#n.bind(this)).add(`keydown`,this.#r.bind(this)).add(`keydown`,this.#i.bind(this),{capture:!0})})}#n(e){let t=document.activeElement;if(!e.key||!this.$state.canSeek()||t?.matches(_R))return;let{method:n,value:r}=this.#a(e);if(!Uj(r)&&!Kj(r)){r?.onKeyUp?.({event:e,player:this.#e.player,remote:this.#e.remote}),r?.callback?.(e,this.#e.remote);return}n?.startsWith(`seek`)&&(e.preventDefault(),e.stopPropagation(),this.#c?(this.#l(e,n===`seekForward`),this.#c=null):(this.#e.remote.seek(this.#o,e),this.#o=void 0)),n?.startsWith(`volume`)&&this.el.querySelector(`[data-media-volume-slider]`)?.dispatchEvent(new KeyboardEvent(`keyup`,{key:n===`volumeUp`?`Up`:`Down`,shiftKey:e.shiftKey,trigger:e}))}#r(e){if(!e.key||hR.has(e.key))return;let t=document.activeElement;if(t?.matches(_R)||Zj(e)&&t?.matches(gR))return;let{method:n,value:r}=this.#a(e),i=!e.metaKey&&/^[0-9]$/.test(e.key);if(!Uj(r)&&!Kj(r)&&!i){r?.onKeyDown?.({event:e,player:this.#e.player,remote:this.#e.remote}),r?.callback?.(e,this.#e.remote);return}if(!n&&i&&!Pxe(e)){e.preventDefault(),e.stopPropagation(),this.#e.remote.seek(this.$state.duration()/10*Number(e.key),e);return}if(n){switch(e.preventDefault(),e.stopPropagation(),n){case`seekForward`:case`seekBackward`:this.#u(e,n,n===`seekForward`);break;case`volumeUp`:case`volumeDown`:let t=this.el.querySelector(`[data-media-volume-slider]`);if(t)t.dispatchEvent(new KeyboardEvent(`keydown`,{key:n===`volumeUp`?`Up`:`Down`,shiftKey:e.shiftKey,trigger:e}));else{let t=e.shiftKey?.1:.05;this.#e.remote.changeVolume(this.$state.volume()+(n===`volumeUp`?+t:-t),e)}break;case`toggleFullscreen`:this.#e.remote.toggleFullscreen(`prefer-media`,e);break;case`speedUp`:case`slowDown`:let r=this.$state.playbackRate();this.#e.remote.changePlaybackRate(Math.max(.25,Math.min(2,r+(n===`speedUp`?.25:-.25))),e);break;default:this.#e.remote[n]?.(e)}this.$state.lastKeyboardAction.set({action:n,event:e})}}#i(e){Mxe(e.target)&&this.#a(e).method&&e.preventDefault()}#a(e){let t={...this.$props.keyShortcuts(),...this.#e.ariaKeys},n=Object.keys(t).find(n=>{let r=t[n],i=Kj(r)?r.join(` `):Uj(r)?r:r?.keys;return((Kj(i)?i:i?.split(` `))?.map(e=>Nxe(e).replace(/Control/g,`Ctrl`).split(`+`)))?.some(t=>{let n=new Set(t.filter(e=>hR.has(e)));`<>`.includes(e.key)&&n.add(`Shift`);for(let t of hR){let r=t.toLowerCase()+`Key`;if(!n.has(t)&&e[r])return!1}return t.every(t=>hR.has(t)?e[t.toLowerCase()+`Key`]:e.key===t.replace(`Space`,` `))})});return{method:n,value:n?t[n]:null}}#o;#s(e,t){let n=e.shiftKey?10:5;return this.#o=Math.max(0,Math.min((this.#o??this.$state.currentTime())+(t===`seekForward`?+n:-n),this.$state.duration()))}#c=null;#l(e,t){this.#c?.dispatchEvent(new KeyboardEvent(e.type,{key:t?`Right`:`Left`,shiftKey:e.shiftKey,trigger:e}))}#u(e,t,n){this.$state.canSeek()&&(this.#c||=this.el.querySelector(`[data-media-time-slider]`),this.#c?this.#l(e,n):this.#e.remote.seeking(this.#s(e,t),e))}},yR=[`!`,`@`,`#`,`$`,`%`,`^`,`&`,`*`,`(`,`)`],bR=class extends pR{#e=-2;#t=!1;#n=Ij(!1);#r=Ij(!1);#i=null;#a=Ij(!0);defaultDelay=2e3;get canIdle(){return this.#a()}set canIdle(e){this.#a.set(e)}get hideOnMouseLeave(){let{hideControlsOnMouseLeave:e}=this.$props;return this.#n()||e()}set hideOnMouseLeave(e){this.#n.set(e)}get showing(){return this.$state.controlsVisible()}show(e=0,t){this.#m(),this.#t||this.#g(!0,e,t)}hide(e=this.defaultDelay,t){this.#m(),this.#t||this.#g(!1,e,t)}pause(e){this.#t=!0,this.#m(),this.#g(!0,0,e)}resume(e){this.#t=!1,!this.$state.paused()&&this.#g(!1,this.defaultDelay,e)}onConnect(){Y(this.#o.bind(this))}#o(){let{viewType:e}=this.$state;if(!this.el||!this.#a())return;if(e()===`audio`){this.show();return}Y(this.#s.bind(this)),Y(this.#c.bind(this));let t=this.#l.bind(this),n=this.#u.bind(this),r=this.#d.bind(this);new RM(this.el).add(`can-play`,e=>this.show(0,e)).add(`play`,t).add(`pause`,n).add(`end`,r).add(`auto-play-fail`,n)}#s(){if(!this.el)return;let{started:e,pointer:t,paused:n}=this.$state;if(!e()||t()!==`fine`)return;let r=new RM(this.el),i=this.hideOnMouseLeave;(!i||!this.#r())&&Y(()=>{n()||r.add(`pointermove`,this.#h.bind(this))}),i&&r.add(`mouseenter`,this.#f.bind(this)).add(`mouseleave`,this.#p.bind(this))}#c(){let{paused:e,started:t,autoPlayError:n}=this.$state;if(e()||n()&&!t())return;let r=this.#h.bind(this);Y(()=>{if(!this.el)return;let e=this.$state.pointer()===`coarse`,t=new RM(this.el),n=[e?`touchend`:`pointerup`,`keydown`];for(let e of n)t.add(e,r,{passive:!1})})}#l(e){e.triggers.hasType(`ended`)||(this.show(0,e),this.hide(void 0,e))}#u(e){this.show(0,e)}#d(e){let{loop:t}=this.$state;t()&&this.hide(0,e)}#f(e){this.#r.set(!1),this.show(0,e),this.hide(void 0,e)}#p(e){this.#r.set(!0),this.hide(0,e)}#m(){window.clearTimeout(this.#e),this.#e=-1}#h(e){e.MEDIA_GESTURE||this.#t||ZF(e)||(Xj(e)&&(e.key===`Escape`?(this.el?.focus(),this.#i=null):this.#i&&(e.preventDefault(),requestAnimationFrame(()=>{this.#i?.focus(),this.#i=null}))),this.show(0,e),this.hide(this.defaultDelay,e))}#g(e,t,n){if(t===0){this.#_(e,n);return}this.#e=window.setTimeout(()=>{this.scope&&this.#_(e&&!this.#t,n)},t)}#_(e,t){this.$state.controlsVisible()!==e&&(this.$state.controlsVisible.set(e),!e&&document.activeElement&&this.el?.contains(document.activeElement)&&(this.#i=document.activeElement,requestAnimationFrame(()=>{this.el?.focus({preventScroll:!0})})),this.dispatch(`controls-change`,{detail:e,trigger:t}))}},xR=class{name=`audio`;target;canPlay(e){return DN(e)?!Uj(e.src)||e.type===`?`||bN(this.target,e.type):!1}mediaType(){return`audio`}async load(e){return new(await(Promise.resolve().then(()=>(Zbe(),Xbe)))).AudioProvider(this.target,e)}},SR=class{name=`video`;target;canPlay(e){return ON(e)?!Uj(e.src)||e.type===`?`||xN(this.target,e.type):!1}mediaType(){return`video`}async load(e){return new(await(Promise.resolve().then(()=>(exe(),$be)))).VideoProvider(this.target,e)}},CR=class e extends SR{static supported=TN();name=`hls`;canPlay(t){return e.supported&&kN(t)}async load(e){return new(await(Promise.resolve().then(()=>(ixe(),txe)))).HLSProvider(this.target,e)}},wR=class e extends SR{static supported=EN();name=`dash`;canPlay(t){return e.supported&&AN(t)}async load(e){return new(await(Promise.resolve().then(()=>(uxe(),lxe)))).DASHProvider(this.target,e)}},TR=class{name=`vimeo`;target;preconnect(){for(let e of[`https://i.vimeocdn.com`,`https://f.vimeocdn.com`,`https://fresnel.vimeocdn.com`])XN(e)}canPlay(e){return Uj(e.src)&&e.type===`video/vimeo`}mediaType(){return`video`}async load(e){return new(await(Promise.resolve().then(()=>(hxe(),mxe)))).VimeoProvider(this.target,e)}async loadPoster(e,t,n){let{resolveVimeoVideoId:r,getVimeoVideoInfo:i}=await Promise.resolve().then(()=>(vL(),dxe)).then(e=>e.utils_exports);if(!Uj(e.src))return null;let{videoId:a,hash:o}=r(e.src);return a?i(a,n,o).then(e=>e?e.poster:null):null}},ER=class{name=`youtube`;target;preconnect(){for(let e of[`https://www.google.com`,`https://i.ytimg.com`,`https://googleads.g.doubleclick.net`,`https://static.doubleclick.net`])XN(e)}canPlay(e){return Uj(e.src)&&e.type===`video/youtube`}mediaType(){return`video`}async load(e){return new(await(Promise.resolve().then(()=>(bxe(),yxe)))).YouTubeProvider(this.target,e)}async loadPoster(e,t,n){let{findYouTubePoster:r,resolveYouTubeVideoId:i}=await Promise.resolve().then(()=>(EL(),gxe)).then(e=>e.utils_exports),a=Uj(e.src)&&i(e.src);return a?r(a,n):null}},DR=Symbol(0),OR=`autoPlay.canAirPlay.canFullscreen.canGoogleCast.canLoad.canLoadPoster.canPictureInPicture.canPlay.canSeek.ended.fullscreen.isAirPlayConnected.isGoogleCastConnected.live.liveEdge.loop.mediaType.muted.paused.pictureInPicture.playing.playsInline.remotePlaybackState.remotePlaybackType.seeking.started.streamType.viewType.waiting`.split(`.`),kR={artist:``,artwork:null,ariaLabel:``,autoplay:!1,autoPlay:!1,clipStartTime:0,clipEndTime:0,controls:!1,currentTime:0,crossorigin:null,crossOrigin:null,duration:-1,fullscreenOrientation:`landscape`,googleCast:{},load:`visible`,posterLoad:`visible`,logLevel:`silent`,loop:!1,muted:!1,paused:!0,playsinline:!1,playsInline:!1,playbackRate:1,poster:``,preload:`metadata`,preferNativeHLS:!1,src:``,title:``,controlsDelay:2e3,hideControlsOnMouseLeave:!1,viewType:`unknown`,streamType:`unknown`,volume:1,liveEdgeTolerance:10,minLiveDVRWindow:60,keyDisabled:!1,keyTarget:`player`,keyShortcuts:mR,storage:null},AR=class extends pR{#e;#t;constructor(e,t){super(),this.#e=e,this.#t=t}async onAttach(e){let t=this.$props[this.#e]();if(t===`eager`)requestAnimationFrame(this.#t);else if(t===`idle`)Xye(this.#t);else if(t===`visible`){let t,n=new IntersectionObserver(e=>{this.scope&&e[0].isIntersecting&&(t?.(),t=void 0,this.#t())});n.observe(e),t=xj(()=>n.disconnect())}}},jR=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}notify(e,...t){this.#e(new FM(e,{detail:t?.[0],trigger:t?.[1]}))}async ready(e,t){return gj(async()=>{let{logger:n}=this.#t,{autoPlay:r,canPlay:i,started:a,duration:o,seekable:s,buffered:c,remotePlaybackInfo:l,playsInline:u,savedState:d,source:f}=this.#t.$state;if(i())return;let p={duration:e?.duration??o(),seekable:e?.seekable??s(),buffered:e?.buffered??c(),provider:this.#t.$provider()};this.notify(`can-play`,p,t),_j();let m=this.#t.$provider(),{storage:h,qualities:g}=this.#t,{muted:_,volume:v,clipStartTime:y,playbackRate:b}=this.#t.$props;await h?.onLoad?.(f());let x=d()?.currentTime,S=d()?.paused,C=await h?.getTime(),w=x??C??y(),T=S===!1||S!==!0&&!a()&&r();if(m){m.setVolume(await h?.getVolume()??v()),m.setMuted(_()||!!await h?.getMuted());let e=await h?.getAudioGain()??1;e>1&&m.audioGain?.setGain?.(e),m.setPlaybackRate?.(await h?.getPlaybackRate()??b()),m.setPlaysInline?.(u()),w>0&&m.setCurrentTime(w)}let E=await h?.getVideoQuality();if(E&&g.length){let e=null,t=1/0;for(let n of g){let r=Math.abs(E.width-n.width)+Math.abs(E.height-n.height)+(E.bitrate?Math.abs(E.bitrate-(n.bitrate??0)):0);r<t&&(e=n,t=r)}e&&(e.selected=!0)}i()&&T?await this.#n(t):C&&C>0&&this.notify(`started`,void 0,t),l.set(null)})}async#n(e){let{player:t,$state:{autoPlaying:n,muted:r}}=this.#t;n.set(!0);let i=new FM(`auto-play-attempt`,{trigger:e});try{await t.play(i)}catch{}}},MR=class{#e=new Map;enqueue(e,t){this.#e.set(e,t)}serve(e){let t=this.peek(e);return this.#e.delete(e),t}peek(e){return this.#e.get(e)}delete(e){this.#e.delete(e)}clear(){this.#e.clear()}},NR=class{#e=!1;#t=uM();#n=new Map;get size(){return this.#n.size}get isServing(){return this.#e}async waitForFlush(){this.#e||await this.#t.promise}enqueue(e,t){if(this.#e){t();return}this.#n.delete(e),this.#n.set(e,t)}serve(e){this.#n.get(e)?.(),this.#n.delete(e)}start(){this.#r(),this.#e=!0,this.#n.size>0&&this.#r()}stop(){this.#e=!1}reset(){this.stop(),this.#n.clear(),this.#i()}#r(){for(let e of this.#n.keys())this.serve(e);this.#i()}#i(){this.#t.resolve(),this.#t=uM()}},PR=class extends pR{#e;#t;#n;controls;#r;#i;#a;#o=new NR;constructor(e,t,n){super(),this.#e=e,this.#t=t,this.#n=n,this.#a=n.$provider,this.controls=new bR,this.#r=new $L,this.#i=new eR}onAttach(){this.listen(`fullscreen-change`,this.#x.bind(this))}onConnect(e){let t=Object.getOwnPropertyNames(Object.getPrototypeOf(this)),n=new RM(e),r=this.#l.bind(this);for(let e of t)e.startsWith(`media-`)&&n.add(e,r);this.#s(),Y(this.#c.bind(this)),Y(this.#m.bind(this)),Y(this.#h.bind(this)),Y(this.#g.bind(this)),Y(this.#_.bind(this)),Y(this.#v.bind(this)),Y(this.#y.bind(this))}onDestroy(){try{let e=this.createEvent(`destroy`),{pictureInPicture:t,fullscreen:n}=this.$state;n()&&this.exitFullscreen(`prefer-media`,e),t()&&this.exitPictureInPicture(e)}catch{}this.#o.reset()}#s(){let{load:e}=this.$props,{canLoad:t}=this.$state;if(e()!==`play`||t())return;let n=this.listen(`media-play-request`,e=>{this.#u(e),n()})}#c(){let e=this.#a(),t=this.$state.canPlay();return e&&t&&this.#o.start(),()=>{this.#o.stop()}}#l(e){e.stopPropagation(),!e.defaultPrevented&&this[e.type]&&(J(this.#a)?this[e.type](e):this.#o.enqueue(e.type,()=>{J(this.#a)&&this[e.type](e)}))}async play(e){let{canPlay:t,paused:n,autoPlaying:r}=this.$state;if(this.#u(e)||!J(n))return;e&&this.#t.queue.enqueue(`media-play-request`,e);let i=J(r);try{let e=J(this.#a);return GL(e,J(t)),Fxe(i),await e.play()}catch(t){let n=this.createEvent(`play-fail`,{detail:lI(t),trigger:e});throw n.autoPlay=i,this.#e.handle(n),t}}#u(e){let{load:t}=this.$props,{canLoad:n}=this.$state;if(t()===`play`&&!n()){let t=this.createEvent(`media-start-loading`,{trigger:e});return this.dispatchEvent(t),this.#o.enqueue(`media-play-request`,async()=>{try{await this.play(t)}catch{}}),!0}return!1}async pause(e){let{canPlay:t,paused:n}=this.$state;if(!J(n)){e&&this.#t.queue.enqueue(`media-pause-request`,e);try{let e=J(this.#a);return GL(e,J(t)),await e.pause()}catch(e){throw this.#t.queue.delete(`media-pause-request`),e}}}setAudioGain(e,t){let{audioGain:n,canSetAudioGain:r}=this.$state;if(n()===e)return;let i=this.#a();if(!i?.audioGain||!r())throw Error(`[vidstack] audio gain api not available`);t&&this.#t.queue.enqueue(`media-audio-gain-change-request`,t),i.audioGain.setGain(e)}seekToLiveEdge(e){let{canPlay:t,live:n,liveEdge:r,canSeek:i,liveSyncPosition:a,seekableEnd:o,userBehindLiveEdge:s}=this.$state;if(s.set(!1),J(()=>!n()||i()&&r()))return;let c=J(this.#a);GL(c,J(t));let l=o()-2,u=Math.min(l,a()??l);Number.isFinite(u)&&(e&&this.#t.queue.enqueue(`media-seek-request`,e),c.setCurrentTime(u))}#d=!1;async enterFullscreen(e=`prefer-media`,t){let n=this.#f(e);if(KL(e,n),!n.active)return J(this.$state.pictureInPicture)&&(this.#d=!0,await this.exitPictureInPicture(t)),t&&this.#t.queue.enqueue(`media-enter-fullscreen-request`,t),n.enter()}async exitFullscreen(e=`prefer-media`,t){let n=this.#f(e);if(KL(e,n),n.active){t&&this.#t.queue.enqueue(`media-exit-fullscreen-request`,t);try{let e=await n.exit();return this.#d&&J(this.$state.canPictureInPicture)&&await this.enterPictureInPicture(),e}finally{this.#d=!1}}}#f(e){let t=J(this.#a);return e===`prefer-media`&&this.#r.supported||e===`media`?this.#r:t?.fullscreen}async enterPictureInPicture(e){if(this.#p(),!this.$state.pictureInPicture())return e&&this.#t.queue.enqueue(`media-enter-pip-request`,e),await this.#a().pictureInPicture.enter()}async exitPictureInPicture(e){if(this.#p(),this.$state.pictureInPicture()){e&&this.#t.queue.enqueue(`media-exit-pip-request`,e);try{if(document?.pictureInPictureElement&&document.exitPictureInPicture){await document.exitPictureInPicture();return}let e=this.#a();if(e?.pictureInPicture){await e.pictureInPicture.exit();return}let t=document?.querySelectorAll?.(`video`)||[];for(let e of t){if(e===document.pictureInPictureElement&&document.exitPictureInPicture){await document.exitPictureInPicture();return}if(e.webkitPresentationMode===`picture-in-picture`){e.webkitSetPresentationMode(`inline`);return}}}catch{}}}#p(){if(!this.$state.canPictureInPicture())throw Error(`[vidstack] no pip support`)}#m(){this.controls.defaultDelay=this.$props.controlsDelay()}#h(){let{canSetAudioGain:e}=this.$state,t=!!this.#a()?.audioGain?.supported;e.set(t)}#g(){let{canAirPlay:e}=this.$state,t=!!this.#a()?.airPlay?.supported;e.set(t)}#_(){let{canGoogleCast:e,source:t}=this.$state,n=FN&&!NN&&jN(t());e.set(n)}#v(){let{canFullscreen:e}=this.$state,t=this.#r.supported||!!this.#a()?.fullscreen?.supported;e.set(t)}#y(){let{canPictureInPicture:e}=this.$state,t=!!this.#a()?.pictureInPicture?.supported;e.set(t)}async"media-airplay-request"(e){try{await this.requestAirPlay(e)}catch{}}async requestAirPlay(e){try{let t=this.#a()?.airPlay;if(!t?.supported)throw Error(`No AirPlay adapter.`);return e&&this.#t.queue.enqueue(`media-airplay-request`,e),await t.prompt()}catch(e){throw this.#t.queue.delete(`media-airplay-request`),e}}async"media-google-cast-request"(e){try{await this.requestGoogleCast(e)}catch{}}#b;async requestGoogleCast(e){try{let{canGoogleCast:t}=this.$state;if(!J(t)){let e=Error(`Cast not available.`);throw e.code=`CAST_NOT_AVAILABLE`,e}if(XN(`https://www.gstatic.com`),!this.#b){let e=await Promise.resolve().then(()=>(kxe(),Oxe));this.#b=new e.GoogleCastLoader}await this.#b.prompt(this.#n),e&&this.#t.queue.enqueue(`media-google-cast-request`,e);let n=J(this.$state.remotePlaybackState)!==`disconnected`;n&&this.$state.savedState.set({paused:J(this.$state.paused),currentTime:J(this.$state.currentTime)}),this.$state.remotePlaybackLoader.set(n?this.#b:null)}catch(e){throw this.#t.queue.delete(`media-google-cast-request`),e}}"media-clip-start-change-request"(e){let{clipStartTime:t}=this.$state;t.set(e.detail)}"media-clip-end-change-request"(e){let{clipEndTime:t}=this.$state;t.set(e.detail),this.dispatch(`duration-change`,{detail:e.detail,trigger:e})}"media-duration-change-request"(e){let{providedDuration:t,clipEndTime:n}=this.$state;t.set(e.detail),n()<=0&&this.dispatch(`duration-change`,{detail:e.detail,trigger:e})}"media-audio-track-change-request"(e){let{logger:t,audioTracks:n}=this.#n;if(n.readonly)return;let r=n[e.detail];if(r){let t=e.type;this.#t.queue.enqueue(t,e),r.selected=!0}}async"media-enter-fullscreen-request"(e){try{await this.enterFullscreen(e.detail,e)}catch(t){this.#S(t,e)}}async"media-exit-fullscreen-request"(e){try{await this.exitFullscreen(e.detail,e)}catch(t){this.#S(t,e)}}async#x(e){let t=J(this.$props.fullscreenOrientation),n=e.detail;if(!(Bj(t)||t===`none`||!this.#i.supported))if(n){if(this.#i.locked)return;this.dispatch(`media-orientation-lock-request`,{detail:t,trigger:e})}else this.#i.locked&&this.dispatch(`media-orientation-unlock-request`,{trigger:e})}#S(e,t){this.#e.handle(this.createEvent(`fullscreen-error`,{detail:lI(e)}))}async"media-orientation-lock-request"(e){let t=e.type;try{this.#t.queue.enqueue(t,e),await this.#i.lock(e.detail)}catch{this.#t.queue.delete(t)}}async"media-orientation-unlock-request"(e){let t=e.type;try{this.#t.queue.enqueue(t,e),await this.#i.unlock()}catch{this.#t.queue.delete(t)}}async"media-enter-pip-request"(e){try{await this.enterPictureInPicture(e)}catch(t){this.#C(t,e)}}async"media-exit-pip-request"(e){try{await this.exitPictureInPicture(e)}catch(t){this.#C(t,e)}}#C(e,t){this.#e.handle(this.createEvent(`picture-in-picture-error`,{detail:lI(e)}))}"media-live-edge-request"(e){let{live:t,liveEdge:n,canSeek:r}=this.$state;if(!(!t()||r()&&n()))try{this.seekToLiveEdge(e)}catch{this.#t.queue.delete(`media-seek-request`)}}async"media-loop-request"(e){try{this.#t.looping=!0,this.#t.replaying=!0,await this.play(e)}catch{this.#t.looping=!1}}"media-user-loop-change-request"(e){this.$state.userPrefersLoop.set(e.detail)}async"media-pause-request"(e){if(!this.$state.paused())try{await this.pause(e)}catch{}}async"media-play-request"(e){if(this.$state.paused())try{await this.play(e)}catch{}}"media-rate-change-request"(e){let{playbackRate:t,canSetPlaybackRate:n}=this.$state;if(t()===e.detail||!n())return;let r=this.#a();r?.setPlaybackRate&&(this.#t.queue.enqueue(`media-rate-change-request`,e),r.setPlaybackRate(e.detail))}"media-audio-gain-change-request"(e){try{this.setAudioGain(e.detail,e)}catch{}}"media-quality-change-request"(e){let{qualities:t,storage:n,logger:r}=this.#n;if(t.readonly)return;this.#t.queue.enqueue(`media-quality-change-request`,e);let i=e.detail;if(i<0)t.autoSelect(e),e.isOriginTrusted&&n?.setVideoQuality?.(null);else{let r=t[i];r&&(r.selected=!0,e.isOriginTrusted&&n?.setVideoQuality?.({id:r.id,width:r.width,height:r.height,bitrate:r.bitrate}))}}"media-pause-controls-request"(e){let t=e.type;this.#t.queue.enqueue(t,e),this.controls.pause(e)}"media-resume-controls-request"(e){let t=e.type;this.#t.queue.enqueue(t,e),this.controls.resume(e)}"media-seek-request"(e){let{canSeek:t,ended:n,live:r,seekableEnd:i,userBehindLiveEdge:a}=this.$state,o=e.detail;n()&&(this.#t.replaying=!0);let s=e.type;this.#t.seeking=!1,this.#t.queue.delete(s);let c=WL(o,this.$state);!Number.isFinite(c)||!t()||(this.#t.queue.enqueue(s,e),this.#a().setCurrentTime(c),r()&&e.isOriginTrusted&&Math.abs(i()-c)>=2&&a.set(!0))}"media-seeking-request"(e){let t=e.type;this.#t.queue.enqueue(t,e),this.$state.seeking.set(!0),this.#t.seeking=!0}"media-start-loading"(e){if(this.$state.canLoad())return;let t=e.type;this.#t.queue.enqueue(t,e),this.#e.handle(this.createEvent(`can-load`))}"media-poster-start-loading"(e){if(this.$state.canLoadPoster())return;let t=e.type;this.#t.queue.enqueue(t,e),this.#e.handle(this.createEvent(`can-load-poster`))}"media-text-track-change-request"(e){let{index:t,mode:n}=e.detail,r=this.#n.textTracks[t];if(r){let t=e.type;this.#t.queue.enqueue(t,e),r.setMode(n,e)}}"media-mute-request"(e){if(this.$state.muted())return;let t=e.type;this.#t.queue.enqueue(t,e),this.#a().setMuted(!0)}"media-unmute-request"(e){let{muted:t,volume:n}=this.$state;if(!t())return;let r=e.type;this.#t.queue.enqueue(r,e),this.#n.$provider().setMuted(!1),n()===0&&(this.#t.queue.enqueue(r,e),this.#a().setVolume(.25))}"media-volume-change-request"(e){let{muted:t,volume:n}=this.$state,r=e.detail;if(n()===r)return;let i=e.type;this.#t.queue.enqueue(i,e),this.#a().setVolume(r),r>0&&t()&&(this.#t.queue.enqueue(i,e),this.#a().setMuted(!1))}},FR=class{seeking=!1;looping=!1;replaying=!1;queue=new MR},IR=new Set([`auto-play`,`auto-play-fail`,`can-load`,`sources-change`,`source-change`,`load-start`,`abort`,`error`,`loaded-metadata`,`loaded-data`,`can-play`,`play`,`play-fail`,`pause`,`playing`,`seeking`,`seeked`,`waiting`]),LR=class extends pR{#e;#t;#n=new Map;#r=!1;#i=[];#a=[-1,-1];#o=!1;#s;constructor(e,t){super(),this.#e=e,this.#t=t}onAttach(e){e.setAttribute(`aria-busy`,`true`),new RM(this).add(`fullscreen-change`,this[`fullscreen-change`].bind(this)).add(`fullscreen-error`,this[`fullscreen-error`].bind(this)).add(`orientation-change`,this[`orientation-change`].bind(this))}onConnect(e){Y(this.#D.bind(this)),this.#p(),this.#m(),this.#h(),this.#l(),xj(this.#u.bind(this))}onDestroy(){let{audioTracks:e,qualities:t,textTracks:n}=this.#t;e[gN.reset](),t[gN.reset](),n[gN.reset](),this.#T()}handle(e){if(!this.scope)return;let t=e.type;gj(()=>this[e.type]?.(e)),IR.has(t)&&this.#n.set(t,e),this.dispatch(e)}#c=!1;#l(){this.#c&&=(requestAnimationFrame(()=>{this.scope&&this.#t.remote.play(new FM(`dom-connect`))}),!1)}#u(){this.#c||(this.#c=!this.$state.paused(),this.#t.$provider()?.pause())}#d(){this.#L(),this.#r=!1,this.#e.replaying=!1,this.#e.looping=!1,this.#o=!1,this.#s=void 0,this.#n.clear()}#f(e,t){let n=this.#e.queue.serve(e);n&&(t.request=n,t.triggers.add(n))}#p(){this.#g(),this.#_();let e=this.#t.textTracks;new RM(e).add(`add`,this.#g.bind(this)).add(`remove`,this.#g.bind(this)).add(`mode-change`,this.#_.bind(this))}#m(){let e=this.#t.qualities;new RM(e).add(`add`,this.#b.bind(this)).add(`remove`,this.#b.bind(this)).add(`change`,this.#x.bind(this)).add(`auto-change`,this.#S.bind(this)).add(`readonly-change`,this.#E.bind(this))}#h(){let e=this.#t.audioTracks;new RM(e).add(`add`,this.#v.bind(this)).add(`remove`,this.#v.bind(this)).add(`change`,this.#y.bind(this))}#g(e){let{textTracks:t}=this.$state;t.set(this.#t.textTracks.toArray()),this.dispatch(`text-tracks-change`,{detail:t(),trigger:e})}#_(e){e&&this.#f(`media-text-track-change-request`,e);let t=this.#t.textTracks.selected,{textTrack:n}=this.$state;n()!==t&&(n.set(t),this.dispatch(`text-track-change`,{detail:t,trigger:e}))}#v(e){let{audioTracks:t}=this.$state;t.set(this.#t.audioTracks.toArray()),this.dispatch(`audio-tracks-change`,{detail:t(),trigger:e})}#y(e){let{audioTrack:t}=this.$state;t.set(this.#t.audioTracks.selected),e&&this.#f(`media-audio-track-change-request`,e),this.dispatch(`audio-track-change`,{detail:t(),trigger:e})}#b(e){let{qualities:t}=this.$state;t.set(this.#t.qualities.toArray()),this.dispatch(`qualities-change`,{detail:t(),trigger:e})}#x(e){let{quality:t}=this.$state;t.set(this.#t.qualities.selected),e&&this.#f(`media-quality-change-request`,e),this.dispatch(`quality-change`,{detail:t(),trigger:e})}#S(){let{qualities:e}=this.#t,t=e.auto;this.$state.autoQuality.set(t),t||this.#T()}#C=null;#w(){this.#T(),this.#C=Y(()=>{let{qualities:e}=this.#t,{mediaWidth:t,mediaHeight:n}=this.$state,r=t(),i=n();if(r===0||i===0)return;let a=null,o=1/0;for(let t of e){let e=Math.abs(t.width-r)+Math.abs(t.height-i);e<o&&(o=e,a=t)}a&&e[gN.select](a,!0,new FM(`resize`,{detail:{width:r,height:i}}))})}#T(){this.#C?.(),this.#C=null}#E(){this.$state.canSetQuality.set(!this.#t.qualities.readonly)}#D(){let{canSetVolume:e,isGoogleCastConnected:t}=this.$state;if(t()){e.set(!1);return}abe().then(e.set)}"provider-change"(e){let t=this.#t.$provider(),n=e.detail;t?.type!==n?.type&&(t?.destroy?.(),t?.scope?.dispose(),this.#t.$provider.set(e.detail),t&&e.detail===null&&this.#k(e))}"provider-loader-change"(e){}"auto-play"(e){this.$state.autoPlayError.set(null)}"auto-play-fail"(e){this.$state.autoPlayError.set(e.detail),this.#d()}"can-load"(e){this.$state.canLoad.set(!0),this.#n.set(`can-load`,e),this.#t.textTracks[NF.canLoad](),this.#f(`media-start-loading`,e)}"can-load-poster"(e){this.$state.canLoadPoster.set(!0),this.#n.set(`can-load-poster`,e),this.#f(`media-poster-start-loading`,e)}"media-type-change"(e){let t=this.#n.get(`source-change`);t&&e.triggers.add(t);let n=this.$state.viewType();this.$state.mediaType.set(e.detail);let r=this.$state.providedViewType(),i=r===`unknown`?e.detail:r;n!==i&&setTimeout(()=>{requestAnimationFrame(()=>{this.scope&&(this.$state.inferredViewType.set(e.detail),this.dispatch(`view-type-change`,{detail:i,trigger:e}))})},0)}"stream-type-change"(e){let t=this.#n.get(`source-change`);t&&e.triggers.add(t);let{streamType:n,inferredStreamType:r}=this.$state;r.set(e.detail),e.detail=n()}"rate-change"(e){let{storage:t}=this.#t,{canPlay:n}=this.$state;this.$state.playbackRate.set(e.detail),this.#f(`media-rate-change-request`,e),n()&&t?.setPlaybackRate?.(e.detail)}"remote-playback-change"(e){let{remotePlaybackState:t,remotePlaybackType:n}=this.$state,{type:r,state:i}=e.detail,a=i===`connected`;n.set(r),t.set(i);let o=r===`airplay`?`media-airplay-request`:`media-google-cast-request`;if(a)this.#f(o,e);else{let t=this.#e.queue.peek(o);t&&(e.request=t,e.triggers.add(t))}}"sources-change"(e){let t=this.$state.sources(),n=e.detail;this.$state.sources.set(n),this.#O(t,n,e)}#O(e,t,n){let{qualities:r}=this.#t,i=!1,a=!1;for(let i of e)if(HL(i)&&!t.some(e=>e.src===i.src)){let e=r.getBySrc(i.src);e&&(r[gN.remove](e,n),a=!0)}a&&!r.length&&(this.$state.savedState.set(null),r[gN.reset](n));for(let e of t){if(!HL(e)||r.getBySrc(e.src))continue;let t={id:e.id??e.height+`p`,bitrate:null,codec:null,...e,selected:!1};r[gN.add](t,n),i=!0}i&&!r[sI.enableAuto]&&(this.#w(),r[sI.enableAuto]=this.#w.bind(this),r[sI.setAuto](!0,n))}"source-change"(e){e.isQualityChange=e.originEvent?.type===`quality-change`;let t=e.detail;this.#k(e,e.isQualityChange),this.#n.set(e.type,e),this.$state.source.set(t),this.el?.setAttribute(`aria-busy`,`true`)}#k(e,t=!1){let{audioTracks:n,qualities:r}=this.#t;if(!t){this.#i=[],this.#a=[-1,-1],n[gN.reset](e),r[gN.reset](e),UL(this.$state,t),this.#d();return}UL(this.$state,t),this.#d()}abort(e){let t=this.#n.get(`source-change`);t&&e.triggers.add(t);let n=this.#n.get(`can-load`);n&&!e.triggers.hasType(`can-load`)&&e.triggers.add(n)}"load-start"(e){let t=this.#n.get(`source-change`);t&&e.triggers.add(t)}error(e){this.$state.error.set(e.detail);let t=this.#n.get(`abort`);t&&e.triggers.add(t)}"loaded-metadata"(e){let t=this.#n.get(`load-start`);t&&e.triggers.add(t)}"loaded-data"(e){let t=this.#n.get(`load-start`);t&&e.triggers.add(t)}"can-play"(e){let t=this.#n.get(`loaded-metadata`);t&&e.triggers.add(t),this.#A(e.detail),this.el?.setAttribute(`aria-busy`,`false`)}"can-play-through"(e){this.#A(e.detail);let t=this.#n.get(`can-play`);t&&e.triggers.add(t)}#A(e){let{seekable:t,buffered:n,intrinsicDuration:r,canPlay:i}=this.$state;i.set(!0),n.set(e.buffered),t.set(e.seekable);let a=qN(e.seekable)??1/0;r.set(a)}"duration-change"(e){let{live:t,intrinsicDuration:n,providedDuration:r,clipEndTime:i,ended:a}=this.$state,o=e.detail;if(!t()){let t=Number.isNaN(o)?0:o;n.set(t),a()&&this.#N(e)}(r()>0||i()>0)&&e.stopImmediatePropagation()}progress(e){let{buffered:t,seekable:n}=this.$state,{buffered:r,seekable:i}=e.detail,a=qN(r),o=r.length!==t().length,s=a!==qN(t()),c=qN(i),l=i.length!==n().length,u=c!==qN(n());(o||s)&&t.set(r),(l||u)&&n.set(i)}play(e){let{paused:t,autoPlayError:n,ended:r,autoPlaying:i,playsInline:a,pointer:o,muted:s,viewType:c,live:l,userBehindLiveEdge:u}=this.$state;if(this.#j(),!t()){e.stopImmediatePropagation();return}e.autoPlay=i();let d=this.#n.get(`waiting`);d&&e.triggers.add(d),this.#f(`media-play-request`,e),this.#n.set(`play`,e),t.set(!1),n.set(null),e.autoPlay&&(this.handle(this.createEvent(`auto-play`,{detail:{muted:s()},trigger:e})),i.set(!1)),(r()||this.#e.replaying)&&(this.#e.replaying=!1,r.set(!1),this.handle(this.createEvent(`replay`,{trigger:e}))),!a()&&c()===`video`&&o()===`coarse`&&this.#t.remote.enterFullscreen(`prefer-media`,e),l()&&!u()&&this.#t.remote.seekToLiveEdge(e)}#j(e){if(!J(this.#t.$provider))return;let{ended:t,seekableStart:n,clipEndTime:r,currentTime:i,realCurrentTime:a,duration:o}=this.$state,s=t()||a()<n()||r()>0&&a()>=r()||Math.abs(i()-o())<.1;return s&&this.dispatch(`media-seek-request`,{detail:n(),trigger:e}),s}"play-fail"(e){let{muted:t,autoPlaying:n}=this.$state,r=this.#n.get(`play`);r&&e.triggers.add(r),this.#f(`media-play-request`,e);let{paused:i,playing:a}=this.$state;i.set(!0),a.set(!1),this.#d(),this.#n.set(`play-fail`,e),e.autoPlay&&(this.handle(this.createEvent(`auto-play-fail`,{detail:{muted:t(),error:e.detail},trigger:e})),n.set(!1))}playing(e){let t=this.#n.get(`play`),n=this.#n.get(`seeked`);t?e.triggers.add(t):n&&e.triggers.add(n),setTimeout(()=>this.#d(),0);let{paused:r,playing:i,live:a,liveSyncPosition:o,seekableEnd:s,started:c,currentTime:l,seeking:u,ended:d}=this.$state;if(r.set(!1),i.set(!0),u.set(!1),d.set(!1),this.#e.looping){this.#e.looping=!1;return}if(a()&&!c()&&l()===0){let e=o()??s()-2;Number.isFinite(e)&&this.#t.$provider().setCurrentTime(e)}this.started(e)}started(e){let{started:t}=this.$state;t()||(t.set(!0),this.handle(this.createEvent(`started`,{trigger:e})))}pause(e){this.el?.isConnected||(this.#c=!0),this.#f(`media-pause-request`,e);let t=this.#n.get(`seeked`);t&&e.triggers.add(t);let{paused:n,playing:r}=this.$state;n.set(!0),r.set(!1),this.#r&&setTimeout(()=>{this.handle(this.createEvent(`end`,{trigger:e})),this.#r=!1},0),this.#d()}"time-change"(e){if(this.#e.looping){e.stopImmediatePropagation();return}let{waiting:t,played:n,clipEndTime:r,realCurrentTime:i,currentTime:a}=this.$state,o=e.detail,s=r();i.set(o),this.#M(),t.set(!1);for(let t of this.#t.textTracks)t[NF.updateActiveCues](o,e);s>0&&o>=s&&(this.#r=!0,this.dispatch(`media-pause-request`,{trigger:e})),this.#P(),this.dispatch(`time-update`,{detail:{currentTime:a(),played:n()},trigger:e})}#M(){let{currentTime:e,played:t,paused:n}=this.$state;n()||(this.#a=ube(this.#i,this.#a,e()),t.set(new JN(this.#i)))}#N(e){let{clipStartTime:t,clipEndTime:n,duration:r}=this.$state;t()>0||n()>0||this.handle(this.createEvent(`time-change`,{detail:r(),trigger:e}))}#P(){let{storage:e}=this.#t,{canPlay:t,realCurrentTime:n}=this.$state;t()&&e?.setTime?.(n())}"audio-gain-change"(e){let{storage:t}=this.#t,{canPlay:n,audioGain:r}=this.$state;r.set(e.detail),this.#f(`media-audio-gain-change-request`,e),n()&&t?.setAudioGain?.(r())}"volume-change"(e){let{storage:t}=this.#t,{volume:n,muted:r,canPlay:i}=this.$state,a=e.detail;n.set(a.volume),r.set(a.muted||a.volume===0),this.#f(`media-volume-change-request`,e),this.#f(a.muted?`media-mute-request`:`media-unmute-request`,e),i()&&(t?.setVolume?.(n()),t?.setMuted?.(r()))}seeking=YM(e=>{let{seeking:t,realCurrentTime:n,paused:r}=this.$state;t.set(!0),n.set(e.detail),this.#f(`media-seeking-request`,e),r()&&(this.#s=e,this.#F()),this.#a=[-1,-1]},150,{leading:!0});seeked(e){let{seeking:t,currentTime:n,realCurrentTime:r,paused:i,seekableEnd:a,ended:o,live:s}=this.$state;if(this.#e.seeking)t.set(!0),e.stopImmediatePropagation();else if(t()){let n=this.#n.get(`waiting`);n&&e.triggers.add(n);let a=this.#n.get(`seeking`);a&&!e.triggers.has(a)&&e.triggers.add(a),i()&&this.#L(),t.set(!1),r.set(e.detail),this.#f(`media-seek-request`,e);let o=e?.originEvent;o?.isTrusted&&!(o instanceof MessageEvent)&&!/seek/.test(o.type)&&this.started(e)}s()||(Math.floor(n())===Math.floor(a())?this.end(e):o.set(!1))}waiting(e){this.#o||this.#e.seeking||(e.stopImmediatePropagation(),this.#s=e,this.#F())}#F=XM(()=>{if(!this.#s)return;this.#o=!0;let{waiting:e,playing:t}=this.$state;e.set(!0),t.set(!1);let n=this.createEvent(`waiting`,{trigger:this.#s});this.#n.set(`waiting`,n),this.dispatch(n),this.#s=void 0,this.#o=!1},300);end(e){let{loop:t,ended:n}=this.$state;if(!(!t()&&n())){if(t()){setTimeout(()=>{requestAnimationFrame(()=>{this.#j(e),this.dispatch(`media-loop-request`,{trigger:e})})},10);return}setTimeout(()=>this.#I(e),0)}}#I(e){let{storage:t}=this.#t,{paused:n,seeking:r,ended:i,duration:a}=this.$state;this.#N(e),n()||this.dispatch(`pause`,{trigger:e}),r()&&this.dispatch(`seeked`,{detail:a(),trigger:e}),i.set(!0),this.#d(),t?.setTime?.(a(),!0),this.dispatch(`ended`,{trigger:e})}#L(){this.#F.cancel(),this.$state.waiting.set(!1)}"fullscreen-change"(e){let t=e.detail;this.$state.fullscreen.set(t),this.#f(t?`media-enter-fullscreen-request`:`media-exit-fullscreen-request`,e)}"fullscreen-error"(e){this.#f(`media-enter-fullscreen-request`,e),this.#f(`media-exit-fullscreen-request`,e)}"orientation-change"(e){let t=e.detail.lock;this.#f(t?`media-orientation-lock-request`:`media-orientation-unlock-request`,e)}"picture-in-picture-change"(e){let t=e.detail;this.$state.pictureInPicture.set(t),this.#f(t?`media-enter-pip-request`:`media-exit-pip-request`,e)}"picture-in-picture-error"(e){this.#f(`media-enter-pip-request`,e),this.#f(`media-exit-pip-request`,e)}"title-change"(e){e.trigger&&(e.stopImmediatePropagation(),this.$state.inferredTitle.set(e.detail))}"poster-change"(e){e.trigger&&(e.stopImmediatePropagation(),this.$state.inferredPoster.set(e.detail))}},RR=class extends pR{onSetup(){this.#e();let e=[this.#n,this.#i,this.#d,this.#f,this.#o,this.#c,this.#l,this.#p,this.#h,this.#m,this.#a,this.#u,this.#s,this.#t,this.#r];for(let t of e)Y(t.bind(this))}#e(){let e={duration:`providedDuration`,loop:`providedLoop`,poster:`providedPoster`,streamType:`providedStreamType`,title:`providedTitle`,viewType:`providedViewType`},t=new Set([`currentTime`,`paused`,`playbackRate`,`volume`]);for(let n of Object.keys(this.$props))t.has(n)||this.$state[e[n]??n]?.set(this.$props[n]());this.$state.muted.set(this.$props.muted()||this.$props.volume()===0)}#t(){let{viewType:e,streamType:t,title:n,poster:r,loop:i}=this.$props,a=this.$state;a.providedPoster.set(r()),a.providedStreamType.set(t()),a.providedViewType.set(e()),a.providedTitle.set(n()),a.providedLoop.set(i())}#n(){let{artist:e,artwork:t}=this.$props;this.$state.artist.set(e()),this.$state.artwork.set(t())}#r(){let{title:e}=this.$state;this.dispatch(`title-change`,{detail:e()})}#i(){let e=this.$props.autoPlay()||this.$props.autoplay();this.$state.autoPlay.set(e),this.dispatch(`auto-play-change`,{detail:e})}#a(){let e=this.$state.loop();this.dispatch(`loop-change`,{detail:e})}#o(){let e=this.$props.controls();this.$state.controls.set(e)}#s(){let{poster:e}=this.$state;this.dispatch(`poster-change`,{detail:e()})}#c(){let e=this.$props.crossOrigin()??this.$props.crossorigin(),t=e===!0?``:e;this.$state.crossOrigin.set(t)}#l(){let{duration:e}=this.$props;this.dispatch(`media-duration-change-request`,{detail:e()})}#u(){let e=this.$props.playsInline()||this.$props.playsinline();this.$state.playsInline.set(e),this.dispatch(`plays-inline-change`,{detail:e})}#d(){let{clipStartTime:e}=this.$props;this.dispatch(`media-clip-start-change-request`,{detail:e()})}#f(){let{clipEndTime:e}=this.$props;this.dispatch(`media-clip-end-change-request`,{detail:e()})}#p(){this.dispatch(`live-change`,{detail:this.$state.live()})}#m(){this.$state.liveEdgeTolerance.set(this.$props.liveEdgeTolerance()),this.$state.minLiveDVRWindow.set(this.$props.minLiveDVRWindow())}#h(){this.dispatch(`live-edge-change`,{detail:this.$state.liveEdge()})}},zR=[`play`,`pause`,`seekforward`,`seekbackward`,`seekto`],BR=class extends pR{onConnect(){Y(this.#t.bind(this)),Y(this.#n.bind(this));let e=this.#r.bind(this);for(let t of zR)navigator.mediaSession.setActionHandler(t,e);xj(this.#e.bind(this))}#e(){for(let e of zR)navigator.mediaSession.setActionHandler(e,null)}#t(){let{title:e,artist:t,artwork:n,poster:r}=this.$state;navigator.mediaSession.metadata=new MediaMetadata({title:e(),artist:t(),artwork:n()??[{src:r()}]})}#n(){let{canPlay:e,paused:t}=this.$state;navigator.mediaSession.playbackState=e()?t()?`paused`:`playing`:`none`}#r(e){let t=new FM(`media-session-action`,{detail:e});switch(e.action){case`play`:this.dispatch(`media-play-request`,{trigger:t});break;case`pause`:this.dispatch(`media-pause-request`,{trigger:t});break;case`seekto`:case`seekforward`:case`seekbackward`:this.dispatch(`media-seek-request`,{detail:Hj(e.seekTime)?e.seekTime:this.$state.currentTime()+(e.seekOffset??(e.action===`seekforward`?10:-10)),trigger:t});break}}},VR=class e extends KM{static props=kR;static state=tR;#e;#t;#n;canPlayQueue=new NR;remoteControl;get#r(){return this.#e.$provider()}get#i(){return this.$props}constructor(){super(),new RR;let e={player:this,qualities:new fR,audioTracks:new cR,storage:null,$provider:Ij(null),$providerSetup:Ij(!1),$props:this.$props,$state:this.$state};e.remote=this.remoteControl=new iR(void 0),e.remote.setPlayer(this),e.textTracks=new dR,e.textTracks[NF.crossOrigin]=this.$state.crossOrigin,e.textRenderers=new uR(e),e.ariaKeys={},this.#e=e,tM(RF,e),this.orientation=new eR,new hI,new vR(e);let t=new FR;this.#t=new LR(t,e),this.#n=new PR(this.#t,t,e),e.delegate=new jR(this.#t.handle.bind(this.#t),e),e.notify=e.delegate.notify.bind(e.delegate),typeof navigator<`u`&&`mediaSession`in navigator&&new BR,new AR(`load`,this.startLoading.bind(this)),new AR(`posterLoad`,this.startLoadingPoster.bind(this))}onSetup(){this.#l(),Y(this.#c.bind(this)),Y(this.#h.bind(this)),Y(this.#p.bind(this)),Y(this.#y.bind(this)),Y(this.#_.bind(this)),Y(this.#C.bind(this)),Y(this.#x.bind(this))}onAttach(e){e.setAttribute(`data-media-player`,``),GF(e,`tabindex`,`0`),GF(e,`role`,`region`),Y(this.#T.bind(this)),Y(this.#o.bind(this)),Y(this.#s.bind(this)),qj(e,`find-media-player`,this.#u.bind(this))}onConnect(e){PN&&Qj(e,`data-iphone`,``);let t=window.matchMedia(`(pointer: coarse)`);this.#f(t),t.onchange=this.#f.bind(this);let n=new ResizeObserver(dM(this.#d.bind(this)));n.observe(e),Y(this.#d.bind(this)),this.dispatch(`media-player-connect`,{detail:this,bubbles:!0,composed:!0}),xj(()=>{n.disconnect(),t.onchange=null})}onDestroy(){this.#e.player=null,this.canPlayQueue.reset()}#a=!1;#o(){let e=this.$el,{ariaLabel:t}=this.$props,{title:n,live:r,viewType:i,providedTitle:a}=this.$state,o=r(),s=Jye(i()),c=s===`Unknown`?o?`Live`:`Media`:`${o?`Live `:``}${s}`,l=n(),u=t()||`${c} Player`+(l?` - ${l}`:``);Qj(this.el,`aria-label`,u),e?.hasAttribute(`title`)&&(this.#a=!0,e?.removeAttribute(`title`))}#s(){let e=this.orientation.landscape?`landscape`:`portrait`;this.$state.orientation.set(e),Qj(this.el,`data-orientation`,e),this.#d()}#c(){this.$state.canPlay()&&this.#r?this.canPlayQueue.start():this.canPlayQueue.stop()}#l(){if(e[DR]){this.setAttributes(e[DR]);return}let t={"data-load":function(){return this.$props.load()},"data-captions":function(){let e=this.$state.textTrack();return!!e&&MF(e)},"data-ios-controls":function(){return this.$state.iOSControls()},"data-controls":function(){return this.controls.showing},"data-buffering":function(){let{canLoad:e,canPlay:t,waiting:n}=this.$state;return e()&&(!t()||n())},"data-error":function(){let{error:e}=this.$state;return!!e()},"data-autoplay-error":function(){let{autoPlayError:e}=this.$state;return!!e()}},n={autoPlay:`autoplay`,canAirPlay:`can-airplay`,canPictureInPicture:`can-pip`,pictureInPicture:`pip`,playsInline:`playsinline`,remotePlaybackState:`remote-state`,remotePlaybackType:`remote-type`,isAirPlayConnected:`airplay`,isGoogleCastConnected:`google-cast`};for(let e of OR){let r=`data-`+(n[e]??sM(e));t[r]=function(){return this.$state[e]()}}delete t.title,e[DR]=t,this.setAttributes(t)}#u(e){e.detail(this)}#d(){if(!this.el)return;let e=this.el.clientWidth,t=this.el.clientHeight;this.$state.width.set(e),this.$state.height.set(t),$j(this.el,`--player-width`,e+`px`),$j(this.el,`--player-height`,t+`px`)}#f(e){let t=e.matches?`coarse`:`fine`;Qj(this.el,`data-pointer`,t),this.$state.pointer.set(t),this.#d()}get provider(){return this.#r}get controls(){return this.#n.controls}set controls(e){this.#i.controls.set(e)}orientation;get title(){return J(this.$state.title)}set title(e){if(this.#a){this.#a=!1;return}this.#i.title.set(e)}get qualities(){return this.#e.qualities}get audioTracks(){return this.#e.audioTracks}get textTracks(){return this.#e.textTracks}get textRenderers(){return this.#e.textRenderers}get duration(){return this.$state.duration()}set duration(e){this.#i.duration.set(e)}get paused(){return J(this.$state.paused)}set paused(e){this.#m(e)}#p(){this.#m(this.$props.paused())}#m(e){e?this.canPlayQueue.enqueue(`paused`,()=>this.#n.pause()):this.canPlayQueue.enqueue(`paused`,()=>this.#n.play())}get muted(){return J(this.$state.muted)}set muted(e){this.#g(e)}#h(){this.#g(this.$props.muted())}#g(e){this.canPlayQueue.enqueue(`muted`,()=>{J(()=>{this.#r&&this.#r.setMuted(e)})})}get currentTime(){return J(this.$state.currentTime)}set currentTime(e){this.#v(e)}#_(){this.#v(this.$props.currentTime())}#v(e){this.canPlayQueue.enqueue(`currentTime`,()=>{let{currentTime:t}=this.$state;e!==J(t)&&J(()=>{if(!this.#r)return;let t=WL(e,this.$state);Number.isFinite(t)&&this.#r.setCurrentTime(t)})})}get volume(){return J(this.$state.volume)}set volume(e){this.#b(e)}#y(){this.#b(this.$props.volume())}#b(e){let t=HF(0,e,1);this.canPlayQueue.enqueue(`volume`,()=>{this.#r&&this.#r.setVolume(t)})}get playbackRate(){return J(this.$state.playbackRate)}set playbackRate(e){this.#S(e)}#x(){this.#S(this.$props.playbackRate())}#S(e){this.canPlayQueue.enqueue(`rate`,()=>{this.#r&&this.#r.setPlaybackRate?.(e)})}#C(){this.#w(this.$props.playsInline())}#w(e){this.canPlayQueue.enqueue(`playsinline`,()=>{this.#r&&this.#r.setPlaysInline?.(e)})}#T(){let e=this.$props.storage(),t=Uj(e)?new aR:e;if(t?.onChange){let{source:n}=this.$state,r=Uj(e)?e:this.el?.id,i=Lj(this.#E.bind(this));Y(()=>t.onChange(n(),i(),r||void 0))}this.#e.storage=t,this.#e.textTracks.setStorage(t),xj(()=>{t?.onDestroy?.(),this.#e.storage=null,this.#e.textTracks.setStorage(null)})}#E(){let{clipStartTime:e,clipEndTime:t}=this.$props,{source:n}=this.$state,r=n();return r.src?`${r.src}:${e()}:${t()}`:null}async play(e){return this.#n.play(e)}async pause(e){return this.#n.pause(e)}async enterFullscreen(e,t){return this.#n.enterFullscreen(e,t)}async exitFullscreen(e,t){return this.#n.exitFullscreen(e,t)}enterPictureInPicture(e){return this.#n.enterPictureInPicture(e)}exitPictureInPicture(e){return this.#n.exitPictureInPicture(e)}seekToLiveEdge(e){this.#n.seekToLiveEdge(e)}startLoading(e){this.#e.notify(`can-load`,void 0,e)}startLoadingPoster(e){this.#e.notify(`can-load-poster`,void 0,e)}requestAirPlay(e){return this.#n.requestAirPlay(e)}requestGoogleCast(e){return this.#n.requestGoogleCast(e)}setAudioGain(e,t){return this.#n.setAudioGain(e,t)}destroy(){super.destroy(),this.#e.remote.setPlayer(null),this.dispatch(`destroy`)}},HR=VR.prototype,iM(HR,`canPlayQueue`),iM(HR,`remoteControl`),iM(HR,`provider`),iM(HR,`controls`),iM(HR,`orientation`),iM(HR,`title`),iM(HR,`qualities`),iM(HR,`audioTracks`),iM(HR,`textTracks`),iM(HR,`textRenderers`),iM(HR,`duration`),iM(HR,`paused`),iM(HR,`muted`),iM(HR,`currentTime`),iM(HR,`volume`),iM(HR,`playbackRate`),aM(HR,`play`),aM(HR,`pause`),aM(HR,`enterFullscreen`),aM(HR,`exitFullscreen`),aM(HR,`enterPictureInPicture`),aM(HR,`exitPictureInPicture`),aM(HR,`seekToLiveEdge`),aM(HR,`startLoading`),aM(HR,`startLoadingPoster`),aM(HR,`requestAirPlay`),aM(HR,`requestGoogleCast`),aM(HR,`setAudioGain`),UR=new Map,WR=class{#e=!1;#t;#n;#r;#i;constructor(e,t,n,r=[]){this.#n=e,this.#r=t,this.#i=n;let i=new wR,a=new CR,o=new SR,s=new xR,c=[new ER,new TR];this.#t=Lj(()=>{let e=t.$state.remotePlaybackLoader(),n=t.$props.preferNativeHLS()?[o,s,i,a,...c,...r]:[a,o,s,i,...c,...r];return e?[e,...n]:n});let{$state:l}=t;l.sources.set(JL(t.$props.src()));for(let e of l.sources()){let n=this.#t().find(t=>t.canPlay(e));if(!n)continue;let r=n.mediaType(e);t.$state.source.set(e),t.$state.mediaType.set(r),t.$state.inferredViewType.set(r),this.#i.set(n),this.#e=!0;break}}connect(){let e=this.#i();this.#e&&=(this.#c(this.#r.$state.source(),e),this.#l(e),!1),Y(this.#a.bind(this)),Y(this.#o.bind(this)),Y(this.#u.bind(this)),Y(this.#d.bind(this)),Y(this.#f.bind(this))}#a(){this.#r.notify(`sources-change`,[...JL(this.#r.$props.src()),...this.#n()])}#o(){let{$state:e}=this.#r,t=e.sources(),n=J(e.source),r=this.#s(n,t);if(t[0]?.src&&!r.src&&!r.type){let{crossOrigin:n}=e,r=QN(n()),i=new AbortController;return Promise.all(t.map(e=>Uj(e.src)&&e.type===`?`?fetch(e.src,{method:`HEAD`,credentials:r,signal:i.signal}).then(t=>(e.type=t.headers.get(`content-type`)||`??`,UR.set(e.src,e.type),e)).catch(()=>e):e)).then(t=>{if(i.signal.aborted)return;let n=this.#s(J(e.source),t);_j(),n.src||this.#r.notify(`error`,{message:`Failed to load resource.`,code:4})}),()=>i.abort()}_j()}#s(e,t){let n={src:``,type:``},r=null,i=new FM(`sources-change`,{detail:{sources:t}}),a=this.#t(),{started:o,paused:s,currentTime:c,quality:l,savedState:u}=this.#r.$state;for(let e of t){let t=a.find(t=>t.canPlay(e));if(t){n=e,r=t;break}}if(HL(n)){let e=l(),r=t.find(t=>t.src===e?.src);J(o)?u.set({paused:J(s),currentTime:J(c)}):u.set(null),r&&(n=r,i=new FM(`quality-change`,{detail:{quality:e}}))}return XL(e,n)||this.#c(n,r,i),r!==J(this.#i)&&this.#l(r,i),n}#c(e,t,n){this.#r.notify(`source-change`,e,n),this.#r.notify(`media-type-change`,t?.mediaType(e)||`unknown`,n)}#l(e,t){this.#r.$providerSetup.set(!1),this.#r.notify(`provider-change`,null,t),e&&J(()=>e.preconnect?.(this.#r)),this.#i.set(e),this.#r.notify(`provider-loader-change`,e,t)}#u(){let e=this.#r.$provider();if(!(!e||J(this.#r.$providerSetup))){if(this.#r.$state.canLoad()){yj(()=>e.setup(),e.scope),this.#r.$providerSetup.set(!0);return}J(()=>e.preconnect?.())}}#d(){if(!this.#r.$providerSetup())return;let e=this.#r.$provider(),t=this.#r.$state.source(),n=J(this.#r.$state.crossOrigin),r=J(this.#r.$props.preferNativeHLS);if(!XL(e?.currentSrc,t)){if(this.#r.$state.canLoad()){let i=new AbortController;return kN(t)?(r||!TN())&&qL(t.src,{credentials:QN(n),signal:i.signal}).then(e=>{this.#r.notify(`stream-type-change`,e)}).catch(Rj):AN(t)?Ixe(t.src,{credentials:QN(n),signal:i.signal}).then(e=>{this.#r.notify(`stream-type-change`,e)}).catch(Rj):this.#r.notify(`stream-type-change`,`on-demand`),J(()=>{let n=J(this.#r.$state.preload);return e?.loadSource(t,n).catch(e=>{})}),()=>i.abort()}try{Uj(t.src)&&XN(new URL(t.src).origin)}catch{}}}#f(){let e=this.#i(),{providedPoster:t,source:n,canLoadPoster:r}=this.#r.$state;if(!e||!e.loadPoster||!n()||!r()||t())return;let i=new AbortController,a=new FM(`source-change`,{detail:n});return e.loadPoster(n(),this.#r,i).then(e=>{this.#r.notify(`poster-change`,e||``,a)}).catch(()=>{this.#r.notify(`poster-change`,``,a)}),()=>{i.abort()}}},GR=class{#e;#t;#n=[];constructor(e,t){this.#e=e,this.#t=t,Y(this.#r.bind(this))}#r(){let e=this.#e();for(let t of this.#n)if(!e.some(e=>e.id===t.id)){let e=t.id&&this.#t.textTracks.getById(t.id);e&&this.#t.textTracks.remove(e)}for(let t of e){let e=t.id||PF.createId(t);this.#t.textTracks.getById(e)||(t.id=e,this.#t.textTracks.add(t))}this.#n=e}},KR=class extends KM{static props={loaders:[]};static state=new qM({loader:null});#e;#t;#n=Ij([]);#r=Ij([]);#i=null;#a=null;#o=!1;onSetup(){this.#e=LF(),this.#t=new WR(this.#n,this.#e,this.$state.loader,this.$props.loaders())}onAttach(e){e.setAttribute(`data-media-provider`,``)}onConnect(e){this.#o=!0,this.#t.connect(),new GR(this.#r,this.#e);let t=new ResizeObserver(dM(this.#u.bind(this)));t.observe(e);let n=new MutationObserver(this.#d.bind(this));n.observe(e,{attributes:!0,childList:!0}),this.#u(),this.#d(),this.#a&&this.load(this.#a),xj(()=>{this.#o=!1,t.disconnect(),n.disconnect()})}#s=-1;load(e){this.#a=e||null,e?.setAttribute(`aria-hidden`,`true`),this.#o&&(window.cancelAnimationFrame(this.#s),this.#s=requestAnimationFrame(()=>this.#c(e)),xj(()=>{window.cancelAnimationFrame(this.#s)}))}#c(e){if(!this.scope)return;let t=this.$state.loader(),{$provider:n}=this.#e;this.#i===t&&t?.target===e&&J(n)||(this.#l(),this.#i=t,t&&(t.target=e||null),!(!t||!e)&&t.load(this.#e).then(e=>{this.scope&&J(this.$state.loader)===t&&this.#e.notify(`provider-change`,e)}))}onDestroy(){this.#i=null,this.#l()}#l(){this.#e?.notify(`provider-change`,null)}#u(){if(!this.el)return;let{player:e,$state:t}=this.#e,n=this.el.offsetWidth,r=this.el.offsetHeight;e&&(t.mediaWidth.set(n),t.mediaHeight.set(r),e.el&&($j(e.el,`--media-width`,n+`px`),$j(e.el,`--media-height`,r+`px`)))}#d(){let e=[],t=[],n=this.el.children;for(let r of n)if(!r.hasAttribute(`data-vds`)){if(r instanceof HTMLSourceElement){let t={id:r.id,src:r.src,type:r.type};for(let e of[`id`,`src`,`width`,`height`,`bitrate`,`codec`]){let n=r.getAttribute(`data-${e}`);Uj(n)&&(t[e]=/id|src|codec/.test(e)?n:Number(n))}e.push(t)}else if(r instanceof HTMLTrackElement){let e={src:r.src,kind:r.track.kind,language:r.srclang,label:r.label,default:r.default,type:r.getAttribute(`data-type`)};t.push({id:r.id||PF.createId(e),...e})}}this.#n.set(e),this.#r.set(t),_j()}},qR=KR.prototype,aM(qR,`load`)}));function JR(e,t){return[...e].sort(t?Vxe:Bxe)}function Bxe(e,t){return e.height===t.height?(e.bitrate??0)-(t.bitrate??0):e.height-t.height}function Vxe(e,t){return t.height===e.height?(t.bitrate??0)-(e.bitrate??0):t.height-e.height}function YR(e,t){let n=String(e),r=n.length;if(r<t){let n=t-r;return`${`0`.repeat(n)}${e}`}return n}function XR(e){return{hours:Math.trunc(e/3600),minutes:Math.trunc(e%3600/60),seconds:Math.trunc(e%60),fraction:Number((e-Math.trunc(e)).toPrecision(3))}}function ZR(e,{padHrs:t=null,padMins:n=null,showHrs:r=!1,showMs:i=!1}={}){let{hours:a,minutes:o,seconds:s,fraction:c}=XR(e),l=t?YR(a,2):a,u=`${n||zj(n)&&e>=3600?YR(o,2):o}:${YR(s,2)}${i&&c>0?`.${String(c).replace(/^0?\./,``)}`:``}`;return a>0||r?`${l}:${u}`:u}function QR(e){let t=[],{hours:n,minutes:r,seconds:i}=XR(e);return n>0&&t.push(`${n} hour`),r>0&&t.push(`${r} min`),(i>0||t.length===0)&&t.push(`${i} sec`),t.join(` `)}function $R(e,t,n){let r=t-e,i=n-e;return r>0?i/r:0}function Hxe(e,t,n,r){return HF(e,BF(n,VF(r)),t)}function Uxe(e,t,n,r){let i=HF(0,n,1),a=(t-e)*i/r;return e+r*Math.round(a)}function Wxe(e,t){let n=`${e}::${t}`;if(Ez.has(n)){let e=Ez.get(n);Ez.delete(n),Ez.set(n,e);return}let r=new Image;if(r.decoding=`async`,r.crossOrigin=t,r.src=e,Ez.set(n,r),Ez.size>Tz){let e=Ez.keys().next().value;Ez.delete(e)}}function Gxe(e,{clamp:t,offset:n,orientation:r}){let i=getComputedStyle(e),a=parseFloat(i.width),o=parseFloat(i.height),s={top:null,right:null,bottom:null,left:null};if(s[r===`horizontal`?`bottom`:`left`]=`calc(100% + var(--media-slider-preview-offset, ${n}px))`,r===`horizontal`){let e=a/2;t?s.left=`min(${`max(0px, calc(var(--slider-pointer) - ${e}px))`}, ${`calc(100% - ${a}px)`})`:s.left=`calc(var(--slider-pointer) - ${e}px)`}else{let e=o/2;t?s.bottom=`min(${`max(${e}px, calc(var(--slider-pointer) - ${e}px))`}, ${`calc(100% - ${o}px)`})`:s.bottom=`calc(var(--slider-pointer) - ${e}px)`}Object.assign(e.style,s)}function Kxe(e,t){let n=nN(e,t);for(let{el:e,top:r,left:i}of n)e.scroll({top:r,left:i,behavior:t.behavior})}function qxe(e,t={}){Kxe(e,{scrollMode:`if-needed`,block:`center`,inline:`center`,...t})}function ez(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var tz,nz,rz,iz,az,oz,sz,cz,lz,uz,dz,fz,pz,mz,hz,gz,_z,vz,yz,bz,xz,Sz,Cz,wz,Tz,Ez,Dz,Oz,kz,Az,jz,Mz,Nz,Pz,Fz,Iz,Lz,Rz,zz,Bz,Vz,Hz,Uz,Wz,Gz,Kz,qz,Jz,Yz,Xz,Zz,Qz,$z,eB,tB,nB,rB,iB,aB=F((()=>{hN(),eP(),IF(),rP(),zF(),UF(),oI(),dI(),gI(),tz=class extends GM{#e;constructor(e){super(),this.#e=e}onAttach(e){let{$props:t,ariaKeys:n}=LF(),r=e.getAttribute(`aria-keyshortcuts`);if(r){n[this.#e]=r,xj(()=>{delete n[this.#e]});return}let i=t.keyShortcuts()[this.#e];if(i){let t=Kj(i)?i.join(` `):Uj(i)?i:i?.keys;e.setAttribute(`aria-keyshortcuts`,Kj(t)?t.join(` `):t)}}},nz=class extends GM{#e;constructor(e){super(),this.#e=e,Y(this.#t.bind(this))}onDestroy(){this.#i?.(),this.#i=null}#t(){let e=this.#e.trigger();if(!e){this.hide();return}let t=this.show.bind(this),n=this.hide.bind(this);this.#e.listen(e,t,n)}#n=-1;#r=-1;#i=null;show(e){this.#a(),window.cancelAnimationFrame(this.#r),this.#r=-1,this.#i?.(),this.#i=null,this.#n=window.setTimeout(()=>{this.#n=-1;let t=this.#e.content();t&&t.style.removeProperty(`display`),J(()=>this.#e.onChange(!0,e))},this.#e.showDelay?.()??0)}hide(e){this.#a(),J(()=>this.#e.onChange(!1,e)),this.#r=requestAnimationFrame(()=>{this.#a(),this.#r=-1;let e=this.#e.content();if(e){let t=()=>{e.style.display=`none`,this.#i=null};if(Hbe(e)){this.#i?.();let n=qj(e,`animationend`,t,{once:!0});this.#i=n}else t()}})}#a(){window.clearTimeout(this.#n),this.#n=-1}},rz=class extends GM{static props={disabled:!1};#e;constructor(e){super(),this.#e=e,new hI,e.keyShortcut&&new tz(e.keyShortcut)}onSetup(){let{disabled:e}=this.$props;this.setAttributes({"data-pressed":this.#e.isPresssed,"aria-pressed":this.#t.bind(this),"aria-disabled":()=>e()?`true`:null})}onAttach(e){GF(e,`tabindex`,`0`),GF(e,`role`,`button`),GF(e,`type`,`button`)}onConnect(e){let t=XF(e,this.#r.bind(this));for(let e of[`click`,`touchstart`])t.add(e,this.#i.bind(this),{passive:!0})}#t(){return cM(this.#e.isPresssed())}#n(e){Lye(this.#e.isPresssed)&&this.#e.isPresssed.set(e=>!e)}#r(e){if(this.$props.disabled()||this.el.hasAttribute(`data-disabled`)){e.preventDefault(),e.stopImmediatePropagation();return}e.preventDefault(),(this.#e.onPress??this.#n).call(this,e)}#i(e){this.$props.disabled()&&(e.preventDefault(),e.stopImmediatePropagation())}},iz=class extends KM{static props=rz.props;#e;constructor(){super(),new rz({isPresssed:this.#n.bind(this),onPress:this.#t.bind(this)})}onSetup(){this.#e=LF();let{canAirPlay:e,isAirPlayConnected:t}=this.#e.$state;this.setAttributes({"data-active":t,"data-supported":e,"data-state":this.#r.bind(this),"aria-hidden":iI(()=>!e())})}onAttach(e){e.setAttribute(`data-media-tooltip`,`airplay`),KF(e,this.#i.bind(this))}#t(e){this.#e.remote.requestAirPlay(e)}#n(){let{remotePlaybackType:e,remotePlaybackState:t}=this.#e.$state;return e()===`airplay`&&t()!==`disconnected`}#r(){let{remotePlaybackType:e,remotePlaybackState:t}=this.#e.$state;return e()===`airplay`&&t()}#i(){let{remotePlaybackState:e}=this.#e.$state;return`AirPlay ${e()}`}},az=class extends KM{static props=rz.props;#e;constructor(){super(),new rz({isPresssed:this.#n.bind(this),keyShortcut:`togglePaused`,onPress:this.#t.bind(this)})}onSetup(){this.#e=LF();let{paused:e,ended:t}=this.#e.$state;this.setAttributes({"data-paused":e,"data-ended":t})}onAttach(e){e.setAttribute(`data-media-tooltip`,`play`),KF(e,`Play`)}#t(e){let t=this.#e.remote;this.#n()?t.pause(e):t.play(e)}#n(){let{paused:e}=this.#e.$state;return!e()}},oz=class extends KM{static props=rz.props;#e;constructor(){super(),new rz({isPresssed:this.#n.bind(this),keyShortcut:`toggleCaptions`,onPress:this.#t.bind(this)})}onSetup(){this.#e=LF(),this.setAttributes({"data-active":this.#n.bind(this),"data-supported":()=>!this.#r(),"aria-hidden":iI(this.#r.bind(this))})}onAttach(e){e.setAttribute(`data-media-tooltip`,`caption`),KF(e,`Captions`)}#t(e){this.#e.remote.toggleCaptions(e)}#n(){let{textTrack:e}=this.#e.$state,t=e();return!!t&&MF(t)}#r(){let{hasCaptions:e}=this.#e.$state;return!e()}},sz=class extends KM{static props={...rz.props,target:`prefer-media`};#e;constructor(){super(),new rz({isPresssed:this.#n.bind(this),keyShortcut:`toggleFullscreen`,onPress:this.#t.bind(this)})}onSetup(){this.#e=LF();let{fullscreen:e}=this.#e.$state,t=this.#r.bind(this);this.setAttributes({"data-active":e,"data-supported":t,"aria-hidden":iI(()=>!t())})}onAttach(e){e.setAttribute(`data-media-tooltip`,`fullscreen`),KF(e,`Fullscreen`)}#t(e){let t=this.#e.remote,n=this.$props.target();this.#n()?t.exitFullscreen(n,e):t.enterFullscreen(n,e)}#n(){let{fullscreen:e}=this.#e.$state;return e()}#r(){let{canFullscreen:e}=this.#e.$state;return e()}},cz=class extends KM{static props=rz.props;#e;constructor(){super(),new rz({isPresssed:this.#n.bind(this),keyShortcut:`toggleMuted`,onPress:this.#t.bind(this)})}onSetup(){this.#e=LF(),this.setAttributes({"data-muted":this.#n.bind(this),"data-state":this.#r.bind(this)})}onAttach(e){e.setAttribute(`data-media-mute-button`,``),e.setAttribute(`data-media-tooltip`,`mute`),KF(e,`Mute`)}#t(e){let t=this.#e.remote;this.#n()?t.unmute(e):t.mute(e)}#n(){let{muted:e,volume:t}=this.#e.$state;return e()||t()===0}#r(){let{muted:e,volume:t}=this.#e.$state,n=t();if(e()||n===0)return`muted`;if(n>=.5)return`high`;if(n<.5)return`low`}},lz=class extends KM{static props=rz.props;#e;constructor(){super(),new rz({isPresssed:this.#n.bind(this),keyShortcut:`togglePictureInPicture`,onPress:this.#t.bind(this)})}onSetup(){this.#e=LF();let{pictureInPicture:e}=this.#e.$state,t=this.#r.bind(this);this.setAttributes({"data-active":e,"data-supported":t,"aria-hidden":iI(()=>!t())})}onAttach(e){e.setAttribute(`data-media-tooltip`,`pip`),KF(e,`PiP`)}#t(e){let t=this.#e.remote;this.#n()?t.exitPictureInPicture(e):t.enterPictureInPicture(e)}#n(){let{pictureInPicture:e}=this.#e.$state;return e()}#r(){let{canPictureInPicture:e}=this.#e.$state;return e()}},uz=class extends KM{static props={disabled:!1,seconds:30};#e;constructor(){super(),new hI}onSetup(){this.#e=LF();let{seeking:e}=this.#e.$state,{seconds:t}=this.$props,n=this.#t.bind(this);this.setAttributes({seconds:t,"data-seeking":e,"data-supported":n,"aria-hidden":iI(()=>!n())})}onAttach(e){GF(e,`tabindex`,`0`),GF(e,`role`,`button`),GF(e,`type`,`button`),e.setAttribute(`data-media-tooltip`,`seek`),KF(e,this.#n.bind(this))}onConnect(e){XF(e,this.#r.bind(this))}#t(){let{canSeek:e}=this.#e.$state;return e()}#n(){let{seconds:e}=this.$props;return`Seek ${e()>0?`forward`:`backward`} ${e()} seconds`}#r(e){let{seconds:t,disabled:n}=this.$props;if(n())return;let{currentTime:r}=this.#e.$state,i=r()+t();this.#e.remote.seek(i,e)}},dz=class extends KM{static props={disabled:!1};#e;constructor(){super(),new hI}onSetup(){this.#e=LF();let{disabled:e}=this.$props,{live:t,liveEdge:n}=this.#e.$state,r=()=>!t();this.setAttributes({"data-edge":n,"data-hidden":r,"aria-disabled":iI(()=>e()||n()),"aria-hidden":iI(r)})}onAttach(e){GF(e,`tabindex`,`0`),GF(e,`role`,`button`),GF(e,`type`,`button`),e.setAttribute(`data-media-tooltip`,`live`)}onConnect(e){XF(e,this.#t.bind(this))}#t(e){let{disabled:t}=this.$props,{liveEdge:n}=this.#e.$state;t()||n()||this.#e.remote.seekToLiveEdge(e)}},fz=new qM({min:0,max:100,value:0,step:1,pointerValue:0,focused:!1,dragging:!1,pointing:!1,hidden:!1,get active(){return this.dragging||this.focused||this.pointing},get fillRate(){return $R(this.min,this.max,this.value)},get fillPercent(){return this.fillRate*100},get pointerRate(){return $R(this.min,this.max,this.pointerValue)},get pointerPercent(){return this.pointerRate*100}}),pz=class extends GM{#e;#t;constructor(e){super(),this.#e=e}onConnect(e){this.#t=new IntersectionObserver(e=>{this.#e.callback?.(e,this.#t)},this.#e),this.#t.observe(e),xj(this.#n.bind(this))}#n(){this.#t?.disconnect(),this.#t=void 0}},mz=eM(),hz=eM(),gz={Left:-1,ArrowLeft:-1,Up:1,ArrowUp:1,Right:1,ArrowRight:1,Down:-1,ArrowDown:-1},_z=class extends GM{#e;#t;#n;constructor(e,t){super(),this.#e=e,this.#t=t}onSetup(){rM(hz)&&(this.#n=nM(hz))}onConnect(e){Y(this.#u.bind(this,e)),Y(this.#d.bind(this,e)),this.#e.swipeGesture&&Y(this.#r.bind(this))}#r(){let{pointer:e}=this.#t.$state;if(e()!==`coarse`||!this.#e.swipeGesture()){this.#i=null,this.#s();return}if(this.#i=this.#t.player.el?.querySelector(`media-provider,[data-media-provider]`),!this.#i){this.#s();return}new RM(this.#i).add(`touchstart`,this.#c.bind(this),{passive:!0}).add(`touchmove`,this.#l.bind(this),{passive:!1})}#i=null;#a=null;#o=null;#s(){this.#a=null,this.#o=null}#c(e){this.#a=e.touches[0]}#l(e){if(zj(this.#a)||ZF(e))return;let t=e.touches[0],n=t.clientX-this.#a.clientX,r=t.clientY-this.#a.clientY,i=this.$state.dragging();!i&&Math.abs(r)>5||i||(e.preventDefault(),Math.abs(n)>20&&(this.#a=t,this.#o=this.$state.value(),this.#b(this.#o,e)))}#u(e){let{hidden:t}=this.$props;qj(e,`focus`,this.#f.bind(this)),!(t()||this.#e.isDisabled())&&new RM(e).add(`keyup`,this.#T.bind(this)).add(`keydown`,this.#w.bind(this)).add(`pointerenter`,this.#g.bind(this)).add(`pointermove`,this.#_.bind(this)).add(`pointerleave`,this.#v.bind(this)).add(`pointerdown`,this.#y.bind(this))}#d(e){this.#e.isDisabled()||!this.$state.dragging()||new RM(document).add(`pointerup`,this.#O.bind(this),{capture:!0}).add(`pointermove`,this.#A.bind(this)).add(`touchmove`,this.#k.bind(this),{passive:!1})}#f(){this.#m(this.$state.value())}#p(e,t){let{value:n,min:r,max:i,dragging:a}=this.$state,o=Math.max(r(),Math.min(e,i()));n.set(o);let s=this.createEvent(`value-change`,{detail:o,trigger:t});if(this.dispatch(s),this.#e.onValueChange?.(s),a()){let e=this.createEvent(`drag-value-change`,{detail:o,trigger:t});this.dispatch(e),this.#e.onDragValueChange?.(e)}}#m(e,t){let{pointerValue:n,dragging:r}=this.$state;n.set(e),this.dispatch(`pointer-value-change`,{detail:e,trigger:t}),r()&&this.#p(e,t)}#h(e){let t,n=this.el.getBoundingClientRect(),{min:r,max:i}=this.$state;if(this.$props.orientation()===`vertical`){let{bottom:r,height:i}=n;t=(r-e.clientY)/i}else if(this.#a&&Hj(this.#o)&&this.#i){let{width:n}=this.#i.getBoundingClientRect(),a=(e.clientX-this.#a.clientX)/n,o=i()-r(),s=o*Math.abs(a);t=(a<0?this.#o-s:this.#o+s)/o}else{this.#a&&Hj(this.#o)&&this.#s();let{left:r,width:i}=n;t=(e.clientX-r)/i}return Math.max(r(),Math.min(i(),this.#e.roundValue(Uxe(r(),i(),t,this.#e.getStep()))))}#g(e){this.$state.pointing.set(!0)}#_(e){let{dragging:t}=this.$state;t()||this.#m(this.#h(e),e)}#v(e){this.$state.pointing.set(!1)}#y(e){if(e.button!==0)return;let t=this.#h(e);this.#b(t,e),this.#m(t,e)}#b(e,t){let{dragging:n}=this.$state;if(n())return;n.set(!0),this.#t.remote.pauseControls(t);let r=this.createEvent(`drag-start`,{detail:e,trigger:t});this.dispatch(r),this.#e.onDragStart?.(r),this.#n?.onDragStart?.()}#x(e,t){let{dragging:n}=this.$state;if(!n())return;n.set(!1),this.#t.remote.resumeControls(t);let r=this.createEvent(`drag-end`,{detail:e,trigger:t});this.dispatch(r),this.#e.onDragEnd?.(r),this.#s(),this.#n?.onDragEnd?.()}#S;#C=!1;#w(e){if(!Object.keys(gz).includes(e.key))return;let{key:t}=e,n=this.#E(e);if(!zj(n)){this.#m(n,e),this.#p(n,e);return}let r=this.#D(e);this.#C||(this.#C=t===this.#S,!this.$state.dragging()&&this.#C&&this.#b(r,e)),this.#m(r,e),this.#S=t}#T(e){if(!Object.keys(gz).includes(e.key)||!zj(this.#E(e)))return;let t=this.#C?this.$state.pointerValue():this.#D(e);this.#p(t,e),this.#x(t,e),this.#S=``,this.#C=!1}#E(e){let t=e.key,{min:n,max:r}=this.$state;return t===`Home`||t===`PageUp`?n():t===`End`||t===`PageDown`?r():!e.metaKey&&/^[0-9]$/.test(t)?(r()-n())/10*Number(t):null}#D(e){let{key:t,shiftKey:n}=e;e.preventDefault(),e.stopPropagation();let{shiftKeyMultiplier:r}=this.$props,{min:i,max:a,value:o,pointerValue:s}=this.$state,c=this.#e.getStep(),l=this.#e.getKeyStep(),u=(n?l*r():l)*Number(gz[t]),d=((this.#C?s():this.#e.getValue?.()??o())+u)/c;return Math.max(i(),Math.min(a(),Number((c*d).toFixed(3))))}#O(e){if(e.button!==0)return;e.preventDefault(),e.stopImmediatePropagation();let t=this.#h(e);this.#m(t,e),this.#x(t,e)}#k(e){e.preventDefault()}#A=YM(e=>{this.#m(this.#h(e),e)},20,{leading:!0})},vz=eM(()=>({})),yz=class extends GM{static props={hidden:!1,disabled:!1,step:1,keyStep:1,orientation:`horizontal`,shiftKeyMultiplier:5};#e;#t;#n=Ij(!0);#r=Ij(!0);constructor(e){super(),this.#t=e}onSetup(){this.#e=LF();let e=new hI;e.attach(this),this.$state.focused=e.focused.bind(e),rM(vz)||tM(vz,{default:`value`}),tM(mz,{orientation:this.$props.orientation,disabled:this.#t.isDisabled,preview:Ij(null)}),Y(this.#o.bind(this)),Y(this.#s.bind(this)),Y(this.#c.bind(this)),this.#u(),new _z(this.#t,this.#e).attach(this),new pz({callback:this.#i.bind(this)}).attach(this)}onAttach(e){GF(e,`role`,`slider`),GF(e,`tabindex`,`0`),GF(e,`autocomplete`,`off`),Y(this.#d.bind(this))}onConnect(e){xj(JF(e,this.#n.set)),Y(this.#a.bind(this))}#i(e){this.#r.set(e[0].isIntersecting)}#a(){let{hidden:e}=this.$props;this.$state.hidden.set(e()||!this.#n()||!this.#r())}#o(){let{dragging:e,value:t,min:n,max:r}=this.$state;J(e)||t.set(Hxe(n(),r(),t(),this.#t.getStep()))}#s(){this.$state.step.set(this.#t.getStep())}#c(){if(!this.#t.isDisabled())return;let{dragging:e,pointing:t}=this.$state;e.set(!1),t.set(!1)}#l(){return cM(this.#t.isDisabled())}#u(){let{orientation:e}=this.$props,{dragging:t,active:n,pointing:r}=this.$state;this.setAttributes({"data-dragging":t,"data-pointing":r,"data-active":n,"aria-disabled":this.#l.bind(this),"aria-valuemin":this.#t.aria.valueMin??this.$state.min,"aria-valuemax":this.#t.aria.valueMax??this.$state.max,"aria-valuenow":this.#t.aria.valueNow,"aria-valuetext":this.#t.aria.valueText,"aria-orientation":e})}#d(){let{fillPercent:e,pointerPercent:t}=this.$state;this.#f(BF(e(),3),BF(t(),3))}#f=dM((e,t)=>{this.el?.style.setProperty(`--slider-fill`,e+`%`),this.el?.style.setProperty(`--slider-pointer`,t+`%`)})},bz=class extends KM{static props={...yz.props,min:0,max:100,value:0};static state=fz;constructor(){super(),new yz({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:Math.round,isDisabled:this.$props.disabled,aria:{valueNow:this.#e.bind(this),valueText:this.#t.bind(this)}})}onSetup(){Y(this.#n.bind(this)),Y(this.#r.bind(this))}#e(){let{value:e}=this.$state;return Math.round(e())}#t(){let{value:e,max:t}=this.$state;return BF(e()/t()*100,2)+`%`}#n(){let{value:e}=this.$props;this.$state.value.set(e())}#r(){let{min:e,max:t}=this.$props;this.$state.min.set(e()),this.$state.max.set(t())}},xz=new Map,Sz=new Map,Cz=class e{#e;#t;#n;$images=Ij([]);static create(t,n){return new e(t,n,LF())}constructor(e,t,n){this.#t=e,this.#n=t,this.#e=n,Y(this.#r.bind(this))}#r(){let{canLoad:e}=this.#e.$state;if(!e())return;let t=this.#t();if(t){if(Uj(t)&&xz.has(t)){let e=xz.get(t);if(xz.delete(t),xz.set(t,e),xz.size>99){let e=xz.keys().next().value;xz.delete(e)}this.$images.set(xz.get(t))}else if(Uj(t)){let e=this.#n(),n=t+`::`+e;if(!Sz.has(n)){let r=new Promise(async(n,r)=>{try{let i=await fetch(t,{credentials:QN(e)});if(i.headers.get(`content-type`)===`application/json`){let e=await i.json();if(Kj(e))if(e[0]&&`text`in e[0])n(this.#o(e));else{for(let t=0;t<e.length;t++){let n=e[t];uI(Vj(n),!1),uI(`url`in n&&Uj(n.url),!1),uI(`startTime`in n&&Hj(n.startTime),!1)}n(e)}else n(this.#a(e));return}Promise.resolve().then(()=>(jF(),AF)).then(async({parseResponse:e})=>{try{let{cues:t}=await e(i);n(this.#o(t))}catch(e){r(e)}})}catch(e){r(e)}}).then(e=>(xz.set(n,e),e)).catch(e=>{this.#u(t,e)}).finally(()=>{Uj(n)&&Sz.delete(n)});Sz.set(n,r)}Sz.get(n)?.then(e=>{this.$images.set(e||[])})}else if(Kj(t))try{this.$images.set(this.#i(t))}catch(e){this.#u(t,e)}else try{this.$images.set(this.#a(t))}catch(e){this.#u(t,e)}return()=>{this.$images.set([])}}}#i(e){let t=this.#s();return e.map((e,n)=>(uI(e.url&&Uj(e.url),!1),uI(`startTime`in e&&Hj(e.startTime),!1),{...e,url:Uj(e.url)?this.#c(e.url,t):e.url}))}#a(e){uI(Uj(e.url),!1),uI(Kj(e.tiles)&&e.tiles?.length,!1);let t=new URL(e.url),n=[],r=`tile_width`in e?e.tile_width:e.tileWidth,i=`tile_height`in e?e.tile_height:e.tileHeight;for(let a of e.tiles)n.push({url:t,startTime:`start`in a?a.start:a.startTime,width:r,height:i,coords:{x:a.x,y:a.y}});return n}#o(e){for(let t=0;t<e.length;t++){let n=e[t];uI(`startTime`in n&&Hj(n.startTime),!1),uI(`text`in n&&Uj(n.text),!1)}let t=[],n=this.#s();for(let r of e){let[e,i]=r.text.split(`#`),a=this.#l(i);t.push({url:this.#c(e,n),startTime:r.startTime,endTime:r.endTime,width:a?.w,height:a?.h,coords:a&&Hj(a.x)&&Hj(a.y)?{x:a.x,y:a.y}:void 0})}return t}#s(){let e=J(this.#t);return!Uj(e)||!/^https?:/.test(e)?location.href:e}#c(e,t){return/^https?:/.test(e)?new URL(e):new URL(e,t)}#l(e){if(!e)return{};let[t,n]=e.split(`=`),r=n?.split(`,`),i={};if(!t||!r)return null;for(let e=0;e<t.length;e++){let n=+r[e];isNaN(n)||(i[t[e]]=n)}return i}#u(e,t){}},wz=2,Tz=32,Ez=new Map,Dz=class extends KM{static props={src:null,time:0,crossOrigin:null};static state=new qM({src:``,img:null,thumbnails:[],activeThumbnail:null,crossOrigin:null,loading:!1,error:null,hidden:!1});media;#e;#t=[];onSetup(){this.media=LF(),this.#e=Cz.create(this.$props.src,this.$state.crossOrigin),this.#r(),this.setAttributes({"data-loading":this.#s.bind(this),"data-error":this.#c.bind(this),"data-hidden":this.$state.hidden,"aria-hidden":iI(this.$state.hidden)})}onConnect(e){Y(this.#n.bind(this)),Y(this.#l.bind(this)),Y(this.#r.bind(this)),Y(this.#i.bind(this)),Y(this.#u.bind(this)),Y(this.#d.bind(this)),Y(this.#f.bind(this))}#n(){let e=this.$state.img();e&&new RM(e).add(`load`,this.#a.bind(this)).add(`error`,this.#o.bind(this))}#r(){let{crossOrigin:e}=this.$props,{crossOrigin:t}=this.$state,{crossOrigin:n}=this.media.$state,r=e()===null?n():e();t.set(r===!0?`anonymous`:r)}#i(){let{src:e,loading:t,error:n}=this.$state;return e()&&(t.set(!0),n.set(null)),()=>{this.#m(),t.set(!1),n.set(null)}}#a(){let{loading:e,error:t}=this.$state;this.#f(),e.set(!1),t.set(null)}#o(e){let{loading:t,error:n}=this.$state;t.set(!1),n.set(e)}#s(){let{loading:e,hidden:t}=this.$state;return!t()&&e()}#c(){let{error:e}=this.$state;return!zj(e())}#l(){let{hidden:e}=this.$state,{duration:t}=this.media.$state,n=this.#e.$images();e.set(this.#c()||!Number.isFinite(t())||n.length===0)}getTime(){return this.$props.time()}#u(){let e=this.#e.$images();if(!e.length)return;let t=this.getTime(),{src:n,activeThumbnail:r}=this.$state,i=-1,a=null;for(let n=e.length-1;n>=0;n--){let r=e[n];if(t>=r.startTime&&(!r.endTime||t<r.endTime)){i=n;break}}e[i]&&(a=e[i]),n.set(a?.url.href||``),r.set(a)}#d(){let e=this.#e.$images(),t=this.$state.activeThumbnail();if(!t)return;let n=e.indexOf(t);if(n<0)return;let r=t.url.href,i=this.$state.crossOrigin(),a=n+1,o=Math.min(a+wz,e.length);for(let t=a;t<o;t++){let n=e[t].url.href;n!==r&&Wxe(n,i)}}#f(){if(!this.scope||this.$state.hidden())return;let e=this.el,t=this.$state.img(),n=this.$state.activeThumbnail();if(!t||!n||!e)return;let r=n.width??t.naturalWidth,i=n?.height??t.naturalHeight,{maxWidth:a,maxHeight:o,minWidth:s,minHeight:c,width:l,height:u}=getComputedStyle(this.el);s===`100%`&&(s=parseFloat(l)+``),c===`100%`&&(c=parseFloat(u)+``);let d=Math.max(parseInt(s)/r,parseInt(c)/i),f=Math.min(Math.max(parseInt(s),parseInt(a))/r,Math.max(parseInt(c),parseInt(o))/i),p=!isNaN(f)&&f<1?f:d>1?d:1;this.#p(e,`--thumbnail-width`,`${r*p}px`),this.#p(e,`--thumbnail-height`,`${i*p}px`),this.#p(e,`--thumbnail-aspect-ratio`,String(BF(r/i,5))),this.#p(t,`width`,`${t.naturalWidth*p}px`),this.#p(t,`height`,`${t.naturalHeight*p}px`),this.#p(t,`transform`,n.coords?`translate(-${n.coords.x*p}px, -${n.coords.y*p}px)`:``),this.#p(t,`max-width`,`none`)}#p(e,t,n){e.style.setProperty(t,n),this.#t.push(()=>e.style.removeProperty(t))}#m(){for(let e of this.#t)e();this.#t=[]}},Oz=class extends KM{static props={type:`pointer`,format:null,showHours:!1,showMs:!1,padHours:null,padMinutes:null,decimalPlaces:2};#e;#t;#n;onSetup(){this.#n=oM(bz.state),this.#e=nM(vz),this.#t=Lj(this.getValueText.bind(this))}getValueText(){let{type:e,format:t,decimalPlaces:n,padHours:r,padMinutes:i,showHours:a,showMs:o}=this.$props,{value:s,pointerValue:c,min:l,max:u}=this.#n,d=t?.()??this.#e.default,f=e()===`current`?s():c();if(d===`percent`){let e=f/(u()-l())*100;return(this.#e.percent??BF)(e,n())+`%`}else if(d===`time`)return(this.#e.time??ZR)(f,{padHrs:r(),padMins:i(),showHrs:a(),showMs:o()});else return(this.#e.value?.(f)??f.toFixed(2))+``}},kz=Oz.prototype,aM(kz,`getValueText`),Az=class extends KM{static props={offset:0,noClamp:!1};#e;onSetup(){this.#e=nM(mz);let{active:e}=oM(bz.state);this.setAttributes({"data-visible":e})}onAttach(e){Object.assign(e.style,{position:`absolute`,top:0,left:0,width:`max-content`})}onConnect(e){let{preview:t}=this.#e;t.set(e),xj(()=>t.set(null)),Y(this.#t.bind(this));let n=new ResizeObserver(this.#t.bind(this));n.observe(e),xj(()=>n.disconnect())}#t=dM(()=>{let{disabled:e,orientation:t}=this.#e;if(e())return;let n=this.el,{offset:r,noClamp:i}=this.$props;n&&Gxe(n,{clamp:!i(),offset:r(),orientation:t()})})},jz=class extends KM{static props={...yz.props,keyStep:5,shiftKeyMultiplier:2};static state=fz;#e;onSetup(){this.#e=LF();let{audioGain:e}=this.#e.$state;tM(vz,{default:`percent`,value(t){return(t*(e()??1)).toFixed(2)},percent(t){return Math.round(t*(e()??1))}}),new yz({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:Math.round,isDisabled:this.#i.bind(this),aria:{valueMax:this.#r.bind(this),valueNow:this.#t.bind(this),valueText:this.#n.bind(this)},onDragValueChange:this.#l.bind(this),onValueChange:this.#c.bind(this)}).attach(this),Y(this.#a.bind(this))}onAttach(e){e.setAttribute(`data-media-volume-slider`,``),GF(e,`aria-label`,`Volume`);let{canSetVolume:t}=this.#e.$state;this.setAttributes({"data-supported":t,"aria-hidden":iI(()=>!t())})}#t(){let{value:e}=this.$state,{audioGain:t}=this.#e.$state;return Math.round(e()*(t()??1))}#n(){let{value:e,max:t}=this.$state,{audioGain:n}=this.#e.$state;return BF(e()/t()*(n()??1)*100,2)+`%`}#r(){let{audioGain:e}=this.#e.$state;return this.$state.max()*(e()??1)}#i(){let{disabled:e}=this.$props,{canSetVolume:t}=this.#e.$state;return e()||!t()}#a(){let{muted:e,volume:t}=this.#e.$state,n=e()?0:t()*100;this.$state.value.set(n),this.dispatch(`value-change`,{detail:n})}#o=YM(this.#s.bind(this),25);#s(e){if(!e.trigger)return;let t=BF(e.detail/100,3);this.#e.remote.changeVolume(t,e)}#c(e){this.#o(e)}#l(e){this.#o(e)}},Mz=class extends KM{static props={...yz.props,step:.1,keyStep:5,shiftKeyMultiplier:2,pauseWhileDragging:!1,noSwipeGesture:!1,seekingRequestThrottle:100};static state=fz;#e;#t;#n=Ij(null);constructor(){super();let{noSwipeGesture:e}=this.$props;new yz({swipeGesture:()=>!e(),getValue:this.#h.bind(this),getStep:this.#g.bind(this),getKeyStep:this.#_.bind(this),roundValue:this.#v,isDisabled:this.#y.bind(this),aria:{valueNow:this.#b.bind(this),valueText:this.#x.bind(this)},onDragStart:this.#d.bind(this),onDragValueChange:this.#f.bind(this),onDragEnd:this.#p.bind(this),onValueChange:this.#m.bind(this)})}onSetup(){this.#e=LF(),tM(vz,{default:`time`,value:this.#w.bind(this),time:this.#T.bind(this)}),this.setAttributes({"data-chapters":this.#i.bind(this)}),this.setStyles({"--slider-progress":this.#r.bind(this)}),Y(this.#o.bind(this)),Y(this.#a.bind(this))}onAttach(e){e.setAttribute(`data-media-time-slider`,``),GF(e,`aria-label`,`Seek`)}onConnect(e){Y(this.#s.bind(this)),nP(this.#e.textTracks,`chapters`,this.#n.set)}#r(){let{bufferedEnd:e,duration:t}=this.#e.$state;return BF(Math.min(e()/Math.max(t(),1),1)*100,3)+`%`}#i(){let{duration:e}=this.#e.$state;return this.#n()?.cues.length&&Number.isFinite(e())&&e()>0}#a(){this.#t=YM(this.#c.bind(this),this.$props.seekingRequestThrottle())}#o(){if(this.$state.hidden())return;let{value:e,dragging:t}=this.$state,n=this.#h();J(t)||(e.set(n),this.dispatch(`value-change`,{detail:n}))}#s(){let e=this.#e.player.el,{preview:t}=nM(mz);e&&t()&&Qj(e,`data-preview`,this.$state.active())}#c(e,t){this.#e.remote.seeking(e,t)}#l(e,t,n){this.#t.cancel();let{live:r}=this.#e.$state;if(r()&&t>=99){this.#e.remote.seekToLiveEdge(n);return}this.#e.remote.seek(e,n)}#u=!1;#d(e){let{pauseWhileDragging:t}=this.$props;if(t()){let{paused:t}=this.#e.$state;this.#u=!t(),this.#e.remote.pause(e)}}#f(e){this.#t(this.#S(e.detail),e)}#p(e){let{seeking:t}=this.#e.$state;J(t)||this.#c(this.#S(e.detail),e);let n=e.detail;this.#l(this.#S(n),n,e);let{pauseWhileDragging:r}=this.$props;r()&&this.#u&&(this.#e.remote.play(e),this.#u=!1)}#m(e){let{dragging:t}=this.$state;t()||!e.trigger||this.#p(e)}#h(){let{currentTime:e}=this.#e.$state;return this.#C(e())}#g(){let e=this.$props.step()/this.#e.$state.duration()*100;return Number.isFinite(e)?e:1}#_(){let e=this.$props.keyStep()/this.#e.$state.duration()*100;return Number.isFinite(e)?e:1}#v(e){return BF(e,3)}#y(){let{disabled:e}=this.$props,{canSeek:t}=this.#e.$state;return e()||!t()}#b(){let{value:e}=this.$state;return Math.round(e())}#x(){let e=this.#S(this.$state.value()),{duration:t}=this.#e.$state;return Number.isFinite(e)?`${QR(e)} out of ${QR(t())}`:`live`}#S(e){let{duration:t}=this.#e.$state;return BF(e/100*t(),5)}#C(e){let{liveEdge:t,duration:n}=this.#e.$state,r=Math.max(0,Math.min(1,t()?1:Math.min(e,n())/n()));return Number.isNaN(r)?0:Number.isFinite(r)?r*100:100}#w(e){let t=this.#S(e),{live:n,duration:r}=this.#e.$state;return Number.isFinite(t)?(n()?t-r():t).toFixed(0):`LIVE`}#T(e,t){let n=this.#S(e),{live:r,duration:i}=this.#e.$state,a=r()?n-i():n;return Number.isFinite(n)?`${a<0?`-`:``}${ZR(Math.abs(a),t)}`:`LIVE`}},Nz=eM(),Pz=[`a[href]`,`[tabindex]`,`input`,`select`,`button`].map(e=>`${e}:not([aria-hidden='true'])`).join(`,`),Fz=new Set([`Escape`,`Tab`,`ArrowUp`,`ArrowDown`,`Home`,`PageUp`,`End`,`PageDown`,`Enter`,` `]),Iz=class{#e=-1;#t=null;#n=[];#r;get items(){return this.#n}constructor(e){this.#r=e}attachMenu(e){qj(e,`focus`,this.#o.bind(this)),this.#t=e,xj(()=>{this.#t=null})}listen(){this.#t&&(this.update(),new RM(this.#t).add(`keyup`,this.#c.bind(this)).add(`keydown`,this.#l.bind(this)),xj(()=>{this.#e=-1,this.#n=[]}))}update(){this.#e=0,this.#n=this.#d()}scroll(e=this.#a()){let t=this.#n[e];t&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{qxe(t,{behavior:`smooth`,boundary:e=>!e.hasAttribute(`data-root`)})})})}focusActive(e=!0){let t=this.#a();this.#i(t>=0?t:0,e)}#i(e,t=!0){this.#e=e,this.#n[e]?(this.#n[e].focus({preventScroll:!0}),t&&this.scroll(e)):this.#t?.focus({preventScroll:!0})}#a(){return this.#n.findIndex(e=>document.activeElement===e||e.getAttribute(`role`)===`menuitemradio`&&e.getAttribute(`aria-checked`)===`true`)}#o(){this.#e>=0||(this.update(),this.focusActive())}#s(e){let t=e.target;if(Hye(e)&&t instanceof Element){let e=t.getAttribute(`role`);return!/a|input|select|button/.test(t.localName)&&!e}return Fz.has(e.key)}#c(e){this.#s(e)&&(e.stopPropagation(),e.preventDefault())}#l(e){if(this.#s(e))switch(e.stopPropagation(),e.preventDefault(),e.key){case`Escape`:this.#r.closeMenu(e);break;case`Tab`:this.#i(this.#u(e.shiftKey?-1:1));break;case`ArrowUp`:this.#i(this.#u(-1));break;case`ArrowDown`:this.#i(this.#u(1));break;case`Home`:case`PageUp`:this.#i(0);break;case`End`:case`PageDown`:this.#i(this.#n.length-1);break}}#u(e){let t=this.#e;do t=(t+e+this.#n.length)%this.#n.length;while(this.#n[t]?.offsetParent===null);return t}#d(){if(!this.#t)return[];let e=this.#t.querySelectorAll(Pz),t=[],n=e=>e.getAttribute(`role`)===`menu`;for(let r of e)rI(r)&&r.offsetParent!==null&&YF(this.#t,r,n)&&t.push(r);return t}},Lz=0,Rz=class extends KM{static props={showDelay:0};#e;#t;#n;#r=Ij(!1);#i=Ij(!1);#a=Ij(null);#o=Ij(null);#s;#c=new Set;#l=null;#u;#d;#f=!1;#p=Ij(!1);#m=new Set;get triggerElement(){return this.#a()}get contentElement(){return this.#o()}get isSubmenu(){return!!this.#s}constructor(){super();let{showDelay:e}=this.$props;this.#u=new nz({trigger:this.#a,content:this.#o,showDelay:e,listen:(e,t,n)=>{XF(e,e=>{this.#r()?n(e):t(e)});let r=this.#A();r&&XF(r,e=>{e.stopPropagation(),n(e)})},onChange:this.#C.bind(this)})}onSetup(){this.#e=LF();let e=++Lz;this.#t=`media-menu-${e}`,this.#n=`media-menu-button-${e}`,this.#d=new Iz({closeMenu:this.close.bind(this)}),rM(Nz)&&(this.#s=nM(Nz)),this.#h(),this.setAttributes({"data-open":this.#r,"data-root":!this.isSubmenu,"data-submenu":this.isSubmenu,"data-disabled":this.#E.bind(this)}),tM(Nz,{button:this.#a,content:this.#o,expanded:this.#r,hint:Ij(``),submenu:!!this.#s,disable:this.#D.bind(this),attachMenuButton:this.#_.bind(this),attachMenuItems:this.#v.bind(this),attachObserver:this.#y.bind(this),disableMenuButton:this.#x.bind(this),addSubmenu:this.#M.bind(this),onTransitionEvent:e=>{this.#m.add(e),xj(()=>{this.#m.delete(e)})}})}onAttach(e){e.style.setProperty(`display`,`contents`)}onConnect(e){Y(this.#g.bind(this)),this.isSubmenu&&this.#s?.addSubmenu(this)}onDestroy(){this.#a.set(null),this.#o.set(null),this.#l=null,this.#m.clear()}#h(){let e=-1,t=rM(hz)?nM(hz):null;tM(hz,{onDragStart:()=>{t?.onDragStart?.(),window.clearTimeout(e),e=-1,this.#f=!0},onDragEnd:()=>{t?.onDragEnd?.(),e=window.setTimeout(()=>{this.#f=!1,e=-1},300)}})}#g(){let e=this.#T();this.isSubmenu||this.#B(),this.#b(e),e&&(Y(()=>{let{height:e}=this.#e.$state,t=this.#o();t&&$j(t,`--player-height`,e()+`px`)}),this.#d.listen(),this.listen(`pointerup`,this.#O.bind(this)),qj(window,`pointerup`,this.#k.bind(this)))}#_(e){let t=e.el,n=this.isSubmenu,r=iI(this.#E.bind(this));GF(t,`tabindex`,n?`-1`:`0`),GF(t,`role`,n?`menuitem`:`button`),Qj(t,`id`,this.#n),Qj(t,`aria-haspopup`,`menu`),Qj(t,`aria-expanded`,`false`),Qj(t,`data-root`,!this.isSubmenu),Qj(t,`data-submenu`,this.isSubmenu),Y(()=>{Qj(t,`data-open`,this.#r()),Qj(t,`aria-disabled`,r())}),this.#a.set(t),xj(()=>{this.#a.set(null)})}#v(e){let t=e.el;t.style.setProperty(`display`,`none`),Qj(t,`id`,this.#t),GF(t,`role`,`menu`),GF(t,`tabindex`,`-1`),Qj(t,`data-root`,!this.isSubmenu),Qj(t,`data-submenu`,this.isSubmenu),this.#o.set(t),xj(()=>this.#o.set(null)),Y(()=>Qj(t,`data-open`,this.#r())),this.#d.attachMenu(t),this.#b(!1);let n=this.#H.bind(this);this.isSubmenu?this.#s?.onTransitionEvent(n):(e.listen(`transitionstart`,n),e.listen(`transitionend`,n),e.listen(`animationend`,this.#B),e.listen(`vds-menu-resize`,this.#B))}#y(e){this.#l=e}#b(e){let t=J(this.#o);t&&Qj(t,`aria-hidden`,cM(!e))}#x(e){this.#p.set(e)}#S=!1;#C(e,t){if(this.#S=Xj(t),t?.stopPropagation(),this.#r()===e)return;if(this.#E()){e&&this.#u.hide(t);return}this.el?.dispatchEvent(new Event(`vds-menu-resize`,{bubbles:!0,composed:!0}));let n=this.#a(),r=this.#o();if(n&&(Qj(n,`aria-controls`,e&&this.#t),Qj(n,`aria-expanded`,cM(e))),r&&Qj(r,`aria-labelledby`,e&&this.#n),this.#r.set(e),this.#j(t),_j(),this.#S){e?r?.focus():n?.focus();for(let e of[this.el,r])e&&e.setAttribute(`data-keyboard`,``)}else for(let e of[this.el,r])e&&e.removeAttribute(`data-keyboard`);if(this.dispatch(e?`open`:`close`,{trigger:t}),e)!this.isSubmenu&&this.#e.activeMenu!==this&&(this.#e.activeMenu?.close(t),this.#e.activeMenu=this),this.#l?.onOpen?.(t);else{if(this.isSubmenu)for(let e of this.#c)e.close(t);else this.#e.activeMenu=null;this.#l?.onClose?.(t)}e&&requestAnimationFrame(this.#w.bind(this))}#w(){this.#V||this.#F||(this.#d.update(),requestAnimationFrame(()=>{this.#S?this.#d.focusActive():this.#d.scroll()}))}#T(){return!this.#E()&&this.#r()}#E(){return this.#i()||this.#p()}#D(e){this.#i.set(e)}#O(e){let t=this.#o();this.#f||t&&WF(t,e)||e.stopPropagation()}#k(e){let t=this.#o();this.#f||t&&WF(t,e)||this.close(e)}#A(){let e=this.el?.querySelector(`[data-part="close-target"]`);return this.el&&e&&YF(this.el,e,e=>e.getAttribute(`role`)===`menu`)?e:null}#j(e){this.isSubmenu||(this.#r()?this.#e.remote.pauseControls(e):this.#e.remote.resumeControls(e))}#M(e){this.#c.add(e),new RM(e).add(`open`,this.#I).add(`close`,this.#R),xj(this.#N)}#N=this.#P.bind(this);#P(e){this.#c.delete(e)}#F=!1;#I=this.#L.bind(this);#L(e){this.#F=!0;let t=this.#o();this.isSubmenu&&this.triggerElement?.setAttribute(`aria-hidden`,`true`);for(let t of this.#c)if(t!==e.target)for(let e of[t.el,t.triggerElement])e?.setAttribute(`aria-hidden`,`true`);if(t){let n=e.target.el;for(let e of t.children)e.contains(n)?e.setAttribute(`data-open`,``):e!==n&&e.setAttribute(`data-hidden`,``)}}#R=this.#z.bind(this);#z(e){this.#F=!1;let t=this.#o();this.isSubmenu&&this.triggerElement?.setAttribute(`aria-hidden`,`false`);for(let e of this.#c)for(let t of[e.el,e.triggerElement])t?.setAttribute(`aria-hidden`,`false`);if(t)for(let e of t.children)e.removeAttribute(`data-open`),e.removeAttribute(`data-hidden`)}#B=dM(()=>{let e=J(this.#o);if(!e)return;let t=0,n=getComputedStyle(e),r=[...e.children];for(let e of[`paddingTop`,`paddingBottom`,`borderTopWidth`,`borderBottomWidth`])t+=parseFloat(n[e])||0;for(let e of r)if(rI(e)&&e.style.display===`contents`)r.push(...e.children);else if(e.nodeType===3)t+=parseFloat(getComputedStyle(e).fontSize);else if(rI(e)){if(!qF(e))continue;let n=getComputedStyle(e);t+=e.offsetHeight+(parseFloat(n.marginTop)||0)+(parseFloat(n.marginBottom)||0)}$j(e,`--menu-height`,t+`px`)});#V=!1;#H(e){let t=this.#o();t&&e.propertyName===`height`&&(this.#V=e.type===`transitionstart`,Qj(t,`data-transition`,this.#V?`height`:null),this.#r()&&this.#w());for(let t of this.#m)t(e)}open(e){J(this.#r)||(this.#u.show(e),_j())}close(e){J(this.#r)&&(this.#u.hide(e),_j())}},ez([iM],Rz.prototype,`triggerElement`,null),ez([iM],Rz.prototype,`contentElement`,null),ez([iM],Rz.prototype,`isSubmenu`,null),ez([aM],Rz.prototype,`open`,null),ez([aM],Rz.prototype,`close`,null),zz=class extends KM{static props={disabled:!1};#e;#t=Ij(null);get expanded(){return this.#e?.expanded()??!1}constructor(){super(),new hI}onSetup(){this.#e=nM(Nz)}onAttach(e){this.#e.attachMenuButton(this),Y(this.#n.bind(this)),GF(e,`type`,`button`)}onConnect(e){Y(this.#r.bind(this)),this.#i();let t=new MutationObserver(this.#i.bind(this));t.observe(e,{attributeFilter:[`data-part`],childList:!0,subtree:!0}),xj(()=>t.disconnect()),XF(e,e=>{this.dispatch(`select`,{trigger:e})})}#n(){this.#e.disableMenuButton(this.$props.disabled())}#r(){let e=this.#t();e&&Y(()=>{let t=this.#e.hint();t&&(e.textContent=t)})}#i(){let e=this.el?.querySelector(`[data-part="hint"]`);this.#t.set(e??null)}},Bz=zz.prototype,iM(Bz,`expanded`),Vz=class extends zz{},Hz=class extends KM{static props={container:null,disabled:!1};#e=null;#t;onSetup(){this.#t=LF(),tM(Uz,{attach:this.#n.bind(this)})}onAttach(e){e.style.setProperty(`display`,`contents`)}onConnect(e){}onDestroy(){this.#e?.remove(),this.#e=null}#n(e){this.#i(!1),this.#e=e,QF(()=>{QF(()=>{this.connectScope&&Y(this.#r.bind(this))})})}#r(){let{fullscreen:e}=this.#t.$state,{disabled:t}=this.$props;this.#i(t()===`fullscreen`?!e():!t())}#i(e){if(!this.#e)return;let t=this.#a(this.$props.container());if(!t)return;let n=this.#e.parentElement===t;Qj(this.#e,`data-portal`,e),e?n||(this.#e.remove(),t.append(this.#e)):n&&this.#e.parentElement===t&&(this.#e.remove(),this.el?.append(this.#e))}#a(e){return rI(e)?e:e?document.querySelector(e):document.body}},Uz=eM(),Wz=class extends KM{static props={placement:null,offset:0,alignOffset:0};#e;constructor(){super(),new hI;let{placement:e}=this.$props;this.setAttributes({"data-placement":e})}onAttach(e){if(this.#e=nM(Nz),this.#e.attachMenuItems(this),rM(Uz)){let t=nM(Uz);t&&(tM(Uz,null),t.attach(e),xj(()=>t.attach(null)))}}onConnect(e){Y(this.#t.bind(this))}#t(){let{expanded:e}=this.#e;if(!this.el||!e())return;let t=this.$props.placement();if(!t)return;Object.assign(this.el.style,{position:`absolute`,top:0,left:0,width:`max-content`});let{offset:n,alignOffset:r}=this.$props;xj(nI(this.el,this.#r(),t,{offsetVarName:`media-menu`,xOffset:r(),yOffset:n()})),xj(this.#n.bind(this))}#n(){this.el&&(this.el.removeAttribute(`style`),this.el.style.display=`none`)}#r(){return this.#e.button()}},Gz=eM(),Kz=class extends GM{#e=new Set;#t=Ij(``);onValueChange;get values(){return Array.from(this.#e).map(e=>e.value())}get value(){return this.#t()}set value(e){this.#a(e)}onSetup(){tM(Gz,{add:this.#n.bind(this),remove:this.#r.bind(this)})}onAttach(e){rM(Nz)||GF(e,`role`,`radiogroup`),this.setAttributes({value:this.#t})}onDestroy(){this.#e.clear()}#n(e){this.#e.has(e)||(this.#e.add(e),e.onCheck=this.#i,e.check(e.value()===this.#t()))}#r(e){e.onCheck=null,this.#e.delete(e)}#i=this.#a.bind(this);#a(e,t){let n=J(this.#t);if(!e||e===n)return;let r=this.#o(n),i=this.#o(e);r?.check(!1,t),i?.check(!0,t),this.#t.set(e),this.onValueChange?.(e,t)}#o(e){for(let t of this.#e)if(e===J(t.value))return t;return null}},qz=class extends KM{static props={value:``};#e=Ij(!1);#t={value:this.$props.value,check:this.#o.bind(this),onCheck:null};get checked(){return this.#e()}constructor(){super(),new hI}onSetup(){this.setAttributes({value:this.$props.value,"data-checked":this.#e,"aria-checked":iI(this.#e)})}onAttach(e){let t=rM(Nz);GF(e,`tabindex`,t?`-1`:`0`),GF(e,`role`,t?`menuitemradio`:`radio`),Y(this.#i.bind(this))}onConnect(e){this.#r(),XF(e,this.#a.bind(this)),xj(this.#n.bind(this))}#n(){yj(()=>{nM(Gz).remove(this.#t)},this.connectScope)}#r(){nM(Gz).add(this.#t)}#i(){let{value:e}=this.$props,t=e();J(this.#e)&&this.#t.onCheck?.(t)}#a(e){J(this.#e)||(this.#s(!0,e),this.#c(e),this.#t.onCheck?.(J(this.$props.value),e))}#o(e,t){J(this.#e)!==e&&this.#s(e,t)}#s(e,t){this.#e.set(e),this.dispatch(`change`,{detail:e,trigger:t})}#c(e){this.dispatch(`select`,{trigger:e})}},Jz=qz.prototype,iM(Jz,`checked`),Yz=class extends KM{static props={emptyLabel:`Default`};#e;#t;#n;get value(){return this.#n.value}get disabled(){let{audioTracks:e}=this.#t.$state;return e().length<=1}constructor(){super(),this.#n=new Kz,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#t=LF(),rM(Nz)&&(this.#e=nM(Nz))}onConnect(e){Y(this.#r.bind(this)),Y(this.#a.bind(this)),Y(this.#i.bind(this))}getOptions(){let{audioTracks:e}=this.#t.$state;return e().map(e=>({track:e,label:e.label,value:e.label.toLowerCase()}))}#r(){this.#n.value=this.#o()}#i(){let{emptyLabel:e}=this.$props,{audioTrack:t}=this.#t.$state,n=t();this.#e?.hint.set(n?.label??e())}#a(){this.#e?.disable(this.disabled)}#o(){let{audioTrack:e}=this.#t.$state,t=e();return t?t.label.toLowerCase():``}#s(e,t){if(this.disabled)return;let n=this.#t.audioTracks.toArray().findIndex(t=>t.label.toLowerCase()===e);if(n>=0){let e=this.#t.audioTracks[n];this.#t.remote.changeAudioTrack(n,t),this.dispatch(`change`,{detail:e,trigger:t})}}},Xz=Yz.prototype,iM(Xz,`value`),iM(Xz,`disabled`),aM(Xz,`getOptions`),Zz=class extends KM{static props={offLabel:`Off`};#e;#t;#n;get value(){return this.#n.value}get disabled(){let{hasCaptions:e}=this.#e.$state;return!e()}constructor(){super(),this.#n=new Kz,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#e=LF(),rM(Nz)&&(this.#t=nM(Nz))}onConnect(e){super.onConnect?.(e),Y(this.#r.bind(this)),Y(this.#a.bind(this)),Y(this.#i.bind(this))}getOptions(){let{offLabel:e}=this.$props,{textTracks:t}=this.#e.$state;return[{value:`off`,label:e},...t().filter(MF).map(e=>({track:e,label:e.label,value:this.#c(e)}))]}#r(){this.#n.value=this.#o()}#i(){let{offLabel:e}=this.$props,{textTrack:t}=this.#e.$state,n=t();this.#t?.hint.set(n&&MF(n)&&n.mode===`showing`?n.label:e())}#a(){this.#t?.disable(this.disabled)}#o(){let{textTrack:e}=this.#e.$state,t=e();return t&&MF(t)&&t.mode===`showing`?this.#c(t):`off`}#s(e,t){if(this.disabled)return;if(e===`off`){let e=this.#e.textTracks.selected;if(e){let n=this.#e.textTracks.indexOf(e);this.#e.remote.changeTextTrackMode(n,`disabled`,t),this.dispatch(`change`,{detail:null,trigger:t})}return}let n=this.#e.textTracks.toArray().findIndex(t=>this.#c(t)===e);if(n>=0){let e=this.#e.textTracks[n];this.#e.remote.changeTextTrackMode(n,`showing`,t),this.dispatch(`change`,{detail:e,trigger:t})}}#c(e){return e.id+`:`+e.kind+`-`+e.label.toLowerCase()}},Qz=Zz.prototype,iM(Qz,`value`),iM(Qz,`disabled`),aM(Qz,`getOptions`),$z=[.25,.5,.75,1,1.25,1.5,1.75,2],eB=class extends KM{static props={normalLabel:`Normal`,rates:$z};#e;#t;#n;get value(){return this.#n.value}get disabled(){let{rates:e}=this.$props,{canSetPlaybackRate:t}=this.#e.$state;return!t()||e().length===0}constructor(){super(),this.#n=new Kz,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#e=LF(),rM(Nz)&&(this.#t=nM(Nz))}onConnect(e){Y(this.#r.bind(this)),Y(this.#i.bind(this)),Y(this.#a.bind(this))}getOptions(){let{rates:e,normalLabel:t}=this.$props;return e().map(e=>({label:e===1?t:e+`×`,value:e.toString()}))}#r(){this.#n.value=this.#o()}#i(){let{normalLabel:e}=this.$props,{playbackRate:t}=this.#e.$state,n=t();this.#t?.hint.set(n===1?e():n+`×`)}#a(){this.#t?.disable(this.disabled)}#o(){let{playbackRate:e}=this.#e.$state;return e().toString()}#s(e,t){if(this.disabled)return;let n=+e;this.#e.remote.changePlaybackRate(n,t),this.dispatch(`change`,{detail:n,trigger:t})}},tB=eB.prototype,iM(tB,`value`),iM(tB,`disabled`),aM(tB,`getOptions`),nB=class extends KM{static props={autoLabel:`Auto`,hideBitrate:!1,sort:`descending`};#e;#t;#n;get value(){return this.#n.value}get disabled(){let{canSetQuality:e,qualities:t}=this.#e.$state;return!e()||t().length<=1}#r=Lj(()=>{let{sort:e}=this.$props,{qualities:t}=this.#e.$state;return JR(t(),e()===`descending`)});constructor(){super(),this.#n=new Kz,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#e=LF(),rM(Nz)&&(this.#t=nM(Nz))}onConnect(e){Y(this.#i.bind(this)),Y(this.#o.bind(this)),Y(this.#a.bind(this))}getOptions(){let{autoLabel:e,hideBitrate:t}=this.$props;return[{value:`auto`,label:e},...this.#r().map(e=>{let n=e.bitrate&&e.bitrate>=0?`${BF(e.bitrate/1e6,2)} Mbps`:null;return{quality:e,label:e.height+`p`,value:this.#l(e),bitrate:()=>t()?null:n}})]}#i(){this.#n.value=this.#c()}#a(){let{autoLabel:e}=this.$props,{autoQuality:t,quality:n}=this.#e.$state,r=n()?n().height+`p`:``;this.#t?.hint.set(t()?e()+(r?` (${r})`:``):r)}#o(){this.#t?.disable(this.disabled)}#s(e,t){if(this.disabled)return;if(e===`auto`){this.#e.remote.changeQuality(-1,t),this.dispatch(`change`,{detail:`auto`,trigger:t});return}let{qualities:n}=this.#e.$state,r=J(n).findIndex(t=>this.#l(t)===e);if(r>=0){let e=J(n)[r];this.#e.remote.changeQuality(r,t),this.dispatch(`change`,{detail:e,trigger:t})}}#c(){let{quality:e,autoQuality:t}=this.#e.$state;if(t())return`auto`;let n=e();return n?this.#l(n):`auto`}#l(e){return e.height+`_`+e.bitrate}},rB=nB.prototype,iM(rB,`value`),iM(rB,`disabled`),aM(rB,`getOptions`),iB=class extends KM{static props={type:`current`,showHours:!1,padHours:null,padMinutes:null,remainder:!1,toggle:!1,hidden:!1};static state=new qM({timeText:``,hidden:!1});#e;#t=Ij(null);#n=Ij(!0);#r=Ij(!0);onSetup(){this.#e=LF(),this.#s();let{type:e}=this.$props;this.setAttributes({"data-type":e,"data-remainder":this.#u.bind(this)}),new pz({callback:this.#i.bind(this)}).attach(this)}onAttach(e){e.hasAttribute(`role`)||Y(this.#c.bind(this)),Y(this.#s.bind(this))}onConnect(e){xj(JF(e,this.#n.set)),Y(this.#a.bind(this)),Y(this.#o.bind(this))}#i(e){this.#r.set(e[0].isIntersecting)}#a(){let{hidden:e}=this.$props;this.$state.hidden.set(e()||!this.#n()||!this.#r())}#o(){if(!this.$props.toggle()){this.#t.set(null);return}this.el&&XF(this.el,this.#d.bind(this))}#s(){let{hidden:e,timeText:t}=this.$state,{duration:n}=this.#e.$state;if(e())return;let{type:r,padHours:i,padMinutes:a,showHours:o}=this.$props,s=this.#l(r()),c=n(),l=this.#u();if(!Number.isFinite(s+c)){t.set(`LIVE`);return}let u=ZR(l?Math.max(0,c-s):s,{padHrs:i(),padMins:a(),showHrs:o()});t.set((l?`-`:``)+u)}#c(){if(!this.el)return;let{toggle:e}=this.$props;Qj(this.el,`role`,e()?`timer`:null),Qj(this.el,`tabindex`,e()?0:null)}#l(e){let{bufferedEnd:t,duration:n,currentTime:r}=this.#e.$state;switch(e){case`buffered`:return t();case`duration`:return n();default:return r()}}#u(){return this.$props.remainder()&&this.#t()!==!1}#d(e){if(e.preventDefault(),this.#t()===null){this.#t.set(!this.$props.remainder());return}this.#t.set(e=>!e)}}})),oB,sB,cB,lB,uB,dB,fB,pB,mB,hB,gB,_B,vB,yB,bB,xB,SB,CB,wB,TB,EB,DB,OB,kB,AB,jB,MB,NB=F((()=>{hN(),IF(),rP(),zF(),UF(),oI(),aB(),gI(),oB=class extends KM{static props={translations:null};static state=new qM({label:null,busy:!1});#e;#t=!1;onSetup(){this.#e=LF()}onAttach(e){e.style.display=`contents`}onConnect(e){e.setAttribute(`data-media-announcer`,``),GF(e,`role`,`status`),GF(e,`aria-live`,`polite`);let{busy:t}=this.$state;this.setAttributes({"aria-busy":()=>t()?`true`:null}),this.#t=!0,Y(this.#n.bind(this)),Y(this.#o.bind(this)),Y(this.#a.bind(this)),Y(this.#r.bind(this)),Y(this.#i.bind(this)),Y(this.#l.bind(this)),Y(this.#d.bind(this)),_j(),this.#t=!1}#n(){let{paused:e}=this.#e.$state;this.#f(e()?`Pause`:`Play`)}#r(){let{fullscreen:e}=this.#e.$state;this.#f(e()?`Enter Fullscreen`:`Exit Fullscreen`)}#i(){let{pictureInPicture:e}=this.#e.$state;this.#f(e()?`Enter PiP`:`Exit PiP`)}#a(){let{textTrack:e}=this.#e.$state;this.#f(e()?`Closed-Captions On`:`Closed-Captions Off`)}#o(){let{muted:e,volume:t,audioGain:n}=this.#e.$state;this.#f(e()||t()===0?`Mute`:`${Math.round(t()*(n()??1)*100)}% ${this.#u(`Volume`)}`)}#s=-1;#c=-1;#l(){let{seeking:e,currentTime:t}=this.#e.$state,n=e();this.#s>0?(window.clearTimeout(this.#c),this.#c=window.setTimeout(()=>{if(!this.scope)return;let e=J(t),n=Math.abs(e-this.#s);if(n>=1){let t=e>=this.#s,r=QR(n);this.#f(`${this.#u(t?`Seek Forward`:`Seek Backward`)} ${r}`)}this.#s=-1,this.#c=-1},300)):n&&(this.#s=J(t))}#u(e){let{translations:t}=this.$props;return t?.()?.[e||``]??e}#d(){let{label:e,busy:t}=this.$state,n=this.#u(e());if(this.#t)return;t.set(!0);let r=window.setTimeout(()=>void t.set(!1),150);return this.el&&Qj(this.el,`aria-label`,n),Uj(n)&&this.dispatch(`change`,{detail:n}),()=>window.clearTimeout(r)}#f(e){let{label:t}=this.$state;t.set(e)}},sB=class extends KM{static props={hideDelay:2e3,hideOnMouseLeave:!1};#e;onSetup(){this.#e=LF(),Y(this.#n.bind(this))}onAttach(e){let{pictureInPicture:t,fullscreen:n}=this.#e.$state;$j(e,`pointer-events`,`none`),GF(e,`role`,`group`),this.setAttributes({"data-visible":this.#r.bind(this),"data-fullscreen":n,"data-pip":t}),Y(()=>{this.dispatch(`change`,{detail:this.#r()})}),Y(this.#t.bind(this)),Y(()=>{let t=n();for(let n of[`top`,`right`,`bottom`,`left`])$j(e,`padding-${n}`,t&&`env(safe-area-inset-${n})`)})}#t(){if(!this.el)return;let{nativeControls:e}=this.#e.$state,t=e();Qj(this.el,`aria-hidden`,t?`true`:null),$j(this.el,`display`,t?`none`:null)}#n(){let{controls:e}=this.#e.player,{hideDelay:t,hideOnMouseLeave:n}=this.$props;e.defaultDelay=t()===2e3?this.#e.$props.controlsDelay():t(),e.hideOnMouseLeave=n()}#r(){let{controlsVisible:e}=this.#e.$state;return e()}},cB=class extends KM{onAttach(e){e.style.pointerEvents||$j(e,`pointer-events`,`auto`)}},lB=eM(),uB=0,dB=class extends KM{static props={showDelay:700};#e=`media-tooltip-${++uB}`;#t=Ij(null);#n=Ij(null);#r=Ij(!1);constructor(){super(),new hI;let{showDelay:e}=this.$props;new nz({trigger:this.#t,content:this.#n,showDelay:e,listen(e,t,n){Y(()=>{mI()&&qj(e,`focus`,t),qj(e,`blur`,n)}),new RM(e).add(`touchstart`,e=>e.preventDefault(),{passive:!1}).add(`mouseenter`,t).add(`mouseleave`,n)},onChange:this.#c.bind(this)})}onAttach(e){e.style.setProperty(`display`,`contents`)}onSetup(){tM(lB,{trigger:this.#t,content:this.#n,showing:this.#r,attachTrigger:this.#i.bind(this),detachTrigger:this.#a.bind(this),attachContent:this.#o.bind(this),detachContent:this.#s.bind(this)})}#i(e){this.#t.set(e);let t=e.getAttribute(`data-media-tooltip`);t&&this.el?.setAttribute(`data-media-${t}-tooltip`,``),Qj(e,`data-describedby`,this.#e)}#a(e){e.removeAttribute(`data-describedby`),e.removeAttribute(`aria-describedby`),this.#t.set(null)}#o(e){e.setAttribute(`id`,this.#e),e.style.display=`none`,GF(e,`role`,`tooltip`),this.#n.set(e)}#s(e){e.removeAttribute(`id`),e.removeAttribute(`role`),this.#n.set(null)}#c(e){let t=this.#t(),n=this.#n();t&&Qj(t,`aria-describedby`,e?this.#e:null);for(let r of[this.el,t,n])r&&Qj(r,`data-visible`,e);this.#r.set(e)}},fB=class extends KM{constructor(){super(),new hI}onConnect(e){xj(QF(()=>{if(!this.connectScope)return;this.#e();let e=nM(lB);xj(()=>{let t=this.#t();t&&e.detachTrigger(t)})}))}#e(){let e=this.#t(),t=nM(lB);e&&t.attachTrigger(e)}#t(){let e=this.el.firstElementChild;return e?.localName===`button`||e?.getAttribute(`role`)===`button`?e:this.el}},pB=class extends KM{static props={placement:`top center`,offset:0,alignOffset:0};constructor(){super(),new hI;let{placement:e}=this.$props;this.setAttributes({"data-placement":e})}onAttach(e){this.#e(e),Object.assign(e.style,{position:`absolute`,top:0,left:0,width:`max-content`})}onConnect(e){this.#e(e);let t=nM(lB);xj(()=>t.detachContent(e)),xj(QF(()=>{this.connectScope&&Y(this.#t.bind(this))}))}#e(e){nM(lB).attachContent(e)}#t(){let{showing:e}=nM(lB);if(!e())return;let{placement:t,offset:n,alignOffset:r}=this.$props;return nI(this.el,this.#n(),t(),{offsetVarName:`media-tooltip`,xOffset:r(),yOffset:n()})}#n(){return nM(lB).trigger()}},mB=class extends KM{static props={disabled:!1,defaultPressed:!1};#e=Ij(!1);get pressed(){return this.#e()}constructor(){super(),new rz({isPresssed:this.#e})}},hB=mB.prototype,iM(hB,`pressed`),gB=class extends KM{static props=rz.props;#e;constructor(){super(),new rz({isPresssed:this.#n.bind(this),onPress:this.#t.bind(this)})}onSetup(){this.#e=LF();let{canGoogleCast:e,isGoogleCastConnected:t}=this.#e.$state;this.setAttributes({"data-active":t,"data-supported":e,"data-state":this.#r.bind(this),"aria-hidden":iI(()=>!e())})}onAttach(e){e.setAttribute(`data-media-tooltip`,`google-cast`),KF(e,this.#i.bind(this))}#t(e){this.#e.remote.requestGoogleCast(e)}#n(){let{remotePlaybackType:e,remotePlaybackState:t}=this.#e.$state;return e()===`google-cast`&&t()!==`disconnected`}#r(){let{remotePlaybackType:e,remotePlaybackState:t}=this.#e.$state;return e()===`google-cast`&&t()}#i(){let{remotePlaybackState:e}=this.#e.$state;return`Google Cast ${e()}`}},_B=class extends KM{static props={src:null,crossOrigin:null};static state=new qM({video:null,src:null,crossOrigin:null,canPlay:!1,error:null,hidden:!1});#e;#t;get video(){return this.$state.video()}onSetup(){this.#e=LF(),this.#t=oM(bz.state),this.#i(),this.setAttributes({"data-loading":this.#a.bind(this),"data-hidden":this.$state.hidden,"data-error":this.#o.bind(this),"aria-hidden":iI(this.$state.hidden)})}onAttach(e){Y(this.#n.bind(this)),Y(this.#r.bind(this)),Y(this.#i.bind(this)),Y(this.#s.bind(this)),Y(this.#c.bind(this)),Y(this.#d.bind(this))}#n(){let e=this.$state.video();e&&(e.readyState>=2&&this.#l(),new RM(e).add(`canplay`,this.#l.bind(this)).add(`error`,this.#u.bind(this)))}#r(){let{src:e}=this.$state,{canLoad:t}=this.#e.$state;e.set(t()?this.$props.src():null)}#i(){let{crossOrigin:e}=this.$props,{crossOrigin:t}=this.$state,{crossOrigin:n}=this.#e.$state,r=e()===null?n():e();t.set(r===!0?`anonymous`:r)}#a(){let{canPlay:e,hidden:t}=this.$state;return!e()&&!t()}#o(){let{error:e}=this.$state;return!zj(e)}#s(){let{src:e,hidden:t}=this.$state,{canLoad:n,duration:r}=this.#e.$state;t.set(n()&&(!e()||this.#o()||!Number.isFinite(r())))}#c(){let{src:e,canPlay:t,error:n}=this.$state;e(),t.set(!1),n.set(null)}#l(e){let{canPlay:t,error:n}=this.$state;t.set(!0),n.set(null),this.dispatch(`can-play`,{trigger:e})}#u(e){let{canPlay:t,error:n}=this.$state;t.set(!1),n.set(e),this.dispatch(`error`,{trigger:e})}#d(){let{video:e,canPlay:t}=this.$state,{duration:n}=this.#e.$state,{pointerRate:r}=this.#t,i=e();t()&&i&&Number.isFinite(n())&&Number.isFinite(r())&&(i.currentTime=r()*n())}},vB=_B.prototype,iM(vB,`video`),yB=class extends KM{static props={...yz.props,step:25,keyStep:25,shiftKeyMultiplier:2,min:0,max:300};static state=fz;#e;onSetup(){this.#e=LF(),tM(vz,{default:`percent`,percent:(e,t)=>BF(this.$state.value(),t)+`%`}),new yz({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:Math.round,isDisabled:this.#a.bind(this),aria:{valueNow:this.#t.bind(this),valueText:this.#n.bind(this)},onDragValueChange:this.#c.bind(this),onValueChange:this.#s.bind(this)}).attach(this),Y(this.#r.bind(this)),Y(this.#i.bind(this))}onAttach(e){e.setAttribute(`data-media-audio-gain-slider`,``),GF(e,`aria-label`,`Audio Boost`);let{canSetAudioGain:t}=this.#e.$state;this.setAttributes({"data-supported":t,"aria-hidden":iI(()=>!t())})}#t(){let{value:e}=this.$state;return Math.round(e())}#n(){let{value:e}=this.$state;return e()+`%`}#r(){let{min:e,max:t}=this.$props;this.$state.min.set(e()),this.$state.max.set(t())}#i(){let{audioGain:e}=this.#e.$state,t=((e()??1)-1)*100;this.$state.value.set(t),this.dispatch(`value-change`,{detail:t})}#a(){let{disabled:e}=this.$props,{canSetAudioGain:t}=this.#e.$state;return e()||!t()}#o(e){if(!e.trigger)return;let t=BF(1+e.detail/100,2);this.#e.remote.changeAudioGain(t,e)}#s(e){this.#o(e)}#c(e){this.#o(e)}},bB=class extends KM{static props={...yz.props,step:.25,keyStep:.25,shiftKeyMultiplier:2,min:0,max:2};static state=fz;#e;onSetup(){this.#e=LF(),new yz({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:this.#a,isDisabled:this.#o.bind(this),aria:{valueNow:this.#t.bind(this),valueText:this.#n.bind(this)},onDragValueChange:this.#u.bind(this),onValueChange:this.#l.bind(this)}).attach(this),Y(this.#r.bind(this)),Y(this.#i.bind(this))}onAttach(e){e.setAttribute(`data-media-speed-slider`,``),GF(e,`aria-label`,`Speed`);let{canSetPlaybackRate:t}=this.#e.$state;this.setAttributes({"data-supported":t,"aria-hidden":iI(()=>!t())})}#t(){let{value:e}=this.$state;return e()}#n(){let{value:e}=this.$state;return e()+`x`}#r(){let{min:e,max:t}=this.$props;this.$state.min.set(e()),this.$state.max.set(t())}#i(){let{playbackRate:e}=this.#e.$state,t=e();this.$state.value.set(t),this.dispatch(`value-change`,{detail:t})}#a(e){return BF(e,2)}#o(){let{disabled:e}=this.$props,{canSetPlaybackRate:t}=this.#e.$state;return e()||!t()}#s=YM(this.#c.bind(this),25);#c(e){if(!e.trigger)return;let t=e.detail;this.#e.remote.changePlaybackRate(t,e)}#l(e){this.#s(e)}#u(e){this.#s(e)}},xB=class extends KM{static props={...yz.props,step:1,keyStep:1,shiftKeyMultiplier:1};static state=fz;#e;#t=Lj(()=>{let{qualities:e}=this.#e.$state;return JR(e())});onSetup(){this.#e=LF(),new yz({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:Math.round,isDisabled:this.#o.bind(this),aria:{valueNow:this.#n.bind(this),valueText:this.#r.bind(this)},onDragValueChange:this.#u.bind(this),onValueChange:this.#l.bind(this)}).attach(this),Y(this.#i.bind(this)),Y(this.#a.bind(this))}onAttach(e){e.setAttribute(`data-media-quality-slider`,``),GF(e,`aria-label`,`Video Quality`);let{qualities:t,canSetQuality:n}=this.#e.$state,r=Lj(()=>n()&&t().length>0);this.setAttributes({"data-supported":r,"aria-hidden":iI(()=>!r())})}#n(){let{value:e}=this.$state;return e()}#r(){let{quality:e}=this.#e.$state;if(!e())return``;let{height:t,bitrate:n}=e(),r=n&&n>0?`${(n/1e6).toFixed(2)} Mbps`:null;return t?`${t}p${r?` (${r})`:``}`:`Auto`}#i(){let e=this.#t();this.$state.max.set(Math.max(0,e.length-1))}#a(){let{quality:e}=this.#e.$state,t=this.#t(),n=Math.max(0,t.indexOf(e()));this.$state.value.set(n),this.dispatch(`value-change`,{detail:n})}#o(){let{disabled:e}=this.$props,{canSetQuality:t,qualities:n}=this.#e.$state;return e()||n().length<=1||!t()}#s=YM(this.#c.bind(this),25);#c(e){if(!e.trigger)return;let{qualities:t}=this.#e,n=J(this.#t)[e.detail];this.#e.remote.changeQuality(t.indexOf(n),e)}#l(e){this.#s(e)}#u(e){this.#s(e)}},SB=class extends KM{static props={disabled:!1};#e;#t;#n;#r=null;#i=[];#a=Ij(null);#o=Ij([]);#s=Ij(-1);#c=Ij(-1);#l=0;get cues(){return this.#o()}get activeCue(){return this.#o()[this.#s()]||null}get activePointerCue(){return this.#o()[this.#c()]||null}onSetup(){this.#e=LF(),this.#t=oM(Mz.state)}onAttach(e){nP(this.#e.textTracks,`chapters`,this.#u.bind(this)),Y(this.#D.bind(this))}onConnect(){xj(()=>this.#d.bind(this))}onDestroy(){this.#u(null)}setRefs(e){if(this.#i=e,this.#n?.dispose(),this.#i.length===1){let e=this.#i[0];e.style.width=`100%`,e.style.setProperty(`--chapter-fill`,`var(--slider-fill)`),e.style.setProperty(`--chapter-progress`,`var(--slider-progress)`)}else this.#i.length>0&&yj(()=>this.#f(),this.#n=Oj())}#u(e){J(this.#a)!==e&&(this.#d(),this.#a.set(e))}#d(){this.#i=[],this.#o.set([]),this.#s.set(-1),this.#c.set(-1),this.#l=0,this.#n?.dispose()}#f(){this.#i.length&&Y(this.#p.bind(this))}#p(){let{hidden:e}=this.#t;e()||(Y(this.#m.bind(this)),Y(this.#h.bind(this)),Y(this.#g.bind(this)),Y(this.#b.bind(this)))}#m(){let e=this.#o();if(!e.length)return;let t,{seekableStart:n,seekableEnd:r}=this.#e.$state,i=n(),a=(r()||e[e.length-1].endTime)-i,o=100;for(let n=0;n<e.length;n++)if(t=e[n],this.#i[n]){let r=n===e.length-1?o:BF((t.endTime-Math.max(i,t.startTime))/a*100,3);this.#i[n].style.width=r+`%`,o-=r}}#h(){let{liveEdge:e,seekableStart:t,seekableEnd:n}=this.#e.$state,{fillPercent:r,value:i}=this.#t,a=this.#o(),o=e(),s=J(this.#s),c=a[s],l=o?this.#o.length-1:this.#y(c&&c.startTime/n()*100<=J(i)?s:0,r());o||!c?this.#_(0,a.length,100):l>s?this.#_(s,l,100):l<s&&this.#_(l+1,s+1,0);let u=o?100:this.#T(a[l],r(),t(),this.#w(a));this.#v(this.#i[l],u),this.#s.set(l)}#g(){let{hidden:e,pointerPercent:t}=this.#t;if(e()){this.#c.set(-1);return}let n=this.#y(0,t());this.#c.set(n)}#_(e,t,n){for(let r=e;r<t;r++)this.#v(this.#i[r],n)}#v(e,t){e&&(e.style.setProperty(`--chapter-fill`,t+`%`),Qj(e,`data-active`,t>0&&t<100),Qj(e,`data-ended`,t===100))}#y(e,t){let n=0,r=this.#o();if(t===0)return 0;if(t===100)return r.length-1;let{seekableStart:i}=this.#e.$state,a=i(),o=this.#w(r);for(let i=e;i<r.length;i++)if(n=this.#T(r[i],t,a,o),n>=0&&n<100)return i;return 0}#b(){this.#x(this.#S())}#x=dM(e=>{let t,n=this.#o(),{seekableStart:r}=this.#e.$state,i=r(),a=this.#w(n);for(let r=this.#l;r<this.#i.length;r++)if(t=this.#T(n[r],e,i,a),this.#i[r]?.style.setProperty(`--chapter-progress`,t+`%`),t<100){this.#l=r;break}});#S=Lj(this.#C.bind(this));#C(){let{bufferedEnd:e,duration:t}=this.#e.$state;return BF(Math.min(e()/Math.max(t(),1),1),3)*100}#w(e){let{seekableEnd:t}=this.#e.$state,n=t();return Number.isFinite(n)?n:e[e.length-1]?.endTime||0}#T(e,t,n,r){if(!e||this.#o().length===0)return 0;let i=r-n,a=Math.max(0,e.startTime-n),o=Math.min(r,e.endTime)-n,s=a/i,c=s*100,l=Math.min(1,s+(o-a)/i)*100;return Math.max(0,BF(t>=l?100:(t-c)/(l-c)*100,3))}#E(e){let t=[],{seekableStart:n,seekableEnd:r,duration:i}=this.#e.$state,a=n(),o=r();e=e.filter(e=>e.startTime<=o&&e.endTime>=a);let s=e[0];s&&s.startTime>a&&t.push(new window.VTTCue(a,s.startTime,``));for(let n=0;n<e.length-1;n++){let r=e[n],i=e[n+1];if(t.push(r),i){let e=i.startTime-r.endTime;e>0&&t.push(new window.VTTCue(r.endTime,r.endTime+e,``))}}let c=e[e.length-1];if(c){t.push(c);let e=i();e>=0&&e-c.endTime>1&&t.push(new window.VTTCue(c.endTime,i(),``))}return t}#D(){let{source:e}=this.#e.$state;e(),this.#O()}#O(){if(!this.scope)return;let{disabled:e}=this.$props;if(e()){this.#o.set([]),this.#s.set(0),this.#l=0;return}let t=this.#a();if(t){let e=this.#A.bind(this);e(),new RM(t).add(`add-cue`,e).add(`remove-cue`,e),Y(this.#k.bind(this))}return this.#r=this.#N(),this.#r&&Y(this.#j.bind(this)),()=>{this.#r&&=(this.#r.textContent=``,null)}}#k(){this.#e.$state.duration(),this.#A()}#A=XM(()=>{let e=J(this.#a);!this.scope||!e||!e.cues.length||(this.#o.set(this.#E(e.cues)),this.#s.set(0),this.#l=0)},150,!0);#j(){let e=this.activePointerCue||this.activeCue;this.#r&&(this.#r.textContent=e?.text||``)}#M(){let e=this.el;for(;e&&e.getAttribute(`role`)!==`slider`;)e=e.parentElement;return e}#N(){let e=this.#M();return e?e.querySelector(`[data-part="chapter-title"]`):null}},CB=SB.prototype,iM(CB,`cues`),iM(CB,`activeCue`),iM(CB,`activePointerCue`),aM(CB,`setRefs`),wB=class extends KM{static props={value:``};#e;get values(){return this.#e.values}get value(){return this.#e.value}set value(e){this.#e.value=e}constructor(){super(),this.#e=new Kz,this.#e.onValueChange=this.#n.bind(this)}onSetup(){Y(this.#t.bind(this))}#t(){this.#e.value=this.$props.value()}#n(e,t){let n=this.createEvent(`change`,{detail:e,trigger:t});this.dispatch(n)}},TB=wB.prototype,iM(TB,`values`),iM(TB,`value`),EB=class extends KM{static props={thumbnails:null};#e;#t;#n;#r=Ij(null);#i=Ij([]);get value(){return this.#n.value}get disabled(){return!this.#i()?.length}constructor(){super(),this.#n=new Kz,this.#n.onValueChange=this.#u.bind(this)}onSetup(){this.#e=LF(),rM(Nz)&&(this.#t=nM(Nz));let{thumbnails:e}=this.$props;this.setAttributes({"data-thumbnails":()=>!!e()})}onAttach(e){this.#t?.attachObserver({onOpen:this.#a.bind(this)})}getOptions(){let{seekableStart:e,seekableEnd:t}=this.#e.$state,n=e(),r=t();return this.#i().map((e,t)=>({cue:e,value:t.toString(),label:e.text,startTime:ZR(Math.max(0,e.startTime-n)),duration:QR(Math.min(r,e.endTime)-Math.max(n,e.startTime))}))}#a(){J(()=>this.#c())}onConnect(e){Y(this.#c.bind(this)),Y(this.#l.bind(this)),Y(this.#o.bind(this)),nP(this.#e.textTracks,`chapters`,this.#r.set)}#o(){let e=this.#r();if(!e)return;let t=this.#s.bind(this,e);return t(),new RM(e).add(`add-cue`,t).add(`remove-cue`,t),()=>{this.#i.set([])}}#s(e){let{seekableStart:t,seekableEnd:n}=this.#e.$state,r=t(),i=n();this.#i.set([...e.cues].filter(e=>e.startTime<=i&&e.endTime>=r))}#c(){if(!this.#t?.expanded())return;if(!this.#r()){this.#n.value=`-1`;return}let{realCurrentTime:e,seekableStart:t,seekableEnd:n}=this.#e.$state,r=t(),i=n(),a=e(),o=this.#i().findIndex(e=>tP(e,a));this.#n.value=o.toString(),o>=0&&QF(()=>{if(!this.connectScope)return;let e=this.#i()[o],t=this.el.querySelector(`[aria-checked='true']`),n=Math.max(r,e.startTime),s=Math.min(i,e.endTime)-n,c=Math.max(0,a-n)/s*100;t&&$j(t,`--progress`,BF(c,3)+`%`)})}#l(){this.#t?.disable(this.disabled)}#u(e,t){if(this.disabled||!t)return;let n=+e,r=this.#i(),{clipStartTime:i}=this.#e.$state;Hj(n)&&r?.[n]&&(this.#n.value=n.toString(),this.#e.remote.seek(r[n].startTime-i(),t),this.dispatch(`change`,{detail:r[n],trigger:t}))}},ez([iM],EB.prototype,`value`,null),ez([iM],EB.prototype,`disabled`,null),ez([aM],EB.prototype,`getOptions`,null),DB=[1,1.25,1.5,1.75,2,2.5,3,4],OB=class extends KM{static props={normalLabel:`Disabled`,gains:DB};#e;#t;#n;get value(){return this.#n.value}get disabled(){let{gains:e}=this.$props,{canSetAudioGain:t}=this.#e.$state;return!t()||e().length===0}constructor(){super(),this.#n=new Kz,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#e=LF(),rM(Nz)&&(this.#t=nM(Nz))}onConnect(e){Y(this.#r.bind(this)),Y(this.#i.bind(this)),Y(this.#a.bind(this))}getOptions(){let{gains:e,normalLabel:t}=this.$props;return e().map(e=>({label:e===1||e===null?t:String(e*100)+`%`,value:e.toString()}))}#r(){this.#n.value=this.#o()}#i(){let{normalLabel:e}=this.$props,{audioGain:t}=this.#e.$state,n=t();this.#t?.hint.set(n===1||n==null?e():String(n*100)+`%`)}#a(){this.#t?.disable(this.disabled)}#o(){let{audioGain:e}=this.#e.$state;return e()?.toString()??`1`}#s(e,t){if(this.disabled)return;let n=+e;this.#e.remote.changeAudioGain(n,t),this.dispatch(`change`,{detail:n,trigger:t})}},kB=OB.prototype,iM(kB,`value`),iM(kB,`disabled`),aM(kB,`getOptions`),AB=class extends KM{static props={disabled:!1,event:void 0,action:void 0};#e;#t=null;#n=null;onSetup(){this.#e=LF();let{event:e,action:t}=this.$props;this.setAttributes({event:e,action:t})}onAttach(e){e.setAttribute(`data-media-gesture`,``),e.style.setProperty(`pointer-events`,`none`)}onConnect(e){this.#t=this.#e.player.el?.querySelector(`[data-media-provider]`),Y(this.#r.bind(this))}#r(){let e=this.$props.event(),t=this.$props.disabled();!this.#t||!e||t||(/^dbl/.test(e)&&(e=e.split(/^dbl/)[1]),(e===`pointerup`||e===`pointerdown`)&&this.#e.$state.pointer()===`coarse`&&(e===`pointerup`&&qj(this.#t,`touchstart`,this.#s.bind(this),{passive:!0}),e=e===`pointerup`?`touchend`:`touchstart`),qj(this.#t,e,this.#o.bind(this),{passive:!1}))}#i=0;#a=-1;#o(e){if(!(this.$props.disabled()||Jj(e)&&(e.button!==0||this.#e.activeMenu)||Yj(e)&&this.#e.activeMenu||this.#c(e)||ZF(e)||!this.#u(e))){if(e.MEDIA_GESTURE=!0,e.preventDefault(),!J(this.$props.event)?.startsWith(`dbl`))this.#i===0&&setTimeout(()=>{this.#i===1&&this.#l(e)},250);else if(this.#i===1){queueMicrotask(()=>this.#l(e)),clearTimeout(this.#a),this.#i=0;return}this.#i===0&&(this.#a=window.setTimeout(()=>{this.#i=0},275)),this.#i++}}#s(e){if(ZF(e)){this.#n=null;return}let t=e.changedTouches[0]??e.touches[0];this.#n=t?{x:t.clientX,y:t.clientY}:null}#c(e){if(!Yj(e)||e.type!==`touchend`)return!1;let t=e.changedTouches[0]??e.touches[0],n=this.#n;return this.#n=null,!t||!n?!1:Math.abs(t.clientX-n.x)>10||Math.abs(t.clientY-n.y)>10}#l(e){this.el.setAttribute(`data-triggered`,``),requestAnimationFrame(()=>{this.#d()&&this.#f(J(this.$props.action),e),requestAnimationFrame(()=>{this.el.removeAttribute(`data-triggered`)})})}#u(e){if(!this.el)return!1;if(Jj(e)||Vye(e)||Yj(e)){let t=Yj(e)?e.changedTouches[0]??e.touches[0]:void 0,n=t?.clientX??e.clientX,r=t?.clientY??e.clientY,i=this.el.getBoundingClientRect(),a=r>=i.top&&r<=i.bottom&&n>=i.left&&n<=i.right;return e.type.includes(`leave`)?!a:a}return!0}#d(){let e=this.#e.player.el.querySelectorAll(`[data-media-gesture][data-triggered]`);return Array.from(e).sort((e,t)=>getComputedStyle(t).zIndex-+getComputedStyle(e).zIndex)[0]===this.el}#f(e,t){if(!e)return;let n=new FM(`will-trigger`,{detail:e,cancelable:!0,trigger:t});if(this.dispatchEvent(n),n.defaultPrevented)return;let[r,i]=e.replace(/:([a-z])/,`-$1`).split(`:`);e.includes(`:fullscreen`)?this.#e.remote.toggleFullscreen(`prefer-media`,t):e.includes(`seek:`)?this.#e.remote.seek(J(this.#e.$state.currentTime)+(+i||0),t):this.#e.remote[qye(r)](t),this.dispatch(`trigger`,{detail:e,trigger:t})}},jB=class{priority=10;#e=null;#t;#n;constructor(e){this.#t=e}attach(){}canRender(){return!0}detach(){this.#n?.abort(),this.#n=void 0,this.#t.reset(),this.#e=null}changeTrack(e){!e||this.#e===e||(this.#n?.abort(),this.#n=new RM(e),e.readyState<2?(this.#t.reset(),this.#n.add(`load`,()=>this.#r(e),{once:!0})):this.#r(e),this.#n.add(`add-cue`,e=>{this.#t.addCue(e.detail)}).add(`remove-cue`,e=>{this.#t.removeCue(e.detail)}),this.#e=e)}#r(e){this.#t.changeTrack({cues:[...e.cues],regions:[...e.regions]})}},MB=class e extends KM{static props={textDir:`ltr`,exampleText:`Captions look like this.`};#e;static lib=Ij(null);onSetup(){this.#e=LF(),this.setAttributes({"aria-hidden":iI(this.#t.bind(this))})}onAttach(e){e.style.setProperty(`pointer-events`,`none`)}onConnect(t){e.lib()||Promise.resolve().then(()=>(jF(),AF)).then(t=>e.lib.set(t)),Y(this.#n.bind(this))}#t(){let{textTrack:e,remotePlaybackState:t,iOSControls:n}=this.#e.$state,r=e();return n()||t()===`connected`||!r||!MF(r)}#n(){if(!e.lib())return;let{viewType:t}=this.#e.$state;return t()===`audio`?this.#r():this.#s()}#r(){return Y(this.#i.bind(this)),this.#u(null),()=>{this.el.textContent=``}}#i(){if(this.#t())return;this.#a();let{textTrack:e}=this.#e.$state;qj(e(),`cue-change`,this.#a.bind(this)),Y(this.#o.bind(this))}#a(){this.el.textContent=``,this.#p>=0&&this.#h();let{realCurrentTime:t,textTrack:n}=this.#e.$state,{renderVTTCueString:r}=e.lib(),i=J(t),a=J(n).activeCues;for(let e of a){let t=this.#g(),n=this.#_();n.innerHTML=r(e,i),t.append(n),this.el.append(n)}}#o(){let{realCurrentTime:t}=this.#e.$state,{updateTimedVTTCueNodes:n}=e.lib();n(this.el,t())}#s(){let{CaptionsRenderer:t}=e.lib(),n=new t(this.el),r=new jB(n);return this.#e.textRenderers.add(r),Y(this.#c.bind(this,n)),Y(this.#l.bind(this,n)),this.#u(n),()=>{this.el.textContent=``,this.#e.textRenderers.remove(r),n.destroy()}}#c(e){e.dir=this.$props.textDir()}#l(e){if(this.#t())return;let{realCurrentTime:t,textTrack:n}=this.#e.$state;e.currentTime=t(),this.#p>=0&&n()?.activeCues[0]&&this.#h()}#u(e){let t=this.#e.player;t&&qj(t,`vds-font-change`,this.#d.bind(this,e))}#d(e){if(this.#p>=0){this.#m();return}let{textTrack:t}=this.#e.$state;t()?.activeCues[0]?e?.update(!0):this.#f()}#f(){let e=this.#g();Qj(e,`data-example`,``);let t=this.#_();Qj(t,`data-example`,``),t.textContent=this.$props.exampleText(),e?.append(t),this.el?.append(e),this.el?.setAttribute(`data-example`,``),this.#m()}#p=-1;#m(){window.clearTimeout(this.#p),this.#p=window.setTimeout(this.#h.bind(this),2500)}#h(){this.el?.removeAttribute(`data-example`),this.el?.querySelector(`[data-example]`)&&(this.el.textContent=``),this.#p=-1}#g(){let e=document.createElement(`div`);return Qj(e,`data-part`,`cue-display`),e}#_(){let e=document.createElement(`div`);return Qj(e,`data-part`,`cue`),e}}})),PB,FB=F((()=>{hN(),eP(),zF(),PB=class extends KM{static props={src:null,alt:null,crossOrigin:null};static state=new qM({img:null,src:null,alt:null,crossOrigin:null,loading:!0,error:null,hidden:!1});#e;onSetup(){this.#e=LF(),this.#s(),this.#c(),this.#l(),this.#r()}onAttach(e){e.style.setProperty(`pointer-events`,`none`),Y(this.#a.bind(this)),Y(this.#s.bind(this)),Y(this.#c.bind(this)),Y(this.#l.bind(this)),Y(this.#r.bind(this));let{started:t}=this.#e.$state;this.setAttributes({"data-visible":()=>!t()&&!this.$state.hidden(),"data-loading":this.#i.bind(this),"data-error":this.#t.bind(this),"data-hidden":this.$state.hidden})}onConnect(e){Y(this.#n.bind(this)),Y(this.#u.bind(this))}#t(){let{error:e}=this.$state;return!zj(e())}#n(){let{canLoadPoster:e,poster:t}=this.#e.$state;!e()&&t()&&XN(t(),`preconnect`)}#r(){let{src:e}=this.$props,{poster:t,nativeControls:n}=this.#e.$state;this.el&&Qj(this.el,`display`,n()?`none`:null),this.$state.hidden.set(this.#t()||!(e()||t())||n())}#i(){let{loading:e,hidden:t}=this.$state;return!t()&&e()}#a(){let e=this.$state.img();e&&(new RM(e).add(`load`,this.#d.bind(this)).add(`error`,this.#f.bind(this)),e.complete&&this.#d())}#o=``;#s(){let{poster:e}=this.#e.$props,{canLoadPoster:t,providedPoster:n,inferredPoster:r}=this.#e.$state,i=this.$props.src()||``,a=i||e()||r();this.#o===n()&&n.set(i),this.$state.src.set(t()&&a.length?a:null),this.#o=i}#c(){let{src:e}=this.$props,{alt:t}=this.$state,{poster:n}=this.#e.$state;t.set(e()||n()?this.$props.alt():null)}#l(){let{crossOrigin:e}=this.$props,{crossOrigin:t}=this.$state,{crossOrigin:n,poster:r}=this.#e.$state,i=e()===null?n():e();t.set(/ytimg\.com|vimeo/.test(r()||``)?null:i===!0?`anonymous`:i)}#u(){let{loading:e,error:t}=this.$state,{canLoadPoster:n,poster:r}=this.#e.$state;e.set(n()&&!!r()),t.set(null)}#d(){let{loading:e,error:t}=this.$state;e.set(!1),t.set(null)}#f(e){let{loading:t,error:n}=this.$state;t.set(!1),n.set(e)}}})),IB=F((()=>{GN()}));function LB({src:e,type:t}){return DN({src:e,type:t})||ON({src:e,type:t})||RB({src:e,type:t})?{src:e,type:t}:t?.includes(`audio`)?{src:e,type:`audio/mp3`}:t?.includes(`video`)?{src:e,type:`video/mp4`}:{src:e,type:t}}function RB({type:e}){return e?.includes(`/object`)}var zB=F((()=>{IB()})),BB,VB=F((()=>{zB(),BB=({src:e,type:n,stream:r})=>{let i=(0,t.toRef)(e),a=(0,t.toRef)(n),o=(0,t.toRef)(r),s=(0,t.computed)(()=>o.value?`video/object`:a.value||i.value?.type),c=(0,t.computed)(()=>{if(o.value)return o.value;let e=typeof i.value==`string`?i.value:i.value?.src;return e instanceof Blob?e:e?.replace(`/download`,`/stream`)});return{normalizedSrcObject:(0,t.computed)(()=>LB({src:c.value,type:s.value}))}}})),HB=F((()=>{}));function UB(e,n){let r=(0,t.resolveComponent)(`wt-icon`);return(0,t.openBlock)(),(0,t.createElementBlock)(`media-mute-button`,GB,[(0,t.createVNode)(r,{type:`mute`,icon:`plyr-muted`,class:`mute-icon`,size:`sm`}),(0,t.createVNode)(r,{type:`volume`,icon:`plyr-volume`,class:`volume-icon`,size:`sm`})])}var WB,GB,KB,qB=F((()=>{HB(),K(),WB={},GB={class:`mute-button`},KB=G(WB,[[`render`,UB],[`__scopeId`,`data-v-45e5719d`]])})),JB,YB,XB=F((()=>{S_(),JB={class:`play-button`},YB=(0,t.defineComponent)({__name:`play-button`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`media-play-button`,JB,[(0,t.createVNode)(x_,{icon:`plyr-play`,type:`play`,class:`play-icon`,size:`sm`}),(0,t.createVNode)(x_,{icon:`plyr-pause`,type:`pause`,class:`pause-icon`,size:`sm`})]))}})})),ZB=F((()=>{})),QB,$B=F((()=>{XB(),XB(),ZB(),K(),QB=G(YB,[[`__scopeId`,`data-v-e6149485`]])})),eV,tV,nV=F((()=>{JA(),eV={class:`time-slider media-slider`},tV=(0,t.defineComponent)({__name:`time-slider`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`media-time-slider`,eV,[(0,t.createVNode)(qA,{class:`time-slider__slider`})]))}})})),rV=F((()=>{})),iV,aV=F((()=>{nV(),nV(),rV(),K(),iV=G(tV,[[`__scopeId`,`data-v-e57a9871`]])})),oV,sV,cV=F((()=>{JA(),oV={class:`volume-slider media-slider`},sV=(0,t.defineComponent)({__name:`volume-slider`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`media-volume-slider`,oV,[(0,t.createVNode)(qA,{class:`volume-slider__slider`})]))}})})),lV=F((()=>{})),uV,dV=F((()=>{cV(),cV(),lV(),K(),uV=G(sV,[[`__scopeId`,`data-v-b92a4daf`]])})),fV,pV,mV,hV=F((()=>{tf(),Eye(),mj(),VB(),qB(),$B(),aV(),dV(),fV=[`src`,`loop`,`autoplay`,`playback-rate`],pV={class:`controls-group`},mV=(0,t.defineComponent)({__name:`wt-player`,props:{src:{},id:{},fileName:{},autoplay:{type:Boolean,default:!0},loop:{type:Boolean,default:!1},download:{type:[String,Function,Boolean],default:()=>e=>e.replace(`/stream`,`/download`)},resetOnEnd:{type:Boolean,default:!1},countdownTimeMode:{type:Boolean},hideVolumeSlider:{type:Boolean,default:!1},hideMuteButton:{type:Boolean,default:!1},hideSettings:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},position:{default:`sticky`},invertTime:{type:Boolean,default:!0},resetVolume:{type:Boolean,default:!1}},emits:[`initialized`,`close`],setup(e,{emit:n}){let r=e,i=(0,t.ref)({playbackRate:1}),{src:a}=(0,t.toRefs)(r),{normalizedSrcObject:o}=BB({src:a});function s(){let e=typeof r.src==`string`?r.src:r.src?.src,t=typeof r.download==`function`?r.download(e):r.download,n=r.src?.type.split(`/`).pop(),i=r.fileName||r.id||`unknown`,a=document.createElement(`a`);a.style.display=`none`,a.href=t,a.download=`${i}.${n}`,document.body.appendChild(a),a.click(),document.body.removeChild(a)}function c(e){if(!r.resetOnEnd)return;let t=e.target;t.currentTime=0}function l(){i.value.playbackRate=1}return(0,t.watch)(()=>r.src,()=>{l()}),(n,a)=>{let l=(0,t.resolveComponent)(`wt-icon-btn`);return(0,t.openBlock)(),(0,t.createElementBlock)(`media-player`,{class:(0,t.normalizeClass)([`wt-player`,`wt-player--position-${r.position}`]),src:(0,t.unref)(o),loop:r.loop,autoplay:e.autoplay,"playback-rate":i.value.playbackRate,onEnded:c},[a[2]||=(0,t.createElementVNode)(`media-provider`,null,null,-1),(0,t.createElementVNode)(`media-controls-group`,pV,[(0,t.createVNode)(QB),(0,t.createVNode)(iV),(0,t.createVNode)(pj,{countdown:r.countdownTimeMode},null,8,[`countdown`]),r.hideMuteButton?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(KB,{key:0})),r.hideVolumeSlider?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(uV,{key:1})),r.hideSettings?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(cj,{key:2,"model-value":i.value,"onUpdate:modelValue":a[0]||=e=>i.value=e},null,8,[`model-value`])),r.download?((0,t.openBlock)(),(0,t.createElementBlock)(`media-button`,{key:3,class:`download-button`,onClick:s},[(0,t.createVNode)(l,{icon:`plyr-download`,size:(0,t.unref)(q).SM},null,8,[`size`])])):(0,t.createCommentVNode)(``,!0),r.closable?((0,t.openBlock)(),(0,t.createElementBlock)(`media-button`,{key:4,class:`close-button`,onClick:a[1]||=e=>n.$emit(`close`)},[(0,t.createVNode)(l,{icon:`close`,size:(0,t.unref)(q).SM},null,8,[`size`])])):(0,t.createCommentVNode)(``,!0)])],42,fV)}}})})),gV=F((()=>{})),_V=L({default:()=>vV}),vV,yV=F((()=>{hV(),hV(),gV(),K(),vV=G(mV,[[`__scopeId`,`data-v-b4642a75`]])})),bV,xV,SV=F((()=>{AC(),ox(),bV={class:`wt-search-bar__icon-controls`},xV=(0,t.defineComponent)({__name:`wt-search-bar`,props:{v:{type:Object},customValidators:{type:Array,default:()=>[]},value:{type:String,default:``},placeholder:{type:String},hint:{type:String,description:`Adds hint icon + tooltip with text, passed as "hint" prop`},searchMode:{type:[String,Object]},searchModeOptions:{type:Array,default:()=>[]},fullWidth:{type:Boolean,default:!1}},emits:[`input`,`search`,`enter`,`update:search-mode`,`change:search-mode`],setup(e,{emit:n}){let r=e,i=n,{v:a,customValidators:o}=(0,t.toRefs)(r),{invalid:s}=kC({v:a,customValidators:o}),c=(0,t.computed)(()=>s.value?`error`:`default`),l=(0,t.computed)(()=>r.value||r.searchMode||r.hint),u=ax(e=>{i(`search`,e)},1e3);function d(e){i(`input`,e),u(e)}function f(e){e.key===`Enter`?(u(e.target.value),e.preventDefault()):e.key===`Esc`&&(d(``),e.preventDefault())}function p({option:e}){i(`update:search-mode`,e),i(`change:search-mode`,e)}return(n,r)=>{let i=(0,t.resolveComponent)(`wt-icon`),u=(0,t.resolveComponent)(`wt-icon-btn`),m=(0,t.resolveComponent)(`wt-hint`),h=(0,t.resolveComponent)(`wt-radio`),g=(0,t.resolveComponent)(`wt-context-menu`),_=(0,t.resolveComponent)(`wt-input-text`),v=(0,t.resolveDirective)(`tooltip`);return(0,t.openBlock)(),(0,t.createBlock)(_,{"model-value":e.value,placeholder:e.placeholder||n.$t(`webitelUI.searchBar.placeholder`),invalid:(0,t.unref)(s),class:(0,t.normalizeClass)([`wt-search-bar`,{"wt-search-bar--full-width":e.fullWidth}]),type:`search`,v:(0,t.unref)(a),"custom-validators":(0,t.unref)(o),"onUpdate:modelValue":d,onKeyup:f},(0,t.createSlots)({prefix:(0,t.withCtx)(()=>[(0,t.createVNode)(i,{color:c.value,icon:e.searchMode?.icon||`search`},null,8,[`color`,`icon`])]),_:2},[l.value?{name:`suffix`,fn:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,bV,[e.value?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,color:c.value,class:`wt-search-bar__reset-icon-btn`,icon:`close`,onClick:r[0]||=e=>d(``)},null,8,[`color`])):(0,t.createCommentVNode)(``,!0),e.hint?((0,t.openBlock)(),(0,t.createBlock)(m,{key:1,"icon-color":c.value},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.hint),1)],void 0,!0),_:1},8,[`icon-color`])):(0,t.createCommentVNode)(``,!0),e.searchMode?((0,t.openBlock)(),(0,t.createBlock)(g,{key:2,options:e.searchModeOptions,onClick:p},{activator:(0,t.withCtx)(({toggle:e})=>[(0,t.withDirectives)((0,t.createVNode)(u,{color:(0,t.unref)(s)?`error`:`default`,icon:`filter`,onClick:e},null,8,[`color`,`onClick`]),[[v,n.$t(`webitelUI.searchBar.settingsHint`)]])]),option:(0,t.withCtx)(({value:n,text:r})=>[(0,t.createVNode)(h,{label:r,selected:(typeof e.searchMode==`string`?e.searchMode:e.searchMode.value)===n,value:!0},null,8,[`label`,`selected`])]),_:1},8,[`options`])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`additional-actions`,{invalid:(0,t.unref)(s)},void 0,!0)])]),key:`0`}:void 0]),1032,[`model-value`,`placeholder`,`invalid`,`class`,`v`,`custom-validators`])}}})})),CV=F((()=>{})),wV=L({default:()=>TV}),TV,EV=F((()=>{SV(),SV(),CV(),K(),TV=G(xV,[[`__scopeId`,`data-v-0b6f18a7`]])})),DV,OV=F((()=>{Pd(),DV=[{locale:`webitelUI.statusSelect.online`,color:`success`,value:Nd.ONLINE},{locale:`webitelUI.statusSelect.pause`,color:`primary`,value:Nd.PAUSE},{locale:`webitelUI.statusSelect.offline`,color:`secondary`,value:Nd.OFFLINE},{locale:`webitelUI.statusSelect.breakOut`,color:`break-out`,value:Nd.BREAK_OUT}]})),kV,AV=F((()=>{Ub(),tf(),Zpe(),OV(),kV=(0,t.defineComponent)({__name:`wt-status-select`,props:{status:{default:Nd.OFFLINE},statusDuration:{default:0},options:{}},emits:[`change`,`closed`],setup(e,{emit:n}){let r=e,i=n,{t:a}=bb(),o=(0,t.computed)(()=>r.options?r.options:DV.map(e=>({...e,text:a(e.locale)}))),s=(0,t.computed)(()=>o.value.find(e=>e.value===r.status)),c=(0,t.computed)(()=>o.value.reduce((e,t)=>(r.status===t.value&&t.value!==Nd.PAUSE||t.value===Nd.BREAK_OUT||e.push(t),e),[])),l=(0,t.computed)(()=>typeof r.statusDuration==`string`?r.statusDuration:r.statusDuration===void 0?s.value?.text??``:Xb(r.statusDuration));function u(e){i(`change`,e.value)}function d(e){i(`closed`,e)}return(e,n)=>{let r=(0,t.resolveComponent)(`wt-indicator`),i=(0,t.resolveComponent)(`wt-single-select`);return(0,t.openBlock)(),(0,t.createBlock)(i,{"show-clear":!1,options:c.value,filterable:!1,"model-value":s.value,class:`wt-status-select`,"data-key":`value`,size:(0,t.unref)(q).SM,onClosed:d,"onUpdate:modelValue":u},{value:(0,t.withCtx)(({value:e})=>[(0,t.createVNode)(r,{color:s.value.color,text:l.value},null,8,[`color`,`text`])]),option:(0,t.withCtx)(({option:e})=>[(0,t.createVNode)(r,{color:e.color,text:e.text},null,8,[`color`,`text`])]),_:1},8,[`options`,`model-value`,`size`])}}})})),jV=L({default:()=>MV}),MV,NV=F((()=>{AV(),AV(),MV=kV})),PV=F((()=>{})),FV=L({default:()=>HV}),IV,LV,RV,zV,BV,VV,HV,UV=F((()=>{PV(),K(),IV={class:`wt-stepper`},LV={class:`wt-stepper-header`},RV={class:`wt-stepper-steps`},zV={class:`wt-stepper-steps__wrapper`},BV={class:`wt-stepper-description`},VV={__name:`wt-stepper`,props:{steps:{type:Array,required:!0},activeStep:{type:Number,default:1}},setup(e){let n=e,r=(0,t.computed)(()=>n.steps[n.activeStep-1].description),i=(0,t.computed)(()=>n.steps.map((e,t)=>({...e,completed:n.activeStep>t})));return(e,n)=>{let a=(0,t.resolveComponent)(`wt-chip`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,IV,[(0,t.createElementVNode)(`div`,LV,[(0,t.createElementVNode)(`div`,RV,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value,({name:e,completed:n},r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,zV,[r===0?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)([{"wt-stepper-steps__divider--completed":n},`wt-stepper-steps__divider`])},null,2)),(0,t.createVNode)(a,{color:n?`primary`:`secondary`,class:`wt-stepper-steps__item`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e),1)],void 0,!0),_:2},1032,[`color`])]))),256))])]),(0,t.renderSlot)(e.$slots,`description`,{},()=>[(0,t.createElementVNode)(`p`,BV,(0,t.toDisplayString)(r.value),1)],!0),(0,t.renderSlot)(e.$slots,`main`,{},void 0,!0)])}}},HV=G(VV,[[`__scopeId`,`data-v-7b06c506`]])})),WV,GV,KV,qV,JV,YV=F((()=>{Cx(),Ub(),rw(),WV={class:`wt-table__th__content typo-body-1-bold`},GV={class:`wt-table__td__actions`},KV=10,qV=40,JV=(0,t.defineComponent)({__name:`wt-table`,props:{headers:{default:()=>[]},data:{default:()=>[]},sortable:{type:Boolean,default:!1},selectable:{type:Boolean,default:!0},selected:{},gridActions:{type:Boolean,default:!0},fixedActions:{type:Boolean,default:!1},headless:{type:Boolean,default:!1},rowReorder:{type:Boolean,default:!1},dataKey:{default:``},isRowReorderDisabled:{type:Function,default:()=>!1},rowExpansion:{type:Boolean,default:!1},rowClass:{type:Function,default:()=>``},rowStyle:{type:Function,default:()=>({})},resizableColumns:{type:Boolean,default:!1},reorderableColumns:{type:Boolean,default:!1},rowExpansionDisabled:{type:Function,default:()=>!1},lazy:{type:Boolean,default:!1},onLoading:{},loading:{type:Boolean},itemSize:{default:qV},value:{},rows:{},first:{},totalRecords:{},paginator:{type:Boolean},paginatorPosition:{},alwaysShowPaginator:{type:Boolean},paginatorTemplate:{},pageLinkSize:{},rowsPerPageOptions:{},currentPageReportTemplate:{},loadingIcon:{},sortField:{},sortOrder:{},nullSortOrder:{},defaultSortOrder:{},multiSortMeta:{},sortMode:{},removableSort:{type:Boolean},filters:{},filterDisplay:{},globalFilterFields:{},filterLocale:{},selection:{},selectionMode:{},compareSelectionBy:{},metaKeySelection:{type:Boolean},contextMenu:{type:Boolean},contextMenuSelection:{},selectAll:{},rowHover:{type:Boolean},csvSeparator:{},exportFilename:{},exportFunction:{},columnResizeMode:{},expandedRows:{},expandedRowIcon:{},collapsedRowIcon:{},rowGroupMode:{},groupRowsBy:{},expandableRowGroups:{type:Boolean},expandedRowGroups:{},stateStorage:{},stateKey:{},editMode:{},editingRows:{},scrollable:{type:Boolean},scrollHeight:{},virtualScrollerOptions:{},frozenValue:{},breakpoint:{},showHeaders:{type:Boolean},showGridlines:{type:Boolean},stripedRows:{type:Boolean},highlightOnSelect:{type:Boolean},size:{},tableStyle:{},tableClass:{},tableProps:{},filterInputProps:{},filterButtonProps:{},editButtonProps:{},dt:{},pt:{},ptOptions:{},unstyled:{type:Boolean}},emits:[`sort`,`update:selected`,`reorder:row`,`column-resize`,`column-reorder`],setup(e,{emit:n}){let r=e,{t:i}=bb(),a=(0,t.useSlots)(),o=n,s=(0,t.useTemplateRef)(`table`),c=(0,t.ref)(0),l=(0,t.ref)([]),{addTableDragListener:u,removeTableDragListener:d}=ew(s,r.reorderableColumns),f=[`row-select`,`row-reorder`,`row-actions`,`row-expander`],p=(0,t.computed)(()=>r.selectable?r.selected||r.data.filter(e=>e._isSelected):[]),m=(0,t.computed)(()=>r.headers.map(e=>!e.text&&e.locale?{...e,text:typeof e.locale==`string`?i(e.locale):i(...e.locale)}:e)),h=e=>e.show===!1,g=e=>{let t=e.width||`140px`;return r.lazy?{width:t}:{minWidth:t}},_=(0,t.computed)(()=>Object.keys(a).some(e=>e.includes(`-footer`))),v=(0,t.computed)(()=>Object.keys(a).some(e=>e===`footer`)),y=(0,t.computed)(()=>p.value.length===r.data.length&&r.data.length>0),b=(0,t.computed)(()=>r.headers.find(e=>e.sort===xx.ASC||e.sort===xx.DESC)?.field??null),x=({sortField:e})=>{let t=m.value.find(t=>t.field===e);if(!S(t))return;let n=Sx(t.sort);o(`sort`,t,n)},S=({sort:e})=>r.sortable&&e!==void 0,C=()=>{r.selected?y.value?o(`update:selected`,[]):o(`update:selected`,[...r.data]):y.value?r.data.forEach(e=>{e._isSelected=!1}):r.data.forEach(e=>{e._isSelected=!0})},w=(e,t)=>{r.selected?t?o(`update:selected`,[...p.value,e]):o(`update:selected`,p.value.filter(t=>t!==e)):e._isSelected=!e._isSelected},T=({element:e})=>{let t=e.getAttribute(`data-column-field`),n=getComputedStyle(e),r=Number.parseFloat(n.paddingLeft),i=Number.parseFloat(n.paddingRight),a=e.offsetWidth-r-i;o(`column-resize`,{columnName:t,columnWidth:`${a}px`})},E=()=>{let e=s.value.$el.querySelector(`.p-datatable-table-container`).scrollLeft,n=s.value.d_columnOrder.filter(e=>!f.includes(e));c.value+=1,o(`column-reorder`,n),(0,t.nextTick)(()=>{u(),s.value.$el.querySelector(`.p-datatable-table-container`).scrollLeft=e})},D=e=>l.value.some(t=>t?.id===e?.id),O=e=>{let t=l.value.findIndex(t=>t.id===e.id);t===-1?l.value.push(e):l.value.splice(t,1)},k=(0,t.computed)(()=>{if(r.lazy)return{lazy:r.lazy,onLazyLoad:r.onLoading,itemSize:r.itemSize,numToleratedItems:KV,totalRecords:r.data.length,autoSize:!0}});return(0,t.onMounted)(()=>{u()}),(0,t.onUnmounted)(()=>{d()}),(n,i)=>{let a=(0,t.resolveComponent)(`wt-icon-btn`),u=(0,t.resolveComponent)(`p-column`),d=(0,t.resolveComponent)(`wt-icon`),f=(0,t.resolveComponent)(`wt-checkbox`),A=(0,t.resolveComponent)(`p-table`),j=(0,t.resolveDirective)(`tooltip`);return(0,t.openBlock)(),(0,t.createBlock)(A,{key:c.value,ref_key:`table`,ref:s,"expanded-rows":l.value,"reorderable-columns":e.reorderableColumns,"resizable-columns":e.resizableColumns,"row-class":e.rowClass,"row-style":e.rowStyle,"show-headers":!e.headless,value:e.data,"sort-field":b.value,"data-key":r.dataKey,class:`wt-table`,"column-resize-mode":`expand`,lazy:``,"scroll-height":`flex`,scrollable:``,"virtual-scroller-options":k.value,pt:{tableContainer:`wt-scrollbar`},onSort:x,"onUpdate:expandedRows":i[0]||=e=>l.value=e,onColumnResizeEnd:T,onColumnReorder:E,onRowReorder:i[1]||=({dragIndex:e,dropIndex:t})=>o(`reorder:row`,{oldIndex:e,newIndex:t})},(0,t.createSlots)({expansion:(0,t.withCtx)(({data:e})=>[(0,t.createElementVNode)(`div`,null,[(0,t.renderSlot)(n.$slots,`expansion`,{item:e},void 0,!0)])]),default:(0,t.withCtx)(()=>[e.rowExpansion?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,pt:{columnresizer:{class:{hidden:!0}}},"body-style":`width: 1%;`,"column-key":`row-expander`,"header-style":`width: 1%;`},{body:(0,t.withCtx)(({data:e})=>[(0,t.createVNode)(a,{disabled:r.rowExpansionDisabled(e),icon:D(e)?`arrow-down`:`arrow-right`,onClick:(0,t.withModifiers)(t=>O(e),[`stop`])},null,8,[`disabled`,`icon`,`onClick`])]),_:1})):(0,t.createCommentVNode)(``,!0),e.rowReorder?((0,t.openBlock)(),(0,t.createBlock)(u,{key:1,pt:{columnresizer:{class:{hidden:!0}}},"reorderable-column":!1,"body-style":`width: 1%;`,"column-key":`row-reorder`,"header-style":`width: 1%;`,"row-reorder":``},{body:(0,t.withCtx)(({data:n})=>[e.isRowReorderDisabled(n)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(d,{key:0,"data-pc-section":`reorderablerowhandle`,icon:`move`}))]),_:1})):(0,t.createCommentVNode)(``,!0),e.selectable?((0,t.openBlock)(),(0,t.createBlock)(u,{key:2,pt:{columnresizer:{class:{hidden:!0}}},"reorderable-column":!1,"body-style":`width: 1%;`,"column-key":`row-select`,"header-style":`width: 1%;`},{header:(0,t.withCtx)(()=>[(0,t.createVNode)(f,{selected:y.value,"onUpdate:selected":C},null,8,[`selected`])]),body:(0,t.withCtx)(({data:e})=>[e?((0,t.openBlock)(),(0,t.createBlock)(f,{key:0,selected:p.value.includes(e),"onUpdate:selected":t=>w(e,t)},null,8,[`selected`,`onUpdate:selected`])):(0,t.createCommentVNode)(``,!0)]),_:1})):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(m.value,(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(u,{key:e.value,"column-key":e.field,field:e.field,hidden:h(e),pt:{root:{"data-column-field":e.field}},sortable:S(e)},(0,t.createSlots)({header:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`header-${e.value}`,{index:r,header:e},()=>[(0,t.createElementVNode)(`div`,WV,[(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`span`,null,[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)])),[[j,e.text]]),e.sort===`asc`?((0,t.openBlock)(),(0,t.createBlock)(d,{key:0,class:`wt-table__th__sort-arrow wt-table__th__sort-arrow--asc`,icon:`sort-arrow-up`,size:`sm`})):e.sort===`desc`?((0,t.openBlock)(),(0,t.createBlock)(d,{key:1,class:`wt-table__th__sort-arrow wt-table__th__sort-arrow--desc`,icon:`sort-arrow-down`,size:`sm`})):(0,t.createCommentVNode)(``,!0)])],!0)]),body:(0,t.withCtx)(({data:r,index:i})=>[(0,t.createElementVNode)(`div`,{style:(0,t.normalizeStyle)(g(e)),class:`wt-table__td__content typo-body-1`},[r?(0,t.renderSlot)(n.$slots,e.value,{key:0,index:i,item:r},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r[e.value]),1)],!0):(0,t.createCommentVNode)(``,!0)],4)]),sorticon:(0,t.withCtx)(()=>[]),_:2},[_.value?{name:`footer`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`${e.value}-footer`,{},void 0,!0)]),key:`0`}:void 0]),1032,[`column-key`,`field`,`hidden`,`pt`,`sortable`]))),128)),e.gridActions?((0,t.openBlock)(),(0,t.createBlock)(u,{key:3,frozen:e.fixedActions,"align-frozen":`right`,"column-key":`row-actions`,style:{width:`112px`}},{header:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`actions-header`,{},void 0,!0)]),body:(0,t.withCtx)(({data:e,index:r})=>[(0,t.createElementVNode)(`div`,GV,[e?(0,t.renderSlot)(n.$slots,`actions`,{key:0,index:r,item:e},void 0,!0):(0,t.createCommentVNode)(``,!0)])]),_:3},8,[`frozen`])):(0,t.createCommentVNode)(``,!0)],void 0,!0),_:2},[v.value?{name:`footer`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`footer`,{},void 0,!0)]),key:`0`}:void 0]),1032,[`expanded-rows`,`reorderable-columns`,`resizable-columns`,`row-class`,`row-style`,`show-headers`,`value`,`sort-field`,`data-key`,`virtual-scroller-options`])}}})})),XV=F((()=>{})),ZV=L({default:()=>QV}),QV,$V=F((()=>{YV(),YV(),XV(),K(),QV=G(JV,[[`__scopeId`,`data-v-88411100`]])})),eH,tH,nH=F((()=>{eH={class:`wt-table-actions`},tH=(0,t.defineComponent)({__name:`wt-table-actions`,props:{icons:{default:()=>[`refresh`]},isSettingsActive:{type:Boolean,default:!1},isSettingsBadge:{type:Boolean,default:!1}},emits:[`input`],setup(e){let n=e,r=(0,t.computed)(()=>n.icons.indexOf(`import`)!==-1),i=(0,t.computed)(()=>n.icons.indexOf(`export`)!==-1),a=(0,t.computed)(()=>n.icons.indexOf(`filter-reset`)!==-1),o=(0,t.computed)(()=>n.icons.indexOf(`column-select`)!==-1),s=(0,t.computed)(()=>n.icons.indexOf(`refresh`)!==-1),c=(0,t.computed)(()=>n.icons.indexOf(`settings`)!==-1);return(n,l)=>{let u=(0,t.resolveComponent)(`wt-icon-btn`),d=(0,t.resolveComponent)(`wt-badge`),f=(0,t.resolveDirective)(`tooltip`);return(0,t.openBlock)(),(0,t.createElementBlock)(`aside`,eH,[(0,t.renderSlot)(n.$slots,`default`,{},void 0,!0),r.value?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,icon:`download`,onClick:l[0]||=e=>n.$emit(`input`,`import`)},null,512)),[[f,n.$t(`reusable.import`)]]):(0,t.createCommentVNode)(``,!0),i.value?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(u,{key:1,icon:`upload`,onClick:l[1]||=e=>n.$emit(`input`,`export`)},null,512)),[[f,n.$t(`reusable.export`)]]):(0,t.createCommentVNode)(``,!0),a.value?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(u,{key:2,icon:`clear`,onClick:l[2]||=e=>n.$emit(`input`,`filterReset`)},null,512)),[[f,n.$t(`webitelUI.tableActions.filterReset`)]]):(0,t.createCommentVNode)(``,!0),o.value?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(u,{key:3,icon:`column-select`,onClick:l[3]||=e=>n.$emit(`input`,`columnSelect`)},null,512)),[[f,n.$t(`webitelUI.tableActions.columnSelect`)]]):(0,t.createCommentVNode)(``,!0),s.value?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(u,{key:4,icon:`refresh`,onClick:l[4]||=e=>n.$emit(`input`,`refresh`)},null,512)),[[f,n.$t(`webitelUI.tableActions.refreshTable`)]]):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(d,{hidden:!e.isSettingsBadge},{default:(0,t.withCtx)(()=>[c.value?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,class:(0,t.normalizeClass)({active:e.isSettingsActive}),icon:`filter`,onClick:l[5]||=e=>n.$emit(`input`,`settings`)},null,8,[`class`])),[[f,n.$t(`webitelUI.tableActions.expandFilters`)]]):(0,t.createCommentVNode)(``,!0)],void 0,!0),_:1},8,[`hidden`])])}}})})),rH=F((()=>{})),iH=L({default:()=>aH}),aH,oH=F((()=>{nH(),nH(),rH(),K(),aH=G(tH,[[`__scopeId`,`data-v-73cf33d9`]])})),sH=I(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=i():typeof define==`function`&&define.amd?define(i):r[n]=i()})(`dcopy`,e,function(){return function(t){if(/number|string|boolean/.test(typeof t))return t;if(t instanceof Date)return new Date(t.getTime());var n=t instanceof Array?[]:{};return r(t,n),n;function r(t,n){for(var i in t){var a=t[i];if(a instanceof Date){var o=new Date(a.getTime());e(n,i,o)}else if(a instanceof Function){var o=a;e(n,i,o)}else if(a instanceof Array){var o=[],s=e(n,i,o);r(a,s)}else if(a instanceof Object){var o={},s=e(n,i,o);r(a,s)}else{var o=a;e(n,i,o)}}}};function e(e,t,n){if(e instanceof Array)return e.push(n),e[e.length-1];if(e instanceof Object)return e[t]=n,e[t]}})})),cH,lH=F((()=>{cH=`data:image/svg+xml,%3csvg%20viewBox='0%200%20200%20200'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M77.0793%2026.8668C77.6555%2028.5378%2079.1152%2029.959%2080.3252%2030.0551C81.5352%2030.1511%2082.0538%2028.8643%2081.4584%2027.1933C80.863%2025.5224%2079.4225%2024.1011%2078.2125%2024.005C77.0025%2023.909%2076.4839%2025.1958%2077.0793%2026.8668Z'%20fill='%231A2EB2'/%3e%3cpath%20d='M71.4823%2071.7511C73.0572%2076.2646%2077.0138%2080.1251%2080.2981%2080.3556C83.5824%2080.5861%2084.9652%2077.1289%2083.3903%2072.6154C81.8154%2068.1019%2077.8588%2064.2414%2074.5745%2064.0109C71.2902%2063.7804%2069.9074%2067.2376%2071.4823%2071.7511Z'%20fill='%23C9981D'/%3e%3cpath%20d='M43.3249%2090.7521C46.3403%2092.4999%2048.7795%2096.7253%2048.7795%20100.202C48.7795%20103.678%2046.3211%20105.08%2043.2865%20103.332C40.2711%20101.585%2037.8319%2097.3592%2037.8319%2093.8828C37.8319%2090.4064%2040.2903%2089.0043%2043.3249%2090.7521Z'%20fill='%23161922'/%3e%3cpath%20d='M93.4077%20153.253L128.272%20133.127C128.692%20132.885%20129.373%20132.885%20129.798%20133.127L155.224%20147.805C155.644%20148.047%20155.644%20148.441%20155.224%20148.683L120.36%20168.81C119.939%20169.052%20119.258%20169.052%20118.834%20168.81L93.4077%20154.132C92.9871%20153.89%2092.9871%20153.495%2093.4077%20153.253Z'%20fill='%23040506'/%3e%3cpath%20d='M83.6125%20176C83.1919%20176%2082.7825%20175.9%2082.4625%20175.713L54.0814%20159.323C53.6422%20159.07%2053.3892%20158.672%2053.3892%20158.229C53.3892%20157.786%2053.6422%20157.392%2054.0814%20157.135L77.0326%20143.879C77.3527%20143.693%2077.7583%20143.592%2078.1826%20143.592C78.6069%20143.592%2079.0125%20143.693%2079.3326%20143.879L107.714%20160.269C108.153%20160.522%20108.406%20160.92%20108.406%20161.363C108.406%20161.806%20108.153%20162.2%20107.714%20162.457L84.7624%20175.713C84.4424%20175.9%2084.0367%20176%2083.6125%20176Z'%20fill='%23040506'/%3e%3cpath%20d='M60.181%20148.319C60.181%20148.319%2060.5941%20142.881%2058.7333%20138.244C56.8762%20133.607%2053.7277%20130.336%2050.3857%20129.416C47.0436%20128.501%2043.7053%20131.099%2046.9283%20133.938C50.1512%20136.778%2056.1839%20140.198%2057.6242%20148.787L60.1847%20148.319H60.181Z'%20fill='%23040506'/%3e%3cpath%20d='M59.4515%20146.748C59.4515%20146.748%2059.4775%20146.748%2059.4887%20146.748C59.5892%20146.729%2059.6524%20146.633%2059.6338%20146.532C57.7358%20137.027%2051.6212%20132.04%2048.6513%20130.73C48.5583%20130.689%2048.4503%20130.73%2048.4094%20130.823C48.3685%20130.916%2048.4094%20131.024%2048.5024%20131.065C51.409%20132.345%2057.4046%20137.243%2059.2728%20146.599C59.2914%20146.685%2059.3659%20146.748%2059.4515%20146.748Z'%20fill='%23272C3A'/%3e%3cpath%20d='M44.6283%20144.336C44.7735%20144.954%2045.3392%20145.371%2045.8751%20145.717C46.4073%20146.06%2046.9916%20146.432%2047.2037%20147.031C47.6279%20148.24%2046.2956%20149.577%2046.772%20150.767C46.9729%20151.266%2047.4568%20151.601%2047.9592%20151.795C48.376%20151.958%2048.8151%20152.04%2049.2469%20152.163C49.459%20152.2%2049.6711%20152.223%2049.8795%20152.234C50.4973%20152.26%2051.156%20152.357%2051.6473%20152.77C52.4214%20153.421%2052.4772%20154.567%2052.8419%20155.512C53.2811%20156.644%2054.271%20157.518%2055.4099%20157.902C56.37%20158.218%2057.8847%20158.281%2058.2197%20157.894C58.4765%20157.6%2058.0894%20156.495%2058.1527%20156.108C58.309%20155.122%2058.3723%20154.117%2058.3388%20153.119C58.3239%20152.632%2058.309%20152.237%2058.4058%20151.757C58.5063%20151.255%2058.603%20150.753%2058.6923%20150.25C58.8375%20149.439%2059.1054%20148.572%2058.9082%20147.742C58.6886%20146.83%2057.747%20146.633%2057.5498%20145.74C57.4679%20145.382%2057.4605%20145.018%2057.386%20144.66C57.159%20143.607%2056.2919%20142.718%2055.2461%20142.464C53.616%20142.066%2051.8818%20143.119%2050.2591%20142.68C49.8386%20142.565%2049.4478%20142.357%2049.0422%20142.2C47.7545%20141.694%2046.1393%20141.78%2045.1754%20142.766C44.7735%20143.179%2044.5018%20143.771%2044.632%20144.333L44.6283%20144.336Z'%20fill='%23040506'/%3e%3cpath%20d='M57.8774%20155.308C57.8774%20155.308%2057.8849%20155.308%2057.8886%20155.308C57.9667%20155.304%2058.0263%20155.233%2058.0226%20155.155C57.3787%20146.179%2048.6143%20143.224%2046.4781%20142.974C46.3999%20142.967%2046.3292%20143.023%2046.318%20143.101C46.3106%20143.179%2046.3664%20143.25%2046.4446%20143.261C48.5324%20143.507%2057.1033%20146.395%2057.736%20155.178C57.7397%20155.252%2057.803%20155.312%2057.8774%20155.312V155.308Z'%20fill='%23272C3A'/%3e%3cpath%20d='M48.7071%20149.067C48.7369%20149.067%2048.7629%20149.059%2048.789%20149.041C48.815%20149.022%2051.543%20147.198%2055.2423%20148.486C55.3167%20148.512%2055.3986%20148.471%2055.4246%20148.397C55.4507%20148.322%2055.4098%20148.24%2055.3353%20148.214C51.4909%20146.878%2048.655%20148.784%2048.6252%20148.802C48.5583%20148.847%2048.5434%20148.936%2048.588%20149C48.6141%20149.041%2048.6587%20149.063%2048.7034%20149.063L48.7071%20149.067Z'%20fill='%23272C3A'/%3e%3cpath%20d='M119.593%20165.896L97.572%20153.179V84.1653L119.593%2096.8783V165.896Z'%20fill='%23161922'/%3e%3cpath%20d='M119.593%2096.8783L151.052%2078.7168V147.731L119.593%20165.896V96.8783Z'%20fill='%23272C3A'/%3e%3cpath%20d='M151.052%2078.7168L119.593%2096.8783L97.572%2084.1652L129.031%2066L151.052%2078.7168Z'%20fill='%23272C3A'/%3e%3cpath%20d='M122.741%20141.608L147.907%20127.079V144.571L148.484%20144.902L123.318%20159.435L122.741%20159.1V141.608Z'%20fill='%23040506'/%3e%3cpath%20d='M123.318%20141.943L148.488%20127.414L148.484%20144.902L123.318%20159.435V141.943Z'%20fill='%23272C3A'/%3e%3cpath%20d='M133.184%20139.212L137.464%20136.741C138.019%20136.421%20138.469%20136.566%20138.469%20137.068C138.469%20137.57%20138.019%20138.237%20137.464%20138.557L133.184%20141.028C132.63%20141.348%20132.179%20141.203%20132.179%20140.7C132.179%20140.198%20132.63%20139.532%20133.184%20139.212Z'%20fill='%23040506'/%3e%3cpath%20d='M122.741%20120.488L147.907%20105.959V123.451L148.484%20123.786L123.318%20138.315L122.741%20137.98V120.488Z'%20fill='%23040506'/%3e%3cpath%20d='M123.318%20120.823L148.488%20106.294L148.484%20123.786L123.318%20138.315V120.823Z'%20fill='%23272C3A'/%3e%3cpath%20d='M133.184%20118.092L137.464%20115.62C138.019%20115.3%20138.469%20115.445%20138.469%20115.948C138.469%20116.45%20138.019%20117.116%20137.464%20117.437L133.184%20119.908C132.63%20120.228%20132.179%20120.083%20132.179%20119.58C132.179%20119.078%20132.63%20118.412%20133.184%20118.092Z'%20fill='%23040506'/%3e%3cpath%20d='M122.741%2099.368L147.907%2084.8388V102.327L122.741%20116.856V99.368Z'%20fill='%23040506'/%3e%3cpath%20d='M160.49%2095.0622L146.526%2087.0049V102.412L160.49%20110.47V95.0622Z'%20fill='%23040506'/%3e%3cg%20opacity='0.1'%3e%3cpath%20d='M160.49%2095.0622L146.526%2087.0049V102.412L160.49%20110.47V95.0622Z'%20fill='%23040506'/%3e%3c/g%3e%3cpath%20d='M147.501%2086.4392L146.526%2087.0011L160.49%2095.0622L161.465%2094.4965L147.501%2086.4392Z'%20fill='%23272C3A'/%3e%3cpath%20d='M151.435%2088.14C151.435%2087.9874%20151.383%2087.8832%20151.301%2087.8274C151.301%2087.8274%20151.29%2087.8162%20151.268%2087.8087L150.557%2087.3919C150.468%2087.3398%20150.345%2087.351%20150.211%2087.4254L135.987%2095.6279L135.574%2093.9569C135.537%2093.8303%20135.462%2093.741%20135.369%2093.6852L134.628%2093.2535C134.498%2093.179%20134.334%2093.1753%20134.178%2093.2684L128.127%2096.7592C127.855%2096.9156%20127.635%2097.2989%20127.635%2097.6115V117.79C127.635%20117.939%20127.684%20118.047%20127.769%20118.103L128.532%20118.546C128.622%20118.59%20128.737%20118.579%20128.867%20118.505L150.959%20105.751C151.231%20105.594%20151.45%20105.211%20151.45%20104.898L151.443%2088.1362L151.435%2088.14Z'%20fill='%23040506'/%3e%3cg%20opacity='0.2'%3e%3cmask%20id='path-25-inside-1_8152_16965'%20fill='white'%3e%3cpath%20d='M135.354%2093.6814C135.227%2093.6107%20135.067%2093.6145%20134.915%2093.7001L128.864%2097.1909C128.73%2097.2691%20128.607%2097.4031%20128.517%2097.5594L127.781%2097.1314C127.87%2096.9751%20127.993%2096.8411%20128.127%2096.7629L134.178%2093.2721C134.338%2093.1828%20134.502%2093.1865%20134.628%2093.2609L135.358%2093.6814H135.354Z'/%3e%3c/mask%3e%3cpath%20d='M135.354%2093.6814C135.227%2093.6107%20135.067%2093.6145%20134.915%2093.7001L128.864%2097.1909C128.73%2097.2691%20128.607%2097.4031%20128.517%2097.5594L127.781%2097.1314C127.87%2096.9751%20127.993%2096.8411%20128.127%2096.7629L134.178%2093.2721C134.338%2093.1828%20134.502%2093.1865%20134.628%2093.2609L135.358%2093.6814H135.354Z'%20fill='%23161922'/%3e%3cpath%20d='M135.354%2093.6814L134.866%2094.5544L135.094%2094.6814H135.354V93.6814ZM134.915%2093.7001L134.426%2092.8278L134.415%2092.8339L134.915%2093.7001ZM128.864%2097.1909L128.364%2096.3247L128.36%2096.3272L128.864%2097.1909ZM128.517%2097.5594L128.015%2098.4241L128.886%2098.9299L129.386%2098.0555L128.517%2097.5594ZM127.781%2097.1314L126.912%2096.6353L126.42%2097.4974L127.278%2097.9961L127.781%2097.1314ZM128.127%2096.7629L127.627%2095.8967L127.623%2095.8992L128.127%2096.7629ZM134.178%2093.2721L133.691%2092.3989L133.684%2092.4023L133.678%2092.4059L134.178%2093.2721ZM134.628%2093.2609L134.121%2094.1229L134.129%2094.1272L134.628%2093.2609ZM135.358%2093.6814V94.6814H139.094L135.857%2092.8151L135.358%2093.6814ZM135.842%2092.8085C135.365%2092.5418%20134.831%2092.6002%20134.426%2092.8279L135.404%2094.5722C135.303%2094.6287%20135.09%2094.6796%20134.866%2094.5544L135.842%2092.8085ZM134.415%2092.8339L128.364%2096.3247L129.363%2098.0571L135.415%2094.5663L134.415%2092.8339ZM128.36%2096.3272C128.04%2096.5134%20127.804%2096.7925%20127.649%2097.0632L129.386%2098.0555C129.39%2098.0486%20129.394%2098.0424%20129.397%2098.0374C129.401%2098.0323%20129.404%2098.0293%20129.405%2098.0282C129.406%2098.027%20129.404%2098.029%20129.399%2098.0333C129.394%2098.0375%20129.384%2098.0453%20129.367%2098.0547L128.36%2096.3272ZM129.02%2096.6946L128.283%2096.2667L127.278%2097.9961L128.015%2098.4241L129.02%2096.6946ZM128.649%2097.6275C128.653%2097.6206%20128.657%2097.6144%20128.66%2097.6094C128.664%2097.6043%20128.667%2097.6013%20128.668%2097.6002C128.669%2097.599%20128.667%2097.601%20128.662%2097.6053C128.657%2097.6095%20128.647%2097.6173%20128.63%2097.6267L127.623%2095.8992C127.303%2096.0855%20127.067%2096.3645%20126.912%2096.6353L128.649%2097.6275ZM128.626%2097.6292L134.678%2094.1383L133.678%2092.4059L127.627%2095.8967L128.626%2097.6292ZM134.665%2094.1453C134.612%2094.1749%20134.531%2094.2038%20134.428%2094.205C134.324%2094.2063%20134.217%2094.1791%20134.121%2094.1228L135.135%2092.399C134.672%2092.1266%20134.128%2092.1545%20133.691%2092.3989L134.665%2094.1453ZM134.129%2094.1272L134.858%2094.5478L135.857%2092.8151L135.128%2092.3946L134.129%2094.1272ZM135.358%2092.6814H135.354V94.6814H135.358V92.6814Z'%20fill='%23161922'%20mask='url(%23path-25-inside-1_8152_16965)'/%3e%3c/g%3e%3cpath%20opacity='0.2'%20d='M151.264%2087.8087C151.179%2087.7715%20151.063%2087.7864%20150.94%2087.8571L136.705%2096.0707C136.433%2096.2271%20136.139%2096.1117%20136.05%2095.8102L135.983%2095.6316L150.207%2087.4291C150.285%2087.3845%20150.36%2087.3622%20150.427%2087.3622C150.475%2087.3622%20150.516%2087.3733%20150.553%2087.3956L151.264%2087.8125V87.8087Z'%20fill='%23272C3A'/%3e%3cpath%20d='M151.435%2088.14L151.443%20104.898C151.443%20105.211%20151.223%20105.594%20150.951%20105.751L128.804%20118.534C128.611%20118.646%20128.369%20118.508%20128.369%20118.285V98.0432C128.369%2097.8869%20128.424%2097.712%20128.514%2097.5594C128.603%2097.4031%20128.73%2097.2691%20128.86%2097.191L134.911%2093.6963C135.068%2093.6108%20135.224%2093.607%20135.354%2093.6777L135.365%2093.6852C135.458%2093.741%20135.533%2093.8303%20135.57%2093.9569L135.983%2095.6279L136.05%2095.8065C136.139%2096.108%20136.433%2096.2233%20136.705%2096.067L150.944%2087.8534C151.067%2087.7827%20151.178%2087.7715%20151.264%2087.805L151.283%2087.8162C151.283%2087.8162%20151.29%2087.8162%20151.294%2087.8199H151.298C151.379%2087.8757%20151.432%2087.9837%20151.432%2088.1362L151.435%2088.14Z'%20fill='%23040506'/%3e%3cpath%20opacity='0.3'%20d='M151.435%2088.14L151.443%20104.898C151.443%20105.211%20151.223%20105.594%20150.951%20105.751L128.804%20118.534C128.611%20118.646%20128.369%20118.508%20128.369%20118.285V98.0432C128.369%2097.8869%20128.424%2097.712%20128.514%2097.5594C128.603%2097.4031%20128.73%2097.2691%20128.86%2097.191L134.911%2093.6963C135.068%2093.6108%20135.224%2093.607%20135.354%2093.6777L135.365%2093.6852C135.458%2093.741%20135.533%2093.8303%20135.57%2093.9569L135.983%2095.6279L136.05%2095.8065C136.139%2096.108%20136.433%2096.2233%20136.705%2096.067L150.944%2087.8534C151.067%2087.7827%20151.178%2087.7715%20151.264%2087.805L151.283%2087.8162C151.283%2087.8162%20151.29%2087.8162%20151.294%2087.8199H151.298C151.379%2087.8757%20151.432%2087.9837%20151.432%2088.1362L151.435%2088.14Z'%20fill='%23272C3A'/%3e%3cpath%20opacity='0.5'%20d='M128.547%20118.553C128.547%20118.553%20128.532%20118.553%20128.525%20118.546L127.762%20118.103C127.68%20118.047%20127.628%20117.943%20127.628%20117.79V97.6115C127.628%2097.4514%20127.684%2097.284%20127.773%2097.1277L128.51%2097.5556C128.421%2097.712%20128.365%2097.8831%20128.365%2098.0395V118.281C128.365%20118.408%20128.443%20118.508%20128.543%20118.549L128.547%20118.553Z'%20fill='%23040506'/%3e%3cpath%20d='M153.806%2089.5207C153.806%2089.3681%20153.754%2089.2639%20153.672%2089.2081C153.672%2089.2081%20153.661%2089.1969%20153.638%2089.1895L152.928%2088.7726C152.838%2088.7243%20152.715%2088.7317%20152.581%2088.8099L138.357%2097.0123L137.944%2095.3413C137.907%2095.2148%20137.833%2095.1254%20137.74%2095.0696L136.999%2094.6379C136.869%2094.5635%20136.705%2094.5598%20136.549%2094.6528L130.497%2098.1437C130.226%2098.3%20130.006%2098.6833%20130.006%2098.9959V119.175C130.006%20119.323%20130.054%20119.431%20130.14%20119.487L130.903%20119.93C130.992%20119.975%20131.108%20119.964%20131.238%20119.889L153.33%20107.135C153.601%20106.979%20153.821%20106.595%20153.821%20106.283L153.813%2089.5207H153.806Z'%20fill='%23040506'/%3e%3cg%20opacity='0.1'%3e%3cmask%20id='path-32-inside-2_8152_16965'%20fill='white'%3e%3cpath%20d='M137.725%2095.0622C137.598%2094.9915%20137.438%2094.9952%20137.285%2095.0808L131.234%2098.5717C131.1%2098.6498%20130.977%2098.7838%20130.888%2098.9401L130.151%2098.5121C130.24%2098.3558%20130.363%2098.2218%20130.497%2098.1437L136.549%2094.6528C136.709%2094.5635%20136.872%2094.5672%20136.999%2094.6416L137.728%2095.0622H137.725Z'/%3e%3c/mask%3e%3cpath%20d='M137.725%2095.0622C137.598%2094.9915%20137.438%2094.9952%20137.285%2095.0808L131.234%2098.5717C131.1%2098.6498%20130.977%2098.7838%20130.888%2098.9401L130.151%2098.5121C130.24%2098.3558%20130.363%2098.2218%20130.497%2098.1437L136.549%2094.6528C136.709%2094.5635%20136.872%2094.5672%20136.999%2094.6416L137.728%2095.0622H137.725Z'%20fill='%23161922'/%3e%3cpath%20d='M137.725%2095.0622L137.237%2095.9351L137.464%2096.0622H137.725V95.0622ZM137.285%2095.0808L136.796%2094.2086L136.786%2094.2146L137.285%2095.0808ZM131.234%2098.5717L130.734%2097.7055L130.73%2097.7079L131.234%2098.5717ZM130.888%2098.9401L130.386%2099.8048L131.257%20100.311L131.756%2099.4363L130.888%2098.9401ZM130.151%2098.5121L129.283%2098.016L128.79%2098.8781L129.649%2099.3769L130.151%2098.5121ZM130.497%2098.1437L129.998%2097.2775L129.993%2097.2799L130.497%2098.1437ZM136.549%2094.6528L136.061%2093.7796L136.055%2093.7831L136.049%2093.7866L136.549%2094.6528ZM136.999%2094.6416L136.492%2095.5036L136.499%2095.508L136.999%2094.6416ZM137.728%2095.0622V96.0622H141.465L138.228%2094.1959L137.728%2095.0622ZM138.212%2094.1892C137.735%2093.9226%20137.202%2093.981%20136.796%2094.2086L137.775%2095.9529C137.674%2096.0094%20137.461%2096.0604%20137.237%2095.9351L138.212%2094.1892ZM136.786%2094.2146L130.734%2097.7055L131.734%2099.4379L137.785%2095.947L136.786%2094.2146ZM130.73%2097.7079C130.411%2097.8942%20130.174%2098.1732%20130.02%2098.444L131.756%2099.4363C131.76%2099.4293%20131.764%2099.4232%20131.768%2099.4181C131.772%2099.413%20131.774%2099.41%20131.775%2099.4089C131.776%2099.4078%20131.775%2099.4097%20131.77%2099.414C131.764%2099.4182%20131.754%2099.426%20131.738%2099.4355L130.73%2097.7079ZM131.39%2098.0754L130.653%2097.6474L129.649%2099.3769L130.386%2099.8048L131.39%2098.0754ZM131.019%2099.0083C131.023%2099.0013%20131.027%2098.9952%20131.031%2098.9901C131.035%2098.985%20131.037%2098.982%20131.038%2098.9809C131.04%2098.9798%20131.038%2098.9818%20131.033%2098.986C131.028%2098.9902%20131.017%2098.998%20131.001%2099.0075L129.993%2097.2799C129.674%2097.4662%20129.438%2097.7452%20129.283%2098.016L131.019%2099.0083ZM130.997%2099.0099L137.048%2095.519L136.049%2093.7866L129.998%2097.2775L130.997%2099.0099ZM137.036%2095.526C136.983%2095.5557%20136.902%2095.5845%20136.798%2095.5857C136.695%2095.587%20136.588%2095.5598%20136.492%2095.5036L137.506%2093.7797C137.043%2093.5074%20136.499%2093.5352%20136.061%2093.7796L137.036%2095.526ZM136.499%2095.508L137.229%2095.9285L138.228%2094.1959L137.498%2093.7753L136.499%2095.508ZM137.728%2094.0622H137.725V96.0622H137.728V94.0622Z'%20fill='%23161922'%20mask='url(%23path-32-inside-2_8152_16965)'/%3e%3c/g%3e%3cpath%20opacity='0.1'%20d='M153.634%2089.1895C153.549%2089.1522%20153.434%2089.1671%20153.311%2089.2378L139.076%2097.4515C138.804%2097.6078%20138.51%2097.4924%20138.421%2097.1909L138.354%2097.0123L152.578%2088.8099C152.656%2088.7652%20152.73%2088.7429%20152.797%2088.7429C152.846%2088.7429%20152.886%2088.754%20152.924%2088.7764L153.634%2089.1932V89.1895Z'%20fill='%23272C3A'/%3e%3cpath%20d='M153.806%2089.5244L153.813%20106.283C153.813%20106.595%20153.594%20106.979%20153.322%20107.135L131.175%20119.923C130.981%20120.034%20130.739%20119.893%20130.739%20119.673V99.4314C130.739%2099.275%20130.795%2099.1001%20130.884%2098.9475C130.974%2098.7912%20131.1%2098.6573%20131.231%2098.5791L137.282%2095.0845C137.438%2094.9989%20137.594%2094.9952%20137.725%2095.0659L137.736%2095.0733C137.829%2095.1292%20137.903%2095.2185%20137.941%2095.345L138.354%2097.016L138.421%2097.1947C138.51%2097.4961%20138.804%2097.6115%20139.076%2097.4552L153.315%2089.2416C153.437%2089.1708%20153.549%2089.1597%20153.635%2089.1932L153.653%2089.2043C153.653%2089.2043%20153.661%2089.2043%20153.664%2089.2081H153.668C153.75%2089.2639%20153.802%2089.3718%20153.802%2089.5244H153.806Z'%20fill='%23040506'/%3e%3cpath%20opacity='0.2'%20d='M153.806%2089.5244L153.813%20106.283C153.813%20106.595%20153.594%20106.979%20153.322%20107.135L131.175%20119.923C130.981%20120.034%20130.739%20119.893%20130.739%20119.673V99.4314C130.739%2099.275%20130.795%2099.1001%20130.884%2098.9475C130.974%2098.7912%20131.1%2098.6573%20131.231%2098.5791L137.282%2095.0845C137.438%2094.9989%20137.594%2094.9952%20137.725%2095.0659L137.736%2095.0733C137.829%2095.1292%20137.903%2095.2185%20137.941%2095.345L138.354%2097.016L138.421%2097.1947C138.51%2097.4961%20138.804%2097.6115%20139.076%2097.4552L153.315%2089.2416C153.437%2089.1708%20153.549%2089.1597%20153.635%2089.1932L153.653%2089.2043C153.653%2089.2043%20153.661%2089.2043%20153.664%2089.2081H153.668C153.75%2089.2639%20153.802%2089.3718%20153.802%2089.5244H153.806Z'%20fill='%23272C3A'/%3e%3cpath%20opacity='0.4'%20d='M130.918%20119.938C130.918%20119.938%20130.903%20119.937%20130.895%20119.93L130.133%20119.487C130.051%20119.431%20129.999%20119.327%20129.999%20119.175V98.9959C129.999%2098.8359%20130.054%2098.6684%20130.144%2098.5121L130.881%2098.9401C130.791%2099.0964%20130.735%2099.2676%20130.735%2099.4239V119.666C130.735%20119.792%20130.814%20119.893%20130.914%20119.934L130.918%20119.938Z'%20fill='%23040506'/%3e%3cpath%20d='M156.176%2090.9051C156.176%2090.7525%20156.124%2090.6483%20156.043%2090.5925C156.043%2090.5925%20156.031%2090.5813%20156.009%2090.5739L155.298%2090.1571C155.209%2090.105%20155.086%2090.1161%20154.952%2090.1906L140.728%2098.393L140.315%2096.722C140.278%2096.5955%20140.203%2096.5061%20140.11%2096.4503L139.37%2096.0186C139.239%2095.9442%20139.076%2095.9405%20138.919%2096.0335L132.868%2099.5244C132.596%2099.6807%20132.377%20100.064%20132.377%20100.377V120.555C132.377%20120.704%20132.425%20120.812%20132.511%20120.868L133.274%20121.311C133.363%20121.355%20133.478%20121.344%20133.609%20121.27L155.7%20108.516C155.972%20108.36%20156.191%20107.976%20156.191%20107.664L156.184%2090.9014L156.176%2090.9051Z'%20fill='%23040506'/%3e%3cmask%20id='path-39-inside-3_8152_16965'%20fill='white'%3e%3cpath%20d='M140.095%2096.4429C139.969%2096.3722%20139.809%2096.3759%20139.656%2096.4615L133.605%2099.9524C133.471%20100.031%20133.348%20100.165%20133.259%20100.321L132.522%2099.8928C132.611%2099.7365%20132.734%2099.6025%20132.868%2099.5244L138.919%2096.0335C139.079%2095.9442%20139.243%2095.9479%20139.37%2096.0223L140.099%2096.4429H140.095Z'/%3e%3c/mask%3e%3cpath%20d='M140.095%2096.4429C139.969%2096.3722%20139.809%2096.3759%20139.656%2096.4615L133.605%2099.9524C133.471%20100.031%20133.348%20100.165%20133.259%20100.321L132.522%2099.8928C132.611%2099.7365%20132.734%2099.6025%20132.868%2099.5244L138.919%2096.0335C139.079%2095.9442%20139.243%2095.9479%20139.37%2096.0223L140.099%2096.4429H140.095Z'%20fill='%23040506'/%3e%3cpath%20d='M140.095%2096.4429L139.608%2097.3158L139.835%2097.4429H140.095V96.4429ZM139.656%2096.4615L139.167%2095.5893L139.157%2095.5953L139.656%2096.4615ZM133.605%2099.9524L133.105%2099.0862L133.101%2099.0886L133.605%2099.9524ZM133.259%20100.321L132.757%20101.186L133.627%20101.691L134.127%20100.817L133.259%20100.321ZM132.522%2099.8928L131.654%2099.3967L131.161%20100.259L132.02%20100.758L132.522%2099.8928ZM132.868%2099.5244L132.368%2098.6582L132.364%2098.6606L132.868%2099.5244ZM138.919%2096.0335L138.432%2095.1603L138.426%2095.1638L138.42%2095.1673L138.919%2096.0335ZM139.37%2096.0223L138.863%2096.8843L138.87%2096.8887L139.37%2096.0223ZM140.099%2096.4429V97.4429H143.836L140.599%2095.5766L140.099%2096.4429ZM140.583%2095.5699C140.106%2095.3033%20139.573%2095.3617%20139.167%2095.5894L140.146%2097.3336C140.045%2097.3901%20139.832%2097.4411%20139.608%2097.3158L140.583%2095.5699ZM139.157%2095.5953L133.105%2099.0862L134.105%20100.819L140.156%2097.3277L139.157%2095.5953ZM133.101%2099.0886C132.782%2099.2749%20132.545%2099.5539%20132.391%2099.8247L134.127%20100.817C134.131%20100.81%20134.135%20100.804%20134.139%20100.799C134.143%20100.794%20134.145%20100.791%20134.146%20100.79C134.147%20100.788%20134.146%20100.79%20134.14%20100.795C134.135%20100.799%20134.125%20100.807%20134.109%20100.816L133.101%2099.0886ZM133.761%2099.4561L133.024%2099.0281L132.02%20100.758L132.757%20101.186L133.761%2099.4561ZM133.39%20100.389C133.394%20100.382%20133.398%20100.376%20133.402%20100.371C133.406%20100.366%20133.408%20100.363%20133.409%20100.362C133.41%20100.36%20133.409%20100.362%20133.404%20100.367C133.398%20100.371%20133.388%20100.379%20133.372%20100.388L132.364%2098.6606C132.045%2098.8469%20131.808%2099.1259%20131.654%2099.3967L133.39%20100.389ZM133.368%20100.391L139.419%2096.8997L138.42%2095.1673L132.368%2098.6582L133.368%20100.391ZM139.407%2096.9067C139.354%2096.9364%20139.272%2096.9652%20139.169%2096.9665C139.066%2096.9677%20138.958%2096.9406%20138.863%2096.8843L139.877%2095.1604C139.414%2094.8881%20138.87%2094.9159%20138.432%2095.1603L139.407%2096.9067ZM138.87%2096.8887L139.6%2097.3092L140.599%2095.5766L139.869%2095.156L138.87%2096.8887ZM140.099%2095.4429H140.095V97.4429H140.099V95.4429Z'%20fill='%23161922'%20mask='url(%23path-39-inside-3_8152_16965)'/%3e%3cpath%20d='M156.005%2090.5739C155.92%2090.5367%20155.804%2090.5516%20155.682%2090.6223L141.446%2098.8359C141.175%2098.9922%20140.881%2098.8768%20140.791%2098.5754L140.724%2098.3967L154.948%2090.1943C155.027%2090.1496%20155.101%2090.1273%20155.168%2090.1273C155.216%2090.1273%20155.257%2090.1385%20155.295%2090.1608L156.005%2090.5776V90.5739Z'%20fill='%23040506'/%3e%3cpath%20d='M156.176%2090.9051L156.184%20107.664C156.184%20107.976%20155.964%20108.36%20155.693%20108.516L133.545%20121.303C133.352%20121.415%20133.11%20121.277%20133.11%20121.054V100.812C133.11%20100.656%20133.166%20100.481%20133.255%20100.328C133.344%20100.172%20133.471%20100.038%20133.601%2099.9598L139.652%2096.4652C139.809%2096.3796%20139.965%2096.3759%20140.095%2096.4466L140.107%2096.454C140.2%2096.5099%20140.274%2096.5992%20140.311%2096.7257L140.724%2098.3967L140.791%2098.5754C140.881%2098.8768%20141.175%2098.9922%20141.446%2098.8359L155.685%2090.6223C155.808%2090.5515%20155.92%2090.5404%20156.005%2090.5739L156.024%2090.585C156.024%2090.585%20156.031%2090.585%20156.035%2090.5888H156.039C156.121%2090.6446%20156.173%2090.7525%20156.173%2090.9051H156.176Z'%20fill='%23040506'/%3e%3cpath%20opacity='0.1'%20d='M156.176%2090.9051L156.184%20107.664C156.184%20107.976%20155.964%20108.36%20155.693%20108.516L133.545%20121.303C133.352%20121.415%20133.11%20121.277%20133.11%20121.054V100.812C133.11%20100.656%20133.166%20100.481%20133.255%20100.328C133.344%20100.172%20133.471%20100.038%20133.601%2099.9598L139.652%2096.4652C139.809%2096.3796%20139.965%2096.3759%20140.095%2096.4466L140.107%2096.454C140.2%2096.5099%20140.274%2096.5992%20140.311%2096.7257L140.724%2098.3967L140.791%2098.5754C140.881%2098.8768%20141.175%2098.9922%20141.446%2098.8359L155.685%2090.6223C155.808%2090.5515%20155.92%2090.5404%20156.005%2090.5739L156.024%2090.585C156.024%2090.585%20156.031%2090.585%20156.035%2090.5888H156.039C156.121%2090.6446%20156.173%2090.7525%20156.173%2090.9051H156.176Z'%20fill='%23272C3A'/%3e%3cpath%20opacity='0.3'%20d='M133.289%20121.318C133.289%20121.318%20133.274%20121.318%20133.266%20121.311L132.503%20120.868C132.421%20120.812%20132.369%20120.708%20132.369%20120.555V100.377C132.369%20100.22%20132.425%20100.049%20132.515%2099.8928L133.251%20100.321C133.162%20100.477%20133.106%20100.648%20133.106%20100.805V121.047C133.106%20121.173%20133.184%20121.274%20133.285%20121.314L133.289%20121.318Z'%20fill='%23040506'/%3e%3cpath%20d='M158.547%2092.2858C158.547%2092.1332%20158.495%2092.029%20158.413%2091.9732C158.413%2091.9732%20158.402%2091.962%20158.38%2091.9546L157.669%2091.5378C157.579%2091.4857%20157.457%2091.4968%20157.323%2091.5713L143.099%2099.7737L142.686%2098.1027C142.648%2097.9762%20142.574%2097.8869%20142.481%2097.831L141.74%2097.3993C141.61%2097.3249%20141.446%2097.3212%20141.29%2097.4142L135.239%20100.905C134.967%20101.061%20134.747%20101.445%20134.747%20101.757V121.936C134.747%20122.085%20134.796%20122.193%20134.881%20122.249L135.644%20122.691C135.734%20122.736%20135.849%20122.725%20135.979%20122.651L158.071%20109.897C158.342%20109.74%20158.562%20109.357%20158.562%20109.044L158.555%2092.2821L158.547%2092.2858Z'%20fill='%23040506'/%3e%3cg%20opacity='0.5'%3e%3cmask%20id='path-46-inside-4_8152_16965'%20fill='white'%3e%3cpath%20d='M142.466%2097.8236C142.339%2097.7529%20142.179%2097.7566%20142.027%2097.8422L135.975%20101.333C135.841%20101.411%20135.719%20101.545%20135.629%20101.701L134.892%20101.274C134.982%20101.117%20135.104%20100.983%20135.238%20100.905L141.29%2097.4142C141.45%2097.3249%20141.614%2097.3286%20141.74%2097.403L142.47%2097.8236H142.466Z'/%3e%3c/mask%3e%3cpath%20d='M142.466%2097.8236C142.339%2097.7529%20142.179%2097.7566%20142.027%2097.8422L135.975%20101.333C135.841%20101.411%20135.719%20101.545%20135.629%20101.701L134.892%20101.274C134.982%20101.117%20135.104%20100.983%20135.238%20100.905L141.29%2097.4142C141.45%2097.3249%20141.614%2097.3286%20141.74%2097.403L142.47%2097.8236H142.466Z'%20fill='%23272C3A'/%3e%3cpath%20d='M142.466%2097.8236L141.978%2098.6965L142.205%2098.8236H142.466V97.8236ZM142.027%2097.8422L141.537%2096.97L141.527%2096.976L142.027%2097.8422ZM135.975%20101.333L135.476%20100.467L135.471%20100.469L135.975%20101.333ZM135.629%20101.701L135.127%20102.566L135.998%20103.072L136.497%20102.198L135.629%20101.701ZM134.892%20101.274L134.024%20100.777L133.531%20101.64L134.39%20102.138L134.892%20101.274ZM135.238%20100.905L134.739%20100.039L134.735%20100.041L135.238%20100.905ZM141.29%2097.4142L140.802%2096.541L140.796%2096.5444L140.79%2096.548L141.29%2097.4142ZM141.74%2097.403L141.233%2098.265L141.241%2098.2694L141.74%2097.403ZM142.47%2097.8236V98.8236H146.206L142.969%2096.9572L142.47%2097.8236ZM142.954%2096.9506C142.476%2096.684%20141.943%2096.7424%20141.537%2096.97L142.516%2098.7143C142.415%2098.7708%20142.202%2098.8218%20141.978%2098.6965L142.954%2096.9506ZM141.527%2096.976L135.476%20100.467L136.475%20102.199L142.526%2098.7084L141.527%2096.976ZM135.471%20100.469C135.152%20100.656%20134.916%20100.935%20134.761%20101.205L136.497%20102.198C136.501%20102.191%20136.505%20102.185%20136.509%20102.179C136.513%20102.174%20136.516%20102.171%20136.517%20102.17C136.518%20102.169%20136.516%20102.171%20136.511%20102.175C136.506%20102.18%20136.495%20102.187%20136.479%20102.197L135.471%20100.469ZM136.131%20100.837L135.395%20100.409L134.39%20102.138L135.127%20102.566L136.131%20100.837ZM135.761%20101.77C135.765%20101.763%20135.769%20101.757%20135.772%20101.751C135.776%20101.746%20135.779%20101.743%20135.78%20101.742C135.781%20101.741%20135.779%20101.743%20135.774%20101.747C135.769%20101.752%20135.758%20101.759%20135.742%20101.769L134.735%20100.041C134.415%20100.228%20134.179%20100.507%20134.024%20100.777L135.761%20101.77ZM135.738%20101.771L141.789%2098.2804L140.79%2096.548L134.739%20100.039L135.738%20101.771ZM141.777%2098.2874C141.724%2098.3171%20141.643%2098.3459%20141.54%2098.3471C141.436%2098.3484%20141.329%2098.3212%20141.233%2098.265L142.247%2096.5411C141.784%2096.2688%20141.24%2096.2966%20140.802%2096.541L141.777%2098.2874ZM141.241%2098.2694L141.97%2098.6899L142.969%2096.9572L142.24%2096.5367L141.241%2098.2694ZM142.47%2096.8236H142.466V98.8236H142.47V96.8236Z'%20fill='%23161922'%20mask='url(%23path-46-inside-4_8152_16965)'/%3e%3c/g%3e%3cpath%20opacity='0.5'%20d='M158.376%2091.9546C158.29%2091.9174%20158.175%2091.9323%20158.052%2092.003L143.817%20100.217C143.545%20100.373%20143.251%20100.258%20143.162%2099.9561L143.095%2099.7774L157.319%2091.575C157.397%2091.5303%20157.472%2091.508%20157.539%2091.508C157.587%2091.508%20157.628%2091.5192%20157.665%2091.5415L158.376%2091.9583V91.9546Z'%20fill='%23272C3A'/%3e%3cpath%20d='M158.547%2092.2858L158.555%20109.044C158.555%20109.361%20158.335%20109.74%20158.063%20109.897L135.916%20122.684C135.722%20122.796%20135.48%20122.658%20135.48%20122.435V102.193C135.48%20102.036%20135.536%20101.862%20135.626%20101.709C135.715%20101.553%20135.841%20101.419%20135.972%20101.341L142.023%2097.8459C142.179%2097.7603%20142.336%2097.7566%20142.466%2097.8273L142.477%2097.8347C142.57%2097.8906%20142.645%2097.9799%20142.682%2098.1064L143.095%2099.7774L143.162%2099.9561C143.251%20100.258%20143.545%20100.373%20143.817%20100.217L158.056%2092.003C158.179%2091.9323%20158.294%2091.9211%20158.376%2091.9546L158.395%2091.9657C158.395%2091.9657%20158.402%2091.9658%20158.406%2091.9695H158.409C158.491%2092.0253%20158.543%2092.1332%20158.543%2092.2858H158.547Z'%20fill='%23161922'/%3e%3cpath%20opacity='0.2'%20d='M135.659%20122.699C135.659%20122.699%20135.644%20122.699%20135.637%20122.691L134.874%20122.249C134.792%20122.193%20134.74%20122.089%20134.74%20121.936V101.757C134.74%20101.601%20134.796%20101.43%20134.885%20101.274L135.622%20101.702C135.533%20101.858%20135.477%20102.029%20135.477%20102.185V122.427C135.477%20122.554%20135.555%20122.654%20135.656%20122.695L135.659%20122.699Z'%20fill='%23040506'/%3e%3cpath%20d='M137.282%20108.46L123.318%20100.403V115.814L137.282%20123.871V108.46Z'%20fill='%23161922'/%3e%3cpath%20d='M124.293%2099.837L123.318%20100.403L137.282%20108.46L138.257%20107.898L124.293%2099.837Z'%20fill='%23040506'/%3e%3cpath%20d='M136.999%20107.6L162.168%2093.0711L162.165%20110.559L136.999%20125.092V107.6Z'%20fill='%23272C3A'/%3e%3cpath%20d='M146.865%20104.869L151.145%20102.397C151.699%20102.077%20152.15%20102.223%20152.15%20102.725C152.15%20103.227%20151.699%20103.894%20151.145%20104.214L146.865%20106.685C146.31%20107.005%20145.86%20106.86%20145.86%20106.357C145.86%20105.855%20146.31%20105.189%20146.865%20104.869Z'%20fill='%23040506'/%3e%3cpath%20d='M136.999%20107.6L136.162%20107.116V124.604L136.999%20125.092V107.6Z'%20fill='%23040506'/%3e%3cpath%20d='M136.162%20107.116L161.327%2092.5872L162.168%2093.0711L136.999%20107.6L136.162%20107.116Z'%20fill='%23161922'/%3e%3cpath%20d='M83.616%20173.097V157.064L104.438%20145.044V161.073L83.616%20173.097Z'%20fill='%23272C3A'/%3e%3cpath%20d='M83.616%20157.064L57.5833%20142.036V158.066L83.616%20173.097V157.064Z'%20fill='%23161922'/%3e%3cpath%20d='M83.6161%20157.064L105.056%20144.679L78.4096%20129.29L56.9656%20141.675L83.6161%20157.064Z'%20fill='%23040506'/%3e%3cpath%20d='M83.616%20157.064V161.073L105.056%20148.694V144.679L83.616%20157.064Z'%20fill='%23272C3A'/%3e%3cpath%20opacity='0.2'%20d='M83.616%20161.073L104.438%20149.048V149.93L83.616%20161.955V161.073Z'%20fill='%23040506'/%3e%3cpath%20d='M56.9656%20141.675L83.6161%20157.064V161.073L56.9656%20145.687V141.675Z'%20fill='%23161922'/%3e%3cpath%20opacity='0.2'%20d='M83.616%20161.073L57.5833%20146.045V146.923L83.616%20161.955V161.073Z'%20fill='%23040506'/%3e%3cpath%20d='M90.4713%20159.502L97.5833%20155.393C97.8885%20155.215%2098.1378%20155.36%2098.1378%20155.713V159.919C98.1378%20160.272%2097.8885%20160.704%2097.5833%20160.879L90.4713%20164.988C90.1661%20165.166%2089.9167%20165.021%2089.9167%20164.668V160.462C89.9167%20160.109%2090.1661%20159.677%2090.4713%20159.502Z'%20fill='%23040506'/%3e%3cpath%20d='M90.9253%20159.978L97.1293%20156.398C97.334%20156.279%2097.4977%20156.376%2097.4977%20156.61V159.763C97.4977%20159.997%2097.3302%20160.287%2097.1293%20160.403L90.9253%20163.983C90.7206%20164.102%2090.5569%20164.005%2090.5569%20163.771V160.619C90.5569%20160.384%2090.7244%20160.098%2090.9253%20159.978Z'%20fill='%232F3546'/%3e%3cg%20opacity='0.5'%3e%3cpath%20d='M91.1003%20160.812C91.0705%20160.812%2091.0407%20160.797%2091.0221%20160.767C90.996%20160.723%2091.0109%20160.671%2091.0556%20160.645L96.9134%20157.265C96.9544%20157.239%2097.0102%20157.254%2097.0362%20157.299C97.0623%20157.344%2097.0474%20157.396%2097.0027%20157.422L91.1449%20160.801C91.1449%20160.801%2091.1151%20160.812%2091.1003%20160.812Z'%20fill='%23040506'/%3e%3cpath%20d='M91.1003%20161.586C91.0705%20161.586%2091.0407%20161.571%2091.0221%20161.542C90.996%20161.497%2091.0109%20161.445%2091.0556%20161.419L96.9134%20158.039C96.9544%20158.013%2097.0102%20158.028%2097.0362%20158.073C97.0623%20158.118%2097.0474%20158.17%2097.0027%20158.196L91.1449%20161.575C91.1449%20161.575%2091.1151%20161.586%2091.1003%20161.586Z'%20fill='%23040506'/%3e%3cpath%20d='M91.1003%20162.36C91.0705%20162.36%2091.0407%20162.345%2091.0221%20162.316C90.996%20162.271%2091.0109%20162.219%2091.0556%20162.193L96.9134%20158.814C96.9544%20158.788%2097.0102%20158.802%2097.0362%20158.847C97.0623%20158.892%2097.0474%20158.944%2097.0027%20158.97L91.1449%20162.349C91.1449%20162.349%2091.1151%20162.36%2091.1003%20162.36Z'%20fill='%23040506'/%3e%3cpath%20d='M91.1003%20163.134C91.0705%20163.134%2091.0407%20163.119%2091.0221%20163.09C90.996%20163.045%2091.0109%20162.993%2091.0556%20162.967L96.9134%20159.588C96.9544%20159.562%2097.0102%20159.576%2097.0362%20159.621C97.0623%20159.666%2097.0474%20159.718%2097.0027%20159.744L91.1449%20163.123C91.1449%20163.123%2091.1151%20163.134%2091.1003%20163.134Z'%20fill='%23040506'/%3e%3c/g%3e%3cpath%20opacity='0.1'%20d='M103.318%20143.674L83.6161%20155.051L58.7073%20140.663L58.0969%20141.024L83.6161%20155.706L103.929%20144.028L103.318%20143.674Z'%20fill='%23272C3A'/%3e%3cpath%20d='M83.616%20155.051V139.018L104.438%20126.997V143.026L83.616%20155.051Z'%20fill='%23272C3A'/%3e%3cpath%20d='M83.616%20139.018L57.5833%20123.99V140.019L83.616%20155.051V139.018Z'%20fill='%23161922'/%3e%3cpath%20d='M83.6161%20139.018L105.056%20126.633L78.4096%20111.244L56.9656%20123.629L83.6161%20139.018Z'%20fill='%23272C3A'/%3e%3cpath%20d='M83.616%20139.018V143.026L105.056%20130.648V126.633L83.616%20139.018Z'%20fill='%23272C3A'/%3e%3cpath%20opacity='0.2'%20d='M83.616%20143.026L104.438%20131.002V131.884L83.616%20143.908V143.026Z'%20fill='%23040506'/%3e%3cpath%20d='M56.9656%20123.629L83.6161%20139.018V143.026L56.9656%20127.641V123.629Z'%20fill='%23161922'/%3e%3cpath%20opacity='0.2'%20d='M83.616%20143.026L57.5833%20127.999V128.877L83.616%20143.908V143.026Z'%20fill='%23040506'/%3e%3cpath%20d='M90.4713%20141.456L97.5833%20137.347C97.8885%20137.169%2098.1378%20137.314%2098.1378%20137.667V141.873C98.1378%20142.226%2097.8885%20142.658%2097.5833%20142.833L90.4713%20146.942C90.1661%20147.12%2089.9167%20146.975%2089.9167%20146.622V142.416C89.9167%20142.063%2090.1661%20141.631%2090.4713%20141.456Z'%20fill='%23040506'/%3e%3cpath%20d='M90.9253%20141.932L97.1293%20138.352C97.334%20138.233%2097.4977%20138.33%2097.4977%20138.564V141.716C97.4977%20141.951%2097.3302%20142.241%2097.1293%20142.357L90.9253%20145.937C90.7206%20146.056%2090.5569%20145.959%2090.5569%20145.725V142.572C90.5569%20142.338%2090.7244%20142.051%2090.9253%20141.932Z'%20fill='%232F3546'/%3e%3cg%20opacity='0.5'%3e%3cpath%20d='M91.1003%20142.766C91.0705%20142.766%2091.0407%20142.751%2091.0221%20142.721C90.996%20142.677%2091.0109%20142.624%2091.0556%20142.598L96.9134%20139.219C96.9544%20139.193%2097.0102%20139.208%2097.0362%20139.253C97.0623%20139.297%2097.0474%20139.349%2097.0027%20139.376L91.1449%20142.755C91.1449%20142.755%2091.1151%20142.766%2091.1003%20142.766Z'%20fill='%23040506'/%3e%3cpath%20d='M91.1003%20143.54C91.0705%20143.54%2091.0407%20143.525%2091.0221%20143.495C90.996%20143.451%2091.0109%20143.399%2091.0556%20143.373L96.9134%20139.993C96.9544%20139.967%2097.0102%20139.982%2097.0362%20140.027C97.0623%20140.071%2097.0474%20140.124%2097.0027%20140.15L91.1449%20143.529C91.1449%20143.529%2091.1151%20143.54%2091.1003%20143.54Z'%20fill='%23040506'/%3e%3cpath%20d='M91.1003%20144.314C91.0705%20144.314%2091.0407%20144.299%2091.0221%20144.269C90.996%20144.225%2091.0109%20144.173%2091.0556%20144.147L96.9134%20140.767C96.9544%20140.741%2097.0102%20140.756%2097.0362%20140.801C97.0623%20140.846%2097.0474%20140.898%2097.0027%20140.924L91.1449%20144.303C91.1449%20144.303%2091.1151%20144.314%2091.1003%20144.314Z'%20fill='%23040506'/%3e%3cpath%20d='M91.1003%20145.088C91.0705%20145.088%2091.0407%20145.073%2091.0221%20145.044C90.996%20144.999%2091.0109%20144.947%2091.0556%20144.921L96.9134%20141.542C96.9544%20141.515%2097.0102%20141.53%2097.0362%20141.575C97.0623%20141.62%2097.0474%20141.672%2097.0027%20141.698L91.1449%20145.077C91.1449%20145.077%2091.1151%20145.088%2091.1003%20145.088Z'%20fill='%23040506'/%3e%3c/g%3e%3c/svg%3e`})),uH,Jxe=F((()=>{uH=`data:image/svg+xml,%3csvg%20viewBox='0%200%20200%20200'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M77.0793%2026.8668C77.6555%2028.5378%2079.1152%2029.959%2080.3252%2030.0551C81.5352%2030.1511%2082.0538%2028.8643%2081.4584%2027.1933C80.863%2025.5224%2079.4225%2024.1011%2078.2125%2024.005C77.0025%2023.909%2076.4839%2025.1958%2077.0793%2026.8668Z'%20fill='%231A2EB2'/%3e%3cpath%20d='M71.4823%2071.7511C73.0572%2076.2646%2077.0138%2080.1251%2080.2981%2080.3556C83.5824%2080.5861%2084.9652%2077.1289%2083.3903%2072.6154C81.8154%2068.1019%2077.8588%2064.2414%2074.5745%2064.0109C71.2902%2063.7804%2069.9074%2067.2376%2071.4823%2071.7511Z'%20fill='%23FAB404'/%3e%3cpath%20d='M43.3249%2090.7521C46.3403%2092.4999%2048.7795%2096.7253%2048.7795%20100.202C48.7795%20103.678%2046.3211%20105.08%2043.2865%20103.332C40.2711%20101.585%2037.8319%2097.3592%2037.8319%2093.8828C37.8319%2090.4064%2040.2903%2089.0043%2043.3249%2090.7521Z'%20fill='%23D4D8E2'/%3e%3cpath%20d='M93.4077%20153.253L128.272%20133.127C128.692%20132.885%20129.373%20132.885%20129.798%20133.127L155.224%20147.805C155.644%20148.047%20155.644%20148.441%20155.224%20148.683L120.36%20168.81C119.939%20169.052%20119.258%20169.052%20118.834%20168.81L93.4077%20154.132C92.9871%20153.89%2092.9871%20153.495%2093.4077%20153.253Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M83.6125%20176C83.1919%20176%2082.7825%20175.9%2082.4625%20175.713L54.0814%20159.323C53.6422%20159.07%2053.3892%20158.672%2053.3892%20158.229C53.3892%20157.786%2053.6422%20157.392%2054.0814%20157.135L77.0326%20143.879C77.3527%20143.693%2077.7583%20143.592%2078.1826%20143.592C78.6069%20143.592%2079.0125%20143.693%2079.3326%20143.879L107.714%20160.269C108.153%20160.522%20108.406%20160.92%20108.406%20161.363C108.406%20161.806%20108.153%20162.2%20107.714%20162.457L84.7624%20175.713C84.4424%20175.9%2084.0367%20176%2083.6125%20176Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M60.181%20148.319C60.181%20148.319%2060.5941%20142.881%2058.7333%20138.244C56.8762%20133.607%2053.7277%20130.336%2050.3857%20129.416C47.0436%20128.501%2043.7053%20131.099%2046.9283%20133.938C50.1512%20136.778%2056.1839%20140.198%2057.6242%20148.787L60.1847%20148.319H60.181Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M59.4515%20146.748C59.4515%20146.748%2059.4775%20146.748%2059.4887%20146.748C59.5892%20146.729%2059.6524%20146.633%2059.6338%20146.532C57.7358%20137.027%2051.6212%20132.04%2048.6513%20130.73C48.5583%20130.689%2048.4503%20130.73%2048.4094%20130.823C48.3685%20130.916%2048.4094%20131.024%2048.5024%20131.065C51.409%20132.345%2057.4046%20137.243%2059.2728%20146.599C59.2914%20146.685%2059.3659%20146.748%2059.4515%20146.748Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M44.6283%20144.336C44.7735%20144.954%2045.3392%20145.371%2045.8751%20145.717C46.4073%20146.06%2046.9916%20146.432%2047.2037%20147.031C47.6279%20148.24%2046.2956%20149.577%2046.772%20150.767C46.9729%20151.266%2047.4568%20151.601%2047.9592%20151.795C48.376%20151.958%2048.8151%20152.04%2049.2469%20152.163C49.459%20152.2%2049.6711%20152.223%2049.8795%20152.234C50.4973%20152.26%2051.156%20152.357%2051.6473%20152.77C52.4214%20153.421%2052.4772%20154.567%2052.8419%20155.512C53.2811%20156.644%2054.271%20157.518%2055.4099%20157.902C56.37%20158.218%2057.8847%20158.281%2058.2197%20157.894C58.4765%20157.6%2058.0894%20156.495%2058.1527%20156.108C58.309%20155.122%2058.3723%20154.117%2058.3388%20153.119C58.3239%20152.632%2058.309%20152.237%2058.4058%20151.757C58.5063%20151.255%2058.603%20150.753%2058.6923%20150.25C58.8375%20149.439%2059.1054%20148.572%2058.9082%20147.742C58.6886%20146.83%2057.747%20146.633%2057.5498%20145.74C57.4679%20145.382%2057.4605%20145.018%2057.386%20144.66C57.159%20143.607%2056.2919%20142.718%2055.2461%20142.464C53.616%20142.066%2051.8818%20143.119%2050.2591%20142.68C49.8386%20142.565%2049.4478%20142.357%2049.0422%20142.2C47.7545%20141.694%2046.1393%20141.78%2045.1754%20142.766C44.7735%20143.179%2044.5018%20143.771%2044.632%20144.333L44.6283%20144.336Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M57.8774%20155.308C57.8774%20155.308%2057.8849%20155.308%2057.8886%20155.308C57.9667%20155.304%2058.0263%20155.233%2058.0226%20155.155C57.3787%20146.179%2048.6143%20143.224%2046.4781%20142.974C46.3999%20142.967%2046.3292%20143.023%2046.318%20143.101C46.3106%20143.179%2046.3664%20143.25%2046.4446%20143.261C48.5324%20143.507%2057.1033%20146.395%2057.736%20155.178C57.7397%20155.252%2057.803%20155.312%2057.8774%20155.312V155.308Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M48.7071%20149.067C48.7369%20149.067%2048.7629%20149.059%2048.789%20149.041C48.815%20149.022%2051.543%20147.198%2055.2423%20148.486C55.3167%20148.512%2055.3986%20148.471%2055.4246%20148.397C55.4507%20148.322%2055.4098%20148.24%2055.3353%20148.214C51.4909%20146.878%2048.655%20148.784%2048.6252%20148.802C48.5583%20148.847%2048.5434%20148.936%2048.588%20149C48.6141%20149.041%2048.6587%20149.063%2048.7034%20149.063L48.7071%20149.067Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M119.593%20165.896L97.572%20153.179V84.1653L119.593%2096.8783V165.896Z'%20fill='%23D4D8E2'/%3e%3cpath%20d='M119.593%2096.8783L151.052%2078.7168V147.731L119.593%20165.896V96.8783Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M151.052%2078.7168L119.593%2096.8783L97.572%2084.1652L129.031%2066L151.052%2078.7168Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M122.741%20141.608L147.907%20127.079V144.571L148.484%20144.902L123.318%20159.435L122.741%20159.1V141.608Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M123.318%20141.943L148.488%20127.414L148.484%20144.902L123.318%20159.435V141.943Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M133.184%20139.212L137.464%20136.741C138.019%20136.421%20138.469%20136.566%20138.469%20137.068C138.469%20137.57%20138.019%20138.237%20137.464%20138.557L133.184%20141.028C132.63%20141.348%20132.179%20141.203%20132.179%20140.7C132.179%20140.198%20132.63%20139.532%20133.184%20139.212Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M122.741%20120.488L147.907%20105.959V123.451L148.484%20123.786L123.318%20138.315L122.741%20137.98V120.488Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M123.318%20120.823L148.488%20106.294L148.484%20123.786L123.318%20138.315V120.823Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M133.184%20118.092L137.464%20115.62C138.019%20115.3%20138.469%20115.445%20138.469%20115.948C138.469%20116.45%20138.019%20117.116%20137.464%20117.437L133.184%20119.908C132.63%20120.228%20132.179%20120.083%20132.179%20119.58C132.179%20119.078%20132.63%20118.412%20133.184%20118.092Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M122.741%2099.368L147.907%2084.8388V102.327L122.741%20116.856V99.368Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M160.49%2095.0622L146.526%2087.0049V102.412L160.49%20110.47V95.0622Z'%20fill='%23B9BED0'/%3e%3cg%20opacity='0.1'%3e%3cpath%20d='M160.49%2095.0622L146.526%2087.0049V102.412L160.49%20110.47V95.0622Z'%20fill='%23B9BED0'/%3e%3c/g%3e%3cpath%20d='M147.501%2086.4392L146.526%2087.0011L160.49%2095.0622L161.465%2094.4965L147.501%2086.4392Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M151.435%2088.14C151.435%2087.9874%20151.383%2087.8832%20151.301%2087.8274C151.301%2087.8274%20151.29%2087.8162%20151.268%2087.8087L150.557%2087.3919C150.468%2087.3398%20150.345%2087.351%20150.211%2087.4254L135.987%2095.6279L135.574%2093.9569C135.537%2093.8303%20135.462%2093.741%20135.369%2093.6852L134.628%2093.2535C134.498%2093.179%20134.334%2093.1753%20134.178%2093.2684L128.127%2096.7592C127.855%2096.9156%20127.635%2097.2989%20127.635%2097.6115V117.79C127.635%20117.939%20127.684%20118.047%20127.769%20118.103L128.532%20118.546C128.622%20118.59%20128.737%20118.579%20128.867%20118.505L150.959%20105.751C151.231%20105.594%20151.45%20105.211%20151.45%20104.898L151.443%2088.1362L151.435%2088.14Z'%20fill='%23B9BED0'/%3e%3cg%20opacity='0.2'%3e%3cmask%20id='path-25-inside-1_8152_16965'%20fill='white'%3e%3cpath%20d='M135.354%2093.6814C135.227%2093.6107%20135.067%2093.6145%20134.915%2093.7001L128.864%2097.1909C128.73%2097.2691%20128.607%2097.4031%20128.517%2097.5594L127.781%2097.1314C127.87%2096.9751%20127.993%2096.8411%20128.127%2096.7629L134.178%2093.2721C134.338%2093.1828%20134.502%2093.1865%20134.628%2093.2609L135.358%2093.6814H135.354Z'/%3e%3c/mask%3e%3cpath%20d='M135.354%2093.6814C135.227%2093.6107%20135.067%2093.6145%20134.915%2093.7001L128.864%2097.1909C128.73%2097.2691%20128.607%2097.4031%20128.517%2097.5594L127.781%2097.1314C127.87%2096.9751%20127.993%2096.8411%20128.127%2096.7629L134.178%2093.2721C134.338%2093.1828%20134.502%2093.1865%20134.628%2093.2609L135.358%2093.6814H135.354Z'%20fill='%23D4D8E2'/%3e%3cpath%20d='M135.354%2093.6814L134.866%2094.5544L135.094%2094.6814H135.354V93.6814ZM134.915%2093.7001L134.426%2092.8278L134.415%2092.8339L134.915%2093.7001ZM128.864%2097.1909L128.364%2096.3247L128.36%2096.3272L128.864%2097.1909ZM128.517%2097.5594L128.015%2098.4241L128.886%2098.9299L129.386%2098.0555L128.517%2097.5594ZM127.781%2097.1314L126.912%2096.6353L126.42%2097.4974L127.278%2097.9961L127.781%2097.1314ZM128.127%2096.7629L127.627%2095.8967L127.623%2095.8992L128.127%2096.7629ZM134.178%2093.2721L133.691%2092.3989L133.684%2092.4023L133.678%2092.4059L134.178%2093.2721ZM134.628%2093.2609L134.121%2094.1229L134.129%2094.1272L134.628%2093.2609ZM135.358%2093.6814V94.6814H139.094L135.857%2092.8151L135.358%2093.6814ZM135.842%2092.8085C135.365%2092.5418%20134.831%2092.6002%20134.426%2092.8279L135.404%2094.5722C135.303%2094.6287%20135.09%2094.6796%20134.866%2094.5544L135.842%2092.8085ZM134.415%2092.8339L128.364%2096.3247L129.363%2098.0571L135.415%2094.5663L134.415%2092.8339ZM128.36%2096.3272C128.04%2096.5134%20127.804%2096.7925%20127.649%2097.0632L129.386%2098.0555C129.39%2098.0486%20129.394%2098.0424%20129.397%2098.0374C129.401%2098.0323%20129.404%2098.0293%20129.405%2098.0282C129.406%2098.027%20129.404%2098.029%20129.399%2098.0333C129.394%2098.0375%20129.384%2098.0453%20129.367%2098.0547L128.36%2096.3272ZM129.02%2096.6946L128.283%2096.2667L127.278%2097.9961L128.015%2098.4241L129.02%2096.6946ZM128.649%2097.6275C128.653%2097.6206%20128.657%2097.6144%20128.66%2097.6094C128.664%2097.6043%20128.667%2097.6013%20128.668%2097.6002C128.669%2097.599%20128.667%2097.601%20128.662%2097.6053C128.657%2097.6095%20128.647%2097.6173%20128.63%2097.6267L127.623%2095.8992C127.303%2096.0855%20127.067%2096.3645%20126.912%2096.6353L128.649%2097.6275ZM128.626%2097.6292L134.678%2094.1383L133.678%2092.4059L127.627%2095.8967L128.626%2097.6292ZM134.665%2094.1453C134.612%2094.1749%20134.531%2094.2038%20134.428%2094.205C134.324%2094.2063%20134.217%2094.1791%20134.121%2094.1228L135.135%2092.399C134.672%2092.1266%20134.128%2092.1545%20133.691%2092.3989L134.665%2094.1453ZM134.129%2094.1272L134.858%2094.5478L135.857%2092.8151L135.128%2092.3946L134.129%2094.1272ZM135.358%2092.6814H135.354V94.6814H135.358V92.6814Z'%20fill='%23D4D8E2'%20mask='url(%23path-25-inside-1_8152_16965)'/%3e%3c/g%3e%3cpath%20opacity='0.2'%20d='M151.264%2087.8087C151.179%2087.7715%20151.063%2087.7864%20150.94%2087.8571L136.705%2096.0707C136.433%2096.2271%20136.139%2096.1117%20136.05%2095.8102L135.983%2095.6316L150.207%2087.4291C150.285%2087.3845%20150.36%2087.3622%20150.427%2087.3622C150.475%2087.3622%20150.516%2087.3733%20150.553%2087.3956L151.264%2087.8125V87.8087Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M151.435%2088.14L151.443%20104.898C151.443%20105.211%20151.223%20105.594%20150.951%20105.751L128.804%20118.534C128.611%20118.646%20128.369%20118.508%20128.369%20118.285V98.0432C128.369%2097.8869%20128.424%2097.712%20128.514%2097.5594C128.603%2097.4031%20128.73%2097.2691%20128.86%2097.191L134.911%2093.6963C135.068%2093.6108%20135.224%2093.607%20135.354%2093.6777L135.365%2093.6852C135.458%2093.741%20135.533%2093.8303%20135.57%2093.9569L135.983%2095.6279L136.05%2095.8065C136.139%2096.108%20136.433%2096.2233%20136.705%2096.067L150.944%2087.8534C151.067%2087.7827%20151.178%2087.7715%20151.264%2087.805L151.283%2087.8162C151.283%2087.8162%20151.29%2087.8162%20151.294%2087.8199H151.298C151.379%2087.8757%20151.432%2087.9837%20151.432%2088.1362L151.435%2088.14Z'%20fill='%23B9BED0'/%3e%3cpath%20opacity='0.3'%20d='M151.435%2088.14L151.443%20104.898C151.443%20105.211%20151.223%20105.594%20150.951%20105.751L128.804%20118.534C128.611%20118.646%20128.369%20118.508%20128.369%20118.285V98.0432C128.369%2097.8869%20128.424%2097.712%20128.514%2097.5594C128.603%2097.4031%20128.73%2097.2691%20128.86%2097.191L134.911%2093.6963C135.068%2093.6108%20135.224%2093.607%20135.354%2093.6777L135.365%2093.6852C135.458%2093.741%20135.533%2093.8303%20135.57%2093.9569L135.983%2095.6279L136.05%2095.8065C136.139%2096.108%20136.433%2096.2233%20136.705%2096.067L150.944%2087.8534C151.067%2087.7827%20151.178%2087.7715%20151.264%2087.805L151.283%2087.8162C151.283%2087.8162%20151.29%2087.8162%20151.294%2087.8199H151.298C151.379%2087.8757%20151.432%2087.9837%20151.432%2088.1362L151.435%2088.14Z'%20fill='%23EDEEF3'/%3e%3cpath%20opacity='0.5'%20d='M128.547%20118.553C128.547%20118.553%20128.532%20118.553%20128.525%20118.546L127.762%20118.103C127.68%20118.047%20127.628%20117.943%20127.628%20117.79V97.6115C127.628%2097.4514%20127.684%2097.284%20127.773%2097.1277L128.51%2097.5556C128.421%2097.712%20128.365%2097.8831%20128.365%2098.0395V118.281C128.365%20118.408%20128.443%20118.508%20128.543%20118.549L128.547%20118.553Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M153.806%2089.5207C153.806%2089.3681%20153.754%2089.2639%20153.672%2089.2081C153.672%2089.2081%20153.661%2089.1969%20153.638%2089.1895L152.928%2088.7726C152.838%2088.7243%20152.715%2088.7317%20152.581%2088.8099L138.357%2097.0123L137.944%2095.3413C137.907%2095.2148%20137.833%2095.1254%20137.74%2095.0696L136.999%2094.6379C136.869%2094.5635%20136.705%2094.5598%20136.549%2094.6528L130.497%2098.1437C130.226%2098.3%20130.006%2098.6833%20130.006%2098.9959V119.175C130.006%20119.323%20130.054%20119.431%20130.14%20119.487L130.903%20119.93C130.992%20119.975%20131.108%20119.964%20131.238%20119.889L153.33%20107.135C153.601%20106.979%20153.821%20106.595%20153.821%20106.283L153.813%2089.5207H153.806Z'%20fill='%23B9BED0'/%3e%3cg%20opacity='0.1'%3e%3cmask%20id='path-32-inside-2_8152_16965'%20fill='white'%3e%3cpath%20d='M137.725%2095.0622C137.598%2094.9915%20137.438%2094.9952%20137.285%2095.0808L131.234%2098.5717C131.1%2098.6498%20130.977%2098.7838%20130.888%2098.9401L130.151%2098.5121C130.24%2098.3558%20130.363%2098.2218%20130.497%2098.1437L136.549%2094.6528C136.709%2094.5635%20136.872%2094.5672%20136.999%2094.6416L137.728%2095.0622H137.725Z'/%3e%3c/mask%3e%3cpath%20d='M137.725%2095.0622C137.598%2094.9915%20137.438%2094.9952%20137.285%2095.0808L131.234%2098.5717C131.1%2098.6498%20130.977%2098.7838%20130.888%2098.9401L130.151%2098.5121C130.24%2098.3558%20130.363%2098.2218%20130.497%2098.1437L136.549%2094.6528C136.709%2094.5635%20136.872%2094.5672%20136.999%2094.6416L137.728%2095.0622H137.725Z'%20fill='%23D4D8E2'/%3e%3cpath%20d='M137.725%2095.0622L137.237%2095.9351L137.464%2096.0622H137.725V95.0622ZM137.285%2095.0808L136.796%2094.2086L136.786%2094.2146L137.285%2095.0808ZM131.234%2098.5717L130.734%2097.7055L130.73%2097.7079L131.234%2098.5717ZM130.888%2098.9401L130.386%2099.8048L131.257%20100.311L131.756%2099.4363L130.888%2098.9401ZM130.151%2098.5121L129.283%2098.016L128.79%2098.8781L129.649%2099.3769L130.151%2098.5121ZM130.497%2098.1437L129.998%2097.2775L129.993%2097.2799L130.497%2098.1437ZM136.549%2094.6528L136.061%2093.7796L136.055%2093.7831L136.049%2093.7866L136.549%2094.6528ZM136.999%2094.6416L136.492%2095.5036L136.499%2095.508L136.999%2094.6416ZM137.728%2095.0622V96.0622H141.465L138.228%2094.1959L137.728%2095.0622ZM138.212%2094.1892C137.735%2093.9226%20137.202%2093.981%20136.796%2094.2086L137.775%2095.9529C137.674%2096.0094%20137.461%2096.0604%20137.237%2095.9351L138.212%2094.1892ZM136.786%2094.2146L130.734%2097.7055L131.734%2099.4379L137.785%2095.947L136.786%2094.2146ZM130.73%2097.7079C130.411%2097.8942%20130.174%2098.1732%20130.02%2098.444L131.756%2099.4363C131.76%2099.4293%20131.764%2099.4232%20131.768%2099.4181C131.772%2099.413%20131.774%2099.41%20131.775%2099.4089C131.776%2099.4078%20131.775%2099.4097%20131.77%2099.414C131.764%2099.4182%20131.754%2099.426%20131.738%2099.4355L130.73%2097.7079ZM131.39%2098.0754L130.653%2097.6474L129.649%2099.3769L130.386%2099.8048L131.39%2098.0754ZM131.019%2099.0083C131.023%2099.0013%20131.027%2098.9952%20131.031%2098.9901C131.035%2098.985%20131.037%2098.982%20131.038%2098.9809C131.04%2098.9798%20131.038%2098.9818%20131.033%2098.986C131.028%2098.9902%20131.017%2098.998%20131.001%2099.0075L129.993%2097.2799C129.674%2097.4662%20129.438%2097.7452%20129.283%2098.016L131.019%2099.0083ZM130.997%2099.0099L137.048%2095.519L136.049%2093.7866L129.998%2097.2775L130.997%2099.0099ZM137.036%2095.526C136.983%2095.5557%20136.902%2095.5845%20136.798%2095.5857C136.695%2095.587%20136.588%2095.5598%20136.492%2095.5036L137.506%2093.7797C137.043%2093.5074%20136.499%2093.5352%20136.061%2093.7796L137.036%2095.526ZM136.499%2095.508L137.229%2095.9285L138.228%2094.1959L137.498%2093.7753L136.499%2095.508ZM137.728%2094.0622H137.725V96.0622H137.728V94.0622Z'%20fill='%23D4D8E2'%20mask='url(%23path-32-inside-2_8152_16965)'/%3e%3c/g%3e%3cpath%20opacity='0.1'%20d='M153.634%2089.1895C153.549%2089.1522%20153.434%2089.1671%20153.311%2089.2378L139.076%2097.4515C138.804%2097.6078%20138.51%2097.4924%20138.421%2097.1909L138.354%2097.0123L152.578%2088.8099C152.656%2088.7652%20152.73%2088.7429%20152.797%2088.7429C152.846%2088.7429%20152.886%2088.754%20152.924%2088.7764L153.634%2089.1932V89.1895Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M153.806%2089.5244L153.813%20106.283C153.813%20106.595%20153.594%20106.979%20153.322%20107.135L131.175%20119.923C130.981%20120.034%20130.739%20119.893%20130.739%20119.673V99.4314C130.739%2099.275%20130.795%2099.1001%20130.884%2098.9475C130.974%2098.7912%20131.1%2098.6573%20131.231%2098.5791L137.282%2095.0845C137.438%2094.9989%20137.594%2094.9952%20137.725%2095.0659L137.736%2095.0733C137.829%2095.1292%20137.903%2095.2185%20137.941%2095.345L138.354%2097.016L138.421%2097.1947C138.51%2097.4961%20138.804%2097.6115%20139.076%2097.4552L153.315%2089.2416C153.437%2089.1708%20153.549%2089.1597%20153.635%2089.1932L153.653%2089.2043C153.653%2089.2043%20153.661%2089.2043%20153.664%2089.2081H153.668C153.75%2089.2639%20153.802%2089.3718%20153.802%2089.5244H153.806Z'%20fill='%23B9BED0'/%3e%3cpath%20opacity='0.2'%20d='M153.806%2089.5244L153.813%20106.283C153.813%20106.595%20153.594%20106.979%20153.322%20107.135L131.175%20119.923C130.981%20120.034%20130.739%20119.893%20130.739%20119.673V99.4314C130.739%2099.275%20130.795%2099.1001%20130.884%2098.9475C130.974%2098.7912%20131.1%2098.6573%20131.231%2098.5791L137.282%2095.0845C137.438%2094.9989%20137.594%2094.9952%20137.725%2095.0659L137.736%2095.0733C137.829%2095.1292%20137.903%2095.2185%20137.941%2095.345L138.354%2097.016L138.421%2097.1947C138.51%2097.4961%20138.804%2097.6115%20139.076%2097.4552L153.315%2089.2416C153.437%2089.1708%20153.549%2089.1597%20153.635%2089.1932L153.653%2089.2043C153.653%2089.2043%20153.661%2089.2043%20153.664%2089.2081H153.668C153.75%2089.2639%20153.802%2089.3718%20153.802%2089.5244H153.806Z'%20fill='%23EDEEF3'/%3e%3cpath%20opacity='0.4'%20d='M130.918%20119.938C130.918%20119.938%20130.903%20119.937%20130.895%20119.93L130.133%20119.487C130.051%20119.431%20129.999%20119.327%20129.999%20119.175V98.9959C129.999%2098.8359%20130.054%2098.6684%20130.144%2098.5121L130.881%2098.9401C130.791%2099.0964%20130.735%2099.2676%20130.735%2099.4239V119.666C130.735%20119.792%20130.814%20119.893%20130.914%20119.934L130.918%20119.938Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M156.176%2090.9051C156.176%2090.7525%20156.124%2090.6483%20156.043%2090.5925C156.043%2090.5925%20156.031%2090.5813%20156.009%2090.5739L155.298%2090.1571C155.209%2090.105%20155.086%2090.1161%20154.952%2090.1906L140.728%2098.393L140.315%2096.722C140.278%2096.5955%20140.203%2096.5061%20140.11%2096.4503L139.37%2096.0186C139.239%2095.9442%20139.076%2095.9405%20138.919%2096.0335L132.868%2099.5244C132.596%2099.6807%20132.377%20100.064%20132.377%20100.377V120.555C132.377%20120.704%20132.425%20120.812%20132.511%20120.868L133.274%20121.311C133.363%20121.355%20133.478%20121.344%20133.609%20121.27L155.7%20108.516C155.972%20108.36%20156.191%20107.976%20156.191%20107.664L156.184%2090.9014L156.176%2090.9051Z'%20fill='%23B9BED0'/%3e%3cmask%20id='path-39-inside-3_8152_16965'%20fill='white'%3e%3cpath%20d='M140.095%2096.4429C139.969%2096.3722%20139.809%2096.3759%20139.656%2096.4615L133.605%2099.9524C133.471%20100.031%20133.348%20100.165%20133.259%20100.321L132.522%2099.8928C132.611%2099.7365%20132.734%2099.6025%20132.868%2099.5244L138.919%2096.0335C139.079%2095.9442%20139.243%2095.9479%20139.37%2096.0223L140.099%2096.4429H140.095Z'/%3e%3c/mask%3e%3cpath%20d='M140.095%2096.4429C139.969%2096.3722%20139.809%2096.3759%20139.656%2096.4615L133.605%2099.9524C133.471%20100.031%20133.348%20100.165%20133.259%20100.321L132.522%2099.8928C132.611%2099.7365%20132.734%2099.6025%20132.868%2099.5244L138.919%2096.0335C139.079%2095.9442%20139.243%2095.9479%20139.37%2096.0223L140.099%2096.4429H140.095Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M140.095%2096.4429L139.608%2097.3158L139.835%2097.4429H140.095V96.4429ZM139.656%2096.4615L139.167%2095.5893L139.157%2095.5953L139.656%2096.4615ZM133.605%2099.9524L133.105%2099.0862L133.101%2099.0886L133.605%2099.9524ZM133.259%20100.321L132.757%20101.186L133.627%20101.691L134.127%20100.817L133.259%20100.321ZM132.522%2099.8928L131.654%2099.3967L131.161%20100.259L132.02%20100.758L132.522%2099.8928ZM132.868%2099.5244L132.368%2098.6582L132.364%2098.6606L132.868%2099.5244ZM138.919%2096.0335L138.432%2095.1603L138.426%2095.1638L138.42%2095.1673L138.919%2096.0335ZM139.37%2096.0223L138.863%2096.8843L138.87%2096.8887L139.37%2096.0223ZM140.099%2096.4429V97.4429H143.836L140.599%2095.5766L140.099%2096.4429ZM140.583%2095.5699C140.106%2095.3033%20139.573%2095.3617%20139.167%2095.5894L140.146%2097.3336C140.045%2097.3901%20139.832%2097.4411%20139.608%2097.3158L140.583%2095.5699ZM139.157%2095.5953L133.105%2099.0862L134.105%20100.819L140.156%2097.3277L139.157%2095.5953ZM133.101%2099.0886C132.782%2099.2749%20132.545%2099.5539%20132.391%2099.8247L134.127%20100.817C134.131%20100.81%20134.135%20100.804%20134.139%20100.799C134.143%20100.794%20134.145%20100.791%20134.146%20100.79C134.147%20100.788%20134.146%20100.79%20134.14%20100.795C134.135%20100.799%20134.125%20100.807%20134.109%20100.816L133.101%2099.0886ZM133.761%2099.4561L133.024%2099.0281L132.02%20100.758L132.757%20101.186L133.761%2099.4561ZM133.39%20100.389C133.394%20100.382%20133.398%20100.376%20133.402%20100.371C133.406%20100.366%20133.408%20100.363%20133.409%20100.362C133.41%20100.36%20133.409%20100.362%20133.404%20100.367C133.398%20100.371%20133.388%20100.379%20133.372%20100.388L132.364%2098.6606C132.045%2098.8469%20131.808%2099.1259%20131.654%2099.3967L133.39%20100.389ZM133.368%20100.391L139.419%2096.8997L138.42%2095.1673L132.368%2098.6582L133.368%20100.391ZM139.407%2096.9067C139.354%2096.9364%20139.272%2096.9652%20139.169%2096.9665C139.066%2096.9677%20138.958%2096.9406%20138.863%2096.8843L139.877%2095.1604C139.414%2094.8881%20138.87%2094.9159%20138.432%2095.1603L139.407%2096.9067ZM138.87%2096.8887L139.6%2097.3092L140.599%2095.5766L139.869%2095.156L138.87%2096.8887ZM140.099%2095.4429H140.095V97.4429H140.099V95.4429Z'%20fill='%23D4D8E2'%20mask='url(%23path-39-inside-3_8152_16965)'/%3e%3cpath%20d='M156.005%2090.5739C155.92%2090.5367%20155.804%2090.5516%20155.682%2090.6223L141.446%2098.8359C141.175%2098.9922%20140.881%2098.8768%20140.791%2098.5754L140.724%2098.3967L154.948%2090.1943C155.027%2090.1496%20155.101%2090.1273%20155.168%2090.1273C155.216%2090.1273%20155.257%2090.1385%20155.295%2090.1608L156.005%2090.5776V90.5739Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M156.176%2090.9051L156.184%20107.664C156.184%20107.976%20155.964%20108.36%20155.693%20108.516L133.545%20121.303C133.352%20121.415%20133.11%20121.277%20133.11%20121.054V100.812C133.11%20100.656%20133.166%20100.481%20133.255%20100.328C133.344%20100.172%20133.471%20100.038%20133.601%2099.9598L139.652%2096.4652C139.809%2096.3796%20139.965%2096.3759%20140.095%2096.4466L140.107%2096.454C140.2%2096.5099%20140.274%2096.5992%20140.311%2096.7257L140.724%2098.3967L140.791%2098.5754C140.881%2098.8768%20141.175%2098.9922%20141.446%2098.8359L155.685%2090.6223C155.808%2090.5515%20155.92%2090.5404%20156.005%2090.5739L156.024%2090.585C156.024%2090.585%20156.031%2090.585%20156.035%2090.5888H156.039C156.121%2090.6446%20156.173%2090.7525%20156.173%2090.9051H156.176Z'%20fill='%23B9BED0'/%3e%3cpath%20opacity='0.1'%20d='M156.176%2090.9051L156.184%20107.664C156.184%20107.976%20155.964%20108.36%20155.693%20108.516L133.545%20121.303C133.352%20121.415%20133.11%20121.277%20133.11%20121.054V100.812C133.11%20100.656%20133.166%20100.481%20133.255%20100.328C133.344%20100.172%20133.471%20100.038%20133.601%2099.9598L139.652%2096.4652C139.809%2096.3796%20139.965%2096.3759%20140.095%2096.4466L140.107%2096.454C140.2%2096.5099%20140.274%2096.5992%20140.311%2096.7257L140.724%2098.3967L140.791%2098.5754C140.881%2098.8768%20141.175%2098.9922%20141.446%2098.8359L155.685%2090.6223C155.808%2090.5515%20155.92%2090.5404%20156.005%2090.5739L156.024%2090.585C156.024%2090.585%20156.031%2090.585%20156.035%2090.5888H156.039C156.121%2090.6446%20156.173%2090.7525%20156.173%2090.9051H156.176Z'%20fill='%23EDEEF3'/%3e%3cpath%20opacity='0.3'%20d='M133.289%20121.318C133.289%20121.318%20133.274%20121.318%20133.266%20121.311L132.503%20120.868C132.421%20120.812%20132.369%20120.708%20132.369%20120.555V100.377C132.369%20100.22%20132.425%20100.049%20132.515%2099.8928L133.251%20100.321C133.162%20100.477%20133.106%20100.648%20133.106%20100.805V121.047C133.106%20121.173%20133.184%20121.274%20133.285%20121.314L133.289%20121.318Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M158.547%2092.2858C158.547%2092.1332%20158.495%2092.029%20158.413%2091.9732C158.413%2091.9732%20158.402%2091.962%20158.38%2091.9546L157.669%2091.5378C157.579%2091.4857%20157.457%2091.4968%20157.323%2091.5713L143.099%2099.7737L142.686%2098.1027C142.648%2097.9762%20142.574%2097.8869%20142.481%2097.831L141.74%2097.3993C141.61%2097.3249%20141.446%2097.3212%20141.29%2097.4142L135.239%20100.905C134.967%20101.061%20134.747%20101.445%20134.747%20101.757V121.936C134.747%20122.085%20134.796%20122.193%20134.881%20122.249L135.644%20122.691C135.734%20122.736%20135.849%20122.725%20135.979%20122.651L158.071%20109.897C158.342%20109.74%20158.562%20109.357%20158.562%20109.044L158.555%2092.2821L158.547%2092.2858Z'%20fill='%23B9BED0'/%3e%3cg%20opacity='0.5'%3e%3cmask%20id='path-46-inside-4_8152_16965'%20fill='white'%3e%3cpath%20d='M142.466%2097.8236C142.339%2097.7529%20142.179%2097.7566%20142.027%2097.8422L135.975%20101.333C135.841%20101.411%20135.719%20101.545%20135.629%20101.701L134.892%20101.274C134.982%20101.117%20135.104%20100.983%20135.238%20100.905L141.29%2097.4142C141.45%2097.3249%20141.614%2097.3286%20141.74%2097.403L142.47%2097.8236H142.466Z'/%3e%3c/mask%3e%3cpath%20d='M142.466%2097.8236C142.339%2097.7529%20142.179%2097.7566%20142.027%2097.8422L135.975%20101.333C135.841%20101.411%20135.719%20101.545%20135.629%20101.701L134.892%20101.274C134.982%20101.117%20135.104%20100.983%20135.238%20100.905L141.29%2097.4142C141.45%2097.3249%20141.614%2097.3286%20141.74%2097.403L142.47%2097.8236H142.466Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M142.466%2097.8236L141.978%2098.6965L142.205%2098.8236H142.466V97.8236ZM142.027%2097.8422L141.537%2096.97L141.527%2096.976L142.027%2097.8422ZM135.975%20101.333L135.476%20100.467L135.471%20100.469L135.975%20101.333ZM135.629%20101.701L135.127%20102.566L135.998%20103.072L136.497%20102.198L135.629%20101.701ZM134.892%20101.274L134.024%20100.777L133.531%20101.64L134.39%20102.138L134.892%20101.274ZM135.238%20100.905L134.739%20100.039L134.735%20100.041L135.238%20100.905ZM141.29%2097.4142L140.802%2096.541L140.796%2096.5444L140.79%2096.548L141.29%2097.4142ZM141.74%2097.403L141.233%2098.265L141.241%2098.2694L141.74%2097.403ZM142.47%2097.8236V98.8236H146.206L142.969%2096.9572L142.47%2097.8236ZM142.954%2096.9506C142.476%2096.684%20141.943%2096.7424%20141.537%2096.97L142.516%2098.7143C142.415%2098.7708%20142.202%2098.8218%20141.978%2098.6965L142.954%2096.9506ZM141.527%2096.976L135.476%20100.467L136.475%20102.199L142.526%2098.7084L141.527%2096.976ZM135.471%20100.469C135.152%20100.656%20134.916%20100.935%20134.761%20101.205L136.497%20102.198C136.501%20102.191%20136.505%20102.185%20136.509%20102.179C136.513%20102.174%20136.516%20102.171%20136.517%20102.17C136.518%20102.169%20136.516%20102.171%20136.511%20102.175C136.506%20102.18%20136.495%20102.187%20136.479%20102.197L135.471%20100.469ZM136.131%20100.837L135.395%20100.409L134.39%20102.138L135.127%20102.566L136.131%20100.837ZM135.761%20101.77C135.765%20101.763%20135.769%20101.757%20135.772%20101.751C135.776%20101.746%20135.779%20101.743%20135.78%20101.742C135.781%20101.741%20135.779%20101.743%20135.774%20101.747C135.769%20101.752%20135.758%20101.759%20135.742%20101.769L134.735%20100.041C134.415%20100.228%20134.179%20100.507%20134.024%20100.777L135.761%20101.77ZM135.738%20101.771L141.789%2098.2804L140.79%2096.548L134.739%20100.039L135.738%20101.771ZM141.777%2098.2874C141.724%2098.3171%20141.643%2098.3459%20141.54%2098.3471C141.436%2098.3484%20141.329%2098.3212%20141.233%2098.265L142.247%2096.5411C141.784%2096.2688%20141.24%2096.2966%20140.802%2096.541L141.777%2098.2874ZM141.241%2098.2694L141.97%2098.6899L142.969%2096.9572L142.24%2096.5367L141.241%2098.2694ZM142.47%2096.8236H142.466V98.8236H142.47V96.8236Z'%20fill='%23D4D8E2'%20mask='url(%23path-46-inside-4_8152_16965)'/%3e%3c/g%3e%3cpath%20opacity='0.5'%20d='M158.376%2091.9546C158.29%2091.9174%20158.175%2091.9323%20158.052%2092.003L143.817%20100.217C143.545%20100.373%20143.251%20100.258%20143.162%2099.9561L143.095%2099.7774L157.319%2091.575C157.397%2091.5303%20157.472%2091.508%20157.539%2091.508C157.587%2091.508%20157.628%2091.5192%20157.665%2091.5415L158.376%2091.9583V91.9546Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M158.547%2092.2858L158.555%20109.044C158.555%20109.361%20158.335%20109.74%20158.063%20109.897L135.916%20122.684C135.722%20122.796%20135.48%20122.658%20135.48%20122.435V102.193C135.48%20102.036%20135.536%20101.862%20135.626%20101.709C135.715%20101.553%20135.841%20101.419%20135.972%20101.341L142.023%2097.8459C142.179%2097.7603%20142.336%2097.7566%20142.466%2097.8273L142.477%2097.8347C142.57%2097.8906%20142.645%2097.9799%20142.682%2098.1064L143.095%2099.7774L143.162%2099.9561C143.251%20100.258%20143.545%20100.373%20143.817%20100.217L158.056%2092.003C158.179%2091.9323%20158.294%2091.9211%20158.376%2091.9546L158.395%2091.9657C158.395%2091.9657%20158.402%2091.9658%20158.406%2091.9695H158.409C158.491%2092.0253%20158.543%2092.1332%20158.543%2092.2858H158.547Z'%20fill='%23D4D8E2'/%3e%3cpath%20opacity='0.2'%20d='M135.659%20122.699C135.659%20122.699%20135.644%20122.699%20135.637%20122.691L134.874%20122.249C134.792%20122.193%20134.74%20122.089%20134.74%20121.936V101.757C134.74%20101.601%20134.796%20101.43%20134.885%20101.274L135.622%20101.702C135.533%20101.858%20135.477%20102.029%20135.477%20102.185V122.427C135.477%20122.554%20135.555%20122.654%20135.656%20122.695L135.659%20122.699Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M137.282%20108.46L123.318%20100.403V115.814L137.282%20123.871V108.46Z'%20fill='%23D4D8E2'/%3e%3cpath%20d='M124.293%2099.837L123.318%20100.403L137.282%20108.46L138.257%20107.898L124.293%2099.837Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M136.999%20107.6L162.168%2093.0711L162.165%20110.559L136.999%20125.092V107.6Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M146.865%20104.869L151.145%20102.397C151.699%20102.077%20152.15%20102.223%20152.15%20102.725C152.15%20103.227%20151.699%20103.894%20151.145%20104.214L146.865%20106.685C146.31%20107.005%20145.86%20106.86%20145.86%20106.357C145.86%20105.855%20146.31%20105.189%20146.865%20104.869Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M136.999%20107.6L136.162%20107.116V124.604L136.999%20125.092V107.6Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M136.162%20107.116L161.327%2092.5872L162.168%2093.0711L136.999%20107.6L136.162%20107.116Z'%20fill='%23D4D8E2'/%3e%3cpath%20d='M83.616%20173.097V157.064L104.438%20145.044V161.073L83.616%20173.097Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M83.616%20157.064L57.5833%20142.036V158.066L83.616%20173.097V157.064Z'%20fill='%23D4D8E2'/%3e%3cpath%20d='M83.6161%20157.064L105.056%20144.679L78.4096%20129.29L56.9656%20141.675L83.6161%20157.064Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M83.616%20157.064V161.073L105.056%20148.694V144.679L83.616%20157.064Z'%20fill='%23EDEEF3'/%3e%3cpath%20opacity='0.2'%20d='M83.616%20161.073L104.438%20149.048V149.93L83.616%20161.955V161.073Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M56.9656%20141.675L83.6161%20157.064V161.073L56.9656%20145.687V141.675Z'%20fill='%23D4D8E2'/%3e%3cpath%20opacity='0.2'%20d='M83.616%20161.073L57.5833%20146.045V146.923L83.616%20161.955V161.073Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M90.4713%20159.502L97.5833%20155.393C97.8885%20155.215%2098.1378%20155.36%2098.1378%20155.713V159.919C98.1378%20160.272%2097.8885%20160.704%2097.5833%20160.879L90.4713%20164.988C90.1661%20165.166%2089.9167%20165.021%2089.9167%20164.668V160.462C89.9167%20160.109%2090.1661%20159.677%2090.4713%20159.502Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M90.9253%20159.978L97.1293%20156.398C97.334%20156.279%2097.4977%20156.376%2097.4977%20156.61V159.763C97.4977%20159.997%2097.3302%20160.287%2097.1293%20160.403L90.9253%20163.983C90.7206%20164.102%2090.5569%20164.005%2090.5569%20163.771V160.619C90.5569%20160.384%2090.7244%20160.098%2090.9253%20159.978Z'%20fill='%23F9F9FB'/%3e%3cg%20opacity='0.5'%3e%3cpath%20d='M91.1003%20160.812C91.0705%20160.812%2091.0407%20160.797%2091.0221%20160.767C90.996%20160.723%2091.0109%20160.671%2091.0556%20160.645L96.9134%20157.265C96.9544%20157.239%2097.0102%20157.254%2097.0362%20157.299C97.0623%20157.344%2097.0474%20157.396%2097.0027%20157.422L91.1449%20160.801C91.1449%20160.801%2091.1151%20160.812%2091.1003%20160.812Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M91.1003%20161.586C91.0705%20161.586%2091.0407%20161.571%2091.0221%20161.542C90.996%20161.497%2091.0109%20161.445%2091.0556%20161.419L96.9134%20158.039C96.9544%20158.013%2097.0102%20158.028%2097.0362%20158.073C97.0623%20158.118%2097.0474%20158.17%2097.0027%20158.196L91.1449%20161.575C91.1449%20161.575%2091.1151%20161.586%2091.1003%20161.586Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M91.1003%20162.36C91.0705%20162.36%2091.0407%20162.345%2091.0221%20162.316C90.996%20162.271%2091.0109%20162.219%2091.0556%20162.193L96.9134%20158.814C96.9544%20158.788%2097.0102%20158.802%2097.0362%20158.847C97.0623%20158.892%2097.0474%20158.944%2097.0027%20158.97L91.1449%20162.349C91.1449%20162.349%2091.1151%20162.36%2091.1003%20162.36Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M91.1003%20163.134C91.0705%20163.134%2091.0407%20163.119%2091.0221%20163.09C90.996%20163.045%2091.0109%20162.993%2091.0556%20162.967L96.9134%20159.588C96.9544%20159.562%2097.0102%20159.576%2097.0362%20159.621C97.0623%20159.666%2097.0474%20159.718%2097.0027%20159.744L91.1449%20163.123C91.1449%20163.123%2091.1151%20163.134%2091.1003%20163.134Z'%20fill='%23B9BED0'/%3e%3c/g%3e%3cpath%20opacity='0.1'%20d='M103.318%20143.674L83.6161%20155.051L58.7073%20140.663L58.0969%20141.024L83.6161%20155.706L103.929%20144.028L103.318%20143.674Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M83.616%20155.051V139.018L104.438%20126.997V143.026L83.616%20155.051Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M83.616%20139.018L57.5833%20123.99V140.019L83.616%20155.051V139.018Z'%20fill='%23D4D8E2'/%3e%3cpath%20d='M83.6161%20139.018L105.056%20126.633L78.4096%20111.244L56.9656%20123.629L83.6161%20139.018Z'%20fill='%23EDEEF3'/%3e%3cpath%20d='M83.616%20139.018V143.026L105.056%20130.648V126.633L83.616%20139.018Z'%20fill='%23EDEEF3'/%3e%3cpath%20opacity='0.2'%20d='M83.616%20143.026L104.438%20131.002V131.884L83.616%20143.908V143.026Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M56.9656%20123.629L83.6161%20139.018V143.026L56.9656%20127.641V123.629Z'%20fill='%23D4D8E2'/%3e%3cpath%20opacity='0.2'%20d='M83.616%20143.026L57.5833%20127.999V128.877L83.616%20143.908V143.026Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M90.4713%20141.456L97.5833%20137.347C97.8885%20137.169%2098.1378%20137.314%2098.1378%20137.667V141.873C98.1378%20142.226%2097.8885%20142.658%2097.5833%20142.833L90.4713%20146.942C90.1661%20147.12%2089.9167%20146.975%2089.9167%20146.622V142.416C89.9167%20142.063%2090.1661%20141.631%2090.4713%20141.456Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M90.9253%20141.932L97.1293%20138.352C97.334%20138.233%2097.4977%20138.33%2097.4977%20138.564V141.716C97.4977%20141.951%2097.3302%20142.241%2097.1293%20142.357L90.9253%20145.937C90.7206%20146.056%2090.5569%20145.959%2090.5569%20145.725V142.572C90.5569%20142.338%2090.7244%20142.051%2090.9253%20141.932Z'%20fill='%23F9F9FB'/%3e%3cg%20opacity='0.5'%3e%3cpath%20d='M91.1003%20142.766C91.0705%20142.766%2091.0407%20142.751%2091.0221%20142.721C90.996%20142.677%2091.0109%20142.624%2091.0556%20142.598L96.9134%20139.219C96.9544%20139.193%2097.0102%20139.208%2097.0362%20139.253C97.0623%20139.297%2097.0474%20139.349%2097.0027%20139.376L91.1449%20142.755C91.1449%20142.755%2091.1151%20142.766%2091.1003%20142.766Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M91.1003%20143.54C91.0705%20143.54%2091.0407%20143.525%2091.0221%20143.495C90.996%20143.451%2091.0109%20143.399%2091.0556%20143.373L96.9134%20139.993C96.9544%20139.967%2097.0102%20139.982%2097.0362%20140.027C97.0623%20140.071%2097.0474%20140.124%2097.0027%20140.15L91.1449%20143.529C91.1449%20143.529%2091.1151%20143.54%2091.1003%20143.54Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M91.1003%20144.314C91.0705%20144.314%2091.0407%20144.299%2091.0221%20144.269C90.996%20144.225%2091.0109%20144.173%2091.0556%20144.147L96.9134%20140.767C96.9544%20140.741%2097.0102%20140.756%2097.0362%20140.801C97.0623%20140.846%2097.0474%20140.898%2097.0027%20140.924L91.1449%20144.303C91.1449%20144.303%2091.1151%20144.314%2091.1003%20144.314Z'%20fill='%23B9BED0'/%3e%3cpath%20d='M91.1003%20145.088C91.0705%20145.088%2091.0407%20145.073%2091.0221%20145.044C90.996%20144.999%2091.0109%20144.947%2091.0556%20144.921L96.9134%20141.542C96.9544%20141.515%2097.0102%20141.53%2097.0362%20141.575C97.0623%20141.62%2097.0474%20141.672%2097.0027%20141.698L91.1449%20145.077C91.1449%20145.077%2091.1151%20145.088%2091.1003%20145.088Z'%20fill='%23B9BED0'/%3e%3c/g%3e%3c/svg%3e`})),dH,fH,pH,mH=F((()=>{dH=R(sH(),1),Ub(),lH(),Jxe(),fH={class:`wt-table-column-select`},pH=(0,t.defineComponent)({__name:`wt-table-column-select`,props:{headers:{},staticHeaders:{default:()=>[]},enableSearch:{type:Boolean,default:!1}},emits:[`change`],setup(e,{emit:n}){let r=e,i=n,{t:a}=bb(),o=(0,t.inject)(`darkMode`),s=(0,t.ref)([]),c=(0,t.ref)(``),l=(0,t.ref)(!1);function u({text:e,locale:t}){return!e&&t?typeof t==`string`?a(t):a(...t):e}let d=(0,t.computed)(()=>s.value.filter(e=>!r.staticHeaders.includes(e.value)&&u(e)?.toLowerCase().includes(c.value?.toLowerCase())).sort((e,t)=>u(e)?.localeCompare(u(t)??``)??0));function f(){s.value=(0,dH.default)(r.headers)}function p(){l.value=!0}function m(){l.value=!1}function h(){i(`change`,s.value),m()}return(0,t.watch)(l,()=>{f()}),(n,r)=>{let i=(0,t.resolveComponent)(`wt-icon-btn`),a=(0,t.resolveComponent)(`wt-icon`),s=(0,t.resolveComponent)(`wt-input-text`),f=(0,t.resolveComponent)(`wt-checkbox`),g=(0,t.resolveComponent)(`wt-empty`),_=(0,t.resolveComponent)(`wt-button`),v=(0,t.resolveComponent)(`wt-popup`),y=(0,t.resolveDirective)(`tooltip`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,fH,[(0,t.withDirectives)((0,t.createVNode)(i,{icon:`column-select`,onClick:p},null,512),[[y,n.$t(`webitelUI.tableColumnSelect.title`)]]),(0,t.createVNode)(v,{shown:l.value,class:`wt-table-column-select__popup`,onClose:m},{title:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.$t(`webitelUI.tableColumnSelect.title`)),1)]),main:(0,t.withCtx)(()=>[e.enableSearch?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,class:`wt-table-column-select__popup-search`,"model-value":c.value,"onUpdate:modelValue":r[1]||=e=>c.value=e},{prefix:(0,t.withCtx)(()=>[(0,t.createVNode)(a,{icon:`search`})]),suffix:(0,t.withCtx)(()=>[c.value?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,icon:`close--filled`,onClick:r[0]||=e=>c.value=``})):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`model-value`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`wt-table-column-select__popup-list-wrap`,{"wt-table-column-select__popup-list-wrap__height-fixed":e.enableSearch}])},[d.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,{key:0,class:(0,t.normalizeClass)([{"wt-table-column-select__popup-list--md":d.value.length>10&&d.value.length<=20,"wt-table-column-select__popup-list--lg":d.value.length>20},`wt-table-column-select__popup-list`])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(d.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:e.value,class:`wt-table-column-select__popup-item`},[(0,t.createVNode)(f,{label:u(e),selected:e.show,"onUpdate:selected":t=>e.show=t},null,8,[`label`,`selected`,`onUpdate:selected`])]))),128))],2)):((0,t.openBlock)(),(0,t.createBlock)(g,{key:1,image:(0,t.unref)(o)?(0,t.unref)(cH):(0,t.unref)(uH),text:n.$t(`webitelUI.empty.text.filters`)},null,8,[`image`,`text`]))],2)]),actions:(0,t.withCtx)(()=>[(0,t.createVNode)(_,{onClick:h},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.$t(`reusable.add`)),1)],void 0,!0),_:1}),(0,t.createVNode)(_,{color:`secondary`,onClick:m},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.$t(`reusable.cancel`)),1)],void 0,!0),_:1})]),_:1},8,[`shown`])])}}})})),Yxe=F((()=>{})),Xxe=L({default:()=>hH}),hH,Zxe=F((()=>{mH(),mH(),Yxe(),K(),hH=G(pH,[[`__scopeId`,`data-v-1d316841`]])})),Qxe=F((()=>{})),$xe=L({default:()=>bH});function eSe(e,n,r,i,a,o){return(0,t.openBlock)(),(0,t.createElementBlock)(`nav`,{class:(0,t.normalizeClass)([{"wt-tabs--wide":r.wide},`wt-tabs`])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.tabs,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:n.value,class:(0,t.normalizeClass)([{"wt-tab--highlight":n.value===r.current.value},`wt-tab typo-body-1-bold`]),value:n.text,type:`button`,onClick:e=>o.open(n)},[(0,t.renderSlot)(e.$slots,n.value,(0,t.normalizeProps)((0,t.guardReactiveProps)({tab:n,current:r.current})),()=>[(0,t.createElementVNode)(`span`,vH,(0,t.toDisplayString)(n.text),1)],!0)],10,_H))),128)),(0,t.createElementVNode)(`div`,yH,[(0,t.createElementVNode)(`div`,{style:(0,t.normalizeStyle)({width:`${e.activeLineWidth}px`,transform:`translateX(${e.activeLineOffset}px)`}),class:`wt-tab__underline--highlight`},null,4)])],2)}var gH,_H,vH,yH,bH,tSe=F((()=>{Qxe(),K(),gH={name:`WtTabs`,model:{prop:`current`,event:`change`},props:{current:{type:Object,default:()=>({})},tabs:{type:Array,default:()=>[]},wide:{type:Boolean,default:!1}},emits:[`change`],data:()=>({activeLineWidth:0,activeLineOffset:0}),methods:{open(e){this.$emit(`change`,e),this.moveActiveLine(e)},moveActiveLine(e){if(!this.current||!this.$refs?.[e]?.[0])return;let t=this.$refs[e][0];this.activeLineWidth=t.clientWidth,this.activeLineOffset=t.offsetLeft}}},_H=[`value`,`onClick`],vH={style:{display:`block`}},yH={class:`wt-tabs__underline`},bH=G(gH,[[`render`,eSe],[`__scopeId`,`data-v-a6f6f0f3`]])})),xH,SH=F((()=>{xH=(0,t.defineComponent)({__name:`wt-time-input`,props:(0,t.mergeModels)({label:{default:``},name:{default:``},maxValue:{default:void 0},minValue:{default:0},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},labelProps:{default:()=>({})},hideInputInfo:{type:Boolean,default:!1},v:{default:null},regleValidation:{default:null},customValidators:{default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=(0,t.useModel)(e,`modelValue`);return(r,i)=>{let a=(0,t.resolveComponent)(`wt-input-number`);return(0,t.openBlock)(),(0,t.createBlock)(a,{"model-value":n.value,"onUpdate:modelValue":i[0]||=e=>n.value=e,label:e.label,"label-props":e.labelProps,name:e.name,max:e.maxValue,min:e.minValue,v:e.v,required:e.required,disabled:e.disabled,"hide-input-info":e.hideInputInfo},null,8,[`model-value`,`label`,`label-props`,`name`,`max`,`min`,`v`,`required`,`disabled`,`hide-input-info`])}}})})),nSe=L({default:()=>CH}),CH,rSe=F((()=>{SH(),SH(),CH=xH})),wH,TH,EH,DH,OH=F((()=>{Ub(),tf(),AC(),wH={class:`wt-timepicker__wrapper`},TH=3600,EH=60,DH=(0,t.defineComponent)({__name:`wt-timepicker`,props:{modelValue:{default:0},dateMode:{type:Boolean,default:!1},label:{default:``},format:{default:`hh:mm:ss`},disabled:{type:Boolean,default:!1},labelProps:{default:()=>({})},noLabel:{type:Boolean,default:!1},required:{type:Boolean,default:!1},v:{default:null},regleValidation:{default:null},customValidators:{default:()=>[]}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,{t:a}=bb(),{v:o,customValidators:s,regleValidation:c}=(0,t.toRefs)(r),{isValidation:l,invalid:u,validationText:d,validationTextColor:f}=kC({v:o,customValidators:s,regleValidation:c}),p=(0,t.computed)(()=>r.format.includes(`hh`)),m=(0,t.computed)(()=>r.format.includes(`mm`)),h=(0,t.computed)(()=>r.format.includes(`ss`)),g=(0,t.computed)(()=>r.noLabel||r.label?null:a(`webitelUI.timepicker.hour`)),_=(0,t.computed)(()=>r.noLabel||r.label?null:a(`webitelUI.timepicker.min`)),v=(0,t.computed)(()=>r.noLabel||r.label?null:a(`webitelUI.timepicker.sec`)),y=(0,t.computed)({get(){return r.dateMode?new Date(+r.modelValue).getHours():Math.floor(+r.modelValue/TH)},set(e){if(!Number.isFinite(+e))return;let t=r.dateMode?new Date(+r.modelValue).setHours(e):Math.max(0,+r.modelValue-y.value*TH+e*TH);i(`update:modelValue`,t)}}),b=(0,t.computed)({get(){return r.dateMode?new Date(+r.modelValue).getMinutes():Math.floor(+r.modelValue/EH%60)},set(e){if(!Number.isFinite(+e))return;let t=r.dateMode?new Date(+r.modelValue).setMinutes(e):Math.max(0,+r.modelValue-b.value*EH+e*EH);i(`update:modelValue`,t)}}),x=(0,t.computed)({get(){return r.dateMode?new Date(+r.modelValue).getSeconds():Math.floor(r.modelValue%60)},set(e){if(!Number.isFinite(+e))return;let t=r.dateMode?new Date(+r.modelValue).setSeconds(e):Math.max(0,+r.modelValue-x.value+ +e);i(`update:modelValue`,t)}}),S=(0,t.computed)(()=>r.required?`${r.label} (${r.format})*`:`${r.label} (${r.format})`),C=()=>{let e=r.dateMode?new Date(+r.modelValue).setHours(y.value):+r.modelValue-y.value*TH+y.value*TH;i(`update:modelValue`,0),(0,t.nextTick)(()=>{i(`update:modelValue`,e)})};return(n,r)=>{let i=(0,t.resolveComponent)(`wt-label`),a=(0,t.resolveComponent)(`wt-time-input`),s=(0,t.resolveComponent)(`wt-message`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([{"wt-timepicker--invalid":(0,t.unref)(u)},`wt-timepicker`])},[e.label||!e.noLabel?((0,t.openBlock)(),(0,t.createBlock)(i,(0,t.mergeProps)({key:0},e.labelProps,{invalid:(0,t.unref)(u)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`label`,(0,t.normalizeProps)((0,t.guardReactiveProps)({label:e.label})),()=>[(0,t.createTextVNode)((0,t.toDisplayString)(S.value),1)],!0)],void 0,!0),_:3},16,[`invalid`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,wH,[p.value?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,"model-value":y.value,"onUpdate:modelValue":r[0]||=e=>y.value=e,disabled:e.disabled,label:g.value,v:(0,t.unref)(o),"hide-input-info":``,onBlur:C},null,8,[`model-value`,`disabled`,`label`,`v`])):(0,t.createCommentVNode)(``,!0),m.value?((0,t.openBlock)(),(0,t.createBlock)(a,{key:1,"model-value":b.value,"onUpdate:modelValue":r[1]||=e=>b.value=e,disabled:e.disabled,label:_.value,"min-value":y.value?-1:0,"max-value":60,v:(0,t.unref)(o),"hide-input-info":``},null,8,[`model-value`,`disabled`,`label`,`min-value`,`v`])):(0,t.createCommentVNode)(``,!0),h.value?((0,t.openBlock)(),(0,t.createBlock)(a,{key:2,"model-value":x.value,"onUpdate:modelValue":r[2]||=e=>x.value=e,disabled:e.disabled,label:v.value,"min-value":b.value?-1:0,"max-value":60,v:(0,t.unref)(o),"hide-input-info":``},null,8,[`model-value`,`disabled`,`label`,`min-value`,`v`])):(0,t.createCommentVNode)(``,!0)]),(0,t.unref)(l)&&(0,t.unref)(d)?((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,color:(0,t.unref)(f),variant:(0,t.unref)(Xd).SIMPLE,size:(0,t.unref)(q).SM},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(d)),1)],void 0,!0),_:1},8,[`color`,`variant`,`size`])):(0,t.createCommentVNode)(``,!0)],2)}}})})),iSe=F((()=>{})),aSe=L({default:()=>kH}),kH,oSe=F((()=>{OH(),OH(),iSe(),K(),kH=G(DH,[[`__scopeId`,`data-v-3e79b83c`]])})),AH=I(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){var t=n.call(e),r=t===`[object Arguments]`;return r||=t!==`[object Array]`&&typeof e==`object`&&!!e&&typeof e.length==`number`&&e.length>=0&&n.call(e.callee)===`[object Function]`,r}})),sSe=I(((e,t)=>{var n;if(!Object.keys){var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=AH(),o=Object.prototype.propertyIsEnumerable,s=!o.call({toString:null},`toString`),c=o.call(function(){},`prototype`),l=[`toString`,`toLocaleString`,`valueOf`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`constructor`],u=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if(typeof window>`u`)return!1;for(var e in window)try{if(!d[`$`+e]&&r.call(window,e)&&window[e]!==null&&typeof window[e]==`object`)try{u(window[e])}catch{return!0}}catch{return!0}return!1}(),p=function(e){if(typeof window>`u`||!f)return u(e);try{return u(e)}catch{return!1}};n=function(e){var t=typeof e==`object`&&!!e,n=i.call(e)===`[object Function]`,o=a(e),u=t&&i.call(e)===`[object String]`,d=[];if(!t&&!n&&!o)throw TypeError(`Object.keys called on a non-object`);var f=c&&n;if(u&&e.length>0&&!r.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(o&&e.length>0)for(var h=0;h<e.length;++h)d.push(String(h));else for(var g in e)!(f&&g===`prototype`)&&r.call(e,g)&&d.push(String(g));if(s)for(var _=p(e),v=0;v<l.length;++v)!(_&&l[v]===`constructor`)&&r.call(e,l[v])&&d.push(l[v]);return d}}t.exports=n})),jH=I(((e,t)=>{var n=Array.prototype.slice,r=AH(),i=Object.keys,a=i?function(e){return i(e)}:sSe(),o=Object.keys;a.shim=function(){return Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return r(e)?o(n.call(e)):o(e)}):Object.keys=a,Object.keys||a},t.exports=a})),MH=I(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),NH=I(((e,t)=>{t.exports=SyntaxError})),PH=I(((e,t)=>{t.exports=TypeError})),cSe=I(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),FH=I(((e,t)=>{var n=cSe();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),IH=I(((e,t)=>{var n=MH(),r=NH(),i=PH(),a=FH();t.exports=function(e,t,o){if(!e||typeof e!=`object`&&typeof e!=`function`)throw new i("`obj` must be an object or a function`");if(typeof t!=`string`&&typeof t!=`symbol`)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=`boolean`&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=`boolean`&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=`boolean`&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=`boolean`)throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,d=!!a&&a(e,t);if(n)n(e,t,{configurable:l===null&&d?d.configurable:!l,enumerable:s===null&&d?d.enumerable:!s,value:o,writable:c===null&&d?d.writable:!c});else if(u||!s&&!c&&!l)e[t]=o;else throw new r(`This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.`)}})),LH=I(((e,t)=>{var n=MH(),r=function(){return!!n};r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],`length`,{value:1}).length!==1}catch{return!0}},t.exports=r})),RH=I(((e,t)=>{var n=jH(),r=typeof Symbol==`function`&&typeof Symbol(`foo`)==`symbol`,i=Object.prototype.toString,a=Array.prototype.concat,o=IH(),s=function(e){return typeof e==`function`&&i.call(e)===`[object Function]`},c=LH()(),l=function(e,t,n,r){if(t in e){if(r===!0){if(e[t]===n)return}else if(!s(r)||!r())return}c?o(e,t,n,!0):o(e,t,n)},u=function(e,t){var i=arguments.length>2?arguments[2]:{},o=n(t);r&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)l(e,o[s],t[o[s]],i[o[s]])};u.supportsDescriptors=!!c,t.exports=u})),zH=I(((e,t)=>{t.exports=Object})),BH=I(((e,t)=>{t.exports=Error})),lSe=I(((e,t)=>{t.exports=EvalError})),uSe=I(((e,t)=>{t.exports=RangeError})),dSe=I(((e,t)=>{t.exports=ReferenceError})),fSe=I(((e,t)=>{t.exports=URIError})),pSe=I(((e,t)=>{t.exports=Math.abs})),mSe=I(((e,t)=>{t.exports=Math.floor})),hSe=I(((e,t)=>{t.exports=Math.max})),gSe=I(((e,t)=>{t.exports=Math.min})),_Se=I(((e,t)=>{t.exports=Math.pow})),vSe=I(((e,t)=>{t.exports=Math.round})),ySe=I(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),bSe=I(((e,t)=>{var n=ySe();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),VH=I(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),HH=I(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=VH();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),UH=I(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),WH=I(((e,t)=>{t.exports=zH().getPrototypeOf||null})),xSe=I(((e,t)=>{var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}})),GH=I(((e,t)=>{var n=xSe();t.exports=Function.prototype.bind||n})),KH=I(((e,t)=>{t.exports=Function.prototype.call})),qH=I(((e,t)=>{t.exports=Function.prototype.apply})),SSe=I(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),JH=I(((e,t)=>{var n=GH(),r=qH(),i=KH();t.exports=SSe()||n.call(i,r)})),YH=I(((e,t)=>{var n=GH(),r=PH(),i=KH(),a=JH();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),CSe=I(((e,t)=>{var n=YH(),r=FH(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1})),XH=I(((e,t)=>{var n=UH(),r=WH(),i=CSe();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),ZH=I(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=GH().call(n,r)})),QH=I(((e,t)=>{var n,r=zH(),i=BH(),a=lSe(),o=uSe(),s=dSe(),c=NH(),l=PH(),u=fSe(),d=pSe(),f=mSe(),p=hSe(),m=gSe(),h=_Se(),g=vSe(),_=bSe(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=FH(),x=MH(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=HH()(),T=XH(),E=WH(),D=UH(),O=qH(),k=KH(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},ee={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},te=GH(),ne=ZH(),P=te.call(k,Array.prototype.concat),re=te.call(O,Array.prototype.splice),ie=te.call(k,String.prototype.replace),ae=te.call(k,String.prototype.slice),oe=te.call(k,RegExp.prototype.exec),se=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ce=/\\(\\)?/g,le=function(e){var t=ae(e,0,1),n=ae(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return ie(e,se,function(e,t,n,i){r[r.length]=n?ie(i,ce,`$1`):t||e}),r},F=function(e,t){var n=e,r;if(ne(ee,n)&&(r=ee[n],n=`%`+r[0]+`%`),ne(M,n)){var i=M[n];if(i===A&&(i=N(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(oe(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=le(e),r=n.length>0?n[0]:``,i=F(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],re(n,P([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=ae(p,0,1),h=ae(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,ne(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=ne(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),wSe=I(((e,t)=>{var n=QH(),r=IH(),i=LH()(),a=FH(),o=PH(),s=n(`%Math.floor%`);t.exports=function(e,t){if(typeof e!=`function`)throw new o("`fn` is not a function");if(typeof t!=`number`||t<0||t>4294967295||s(t)!==t)throw new o("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],c=!0,l=!0;if(`length`in e&&a){var u=a(e,`length`);u&&!u.configurable&&(c=!1),u&&!u.writable&&(l=!1)}return(c||l||!n)&&(i?r(e,`length`,t,!0,!0):r(e,`length`,t)),e}})),TSe=I(((e,t)=>{var n=GH(),r=qH(),i=JH();t.exports=function(){return i(n,r,arguments)}})),$H=I(((e,t)=>{var n=wSe(),r=MH(),i=YH(),a=TSe();t.exports=function(e){var t=i(arguments),r=1+e.length-(arguments.length-1);return n(t,r>0?r:0,!0)},r?r(t.exports,`apply`,{value:a}):t.exports.apply=a})),eU=I(((e,t)=>{var n=QH(),r=YH(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),tU=I(((e,t)=>{var n=jH(),r=VH()(),i=eU(),a=zH(),o=i(`Array.prototype.push`),s=i(`Object.prototype.propertyIsEnumerable`),c=r?a.getOwnPropertySymbols:null;t.exports=function(e,t){if(e==null)throw TypeError(`target must be an object`);var i=a(e);if(arguments.length===1)return i;for(var l=1;l<arguments.length;++l){var u=a(arguments[l]),d=n(u),f=r&&(a.getOwnPropertySymbols||c);if(f)for(var p=f(u),m=0;m<p.length;++m){var h=p[m];s(u,h)&&o(d,h)}for(var g=0;g<d.length;++g){var _=d[g];s(u,_)&&(i[_]=u[_])}}return i}})),nU=I(((e,t)=>{var n=tU(),r=function(){if(!Object.assign)return!1;for(var e=`abcdefghijklmnopqrst`,t=e.split(``),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var i=Object.assign({},n),a=``;for(var o in i)a+=o;return e!==a},i=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,`xy`)}catch{return e[1]===`y`}return!1};t.exports=function(){return!Object.assign||r()||i()?n:Object.assign}})),ESe=I(((e,t)=>{var n=RH(),r=nU();t.exports=function(){var e=r();return n(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}})),DSe=I(((e,t)=>{var n=RH(),r=$H(),i=tU(),a=nU(),o=ESe(),s=r.apply(a()),c=function(e,t){return s(Object,arguments)};n(c,{getPolyfill:a,implementation:i,shim:o}),t.exports=c})),rU=I(((e,t)=>{var n=QH(),r=$H(),i=r(n(`String.prototype.indexOf`));t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r(a):a}})),OSe=I(((e,t)=>{var n=function(){return typeof function(){}.name==`string`},r=Object.getOwnPropertyDescriptor;if(r)try{r([],`length`)}catch{r=null}n.functionsHaveConfigurableNames=function(){if(!n()||!r)return!1;var e=r(function(){},`name`);return!!e&&!!e.configurable};var i=Function.prototype.bind;n.boundFunctionsHaveNames=function(){return n()&&typeof i==`function`&&function(){}.bind().name!==``},t.exports=n})),kSe=I(((e,t)=>{var n=IH(),r=LH()(),i=OSe().functionsHaveConfigurableNames(),a=PH();t.exports=function(e,t){if(typeof e!=`function`)throw new a("`fn` is not a function");return(!(arguments.length>2&&arguments[2])||i)&&(r?n(e,`name`,t,!0,!0):n(e,`name`,t)),e}})),iU=I(((e,t)=>{var n=kSe(),r=PH(),i=Object;t.exports=n(function(){if(this==null||this!==i(this))throw new r(`RegExp.prototype.flags getter called on non-object`);var e=``;return this.hasIndices&&(e+=`d`),this.global&&(e+=`g`),this.ignoreCase&&(e+=`i`),this.multiline&&(e+=`m`),this.dotAll&&(e+=`s`),this.unicode&&(e+=`u`),this.unicodeSets&&(e+=`v`),this.sticky&&(e+=`y`),e},`get flags`,!0)})),aU=I(((e,t)=>{var n=iU(),r=RH().supportsDescriptors,i=Object.getOwnPropertyDescriptor;t.exports=function(){if(r&&/a/gim.flags===`gim`){var e=i(RegExp.prototype,`flags`);if(e&&typeof e.get==`function`&&`dotAll`in RegExp.prototype&&`hasIndices`in RegExp.prototype){var t=``,a={};if(Object.defineProperty(a,"hasIndices",{get:function(){t+=`d`}}),Object.defineProperty(a,"sticky",{get:function(){t+=`y`}}),e.get.call(a),t===`dy`)return e.get}}return n}})),ASe=I(((e,t)=>{var n=RH().supportsDescriptors,r=aU(),i=FH(),a=Object.defineProperty,o=BH(),s=XH(),c=/a/;t.exports=function(){if(!n||!s)throw new o(`RegExp.prototype.flags requires a true ES5 environment that supports property descriptors`);var e=r(),t=s(c),l=i(t,`flags`);return(!l||l.get!==e)&&a(t,`flags`,{configurable:!0,enumerable:!1,get:e}),e}})),jSe=I(((e,t)=>{var n=RH(),r=$H(),i=iU(),a=aU(),o=ASe(),s=r(a());n(s,{getPolyfill:a,implementation:i,shim:o}),t.exports=s})),oU=I(((e,t)=>{var n=VH();t.exports=function(){return n()&&!!Symbol.toStringTag}})),sU=I(((e,t)=>{var n=oU()(),r=eU()(`Object.prototype.toString`),i=function(e){return n&&e&&typeof e==`object`&&Symbol.toStringTag in e?!1:r(e)===`[object Arguments]`},a=function(e){return i(e)?!0:typeof e==`object`&&!!e&&`length`in e&&typeof e.length==`number`&&e.length>=0&&r(e)!==`[object Array]`&&`callee`in e&&r(e.callee)===`[object Function]`},o=function(){return i(arguments)}();i.isLegacyArguments=a,t.exports=o?i:a})),MSe=I(((e,t)=>{t.exports={}})),cU=I(((e,t)=>{me();var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype?WeakMap.prototype.has:null,d=typeof WeakSet==`function`&&WeakSet.prototype?WeakSet.prototype.has:null,f=typeof WeakRef==`function`&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,_=String.prototype.slice,v=String.prototype.replace,y=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,w=Array.prototype.slice,T=Math.floor,E=typeof BigInt==`function`?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,O=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,k=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,A=typeof Symbol==`function`&&Symbol.toStringTag?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,M=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),a=_.call(t,i.length+1);return v.call(i,n,`$&_`)+`.`+v.call(v.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return v.call(t,n,`$&_`)}var ee=MSe(),te=ee.custom,ne=de(te)?te:null,P={__proto__:null,double:`"`,single:`'`},re={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(he(s,`quoteStyle`)&&!he(P,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(he(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=he(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(he(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(he(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return Te(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?N(t,f):f}if(typeof t==`bigint`){var m=String(t)+`n`;return d?N(t,m):m}var h=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=h&&h>0&&typeof t==`object`)return se(t)?`[Array]`:`[Object]`;var g=Ae(s,r);if(o===void 0)o=[];else if(ve(o,t)>=0)return`[Circular]`;function y(t,n,i){if(n&&(o=w.call(o),o.push(n)),i){var a={depth:s.depth};return he(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!le(t)){var x=_e(t),T=B(t,y);return`[Function`+(x?`: `+x:` (anonymous)`)+`]`+(T.length>0?` { `+C.call(T,`, `)+` }`:``)}if(de(t)){var D=k?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):O.call(t);return typeof t==`object`&&!k?De(D):D}if(we(t)){for(var te=`<`+b.call(String(t.nodeName)),re=t.attributes||[],oe=0;oe<re.length;oe++)te+=` `+re[oe].name+`=`+ie(ae(re[oe].value),`double`,s);return te+=`>`,t.childNodes&&t.childNodes.length&&(te+=`...`),te+=`</`+b.call(String(t.nodeName))+`>`,te}if(se(t)){if(t.length===0)return`[]`;var fe=B(t,y);return g&&!z(fe)?`[`+je(fe,g)+`]`:`[ `+C.call(fe,`, `)+` ]`}if(F(t)){var me=B(t,y);return!(`cause`in Error.prototype)&&`cause`in t&&!j.call(t,`cause`)?`{ [`+String(t)+`] `+C.call(S.call(`[cause]: `+y(t.cause),me),`, `)+` }`:me.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+C.call(me,`, `)+` }`}if(typeof t==`object`&&u){if(ne&&typeof t[ne]==`function`&&ee)return ee(t,{depth:h-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(ye(t)){var Ee=[];return a&&a.call(t,function(e,n){Ee.push(y(n,t,!0)+` => `+y(e,t))}),ke(`Map`,i.call(t),Ee,g)}if(Se(t)){var Me=[];return l&&l.call(t,function(e){Me.push(y(e,t))}),ke(`Set`,c.call(t),Me,g)}if(be(t))return Oe(`WeakMap`);if(Ce(t))return Oe(`WeakSet`);if(xe(t))return Oe(`WeakRef`);if(L(t))return De(y(Number(t)));if(R(t))return De(y(E.call(t)));if(ue(t))return De(p.call(t));if(I(t))return De(y(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||pe!==void 0&&t===pe)return`{ [object globalThis] }`;if(!ce(t)&&!le(t)){var Ne=B(t,y),Pe=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,Fe=t instanceof Object?``:`null prototype`,Ie=!Pe&&A&&Object(t)===t&&A in t?_.call(ge(t),8,-1):Fe?`Object`:``,Le=(Pe||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``)+(Ie||Fe?`[`+C.call(S.call([],Ie||[],Fe||[]),`: `)+`] `:``);return Ne.length===0?Le+`{}`:g?Le+`{`+je(Ne,g)+`}`:Le+`{ `+C.call(Ne,`, `)+` }`}return String(t)};function ie(e,t,n){var r=P[n.quoteStyle||t];return r+e+r}function ae(e){return v.call(String(e),/"/g,`"`)}function oe(e){return!A||!(typeof e==`object`&&(A in e||e[A]!==void 0))}function se(e){return ge(e)===`[object Array]`&&oe(e)}function ce(e){return ge(e)===`[object Date]`&&oe(e)}function le(e){return ge(e)===`[object RegExp]`&&oe(e)}function F(e){return ge(e)===`[object Error]`&&oe(e)}function I(e){return ge(e)===`[object String]`&&oe(e)}function L(e){return ge(e)===`[object Number]`&&oe(e)}function ue(e){return ge(e)===`[object Boolean]`&&oe(e)}function de(e){if(k)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!O)return!1;try{return O.call(e),!0}catch{}return!1}function R(e){if(!e||typeof e!=`object`||!E)return!1;try{return E.call(e),!0}catch{}return!1}var fe=Object.prototype.hasOwnProperty||function(e){return e in this};function he(e,t){return fe.call(e,t)}function ge(e){return m.call(e)}function _e(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ve(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function ye(e){if(!i||!e||typeof e!=`object`)return!1;try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function be(e){if(!u||!e||typeof e!=`object`)return!1;try{u.call(e,u);try{d.call(e,d)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function xe(e){if(!f||!e||typeof e!=`object`)return!1;try{return f.call(e),!0}catch{}return!1}function Se(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Ce(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{u.call(e,u)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function we(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function Te(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return Te(_.call(e,0,t.maxStringLength),t)+r}var i=re[t.quoteStyle||`single`];return i.lastIndex=0,ie(v.call(v.call(e,i,`\\$1`),/[\x00-\x1f]/g,Ee),`single`,t)}function Ee(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+y.call(t.toString(16))}function De(e){return`Object(`+e+`)`}function Oe(e){return e+` { ? }`}function ke(e,t,n,r){var i=r?je(n,r):C.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function z(e){for(var t=0;t<e.length;t++)if(ve(e[t],`
|
|
1385
1385
|
`)>=0)return!1;return!0}function Ae(e,t){var n;if(e.indent===` `)n=` `;else if(typeof e.indent==`number`&&e.indent>0)n=C.call(Array(e.indent+1),` `);else return null;return{base:n,prev:C.call(Array(t+1),n)}}function je(e,t){if(e.length===0)return``;var n=`
|
|
1386
1386
|
`+t.prev+t.base;return n+C.call(e,`,`+n)+`
|
|
1387
1387
|
`+t.prev}function B(e,t){var n=se(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=he(e,i)?t(e[i],e):``}var a=typeof D==`function`?D(e):[],o;if(k){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e)he(e,c)&&(n&&String(Number(c))===c&&c<e.length||k&&o[`$`+c]instanceof Symbol||(x.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))));if(typeof D==`function`)for(var l=0;l<a.length;l++)j.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}})),NSe=I(((e,t)=>{var n=cU(),r=PH(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=c(e,t);return n&&e&&!e.next&&(e=void 0),!!n},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}})),lU=I(((e,t)=>{var n=QH(),r=eU(),i=cU(),a=PH(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}})),PSe=I(((e,t)=>{var n=QH(),r=eU(),i=cU(),a=lU(),o=PH(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a})),uU=I(((e,t)=>{var n=PH(),r=cU(),i=NSe(),a=lU(),o=PSe()||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+(e&&Object(e)===e?`the given object key`:r(e)))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=o(),e.set(t,n)}};return t}})),FSe=I(((e,t)=>{var n=ZH(),r=uU()(),i=PH(),a={assert:function(e,t){if(!e||typeof e!=`object`&&typeof e!=`function`)throw new i("`O` is not an object");if(typeof t!=`string`)throw new i("`slot` must be a string");if(r.assert(e),!a.has(e,t))throw new i("`"+t+"` is not present on `O`")},get:function(e,t){if(!e||typeof e!=`object`&&typeof e!=`function`)throw new i("`O` is not an object");if(typeof t!=`string`)throw new i("`slot` must be a string");var n=r.get(e);return n&&n[`$`+t]},has:function(e,t){if(!e||typeof e!=`object`&&typeof e!=`function`)throw new i("`O` is not an object");if(typeof t!=`string`)throw new i("`slot` must be a string");var a=r.get(e);return!!a&&n(a,`$`+t)},set:function(e,t,n){if(!e||typeof e!=`object`&&typeof e!=`function`)throw new i("`O` is not an object");if(typeof t!=`string`)throw new i("`slot` must be a string");var a=r.get(e);a||(a={},r.set(e,a)),a[`$`+t]=n}};Object.freeze&&Object.freeze(a),t.exports=a})),ISe=I(((e,t)=>{var n=FSe(),r=NH(),i=typeof StopIteration==`object`?StopIteration:null;t.exports=function(e){if(!i)throw new r(`this environment lacks StopIteration`);n.set(e,`[[Done]]`,!1);var t={next:function(){var e=n.get(this,`[[Iterator]]`),t=!!n.get(e,`[[Done]]`);try{return{done:t,value:t?void 0:e.next()}}catch(t){if(n.set(e,`[[Done]]`,!0),t!==i)throw t;return{done:!0,value:void 0}}}};return n.set(t,`[[Iterator]]`,e),t}})),dU=I(((e,t)=>{var n={}.toString;t.exports=Array.isArray||function(e){return n.call(e)==`[object Array]`}})),fU=I(((e,t)=>{var n=eU(),r=n(`String.prototype.valueOf`),i=function(e){try{return r(e),!0}catch{return!1}},a=n(`Object.prototype.toString`),o=`[object String]`,s=oU()();t.exports=function(e){return typeof e==`string`?!0:!e||typeof e!=`object`?!1:s?i(e):a(e)===o}})),pU=I(((e,t)=>{var n=typeof Map==`function`&&Map.prototype?Map:null,r=typeof Set==`function`&&Set.prototype?Set:null,i;n||(i=function(e){return!1});var a=n?Map.prototype.has:null,o=r?Set.prototype.has:null;!i&&!a&&(i=function(e){return!1}),t.exports=i||function(e){if(!e||typeof e!=`object`)return!1;try{if(a.call(e),o)try{o.call(e)}catch{return!0}return e instanceof n}catch{}return!1}})),mU=I(((e,t)=>{var n=typeof Map==`function`&&Map.prototype?Map:null,r=typeof Set==`function`&&Set.prototype?Set:null,i;r||(i=function(e){return!1});var a=n?Map.prototype.has:null,o=r?Set.prototype.has:null;!i&&!o&&(i=function(e){return!1}),t.exports=i||function(e){if(!e||typeof e!=`object`)return!1;try{if(o.call(e),a)try{a.call(e)}catch{return!0}return e instanceof r}catch{}return!1}})),LSe=I(((e,t)=>{Me();var n=sU(),r=ISe();if(HH()()||VH()()){var i=Symbol.iterator;t.exports=function(e){if(e!=null&&e[i]!==void 0)return e[i]();if(n(e))return Array.prototype[i].call(e)}}else{var a=dU(),o=fU(),s=QH(),c=s(`%Map%`,!0),l=s(`%Set%`,!0),u=rU(),d=u(`Array.prototype.push`),f=u(`String.prototype.charCodeAt`),p=u(`String.prototype.slice`),m=function(e,t){var n=e.length;if(t+1>=n)return t+1;var r=f(e,t);if(r<55296||r>56319)return t+1;var i=f(e,t+1);return i<56320||i>57343?t+1:t+2},h=function(e){var t=0;return{next:function(){var n=t>=e.length,r;return n||(r=e[t],t+=1),{done:n,value:r}}}},g=function(e,t){if(a(e)||n(e))return h(e);if(o(e)){var r=0;return{next:function(){var t=m(e,r),n=p(e,r,t);return r=t,{done:t>e.length,value:n}}}}if(t&&e[`_es6-shim iterator_`]!==void 0)return e[`_es6-shim iterator_`]()};if(!c&&!l)t.exports=function(e){if(e!=null)return g(e,!0)};else{var _=pU(),v=mU(),y=u(`Map.prototype.forEach`,!0),b=u(`Set.prototype.forEach`,!0);if(B===void 0||!B.versions||!B.versions.node)var x=u(`Map.prototype.iterator`,!0),S=u(`Set.prototype.iterator`,!0);var C=u(`Map.prototype.@@iterator`,!0)||u(`Map.prototype._es6-shim iterator_`,!0),w=u(`Set.prototype.@@iterator`,!0)||u(`Set.prototype._es6-shim iterator_`,!0),T=function(e){if(_(e)){if(x)return r(x(e));if(C)return C(e);if(y){var t=[];return y(e,function(e,n){d(t,[n,e])}),h(t)}}if(v(e)){if(S)return r(S(e));if(w)return w(e);if(b){var n=[];return b(e,function(e){d(n,e)}),h(n)}}};t.exports=function(e){return T(e)||g(e)}}}})),hU=I(((e,t)=>{var n=function(e){return e!==e};t.exports=function(e,t){return e===0&&t===0?1/e==1/t:!!(e===t||n(e)&&n(t))}})),gU=I(((e,t)=>{var n=hU();t.exports=function(){return typeof Object.is==`function`?Object.is:n}})),RSe=I(((e,t)=>{var n=gU(),r=RH();t.exports=function(){var e=n();return r(Object,{is:e},{is:function(){return Object.is!==e}}),e}})),zSe=I(((e,t)=>{var n=RH(),r=$H(),i=hU(),a=gU(),o=RSe(),s=r(a(),Object);n(s,{getPolyfill:a,implementation:i,shim:o}),t.exports=s})),_U=I(((e,t)=>{var n=$H(),r=eU(),i=QH()(`%ArrayBuffer%`,!0),a=r(`ArrayBuffer.prototype.byteLength`,!0),o=r(`Object.prototype.toString`),s=!!i&&!a&&new i(0).slice,c=!!s&&n(s);t.exports=a||c?function(e){if(!e||typeof e!=`object`)return!1;try{return a?a(e):c(e,0),!0}catch{return!1}}:i?function(e){return o(e)===`[object ArrayBuffer]`}:function(e){return!1}})),BSe=I(((e,t)=>{var n=eU(),r=n(`Date.prototype.getDay`),i=function(e){try{return r(e),!0}catch{return!1}},a=n(`Object.prototype.toString`),o=`[object Date]`,s=oU()();t.exports=function(e){return typeof e!=`object`||!e?!1:s?i(e):a(e)===o}})),vU=I(((e,t)=>{var n=eU(),r=oU()(),i=ZH(),a=FH(),o;if(r){var s=n(`RegExp.prototype.exec`),c={},l=function(){throw c},u={toString:l,valueOf:l};typeof Symbol.toPrimitive==`symbol`&&(u[Symbol.toPrimitive]=l),o=function(e){if(!e||typeof e!=`object`)return!1;var t=a(e,`lastIndex`);if(!(t&&i(t,`value`)))return!1;try{s(e,u)}catch(e){return e===c}}}else{var d=n(`Object.prototype.toString`),f=`[object RegExp]`;o=function(e){return!e||typeof e!=`object`&&typeof e!=`function`?!1:d(e)===f}}t.exports=o})),VSe=I(((e,t)=>{var n=eU()(`SharedArrayBuffer.prototype.byteLength`,!0);t.exports=n?function(e){if(!e||typeof e!=`object`)return!1;try{return n(e),!0}catch{return!1}}:function(e){return!1}})),HSe=I(((e,t)=>{var n=eU(),r=n(`Number.prototype.toString`),i=function(e){try{return r(e),!0}catch{return!1}},a=n(`Object.prototype.toString`),o=`[object Number]`,s=oU()();t.exports=function(e){return typeof e==`number`?!0:!e||typeof e!=`object`?!1:s?i(e):a(e)===o}})),USe=I(((e,t)=>{var n=eU(),r=n(`Boolean.prototype.toString`),i=n(`Object.prototype.toString`),a=function(e){try{return r(e),!0}catch{return!1}},o=`[object Boolean]`,s=oU()();t.exports=function(e){return typeof e==`boolean`?!0:typeof e!=`object`||!e?!1:s?a(e):i(e)===o}})),WSe=I(((e,t)=>{var n=eU(),r=vU(),i=n(`RegExp.prototype.exec`),a=PH();t.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return i(e,t)!==null}}})),GSe=I(((e,t)=>{var n=eU(),r=n(`Object.prototype.toString`),i=HH()(),a=WSe();if(i){var o=n(`Symbol.prototype.toString`),s=a(/^Symbol\(.*\)$/),c=function(e){return typeof e.valueOf()==`symbol`?s(o(e)):!1};t.exports=function(e){if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||r(e)!==`[object Symbol]`)return!1;try{return c(e)}catch{return!1}}}else t.exports=function(e){return!1}})),KSe=I(((e,t)=>{var n=typeof BigInt<`u`&&BigInt;t.exports=function(){return typeof n==`function`&&typeof BigInt==`function`&&typeof n(42)==`bigint`&&typeof BigInt(42)==`bigint`}})),qSe=I(((e,t)=>{if(KSe()()){var n=BigInt.prototype.valueOf,r=function(e){try{return n.call(e),!0}catch{}return!1};t.exports=function(e){return e==null||typeof e==`boolean`||typeof e==`string`||typeof e==`number`||typeof e==`symbol`||typeof e==`function`?!1:typeof e==`bigint`?!0:r(e)}}else t.exports=function(e){return!1}})),JSe=I(((e,t)=>{var n=fU(),r=HSe(),i=USe(),a=GSe(),o=qSe();t.exports=function(e){if(e==null||typeof e!=`object`&&typeof e!=`function`)return null;if(n(e))return`String`;if(r(e))return`Number`;if(i(e))return`Boolean`;if(a(e))return`Symbol`;if(o(e))return`BigInt`}})),YSe=I(((e,t)=>{var n=typeof WeakMap==`function`&&WeakMap.prototype?WeakMap:null,r=typeof WeakSet==`function`&&WeakSet.prototype?WeakSet:null,i;n||(i=function(e){return!1});var a=n?n.prototype.has:null,o=r?r.prototype.has:null;!i&&!a&&(i=function(e){return!1}),t.exports=i||function(e){if(!e||typeof e!=`object`)return!1;try{if(a.call(e,a),o)try{o.call(e,o)}catch{return!0}return e instanceof n}catch{}return!1}})),XSe=I(((e,t)=>{var n=QH(),r=eU(),i=n(`%WeakSet%`,!0),a=r(`WeakSet.prototype.has`,!0);if(a){var o=r(`WeakMap.prototype.has`,!0);t.exports=function(e){if(!e||typeof e!=`object`)return!1;try{if(a(e,a),o)try{o(e,o)}catch{return!0}return e instanceof i}catch{}return!1}}else t.exports=function(e){return!1}})),ZSe=I(((e,t)=>{var n=pU(),r=mU(),i=YSe(),a=XSe();t.exports=function(e){if(e&&typeof e==`object`){if(n(e))return`Map`;if(r(e))return`Set`;if(i(e))return`WeakMap`;if(a(e))return`WeakSet`}return!1}})),QSe=I(((e,t)=>{var n=Function.prototype.toString,r=typeof Reflect==`object`&&Reflect!==null&&Reflect.apply,i,a;if(typeof r==`function`&&typeof Object.defineProperty==`function`)try{i=Object.defineProperty({},"length",{get:function(){throw a}}),a={},r(function(){throw 42},null,i)}catch(e){e!==a&&(r=null)}else r=null;var o=/^\s*class\b/,s=function(e){try{var t=n.call(e);return o.test(t)}catch{return!1}},c=function(e){try{return s(e)?!1:(n.call(e),!0)}catch{return!1}},l=Object.prototype.toString,u=`[object Object]`,d=`[object Function]`,f=`[object GeneratorFunction]`,p=`[object HTMLAllCollection]`,m=`[object HTML document.all class]`,h=`[object HTMLCollection]`,g=typeof Symbol==`function`&&!!Symbol.toStringTag,_=!(0 in[,]),v=function(){return!1};if(typeof document==`object`){var y=document.all;l.call(y)===l.call(document.all)&&(v=function(e){if((_||!e)&&(e===void 0||typeof e==`object`))try{var t=l.call(e);return(t===p||t===m||t===h||t===u)&&e(``)==null}catch{}return!1})}t.exports=r?function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;try{r(e,null,i)}catch(e){if(e!==a)return!1}return!s(e)&&c(e)}:function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;if(g)return c(e);if(s(e))return!1;var t=l.call(e);return t!==d&&t!==f&&!/^\[object HTML/.test(t)?!1:c(e)}})),$Se=I(((e,t)=>{var n=QSe(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(e,t,n){for(var r=0,a=e.length;r<a;r++)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))},o=function(e,t,n){for(var r=0,i=e.length;r<i;r++)n==null?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},s=function(e,t,n){for(var r in e)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))};function c(e){return r.call(e)===`[object Array]`}t.exports=function(e,t,r){if(!n(t))throw TypeError(`iterator must be a function`);var i;arguments.length>=3&&(i=r),c(e)?a(e,t,i):typeof e==`string`?o(e,t,i):s(e,t,i)}})),eCe=I(((e,t)=>{t.exports=[`Float16Array`,`Float32Array`,`Float64Array`,`Int8Array`,`Int16Array`,`Int32Array`,`Uint8Array`,`Uint8ClampedArray`,`Uint16Array`,`Uint32Array`,`BigInt64Array`,`BigUint64Array`]})),tCe=I(((e,t)=>{me();var n=eCe(),r=typeof globalThis>`u`?pe:globalThis;t.exports=function(){for(var e=[],t=0;t<n.length;t++)typeof r[n[t]]==`function`&&(e[e.length]=n[t]);return e}})),nCe=I(((e,t)=>{me();var n=$Se(),r=tCe(),i=$H(),a=eU(),o=FH(),s=XH(),c=a(`Object.prototype.toString`),l=oU()(),u=typeof globalThis>`u`?pe:globalThis,d=r(),f=a(`String.prototype.slice`),p=a(`Array.prototype.indexOf`,!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};l&&o&&s?n(d,function(e){var t=new u[e];if(Symbol.toStringTag in t&&s){var n=s(t),r=o(n,Symbol.toStringTag);if(!r&&n&&(r=o(s(n),Symbol.toStringTag)),r&&r.get){var a=i(r.get);m[`$`+e]=a}}}):n(d,function(e){var t=new u[e],n=t.slice||t.set;if(n){var r=i(n);m[`$`+e]=r}});function h(e){var t=!1;return n(m,function(n,r){if(!t)try{`$`+n(e)===r&&(t=f(r,1))}catch{}}),t}function g(e){var t=!1;return n(m,function(n,r){if(!t)try{n(e),t=f(r,1)}catch{}}),t}function _(e){return p(d,e)>-1}t.exports=function(e){if(!e||typeof e!=`object`)return!1;if(!l){var t=f(c(e),8,-1);return _(t)?t:t===`Object`?g(e):!1}return o?h(e):null}})),rCe=I(((e,t)=>{var n=eU()(`ArrayBuffer.prototype.byteLength`,!0),r=_U();t.exports=function(e){return r(e)?n?n(e):e.byteLength:NaN}})),yU=I(((e,t)=>{var n=DSe(),r=rU(),i=jSe(),a=QH(),o=LSe(),s=uU(),c=zSe(),l=sU(),u=dU(),d=_U(),f=BSe(),p=vU(),m=VSe(),h=jH(),g=JSe(),_=ZSe(),v=nCe(),y=rCe(),b=r(`SharedArrayBuffer.prototype.byteLength`,!0),x=r(`Date.prototype.getTime`),S=Object.getPrototypeOf,C=r(`Object.prototype.toString`),w=a(`%Set%`,!0),T=r(`Map.prototype.has`,!0),E=r(`Map.prototype.get`,!0),D=r(`Map.prototype.size`,!0),O=r(`Set.prototype.add`,!0),k=r(`Set.prototype.delete`,!0),A=r(`Set.prototype.has`,!0),j=r(`Set.prototype.size`,!0);function M(e,t,n,r){for(var i=o(e),a;(a=i.next())&&!a.done;)if(P(t,a.value,n,r))return k(e,a.value),!0;return!1}function N(e){if(e===void 0)return null;if(typeof e!=`object`)return typeof e==`symbol`?!1:typeof e==`string`||typeof e==`number`?+e==+e:!0}function ee(e,t,r,i,a,o){var s=N(r);if(s!=null)return s;var c=E(t,s),l=n({},a,{strict:!1});return c===void 0&&!T(t,s)||!P(i,c,l,o)?!1:!T(e,s)&&P(i,c,l,o)}function te(e,t,n){var r=N(n);return r??(A(t,r)&&!A(e,r))}function ne(e,t,n,r,i,a){for(var s=o(e),c,l;(c=s.next())&&!c.done;)if(l=c.value,P(n,l,i,a)&&P(r,E(t,l),i,a))return k(e,l),!0;return!1}function P(e,t,n,r){var i=n||{};if(i.strict?c(e,t):e===t)return!0;if(g(e)!==g(t))return!1;if(!e||!t||typeof e!=`object`&&typeof t!=`object`)return i.strict?c(e,t):e==t;var a=r.has(e),o=r.has(t),s;if(a&&o){if(r.get(e)===r.get(t))return!0}else s={};return a||r.set(e,s),o||r.set(t,s),oe(e,t,i,r)}function re(e){return!e||typeof e!=`object`||typeof e.length!=`number`||typeof e.copy!=`function`||typeof e.slice!=`function`||e.length>0&&typeof e[0]!=`number`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function ie(e,t,n,r){if(j(e)!==j(t))return!1;for(var i=o(e),a=o(t),s,c,l;(s=i.next())&&!s.done;)if(s.value&&typeof s.value==`object`)l||=new w,O(l,s.value);else if(!A(t,s.value)){if(n.strict||!te(e,t,s.value))return!1;l||=new w,O(l,s.value)}if(l){for(;(c=a.next())&&!c.done;)if(c.value&&typeof c.value==`object`){if(!M(l,c.value,n.strict,r))return!1}else if(!n.strict&&!A(e,c.value)&&!M(l,c.value,n.strict,r))return!1;return j(l)===0}return!0}function ae(e,t,r,i){if(D(e)!==D(t))return!1;for(var a=o(e),s=o(t),c,l,u,d,f,p;(c=a.next())&&!c.done;)if(d=c.value[0],f=c.value[1],d&&typeof d==`object`)u||=new w,O(u,d);else if(p=E(t,d),p===void 0&&!T(t,d)||!P(f,p,r,i)){if(r.strict||!ee(e,t,d,f,r,i))return!1;u||=new w,O(u,d)}if(u){for(;(l=s.next())&&!l.done;)if(d=l.value[0],p=l.value[1],d&&typeof d==`object`){if(!ne(u,e,d,p,r,i))return!1}else if(!r.strict&&(!e.has(d)||!P(E(e,d),p,r,i))&&!ne(u,e,d,p,n({},r,{strict:!1}),i))return!1;return j(u)===0}return!0}function oe(e,t,n,r){var a,o;if(typeof e!=typeof t||e==null||t==null||C(e)!==C(t)||l(e)!==l(t)||u(e)!==u(t))return!1;var s=e instanceof Error,c=t instanceof Error;if(s!==c||(s||c)&&(e.name!==t.name||e.message!==t.message))return!1;var g=p(e),w=p(t);if(g!==w||(g||w)&&(e.source!==t.source||i(e)!==i(t)))return!1;var T=f(e),E=f(t);if(T!==E||(T||E)&&x(e)!==x(t)||n.strict&&S&&S(e)!==S(t))return!1;var D=v(e),O=v(t);if(D!==O)return!1;if(D||O){if(e.length!==t.length)return!1;for(a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}var k=re(e),A=re(t);if(k!==A)return!1;if(k||A){if(e.length!==t.length)return!1;for(a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}var j=d(e),M=d(t);if(j!==M)return!1;if(j||M)return y(e)===y(t)?typeof Uint8Array==`function`&&P(new Uint8Array(e),new Uint8Array(t),n,r):!1;var N=m(e),ee=m(t);if(N!==ee)return!1;if(N||ee)return b(e)===b(t)?typeof Uint8Array==`function`&&P(new Uint8Array(e),new Uint8Array(t),n,r):!1;if(typeof e!=typeof t)return!1;var te=h(e),ne=h(t);if(te.length!==ne.length)return!1;for(te.sort(),ne.sort(),a=te.length-1;a>=0;a--)if(te[a]!=ne[a])return!1;for(a=te.length-1;a>=0;a--)if(o=te[a],!P(e[o],t[o],n,r))return!1;var oe=_(e),se=_(t);return oe===se?oe===`Set`||se===`Set`?ie(e,t,n,r):oe===`Map`?ae(e,t,n,r):!0:!1}t.exports=function(e,t,n){return P(e,t,n,s())}})),bU,xU,SU,CU,wU,TU=F((()=>{bU=R(yU(),1),jT(),xU={class:`wt-tree-line`},SU={class:`wt-tree-line__icon-wrapper`},CU={class:`wt-tree-line__label typo-body-1`},wU=(0,t.defineComponent)({__name:`wt-tree-line`,props:{modelValue:{},data:{},itemLabel:{},itemData:{},childrenProp:{default:`children`},nestedLevel:{default:0},lastChild:{type:Boolean,default:!1},selectedParent:{type:Boolean,default:!1},nestedIcons:{},nextElement:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},allowParent:{type:Boolean,default:!1},searchedProp:{default:`searched`},rootData:{}},emits:[`openParent`,`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.computed)(()=>r.itemLabel?r.data[r.itemLabel]:r.data),o=(0,t.computed)(()=>{let e=r.nestedIcons?[...r.nestedIcons]:[];return r.nestedLevel===0||e.push({icon:`tree-line`,hidden:!r.nextElement}),e}),s=()=>Array.isArray(r.modelValue)?r.itemData?r.modelValue.includes(r.data[r.itemData]):!!r.modelValue.find(e=>(0,bU.default)(e,r.data)):!1,c=(0,t.computed)(()=>r.multiple?s():r.itemData?r.data[r.itemData]===r.modelValue:(0,bU.default)(r.modelValue,r.data)),l=(0,t.computed)(()=>r.multiple?c.value:c.value||r.selectedParent),u=(e,t,n)=>{let i=r.itemData?e[r.itemData]:e;if(t)n.some(e=>(0,bU.default)(e,i))||n.push(i);else{let e=n.findIndex(e=>(0,bU.default)(e,i));e!==-1&&n.splice(e,1)}if(e&&Array.isArray(e[r.childrenProp])&&e[r.childrenProp].length)for(let i of e[r.childrenProp])u(i,t,n)},d=(e,t,n)=>{let i=(t,a)=>{if(t===e){if(a){let e=r.itemData?a[r.itemData]:a,t=n.findIndex(t=>(0,bU.default)(t,e));t!==-1&&n.splice(t,1)}return!0}if(t&&Array.isArray(t[r.childrenProp])&&t[r.childrenProp].length){for(let e of t[r.childrenProp])if(i(e,t))return!0}return!1};i(t,null)},f=()=>{let e=c.value,t=[...r.modelValue];u(r.data,!e,t),e&&d(r.data,r.rootData,t),i(`update:modelValue`,t)},p=()=>{let e=r.itemData?r.data[r.itemData]:r.data,t;if(t=r.itemData?r.modelValue.indexOf(r.data[r.itemData]):r.modelValue.findIndex(e=>(0,bU.default)(e,r.data)),t===-1){let t=[...r.modelValue];t.push(e),i(`update:modelValue`,t);return}let n=[...r.modelValue];n.splice(t,1),i(`update:modelValue`,n)},m=()=>{if(r.multiple){r.data[r.childrenProp]?.length?f():p();return}if(r.allowParent&&!r.data[r.childrenProp])return i(`update:modelValue`,r.itemData?r.data[r.itemData]:r.data);if(r.data[r.childrenProp]?.length){h.value=!h.value;return}i(`update:modelValue`,r.itemData?r.data[r.itemData]:r.data)},h=(0,t.ref)(!0),g=()=>{r.nestedLevel>0&&i(`openParent`)},_=()=>{h.value=!1,g()},v=(e,t=0)=>{if(e[r.searchedProp]&&t)return!0;if(Array.isArray(e[r.childrenProp])){for(let n of e[r.childrenProp])if(v(n,t+1))return!0}return!1};return(0,t.onMounted)(()=>{c.value&&g(),r.searchedProp&&r.data[r.searchedProp]&&g()}),(0,t.watch)(()=>r.modelValue,()=>{c.value&&g()}),(n,s)=>{let u=(0,t.resolveComponent)(`wt-icon`),d=(0,t.resolveComponent)(`wt-icon-btn`),f=(0,t.resolveComponent)(`wt-tree-line`,!0);return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`div`,xU,[(0,t.createElementVNode)(`div`,SU,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.nestedIcons,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(u,{key:n,icon:e.icon,class:(0,t.normalizeClass)({hidden:e.hidden})},null,8,[`icon`,`class`]))),128)),e.nestedLevel>=1?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,icon:e.lastChild?`tree-corner`:`tree-cross`},null,8,[`icon`])):(0,t.createCommentVNode)(``,!0),e.data[e.childrenProp]&&e.data[e.childrenProp].length?((0,t.openBlock)(),(0,t.createBlock)(d,{key:1,icon:h.value?`plus`:`minus`,onClick:s[0]||=e=>h.value=!h.value},null,8,[`icon`])):(0,t.createCommentVNode)(``,!0)]),(0,t.renderSlot)(n.$slots,`item-prefix`,{class:`mr-1`,data:e.data,rootData:e.rootData||e.data,nestedLevel:e.nestedLevel,active:l.value,hasChildren:!!(e.data[e.childrenProp]&&e.data[e.childrenProp].length),selectedParent:e.selectedParent},void 0,!0),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([{active:l.value,searched:r.data[r.searchedProp]},`wt-tree-line__label-wrapper`]),onClick:m},[(0,t.createElementVNode)(`p`,CU,(0,t.toDisplayString)(a.value),1),l.value?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,icon:`chat-message-status-sent`})):(0,t.createCommentVNode)(``,!0)],2)]),(0,t.withDirectives)((0,t.createVNode)(AT,null,{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.data[e.childrenProp],(r,a)=>((0,t.openBlock)(),(0,t.createBlock)(f,{key:a,"model-value":e.modelValue,data:r,"children-prop":e.childrenProp,"item-label":e.itemLabel,"item-data":e.itemData,"nested-level":e.nestedLevel+1,"selected-parent":c.value||e.selectedParent,"next-element":!!e.data[e.childrenProp][a+1],"nested-icons":o.value,"last-child":a===e.data[e.childrenProp].length-1,multiple:e.multiple,"allow-parent":e.allowParent,"root-data":e.rootData||e.data,onOpenParent:_,"onUpdate:modelValue":s[1]||=e=>i(`update:modelValue`,e)},(0,t.createSlots)({_:2},[n.$slots[`item-prefix`]?{name:`item-prefix`,fn:(0,t.withCtx)(e=>[(0,t.renderSlot)(n.$slots,`item-prefix`,(0,t.normalizeProps)((0,t.guardReactiveProps)(e)),void 0,!0)]),key:`0`}:void 0]),1032,[`model-value`,`data`,`children-prop`,`item-label`,`item-data`,`nested-level`,`selected-parent`,`next-element`,`nested-icons`,`last-child`,`multiple`,`allow-parent`,`root-data`]))),128))])],void 0,!0),_:3},512),[[t.vShow,!h.value]])],64)}}})})),iCe=F((()=>{})),EU,aCe=F((()=>{TU(),TU(),iCe(),K(),EU=G(wU,[[`__scopeId`,`data-v-ced3d83b`]])})),DU,oCe=F((()=>{DU={Tree:`tree`,List:`list`}})),OU,kU,AU,jU,MU,NU,PU=F((()=>{OU=R(yU(),1),aCe(),oCe(),kU={class:`wt-tree`},AU={key:0,class:`wt-tree__content`},jU={key:1,class:`wt-tree__list-content`},MU=[`onClick`],NU=(0,t.defineComponent)({__name:`wt-tree`,props:{modelValue:{},data:{},itemLabel:{},itemData:{},mode:{default:DU.Tree},childrenProp:{default:`children`},multiple:{type:Boolean},allowParent:{type:Boolean,default:!1}},emits:[`select`,`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.computed)(()=>{let e=[],t=n=>{e.push(n),n[r.childrenProp]&&n[r.childrenProp].forEach(e=>{t(e)})};return r.data.forEach(e=>{t(e)}),e}),o=e=>{i(`update:modelValue`,r.itemData?e[r.itemData]:e)},s=e=>r.itemData?e[r.itemData]===r.modelValue:(0,OU.default)(r.modelValue,e);return(n,r)=>{let c=(0,t.resolveComponent)(`wt-icon`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,kU,[e.mode===(0,t.unref)(DU).Tree?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,AU,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.data,(a,o)=>((0,t.openBlock)(),(0,t.createBlock)(EU,{key:o,"model-value":e.modelValue,"item-label":e.itemLabel,"item-data":e.itemData,data:a,"children-prop":e.childrenProp,multiple:e.multiple,"allow-parent":e.allowParent,"onUpdate:modelValue":r[0]||=e=>i(`update:modelValue`,e)},(0,t.createSlots)({_:2},[n.$slots[`item-prefix`]?{name:`item-prefix`,fn:(0,t.withCtx)(e=>[(0,t.renderSlot)(n.$slots,`item-prefix`,(0,t.normalizeProps)((0,t.guardReactiveProps)(e)),void 0,!0)]),key:`0`}:void 0]),1032,[`model-value`,`item-label`,`item-data`,`data`,`children-prop`,`multiple`,`allow-parent`]))),128))])):(0,t.createCommentVNode)(``,!0),e.mode===(0,t.unref)(DU).List?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,jU,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.value,(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:r,class:(0,t.normalizeClass)([`wt-tree__label-wrapper`,{active:s(n)}])},[(0,t.createElementVNode)(`p`,{class:`wt-tree__label`,onClick:e=>o(n)},(0,t.toDisplayString)(e.itemLabel?n[e.itemLabel]:n),9,MU),s(n)?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,icon:`chat-message-status-sent`,class:`wt-tree__label-icon`})):(0,t.createCommentVNode)(``,!0)],2))),128))])):(0,t.createCommentVNode)(``,!0)])}}})})),sCe=F((()=>{})),cCe=L({default:()=>FU}),FU,lCe=F((()=>{PU(),PU(),sCe(),K(),FU=G(NU,[[`__scopeId`,`data-v-f86ae40a`]])})),IU,LU,RU,zU,BU,VU=F((()=>{wS(),yC(),IU={class:`wt-tree-table-td__content`},LU={key:0,class:`wt-tree-table-td__icon-wrapper`},RU={key:0,class:`wt-tree-table-td__actions typo-body-1`},zU={class:`wt-tree-table-td__content`},BU=(0,t.defineComponent)({__name:`wt-tree-table-row`,props:{data:{},rowPosition:{},childrenProp:{},selectable:{type:Boolean,default:!1},selectedElements:{},dataHeaders:{},gridActions:{type:Boolean,default:!0},nestingLevel:{default:0},searchedProp:{default:`searched`}},emits:[`update:selected`,`expanded-collapse`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(!0),o=(0,t.computed)(()=>r.nestingLevel),s=(0,t.computed)(()=>r.nestingLevel+1),c=(0,t.computed)(()=>r.selectedElements.includes(r.data)),l=()=>{a.value=!1,i(`expanded-collapse`)},u=(e,t=0)=>{if(e[r.searchedProp]&&t)return!0;if(Array.isArray(e[r.childrenProp])){for(let n of e[r.childrenProp])if(u(n,t+1))return!0}return!1};return(0,t.onMounted)(()=>{r.searchedProp&&u(r.data)&&l()}),(n,r)=>{let i=(0,t.resolveComponent)(`wt-tree-table-row`,!0);return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`tr`,{class:(0,t.normalizeClass)([[{"wt-tree-table-row--alternate":e.rowPosition%2}],`wt-tree-table-row`])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.dataHeaders,(i,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`td`,{key:s,class:`wt-tree-table-td typo-body-1`},[(0,t.createElementVNode)(`div`,IU,[s?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,LU,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e,class:`wt-tree-table-row__tree-space`}))),128)),e.selectable?((0,t.openBlock)(),(0,t.createBlock)(CS,{key:0,selected:c.value,"onUpdate:selected":r[0]||=t=>n.$emit(`update:selected`,{data:e.data,select:t})},null,8,[`selected`])):(0,t.createCommentVNode)(``,!0),e.data[e.childrenProp]?((0,t.openBlock)(),(0,t.createBlock)(vC,{key:1,icon:a.value?`tree-expand`:`tree-collapse`,onClick:r[1]||=e=>a.value=!a.value},null,8,[`icon`])):(0,t.createCommentVNode)(``,!0)])),(0,t.renderSlot)(n.$slots,i.value,{index:e.rowPosition,item:e.data},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.data[i.value]),1)],!0)])]))),128)),e.gridActions?((0,t.openBlock)(),(0,t.createElementBlock)(`td`,RU,[(0,t.createElementVNode)(`div`,zU,[(0,t.renderSlot)(n.$slots,`actions`,{index:e.rowPosition,item:e.data},void 0,!0)])])):(0,t.createCommentVNode)(``,!0)],2),a.value?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.data[e.childrenProp],(a,o)=>((0,t.openBlock)(),(0,t.createBlock)(i,{key:o,"children-prop":e.childrenProp,data:a,"data-headers":e.dataHeaders,"nesting-level":s.value,"row-position":e.rowPosition,"searched-prop":e.searchedProp,selectable:e.selectable,"selected-elements":e.selectedElements,onExpandedCollapse:l,"onUpdate:selected":r[2]||=e=>n.$emit(`update:selected`,{data:e.data,select:e.select})},(0,t.createSlots)({actions:(0,t.withCtx)(({item:r})=>[(0,t.renderSlot)(n.$slots,`actions`,{index:e.rowPosition,item:r},void 0,!0)]),_:2},[(0,t.renderList)(e.dataHeaders,(r,i)=>({name:r.value,fn:(0,t.withCtx)(({item:i})=>[(0,t.renderSlot)(n.$slots,r.value,{index:e.rowPosition,item:i},()=>[(0,t.createElementVNode)(`div`,null,(0,t.toDisplayString)(i[r.value]),1)],!0)])}))]),1032,[`children-prop`,`data`,`data-headers`,`nesting-level`,`row-position`,`searched-prop`,`selectable`,`selected-elements`]))),128))],64)}}})})),uCe=F((()=>{})),HU,dCe=F((()=>{VU(),VU(),uCe(),K(),HU=G(BU,[[`__scopeId`,`data-v-51ab1948`]])})),UU,WU,GU,KU,qU,JU,YU,XU,ZU,QU,$U=F((()=>{Cx(),nw(),wS(),dCe(),UU={class:`wt-tree-table wt-scrollbar`},WU={class:`wt-tree-table-wrapper`},GU={class:`wt-tree-table-head`},KU={class:`wt-tree-table-tr wt-tree-table-tr-head`},qU=[`onClick`],JU={class:`wt-tree-table-th__text`},YU={key:0,class:`wt-tree-table-th__actions`},XU={class:`wt-tree-table-th__content`},ZU={class:`wt-tree-table-body`},QU=(0,t.defineComponent)({__name:`wt-tree-table`,props:{headers:{},data:{},sortable:{type:Boolean,default:!1},selectable:{type:Boolean,default:!0},selected:{},gridActions:{type:Boolean,default:!0},childrenProp:{},searchedProp:{default:`searched`}},emits:[`sort`,`update:selected`],setup(e,{emit:n}){let r=e,i=n,a=e=>e[r.childrenProp]&&Array.isArray(e[r.childrenProp]),o=e=>{let t=[],n=e=>{if(e._isSelected)return[e];a(e)&&e[r.childrenProp].forEach(n)};return e.forEach(n),t},s=e=>{let t=[],n=e=>{t.push(e),a(e)&&e[r.childrenProp].forEach(n)};return e.forEach(n),t},c=(0,t.computed)(()=>r.selected||o(r.data)),l=(0,t.computed)(()=>c.value.length===s(r.data).length&&s(r.data).length>0),{tableHeaders:u}=tw({headers:(0,t.toRef)(r,`headers`)}),d=({sort:e})=>r.sortable&&e!==void 0,f=e=>{if(!d(e))return;let t=Sx(e.sort);i(`sort`,e,t)},p=(e,t)=>{e.forEach(e=>{e._isSelected=t,a(e)&&p(e[r.childrenProp],t)})},m=()=>{r.selected?i(`update:selected`,l.value?[]:[...s(r.data)]):l.value?p(r.data,!1):p(r.data,!0)},h=(e,t)=>{r.selected?t?i(`update:selected`,[...c.value,e]):i(`update:selected`,c.value.filter(t=>t!==e)):e._isSelected=!e._isSelected};return(n,r)=>{let i=(0,t.resolveComponent)(`wt-icon`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,UU,[(0,t.createElementVNode)(`table`,WU,[(0,t.createElementVNode)(`thead`,GU,[(0,t.createElementVNode)(`tr`,KU,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(u),(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`th`,{key:String(a)+n?.sort,class:(0,t.normalizeClass)([[{"wt-tree-table-th--sortable":d(n)},`wt-tree-table-th--sort-${n.sort}`],`wt-tree-table-th typo-body-1`]),style:(0,t.normalizeStyle)(n.width?`min-width:${n.width}`:``),onClick:e=>f(n,a)},[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`wt-tree-table-th__content`,{"wt-tree-table-th__content--selectable":a===0&&e.selectable}])},[a===0&&e.selectable?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,onClick:r[0]||=(0,t.withModifiers)(()=>{},[`stop`])},[(0,t.createVNode)(CS,{selected:l.value,"onUpdate:selected":m},null,8,[`selected`])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,JU,(0,t.toDisplayString)(n.text),1),e.sortable?((0,t.openBlock)(),(0,t.createBlock)(i,{key:1,class:`wt-tree-table-th-sort-arrow wt-tree-table-th-sort-arrow--asc`,icon:`sort-arrow-up`,size:`sm`})):(0,t.createCommentVNode)(``,!0),e.sortable?((0,t.openBlock)(),(0,t.createBlock)(i,{key:2,class:`wt-tree-table-th-sort-arrow wt-tree-table-th-sort-arrow--desc`,icon:`sort-arrow-down`,size:`sm`})):(0,t.createCommentVNode)(``,!0)],2)],14,qU))),128)),e.gridActions?((0,t.openBlock)(),(0,t.createElementBlock)(`th`,YU,[(0,t.createElementVNode)(`div`,XU,[(0,t.renderSlot)(n.$slots,`actions-header`,{},void 0,!0)])])):(0,t.createCommentVNode)(``,!0)])]),(0,t.createElementVNode)(`tbody`,ZU,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.data,(i,a)=>((0,t.openBlock)(),(0,t.createBlock)(HU,{key:a,"row-position":a,"data-headers":(0,t.unref)(u),data:i,selectable:e.selectable,"children-prop":e.childrenProp,"selected-elements":c.value,"searched-prop":e.searchedProp,"onUpdate:selected":r[1]||=e=>h(e.data,e.select)},(0,t.createSlots)({actions:(0,t.withCtx)(({item:e})=>[(0,t.renderSlot)(n.$slots,`actions`,{item:e},void 0,!0)]),_:2},[(0,t.renderList)((0,t.unref)(u),(e,r)=>({name:e.value,fn:(0,t.withCtx)(({item:r})=>[(0,t.renderSlot)(n.$slots,e.value,{index:a,item:r},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r[e.value]),1)],!0)])}))]),1032,[`row-position`,`data-headers`,`data`,`selectable`,`children-prop`,`selected-elements`,`searched-prop`]))),128))])])])}}})})),fCe=F((()=>{})),pCe=L({default:()=>eW}),eW,mCe=F((()=>{$U(),$U(),fCe(),K(),eW=G(QU,[[`__scopeId`,`data-v-3b7387eb`]])})),hCe=L({insertContent:()=>gCe});function gCe(e,t){let n=tI(tW);n.innerHTML=mN,e.append(n);let r=document.createElement(`span`);r.classList.add(`vds-google-cast-info`),e.append(r);let i=document.createElement(`span`);i.classList.add(`vds-google-cast-device-name`),Y(()=>{let{remotePlaybackInfo:e}=t,n=e();return n?.deviceName&&(i.textContent=n.deviceName,r.append(`Google Cast on `,i)),()=>{r.textContent=``}})}var tW,_Ce=F((()=>{hN(),oI(),tW=eI(`<svg viewBox="0 0 32 32" fill="none" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"></svg>`)})),nW,rW,vCe=F((()=>{hN(),zxe(),zF(),nW=class extends fM(HTMLElement,KR){static tagName=`media-provider`;#e;#t=null;#n=null;onSetup(){this.#e=LF(),this.setAttribute(`keep-alive`,``)}onDestroy(){this.#n?.remove(),this.#n=null,this.#t?.remove(),this.#t=null}onConnect(){Y(()=>{let e=this.$state.loader(),t=e?.name===`youtube`,n=e?.name===`vimeo`,r=t||n,i=e?.name===`google-cast`,a=e?i?this.#o():r?this.#a():e.mediaType()===`audio`?this.#r():this.#i():null;if(this.#t!==a){let e=this.#t?.parentElement??this;this.#t?.remove(),this.#t=a,a&&e.prepend(a),r&&a&&Y(()=>{let{nativeControls:e,viewType:t}=this.#e.$state,n=e(),r=t()===`audio`;!n&&!r?(this.#n=this.querySelector(`.vds-blocker`),this.#n||(this.#n=document.createElement(`div`),this.#n.classList.add(`vds-blocker`),a.after(this.#n))):(this.#n?.remove(),this.#n=null),Qj(a,`data-no-controls`,!n)})}t?a?.classList.add(`vds-youtube`):n&&a?.classList.add(`vds-vimeo`),r||(this.#n?.remove(),this.#n=null),this.load(a)})}#r(){let e=this.#t instanceof HTMLAudioElement?this.#t:document.createElement(`audio`),{controls:t,crossOrigin:n}=this.#e.$state;return Y(()=>{Qj(e,`controls`,t()),Qj(e,`crossorigin`,n())}),e}#i(){let e=this.#t instanceof HTMLVideoElement?this.#t:document.createElement(`video`),{crossOrigin:t,poster:n,nativeControls:r}=this.#e.$state,i=Lj(()=>r()?`true`:null),a=Lj(()=>n()&&r()?n():null);return Y(()=>{Qj(e,`controls`,i()),Qj(e,`crossorigin`,t()),Qj(e,`poster`,a())}),e}#a(){let e=this.#t instanceof HTMLIFrameElement?this.#t:document.createElement(`iframe`),{nativeControls:t}=this.#e.$state;return Y(()=>Qj(e,`tabindex`,t()?null:-1)),e}#o(){if(this.#t?.classList.contains(`vds-google-cast`))return this.#t;let e=document.createElement(`div`);return e.classList.add(`vds-google-cast`),Promise.resolve().then(()=>(_Ce(),hCe)).then(({insertContent:t})=>{t(e,this.#e.$state)}),e}},rW=class extends fM(HTMLElement,VR){static tagName=`media-player`;static attrs={ariaLabel:`aria-label`,autoPlay:`autoplay`,crossOrigin:`crossorigin`,playsInline:`playsinline`,preferNativeHLS:`prefer-native-hls`,minLiveDVRWindow:`min-live-dvr-window`}}})),yCe=F((()=>{hN(),vCe(),mM(rW),mM(nW)}));function iW(e,t){QF(()=>{if(!e.connectScope)return;let n=e.querySelector(`template`);n&&Y(()=>{let r=e.getOptions();$F(n,r.length,(e,n)=>{let{label:i,value:a}=r[n],o=e.querySelector(`[data-part="label"]`);e.setAttribute(`value`,a),o&&(Uj(i)?o.textContent=i:Y(()=>{o.textContent=i()})),t?.(e,r[n],n)})})})}var aW,oW,sW,cW,lW,uW,dW,fW,pW,mW,hW,gW,_W,vW,yW,bW,xW,SW,CW,wW,TW,EW,DW,OW,kW,AW=F((()=>{hN(),zF(),oI(),aB(),aW=eI(`<img loading="eager" decoding="async" aria-hidden="true">`),oW=class extends fM(HTMLElement,Dz){static tagName=`media-thumbnail`;static attrs={crossOrigin:`crossorigin`};#e;#t=this.#n();onSetup(){this.#e=LF(),this.$state.img.set(this.#t)}onConnect(){let{src:e,crossOrigin:t}=this.$state;this.#t.parentNode!==this&&this.prepend(this.#t),Y(()=>{Qj(this.#t,`src`,e()),Qj(this.#t,`crossorigin`,t())})}#n(){return tI(aW)}},sW=class extends fM(HTMLElement,iB){static tagName=`media-time`;onConnect(){Y(()=>{this.textContent=this.$state.timeText()})}},cW=class extends fM(HTMLElement,iz){static tagName=`media-airplay-button`},lW=class extends fM(HTMLElement,oz){static tagName=`media-caption-button`},uW=class extends fM(HTMLElement,sz){static tagName=`media-fullscreen-button`},dW=class extends fM(HTMLElement,dz){static tagName=`media-live-button`},fW=class extends fM(HTMLElement,cz){static tagName=`media-mute-button`},pW=class extends fM(HTMLElement,lz){static tagName=`media-pip-button`},mW=class extends fM(HTMLElement,az){static tagName=`media-play-button`},hW=class extends fM(HTMLElement,uz){static tagName=`media-seek-button`},gW=class extends fM(HTMLElement,Yz){static tagName=`media-audio-radio-group`;onConnect(){iW(this)}},_W=class extends fM(HTMLElement,Zz){static tagName=`media-captions-radio-group`;onConnect(){iW(this)}},vW=class extends fM(HTMLElement,Rz){static tagName=`media-menu`},yW=class extends fM(HTMLElement,zz){static tagName=`media-menu-button`},bW=class extends fM(HTMLElement,Vz){static tagName=`media-menu-item`},xW=class extends fM(HTMLElement,Wz){static tagName=`media-menu-items`},SW=class extends fM(HTMLElement,eB){static tagName=`media-speed-radio-group`;onConnect(){iW(this)}},CW=class extends fM(HTMLElement,nB){static tagName=`media-quality-radio-group`;onConnect(){iW(this,(e,t)=>{let n=t.bitrate,r=e.querySelector(`[data-part="bitrate"]`);n&&r&&Y(()=>{r.textContent=n()||``})})}},wW=class extends fM(HTMLElement,qz){static tagName=`media-radio`},TW=class extends oW{static tagName=`media-slider-thumbnail`;#e;#t;onSetup(){super.onSetup(),this.#e=LF(),this.#t=oM(bz.state)}onConnect(){super.onConnect(),Y(this.#n.bind(this))}#n(){let{duration:e,clipStartTime:t}=this.#e.$state;this.time=t()+this.#t.pointerRate()*e()}},EW=class extends fM(HTMLElement,Oz){static tagName=`media-slider-value`;static attrs={padMinutes:{converter:oN}};onConnect(){Y(()=>{this.textContent=this.getValueText()})}},DW=class extends fM(HTMLElement,Mz){static tagName=`media-time-slider`},OW=class extends fM(HTMLElement,Az){static tagName=`media-slider-preview`},kW=class extends fM(HTMLElement,jz){static tagName=`media-volume-slider`}}));function jW(e,t){if(!Array.isArray(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return FW===void 0?t:FW.createHTML(t)}function MW(e,t,n=e,r){var i,a;if(t===tG)return t;let o=r===void 0?n._$Cl:n._$Co?.[r],s=HW(t)?void 0:t._$litDirective$;return o?.constructor!==s&&((i=o?._$AO)==null||i.call(o,!1),s===void 0?o=void 0:(o=new s(e),o._$AT(e,n,r)),r===void 0?n._$Cl=o:((a=n)._$Co??(a._$Co=[]))[r]=o),o!==void 0&&(t=MW(e,o._$AS(e,t.values),o,r)),t}var NW,PW,FW,IW,LW,RW,zW,BW,VW,HW,UW,WW,GW,KW,qW,JW,YW,XW,ZW,QW,$W,eG,tG,nG,rG,iG,aG,oG,sG,cG,lG,uG,dG,fG,pG,mG,hG,gG,_G=F((()=>{NW=window,PW=NW.trustedTypes,FW=PW?PW.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,IW=`$lit$`,LW=`lit$${(Math.random()+``).slice(9)}$`,RW=`?`+LW,zW=`<${RW}>`,BW=document,VW=()=>BW.createComment(``),HW=e=>e===null||typeof e!=`object`&&typeof e!=`function`,UW=Array.isArray,WW=e=>UW(e)||typeof e?.[Symbol.iterator]==`function`,GW=`[
|
|
@@ -4822,7 +4822,7 @@ using the supplied variables before sending via the underlying provider API.`),s
|
|
|
4822
4822
|
.p-tooltip-text {
|
|
4823
4823
|
${U9({dt:e,typo:m9.Body2})}
|
|
4824
4824
|
white-space: pre-line;
|
|
4825
|
-
word-break:
|
|
4825
|
+
word-break: break-word;
|
|
4826
4826
|
background: ${e(`tooltip.background`)};
|
|
4827
4827
|
color: ${e(`tooltip.color`)};
|
|
4828
4828
|
padding: ${e(`tooltip.padding`)};
|