@webitel/ui-sdk 26.8.129 → 26.8.131

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.
Files changed (22) hide show
  1. package/dist/{clients-CiEI5u9_.js → clients-CK-bThbs.js} +2 -2
  2. package/dist/{components-DTlPLRKR.js → components-BF21ppoM.js} +3 -3
  3. package/dist/ui-sdk.css +1 -1
  4. package/dist/ui-sdk.js +1 -1
  5. package/dist/ui-sdk.umd.cjs +3 -3
  6. package/dist/{wt-chat-emoji-DQO9kNSD.js → wt-chat-emoji-Cx8k9m9H.js} +195 -191
  7. package/dist/{wt-display-chip-items-DTKD_p2I.js → wt-display-chip-items-AZ9DiSV4.js} +1 -1
  8. package/dist/{wt-send-message-popup-C-cjOJ-w.js → wt-send-message-popup-BjI9PKzi.js} +2 -2
  9. package/dist/{wt-tabs-DuOgj-lZ.js → wt-tabs-BJ-sFhv7.js} +1 -1
  10. package/dist/{wt-type-extension-value-input-LfsqysQq.js → wt-type-extension-value-input-C6Mq2QeU.js} +2 -2
  11. package/dist/{wt-vidstack-player-BAgVx1gi.js → wt-vidstack-player-D_N5CdUm.js} +1 -1
  12. package/package.json +1 -1
  13. package/src/components/on-demand/wt-chat-emoji/__tests__/WtChatEmoji.spec.js +48 -0
  14. package/src/components/on-demand/wt-chat-emoji/wt-chat-emoji.vue +11 -2
  15. package/src/components/wt-tabs/_variables.css +2 -1
  16. package/src/components/wt-tabs/wt-tabs.vue +21 -5
  17. package/src/store/ReactiveNowStoreModule/pinia/ReactiveNowStore.ts +31 -0
  18. package/src/store/ReactiveNowStoreModule/pinia/__tests__/ReactiveNowStore.spec.ts +53 -0
  19. package/types/.tsbuildinfo +1 -1
  20. package/types/components/on-demand/wt-chat-emoji/__tests__/WtChatEmoji.spec.d.ts +1 -0
  21. package/types/components/on-demand/wt-chat-emoji/wt-chat-emoji.vue.d.ts +1 -54
  22. package/types/store/ReactiveNowStoreModule/pinia/ReactiveNowStore.d.ts +13 -0
@@ -1412,7 +1412,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
1412
1412
  `).map(e=>e.trim()).join(`
1413
1413
  `).trim(),{type:e.type}).then(({cues:e,regions:t})=>{this.#a=e,this.#i=t,this.#u()})})}async#l(){if(!(!this.#e||this[nN.readyState]>0)){if(this[nN.readyState]=1,this.dispatchEvent(new iA(`load-start`)),!this.src){this.#u();return}try{let{parseResponse:e,VTTCue:t,VTTRegion:n}=await Promise.resolve().then(()=>(eN(),$M)),r=this[nN.crossOrigin]?.(),i=fetch(this.src,{headers:this.type===`json`?{"Content-Type":`application/json`}:void 0,credentials:xj(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[nN.readyState]=2,!this.src||this.type!==`vtt`){let e=this[nN.native];if(e&&!e.managed)for(let t of this.#a)e.track.addCue(t)}let e=new iA(`load`);this[nN.updateActiveCues](this.#t,e),this.dispatchEvent(e)}#d(e){this[nN.readyState]=3,this.dispatchEvent(new iA(`error`,{detail:e}))}#f(e,t,n){try{let{regions:r,cues:i}=Fwe(e,t,n);this.#i=r,this.#a=i}catch(e){this.#d(e)}}#p(e){this.dispatchEvent(new iA(`cue-change`,{trigger:e}))}},iN=/captions|subtitles/}));function oN(){return Tk(sN)}var sN,cN=O((()=>{RA(),sN=Ck()}));function lN(e,t=2){return Number(e.toFixed(t))}function uN(e){return String(e).split(`.`)[1]?.length??0}function dN(e,t,n){return Math.max(e,Math.min(n,t))}var fN=O((()=>{}));function pN(e,t){let n=t.composedPath()[0];return zCe(n)&&e.contains(n)}function Iwe(e){return ON.add(e),()=>ON.delete(e)}function mN(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}function hN(e,t){if(e.hasAttribute(`aria-label`)||e.hasAttribute(`data-no-label`))return;if(!mk(t)){xk(e,`aria-label`,t);return}function n(){xk(e,`aria-label`,t())}J(n)}function gN(e){let t=getComputedStyle(e);return t.display!==`none`&&parseInt(t.opacity)>0}function Lwe(e){return!!e&&(`checkVisibility`in e?e.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}):gN(e))}function _N(e,t){return Iwe(()=>t(Lwe(e)))}function vN(e,t,n){for(;t;)if(t===e)return!0;else if(n?.(t))break;else t=t.parentElement;return!1}function yN(e,t){return new sA(e).add(`pointerup`,e=>{e.button===0&&!e.defaultPrevented&&t(e)}).add(`keydown`,e=>{bk(e)&&t(e)})}function bN(e){return vk(e)&&(e.touches.length>1||e.changedTouches.length>1)}function xN(e){let t=VO(),n=window.requestAnimationFrame(()=>{HO(e,t),n=-1});return()=>void window.cancelAnimationFrame(n)}function SN(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 WO(()=>{for(let e=0;e<s.length;e++)s[e].remove()}),s}function CN(e){let t=document.createElement(`template`);return t.innerHTML=e,t.content}function wN(e){return e.cloneNode(!0).firstElementChild}function TN(e,t,n,{offsetVarName:r,xOffset:i,yOffset:a,...o}){if(!e)return;let s=n.replace(` `,`-`).replace(`-center`,``);if(Sk(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 aE(t,e,()=>{mE(t,e,{placement:s,middleware:[...o.middleware??[],pE({fallbackAxisSideDirection:`start`,crossAxis:!1}),fE()],...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 Rwe(e){return getComputedStyle(e).animationName!==`none`}function EN(e){return e instanceof HTMLElement}function zwe(e){return e?`true`:`false`}function DN(e){return()=>zwe(e())}function Bwe(){return typeof window>`u`?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}var ON,kN=O((()=>{RA(),hE(),ON=new Set;{function e(){for(let e of ON)try{e()}catch{}window.requestAnimationFrame(e)}e()}})),AN,jN=O((()=>{AN={setAuto:Symbol(0),enableAuto:Symbol(0)}}));function MN(e){return e instanceof Error?e:Error(typeof e==`string`?e:JSON.stringify(e))}function NN(e,t){if(!e)throw Error(t||`Assertion failed.`)}var PN=O((()=>{}));function FN(e,t){xk(e,`data-focus`,t),xk(e,`data-hocus`,t)}function IN(e,t){xk(e,`data-hocus`,t),xk(e,`data-hover`,t)}var LN,RN,zN=O((()=>{RA(),LN=ak(!1),gk(document,`pointerdown`,()=>{LN.set(!1)}),gk(document,`keydown`,e=>{e.metaKey||e.altKey||e.ctrlKey||LN.set(!0)}),RN=class extends mA{#e=ak(!1);onConnect(e){J(()=>{let t=new sA(e);if(!LN()){this.#e.set(!1),FN(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),FN(e,n),t.add(`focus`,this.#t.bind(this)).add(`blur`,this.#n.bind(this))})}focused(){return this.#e()}#t(){this.#e.set(!0),FN(this.el,!0)}#n(){this.#e.set(!1),FN(this.el,!1)}#r(){IN(this.el,!0)}#i(){IN(this.el,!1)}}})),BN,VN,HN,UN,WN,GN,KN,Vwe=O((()=>{BN={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},VN=[`webkitFullscreenEnabled`,`webkitFullscreenElement`,`webkitRequestFullscreen`,`webkitExitFullscreen`,`webkitfullscreenchange`,`webkitfullscreenerror`,`-webkit-full-screen`],HN=[`mozFullScreenEnabled`,`mozFullScreenElement`,`mozRequestFullScreen`,`mozCancelFullScreen`,`mozfullscreenchange`,`mozfullscreenerror`,`-moz-full-screen`],UN=[`msFullscreenEnabled`,`msFullscreenElement`,`msRequestFullscreen`,`msExitFullscreen`,`MSFullscreenChange`,`MSFullscreenError`,`-ms-fullscreen`],WN=typeof window<`u`&&window.document!==void 0?window.document:{},GN=`fullscreenEnabled`in WN&&Object.keys(BN)||VN[0]in WN&&VN||HN[0]in WN&&HN||UN[0]in WN&&UN||[],KN={requestFullscreen:function(e){return e[GN[BN.requestFullscreen]]()},requestFullscreenFunction:function(e){return e[GN[BN.requestFullscreen]]},get exitFullscreen(){return WN[GN[BN.exitFullscreen]].bind(WN)},get fullscreenPseudoClass(){return`:`+GN[BN.fullscreen]},addEventListener:function(e,t,n){return WN.addEventListener(GN[BN[e]],t,n)},removeEventListener:function(e,t,n){return WN.removeEventListener(GN[BN[e]],t,n)},get fullscreenEnabled(){return!!WN[GN[BN.fullscreenEnabled]]},set fullscreenEnabled(e){},get fullscreenElement(){return WN[GN[BN.fullscreenElement]]},set fullscreenElement(e){},get onfullscreenchange(){return WN[(`on`+GN[BN.fullscreenchange]).toLowerCase()]},set onfullscreenchange(e){return WN[(`on`+GN[BN.fullscreenchange]).toLowerCase()]=e},get onfullscreenerror(){return WN[(`on`+GN[BN.fullscreenerror]).toLowerCase()]},set onfullscreenerror(e){return WN[(`on`+GN[BN.fullscreenerror]).toLowerCase()]=e}}}));function qN(){return XN??=new AudioContext}function Hwe(){let e=qN(),t=e.createGain();return t.connect(e.destination),ZN.push(t),t}function Uwe(e,t){let n=qN().createMediaElementSource(e);return t&&n.connect(t),QN.push(n),n}function Wwe(e){let t=ZN.indexOf(e);t!==-1&&(ZN.splice(t,1),e.disconnect(),JN())}function Gwe(e){let t=QN.indexOf(e);t!==-1&&(QN.splice(t,1),e.disconnect(),JN())}function JN(){XN&&ZN.length===0&&QN.length===0&&XN.close().then(()=>{XN=null})}function YN(e){return e?.type===`blur`||document.visibilityState===`hidden`?`hidden`:document.hasFocus()?`active`:`passive`}var XN,ZN,QN,$N,eP,tP,nP,rP,iP,aP=O((()=>{RA(),VA(),mj(),fN(),XN=null,ZN=[],QN=[],$N=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=Hwe(),this.#r&&this.#r.connect(this.#n)),this.#r||=Uwe(this.#e,this.#n),this.#n.gain.value=e,this.#t(e)}}removeGain(){this.#n&&(this.#r&&this.#r.connect(qN().destination),this.#a(),this.#t(null))}destroy(){this.#i(),this.#a()}#i(){if(this.#r)try{Gwe(this.#r)}catch{}finally{this.#r=null}}#a(){if(this.#n)try{Wwe(this.#n)}catch{}finally{this.#n=null}}},eP=[`focus`,`blur`,`visibilitychange`,`pageshow`,`pagehide`],tP=class{#e=ak(YN());#t=ak(document.visibilityState);#n;connect(){let e=new sA(window),t=this.#r.bind(this);for(let n of eP)e.add(n,t);aj&&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){aj&&window.clearTimeout(this.#n),(e.type!==`blur`||this.#e()===`active`)&&(this.#e.set(YN(e)),this.#t.set(document.visibilityState==`hidden`?`hidden`:`visible`))}},nP=class{#e;#t;#n=!1;#r=!1;#i=!1;#a=new BA(this.#f.bind(this));#o=new tP;#s;get#c(){return this.#e.media}constructor(e,t){this.#e=e,this.#t=t,this.#s=new sA(e.media),this.#p(),this.#o.connect(),J(this.#N.bind(this)),WO(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;!(aj&&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),(nj||aj&&QA(this.#t.$state.source()))&&this.#t.delegate.ready(this.#w(),e)}#w(){return{provider:q(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()&&PCe(this.#c.controls)&&(this.#c.controls=!1)}#N(){let e=this.#t.$state.paused(),t=this.#o.visibility===`hidden`;(e||t)&&gk(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)&&uN(this.#c.duration)>uN(this.#c.currentTime)&&(this.#v(this.#c.duration,e),this.#c.ended||this.#t.player.dispatch(new iA(`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)}},rP=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),gk(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[zA.add](n,e),t.enabled&&(n.selected=!0)}#i(e){let t=this.#t.audioTracks.getById(e.track.id);t&&this.#t.audioTracks[zA.remove](t,e)}#a(e){let t=this.#o();if(!t)return;let n=this.#t.audioTracks.getById(t.id);n&&this.#t.audioTracks[zA.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}}},iP=class{media;ctx;scope=ZO();currentSrc=null;audioGain;constructor(e,t){this.media=e,this.ctx=t,this.audioGain=new $N(e,e=>{this.ctx.notify(`audio-gain-change`,e)})}setup(){new nP(this,this.ctx),`audioTracks`in this.media&&new rP(this,this.ctx),WO(()=>{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){xk(this.media,`playsinline`,e)}async loadSource({src:e,type:t},n){this.media.preload=n||``,iwe(e)?(this.removeSource(),this.media.srcObject=e):(this.media.srcObject=null,fk(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`);xk(r,`src`,this.#e(e.src)),xk(r,`type`,e.type===`?`?t:e.type),xk(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}}})),oP,sP,cP=O((()=>{RA(),oP=class{#e;#t;#n;#r=ak(!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)}),J(this.#a.bind(this)))}#a(){if(!this.#r())return;let e=[`connecting`,`connect`,`disconnect`],t=this.#o.bind(this);t(),gk(this.#e,`playing`,t);let n=new sA(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}},sP=class extends oP{type=`airplay`;get canPrompt(){return`WebKitPlaybackTargetAvailabilityEvent`in window}}})),Kwe=A({AudioProvider:()=>lP}),lP,qwe=O((()=>{RA(),aP(),cP(),lP=class extends iP{$$PROVIDER_TYPE=`AUDIO`;get type(){return`audio`}airPlay;constructor(e,t){super(e,t),HO(()=>{this.airPlay=new sP(this.media,t)},this.scope)}setup(){super.setup(),this.type===`audio`&&this.ctx.notify(`provider-setup`,this)}get audio(){return this.media}}}));function Jwe(e,t){return Array.from(e.children).find(e=>e.track===t)}var uP,dP,fP,pP,mP,hP,gP=O((()=>{RA(),mj(),aN(),aP(),cP(),uP=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t,e.textTracks.onaddtrack=this.#n.bind(this),WO(this.#r.bind(this))}#n(e){let t=e.track;if(!t||Jwe(this.#e,t))return;let n=new rN({id:t.id,kind:t.kind,label:t.label??``,language:t.language,type:`vtt`});n[nN.native]={track:t},n[nN.readyState]=2,n[nN.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[nN.native]?.track;t?.oncuechange&&(t.oncuechange=null)}}},dP=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t,new sA(e).add(`enterpictureinpicture`,this.#n.bind(this)).add(`leavepictureinpicture`,this.#r.bind(this))}get active(){return document.pictureInPictureElement===this.#e}get supported(){return KA(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)}},fP=class{#e;#t;#n=`inline`;get mode(){return this.#n}constructor(e,t){this.#e=e,this.#t=t,gk(e,`webkitpresentationmodechanged`,this.#r.bind(this))}get supported(){return qA(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 iA(`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)})}},pP=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`)}},mP=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`)}},hP=class extends iP{$$PROVIDER_TYPE=`VIDEO`;get type(){return`video`}airPlay;fullscreen;pictureInPicture;constructor(e,t){super(e,t),HO(()=>{if(this.airPlay=new sP(e,t),qA(e)){let n=new fP(e,t);this.fullscreen=new pP(n),this.pictureInPicture=new mP(n)}else KA(e)&&(this.pictureInPicture=new dP(e,t))},this.scope)}setup(){super.setup(),GA(this.video)&&new uP(this.video,this.ctx),this.ctx.textRenderers.attachVideo(this.video),WO(()=>{this.ctx.textRenderers.attachVideo(null)}),this.type===`video`&&this.ctx.notify(`provider-setup`,this)}get video(){return this.media}}})),Ywe=A({VideoProvider:()=>hP}),Xwe=O((()=>{gP()})),Zwe=A({HLSProvider:()=>xP});async function Qwe(e,t={}){if(!lk(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 $we(e,t={}){if(fk(e)){t.onLoadStart?.();try{if(await bj(e),!mk(window.Hls))throw Error(``);let n=window.Hls;return t.onLoaded?.(n),n}catch(e){t.onLoadError?.(e)}}}var _P,vP,yP,bP,xP,eTe=O((()=>{RA(),VA(),mj(),Cj(),aN(),jN(),gP(),PN(),_P=e=>Ak(e),vP=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=q(t).includes(`live`),r=q(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[AN.enableAuto]=this.#_.bind(this),gk(this.#t.qualities,`change`,this.#v.bind(this)),gk(this.#t.audioTracks,`change`,this.#y.bind(this)),this.#r=J(this.#o.bind(this))}#a(e,t){return new iA(_P(e),{detail:t})}#o(){if(!this.#t.$state.live())return;let e=new BA(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 rN({id:`hls-${a.kind}-${t}`,src:o?.url,label:a.label,language:o?.lang,kind:a.kind,default:a.default});s[nN.readyState]=2,s[nN.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[zA.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[zA.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[AN.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[zA.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[zA.add](e,c)}r.dispatchEvent(new iA(`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,ij&&(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){fk(e.src)&&this.#n?.loadSource(e.src)}destroy(){this.#n?.destroy(),this.#n=null,this.#r?.(),this.#r=null}},yP=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 $we(this.#e,e);return lk(t)&&!fk(this.#e)&&(t=await Qwe(this.#e,e)),t?t.isSupported()?t:(this.#t.player.dispatch(new iA(`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 iA(`hls-lib-load-start`))}#a(e){this.#t.player.dispatch(new iA(`hls-lib-loaded`,{detail:e})),this.#n(e)}#o(e){let t=MN(e);this.#t.player.dispatch(new iA(`hls-lib-load-error`,{detail:t})),this.#t.notify(`error`,{message:t.message,code:4,error:t})}},bP=`https://cdn.jsdelivr.net`,xP=class extends hP{$$PROVIDER_TYPE=`HLS`;#e=null;#t=new vP(this.video,this.ctx);get ctor(){return this.#e}get instance(){return this.#t.instance}static supported=JA();get type(){return`hls`}get canLiveSync(){return!0}#n=`${bP}/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(){fk(this.#n)&&yj(this.#n)}setup(){super.setup(),new yP(this.#n,this.ctx,e=>{this.#e=e,this.#t.setup(e),this.ctx.notify(`provider-setup`,this);let t=q(this.ctx.$state.source);t&&this.loadSource(t)})}async loadSource(e,t){if(!fk(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 SP(e){try{return new Intl.DisplayNames(navigator.languages,{type:`language`}).of(e)??null}catch{return null}}async function tTe(e,t={}){if(!lk(e)){if(t.onLoadStart?.(),rTe(e))return t.onLoaded?.(e),e;if(CP(e)){let n=e.MediaPlayer;return t.onLoaded?.(n),n}try{let n=(await e())?.default;if(CP(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 nTe(e,t={}){if(fk(e)){t.onLoadStart?.();try{if(await bj(e),!mk(window.dashjs.MediaPlayer))throw Error(``);let n=window.dashjs.MediaPlayer;return t.onLoaded?.(n),n}catch(e){t.onLoadError?.(e)}}}function rTe(e){return e&&e.prototype&&e.prototype!==Function}function CP(e){return e&&`MediaPlayer`in e}var wP,TP,EP,DP,OP,iTe=O((()=>{RA(),VA(),mj(),Cj(),aN(),jN(),gP(),PN(),wP=e=>`dash-${Ak(e)}`,TP=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[AN.enableAuto]=this.#C.bind(this),gk(this.#t.qualities,`change`,this.#T.bind(this)),gk(this.#t.audioTracks,`change`,this.#E.bind(this)),this.#i=J(this.#o.bind(this))}#a(e){return new iA(wP(e.type),{detail:e})}#o(){if(!this.#t.$state.live())return;let e=new BA(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?.[nN.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 rN({id:`dash-${i.kind}-${e}`,label:i?.label??i.labels.find(e=>e.text)?.text??(i?.lang&&SP(i.lang))??i?.lang??void 0,language:i.lang??void 0,kind:i.kind,default:i.defaultTrack});o[nN.native]={managed:!0,track:a},o[nN.readyState]=2,o[nN.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[zA.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[zA.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[AN.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&&WA(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&&UA(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[zA.add](n,r)}),dk(s.index))){let e=this.#t.qualities[s.index];e&&this.#t.qualities[zA.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&&SP(e.lang))??e.lang??``,language:e.lang??``,kind:`main`,mimeType:e.mimeType,codec:e.codec,index:t};this.#t.audioTracks[zA.add](i,r)}),i.dispatchEvent(new iA(`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`),ij&&(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(),fk(e.src)&&this.#n?.attachSource(e.src)}destroy(){this.#D(),this.#n?.destroy(),this.#n=null,this.#i?.(),this.#i=null}},EP=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 nTe(this.#e,e);return lk(t)&&!fk(this.#e)&&(t=await tTe(this.#e,e)),t?window.dashjs.supportsMediaSource()?t:(this.#t.player.dispatch(new iA(`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 iA(`dash-lib-load-start`))}#a(e){this.#t.player.dispatch(new iA(`dash-lib-loaded`,{detail:e})),this.#n(e)}#o(e){let t=MN(e);this.#t.player.dispatch(new iA(`dash-lib-load-error`,{detail:t})),this.#t.notify(`error`,{message:t.message,code:4,error:t})}},DP=`https://cdn.jsdelivr.net`,OP=class extends hP{$$PROVIDER_TYPE=`DASH`;#e=null;#t=new TP(this.video,this.ctx);get ctor(){return this.#e}get instance(){return this.#t.instance}static supported=YA();get type(){return`dash`}get canLiveSync(){return!0}#n=`${DP}/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(){fk(this.#n)&&yj(this.#n)}setup(){super.setup(),new EP(this.#n,this.ctx,e=>{this.#e=e,this.#t.setup(e),this.ctx.notify(`provider-setup`,this);let t=q(this.ctx.$state.source);t&&this.loadSource(t)})}async loadSource(e,t){if(!fk(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()}}})),aTe=A({DASHProvider:()=>OP}),oTe=O((()=>{iTe()})),kP,AP=O((()=>{RA(),Cj(),kP=class{#e;src=ak(``);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(){gk(window,`message`,this.#n.bind(this)),gk(this.#e,`load`,this.onLoad.bind(this)),J(this.#t.bind(this))}#t(){let e=this.src();if(!e.length){this.#e.setAttribute(`src`,``);return}let t=q(()=>this.buildParams());this.#e.setAttribute(`src`,swe(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)&&(!fk(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)}}}})),jP,MP,NP=O((()=>{jP=Object.defineProperty,MP=(e,t)=>{let n={};for(var r in e)jP(n,r,{get:e[r],enumerable:!0});return t||jP(n,Symbol.toStringTag,{value:`Module`}),n}})),sTe=A({getVimeoVideoInfo:()=>FP,resolveVimeoVideoId:()=>PP,utils_exports:()=>IP});function PP(e){let t=e.match(LP);return{videoId:t?.[1],hash:t?.[2]}}async function FP(e,t,n){if(RP.has(e))return RP.get(e);if(zP.has(e))return zP.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:cTe(t),pro:t.account_type!==`basic`};return RP.set(e,n),n}).finally(()=>zP.delete(e));return zP.set(e,i),i}function cTe(e){let t=e?.thumbnail_url??``,n=t.match(/vimeocdn\.com\/video\/([^_/?#]+)_/)?.[1];if(!n)return t;let r=lTe(e);return r?`https://i.vimeocdn.com/video/${n}_${r.width}x${r.height}.webp`:t}function lTe(e){let t=e.width||e.thumbnail_width,n=e.height||e.thumbnail_height;return!t||!n?null:t>n?{width:BP,height:Math.round(BP*n/t)}:{width:Math.round(BP*t/n),height:BP}}var IP,LP,RP,zP,BP,VP=O((()=>{NP(),IP=MP({getVimeoVideoInfo:()=>FP,resolveVimeoVideoId:()=>PP}),LP=/(?:https:\/\/)?(?:player\.)?vimeo(?:\.com)?\/(?:video\/)?(\d+)(?:(?:\?hash=|\?h=|\/)(.*))?/,RP=new Map,zP=new Map,BP=1920})),uTe=A({VimeoProvider:()=>UP}),HP,UP,dTe=O((()=>{RA(),VA(),vj(),Cj(),aN(),jN(),AP(),VP(),HP=[`bufferend`,`bufferstart`,`durationchange`,`ended`,`enterpictureinpicture`,`error`,`fullscreenchange`,`leavepictureinpicture`,`loaded`,`playProgress`,`loadProgress`,`pause`,`play`,`playbackratechange`,`qualitychange`,`seeked`,`seeking`,`timeupdate`,`volumechange`,`waiting`],UP=class extends kP{$$PROVIDER_TYPE=`VIMEO`;scope=ZO();fullscreen;#e;#t=ak(``);#n=ak(!1);#r=null;#i=null;#a=!1;#o=new _j(0,0);#s=new BA(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(){yj(this.getOrigin())}setup(){super.setup(),J(this.#f.bind(this)),J(this.#p.bind(this)),J(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`,q(this.#e.$state.muted))}setPlaybackRate(e){this.#L(`setPlaybackRate`,e)}async loadSource(e){if(!fk(e.src)){this.#i=null,this.#r=null,this.#t.set(``);return}let{videoId:t,hash:n}=PP(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=Nk(),n=new AbortController;return this.#d=t,FP(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[zA.setReadonly](!e),e)return gk(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 _j(0,e);let i={buffered:new _j(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`:hk(t)&&t.length&&this.#E(t[t.length-1][1],n);break;case`setMuted`:case`getMuted`:this.#A(q(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 HP)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 _j(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 rN({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[AN.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[zA.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[AN.setAuto](n,t),this.#e.qualities[zA.select](void 0,!0,t)):this.#e.qualities[zA.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,q(this.#e.$state.muted),n);break;case`durationchange`:this.#o=new _j(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=Nk(),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 _j(0,0),this.#d=null,this.#c=null,this.#n.set(!1),this.#M()}#z(e){return this.#u.get(e)?.shift()}}})),fTe=A({resolveYouTubeVideoId:()=>WP,utils_exports:()=>GP});function WP(e){return e.match(KP)?.[1]}async function pTe(e,t){if(qP.has(e))return qP.get(e);if(JP.has(e))return JP.get(e);let n=new Promise(async n=>{for(let r of[`maxresdefault`,`sddefault`,`hqdefault`])for(let i of[!0,!1]){let a=mTe(e,r,i);if((await fetch(a,{mode:`no-cors`,signal:t.signal})).status<400){qP.set(e,a),n(a);return}}}).catch(()=>``).finally(()=>JP.delete(e));return JP.set(e,n),n}function mTe(e,t,n){return`https://i.ytimg.com/${n?`vi_webp`:`vi`}/${e}/${t}.${n?`webp`:`jpg`}`}var GP,KP,qP,JP,YP=O((()=>{NP(),GP=MP({findYouTubePoster:()=>pTe,resolveYouTubeVideoId:()=>WP}),KP=/(?:youtu\.be|youtube|youtube\.com|youtube-nocookie\.com)(?:\/shorts)?\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|)((?:\w|-){11})/,qP=new Map,JP=new Map})),hTe=A({YouTubeProvider:()=>ZP}),XP,ZP,gTe=O((()=>{RA(),vj(),Cj(),AP(),YP(),XP={Unstarted:-1,Ended:0,Playing:1,Paused:2,Buffering:3,Cued:5},ZP=class extends kP{$$PROVIDER_TYPE=`YOUTUBE`;scope=ZO();#e;#t=ak(``);#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(){yj(this.getOrigin())}setup(){super.setup(),J(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(!fk(e.src)){this.#r=null,this.#t.set(``);return}let t=WP(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=Nk(),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===XP.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 _j(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===XP.Playing,a=e===XP.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 XP.Cued:this.#l(t);break;case XP.Playing:this.#e.notify(`playing`,void 0,t);break;case XP.Paused:this.#u(t);break;case XP.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(uk(e.videoData)&&e.videoData.title!==n()&&this.#e.notify(`title-change`,e.videoData.title,t),dk(e.duration)&&e.duration!==r()){if(dk(e.videoLoadedFraction)){let n=e.progressState?.loaded??e.videoLoadedFraction*e.duration,r=new _j(0,e.duration);this.#f(n,r,t)}this.#e.notify(`duration-change`,e.duration,t)}if(dk(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 _j(i,a),t),s!==r()&&this.#e.notify(`duration-change`,s,t)}if(dk(e.volume)&&pk(e.muted)&&!this.#a){let n={muted:e.muted,volume:e.volume/100};this.#e.notify(`volume-change`,n,t)}dk(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 _Te(){return`https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1`}function vTe(){return!!window.cast?.framework}function yTe(){return!!window.chrome?.cast?.isAvailable}function QP(){return $P().getCastState()===cast.framework.CastState.CONNECTED}function $P(){return window.cast.framework.CastContext.getInstance()}function eF(){return $P().getCurrentSession()}function tF(){return eF()?.getSessionObj().media[0]}function nF(e){return tF()?.media.contentId===e?.src}function bTe(){return{language:`en-US`,autoJoinPolicy:chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED,receiverApplicationId:chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,resumeSavedSession:!0,androidReceiverCompatible:!0}}function rF(e){return`Google Cast Error Code: ${e}`}function xTe(e,t){return gk($P(),e,t)}var iF=O((()=>{RA()})),STe=A({GoogleCastProvider:()=>sF}),aF,oF,sF,CTe=O((()=>{RA(),VA(),vj(),iF(),aF=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}},oF=class{#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}setup(){let e=this.syncRemoteActiveIds.bind(this);gk(this.#t.audioTracks,`change`,e),gk(this.#t.textTracks,`mode-change`,e),J(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)){zO(()=>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[zA.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=tF();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()}},sF=class{$$PROVIDER_TYPE=`GOOGLE_CAST`;scope=ZO();#e;#t;#n;#r=null;#i=`disconnected`;#a=0;#o=0;#s=new _j(0,0);#c=new BA(this.#v.bind(this));#l;#u=null;#d=!1;constructor(e,t){this.#e=e,this.#t=t,this.#n=new oF(e,t,this.#I.bind(this))}get type(){return`google-cast`}get currentSrc(){return this.#r}get player(){return this.#e}get cast(){return $P()}get session(){return eF()}get media(){return tF()}get hasActiveSession(){return nF(this.#r)}setup(){this.#f(),this.#p(),this.#n.setup(),this.#t.notify(`provider-setup`,this)}#f(){xTe(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 Mk(t))this.#e.controller.addEventListener(e,n);WO(()=>{for(let e of Mk(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),nF(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(rF(n)));return}this.#r=e}destroy(){this.#m(),this.#g()}#m(){this.#u||(this.#o=0,this.#s=new _j(0,0)),this.#c.stop(),this.#a=0,this.#u=null}#h(){let e=new iA(`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=q(this.#t.$state.source);Promise.resolve().then(()=>{if(t!==q(this.#t.$state.source)||!this.#e.isMediaLoaded)return;this.#m();let n=this.#e.duration;this.#s=new _j(0,n);let r={provider:this,duration:n,buffered:new _j(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 _j(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 _j(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 _j(this.#e.liveSeekableRange.start,this.#e.liveSeekableRange.end):this.#s}#M(e){return e instanceof Event?e:new iA(e.type,{detail:e})}#N(e){let{streamType:t,title:n,poster:r}=this.#t.$state;return new aF(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=q(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=>{})}}})),wTe=A({GoogleCastLoader:()=>cF}),cF,TTe=O((()=>{RA(),mj(),Cj(),iF(),cF=class{name=`google-cast`;target;#e;get cast(){return $P()}mediaType(){return`video`}canPlay(e){return ij&&!nj&&ej(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(q(e.$props.googleCast)),e.$state.remotePlaybackInfo.set({deviceName:eF()?.getCastDevice().friendlyName}),QP()&&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,QP()?`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(()=>(CTe(),STe)))).GoogleCastProvider(this.#e,e)}async#t(e){if(vTe())return;let t=e.player.createEvent(`google-cast-load-start`);e.player.dispatch(t),await bj(_Te()),await customElements.whenDefined(`google-cast-launcher`);let n=e.player.createEvent(`google-cast-loaded`,{trigger:t});if(e.player.dispatch(n),!yTe())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(),rF(t))}#r(e){this.cast?.setOptions({...bTe(),...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 lF(e){if(KN.fullscreenElement===e)return!0;try{return e.matches(KN.fullscreenPseudoClass)}catch{return!1}}function uF(){if(!xF)throw Error(`[vidstack] no fullscreen API`)}function dF(e){return!fk(e)&&`width`in e&&`height`in e&&dk(e.width)&&dk(e.height)}function fF(e,t=!1){let n=t?TF:EF;wF.reset(e,e=>n.has(e)),BO()}function pF(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 ETe(e){return e?.$$PROVIDER_TYPE===`VIDEO`}function DTe(e){return e instanceof HTMLAudioElement}function OTe(e){return e instanceof HTMLVideoElement}function kTe(e){return DTe(e)||OTe(e)}function ATe(e){return e.replace(/Shift\+(\d)/g,(e,t)=>HF[t-1])}function jTe(e){for(let t of RF)if(e[t.toLowerCase()+`Key`])return!0;return!1}function mF(e,t){if(!(e&&t))throw Error(`[vidstack] media not ready`)}function hF(e,t){if(!t?.supported)throw Error(`[vidstack] no fullscreen support`)}function MTe(e){if(!(!Bwe()||!e))throw Error(`[vidstack] autoplay blocked`)}function NTe(e,t){return fetch(e,t).then(e=>e.text()).then(e=>/type="static"/.test(e)?`on-demand`:`live`)}function gF(e,t){return fetch(e,t).then(e=>e.text()).then(n=>{let r=PTe(n);if(r)return gF(/^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`&&FTe(n)>=10&&(/#EXT-X-DVR-ENABLED:\s*true/.test(n)||n.includes(`#EXT-X-DISCONTINUITY`))?`live:dvr`:i})}function PTe(e){let t=e.match(/#EXT-X-STREAM-INF:[^\n]+(\n[^\n]+)*/g);return t?t[0].split(`
1414
1414
  `)[1].trim():null}function FTe(e){let t=e.split(`
1415
- `);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 _F(e){return(hk(e)?e:[e]).map(e=>fk(e)?{src:e,type:vF(e)}:{...e,type:vF(e.src,e.type)})}function vF(e,t){return fk(t)&&t.length?t:fk(e)&&fI.has(e)?fI.get(e):!t&&QA({src:e,type:``})?`application/x-mpegurl`:!t&&$A({src:e,type:``})?`application/dash+xml`:!fk(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 yF(e,t){return e?.src===t?.src&&e?.type===t?.type}var bF,xF,SF,CF,wF,TF,EF,DF,OF,kF,AF,jF,MF,NF,PF,FF,IF,LF,RF,zF,BF,VF,HF,UF,WF,GF,KF,qF,JF,YF,XF,ZF,QF,$F,eI,tI,nI,rI,iI,aI,oI,sI,cI,lI,uI,dI,fI,pI,mI,hI,gI,_I=O((()=>{RA(),VA(),mj(),vj(),Cj(),aN(),cN(),fN(),kN(),jN(),PN(),zN(),Vwe(),bF=class extends oA{items=[];[zA.readonly]=!1;get length(){return this.items.length}get readonly(){return this[zA.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()}[zA.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 iA(`add`,{detail:e,trigger:t})))}[zA.remove](e,t){let n=this.items.indexOf(e);n>=0&&(this[zA.onRemove]?.(e,t),this.items.splice(n,1),this.dispatchEvent(new iA(`remove`,{detail:e,trigger:t})))}[zA.reset](e){for(let t of[...this.items])this[zA.remove](t,e);this.items=[],this[zA.setReadonly](!1,e),this[zA.onReset]?.()}[zA.setReadonly](e,t){this[zA.readonly]!==e&&(this[zA.readonly]=e,this.dispatchEvent(new iA(`readonly-change`,{detail:e,trigger:t})))}},xF=KN.fullscreenEnabled,SF=class extends mA{#e=!1;#t=!1;get active(){return this.#t}get supported(){return xF}onConnect(){new sA(KN).add(`fullscreenchange`,this.#r.bind(this)).add(`fullscreenerror`,this.#i.bind(this)),WO(this.#n.bind(this))}#n(){xF&&this.exit().catch(sk)}#r(e){let t=lF(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||lF(this.el)?void 0:(uF(),KN.requestFullscreen(this.el))}catch(e){throw this.#e=!1,e}}async exit(){if(!(!this.el||!lF(this.el)))return uF(),KN.exitFullscreen()}},CF=class e extends mA{#e=ak(this.#o());#t=ak(!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=HA();get supported(){return e.supported}onConnect(){if(this.supported)gk(screen.orientation,`change`,this.#i.bind(this));else{let e=window.matchMedia(`(orientation: landscape)`);e.onchange=this.#i.bind(this),WO(()=>e.onchange=null)}WO(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:q(this.#e),lock:this.#n},trigger:e})}async lock(e){q(this.#t)||this.#n===e||(this.#a(),await screen.orientation.lock(e),this.#t.set(!0),this.#n=e)}async unlock(){q(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`}},wF=new gA({artist:``,artwork:null,audioTrack:null,audioTracks:[],autoPlay:!1,autoPlayError:null,audioGain:null,buffered:new _j,canLoad:!1,canLoadPoster:!1,canFullscreen:!1,canOrientScreen:HA(),canPictureInPicture:!1,canPlay:!1,clipStartTime:0,clipEndTime:0,controls:!1,get iOSControls(){return rj&&this.mediaType===`video`&&(!this.playsInline||!KN.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 _j,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 _j,seeking:!1,source:{src:``,type:``},sources:[],started:!1,textTracks:[],textTrack:null,get hasCaptions(){return this.textTracks.filter(tN).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=hj(this.buffered)??0;return Math.max(e,this.clipStartTime)},get bufferedEnd(){let e=gj(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=hj(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?gj(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}),TF=new Set([`autoPlayError`,`autoPlaying`,`buffered`,`canPlay`,`error`,`paused`,`played`,`playing`,`seekable`,`seeking`,`waiting`]),EF=new Set([...TF,`ended`,`inferredPoster`,`inferredStreamType`,`inferredTitle`,`intrinsicDuration`,`inferredLiveDVRWindow`,`liveSyncPosition`,`realCurrentTime`,`savedState`,`started`,`userBehindLiveEdge`]),DF=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 iA(`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]||!tN(n[r]))&&(r=-1),r===-1&&(r=n.findIndex(e=>tN(e)&&e.default)),r===-1&&(r=n.findIndex(e=>tN(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 iA(e,{bubbles:!0,composed:!0,cancelable:!0,detail:n,trigger:t}),i=t?.target||null;i&&i instanceof hA&&(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)}},OF=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=vA(this.saveTime.bind(this),1e3);saveTime(){if(!this.mediaId)return;let e=(this.#e.time??0).toString();localStorage.setItem(this.mediaId,e)}},kF=Symbol(0),AF=class extends bF{get selected(){return this.items.find(e=>e.selected)??null}get selectedIndex(){return this.items.findIndex(e=>e.selected)}[zA.onRemove](e,t){this[zA.select](e,!1,t)}[zA.add](e,t){e[kF]=!1,Object.defineProperty(e,"selected",{get(){return this[kF]},set:t=>{this.readonly||(this[zA.onUserSelect]?.(),this[zA.select](e,t))}}),super[zA.add](e,t)}[zA.select](e,t,n){if(t===e?.[kF])return;let r=this.selected;e&&(e[kF]=t),(t?r!==e:r===e)&&(r&&(r[kF]=!1),this.dispatchEvent(new iA(`change`,{detail:{prev:r,current:this.selected},trigger:n})))}},jF=class extends AF{},MF=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[nN.native]?.remove?.(),e[nN.native]=null,this.#r.delete(e)}changeTrack(e){let t=e?.[nN.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[nN.native]??=this.#a(e);EN(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[nN.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)}}},NF=class{#e=null;#t;#n=[];#r;#i=!1;#a=null;#o=null;constructor(e){this.#r=e;let t=e.textTracks;this.#t=t,J(this.#s.bind(this)),WO(this.#p.bind(this)),new sA(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),zO(this.#f.bind(this))}remove(e){e.detach(),this.#n.splice(this.#n.indexOf(e),1),zO(this.#f.bind(this))}attachVideo(e){requestAnimationFrame(()=>{if(this.#e=e,e){this.#a=new MF,this.#a.attach(e);for(let e of this.#t)this.#c(e)}this.#f()})}#c(e){tN(e)&&this.#a?.addTrack(e)}#l(e){tN(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?.[nN.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}},PF=class extends bF{#e=!1;#t={};#n=null;#r=null;[nN.crossOrigin];constructor(){super()}get selected(){return this.items.find(e=>e.mode===`showing`&&tN(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 rN?e:new rN(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[zA.add](n,t),n[nN.crossOrigin]=this[nN.crossOrigin],this.#e&&n[nN.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[nN.onModeChange]=null,e.removeEventListener(`mode-change`,this.#o),this[zA.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))}[nN.canLoad](){if(!this.#e){for(let e of this.items)e[nN.canLoad]();this.#e=!0,this.#i()}}#i=yA(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=hk(t)?this.#t[t.find(e=>this.#t[e])||``]:this.#t[t],a=r??i,o=a&&tN(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&&tN(t)&&t!==this.#a&&this.#c(t),t.mode===`showing`){let e=tN(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 iA(`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}},FF=class extends AF{#e=!1;switch=`current`;get auto(){return this.#e||this.readonly}[AN.enableAuto];[zA.onUserSelect](){this[AN.setAuto](!1)}[zA.onReset](e){this[AN.enableAuto]=void 0,this[AN.setAuto](!1,e)}autoSelect(e){this.readonly||this.#e||!this[AN.enableAuto]||(this[AN.enableAuto]?.(e),this[AN.setAuto](!0,e))}getBySrc(e){return this.items.find(t=>t.src===e)}[AN.setAuto](e,t){this.#e!==e&&(this.#e=e,this.dispatchEvent(new iA(`auto-change`,{detail:e,trigger:t})))}},IF=class extends mA{},LF={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:`<`},RF=new Set([`Shift`,`Alt`,`Meta`,`Ctrl`]),zF=`button, [role="button"]`,BF=`input, textarea, select, [contenteditable], [role^="menuitem"], [role="timer"]`,VF=class extends IF{#e;constructor(e){super(),this.#e=e}onConnect(){J(this.#t.bind(this))}#t(){let{keyDisabled:e,keyTarget:t}=this.$props;if(e())return;let n=t()===`player`?this.el:document,r=ak(!1);n===this.el?new sA(this.el).add(`focusin`,()=>r.set(!0)).add(`focusout`,e=>{this.el.contains(e.target)||r.set(!1)}):(q(r)||r.set(document.querySelector(`[data-media-player]`)===this.el),gk(document,`focusin`,e=>{let t=e.composedPath().find(e=>e instanceof Element&&e.localName===`media-player`);t!==void 0&&r.set(this.el===t)})),J(()=>{r()&&new sA(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(BF))return;let{method:n,value:r}=this.#a(e);if(!fk(r)&&!hk(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||RF.has(e.key))return;let t=document.activeElement;if(t?.matches(BF)||bk(e)&&t?.matches(zF))return;let{method:n,value:r}=this.#a(e),i=!e.metaKey&&/^[0-9]$/.test(e.key);if(!fk(r)&&!hk(r)&&!i){r?.onKeyDown?.({event:e,player:this.#e.player,remote:this.#e.remote}),r?.callback?.(e,this.#e.remote);return}if(!n&&i&&!jTe(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){kTe(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=hk(r)?r.join(` `):fk(r)?r:r?.keys;return((hk(i)?i:i?.split(` `))?.map(e=>ATe(e).replace(/Control/g,`Ctrl`).split(`+`)))?.some(t=>{let n=new Set(t.filter(e=>RF.has(e)));`<>`.includes(e.key)&&n.add(`Shift`);for(let t of RF){let r=t.toLowerCase()+`Key`;if(!n.has(t)&&e[r])return!1}return t.every(t=>RF.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))}},HF=[`!`,`@`,`#`,`$`,`%`,`^`,`&`,`*`,`(`,`)`],UF=class extends IF{#e=-2;#t=!1;#n=ak(!1);#r=ak(!1);#i=null;#a=ak(!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(){J(this.#o.bind(this))}#o(){let{viewType:e}=this.$state;if(!this.el||!this.#a())return;if(e()===`audio`){this.show();return}J(this.#s.bind(this)),J(this.#c.bind(this));let t=this.#l.bind(this),n=this.#u.bind(this),r=this.#d.bind(this);new sA(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 sA(this.el),i=this.hideOnMouseLeave;(!i||!this.#r())&&J(()=>{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);J(()=>{if(!this.el)return;let e=this.$state.pointer()===`coarse`,t=new sA(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||bN(e)||(yk(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}))}},WF=class{name=`audio`;target;canPlay(e){return XA(e)?!fk(e.src)||e.type===`?`||UA(this.target,e.type):!1}mediaType(){return`audio`}async load(e){return new(await(Promise.resolve().then(()=>(qwe(),Kwe)))).AudioProvider(this.target,e)}},GF=class{name=`video`;target;canPlay(e){return ZA(e)?!fk(e.src)||e.type===`?`||WA(this.target,e.type):!1}mediaType(){return`video`}async load(e){return new(await(Promise.resolve().then(()=>(Xwe(),Ywe)))).VideoProvider(this.target,e)}},KF=class e extends GF{static supported=JA();name=`hls`;canPlay(t){return e.supported&&QA(t)}async load(e){return new(await(Promise.resolve().then(()=>(eTe(),Zwe)))).HLSProvider(this.target,e)}},qF=class e extends GF{static supported=YA();name=`dash`;canPlay(t){return e.supported&&$A(t)}async load(e){return new(await(Promise.resolve().then(()=>(oTe(),aTe)))).DASHProvider(this.target,e)}},JF=class{name=`vimeo`;target;preconnect(){for(let e of[`https://i.vimeocdn.com`,`https://f.vimeocdn.com`,`https://fresnel.vimeocdn.com`])yj(e)}canPlay(e){return fk(e.src)&&e.type===`video/vimeo`}mediaType(){return`video`}async load(e){return new(await(Promise.resolve().then(()=>(dTe(),uTe)))).VimeoProvider(this.target,e)}async loadPoster(e,t,n){let{resolveVimeoVideoId:r,getVimeoVideoInfo:i}=await Promise.resolve().then(()=>(VP(),sTe)).then(e=>e.utils_exports);if(!fk(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}},YF=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`])yj(e)}canPlay(e){return fk(e.src)&&e.type===`video/youtube`}mediaType(){return`video`}async load(e){return new(await(Promise.resolve().then(()=>(gTe(),hTe)))).YouTubeProvider(this.target,e)}async loadPoster(e,t,n){let{findYouTubePoster:r,resolveYouTubeVideoId:i}=await Promise.resolve().then(()=>(YP(),fTe)).then(e=>e.utils_exports),a=fk(e.src)&&i(e.src);return a?r(a,n):null}},XF=Symbol(0),ZF=`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(`.`),QF={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:LF,storage:null},$F=class extends IF{#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`)KCe(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=WO(()=>n.disconnect())}}},eI=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}notify(e,...t){this.#e(new iA(e,{detail:t?.[0],trigger:t?.[1]}))}async ready(e,t){return zO(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),BO();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 ee=await h?.getVideoQuality();if(ee&&g.length){let e=null,t=1/0;for(let n of g){let r=Math.abs(ee.width-n.width)+Math.abs(ee.height-n.height)+(ee.bitrate?Math.abs(ee.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 iA(`auto-play-attempt`,{trigger:e});try{await t.play(i)}catch{}}},tI=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()}},nI=class{#e=!1;#t=Nk();#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=Nk()}},rI=class extends IF{#e;#t;#n;controls;#r;#i;#a;#o=new nI;constructor(e,t,n){super(),this.#e=e,this.#t=t,this.#n=n,this.#a=n.$provider,this.controls=new UF,this.#r=new SF,this.#i=new CF}onAttach(){this.listen(`fullscreen-change`,this.#x.bind(this))}onConnect(e){let t=Object.getOwnPropertyNames(Object.getPrototypeOf(this)),n=new sA(e),r=this.#l.bind(this);for(let e of t)e.startsWith(`media-`)&&n.add(e,r);this.#s(),J(this.#c.bind(this)),J(this.#m.bind(this)),J(this.#h.bind(this)),J(this.#g.bind(this)),J(this.#_.bind(this)),J(this.#v.bind(this)),J(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]&&(q(this.#a)?this[e.type](e):this.#o.enqueue(e.type,()=>{q(this.#a)&&this[e.type](e)}))}async play(e){let{canPlay:t,paused:n,autoPlaying:r}=this.$state;if(this.#u(e)||!q(n))return;e&&this.#t.queue.enqueue(`media-play-request`,e);let i=q(r);try{let e=q(this.#a);return mF(e,q(t)),MTe(i),await e.play()}catch(t){let n=this.createEvent(`play-fail`,{detail:MN(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(!q(n)){e&&this.#t.queue.enqueue(`media-pause-request`,e);try{let e=q(this.#a);return mF(e,q(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),q(()=>!n()||i()&&r()))return;let c=q(this.#a);mF(c,q(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(hF(e,n),!n.active)return q(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(hF(e,n),n.active){t&&this.#t.queue.enqueue(`media-exit-fullscreen-request`,t);try{let e=await n.exit();return this.#d&&q(this.$state.canPictureInPicture)&&await this.enterPictureInPicture(),e}finally{this.#d=!1}}}#f(e){let t=q(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=ij&&!nj&&ej(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(!q(t)){let e=Error(`Cast not available.`);throw e.code=`CAST_NOT_AVAILABLE`,e}if(yj(`https://www.gstatic.com`),!this.#b){let e=await Promise.resolve().then(()=>(TTe(),wTe));this.#b=new e.GoogleCastLoader}await this.#b.prompt(this.#n),e&&this.#t.queue.enqueue(`media-google-cast-request`,e);let n=q(this.$state.remotePlaybackState)!==`disconnected`;n&&this.$state.savedState.set({paused:q(this.$state.paused),currentTime:q(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=q(this.$props.fullscreenOrientation),n=e.detail;if(!(lk(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:MN(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:MN(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=pF(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))}},iI=class{seeking=!1;looping=!1;replaying=!1;queue=new tI},aI=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`]),oI=class extends IF{#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 sA(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){J(this.#D.bind(this)),this.#p(),this.#m(),this.#h(),this.#l(),WO(this.#u.bind(this))}onDestroy(){let{audioTracks:e,qualities:t,textTracks:n}=this.#t;e[zA.reset](),t[zA.reset](),n[zA.reset](),this.#T()}handle(e){if(!this.scope)return;let t=e.type;zO(()=>this[e.type]?.(e)),aI.has(t)&&this.#n.set(t,e),this.dispatch(e)}#c=!1;#l(){this.#c&&=(requestAnimationFrame(()=>{this.scope&&this.#t.remote.play(new iA(`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 sA(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 sA(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 sA(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=J(()=>{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[zA.select](a,!0,new iA(`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}twe().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[nN.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(dF(i)&&!t.some(e=>e.src===i.src)){let e=r.getBySrc(i.src);e&&(r[zA.remove](e,n),a=!0)}a&&!r.length&&(this.$state.savedState.set(null),r[zA.reset](n));for(let e of t){if(!dF(e)||r.getBySrc(e.src))continue;let t={id:e.id??e.height+`p`,bitrate:null,codec:null,...e,selected:!1};r[zA.add](t,n),i=!0}i&&!r[AN.enableAuto]&&(this.#w(),r[AN.enableAuto]=this.#w.bind(this),r[AN.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[zA.reset](e),r[zA.reset](e),fF(this.$state,t),this.#d();return}fF(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=gj(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=gj(r),o=r.length!==t().length,s=a!==gj(t()),c=gj(i),l=i.length!==n().length,u=c!==gj(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(!q(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[nN.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=owe(this.#i,this.#a,e()),t.set(new _j(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=vA(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=yA(()=>{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))}},sI=class extends IF{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)J(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()})}},cI=[`play`,`pause`,`seekforward`,`seekbackward`,`seekto`],lI=class extends IF{onConnect(){J(this.#t.bind(this)),J(this.#n.bind(this));let e=this.#r.bind(this);for(let t of cI)navigator.mediaSession.setActionHandler(t,e);WO(this.#e.bind(this))}#e(){for(let e of cI)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 iA(`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:dk(e.seekTime)?e.seekTime:this.$state.currentTime()+(e.seekOffset??(e.action===`seekforward`?10:-10)),trigger:t});break}}},uI=class e extends hA{static props=QF;static state=wF;#e;#t;#n;canPlayQueue=new nI;remoteControl;get#r(){return this.#e.$provider()}get#i(){return this.$props}constructor(){super(),new sI;let e={player:this,qualities:new FF,audioTracks:new jF,storage:null,$provider:ak(null),$providerSetup:ak(!1),$props:this.$props,$state:this.$state};e.remote=this.remoteControl=new DF(void 0),e.remote.setPlayer(this),e.textTracks=new PF,e.textTracks[nN.crossOrigin]=this.$state.crossOrigin,e.textRenderers=new NF(e),e.ariaKeys={},this.#e=e,wk(sN,e),this.orientation=new CF,new RN,new VF(e);let t=new iI;this.#t=new oI(t,e),this.#n=new rI(this.#t,t,e),e.delegate=new eI(this.#t.handle.bind(this.#t),e),e.notify=e.delegate.notify.bind(e.delegate),typeof navigator<`u`&&`mediaSession`in navigator&&new lI,new $F(`load`,this.startLoading.bind(this)),new $F(`posterLoad`,this.startLoadingPoster.bind(this))}onSetup(){this.#l(),J(this.#c.bind(this)),J(this.#h.bind(this)),J(this.#p.bind(this)),J(this.#y.bind(this)),J(this.#_.bind(this)),J(this.#C.bind(this)),J(this.#x.bind(this))}onAttach(e){e.setAttribute(`data-media-player`,``),mN(e,`tabindex`,`0`),mN(e,`role`,`region`),J(this.#T.bind(this)),J(this.#o.bind(this)),J(this.#s.bind(this)),gk(e,`find-media-player`,this.#u.bind(this))}onConnect(e){rj&&xk(e,`data-iphone`,``);let t=window.matchMedia(`(pointer: coarse)`);this.#f(t),t.onchange=this.#f.bind(this);let n=new ResizeObserver(Pk(this.#d.bind(this)));n.observe(e),J(this.#d.bind(this)),this.dispatch(`media-player-connect`,{detail:this,bubbles:!0,composed:!0}),WO(()=>{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=WCe(i()),c=s===`Unknown`?o?`Live`:`Media`:`${o?`Live `:``}${s}`,l=n(),u=t()||`${c} Player`+(l?` - ${l}`:``);xk(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),xk(this.el,`data-orientation`,e),this.#d()}#c(){this.$state.canPlay()&&this.#r?this.canPlayQueue.start():this.canPlayQueue.stop()}#l(){if(e[XF]){this.setAttributes(e[XF]);return}let t={"data-load":function(){return this.$props.load()},"data-captions":function(){let e=this.$state.textTrack();return!!e&&tN(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 ZF){let r=`data-`+(n[e]??Ak(e));t[r]=function(){return this.$state[e]()}}delete t.title,e[XF]=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),Sk(this.el,`--player-width`,e+`px`),Sk(this.el,`--player-height`,t+`px`)}#f(e){let t=e.matches?`coarse`:`fine`;xk(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 q(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 q(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 q(this.$state.muted)}set muted(e){this.#g(e)}#h(){this.#g(this.$props.muted())}#g(e){this.canPlayQueue.enqueue(`muted`,()=>{q(()=>{this.#r&&this.#r.setMuted(e)})})}get currentTime(){return q(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!==q(t)&&q(()=>{if(!this.#r)return;let t=pF(e,this.$state);Number.isFinite(t)&&this.#r.setCurrentTime(t)})})}get volume(){return q(this.$state.volume)}set volume(e){this.#b(e)}#y(){this.#b(this.$props.volume())}#b(e){let t=dN(0,e,1);this.canPlayQueue.enqueue(`volume`,()=>{this.#r&&this.#r.setVolume(t)})}get playbackRate(){return q(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=fk(e)?new OF:e;if(t?.onChange){let{source:n}=this.$state,r=fk(e)?e:this.el?.id,i=ok(this.#E.bind(this));J(()=>t.onChange(n(),i(),r||void 0))}this.#e.storage=t,this.#e.textTracks.setStorage(t),WO(()=>{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`)}},dI=uI.prototype,Dk(dI,`canPlayQueue`),Dk(dI,`remoteControl`),Dk(dI,`provider`),Dk(dI,`controls`),Dk(dI,`orientation`),Dk(dI,`title`),Dk(dI,`qualities`),Dk(dI,`audioTracks`),Dk(dI,`textTracks`),Dk(dI,`textRenderers`),Dk(dI,`duration`),Dk(dI,`paused`),Dk(dI,`muted`),Dk(dI,`currentTime`),Dk(dI,`volume`),Dk(dI,`playbackRate`),Ok(dI,`play`),Ok(dI,`pause`),Ok(dI,`enterFullscreen`),Ok(dI,`exitFullscreen`),Ok(dI,`enterPictureInPicture`),Ok(dI,`exitPictureInPicture`),Ok(dI,`seekToLiveEdge`),Ok(dI,`startLoading`),Ok(dI,`startLoadingPoster`),Ok(dI,`requestAirPlay`),Ok(dI,`requestGoogleCast`),Ok(dI,`setAudioGain`),fI=new Map,pI=class{#e=!1;#t;#n;#r;#i;constructor(e,t,n,r=[]){this.#n=e,this.#r=t,this.#i=n;let i=new qF,a=new KF,o=new GF,s=new WF,c=[new YF,new JF];this.#t=ok(()=>{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(_F(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),J(this.#a.bind(this)),J(this.#o.bind(this)),J(this.#u.bind(this)),J(this.#d.bind(this)),J(this.#f.bind(this))}#a(){this.#r.notify(`sources-change`,[..._F(this.#r.$props.src()),...this.#n()])}#o(){let{$state:e}=this.#r,t=e.sources(),n=q(e.source),r=this.#s(n,t);if(t[0]?.src&&!r.src&&!r.type){let{crossOrigin:n}=e,r=xj(n()),i=new AbortController;return Promise.all(t.map(e=>fk(e.src)&&e.type===`?`?fetch(e.src,{method:`HEAD`,credentials:r,signal:i.signal}).then(t=>(e.type=t.headers.get(`content-type`)||`??`,fI.set(e.src,e.type),e)).catch(()=>e):e)).then(t=>{if(i.signal.aborted)return;let n=this.#s(q(e.source),t);BO(),n.src||this.#r.notify(`error`,{message:`Failed to load resource.`,code:4})}),()=>i.abort()}BO()}#s(e,t){let n={src:``,type:``},r=null,i=new iA(`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(dF(n)){let e=l(),r=t.find(t=>t.src===e?.src);q(o)?u.set({paused:q(s),currentTime:q(c)}):u.set(null),r&&(n=r,i=new iA(`quality-change`,{detail:{quality:e}}))}return yF(e,n)||this.#c(n,r,i),r!==q(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&&q(()=>e.preconnect?.(this.#r)),this.#i.set(e),this.#r.notify(`provider-loader-change`,e,t)}#u(){let e=this.#r.$provider();if(!(!e||q(this.#r.$providerSetup))){if(this.#r.$state.canLoad()){HO(()=>e.setup(),e.scope),this.#r.$providerSetup.set(!0);return}q(()=>e.preconnect?.())}}#d(){if(!this.#r.$providerSetup())return;let e=this.#r.$provider(),t=this.#r.$state.source(),n=q(this.#r.$state.crossOrigin),r=q(this.#r.$props.preferNativeHLS);if(!yF(e?.currentSrc,t)){if(this.#r.$state.canLoad()){let i=new AbortController;return QA(t)?(r||!JA())&&gF(t.src,{credentials:xj(n),signal:i.signal}).then(e=>{this.#r.notify(`stream-type-change`,e)}).catch(sk):$A(t)?NTe(t.src,{credentials:xj(n),signal:i.signal}).then(e=>{this.#r.notify(`stream-type-change`,e)}).catch(sk):this.#r.notify(`stream-type-change`,`on-demand`),q(()=>{let n=q(this.#r.$state.preload);return e?.loadSource(t,n).catch(e=>{})}),()=>i.abort()}try{fk(t.src)&&yj(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 iA(`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()}}},mI=class{#e;#t;#n=[];constructor(e,t){this.#e=e,this.#t=t,J(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||rN.createId(t);this.#t.textTracks.getById(e)||(t.id=e,this.#t.textTracks.add(t))}this.#n=e}},hI=class extends hA{static props={loaders:[]};static state=new gA({loader:null});#e;#t;#n=ak([]);#r=ak([]);#i=null;#a=null;#o=!1;onSetup(){this.#e=oN(),this.#t=new pI(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 mI(this.#r,this.#e);let t=new ResizeObserver(Pk(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),WO(()=>{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)),WO(()=>{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&&q(n)||(this.#l(),this.#i=t,t&&(t.target=e||null),!(!t||!e)&&t.load(this.#e).then(e=>{this.scope&&q(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&&(Sk(e.el,`--media-width`,n+`px`),Sk(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}`);fk(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||rN.createId(e),...e})}}this.#n.set(e),this.#r.set(t),BO()}},gI=hI.prototype,Ok(gI,`load`)}));function vI(e,t){return[...e].sort(t?LTe:ITe)}function ITe(e,t){return e.height===t.height?(e.bitrate??0)-(t.bitrate??0):e.height-t.height}function LTe(e,t){return t.height===e.height?(t.bitrate??0)-(e.bitrate??0):t.height-e.height}function yI(e,t){let n=String(e),r=n.length;if(r<t){let n=t-r;return`${`0`.repeat(n)}${e}`}return n}function bI(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 xI(e,{padHrs:t=null,padMins:n=null,showHrs:r=!1,showMs:i=!1}={}){let{hours:a,minutes:o,seconds:s,fraction:c}=bI(e),l=t?yI(a,2):a,u=`${n||ck(n)&&e>=3600?yI(o,2):o}:${yI(s,2)}${i&&c>0?`.${String(c).replace(/^0?\./,``)}`:``}`;return a>0||r?`${l}:${u}`:u}function SI(e){let t=[],{hours:n,minutes:r,seconds:i}=bI(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 CI(e,t,n){let r=t-e,i=n-e;return r>0?i/r:0}function RTe(e,t,n,r){return dN(e,lN(n,uN(r)),t)}function zTe(e,t,n,r){let i=dN(0,n,1),a=(t-e)*i/r;return e+r*Math.round(a)}function BTe(e,t){let n=`${e}::${t}`;if(XI.has(n)){let e=XI.get(n);XI.delete(n),XI.set(n,e);return}let r=new Image;if(r.decoding=`async`,r.crossOrigin=t,r.src=e,XI.set(n,r),XI.size>YI){let e=XI.keys().next().value;XI.delete(e)}}function VTe(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 HTe(e,t){let n=TA(e,t);for(let{el:e,top:r,left:i}of n)e.scroll({top:r,left:i,behavior:t.behavior})}function UTe(e,t={}){HTe(e,{scrollMode:`if-needed`,block:`center`,inline:`center`,...t})}function wI(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 TI,EI,DI,OI,kI,AI,jI,MI,NI,PI,FI,II,LI,RI,zI,BI,VI,HI,UI,WI,GI,KI,qI,JI,YI,XI,ZI,QI,$I,eL,tL,nL,rL,iL,aL,oL,sL,cL,lL,uL,dL,fL,pL,mL,hL,gL,_L,vL,yL,bL,xL,SL,CL,wL,TL,EL,DL,OL,kL=O((()=>{RA(),Cj(),aN(),Ej(),cN(),fN(),kN(),PN(),zN(),TI=class extends mA{#e;constructor(e){super(),this.#e=e}onAttach(e){let{$props:t,ariaKeys:n}=oN(),r=e.getAttribute(`aria-keyshortcuts`);if(r){n[this.#e]=r,WO(()=>{delete n[this.#e]});return}let i=t.keyShortcuts()[this.#e];if(i){let t=hk(i)?i.join(` `):fk(i)?i:i?.keys;e.setAttribute(`aria-keyshortcuts`,hk(t)?t.join(` `):t)}}},EI=class extends mA{#e;constructor(e){super(),this.#e=e,J(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`),q(()=>this.#e.onChange(!0,e))},this.#e.showDelay?.()??0)}hide(e){this.#a(),q(()=>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(Rwe(e)){this.#i?.();let n=gk(e,`animationend`,t,{once:!0});this.#i=n}else t()}})}#a(){window.clearTimeout(this.#n),this.#n=-1}},DI=class extends mA{static props={disabled:!1};#e;constructor(e){super(),this.#e=e,new RN,e.keyShortcut&&new TI(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){mN(e,`tabindex`,`0`),mN(e,`role`,`button`),mN(e,`type`,`button`)}onConnect(e){let t=yN(e,this.#r.bind(this));for(let e of[`click`,`touchstart`])t.add(e,this.#i.bind(this),{passive:!0})}#t(){return jk(this.#e.isPresssed())}#n(e){NCe(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())}},OI=class extends hA{static props=DI.props;#e;constructor(){super(),new DI({isPresssed:this.#n.bind(this),onPress:this.#t.bind(this)})}onSetup(){this.#e=oN();let{canAirPlay:e,isAirPlayConnected:t}=this.#e.$state;this.setAttributes({"data-active":t,"data-supported":e,"data-state":this.#r.bind(this),"aria-hidden":DN(()=>!e())})}onAttach(e){e.setAttribute(`data-media-tooltip`,`airplay`),hN(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()}`}},kI=class extends hA{static props=DI.props;#e;constructor(){super(),new DI({isPresssed:this.#n.bind(this),keyShortcut:`togglePaused`,onPress:this.#t.bind(this)})}onSetup(){this.#e=oN();let{paused:e,ended:t}=this.#e.$state;this.setAttributes({"data-paused":e,"data-ended":t})}onAttach(e){e.setAttribute(`data-media-tooltip`,`play`),hN(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()}},AI=class extends hA{static props=DI.props;#e;constructor(){super(),new DI({isPresssed:this.#n.bind(this),keyShortcut:`toggleCaptions`,onPress:this.#t.bind(this)})}onSetup(){this.#e=oN(),this.setAttributes({"data-active":this.#n.bind(this),"data-supported":()=>!this.#r(),"aria-hidden":DN(this.#r.bind(this))})}onAttach(e){e.setAttribute(`data-media-tooltip`,`caption`),hN(e,`Captions`)}#t(e){this.#e.remote.toggleCaptions(e)}#n(){let{textTrack:e}=this.#e.$state,t=e();return!!t&&tN(t)}#r(){let{hasCaptions:e}=this.#e.$state;return!e()}},jI=class extends hA{static props={...DI.props,target:`prefer-media`};#e;constructor(){super(),new DI({isPresssed:this.#n.bind(this),keyShortcut:`toggleFullscreen`,onPress:this.#t.bind(this)})}onSetup(){this.#e=oN();let{fullscreen:e}=this.#e.$state,t=this.#r.bind(this);this.setAttributes({"data-active":e,"data-supported":t,"aria-hidden":DN(()=>!t())})}onAttach(e){e.setAttribute(`data-media-tooltip`,`fullscreen`),hN(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()}},MI=class extends hA{static props=DI.props;#e;constructor(){super(),new DI({isPresssed:this.#n.bind(this),keyShortcut:`toggleMuted`,onPress:this.#t.bind(this)})}onSetup(){this.#e=oN(),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`),hN(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`}},NI=class extends hA{static props=DI.props;#e;constructor(){super(),new DI({isPresssed:this.#n.bind(this),keyShortcut:`togglePictureInPicture`,onPress:this.#t.bind(this)})}onSetup(){this.#e=oN();let{pictureInPicture:e}=this.#e.$state,t=this.#r.bind(this);this.setAttributes({"data-active":e,"data-supported":t,"aria-hidden":DN(()=>!t())})}onAttach(e){e.setAttribute(`data-media-tooltip`,`pip`),hN(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()}},PI=class extends hA{static props={disabled:!1,seconds:30};#e;constructor(){super(),new RN}onSetup(){this.#e=oN();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":DN(()=>!n())})}onAttach(e){mN(e,`tabindex`,`0`),mN(e,`role`,`button`),mN(e,`type`,`button`),e.setAttribute(`data-media-tooltip`,`seek`),hN(e,this.#n.bind(this))}onConnect(e){yN(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)}},FI=class extends hA{static props={disabled:!1};#e;constructor(){super(),new RN}onSetup(){this.#e=oN();let{disabled:e}=this.$props,{live:t,liveEdge:n}=this.#e.$state,r=()=>!t();this.setAttributes({"data-edge":n,"data-hidden":r,"aria-disabled":DN(()=>e()||n()),"aria-hidden":DN(r)})}onAttach(e){mN(e,`tabindex`,`0`),mN(e,`role`,`button`),mN(e,`type`,`button`),e.setAttribute(`data-media-tooltip`,`live`)}onConnect(e){yN(e,this.#t.bind(this))}#t(e){let{disabled:t}=this.$props,{liveEdge:n}=this.#e.$state;t()||n()||this.#e.remote.seekToLiveEdge(e)}},II=new gA({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 CI(this.min,this.max,this.value)},get fillPercent(){return this.fillRate*100},get pointerRate(){return CI(this.min,this.max,this.pointerValue)},get pointerPercent(){return this.pointerRate*100}}),LI=class extends mA{#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),WO(this.#n.bind(this))}#n(){this.#t?.disconnect(),this.#t=void 0}},RI=Ck(),zI=Ck(),BI={Left:-1,ArrowLeft:-1,Up:1,ArrowUp:1,Right:1,ArrowRight:1,Down:-1,ArrowDown:-1},VI=class extends mA{#e;#t;#n;constructor(e,t){super(),this.#e=e,this.#t=t}onSetup(){Ek(zI)&&(this.#n=Tk(zI))}onConnect(e){J(this.#u.bind(this,e)),J(this.#d.bind(this,e)),this.#e.swipeGesture&&J(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 sA(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(ck(this.#a)||bN(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;gk(e,`focus`,this.#f.bind(this)),!(t()||this.#e.isDisabled())&&new sA(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 sA(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&&dk(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&&dk(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(zTe(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(BI).includes(e.key))return;let{key:t}=e,n=this.#E(e);if(!ck(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(BI).includes(e.key)||!ck(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(BI[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=vA(e=>{this.#m(this.#h(e),e)},20,{leading:!0})},HI=Ck(()=>({})),UI=class extends mA{static props={hidden:!1,disabled:!1,step:1,keyStep:1,orientation:`horizontal`,shiftKeyMultiplier:5};#e;#t;#n=ak(!0);#r=ak(!0);constructor(e){super(),this.#t=e}onSetup(){this.#e=oN();let e=new RN;e.attach(this),this.$state.focused=e.focused.bind(e),Ek(HI)||wk(HI,{default:`value`}),wk(RI,{orientation:this.$props.orientation,disabled:this.#t.isDisabled,preview:ak(null)}),J(this.#o.bind(this)),J(this.#s.bind(this)),J(this.#c.bind(this)),this.#u(),new VI(this.#t,this.#e).attach(this),new LI({callback:this.#i.bind(this)}).attach(this)}onAttach(e){mN(e,`role`,`slider`),mN(e,`tabindex`,`0`),mN(e,`autocomplete`,`off`),J(this.#d.bind(this))}onConnect(e){WO(_N(e,this.#n.set)),J(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;q(e)||t.set(RTe(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 jk(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(lN(e(),3),lN(t(),3))}#f=Pk((e,t)=>{this.el?.style.setProperty(`--slider-fill`,e+`%`),this.el?.style.setProperty(`--slider-pointer`,t+`%`)})},WI=class extends hA{static props={...UI.props,min:0,max:100,value:0};static state=II;constructor(){super(),new UI({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(){J(this.#n.bind(this)),J(this.#r.bind(this))}#e(){let{value:e}=this.$state;return Math.round(e())}#t(){let{value:e,max:t}=this.$state;return lN(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())}},GI=new Map,KI=new Map,qI=class e{#e;#t;#n;$images=ak([]);static create(t,n){return new e(t,n,oN())}constructor(e,t,n){this.#t=e,this.#n=t,this.#e=n,J(this.#r.bind(this))}#r(){let{canLoad:e}=this.#e.$state;if(!e())return;let t=this.#t();if(t){if(fk(t)&&GI.has(t)){let e=GI.get(t);if(GI.delete(t),GI.set(t,e),GI.size>99){let e=GI.keys().next().value;GI.delete(e)}this.$images.set(GI.get(t))}else if(fk(t)){let e=this.#n(),n=t+`::`+e;if(!KI.has(n)){let r=new Promise(async(n,r)=>{try{let i=await fetch(t,{credentials:xj(e)});if(i.headers.get(`content-type`)===`application/json`){let e=await i.json();if(hk(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];NN(uk(n),!1),NN(`url`in n&&fk(n.url),!1),NN(`startTime`in n&&dk(n.startTime),!1)}n(e)}else n(this.#a(e));return}Promise.resolve().then(()=>(eN(),$M)).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=>(GI.set(n,e),e)).catch(e=>{this.#u(t,e)}).finally(()=>{fk(n)&&KI.delete(n)});KI.set(n,r)}KI.get(n)?.then(e=>{this.$images.set(e||[])})}else if(hk(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)=>(NN(e.url&&fk(e.url),!1),NN(`startTime`in e&&dk(e.startTime),!1),{...e,url:fk(e.url)?this.#c(e.url,t):e.url}))}#a(e){NN(fk(e.url),!1),NN(hk(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];NN(`startTime`in n&&dk(n.startTime),!1),NN(`text`in n&&fk(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&&dk(a.x)&&dk(a.y)?{x:a.x,y:a.y}:void 0})}return t}#s(){let e=q(this.#t);return!fk(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){}},JI=2,YI=32,XI=new Map,ZI=class extends hA{static props={src:null,time:0,crossOrigin:null};static state=new gA({src:``,img:null,thumbnails:[],activeThumbnail:null,crossOrigin:null,loading:!1,error:null,hidden:!1});media;#e;#t=[];onSetup(){this.media=oN(),this.#e=qI.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":DN(this.$state.hidden)})}onConnect(e){J(this.#n.bind(this)),J(this.#l.bind(this)),J(this.#r.bind(this)),J(this.#i.bind(this)),J(this.#u.bind(this)),J(this.#d.bind(this)),J(this.#f.bind(this))}#n(){let e=this.$state.img();e&&new sA(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!ck(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+JI,e.length);for(let t=a;t<o;t++){let n=e[t].url.href;n!==r&&BTe(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(lN(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=[]}},QI=class extends hA{static props={type:`pointer`,format:null,showHours:!1,showMs:!1,padHours:null,padMinutes:null,decimalPlaces:2};#e;#t;#n;onSetup(){this.#n=kk(WI.state),this.#e=Tk(HI),this.#t=ok(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??lN)(e,n())+`%`}else if(d===`time`)return(this.#e.time??xI)(f,{padHrs:r(),padMins:i(),showHrs:a(),showMs:o()});else return(this.#e.value?.(f)??f.toFixed(2))+``}},$I=QI.prototype,Ok($I,`getValueText`),eL=class extends hA{static props={offset:0,noClamp:!1};#e;onSetup(){this.#e=Tk(RI);let{active:e}=kk(WI.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),WO(()=>t.set(null)),J(this.#t.bind(this));let n=new ResizeObserver(this.#t.bind(this));n.observe(e),WO(()=>n.disconnect())}#t=Pk(()=>{let{disabled:e,orientation:t}=this.#e;if(e())return;let n=this.el,{offset:r,noClamp:i}=this.$props;n&&VTe(n,{clamp:!i(),offset:r(),orientation:t()})})},tL=class extends hA{static props={...UI.props,keyStep:5,shiftKeyMultiplier:2};static state=II;#e;onSetup(){this.#e=oN();let{audioGain:e}=this.#e.$state;wk(HI,{default:`percent`,value(t){return(t*(e()??1)).toFixed(2)},percent(t){return Math.round(t*(e()??1))}}),new UI({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),J(this.#a.bind(this))}onAttach(e){e.setAttribute(`data-media-volume-slider`,``),mN(e,`aria-label`,`Volume`);let{canSetVolume:t}=this.#e.$state;this.setAttributes({"data-supported":t,"aria-hidden":DN(()=>!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 lN(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=vA(this.#s.bind(this),25);#s(e){if(!e.trigger)return;let t=lN(e.detail/100,3);this.#e.remote.changeVolume(t,e)}#c(e){this.#o(e)}#l(e){this.#o(e)}},nL=class extends hA{static props={...UI.props,step:.1,keyStep:5,shiftKeyMultiplier:2,pauseWhileDragging:!1,noSwipeGesture:!1,seekingRequestThrottle:100};static state=II;#e;#t;#n=ak(null);constructor(){super();let{noSwipeGesture:e}=this.$props;new UI({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=oN(),wk(HI,{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)}),J(this.#o.bind(this)),J(this.#a.bind(this))}onAttach(e){e.setAttribute(`data-media-time-slider`,``),mN(e,`aria-label`,`Seek`)}onConnect(e){J(this.#s.bind(this)),Tj(this.#e.textTracks,`chapters`,this.#n.set)}#r(){let{bufferedEnd:e,duration:t}=this.#e.$state;return lN(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=vA(this.#c.bind(this),this.$props.seekingRequestThrottle())}#o(){if(this.$state.hidden())return;let{value:e,dragging:t}=this.$state,n=this.#h();q(t)||(e.set(n),this.dispatch(`value-change`,{detail:n}))}#s(){let e=this.#e.player.el,{preview:t}=Tk(RI);e&&t()&&xk(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;q(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 lN(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)?`${SI(e)} out of ${SI(t())}`:`live`}#S(e){let{duration:t}=this.#e.$state;return lN(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?`-`:``}${xI(Math.abs(a),t)}`:`LIVE`}},rL=Ck(),iL=[`a[href]`,`[tabindex]`,`input`,`select`,`button`].map(e=>`${e}:not([aria-hidden='true'])`).join(`,`),aL=new Set([`Escape`,`Tab`,`ArrowUp`,`ArrowDown`,`Home`,`PageUp`,`End`,`PageDown`,`Enter`,` `]),oL=class{#e=-1;#t=null;#n=[];#r;get items(){return this.#n}constructor(e){this.#r=e}attachMenu(e){gk(e,`focus`,this.#o.bind(this)),this.#t=e,WO(()=>{this.#t=null})}listen(){this.#t&&(this.update(),new sA(this.#t).add(`keyup`,this.#c.bind(this)).add(`keydown`,this.#l.bind(this)),WO(()=>{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(()=>{UTe(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(RCe(e)&&t instanceof Element){let e=t.getAttribute(`role`);return!/a|input|select|button/.test(t.localName)&&!e}return aL.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(iL),t=[],n=e=>e.getAttribute(`role`)===`menu`;for(let r of e)EN(r)&&r.offsetParent!==null&&vN(this.#t,r,n)&&t.push(r);return t}},sL=0,cL=class extends hA{static props={showDelay:0};#e;#t;#n;#r=ak(!1);#i=ak(!1);#a=ak(null);#o=ak(null);#s;#c=new Set;#l=null;#u;#d;#f=!1;#p=ak(!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 EI({trigger:this.#a,content:this.#o,showDelay:e,listen:(e,t,n)=>{yN(e,e=>{this.#r()?n(e):t(e)});let r=this.#A();r&&yN(r,e=>{e.stopPropagation(),n(e)})},onChange:this.#C.bind(this)})}onSetup(){this.#e=oN();let e=++sL;this.#t=`media-menu-${e}`,this.#n=`media-menu-button-${e}`,this.#d=new oL({closeMenu:this.close.bind(this)}),Ek(rL)&&(this.#s=Tk(rL)),this.#h(),this.setAttributes({"data-open":this.#r,"data-root":!this.isSubmenu,"data-submenu":this.isSubmenu,"data-disabled":this.#E.bind(this)}),wk(rL,{button:this.#a,content:this.#o,expanded:this.#r,hint:ak(``),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),WO(()=>{this.#m.delete(e)})}})}onAttach(e){e.style.setProperty(`display`,`contents`)}onConnect(e){J(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=Ek(zI)?Tk(zI):null;wk(zI,{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&&(J(()=>{let{height:e}=this.#e.$state,t=this.#o();t&&Sk(t,`--player-height`,e()+`px`)}),this.#d.listen(),this.listen(`pointerup`,this.#O.bind(this)),gk(window,`pointerup`,this.#k.bind(this)))}#_(e){let t=e.el,n=this.isSubmenu,r=DN(this.#E.bind(this));mN(t,`tabindex`,n?`-1`:`0`),mN(t,`role`,n?`menuitem`:`button`),xk(t,`id`,this.#n),xk(t,`aria-haspopup`,`menu`),xk(t,`aria-expanded`,`false`),xk(t,`data-root`,!this.isSubmenu),xk(t,`data-submenu`,this.isSubmenu),J(()=>{xk(t,`data-open`,this.#r()),xk(t,`aria-disabled`,r())}),this.#a.set(t),WO(()=>{this.#a.set(null)})}#v(e){let t=e.el;t.style.setProperty(`display`,`none`),xk(t,`id`,this.#t),mN(t,`role`,`menu`),mN(t,`tabindex`,`-1`),xk(t,`data-root`,!this.isSubmenu),xk(t,`data-submenu`,this.isSubmenu),this.#o.set(t),WO(()=>this.#o.set(null)),J(()=>xk(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=q(this.#o);t&&xk(t,`aria-hidden`,jk(!e))}#x(e){this.#p.set(e)}#S=!1;#C(e,t){if(this.#S=yk(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&&(xk(n,`aria-controls`,e&&this.#t),xk(n,`aria-expanded`,jk(e))),r&&xk(r,`aria-labelledby`,e&&this.#n),this.#r.set(e),this.#j(t),BO(),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&&pN(t,e)||e.stopPropagation()}#k(e){let t=this.#o();this.#f||t&&pN(t,e)||this.close(e)}#A(){let e=this.el?.querySelector(`[data-part="close-target"]`);return this.el&&e&&vN(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 sA(e).add(`open`,this.#I).add(`close`,this.#R),WO(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=Pk(()=>{let e=q(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(EN(e)&&e.style.display===`contents`)r.push(...e.children);else if(e.nodeType===3)t+=parseFloat(getComputedStyle(e).fontSize);else if(EN(e)){if(!gN(e))continue;let n=getComputedStyle(e);t+=e.offsetHeight+(parseFloat(n.marginTop)||0)+(parseFloat(n.marginBottom)||0)}Sk(e,`--menu-height`,t+`px`)});#V=!1;#H(e){let t=this.#o();t&&e.propertyName===`height`&&(this.#V=e.type===`transitionstart`,xk(t,`data-transition`,this.#V?`height`:null),this.#r()&&this.#w());for(let t of this.#m)t(e)}open(e){q(this.#r)||(this.#u.show(e),BO())}close(e){q(this.#r)&&(this.#u.hide(e),BO())}},wI([Dk],cL.prototype,`triggerElement`,null),wI([Dk],cL.prototype,`contentElement`,null),wI([Dk],cL.prototype,`isSubmenu`,null),wI([Ok],cL.prototype,`open`,null),wI([Ok],cL.prototype,`close`,null),lL=class extends hA{static props={disabled:!1};#e;#t=ak(null);get expanded(){return this.#e?.expanded()??!1}constructor(){super(),new RN}onSetup(){this.#e=Tk(rL)}onAttach(e){this.#e.attachMenuButton(this),J(this.#n.bind(this)),mN(e,`type`,`button`)}onConnect(e){J(this.#r.bind(this)),this.#i();let t=new MutationObserver(this.#i.bind(this));t.observe(e,{attributeFilter:[`data-part`],childList:!0,subtree:!0}),WO(()=>t.disconnect()),yN(e,e=>{this.dispatch(`select`,{trigger:e})})}#n(){this.#e.disableMenuButton(this.$props.disabled())}#r(){let e=this.#t();e&&J(()=>{let t=this.#e.hint();t&&(e.textContent=t)})}#i(){let e=this.el?.querySelector(`[data-part="hint"]`);this.#t.set(e??null)}},uL=lL.prototype,Dk(uL,`expanded`),dL=class extends lL{},fL=class extends hA{static props={container:null,disabled:!1};#e=null;#t;onSetup(){this.#t=oN(),wk(pL,{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,xN(()=>{xN(()=>{this.connectScope&&J(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;xk(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 EN(e)?e:e?document.querySelector(e):document.body}},pL=Ck(),mL=class extends hA{static props={placement:null,offset:0,alignOffset:0};#e;constructor(){super(),new RN;let{placement:e}=this.$props;this.setAttributes({"data-placement":e})}onAttach(e){if(this.#e=Tk(rL),this.#e.attachMenuItems(this),Ek(pL)){let t=Tk(pL);t&&(wk(pL,null),t.attach(e),WO(()=>t.attach(null)))}}onConnect(e){J(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;WO(TN(this.el,this.#r(),t,{offsetVarName:`media-menu`,xOffset:r(),yOffset:n()})),WO(this.#n.bind(this))}#n(){this.el&&(this.el.removeAttribute(`style`),this.el.style.display=`none`)}#r(){return this.#e.button()}},hL=Ck(),gL=class extends mA{#e=new Set;#t=ak(``);onValueChange;get values(){return Array.from(this.#e).map(e=>e.value())}get value(){return this.#t()}set value(e){this.#a(e)}onSetup(){wk(hL,{add:this.#n.bind(this),remove:this.#r.bind(this)})}onAttach(e){Ek(rL)||mN(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=q(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===q(t.value))return t;return null}},_L=class extends hA{static props={value:``};#e=ak(!1);#t={value:this.$props.value,check:this.#o.bind(this),onCheck:null};get checked(){return this.#e()}constructor(){super(),new RN}onSetup(){this.setAttributes({value:this.$props.value,"data-checked":this.#e,"aria-checked":DN(this.#e)})}onAttach(e){let t=Ek(rL);mN(e,`tabindex`,t?`-1`:`0`),mN(e,`role`,t?`menuitemradio`:`radio`),J(this.#i.bind(this))}onConnect(e){this.#r(),yN(e,this.#a.bind(this)),WO(this.#n.bind(this))}#n(){HO(()=>{Tk(hL).remove(this.#t)},this.connectScope)}#r(){Tk(hL).add(this.#t)}#i(){let{value:e}=this.$props,t=e();q(this.#e)&&this.#t.onCheck?.(t)}#a(e){q(this.#e)||(this.#s(!0,e),this.#c(e),this.#t.onCheck?.(q(this.$props.value),e))}#o(e,t){q(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})}},vL=_L.prototype,Dk(vL,`checked`),yL=class extends hA{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 gL,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#t=oN(),Ek(rL)&&(this.#e=Tk(rL))}onConnect(e){J(this.#r.bind(this)),J(this.#a.bind(this)),J(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})}}},bL=yL.prototype,Dk(bL,`value`),Dk(bL,`disabled`),Ok(bL,`getOptions`),xL=class extends hA{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 gL,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#e=oN(),Ek(rL)&&(this.#t=Tk(rL))}onConnect(e){super.onConnect?.(e),J(this.#r.bind(this)),J(this.#a.bind(this)),J(this.#i.bind(this))}getOptions(){let{offLabel:e}=this.$props,{textTracks:t}=this.#e.$state;return[{value:`off`,label:e},...t().filter(tN).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&&tN(n)&&n.mode===`showing`?n.label:e())}#a(){this.#t?.disable(this.disabled)}#o(){let{textTrack:e}=this.#e.$state,t=e();return t&&tN(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()}},SL=xL.prototype,Dk(SL,`value`),Dk(SL,`disabled`),Ok(SL,`getOptions`),CL=[.25,.5,.75,1,1.25,1.5,1.75,2],wL=class extends hA{static props={normalLabel:`Normal`,rates:CL};#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 gL,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#e=oN(),Ek(rL)&&(this.#t=Tk(rL))}onConnect(e){J(this.#r.bind(this)),J(this.#i.bind(this)),J(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})}},TL=wL.prototype,Dk(TL,`value`),Dk(TL,`disabled`),Ok(TL,`getOptions`),EL=class extends hA{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=ok(()=>{let{sort:e}=this.$props,{qualities:t}=this.#e.$state;return vI(t(),e()===`descending`)});constructor(){super(),this.#n=new gL,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#e=oN(),Ek(rL)&&(this.#t=Tk(rL))}onConnect(e){J(this.#i.bind(this)),J(this.#o.bind(this)),J(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?`${lN(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=q(n).findIndex(t=>this.#l(t)===e);if(r>=0){let e=q(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}},DL=EL.prototype,Dk(DL,`value`),Dk(DL,`disabled`),Ok(DL,`getOptions`),OL=class extends hA{static props={type:`current`,showHours:!1,padHours:null,padMinutes:null,remainder:!1,toggle:!1,hidden:!1};static state=new gA({timeText:``,hidden:!1});#e;#t=ak(null);#n=ak(!0);#r=ak(!0);onSetup(){this.#e=oN(),this.#s();let{type:e}=this.$props;this.setAttributes({"data-type":e,"data-remainder":this.#u.bind(this)}),new LI({callback:this.#i.bind(this)}).attach(this)}onAttach(e){e.hasAttribute(`role`)||J(this.#c.bind(this)),J(this.#s.bind(this))}onConnect(e){WO(_N(e,this.#n.set)),J(this.#a.bind(this)),J(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&&yN(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=xI(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;xk(this.el,`role`,e()?`timer`:null),xk(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)}}})),AL,jL,ML,NL,PL,FL,IL,LL,RL,zL,BL,VL,HL,UL,WL,GL,KL,qL,JL,YL,XL,ZL,QL,$L,eR,tR,nR,WTe=O((()=>{RA(),aN(),Ej(),cN(),fN(),kN(),kL(),zN(),AL=class extends hA{static props={translations:null};static state=new gA({label:null,busy:!1});#e;#t=!1;onSetup(){this.#e=oN()}onAttach(e){e.style.display=`contents`}onConnect(e){e.setAttribute(`data-media-announcer`,``),mN(e,`role`,`status`),mN(e,`aria-live`,`polite`);let{busy:t}=this.$state;this.setAttributes({"aria-busy":()=>t()?`true`:null}),this.#t=!0,J(this.#n.bind(this)),J(this.#o.bind(this)),J(this.#a.bind(this)),J(this.#r.bind(this)),J(this.#i.bind(this)),J(this.#l.bind(this)),J(this.#d.bind(this)),BO(),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=q(t),n=Math.abs(e-this.#s);if(n>=1){let t=e>=this.#s,r=SI(n);this.#f(`${this.#u(t?`Seek Forward`:`Seek Backward`)} ${r}`)}this.#s=-1,this.#c=-1},300)):n&&(this.#s=q(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&&xk(this.el,`aria-label`,n),fk(n)&&this.dispatch(`change`,{detail:n}),()=>window.clearTimeout(r)}#f(e){let{label:t}=this.$state;t.set(e)}},jL=class extends hA{static props={hideDelay:2e3,hideOnMouseLeave:!1};#e;onSetup(){this.#e=oN(),J(this.#n.bind(this))}onAttach(e){let{pictureInPicture:t,fullscreen:n}=this.#e.$state;Sk(e,`pointer-events`,`none`),mN(e,`role`,`group`),this.setAttributes({"data-visible":this.#r.bind(this),"data-fullscreen":n,"data-pip":t}),J(()=>{this.dispatch(`change`,{detail:this.#r()})}),J(this.#t.bind(this)),J(()=>{let t=n();for(let n of[`top`,`right`,`bottom`,`left`])Sk(e,`padding-${n}`,t&&`env(safe-area-inset-${n})`)})}#t(){if(!this.el)return;let{nativeControls:e}=this.#e.$state,t=e();xk(this.el,`aria-hidden`,t?`true`:null),Sk(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()}},ML=class extends hA{onAttach(e){e.style.pointerEvents||Sk(e,`pointer-events`,`auto`)}},NL=Ck(),PL=0,FL=class extends hA{static props={showDelay:700};#e=`media-tooltip-${++PL}`;#t=ak(null);#n=ak(null);#r=ak(!1);constructor(){super(),new RN;let{showDelay:e}=this.$props;new EI({trigger:this.#t,content:this.#n,showDelay:e,listen(e,t,n){J(()=>{LN()&&gk(e,`focus`,t),gk(e,`blur`,n)}),new sA(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(){wk(NL,{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`,``),xk(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`,mN(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&&xk(t,`aria-describedby`,e?this.#e:null);for(let r of[this.el,t,n])r&&xk(r,`data-visible`,e);this.#r.set(e)}},IL=class extends hA{constructor(){super(),new RN}onConnect(e){WO(xN(()=>{if(!this.connectScope)return;this.#e();let e=Tk(NL);WO(()=>{let t=this.#t();t&&e.detachTrigger(t)})}))}#e(){let e=this.#t(),t=Tk(NL);e&&t.attachTrigger(e)}#t(){let e=this.el.firstElementChild;return e?.localName===`button`||e?.getAttribute(`role`)===`button`?e:this.el}},LL=class extends hA{static props={placement:`top center`,offset:0,alignOffset:0};constructor(){super(),new RN;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=Tk(NL);WO(()=>t.detachContent(e)),WO(xN(()=>{this.connectScope&&J(this.#t.bind(this))}))}#e(e){Tk(NL).attachContent(e)}#t(){let{showing:e}=Tk(NL);if(!e())return;let{placement:t,offset:n,alignOffset:r}=this.$props;return TN(this.el,this.#n(),t(),{offsetVarName:`media-tooltip`,xOffset:r(),yOffset:n()})}#n(){return Tk(NL).trigger()}},RL=class extends hA{static props={disabled:!1,defaultPressed:!1};#e=ak(!1);get pressed(){return this.#e()}constructor(){super(),new DI({isPresssed:this.#e})}},zL=RL.prototype,Dk(zL,`pressed`),BL=class extends hA{static props=DI.props;#e;constructor(){super(),new DI({isPresssed:this.#n.bind(this),onPress:this.#t.bind(this)})}onSetup(){this.#e=oN();let{canGoogleCast:e,isGoogleCastConnected:t}=this.#e.$state;this.setAttributes({"data-active":t,"data-supported":e,"data-state":this.#r.bind(this),"aria-hidden":DN(()=>!e())})}onAttach(e){e.setAttribute(`data-media-tooltip`,`google-cast`),hN(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()}`}},VL=class extends hA{static props={src:null,crossOrigin:null};static state=new gA({video:null,src:null,crossOrigin:null,canPlay:!1,error:null,hidden:!1});#e;#t;get video(){return this.$state.video()}onSetup(){this.#e=oN(),this.#t=kk(WI.state),this.#i(),this.setAttributes({"data-loading":this.#a.bind(this),"data-hidden":this.$state.hidden,"data-error":this.#o.bind(this),"aria-hidden":DN(this.$state.hidden)})}onAttach(e){J(this.#n.bind(this)),J(this.#r.bind(this)),J(this.#i.bind(this)),J(this.#s.bind(this)),J(this.#c.bind(this)),J(this.#d.bind(this))}#n(){let e=this.$state.video();e&&(e.readyState>=2&&this.#l(),new sA(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!ck(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())}},HL=VL.prototype,Dk(HL,`video`),UL=class extends hA{static props={...UI.props,step:25,keyStep:25,shiftKeyMultiplier:2,min:0,max:300};static state=II;#e;onSetup(){this.#e=oN(),wk(HI,{default:`percent`,percent:(e,t)=>lN(this.$state.value(),t)+`%`}),new UI({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),J(this.#r.bind(this)),J(this.#i.bind(this))}onAttach(e){e.setAttribute(`data-media-audio-gain-slider`,``),mN(e,`aria-label`,`Audio Boost`);let{canSetAudioGain:t}=this.#e.$state;this.setAttributes({"data-supported":t,"aria-hidden":DN(()=>!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=lN(1+e.detail/100,2);this.#e.remote.changeAudioGain(t,e)}#s(e){this.#o(e)}#c(e){this.#o(e)}},WL=class extends hA{static props={...UI.props,step:.25,keyStep:.25,shiftKeyMultiplier:2,min:0,max:2};static state=II;#e;onSetup(){this.#e=oN(),new UI({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),J(this.#r.bind(this)),J(this.#i.bind(this))}onAttach(e){e.setAttribute(`data-media-speed-slider`,``),mN(e,`aria-label`,`Speed`);let{canSetPlaybackRate:t}=this.#e.$state;this.setAttributes({"data-supported":t,"aria-hidden":DN(()=>!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 lN(e,2)}#o(){let{disabled:e}=this.$props,{canSetPlaybackRate:t}=this.#e.$state;return e()||!t()}#s=vA(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)}},GL=class extends hA{static props={...UI.props,step:1,keyStep:1,shiftKeyMultiplier:1};static state=II;#e;#t=ok(()=>{let{qualities:e}=this.#e.$state;return vI(e())});onSetup(){this.#e=oN(),new UI({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),J(this.#i.bind(this)),J(this.#a.bind(this))}onAttach(e){e.setAttribute(`data-media-quality-slider`,``),mN(e,`aria-label`,`Video Quality`);let{qualities:t,canSetQuality:n}=this.#e.$state,r=ok(()=>n()&&t().length>0);this.setAttributes({"data-supported":r,"aria-hidden":DN(()=>!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=vA(this.#c.bind(this),25);#c(e){if(!e.trigger)return;let{qualities:t}=this.#e,n=q(this.#t)[e.detail];this.#e.remote.changeQuality(t.indexOf(n),e)}#l(e){this.#s(e)}#u(e){this.#s(e)}},KL=class extends hA{static props={disabled:!1};#e;#t;#n;#r=null;#i=[];#a=ak(null);#o=ak([]);#s=ak(-1);#c=ak(-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=oN(),this.#t=kk(nL.state)}onAttach(e){Tj(this.#e.textTracks,`chapters`,this.#u.bind(this)),J(this.#D.bind(this))}onConnect(){WO(()=>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&&HO(()=>this.#f(),this.#n=ZO())}#u(e){q(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&&J(this.#p.bind(this))}#p(){let{hidden:e}=this.#t;e()||(J(this.#m.bind(this)),J(this.#h.bind(this)),J(this.#g.bind(this)),J(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:lN((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=q(this.#s),c=a[s],l=o?this.#o.length-1:this.#y(c&&c.startTime/n()*100<=q(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+`%`),xk(e,`data-active`,t>0&&t<100),xk(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=Pk(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=ok(this.#C.bind(this));#C(){let{bufferedEnd:e,duration:t}=this.#e.$state;return lN(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,lN(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 sA(t).add(`add-cue`,e).add(`remove-cue`,e),J(this.#k.bind(this))}return this.#r=this.#N(),this.#r&&J(this.#j.bind(this)),()=>{this.#r&&=(this.#r.textContent=``,null)}}#k(){this.#e.$state.duration(),this.#A()}#A=yA(()=>{let e=q(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}},qL=KL.prototype,Dk(qL,`cues`),Dk(qL,`activeCue`),Dk(qL,`activePointerCue`),Ok(qL,`setRefs`),JL=class extends hA{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 gL,this.#e.onValueChange=this.#n.bind(this)}onSetup(){J(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)}},YL=JL.prototype,Dk(YL,`values`),Dk(YL,`value`),XL=class extends hA{static props={thumbnails:null};#e;#t;#n;#r=ak(null);#i=ak([]);get value(){return this.#n.value}get disabled(){return!this.#i()?.length}constructor(){super(),this.#n=new gL,this.#n.onValueChange=this.#u.bind(this)}onSetup(){this.#e=oN(),Ek(rL)&&(this.#t=Tk(rL));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:xI(Math.max(0,e.startTime-n)),duration:SI(Math.min(r,e.endTime)-Math.max(n,e.startTime))}))}#a(){q(()=>this.#c())}onConnect(e){J(this.#c.bind(this)),J(this.#l.bind(this)),J(this.#o.bind(this)),Tj(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 sA(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=>wj(e,a));this.#n.value=o.toString(),o>=0&&xN(()=>{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&&Sk(t,`--progress`,lN(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;dk(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}))}},wI([Dk],XL.prototype,`value`,null),wI([Dk],XL.prototype,`disabled`,null),wI([Ok],XL.prototype,`getOptions`,null),ZL=[1,1.25,1.5,1.75,2,2.5,3,4],QL=class extends hA{static props={normalLabel:`Disabled`,gains:ZL};#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 gL,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#e=oN(),Ek(rL)&&(this.#t=Tk(rL))}onConnect(e){J(this.#r.bind(this)),J(this.#i.bind(this)),J(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})}},$L=QL.prototype,Dk($L,`value`),Dk($L,`disabled`),Ok($L,`getOptions`),eR=class extends hA{static props={disabled:!1,event:void 0,action:void 0};#e;#t=null;#n=null;onSetup(){this.#e=oN();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]`),J(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`&&gk(this.#t,`touchstart`,this.#s.bind(this),{passive:!0}),e=e===`pointerup`?`touchend`:`touchstart`),gk(this.#t,e,this.#o.bind(this),{passive:!1}))}#i=0;#a=-1;#o(e){if(!(this.$props.disabled()||_k(e)&&(e.button!==0||this.#e.activeMenu)||vk(e)&&this.#e.activeMenu||this.#c(e)||bN(e)||!this.#u(e))){if(e.MEDIA_GESTURE=!0,e.preventDefault(),!q(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(bN(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(!vk(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(q(this.$props.action),e),requestAnimationFrame(()=>{this.el.removeAttribute(`data-triggered`)})})}#u(e){if(!this.el)return!1;if(_k(e)||LCe(e)||vk(e)){let t=vk(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 iA(`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(q(this.#e.$state.currentTime)+(+i||0),t):this.#e.remote[UCe(r)](t),this.dispatch(`trigger`,{detail:e,trigger:t})}},tR=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 sA(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]})}},nR=class e extends hA{static props={textDir:`ltr`,exampleText:`Captions look like this.`};#e;static lib=ak(null);onSetup(){this.#e=oN(),this.setAttributes({"aria-hidden":DN(this.#t.bind(this))})}onAttach(e){e.style.setProperty(`pointer-events`,`none`)}onConnect(t){e.lib()||Promise.resolve().then(()=>(eN(),$M)).then(t=>e.lib.set(t)),J(this.#n.bind(this))}#t(){let{textTrack:e,remotePlaybackState:t,iOSControls:n}=this.#e.$state,r=e();return n()||t()===`connected`||!r||!tN(r)}#n(){if(!e.lib())return;let{viewType:t}=this.#e.$state;return t()===`audio`?this.#r():this.#s()}#r(){return J(this.#i.bind(this)),this.#u(null),()=>{this.el.textContent=``}}#i(){if(this.#t())return;this.#a();let{textTrack:e}=this.#e.$state;gk(e(),`cue-change`,this.#a.bind(this)),J(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=q(t),a=q(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 tR(n);return this.#e.textRenderers.add(r),J(this.#c.bind(this,n)),J(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&&gk(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();xk(e,`data-example`,``);let t=this.#_();xk(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 xk(e,`data-part`,`cue-display`),e}#_(){let e=document.createElement(`div`);return xk(e,`data-part`,`cue`),e}}})),rR,GTe=O((()=>{RA(),Cj(),cN(),rR=class extends hA{static props={src:null,alt:null,crossOrigin:null};static state=new gA({img:null,src:null,alt:null,crossOrigin:null,loading:!0,error:null,hidden:!1});#e;onSetup(){this.#e=oN(),this.#s(),this.#c(),this.#l(),this.#r()}onAttach(e){e.style.setProperty(`pointer-events`,`none`),J(this.#a.bind(this)),J(this.#s.bind(this)),J(this.#c.bind(this)),J(this.#l.bind(this)),J(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){J(this.#n.bind(this)),J(this.#u.bind(this))}#t(){let{error:e}=this.$state;return!ck(e())}#n(){let{canLoadPoster:e,poster:t}=this.#e.$state;!e()&&t()&&yj(t(),`preconnect`)}#r(){let{src:e}=this.$props,{poster:t,nativeControls:n}=this.#e.$state;this.el&&xk(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 sA(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)}}})),iR=O((()=>{_I(),mj()}));function KTe({src:e,type:t}){return XA({src:e,type:t})||ZA({src:e,type:t})||qTe({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 qTe({type:e}){return e?.includes(`/object`)}var JTe=O((()=>{iR()})),aR,oR=O((()=>{JTe(),aR=({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)(()=>typeof i.value==`object`?i.value:void 0),c=(0,t.computed)(()=>o.value?`video/object`:a.value||s.value?.type),l=(0,t.computed)(()=>{if(o.value)return o.value;let e=typeof i.value==`string`?i.value:s.value?.src;return e instanceof Blob?e:typeof e==`string`?e.replace(`/download`,`/stream`):e});return{normalizedSrcObject:(0,t.computed)(()=>KTe({src:l.value,type:c.value??``}))}}})),YTe=O((()=>{}));function XTe(e,n){let r=(0,t.resolveComponent)(`wt-icon`);return(0,t.openBlock)(),(0,t.createElementBlock)(`media-mute-button`,cR,[(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 sR,cR,lR,ZTe=O((()=>{YTe(),R(),sR={},cR={class:`mute-button`},lR=L(sR,[[`render`,XTe],[`__scopeId`,`data-v-45e5719d`]])})),uR,dR,fR=O((()=>{oh(),uR={class:`play-button`},dR=(0,t.defineComponent)({__name:`play-button`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`media-play-button`,uR,[(0,t.createVNode)(ah,{icon:`plyr-play`,type:`play`,class:`play-icon`,size:`sm`}),(0,t.createVNode)(ah,{icon:`plyr-pause`,type:`pause`,class:`pause-icon`,size:`sm`})]))}})})),QTe=O((()=>{})),pR,$Te=O((()=>{fR(),fR(),QTe(),R(),pR=L(dR,[[`__scopeId`,`data-v-e6149485`]])})),mR,hR,gR=O((()=>{_O(),mR={class:`time-slider media-slider`},hR=(0,t.defineComponent)({__name:`time-slider`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`media-time-slider`,mR,[(0,t.createVNode)(gO,{class:`time-slider__slider`})]))}})})),eEe=O((()=>{})),_R,tEe=O((()=>{gR(),gR(),eEe(),R(),_R=L(hR,[[`__scopeId`,`data-v-e57a9871`]])})),vR,yR,bR=O((()=>{_O(),vR={class:`volume-slider media-slider`},yR=(0,t.defineComponent)({__name:`volume-slider`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`media-volume-slider`,vR,[(0,t.createVNode)(gO,{class:`volume-slider__slider`})]))}})})),nEe=O((()=>{})),xR,rEe=O((()=>{bR(),bR(),nEe(),R(),xR=L(yR,[[`__scopeId`,`data-v-b92a4daf`]])})),SR,CR,wR,TR=O((()=>{Xp(),SCe(),LO(),oR(),ZTe(),$Te(),tEe(),rEe(),SR=[`src`,`loop`,`autoplay`,`playback-rate`],CR={class:`controls-group`},wR=(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}=aR({src:a});function s(){let e=typeof r.src==`string`?r.src:r.src?.src,t=typeof r.download==`function`?r.download(typeof e==`string`?e:``):String(r.download),n=typeof r.src==`object`?r.src?.type?.split(`/`).pop():void 0,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`,CR,[(0,t.createVNode)(pR),(0,t.createVNode)(_R),(0,t.createVNode)(IO,{countdown:r.countdownTimeMode},null,8,[`countdown`]),r.hideMuteButton?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(lR,{key:0})),r.hideVolumeSlider?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(xR,{key:1})),r.hideSettings?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(jO,{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)(V).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)(V).SM},null,8,[`size`])])):(0,t.createCommentVNode)(``,!0)])],42,SR)}}})})),iEe=O((()=>{})),aEe=A({default:()=>ER}),ER,oEe=O((()=>{TR(),TR(),iEe(),R(),ER=L(wR,[[`__scopeId`,`data-v-146dd594`]])})),DR,OR,kR=O((()=>{Wb(),Sy(),DR={class:`wt-search-bar__icon-controls`},OR=(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`,`focus`],setup(e,{emit:n}){let r=e,i=n,{v:a,customValidators:o}=(0,t.toRefs)(r),{invalid:s}=Ub({v:a,customValidators:o}),c=(0,t.computed)(()=>s.value?`error`:`default`),l=(0,t.computed)(()=>r.value||r.searchMode||r.hint),u=xy(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 u=(0,t.resolveComponent)(`wt-icon`),m=(0,t.resolveComponent)(`wt-icon-btn`),h=(0,t.resolveComponent)(`wt-hint`),g=(0,t.resolveComponent)(`wt-radio`),_=(0,t.resolveComponent)(`wt-context-menu`),v=(0,t.resolveComponent)(`wt-input-text`),y=(0,t.resolveDirective)(`tooltip`);return(0,t.openBlock)(),(0,t.createBlock)(v,{"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,onFocus:r[1]||=e=>i(`focus`,e)},(0,t.createSlots)({prefix:(0,t.withCtx)(()=>[(0,t.createVNode)(u,{color:c.value,icon:typeof e.searchMode==`object`&&e.searchMode?.icon||`search`},null,8,[`color`,`icon`])]),_:2},[l.value?{name:`suffix`,fn:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,DR,[e.value?((0,t.openBlock)(),(0,t.createBlock)(m,{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)(h,{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)(_,{key:2,options:e.searchModeOptions,onClick:p},{activator:(0,t.withCtx)(({toggle:e})=>[(0,t.withDirectives)((0,t.createVNode)(m,{color:(0,t.unref)(s)?`error`:`default`,icon:`filter`,onClick:e},null,8,[`color`,`onClick`]),[[y,n.$t(`webitelUI.searchBar.settingsHint`)]])]),option:(0,t.withCtx)(({value:n,text:r})=>[(0,t.createVNode)(g,{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`])}}})})),sEe=O((()=>{})),cEe=A({default:()=>AR}),AR,lEe=O((()=>{kR(),kR(),sEe(),R(),AR=L(OR,[[`__scopeId`,`data-v-33881702`]])})),jR,uEe=O((()=>{Tp(),jR=[{locale:`webitelUI.statusSelect.online`,color:`success`,value:wp.ONLINE},{locale:`webitelUI.statusSelect.pause`,color:`primary`,value:wp.PAUSE},{locale:`webitelUI.statusSelect.offline`,color:`secondary`,value:wp.OFFLINE},{locale:`webitelUI.statusSelect.breakOut`,color:`break-out`,value:wp.BREAK_OUT}]})),MR,NR=O((()=>{iy(),Xp(),by(),uEe(),MR=(0,t.defineComponent)({__name:`wt-status-select`,props:{status:{default:wp.OFFLINE},statusDuration:{default:0},options:{},disabled:{type:Boolean,default:!1}},emits:[`change`],setup(e,{emit:n}){let r=e,i=n,{t:a}=Tv(),o=(0,t.computed)(()=>r.options?r.options:jR.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.filter(e=>e.value!==wp.BREAK_OUT&&(e.value!==wp.OFFLINE||r.status!==wp.OFFLINE))),l=(0,t.computed)(()=>typeof r.statusDuration==`string`?r.statusDuration:r.statusDuration===void 0?s.value?.text??``:yy(r.statusDuration));function u(e){i(`change`,e.value)}return(n,r)=>{let i=(0,t.resolveComponent)(`wt-indicator`),a=(0,t.resolveComponent)(`wt-single-select`);return(0,t.openBlock)(),(0,t.createBlock)(a,{"show-clear":!1,options:c.value,filterable:!1,"model-value":s.value,disabled:e.disabled,class:`wt-status-select`,"data-key":`value`,size:(0,t.unref)(V).SM,"onUpdate:modelValue":u},{value:(0,t.withCtx)(()=>[(0,t.createVNode)(i,{color:s.value?.color,text:l.value},null,8,[`color`,`text`])]),option:(0,t.withCtx)(({option:e})=>[(0,t.createVNode)(i,{color:e.color,text:e.text},null,8,[`color`,`text`])]),_:1},8,[`options`,`model-value`,`disabled`,`size`])}}})})),dEe=A({default:()=>PR}),PR,fEe=O((()=>{NR(),NR(),PR=MR})),pEe=O((()=>{})),mEe=A({default:()=>VR}),FR,IR,LR,RR,zR,BR,VR,hEe=O((()=>{pEe(),R(),FR={class:`wt-stepper`},IR={class:`wt-stepper-header`},LR={class:`wt-stepper-steps`},RR={class:`wt-stepper-steps__wrapper`},zR={class:`wt-stepper-description`},BR={__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`,FR,[(0,t.createElementVNode)(`div`,IR,[(0,t.createElementVNode)(`div`,LR,[((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`,RR,[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`,zR,(0,t.toDisplayString)(r.value),1)],!0),(0,t.renderSlot)(e.$slots,`main`,{},void 0,!0)])}}},VR=L(BR,[[`__scopeId`,`data-v-7b06c506`]])})),HR,UR,WR=O((()=>{Xp(),Jm(),Lb(),pO(),HR=[`onPointerenter`,`onPointerleave`],UR=(0,t.defineComponent)({__name:`wt-table-column-filter`,props:{active:{type:Boolean}},setup(e){let n=e,r=(0,t.useSlots)(),i=(e,t)=>{n.active&&r.preview&&t(e)},a=(e,t,n)=>{n(),t(e)};return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(fO,{class:`wt-table-column-filter`},{activator:(0,t.withCtx)(({toggle:o})=>[(0,t.createVNode)(fO,{class:`wt-table-column-filter__preview`},{activator:(0,t.withCtx)(({show:n,hide:s})=>[(0,t.createElementVNode)(`div`,{class:`wt-table-column-filter__wrapper`,"data-pc-section":`columnfilterbutton`,onPointerenter:e=>i(e,n),onPointerleave:s},[(0,t.createVNode)(qm,{hidden:!e.active},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ib,{icon:`table-filter`,size:(0,t.unref)(V).SM,onClick:e=>a(e,o,s),onMousedown:r[0]||=(0,t.withModifiers)(()=>{},[`stop`])},null,8,[`size`,`onClick`])],void 0,!0),_:2},1032,[`hidden`])],40,HR)]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`preview`,{},void 0,!0)]),_:2},1024)]),default:(0,t.withCtx)(({hide:e})=>[(0,t.renderSlot)(n.$slots,`default`,(0,t.normalizeProps)((0,t.guardReactiveProps)({hide:e})),void 0,!0)]),_:3}))}})})),gEe=O((()=>{})),GR,_Ee=O((()=>{WR(),WR(),gEe(),R(),GR=L(UR,[[`__scopeId`,`data-v-e55022a4`]])})),KR,qR,JR,YR,XR,ZR,QR=O((()=>{zy(),iy(),px(),_Ee(),KR={class:`wt-table`},qR={key:0,class:`wt-table__empty`},JR={class:`wt-table__th__title`},YR={class:`wt-table__td__actions`},XR=40,ZR=(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},stripedRows:{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:XR},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},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}=Tv(),a=(0,t.useSlots)(),o=n,s=({dragIndex:e,dropIndex:t})=>o(`reorder:row`,{oldIndex:e,newIndex:t}),c=(0,t.useTemplateRef)(`table`),l=(0,t.ref)(0),u=(0,t.ref)([]),{addTableDragListener:d,removeTableDragListener:f}=ux(c,r.reorderableColumns),p=(0,t.computed)(()=>r.selectable?r.selected||r.data.filter(e=>e._isSelected):[]),m=(0,t.computed)(()=>{let e=r.headers.map(e=>!e.text&&e.locale?{...e,text:typeof e.locale==`string`?i(e.locale):i(...e.locale)}:e),t=e.filter(e=>e.reorderable===!1),n=e.filter(e=>e.reorderable!==!1);return[...t,...n]}),h=[`row-select`,`row-reorder`,`row-actions`,`row-expander`],g=(0,t.computed)(()=>[...m.value.filter(e=>e.reorderable===!1).map(e=>e.field||e.value),...h]),_=e=>e.show===!1,v=e=>({minWidth:e.width||`140px`}),y=(0,t.computed)(()=>Object.keys(a).some(e=>e.includes(`-footer`))),b=(0,t.computed)(()=>Object.keys(a).some(e=>e===`footer`)),x=(0,t.computed)(()=>!!a.empty&&!r.loading&&!r.data.length),S=(0,t.computed)(()=>p.value.length===r.data.length&&r.data.length>0),C=(0,t.computed)(()=>r.headers.find(e=>e.sort===Ly.ASC||e.sort===Ly.DESC)?.field??null),w=({sortField:e})=>{let t=m.value.find(t=>t.field===e);if(!t||!T(t))return;let n=Ry(t.sort);o(`sort`,t,n)},T=({sort:e})=>r.sortable&&e!==void 0,ee=()=>{r.selected?S.value?o(`update:selected`,[]):o(`update:selected`,[...r.data]):S.value?r.data.forEach(e=>{e._isSelected=!1}):r.data.forEach(e=>{e._isSelected=!0})},te=(e,t)=>{r.selected?t?o(`update:selected`,[...p.value,e]):o(`update:selected`,p.value.filter(t=>t!==e)):e._isSelected=!e._isSelected},ne=({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`})},re=()=>{let e=c.value?.$el?.querySelector(`.p-datatable-table-container`)?.scrollLeft,n=c.value?.d_columnOrder.filter(e=>!g.value.includes(e));l.value+=1,o(`column-reorder`,n),(0,t.nextTick)(()=>{d();let t=c.value?.$el?.querySelector(`.p-datatable-table-container`);t&&(t.scrollLeft=e)})},ie=e=>u.value.some(t=>t?.id===e?.id),E=e=>{let t=u.value.findIndex(t=>t.id===e.id);t===-1?u.value.push(e):u.value.splice(t,1)},ae=(0,t.computed)(()=>{if(r.lazy)return{lazy:r.lazy,onLazyLoad:r.onLoading,itemSize:r.itemSize,numToleratedItems:r.data.length,totalRecords:r.data.length,autoSize:!0}});return(0,t.onMounted)(()=>{d()}),(0,t.onUnmounted)(()=>{f()}),(n,i)=>{let a=(0,t.resolveComponent)(`wt-icon-btn`),o=(0,t.resolveComponent)(`p-column`),d=(0,t.resolveComponent)(`wt-icon`),f=(0,t.resolveComponent)(`wt-checkbox`),h=(0,t.resolveComponent)(`p-table`),g=(0,t.resolveDirective)(`tooltip`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,KR,[x.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,qR,[(0,t.renderSlot)(n.$slots,`empty`,{},void 0,!0)])):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(),(0,t.createBlock)(h,{key:l.value,ref_key:`table`,ref:c,"expanded-rows":u.value,"reorderable-columns":e.reorderableColumns,"resizable-columns":e.resizableColumns,"row-class":e.rowClass,"row-style":e.rowStyle,"show-headers":!e.headless,"striped-rows":e.stripedRows,value:e.data,"sort-field":C.value,"data-key":r.dataKey,class:(0,t.normalizeClass)([{"wt-table__wrapper--overlay":x.value},`wt-table`]),"column-resize-mode":`expand`,lazy:``,"scroll-height":`flex`,scrollable:``,"virtual-scroller-options":ae.value,pt:{tableContainer:`wt-scrollbar`},onSort:w,"onUpdate:expandedRows":i[0]||=e=>u.value=e,onColumnResizeEnd:ne,onColumnReorder:re,onRowReorder:s},(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)(o,{key:0,pt:{columnresizer:{class:{hidden:!0}}},"reorderable-column":!1,"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:ie(e)?`arrow-down`:`arrow-right`,onClick:(0,t.withModifiers)(t=>E(e),[`stop`])},null,8,[`disabled`,`icon`,`onClick`])]),_:1})):(0,t.createCommentVNode)(``,!0),e.rowReorder?((0,t.openBlock)(),(0,t.createBlock)(o,{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)(o,{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:S.value,"onUpdate:selected":ee},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=>te(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)(o,{key:e.value,"column-key":e.field||e.value,field:e.field,"reorderable-column":e.reorderable!==!1,hidden:_(e),pt:{root:{"data-column-field":e.field}},sortable:T(e)},(0,t.createSlots)({header:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`header-${e.value}`,{index:r,header:e},()=>[(0,t.createElementVNode)(`div`,{style:(0,t.normalizeStyle)(v(e)),class:`wt-table__th__content typo-body-1-bold`},[(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`span`,JR,[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)])),[[g,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),e.filter&&n.$slots[`column-filter`]?((0,t.openBlock)(),(0,t.createBlock)(GR,{key:2,active:!!e.filtered},{default:(0,t.withCtx)(({hide:r})=>[(0,t.renderSlot)(n.$slots,`column-filter`,{header:e,hide:r,formView:!0},void 0,!0)]),preview:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`column-filter`,{header:e,formView:!1},void 0,!0)]),_:2},1032,[`active`])):(0,t.createCommentVNode)(``,!0)],4)],!0)]),body:(0,t.withCtx)(({data:r,index:i})=>[(0,t.createElementVNode)(`div`,{style:(0,t.normalizeStyle)(v(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},[y.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`,`reorderable-column`,`hidden`,`pt`,`sortable`]))),128)),e.gridActions?((0,t.openBlock)(),(0,t.createBlock)(o,{key:3,frozen:e.fixedActions,"reorderable-column":!1,"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`,YR,[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},[b.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`,`striped-rows`,`value`,`sort-field`,`data-key`,`class`,`virtual-scroller-options`]))])}}})})),vEe=O((()=>{})),yEe=A({default:()=>$R}),$R,bEe=O((()=>{QR(),QR(),vEe(),R(),$R=L(ZR,[[`__scopeId`,`data-v-4f7c04e7`]])})),ez,tz,nz=O((()=>{ez={class:`wt-table-actions`},tz=(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`,ez,[(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),e.isSettingsBadge?((0,t.openBlock)(),(0,t.createBlock)(d,{key:5},{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})):(0,t.createCommentVNode)(``,!0)])}}})})),xEe=O((()=>{})),SEe=A({default:()=>rz}),rz,CEe=O((()=>{nz(),nz(),xEe(),R(),rz=L(tz,[[`__scopeId`,`data-v-af061e66`]])})),iz=k(((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]}})})),az,wEe=O((()=>{az=`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`})),oz,TEe=O((()=>{oz=`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`})),sz,cz,lz,uz=O((()=>{sz=ye(iz(),1),iy(),wEe(),TEe(),cz={class:`wt-table-column-select`},lz=(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}=Tv(),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(String(t[0]),...t.slice(1)):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)),f=(0,t.computed)(()=>s.value.some(e=>e.show));function p(){s.value=(0,sz.default)(r.headers)}function m(){l.value=!0}function h(){l.value=!1,c.value=``}function g(){i(`change`,s.value),h()}return(0,t.watch)(l,()=>{p()}),(n,r)=>{let i=(0,t.resolveComponent)(`wt-icon-btn`),a=(0,t.resolveComponent)(`wt-icon`),s=(0,t.resolveComponent)(`wt-input-text`),p=(0,t.resolveComponent)(`wt-checkbox`),_=(0,t.resolveComponent)(`wt-empty`),v=(0,t.resolveComponent)(`wt-button`),y=(0,t.resolveComponent)(`wt-popup`),b=(0,t.resolveDirective)(`tooltip`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,cz,[(0,t.withDirectives)((0,t.createVNode)(i,{icon:`column-select`,onClick:m},null,512),[[b,n.$t(`webitelUI.tableColumnSelect.title`)]]),(0,t.createVNode)(y,{shown:l.value,class:`wt-table-column-select__popup`,onClose:h},{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,"wt-table-column-select__popup-list-wrap--empty":!d.value.length}])},[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)(p,{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)(_,{key:1,image:(0,t.unref)(o)?(0,t.unref)(az):(0,t.unref)(oz),text:n.$t(`webitelUI.empty.text.filters`),size:`sm`},null,8,[`image`,`text`]))],2)]),actions:(0,t.withCtx)(()=>[(0,t.createVNode)(v,{disabled:!f.value,onClick:g},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.$t(`reusable.add`)),1)],void 0,!0),_:1},8,[`disabled`]),(0,t.createVNode)(v,{color:`secondary`,onClick:h},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.$t(`reusable.cancel`)),1)],void 0,!0),_:1})]),_:1},8,[`shown`])])}}})})),EEe=O((()=>{})),DEe=A({default:()=>dz}),dz,OEe=O((()=>{uz(),uz(),EEe(),R(),dz=L(lz,[[`__scopeId`,`data-v-3cc9bbe8`]])})),kEe=O((()=>{})),AEe=A({default:()=>gz});function jEe(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`,mz,(0,t.toDisplayString)(n.text),1)],!0)],10,pz))),128)),(0,t.createElementVNode)(`div`,hz,[(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 fz,pz,mz,hz,gz,MEe=O((()=>{kEe(),R(),fz={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}}},pz=[`value`,`onClick`],mz={style:{display:`block`}},hz={class:`wt-tabs__underline`},gz=L(fz,[[`render`,jEe],[`__scopeId`,`data-v-a6f6f0f3`]])})),_z,vz=O((()=>{_z=(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:{type:[Object,null,Boolean],default:null},regleValidation:{},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,"regle-validation":e.regleValidation,"custom-validators":e.customValidators,required:e.required,disabled:e.disabled,"hide-input-info":e.hideInputInfo},null,8,[`model-value`,`label`,`label-props`,`name`,`max`,`min`,`v`,`regle-validation`,`custom-validators`,`required`,`disabled`,`hide-input-info`])}}})})),NEe=A({default:()=>yz}),yz,PEe=O((()=>{vz(),vz(),yz=_z})),bz,xz,Sz,Cz,wz=O((()=>{iy(),Xp(),Wb(),bz={class:`wt-timepicker__wrapper`},xz=3600,Sz=60,Cz=(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:{type:[Object,null,Boolean],default:null},regleValidation:{},customValidators:{default:()=>[]}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,{t:a}=Tv(),{v:o,customValidators:s,regleValidation:c}=(0,t.toRefs)(r),{isValidation:l,invalid:u,validationText:d,validationTextColor:f}=Ub({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/xz)},set(e){if(!Number.isFinite(+e))return;let t=r.dateMode?new Date(+r.modelValue).setHours(e):Math.max(0,+r.modelValue-y.value*xz+e*xz);i(`update:modelValue`,t)}}),b=(0,t.computed)({get(){return r.dateMode?new Date(+r.modelValue).getMinutes():Math.floor(+r.modelValue/Sz%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*Sz+e*Sz);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*xz+y.value*xz;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`),w=(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`,bz,[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),"regle-validation":(0,t.unref)(c),"custom-validators":(0,t.unref)(s),"hide-input-info":``,onBlur:C},null,8,[`model-value`,`disabled`,`label`,`v`,`regle-validation`,`custom-validators`])):(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),"regle-validation":(0,t.unref)(c),"custom-validators":(0,t.unref)(s),"hide-input-info":``},null,8,[`model-value`,`disabled`,`label`,`min-value`,`v`,`regle-validation`,`custom-validators`])):(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),"regle-validation":(0,t.unref)(c),"custom-validators":(0,t.unref)(s),"hide-input-info":``},null,8,[`model-value`,`disabled`,`label`,`min-value`,`v`,`regle-validation`,`custom-validators`])):(0,t.createCommentVNode)(``,!0)]),(0,t.unref)(l)&&(0,t.unref)(d)?((0,t.openBlock)(),(0,t.createBlock)(w,{key:1,color:(0,t.unref)(f),variant:(0,t.unref)(Wp).SIMPLE,size:(0,t.unref)(V).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)}}})})),FEe=O((()=>{})),IEe=A({default:()=>Tz}),Tz,LEe=O((()=>{wz(),wz(),FEe(),R(),Tz=L(Cz,[[`__scopeId`,`data-v-5c9f2a80`]])})),Ez=k(((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}})),REe=k(((e,t)=>{var n;if(!Object.keys){var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=Ez(),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})),Dz=k(((e,t)=>{var n=Array.prototype.slice,r=Ez(),i=Object.keys,a=i?function(e){return i(e)}:REe(),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})),Oz=k(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),kz=k(((e,t)=>{t.exports=SyntaxError})),Az=k(((e,t)=>{t.exports=TypeError})),zEe=k(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),jz=k(((e,t)=>{var n=zEe();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),Mz=k(((e,t)=>{var n=Oz(),r=kz(),i=Az(),a=jz();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.`)}})),Nz=k(((e,t)=>{var n=Oz(),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})),Pz=k(((e,t)=>{var n=Dz(),r=typeof Symbol==`function`&&typeof Symbol(`foo`)==`symbol`,i=Object.prototype.toString,a=Array.prototype.concat,o=Mz(),s=function(e){return typeof e==`function`&&i.call(e)===`[object Function]`},c=Nz()(),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})),Fz=k(((e,t)=>{t.exports=Object})),Iz=k(((e,t)=>{t.exports=Error})),BEe=k(((e,t)=>{t.exports=EvalError})),VEe=k(((e,t)=>{t.exports=RangeError})),HEe=k(((e,t)=>{t.exports=ReferenceError})),UEe=k(((e,t)=>{t.exports=URIError})),WEe=k(((e,t)=>{t.exports=Math.abs})),GEe=k(((e,t)=>{t.exports=Math.floor})),KEe=k(((e,t)=>{t.exports=Math.max})),qEe=k(((e,t)=>{t.exports=Math.min})),JEe=k(((e,t)=>{t.exports=Math.pow})),YEe=k(((e,t)=>{t.exports=Math.round})),XEe=k(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),ZEe=k(((e,t)=>{var n=XEe();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),Lz=k(((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}})),Rz=k(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=Lz();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),zz=k(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),Bz=k(((e,t)=>{t.exports=Fz().getPrototypeOf||null})),QEe=k(((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}})),Vz=k(((e,t)=>{var n=QEe();t.exports=Function.prototype.bind||n})),Hz=k(((e,t)=>{t.exports=Function.prototype.call})),Uz=k(((e,t)=>{t.exports=Function.prototype.apply})),$Ee=k(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),Wz=k(((e,t)=>{var n=Vz(),r=Uz(),i=Hz();t.exports=$Ee()||n.call(i,r)})),Gz=k(((e,t)=>{var n=Vz(),r=Az(),i=Hz(),a=Wz();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),eDe=k(((e,t)=>{var n=Gz(),r=jz(),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})),Kz=k(((e,t)=>{var n=zz(),r=Bz(),i=eDe();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})),qz=k(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=Vz().call(n,r)})),Jz=k(((e,t)=>{var n,r=Fz(),i=Iz(),a=BEe(),o=VEe(),s=HEe(),c=kz(),l=Az(),u=UEe(),d=WEe(),f=GEe(),p=KEe(),m=qEe(),h=JEe(),g=YEe(),_=ZEe(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=jz(),x=Oz(),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=Rz()(),T=Kz(),ee=Bz(),te=zz(),ne=Uz(),re=Hz(),ie={},E=typeof Uint8Array>`u`||!T?n:T(Uint8Array),ae={__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%":ie,"%AsyncGenerator%":ie,"%AsyncGeneratorFunction%":ie,"%AsyncIteratorPrototype%":ie,"%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%":ie,"%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%":E,"%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%":re,"%Function.prototype.apply%":ne,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":ee,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":te};if(T)try{null.error}catch(e){ae[`%Error.prototype%`]=T(T(e))}var oe=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 ae[t]=n,n},se={__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`]},ce=Vz(),le=qz(),D=ce.call(re,Array.prototype.concat),ue=ce.call(ne,Array.prototype.splice),de=ce.call(re,String.prototype.replace),fe=ce.call(re,String.prototype.slice),pe=ce.call(re,RegExp.prototype.exec),me=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,he=/\\(\\)?/g,ge=function(e){var t=fe(e,0,1),n=fe(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 de(e,me,function(e,t,n,i){r[r.length]=n?de(i,he,`$1`):t||e}),r},O=function(e,t){var n=e,r;if(le(se,n)&&(r=se[n],n=`%`+r[0]+`%`),le(ae,n)){var i=ae[n];if(i===ie&&(i=oe(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(pe(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ge(e),r=n.length>0?n[0]:``,i=O(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],ue(n,D([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=fe(p,0,1),h=fe(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+`%`,le(ae,a))o=ae[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=le(o,p),o=o[p];f&&!s&&(ae[a]=o)}}return o}})),tDe=k(((e,t)=>{var n=Jz(),r=Mz(),i=Nz()(),a=jz(),o=Az(),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}})),nDe=k(((e,t)=>{var n=Vz(),r=Uz(),i=Wz();t.exports=function(){return i(n,r,arguments)}})),Yz=k(((e,t)=>{var n=tDe(),r=Oz(),i=Gz(),a=nDe();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})),Xz=k(((e,t)=>{var n=Jz(),r=Gz(),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}})),Zz=k(((e,t)=>{var n=Dz(),r=Lz()(),i=Xz(),a=Fz(),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}})),Qz=k(((e,t)=>{var n=Zz(),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}})),rDe=k(((e,t)=>{var n=Pz(),r=Qz();t.exports=function(){var e=r();return n(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}})),iDe=k(((e,t)=>{var n=Pz(),r=Yz(),i=Zz(),a=Qz(),o=rDe(),s=r.apply(a()),c=function(e,t){return s(Object,arguments)};n(c,{getPolyfill:a,implementation:i,shim:o}),t.exports=c})),$z=k(((e,t)=>{var n=Jz(),r=Yz(),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}})),aDe=k(((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})),oDe=k(((e,t)=>{var n=Mz(),r=Nz()(),i=aDe().functionsHaveConfigurableNames(),a=Az();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}})),eB=k(((e,t)=>{var n=oDe(),r=Az(),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)})),tB=k(((e,t)=>{var n=eB(),r=Pz().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}})),sDe=k(((e,t)=>{var n=Pz().supportsDescriptors,r=tB(),i=jz(),a=Object.defineProperty,o=Iz(),s=Kz(),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}})),cDe=k(((e,t)=>{var n=Pz(),r=Yz(),i=eB(),a=tB(),o=sDe(),s=r(a());n(s,{getPolyfill:a,implementation:i,shim:o}),t.exports=s})),nB=k(((e,t)=>{var n=Lz();t.exports=function(){return n()&&!!Symbol.toStringTag}})),rB=k(((e,t)=>{var n=nB()(),r=Xz()(`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})),lDe=k(((e,t)=>{t.exports={}})),iB=k(((e,t)=>{Xe();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,ee=typeof BigInt==`function`?BigInt.prototype.valueOf:null,te=Object.getOwnPropertySymbols,ne=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,re=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,ie=typeof Symbol==`function`&&Symbol.toStringTag?Symbol.toStringTag:null,E=Object.prototype.propertyIsEnumerable,ae=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function oe(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 se=lDe(),ce=se.custom,le=ve(ce)?ce:null,D={__proto__:null,double:`"`,single:`'`},ue={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(xe(s,`quoteStyle`)&&!xe(D,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(xe(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=xe(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(xe(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(xe(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 je(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?oe(t,f):f}if(typeof t==`bigint`){var m=String(t)+`n`;return d?oe(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 me(t)?`[Array]`:`[Object]`;var g=Le(s,r);if(o===void 0)o=[];else if(we(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 xe(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!ge(t)){var x=Ce(t),T=Re(t,y);return`[Function`+(x?`: `+x:` (anonymous)`)+`]`+(T.length>0?` { `+C.call(T,`, `)+` }`:``)}if(ve(t)){var te=re?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):ne.call(t);return typeof t==`object`&&!re?Ne(te):te}if(Ae(t)){for(var ce=`<`+b.call(String(t.nodeName)),ue=t.attributes||[],pe=0;pe<ue.length;pe++)ce+=` `+ue[pe].name+`=`+de(fe(ue[pe].value),`double`,s);return ce+=`>`,t.childNodes&&t.childNodes.length&&(ce+=`...`),ce+=`</`+b.call(String(t.nodeName))+`>`,ce}if(me(t)){if(t.length===0)return`[]`;var be=Re(t,y);return g&&!Ie(be)?`[`+j(be,g)+`]`:`[ `+C.call(be,`, `)+` ]`}if(O(t)){var Me=Re(t,y);return!(`cause`in Error.prototype)&&`cause`in t&&!E.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(le&&typeof t[le]==`function`&&se)return se(t,{depth:h-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(Te(t)){var ze=[];return a&&a.call(t,function(e,n){ze.push(y(n,t,!0)+` => `+y(e,t))}),Fe(`Map`,i.call(t),ze,g)}if(Oe(t)){var Be=[];return l&&l.call(t,function(e){Be.push(y(e,t))}),Fe(`Set`,c.call(t),Be,g)}if(Ee(t))return Pe(`WeakMap`);if(ke(t))return Pe(`WeakSet`);if(De(t))return Pe(`WeakRef`);if(A(t))return Ne(y(Number(t)));if(ye(t))return Ne(y(ee.call(t)));if(_e(t))return Ne(p.call(t));if(k(t))return Ne(y(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||Ye!==void 0&&t===Ye)return`{ [object globalThis] }`;if(!he(t)&&!ge(t)){var Ve=Re(t,y),He=ae?ae(t)===Object.prototype:t instanceof Object||t.constructor===Object,Ue=t instanceof Object?``:`null prototype`,We=!He&&ie&&Object(t)===t&&ie in t?_.call(Se(t),8,-1):Ue?`Object`:``,Ge=(He||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``)+(We||Ue?`[`+C.call(S.call([],We||[],Ue||[]),`: `)+`] `:``);return Ve.length===0?Ge+`{}`:g?Ge+`{`+j(Ve,g)+`}`:Ge+`{ `+C.call(Ve,`, `)+` }`}return String(t)};function de(e,t,n){var r=D[n.quoteStyle||t];return r+e+r}function fe(e){return v.call(String(e),/"/g,`&quot;`)}function pe(e){return!ie||!(typeof e==`object`&&(ie in e||e[ie]!==void 0))}function me(e){return Se(e)===`[object Array]`&&pe(e)}function he(e){return Se(e)===`[object Date]`&&pe(e)}function ge(e){return Se(e)===`[object RegExp]`&&pe(e)}function O(e){return Se(e)===`[object Error]`&&pe(e)}function k(e){return Se(e)===`[object String]`&&pe(e)}function A(e){return Se(e)===`[object Number]`&&pe(e)}function _e(e){return Se(e)===`[object Boolean]`&&pe(e)}function ve(e){if(re)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!ne)return!1;try{return ne.call(e),!0}catch{}return!1}function ye(e){if(!e||typeof e!=`object`||!ee)return!1;try{return ee.call(e),!0}catch{}return!1}var be=Object.prototype.hasOwnProperty||function(e){return e in this};function xe(e,t){return be.call(e,t)}function Se(e){return m.call(e)}function Ce(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function we(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 Te(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 Ee(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 De(e){if(!f||!e||typeof e!=`object`)return!1;try{return f.call(e),!0}catch{}return!1}function Oe(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 ke(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 Ae(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function je(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return je(_.call(e,0,t.maxStringLength),t)+r}var i=ue[t.quoteStyle||`single`];return i.lastIndex=0,de(v.call(v.call(e,i,`\\$1`),/[\x00-\x1f]/g,Me),`single`,t)}function Me(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 Ne(e){return`Object(`+e+`)`}function Pe(e){return e+` { ? }`}function Fe(e,t,n,r){var i=r?j(n,r):C.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function Ie(e){for(var t=0;t<e.length;t++)if(we(e[t],`
1415
+ `);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 _F(e){return(hk(e)?e:[e]).map(e=>fk(e)?{src:e,type:vF(e)}:{...e,type:vF(e.src,e.type)})}function vF(e,t){return fk(t)&&t.length?t:fk(e)&&fI.has(e)?fI.get(e):!t&&QA({src:e,type:``})?`application/x-mpegurl`:!t&&$A({src:e,type:``})?`application/dash+xml`:!fk(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 yF(e,t){return e?.src===t?.src&&e?.type===t?.type}var bF,xF,SF,CF,wF,TF,EF,DF,OF,kF,AF,jF,MF,NF,PF,FF,IF,LF,RF,zF,BF,VF,HF,UF,WF,GF,KF,qF,JF,YF,XF,ZF,QF,$F,eI,tI,nI,rI,iI,aI,oI,sI,cI,lI,uI,dI,fI,pI,mI,hI,gI,_I=O((()=>{RA(),VA(),mj(),vj(),Cj(),aN(),cN(),fN(),kN(),jN(),PN(),zN(),Vwe(),bF=class extends oA{items=[];[zA.readonly]=!1;get length(){return this.items.length}get readonly(){return this[zA.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()}[zA.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 iA(`add`,{detail:e,trigger:t})))}[zA.remove](e,t){let n=this.items.indexOf(e);n>=0&&(this[zA.onRemove]?.(e,t),this.items.splice(n,1),this.dispatchEvent(new iA(`remove`,{detail:e,trigger:t})))}[zA.reset](e){for(let t of[...this.items])this[zA.remove](t,e);this.items=[],this[zA.setReadonly](!1,e),this[zA.onReset]?.()}[zA.setReadonly](e,t){this[zA.readonly]!==e&&(this[zA.readonly]=e,this.dispatchEvent(new iA(`readonly-change`,{detail:e,trigger:t})))}},xF=KN.fullscreenEnabled,SF=class extends mA{#e=!1;#t=!1;get active(){return this.#t}get supported(){return xF}onConnect(){new sA(KN).add(`fullscreenchange`,this.#r.bind(this)).add(`fullscreenerror`,this.#i.bind(this)),WO(this.#n.bind(this))}#n(){xF&&this.exit().catch(sk)}#r(e){let t=lF(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||lF(this.el)?void 0:(uF(),KN.requestFullscreen(this.el))}catch(e){throw this.#e=!1,e}}async exit(){if(!(!this.el||!lF(this.el)))return uF(),KN.exitFullscreen()}},CF=class e extends mA{#e=ak(this.#o());#t=ak(!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=HA();get supported(){return e.supported}onConnect(){if(this.supported)gk(screen.orientation,`change`,this.#i.bind(this));else{let e=window.matchMedia(`(orientation: landscape)`);e.onchange=this.#i.bind(this),WO(()=>e.onchange=null)}WO(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:q(this.#e),lock:this.#n},trigger:e})}async lock(e){q(this.#t)||this.#n===e||(this.#a(),await screen.orientation.lock(e),this.#t.set(!0),this.#n=e)}async unlock(){q(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`}},wF=new gA({artist:``,artwork:null,audioTrack:null,audioTracks:[],autoPlay:!1,autoPlayError:null,audioGain:null,buffered:new _j,canLoad:!1,canLoadPoster:!1,canFullscreen:!1,canOrientScreen:HA(),canPictureInPicture:!1,canPlay:!1,clipStartTime:0,clipEndTime:0,controls:!1,get iOSControls(){return rj&&this.mediaType===`video`&&(!this.playsInline||!KN.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 _j,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 _j,seeking:!1,source:{src:``,type:``},sources:[],started:!1,textTracks:[],textTrack:null,get hasCaptions(){return this.textTracks.filter(tN).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=hj(this.buffered)??0;return Math.max(e,this.clipStartTime)},get bufferedEnd(){let e=gj(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=hj(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?gj(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}),TF=new Set([`autoPlayError`,`autoPlaying`,`buffered`,`canPlay`,`error`,`paused`,`played`,`playing`,`seekable`,`seeking`,`waiting`]),EF=new Set([...TF,`ended`,`inferredPoster`,`inferredStreamType`,`inferredTitle`,`intrinsicDuration`,`inferredLiveDVRWindow`,`liveSyncPosition`,`realCurrentTime`,`savedState`,`started`,`userBehindLiveEdge`]),DF=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 iA(`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]||!tN(n[r]))&&(r=-1),r===-1&&(r=n.findIndex(e=>tN(e)&&e.default)),r===-1&&(r=n.findIndex(e=>tN(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 iA(e,{bubbles:!0,composed:!0,cancelable:!0,detail:n,trigger:t}),i=t?.target||null;i&&i instanceof hA&&(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)}},OF=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=vA(this.saveTime.bind(this),1e3);saveTime(){if(!this.mediaId)return;let e=(this.#e.time??0).toString();localStorage.setItem(this.mediaId,e)}},kF=Symbol(0),AF=class extends bF{get selected(){return this.items.find(e=>e.selected)??null}get selectedIndex(){return this.items.findIndex(e=>e.selected)}[zA.onRemove](e,t){this[zA.select](e,!1,t)}[zA.add](e,t){e[kF]=!1,Object.defineProperty(e,"selected",{get(){return this[kF]},set:t=>{this.readonly||(this[zA.onUserSelect]?.(),this[zA.select](e,t))}}),super[zA.add](e,t)}[zA.select](e,t,n){if(t===e?.[kF])return;let r=this.selected;e&&(e[kF]=t),(t?r!==e:r===e)&&(r&&(r[kF]=!1),this.dispatchEvent(new iA(`change`,{detail:{prev:r,current:this.selected},trigger:n})))}},jF=class extends AF{},MF=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[nN.native]?.remove?.(),e[nN.native]=null,this.#r.delete(e)}changeTrack(e){let t=e?.[nN.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[nN.native]??=this.#a(e);EN(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[nN.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)}}},NF=class{#e=null;#t;#n=[];#r;#i=!1;#a=null;#o=null;constructor(e){this.#r=e;let t=e.textTracks;this.#t=t,J(this.#s.bind(this)),WO(this.#p.bind(this)),new sA(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),zO(this.#f.bind(this))}remove(e){e.detach(),this.#n.splice(this.#n.indexOf(e),1),zO(this.#f.bind(this))}attachVideo(e){requestAnimationFrame(()=>{if(this.#e=e,e){this.#a=new MF,this.#a.attach(e);for(let e of this.#t)this.#c(e)}this.#f()})}#c(e){tN(e)&&this.#a?.addTrack(e)}#l(e){tN(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?.[nN.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}},PF=class extends bF{#e=!1;#t={};#n=null;#r=null;[nN.crossOrigin];constructor(){super()}get selected(){return this.items.find(e=>e.mode===`showing`&&tN(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 rN?e:new rN(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[zA.add](n,t),n[nN.crossOrigin]=this[nN.crossOrigin],this.#e&&n[nN.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[nN.onModeChange]=null,e.removeEventListener(`mode-change`,this.#o),this[zA.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))}[nN.canLoad](){if(!this.#e){for(let e of this.items)e[nN.canLoad]();this.#e=!0,this.#i()}}#i=yA(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=hk(t)?this.#t[t.find(e=>this.#t[e])||``]:this.#t[t],a=r??i,o=a&&tN(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&&tN(t)&&t!==this.#a&&this.#c(t),t.mode===`showing`){let e=tN(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 iA(`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}},FF=class extends AF{#e=!1;switch=`current`;get auto(){return this.#e||this.readonly}[AN.enableAuto];[zA.onUserSelect](){this[AN.setAuto](!1)}[zA.onReset](e){this[AN.enableAuto]=void 0,this[AN.setAuto](!1,e)}autoSelect(e){this.readonly||this.#e||!this[AN.enableAuto]||(this[AN.enableAuto]?.(e),this[AN.setAuto](!0,e))}getBySrc(e){return this.items.find(t=>t.src===e)}[AN.setAuto](e,t){this.#e!==e&&(this.#e=e,this.dispatchEvent(new iA(`auto-change`,{detail:e,trigger:t})))}},IF=class extends mA{},LF={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:`<`},RF=new Set([`Shift`,`Alt`,`Meta`,`Ctrl`]),zF=`button, [role="button"]`,BF=`input, textarea, select, [contenteditable], [role^="menuitem"], [role="timer"]`,VF=class extends IF{#e;constructor(e){super(),this.#e=e}onConnect(){J(this.#t.bind(this))}#t(){let{keyDisabled:e,keyTarget:t}=this.$props;if(e())return;let n=t()===`player`?this.el:document,r=ak(!1);n===this.el?new sA(this.el).add(`focusin`,()=>r.set(!0)).add(`focusout`,e=>{this.el.contains(e.target)||r.set(!1)}):(q(r)||r.set(document.querySelector(`[data-media-player]`)===this.el),gk(document,`focusin`,e=>{let t=e.composedPath().find(e=>e instanceof Element&&e.localName===`media-player`);t!==void 0&&r.set(this.el===t)})),J(()=>{r()&&new sA(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(BF))return;let{method:n,value:r}=this.#a(e);if(!fk(r)&&!hk(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||RF.has(e.key))return;let t=document.activeElement;if(t?.matches(BF)||bk(e)&&t?.matches(zF))return;let{method:n,value:r}=this.#a(e),i=!e.metaKey&&/^[0-9]$/.test(e.key);if(!fk(r)&&!hk(r)&&!i){r?.onKeyDown?.({event:e,player:this.#e.player,remote:this.#e.remote}),r?.callback?.(e,this.#e.remote);return}if(!n&&i&&!jTe(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){kTe(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=hk(r)?r.join(` `):fk(r)?r:r?.keys;return((hk(i)?i:i?.split(` `))?.map(e=>ATe(e).replace(/Control/g,`Ctrl`).split(`+`)))?.some(t=>{let n=new Set(t.filter(e=>RF.has(e)));`<>`.includes(e.key)&&n.add(`Shift`);for(let t of RF){let r=t.toLowerCase()+`Key`;if(!n.has(t)&&e[r])return!1}return t.every(t=>RF.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))}},HF=[`!`,`@`,`#`,`$`,`%`,`^`,`&`,`*`,`(`,`)`],UF=class extends IF{#e=-2;#t=!1;#n=ak(!1);#r=ak(!1);#i=null;#a=ak(!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(){J(this.#o.bind(this))}#o(){let{viewType:e}=this.$state;if(!this.el||!this.#a())return;if(e()===`audio`){this.show();return}J(this.#s.bind(this)),J(this.#c.bind(this));let t=this.#l.bind(this),n=this.#u.bind(this),r=this.#d.bind(this);new sA(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 sA(this.el),i=this.hideOnMouseLeave;(!i||!this.#r())&&J(()=>{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);J(()=>{if(!this.el)return;let e=this.$state.pointer()===`coarse`,t=new sA(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||bN(e)||(yk(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}))}},WF=class{name=`audio`;target;canPlay(e){return XA(e)?!fk(e.src)||e.type===`?`||UA(this.target,e.type):!1}mediaType(){return`audio`}async load(e){return new(await(Promise.resolve().then(()=>(qwe(),Kwe)))).AudioProvider(this.target,e)}},GF=class{name=`video`;target;canPlay(e){return ZA(e)?!fk(e.src)||e.type===`?`||WA(this.target,e.type):!1}mediaType(){return`video`}async load(e){return new(await(Promise.resolve().then(()=>(Xwe(),Ywe)))).VideoProvider(this.target,e)}},KF=class e extends GF{static supported=JA();name=`hls`;canPlay(t){return e.supported&&QA(t)}async load(e){return new(await(Promise.resolve().then(()=>(eTe(),Zwe)))).HLSProvider(this.target,e)}},qF=class e extends GF{static supported=YA();name=`dash`;canPlay(t){return e.supported&&$A(t)}async load(e){return new(await(Promise.resolve().then(()=>(oTe(),aTe)))).DASHProvider(this.target,e)}},JF=class{name=`vimeo`;target;preconnect(){for(let e of[`https://i.vimeocdn.com`,`https://f.vimeocdn.com`,`https://fresnel.vimeocdn.com`])yj(e)}canPlay(e){return fk(e.src)&&e.type===`video/vimeo`}mediaType(){return`video`}async load(e){return new(await(Promise.resolve().then(()=>(dTe(),uTe)))).VimeoProvider(this.target,e)}async loadPoster(e,t,n){let{resolveVimeoVideoId:r,getVimeoVideoInfo:i}=await Promise.resolve().then(()=>(VP(),sTe)).then(e=>e.utils_exports);if(!fk(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}},YF=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`])yj(e)}canPlay(e){return fk(e.src)&&e.type===`video/youtube`}mediaType(){return`video`}async load(e){return new(await(Promise.resolve().then(()=>(gTe(),hTe)))).YouTubeProvider(this.target,e)}async loadPoster(e,t,n){let{findYouTubePoster:r,resolveYouTubeVideoId:i}=await Promise.resolve().then(()=>(YP(),fTe)).then(e=>e.utils_exports),a=fk(e.src)&&i(e.src);return a?r(a,n):null}},XF=Symbol(0),ZF=`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(`.`),QF={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:LF,storage:null},$F=class extends IF{#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`)KCe(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=WO(()=>n.disconnect())}}},eI=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}notify(e,...t){this.#e(new iA(e,{detail:t?.[0],trigger:t?.[1]}))}async ready(e,t){return zO(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),BO();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 ee=await h?.getVideoQuality();if(ee&&g.length){let e=null,t=1/0;for(let n of g){let r=Math.abs(ee.width-n.width)+Math.abs(ee.height-n.height)+(ee.bitrate?Math.abs(ee.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 iA(`auto-play-attempt`,{trigger:e});try{await t.play(i)}catch{}}},tI=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()}},nI=class{#e=!1;#t=Nk();#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=Nk()}},rI=class extends IF{#e;#t;#n;controls;#r;#i;#a;#o=new nI;constructor(e,t,n){super(),this.#e=e,this.#t=t,this.#n=n,this.#a=n.$provider,this.controls=new UF,this.#r=new SF,this.#i=new CF}onAttach(){this.listen(`fullscreen-change`,this.#x.bind(this))}onConnect(e){let t=Object.getOwnPropertyNames(Object.getPrototypeOf(this)),n=new sA(e),r=this.#l.bind(this);for(let e of t)e.startsWith(`media-`)&&n.add(e,r);this.#s(),J(this.#c.bind(this)),J(this.#m.bind(this)),J(this.#h.bind(this)),J(this.#g.bind(this)),J(this.#_.bind(this)),J(this.#v.bind(this)),J(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]&&(q(this.#a)?this[e.type](e):this.#o.enqueue(e.type,()=>{q(this.#a)&&this[e.type](e)}))}async play(e){let{canPlay:t,paused:n,autoPlaying:r}=this.$state;if(this.#u(e)||!q(n))return;e&&this.#t.queue.enqueue(`media-play-request`,e);let i=q(r);try{let e=q(this.#a);return mF(e,q(t)),MTe(i),await e.play()}catch(t){let n=this.createEvent(`play-fail`,{detail:MN(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(!q(n)){e&&this.#t.queue.enqueue(`media-pause-request`,e);try{let e=q(this.#a);return mF(e,q(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),q(()=>!n()||i()&&r()))return;let c=q(this.#a);mF(c,q(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(hF(e,n),!n.active)return q(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(hF(e,n),n.active){t&&this.#t.queue.enqueue(`media-exit-fullscreen-request`,t);try{let e=await n.exit();return this.#d&&q(this.$state.canPictureInPicture)&&await this.enterPictureInPicture(),e}finally{this.#d=!1}}}#f(e){let t=q(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=ij&&!nj&&ej(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(!q(t)){let e=Error(`Cast not available.`);throw e.code=`CAST_NOT_AVAILABLE`,e}if(yj(`https://www.gstatic.com`),!this.#b){let e=await Promise.resolve().then(()=>(TTe(),wTe));this.#b=new e.GoogleCastLoader}await this.#b.prompt(this.#n),e&&this.#t.queue.enqueue(`media-google-cast-request`,e);let n=q(this.$state.remotePlaybackState)!==`disconnected`;n&&this.$state.savedState.set({paused:q(this.$state.paused),currentTime:q(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=q(this.$props.fullscreenOrientation),n=e.detail;if(!(lk(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:MN(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:MN(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=pF(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))}},iI=class{seeking=!1;looping=!1;replaying=!1;queue=new tI},aI=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`]),oI=class extends IF{#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 sA(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){J(this.#D.bind(this)),this.#p(),this.#m(),this.#h(),this.#l(),WO(this.#u.bind(this))}onDestroy(){let{audioTracks:e,qualities:t,textTracks:n}=this.#t;e[zA.reset](),t[zA.reset](),n[zA.reset](),this.#T()}handle(e){if(!this.scope)return;let t=e.type;zO(()=>this[e.type]?.(e)),aI.has(t)&&this.#n.set(t,e),this.dispatch(e)}#c=!1;#l(){this.#c&&=(requestAnimationFrame(()=>{this.scope&&this.#t.remote.play(new iA(`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 sA(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 sA(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 sA(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=J(()=>{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[zA.select](a,!0,new iA(`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}twe().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[nN.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(dF(i)&&!t.some(e=>e.src===i.src)){let e=r.getBySrc(i.src);e&&(r[zA.remove](e,n),a=!0)}a&&!r.length&&(this.$state.savedState.set(null),r[zA.reset](n));for(let e of t){if(!dF(e)||r.getBySrc(e.src))continue;let t={id:e.id??e.height+`p`,bitrate:null,codec:null,...e,selected:!1};r[zA.add](t,n),i=!0}i&&!r[AN.enableAuto]&&(this.#w(),r[AN.enableAuto]=this.#w.bind(this),r[AN.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[zA.reset](e),r[zA.reset](e),fF(this.$state,t),this.#d();return}fF(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=gj(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=gj(r),o=r.length!==t().length,s=a!==gj(t()),c=gj(i),l=i.length!==n().length,u=c!==gj(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(!q(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[nN.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=owe(this.#i,this.#a,e()),t.set(new _j(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=vA(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=yA(()=>{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))}},sI=class extends IF{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)J(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()})}},cI=[`play`,`pause`,`seekforward`,`seekbackward`,`seekto`],lI=class extends IF{onConnect(){J(this.#t.bind(this)),J(this.#n.bind(this));let e=this.#r.bind(this);for(let t of cI)navigator.mediaSession.setActionHandler(t,e);WO(this.#e.bind(this))}#e(){for(let e of cI)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 iA(`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:dk(e.seekTime)?e.seekTime:this.$state.currentTime()+(e.seekOffset??(e.action===`seekforward`?10:-10)),trigger:t});break}}},uI=class e extends hA{static props=QF;static state=wF;#e;#t;#n;canPlayQueue=new nI;remoteControl;get#r(){return this.#e.$provider()}get#i(){return this.$props}constructor(){super(),new sI;let e={player:this,qualities:new FF,audioTracks:new jF,storage:null,$provider:ak(null),$providerSetup:ak(!1),$props:this.$props,$state:this.$state};e.remote=this.remoteControl=new DF(void 0),e.remote.setPlayer(this),e.textTracks=new PF,e.textTracks[nN.crossOrigin]=this.$state.crossOrigin,e.textRenderers=new NF(e),e.ariaKeys={},this.#e=e,wk(sN,e),this.orientation=new CF,new RN,new VF(e);let t=new iI;this.#t=new oI(t,e),this.#n=new rI(this.#t,t,e),e.delegate=new eI(this.#t.handle.bind(this.#t),e),e.notify=e.delegate.notify.bind(e.delegate),typeof navigator<`u`&&`mediaSession`in navigator&&new lI,new $F(`load`,this.startLoading.bind(this)),new $F(`posterLoad`,this.startLoadingPoster.bind(this))}onSetup(){this.#l(),J(this.#c.bind(this)),J(this.#h.bind(this)),J(this.#p.bind(this)),J(this.#y.bind(this)),J(this.#_.bind(this)),J(this.#C.bind(this)),J(this.#x.bind(this))}onAttach(e){e.setAttribute(`data-media-player`,``),mN(e,`tabindex`,`0`),mN(e,`role`,`region`),J(this.#T.bind(this)),J(this.#o.bind(this)),J(this.#s.bind(this)),gk(e,`find-media-player`,this.#u.bind(this))}onConnect(e){rj&&xk(e,`data-iphone`,``);let t=window.matchMedia(`(pointer: coarse)`);this.#f(t),t.onchange=this.#f.bind(this);let n=new ResizeObserver(Pk(this.#d.bind(this)));n.observe(e),J(this.#d.bind(this)),this.dispatch(`media-player-connect`,{detail:this,bubbles:!0,composed:!0}),WO(()=>{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=WCe(i()),c=s===`Unknown`?o?`Live`:`Media`:`${o?`Live `:``}${s}`,l=n(),u=t()||`${c} Player`+(l?` - ${l}`:``);xk(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),xk(this.el,`data-orientation`,e),this.#d()}#c(){this.$state.canPlay()&&this.#r?this.canPlayQueue.start():this.canPlayQueue.stop()}#l(){if(e[XF]){this.setAttributes(e[XF]);return}let t={"data-load":function(){return this.$props.load()},"data-captions":function(){let e=this.$state.textTrack();return!!e&&tN(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 ZF){let r=`data-`+(n[e]??Ak(e));t[r]=function(){return this.$state[e]()}}delete t.title,e[XF]=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),Sk(this.el,`--player-width`,e+`px`),Sk(this.el,`--player-height`,t+`px`)}#f(e){let t=e.matches?`coarse`:`fine`;xk(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 q(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 q(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 q(this.$state.muted)}set muted(e){this.#g(e)}#h(){this.#g(this.$props.muted())}#g(e){this.canPlayQueue.enqueue(`muted`,()=>{q(()=>{this.#r&&this.#r.setMuted(e)})})}get currentTime(){return q(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!==q(t)&&q(()=>{if(!this.#r)return;let t=pF(e,this.$state);Number.isFinite(t)&&this.#r.setCurrentTime(t)})})}get volume(){return q(this.$state.volume)}set volume(e){this.#b(e)}#y(){this.#b(this.$props.volume())}#b(e){let t=dN(0,e,1);this.canPlayQueue.enqueue(`volume`,()=>{this.#r&&this.#r.setVolume(t)})}get playbackRate(){return q(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=fk(e)?new OF:e;if(t?.onChange){let{source:n}=this.$state,r=fk(e)?e:this.el?.id,i=ok(this.#E.bind(this));J(()=>t.onChange(n(),i(),r||void 0))}this.#e.storage=t,this.#e.textTracks.setStorage(t),WO(()=>{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`)}},dI=uI.prototype,Dk(dI,`canPlayQueue`),Dk(dI,`remoteControl`),Dk(dI,`provider`),Dk(dI,`controls`),Dk(dI,`orientation`),Dk(dI,`title`),Dk(dI,`qualities`),Dk(dI,`audioTracks`),Dk(dI,`textTracks`),Dk(dI,`textRenderers`),Dk(dI,`duration`),Dk(dI,`paused`),Dk(dI,`muted`),Dk(dI,`currentTime`),Dk(dI,`volume`),Dk(dI,`playbackRate`),Ok(dI,`play`),Ok(dI,`pause`),Ok(dI,`enterFullscreen`),Ok(dI,`exitFullscreen`),Ok(dI,`enterPictureInPicture`),Ok(dI,`exitPictureInPicture`),Ok(dI,`seekToLiveEdge`),Ok(dI,`startLoading`),Ok(dI,`startLoadingPoster`),Ok(dI,`requestAirPlay`),Ok(dI,`requestGoogleCast`),Ok(dI,`setAudioGain`),fI=new Map,pI=class{#e=!1;#t;#n;#r;#i;constructor(e,t,n,r=[]){this.#n=e,this.#r=t,this.#i=n;let i=new qF,a=new KF,o=new GF,s=new WF,c=[new YF,new JF];this.#t=ok(()=>{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(_F(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),J(this.#a.bind(this)),J(this.#o.bind(this)),J(this.#u.bind(this)),J(this.#d.bind(this)),J(this.#f.bind(this))}#a(){this.#r.notify(`sources-change`,[..._F(this.#r.$props.src()),...this.#n()])}#o(){let{$state:e}=this.#r,t=e.sources(),n=q(e.source),r=this.#s(n,t);if(t[0]?.src&&!r.src&&!r.type){let{crossOrigin:n}=e,r=xj(n()),i=new AbortController;return Promise.all(t.map(e=>fk(e.src)&&e.type===`?`?fetch(e.src,{method:`HEAD`,credentials:r,signal:i.signal}).then(t=>(e.type=t.headers.get(`content-type`)||`??`,fI.set(e.src,e.type),e)).catch(()=>e):e)).then(t=>{if(i.signal.aborted)return;let n=this.#s(q(e.source),t);BO(),n.src||this.#r.notify(`error`,{message:`Failed to load resource.`,code:4})}),()=>i.abort()}BO()}#s(e,t){let n={src:``,type:``},r=null,i=new iA(`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(dF(n)){let e=l(),r=t.find(t=>t.src===e?.src);q(o)?u.set({paused:q(s),currentTime:q(c)}):u.set(null),r&&(n=r,i=new iA(`quality-change`,{detail:{quality:e}}))}return yF(e,n)||this.#c(n,r,i),r!==q(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&&q(()=>e.preconnect?.(this.#r)),this.#i.set(e),this.#r.notify(`provider-loader-change`,e,t)}#u(){let e=this.#r.$provider();if(!(!e||q(this.#r.$providerSetup))){if(this.#r.$state.canLoad()){HO(()=>e.setup(),e.scope),this.#r.$providerSetup.set(!0);return}q(()=>e.preconnect?.())}}#d(){if(!this.#r.$providerSetup())return;let e=this.#r.$provider(),t=this.#r.$state.source(),n=q(this.#r.$state.crossOrigin),r=q(this.#r.$props.preferNativeHLS);if(!yF(e?.currentSrc,t)){if(this.#r.$state.canLoad()){let i=new AbortController;return QA(t)?(r||!JA())&&gF(t.src,{credentials:xj(n),signal:i.signal}).then(e=>{this.#r.notify(`stream-type-change`,e)}).catch(sk):$A(t)?NTe(t.src,{credentials:xj(n),signal:i.signal}).then(e=>{this.#r.notify(`stream-type-change`,e)}).catch(sk):this.#r.notify(`stream-type-change`,`on-demand`),q(()=>{let n=q(this.#r.$state.preload);return e?.loadSource(t,n).catch(e=>{})}),()=>i.abort()}try{fk(t.src)&&yj(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 iA(`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()}}},mI=class{#e;#t;#n=[];constructor(e,t){this.#e=e,this.#t=t,J(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||rN.createId(t);this.#t.textTracks.getById(e)||(t.id=e,this.#t.textTracks.add(t))}this.#n=e}},hI=class extends hA{static props={loaders:[]};static state=new gA({loader:null});#e;#t;#n=ak([]);#r=ak([]);#i=null;#a=null;#o=!1;onSetup(){this.#e=oN(),this.#t=new pI(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 mI(this.#r,this.#e);let t=new ResizeObserver(Pk(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),WO(()=>{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)),WO(()=>{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&&q(n)||(this.#l(),this.#i=t,t&&(t.target=e||null),!(!t||!e)&&t.load(this.#e).then(e=>{this.scope&&q(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&&(Sk(e.el,`--media-width`,n+`px`),Sk(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}`);fk(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||rN.createId(e),...e})}}this.#n.set(e),this.#r.set(t),BO()}},gI=hI.prototype,Ok(gI,`load`)}));function vI(e,t){return[...e].sort(t?LTe:ITe)}function ITe(e,t){return e.height===t.height?(e.bitrate??0)-(t.bitrate??0):e.height-t.height}function LTe(e,t){return t.height===e.height?(t.bitrate??0)-(e.bitrate??0):t.height-e.height}function yI(e,t){let n=String(e),r=n.length;if(r<t){let n=t-r;return`${`0`.repeat(n)}${e}`}return n}function bI(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 xI(e,{padHrs:t=null,padMins:n=null,showHrs:r=!1,showMs:i=!1}={}){let{hours:a,minutes:o,seconds:s,fraction:c}=bI(e),l=t?yI(a,2):a,u=`${n||ck(n)&&e>=3600?yI(o,2):o}:${yI(s,2)}${i&&c>0?`.${String(c).replace(/^0?\./,``)}`:``}`;return a>0||r?`${l}:${u}`:u}function SI(e){let t=[],{hours:n,minutes:r,seconds:i}=bI(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 CI(e,t,n){let r=t-e,i=n-e;return r>0?i/r:0}function RTe(e,t,n,r){return dN(e,lN(n,uN(r)),t)}function zTe(e,t,n,r){let i=dN(0,n,1),a=(t-e)*i/r;return e+r*Math.round(a)}function BTe(e,t){let n=`${e}::${t}`;if(XI.has(n)){let e=XI.get(n);XI.delete(n),XI.set(n,e);return}let r=new Image;if(r.decoding=`async`,r.crossOrigin=t,r.src=e,XI.set(n,r),XI.size>YI){let e=XI.keys().next().value;XI.delete(e)}}function VTe(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 HTe(e,t){let n=TA(e,t);for(let{el:e,top:r,left:i}of n)e.scroll({top:r,left:i,behavior:t.behavior})}function UTe(e,t={}){HTe(e,{scrollMode:`if-needed`,block:`center`,inline:`center`,...t})}function wI(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 TI,EI,DI,OI,kI,AI,jI,MI,NI,PI,FI,II,LI,RI,zI,BI,VI,HI,UI,WI,GI,KI,qI,JI,YI,XI,ZI,QI,$I,eL,tL,nL,rL,iL,aL,oL,sL,cL,lL,uL,dL,fL,pL,mL,hL,gL,_L,vL,yL,bL,xL,SL,CL,wL,TL,EL,DL,OL,kL=O((()=>{RA(),Cj(),aN(),Ej(),cN(),fN(),kN(),PN(),zN(),TI=class extends mA{#e;constructor(e){super(),this.#e=e}onAttach(e){let{$props:t,ariaKeys:n}=oN(),r=e.getAttribute(`aria-keyshortcuts`);if(r){n[this.#e]=r,WO(()=>{delete n[this.#e]});return}let i=t.keyShortcuts()[this.#e];if(i){let t=hk(i)?i.join(` `):fk(i)?i:i?.keys;e.setAttribute(`aria-keyshortcuts`,hk(t)?t.join(` `):t)}}},EI=class extends mA{#e;constructor(e){super(),this.#e=e,J(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`),q(()=>this.#e.onChange(!0,e))},this.#e.showDelay?.()??0)}hide(e){this.#a(),q(()=>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(Rwe(e)){this.#i?.();let n=gk(e,`animationend`,t,{once:!0});this.#i=n}else t()}})}#a(){window.clearTimeout(this.#n),this.#n=-1}},DI=class extends mA{static props={disabled:!1};#e;constructor(e){super(),this.#e=e,new RN,e.keyShortcut&&new TI(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){mN(e,`tabindex`,`0`),mN(e,`role`,`button`),mN(e,`type`,`button`)}onConnect(e){let t=yN(e,this.#r.bind(this));for(let e of[`click`,`touchstart`])t.add(e,this.#i.bind(this),{passive:!0})}#t(){return jk(this.#e.isPresssed())}#n(e){NCe(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())}},OI=class extends hA{static props=DI.props;#e;constructor(){super(),new DI({isPresssed:this.#n.bind(this),onPress:this.#t.bind(this)})}onSetup(){this.#e=oN();let{canAirPlay:e,isAirPlayConnected:t}=this.#e.$state;this.setAttributes({"data-active":t,"data-supported":e,"data-state":this.#r.bind(this),"aria-hidden":DN(()=>!e())})}onAttach(e){e.setAttribute(`data-media-tooltip`,`airplay`),hN(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()}`}},kI=class extends hA{static props=DI.props;#e;constructor(){super(),new DI({isPresssed:this.#n.bind(this),keyShortcut:`togglePaused`,onPress:this.#t.bind(this)})}onSetup(){this.#e=oN();let{paused:e,ended:t}=this.#e.$state;this.setAttributes({"data-paused":e,"data-ended":t})}onAttach(e){e.setAttribute(`data-media-tooltip`,`play`),hN(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()}},AI=class extends hA{static props=DI.props;#e;constructor(){super(),new DI({isPresssed:this.#n.bind(this),keyShortcut:`toggleCaptions`,onPress:this.#t.bind(this)})}onSetup(){this.#e=oN(),this.setAttributes({"data-active":this.#n.bind(this),"data-supported":()=>!this.#r(),"aria-hidden":DN(this.#r.bind(this))})}onAttach(e){e.setAttribute(`data-media-tooltip`,`caption`),hN(e,`Captions`)}#t(e){this.#e.remote.toggleCaptions(e)}#n(){let{textTrack:e}=this.#e.$state,t=e();return!!t&&tN(t)}#r(){let{hasCaptions:e}=this.#e.$state;return!e()}},jI=class extends hA{static props={...DI.props,target:`prefer-media`};#e;constructor(){super(),new DI({isPresssed:this.#n.bind(this),keyShortcut:`toggleFullscreen`,onPress:this.#t.bind(this)})}onSetup(){this.#e=oN();let{fullscreen:e}=this.#e.$state,t=this.#r.bind(this);this.setAttributes({"data-active":e,"data-supported":t,"aria-hidden":DN(()=>!t())})}onAttach(e){e.setAttribute(`data-media-tooltip`,`fullscreen`),hN(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()}},MI=class extends hA{static props=DI.props;#e;constructor(){super(),new DI({isPresssed:this.#n.bind(this),keyShortcut:`toggleMuted`,onPress:this.#t.bind(this)})}onSetup(){this.#e=oN(),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`),hN(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`}},NI=class extends hA{static props=DI.props;#e;constructor(){super(),new DI({isPresssed:this.#n.bind(this),keyShortcut:`togglePictureInPicture`,onPress:this.#t.bind(this)})}onSetup(){this.#e=oN();let{pictureInPicture:e}=this.#e.$state,t=this.#r.bind(this);this.setAttributes({"data-active":e,"data-supported":t,"aria-hidden":DN(()=>!t())})}onAttach(e){e.setAttribute(`data-media-tooltip`,`pip`),hN(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()}},PI=class extends hA{static props={disabled:!1,seconds:30};#e;constructor(){super(),new RN}onSetup(){this.#e=oN();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":DN(()=>!n())})}onAttach(e){mN(e,`tabindex`,`0`),mN(e,`role`,`button`),mN(e,`type`,`button`),e.setAttribute(`data-media-tooltip`,`seek`),hN(e,this.#n.bind(this))}onConnect(e){yN(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)}},FI=class extends hA{static props={disabled:!1};#e;constructor(){super(),new RN}onSetup(){this.#e=oN();let{disabled:e}=this.$props,{live:t,liveEdge:n}=this.#e.$state,r=()=>!t();this.setAttributes({"data-edge":n,"data-hidden":r,"aria-disabled":DN(()=>e()||n()),"aria-hidden":DN(r)})}onAttach(e){mN(e,`tabindex`,`0`),mN(e,`role`,`button`),mN(e,`type`,`button`),e.setAttribute(`data-media-tooltip`,`live`)}onConnect(e){yN(e,this.#t.bind(this))}#t(e){let{disabled:t}=this.$props,{liveEdge:n}=this.#e.$state;t()||n()||this.#e.remote.seekToLiveEdge(e)}},II=new gA({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 CI(this.min,this.max,this.value)},get fillPercent(){return this.fillRate*100},get pointerRate(){return CI(this.min,this.max,this.pointerValue)},get pointerPercent(){return this.pointerRate*100}}),LI=class extends mA{#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),WO(this.#n.bind(this))}#n(){this.#t?.disconnect(),this.#t=void 0}},RI=Ck(),zI=Ck(),BI={Left:-1,ArrowLeft:-1,Up:1,ArrowUp:1,Right:1,ArrowRight:1,Down:-1,ArrowDown:-1},VI=class extends mA{#e;#t;#n;constructor(e,t){super(),this.#e=e,this.#t=t}onSetup(){Ek(zI)&&(this.#n=Tk(zI))}onConnect(e){J(this.#u.bind(this,e)),J(this.#d.bind(this,e)),this.#e.swipeGesture&&J(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 sA(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(ck(this.#a)||bN(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;gk(e,`focus`,this.#f.bind(this)),!(t()||this.#e.isDisabled())&&new sA(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 sA(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&&dk(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&&dk(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(zTe(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(BI).includes(e.key))return;let{key:t}=e,n=this.#E(e);if(!ck(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(BI).includes(e.key)||!ck(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(BI[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=vA(e=>{this.#m(this.#h(e),e)},20,{leading:!0})},HI=Ck(()=>({})),UI=class extends mA{static props={hidden:!1,disabled:!1,step:1,keyStep:1,orientation:`horizontal`,shiftKeyMultiplier:5};#e;#t;#n=ak(!0);#r=ak(!0);constructor(e){super(),this.#t=e}onSetup(){this.#e=oN();let e=new RN;e.attach(this),this.$state.focused=e.focused.bind(e),Ek(HI)||wk(HI,{default:`value`}),wk(RI,{orientation:this.$props.orientation,disabled:this.#t.isDisabled,preview:ak(null)}),J(this.#o.bind(this)),J(this.#s.bind(this)),J(this.#c.bind(this)),this.#u(),new VI(this.#t,this.#e).attach(this),new LI({callback:this.#i.bind(this)}).attach(this)}onAttach(e){mN(e,`role`,`slider`),mN(e,`tabindex`,`0`),mN(e,`autocomplete`,`off`),J(this.#d.bind(this))}onConnect(e){WO(_N(e,this.#n.set)),J(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;q(e)||t.set(RTe(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 jk(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(lN(e(),3),lN(t(),3))}#f=Pk((e,t)=>{this.el?.style.setProperty(`--slider-fill`,e+`%`),this.el?.style.setProperty(`--slider-pointer`,t+`%`)})},WI=class extends hA{static props={...UI.props,min:0,max:100,value:0};static state=II;constructor(){super(),new UI({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(){J(this.#n.bind(this)),J(this.#r.bind(this))}#e(){let{value:e}=this.$state;return Math.round(e())}#t(){let{value:e,max:t}=this.$state;return lN(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())}},GI=new Map,KI=new Map,qI=class e{#e;#t;#n;$images=ak([]);static create(t,n){return new e(t,n,oN())}constructor(e,t,n){this.#t=e,this.#n=t,this.#e=n,J(this.#r.bind(this))}#r(){let{canLoad:e}=this.#e.$state;if(!e())return;let t=this.#t();if(t){if(fk(t)&&GI.has(t)){let e=GI.get(t);if(GI.delete(t),GI.set(t,e),GI.size>99){let e=GI.keys().next().value;GI.delete(e)}this.$images.set(GI.get(t))}else if(fk(t)){let e=this.#n(),n=t+`::`+e;if(!KI.has(n)){let r=new Promise(async(n,r)=>{try{let i=await fetch(t,{credentials:xj(e)});if(i.headers.get(`content-type`)===`application/json`){let e=await i.json();if(hk(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];NN(uk(n),!1),NN(`url`in n&&fk(n.url),!1),NN(`startTime`in n&&dk(n.startTime),!1)}n(e)}else n(this.#a(e));return}Promise.resolve().then(()=>(eN(),$M)).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=>(GI.set(n,e),e)).catch(e=>{this.#u(t,e)}).finally(()=>{fk(n)&&KI.delete(n)});KI.set(n,r)}KI.get(n)?.then(e=>{this.$images.set(e||[])})}else if(hk(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)=>(NN(e.url&&fk(e.url),!1),NN(`startTime`in e&&dk(e.startTime),!1),{...e,url:fk(e.url)?this.#c(e.url,t):e.url}))}#a(e){NN(fk(e.url),!1),NN(hk(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];NN(`startTime`in n&&dk(n.startTime),!1),NN(`text`in n&&fk(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&&dk(a.x)&&dk(a.y)?{x:a.x,y:a.y}:void 0})}return t}#s(){let e=q(this.#t);return!fk(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){}},JI=2,YI=32,XI=new Map,ZI=class extends hA{static props={src:null,time:0,crossOrigin:null};static state=new gA({src:``,img:null,thumbnails:[],activeThumbnail:null,crossOrigin:null,loading:!1,error:null,hidden:!1});media;#e;#t=[];onSetup(){this.media=oN(),this.#e=qI.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":DN(this.$state.hidden)})}onConnect(e){J(this.#n.bind(this)),J(this.#l.bind(this)),J(this.#r.bind(this)),J(this.#i.bind(this)),J(this.#u.bind(this)),J(this.#d.bind(this)),J(this.#f.bind(this))}#n(){let e=this.$state.img();e&&new sA(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!ck(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+JI,e.length);for(let t=a;t<o;t++){let n=e[t].url.href;n!==r&&BTe(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(lN(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=[]}},QI=class extends hA{static props={type:`pointer`,format:null,showHours:!1,showMs:!1,padHours:null,padMinutes:null,decimalPlaces:2};#e;#t;#n;onSetup(){this.#n=kk(WI.state),this.#e=Tk(HI),this.#t=ok(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??lN)(e,n())+`%`}else if(d===`time`)return(this.#e.time??xI)(f,{padHrs:r(),padMins:i(),showHrs:a(),showMs:o()});else return(this.#e.value?.(f)??f.toFixed(2))+``}},$I=QI.prototype,Ok($I,`getValueText`),eL=class extends hA{static props={offset:0,noClamp:!1};#e;onSetup(){this.#e=Tk(RI);let{active:e}=kk(WI.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),WO(()=>t.set(null)),J(this.#t.bind(this));let n=new ResizeObserver(this.#t.bind(this));n.observe(e),WO(()=>n.disconnect())}#t=Pk(()=>{let{disabled:e,orientation:t}=this.#e;if(e())return;let n=this.el,{offset:r,noClamp:i}=this.$props;n&&VTe(n,{clamp:!i(),offset:r(),orientation:t()})})},tL=class extends hA{static props={...UI.props,keyStep:5,shiftKeyMultiplier:2};static state=II;#e;onSetup(){this.#e=oN();let{audioGain:e}=this.#e.$state;wk(HI,{default:`percent`,value(t){return(t*(e()??1)).toFixed(2)},percent(t){return Math.round(t*(e()??1))}}),new UI({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),J(this.#a.bind(this))}onAttach(e){e.setAttribute(`data-media-volume-slider`,``),mN(e,`aria-label`,`Volume`);let{canSetVolume:t}=this.#e.$state;this.setAttributes({"data-supported":t,"aria-hidden":DN(()=>!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 lN(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=vA(this.#s.bind(this),25);#s(e){if(!e.trigger)return;let t=lN(e.detail/100,3);this.#e.remote.changeVolume(t,e)}#c(e){this.#o(e)}#l(e){this.#o(e)}},nL=class extends hA{static props={...UI.props,step:.1,keyStep:5,shiftKeyMultiplier:2,pauseWhileDragging:!1,noSwipeGesture:!1,seekingRequestThrottle:100};static state=II;#e;#t;#n=ak(null);constructor(){super();let{noSwipeGesture:e}=this.$props;new UI({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=oN(),wk(HI,{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)}),J(this.#o.bind(this)),J(this.#a.bind(this))}onAttach(e){e.setAttribute(`data-media-time-slider`,``),mN(e,`aria-label`,`Seek`)}onConnect(e){J(this.#s.bind(this)),Tj(this.#e.textTracks,`chapters`,this.#n.set)}#r(){let{bufferedEnd:e,duration:t}=this.#e.$state;return lN(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=vA(this.#c.bind(this),this.$props.seekingRequestThrottle())}#o(){if(this.$state.hidden())return;let{value:e,dragging:t}=this.$state,n=this.#h();q(t)||(e.set(n),this.dispatch(`value-change`,{detail:n}))}#s(){let e=this.#e.player.el,{preview:t}=Tk(RI);e&&t()&&xk(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;q(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 lN(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)?`${SI(e)} out of ${SI(t())}`:`live`}#S(e){let{duration:t}=this.#e.$state;return lN(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?`-`:``}${xI(Math.abs(a),t)}`:`LIVE`}},rL=Ck(),iL=[`a[href]`,`[tabindex]`,`input`,`select`,`button`].map(e=>`${e}:not([aria-hidden='true'])`).join(`,`),aL=new Set([`Escape`,`Tab`,`ArrowUp`,`ArrowDown`,`Home`,`PageUp`,`End`,`PageDown`,`Enter`,` `]),oL=class{#e=-1;#t=null;#n=[];#r;get items(){return this.#n}constructor(e){this.#r=e}attachMenu(e){gk(e,`focus`,this.#o.bind(this)),this.#t=e,WO(()=>{this.#t=null})}listen(){this.#t&&(this.update(),new sA(this.#t).add(`keyup`,this.#c.bind(this)).add(`keydown`,this.#l.bind(this)),WO(()=>{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(()=>{UTe(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(RCe(e)&&t instanceof Element){let e=t.getAttribute(`role`);return!/a|input|select|button/.test(t.localName)&&!e}return aL.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(iL),t=[],n=e=>e.getAttribute(`role`)===`menu`;for(let r of e)EN(r)&&r.offsetParent!==null&&vN(this.#t,r,n)&&t.push(r);return t}},sL=0,cL=class extends hA{static props={showDelay:0};#e;#t;#n;#r=ak(!1);#i=ak(!1);#a=ak(null);#o=ak(null);#s;#c=new Set;#l=null;#u;#d;#f=!1;#p=ak(!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 EI({trigger:this.#a,content:this.#o,showDelay:e,listen:(e,t,n)=>{yN(e,e=>{this.#r()?n(e):t(e)});let r=this.#A();r&&yN(r,e=>{e.stopPropagation(),n(e)})},onChange:this.#C.bind(this)})}onSetup(){this.#e=oN();let e=++sL;this.#t=`media-menu-${e}`,this.#n=`media-menu-button-${e}`,this.#d=new oL({closeMenu:this.close.bind(this)}),Ek(rL)&&(this.#s=Tk(rL)),this.#h(),this.setAttributes({"data-open":this.#r,"data-root":!this.isSubmenu,"data-submenu":this.isSubmenu,"data-disabled":this.#E.bind(this)}),wk(rL,{button:this.#a,content:this.#o,expanded:this.#r,hint:ak(``),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),WO(()=>{this.#m.delete(e)})}})}onAttach(e){e.style.setProperty(`display`,`contents`)}onConnect(e){J(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=Ek(zI)?Tk(zI):null;wk(zI,{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&&(J(()=>{let{height:e}=this.#e.$state,t=this.#o();t&&Sk(t,`--player-height`,e()+`px`)}),this.#d.listen(),this.listen(`pointerup`,this.#O.bind(this)),gk(window,`pointerup`,this.#k.bind(this)))}#_(e){let t=e.el,n=this.isSubmenu,r=DN(this.#E.bind(this));mN(t,`tabindex`,n?`-1`:`0`),mN(t,`role`,n?`menuitem`:`button`),xk(t,`id`,this.#n),xk(t,`aria-haspopup`,`menu`),xk(t,`aria-expanded`,`false`),xk(t,`data-root`,!this.isSubmenu),xk(t,`data-submenu`,this.isSubmenu),J(()=>{xk(t,`data-open`,this.#r()),xk(t,`aria-disabled`,r())}),this.#a.set(t),WO(()=>{this.#a.set(null)})}#v(e){let t=e.el;t.style.setProperty(`display`,`none`),xk(t,`id`,this.#t),mN(t,`role`,`menu`),mN(t,`tabindex`,`-1`),xk(t,`data-root`,!this.isSubmenu),xk(t,`data-submenu`,this.isSubmenu),this.#o.set(t),WO(()=>this.#o.set(null)),J(()=>xk(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=q(this.#o);t&&xk(t,`aria-hidden`,jk(!e))}#x(e){this.#p.set(e)}#S=!1;#C(e,t){if(this.#S=yk(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&&(xk(n,`aria-controls`,e&&this.#t),xk(n,`aria-expanded`,jk(e))),r&&xk(r,`aria-labelledby`,e&&this.#n),this.#r.set(e),this.#j(t),BO(),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&&pN(t,e)||e.stopPropagation()}#k(e){let t=this.#o();this.#f||t&&pN(t,e)||this.close(e)}#A(){let e=this.el?.querySelector(`[data-part="close-target"]`);return this.el&&e&&vN(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 sA(e).add(`open`,this.#I).add(`close`,this.#R),WO(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=Pk(()=>{let e=q(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(EN(e)&&e.style.display===`contents`)r.push(...e.children);else if(e.nodeType===3)t+=parseFloat(getComputedStyle(e).fontSize);else if(EN(e)){if(!gN(e))continue;let n=getComputedStyle(e);t+=e.offsetHeight+(parseFloat(n.marginTop)||0)+(parseFloat(n.marginBottom)||0)}Sk(e,`--menu-height`,t+`px`)});#V=!1;#H(e){let t=this.#o();t&&e.propertyName===`height`&&(this.#V=e.type===`transitionstart`,xk(t,`data-transition`,this.#V?`height`:null),this.#r()&&this.#w());for(let t of this.#m)t(e)}open(e){q(this.#r)||(this.#u.show(e),BO())}close(e){q(this.#r)&&(this.#u.hide(e),BO())}},wI([Dk],cL.prototype,`triggerElement`,null),wI([Dk],cL.prototype,`contentElement`,null),wI([Dk],cL.prototype,`isSubmenu`,null),wI([Ok],cL.prototype,`open`,null),wI([Ok],cL.prototype,`close`,null),lL=class extends hA{static props={disabled:!1};#e;#t=ak(null);get expanded(){return this.#e?.expanded()??!1}constructor(){super(),new RN}onSetup(){this.#e=Tk(rL)}onAttach(e){this.#e.attachMenuButton(this),J(this.#n.bind(this)),mN(e,`type`,`button`)}onConnect(e){J(this.#r.bind(this)),this.#i();let t=new MutationObserver(this.#i.bind(this));t.observe(e,{attributeFilter:[`data-part`],childList:!0,subtree:!0}),WO(()=>t.disconnect()),yN(e,e=>{this.dispatch(`select`,{trigger:e})})}#n(){this.#e.disableMenuButton(this.$props.disabled())}#r(){let e=this.#t();e&&J(()=>{let t=this.#e.hint();t&&(e.textContent=t)})}#i(){let e=this.el?.querySelector(`[data-part="hint"]`);this.#t.set(e??null)}},uL=lL.prototype,Dk(uL,`expanded`),dL=class extends lL{},fL=class extends hA{static props={container:null,disabled:!1};#e=null;#t;onSetup(){this.#t=oN(),wk(pL,{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,xN(()=>{xN(()=>{this.connectScope&&J(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;xk(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 EN(e)?e:e?document.querySelector(e):document.body}},pL=Ck(),mL=class extends hA{static props={placement:null,offset:0,alignOffset:0};#e;constructor(){super(),new RN;let{placement:e}=this.$props;this.setAttributes({"data-placement":e})}onAttach(e){if(this.#e=Tk(rL),this.#e.attachMenuItems(this),Ek(pL)){let t=Tk(pL);t&&(wk(pL,null),t.attach(e),WO(()=>t.attach(null)))}}onConnect(e){J(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;WO(TN(this.el,this.#r(),t,{offsetVarName:`media-menu`,xOffset:r(),yOffset:n()})),WO(this.#n.bind(this))}#n(){this.el&&(this.el.removeAttribute(`style`),this.el.style.display=`none`)}#r(){return this.#e.button()}},hL=Ck(),gL=class extends mA{#e=new Set;#t=ak(``);onValueChange;get values(){return Array.from(this.#e).map(e=>e.value())}get value(){return this.#t()}set value(e){this.#a(e)}onSetup(){wk(hL,{add:this.#n.bind(this),remove:this.#r.bind(this)})}onAttach(e){Ek(rL)||mN(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=q(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===q(t.value))return t;return null}},_L=class extends hA{static props={value:``};#e=ak(!1);#t={value:this.$props.value,check:this.#o.bind(this),onCheck:null};get checked(){return this.#e()}constructor(){super(),new RN}onSetup(){this.setAttributes({value:this.$props.value,"data-checked":this.#e,"aria-checked":DN(this.#e)})}onAttach(e){let t=Ek(rL);mN(e,`tabindex`,t?`-1`:`0`),mN(e,`role`,t?`menuitemradio`:`radio`),J(this.#i.bind(this))}onConnect(e){this.#r(),yN(e,this.#a.bind(this)),WO(this.#n.bind(this))}#n(){HO(()=>{Tk(hL).remove(this.#t)},this.connectScope)}#r(){Tk(hL).add(this.#t)}#i(){let{value:e}=this.$props,t=e();q(this.#e)&&this.#t.onCheck?.(t)}#a(e){q(this.#e)||(this.#s(!0,e),this.#c(e),this.#t.onCheck?.(q(this.$props.value),e))}#o(e,t){q(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})}},vL=_L.prototype,Dk(vL,`checked`),yL=class extends hA{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 gL,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#t=oN(),Ek(rL)&&(this.#e=Tk(rL))}onConnect(e){J(this.#r.bind(this)),J(this.#a.bind(this)),J(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})}}},bL=yL.prototype,Dk(bL,`value`),Dk(bL,`disabled`),Ok(bL,`getOptions`),xL=class extends hA{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 gL,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#e=oN(),Ek(rL)&&(this.#t=Tk(rL))}onConnect(e){super.onConnect?.(e),J(this.#r.bind(this)),J(this.#a.bind(this)),J(this.#i.bind(this))}getOptions(){let{offLabel:e}=this.$props,{textTracks:t}=this.#e.$state;return[{value:`off`,label:e},...t().filter(tN).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&&tN(n)&&n.mode===`showing`?n.label:e())}#a(){this.#t?.disable(this.disabled)}#o(){let{textTrack:e}=this.#e.$state,t=e();return t&&tN(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()}},SL=xL.prototype,Dk(SL,`value`),Dk(SL,`disabled`),Ok(SL,`getOptions`),CL=[.25,.5,.75,1,1.25,1.5,1.75,2],wL=class extends hA{static props={normalLabel:`Normal`,rates:CL};#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 gL,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#e=oN(),Ek(rL)&&(this.#t=Tk(rL))}onConnect(e){J(this.#r.bind(this)),J(this.#i.bind(this)),J(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})}},TL=wL.prototype,Dk(TL,`value`),Dk(TL,`disabled`),Ok(TL,`getOptions`),EL=class extends hA{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=ok(()=>{let{sort:e}=this.$props,{qualities:t}=this.#e.$state;return vI(t(),e()===`descending`)});constructor(){super(),this.#n=new gL,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#e=oN(),Ek(rL)&&(this.#t=Tk(rL))}onConnect(e){J(this.#i.bind(this)),J(this.#o.bind(this)),J(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?`${lN(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=q(n).findIndex(t=>this.#l(t)===e);if(r>=0){let e=q(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}},DL=EL.prototype,Dk(DL,`value`),Dk(DL,`disabled`),Ok(DL,`getOptions`),OL=class extends hA{static props={type:`current`,showHours:!1,padHours:null,padMinutes:null,remainder:!1,toggle:!1,hidden:!1};static state=new gA({timeText:``,hidden:!1});#e;#t=ak(null);#n=ak(!0);#r=ak(!0);onSetup(){this.#e=oN(),this.#s();let{type:e}=this.$props;this.setAttributes({"data-type":e,"data-remainder":this.#u.bind(this)}),new LI({callback:this.#i.bind(this)}).attach(this)}onAttach(e){e.hasAttribute(`role`)||J(this.#c.bind(this)),J(this.#s.bind(this))}onConnect(e){WO(_N(e,this.#n.set)),J(this.#a.bind(this)),J(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&&yN(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=xI(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;xk(this.el,`role`,e()?`timer`:null),xk(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)}}})),AL,jL,ML,NL,PL,FL,IL,LL,RL,zL,BL,VL,HL,UL,WL,GL,KL,qL,JL,YL,XL,ZL,QL,$L,eR,tR,nR,WTe=O((()=>{RA(),aN(),Ej(),cN(),fN(),kN(),kL(),zN(),AL=class extends hA{static props={translations:null};static state=new gA({label:null,busy:!1});#e;#t=!1;onSetup(){this.#e=oN()}onAttach(e){e.style.display=`contents`}onConnect(e){e.setAttribute(`data-media-announcer`,``),mN(e,`role`,`status`),mN(e,`aria-live`,`polite`);let{busy:t}=this.$state;this.setAttributes({"aria-busy":()=>t()?`true`:null}),this.#t=!0,J(this.#n.bind(this)),J(this.#o.bind(this)),J(this.#a.bind(this)),J(this.#r.bind(this)),J(this.#i.bind(this)),J(this.#l.bind(this)),J(this.#d.bind(this)),BO(),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=q(t),n=Math.abs(e-this.#s);if(n>=1){let t=e>=this.#s,r=SI(n);this.#f(`${this.#u(t?`Seek Forward`:`Seek Backward`)} ${r}`)}this.#s=-1,this.#c=-1},300)):n&&(this.#s=q(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&&xk(this.el,`aria-label`,n),fk(n)&&this.dispatch(`change`,{detail:n}),()=>window.clearTimeout(r)}#f(e){let{label:t}=this.$state;t.set(e)}},jL=class extends hA{static props={hideDelay:2e3,hideOnMouseLeave:!1};#e;onSetup(){this.#e=oN(),J(this.#n.bind(this))}onAttach(e){let{pictureInPicture:t,fullscreen:n}=this.#e.$state;Sk(e,`pointer-events`,`none`),mN(e,`role`,`group`),this.setAttributes({"data-visible":this.#r.bind(this),"data-fullscreen":n,"data-pip":t}),J(()=>{this.dispatch(`change`,{detail:this.#r()})}),J(this.#t.bind(this)),J(()=>{let t=n();for(let n of[`top`,`right`,`bottom`,`left`])Sk(e,`padding-${n}`,t&&`env(safe-area-inset-${n})`)})}#t(){if(!this.el)return;let{nativeControls:e}=this.#e.$state,t=e();xk(this.el,`aria-hidden`,t?`true`:null),Sk(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()}},ML=class extends hA{onAttach(e){e.style.pointerEvents||Sk(e,`pointer-events`,`auto`)}},NL=Ck(),PL=0,FL=class extends hA{static props={showDelay:700};#e=`media-tooltip-${++PL}`;#t=ak(null);#n=ak(null);#r=ak(!1);constructor(){super(),new RN;let{showDelay:e}=this.$props;new EI({trigger:this.#t,content:this.#n,showDelay:e,listen(e,t,n){J(()=>{LN()&&gk(e,`focus`,t),gk(e,`blur`,n)}),new sA(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(){wk(NL,{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`,``),xk(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`,mN(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&&xk(t,`aria-describedby`,e?this.#e:null);for(let r of[this.el,t,n])r&&xk(r,`data-visible`,e);this.#r.set(e)}},IL=class extends hA{constructor(){super(),new RN}onConnect(e){WO(xN(()=>{if(!this.connectScope)return;this.#e();let e=Tk(NL);WO(()=>{let t=this.#t();t&&e.detachTrigger(t)})}))}#e(){let e=this.#t(),t=Tk(NL);e&&t.attachTrigger(e)}#t(){let e=this.el.firstElementChild;return e?.localName===`button`||e?.getAttribute(`role`)===`button`?e:this.el}},LL=class extends hA{static props={placement:`top center`,offset:0,alignOffset:0};constructor(){super(),new RN;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=Tk(NL);WO(()=>t.detachContent(e)),WO(xN(()=>{this.connectScope&&J(this.#t.bind(this))}))}#e(e){Tk(NL).attachContent(e)}#t(){let{showing:e}=Tk(NL);if(!e())return;let{placement:t,offset:n,alignOffset:r}=this.$props;return TN(this.el,this.#n(),t(),{offsetVarName:`media-tooltip`,xOffset:r(),yOffset:n()})}#n(){return Tk(NL).trigger()}},RL=class extends hA{static props={disabled:!1,defaultPressed:!1};#e=ak(!1);get pressed(){return this.#e()}constructor(){super(),new DI({isPresssed:this.#e})}},zL=RL.prototype,Dk(zL,`pressed`),BL=class extends hA{static props=DI.props;#e;constructor(){super(),new DI({isPresssed:this.#n.bind(this),onPress:this.#t.bind(this)})}onSetup(){this.#e=oN();let{canGoogleCast:e,isGoogleCastConnected:t}=this.#e.$state;this.setAttributes({"data-active":t,"data-supported":e,"data-state":this.#r.bind(this),"aria-hidden":DN(()=>!e())})}onAttach(e){e.setAttribute(`data-media-tooltip`,`google-cast`),hN(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()}`}},VL=class extends hA{static props={src:null,crossOrigin:null};static state=new gA({video:null,src:null,crossOrigin:null,canPlay:!1,error:null,hidden:!1});#e;#t;get video(){return this.$state.video()}onSetup(){this.#e=oN(),this.#t=kk(WI.state),this.#i(),this.setAttributes({"data-loading":this.#a.bind(this),"data-hidden":this.$state.hidden,"data-error":this.#o.bind(this),"aria-hidden":DN(this.$state.hidden)})}onAttach(e){J(this.#n.bind(this)),J(this.#r.bind(this)),J(this.#i.bind(this)),J(this.#s.bind(this)),J(this.#c.bind(this)),J(this.#d.bind(this))}#n(){let e=this.$state.video();e&&(e.readyState>=2&&this.#l(),new sA(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!ck(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())}},HL=VL.prototype,Dk(HL,`video`),UL=class extends hA{static props={...UI.props,step:25,keyStep:25,shiftKeyMultiplier:2,min:0,max:300};static state=II;#e;onSetup(){this.#e=oN(),wk(HI,{default:`percent`,percent:(e,t)=>lN(this.$state.value(),t)+`%`}),new UI({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),J(this.#r.bind(this)),J(this.#i.bind(this))}onAttach(e){e.setAttribute(`data-media-audio-gain-slider`,``),mN(e,`aria-label`,`Audio Boost`);let{canSetAudioGain:t}=this.#e.$state;this.setAttributes({"data-supported":t,"aria-hidden":DN(()=>!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=lN(1+e.detail/100,2);this.#e.remote.changeAudioGain(t,e)}#s(e){this.#o(e)}#c(e){this.#o(e)}},WL=class extends hA{static props={...UI.props,step:.25,keyStep:.25,shiftKeyMultiplier:2,min:0,max:2};static state=II;#e;onSetup(){this.#e=oN(),new UI({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),J(this.#r.bind(this)),J(this.#i.bind(this))}onAttach(e){e.setAttribute(`data-media-speed-slider`,``),mN(e,`aria-label`,`Speed`);let{canSetPlaybackRate:t}=this.#e.$state;this.setAttributes({"data-supported":t,"aria-hidden":DN(()=>!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 lN(e,2)}#o(){let{disabled:e}=this.$props,{canSetPlaybackRate:t}=this.#e.$state;return e()||!t()}#s=vA(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)}},GL=class extends hA{static props={...UI.props,step:1,keyStep:1,shiftKeyMultiplier:1};static state=II;#e;#t=ok(()=>{let{qualities:e}=this.#e.$state;return vI(e())});onSetup(){this.#e=oN(),new UI({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),J(this.#i.bind(this)),J(this.#a.bind(this))}onAttach(e){e.setAttribute(`data-media-quality-slider`,``),mN(e,`aria-label`,`Video Quality`);let{qualities:t,canSetQuality:n}=this.#e.$state,r=ok(()=>n()&&t().length>0);this.setAttributes({"data-supported":r,"aria-hidden":DN(()=>!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=vA(this.#c.bind(this),25);#c(e){if(!e.trigger)return;let{qualities:t}=this.#e,n=q(this.#t)[e.detail];this.#e.remote.changeQuality(t.indexOf(n),e)}#l(e){this.#s(e)}#u(e){this.#s(e)}},KL=class extends hA{static props={disabled:!1};#e;#t;#n;#r=null;#i=[];#a=ak(null);#o=ak([]);#s=ak(-1);#c=ak(-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=oN(),this.#t=kk(nL.state)}onAttach(e){Tj(this.#e.textTracks,`chapters`,this.#u.bind(this)),J(this.#D.bind(this))}onConnect(){WO(()=>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&&HO(()=>this.#f(),this.#n=ZO())}#u(e){q(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&&J(this.#p.bind(this))}#p(){let{hidden:e}=this.#t;e()||(J(this.#m.bind(this)),J(this.#h.bind(this)),J(this.#g.bind(this)),J(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:lN((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=q(this.#s),c=a[s],l=o?this.#o.length-1:this.#y(c&&c.startTime/n()*100<=q(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+`%`),xk(e,`data-active`,t>0&&t<100),xk(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=Pk(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=ok(this.#C.bind(this));#C(){let{bufferedEnd:e,duration:t}=this.#e.$state;return lN(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,lN(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 sA(t).add(`add-cue`,e).add(`remove-cue`,e),J(this.#k.bind(this))}return this.#r=this.#N(),this.#r&&J(this.#j.bind(this)),()=>{this.#r&&=(this.#r.textContent=``,null)}}#k(){this.#e.$state.duration(),this.#A()}#A=yA(()=>{let e=q(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}},qL=KL.prototype,Dk(qL,`cues`),Dk(qL,`activeCue`),Dk(qL,`activePointerCue`),Ok(qL,`setRefs`),JL=class extends hA{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 gL,this.#e.onValueChange=this.#n.bind(this)}onSetup(){J(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)}},YL=JL.prototype,Dk(YL,`values`),Dk(YL,`value`),XL=class extends hA{static props={thumbnails:null};#e;#t;#n;#r=ak(null);#i=ak([]);get value(){return this.#n.value}get disabled(){return!this.#i()?.length}constructor(){super(),this.#n=new gL,this.#n.onValueChange=this.#u.bind(this)}onSetup(){this.#e=oN(),Ek(rL)&&(this.#t=Tk(rL));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:xI(Math.max(0,e.startTime-n)),duration:SI(Math.min(r,e.endTime)-Math.max(n,e.startTime))}))}#a(){q(()=>this.#c())}onConnect(e){J(this.#c.bind(this)),J(this.#l.bind(this)),J(this.#o.bind(this)),Tj(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 sA(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=>wj(e,a));this.#n.value=o.toString(),o>=0&&xN(()=>{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&&Sk(t,`--progress`,lN(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;dk(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}))}},wI([Dk],XL.prototype,`value`,null),wI([Dk],XL.prototype,`disabled`,null),wI([Ok],XL.prototype,`getOptions`,null),ZL=[1,1.25,1.5,1.75,2,2.5,3,4],QL=class extends hA{static props={normalLabel:`Disabled`,gains:ZL};#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 gL,this.#n.onValueChange=this.#s.bind(this)}onSetup(){this.#e=oN(),Ek(rL)&&(this.#t=Tk(rL))}onConnect(e){J(this.#r.bind(this)),J(this.#i.bind(this)),J(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})}},$L=QL.prototype,Dk($L,`value`),Dk($L,`disabled`),Ok($L,`getOptions`),eR=class extends hA{static props={disabled:!1,event:void 0,action:void 0};#e;#t=null;#n=null;onSetup(){this.#e=oN();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]`),J(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`&&gk(this.#t,`touchstart`,this.#s.bind(this),{passive:!0}),e=e===`pointerup`?`touchend`:`touchstart`),gk(this.#t,e,this.#o.bind(this),{passive:!1}))}#i=0;#a=-1;#o(e){if(!(this.$props.disabled()||_k(e)&&(e.button!==0||this.#e.activeMenu)||vk(e)&&this.#e.activeMenu||this.#c(e)||bN(e)||!this.#u(e))){if(e.MEDIA_GESTURE=!0,e.preventDefault(),!q(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(bN(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(!vk(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(q(this.$props.action),e),requestAnimationFrame(()=>{this.el.removeAttribute(`data-triggered`)})})}#u(e){if(!this.el)return!1;if(_k(e)||LCe(e)||vk(e)){let t=vk(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 iA(`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(q(this.#e.$state.currentTime)+(+i||0),t):this.#e.remote[UCe(r)](t),this.dispatch(`trigger`,{detail:e,trigger:t})}},tR=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 sA(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]})}},nR=class e extends hA{static props={textDir:`ltr`,exampleText:`Captions look like this.`};#e;static lib=ak(null);onSetup(){this.#e=oN(),this.setAttributes({"aria-hidden":DN(this.#t.bind(this))})}onAttach(e){e.style.setProperty(`pointer-events`,`none`)}onConnect(t){e.lib()||Promise.resolve().then(()=>(eN(),$M)).then(t=>e.lib.set(t)),J(this.#n.bind(this))}#t(){let{textTrack:e,remotePlaybackState:t,iOSControls:n}=this.#e.$state,r=e();return n()||t()===`connected`||!r||!tN(r)}#n(){if(!e.lib())return;let{viewType:t}=this.#e.$state;return t()===`audio`?this.#r():this.#s()}#r(){return J(this.#i.bind(this)),this.#u(null),()=>{this.el.textContent=``}}#i(){if(this.#t())return;this.#a();let{textTrack:e}=this.#e.$state;gk(e(),`cue-change`,this.#a.bind(this)),J(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=q(t),a=q(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 tR(n);return this.#e.textRenderers.add(r),J(this.#c.bind(this,n)),J(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&&gk(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();xk(e,`data-example`,``);let t=this.#_();xk(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 xk(e,`data-part`,`cue-display`),e}#_(){let e=document.createElement(`div`);return xk(e,`data-part`,`cue`),e}}})),rR,GTe=O((()=>{RA(),Cj(),cN(),rR=class extends hA{static props={src:null,alt:null,crossOrigin:null};static state=new gA({img:null,src:null,alt:null,crossOrigin:null,loading:!0,error:null,hidden:!1});#e;onSetup(){this.#e=oN(),this.#s(),this.#c(),this.#l(),this.#r()}onAttach(e){e.style.setProperty(`pointer-events`,`none`),J(this.#a.bind(this)),J(this.#s.bind(this)),J(this.#c.bind(this)),J(this.#l.bind(this)),J(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){J(this.#n.bind(this)),J(this.#u.bind(this))}#t(){let{error:e}=this.$state;return!ck(e())}#n(){let{canLoadPoster:e,poster:t}=this.#e.$state;!e()&&t()&&yj(t(),`preconnect`)}#r(){let{src:e}=this.$props,{poster:t,nativeControls:n}=this.#e.$state;this.el&&xk(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 sA(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)}}})),iR=O((()=>{_I(),mj()}));function KTe({src:e,type:t}){return XA({src:e,type:t})||ZA({src:e,type:t})||qTe({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 qTe({type:e}){return e?.includes(`/object`)}var JTe=O((()=>{iR()})),aR,oR=O((()=>{JTe(),aR=({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)(()=>typeof i.value==`object`?i.value:void 0),c=(0,t.computed)(()=>o.value?`video/object`:a.value||s.value?.type),l=(0,t.computed)(()=>{if(o.value)return o.value;let e=typeof i.value==`string`?i.value:s.value?.src;return e instanceof Blob?e:typeof e==`string`?e.replace(`/download`,`/stream`):e});return{normalizedSrcObject:(0,t.computed)(()=>KTe({src:l.value,type:c.value??``}))}}})),YTe=O((()=>{}));function XTe(e,n){let r=(0,t.resolveComponent)(`wt-icon`);return(0,t.openBlock)(),(0,t.createElementBlock)(`media-mute-button`,cR,[(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 sR,cR,lR,ZTe=O((()=>{YTe(),R(),sR={},cR={class:`mute-button`},lR=L(sR,[[`render`,XTe],[`__scopeId`,`data-v-45e5719d`]])})),uR,dR,fR=O((()=>{oh(),uR={class:`play-button`},dR=(0,t.defineComponent)({__name:`play-button`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`media-play-button`,uR,[(0,t.createVNode)(ah,{icon:`plyr-play`,type:`play`,class:`play-icon`,size:`sm`}),(0,t.createVNode)(ah,{icon:`plyr-pause`,type:`pause`,class:`pause-icon`,size:`sm`})]))}})})),QTe=O((()=>{})),pR,$Te=O((()=>{fR(),fR(),QTe(),R(),pR=L(dR,[[`__scopeId`,`data-v-e6149485`]])})),mR,hR,gR=O((()=>{_O(),mR={class:`time-slider media-slider`},hR=(0,t.defineComponent)({__name:`time-slider`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`media-time-slider`,mR,[(0,t.createVNode)(gO,{class:`time-slider__slider`})]))}})})),eEe=O((()=>{})),_R,tEe=O((()=>{gR(),gR(),eEe(),R(),_R=L(hR,[[`__scopeId`,`data-v-e57a9871`]])})),vR,yR,bR=O((()=>{_O(),vR={class:`volume-slider media-slider`},yR=(0,t.defineComponent)({__name:`volume-slider`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`media-volume-slider`,vR,[(0,t.createVNode)(gO,{class:`volume-slider__slider`})]))}})})),nEe=O((()=>{})),xR,rEe=O((()=>{bR(),bR(),nEe(),R(),xR=L(yR,[[`__scopeId`,`data-v-b92a4daf`]])})),SR,CR,wR,TR=O((()=>{Xp(),SCe(),LO(),oR(),ZTe(),$Te(),tEe(),rEe(),SR=[`src`,`loop`,`autoplay`,`playback-rate`],CR={class:`controls-group`},wR=(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}=aR({src:a});function s(){let e=typeof r.src==`string`?r.src:r.src?.src,t=typeof r.download==`function`?r.download(typeof e==`string`?e:``):String(r.download),n=typeof r.src==`object`?r.src?.type?.split(`/`).pop():void 0,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`,CR,[(0,t.createVNode)(pR),(0,t.createVNode)(_R),(0,t.createVNode)(IO,{countdown:r.countdownTimeMode},null,8,[`countdown`]),r.hideMuteButton?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(lR,{key:0})),r.hideVolumeSlider?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(xR,{key:1})),r.hideSettings?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(jO,{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)(V).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)(V).SM},null,8,[`size`])])):(0,t.createCommentVNode)(``,!0)])],42,SR)}}})})),iEe=O((()=>{})),aEe=A({default:()=>ER}),ER,oEe=O((()=>{TR(),TR(),iEe(),R(),ER=L(wR,[[`__scopeId`,`data-v-146dd594`]])})),DR,OR,kR=O((()=>{Wb(),Sy(),DR={class:`wt-search-bar__icon-controls`},OR=(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`,`focus`],setup(e,{emit:n}){let r=e,i=n,{v:a,customValidators:o}=(0,t.toRefs)(r),{invalid:s}=Ub({v:a,customValidators:o}),c=(0,t.computed)(()=>s.value?`error`:`default`),l=(0,t.computed)(()=>r.value||r.searchMode||r.hint),u=xy(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 u=(0,t.resolveComponent)(`wt-icon`),m=(0,t.resolveComponent)(`wt-icon-btn`),h=(0,t.resolveComponent)(`wt-hint`),g=(0,t.resolveComponent)(`wt-radio`),_=(0,t.resolveComponent)(`wt-context-menu`),v=(0,t.resolveComponent)(`wt-input-text`),y=(0,t.resolveDirective)(`tooltip`);return(0,t.openBlock)(),(0,t.createBlock)(v,{"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,onFocus:r[1]||=e=>i(`focus`,e)},(0,t.createSlots)({prefix:(0,t.withCtx)(()=>[(0,t.createVNode)(u,{color:c.value,icon:typeof e.searchMode==`object`&&e.searchMode?.icon||`search`},null,8,[`color`,`icon`])]),_:2},[l.value?{name:`suffix`,fn:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,DR,[e.value?((0,t.openBlock)(),(0,t.createBlock)(m,{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)(h,{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)(_,{key:2,options:e.searchModeOptions,onClick:p},{activator:(0,t.withCtx)(({toggle:e})=>[(0,t.withDirectives)((0,t.createVNode)(m,{color:(0,t.unref)(s)?`error`:`default`,icon:`filter`,onClick:e},null,8,[`color`,`onClick`]),[[y,n.$t(`webitelUI.searchBar.settingsHint`)]])]),option:(0,t.withCtx)(({value:n,text:r})=>[(0,t.createVNode)(g,{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`])}}})})),sEe=O((()=>{})),cEe=A({default:()=>AR}),AR,lEe=O((()=>{kR(),kR(),sEe(),R(),AR=L(OR,[[`__scopeId`,`data-v-33881702`]])})),jR,uEe=O((()=>{Tp(),jR=[{locale:`webitelUI.statusSelect.online`,color:`success`,value:wp.ONLINE},{locale:`webitelUI.statusSelect.pause`,color:`primary`,value:wp.PAUSE},{locale:`webitelUI.statusSelect.offline`,color:`secondary`,value:wp.OFFLINE},{locale:`webitelUI.statusSelect.breakOut`,color:`break-out`,value:wp.BREAK_OUT}]})),MR,NR=O((()=>{iy(),Xp(),by(),uEe(),MR=(0,t.defineComponent)({__name:`wt-status-select`,props:{status:{default:wp.OFFLINE},statusDuration:{default:0},options:{},disabled:{type:Boolean,default:!1}},emits:[`change`],setup(e,{emit:n}){let r=e,i=n,{t:a}=Tv(),o=(0,t.computed)(()=>r.options?r.options:jR.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.filter(e=>e.value!==wp.BREAK_OUT&&(e.value!==wp.OFFLINE||r.status!==wp.OFFLINE))),l=(0,t.computed)(()=>typeof r.statusDuration==`string`?r.statusDuration:r.statusDuration===void 0?s.value?.text??``:yy(r.statusDuration));function u(e){i(`change`,e.value)}return(n,r)=>{let i=(0,t.resolveComponent)(`wt-indicator`),a=(0,t.resolveComponent)(`wt-single-select`);return(0,t.openBlock)(),(0,t.createBlock)(a,{"show-clear":!1,options:c.value,filterable:!1,"model-value":s.value,disabled:e.disabled,class:`wt-status-select`,"data-key":`value`,size:(0,t.unref)(V).SM,"onUpdate:modelValue":u},{value:(0,t.withCtx)(()=>[(0,t.createVNode)(i,{color:s.value?.color,text:l.value},null,8,[`color`,`text`])]),option:(0,t.withCtx)(({option:e})=>[(0,t.createVNode)(i,{color:e.color,text:e.text},null,8,[`color`,`text`])]),_:1},8,[`options`,`model-value`,`disabled`,`size`])}}})})),dEe=A({default:()=>PR}),PR,fEe=O((()=>{NR(),NR(),PR=MR})),pEe=O((()=>{})),mEe=A({default:()=>VR}),FR,IR,LR,RR,zR,BR,VR,hEe=O((()=>{pEe(),R(),FR={class:`wt-stepper`},IR={class:`wt-stepper-header`},LR={class:`wt-stepper-steps`},RR={class:`wt-stepper-steps__wrapper`},zR={class:`wt-stepper-description`},BR={__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`,FR,[(0,t.createElementVNode)(`div`,IR,[(0,t.createElementVNode)(`div`,LR,[((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`,RR,[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`,zR,(0,t.toDisplayString)(r.value),1)],!0),(0,t.renderSlot)(e.$slots,`main`,{},void 0,!0)])}}},VR=L(BR,[[`__scopeId`,`data-v-7b06c506`]])})),HR,UR,WR=O((()=>{Xp(),Jm(),Lb(),pO(),HR=[`onPointerenter`,`onPointerleave`],UR=(0,t.defineComponent)({__name:`wt-table-column-filter`,props:{active:{type:Boolean}},setup(e){let n=e,r=(0,t.useSlots)(),i=(e,t)=>{n.active&&r.preview&&t(e)},a=(e,t,n)=>{n(),t(e)};return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(fO,{class:`wt-table-column-filter`},{activator:(0,t.withCtx)(({toggle:o})=>[(0,t.createVNode)(fO,{class:`wt-table-column-filter__preview`},{activator:(0,t.withCtx)(({show:n,hide:s})=>[(0,t.createElementVNode)(`div`,{class:`wt-table-column-filter__wrapper`,"data-pc-section":`columnfilterbutton`,onPointerenter:e=>i(e,n),onPointerleave:s},[(0,t.createVNode)(qm,{hidden:!e.active},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ib,{icon:`table-filter`,size:(0,t.unref)(V).SM,onClick:e=>a(e,o,s),onMousedown:r[0]||=(0,t.withModifiers)(()=>{},[`stop`])},null,8,[`size`,`onClick`])],void 0,!0),_:2},1032,[`hidden`])],40,HR)]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`preview`,{},void 0,!0)]),_:2},1024)]),default:(0,t.withCtx)(({hide:e})=>[(0,t.renderSlot)(n.$slots,`default`,(0,t.normalizeProps)((0,t.guardReactiveProps)({hide:e})),void 0,!0)]),_:3}))}})})),gEe=O((()=>{})),GR,_Ee=O((()=>{WR(),WR(),gEe(),R(),GR=L(UR,[[`__scopeId`,`data-v-e55022a4`]])})),KR,qR,JR,YR,XR,ZR,QR=O((()=>{zy(),iy(),px(),_Ee(),KR={class:`wt-table`},qR={key:0,class:`wt-table__empty`},JR={class:`wt-table__th__title`},YR={class:`wt-table__td__actions`},XR=40,ZR=(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},stripedRows:{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:XR},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},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}=Tv(),a=(0,t.useSlots)(),o=n,s=({dragIndex:e,dropIndex:t})=>o(`reorder:row`,{oldIndex:e,newIndex:t}),c=(0,t.useTemplateRef)(`table`),l=(0,t.ref)(0),u=(0,t.ref)([]),{addTableDragListener:d,removeTableDragListener:f}=ux(c,r.reorderableColumns),p=(0,t.computed)(()=>r.selectable?r.selected||r.data.filter(e=>e._isSelected):[]),m=(0,t.computed)(()=>{let e=r.headers.map(e=>!e.text&&e.locale?{...e,text:typeof e.locale==`string`?i(e.locale):i(...e.locale)}:e),t=e.filter(e=>e.reorderable===!1),n=e.filter(e=>e.reorderable!==!1);return[...t,...n]}),h=[`row-select`,`row-reorder`,`row-actions`,`row-expander`],g=(0,t.computed)(()=>[...m.value.filter(e=>e.reorderable===!1).map(e=>e.field||e.value),...h]),_=e=>e.show===!1,v=e=>({minWidth:e.width||`140px`}),y=(0,t.computed)(()=>Object.keys(a).some(e=>e.includes(`-footer`))),b=(0,t.computed)(()=>Object.keys(a).some(e=>e===`footer`)),x=(0,t.computed)(()=>!!a.empty&&!r.loading&&!r.data.length),S=(0,t.computed)(()=>p.value.length===r.data.length&&r.data.length>0),C=(0,t.computed)(()=>r.headers.find(e=>e.sort===Ly.ASC||e.sort===Ly.DESC)?.field??null),w=({sortField:e})=>{let t=m.value.find(t=>t.field===e);if(!t||!T(t))return;let n=Ry(t.sort);o(`sort`,t,n)},T=({sort:e})=>r.sortable&&e!==void 0,ee=()=>{r.selected?S.value?o(`update:selected`,[]):o(`update:selected`,[...r.data]):S.value?r.data.forEach(e=>{e._isSelected=!1}):r.data.forEach(e=>{e._isSelected=!0})},te=(e,t)=>{r.selected?t?o(`update:selected`,[...p.value,e]):o(`update:selected`,p.value.filter(t=>t!==e)):e._isSelected=!e._isSelected},ne=({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`})},re=()=>{let e=c.value?.$el?.querySelector(`.p-datatable-table-container`)?.scrollLeft,n=c.value?.d_columnOrder.filter(e=>!g.value.includes(e));l.value+=1,o(`column-reorder`,n),(0,t.nextTick)(()=>{d();let t=c.value?.$el?.querySelector(`.p-datatable-table-container`);t&&(t.scrollLeft=e)})},ie=e=>u.value.some(t=>t?.id===e?.id),E=e=>{let t=u.value.findIndex(t=>t.id===e.id);t===-1?u.value.push(e):u.value.splice(t,1)},ae=(0,t.computed)(()=>{if(r.lazy)return{lazy:r.lazy,onLazyLoad:r.onLoading,itemSize:r.itemSize,numToleratedItems:r.data.length,totalRecords:r.data.length,autoSize:!0}});return(0,t.onMounted)(()=>{d()}),(0,t.onUnmounted)(()=>{f()}),(n,i)=>{let a=(0,t.resolveComponent)(`wt-icon-btn`),o=(0,t.resolveComponent)(`p-column`),d=(0,t.resolveComponent)(`wt-icon`),f=(0,t.resolveComponent)(`wt-checkbox`),h=(0,t.resolveComponent)(`p-table`),g=(0,t.resolveDirective)(`tooltip`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,KR,[x.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,qR,[(0,t.renderSlot)(n.$slots,`empty`,{},void 0,!0)])):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(),(0,t.createBlock)(h,{key:l.value,ref_key:`table`,ref:c,"expanded-rows":u.value,"reorderable-columns":e.reorderableColumns,"resizable-columns":e.resizableColumns,"row-class":e.rowClass,"row-style":e.rowStyle,"show-headers":!e.headless,"striped-rows":e.stripedRows,value:e.data,"sort-field":C.value,"data-key":r.dataKey,class:(0,t.normalizeClass)([{"wt-table__wrapper--overlay":x.value},`wt-table`]),"column-resize-mode":`expand`,lazy:``,"scroll-height":`flex`,scrollable:``,"virtual-scroller-options":ae.value,pt:{tableContainer:`wt-scrollbar`},onSort:w,"onUpdate:expandedRows":i[0]||=e=>u.value=e,onColumnResizeEnd:ne,onColumnReorder:re,onRowReorder:s},(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)(o,{key:0,pt:{columnresizer:{class:{hidden:!0}}},"reorderable-column":!1,"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:ie(e)?`arrow-down`:`arrow-right`,onClick:(0,t.withModifiers)(t=>E(e),[`stop`])},null,8,[`disabled`,`icon`,`onClick`])]),_:1})):(0,t.createCommentVNode)(``,!0),e.rowReorder?((0,t.openBlock)(),(0,t.createBlock)(o,{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)(o,{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:S.value,"onUpdate:selected":ee},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=>te(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)(o,{key:e.value,"column-key":e.field||e.value,field:e.field,"reorderable-column":e.reorderable!==!1,hidden:_(e),pt:{root:{"data-column-field":e.field}},sortable:T(e)},(0,t.createSlots)({header:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`header-${e.value}`,{index:r,header:e},()=>[(0,t.createElementVNode)(`div`,{style:(0,t.normalizeStyle)(v(e)),class:`wt-table__th__content typo-body-1-bold`},[(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`span`,JR,[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)])),[[g,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),e.filter&&n.$slots[`column-filter`]?((0,t.openBlock)(),(0,t.createBlock)(GR,{key:2,active:!!e.filtered},{default:(0,t.withCtx)(({hide:r})=>[(0,t.renderSlot)(n.$slots,`column-filter`,{header:e,hide:r,formView:!0},void 0,!0)]),preview:(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`column-filter`,{header:e,formView:!1},void 0,!0)]),_:2},1032,[`active`])):(0,t.createCommentVNode)(``,!0)],4)],!0)]),body:(0,t.withCtx)(({data:r,index:i})=>[(0,t.createElementVNode)(`div`,{style:(0,t.normalizeStyle)(v(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},[y.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`,`reorderable-column`,`hidden`,`pt`,`sortable`]))),128)),e.gridActions?((0,t.openBlock)(),(0,t.createBlock)(o,{key:3,frozen:e.fixedActions,"reorderable-column":!1,"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`,YR,[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},[b.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`,`striped-rows`,`value`,`sort-field`,`data-key`,`class`,`virtual-scroller-options`]))])}}})})),vEe=O((()=>{})),yEe=A({default:()=>$R}),$R,bEe=O((()=>{QR(),QR(),vEe(),R(),$R=L(ZR,[[`__scopeId`,`data-v-4f7c04e7`]])})),ez,tz,nz=O((()=>{ez={class:`wt-table-actions`},tz=(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`,ez,[(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),e.isSettingsBadge?((0,t.openBlock)(),(0,t.createBlock)(d,{key:5},{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})):(0,t.createCommentVNode)(``,!0)])}}})})),xEe=O((()=>{})),SEe=A({default:()=>rz}),rz,CEe=O((()=>{nz(),nz(),xEe(),R(),rz=L(tz,[[`__scopeId`,`data-v-af061e66`]])})),iz=k(((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]}})})),az,wEe=O((()=>{az=`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`})),oz,TEe=O((()=>{oz=`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`})),sz,cz,lz,uz=O((()=>{sz=ye(iz(),1),iy(),wEe(),TEe(),cz={class:`wt-table-column-select`},lz=(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}=Tv(),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(String(t[0]),...t.slice(1)):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)),f=(0,t.computed)(()=>s.value.some(e=>e.show));function p(){s.value=(0,sz.default)(r.headers)}function m(){l.value=!0}function h(){l.value=!1,c.value=``}function g(){i(`change`,s.value),h()}return(0,t.watch)(l,()=>{p()}),(n,r)=>{let i=(0,t.resolveComponent)(`wt-icon-btn`),a=(0,t.resolveComponent)(`wt-icon`),s=(0,t.resolveComponent)(`wt-input-text`),p=(0,t.resolveComponent)(`wt-checkbox`),_=(0,t.resolveComponent)(`wt-empty`),v=(0,t.resolveComponent)(`wt-button`),y=(0,t.resolveComponent)(`wt-popup`),b=(0,t.resolveDirective)(`tooltip`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,cz,[(0,t.withDirectives)((0,t.createVNode)(i,{icon:`column-select`,onClick:m},null,512),[[b,n.$t(`webitelUI.tableColumnSelect.title`)]]),(0,t.createVNode)(y,{shown:l.value,class:`wt-table-column-select__popup`,onClose:h},{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,"wt-table-column-select__popup-list-wrap--empty":!d.value.length}])},[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)(p,{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)(_,{key:1,image:(0,t.unref)(o)?(0,t.unref)(az):(0,t.unref)(oz),text:n.$t(`webitelUI.empty.text.filters`),size:`sm`},null,8,[`image`,`text`]))],2)]),actions:(0,t.withCtx)(()=>[(0,t.createVNode)(v,{disabled:!f.value,onClick:g},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.$t(`reusable.add`)),1)],void 0,!0),_:1},8,[`disabled`]),(0,t.createVNode)(v,{color:`secondary`,onClick:h},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.$t(`reusable.cancel`)),1)],void 0,!0),_:1})]),_:1},8,[`shown`])])}}})})),EEe=O((()=>{})),DEe=A({default:()=>dz}),dz,OEe=O((()=>{uz(),uz(),EEe(),R(),dz=L(lz,[[`__scopeId`,`data-v-3cc9bbe8`]])})),kEe=O((()=>{})),AEe=A({default:()=>gz});function jEe(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`,mz,(0,t.toDisplayString)(n.text),1)],!0)],10,pz))),128)),(0,t.createElementVNode)(`div`,hz,[(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 fz,pz,mz,hz,gz,MEe=O((()=>{kEe(),R(),fz={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}}},pz=[`value`,`onClick`],mz={style:{display:`block`}},hz={class:`wt-tabs__underline`},gz=L(fz,[[`render`,jEe],[`__scopeId`,`data-v-29699967`]])})),_z,vz=O((()=>{_z=(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:{type:[Object,null,Boolean],default:null},regleValidation:{},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,"regle-validation":e.regleValidation,"custom-validators":e.customValidators,required:e.required,disabled:e.disabled,"hide-input-info":e.hideInputInfo},null,8,[`model-value`,`label`,`label-props`,`name`,`max`,`min`,`v`,`regle-validation`,`custom-validators`,`required`,`disabled`,`hide-input-info`])}}})})),NEe=A({default:()=>yz}),yz,PEe=O((()=>{vz(),vz(),yz=_z})),bz,xz,Sz,Cz,wz=O((()=>{iy(),Xp(),Wb(),bz={class:`wt-timepicker__wrapper`},xz=3600,Sz=60,Cz=(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:{type:[Object,null,Boolean],default:null},regleValidation:{},customValidators:{default:()=>[]}},emits:[`update:modelValue`],setup(e,{emit:n}){let r=e,i=n,{t:a}=Tv(),{v:o,customValidators:s,regleValidation:c}=(0,t.toRefs)(r),{isValidation:l,invalid:u,validationText:d,validationTextColor:f}=Ub({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/xz)},set(e){if(!Number.isFinite(+e))return;let t=r.dateMode?new Date(+r.modelValue).setHours(e):Math.max(0,+r.modelValue-y.value*xz+e*xz);i(`update:modelValue`,t)}}),b=(0,t.computed)({get(){return r.dateMode?new Date(+r.modelValue).getMinutes():Math.floor(+r.modelValue/Sz%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*Sz+e*Sz);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*xz+y.value*xz;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`),w=(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`,bz,[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),"regle-validation":(0,t.unref)(c),"custom-validators":(0,t.unref)(s),"hide-input-info":``,onBlur:C},null,8,[`model-value`,`disabled`,`label`,`v`,`regle-validation`,`custom-validators`])):(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),"regle-validation":(0,t.unref)(c),"custom-validators":(0,t.unref)(s),"hide-input-info":``},null,8,[`model-value`,`disabled`,`label`,`min-value`,`v`,`regle-validation`,`custom-validators`])):(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),"regle-validation":(0,t.unref)(c),"custom-validators":(0,t.unref)(s),"hide-input-info":``},null,8,[`model-value`,`disabled`,`label`,`min-value`,`v`,`regle-validation`,`custom-validators`])):(0,t.createCommentVNode)(``,!0)]),(0,t.unref)(l)&&(0,t.unref)(d)?((0,t.openBlock)(),(0,t.createBlock)(w,{key:1,color:(0,t.unref)(f),variant:(0,t.unref)(Wp).SIMPLE,size:(0,t.unref)(V).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)}}})})),FEe=O((()=>{})),IEe=A({default:()=>Tz}),Tz,LEe=O((()=>{wz(),wz(),FEe(),R(),Tz=L(Cz,[[`__scopeId`,`data-v-5c9f2a80`]])})),Ez=k(((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}})),REe=k(((e,t)=>{var n;if(!Object.keys){var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=Ez(),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})),Dz=k(((e,t)=>{var n=Array.prototype.slice,r=Ez(),i=Object.keys,a=i?function(e){return i(e)}:REe(),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})),Oz=k(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),kz=k(((e,t)=>{t.exports=SyntaxError})),Az=k(((e,t)=>{t.exports=TypeError})),zEe=k(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),jz=k(((e,t)=>{var n=zEe();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),Mz=k(((e,t)=>{var n=Oz(),r=kz(),i=Az(),a=jz();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.`)}})),Nz=k(((e,t)=>{var n=Oz(),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})),Pz=k(((e,t)=>{var n=Dz(),r=typeof Symbol==`function`&&typeof Symbol(`foo`)==`symbol`,i=Object.prototype.toString,a=Array.prototype.concat,o=Mz(),s=function(e){return typeof e==`function`&&i.call(e)===`[object Function]`},c=Nz()(),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})),Fz=k(((e,t)=>{t.exports=Object})),Iz=k(((e,t)=>{t.exports=Error})),BEe=k(((e,t)=>{t.exports=EvalError})),VEe=k(((e,t)=>{t.exports=RangeError})),HEe=k(((e,t)=>{t.exports=ReferenceError})),UEe=k(((e,t)=>{t.exports=URIError})),WEe=k(((e,t)=>{t.exports=Math.abs})),GEe=k(((e,t)=>{t.exports=Math.floor})),KEe=k(((e,t)=>{t.exports=Math.max})),qEe=k(((e,t)=>{t.exports=Math.min})),JEe=k(((e,t)=>{t.exports=Math.pow})),YEe=k(((e,t)=>{t.exports=Math.round})),XEe=k(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),ZEe=k(((e,t)=>{var n=XEe();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),Lz=k(((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}})),Rz=k(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=Lz();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),zz=k(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),Bz=k(((e,t)=>{t.exports=Fz().getPrototypeOf||null})),QEe=k(((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}})),Vz=k(((e,t)=>{var n=QEe();t.exports=Function.prototype.bind||n})),Hz=k(((e,t)=>{t.exports=Function.prototype.call})),Uz=k(((e,t)=>{t.exports=Function.prototype.apply})),$Ee=k(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),Wz=k(((e,t)=>{var n=Vz(),r=Uz(),i=Hz();t.exports=$Ee()||n.call(i,r)})),Gz=k(((e,t)=>{var n=Vz(),r=Az(),i=Hz(),a=Wz();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),eDe=k(((e,t)=>{var n=Gz(),r=jz(),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})),Kz=k(((e,t)=>{var n=zz(),r=Bz(),i=eDe();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})),qz=k(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=Vz().call(n,r)})),Jz=k(((e,t)=>{var n,r=Fz(),i=Iz(),a=BEe(),o=VEe(),s=HEe(),c=kz(),l=Az(),u=UEe(),d=WEe(),f=GEe(),p=KEe(),m=qEe(),h=JEe(),g=YEe(),_=ZEe(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=jz(),x=Oz(),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=Rz()(),T=Kz(),ee=Bz(),te=zz(),ne=Uz(),re=Hz(),ie={},E=typeof Uint8Array>`u`||!T?n:T(Uint8Array),ae={__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%":ie,"%AsyncGenerator%":ie,"%AsyncGeneratorFunction%":ie,"%AsyncIteratorPrototype%":ie,"%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%":ie,"%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%":E,"%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%":re,"%Function.prototype.apply%":ne,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":ee,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":te};if(T)try{null.error}catch(e){ae[`%Error.prototype%`]=T(T(e))}var oe=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 ae[t]=n,n},se={__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`]},ce=Vz(),le=qz(),D=ce.call(re,Array.prototype.concat),ue=ce.call(ne,Array.prototype.splice),de=ce.call(re,String.prototype.replace),fe=ce.call(re,String.prototype.slice),pe=ce.call(re,RegExp.prototype.exec),me=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,he=/\\(\\)?/g,ge=function(e){var t=fe(e,0,1),n=fe(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 de(e,me,function(e,t,n,i){r[r.length]=n?de(i,he,`$1`):t||e}),r},O=function(e,t){var n=e,r;if(le(se,n)&&(r=se[n],n=`%`+r[0]+`%`),le(ae,n)){var i=ae[n];if(i===ie&&(i=oe(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(pe(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ge(e),r=n.length>0?n[0]:``,i=O(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],ue(n,D([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=fe(p,0,1),h=fe(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+`%`,le(ae,a))o=ae[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=le(o,p),o=o[p];f&&!s&&(ae[a]=o)}}return o}})),tDe=k(((e,t)=>{var n=Jz(),r=Mz(),i=Nz()(),a=jz(),o=Az(),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}})),nDe=k(((e,t)=>{var n=Vz(),r=Uz(),i=Wz();t.exports=function(){return i(n,r,arguments)}})),Yz=k(((e,t)=>{var n=tDe(),r=Oz(),i=Gz(),a=nDe();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})),Xz=k(((e,t)=>{var n=Jz(),r=Gz(),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}})),Zz=k(((e,t)=>{var n=Dz(),r=Lz()(),i=Xz(),a=Fz(),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}})),Qz=k(((e,t)=>{var n=Zz(),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}})),rDe=k(((e,t)=>{var n=Pz(),r=Qz();t.exports=function(){var e=r();return n(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e}})),iDe=k(((e,t)=>{var n=Pz(),r=Yz(),i=Zz(),a=Qz(),o=rDe(),s=r.apply(a()),c=function(e,t){return s(Object,arguments)};n(c,{getPolyfill:a,implementation:i,shim:o}),t.exports=c})),$z=k(((e,t)=>{var n=Jz(),r=Yz(),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}})),aDe=k(((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})),oDe=k(((e,t)=>{var n=Mz(),r=Nz()(),i=aDe().functionsHaveConfigurableNames(),a=Az();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}})),eB=k(((e,t)=>{var n=oDe(),r=Az(),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)})),tB=k(((e,t)=>{var n=eB(),r=Pz().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}})),sDe=k(((e,t)=>{var n=Pz().supportsDescriptors,r=tB(),i=jz(),a=Object.defineProperty,o=Iz(),s=Kz(),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}})),cDe=k(((e,t)=>{var n=Pz(),r=Yz(),i=eB(),a=tB(),o=sDe(),s=r(a());n(s,{getPolyfill:a,implementation:i,shim:o}),t.exports=s})),nB=k(((e,t)=>{var n=Lz();t.exports=function(){return n()&&!!Symbol.toStringTag}})),rB=k(((e,t)=>{var n=nB()(),r=Xz()(`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})),lDe=k(((e,t)=>{t.exports={}})),iB=k(((e,t)=>{Xe();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,ee=typeof BigInt==`function`?BigInt.prototype.valueOf:null,te=Object.getOwnPropertySymbols,ne=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,re=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,ie=typeof Symbol==`function`&&Symbol.toStringTag?Symbol.toStringTag:null,E=Object.prototype.propertyIsEnumerable,ae=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function oe(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 se=lDe(),ce=se.custom,le=ve(ce)?ce:null,D={__proto__:null,double:`"`,single:`'`},ue={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(xe(s,`quoteStyle`)&&!xe(D,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(xe(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=xe(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(xe(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(xe(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 je(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?oe(t,f):f}if(typeof t==`bigint`){var m=String(t)+`n`;return d?oe(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 me(t)?`[Array]`:`[Object]`;var g=Le(s,r);if(o===void 0)o=[];else if(we(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 xe(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!ge(t)){var x=Ce(t),T=Re(t,y);return`[Function`+(x?`: `+x:` (anonymous)`)+`]`+(T.length>0?` { `+C.call(T,`, `)+` }`:``)}if(ve(t)){var te=re?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):ne.call(t);return typeof t==`object`&&!re?Ne(te):te}if(Ae(t)){for(var ce=`<`+b.call(String(t.nodeName)),ue=t.attributes||[],pe=0;pe<ue.length;pe++)ce+=` `+ue[pe].name+`=`+de(fe(ue[pe].value),`double`,s);return ce+=`>`,t.childNodes&&t.childNodes.length&&(ce+=`...`),ce+=`</`+b.call(String(t.nodeName))+`>`,ce}if(me(t)){if(t.length===0)return`[]`;var be=Re(t,y);return g&&!Ie(be)?`[`+j(be,g)+`]`:`[ `+C.call(be,`, `)+` ]`}if(O(t)){var Me=Re(t,y);return!(`cause`in Error.prototype)&&`cause`in t&&!E.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(le&&typeof t[le]==`function`&&se)return se(t,{depth:h-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(Te(t)){var ze=[];return a&&a.call(t,function(e,n){ze.push(y(n,t,!0)+` => `+y(e,t))}),Fe(`Map`,i.call(t),ze,g)}if(Oe(t)){var Be=[];return l&&l.call(t,function(e){Be.push(y(e,t))}),Fe(`Set`,c.call(t),Be,g)}if(Ee(t))return Pe(`WeakMap`);if(ke(t))return Pe(`WeakSet`);if(De(t))return Pe(`WeakRef`);if(A(t))return Ne(y(Number(t)));if(ye(t))return Ne(y(ee.call(t)));if(_e(t))return Ne(p.call(t));if(k(t))return Ne(y(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||Ye!==void 0&&t===Ye)return`{ [object globalThis] }`;if(!he(t)&&!ge(t)){var Ve=Re(t,y),He=ae?ae(t)===Object.prototype:t instanceof Object||t.constructor===Object,Ue=t instanceof Object?``:`null prototype`,We=!He&&ie&&Object(t)===t&&ie in t?_.call(Se(t),8,-1):Ue?`Object`:``,Ge=(He||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``)+(We||Ue?`[`+C.call(S.call([],We||[],Ue||[]),`: `)+`] `:``);return Ve.length===0?Ge+`{}`:g?Ge+`{`+j(Ve,g)+`}`:Ge+`{ `+C.call(Ve,`, `)+` }`}return String(t)};function de(e,t,n){var r=D[n.quoteStyle||t];return r+e+r}function fe(e){return v.call(String(e),/"/g,`&quot;`)}function pe(e){return!ie||!(typeof e==`object`&&(ie in e||e[ie]!==void 0))}function me(e){return Se(e)===`[object Array]`&&pe(e)}function he(e){return Se(e)===`[object Date]`&&pe(e)}function ge(e){return Se(e)===`[object RegExp]`&&pe(e)}function O(e){return Se(e)===`[object Error]`&&pe(e)}function k(e){return Se(e)===`[object String]`&&pe(e)}function A(e){return Se(e)===`[object Number]`&&pe(e)}function _e(e){return Se(e)===`[object Boolean]`&&pe(e)}function ve(e){if(re)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!ne)return!1;try{return ne.call(e),!0}catch{}return!1}function ye(e){if(!e||typeof e!=`object`||!ee)return!1;try{return ee.call(e),!0}catch{}return!1}var be=Object.prototype.hasOwnProperty||function(e){return e in this};function xe(e,t){return be.call(e,t)}function Se(e){return m.call(e)}function Ce(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function we(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 Te(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 Ee(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 De(e){if(!f||!e||typeof e!=`object`)return!1;try{return f.call(e),!0}catch{}return!1}function Oe(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 ke(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 Ae(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function je(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return je(_.call(e,0,t.maxStringLength),t)+r}var i=ue[t.quoteStyle||`single`];return i.lastIndex=0,de(v.call(v.call(e,i,`\\$1`),/[\x00-\x1f]/g,Me),`single`,t)}function Me(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 Ne(e){return`Object(`+e+`)`}function Pe(e){return e+` { ? }`}function Fe(e,t,n,r){var i=r?j(n,r):C.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function Ie(e){for(var t=0;t<e.length;t++)if(we(e[t],`
1416
1416
  `)>=0)return!1;return!0}function Le(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 j(e,t){if(e.length===0)return``;var n=`
1417
1417
  `+t.prev+t.base;return n+C.call(e,`,`+n)+`
1418
1418
  `+t.prev}function Re(e,t){var n=me(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=xe(e,i)?t(e[i],e):``}var a=typeof te==`function`?te(e):[],o;if(re){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e)xe(e,c)&&(n&&String(Number(c))===c&&c<e.length||re&&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 te==`function`)for(var l=0;l<a.length;l++)E.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}})),uDe=k(((e,t)=>{var n=iB(),r=Az(),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}})),aB=k(((e,t)=>{var n=Jz(),r=Xz(),i=iB(),a=Az(),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}})),dDe=k(((e,t)=>{var n=Jz(),r=Xz(),i=iB(),a=aB(),o=Az(),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})),oB=k(((e,t)=>{var n=Az(),r=iB(),i=uDe(),a=aB(),o=dDe()||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}})),fDe=k(((e,t)=>{var n=qz(),r=oB()(),i=Az(),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})),pDe=k(((e,t)=>{var n=fDe(),r=kz(),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}})),sB=k(((e,t)=>{var n={}.toString;t.exports=Array.isArray||function(e){return n.call(e)==`[object Array]`}})),cB=k(((e,t)=>{var n=Xz(),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=nB()();t.exports=function(e){return typeof e==`string`?!0:!e||typeof e!=`object`?!1:s?i(e):a(e)===o}})),lB=k(((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}})),uB=k(((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}})),mDe=k(((e,t)=>{ht();var n=rB(),r=pDe();if(Rz()()||Lz()()){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=sB(),o=cB(),s=Jz(),c=s(`%Map%`,!0),l=s(`%Set%`,!0),u=$z(),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 _=lB(),v=uB(),y=u(`Map.prototype.forEach`,!0),b=u(`Set.prototype.forEach`,!0);if(M===void 0||!M.versions||!M.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)}}}})),dB=k(((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))}})),fB=k(((e,t)=>{var n=dB();t.exports=function(){return typeof Object.is==`function`?Object.is:n}})),hDe=k(((e,t)=>{var n=fB(),r=Pz();t.exports=function(){var e=n();return r(Object,{is:e},{is:function(){return Object.is!==e}}),e}})),gDe=k(((e,t)=>{var n=Pz(),r=Yz(),i=dB(),a=fB(),o=hDe(),s=r(a(),Object);n(s,{getPolyfill:a,implementation:i,shim:o}),t.exports=s})),pB=k(((e,t)=>{var n=Yz(),r=Xz(),i=Jz()(`%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}})),_De=k(((e,t)=>{var n=Xz(),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=nB()();t.exports=function(e){return typeof e!=`object`||!e?!1:s?i(e):a(e)===o}})),mB=k(((e,t)=>{var n=Xz(),r=nB()(),i=qz(),a=jz(),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})),vDe=k(((e,t)=>{var n=Xz()(`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}})),yDe=k(((e,t)=>{var n=Xz(),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=nB()();t.exports=function(e){return typeof e==`number`?!0:!e||typeof e!=`object`?!1:s?i(e):a(e)===o}})),bDe=k(((e,t)=>{var n=Xz(),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=nB()();t.exports=function(e){return typeof e==`boolean`?!0:typeof e!=`object`||!e?!1:s?a(e):i(e)===o}})),xDe=k(((e,t)=>{var n=Xz(),r=mB(),i=n(`RegExp.prototype.exec`),a=Az();t.exports=function(e){if(!r(e))throw new a("`regex` must be a RegExp");return function(t){return i(e,t)!==null}}})),SDe=k(((e,t)=>{var n=Xz(),r=n(`Object.prototype.toString`),i=Rz()(),a=xDe();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}})),CDe=k(((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`}})),wDe=k(((e,t)=>{if(CDe()()){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}})),TDe=k(((e,t)=>{var n=cB(),r=yDe(),i=bDe(),a=SDe(),o=wDe();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`}})),EDe=k(((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}})),DDe=k(((e,t)=>{var n=Jz(),r=Xz(),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}})),ODe=k(((e,t)=>{var n=lB(),r=uB(),i=EDe(),a=DDe();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}})),kDe=k(((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)}})),ADe=k(((e,t)=>{var n=kDe(),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)}})),jDe=k(((e,t)=>{t.exports=[`Float16Array`,`Float32Array`,`Float64Array`,`Int8Array`,`Int16Array`,`Int32Array`,`Uint8Array`,`Uint8ClampedArray`,`Uint16Array`,`Uint32Array`,`BigInt64Array`,`BigUint64Array`]})),MDe=k(((e,t)=>{Xe();var n=jDe(),r=typeof globalThis>`u`?Ye: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}})),NDe=k(((e,t)=>{Xe();var n=ADe(),r=MDe(),i=Yz(),a=Xz(),o=jz(),s=Kz(),c=a(`Object.prototype.toString`),l=nB()(),u=typeof globalThis>`u`?Ye: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}})),PDe=k(((e,t)=>{var n=Xz()(`ArrayBuffer.prototype.byteLength`,!0),r=pB();t.exports=function(e){return r(e)?n?n(e):e.byteLength:NaN}})),hB=k(((e,t)=>{var n=iDe(),r=$z(),i=cDe(),a=Jz(),o=mDe(),s=oB(),c=gDe(),l=rB(),u=sB(),d=pB(),f=_De(),p=mB(),m=vDe(),h=Dz(),g=TDe(),_=ODe(),v=NDe(),y=PDe(),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),ee=r(`Map.prototype.get`,!0),te=r(`Map.prototype.size`,!0),ne=r(`Set.prototype.add`,!0),re=r(`Set.prototype.delete`,!0),ie=r(`Set.prototype.has`,!0),E=r(`Set.prototype.size`,!0);function ae(e,t,n,r){for(var i=o(e),a;(a=i.next())&&!a.done;)if(D(t,a.value,n,r))return re(e,a.value),!0;return!1}function oe(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 se(e,t,r,i,a,o){var s=oe(r);if(s!=null)return s;var c=ee(t,s),l=n({},a,{strict:!1});return c===void 0&&!T(t,s)||!D(i,c,l,o)?!1:!T(e,s)&&D(i,c,l,o)}function ce(e,t,n){var r=oe(n);return r??(ie(t,r)&&!ie(e,r))}function le(e,t,n,r,i,a){for(var s=o(e),c,l;(c=s.next())&&!c.done;)if(l=c.value,D(n,l,i,a)&&D(r,ee(t,l),i,a))return re(e,l),!0;return!1}function D(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),pe(e,t,i,r)}function ue(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 de(e,t,n,r){if(E(e)!==E(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,ne(l,s.value);else if(!ie(t,s.value)){if(n.strict||!ce(e,t,s.value))return!1;l||=new w,ne(l,s.value)}if(l){for(;(c=a.next())&&!c.done;)if(c.value&&typeof c.value==`object`){if(!ae(l,c.value,n.strict,r))return!1}else if(!n.strict&&!ie(e,c.value)&&!ae(l,c.value,n.strict,r))return!1;return E(l)===0}return!0}function fe(e,t,r,i){if(te(e)!==te(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,ne(u,d);else if(p=ee(t,d),p===void 0&&!T(t,d)||!D(f,p,r,i)){if(r.strict||!se(e,t,d,f,r,i))return!1;u||=new w,ne(u,d)}if(u){for(;(l=s.next())&&!l.done;)if(d=l.value[0],p=l.value[1],d&&typeof d==`object`){if(!le(u,e,d,p,r,i))return!1}else if(!r.strict&&(!e.has(d)||!D(ee(e,d),p,r,i))&&!le(u,e,d,p,n({},r,{strict:!1}),i))return!1;return E(u)===0}return!0}function pe(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),ee=f(t);if(T!==ee||(T||ee)&&x(e)!==x(t)||n.strict&&S&&S(e)!==S(t))return!1;var te=v(e),ne=v(t);if(te!==ne)return!1;if(te||ne){if(e.length!==t.length)return!1;for(a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}var re=ue(e),ie=ue(t);if(re!==ie)return!1;if(re||ie){if(e.length!==t.length)return!1;for(a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}var E=d(e),ae=d(t);if(E!==ae)return!1;if(E||ae)return y(e)===y(t)?typeof Uint8Array==`function`&&D(new Uint8Array(e),new Uint8Array(t),n,r):!1;var oe=m(e),se=m(t);if(oe!==se)return!1;if(oe||se)return b(e)===b(t)?typeof Uint8Array==`function`&&D(new Uint8Array(e),new Uint8Array(t),n,r):!1;if(typeof e!=typeof t)return!1;var ce=h(e),le=h(t);if(ce.length!==le.length)return!1;for(ce.sort(),le.sort(),a=ce.length-1;a>=0;a--)if(ce[a]!=le[a])return!1;for(a=ce.length-1;a>=0;a--)if(o=ce[a],!D(e[o],t[o],n,r))return!1;var pe=_(e),me=_(t);return pe===me?pe===`Set`||me===`Set`?de(e,t,n,r):pe===`Map`?fe(e,t,n,r):!0:!1}t.exports=function(e,t,n){return D(e,t,n,s())}})),gB,_B,vB,yB,bB,xB=O((()=>{gB=ye(hB(),1),qS(),_B={class:`wt-tree-line`},vB={class:`wt-tree-line__icon-wrapper`},yB={class:`wt-tree-line__label typo-body-1`},bB=(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.data?.[r.childrenProp]??[]),o=(0,t.computed)(()=>r.itemLabel?r.data[r.itemLabel]:r.data),s=(0,t.computed)(()=>{let e=r.nestedIcons?[...r.nestedIcons]:[];return r.nestedLevel===0||e.push({icon:`tree-line`,hidden:!r.nextElement}),e}),c=()=>Array.isArray(r.modelValue)?r.itemData?r.modelValue.includes(r.data[r.itemData]):!!r.modelValue.find(e=>(0,gB.default)(e,r.data)):!1,l=(0,t.computed)(()=>r.multiple?c():r.itemData?r.data[r.itemData]===r.modelValue:(0,gB.default)(r.modelValue,r.data)),u=(0,t.computed)(()=>r.multiple?l.value:l.value||r.selectedParent),d=(e,t,n)=>{let i=r.itemData?e[r.itemData]:e;if(t)n.some(e=>(0,gB.default)(e,i))||n.push(i);else{let e=n.findIndex(e=>(0,gB.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])d(i,t,n)},f=(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,gB.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)},p=()=>{let e=l.value,t=[...r.modelValue];d(r.data,!e,t),e&&f(r.data,r.rootData,t),i(`update:modelValue`,t)},m=()=>{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,gB.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)},h=()=>{if(r.multiple){r.data[r.childrenProp]?.length?p():m();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){g.value=!g.value;return}i(`update:modelValue`,r.itemData?r.data[r.itemData]:r.data)},g=(0,t.ref)(!0),_=()=>{r.nestedLevel>0&&i(`openParent`)},v=()=>{g.value=!1,_()},y=(e,t=0)=>{if(e[r.searchedProp]&&t)return!0;if(Array.isArray(e[r.childrenProp])){for(let n of e[r.childrenProp])if(y(n,t+1))return!0}return!1};return(0,t.onMounted)(()=>{l.value&&_(),r.searchedProp&&r.data[r.searchedProp]&&_()}),(0,t.watch)(()=>r.modelValue,()=>{l.value&&_()}),(n,c)=>{let d=(0,t.resolveComponent)(`wt-icon`),f=(0,t.resolveComponent)(`wt-icon-btn`),p=(0,t.resolveComponent)(`wt-tree-line`,!0);return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`div`,_B,[(0,t.createElementVNode)(`div`,vB,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.nestedIcons,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(d,{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)(d,{key:0,icon:e.lastChild?`tree-corner`:`tree-cross`},null,8,[`icon`])):(0,t.createCommentVNode)(``,!0),a.value.length?((0,t.openBlock)(),(0,t.createBlock)(f,{key:1,icon:g.value?`plus`:`minus`,onClick:c[0]||=e=>g.value=!g.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:u.value,hasChildren:!!a.value.length,selectedParent:e.selectedParent},void 0,!0),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([{active:u.value,searched:r.data[r.searchedProp]},`wt-tree-line__label-wrapper`]),onClick:h},[(0,t.createElementVNode)(`p`,yB,(0,t.toDisplayString)(o.value),1),u.value?((0,t.openBlock)(),(0,t.createBlock)(d,{key:0,icon:`chat-message-status-sent`})):(0,t.createCommentVNode)(``,!0)],2)]),(0,t.withDirectives)((0,t.createVNode)(KS,null,{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.value,(r,o)=>((0,t.openBlock)(),(0,t.createBlock)(p,{key:o,"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":l.value||e.selectedParent,"next-element":!!a.value[o+1],"nested-icons":s.value,"last-child":o===a.value.length-1,multiple:e.multiple,"allow-parent":e.allowParent,"root-data":e.rootData||e.data,onOpenParent:v,"onUpdate:modelValue":c[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,!g.value]])],64)}}})})),FDe=O((()=>{})),SB,IDe=O((()=>{xB(),xB(),FDe(),R(),SB=L(bB,[[`__scopeId`,`data-v-2cbefb40`]])})),CB,LDe=O((()=>{CB={Tree:`tree`,List:`list`}})),wB,TB,EB,DB,OB,kB,AB=O((()=>{wB=ye(hB(),1),IDe(),LDe(),TB={class:`wt-tree`},EB={key:0,class:`wt-tree__content`},DB={key:1,class:`wt-tree__list-content`},OB=[`onClick`],kB=(0,t.defineComponent)({__name:`wt-tree`,props:{modelValue:{},data:{},itemLabel:{},itemData:{},mode:{default:CB.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,wB.default)(r.modelValue,e);return(n,r)=>{let c=(0,t.resolveComponent)(`wt-icon`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,TB,[e.mode===(0,t.unref)(CB).Tree?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,EB,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.data,(a,o)=>((0,t.openBlock)(),(0,t.createBlock)(SB,{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)(CB).List?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,DB,[((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,OB),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)])}}})})),RDe=O((()=>{})),zDe=A({default:()=>jB}),jB,BDe=O((()=>{AB(),AB(),RDe(),R(),jB=L(kB,[[`__scopeId`,`data-v-d31aeefd`]])})),MB,NB,PB,FB,IB,LB,RB,zB=O((()=>{$y(),Lb(),MB={class:`wt-tree-table-row`},NB={class:`wt-tree-table-td__content`},PB={key:0,class:`wt-tree-table-td__icon-wrapper`},FB={key:0,class:`wt-tree-table-td__actions typo-body-1`},IB={class:`wt-tree-table-td__content`},LB=[`colspan`],RB=(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.ref)(null),s=(0,t.computed)(()=>r.nestingLevel),c=(0,t.computed)(()=>r.nestingLevel+1),l=(0,t.computed)(()=>(r.dataHeaders?.length||0)+ +!!r.gridActions),u=(0,t.computed)(()=>r.selectedElements.includes(r.data)),d=()=>{(0,t.nextTick)(()=>{let e=o.value,t=e?.closest(`.wt-tree-table`);if(!e||!t)return;let n=e.getBoundingClientRect().bottom-t.getBoundingClientRect().bottom;n>0&&t.scrollBy({top:n,behavior:`smooth`})})},f=()=>{a.value=!a.value,a.value||d()},p=()=>{a.value=!1,i(`expanded-collapse`)},m=(e,t=0)=>{if(e[r.searchedProp]&&t)return!0;if(Array.isArray(e[r.childrenProp])){for(let n of e[r.childrenProp])if(m(n,t+1))return!0}return!1};return(0,t.onMounted)(()=>{r.searchedProp&&m(r.data)&&p()}),(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`,MB,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.dataHeaders,(i,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`td`,{key:i.value,style:(0,t.normalizeStyle)(i.width?`min-width:${i.width}`:``),class:`wt-tree-table-td typo-body-1`},[(0,t.createElementVNode)(`div`,NB,[o?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,PB,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.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)(Qy,{key:0,selected:u.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)(Ib,{key:1,icon:a.value?`tree-expand`:`tree-collapse`,onClick:f},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)])],4))),128)),e.gridActions?((0,t.openBlock)(),(0,t.createElementBlock)(`td`,FB,[(0,t.createElementVNode)(`div`,IB,[(0,t.renderSlot)(n.$slots,`actions`,{index:e.rowPosition,item:e.data},void 0,!0)])])):(0,t.createCommentVNode)(``,!0)]),a.value?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(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":c.value,"row-position":e.rowPosition,"searched-prop":e.searchedProp,selectable:e.selectable,"selected-elements":e.selectedElements,onExpandedCollapse:p,"onUpdate:selected":r[1]||=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=>({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)),(0,t.createElementVNode)(`tr`,{ref_key:`childrenEndRef`,ref:o,"aria-hidden":`true`,class:`wt-tree-table-row__children-end`},[(0,t.createElementVNode)(`td`,{colspan:l.value},null,8,LB)],512)],64))],64)}}})})),VDe=O((()=>{})),BB,HDe=O((()=>{zB(),zB(),VDe(),R(),BB=L(RB,[[`__scopeId`,`data-v-8b7680a3`]])})),VB,HB,UB,WB,GB,KB,qB,JB,YB,XB,ZB=O((()=>{zy(),fx(),$y(),HDe(),VB={class:`wt-tree-table wt-scrollbar`},HB={class:`wt-tree-table-wrapper`},UB={class:`wt-tree-table-head`},WB={class:`wt-tree-table-tr wt-tree-table-tr-head`},GB=[`onClick`],KB={class:`wt-tree-table-th__text`},qB={key:0,class:`wt-tree-table-th__actions`},JB={class:`wt-tree-table-th__content`},YB={class:`wt-tree-table-body`},XB=(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}=dx({headers:(0,t.toRef)(r,`headers`)}),d=({sort:e})=>r.sortable&&e!==void 0,f=e=>{if(!d(e))return;let t=Ry(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`,VB,[(0,t.createElementVNode)(`table`,HB,[(0,t.createElementVNode)(`thead`,UB,[(0,t.createElementVNode)(`tr`,WB,[((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-bold`]),style:(0,t.normalizeStyle)(n.width?`min-width:${n.width}`:``),onClick:e=>f(n)},[(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)(Qy,{selected:l.value,"onUpdate:selected":m},null,8,[`selected`])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,KB,(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,GB))),128)),e.gridActions?((0,t.openBlock)(),(0,t.createElementBlock)(`th`,qB,[(0,t.createElementVNode)(`div`,JB,[(0,t.renderSlot)(n.$slots,`actions-header`,{},void 0,!0)])])):(0,t.createCommentVNode)(``,!0)])]),(0,t.createElementVNode)(`tbody`,YB,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.data,(i,a)=>((0,t.openBlock)(),(0,t.createBlock)(BB,{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=>({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))])])])}}})})),UDe=O((()=>{})),WDe=A({default:()=>QB}),QB,GDe=O((()=>{ZB(),ZB(),UDe(),R(),QB=L(XB,[[`__scopeId`,`data-v-cb717c3e`]])})),KDe=A({insertContent:()=>qDe});function qDe(e,t){let n=wN($B);n.innerHTML=LA,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`),J(()=>{let{remotePlaybackInfo:e}=t,n=e();return n?.deviceName&&(i.textContent=n.deviceName,r.append(`Google Cast on `,i)),()=>{r.textContent=``}})}var $B,JDe=O((()=>{RA(),kN(),$B=CN(`<svg viewBox="0 0 32 32" fill="none" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"></svg>`)})),eV,tV,YDe=O((()=>{RA(),_I(),cN(),eV=class extends Fk(HTMLElement,hI){static tagName=`media-provider`;#e;#t=null;#n=null;onSetup(){this.#e=oN(),this.setAttribute(`keep-alive`,``)}onDestroy(){this.#n?.remove(),this.#n=null,this.#t?.remove(),this.#t=null}onConnect(){J(()=>{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&&J(()=>{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),xk(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 J(()=>{xk(e,`controls`,t()),xk(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=ok(()=>r()?`true`:null),a=ok(()=>n()&&r()?n():null);return J(()=>{xk(e,`controls`,i()),xk(e,`crossorigin`,t()),xk(e,`poster`,a())}),e}#a(){let e=this.#t instanceof HTMLIFrameElement?this.#t:document.createElement(`iframe`),{nativeControls:t}=this.#e.$state;return J(()=>xk(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(()=>(JDe(),KDe)).then(({insertContent:t})=>{t(e,this.#e.$state)}),e}},tV=class extends Fk(HTMLElement,uI){static tagName=`media-player`;static attrs={ariaLabel:`aria-label`,autoPlay:`autoplay`,crossOrigin:`crossorigin`,playsInline:`playsinline`,preferNativeHLS:`prefer-native-hls`,minLiveDVRWindow:`min-live-dvr-window`}}})),XDe=O((()=>{RA(),YDe(),Lk(tV),Lk(eV)}));function nV(e,t){xN(()=>{if(!e.connectScope)return;let n=e.querySelector(`template`);n&&J(()=>{let r=e.getOptions();SN(n,r.length,(e,n)=>{let{label:i,value:a}=r[n],o=e.querySelector(`[data-part="label"]`);e.setAttribute(`value`,a),o&&(fk(i)?o.textContent=i:J(()=>{o.textContent=i()})),t?.(e,r[n],n)})})})}var rV,iV,aV,oV,sV,cV,lV,uV,dV,fV,pV,mV,hV,gV,_V,vV,yV,bV,xV,SV,CV,wV,TV,EV,DV,OV=O((()=>{RA(),cN(),kN(),kL(),rV=CN(`<img loading="eager" decoding="async" aria-hidden="true">`),iV=class extends Fk(HTMLElement,ZI){static tagName=`media-thumbnail`;static attrs={crossOrigin:`crossorigin`};#e;#t=this.#n();onSetup(){this.#e=oN(),this.$state.img.set(this.#t)}onConnect(){let{src:e,crossOrigin:t}=this.$state;this.#t.parentNode!==this&&this.prepend(this.#t),J(()=>{xk(this.#t,`src`,e()),xk(this.#t,`crossorigin`,t())})}#n(){return wN(rV)}},aV=class extends Fk(HTMLElement,OL){static tagName=`media-time`;onConnect(){J(()=>{this.textContent=this.$state.timeText()})}},oV=class extends Fk(HTMLElement,OI){static tagName=`media-airplay-button`},sV=class extends Fk(HTMLElement,AI){static tagName=`media-caption-button`},cV=class extends Fk(HTMLElement,jI){static tagName=`media-fullscreen-button`},lV=class extends Fk(HTMLElement,FI){static tagName=`media-live-button`},uV=class extends Fk(HTMLElement,MI){static tagName=`media-mute-button`},dV=class extends Fk(HTMLElement,NI){static tagName=`media-pip-button`},fV=class extends Fk(HTMLElement,kI){static tagName=`media-play-button`},pV=class extends Fk(HTMLElement,PI){static tagName=`media-seek-button`},mV=class extends Fk(HTMLElement,yL){static tagName=`media-audio-radio-group`;onConnect(){nV(this)}},hV=class extends Fk(HTMLElement,xL){static tagName=`media-captions-radio-group`;onConnect(){nV(this)}},gV=class extends Fk(HTMLElement,cL){static tagName=`media-menu`},_V=class extends Fk(HTMLElement,lL){static tagName=`media-menu-button`},vV=class extends Fk(HTMLElement,dL){static tagName=`media-menu-item`},yV=class extends Fk(HTMLElement,mL){static tagName=`media-menu-items`},bV=class extends Fk(HTMLElement,wL){static tagName=`media-speed-radio-group`;onConnect(){nV(this)}},xV=class extends Fk(HTMLElement,EL){static tagName=`media-quality-radio-group`;onConnect(){nV(this,(e,t)=>{let n=t.bitrate,r=e.querySelector(`[data-part="bitrate"]`);n&&r&&J(()=>{r.textContent=n()||``})})}},SV=class extends Fk(HTMLElement,_L){static tagName=`media-radio`},CV=class extends iV{static tagName=`media-slider-thumbnail`;#e;#t;onSetup(){super.onSetup(),this.#e=oN(),this.#t=kk(WI.state)}onConnect(){super.onConnect(),J(this.#n.bind(this))}#n(){let{duration:e,clipStartTime:t}=this.#e.$state;this.time=t()+this.#t.pointerRate()*e()}},wV=class extends Fk(HTMLElement,QI){static tagName=`media-slider-value`;static attrs={padMinutes:{converter:kA}};onConnect(){J(()=>{this.textContent=this.getValueText()})}},TV=class extends Fk(HTMLElement,nL){static tagName=`media-time-slider`},EV=class extends Fk(HTMLElement,eL){static tagName=`media-slider-preview`},DV=class extends Fk(HTMLElement,tL){static tagName=`media-volume-slider`}}));function kV(e,t){if(!Array.isArray(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return NV===void 0?t:NV.createHTML(t)}function AV(e,t,n=e,r){var i,a;if(t===$V)return t;let o=r===void 0?n._$Cl:n._$Co?.[r],s=BV(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=AV(e,o._$AS(e,t.values),o,r)),t}var jV,MV,NV,PV,FV,IV,LV,RV,zV,BV,VV,HV,UV,WV,GV,KV,qV,JV,YV,XV,ZV,QV,$V,eH,tH,nH,rH,iH,aH,oH,sH,cH,lH,uH,dH,fH,pH,mH,hH=O((()=>{jV=window,MV=jV.trustedTypes,NV=MV?MV.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,PV=`$lit$`,FV=`lit$${(Math.random()+``).slice(9)}$`,IV=`?`+FV,LV=`<${IV}>`,RV=document,zV=()=>RV.createComment(``),BV=e=>e===null||typeof e!=`object`&&typeof e!=`function`,VV=Array.isArray,HV=e=>VV(e)||typeof e?.[Symbol.iterator]==`function`,UV=`[
@@ -1432,7 +1432,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
1432
1432
  `}},OH=class extends hA{static props={when:!1}},kH=class extends Fk(HTMLElement,OH){static tagName=`media-layout`;#e;onSetup(){this.#e=oN()}onConnect(){J(this.#t.bind(this))}#t(){let e=this.firstElementChild,t=e?.localName===`template`,n=this.$props.when();if(!(pk(n)?n:ok(()=>n(this.#e.player.state))())){t?(this.textContent=``,this.appendChild(e)):EN(e)&&(e.style.display=`none`);return}t?this.append(e.content.cloneNode(!0)):EN(e)&&(e.style.display=``)}},AH=class extends Fk(HTMLElement,BL){static tagName=`media-google-cast-button`},jH=class extends Fk(HTMLElement,RL){static tagName=`media-toggle-button`},MH=class extends Fk(HTMLElement,FL){static tagName=`media-tooltip`},NH=class extends Fk(HTMLElement,IL){static tagName=`media-tooltip-trigger`;onConnect(){this.style.display=`contents`}},PH=class extends Fk(HTMLElement,LL){static tagName=`media-tooltip-content`},FH=class extends Fk(HTMLElement,fL){static tagName=`media-menu-portal`;static attrs={disabled:{converter(e){return fk(e)?e:e!==null}}}},IH=class extends Fk(HTMLElement,XL){static tagName=`media-chapters-radio-group`;onConnect(){nV(this,(e,t)=>{let{cue:n,startTime:r,duration:i}=t,a=e.querySelector(`.vds-thumbnail,media-thumbnail`),o=e.querySelector(`[data-part="start-time"]`),s=e.querySelector(`[data-part="duration"]`);o&&(o.textContent=r),s&&(s.textContent=i),a&&(a.setAttribute(`time`,n.startTime+``),J(()=>{let e=this.$props.thumbnails();`src`in a?a.src=e:fk(e)&&a.setAttribute(`src`,e)}))})}},LH=class extends Fk(HTMLElement,QL){static tagName=`media-audio-gain-radio-group`;onConnect(){nV(this)}},RH=class extends Fk(HTMLElement,JL){static tagName=`media-radio-group`},zH=class extends Fk(HTMLElement,WI){static tagName=`media-slider`},BH=CN(`<video muted playsinline preload="none" style="max-width: unset;"></video>`),VH=class extends Fk(HTMLElement,VL){static tagName=`media-slider-video`;#e;#t=this.#n();onSetup(){this.#e=oN(),this.$state.video.set(this.#t)}onConnect(){let{canLoad:e}=this.#e.$state,{src:t,crossOrigin:n}=this.$state;this.#t.parentNode!==this&&this.prepend(this.#t),J(()=>{xk(this.#t,`crossorigin`,n()),xk(this.#t,`preload`,e()?`auto`:`none`),xk(this.#t,`src`,t())})}#n(){return wN(BH)}},HH=class extends Fk(HTMLElement,UL){static tagName=`media-audio-gain-slider`},UH=class extends Fk(HTMLElement,WL){static tagName=`media-speed-slider`},WH=class extends Fk(HTMLElement,GL){static tagName=`media-quality-slider`},GH=class extends Fk(HTMLElement,KL){static tagName=`media-slider-chapters`;#e=null;onConnect(){xN(()=>{if(!this.connectScope)return;let e=this.querySelector(`template`);e&&(this.#e=e,J(this.#t.bind(this)))})}#t(){if(!this.#e)return;let e=SN(this.#e,this.cues.length||1);this.setRefs(e)}},KH=class extends hA{},qH=class extends Fk(HTMLElement,KH){static tagName=`media-slider-steps`;#e=null;onConnect(e){xN(()=>{this.connectScope&&(this.#e=e.querySelector(`template`),this.#e&&J(this.#t.bind(this)))})}#t(){if(!this.#e)return;let{min:e,max:t,step:n}=kk(II),r=(t()-e())/n();SN(this.#e,Math.floor(r)+1)}}})),JH,$De=O((()=>{RA(),GTe(),JH=class extends Fk(HTMLElement,rR){static tagName=`media-poster`;static attrs={crossOrigin:`crossorigin`};#e=document.createElement(`img`);onSetup(){this.$state.img.set(this.#e)}onConnect(){let{src:e,alt:t,crossOrigin:n}=this.$state;J(()=>{let{loading:e,hidden:t}=this.$state;this.#e.style.display=e()||t()?`none`:``}),J(()=>{xk(this.#e,`alt`,t()),xk(this.#e,`crossorigin`,n()),xk(this.#e,`src`,e())}),this.#e.parentNode!==this&&this.prepend(this.#e)}}})),eOe=O((()=>{RA(),QDe(),$De(),OV(),Lk(kH),Lk(bH),Lk(xH),Lk(JH),Lk(yH),Lk(MH),Lk(NH),Lk(PH),Lk(fV),Lk(uV),Lk(sV),Lk(cV),Lk(dV),Lk(pV),Lk(oV),Lk(AH),Lk(jH),Lk(zH),Lk(HH),Lk(DV),Lk(TV),Lk(UH),Lk(WH),Lk(GH),Lk(qH),Lk(EV),Lk(wV),Lk(CV),Lk(VH),Lk(gV),Lk(_V),Lk(FH),Lk(yV),Lk(vV),Lk(mV),Lk(hV),Lk(bV),Lk(LH),Lk(xV),Lk(IH),Lk(RH),Lk(SV),Lk(vH),Lk(iV),Lk(_H),Lk(lV),Lk(aV),Lk(CH),Lk(TH),Lk(DH)})),YH,XH=O((()=>{YH=()=>{let e=(0,t.inject)(`size`);if(!e)throw Error(`wt-vidstack-player: "size" context is not provided`);return e}})),ZH,QH,$H=O((()=>{XH(),ZH={class:`controls-group__actions`},QH=(0,t.defineComponent)({__name:`controls-group`,setup(e){let{size:n}=YH();return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`media-controls-group`,{class:(0,t.normalizeClass)([`controls-group`,`controls-group--${(0,t.unref)(n)}`])},[(0,t.createElementVNode)(`div`,ZH,[(0,t.renderSlot)(e.$slots,`default`,{},void 0,!0)])],2))}})})),tOe=O((()=>{})),eU,nOe=O((()=>{$H(),$H(),tOe(),R(),eU=L(QH,[[`__scopeId`,`data-v-dca54c57`]])})),tU,nU=O((()=>{Lb(),XH(),tU=(0,t.defineComponent)({__name:`fullscreen-button`,emits:[`toggle`],setup(e,{emit:n}){let{fullscreen:r}=YH(),i=n;return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`fullscreen-button`,{"fullscreen-button--active":(0,t.unref)(r)}]),onClick:n[0]||=e=>i(`toggle`,!(0,t.unref)(r))},[(0,t.createVNode)(Ib,{icon:`player-enter-fullscreen`,color:`on-dark`,class:`fullscreen-button__enter`}),(0,t.createVNode)(Ib,{icon:`player-exit-fullscreen`,color:`on-dark`,class:`fullscreen-button__exit`})],2))}})})),rOe=O((()=>{})),rU,iOe=O((()=>{nU(),nU(),rOe(),R(),rU=L(tU,[[`__scopeId`,`data-v-a99f9d37`]])})),iU,aU=O((()=>{Lb(),iU=(0,t.defineComponent)({__name:`toggle-button`,props:{icon:{},color:{},disabled:{type:Boolean}},emits:[`toggle`],setup(e,{emit:n}){let r=e,i=n,a=()=>{r.disabled||i(`toggle`)};return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`toggle-button`,onClick:a},[(0,t.createVNode)(Ib,{icon:r.icon,color:r.color,disabled:r.disabled},null,8,[`icon`,`color`,`disabled`])]))}})})),oU,aOe=O((()=>{aU(),aU(),oU=iU})),sU,cU,lU,uU,dU=O((()=>{Xp(),Vm(),Lb(),XH(),iOe(),aOe(),sU={class:`video-display-panel__head`},cU=[`title`],lU={class:`video-display-panel__controls`},uU=(0,t.defineComponent)({__name:`video-display-panel`,props:{title:{},username:{},closable:{type:Boolean},hideExpand:{type:Boolean}},emits:[`close`],setup(e,{emit:n}){let{size:r,fullscreen:i,changeSize:a,enterFullscreen:o}=YH(),s=(0,t.computed)(()=>r.value===V.SM?`expand`:`collapse`),c=e,l=n,u=e=>{e?r.value!==V.LG&&(i.value=!0,a(V.LG),o()):r.value===V.LG&&(f(),i.value=!1,a(V.SM))},d=()=>{r.value===V.SM?a(V.MD):r.value===V.MD?a(V.SM):r.value===V.LG&&(f(),i.value=!1,a(V.MD))},f=()=>{document.fullscreenElement&&document.exitFullscreen()},p=e=>{e.key===`Escape`&&u(!1)};return(0,t.onMounted)(()=>{document.addEventListener(`fullscreenchange`,()=>{document.fullscreenElement||u(!1)}),(0,t.onBeforeUnmount)(()=>{document.removeEventListener(`keyup`,p)})}),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`media-controls-group`,{class:(0,t.normalizeClass)([`video-display-panel--${(0,t.unref)(r)}`,`video-display-panel controls-group`])},[(0,t.createElementVNode)(`div`,sU,[(0,t.renderSlot)(e.$slots,`avatar`,{},()=>[c.username?((0,t.openBlock)(),(0,t.createBlock)(Bm,{key:0,username:c.username,size:`sm`,class:`video-display-panel__avatar`},null,8,[`username`])):(0,t.createCommentVNode)(``,!0)],!0),(0,t.createElementVNode)(`span`,{class:`video-display-panel__title typo-body-2-bold`,title:c.title||c.username},(0,t.toDisplayString)(c.title||c.username),9,cU)]),(0,t.createElementVNode)(`div`,lU,[(0,t.renderSlot)(e.$slots,`actions`,{},void 0,!0),(0,t.createVNode)(rU,{onToggle:u}),c.hideExpand?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(oU,{key:0,icon:s.value,color:`on-dark`,onToggle:d},null,8,[`icon`])),c.closable?((0,t.openBlock)(),(0,t.createBlock)(Ib,{key:1,icon:`close`,color:`on-dark`,onClick:n[0]||=e=>l(`close`)})):(0,t.createCommentVNode)(``,!0)])],2))}})})),oOe=O((()=>{})),fU,sOe=O((()=>{dU(),dU(),oOe(),R(),fU=L(uU,[[`__scopeId`,`data-v-c4fbc40e`]])})),pU,mU,hU,gU,_U=O((()=>{XH(),PU(),sOe(),pU={class:`video-display-panel-wrapper`},mU={class:`video-layout-content`},hU={class:`video-layout-controls`},gU=(0,t.defineComponent)({__name:`video-layout`,props:{title:{},username:{},closable:{type:Boolean},hideVideoDisplayPanel:{type:Boolean},hideControlsPanel:{type:Boolean},hideExpand:{type:Boolean},countdownTimeMode:{type:Boolean}},emits:[`close-player`,`close-session`,`make-screenshot`,`toggle-record`],setup(e,{emit:n}){let{size:r}=YH(),i=e,a=n;return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`media-controls`,{class:(0,t.normalizeClass)([`video-layout controls`,`video-layout--${(0,t.unref)(r)}`])},[(0,t.createElementVNode)(`div`,pU,[i.hideVideoDisplayPanel?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(fU,{key:0,title:i.title,username:i.username,closable:i.closable,"hide-expand":i.hideExpand,onClose:n[0]||=e=>a(`close-player`)},(0,t.createSlots)({_:2},[e.$slots.avatar?{name:`avatar`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`avatar`,{},void 0,!0)]),key:`0`}:void 0,e.$slots[`display-panel-actions`]?{name:`actions`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`display-panel-actions`,{},void 0,!0)]),key:`1`}:void 0]),1032,[`title`,`username`,`closable`,`hide-expand`]))]),(0,t.createElementVNode)(`media-controls-group`,mU,[(0,t.renderSlot)(e.$slots,`content`,{},void 0,!0)]),(0,t.createElementVNode)(`div`,hU,[i.hideControlsPanel?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(e.$slots,`controls-panel`,{key:0},()=>[(0,t.createVNode)((0,t.unref)(kU),{"countdown-time-mode":i.countdownTimeMode},null,8,[`countdown-time-mode`])],!0)])],2))}})})),cOe=O((()=>{})),vU,lOe=O((()=>{_U(),_U(),cOe(),R(),vU=L(gU,[[`__scopeId`,`data-v-3f52c902`]])})),yU,bU,xU=O((()=>{XH(),yU={class:`play-button`},bU=(0,t.defineComponent)({__name:`play-button`,setup(e){let{size:n}=YH();return(e,r)=>{let i=(0,t.resolveComponent)(`wt-button`);return(0,t.openBlock)(),(0,t.createElementBlock)(`media-play-button`,yU,[(0,t.createVNode)(i,{size:(0,t.unref)(n),variant:`outlined`,color:`secondary`,icon:`play`,type:`play`,rounded:``,"contains-icon":``,class:`play-button__play-icon`},null,8,[`size`]),(0,t.createVNode)(i,{size:(0,t.unref)(n),variant:`outlined`,color:`secondary`,icon:`pause`,type:`pause`,rounded:``,"contains-icon":``,class:`play-button__pause-icon`},null,8,[`size`])])}}})})),uOe=O((()=>{})),SU,dOe=O((()=>{xU(),xU(),uOe(),R(),SU=L(bU,[[`__scopeId`,`data-v-9fd8a31f`]])})),CU,wU,TU=O((()=>{_O(),CU={class:`time-slider media-slider`},wU=(0,t.defineComponent)({__name:`time-slider`,setup(e){return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`media-time-slider`,CU,[(0,t.createVNode)(gO,{class:`time-slider__slider`})]))}})})),fOe=O((()=>{})),EU,pOe=O((()=>{TU(),TU(),fOe(),R(),EU=L(wU,[[`__scopeId`,`data-v-fbc2d9f8`]])})),DU,OU=O((()=>{PU(),dOe(),pOe(),LO(),DU=(0,t.defineComponent)({__name:`playback-controls-panel`,props:{countdownTimeMode:{type:Boolean,default:!1}},setup(e){let n=e;return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(eU),{class:`playback-control-panel`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(SU),(0,t.createVNode)(EU),(0,t.createVNode)(IO,{countdown:n.countdownTimeMode},null,8,[`countdown`])],void 0,!0),_:1}))}})})),mOe=O((()=>{})),kU,hOe=O((()=>{OU(),OU(),mOe(),R(),kU=L(DU,[[`__scopeId`,`data-v-a6b8fc46`]])})),AU=O((()=>{PU(),Xp(),XH()})),gOe=O((()=>{})),_Oe=O((()=>{AU(),AU(),gOe()})),jU=O((()=>{dh(),PU(),Xp()})),vOe=O((()=>{})),yOe=O((()=>{jU(),jU(),vOe()})),MU=O((()=>{by()})),bOe=O((()=>{})),xOe=O((()=>{MU(),MU(),bOe()})),NU=O((()=>{T9()})),SOe=O((()=>{})),COe=O((()=>{NU(),NU(),SOe()})),PU=O((()=>{nOe(),lOe(),hOe(),_Oe(),yOe(),xOe(),COe()})),FU,IU,LU=O((()=>{XDe(),eOe(),iR(),Xp(),PU(),oR(),FU=[`autoplay`,`muted`,`src`],IU=(0,t.defineComponent)({__name:`wt-vidstack-player`,props:{src:{},mime:{default:`video/mp4`},autoplay:{type:Boolean,default:!1},muted:{type:Boolean,default:!0},title:{default:``},username:{default:``},closable:{type:Boolean,default:!1},countdownTimeMode:{type:Boolean,default:!1},static:{type:Boolean,default:!1},stream:{},size:{},hideVideoDisplayPanel:{type:Boolean},hideControlsPanel:{type:Boolean,default:!1},hideBackground:{type:Boolean},hideExpand:{type:Boolean},stretch:{type:Boolean},videoObjectFit:{default:`contain`},mirrorVideo:{type:Boolean}},emits:[`close`,`change-size`],setup(e,{expose:n,emit:r}){let i=e,a=r,o=(0,t.useTemplateRef)(`root`);n({rootEl:o});let s=(0,t.ref)(i.size||V.SM),c=(0,t.ref)(!1);(0,t.provide)(`size`,{size:s,fullscreen:c,changeSize:e=>{s.value=e,a(`change-size`,e)},enterFullscreen:()=>{o.value?.requestFullscreen()}});let{src:l,mime:u,stream:d}=(0,t.toRefs)(i),{normalizedSrcObject:f}=aR({src:l,type:u,stream:d}),p=(0,t.computed)(()=>[`wt-vidstack-player--${s.value}`,`wt-vidstack-player-video-object-fit--${i.videoObjectFit}`,i.mirrorVideo&&`wt-vidstack-player--mirror-video`,c.value&&`wt-vidstack-player--fullscreen`,i.stretch&&`wt-vidstack-player--stretch`,i.static&&`wt-vidstack-player--static`,i.hideBackground&&`wt-vidstack-player--hide-background`,i.hideControlsPanel&&`wt-vidstack-player--hide-controls-panel`]),m=e=>{if(e instanceof HTMLVideoElement)return e;let t=e instanceof Element&&e.shadowRoot?Array.from(e.shadowRoot.children):[],n=Array.from(e.children??[]);for(let e of[...t,...n]){let t=m(e);if(t)return t}return null},h=e=>{if(!i.autoplay)return;let t=(m(e.target)??e.target).play?.();t&&typeof t.catch==`function`&&t.catch(()=>{})},g=e=>{ETe(e.detail)&&(e.detail.video.playsInline=!0)};return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{ref:`root`,class:(0,t.normalizeClass)([p.value,`wt-vidstack-player`])},[(0,t.createElementVNode)(`media-player`,{ref:`player`,autoplay:i.autoplay,muted:i.muted,src:(0,t.unref)(f),class:`wt-vidstack-player__player`,"cross-origin":``,playsinline:``,onClose:n[1]||=e=>a(`close`),onCanPlay:h,onProviderChange:g},[n[2]||=(0,t.createElementVNode)(`media-provider`,{class:`wt-vidstack-player__provider`},null,-1),(0,t.createVNode)((0,t.unref)(vU),{autoplay:i.autoplay,closable:i.closable,"hide-controls-panel":i.hideControlsPanel,"hide-expand":i.hideExpand,"hide-video-display-panel":i.hideVideoDisplayPanel,title:i.title,username:i.username,"countdown-time-mode":i.countdownTimeMode,onClosePlayer:n[0]||=e=>a(`close`)},(0,t.createSlots)({"controls-panel":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`controls-panel`,{size:s.value},void 0,!0)]),content:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`content`,{size:s.value},void 0,!0)]),_:2},[e.$slots.avatar?{name:`avatar`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`avatar`,{},void 0,!0)]),key:`0`}:void 0,e.$slots[`display-panel-actions`]?{name:`display-panel-actions`,fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`display-panel-actions`,{},void 0,!0)]),key:`1`}:void 0]),1032,[`autoplay`,`closable`,`hide-controls-panel`,`hide-expand`,`hide-video-display-panel`,`title`,`username`,`countdown-time-mode`])],40,FU)],2))}})})),wOe=O((()=>{})),TOe=A({default:()=>RU}),RU,EOe=O((()=>{LU(),LU(),wOe(),R(),RU=L(IU,[[`__scopeId`,`data-v-61c739c8`]])})),DOe=O((()=>{})),OOe=O((()=>{})),kOe=O((()=>{})),AOe=O((()=>{})),jOe=O((()=>{})),MOe=O((()=>{})),NOe=O((()=>{})),POe=O((()=>{})),FOe=O((()=>{})),IOe=O((()=>{})),LOe=O((()=>{})),ROe=O((()=>{})),zOe=O((()=>{})),BOe=O((()=>{})),VOe=O((()=>{})),HOe=O((()=>{})),UOe=O((()=>{})),WOe=O((()=>{})),GOe=O((()=>{})),KOe=O((()=>{})),qOe=O((()=>{})),JOe=O((()=>{})),YOe=O((()=>{})),XOe=O((()=>{})),ZOe=O((()=>{})),QOe=O((()=>{})),$Oe=O((()=>{})),eke=O((()=>{})),tke=O((()=>{})),nke=O((()=>{})),rke=O((()=>{})),ike=O((()=>{})),ake=O((()=>{})),oke=O((()=>{})),ske=O((()=>{})),cke=O((()=>{})),lke=O((()=>{})),uke=O((()=>{})),dke=O((()=>{})),fke=O((()=>{})),pke=O((()=>{})),mke=O((()=>{})),hke=O((()=>{})),gke=O((()=>{})),_ke=O((()=>{})),vke=O((()=>{})),yke=O((()=>{})),bke=O((()=>{})),xke=O((()=>{})),Ske=O((()=>{})),Cke=O((()=>{})),wke=O((()=>{})),Tke=O((()=>{})),Eke=O((()=>{})),Dke=O((()=>{})),Oke=O((()=>{})),kke=O((()=>{})),Ake=O((()=>{})),jke=O((()=>{})),Mke=O((()=>{})),Nke=O((()=>{})),Pke=O((()=>{})),Fke=O((()=>{})),Ike=O((()=>{})),Lke=O((()=>{})),Rke=O((()=>{})),zke=O((()=>{})),Bke=O((()=>{})),Vke=O((()=>{})),Hke=O((()=>{})),Uke=O((()=>{})),Wke=O((()=>{})),Gke=O((()=>{})),Kke=O((()=>{})),qke=O((()=>{})),Jke=O((()=>{})),Yke=O((()=>{})),Xke=O((()=>{})),Zke=O((()=>{})),Qke=O((()=>{})),$ke=O((()=>{})),eAe=O((()=>{})),tAe=O((()=>{})),nAe=O((()=>{})),rAe=O((()=>{})),iAe=O((()=>{})),aAe=O((()=>{})),oAe=O((()=>{})),sAe=O((()=>{})),cAe=O((()=>{})),lAe=O((()=>{})),uAe=O((()=>{})),dAe=O((()=>{})),fAe=O((()=>{})),pAe=O((()=>{})),mAe=O((()=>{})),hAe=O((()=>{})),gAe=O((()=>{})),_Ae=O((()=>{})),vAe=O((()=>{})),yAe=O((()=>{})),bAe=O((()=>{})),xAe=O((()=>{})),SAe=O((()=>{})),CAe=O((()=>{})),wAe=O((()=>{})),TAe=O((()=>{})),EAe=O((()=>{})),DAe=O((()=>{})),OAe=O((()=>{})),kAe=O((()=>{})),AAe=O((()=>{})),jAe=O((()=>{})),MAe=O((()=>{})),NAe=O((()=>{})),PAe=O((()=>{})),FAe=O((()=>{})),IAe=O((()=>{})),LAe=O((()=>{})),RAe=O((()=>{})),zAe=O((()=>{})),BAe=O((()=>{})),VAe=O((()=>{})),HAe=O((()=>{})),UAe=O((()=>{})),WAe=O((()=>{})),GAe=O((()=>{})),KAe=O((()=>{})),qAe=O((()=>{})),JAe=O((()=>{})),YAe=O((()=>{})),XAe=O((()=>{})),ZAe=O((()=>{})),QAe=O((()=>{})),$Ae=O((()=>{})),eje=O((()=>{})),tje=O((()=>{})),nje=O((()=>{})),zU,rje=O((()=>{zU={UserWarningIdUnspecified:`user_warning_id_unspecified`,PasswordExpiresSoon:`password_expires_soon`,LicenseExpiresSoon:`license_expires_soon`,LicenseExpired:`license_expired`}})),ije=O((()=>{})),aje=O((()=>{})),oje=O((()=>{})),sje=O((()=>{})),cje=O((()=>{})),lje=O((()=>{})),uje=O((()=>{})),dje=O((()=>{})),fje=O((()=>{})),pje=O((()=>{})),mje=O((()=>{})),hje=O((()=>{})),gje=O((()=>{})),_je=O((()=>{})),vje=O((()=>{})),yje=O((()=>{})),bje=O((()=>{})),xje=O((()=>{})),Sje=O((()=>{})),Cje=O((()=>{})),wje=O((()=>{})),Tje=O((()=>{})),Eje=O((()=>{})),Dje=O((()=>{})),Oje=O((()=>{})),kje=O((()=>{})),Aje=O((()=>{})),jje=O((()=>{})),Mje=O((()=>{})),Nje=O((()=>{})),Pje=O((()=>{})),Fje=O((()=>{})),Ije=O((()=>{})),Lje=O((()=>{})),Rje=O((()=>{})),zje=O((()=>{})),Bje=O((()=>{})),Vje=O((()=>{})),Hje=O((()=>{})),Uje=O((()=>{})),Wje=O((()=>{})),Gje=O((()=>{})),Kje=O((()=>{})),qje=O((()=>{})),Jje=O((()=>{})),Yje=O((()=>{})),Xje=O((()=>{})),Zje=O((()=>{})),Qje=O((()=>{})),$je=O((()=>{})),eMe=O((()=>{})),tMe=O((()=>{})),nMe=O((()=>{})),rMe=O((()=>{})),iMe=O((()=>{})),aMe=O((()=>{})),oMe=O((()=>{})),sMe=O((()=>{})),cMe=O((()=>{})),BU,lMe=O((()=>{BU={GroupTypeUnspecified:`GROUP_TYPE_UNSPECIFIED`,Static:`STATIC`,Dynamic:`DYNAMIC`}})),uMe=O((()=>{})),dMe=O((()=>{})),fMe=O((()=>{})),pMe=O((()=>{})),mMe=O((()=>{})),hMe=O((()=>{})),gMe=O((()=>{})),_Me=O((()=>{})),vMe=O((()=>{})),yMe=O((()=>{})),bMe=O((()=>{})),xMe=O((()=>{})),SMe=O((()=>{})),CMe=O((()=>{})),wMe=O((()=>{})),TMe=O((()=>{})),EMe=O((()=>{})),DMe=O((()=>{})),OMe=O((()=>{})),kMe=O((()=>{})),AMe=O((()=>{})),jMe=O((()=>{})),MMe=O((()=>{})),NMe=O((()=>{})),PMe=O((()=>{})),FMe=O((()=>{})),IMe=O((()=>{})),LMe=O((()=>{})),RMe=O((()=>{})),zMe=O((()=>{})),BMe=O((()=>{})),VMe=O((()=>{})),HMe=O((()=>{})),UMe=O((()=>{})),WMe=O((()=>{})),GMe=O((()=>{})),KMe=O((()=>{})),qMe=O((()=>{})),JMe=O((()=>{})),YMe=O((()=>{})),XMe=O((()=>{})),ZMe=O((()=>{})),QMe=O((()=>{})),$Me=O((()=>{})),eNe=O((()=>{})),tNe=O((()=>{})),nNe=O((()=>{})),rNe=O((()=>{})),iNe=O((()=>{})),aNe=O((()=>{})),oNe=O((()=>{})),sNe=O((()=>{})),cNe=O((()=>{})),lNe=O((()=>{})),uNe=O((()=>{})),dNe=O((()=>{})),fNe=O((()=>{})),pNe=O((()=>{})),mNe=O((()=>{})),hNe=O((()=>{})),gNe=O((()=>{})),_Ne=O((()=>{})),vNe=O((()=>{})),yNe=O((()=>{})),bNe=O((()=>{})),xNe=O((()=>{})),SNe=O((()=>{})),CNe=O((()=>{})),wNe=O((()=>{})),TNe=O((()=>{})),ENe=O((()=>{})),DNe=O((()=>{})),ONe=O((()=>{})),kNe=O((()=>{})),ANe=O((()=>{})),jNe=O((()=>{})),MNe=O((()=>{})),NNe=O((()=>{})),PNe=O((()=>{})),FNe=O((()=>{})),INe=O((()=>{})),LNe=O((()=>{})),RNe=O((()=>{})),zNe=O((()=>{})),BNe=O((()=>{})),VNe=O((()=>{})),HNe=O((()=>{})),UNe=O((()=>{})),WNe=O((()=>{})),GNe=O((()=>{})),KNe=O((()=>{})),qNe=O((()=>{})),JNe=O((()=>{})),YNe=O((()=>{})),XNe=O((()=>{})),ZNe=O((()=>{})),QNe=O((()=>{})),$Ne=O((()=>{})),ePe=O((()=>{})),tPe=O((()=>{})),nPe=O((()=>{})),rPe=O((()=>{})),iPe=O((()=>{})),aPe=O((()=>{})),oPe=O((()=>{})),sPe=O((()=>{})),cPe=O((()=>{})),lPe=O((()=>{})),uPe=O((()=>{})),dPe=O((()=>{})),fPe=O((()=>{})),pPe=O((()=>{})),mPe=O((()=>{})),hPe=O((()=>{})),gPe=O((()=>{})),_Pe=O((()=>{})),vPe=O((()=>{})),yPe=O((()=>{})),bPe=O((()=>{})),xPe=O((()=>{})),SPe=O((()=>{})),CPe=O((()=>{})),wPe=O((()=>{})),TPe=O((()=>{})),EPe=O((()=>{})),DPe=O((()=>{})),OPe=O((()=>{})),kPe=O((()=>{})),APe=O((()=>{})),jPe=O((()=>{})),MPe=O((()=>{})),NPe=O((()=>{})),PPe=O((()=>{})),FPe=O((()=>{})),IPe=O((()=>{})),LPe=O((()=>{})),RPe=O((()=>{})),zPe=O((()=>{})),BPe=O((()=>{})),VPe=O((()=>{})),HPe=O((()=>{})),UPe=O((()=>{})),WPe=O((()=>{})),GPe=O((()=>{})),KPe=O((()=>{})),qPe=O((()=>{})),JPe=O((()=>{})),YPe=O((()=>{})),XPe=O((()=>{})),ZPe=O((()=>{})),QPe=O((()=>{})),$Pe=O((()=>{})),eFe=O((()=>{})),tFe=O((()=>{})),nFe=O((()=>{})),rFe=O((()=>{})),iFe=O((()=>{})),aFe=O((()=>{})),oFe=O((()=>{})),sFe=O((()=>{})),cFe=O((()=>{})),lFe=O((()=>{})),uFe=O((()=>{})),dFe=O((()=>{})),fFe=O((()=>{})),pFe=O((()=>{})),mFe=O((()=>{})),hFe=O((()=>{})),gFe=O((()=>{})),_Fe=O((()=>{})),vFe=O((()=>{})),yFe=O((()=>{})),bFe=O((()=>{})),xFe=O((()=>{})),SFe=O((()=>{})),CFe=O((()=>{})),wFe=O((()=>{})),TFe=O((()=>{})),EFe=O((()=>{})),DFe=O((()=>{})),OFe=O((()=>{})),kFe=O((()=>{})),AFe=O((()=>{})),jFe=O((()=>{})),MFe=O((()=>{})),NFe=O((()=>{})),PFe=O((()=>{})),FFe=O((()=>{})),IFe=O((()=>{})),LFe=O((()=>{})),RFe=O((()=>{})),zFe=O((()=>{})),BFe=O((()=>{})),VFe=O((()=>{})),HFe=O((()=>{})),UFe=O((()=>{})),WFe=O((()=>{})),GFe=O((()=>{})),KFe=O((()=>{})),qFe=O((()=>{})),JFe=O((()=>{})),YFe=O((()=>{})),XFe=O((()=>{})),ZFe=O((()=>{})),QFe=O((()=>{})),$Fe=O((()=>{})),eIe=O((()=>{})),tIe=O((()=>{})),nIe=O((()=>{})),rIe=O((()=>{})),iIe=O((()=>{})),aIe=O((()=>{})),oIe=O((()=>{})),sIe=O((()=>{})),cIe=O((()=>{})),lIe=O((()=>{})),uIe=O((()=>{})),dIe=O((()=>{})),fIe=O((()=>{})),pIe=O((()=>{})),mIe=O((()=>{})),hIe=O((()=>{})),gIe=O((()=>{})),_Ie=O((()=>{})),vIe=O((()=>{})),yIe=O((()=>{})),bIe=O((()=>{})),VU,xIe=O((()=>{VU={FileTypeEmpty:`file_type_empty`,FileTypeScreenshot:`file_type_screenshot`,FileTypeScreensharing:`file_type_screensharing`,FileTypeAudio:`file_type_audio`,FileTypeVideo:`file_type_video`,FileTypePdf:`file_type_pdf`}})),SIe=O((()=>{})),CIe=O((()=>{})),wIe=O((()=>{})),TIe=O((()=>{})),EIe=O((()=>{})),DIe=O((()=>{})),OIe=O((()=>{})),kIe=O((()=>{})),AIe=O((()=>{})),jIe=O((()=>{})),MIe=O((()=>{})),NIe=O((()=>{})),PIe=O((()=>{})),FIe=O((()=>{})),IIe=O((()=>{})),LIe=O((()=>{})),RIe=O((()=>{})),zIe=O((()=>{})),BIe=O((()=>{})),VIe=O((()=>{})),HIe=O((()=>{})),UIe=O((()=>{})),WIe=O((()=>{})),GIe=O((()=>{})),KIe=O((()=>{})),qIe=O((()=>{})),JIe=O((()=>{})),YIe=O((()=>{})),XIe=O((()=>{})),ZIe=O((()=>{})),QIe=O((()=>{})),$Ie=O((()=>{})),eLe=O((()=>{})),tLe=O((()=>{})),nLe=O((()=>{})),rLe=O((()=>{})),iLe=O((()=>{})),aLe=O((()=>{})),oLe=O((()=>{})),sLe=O((()=>{})),cLe=O((()=>{})),lLe=O((()=>{})),uLe=O((()=>{})),dLe=O((()=>{})),fLe=O((()=>{})),pLe=O((()=>{})),mLe=O((()=>{})),hLe=O((()=>{})),gLe=O((()=>{})),_Le=O((()=>{})),vLe=O((()=>{})),yLe=O((()=>{})),bLe=O((()=>{})),xLe=O((()=>{})),SLe=O((()=>{})),CLe=O((()=>{})),wLe=O((()=>{})),TLe=O((()=>{})),ELe=O((()=>{})),DLe=O((()=>{})),OLe=O((()=>{})),kLe=O((()=>{})),ALe=O((()=>{})),jLe=O((()=>{})),MLe=O((()=>{})),NLe=O((()=>{})),PLe=O((()=>{})),FLe=O((()=>{})),ILe=O((()=>{})),LLe=O((()=>{})),RLe=O((()=>{})),zLe=O((()=>{})),BLe=O((()=>{})),VLe=O((()=>{})),HLe=O((()=>{})),ULe=O((()=>{})),WLe=O((()=>{})),GLe=O((()=>{})),KLe=O((()=>{})),qLe=O((()=>{})),JLe=O((()=>{})),YLe=O((()=>{})),XLe=O((()=>{})),ZLe=O((()=>{})),QLe=O((()=>{})),$Le=O((()=>{})),eRe=O((()=>{})),tRe=O((()=>{})),nRe=O((()=>{})),rRe=O((()=>{})),iRe=O((()=>{})),aRe=O((()=>{})),oRe=O((()=>{})),sRe=O((()=>{})),cRe=O((()=>{})),lRe=O((()=>{})),uRe=O((()=>{})),dRe=O((()=>{})),fRe=O((()=>{})),pRe=O((()=>{})),mRe=O((()=>{})),hRe=O((()=>{})),gRe=O((()=>{})),_Re=O((()=>{})),vRe=O((()=>{})),yRe=O((()=>{})),bRe=O((()=>{})),xRe=O((()=>{})),SRe=O((()=>{})),CRe=O((()=>{})),wRe=O((()=>{})),TRe=O((()=>{})),ERe=O((()=>{})),DRe=O((()=>{})),ORe=O((()=>{})),kRe=O((()=>{})),ARe=O((()=>{})),jRe=O((()=>{})),MRe=O((()=>{})),NRe=O((()=>{})),PRe=O((()=>{})),FRe=O((()=>{})),IRe=O((()=>{})),LRe=O((()=>{})),RRe=O((()=>{})),zRe=O((()=>{})),BRe=O((()=>{})),VRe=O((()=>{})),HRe=O((()=>{})),URe=O((()=>{})),WRe=O((()=>{})),GRe=O((()=>{})),KRe=O((()=>{})),qRe=O((()=>{})),JRe=O((()=>{})),YRe=O((()=>{})),XRe=O((()=>{})),ZRe=O((()=>{})),QRe=O((()=>{})),$Re=O((()=>{})),eze=O((()=>{})),tze=O((()=>{})),nze=O((()=>{})),rze=O((()=>{})),ize=O((()=>{})),aze=O((()=>{})),oze=O((()=>{})),sze=O((()=>{})),cze=O((()=>{})),lze=O((()=>{})),uze=O((()=>{})),dze=O((()=>{})),fze=O((()=>{})),pze=O((()=>{})),mze=O((()=>{})),hze=O((()=>{})),gze=O((()=>{})),_ze=O((()=>{})),vze=O((()=>{})),yze=O((()=>{})),bze=O((()=>{})),xze=O((()=>{})),Sze=O((()=>{})),Cze=O((()=>{})),wze=O((()=>{})),Tze=O((()=>{})),Eze=O((()=>{})),Dze=O((()=>{})),Oze=O((()=>{})),kze=O((()=>{})),Aze=O((()=>{})),jze=O((()=>{})),Mze=O((()=>{})),Nze=O((()=>{})),Pze=O((()=>{})),Fze=O((()=>{})),Ize=O((()=>{})),Lze=O((()=>{})),Rze=O((()=>{})),zze=O((()=>{})),Bze=O((()=>{})),Vze=O((()=>{})),Hze=O((()=>{})),Uze=O((()=>{})),Wze=O((()=>{})),Gze=O((()=>{})),Kze=O((()=>{})),qze=O((()=>{})),Jze=O((()=>{})),Yze=O((()=>{})),Xze=O((()=>{})),Zze=O((()=>{})),Qze=O((()=>{})),$ze=O((()=>{})),eBe=O((()=>{})),tBe=O((()=>{})),nBe=O((()=>{})),rBe=O((()=>{})),iBe=O((()=>{})),aBe=O((()=>{})),oBe=O((()=>{})),sBe=O((()=>{})),cBe=O((()=>{})),lBe=O((()=>{})),uBe=O((()=>{})),dBe=O((()=>{})),fBe=O((()=>{})),pBe=O((()=>{})),mBe=O((()=>{})),hBe=O((()=>{})),gBe=O((()=>{})),_Be=O((()=>{})),vBe=O((()=>{})),yBe=O((()=>{})),bBe=O((()=>{})),xBe=O((()=>{})),SBe=O((()=>{})),CBe=O((()=>{})),wBe=O((()=>{})),TBe=O((()=>{})),EBe=O((()=>{})),DBe=O((()=>{})),OBe=O((()=>{})),kBe=O((()=>{})),ABe=O((()=>{})),jBe=O((()=>{})),MBe=O((()=>{})),NBe=O((()=>{})),PBe=O((()=>{})),FBe=O((()=>{})),IBe=O((()=>{})),LBe=O((()=>{})),RBe=O((()=>{})),zBe=O((()=>{})),BBe=O((()=>{})),VBe=O((()=>{})),HBe=O((()=>{})),UBe=O((()=>{})),WBe=O((()=>{})),GBe=O((()=>{})),KBe=O((()=>{})),qBe=O((()=>{})),JBe=O((()=>{})),YBe=O((()=>{})),XBe=O((()=>{})),ZBe=O((()=>{})),QBe=O((()=>{})),$Be=O((()=>{})),eVe=O((()=>{})),tVe=O((()=>{})),nVe=O((()=>{})),rVe=O((()=>{})),iVe=O((()=>{})),aVe=O((()=>{})),oVe=O((()=>{})),sVe=O((()=>{})),cVe=O((()=>{})),lVe=O((()=>{})),uVe=O((()=>{})),dVe=O((()=>{})),fVe=O((()=>{})),pVe=O((()=>{})),mVe=O((()=>{})),hVe=O((()=>{})),gVe=O((()=>{})),_Ve=O((()=>{})),vVe=O((()=>{})),yVe=O((()=>{})),bVe=O((()=>{})),xVe=O((()=>{})),SVe=O((()=>{})),CVe=O((()=>{})),wVe=O((()=>{})),TVe=O((()=>{})),EVe=O((()=>{})),DVe=O((()=>{})),OVe=O((()=>{})),kVe=O((()=>{})),HU,UU=O((()=>{HU={Default:`default`,Voice:`voice`,Chat:`chat`,Processing:`processing`,Service:`service`}})),AVe=O((()=>{})),jVe=O((()=>{})),MVe=O((()=>{})),NVe=O((()=>{})),PVe=O((()=>{})),FVe=O((()=>{})),IVe=O((()=>{})),LVe=O((()=>{})),RVe=O((()=>{})),zVe=O((()=>{})),BVe=O((()=>{})),VVe=O((()=>{})),HVe=O((()=>{})),UVe=O((()=>{})),WVe=O((()=>{})),GVe=O((()=>{})),KVe=O((()=>{})),qVe=O((()=>{})),JVe=O((()=>{})),YVe=O((()=>{})),XVe=O((()=>{})),ZVe=O((()=>{})),QVe=O((()=>{})),$Ve=O((()=>{})),eHe=O((()=>{})),tHe=O((()=>{})),nHe=O((()=>{})),rHe=O((()=>{})),iHe=O((()=>{})),aHe=O((()=>{})),oHe=O((()=>{})),sHe=O((()=>{})),cHe=O((()=>{})),lHe=O((()=>{})),uHe=O((()=>{})),dHe=O((()=>{})),fHe=O((()=>{})),pHe=O((()=>{})),mHe=O((()=>{})),hHe=O((()=>{})),gHe=O((()=>{})),_He=O((()=>{})),vHe=O((()=>{})),yHe=O((()=>{})),bHe=O((()=>{})),xHe=O((()=>{})),SHe=O((()=>{})),CHe=O((()=>{})),wHe=O((()=>{})),THe=O((()=>{})),EHe=O((()=>{})),DHe=O((()=>{})),OHe=O((()=>{})),kHe=O((()=>{})),AHe=O((()=>{})),jHe=O((()=>{})),MHe=O((()=>{})),NHe=O((()=>{})),PHe=O((()=>{})),FHe=O((()=>{})),IHe=O((()=>{})),LHe=O((()=>{})),RHe=O((()=>{})),zHe=O((()=>{})),BHe=O((()=>{})),VHe=O((()=>{})),HHe=O((()=>{})),UHe=O((()=>{})),WHe=O((()=>{})),GHe=O((()=>{})),KHe=O((()=>{})),qHe=O((()=>{})),JHe=O((()=>{})),YHe=O((()=>{})),XHe=O((()=>{})),ZHe=O((()=>{})),QHe=O((()=>{})),$He=O((()=>{})),eUe=O((()=>{})),tUe=O((()=>{})),nUe=O((()=>{})),rUe=O((()=>{})),iUe=O((()=>{})),aUe=O((()=>{})),oUe=O((()=>{})),sUe=O((()=>{})),cUe=O((()=>{})),lUe=O((()=>{})),uUe=O((()=>{})),dUe=O((()=>{})),fUe=O((()=>{})),pUe=O((()=>{})),mUe=O((()=>{})),hUe=O((()=>{})),gUe=O((()=>{})),_Ue=O((()=>{})),vUe=O((()=>{})),yUe=O((()=>{})),bUe=O((()=>{})),xUe=O((()=>{})),SUe=O((()=>{})),CUe=O((()=>{})),wUe=O((()=>{})),TUe=O((()=>{})),EUe=O((()=>{})),DUe=O((()=>{})),OUe=O((()=>{})),kUe=O((()=>{})),AUe=O((()=>{})),jUe=O((()=>{})),MUe=O((()=>{})),NUe=O((()=>{})),PUe=O((()=>{})),FUe=O((()=>{})),IUe=O((()=>{})),LUe=O((()=>{})),RUe=O((()=>{})),zUe=O((()=>{})),BUe=O((()=>{})),VUe=O((()=>{})),HUe=O((()=>{})),UUe=O((()=>{})),WUe=O((()=>{})),GUe=O((()=>{})),KUe=O((()=>{})),qUe=O((()=>{})),JUe=O((()=>{})),YUe=O((()=>{})),XUe=O((()=>{})),ZUe=O((()=>{})),QUe=O((()=>{})),$Ue=O((()=>{})),eWe=O((()=>{})),tWe=O((()=>{})),nWe=O((()=>{})),rWe=O((()=>{})),iWe=O((()=>{})),aWe=O((()=>{})),oWe=O((()=>{})),sWe=O((()=>{})),cWe=O((()=>{})),lWe=O((()=>{})),uWe=O((()=>{})),dWe=O((()=>{})),fWe=O((()=>{})),pWe=O((()=>{})),mWe=O((()=>{})),hWe=O((()=>{})),gWe=O((()=>{})),_We=O((()=>{})),vWe=O((()=>{})),yWe=O((()=>{})),bWe=O((()=>{})),xWe=O((()=>{})),SWe=O((()=>{})),CWe=O((()=>{})),wWe=O((()=>{})),TWe=O((()=>{})),EWe=O((()=>{})),DWe=O((()=>{})),OWe=O((()=>{})),kWe=O((()=>{})),AWe=O((()=>{})),jWe=O((()=>{})),MWe=O((()=>{})),NWe=O((()=>{})),PWe=O((()=>{})),FWe=O((()=>{})),IWe=O((()=>{})),LWe=O((()=>{})),RWe=O((()=>{})),zWe=O((()=>{})),BWe=O((()=>{})),VWe=O((()=>{})),HWe=O((()=>{})),UWe=O((()=>{})),WWe=O((()=>{})),GWe=O((()=>{})),KWe=O((()=>{})),qWe=O((()=>{})),JWe=O((()=>{})),YWe=O((()=>{})),XWe=O((()=>{})),ZWe=O((()=>{})),QWe=O((()=>{})),$We=O((()=>{})),eGe=O((()=>{})),tGe=O((()=>{})),nGe=O((()=>{})),rGe=O((()=>{})),iGe=O((()=>{})),aGe=O((()=>{})),oGe=O((()=>{})),sGe=O((()=>{})),cGe=O((()=>{})),lGe=O((()=>{})),uGe=O((()=>{})),dGe=O((()=>{})),fGe=O((()=>{})),pGe=O((()=>{})),mGe=O((()=>{})),hGe=O((()=>{})),gGe=O((()=>{})),_Ge=O((()=>{})),vGe=O((()=>{})),yGe=O((()=>{})),bGe=O((()=>{})),xGe=O((()=>{})),SGe=O((()=>{})),CGe=O((()=>{})),wGe=O((()=>{})),TGe=O((()=>{})),EGe=O((()=>{})),DGe=O((()=>{})),OGe=O((()=>{})),kGe=O((()=>{})),AGe=O((()=>{})),jGe=O((()=>{})),MGe=O((()=>{})),NGe=O((()=>{})),PGe=O((()=>{})),FGe=O((()=>{})),IGe=O((()=>{})),LGe=O((()=>{})),RGe=O((()=>{})),zGe=O((()=>{})),BGe=O((()=>{})),VGe=O((()=>{})),HGe=O((()=>{})),UGe=O((()=>{})),WGe=O((()=>{})),GGe=O((()=>{})),KGe=O((()=>{})),qGe=O((()=>{})),JGe=O((()=>{})),YGe=O((()=>{})),XGe=O((()=>{})),ZGe=O((()=>{})),QGe=O((()=>{})),$Ge=O((()=>{})),eKe=O((()=>{})),tKe=O((()=>{})),nKe=O((()=>{})),rKe=O((()=>{})),iKe=O((()=>{})),aKe=O((()=>{})),oKe=O((()=>{})),sKe=O((()=>{})),cKe=O((()=>{})),lKe=O((()=>{})),uKe=O((()=>{})),dKe=O((()=>{})),fKe=O((()=>{})),pKe=O((()=>{})),mKe=O((()=>{})),hKe=O((()=>{})),gKe=O((()=>{})),_Ke=O((()=>{})),vKe=O((()=>{})),yKe=O((()=>{})),bKe=O((()=>{})),xKe=O((()=>{})),SKe=O((()=>{})),CKe=O((()=>{})),wKe=O((()=>{})),TKe=O((()=>{})),EKe=O((()=>{})),DKe=O((()=>{})),OKe=O((()=>{})),kKe=O((()=>{})),AKe=O((()=>{})),jKe=O((()=>{})),MKe=O((()=>{})),NKe=O((()=>{})),PKe=O((()=>{})),FKe=O((()=>{})),IKe=O((()=>{})),LKe=O((()=>{})),RKe=O((()=>{})),zKe=O((()=>{})),BKe=O((()=>{})),VKe=O((()=>{})),HKe=O((()=>{})),UKe=O((()=>{})),WKe=O((()=>{})),GKe=O((()=>{})),KKe=O((()=>{})),qKe=O((()=>{})),JKe=O((()=>{})),YKe=O((()=>{})),XKe=O((()=>{})),ZKe=O((()=>{})),QKe=O((()=>{})),$Ke=O((()=>{})),eqe=O((()=>{})),tqe=O((()=>{})),nqe=O((()=>{})),rqe=O((()=>{})),iqe=O((()=>{})),aqe=O((()=>{})),oqe=O((()=>{})),sqe=O((()=>{})),cqe=O((()=>{})),lqe=O((()=>{})),uqe=O((()=>{})),dqe=O((()=>{})),fqe=O((()=>{})),pqe=O((()=>{})),mqe=O((()=>{})),hqe=O((()=>{})),gqe=O((()=>{})),_qe=O((()=>{})),vqe=O((()=>{})),yqe=O((()=>{})),bqe=O((()=>{})),xqe=O((()=>{})),Sqe=O((()=>{})),Cqe=O((()=>{})),wqe=O((()=>{})),Tqe=O((()=>{})),Eqe=O((()=>{})),Dqe=O((()=>{})),Oqe=O((()=>{})),kqe=O((()=>{})),Aqe=O((()=>{})),jqe=O((()=>{})),Mqe=O((()=>{})),Nqe=O((()=>{})),Pqe=O((()=>{})),Fqe=O((()=>{})),Iqe=O((()=>{})),Lqe=O((()=>{})),Rqe=O((()=>{})),zqe=O((()=>{})),Bqe=O((()=>{})),Vqe=O((()=>{})),Hqe=O((()=>{})),Uqe=O((()=>{})),Wqe=O((()=>{})),Gqe=O((()=>{})),Kqe=O((()=>{})),qqe=O((()=>{})),Jqe=O((()=>{})),Yqe=O((()=>{})),Xqe=O((()=>{})),Zqe=O((()=>{})),Qqe=O((()=>{})),$qe=O((()=>{})),eJe=O((()=>{})),tJe=O((()=>{})),nJe=O((()=>{})),rJe=O((()=>{})),iJe=O((()=>{})),aJe=O((()=>{})),oJe=O((()=>{})),sJe=O((()=>{})),cJe=O((()=>{})),lJe=O((()=>{})),uJe=O((()=>{})),dJe=O((()=>{})),fJe=O((()=>{})),pJe=O((()=>{})),mJe=O((()=>{})),hJe=O((()=>{})),gJe=O((()=>{})),_Je=O((()=>{})),vJe=O((()=>{})),yJe=O((()=>{})),bJe=O((()=>{})),xJe=O((()=>{})),SJe=O((()=>{})),CJe=O((()=>{})),wJe=O((()=>{})),TJe=O((()=>{})),EJe=O((()=>{})),DJe=O((()=>{})),OJe=O((()=>{})),kJe=O((()=>{})),AJe=O((()=>{})),jJe=O((()=>{})),MJe=O((()=>{})),NJe=O((()=>{})),PJe=O((()=>{})),FJe=O((()=>{})),IJe=O((()=>{})),LJe=O((()=>{})),RJe=O((()=>{})),zJe=O((()=>{})),BJe=O((()=>{})),VJe=O((()=>{})),HJe=O((()=>{})),UJe=O((()=>{})),WJe=O((()=>{})),GJe=O((()=>{})),KJe=O((()=>{})),qJe=O((()=>{})),JJe=O((()=>{})),YJe=O((()=>{})),XJe=O((()=>{})),ZJe=O((()=>{})),QJe=O((()=>{})),$Je=O((()=>{})),eYe=O((()=>{})),tYe=O((()=>{})),nYe=O((()=>{})),rYe=O((()=>{})),iYe=O((()=>{})),aYe=O((()=>{})),oYe=O((()=>{})),sYe=O((()=>{})),cYe=O((()=>{})),lYe=O((()=>{})),uYe=O((()=>{})),dYe=O((()=>{})),fYe=O((()=>{})),pYe=O((()=>{})),mYe=O((()=>{})),hYe=O((()=>{})),gYe=O((()=>{})),_Ye=O((()=>{})),vYe=O((()=>{})),yYe=O((()=>{})),bYe=O((()=>{})),xYe=O((()=>{})),SYe=O((()=>{})),CYe=O((()=>{})),wYe=O((()=>{})),TYe=O((()=>{})),EYe=O((()=>{})),DYe=O((()=>{})),OYe=O((()=>{})),kYe=O((()=>{})),AYe=O((()=>{})),jYe=O((()=>{})),MYe=O((()=>{})),NYe=O((()=>{})),PYe=O((()=>{})),FYe=O((()=>{})),IYe=O((()=>{})),LYe=O((()=>{})),RYe=O((()=>{})),zYe=O((()=>{})),BYe=O((()=>{})),VYe=O((()=>{})),HYe=O((()=>{})),UYe=O((()=>{})),WYe=O((()=>{})),GYe=O((()=>{})),KYe=O((()=>{})),qYe=O((()=>{})),JYe=O((()=>{})),YYe=O((()=>{})),XYe=O((()=>{})),ZYe=O((()=>{})),QYe=O((()=>{})),$Ye=O((()=>{})),eXe=O((()=>{})),tXe=O((()=>{})),nXe=O((()=>{})),rXe=O((()=>{})),iXe=O((()=>{})),aXe=O((()=>{})),oXe=O((()=>{})),sXe=O((()=>{})),cXe=O((()=>{})),lXe=O((()=>{})),uXe=O((()=>{})),dXe=O((()=>{})),fXe=O((()=>{})),pXe=O((()=>{})),mXe=O((()=>{})),hXe=O((()=>{})),gXe=O((()=>{})),_Xe=O((()=>{})),vXe=O((()=>{})),yXe=O((()=>{})),bXe=O((()=>{})),xXe=O((()=>{})),SXe=O((()=>{})),CXe=O((()=>{})),wXe=O((()=>{})),TXe=O((()=>{})),EXe=O((()=>{})),DXe=O((()=>{})),OXe=O((()=>{})),kXe=O((()=>{})),AXe=O((()=>{})),jXe=O((()=>{})),MXe=O((()=>{})),NXe=O((()=>{})),PXe=O((()=>{})),FXe=O((()=>{})),IXe=O((()=>{})),LXe=O((()=>{})),RXe=O((()=>{})),zXe=O((()=>{})),BXe=O((()=>{})),VXe=O((()=>{})),HXe=O((()=>{})),UXe=O((()=>{})),WXe=O((()=>{})),GXe=O((()=>{})),KXe=O((()=>{})),qXe=O((()=>{})),JXe=O((()=>{})),YXe=O((()=>{})),XXe=O((()=>{})),ZXe=O((()=>{})),QXe=O((()=>{})),$Xe=O((()=>{})),eZe=O((()=>{})),tZe=O((()=>{})),nZe=O((()=>{})),rZe=O((()=>{})),iZe=O((()=>{})),aZe=O((()=>{})),oZe=O((()=>{})),sZe=O((()=>{})),cZe=O((()=>{})),lZe=O((()=>{})),uZe=O((()=>{})),dZe=O((()=>{})),fZe=O((()=>{})),pZe=O((()=>{})),mZe=O((()=>{})),hZe=O((()=>{})),gZe=O((()=>{})),_Ze=O((()=>{})),vZe=O((()=>{})),yZe=O((()=>{})),bZe=O((()=>{})),xZe=O((()=>{})),SZe=O((()=>{})),CZe=O((()=>{})),wZe=O((()=>{})),TZe=O((()=>{})),EZe=O((()=>{})),DZe=O((()=>{})),OZe=O((()=>{})),kZe=O((()=>{})),AZe=O((()=>{})),jZe=O((()=>{})),MZe=O((()=>{})),NZe=O((()=>{})),PZe=O((()=>{})),FZe=O((()=>{})),IZe=O((()=>{})),LZe=O((()=>{})),RZe=O((()=>{})),zZe=O((()=>{})),BZe=O((()=>{})),VZe=O((()=>{})),HZe=O((()=>{})),UZe=O((()=>{})),WZe=O((()=>{})),GZe=O((()=>{})),KZe=O((()=>{})),WU=O((()=>{})),qZe=O((()=>{})),JZe=O((()=>{})),YZe=O((()=>{})),XZe=O((()=>{})),ZZe=O((()=>{})),QZe=O((()=>{})),$Ze=O((()=>{})),eQe=O((()=>{})),tQe=O((()=>{})),nQe=O((()=>{})),rQe=O((()=>{})),iQe=O((()=>{})),aQe=O((()=>{})),oQe=O((()=>{})),sQe=O((()=>{})),cQe=O((()=>{})),lQe=O((()=>{})),uQe=O((()=>{})),dQe=O((()=>{})),fQe=O((()=>{})),pQe=O((()=>{})),mQe=O((()=>{})),hQe=O((()=>{})),gQe=O((()=>{})),_Qe=O((()=>{})),vQe=O((()=>{})),yQe=O((()=>{})),bQe=O((()=>{})),xQe=O((()=>{})),SQe=O((()=>{})),CQe=O((()=>{})),wQe=O((()=>{})),TQe=O((()=>{})),EQe=O((()=>{})),DQe=O((()=>{})),OQe=O((()=>{})),kQe=O((()=>{})),AQe=O((()=>{})),jQe=O((()=>{})),MQe=O((()=>{})),NQe=O((()=>{})),PQe=O((()=>{})),FQe=O((()=>{})),IQe=O((()=>{})),LQe=O((()=>{})),RQe=O((()=>{})),zQe=O((()=>{})),BQe=O((()=>{})),VQe=O((()=>{})),HQe=O((()=>{})),UQe=O((()=>{})),WQe=O((()=>{})),GQe=O((()=>{})),KQe=O((()=>{})),qQe=O((()=>{})),JQe=O((()=>{})),YQe=O((()=>{})),XQe=O((()=>{})),ZQe=O((()=>{})),QQe=O((()=>{})),$Qe=O((()=>{})),e$e=O((()=>{})),t$e=O((()=>{})),n$e=O((()=>{})),r$e=O((()=>{})),i$e=O((()=>{})),a$e=O((()=>{})),o$e=O((()=>{})),s$e=O((()=>{})),c$e=O((()=>{})),l$e=O((()=>{})),u$e=O((()=>{})),d$e=O((()=>{})),f$e=O((()=>{})),p$e=O((()=>{})),m$e=O((()=>{})),h$e=O((()=>{})),g$e=O((()=>{})),_$e=O((()=>{})),v$e=O((()=>{})),y$e=O((()=>{})),b$e=O((()=>{})),x$e=O((()=>{})),S$e=O((()=>{})),C$e=O((()=>{})),w$e=O((()=>{})),T$e=O((()=>{})),E$e=O((()=>{})),D$e=O((()=>{})),O$e=O((()=>{})),k$e=O((()=>{})),A$e=O((()=>{})),j$e=O((()=>{})),M$e=O((()=>{})),N$e=O((()=>{})),P$e=O((()=>{})),F$e=O((()=>{})),I$e=O((()=>{})),L$e=O((()=>{})),R$e=O((()=>{})),z$e=O((()=>{})),B$e=O((()=>{})),V$e=O((()=>{})),H$e=O((()=>{})),U$e=O((()=>{})),W$e=O((()=>{})),G$e=O((()=>{})),K$e=O((()=>{})),q$e=O((()=>{})),J$e=O((()=>{})),Y$e=O((()=>{})),X$e=O((()=>{})),Z$e=O((()=>{})),Q$e=O((()=>{})),$$e=O((()=>{})),e1e=O((()=>{})),t1e=O((()=>{})),n1e=O((()=>{})),r1e=O((()=>{})),i1e=O((()=>{})),a1e=O((()=>{})),o1e=O((()=>{})),s1e=O((()=>{})),c1e=O((()=>{})),l1e=O((()=>{})),u1e=O((()=>{})),d1e=O((()=>{})),f1e=O((()=>{})),p1e=O((()=>{})),m1e=O((()=>{})),h1e=O((()=>{})),g1e=O((()=>{})),_1e=O((()=>{})),v1e=O((()=>{})),y1e=O((()=>{})),b1e=O((()=>{})),x1e=O((()=>{})),S1e=O((()=>{})),C1e=O((()=>{})),w1e=O((()=>{})),T1e=O((()=>{})),E1e=O((()=>{})),D1e=O((()=>{})),O1e=O((()=>{})),k1e=O((()=>{})),A1e=O((()=>{})),j1e=O((()=>{})),M1e=O((()=>{})),N1e=O((()=>{})),P1e=O((()=>{})),F1e=O((()=>{})),I1e=O((()=>{})),L1e=O((()=>{})),R1e=O((()=>{})),z1e=O((()=>{})),B1e=O((()=>{})),V1e=O((()=>{})),H1e=O((()=>{})),U1e=O((()=>{})),W1e=O((()=>{})),G1e=O((()=>{})),K1e=O((()=>{})),q1e=O((()=>{})),J1e=O((()=>{})),Y1e=O((()=>{})),X1e=O((()=>{})),Z1e=O((()=>{})),Q1e=O((()=>{})),$1e=O((()=>{})),e0e=O((()=>{})),t0e=O((()=>{})),n0e=O((()=>{})),r0e=O((()=>{})),i0e=O((()=>{})),a0e=O((()=>{})),o0e=O((()=>{})),s0e=O((()=>{})),c0e=O((()=>{})),l0e=O((()=>{})),u0e=O((()=>{})),d0e=O((()=>{})),f0e=O((()=>{})),p0e=O((()=>{})),m0e=O((()=>{})),h0e=O((()=>{})),g0e=O((()=>{})),_0e=O((()=>{})),v0e=O((()=>{})),y0e=O((()=>{})),b0e=O((()=>{})),x0e=O((()=>{})),S0e=O((()=>{})),C0e=O((()=>{})),w0e=O((()=>{})),T0e=O((()=>{})),E0e=O((()=>{})),D0e=O((()=>{})),O0e=O((()=>{})),k0e=O((()=>{})),A0e=O((()=>{})),j0e=O((()=>{})),M0e=O((()=>{})),N0e=O((()=>{})),P0e=O((()=>{})),F0e=O((()=>{})),I0e=O((()=>{})),L0e=O((()=>{})),R0e=O((()=>{})),z0e=O((()=>{})),B0e=O((()=>{})),V0e=O((()=>{})),H0e=O((()=>{})),U0e=O((()=>{})),W0e=O((()=>{})),G0e=O((()=>{})),K0e=O((()=>{})),q0e=O((()=>{})),J0e=O((()=>{})),Y0e=O((()=>{})),X0e=O((()=>{})),Z0e=O((()=>{})),Q0e=O((()=>{})),$0e=O((()=>{})),e2e=O((()=>{})),t2e=O((()=>{})),n2e=O((()=>{})),r2e=O((()=>{})),i2e=O((()=>{})),a2e=O((()=>{})),o2e=O((()=>{})),s2e=O((()=>{})),c2e=O((()=>{})),l2e=O((()=>{})),u2e=O((()=>{})),d2e=O((()=>{})),f2e=O((()=>{})),p2e=O((()=>{})),m2e=O((()=>{})),h2e=O((()=>{})),g2e=O((()=>{})),_2e=O((()=>{})),v2e=O((()=>{})),y2e=O((()=>{})),b2e=O((()=>{})),x2e=O((()=>{})),S2e=O((()=>{})),C2e=O((()=>{})),w2e=O((()=>{})),T2e=O((()=>{})),E2e=O((()=>{})),D2e=O((()=>{})),O2e=O((()=>{})),k2e=O((()=>{})),A2e=O((()=>{})),j2e=O((()=>{})),M2e=O((()=>{})),N2e=O((()=>{})),P2e=O((()=>{})),F2e=O((()=>{})),I2e=O((()=>{})),L2e=O((()=>{})),R2e=O((()=>{})),z2e=O((()=>{})),B2e=O((()=>{})),V2e=O((()=>{})),H2e=O((()=>{})),U2e=O((()=>{})),W2e=O((()=>{})),G2e=O((()=>{})),K2e=O((()=>{})),q2e=O((()=>{})),J2e=O((()=>{})),Y2e=O((()=>{})),X2e=O((()=>{})),Z2e=O((()=>{})),Q2e=O((()=>{})),$2e=O((()=>{})),e4e=O((()=>{})),t4e=O((()=>{})),n4e=O((()=>{})),r4e=O((()=>{})),i4e=O((()=>{})),a4e=O((()=>{})),o4e=O((()=>{})),s4e=O((()=>{})),c4e=O((()=>{})),l4e=O((()=>{})),u4e=O((()=>{})),d4e=O((()=>{})),f4e=O((()=>{})),p4e=O((()=>{})),m4e=O((()=>{})),h4e=O((()=>{})),g4e=O((()=>{})),_4e=O((()=>{})),v4e=O((()=>{})),y4e=O((()=>{})),b4e=O((()=>{})),x4e=O((()=>{})),S4e=O((()=>{})),C4e=O((()=>{})),w4e=O((()=>{})),T4e=O((()=>{})),E4e=O((()=>{})),D4e=O((()=>{})),O4e=O((()=>{})),k4e=O((()=>{})),A4e=O((()=>{})),j4e=O((()=>{})),M4e=O((()=>{})),N4e=O((()=>{})),P4e=O((()=>{})),F4e=O((()=>{})),I4e=O((()=>{})),L4e=O((()=>{})),R4e=O((()=>{})),z4e=O((()=>{})),B4e=O((()=>{})),V4e=O((()=>{})),H4e=O((()=>{})),U4e=O((()=>{})),W4e=O((()=>{})),G4e=O((()=>{})),K4e=O((()=>{})),q4e=O((()=>{})),J4e=O((()=>{})),Y4e=O((()=>{})),X4e=O((()=>{})),Z4e=O((()=>{})),Q4e=O((()=>{})),$4e=O((()=>{})),e3e=O((()=>{})),t3e=O((()=>{})),n3e=O((()=>{})),r3e=O((()=>{})),i3e=O((()=>{})),a3e=O((()=>{})),o3e=O((()=>{})),s3e=O((()=>{})),c3e=O((()=>{})),l3e=O((()=>{})),u3e=O((()=>{})),d3e=O((()=>{})),f3e=O((()=>{})),p3e=O((()=>{})),m3e=O((()=>{})),h3e=O((()=>{})),g3e=O((()=>{})),_3e=O((()=>{})),v3e=O((()=>{})),y3e=O((()=>{})),b3e=O((()=>{})),x3e=O((()=>{})),S3e=O((()=>{})),C3e=O((()=>{})),w3e=O((()=>{})),T3e=O((()=>{})),E3e=O((()=>{})),D3e=O((()=>{})),O3e=O((()=>{})),k3e=O((()=>{})),A3e=O((()=>{})),j3e=O((()=>{})),M3e=O((()=>{})),N3e=O((()=>{})),P3e=O((()=>{})),F3e=O((()=>{})),I3e=O((()=>{})),L3e=O((()=>{})),R3e=O((()=>{})),z3e=O((()=>{})),B3e=O((()=>{})),V3e=O((()=>{})),H3e=O((()=>{})),U3e=O((()=>{})),W3e=O((()=>{})),G3e=O((()=>{})),K3e=O((()=>{})),q3e=O((()=>{})),J3e=O((()=>{})),Y3e=O((()=>{})),X3e=O((()=>{})),Z3e=O((()=>{})),Q3e=O((()=>{})),$3e=O((()=>{})),e6e=O((()=>{})),t6e=O((()=>{})),n6e=O((()=>{})),r6e=O((()=>{})),i6e=O((()=>{})),a6e=O((()=>{})),o6e=O((()=>{})),s6e=O((()=>{})),c6e=O((()=>{})),l6e=O((()=>{})),u6e=O((()=>{})),d6e=O((()=>{})),f6e=O((()=>{})),p6e=O((()=>{})),m6e=O((()=>{})),h6e=O((()=>{})),g6e=O((()=>{})),_6e=O((()=>{})),v6e=O((()=>{})),y6e=O((()=>{})),b6e=O((()=>{})),x6e=O((()=>{})),S6e=O((()=>{})),C6e=O((()=>{})),w6e=O((()=>{})),T6e=O((()=>{})),E6e=O((()=>{})),D6e=O((()=>{})),O6e=O((()=>{})),k6e=O((()=>{})),A6e=O((()=>{})),j6e=O((()=>{})),M6e=O((()=>{})),N6e=O((()=>{})),P6e=O((()=>{})),F6e=O((()=>{})),I6e=O((()=>{})),L6e=O((()=>{})),R6e=O((()=>{})),z6e=O((()=>{})),B6e=O((()=>{})),V6e=O((()=>{})),H6e=O((()=>{})),U6e=O((()=>{})),W6e=O((()=>{})),G6e=O((()=>{})),K6e=O((()=>{})),q6e=O((()=>{})),J6e=O((()=>{})),Y6e=O((()=>{})),X6e=O((()=>{})),Z6e=O((()=>{})),Q6e=O((()=>{})),$6e=O((()=>{})),e8e=O((()=>{})),t8e=O((()=>{})),n8e=O((()=>{})),r8e=O((()=>{})),i8e=O((()=>{})),a8e=O((()=>{})),o8e=O((()=>{})),s8e=O((()=>{})),c8e=O((()=>{})),l8e=O((()=>{})),u8e=O((()=>{})),d8e=O((()=>{})),f8e=O((()=>{})),p8e=O((()=>{})),m8e=O((()=>{})),h8e=O((()=>{})),g8e=O((()=>{})),_8e=O((()=>{})),v8e=O((()=>{})),y8e=O((()=>{})),b8e=O((()=>{})),x8e=O((()=>{})),S8e=O((()=>{})),C8e=O((()=>{})),w8e=O((()=>{})),T8e=O((()=>{})),E8e=O((()=>{})),D8e=O((()=>{})),O8e=O((()=>{})),k8e=O((()=>{})),A8e=O((()=>{})),j8e=O((()=>{})),M8e=O((()=>{})),N8e=O((()=>{})),P8e=O((()=>{})),F8e=O((()=>{})),I8e=O((()=>{})),L8e=O((()=>{})),R8e=O((()=>{})),z8e=O((()=>{})),B8e=O((()=>{})),V8e=O((()=>{})),H8e=O((()=>{})),U8e=O((()=>{})),W8e=O((()=>{})),G8e=O((()=>{})),K8e=O((()=>{})),q8e=O((()=>{})),J8e=O((()=>{})),Y8e=O((()=>{})),X8e=O((()=>{})),Z8e=O((()=>{})),Q8e=O((()=>{})),$8e=O((()=>{})),e5e=O((()=>{})),t5e=O((()=>{})),n5e=O((()=>{})),r5e=O((()=>{})),i5e=O((()=>{})),a5e=O((()=>{})),o5e=O((()=>{})),s5e=O((()=>{})),c5e=O((()=>{})),l5e=O((()=>{})),u5e=O((()=>{})),d5e=O((()=>{})),f5e=O((()=>{})),p5e=O((()=>{})),m5e=O((()=>{})),h5e=O((()=>{})),g5e=O((()=>{})),_5e=O((()=>{})),v5e=O((()=>{})),y5e=O((()=>{})),b5e=O((()=>{})),x5e=O((()=>{})),S5e=O((()=>{})),C5e=O((()=>{})),w5e=O((()=>{})),T5e=O((()=>{})),E5e=O((()=>{})),D5e=O((()=>{})),O5e=O((()=>{})),k5e=O((()=>{})),A5e=O((()=>{})),j5e=O((()=>{})),M5e=O((()=>{})),N5e=O((()=>{})),P5e=O((()=>{})),F5e=O((()=>{})),I5e=O((()=>{})),L5e=O((()=>{})),R5e=O((()=>{})),z5e=O((()=>{})),B5e=O((()=>{})),V5e=O((()=>{})),H5e=O((()=>{})),U5e=O((()=>{})),W5e=O((()=>{})),G5e=O((()=>{})),K5e=O((()=>{})),q5e=O((()=>{})),J5e=O((()=>{})),Y5e=O((()=>{})),X5e=O((()=>{})),Z5e=O((()=>{})),Q5e=O((()=>{})),$5e=O((()=>{})),e7e=O((()=>{})),t7e=O((()=>{})),n7e=O((()=>{})),r7e=O((()=>{})),i7e=O((()=>{})),a7e=O((()=>{})),o7e=O((()=>{})),s7e=O((()=>{})),c7e=O((()=>{})),l7e=O((()=>{})),u7e=O((()=>{})),d7e=O((()=>{})),f7e=O((()=>{})),p7e=O((()=>{})),m7e=O((()=>{})),h7e=O((()=>{})),g7e=O((()=>{})),_7e=O((()=>{})),v7e=O((()=>{})),y7e=O((()=>{})),b7e=O((()=>{})),x7e=O((()=>{})),S7e=O((()=>{})),C7e=O((()=>{})),w7e=O((()=>{})),T7e=O((()=>{})),E7e=O((()=>{})),D7e=O((()=>{})),O7e=O((()=>{})),k7e=O((()=>{})),A7e=O((()=>{})),j7e=O((()=>{})),M7e=O((()=>{})),N7e=O((()=>{})),P7e=O((()=>{})),F7e=O((()=>{})),I7e=O((()=>{})),L7e=O((()=>{})),R7e=O((()=>{})),z7e=O((()=>{})),B7e=O((()=>{})),V7e=O((()=>{})),H7e=O((()=>{})),U7e=O((()=>{})),W7e=O((()=>{})),G7e=O((()=>{})),K7e=O((()=>{})),q7e=O((()=>{})),J7e=O((()=>{})),Y7e=O((()=>{})),X7e=O((()=>{})),Z7e=O((()=>{})),Q7e=O((()=>{})),$7e=O((()=>{})),e9e=O((()=>{})),t9e=O((()=>{})),n9e=O((()=>{})),r9e=O((()=>{})),i9e=O((()=>{})),a9e=O((()=>{})),o9e=O((()=>{})),s9e=O((()=>{})),c9e=O((()=>{})),l9e=O((()=>{})),u9e=O((()=>{})),d9e=O((()=>{})),f9e=O((()=>{})),p9e=O((()=>{})),m9e=O((()=>{})),h9e=O((()=>{})),g9e=O((()=>{})),_9e=O((()=>{})),v9e=O((()=>{})),y9e=O((()=>{})),b9e=O((()=>{})),x9e=O((()=>{})),S9e=O((()=>{})),C9e=O((()=>{})),w9e=O((()=>{})),T9e=O((()=>{})),E9e=O((()=>{})),D9e=O((()=>{})),O9e=O((()=>{})),k9e=O((()=>{})),A9e=O((()=>{})),j9e=O((()=>{})),M9e=O((()=>{})),N9e=O((()=>{})),P9e=O((()=>{})),F9e=O((()=>{})),I9e=O((()=>{})),L9e=O((()=>{})),R9e=O((()=>{})),z9e=O((()=>{})),B9e=O((()=>{})),V9e=O((()=>{})),H9e=O((()=>{})),U9e=O((()=>{})),W9e=O((()=>{})),G9e=O((()=>{})),K9e=O((()=>{})),q9e=O((()=>{})),J9e=O((()=>{})),Y9e=O((()=>{})),X9e=O((()=>{})),Z9e=O((()=>{})),Q9e=O((()=>{})),$9e=O((()=>{})),eet=O((()=>{})),tet=O((()=>{})),net=O((()=>{})),ret=O((()=>{})),iet=O((()=>{})),aet=O((()=>{})),oet=O((()=>{})),set=O((()=>{})),cet=O((()=>{})),uet=O((()=>{})),det=O((()=>{})),fet=O((()=>{})),pet=O((()=>{})),met=O((()=>{})),het=O((()=>{})),get=O((()=>{})),_et=O((()=>{})),vet=O((()=>{})),yet=O((()=>{})),bet=O((()=>{})),xet=O((()=>{})),Cet=O((()=>{})),wet=O((()=>{})),Tet=O((()=>{})),Eet=O((()=>{})),Det=O((()=>{})),Oet=O((()=>{})),ket=O((()=>{})),Aet=O((()=>{})),jet=O((()=>{})),Met=O((()=>{})),Net=O((()=>{})),Pet=O((()=>{})),Fet=O((()=>{})),Iet=O((()=>{})),Let=O((()=>{})),Ret=O((()=>{})),zet=O((()=>{})),Bet=O((()=>{})),Vet=O((()=>{})),Het=O((()=>{})),Uet=O((()=>{})),Wet=O((()=>{})),Get=O((()=>{})),Ket=O((()=>{})),qet=O((()=>{})),Jet=O((()=>{})),Yet=O((()=>{})),Xet=O((()=>{})),Zet=O((()=>{})),Qet=O((()=>{})),$et=O((()=>{})),ett=O((()=>{})),ttt=O((()=>{})),ntt=O((()=>{})),GU,KU=O((()=>{GU={ExportStatusUnspecified:`EXPORT_STATUS_UNSPECIFIED`,Pending:`PENDING`,Processing:`PROCESSING`,Done:`DONE`,Failed:`FAILED`}})),rtt=O((()=>{})),itt=O((()=>{})),att=O((()=>{})),ott=O((()=>{})),stt=O((()=>{})),ctt=O((()=>{})),ltt=O((()=>{})),utt=O((()=>{})),dtt=O((()=>{})),ftt=O((()=>{})),ptt=O((()=>{})),mtt=O((()=>{})),htt=O((()=>{})),gtt=O((()=>{})),_tt=O((()=>{})),vtt=O((()=>{})),ytt=O((()=>{})),btt=O((()=>{})),xtt=O((()=>{})),Stt=O((()=>{})),Ctt=O((()=>{})),wtt=O((()=>{})),Ttt=O((()=>{})),Ett=O((()=>{})),Dtt=O((()=>{})),Ott=O((()=>{})),ktt=O((()=>{})),Att=O((()=>{})),jtt=O((()=>{})),Mtt=O((()=>{})),Ntt=O((()=>{})),Ptt=O((()=>{})),Ftt=O((()=>{})),Itt=O((()=>{})),Ltt=O((()=>{})),Rtt=O((()=>{})),ztt=O((()=>{})),Btt=O((()=>{})),Vtt=O((()=>{})),Htt=O((()=>{})),Utt=O((()=>{})),Wtt=O((()=>{})),Gtt=O((()=>{})),Ktt=O((()=>{})),qtt=O((()=>{})),Jtt=O((()=>{})),Ytt=O((()=>{})),Xtt=O((()=>{})),Ztt=O((()=>{})),Qtt=O((()=>{})),$tt=O((()=>{})),ent=O((()=>{})),tnt=O((()=>{})),nnt=O((()=>{})),rnt=O((()=>{})),int=O((()=>{})),ant=O((()=>{})),ont=O((()=>{})),snt=O((()=>{})),cnt=O((()=>{})),lnt=O((()=>{})),unt=O((()=>{})),dnt=O((()=>{})),fnt=O((()=>{})),pnt=O((()=>{})),mnt=O((()=>{})),hnt=O((()=>{})),gnt=O((()=>{})),_nt=O((()=>{})),vnt=O((()=>{})),ynt=O((()=>{})),bnt=O((()=>{})),xnt=O((()=>{})),Snt=O((()=>{})),Cnt=O((()=>{})),wnt=O((()=>{})),Tnt=O((()=>{})),Ent=O((()=>{})),Dnt=O((()=>{})),Ont=O((()=>{})),knt=O((()=>{})),Ant=O((()=>{})),jnt=O((()=>{})),Mnt=O((()=>{})),Nnt=O((()=>{})),Pnt=O((()=>{})),Fnt=O((()=>{})),Int=O((()=>{})),Lnt=O((()=>{})),Rnt=O((()=>{})),znt=O((()=>{})),Bnt=O((()=>{})),Vnt=O((()=>{})),Hnt=O((()=>{})),Unt=O((()=>{})),Wnt=O((()=>{})),Gnt=O((()=>{})),Knt=O((()=>{})),qnt=O((()=>{})),Jnt=O((()=>{})),Ynt=O((()=>{})),Xnt=O((()=>{})),Znt=O((()=>{})),Qnt=O((()=>{})),$nt=O((()=>{})),ert=O((()=>{})),trt=O((()=>{})),nrt=O((()=>{})),rrt=O((()=>{})),irt=O((()=>{})),qU=O((()=>{DOe(),OOe(),kOe(),AOe(),jOe(),MOe(),NOe(),POe(),FOe(),IOe(),LOe(),ROe(),zOe(),BOe(),VOe(),HOe(),UOe(),WOe(),GOe(),KOe(),qOe(),JOe(),YOe(),XOe(),ZOe(),QOe(),$Oe(),eke(),tke(),nke(),rke(),ike(),ake(),oke(),ske(),cke(),lke(),uke(),dke(),fke(),pke(),mke(),hke(),gke(),_ke(),vke(),yke(),bke(),xke(),Ske(),Cke(),wke(),Tke(),Eke(),Dke(),Oke(),kke(),Ake(),jke(),Mke(),Nke(),Pke(),Fke(),Ike(),Lke(),Rke(),zke(),Bke(),Vke(),Hke(),Uke(),Wke(),Gke(),Kke(),qke(),Jke(),Yke(),Xke(),Zke(),Qke(),$ke(),eAe(),tAe(),nAe(),rAe(),iAe(),aAe(),oAe(),sAe(),cAe(),lAe(),uAe(),dAe(),fAe(),pAe(),mAe(),hAe(),gAe(),_Ae(),vAe(),yAe(),bAe(),xAe(),SAe(),CAe(),wAe(),TAe(),EAe(),DAe(),OAe(),kAe(),AAe(),jAe(),MAe(),NAe(),PAe(),FAe(),IAe(),LAe(),RAe(),zAe(),BAe(),VAe(),HAe(),UAe(),WAe(),GAe(),KAe(),qAe(),JAe(),YAe(),XAe(),ZAe(),QAe(),$Ae(),eje(),tje(),nje(),rje(),ije(),aje(),oje(),sje(),cje(),lje(),uje(),dje(),fje(),pje(),mje(),hje(),gje(),_je(),vje(),yje(),bje(),xje(),Sje(),Cje(),wje(),Tje(),Eje(),Dje(),Oje(),kje(),Aje(),jje(),Mje(),Nje(),Pje(),Fje(),Ije(),Lje(),Rje(),zje(),Bje(),Vje(),Hje(),Uje(),Wje(),Gje(),Kje(),qje(),Jje(),Yje(),Xje(),Zje(),Qje(),$je(),eMe(),tMe(),nMe(),rMe(),iMe(),aMe(),oMe(),sMe(),cMe(),lMe(),uMe(),dMe(),fMe(),pMe(),mMe(),hMe(),gMe(),_Me(),vMe(),yMe(),bMe(),xMe(),SMe(),CMe(),wMe(),TMe(),EMe(),DMe(),OMe(),kMe(),AMe(),jMe(),MMe(),NMe(),PMe(),FMe(),IMe(),LMe(),RMe(),zMe(),BMe(),VMe(),HMe(),UMe(),WMe(),GMe(),KMe(),qMe(),JMe(),YMe(),XMe(),ZMe(),QMe(),$Me(),eNe(),tNe(),nNe(),rNe(),iNe(),aNe(),oNe(),sNe(),cNe(),lNe(),uNe(),dNe(),fNe(),pNe(),mNe(),hNe(),gNe(),_Ne(),vNe(),yNe(),bNe(),xNe(),SNe(),CNe(),wNe(),TNe(),ENe(),DNe(),ONe(),kNe(),ANe(),jNe(),MNe(),NNe(),PNe(),FNe(),INe(),LNe(),RNe(),zNe(),BNe(),VNe(),HNe(),UNe(),WNe(),GNe(),KNe(),qNe(),JNe(),YNe(),XNe(),ZNe(),QNe(),$Ne(),ePe(),tPe(),nPe(),rPe(),iPe(),aPe(),oPe(),sPe(),cPe(),lPe(),uPe(),dPe(),fPe(),pPe(),mPe(),hPe(),gPe(),_Pe(),vPe(),yPe(),bPe(),xPe(),SPe(),CPe(),wPe(),TPe(),EPe(),DPe(),OPe(),kPe(),APe(),jPe(),MPe(),NPe(),PPe(),FPe(),IPe(),LPe(),RPe(),zPe(),BPe(),VPe(),HPe(),UPe(),WPe(),GPe(),KPe(),qPe(),JPe(),YPe(),XPe(),ZPe(),QPe(),$Pe(),eFe(),tFe(),nFe(),rFe(),iFe(),aFe(),oFe(),sFe(),cFe(),lFe(),uFe(),dFe(),fFe(),pFe(),mFe(),hFe(),gFe(),_Fe(),vFe(),yFe(),bFe(),xFe(),SFe(),CFe(),wFe(),TFe(),EFe(),DFe(),OFe(),kFe(),AFe(),jFe(),MFe(),NFe(),PFe(),FFe(),IFe(),LFe(),RFe(),zFe(),BFe(),VFe(),HFe(),UFe(),WFe(),GFe(),KFe(),qFe(),JFe(),YFe(),XFe(),ZFe(),QFe(),$Fe(),eIe(),tIe(),nIe(),rIe(),iIe(),aIe(),oIe(),sIe(),cIe(),lIe(),uIe(),dIe(),fIe(),pIe(),mIe(),hIe(),gIe(),_Ie(),vIe(),yIe(),bIe(),xIe(),SIe(),CIe(),wIe(),TIe(),EIe(),DIe(),OIe(),kIe(),AIe(),jIe(),MIe(),NIe(),PIe(),FIe(),IIe(),LIe(),RIe(),zIe(),BIe(),VIe(),HIe(),UIe(),WIe(),GIe(),KIe(),qIe(),JIe(),YIe(),XIe(),ZIe(),QIe(),$Ie(),eLe(),tLe(),nLe(),rLe(),iLe(),aLe(),oLe(),sLe(),cLe(),lLe(),uLe(),dLe(),fLe(),pLe(),mLe(),hLe(),gLe(),_Le(),vLe(),yLe(),bLe(),xLe(),SLe(),CLe(),wLe(),TLe(),ELe(),DLe(),OLe(),kLe(),ALe(),jLe(),MLe(),NLe(),PLe(),FLe(),ILe(),LLe(),RLe(),zLe(),BLe(),VLe(),HLe(),ULe(),WLe(),GLe(),KLe(),qLe(),JLe(),YLe(),XLe(),ZLe(),QLe(),$Le(),eRe(),tRe(),nRe(),rRe(),iRe(),aRe(),oRe(),sRe(),cRe(),lRe(),uRe(),dRe(),fRe(),pRe(),mRe(),hRe(),gRe(),_Re(),vRe(),yRe(),bRe(),xRe(),SRe(),CRe(),wRe(),TRe(),ERe(),DRe(),ORe(),kRe(),ARe(),jRe(),MRe(),NRe(),PRe(),FRe(),IRe(),LRe(),RRe(),zRe(),BRe(),VRe(),HRe(),URe(),WRe(),GRe(),KRe(),qRe(),JRe(),YRe(),XRe(),ZRe(),QRe(),$Re(),eze(),tze(),nze(),rze(),ize(),aze(),oze(),sze(),cze(),lze(),uze(),dze(),fze(),pze(),mze(),hze(),gze(),_ze(),vze(),yze(),bze(),xze(),Sze(),Cze(),wze(),Tze(),Eze(),Dze(),Oze(),kze(),Aze(),jze(),Mze(),Nze(),Pze(),Fze(),Ize(),Lze(),Rze(),zze(),Bze(),Vze(),Hze(),Uze(),Wze(),Gze(),Kze(),qze(),Jze(),Yze(),Xze(),Zze(),Qze(),$ze(),eBe(),tBe(),nBe(),rBe(),iBe(),aBe(),oBe(),sBe(),cBe(),lBe(),uBe(),dBe(),fBe(),pBe(),mBe(),hBe(),gBe(),_Be(),vBe(),yBe(),bBe(),xBe(),SBe(),CBe(),wBe(),TBe(),EBe(),DBe(),OBe(),kBe(),ABe(),jBe(),MBe(),NBe(),PBe(),FBe(),IBe(),LBe(),RBe(),zBe(),BBe(),VBe(),HBe(),UBe(),WBe(),GBe(),KBe(),qBe(),JBe(),YBe(),XBe(),ZBe(),QBe(),$Be(),eVe(),tVe(),nVe(),rVe(),iVe(),aVe(),oVe(),sVe(),cVe(),lVe(),uVe(),dVe(),fVe(),pVe(),mVe(),hVe(),gVe(),_Ve(),vVe(),yVe(),bVe(),xVe(),SVe(),CVe(),wVe(),TVe(),EVe(),DVe(),OVe(),kVe(),UU(),AVe(),jVe(),MVe(),NVe(),PVe(),FVe(),IVe(),LVe(),RVe(),zVe(),BVe(),VVe(),HVe(),UVe(),WVe(),GVe(),KVe(),qVe(),JVe(),YVe(),XVe(),ZVe(),QVe(),$Ve(),eHe(),tHe(),nHe(),rHe(),iHe(),aHe(),oHe(),sHe(),cHe(),lHe(),uHe(),dHe(),fHe(),pHe(),mHe(),hHe(),gHe(),_He(),vHe(),yHe(),bHe(),xHe(),SHe(),CHe(),wHe(),THe(),EHe(),DHe(),OHe(),kHe(),AHe(),jHe(),MHe(),NHe(),PHe(),FHe(),IHe(),LHe(),RHe(),zHe(),BHe(),VHe(),HHe(),UHe(),WHe(),GHe(),KHe(),qHe(),JHe(),YHe(),XHe(),ZHe(),QHe(),$He(),eUe(),tUe(),nUe(),rUe(),iUe(),aUe(),oUe(),sUe(),cUe(),lUe(),uUe(),dUe(),fUe(),pUe(),mUe(),hUe(),gUe(),_Ue(),vUe(),yUe(),bUe(),xUe(),SUe(),CUe(),wUe(),TUe(),EUe(),DUe(),OUe(),kUe(),AUe(),jUe(),MUe(),NUe(),PUe(),FUe(),IUe(),LUe(),RUe(),zUe(),BUe(),VUe(),HUe(),UUe(),WUe(),GUe(),KUe(),qUe(),JUe(),YUe(),XUe(),ZUe(),QUe(),$Ue(),eWe(),tWe(),nWe(),rWe(),iWe(),aWe(),oWe(),sWe(),cWe(),lWe(),uWe(),dWe(),fWe(),pWe(),mWe(),hWe(),gWe(),_We(),vWe(),yWe(),bWe(),xWe(),SWe(),CWe(),wWe(),TWe(),EWe(),DWe(),OWe(),kWe(),AWe(),jWe(),MWe(),NWe(),PWe(),FWe(),IWe(),LWe(),RWe(),zWe(),BWe(),VWe(),HWe(),UWe(),WWe(),GWe(),KWe(),qWe(),JWe(),YWe(),XWe(),ZWe(),QWe(),$We(),eGe(),tGe(),nGe(),rGe(),iGe(),aGe(),oGe(),sGe(),cGe(),lGe(),uGe(),dGe(),fGe(),pGe(),mGe(),hGe(),gGe(),_Ge(),vGe(),yGe(),bGe(),xGe(),SGe(),CGe(),wGe(),TGe(),EGe(),DGe(),OGe(),kGe(),AGe(),jGe(),MGe(),NGe(),PGe(),FGe(),IGe(),LGe(),RGe(),zGe(),BGe(),VGe(),HGe(),UGe(),WGe(),GGe(),KGe(),qGe(),JGe(),YGe(),XGe(),ZGe(),QGe(),$Ge(),eKe(),tKe(),nKe(),rKe(),iKe(),aKe(),oKe(),sKe(),cKe(),lKe(),uKe(),dKe(),fKe(),pKe(),mKe(),hKe(),gKe(),_Ke(),vKe(),yKe(),bKe(),xKe(),SKe(),CKe(),wKe(),TKe(),EKe(),DKe(),OKe(),kKe(),AKe(),jKe(),MKe(),NKe(),PKe(),FKe(),IKe(),LKe(),RKe(),zKe(),BKe(),VKe(),HKe(),UKe(),WKe(),GKe(),KKe(),qKe(),JKe(),YKe(),XKe(),ZKe(),QKe(),$Ke(),eqe(),tqe(),nqe(),rqe(),iqe(),aqe(),oqe(),sqe(),cqe(),lqe(),uqe(),dqe(),fqe(),pqe(),mqe(),hqe(),gqe(),_qe(),vqe(),yqe(),bqe(),xqe(),Sqe(),Cqe(),wqe(),Tqe(),Eqe(),Dqe(),Oqe(),kqe(),Aqe(),jqe(),Mqe(),Nqe(),Pqe(),Fqe(),Iqe(),Lqe(),Rqe(),zqe(),Bqe(),Vqe(),Hqe(),Uqe(),Wqe(),Gqe(),Kqe(),qqe(),Jqe(),Yqe(),Xqe(),Zqe(),Qqe(),$qe(),eJe(),tJe(),nJe(),rJe(),iJe(),aJe(),oJe(),sJe(),cJe(),lJe(),uJe(),dJe(),fJe(),pJe(),mJe(),hJe(),gJe(),_Je(),vJe(),yJe(),bJe(),xJe(),SJe(),CJe(),wJe(),TJe(),EJe(),DJe(),OJe(),kJe(),AJe(),jJe(),MJe(),NJe(),PJe(),FJe(),IJe(),LJe(),RJe(),zJe(),BJe(),VJe(),HJe(),UJe(),WJe(),GJe(),KJe(),qJe(),JJe(),YJe(),XJe(),ZJe(),QJe(),$Je(),eYe(),tYe(),nYe(),rYe(),iYe(),aYe(),oYe(),sYe(),cYe(),lYe(),uYe(),dYe(),fYe(),pYe(),mYe(),hYe(),gYe(),_Ye(),vYe(),yYe(),bYe(),xYe(),SYe(),CYe(),wYe(),TYe(),EYe(),DYe(),OYe(),kYe(),AYe(),jYe(),MYe(),NYe(),PYe(),FYe(),IYe(),LYe(),RYe(),zYe(),BYe(),VYe(),HYe(),UYe(),WYe(),GYe(),KYe(),qYe(),JYe(),YYe(),XYe(),ZYe(),QYe(),$Ye(),eXe(),tXe(),nXe(),rXe(),iXe(),aXe(),oXe(),sXe(),cXe(),lXe(),uXe(),dXe(),fXe(),pXe(),mXe(),hXe(),gXe(),_Xe(),vXe(),yXe(),bXe(),xXe(),SXe(),CXe(),wXe(),TXe(),EXe(),DXe(),OXe(),kXe(),AXe(),jXe(),MXe(),NXe(),PXe(),FXe(),IXe(),LXe(),RXe(),zXe(),BXe(),VXe(),HXe(),UXe(),WXe(),GXe(),KXe(),qXe(),JXe(),YXe(),XXe(),ZXe(),QXe(),$Xe(),eZe(),tZe(),nZe(),rZe(),iZe(),aZe(),oZe(),sZe(),cZe(),lZe(),uZe(),dZe(),fZe(),pZe(),mZe(),hZe(),gZe(),_Ze(),vZe(),yZe(),bZe(),xZe(),SZe(),CZe(),wZe(),TZe(),EZe(),DZe(),OZe(),kZe(),AZe(),jZe(),MZe(),NZe(),PZe(),FZe(),IZe(),LZe(),RZe(),zZe(),BZe(),VZe(),HZe(),UZe(),WZe(),GZe(),KZe(),WU(),qZe(),JZe(),YZe(),XZe(),ZZe(),QZe(),$Ze(),eQe(),tQe(),nQe(),rQe(),iQe(),aQe(),oQe(),sQe(),cQe(),lQe(),uQe(),dQe(),fQe(),pQe(),mQe(),hQe(),gQe(),_Qe(),vQe(),yQe(),bQe(),xQe(),SQe(),CQe(),wQe(),TQe(),EQe(),DQe(),OQe(),kQe(),AQe(),jQe(),MQe(),NQe(),PQe(),FQe(),IQe(),LQe(),RQe(),zQe(),BQe(),VQe(),HQe(),UQe(),WQe(),GQe(),KQe(),qQe(),JQe(),YQe(),XQe(),ZQe(),QQe(),$Qe(),e$e(),t$e(),n$e(),r$e(),i$e(),a$e(),o$e(),s$e(),c$e(),l$e(),u$e(),d$e(),f$e(),p$e(),m$e(),h$e(),g$e(),_$e(),v$e(),y$e(),b$e(),x$e(),S$e(),C$e(),w$e(),T$e(),E$e(),D$e(),O$e(),k$e(),A$e(),j$e(),M$e(),N$e(),P$e(),F$e(),I$e(),L$e(),R$e(),z$e(),B$e(),V$e(),H$e(),U$e(),W$e(),G$e(),K$e(),q$e(),J$e(),Y$e(),X$e(),Z$e(),Q$e(),$$e(),e1e(),t1e(),n1e(),r1e(),i1e(),a1e(),o1e(),s1e(),c1e(),l1e(),u1e(),d1e(),f1e(),p1e(),m1e(),h1e(),g1e(),_1e(),v1e(),y1e(),b1e(),x1e(),S1e(),C1e(),w1e(),T1e(),E1e(),D1e(),O1e(),k1e(),A1e(),j1e(),M1e(),N1e(),P1e(),F1e(),I1e(),L1e(),R1e(),z1e(),B1e(),V1e(),H1e(),U1e(),W1e(),G1e(),K1e(),q1e(),J1e(),Y1e(),X1e(),Z1e(),Q1e(),$1e(),e0e(),t0e(),n0e(),r0e(),i0e(),a0e(),o0e(),s0e(),c0e(),l0e(),u0e(),d0e(),f0e(),p0e(),m0e(),h0e(),g0e(),_0e(),v0e(),y0e(),b0e(),x0e(),S0e(),C0e(),w0e(),T0e(),E0e(),D0e(),O0e(),k0e(),A0e(),j0e(),M0e(),N0e(),P0e(),F0e(),I0e(),L0e(),R0e(),z0e(),B0e(),V0e(),H0e(),U0e(),W0e(),G0e(),K0e(),q0e(),J0e(),Y0e(),X0e(),Z0e(),Q0e(),$0e(),e2e(),t2e(),n2e(),r2e(),i2e(),a2e(),o2e(),s2e(),c2e(),l2e(),u2e(),d2e(),f2e(),p2e(),m2e(),h2e(),g2e(),_2e(),v2e(),y2e(),b2e(),x2e(),S2e(),C2e(),w2e(),T2e(),E2e(),D2e(),O2e(),k2e(),A2e(),j2e(),M2e(),N2e(),P2e(),F2e(),I2e(),L2e(),R2e(),z2e(),B2e(),V2e(),H2e(),U2e(),W2e(),G2e(),K2e(),q2e(),J2e(),Y2e(),X2e(),Z2e(),Q2e(),$2e(),e4e(),t4e(),n4e(),r4e(),i4e(),a4e(),o4e(),s4e(),c4e(),l4e(),u4e(),d4e(),f4e(),p4e(),m4e(),h4e(),g4e(),_4e(),v4e(),y4e(),b4e(),x4e(),S4e(),C4e(),w4e(),T4e(),E4e(),D4e(),O4e(),k4e(),A4e(),j4e(),M4e(),N4e(),P4e(),F4e(),I4e(),L4e(),R4e(),z4e(),B4e(),V4e(),H4e(),U4e(),W4e(),G4e(),K4e(),q4e(),J4e(),Y4e(),X4e(),Z4e(),Q4e(),$4e(),e3e(),t3e(),n3e(),r3e(),i3e(),a3e(),o3e(),s3e(),c3e(),l3e(),u3e(),d3e(),f3e(),p3e(),m3e(),h3e(),g3e(),_3e(),v3e(),y3e(),b3e(),x3e(),S3e(),C3e(),w3e(),T3e(),E3e(),D3e(),O3e(),k3e(),A3e(),j3e(),M3e(),N3e(),P3e(),F3e(),I3e(),L3e(),R3e(),z3e(),B3e(),V3e(),H3e(),U3e(),W3e(),G3e(),K3e(),q3e(),J3e(),Y3e(),X3e(),Z3e(),Q3e(),$3e(),e6e(),t6e(),n6e(),r6e(),i6e(),a6e(),o6e(),s6e(),c6e(),l6e(),u6e(),d6e(),f6e(),p6e(),m6e(),h6e(),g6e(),_6e(),v6e(),y6e(),b6e(),x6e(),S6e(),C6e(),w6e(),T6e(),E6e(),D6e(),O6e(),k6e(),A6e(),j6e(),M6e(),N6e(),P6e(),F6e(),I6e(),L6e(),R6e(),z6e(),B6e(),V6e(),H6e(),U6e(),W6e(),G6e(),K6e(),q6e(),J6e(),Y6e(),X6e(),Z6e(),Q6e(),$6e(),e8e(),t8e(),n8e(),r8e(),i8e(),a8e(),o8e(),s8e(),c8e(),l8e(),u8e(),d8e(),f8e(),p8e(),m8e(),h8e(),g8e(),_8e(),v8e(),y8e(),b8e(),x8e(),S8e(),C8e(),w8e(),T8e(),E8e(),D8e(),O8e(),k8e(),A8e(),j8e(),M8e(),N8e(),P8e(),F8e(),I8e(),L8e(),R8e(),z8e(),B8e(),V8e(),H8e(),U8e(),W8e(),G8e(),K8e(),q8e(),J8e(),Y8e(),X8e(),Z8e(),Q8e(),$8e(),e5e(),t5e(),n5e(),r5e(),i5e(),a5e(),o5e(),s5e(),c5e(),l5e(),u5e(),d5e(),f5e(),p5e(),m5e(),h5e(),g5e(),_5e(),v5e(),y5e(),b5e(),x5e(),S5e(),C5e(),w5e(),T5e(),E5e(),D5e(),O5e(),k5e(),A5e(),j5e(),M5e(),N5e(),P5e(),F5e(),I5e(),L5e(),R5e(),z5e(),B5e(),V5e(),H5e(),U5e(),W5e(),G5e(),K5e(),q5e(),J5e(),Y5e(),X5e(),Z5e(),Q5e(),$5e(),e7e(),t7e(),n7e(),r7e(),i7e(),a7e(),o7e(),s7e(),c7e(),l7e(),u7e(),d7e(),f7e(),p7e(),m7e(),h7e(),g7e(),_7e(),v7e(),y7e(),b7e(),x7e(),S7e(),C7e(),w7e(),T7e(),E7e(),D7e(),O7e(),k7e(),A7e(),j7e(),M7e(),N7e(),P7e(),F7e(),I7e(),L7e(),R7e(),z7e(),B7e(),V7e(),H7e(),U7e(),W7e(),G7e(),K7e(),q7e(),J7e(),Y7e(),X7e(),Z7e(),Q7e(),$7e(),e9e(),t9e(),n9e(),r9e(),i9e(),a9e(),o9e(),s9e(),c9e(),l9e(),u9e(),d9e(),f9e(),p9e(),m9e(),h9e(),g9e(),_9e(),v9e(),y9e(),b9e(),x9e(),S9e(),C9e(),w9e(),T9e(),E9e(),D9e(),O9e(),k9e(),A9e(),j9e(),M9e(),N9e(),P9e(),F9e(),I9e(),L9e(),R9e(),z9e(),B9e(),V9e(),H9e(),U9e(),W9e(),G9e(),K9e(),q9e(),J9e(),Y9e(),X9e(),Z9e(),Q9e(),$9e(),eet(),tet(),net(),ret(),iet(),aet(),oet(),set(),cet(),uet(),det(),fet(),pet(),met(),het(),get(),_et(),vet(),yet(),bet(),xet(),Cet(),wet(),Tet(),Eet(),Det(),Oet(),ket(),Aet(),jet(),Met(),Net(),Pet(),Fet(),Iet(),Let(),Ret(),zet(),Bet(),Vet(),Het(),Uet(),Wet(),Get(),Ket(),qet(),Jet(),Yet(),Xet(),Zet(),Qet(),$et(),ett(),ttt(),ntt(),KU(),rtt(),itt(),att(),ott(),stt(),ctt(),ltt(),utt(),dtt(),ftt(),ptt(),mtt(),htt(),gtt(),_tt(),vtt(),ytt(),btt(),xtt(),Stt(),Ctt(),wtt(),Ttt(),Ett(),Dtt(),Ott(),ktt(),Att(),jtt(),Mtt(),Ntt(),Ptt(),Ftt(),Itt(),Ltt(),Rtt(),ztt(),Btt(),Vtt(),Htt(),Utt(),Wtt(),Gtt(),Ktt(),qtt(),Jtt(),Ytt(),Xtt(),Ztt(),Qtt(),$tt(),ent(),tnt(),nnt(),rnt(),int(),ant(),ont(),snt(),cnt(),lnt(),unt(),dnt(),fnt(),pnt(),mnt(),hnt(),gnt(),_nt(),vnt(),ynt(),bnt(),xnt(),Snt(),Cnt(),wnt(),Tnt(),Ent(),Dnt(),Ont(),knt(),Ant(),jnt(),Mnt(),Nnt(),Pnt(),Fnt(),Int(),Lnt(),Rnt(),znt(),Bnt(),Vnt(),Hnt(),Unt(),Wnt(),Gnt(),Knt(),qnt(),Jnt(),Ynt(),Xnt(),Znt(),Qnt(),$nt(),ert(),trt(),nrt(),rrt(),irt()})),JU,YU,XU=O((()=>{qU(),JU={class:`wt-call-media-action__option`},YU=(0,t.defineComponent)({__name:`wt-call-media-action`,props:{files:{},playingFileId:{default:``}},emits:[`play`,`stop`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.computed)(()=>[...r.files[VU.FileTypeAudio]||[],...r.files[VU.FileTypeVideo]||[]]),o=(0,t.computed)(()=>r.files[VU.FileTypeVideo]?`preview-tag-video`:`play`),s=(0,t.computed)(()=>a.value.some(e=>e.id===r.playingFileId)),c=(0,t.computed)(()=>a.value.map(({name:e,id:t,mimeType:n,type:r})=>({text:e,id:t,mimeType:n,type:r,icon:n===`video/mp4`?`preview-tag-video`:`preview-tag-audio`}))),l=({option:e})=>{r.playingFileId===e.id?i(`stop`):i(`play`,e)};return(n,r)=>{let i=(0,t.resolveComponent)(`wt-icon-btn`),u=(0,t.resolveComponent)(`wt-icon`),d=(0,t.resolveComponent)(`wt-context-menu`);return(0,t.openBlock)(),(0,t.createBlock)(d,{class:`wt-call-media-action`,options:c.value,"max-width":`400px`,onClick:l},{activator:(0,t.withCtx)(({toggle:e})=>[a.value.length?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,icon:s.value?`stop`:o.value,onClick:e},null,8,[`icon`,`onClick`])):(0,t.createCommentVNode)(``,!0)]),option:(0,t.withCtx)(({text:n,id:r,icon:i})=>[(0,t.createElementVNode)(`div`,JU,[(0,t.createVNode)(u,{icon:r===e.playingFileId?`stop`:i},null,8,[`icon`]),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(n),1)])]),_:1},8,[`options`])}}})})),art=O((()=>{})),ort=A({default:()=>ZU}),ZU,srt=O((()=>{XU(),XU(),art(),R(),ZU=L(YU,[[`__scopeId`,`data-v-a6f7b638`]])}));function QU(e){if(typeof e!=`string`||!e)throw Error(`expected a non-empty string, got: `+e)}function $U(e){if(typeof e!=`number`)throw Error(`expected a number, got: `+e)}function crt(e,t){let n=new Set,r=[];for(let i of e){let e=t(i);n.has(e)||(n.add(e),r.push(i))}return r}function eW(e){return crt(e,e=>e.unicode)}function lrt(e){function t(t,n,r){let i=n?e.createObjectStore(t,{keyPath:n}):e.createObjectStore(t);if(r)for(let[e,[t,n]]of Object.entries(r))i.createIndex(e,t,{multiEntry:n});return i}t(CW),t(SW,DW,{[EW]:[TW,!0],[jW]:[[kW,AW]],[LW]:[RW,!0]}),t(wW,void 0,{[OW]:[``]})}function tW(e,t,n){n.onerror=()=>t(n.error),n.onblocked=()=>t(Error(`IDB blocked`)),n.onsuccess=()=>e(n.result)}async function urt(e){let t=await new Promise((t,n)=>{let r=indexedDB.open(e,bW);VW[e]=r,r.onupgradeneeded=e=>{e.oldVersion<xW&&lrt(r.result)},tW(t,n,r)});return t.onclose=()=>rW(e),t}function drt(e){return HW[e]||(HW[e]=urt(e)),HW[e]}function nW(e,t,n,r){return new Promise((i,a)=>{let o=e.transaction(t,n,{durability:`relaxed`}),s=typeof t==`string`?o.objectStore(t):t.map(e=>o.objectStore(e)),c;r(s,o,e=>{c=e}),o.oncomplete=()=>i(c),o.onerror=()=>a(o.error)})}function rW(e){let t=VW[e],n=t&&t.result;if(n){n.close();let t=UW[e];if(t)for(let e of t)e()}delete VW[e],delete HW[e],delete UW[e]}function frt(e){return new Promise((t,n)=>{rW(e),tW(t,n,indexedDB.deleteDatabase(e))})}function prt(e,t){let n=UW[e];n||=UW[e]=[],n.push(t)}function iW(e){return e.split(/[\s_]+/).map(e=>!e.match(/\w/)||WW.has(e)?e.toLowerCase():e.replace(/[)(:,]/g,``).replace(/’/g,`'`).toLowerCase()).filter(Boolean)}function aW(e){return e.filter(Boolean).map(e=>e.toLowerCase()).filter(e=>e.length>=GW)}function mrt(e){return e.map(({annotation:e,emoticon:t,group:n,order:r,shortcodes:i,skins:a,tags:o,emoji:s,version:c})=>{let l={annotation:e,group:n,order:r,tags:o,tokens:[...new Set(aW([...(i||[]).map(iW).flat(),...(o||[]).map(iW).flat(),...iW(e),t]))].sort(),unicode:s,version:c};if(t&&(l.emoticon=t),i&&(l.shortcodes=i),a){l.skinTones=[],l.skinUnicodes=[],l.skinVersions=[];for(let{tone:e,emoji:t,version:n}of a)l.skinTones.push(e),l.skinUnicodes.push(t),l.skinVersions.push(n)}return l})}function oW(e,t,n,r){e[t](n).onsuccess=e=>r&&r(e.target.result)}function sW(e,t,n){oW(e,`get`,t,n)}function cW(e,t,n){oW(e,`getAll`,t,n)}function lW(e){e.commit&&e.commit()}function hrt(e,t){let n=e[0];for(let r=1;r<e.length;r++){let i=e[r];t(n)>t(i)&&(n=i)}return n}function uW(e,t){let n=hrt(e,e=>e.length),r=[];for(let i of n)e.some(e=>e.findIndex(e=>t(e)===t(i))===-1)||r.push(i);return r}async function grt(e){return!await pW(e,CW,NW)}async function _rt(e,t,n){let[r,i]=await Promise.all([MW,NW].map(t=>pW(e,CW,t)));return r===n&&i===t}async function vrt(e,t){return nW(e,SW,FW,(e,n,r)=>{let i,a=()=>{e.getAll(i&&IDBKeyRange.lowerBound(i,!0),50).onsuccess=e=>{let n=e.target.result;for(let e of n)if(i=e.unicode,t(e))return r(e);if(n.length<50)return r();a()}};a()})}async function dW(e,t,n,r){try{let i=mrt(t);await nW(e,[SW,CW],IW,([e,t],a)=>{let o,s,c=0;function l(){++c===2&&u()}function u(){if(!(o===r&&s===n)){e.clear();for(let t of i)e.put(t);t.put(r,MW),t.put(n,NW),lW(a)}}sW(t,MW,e=>{o=e,l()}),sW(t,NW,e=>{s=e,l()})})}finally{}}async function yrt(e,t){return nW(e,SW,FW,(e,n,r)=>{let i=IDBKeyRange.bound([t,0],[t+1,0],!1,!0);cW(e.index(jW),i,r)})}async function fW(e,t){let n=aW(iW(t));return n.length?nW(e,SW,FW,(e,t,r)=>{let i=[],a=()=>{i.length===n.length&&o()},o=()=>{r(uW(i,e=>e.unicode).sort((e,t)=>e.order<t.order?-1:1))};for(let t=0;t<n.length;t++){let r=n[t],o=t===n.length-1?IDBKeyRange.bound(r,r+`￿`,!1,!0):IDBKeyRange.only(r);cW(e.index(EW),o,e=>{i.push(e),a()})}}):[]}async function brt(e,t){let n=await fW(e,t);return n.length?n.filter(e=>(e.shortcodes||[]).map(e=>e.toLowerCase()).includes(t.toLowerCase()))[0]||null:await vrt(e,e=>(e.shortcodes||[]).includes(t.toLowerCase()))||null}async function xrt(e,t){return nW(e,SW,FW,(e,n,r)=>sW(e,t,n=>{if(n)return r(n);sW(e.index(LW),t,e=>r(e||null))}))}function pW(e,t,n){return nW(e,t,FW,(e,t,r)=>sW(e,n,r))}function Srt(e,t,n,r){return nW(e,t,IW,(e,t)=>{e.put(r,n),lW(t)})}function Crt(e,t){return nW(e,wW,IW,(e,n)=>sW(e,t,r=>{e.put((r||0)+1,t),lW(n)}))}function wrt(e,t,n){return n===0?[]:nW(e,[wW,SW],FW,([e,r],i,a)=>{let o=[];e.index(OW).openCursor(void 0,`prev`).onsuccess=e=>{let i=e.target.result;if(!i)return a(o);function s(e){if(o.push(e),o.length===n)return a(o);i.continue()}let c=i.primaryKey,l=t.byName(c);if(l)return s(l);sW(r,c,e=>{if(e)return s(e);i.continue()})}})}function Trt(e,t){let n=new Map;for(let r of e){let e=t(r);for(let t of e){let e=n;for(let n=0;n<t.length;n++){let r=t.charAt(n),i=e.get(r);i||(i=new Map,e.set(r,i)),e=i}let i=e.get(KW);i||(i=[],e.set(KW,i)),i.push(r)}}return(e,t)=>{let r=n;for(let t=0;t<e.length;t++){let n=e.charAt(t),i=r.get(n);if(i)r=i;else return[]}if(t)return r.get(KW)||[];let i=[],a=[r];for(;a.length;){let e=[...a.shift().entries()].sort((e,t)=>e[0]<t[0]?-1:1);for(let[t,n]of e)t===KW?i.push(...n):a.push(n)}return i}}function Ert(e){let t=e&&Array.isArray(e),n=t&&e.length&&(!e[0]||qW.some(t=>!(t in e[0])));if(!t||n)throw Error(`Custom emojis are in the wrong format`)}function mW(e){Ert(e);let t=(e,t)=>e.name.toLowerCase()<t.name.toLowerCase()?-1:1,n=e.sort(t),r=Trt(e,e=>{let t=new Set;if(e.shortcodes)for(let n of e.shortcodes)for(let e of iW(n))t.add(e);return t}),i=e=>r(e,!0),a=e=>r(e,!1),o=e=>{let n=iW(e);return uW(n.map((e,t)=>(t<n.length-1?i:a)(e)),e=>e.name).sort(t)},s=new Map,c=new Map;for(let t of e){c.set(t.name.toLowerCase(),t);for(let e of t.shortcodes||[])s.set(e.toLowerCase(),t)}return{all:n,search:o,byShortcode:e=>s.get(e.toLowerCase()),byName:e=>c.get(e.toLowerCase())}}function hW(e){if(!e)return e;if(JW&&(e=structuredClone(e)),delete e.tokens,e.skinTones){let t=e.skinTones.length;e.skins=Array(t);for(let n=0;n<t;n++)e.skins[n]={tone:e.skinTones[n],unicode:e.skinUnicodes[n],version:e.skinVersions[n]};delete e.skinTones,delete e.skinUnicodes,delete e.skinVersions}return e}function gW(e){e||console.warn(`emoji-picker-element is more efficient if the dataSource server exposes an ETag header.`)}function Drt(e){if(!e||!Array.isArray(e)||!e[0]||typeof e[0]!=`object`||YW.some(t=>!(t in e[0])))throw Error(`Emoji data is in the wrong format`)}function _W(e,t){if(Math.floor(e.status/100)!==2)throw Error(`Failed to fetch: `+t+`: `+e.status)}async function Ort(e){let t=await fetch(e,{method:`HEAD`});_W(t,e);let n=t.headers.get(`etag`);return gW(n),n}async function vW(e){let t=await fetch(e);_W(t,e);let n=t.headers.get(`etag`);gW(n);let r=await t.json();return Drt(r),[n,r]}function krt(e){for(var t=``,n=new Uint8Array(e),r=n.byteLength,i=-1;++i<r;)t+=String.fromCharCode(n[i]);return t}function Art(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=-1;++i<t;)r[i]=e.charCodeAt(i);return n}async function yW(e){let t=Art(JSON.stringify(e)),n=krt(await crypto.subtle.digest(`SHA-1`,t));return btoa(n)}async function jrt(e,t){let n,r=await Ort(t);if(!r){let e=await vW(t);r=e[0],n=e[1],r||=await yW(n)}await _rt(e,t,r)||(n||=(await vW(t))[1],await dW(e,n,t,r))}async function Mrt(e,t){let[n,r]=await vW(t);n||=await yW(r),await dW(e,r,t,n)}async function Nrt(e,t){try{await jrt(e,t)}catch(e){if(e.name!==`InvalidStateError`)throw e}}var bW,xW,SW,CW,wW,TW,EW,DW,OW,kW,AW,jW,MW,NW,PW,FW,IW,LW,RW,zW,BW,VW,HW,UW,WW,GW,KW,qW,JW,YW,XW,Prt=O((()=>{bW=1,xW=1,SW=`emoji`,CW=`keyvalue`,wW=`favorites`,TW=`tokens`,EW=`tokens`,DW=`unicode`,OW=`count`,kW=`group`,AW=`order`,jW=`group-order`,MW=`eTag`,NW=`url`,PW=`skinTone`,FW=`readonly`,IW=`readwrite`,LW=`skinUnicodes`,RW=`skinUnicodes`,zW=`https://cdn.jsdelivr.net/npm/emoji-picker-element-data@^1/en/emojibase/data.json`,BW=`en`,VW={},HW={},UW={},WW=new Set(`:D.XD.:'D.O:).:X.:P.;P.XP.:L.:Z.:j.8D.XO.8).:B.:O.:S.:'o.Dx.X(.D:.:C.>0).:3.</3.<3.\\M/.:E.8#`.split(`.`)),GW=2,KW=``,qW=[`name`,`url`],JW=typeof wrappedJSObject<`u`,YW=[`annotation`,`emoji`,`group`,`order`,`version`],XW=class{constructor({dataSource:e=zW,locale:t=BW,customEmoji:n=[]}={}){this.dataSource=e,this.locale=t,this._dbName=`emoji-picker-element-${this.locale}`,this._db=void 0,this._lazyUpdate=void 0,this._custom=mW(n),this._clear=this._clear.bind(this),this._ready=this._init()}async _init(){let e=this._db=await drt(this._dbName);prt(this._dbName,this._clear);let t=this.dataSource;await grt(e)?await Mrt(e,t):this._lazyUpdate=Nrt(e,t)}async ready(){let e=async()=>(this._ready||=this._init(),this._ready);await e(),this._db||await e()}async getEmojiByGroup(e){return $U(e),await this.ready(),eW(await yrt(this._db,e)).map(hW)}async getEmojiBySearchQuery(e){QU(e),await this.ready();let t=this._custom.search(e),n=eW(await fW(this._db,e)).map(hW);return[...t,...n]}async getEmojiByShortcode(e){return QU(e),await this.ready(),this._custom.byShortcode(e)||hW(await brt(this._db,e))}async getEmojiByUnicodeOrName(e){return QU(e),await this.ready(),this._custom.byName(e)||hW(await xrt(this._db,e))}async getPreferredSkinTone(){return await this.ready(),await pW(this._db,CW,PW)||0}async setPreferredSkinTone(e){return $U(e),await this.ready(),Srt(this._db,CW,PW,e)}async incrementFavoriteEmojiCount(e){return QU(e),await this.ready(),Crt(this._db,e)}async getTopFavoriteEmoji(e){return $U(e),await this.ready(),(await wrt(this._db,this._custom,e)).map(hW)}set customEmoji(e){this._custom=mW(e)}get customEmoji(){return this._custom.all}async _shutdown(){await this.ready();try{await this._lazyUpdate}catch{}}_clear(){this._db=this._ready=this._lazyUpdate=void 0}async close(){await this._shutdown(),await rW(this._dbName)}async delete(){await this._shutdown(),await frt(this._dbName)}}}));function ZW(e){return e.unicode.includes(`‍`)}function Frt(e){let t=bG(e,`#000`),n=bG(e,`#fff`);return t&&n&&xG(t,n)}function Irt(){let e=Object.entries(pG);try{for(let[t,n]of e)if(Frt(t))return n}catch{}return e[0][1]}function Lrt(e,t){if(t===0)return e;let n=e.indexOf(DG);return n===-1?(e.endsWith(TG)&&(e=e.substring(0,e.length-1)),e+EG+String.fromCodePoint(kG+t-1)):e.substring(0,n)+String.fromCodePoint(OG+t-1)+e.substring(n)}function QW(e){e.preventDefault(),e.stopPropagation()}function $W(e,t,n){return t+=e?-1:1,t<0?t=n.length-1:t>=n.length&&(t=0),t}function eG(e,t){let n=new Set,r=[];for(let i of e){let e=t(i);n.has(e)||(n.add(e),r.push(i))}return r}function Rrt(e,t){let n=e=>{let n={};for(let r of e)typeof r.tone==`number`&&r.version<=t&&(n[r.tone]=r.unicode);return n};return e.map(({unicode:e,skins:t,shortcodes:r,url:i,name:a,category:o,annotation:s})=>({unicode:e,name:a,shortcodes:r,url:i,category:o,annotation:s,id:e||a,skins:t&&n(t)}))}function zrt(e,t,n){let r;jG?(r=new ResizeObserver(n),r.observe(e)):AG(n),t.addEventListener(`abort`,()=>{r&&r.disconnect()})}function tG(e){{let t=document.createRange();return t.selectNode(e.firstChild),t.getBoundingClientRect().width}}function nG(e,t,n){let r=tG(t);if(!r){if(!PG){PG=n.cloneNode(!0);let e=getComputedStyle(n);for(let t of[`font-family`,`line-height`,`width`,`height`,`font-size`,`display`,`align-items`,`justify-content`])PG.style.setProperty(t,e.getPropertyValue(t),`important`)}try{return document.body.appendChild(PG),PG.firstChild.nodeValue=e,tG(PG)}finally{PG.remove()}}return r}function Brt(e,t,n){let r=!0;for(let i of e){let e=n(i);if(!e)continue;NG===void 0&&(NG=nG(MG,t,t));let a=nG(i.unicode,e,t)/1.8<NG;wG.set(i.unicode,a),a||(r=!1)}return r}function Vrt(e){return eG(e,e=>e)}function Hrt(e){e&&(e.scrollTop=0)}function rG(e,t,n){let r=e.get(t);return r||(r=n(),e.set(t,r)),r}function iG(e){return``+e}function Urt(e){let t=document.createElement(`template`);return t.innerHTML=e,t}function Wrt(e,t){RG?e.replaceChildren(...t):(e.innerHTML=``,e.append(...t))}function Grt(e,t){let n=e.firstChild,r=0;for(;n;){if(t[r]!==n)return!0;n=n.nextSibling,r++}return r!==t.length}function Krt(e,t){let{targetNode:n}=t,{targetParentNode:r}=t,i=!1;r?i=Grt(r,e):(i=!0,t.targetNode=void 0,t.targetParentNode=r=n.parentNode),i&&Wrt(r,e)}function qrt(e,t){for(let n of t){let{targetNode:t,currentExpression:r,binding:{expressionIndex:i,attributeName:a,attributeValuePre:o,attributeValuePost:s}}=n,c=e[i];if(r!==c)if(n.currentExpression=c,a)if(c===null)t.removeAttribute(a);else{let e=o+iG(c)+s;t.setAttribute(a,e)}else{let e;Array.isArray(c)?Krt(c,n):c instanceof Element?(e=c,t.replaceWith(e)):t.nodeValue=iG(c),e&&(n.targetNode=e)}}}function Jrt(e){let t=``,n=!1,r=!1,i=-1,a=new Map,o=[],s=0;for(let c=0,l=e.length;c<l;c++){let u=e[c];if(t+=u.slice(s),c===l-1)break;for(let e=0;e<u.length;e++)switch(u.charAt(e)){case`<`:u.charAt(e+1)===`/`?o.pop():(n=!0,o.push(++i));break;case`>`:n=!1,r=!1;break;case`=`:r=!0;break}let d=o[o.length-1],f=rG(a,d,()=>[]),p,m,h;if(r){let n=/(\S+)="?([^"=]*)$/.exec(u);p=n[1],m=n[2];let r=/^([^">]*)("?)/.exec(e[c+1]);h=r[1],t=t.slice(0,-1*n[0].length),s=r[0].length}else s=0;let g={attributeName:p,attributeValuePre:m,attributeValuePost:h,expressionIndex:c};f.push(g),!n&&!r&&(t+=` `)}return{template:Urt(t),elementsToBindings:a}}function aG(e,t,n){for(let r=0;r<e.length;r++){let i=e[r],a={binding:i,targetNode:i.attributeName?t:t.firstChild,targetParentNode:void 0,currentExpression:void 0};n.push(a)}}function Yrt(e,t){let n=[],r;if(t.size===1&&(r=t.get(0)))aG(r,e,n);else{let r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),i=e,a=-1;do{let e=t.get(++a);e&&aG(e,i,n)}while(i=r.nextNode())}return n}function Xrt(e){let{template:t,elementsToBindings:n}=rG(FG,e,()=>Jrt(e)),r=t.cloneNode(!0).content.firstElementChild,i=Yrt(r,n);return function(e){return qrt(e,i),r}}function Zrt(e){let t=rG(IG,e,()=>new Map),n=LG;function r(e,...r){return rG(rG(t,e,()=>new Map),n,()=>Xrt(e))(r)}function i(e,t,r){return e.map((e,i)=>{let a=n;n=r(e);try{return t(e,i)}finally{n=a}})}return{map:i,html:r}}function Qrt(e,t,n,r,i,a,o,s,c){let{labelWithSkin:l,titleForEmoji:u,unicodeWithSkin:d}=n,{html:f,map:p}=Zrt(t);function m(e,n,r){return p(e,(e,i)=>f`<button role="${n?`option`:`menuitem`}" aria-selected="${n?i===t.activeSearchItem:null}" aria-label="${l(e,t.currentSkinTone)}" title="${u(e)}" class="${`emoji`+(n&&i===t.activeSearchItem?` active`:``)+(e.unicode?``:` custom-emoji`)}" id="${`${r}-${e.id}`}" style="${e.unicode?null:`--custom-emoji-background: url(${JSON.stringify(e.url)})`}">${e.unicode?d(e,t.currentSkinTone):``}</button>`,e=>`${r}-${e.id}`)}let h=f`<section data-ref="rootElement" class="picker" aria-label="${t.i18n.regionLabel}" style="${t.pickerStyle||``}"><div class="pad-top"></div><div class="search-row"><div class="search-wrapper"><input id="search" class="search" type="search" role="combobox" enterkeyhint="search" placeholder="${t.i18n.searchLabel}" autocapitalize="none" autocomplete="off" spellcheck="true" aria-expanded="${!!(t.searchMode&&t.currentEmojis.length)}" aria-controls="search-results" aria-describedby="search-description" aria-autocomplete="list" aria-activedescendant="${t.activeSearchItemId?`emo-${t.activeSearchItemId}`:null}" data-ref="searchElement" data-on-input="onSearchInput" data-on-keydown="onSearchKeydown"><label class="sr-only" for="search">${t.i18n.searchLabel}</label> <span id="search-description" class="sr-only">${t.i18n.searchDescription}</span></div><div class="skintone-button-wrapper ${t.skinTonePickerExpandedAfterAnimation?`expanded`:``}"><button id="skintone-button" class="emoji ${t.skinTonePickerExpanded?`hide-focus`:``}" aria-label="${t.skinToneButtonLabel}" title="${t.skinToneButtonLabel}" aria-describedby="skintone-description" aria-haspopup="listbox" aria-expanded="${t.skinTonePickerExpanded}" aria-controls="skintone-list" data-on-click="onClickSkinToneButton">${t.skinToneButtonText||``}</button></div><span id="skintone-description" class="sr-only">${t.i18n.skinToneDescription}</span><div data-ref="skinToneDropdown" id="skintone-list" class="skintone-list hide-focus ${t.skinTonePickerExpanded?``:`hidden no-animate`}" style="transform:translateY(${t.skinTonePickerExpanded?0:`calc(-1 * var(--num-skintones) * var(--total-emoji-size))`})" role="listbox" aria-label="${t.i18n.skinTonesLabel}" aria-activedescendant="skintone-${t.activeSkinTone}" aria-hidden="${!t.skinTonePickerExpanded}" tabIndex="-1" data-on-focusout="onSkinToneOptionsFocusOut" data-on-click="onSkinToneOptionsClick" data-on-keydown="onSkinToneOptionsKeydown" data-on-keyup="onSkinToneOptionsKeyup">${p(t.skinTones,(e,n)=>f`<div id="skintone-${n}" class="emoji ${n===t.activeSkinTone?`active`:``}" aria-selected="${n===t.activeSkinTone}" role="option" title="${t.i18n.skinTones[n]}" aria-label="${t.i18n.skinTones[n]}">${e}</div>`,e=>e)}</div></div><div class="nav" role="tablist" style="grid-template-columns:repeat(${t.groups.length},1fr)" aria-label="${t.i18n.categoriesLabel}" data-on-keydown="onNavKeydown" data-on-click="onNavClick">${p(t.groups,e=>f`<button role="tab" class="nav-button" aria-controls="tab-${e.id}" aria-label="${t.i18n.categories[e.name]}" aria-selected="${!t.searchMode&&t.currentGroup.id===e.id}" title="${t.i18n.categories[e.name]}" data-group-id="${e.id}"><div class="nav-emoji emoji">${e.emoji}</div></button>`,e=>e.id)}</div><div class="indicator-wrapper"><div class="indicator" style="transform:translateX(${(t.isRtl?-1:1)*t.currentGroupIndex*100}%)"></div></div><div class="message ${t.message?``:`gone`}" role="alert" aria-live="polite">${t.message||``}</div><div data-ref="tabpanelElement" class="tabpanel ${!t.databaseLoaded||t.message?`gone`:``}" role="${t.searchMode?`region`:`tabpanel`}" aria-label="${t.searchMode?t.i18n.searchResultsLabel:t.i18n.categories[t.currentGroup.name]}" id="${t.searchMode?null:`tab-${t.currentGroup.id}`}" tabIndex="0" data-on-click="onEmojiClick"><div data-action="calculateEmojiGridStyle">${p(t.currentEmojisWithCategories,(e,n)=>f`<div><div id="menu-label-${n}" class="category ${t.currentEmojisWithCategories.length===1&&t.currentEmojisWithCategories[0].category===``?`gone`:``}" aria-hidden="true">${t.searchMode?t.i18n.searchResultsLabel:e.category?e.category:t.currentEmojisWithCategories.length>1?t.i18n.categories.custom:t.i18n.categories[t.currentGroup.name]}</div><div class="emoji-menu ${n!==0&&!t.searchMode&&t.currentGroup.id===-1?`visibility-auto`:``}" style="${`--num-rows: ${Math.ceil(e.emojis.length/t.numColumns)}`}" data-action="updateOnIntersection" role="${t.searchMode?`listbox`:`menu`}" aria-labelledby="menu-label-${n}" id="${t.searchMode?`search-results`:null}">${m(e.emojis,t.searchMode,`emo`)}</div></div>`,e=>e.category)}</div></div><div class="favorites onscreen emoji-menu ${t.message?`gone`:``}" role="menu" aria-label="${t.i18n.favoritesLabel}" data-on-click="onEmojiClick">${m(t.currentFavorites,!1,`fav`)}</div><button data-ref="baselineEmoji" aria-hidden="true" tabindex="-1" class="abs-pos hidden emoji baseline-emoji">😀</button></section>`,g=(t,n)=>{for(let r of e.querySelectorAll(`[${t}]`))n(r,r.getAttribute(t))};if(c){e.appendChild(h);for(let e of[`click`,`focusout`,`input`,`keydown`,`keyup`])g(`data-on-${e}`,(t,n)=>{t.addEventListener(e,r[n])});g(`data-ref`,(e,t)=>{a[t]=e}),o.addEventListener(`abort`,()=>{e.removeChild(h)})}g(`data-action`,(e,t)=>{let n=s.get(t);n||s.set(t,n=new WeakSet),n.has(e)||(n.add(e),i[t](e))})}function $rt(e){let t=!1,n,r=new Map,i=new Set,a,o=()=>{if(t)return;let e=[...i];i.clear();try{for(let t of e)t()}finally{a=!1,i.size&&(a=!0,zG(o))}},s=new Proxy({},{get(e,t){if(n){let e=r.get(t);e||(e=new Set,r.set(t,e)),e.add(n)}return e[t]},set(e,t,n){if(e[t]!==n){e[t]=n;let s=r.get(t);if(s){for(let e of s)i.add(e);a||(a=!0,zG(o))}}return!0}});return e.addEventListener(`abort`,()=>{t=!0}),{state:s,createEffect:e=>{let t=()=>{let r=n;n=t;try{return e()}finally{n=r}};return t()}}}function oG(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function eit(e,t,n){{let r=e.closest(`.tabpanel`),i=BG.get(r);i||(i=new IntersectionObserver(n,{root:r,rootMargin:`50% 0px 50% 0px`,threshold:0}),BG.set(r,i),t.addEventListener(`abort`,()=>{i.disconnect()})),i.observe(e)}}function tit(e,t){let n={},r=new AbortController,i=r.signal,{state:a,createEffect:o}=$rt(i),s=new Map;HG(a,{skinToneEmoji:void 0,i18n:void 0,database:void 0,customEmoji:void 0,customCategorySorting:void 0,emojiVersion:void 0}),HG(a,t),HG(a,{initialLoad:!0,currentEmojis:[],currentEmojisWithCategories:[],rawSearchText:``,searchText:``,searchMode:!1,activeSearchItem:-1,message:void 0,skinTonePickerExpanded:!1,skinTonePickerExpandedAfterAnimation:!1,currentSkinTone:0,activeSkinTone:0,skinToneButtonText:void 0,pickerStyle:void 0,skinToneButtonLabel:``,skinTones:[],currentFavorites:[],defaultFavoriteEmojis:void 0,numColumns:gG,isRtl:!1,currentGroupIndex:0,groups:lG,databaseLoaded:!1,activeSearchItemId:void 0}),o(()=>{a.currentGroup!==a.groups[a.currentGroupIndex]&&(a.currentGroup=a.groups[a.currentGroupIndex])});let c=t=>{e.getElementById(t).focus()},l=t=>e.getElementById(`emo-${t.id}`),u=(e,t)=>{n.rootElement.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))},d=(e,t)=>e.id===t.id,f=(e,t)=>{let{category:n,emojis:r}=e,{category:i,emojis:a}=t;return n===i?oG(r,a,d):!1},p=e=>{oG(a.currentEmojis,e,d)||(a.currentEmojis=e)},m=e=>{a.searchMode!==e&&(a.searchMode=e)},h=e=>{oG(a.currentEmojisWithCategories,e,f)||(a.currentEmojisWithCategories=e)},g=(e,t)=>t&&e.skins&&e.skins[t]||e.unicode,_={labelWithSkin:(e,t)=>Vrt([e.name||g(e,t),e.annotation,...e.shortcodes||VG].filter(Boolean)).join(`, `),titleForEmoji:e=>e.annotation||(e.shortcodes||VG).join(`, `),unicodeWithSkin:g},v={onClickSkinToneButton:de,onEmojiClick:le,onNavClick:ae,onNavKeydown:oe,onSearchKeydown:E,onSkinToneOptionsClick:ue,onSkinToneOptionsFocusOut:me,onSkinToneOptionsKeydown:fe,onSkinToneOptionsKeyup:pe,onSearchInput:he},y={calculateEmojiGridStyle:S,updateOnIntersection:C},b=!0;o(()=>{Qrt(e,a,_,v,y,n,i,s,b),b=!1}),a.emojiVersion||CG().then(e=>{e||(a.message=a.i18n.emojiUnsupportedMessage)}),o(()=>{async function e(){let e=!1,t=setTimeout(()=>{e=!0,a.message=a.i18n.loadingMessage},mG);try{await a.database.ready(),a.databaseLoaded=!0}catch(e){console.error(e),a.message=a.i18n.networkErrorMessage}finally{clearTimeout(t),e&&(e=!1,a.message=``)}}a.database&&e()}),o(()=>{a.pickerStyle=`
1433
1433
  --num-groups: ${a.groups.length};
1434
1434
  --indicator-opacity: ${+!a.searchMode};
1435
- --num-skintones: ${dG};`}),o(()=>{a.customEmoji&&a.database&&x()}),o(()=>{a.customEmoji&&a.customEmoji.length?a.groups!==cG&&(a.groups=cG):a.groups!==lG&&(a.currentGroupIndex&&a.currentGroupIndex--,a.groups=lG)}),o(()=>{async function e(){a.databaseLoaded&&(a.currentSkinTone=await a.database.getPreferredSkinTone())}e()}),o(()=>{a.skinTones=Array(dG).fill().map((e,t)=>Lrt(a.skinToneEmoji,t))}),o(()=>{a.skinToneButtonText=a.skinTones[a.currentSkinTone]}),o(()=>{a.skinToneButtonLabel=a.i18n.skinToneLabel.replace(`{skinTone}`,a.i18n.skinTones[a.currentSkinTone])}),o(()=>{async function e(){let{database:e}=a,t=(await Promise.all(_G.map(t=>e.getEmojiByUnicodeOrName(t)))).filter(Boolean);a.defaultFavoriteEmojis=t}a.databaseLoaded&&e()});function x(){let{customEmoji:e,database:t}=a,n=e||VG;t.customEmoji!==n&&(t.customEmoji=n)}o(()=>{async function e(){x();let{database:e,defaultFavoriteEmojis:t,numColumns:n}=a,r=await ne(eG([...await e.getTopFavoriteEmoji(n),...t],e=>e.unicode||e.name).slice(0,n));a.currentFavorites=r}a.databaseLoaded&&a.defaultFavoriteEmojis&&e()});function S(e){zrt(e,i,()=>{{let e=getComputedStyle(n.rootElement),t=parseInt(e.getPropertyValue(`--num-columns`),10),r=e.getPropertyValue(`direction`)===`rtl`;a.numColumns=t,a.isRtl=r}})}function C(e){eit(e,i,e=>{for(let{target:t,isIntersecting:n}of e)t.classList.toggle(`onscreen`,n)})}o(()=>{async function e(){let{searchText:e,currentGroup:t,databaseLoaded:n,customEmoji:r}=a;if(!n)a.currentEmojis=[],a.searchMode=!1;else if(e.length>=uG){let t=await ie(e);a.searchText===e&&(p(t),m(!0))}else{let{id:e}=t;if(e!==-1||r&&r.length){let t=await re(e);a.currentGroup.id===e&&(p(t),m(!1))}}}e()});let w=()=>{AG(()=>Hrt(n.tabpanelElement))};o(()=>{let{currentEmojis:e,emojiVersion:t}=a,n=e.filter(e=>e.unicode).filter(e=>ZW(e)&&!wG.has(e.unicode));if(!t&&n.length)p(e),AG(()=>T(n));else{let n=t?e:e.filter(ee);p(n),w()}});function T(e){Brt(e,n.baselineEmoji,l)?w():a.currentEmojis=[...a.currentEmojis]}function ee(e){return!e.unicode||!ZW(e)||wG.get(e.unicode)}async function te(e){let t=a.emojiVersion||await CG();return e.filter(({version:e})=>!e||e<=t)}async function ne(e){return Rrt(e,a.emojiVersion||await CG())}async function re(e){return ne(await te(e===-1?a.customEmoji:await a.database.getEmojiByGroup(e)))}async function ie(e){return ne(await te(await a.database.getEmojiBySearchQuery(e)))}o(()=>{}),o(()=>{function e(){let{searchMode:e,currentEmojis:t}=a;if(e)return[{category:``,emojis:t}];let n=new Map;for(let e of t){let t=e.category||``,r=n.get(t);r||(r=[],n.set(t,r)),r.push(e)}return[...n.entries()].map(([e,t])=>({category:e,emojis:t})).sort((e,t)=>a.customCategorySorting(e.category,t.category))}let t=e();h(t)}),o(()=>{a.activeSearchItemId=a.activeSearchItem!==-1&&a.currentEmojis[a.activeSearchItem].id}),o(()=>{let{rawSearchText:e}=a;fG(()=>{a.searchText=(e||``).trim(),a.activeSearchItem=-1})});function E(e){if(!a.searchMode||!a.currentEmojis.length)return;let t=t=>{QW(e),a.activeSearchItem=$W(t,a.activeSearchItem,a.currentEmojis)};switch(e.key){case`ArrowDown`:return t(!1);case`ArrowUp`:return t(!0);case`Enter`:if(a.activeSearchItem===-1)a.activeSearchItem=0;else return QW(e),ce(a.currentEmojis[a.activeSearchItem].id)}}function ae(e){let{target:t}=e,r=t.closest(`.nav-button`);if(!r)return;let i=parseInt(r.dataset.groupId,10);n.searchElement.value=``,a.rawSearchText=``,a.searchText=``,a.activeSearchItem=-1,a.currentGroupIndex=a.groups.findIndex(e=>e.id===i)}function oe(e){let{target:t,key:n}=e,r=t=>{t&&(QW(e),t.focus())};switch(n){case`ArrowLeft`:return r(t.previousElementSibling);case`ArrowRight`:return r(t.nextElementSibling);case`Home`:return r(t.parentElement.firstElementChild);case`End`:return r(t.parentElement.lastElementChild)}}async function se(e){let t=await a.database.getEmojiByUnicodeOrName(e),n=[...a.currentEmojis,...a.currentFavorites].find(t=>t.id===e),r=n.unicode&&g(n,a.currentSkinTone);return await a.database.incrementFavoriteEmojiCount(e),{emoji:t,skinTone:a.currentSkinTone,...r&&{unicode:r},...n.name&&{name:n.name}}}async function ce(e){let t=se(e);u(`emoji-click-sync`,t),u(`emoji-click`,await t)}function le(e){let{target:t}=e;t.classList.contains(`emoji`)&&(QW(e),ce(t.id.substring(4)))}function D(e){a.currentSkinTone=e,a.skinTonePickerExpanded=!1,c(`skintone-button`),u(`skin-tone-change`,{skinTone:e}),a.database.setPreferredSkinTone(e)}function ue(e){let{target:{id:t}}=e,n=t&&t.match(/^skintone-(\d)/);n&&(QW(e),D(parseInt(n[1],10)))}function de(e){a.skinTonePickerExpanded=!a.skinTonePickerExpanded,a.activeSkinTone=a.currentSkinTone,a.skinTonePickerExpanded&&(QW(e),AG(()=>c(`skintone-list`)))}o(()=>{a.skinTonePickerExpanded?n.skinToneDropdown.addEventListener(`transitionend`,()=>{a.skinTonePickerExpandedAfterAnimation=!0},{once:!0}):a.skinTonePickerExpandedAfterAnimation=!1});function fe(e){if(!a.skinTonePickerExpanded)return;let t=async t=>{QW(e),a.activeSkinTone=t};switch(e.key){case`ArrowUp`:return t($W(!0,a.activeSkinTone,a.skinTones));case`ArrowDown`:return t($W(!1,a.activeSkinTone,a.skinTones));case`Home`:return t(0);case`End`:return t(a.skinTones.length-1);case`Enter`:return QW(e),D(a.activeSkinTone);case`Escape`:return QW(e),a.skinTonePickerExpanded=!1,c(`skintone-button`)}}function pe(e){if(a.skinTonePickerExpanded)switch(e.key){case` `:return QW(e),D(a.activeSkinTone)}}async function me(e){let{relatedTarget:t}=e;(!t||t.id!==`skintone-list`)&&(a.skinTonePickerExpanded=!1)}function he(e){a.rawSearchText=e.target.value}return{$set(e){HG(a,e)},$destroy(){r.abort()}}}function sG(e){e instanceof YG||Object.setPrototypeOf(e,customElements.get(e.tagName.toLowerCase()).prototype)}var cG,lG,uG,dG,fG,pG,mG,hG,gG,_G,vG,yG,bG,xG,SG,CG,wG,TG,EG,DG,OG,kG,AG,jG,MG,NG,PG,FG,IG,LG,RG,zG,BG,VG,HG,UG,WG,GG,KG,qG,JG,YG,XG,nit=O((()=>{Prt(),cG=[[-1,`✨`,`custom`],[0,`😀`,`smileys-emotion`],[1,`👋`,`people-body`],[3,`🐱`,`animals-nature`],[4,`🍎`,`food-drink`],[5,`🏠️`,`travel-places`],[6,`⚽`,`activities`],[7,`📝`,`objects`],[8,`⛔️`,`symbols`],[9,`🏁`,`flags`]].map(([e,t,n])=>({id:e,emoji:t,name:n})),lG=cG.slice(1),uG=2,dG=6,fG=typeof requestIdleCallback==`function`?requestIdleCallback:setTimeout,pG={"🫪":17,"🫩":16,"🫨":15.1,"🫠":14,"🥲":13.1,"🥻":12.1,"🥰":11,"🤩":5,"👱‍♀️":4,"🤣":3,"👁️‍🗨️":2,"😀":1,"😐️":.7,"😃":.6},mG=1e3,hG=`🖐️`,gG=8,_G=[`😊`,`😒`,`❤️`,`👍️`,`😍`,`😂`,`😭`,`☺️`,`😔`,`😩`,`😏`,`💕`,`🙌`,`😘`],vG=`"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif`,yG=(e,t)=>e<t?-1:+(e>t),bG=(e,t)=>{let n=document.createElement(`canvas`);n.width=n.height=1;let r=n.getContext(`2d`,{willReadFrequently:!0});return r.textBaseline=`top`,r.font=`100px ${vG}`,r.fillStyle=t,r.scale(.01,.01),r.fillText(e,0,0),r.getImageData(0,0,1,1).data},xG=(e,t)=>{let n=[...e].join(`,`);return n===[...t].join(`,`)&&!n.startsWith(`0,0,0,`)},CG=()=>(SG||=new Promise(e=>fG(()=>e(Irt()))),SG),wG=new Map,TG=`️`,EG=`\ud83c`,DG=`‍`,OG=127995,kG=57339,AG=requestAnimationFrame,jG=typeof ResizeObserver==`function`,MG=`😀`,FG=new WeakMap,IG=new WeakMap,LG=Symbol(`un-keyed`),RG=`replaceChildren`in Element.prototype,zG=typeof queueMicrotask==`function`?queueMicrotask:e=>Promise.resolve().then(e),BG=new WeakMap,VG=[],{assign:HG}=Object,UG=`https://cdn.jsdelivr.net/npm/emoji-picker-element-data@^1/en/emojibase/data.json`,WG=`en`,GG={categoriesLabel:`Categories`,emojiUnsupportedMessage:`Your browser does not support color emoji.`,favoritesLabel:`Favorites`,loadingMessage:`Loading…`,networkErrorMessage:`Could not load emoji.`,regionLabel:`Emoji picker`,searchDescription:`When search results are available, press up or down to select and enter to choose.`,searchLabel:`Search`,searchResultsLabel:`Search results`,skinToneDescription:`When expanded, press up or down to select and enter to choose.`,skinToneLabel:`Choose a skin tone (currently {skinTone})`,skinTonesLabel:`Skin tones`,skinTones:[`Default`,`Light`,`Medium-Light`,`Medium`,`Medium-Dark`,`Dark`],categories:{custom:`Custom`,"smileys-emotion":`Smileys and emoticons`,"people-body":`People and body`,"animals-nature":`Animals and nature`,"food-drink":`Food and drink`,"travel-places":`Travel and places`,activities:`Activities`,objects:`Objects`,symbols:`Symbols`,flags:`Flags`}},KG=`:host{--emoji-size:1.375rem;--emoji-padding:0.5rem;--category-emoji-size:var(--emoji-size);--category-emoji-padding:var(--emoji-padding);--indicator-height:3px;--input-border-radius:0.5rem;--input-border-size:1px;--input-font-size:1rem;--input-line-height:1.5;--input-padding:0.25rem;--num-columns:8;--outline-size:2px;--border-size:1px;--border-radius:0;--skintone-border-radius:1rem;--category-font-size:1rem;display:flex;width:min-content;height:400px}:host,:host(.light){color-scheme:light;--background:#fff;--border-color:#e0e0e0;--indicator-color:#385ac1;--input-border-color:#999;--input-font-color:#111;--input-placeholder-color:#999;--outline-color:#999;--category-font-color:#111;--button-active-background:#e6e6e6;--button-hover-background:#d9d9d9}:host(.dark){color-scheme:dark;--background:#222;--border-color:#444;--indicator-color:#5373ec;--input-border-color:#ccc;--input-font-color:#efefef;--input-placeholder-color:#ccc;--outline-color:#fff;--category-font-color:#efefef;--button-active-background:#555555;--button-hover-background:#484848}@media (prefers-color-scheme:dark){:host{color-scheme:dark;--background:#222;--border-color:#444;--indicator-color:#5373ec;--input-border-color:#ccc;--input-font-color:#efefef;--input-placeholder-color:#ccc;--outline-color:#fff;--category-font-color:#efefef;--button-active-background:#555555;--button-hover-background:#484848}}:host([hidden]){display:none}button{margin:0;padding:0;border:0;background:0 0;box-shadow:none;-webkit-tap-highlight-color:transparent}button::-moz-focus-inner{border:0}input{padding:0;margin:0;line-height:1.15;font-family:inherit}input[type=search]{-webkit-appearance:none}:focus{outline:var(--outline-color) solid var(--outline-size);outline-offset:calc(-1*var(--outline-size))}:host([data-js-focus-visible]) :focus:not([data-focus-visible-added]){outline:0}:focus:not(:focus-visible){outline:0}.hide-focus{outline:0}*{box-sizing:border-box}.picker{contain:content;display:flex;flex-direction:column;background:var(--background);border:var(--border-size) solid var(--border-color);border-radius:var(--border-radius);width:100%;height:100%;overflow:hidden;--total-emoji-size:calc(var(--emoji-size) + (2 * var(--emoji-padding)));--total-category-emoji-size:calc(var(--category-emoji-size) + (2 * var(--category-emoji-padding)))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.hidden{opacity:0;pointer-events:none}.abs-pos{position:absolute;left:0;top:0}.gone{display:none!important}.skintone-button-wrapper,.skintone-list{background:var(--background);z-index:3}.skintone-button-wrapper.expanded{z-index:1}.skintone-list{position:absolute;inset-inline-end:0;top:0;z-index:2;overflow:visible;border-bottom:var(--border-size) solid var(--border-color);border-radius:0 0 var(--skintone-border-radius) var(--skintone-border-radius);will-change:transform;transition:transform .2s ease-in-out;transform-origin:center 0}@media (prefers-reduced-motion:reduce){.skintone-list{transition-duration:.001s}}@supports not (inset-inline-end:0){.skintone-list{right:0}}.skintone-list.no-animate{transition:none}.tabpanel{overflow-y:auto;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch;will-change:transform;min-height:0;flex:1;contain:content}.emoji-menu{display:grid;grid-template-columns:repeat(var(--num-columns),var(--total-emoji-size));justify-content:space-around;align-items:flex-start;width:100%}.emoji-menu.visibility-auto{content-visibility:auto;contain-intrinsic-size:calc(var(--num-columns)*var(--total-emoji-size)) calc(var(--num-rows)*var(--total-emoji-size))}.category{padding:var(--emoji-padding);font-size:var(--category-font-size);color:var(--category-font-color)}.emoji,button.emoji{font-size:var(--emoji-size);display:flex;align-items:center;justify-content:center;border-radius:100%;height:var(--total-emoji-size);width:var(--total-emoji-size);line-height:1;overflow:hidden;font-family:var(--emoji-font-family);cursor:pointer}@media (hover:hover) and (pointer:fine){.emoji:hover,button.emoji:hover{background:var(--button-hover-background)}}.emoji.active,.emoji:active,button.emoji.active,button.emoji:active{background:var(--button-active-background)}.onscreen .custom-emoji::after{content:"";width:var(--emoji-size);height:var(--emoji-size);background-repeat:no-repeat;background-position:center center;background-size:contain;background-image:var(--custom-emoji-background)}.nav,.nav-button{align-items:center}.nav{display:grid;justify-content:space-between;contain:content}.nav-button{display:flex;justify-content:center}.nav-emoji{font-size:var(--category-emoji-size);width:var(--total-category-emoji-size);height:var(--total-category-emoji-size)}.indicator-wrapper{display:flex;border-bottom:1px solid var(--border-color)}.indicator{width:calc(100%/var(--num-groups));height:var(--indicator-height);opacity:var(--indicator-opacity);background-color:var(--indicator-color);will-change:transform,opacity;transition:opacity .1s linear,transform .25s ease-in-out}@media (prefers-reduced-motion:reduce){.indicator{will-change:opacity;transition:opacity .1s linear}}.pad-top,input.search{background:var(--background);width:100%}.pad-top{height:var(--emoji-padding);z-index:3}.search-row{display:flex;align-items:center;position:relative;padding-inline-start:var(--emoji-padding);padding-bottom:var(--emoji-padding)}.search-wrapper{flex:1;min-width:0}input.search{padding:var(--input-padding);border-radius:var(--input-border-radius);border:var(--input-border-size) solid var(--input-border-color);color:var(--input-font-color);font-size:var(--input-font-size);line-height:var(--input-line-height)}input.search::placeholder{color:var(--input-placeholder-color)}.favorites{overflow-y:auto;scrollbar-gutter:stable;display:flex;flex-direction:row;border-top:var(--border-size) solid var(--border-color);contain:content}.message{padding:var(--emoji-padding)}`,qG=[`customEmoji`,`customCategorySorting`,`database`,`dataSource`,`i18n`,`locale`,`skinToneEmoji`,`emojiVersion`],JG=`:host{--emoji-font-family:${vG}}`,YG=class extends HTMLElement{constructor(e){super(),this.attachShadow({mode:`open`});let t=document.createElement(`style`);t.textContent=KG+JG,this.shadowRoot.appendChild(t),this._ctx={locale:WG,dataSource:UG,skinToneEmoji:hG,customCategorySorting:yG,customEmoji:null,i18n:GG,emojiVersion:null,...e};for(let e of qG)e!==`database`&&Object.prototype.hasOwnProperty.call(this,e)&&(this._ctx[e]=this[e],delete this[e]);this._dbFlush()}connectedCallback(){sG(this),this._cmp||=tit(this.shadowRoot,this._ctx)}disconnectedCallback(){sG(this),zG(()=>{if(!this.isConnected&&this._cmp){this._cmp.$destroy(),this._cmp=void 0;let{database:e}=this._ctx;e.close().catch(e=>console.error(e))}})}static get observedAttributes(){return[`locale`,`data-source`,`skin-tone-emoji`,`emoji-version`]}attributeChangedCallback(e,t,n){this._set(e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),e===`emoji-version`?parseFloat(n):n)}_set(e,t){this._ctx[e]=t,this._cmp&&this._cmp.$set({[e]:t}),[`locale`,`dataSource`].includes(e)&&this._dbFlush()}_dbCreate(){let{locale:e,dataSource:t,database:n}=this._ctx;(!n||n.locale!==e||n.dataSource!==t)&&this._set(`database`,new XW({locale:e,dataSource:t}))}_dbFlush(){zG(()=>this._dbCreate())}},XG={};for(let e of qG)XG[e]={get(){return e===`database`&&this._dbCreate(),this._ctx[e]},set(t){if(e===`database`)throw Error(`database is read-only`);this._set(e,t)}};Object.defineProperties(YG.prototype,XG),customElements.get(`emoji-picker`)||customElements.define(`emoji-picker`,YG)})),rit=O((()=>{})),iit=A({default:()=>$G}),ZG,QG,$G,ait=O((()=>{T9(),Xp(),nit(),By(),rit(),R(),ZG={class:`wt-chat-emoji`},QG={__name:`wt-chat-emoji`,props:{size:{type:String,default:V.MD},popupTeleportTo:{type:String,default:``},filled:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0}},emits:[`insert-emoji`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(null),o=(0,t.ref)(!1),s=(0,t.ref)(null),c=(0,t.computed)(()=>r.popupTeleportTo||`body`),l=(0,t.computed)(()=>r.filled||o.value?`active`:`outlined`),u=async()=>{s.value||(s.value=document.createElement(`emoji-picker`),d(),s.value.addEventListener(`emoji-click`,f))},d=()=>{a.value&&s.value&&a.value.appendChild(s.value)},f=e=>{let{unicode:t}=e.detail;i(`insert-emoji`,t),p()},p=()=>{o.value=!1,s.value&&a.value&&(s.value.removeEventListener(`emoji-click`,f),a.value.removeChild(s.value),s.value=null)},m=e=>{a.value?.contains(e.target)||p()},h=async()=>{g(),o.value=!o.value,o.value?(await(0,t.nextTick)(),await u()):p()},g=()=>wy.$emit(`chat-input-focus`);return(0,t.onBeforeUnmount)(()=>{p()}),(n,r)=>{let i=(0,t.resolveDirective)(`clickaway`);return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ZG,[(0,t.createVNode)((0,t.unref)(uh),{size:e.size,variant:l.value,color:`secondary`,icon:`chat-emoji`,rounded:e.rounded,wide:``,onClick:h},null,8,[`size`,`variant`,`rounded`]),((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{defer:``,disabled:!e.popupTeleportTo,to:c.value},[o.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`emojiPickerWrapper`,ref:a,class:`wt-chat-emoji__wrapper`},null,512)):(0,t.createCommentVNode)(``,!0)],8,[`disabled`,`to`]))])),[[i,m]])}}},$G=L(QG,[[`__scopeId`,`data-v-d6ce560a`]])})),eK,tK,nK,rK,iK=O((()=>{T9(),Sm(),eK={class:`wt-display-chip-items`},tK={key:0},nK=[`onClick`],rK=(0,t.defineComponent)({__name:`wt-display-chip-items`,props:{hideFirstItem:{type:Boolean},useEmptySymbol:{type:Boolean},title:{},items:{}},setup(e){let n=e,r=(0,t.computed)(()=>n.items?.length?n.items[0]?.name:n.useEmptySymbol?`-`:``),i=(0,t.computed)(()=>n.items?.length?n.hideFirstItem?n.items:n.items.slice(1):[]);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,eK,[n.title?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,tK,(0,t.toDisplayString)(e.title)+`:`,1)):(0,t.createCommentVNode)(``,!0),n.hideFirstItem?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(a.$slots,`first-item`,{key:1},()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(bm)(r.value)),1)],!0),(0,t.createVNode)((0,t.unref)(S9),null,{activator:(0,t.withCtx)(({toggle:e})=>[(0,t.renderSlot)(a.$slots,`activator`,{toggle:e},()=>[i.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,onClick:e},[(0,t.createVNode)((0,t.unref)(rb),null,{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)(` +`+(0,t.toDisplayString)(i.value.length),1)],void 0,!0),_:1})],8,nK)):(0,t.createCommentVNode)(``,!0)],!0)]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(a.$slots,`items`,{items:i.value},()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value,({name:e,id:n})=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n},(0,t.toDisplayString)(e),1))),128))],!0)]),_:3})]))}})})),oit=O((()=>{})),sit=A({default:()=>aK}),aK,cit=O((()=>{iK(),iK(),oit(),R(),aK=L(rK,[[`__scopeId`,`data-v-02135394`]])})),lit=O((()=>{})),oK,sK,cK,lK,uit=O((()=>{lit(),R(),oK={class:`nav-menu__category nav-menu-lvl-1`},sK=[`onClick`],cK={__name:`nav-menu-lvl-1`,props:{categories:{type:Array,default:()=>[]},selected:{type:Object,default:()=>({})},icons:{type:Array,default:()=>[]}},emits:[`select`],setup(e,{emit:n}){let r=n;function i(e){r(`select`,e)}return(n,r)=>{let a=(0,t.resolveComponent)(`wt-icon`);return(0,t.openBlock)(),(0,t.createElementBlock)(`ul`,oK,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.categories,(r,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:o,class:`nav-menu__option`},[(0,t.createElementVNode)(`button`,{class:(0,t.normalizeClass)([{"nav-menu__item--selected":e.selected.value===r.value},`typo-body-1 nav-menu__item nav-menu__item--active`]),onClick:e=>i(r)},[(0,t.createVNode)(a,{color:e.selected.value===r.value?`on-primary`:`default`,icon:e.icons.find(e=>e.includes(r.value))},null,8,[`color`,`icon`]),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(r.name),1)],10,sK),(0,t.withDirectives)((0,t.createElementVNode)(`div`,null,[(0,t.renderSlot)(n.$slots,`default`,{},void 0,!0)],512),[[t.vShow,e.selected.value===r.value]])]))),128))])}}},lK=L(cK,[[`__scopeId`,`data-v-52920c85`]])})),dit=O((()=>{})),uK,dK,fK,fit=O((()=>{dit(),R(),uK={class:`nav-menu__category nav-menu-lvl-2`},dK={__name:`nav-menu-lvl-2`,props:{categories:{type:Array,default:()=>[]}},setup(e){return(n,r)=>{let i=(0,t.resolveComponent)(`router-link`);return(0,t.openBlock)(),(0,t.createElementBlock)(`ul`,uK,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.categories,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n,class:`typo-body-1 nav-menu__option nav-menu__item nav-menu-lvl-2--inner`},[r[0]||=(0,t.createElementVNode)(`span`,{class:`nav-menu-lvl-2__indicator`},null,-1),(0,t.createVNode)(i,{to:e.route,class:`nav-menu-lvl-2__link`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.name),1)],void 0,!0),_:2},1032,[`to`])]))),128))])}}},fK=L(dK,[[`__scopeId`,`data-v-c560eb2d`]])})),pit=O((()=>{})),mit=A({default:()=>gK}),pK,mK,hK,gK,hit=O((()=>{uit(),fit(),pit(),R(),pK={class:`wt-navigation-menu`},mK={class:`wt-navigation-menu__wrapper`},hK={__name:`wt-navigation-menu`,props:{nav:{type:Array,required:!0},icons:{type:Array,default:()=>[]}},setup(e){let n=e,r=(0,t.ref)(``),i=(0,t.computed)(()=>{let e=new Map;return n.nav.forEach(t=>{e.set(t.value,{...t,name:t.name})}),e}),a=(0,t.computed)(()=>{let e=new Map;return n.nav.forEach(t=>{if(t.subNav){let n=t.subNav.map(e=>{let n=t.route?`${t.route}/${e.route}`:e.route;return{...e,name:e.name,route:n}});e.set(t.value,n)}else e.set(t.value,[])}),e}),o=(0,t.computed)(()=>Array.from(i.value.values()).filter(e=>{let t=a.value.get(e.value);return t&&t.length>0})),s=(0,t.computed)(()=>a.value.get(c.value?.value)||[]),c=(0,t.computed)(()=>i.value.get(r.value)||o.value[0]);function l(e){r.value=e.value}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`section`,pK,[(0,t.createElementVNode)(`article`,mK,[(0,t.createVNode)(lK,{categories:o.value,icons:e.icons,selected:c.value,onSelect:l},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(fK,{categories:s.value,class:`wt-navigation-menu__categories--display`},null,8,[`categories`])],void 0,!0),_:1},8,[`categories`,`icons`,`selected`]),(0,t.createVNode)(fK,{categories:s.value,class:`wt-navigation-menu__categories--hidden`},null,8,[`categories`])])]))}},gK=L(hK,[[`__scopeId`,`data-v-fcbc24f4`]])}));function git(){return _K??=import(`tinymce/tinymce`).then(()=>Promise.all([import(`tinymce/icons/default`),import(`tinymce/models/dom`),import(`tinymce/themes/silver`),import(`tinymce/plugins/advlist`),import(`tinymce/plugins/emoticons`),import(`tinymce/plugins/emoticons/js/emojis`),import(`tinymce/plugins/fullscreen`),import(`tinymce/plugins/image`),import(`tinymce/plugins/link`),import(`tinymce/plugins/lists`),import(`tinymce/plugins/table`),import(`tinymce/skins/ui/oxide/skin.css`)]).then(()=>void 0)),_K}var _K,_it=O((()=>{_K=null})),vK,yK,bK=O((()=>{mS(),_it(),hp(),vK={class:`wt-rich-text-editor`},yK=(0,t.defineComponent)({compatConfig:{MODE:3},__name:`wt-rich-text-editor`,props:(0,t.mergeModels)({label:{},labelProps:{},output:{default:`html`},height:{default:300},disabled:{type:Boolean},placeholder:{},toolbar:{},plugins:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n={...o.default,name:`TinyMceEditor`,compatConfig:{MODE:3}},r=e,i=(0,t.useModel)(e,`modelValue`),a=(0,t.useId)(),s=(0,t.ref)(!1);git().then(()=>{s.value=!0});let c=[`advlist`,`emoticons`,`fullscreen`,`image`,`link`,`lists`,`table`],l=[`undo redo`,`bold italic underline strikethrough`,`fullscreen`,`fontfamily fontsize`,`alignleft aligncenter alignright alignjustify`,`numlist bullist`,`forecolor backcolor removeformat`,`emoticons image link table`].join(` | `),u=(0,t.computed)(()=>r.output===`html`),d=(0,t.computed)(()=>r.plugins??(u.value?c:[])),f=(0,t.computed)(()=>r.toolbar??(u.value?l:`undo redo`));function p(){let e=getComputedStyle(document.documentElement);return{backgroundColor:e.getPropertyValue(`--content-wrapper-color`).trim(),color:e.getPropertyValue(`--wt-text-field-text-color`).trim()}}let m=(0,t.computed)(()=>{let{backgroundColor:e,color:t}=p();return{height:Number(r.height),menubar:!1,statusbar:u.value,toolbar_mode:`sliding`,toolbar_sticky:!0,placeholder:r.placeholder,skin:!1,content_css:!1,content_style:`body { background-color: ${e}; color: ${t}; }`}}),h=null,g=new MutationObserver(()=>{h?.getBody()&&h.dom.setStyles(h.getBody(),p())});function _(e,t){h=t,g.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`]})}return(0,t.onBeforeUnmount)(()=>{g.disconnect(),h=null}),(r,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,vK,[e.label||r.$slots.label?((0,t.openBlock)(),(0,t.createBlock)(pS,(0,t.mergeProps)({key:0},e.labelProps,{disabled:e.disabled,for:(0,t.unref)(a)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,`label`,(0,t.normalizeProps)((0,t.guardReactiveProps)({label:e.label})),()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],!0)],void 0,!0),_:3},16,[`disabled`,`for`])):(0,t.createCommentVNode)(``,!0),s.value?((0,t.openBlock)(),(0,t.createBlock)(n,{key:1,id:(0,t.unref)(a),modelValue:i.value,"onUpdate:modelValue":o[0]||=e=>i.value=e,disabled:e.disabled,init:m.value,"output-format":e.output,plugins:d.value,toolbar:f.value,"license-key":`gpl`,onInit:_},null,8,[`id`,`modelValue`,`disabled`,`init`,`output-format`,`plugins`,`toolbar`])):((0,t.openBlock)(),(0,t.createBlock)(mp,{key:2}))]))}})})),vit=O((()=>{})),yit=A({default:()=>xK}),xK,bit=O((()=>{bK(),bK(),vit(),R(),xK=L(yK,[[`__scopeId`,`data-v-47d8ed9a`]])})),xit=O((()=>{})),Sit=A({default:()=>DK}),SK,CK,wK,TK,EK,DK,Cit=O((()=>{iy(),xit(),R(),SK={class:`wt-selection-popup__options`},CK=[`onClick`],wK={class:`wt-selection-popup__item-header typo-subtitle-2`},TK={key:1,class:`popup-options__item-text`},EK={__name:`wt-selection-popup`,props:{title:{type:String},selected:{type:Object},options:{type:Array,default:()=>[]}},emits:[`change`,`add`,`close`],setup(e,{emit:n}){let r=e,i=n,{t:a}=Tv();function o(){i(`add`,r.selected)}function s(){i(`close`)}function c(e){i(`change`,e)}return(n,r)=>{let i=(0,t.resolveComponent)(`wt-icon`),l=(0,t.resolveComponent)(`wt-icon-btn`),u=(0,t.resolveComponent)(`wt-button`),d=(0,t.resolveComponent)(`wt-popup`),f=(0,t.resolveDirective)(`tooltip`);return(0,t.openBlock)(),(0,t.createBlock)(d,(0,t.mergeProps)(n.$attrs,{class:`wt-selection-popup`,overflow:``,size:`sm`},{onClose:s}),{title:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)]),main:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`ul`,SK,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(r,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:a,class:(0,t.normalizeClass)([{active:r.value===e.selected.value},`wt-selection-popup__item-wrapper`]),onClick:e=>c(r)},[(0,t.renderSlot)(n.$slots,`option`,{option:r},()=>[r.icon?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,icon:r.icon,size:`sm`},null,8,[`icon`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`h4`,wK,(0,t.toDisplayString)(r.title),1),r.description?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,TK,(0,t.toDisplayString)(r.description),1)):(0,t.createCommentVNode)(``,!0),r.description?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(l,{key:2,color:`info`,icon:`rounded-info`},null,512)),[[f,r.description]]):(0,t.createCommentVNode)(``,!0)],!0)],10,CK))),128))]),(0,t.renderSlot)(n.$slots,`after-section`,{},void 0,!0)]),actions:(0,t.withCtx)(()=>[(0,t.createVNode)(u,{disabled:!e.selected,onClick:o},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(a)(`reusable.create`)),1)],void 0,!0),_:1},8,[`disabled`]),(0,t.createVNode)(u,{color:`secondary`,onClick:s},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(a)(`reusable.close`)),1)],void 0,!0),_:1})]),_:3},16)}}},DK=L(EK,[[`__scopeId`,`data-v-d7ed7032`]])})),OK,kK,wit=O((()=>{ht(),Array.isArray,OK=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),Symbol(M.env.NODE_ENV===`production`?``:`navigation failure`),OK.MATCHER_NOT_FOUND,OK.NAVIGATION_GUARD_REDIRECT,OK.NAVIGATION_ABORTED,OK.NAVIGATION_CANCELLED,OK.NAVIGATION_DUPLICATED,Symbol(M.env.NODE_ENV===`production`?``:`router view location matched`),Symbol(M.env.NODE_ENV===`production`?``:`router view depth`),kK=Symbol(M.env.NODE_ENV===`production`?``:`router`),Symbol(M.env.NODE_ENV===`production`?``:`route location`),Symbol(M.env.NODE_ENV===`production`?``:`router view location`)}));function Tit(){return(0,t.inject)(kK)}var AK,Eit=O((()=>{ht(),wit(),AK=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),AK.Static})),Dit=O((()=>{})),jK,MK,NK,PK,FK,IK,LK,Oit=O((()=>{Eit(),Dit(),R(),jK={class:`start-page-card`},MK={class:`typo-heading-4 start-page-card__header`},NK={class:`start-page-card__main-section`},PK=[`alt`,`src`],FK={class:`typo-body-1 start-page-card__description`},IK={__name:`start-page-card`,props:{card:{type:Object,required:!0}},setup(e){let n=Tit(),r=e,i=()=>n.push(r.card.route);return(n,r)=>{let a=(0,t.resolveComponent)(`wt-icon`),o=(0,t.resolveComponent)(`wt-button`);return(0,t.openBlock)(),(0,t.createElementBlock)(`article`,jK,[(0,t.createElementVNode)(`header`,MK,[e.card.disabled?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,icon:`lock`})):(0,t.createCommentVNode)(``,!0),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.card.name),1)]),(0,t.createElementVNode)(`section`,NK,[(0,t.createElementVNode)(`img`,{alt:e.card.name,src:e.card.image},null,8,PK),(0,t.createElementVNode)(`p`,FK,(0,t.toDisplayString)(e.card.text),1)]),(0,t.createElementVNode)(`footer`,null,[(0,t.createVNode)(o,{disabled:e.card.disabled,class:`start-page-card__button`,color:`secondary`,wide:``,onClick:i},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.$t(`reusable.open`)),1)],void 0,!0),_:1},8,[`disabled`])])])}}},LK=L(IK,[[`__scopeId`,`data-v-e4560b27`]])})),kit=O((()=>{})),RK,zK,BK,VK,Ait=O((()=>{kit(),R(),RK={class:`start-page-logo`},zK=[`src`],BK={__name:`start-page-logo`,props:{logo:{type:String,required:!0}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,RK,[(0,t.createElementVNode)(`img`,{src:e.logo},null,8,zK)]))}},VK=L(BK,[[`__scopeId`,`data-v-187dc1b4`]])})),HK,UK,WK,GK=O((()=>{Oit(),Ait(),HK={class:`wt-start-page`},UK={class:`wt-start-page__wrapper`},WK=(0,t.defineComponent)({__name:`wt-start-page`,props:{nav:{},appLogo:{},darkMode:{type:Boolean,default:!1}},setup(e){let n=e;(0,t.provide)(`darkMode`,n.darkMode);let r=(0,t.computed)(()=>n.darkMode?n.appLogo.dark:n.appLogo.light),i=(0,t.computed)(()=>n.nav.map(e=>({...e,image:n.darkMode?e.images.dark:e.images.light})));return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,HK,[e.appLogo?((0,t.openBlock)(),(0,t.createBlock)(VK,{key:0,logo:r.value},null,8,[`logo`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,UK,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value,e=>((0,t.openBlock)(),(0,t.createBlock)(LK,{key:e.value,card:e},null,8,[`card`]))),128))])]))}})})),jit=O((()=>{})),Mit=A({default:()=>Nit}),Nit,Pit=O((()=>{GK(),GK(),jit(),R(),Nit=L(WK,[[`__scopeId`,`data-v-85dd1b85`]])})),KK,Fit=O((()=>{KK=()=>({items:[],next:!1})})),qK,Iit=O((()=>{qK=({page:e=1,size:t=10}={})=>({page:e,size:t})})),Y=O((()=>{Fit(),Iit(),ba()})),JK,Lit=O((()=>{JK=e=>t=>{let n=t;if(e&&e.length>0){if(n.includes(`?`))return n+=`&${e.join(`&`)}`,n;n+=`?${e.join(`&`)}`}return n}})),YK,Rit=O((()=>{YK=(e,t,{debug:n=!1,withContext:r=null}={})=>t.reduce((e,t,i)=>(n&&console.info(`applyTransform debug on step ${i}`,e),r?t(e,r):t(e)),e)})),XK,zit=O((()=>{Ko(),XK=(e=[])=>t=>Wo(t,e)})),ZK,Bit=O((()=>{Je(),ZK=e=>t=>`${e}?${Fe(t,{skipEmptyString:!0,skipNull:!0,arrayFormat:`repeat`})}`})),QK=k(((e,t)=>{var n=function(e){return r(e)&&!i(e)};function r(e){return!!e&&typeof e==`object`}function i(e){var t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||o(e)}var a=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function o(e){return e.$$typeof===a}function s(e){return Array.isArray(e)?[]:{}}function c(e,t){return t.clone!==!1&&t.isMergeableObject(e)?g(s(e),e,t):e}function l(e,t,n){return e.concat(t).map(function(e){return c(e,n)})}function u(e,t){if(!t.customMerge)return g;var n=t.customMerge(e);return typeof n==`function`?n:g}function d(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function f(e){return Object.keys(e).concat(d(e))}function p(e,t){try{return t in e}catch{return!1}}function m(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function h(e,t,n){var r={};return n.isMergeableObject(e)&&f(e).forEach(function(t){r[t]=c(e[t],n)}),f(t).forEach(function(i){m(e,i)||(p(e,i)&&n.isMergeableObject(t[i])?r[i]=u(i,n)(e[i],t[i],n):r[i]=c(t[i],n))}),r}function g(e,t,r){r||={},r.arrayMerge=r.arrayMerge||l,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=c;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):h(e,t,r):c(t,r)}g.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return g(e,n,t)},{})},t.exports=g})),$K,eq,Vit=O((()=>{$K=ye(QK(),1),eq=(...e)=>t=>$K.default.all([...e,t])})),tq,nq,Hit=O((()=>{tq=ye(QK(),1),nq=(...e)=>t=>t.map(t=>tq.default.all([...e,t]))})),rq,iq=O((()=>{rq={eventBus:null,i18n:null}}));function aq(e){if(typeof e==`function`){let t=({type:e,text:t})=>rq.eventBus?.$emit(`notification`,{type:e,text:t});return n=>(e({callback:t}),n)}if(e instanceof Error){let{response:t}=e,n=t?.data?.translation||t?.data?.detail||t?.data?.message||e;rq.eventBus?.$emit(`notification`,{type:`error`,text:n})}return e}var Uit=O((()=>{iq()})),oq,sq=O((()=>{oq=e=>t=>Object.keys(t).reduce((n,r)=>(e.indexOf(r)===-1||(n[r]=t[r]),n),{})})),cq,lq,Wit=O((()=>{cq=e=>e.replace(/[^a-zA-Z0-9]/g,``).toLowerCase(),lq=e=>t=>{if(!t)return t;let n=new Map(e.map(e=>[cq(e),e]));return Object.entries(t).reduce((e,[t,r])=>(e[n.get(cq(t))??t]=r,e),{})}})),uq,Git=O((()=>{sq(),Wit(),uq=e=>t=>oq(e)(lq(e)(t))})),dq,Kit=O((()=>{Ko(),dq=(e=[])=>t=>Uo(t,e)})),fq,pq,qit=O((()=>{fq=ye(iz(),1),pq=(e=`search`)=>t=>{let r=(0,fq.default)(t),i=(0,n.get)(r,e);return!i||i.slice(-1)===`*`?r:(0,n.set)(r,e,`${i}*`)}})),Jit=O((()=>{yu(),iq()})),X=O((()=>{Lit(),Rit(),zit(),Bit(),Vit(),Hit(),Uit(),sq(),Git(),Kit(),qit(),Jit()})),mq,hq,gq,_q=O((()=>{Y(),X(),mq=`acl`,hq=e=>e.map(e=>({...e,access:{x:{id:(e.granted.match(/x/g)||[]).length+1,rule:`x`.repeat((e.granted.match(/x/g)||[]).length)},r:{id:(e.granted.match(/r/g)||[]).length+1,rule:`r`.repeat((e.granted.match(/r/g)||[]).length)},w:{id:(e.granted.match(/w/g)||[]).length+1,rule:`w`.repeat((e.granted.match(/w/g)||[]).length)},d:{id:(e.granted.match(/d/g)||[]).length+1,rule:`d`.repeat((e.granted.match(/d/g)||[]).length)}}})),gq=e=>{let t=ya();return{getPermissionsList:async({parentId:n,...r})=>{let i=[`page`,`size`,`q`,`sort`,`fields`,`id`],a={user:!1},o=YK(r,[eq(qK()),pq(`search`),e=>({...e,q:e.search}),oq(i),XK(),ZK(`${e}/${n}/${mq}`)]);try{let{items:e,next:n}=YK((await t.get(o)).data,[dq(),eq(KK())]);return{items:YK(e,[nq(a),hq]),next:n}}catch(e){throw YK(e,[aq])}},patchPermissions:async({changes:n,id:r})=>{let i=YK(n,[XK()]),a=`${e}/${r}/${mq}`;try{return YK((await t.patch(a,i)).data,[dq()])}catch(e){throw YK(e,[aq])}}}}})),Yit=O((()=>{})),Xit=O((()=>{})),Zit=O((()=>{})),Qit=O((()=>{})),$it=O((()=>{})),eat=O((()=>{})),tat=O((()=>{})),nat=O((()=>{})),rat=O((()=>{})),iat=O((()=>{})),aat=O((()=>{})),oat=O((()=>{})),sat=O((()=>{})),cat=O((()=>{})),lat=O((()=>{})),uat=O((()=>{})),dat=O((()=>{})),fat=O((()=>{})),pat=O((()=>{})),mat=O((()=>{})),hat=O((()=>{})),gat=O((()=>{})),_at=O((()=>{})),vat=O((()=>{})),yat=O((()=>{})),bat=O((()=>{})),xat=O((()=>{})),Sat=O((()=>{})),Cat=O((()=>{})),wat=O((()=>{})),Tat=O((()=>{})),Eat=O((()=>{})),Dat=O((()=>{})),Oat=O((()=>{})),kat=O((()=>{})),Aat=O((()=>{})),jat=O((()=>{})),Mat=O((()=>{})),Nat=O((()=>{})),Pat=O((()=>{})),Fat=O((()=>{})),Iat=O((()=>{})),Lat=O((()=>{})),Rat=O((()=>{})),zat=O((()=>{})),Bat=O((()=>{})),Vat=O((()=>{})),Hat=O((()=>{})),Uat=O((()=>{})),Wat=O((()=>{})),Gat=O((()=>{})),Kat=O((()=>{})),qat=O((()=>{})),Jat=O((()=>{})),Yat=O((()=>{})),Xat=O((()=>{})),Zat=O((()=>{})),Qat=O((()=>{})),$at=O((()=>{})),eot=O((()=>{})),tot=O((()=>{})),not=O((()=>{})),rot=O((()=>{})),iot=O((()=>{})),aot=O((()=>{})),oot=O((()=>{})),sot=O((()=>{})),cot=O((()=>{})),lot=O((()=>{})),uot=O((()=>{})),dot=O((()=>{})),fot=O((()=>{})),pot=O((()=>{})),mot=O((()=>{})),hot=O((()=>{})),got=O((()=>{})),_ot=O((()=>{})),vot=O((()=>{})),yot=O((()=>{})),bot=O((()=>{})),xot=O((()=>{})),Sot=O((()=>{})),Cot=O((()=>{})),wot=O((()=>{})),Tot=O((()=>{})),Eot=O((()=>{})),Dot=O((()=>{})),Oot=O((()=>{})),kot=O((()=>{})),Aot=O((()=>{})),jot=O((()=>{})),Mot=O((()=>{})),Not=O((()=>{})),Pot=O((()=>{})),Fot=O((()=>{})),Iot=O((()=>{})),Lot=O((()=>{})),Rot=O((()=>{})),zot=O((()=>{})),Bot=O((()=>{})),Vot=O((()=>{})),Hot=O((()=>{})),Uot=O((()=>{})),Wot=O((()=>{})),Got=O((()=>{})),Kot=O((()=>{})),qot=O((()=>{})),Jot=O((()=>{})),Yot=O((()=>{})),Xot=O((()=>{})),Zot=O((()=>{})),Qot=O((()=>{})),$ot=O((()=>{})),est=O((()=>{})),tst=O((()=>{})),nst=O((()=>{})),rst=O((()=>{})),ist=O((()=>{})),ast=O((()=>{})),ost=O((()=>{})),sst=O((()=>{})),cst=O((()=>{})),lst=O((()=>{})),ust=O((()=>{})),dst=O((()=>{})),fst=O((()=>{})),pst=O((()=>{})),mst=O((()=>{})),hst=O((()=>{})),gst=O((()=>{})),_st=O((()=>{})),vst=O((()=>{})),yst=O((()=>{})),bst=O((()=>{})),xst=O((()=>{})),Sst=O((()=>{})),Cst=O((()=>{})),wst=O((()=>{})),Tst=O((()=>{})),Est=O((()=>{})),Dst=O((()=>{})),Ost=O((()=>{})),kst=O((()=>{})),Ast=O((()=>{})),jst=O((()=>{})),Mst=O((()=>{})),Nst=O((()=>{})),Pst=O((()=>{})),Fst=O((()=>{})),Ist=O((()=>{})),Lst=O((()=>{})),Rst=O((()=>{})),zst=O((()=>{})),Bst=O((()=>{})),Vst=O((()=>{})),Hst=O((()=>{})),Ust=O((()=>{})),Wst=O((()=>{})),Gst=O((()=>{})),Kst=O((()=>{})),qst=O((()=>{})),Jst=O((()=>{})),Yst=O((()=>{})),Xst=O((()=>{})),Zst=O((()=>{})),Qst=O((()=>{})),$st=O((()=>{})),ect=O((()=>{})),tct=O((()=>{})),nct=O((()=>{})),rct=O((()=>{})),ict=O((()=>{})),act=O((()=>{})),oct=O((()=>{})),sct=O((()=>{})),cct=O((()=>{})),lct=O((()=>{})),uct=O((()=>{})),dct=O((()=>{})),fct=O((()=>{})),pct=O((()=>{})),mct=O((()=>{})),hct=O((()=>{})),gct=O((()=>{})),_ct=O((()=>{})),vct=O((()=>{})),yct=O((()=>{})),bct=O((()=>{})),xct=O((()=>{})),Sct=O((()=>{})),Cct=O((()=>{})),wct=O((()=>{})),Tct=O((()=>{})),Ect=O((()=>{})),Dct=O((()=>{})),Oct=O((()=>{})),kct=O((()=>{})),Act=O((()=>{})),jct=O((()=>{})),Mct=O((()=>{})),Nct=O((()=>{})),Pct=O((()=>{})),Fct=O((()=>{})),Ict=O((()=>{})),Lct=O((()=>{})),Rct=O((()=>{})),zct=O((()=>{})),Bct=O((()=>{})),Vct=O((()=>{})),Hct=O((()=>{})),Uct=O((()=>{})),Wct=O((()=>{})),Gct=O((()=>{})),Kct=O((()=>{})),qct=O((()=>{})),Jct=O((()=>{})),Yct=O((()=>{})),Xct=O((()=>{})),Zct=O((()=>{})),Qct=O((()=>{})),$ct=O((()=>{})),elt=O((()=>{})),tlt=O((()=>{})),nlt=O((()=>{})),rlt=O((()=>{})),ilt=O((()=>{})),alt=O((()=>{})),olt=O((()=>{})),slt=O((()=>{})),clt=O((()=>{})),llt=O((()=>{})),ult=O((()=>{})),dlt=O((()=>{})),flt=O((()=>{})),plt=O((()=>{})),mlt=O((()=>{})),hlt=O((()=>{})),glt=O((()=>{})),_lt=O((()=>{})),vlt=O((()=>{})),ylt=O((()=>{})),blt=O((()=>{})),xlt=O((()=>{})),Slt=O((()=>{})),Clt=O((()=>{})),wlt=O((()=>{})),Tlt=O((()=>{})),Elt=O((()=>{})),Dlt=O((()=>{})),Olt=O((()=>{})),klt=O((()=>{})),Alt=O((()=>{})),jlt=O((()=>{})),Mlt=O((()=>{})),Nlt=O((()=>{})),Plt=O((()=>{})),Flt=O((()=>{})),Ilt=O((()=>{})),Llt=O((()=>{})),Rlt=O((()=>{})),zlt=O((()=>{})),Blt=O((()=>{})),Vlt=O((()=>{})),Hlt=O((()=>{})),Ult=O((()=>{})),Wlt=O((()=>{})),Glt=O((()=>{})),Klt=O((()=>{})),qlt=O((()=>{})),Jlt=O((()=>{})),Ylt=O((()=>{})),Xlt=O((()=>{})),Zlt=O((()=>{})),Qlt=O((()=>{})),$lt=O((()=>{})),eut=O((()=>{})),tut=O((()=>{})),nut=O((()=>{})),rut=O((()=>{})),iut=O((()=>{})),aut=O((()=>{})),out=O((()=>{})),sut=O((()=>{})),cut=O((()=>{})),lut=O((()=>{})),uut=O((()=>{})),dut=O((()=>{})),fut=O((()=>{})),put=O((()=>{})),mut=O((()=>{})),hut=O((()=>{})),gut=O((()=>{})),_ut=O((()=>{})),vut=O((()=>{})),yut=O((()=>{})),but=O((()=>{})),xut=O((()=>{})),Sut=O((()=>{})),Cut=O((()=>{})),wut=O((()=>{})),Tut=O((()=>{})),Eut=O((()=>{})),Dut=O((()=>{})),Out=O((()=>{})),kut=O((()=>{})),Aut=O((()=>{})),jut=O((()=>{})),Mut=O((()=>{})),Nut=O((()=>{})),Put=O((()=>{})),Fut=O((()=>{})),Iut=O((()=>{})),Lut=O((()=>{})),Rut=O((()=>{})),zut=O((()=>{})),But=O((()=>{})),Vut=O((()=>{})),Hut=O((()=>{})),Uut=O((()=>{})),Wut=O((()=>{})),Gut=O((()=>{})),Kut=O((()=>{})),qut=O((()=>{})),Jut=O((()=>{})),Yut=O((()=>{})),Xut=O((()=>{})),Zut=O((()=>{})),Qut=O((()=>{})),$ut=O((()=>{})),edt=O((()=>{})),tdt=O((()=>{})),ndt=O((()=>{})),rdt=O((()=>{})),idt=O((()=>{})),adt=O((()=>{})),odt=O((()=>{})),sdt=O((()=>{})),cdt=O((()=>{})),ldt=O((()=>{})),udt=O((()=>{})),ddt=O((()=>{})),fdt=O((()=>{})),pdt=O((()=>{})),mdt=O((()=>{})),hdt=O((()=>{})),gdt=O((()=>{})),_dt=O((()=>{})),vdt=O((()=>{})),ydt=O((()=>{})),bdt=O((()=>{})),xdt=O((()=>{})),Sdt=O((()=>{})),Cdt=O((()=>{})),wdt=O((()=>{})),Tdt=O((()=>{})),Edt=O((()=>{})),Ddt=O((()=>{})),Odt=O((()=>{})),kdt=O((()=>{})),Adt=O((()=>{})),jdt=O((()=>{})),Mdt=O((()=>{})),Ndt=O((()=>{})),Pdt=O((()=>{})),Fdt=O((()=>{})),Idt=O((()=>{})),Ldt=O((()=>{})),Rdt=O((()=>{})),zdt=O((()=>{})),Bdt=O((()=>{})),Vdt=O((()=>{})),Hdt=O((()=>{})),Udt=O((()=>{})),Wdt=O((()=>{})),Gdt=O((()=>{})),Kdt=O((()=>{})),qdt=O((()=>{})),Jdt=O((()=>{})),Ydt=O((()=>{})),Xdt=O((()=>{})),Zdt=O((()=>{})),Qdt=O((()=>{})),$dt=O((()=>{})),eft=O((()=>{})),tft=O((()=>{})),nft=O((()=>{})),rft=O((()=>{})),ift=O((()=>{})),aft=O((()=>{})),oft=O((()=>{})),sft=O((()=>{})),cft=O((()=>{})),lft=O((()=>{})),uft=O((()=>{})),dft=O((()=>{})),fft=O((()=>{})),pft=O((()=>{})),mft=O((()=>{})),hft=O((()=>{})),gft=O((()=>{})),_ft=O((()=>{})),vft=O((()=>{})),yft=O((()=>{})),bft=O((()=>{})),xft=O((()=>{})),Sft=O((()=>{})),Cft=O((()=>{})),wft=O((()=>{})),Tft=O((()=>{})),Eft=O((()=>{})),Dft=O((()=>{})),Oft=O((()=>{})),kft=O((()=>{})),Aft=O((()=>{})),jft=O((()=>{})),Mft=O((()=>{})),Nft=O((()=>{})),Pft=O((()=>{})),Fft=O((()=>{})),Ift=O((()=>{})),Lft=O((()=>{})),Rft=O((()=>{})),zft=O((()=>{})),Bft=O((()=>{})),Vft=O((()=>{})),Hft=O((()=>{})),Uft=O((()=>{})),Wft=O((()=>{})),Gft=O((()=>{})),Kft=O((()=>{})),qft=O((()=>{})),Jft=O((()=>{})),Yft=O((()=>{})),Xft=O((()=>{})),Zft=O((()=>{})),Qft=O((()=>{})),$ft=O((()=>{})),ept=O((()=>{})),tpt=O((()=>{})),npt=O((()=>{})),rpt=O((()=>{})),ipt=O((()=>{})),apt=O((()=>{})),opt=O((()=>{})),spt=O((()=>{})),cpt=O((()=>{})),lpt=O((()=>{})),upt=O((()=>{})),dpt=O((()=>{})),fpt=O((()=>{})),ppt=O((()=>{})),mpt=O((()=>{})),hpt=O((()=>{})),gpt=O((()=>{})),_pt=O((()=>{})),vpt=O((()=>{})),ypt=O((()=>{})),bpt=O((()=>{})),xpt=O((()=>{})),Spt=O((()=>{})),Cpt=O((()=>{})),wpt=O((()=>{})),Tpt=O((()=>{})),Ept=O((()=>{})),Dpt=O((()=>{})),Opt=O((()=>{})),kpt=O((()=>{})),Apt=O((()=>{})),jpt=O((()=>{})),Mpt=O((()=>{})),Npt=O((()=>{})),Ppt=O((()=>{})),Fpt=O((()=>{})),Ipt=O((()=>{})),Lpt=O((()=>{})),Rpt=O((()=>{})),zpt=O((()=>{})),Bpt=O((()=>{})),Vpt=O((()=>{})),Hpt=O((()=>{})),Upt=O((()=>{})),Wpt=O((()=>{})),Gpt=O((()=>{})),Kpt=O((()=>{})),qpt=O((()=>{})),Jpt=O((()=>{})),Ypt=O((()=>{})),Xpt=O((()=>{})),Zpt=O((()=>{})),Qpt=O((()=>{})),$pt=O((()=>{})),emt=O((()=>{})),tmt=O((()=>{})),nmt=O((()=>{})),rmt=O((()=>{})),imt=O((()=>{})),amt=O((()=>{})),omt=O((()=>{})),smt=O((()=>{})),cmt=O((()=>{})),lmt=O((()=>{})),umt=O((()=>{})),dmt=O((()=>{})),fmt=O((()=>{})),pmt=O((()=>{})),mmt=O((()=>{})),hmt=O((()=>{})),gmt=O((()=>{})),_mt=O((()=>{})),vmt=O((()=>{})),ymt=O((()=>{})),bmt=O((()=>{})),xmt=O((()=>{})),Smt=O((()=>{})),Cmt=O((()=>{})),wmt=O((()=>{})),Tmt=O((()=>{})),Emt=O((()=>{})),Dmt=O((()=>{})),Omt=O((()=>{})),kmt=O((()=>{})),Amt=O((()=>{})),jmt=O((()=>{})),Mmt=O((()=>{})),Nmt=O((()=>{})),Pmt=O((()=>{})),Fmt=O((()=>{})),Imt=O((()=>{})),Lmt=O((()=>{})),Rmt=O((()=>{})),zmt=O((()=>{})),Bmt=O((()=>{})),Vmt=O((()=>{})),Hmt=O((()=>{})),Umt=O((()=>{})),Wmt=O((()=>{})),Gmt=O((()=>{})),Kmt=O((()=>{})),qmt=O((()=>{})),Jmt=O((()=>{})),Ymt=O((()=>{})),Xmt=O((()=>{})),Zmt=O((()=>{})),Qmt=O((()=>{})),$mt=O((()=>{})),eht=O((()=>{})),tht=O((()=>{})),nht=O((()=>{})),rht=O((()=>{})),iht=O((()=>{})),aht=O((()=>{})),oht=O((()=>{})),sht=O((()=>{})),cht=O((()=>{})),lht=O((()=>{})),uht=O((()=>{})),dht=O((()=>{})),fht=O((()=>{})),pht=O((()=>{})),mht=O((()=>{})),hht=O((()=>{})),ght=O((()=>{})),_ht=O((()=>{})),vht=O((()=>{})),yht=O((()=>{})),bht=O((()=>{})),xht=O((()=>{})),Sht=O((()=>{})),Cht=O((()=>{})),wht=O((()=>{})),Tht=O((()=>{})),Eht=O((()=>{})),Dht=O((()=>{})),Oht=O((()=>{})),kht=O((()=>{})),Aht=O((()=>{})),jht=O((()=>{})),Mht=O((()=>{})),Nht=O((()=>{})),Pht=O((()=>{})),Fht=O((()=>{})),Iht=O((()=>{})),Lht=O((()=>{})),Rht=O((()=>{})),zht=O((()=>{})),Bht=O((()=>{})),Vht=O((()=>{})),Hht=O((()=>{})),Uht=O((()=>{})),Wht=O((()=>{})),Ght=O((()=>{})),Kht=O((()=>{})),qht=O((()=>{})),Jht=O((()=>{})),Yht=O((()=>{})),Xht=O((()=>{})),Zht=O((()=>{})),Qht=O((()=>{})),$ht=O((()=>{})),egt=O((()=>{})),tgt=O((()=>{})),ngt=O((()=>{})),rgt=O((()=>{})),igt=O((()=>{})),agt=O((()=>{})),ogt=O((()=>{})),sgt=O((()=>{})),cgt=O((()=>{})),lgt=O((()=>{})),ugt=O((()=>{})),dgt=O((()=>{})),fgt=O((()=>{})),pgt=O((()=>{})),mgt=O((()=>{})),hgt=O((()=>{})),ggt=O((()=>{})),_gt=O((()=>{})),vgt=O((()=>{})),ygt=O((()=>{})),bgt=O((()=>{})),xgt=O((()=>{})),Sgt=O((()=>{})),Cgt=O((()=>{})),wgt=O((()=>{})),Tgt=O((()=>{})),Egt=O((()=>{})),Dgt=O((()=>{})),Ogt=O((()=>{})),kgt=O((()=>{})),Agt=O((()=>{})),jgt=O((()=>{})),Mgt=O((()=>{})),Ngt=O((()=>{})),Pgt=O((()=>{})),Fgt=O((()=>{})),Igt=O((()=>{})),Lgt=O((()=>{})),Rgt=O((()=>{})),zgt=O((()=>{})),Bgt=O((()=>{})),Vgt=O((()=>{})),Hgt=O((()=>{})),Ugt=O((()=>{})),Wgt=O((()=>{})),Ggt=O((()=>{})),Kgt=O((()=>{})),qgt=O((()=>{})),Jgt=O((()=>{})),Ygt=O((()=>{})),Xgt=O((()=>{})),Zgt=O((()=>{})),Qgt=O((()=>{})),$gt=O((()=>{})),e_t=O((()=>{})),t_t=O((()=>{})),n_t=O((()=>{})),r_t=O((()=>{})),i_t=O((()=>{})),a_t=O((()=>{})),o_t=O((()=>{})),s_t=O((()=>{})),c_t=O((()=>{})),l_t=O((()=>{})),u_t=O((()=>{})),d_t=O((()=>{})),f_t=O((()=>{})),p_t=O((()=>{})),m_t=O((()=>{})),h_t=O((()=>{})),g_t=O((()=>{})),__t=O((()=>{})),v_t=O((()=>{})),y_t=O((()=>{})),b_t=O((()=>{})),x_t=O((()=>{})),S_t=O((()=>{})),C_t=O((()=>{})),w_t=O((()=>{})),T_t=O((()=>{})),E_t=O((()=>{})),D_t=O((()=>{})),O_t=O((()=>{})),k_t=O((()=>{})),A_t=O((()=>{})),j_t=O((()=>{})),M_t=O((()=>{})),N_t=O((()=>{})),P_t=O((()=>{})),F_t=O((()=>{})),I_t=O((()=>{})),L_t=O((()=>{})),R_t=O((()=>{})),z_t=O((()=>{})),B_t=O((()=>{})),V_t=O((()=>{})),H_t=O((()=>{})),U_t=O((()=>{})),W_t=O((()=>{})),G_t=O((()=>{})),K_t=O((()=>{})),q_t=O((()=>{})),J_t=O((()=>{})),Y_t=O((()=>{})),X_t=O((()=>{})),Z_t=O((()=>{})),Q_t=O((()=>{})),$_t=O((()=>{})),evt=O((()=>{})),tvt=O((()=>{})),nvt=O((()=>{})),rvt=O((()=>{})),ivt=O((()=>{})),avt=O((()=>{})),ovt=O((()=>{})),svt=O((()=>{})),cvt=O((()=>{})),lvt=O((()=>{})),uvt=O((()=>{})),dvt=O((()=>{})),fvt=O((()=>{})),pvt=O((()=>{})),mvt=O((()=>{})),hvt=O((()=>{})),gvt=O((()=>{})),_vt=O((()=>{})),vvt=O((()=>{})),yvt=O((()=>{})),bvt=O((()=>{})),xvt=O((()=>{})),Svt=O((()=>{})),Cvt=O((()=>{})),wvt=O((()=>{})),Tvt=O((()=>{})),Evt=O((()=>{})),Dvt=O((()=>{})),Ovt=O((()=>{})),kvt=O((()=>{})),Avt=O((()=>{})),jvt=O((()=>{})),Mvt=O((()=>{})),Nvt=O((()=>{})),Pvt=O((()=>{})),Fvt=O((()=>{})),Ivt=O((()=>{})),Lvt=O((()=>{})),Rvt=O((()=>{})),zvt=O((()=>{})),Bvt=O((()=>{})),Vvt=O((()=>{})),Hvt=O((()=>{})),Uvt=O((()=>{})),Wvt=O((()=>{})),Gvt=O((()=>{})),Kvt=O((()=>{})),qvt=O((()=>{})),Jvt=O((()=>{})),Yvt=O((()=>{})),Xvt=O((()=>{})),Zvt=O((()=>{})),Qvt=O((()=>{})),$vt=O((()=>{})),eyt=O((()=>{})),tyt=O((()=>{})),nyt=O((()=>{})),ryt=O((()=>{})),iyt=O((()=>{})),ayt=O((()=>{})),oyt=O((()=>{})),syt=O((()=>{})),cyt=O((()=>{})),lyt=O((()=>{})),uyt=O((()=>{})),dyt=O((()=>{})),fyt=O((()=>{})),pyt=O((()=>{})),myt=O((()=>{})),hyt=O((()=>{})),gyt=O((()=>{})),_yt=O((()=>{})),vyt=O((()=>{})),yyt=O((()=>{})),byt=O((()=>{})),xyt=O((()=>{})),Syt=O((()=>{})),Cyt=O((()=>{})),wyt=O((()=>{})),Tyt=O((()=>{})),Eyt=O((()=>{})),Dyt=O((()=>{})),Oyt=O((()=>{})),kyt=O((()=>{})),Ayt=O((()=>{})),jyt=O((()=>{})),Myt=O((()=>{})),Nyt=O((()=>{})),Pyt=O((()=>{})),Fyt=O((()=>{})),Iyt=O((()=>{})),Lyt=O((()=>{})),Ryt=O((()=>{})),zyt=O((()=>{})),Byt=O((()=>{})),Vyt=O((()=>{})),Hyt=O((()=>{})),Uyt=O((()=>{})),Wyt=O((()=>{})),Gyt=O((()=>{})),Kyt=O((()=>{})),qyt=O((()=>{})),Jyt=O((()=>{})),Yyt=O((()=>{})),Xyt=O((()=>{})),Zyt=O((()=>{})),Qyt=O((()=>{})),$yt=O((()=>{})),ebt=O((()=>{})),tbt=O((()=>{})),nbt=O((()=>{})),rbt=O((()=>{})),ibt=O((()=>{})),abt=O((()=>{})),obt=O((()=>{})),sbt=O((()=>{})),cbt=O((()=>{})),lbt=O((()=>{})),ubt=O((()=>{})),dbt=O((()=>{})),fbt=O((()=>{})),pbt=O((()=>{})),mbt=O((()=>{})),hbt=O((()=>{})),gbt=O((()=>{})),_bt=O((()=>{})),vbt=O((()=>{})),ybt=O((()=>{})),bbt=O((()=>{})),xbt=O((()=>{})),Sbt=O((()=>{})),Cbt=O((()=>{})),wbt=O((()=>{})),Tbt=O((()=>{})),Ebt=O((()=>{})),Dbt=O((()=>{})),Obt=O((()=>{})),kbt=O((()=>{})),Abt=O((()=>{})),jbt=O((()=>{})),Mbt=O((()=>{})),Nbt=O((()=>{})),Pbt=O((()=>{})),Fbt=O((()=>{})),Ibt=O((()=>{})),Lbt=O((()=>{})),Rbt=O((()=>{})),zbt=O((()=>{})),Bbt=O((()=>{})),Vbt=O((()=>{})),Hbt=O((()=>{})),Ubt=O((()=>{})),Wbt=O((()=>{})),Gbt=O((()=>{})),Kbt=O((()=>{})),qbt=O((()=>{})),Jbt=O((()=>{})),Ybt=O((()=>{})),Xbt=O((()=>{})),Zbt=O((()=>{})),Qbt=O((()=>{})),$bt=O((()=>{})),ext=O((()=>{})),txt=O((()=>{})),nxt=O((()=>{})),rxt=O((()=>{})),ixt=O((()=>{})),axt=O((()=>{})),oxt=O((()=>{})),sxt=O((()=>{})),cxt=O((()=>{})),lxt=O((()=>{})),uxt=O((()=>{})),dxt=O((()=>{})),fxt=O((()=>{})),pxt=O((()=>{})),mxt=O((()=>{})),hxt=O((()=>{})),gxt=O((()=>{})),_xt=O((()=>{})),vxt=O((()=>{})),yxt=O((()=>{})),bxt=O((()=>{})),xxt=O((()=>{})),Sxt=O((()=>{})),Cxt=O((()=>{})),wxt=O((()=>{})),Txt=O((()=>{})),Ext=O((()=>{})),Dxt=O((()=>{})),Oxt=O((()=>{})),kxt=O((()=>{})),Axt=O((()=>{})),jxt=O((()=>{})),Mxt=O((()=>{})),Nxt=O((()=>{})),Pxt=O((()=>{})),Fxt=O((()=>{})),Ixt=O((()=>{})),Lxt=O((()=>{})),Rxt=O((()=>{})),zxt=O((()=>{})),Bxt=O((()=>{})),Vxt=O((()=>{})),Hxt=O((()=>{})),Uxt=O((()=>{})),Wxt=O((()=>{})),Gxt=O((()=>{})),Kxt=O((()=>{})),qxt=O((()=>{})),Jxt=O((()=>{})),Yxt=O((()=>{})),Xxt=O((()=>{})),Zxt=O((()=>{})),Qxt=O((()=>{})),$xt=O((()=>{})),eSt=O((()=>{})),tSt=O((()=>{})),nSt=O((()=>{})),rSt=O((()=>{})),iSt=O((()=>{})),aSt=O((()=>{})),oSt=O((()=>{})),sSt=O((()=>{})),cSt=O((()=>{})),lSt=O((()=>{})),uSt=O((()=>{})),dSt=O((()=>{})),fSt=O((()=>{})),pSt=O((()=>{})),mSt=O((()=>{})),hSt=O((()=>{})),gSt=O((()=>{})),_St=O((()=>{})),vSt=O((()=>{})),ySt=O((()=>{})),bSt=O((()=>{})),xSt=O((()=>{})),SSt=O((()=>{})),CSt=O((()=>{})),wSt=O((()=>{})),TSt=O((()=>{})),ESt=O((()=>{})),DSt=O((()=>{})),OSt=O((()=>{})),kSt=O((()=>{})),ASt=O((()=>{})),jSt=O((()=>{})),MSt=O((()=>{})),NSt=O((()=>{})),PSt=O((()=>{})),FSt=O((()=>{})),ISt=O((()=>{})),LSt=O((()=>{})),RSt=O((()=>{})),zSt=O((()=>{})),BSt=O((()=>{})),VSt=O((()=>{})),HSt=O((()=>{})),USt=O((()=>{})),WSt=O((()=>{})),GSt=O((()=>{})),KSt=O((()=>{})),qSt=O((()=>{})),JSt=O((()=>{})),YSt=O((()=>{})),XSt=O((()=>{})),ZSt=O((()=>{})),QSt=O((()=>{})),$St=O((()=>{})),eCt=O((()=>{})),tCt=O((()=>{})),nCt=O((()=>{})),rCt=O((()=>{})),iCt=O((()=>{})),aCt=O((()=>{})),oCt=O((()=>{})),sCt=O((()=>{})),cCt=O((()=>{})),lCt=O((()=>{})),uCt=O((()=>{})),dCt=O((()=>{})),fCt=O((()=>{})),pCt=O((()=>{})),mCt=O((()=>{})),hCt=O((()=>{})),gCt=O((()=>{})),_Ct=O((()=>{})),vCt=O((()=>{})),yCt=O((()=>{})),bCt=O((()=>{})),xCt=O((()=>{})),SCt=O((()=>{})),CCt=O((()=>{})),wCt=O((()=>{})),TCt=O((()=>{})),ECt=O((()=>{})),DCt=O((()=>{})),OCt=O((()=>{})),kCt=O((()=>{})),ACt=O((()=>{})),jCt=O((()=>{})),MCt=O((()=>{})),NCt=O((()=>{})),PCt=O((()=>{})),FCt=O((()=>{})),ICt=O((()=>{})),LCt=O((()=>{})),RCt=O((()=>{})),zCt=O((()=>{})),BCt=O((()=>{})),VCt=O((()=>{})),HCt=O((()=>{})),UCt=O((()=>{})),WCt=O((()=>{})),GCt=O((()=>{})),KCt=O((()=>{})),qCt=O((()=>{})),JCt=O((()=>{})),YCt=O((()=>{})),XCt=O((()=>{})),ZCt=O((()=>{})),QCt=O((()=>{})),$Ct=O((()=>{})),ewt=O((()=>{})),twt=O((()=>{})),nwt=O((()=>{})),rwt=O((()=>{})),iwt=O((()=>{})),awt=O((()=>{})),owt=O((()=>{})),swt=O((()=>{})),cwt=O((()=>{})),lwt=O((()=>{})),uwt=O((()=>{})),dwt=O((()=>{})),fwt=O((()=>{})),pwt=O((()=>{})),mwt=O((()=>{})),hwt=O((()=>{})),gwt=O((()=>{})),_wt=O((()=>{})),vwt=O((()=>{})),ywt=O((()=>{})),bwt=O((()=>{})),xwt=O((()=>{})),Swt=O((()=>{})),Cwt=O((()=>{})),wwt=O((()=>{})),Twt=O((()=>{})),Ewt=O((()=>{})),Dwt=O((()=>{})),Owt=O((()=>{})),kwt=O((()=>{})),Awt=O((()=>{})),jwt=O((()=>{})),Mwt=O((()=>{})),Nwt=O((()=>{})),Pwt=O((()=>{})),Fwt=O((()=>{})),Iwt=O((()=>{})),Lwt=O((()=>{})),Rwt=O((()=>{})),zwt=O((()=>{})),Bwt=O((()=>{})),Vwt=O((()=>{})),Hwt=O((()=>{})),Uwt=O((()=>{})),Wwt=O((()=>{})),Gwt=O((()=>{})),Kwt=O((()=>{})),qwt=O((()=>{})),Jwt=O((()=>{})),Ywt=O((()=>{})),Xwt=O((()=>{})),Zwt=O((()=>{})),Qwt=O((()=>{})),$wt=O((()=>{})),eTt=O((()=>{})),tTt=O((()=>{})),nTt=O((()=>{})),rTt=O((()=>{})),iTt=O((()=>{})),aTt=O((()=>{})),oTt=O((()=>{})),sTt=O((()=>{})),cTt=O((()=>{})),lTt=O((()=>{})),uTt=O((()=>{})),dTt=O((()=>{})),fTt=O((()=>{})),pTt=O((()=>{})),mTt=O((()=>{})),hTt=O((()=>{})),gTt=O((()=>{})),_Tt=O((()=>{})),vTt=O((()=>{})),yTt=O((()=>{})),bTt=O((()=>{})),xTt=O((()=>{})),STt=O((()=>{})),CTt=O((()=>{})),wTt=O((()=>{})),TTt=O((()=>{})),ETt=O((()=>{})),DTt=O((()=>{})),OTt=O((()=>{})),kTt=O((()=>{})),ATt=O((()=>{})),jTt=O((()=>{})),MTt=O((()=>{})),NTt=O((()=>{})),PTt=O((()=>{})),FTt=O((()=>{})),ITt=O((()=>{})),LTt=O((()=>{})),RTt=O((()=>{})),zTt=O((()=>{})),BTt=O((()=>{})),VTt=O((()=>{})),HTt=O((()=>{})),UTt=O((()=>{})),WTt=O((()=>{})),GTt=O((()=>{})),KTt=O((()=>{})),qTt=O((()=>{})),JTt=O((()=>{})),YTt=O((()=>{})),XTt=O((()=>{})),ZTt=O((()=>{})),QTt=O((()=>{})),$Tt=O((()=>{})),eEt=O((()=>{})),tEt=O((()=>{})),nEt=O((()=>{})),rEt=O((()=>{})),iEt=O((()=>{})),aEt=O((()=>{})),oEt=O((()=>{})),sEt=O((()=>{})),cEt=O((()=>{})),lEt=O((()=>{})),uEt=O((()=>{})),dEt=O((()=>{})),fEt=O((()=>{})),pEt=O((()=>{})),mEt=O((()=>{})),hEt=O((()=>{})),gEt=O((()=>{})),_Et=O((()=>{})),vEt=O((()=>{})),yEt=O((()=>{})),bEt=O((()=>{})),xEt=O((()=>{})),SEt=O((()=>{})),CEt=O((()=>{})),wEt=O((()=>{})),TEt=O((()=>{})),EEt=O((()=>{})),DEt=O((()=>{})),OEt=O((()=>{})),kEt=O((()=>{})),AEt=O((()=>{})),jEt=O((()=>{})),MEt=O((()=>{})),NEt=O((()=>{})),PEt=O((()=>{})),FEt=O((()=>{})),IEt=O((()=>{})),LEt=O((()=>{})),REt=O((()=>{})),zEt=O((()=>{})),BEt=O((()=>{})),VEt=O((()=>{})),HEt=O((()=>{})),UEt=O((()=>{})),WEt=O((()=>{})),GEt=O((()=>{})),KEt=O((()=>{})),qEt=O((()=>{})),JEt=O((()=>{})),YEt=O((()=>{})),XEt=O((()=>{})),ZEt=O((()=>{})),QEt=O((()=>{})),$Et=O((()=>{})),eDt=O((()=>{})),tDt=O((()=>{})),nDt=O((()=>{})),rDt=O((()=>{})),iDt=O((()=>{})),aDt=O((()=>{})),oDt=O((()=>{})),sDt=O((()=>{})),cDt=O((()=>{})),lDt=O((()=>{})),uDt=O((()=>{})),dDt=O((()=>{})),fDt=O((()=>{})),pDt=O((()=>{})),mDt=O((()=>{})),hDt=O((()=>{})),gDt=O((()=>{})),_Dt=O((()=>{})),vDt=O((()=>{})),yDt=O((()=>{})),bDt=O((()=>{})),xDt=O((()=>{})),SDt=O((()=>{})),CDt=O((()=>{})),wDt=O((()=>{})),TDt=O((()=>{})),EDt=O((()=>{})),DDt=O((()=>{})),ODt=O((()=>{})),kDt=O((()=>{})),ADt=O((()=>{})),jDt=O((()=>{})),MDt=O((()=>{})),NDt=O((()=>{})),PDt=O((()=>{})),FDt=O((()=>{})),IDt=O((()=>{})),LDt=O((()=>{})),RDt=O((()=>{})),zDt=O((()=>{})),BDt=O((()=>{})),VDt=O((()=>{})),HDt=O((()=>{})),UDt=O((()=>{})),WDt=O((()=>{})),GDt=O((()=>{})),KDt=O((()=>{})),qDt=O((()=>{})),JDt=O((()=>{})),YDt=O((()=>{})),XDt=O((()=>{})),ZDt=O((()=>{})),QDt=O((()=>{})),$Dt=O((()=>{})),eOt=O((()=>{})),tOt=O((()=>{})),nOt=O((()=>{})),rOt=O((()=>{})),iOt=O((()=>{})),aOt=O((()=>{})),oOt=O((()=>{})),sOt=O((()=>{})),cOt=O((()=>{})),lOt=O((()=>{})),uOt=O((()=>{})),dOt=O((()=>{})),fOt=O((()=>{})),pOt=O((()=>{})),mOt=O((()=>{})),hOt=O((()=>{})),gOt=O((()=>{})),_Ot=O((()=>{})),vOt=O((()=>{})),yOt=O((()=>{})),bOt=O((()=>{})),xOt=O((()=>{})),SOt=O((()=>{})),COt=O((()=>{})),wOt=O((()=>{})),TOt=O((()=>{})),EOt=O((()=>{})),DOt=O((()=>{})),OOt=O((()=>{})),kOt=O((()=>{})),AOt=O((()=>{})),jOt=O((()=>{})),MOt=O((()=>{})),NOt=O((()=>{})),POt=O((()=>{})),FOt=O((()=>{})),IOt=O((()=>{})),LOt=O((()=>{})),ROt=O((()=>{})),zOt=O((()=>{})),BOt=O((()=>{})),VOt=O((()=>{})),HOt=O((()=>{})),UOt=O((()=>{})),WOt=O((()=>{})),GOt=O((()=>{})),KOt=O((()=>{})),qOt=O((()=>{})),JOt=O((()=>{})),YOt=O((()=>{})),XOt=O((()=>{})),ZOt=O((()=>{})),QOt=O((()=>{})),$Ot=O((()=>{})),ekt=O((()=>{})),tkt=O((()=>{})),nkt=O((()=>{})),rkt=O((()=>{})),ikt=O((()=>{})),akt=O((()=>{})),okt=O((()=>{})),skt=O((()=>{})),ckt=O((()=>{})),lkt=O((()=>{})),ukt=O((()=>{})),dkt=O((()=>{})),fkt=O((()=>{})),pkt=O((()=>{})),mkt=O((()=>{})),hkt=O((()=>{})),gkt=O((()=>{})),_kt=O((()=>{})),vkt=O((()=>{})),ykt=O((()=>{})),bkt=O((()=>{})),xkt=O((()=>{})),Skt=O((()=>{})),Ckt=O((()=>{})),wkt=O((()=>{})),Tkt=O((()=>{})),Ekt=O((()=>{})),Dkt=O((()=>{})),Okt=O((()=>{})),kkt=O((()=>{})),Akt=O((()=>{})),jkt=O((()=>{})),Mkt=O((()=>{})),Nkt=O((()=>{})),Pkt=O((()=>{})),Fkt=O((()=>{})),Ikt=O((()=>{})),Lkt=O((()=>{})),Rkt=O((()=>{})),zkt=O((()=>{})),Bkt=O((()=>{})),Vkt=O((()=>{})),Hkt=O((()=>{})),Ukt=O((()=>{})),Wkt=O((()=>{})),Gkt=O((()=>{})),Kkt=O((()=>{})),qkt=O((()=>{})),Jkt=O((()=>{})),Ykt=O((()=>{})),Xkt=O((()=>{})),Zkt=O((()=>{})),Qkt=O((()=>{})),$kt=O((()=>{})),eAt=O((()=>{})),tAt=O((()=>{})),nAt=O((()=>{})),rAt=O((()=>{})),iAt=O((()=>{})),aAt=O((()=>{})),oAt=O((()=>{})),sAt=O((()=>{})),cAt=O((()=>{})),lAt=O((()=>{})),uAt=O((()=>{})),dAt=O((()=>{})),fAt=O((()=>{})),pAt=O((()=>{})),mAt=O((()=>{})),hAt=O((()=>{})),gAt=O((()=>{})),_At=O((()=>{})),vAt=O((()=>{})),yAt=O((()=>{})),bAt=O((()=>{})),xAt=O((()=>{})),SAt=O((()=>{})),CAt=O((()=>{})),wAt=O((()=>{})),TAt=O((()=>{})),EAt=O((()=>{})),DAt=O((()=>{})),OAt=O((()=>{})),kAt=O((()=>{})),AAt=O((()=>{})),jAt=O((()=>{})),MAt=O((()=>{})),NAt=O((()=>{})),PAt=O((()=>{})),FAt=O((()=>{})),IAt=O((()=>{})),LAt=O((()=>{})),RAt=O((()=>{})),zAt=O((()=>{})),BAt=O((()=>{})),VAt=O((()=>{})),HAt=O((()=>{})),UAt=O((()=>{})),WAt=O((()=>{})),GAt=O((()=>{})),KAt=O((()=>{})),qAt=O((()=>{})),JAt=O((()=>{})),YAt=O((()=>{})),XAt=O((()=>{})),ZAt=O((()=>{})),QAt=O((()=>{})),$At=O((()=>{})),ejt=O((()=>{})),tjt=O((()=>{})),njt=O((()=>{})),rjt=O((()=>{})),ijt=O((()=>{})),ajt=O((()=>{})),ojt=O((()=>{})),sjt=O((()=>{})),cjt=O((()=>{})),ljt=O((()=>{})),ujt=O((()=>{})),djt=O((()=>{})),fjt=O((()=>{})),pjt=O((()=>{})),mjt=O((()=>{})),hjt=O((()=>{})),gjt=O((()=>{})),_jt=O((()=>{})),vjt=O((()=>{})),yjt=O((()=>{})),bjt=O((()=>{})),xjt=O((()=>{})),Sjt=O((()=>{})),Cjt=O((()=>{})),wjt=O((()=>{})),Tjt=O((()=>{})),Ejt=O((()=>{})),Djt=O((()=>{})),Ojt=O((()=>{})),kjt=O((()=>{})),Ajt=O((()=>{})),jjt=O((()=>{})),Mjt=O((()=>{})),Njt=O((()=>{})),Pjt=O((()=>{})),Fjt=O((()=>{})),Ijt=O((()=>{})),Ljt=O((()=>{})),Rjt=O((()=>{})),zjt=O((()=>{})),Bjt=O((()=>{})),Vjt=O((()=>{})),Hjt=O((()=>{})),Ujt=O((()=>{})),Wjt=O((()=>{})),Gjt=O((()=>{})),Kjt=O((()=>{})),qjt=O((()=>{})),Jjt=O((()=>{})),Yjt=O((()=>{})),Xjt=O((()=>{})),Zjt=O((()=>{})),Qjt=O((()=>{})),$jt=O((()=>{})),eMt=O((()=>{})),tMt=O((()=>{})),nMt=O((()=>{})),rMt=O((()=>{})),iMt=O((()=>{})),aMt=O((()=>{})),oMt=O((()=>{})),sMt=O((()=>{})),cMt=O((()=>{})),lMt=O((()=>{})),uMt=O((()=>{})),dMt=O((()=>{})),fMt=O((()=>{})),pMt=O((()=>{})),mMt=O((()=>{})),hMt=O((()=>{})),gMt=O((()=>{})),_Mt=O((()=>{})),vMt=O((()=>{})),yMt=O((()=>{})),bMt=O((()=>{})),xMt=O((()=>{})),SMt=O((()=>{})),CMt=O((()=>{})),wMt=O((()=>{})),TMt=O((()=>{})),EMt=O((()=>{})),DMt=O((()=>{})),OMt=O((()=>{})),kMt=O((()=>{})),AMt=O((()=>{})),jMt=O((()=>{})),MMt=O((()=>{})),NMt=O((()=>{})),PMt=O((()=>{})),FMt=O((()=>{})),IMt=O((()=>{})),LMt=O((()=>{})),RMt=O((()=>{})),zMt=O((()=>{})),BMt=O((()=>{})),VMt=O((()=>{})),HMt=O((()=>{})),UMt=O((()=>{})),WMt=O((()=>{})),GMt=O((()=>{})),KMt=O((()=>{})),qMt=O((()=>{})),JMt=O((()=>{})),YMt=O((()=>{})),XMt=O((()=>{})),ZMt=O((()=>{})),QMt=O((()=>{})),$Mt=O((()=>{})),eNt=O((()=>{})),tNt=O((()=>{})),nNt=O((()=>{})),rNt=O((()=>{})),iNt=O((()=>{})),aNt=O((()=>{})),oNt=O((()=>{})),sNt=O((()=>{})),cNt=O((()=>{})),lNt=O((()=>{})),uNt=O((()=>{})),dNt=O((()=>{})),fNt=O((()=>{})),pNt=O((()=>{})),mNt=O((()=>{})),hNt=O((()=>{})),gNt=O((()=>{})),_Nt=O((()=>{})),vNt=O((()=>{})),yNt=O((()=>{})),bNt=O((()=>{})),xNt=O((()=>{})),SNt=O((()=>{})),CNt=O((()=>{})),wNt=O((()=>{})),TNt=O((()=>{})),ENt=O((()=>{})),DNt=O((()=>{})),ONt=O((()=>{})),kNt=O((()=>{})),ANt=O((()=>{})),jNt=O((()=>{})),MNt=O((()=>{})),NNt=O((()=>{})),PNt=O((()=>{})),FNt=O((()=>{})),INt=O((()=>{})),LNt=O((()=>{})),RNt=O((()=>{})),zNt=O((()=>{})),BNt=O((()=>{})),VNt=O((()=>{})),HNt=O((()=>{})),UNt=O((()=>{})),WNt=O((()=>{})),GNt=O((()=>{})),KNt=O((()=>{})),qNt=O((()=>{})),JNt=O((()=>{})),YNt=O((()=>{})),XNt=O((()=>{})),ZNt=O((()=>{})),QNt=O((()=>{})),$Nt=O((()=>{})),ePt=O((()=>{})),tPt=O((()=>{})),nPt=O((()=>{})),rPt=O((()=>{})),iPt=O((()=>{})),aPt=O((()=>{})),oPt=O((()=>{})),sPt=O((()=>{})),cPt=O((()=>{})),lPt=O((()=>{})),uPt=O((()=>{})),dPt=O((()=>{})),fPt=O((()=>{})),pPt=O((()=>{})),mPt=O((()=>{})),hPt=O((()=>{})),gPt=O((()=>{})),_Pt=O((()=>{})),vPt=O((()=>{})),yPt=O((()=>{})),bPt=O((()=>{})),xPt=O((()=>{})),SPt=O((()=>{})),CPt=O((()=>{})),wPt=O((()=>{})),TPt=O((()=>{})),EPt=O((()=>{})),DPt=O((()=>{})),OPt=O((()=>{})),kPt=O((()=>{})),APt=O((()=>{})),jPt=O((()=>{})),MPt=O((()=>{})),NPt=O((()=>{})),PPt=O((()=>{})),FPt=O((()=>{})),IPt=O((()=>{})),LPt=O((()=>{})),RPt=O((()=>{})),zPt=O((()=>{})),BPt=O((()=>{})),VPt=O((()=>{})),HPt=O((()=>{})),UPt=O((()=>{})),WPt=O((()=>{})),GPt=O((()=>{})),KPt=O((()=>{})),qPt=O((()=>{})),JPt=O((()=>{})),YPt=O((()=>{})),XPt=O((()=>{})),ZPt=O((()=>{})),QPt=O((()=>{})),$Pt=O((()=>{})),eFt=O((()=>{})),tFt=O((()=>{})),nFt=O((()=>{})),rFt=O((()=>{})),iFt=O((()=>{})),aFt=O((()=>{})),oFt=O((()=>{})),sFt=O((()=>{})),cFt=O((()=>{})),lFt=O((()=>{})),uFt=O((()=>{})),dFt=O((()=>{})),fFt=O((()=>{})),pFt=O((()=>{})),mFt=O((()=>{})),hFt=O((()=>{})),gFt=O((()=>{})),_Ft=O((()=>{})),vFt=O((()=>{})),yFt=O((()=>{})),bFt=O((()=>{})),xFt=O((()=>{})),SFt=O((()=>{})),CFt=O((()=>{})),wFt=O((()=>{})),TFt=O((()=>{})),EFt=O((()=>{})),DFt=O((()=>{})),OFt=O((()=>{})),kFt=O((()=>{})),AFt=O((()=>{})),jFt=O((()=>{})),MFt=O((()=>{})),NFt=O((()=>{})),PFt=O((()=>{})),FFt=O((()=>{})),IFt=O((()=>{})),LFt=O((()=>{})),RFt=O((()=>{})),zFt=O((()=>{})),BFt=O((()=>{})),VFt=O((()=>{})),HFt=O((()=>{})),UFt=O((()=>{})),WFt=O((()=>{})),GFt=O((()=>{})),KFt=O((()=>{})),qFt=O((()=>{})),JFt=O((()=>{})),YFt=O((()=>{})),XFt=O((()=>{})),ZFt=O((()=>{})),QFt=O((()=>{})),$Ft=O((()=>{})),eIt=O((()=>{})),tIt=O((()=>{})),nIt=O((()=>{})),rIt=O((()=>{})),iIt=O((()=>{})),aIt=O((()=>{})),oIt=O((()=>{})),sIt=O((()=>{})),cIt=O((()=>{})),lIt=O((()=>{})),uIt=O((()=>{})),dIt=O((()=>{})),fIt=O((()=>{})),pIt=O((()=>{})),mIt=O((()=>{})),hIt=O((()=>{})),gIt=O((()=>{})),_It=O((()=>{})),vIt=O((()=>{})),yIt=O((()=>{})),bIt=O((()=>{})),xIt=O((()=>{})),SIt=O((()=>{})),CIt=O((()=>{})),wIt=O((()=>{})),TIt=O((()=>{})),EIt=O((()=>{})),DIt=O((()=>{})),OIt=O((()=>{})),kIt=O((()=>{})),AIt=O((()=>{})),jIt=O((()=>{})),MIt=O((()=>{})),NIt=O((()=>{})),PIt=O((()=>{})),FIt=O((()=>{})),IIt=O((()=>{})),LIt=O((()=>{})),RIt=O((()=>{})),zIt=O((()=>{})),BIt=O((()=>{})),VIt=O((()=>{})),HIt=O((()=>{})),UIt=O((()=>{})),WIt=O((()=>{})),GIt=O((()=>{})),KIt=O((()=>{})),qIt=O((()=>{})),JIt=O((()=>{})),YIt=O((()=>{})),XIt=O((()=>{})),ZIt=O((()=>{})),QIt=O((()=>{})),$It=O((()=>{})),eLt=O((()=>{})),tLt=O((()=>{})),nLt=O((()=>{})),rLt=O((()=>{})),iLt=O((()=>{})),aLt=O((()=>{})),oLt=O((()=>{})),sLt=O((()=>{})),cLt=O((()=>{})),lLt=O((()=>{})),uLt=O((()=>{})),dLt=O((()=>{})),fLt=O((()=>{})),pLt=O((()=>{})),mLt=O((()=>{})),hLt=O((()=>{})),gLt=O((()=>{})),_Lt=O((()=>{})),vLt=O((()=>{})),yLt=O((()=>{})),bLt=O((()=>{})),xLt=O((()=>{})),SLt=O((()=>{})),CLt=O((()=>{})),wLt=O((()=>{})),TLt=O((()=>{})),ELt=O((()=>{})),DLt=O((()=>{})),OLt=O((()=>{})),kLt=O((()=>{})),ALt=O((()=>{})),jLt=O((()=>{})),MLt=O((()=>{})),NLt=O((()=>{})),PLt=O((()=>{})),FLt=O((()=>{})),ILt=O((()=>{})),LLt=O((()=>{})),RLt=O((()=>{})),zLt=O((()=>{})),BLt=O((()=>{})),VLt=O((()=>{})),HLt=O((()=>{})),ULt=O((()=>{})),WLt=O((()=>{})),GLt=O((()=>{})),KLt=O((()=>{})),qLt=O((()=>{})),JLt=O((()=>{})),YLt=O((()=>{})),XLt=O((()=>{})),ZLt=O((()=>{})),QLt=O((()=>{})),$Lt=O((()=>{})),eRt=O((()=>{})),tRt=O((()=>{})),nRt=O((()=>{})),rRt=O((()=>{})),iRt=O((()=>{})),aRt=O((()=>{})),oRt=O((()=>{})),sRt=O((()=>{})),cRt=O((()=>{})),lRt=O((()=>{})),uRt=O((()=>{})),dRt=O((()=>{})),fRt=O((()=>{})),pRt=O((()=>{})),mRt=O((()=>{})),hRt=O((()=>{})),gRt=O((()=>{})),_Rt=O((()=>{})),vRt=O((()=>{})),yRt=O((()=>{})),bRt=O((()=>{})),xRt=O((()=>{})),SRt=O((()=>{})),CRt=O((()=>{})),wRt=O((()=>{})),TRt=O((()=>{})),ERt=O((()=>{})),DRt=O((()=>{})),ORt=O((()=>{})),kRt=O((()=>{})),ARt=O((()=>{})),jRt=O((()=>{})),MRt=O((()=>{})),NRt=O((()=>{})),PRt=O((()=>{})),FRt=O((()=>{})),IRt=O((()=>{})),LRt=O((()=>{})),RRt=O((()=>{})),zRt=O((()=>{})),BRt=O((()=>{})),VRt=O((()=>{})),HRt=O((()=>{})),URt=O((()=>{})),WRt=O((()=>{})),GRt=O((()=>{})),KRt=O((()=>{})),qRt=O((()=>{})),JRt=O((()=>{})),YRt=O((()=>{})),XRt=O((()=>{})),ZRt=O((()=>{})),QRt=O((()=>{})),$Rt=O((()=>{})),ezt=O((()=>{})),tzt=O((()=>{})),nzt=O((()=>{})),rzt=O((()=>{})),izt=O((()=>{})),azt=O((()=>{})),ozt=O((()=>{})),szt=O((()=>{})),czt=O((()=>{})),lzt=O((()=>{})),uzt=O((()=>{})),dzt=O((()=>{})),fzt=O((()=>{})),pzt=O((()=>{})),mzt=O((()=>{})),hzt=O((()=>{})),gzt=O((()=>{})),_zt=O((()=>{})),vzt=O((()=>{})),yzt=O((()=>{})),bzt=O((()=>{})),xzt=O((()=>{})),Szt=O((()=>{})),Czt=O((()=>{})),wzt=O((()=>{})),Tzt=O((()=>{})),Ezt=O((()=>{})),Dzt=O((()=>{})),Ozt=O((()=>{})),kzt=O((()=>{})),Azt=O((()=>{})),jzt=O((()=>{})),Mzt=O((()=>{})),Nzt=O((()=>{})),Pzt=O((()=>{})),Fzt=O((()=>{})),Izt=O((()=>{})),Lzt=O((()=>{})),Rzt=O((()=>{})),zzt=O((()=>{})),Bzt=O((()=>{})),Vzt=O((()=>{})),Hzt=O((()=>{})),Uzt=O((()=>{})),Wzt=O((()=>{})),Gzt=O((()=>{})),Kzt=O((()=>{})),qzt=O((()=>{})),Jzt=O((()=>{})),Yzt=O((()=>{})),Xzt=O((()=>{})),Zzt=O((()=>{})),Qzt=O((()=>{})),$zt=O((()=>{})),eBt=O((()=>{})),tBt=O((()=>{})),nBt=O((()=>{})),rBt=O((()=>{})),iBt=O((()=>{})),aBt=O((()=>{})),oBt=O((()=>{})),sBt=O((()=>{})),cBt=O((()=>{})),lBt=O((()=>{})),uBt=O((()=>{})),dBt=O((()=>{})),fBt=O((()=>{})),pBt=O((()=>{})),mBt=O((()=>{})),hBt=O((()=>{})),gBt=O((()=>{})),_Bt=O((()=>{})),vBt=O((()=>{})),yBt=O((()=>{})),bBt=O((()=>{})),xBt=O((()=>{})),SBt=O((()=>{})),CBt=O((()=>{})),wBt=O((()=>{})),TBt=O((()=>{})),EBt=O((()=>{})),DBt=O((()=>{})),OBt=O((()=>{})),kBt=O((()=>{})),ABt=O((()=>{})),jBt=O((()=>{})),MBt=O((()=>{})),NBt=O((()=>{})),PBt=O((()=>{})),FBt=O((()=>{})),IBt=O((()=>{})),LBt=O((()=>{})),RBt=O((()=>{})),zBt=O((()=>{})),BBt=O((()=>{})),VBt=O((()=>{})),HBt=O((()=>{})),UBt=O((()=>{})),WBt=O((()=>{})),GBt=O((()=>{})),KBt=O((()=>{})),qBt=O((()=>{})),JBt=O((()=>{})),YBt=O((()=>{})),XBt=O((()=>{})),ZBt=O((()=>{})),QBt=O((()=>{})),$Bt=O((()=>{})),eVt=O((()=>{})),tVt=O((()=>{})),nVt=O((()=>{})),rVt=O((()=>{})),iVt=O((()=>{})),aVt=O((()=>{})),oVt=O((()=>{})),sVt=O((()=>{})),cVt=O((()=>{})),lVt=O((()=>{})),uVt=O((()=>{})),dVt=O((()=>{})),fVt=O((()=>{})),pVt=O((()=>{})),mVt=O((()=>{})),hVt=O((()=>{})),gVt=O((()=>{})),_Vt=O((()=>{})),vVt=O((()=>{})),yVt=O((()=>{})),bVt=O((()=>{})),xVt=O((()=>{})),SVt=O((()=>{})),CVt=O((()=>{})),wVt=O((()=>{})),TVt=O((()=>{})),EVt=O((()=>{})),DVt=O((()=>{})),OVt=O((()=>{})),kVt=O((()=>{})),AVt=O((()=>{})),jVt=O((()=>{})),MVt=O((()=>{})),NVt=O((()=>{})),PVt=O((()=>{})),FVt=O((()=>{})),IVt=O((()=>{})),LVt=O((()=>{})),RVt=O((()=>{})),zVt=O((()=>{})),BVt=O((()=>{})),VVt=O((()=>{})),HVt=O((()=>{})),UVt=O((()=>{})),WVt=O((()=>{})),GVt=O((()=>{})),KVt=O((()=>{})),qVt=O((()=>{})),JVt=O((()=>{})),YVt=O((()=>{})),XVt=O((()=>{})),ZVt=O((()=>{})),QVt=O((()=>{})),$Vt=O((()=>{})),eHt=O((()=>{})),tHt=O((()=>{})),nHt=O((()=>{})),rHt=O((()=>{})),iHt=O((()=>{})),aHt=O((()=>{})),oHt=O((()=>{})),sHt=O((()=>{})),cHt=O((()=>{})),lHt=O((()=>{})),uHt=O((()=>{})),dHt=O((()=>{})),fHt=O((()=>{})),pHt=O((()=>{})),mHt=O((()=>{})),hHt=O((()=>{})),gHt=O((()=>{})),_Ht=O((()=>{})),vHt=O((()=>{})),yHt=O((()=>{})),bHt=O((()=>{})),xHt=O((()=>{})),SHt=O((()=>{})),CHt=O((()=>{})),wHt=O((()=>{})),THt=O((()=>{})),EHt=O((()=>{})),DHt=O((()=>{})),OHt=O((()=>{})),kHt=O((()=>{})),AHt=O((()=>{})),jHt=O((()=>{})),MHt=O((()=>{})),NHt=O((()=>{})),PHt=O((()=>{})),FHt=O((()=>{})),IHt=O((()=>{})),LHt=O((()=>{})),RHt=O((()=>{})),zHt=O((()=>{})),BHt=O((()=>{})),VHt=O((()=>{})),HHt=O((()=>{})),UHt=O((()=>{})),WHt=O((()=>{})),GHt=O((()=>{})),KHt=O((()=>{})),qHt=O((()=>{})),JHt=O((()=>{})),YHt=O((()=>{})),XHt=O((()=>{})),ZHt=O((()=>{})),QHt=O((()=>{})),$Ht=O((()=>{})),eUt=O((()=>{})),tUt=O((()=>{})),nUt=O((()=>{})),rUt=O((()=>{})),iUt=O((()=>{})),aUt=O((()=>{})),oUt=O((()=>{})),sUt=O((()=>{})),cUt=O((()=>{})),lUt=O((()=>{})),uUt=O((()=>{})),dUt=O((()=>{})),fUt=O((()=>{})),pUt=O((()=>{})),mUt=O((()=>{})),hUt=O((()=>{})),gUt=O((()=>{})),_Ut=O((()=>{})),vUt=O((()=>{})),yUt=O((()=>{})),bUt=O((()=>{})),xUt=O((()=>{})),SUt=O((()=>{})),CUt=O((()=>{Yit(),Xit(),Zit(),Qit(),$it(),eat(),tat(),nat(),rat(),iat(),aat(),oat(),sat(),cat(),lat(),uat(),dat(),fat(),pat(),mat(),hat(),gat(),_at(),vat(),yat(),bat(),xat(),Sat(),Cat(),wat(),Tat(),Eat(),Dat(),Oat(),kat(),Aat(),jat(),Mat(),Nat(),Pat(),Fat(),Iat(),Lat(),Rat(),zat(),Bat(),Vat(),Hat(),Uat(),Wat(),Gat(),Kat(),qat(),Jat(),Yat(),Xat(),Zat(),Qat(),$at(),eot(),tot(),not(),rot(),iot(),aot(),oot(),sot(),cot(),lot(),uot(),dot(),fot(),pot(),mot(),hot(),got(),_ot(),vot(),yot(),bot(),xot(),Sot(),Cot(),wot(),Tot(),Eot(),Dot(),Oot(),kot(),Aot(),jot(),Mot(),Not(),Pot(),Fot(),Iot(),Lot(),Rot(),zot(),Bot(),Vot(),Hot(),Uot(),Wot(),Got(),Kot(),qot(),Jot(),Yot(),Xot(),Zot(),Qot(),$ot(),est(),tst(),nst(),rst(),ist(),ast(),ost(),sst(),cst(),lst(),ust(),dst(),fst(),pst(),mst(),hst(),gst(),_st(),vst(),yst(),bst(),xst(),Sst(),Cst(),wst(),Tst(),Est(),Dst(),Ost(),kst(),Ast(),jst(),Mst(),Nst(),Pst(),Fst(),Ist(),Lst(),Rst(),zst(),Bst(),Vst(),Hst(),Ust(),Wst(),Gst(),Kst(),qst(),Jst(),Yst(),Xst(),Zst(),Qst(),$st(),ect(),tct(),nct(),rct(),ict(),act(),oct(),sct(),cct(),lct(),uct(),dct(),fct(),pct(),mct(),hct(),gct(),_ct(),vct(),yct(),bct(),xct(),Sct(),Cct(),wct(),Tct(),Ect(),Dct(),Oct(),kct(),Act(),jct(),Mct(),Nct(),Pct(),Fct(),Ict(),Lct(),Rct(),zct(),Bct(),Vct(),Hct(),Uct(),Wct(),Gct(),Kct(),qct(),Jct(),Yct(),Xct(),Zct(),Qct(),$ct(),elt(),tlt(),nlt(),rlt(),ilt(),alt(),olt(),slt(),clt(),llt(),ult(),dlt(),flt(),plt(),mlt(),hlt(),glt(),_lt(),vlt(),ylt(),blt(),xlt(),Slt(),Clt(),wlt(),Tlt(),Elt(),Dlt(),Olt(),klt(),Alt(),jlt(),Mlt(),Nlt(),Plt(),Flt(),Ilt(),Llt(),Rlt(),zlt(),Blt(),Vlt(),Hlt(),Ult(),Wlt(),Glt(),Klt(),qlt(),Jlt(),Ylt(),Xlt(),Zlt(),Qlt(),$lt(),eut(),tut(),nut(),rut(),iut(),aut(),out(),sut(),cut(),lut(),uut(),dut(),fut(),put(),mut(),hut(),gut(),_ut(),vut(),yut(),but(),xut(),Sut(),Cut(),wut(),Tut(),Eut(),Dut(),Out(),kut(),Aut(),jut(),Mut(),Nut(),Put(),Fut(),Iut(),Lut(),Rut(),zut(),But(),Vut(),Hut(),Uut(),Wut(),Gut(),Kut(),qut(),Jut(),Yut(),Xut(),Zut(),Qut(),$ut(),edt(),tdt(),ndt(),rdt(),idt(),adt(),odt(),sdt(),cdt(),ldt(),udt(),ddt(),fdt(),pdt(),mdt(),hdt(),gdt(),_dt(),vdt(),ydt(),bdt(),xdt(),Sdt(),Cdt(),wdt(),Tdt(),Edt(),Ddt(),Odt(),kdt(),Adt(),jdt(),Mdt(),Ndt(),Pdt(),Fdt(),Idt(),Ldt(),Rdt(),zdt(),Bdt(),Vdt(),Hdt(),Udt(),Wdt(),Gdt(),Kdt(),qdt(),Jdt(),Ydt(),Xdt(),Zdt(),Qdt(),$dt(),eft(),tft(),nft(),rft(),ift(),aft(),oft(),sft(),cft(),lft(),uft(),dft(),fft(),pft(),mft(),hft(),gft(),_ft(),vft(),yft(),bft(),xft(),Sft(),Cft(),wft(),Tft(),Eft(),Dft(),Oft(),kft(),Aft(),jft(),Mft(),Nft(),Pft(),Fft(),Ift(),Lft(),Rft(),zft(),Bft(),Vft(),Hft(),Uft(),Wft(),Gft(),Kft(),qft(),Jft(),Yft(),Xft(),Zft(),Qft(),$ft(),ept(),tpt(),npt(),rpt(),ipt(),apt(),opt(),spt(),cpt(),lpt(),upt(),dpt(),fpt(),ppt(),mpt(),hpt(),gpt(),_pt(),vpt(),ypt(),bpt(),xpt(),Spt(),Cpt(),wpt(),Tpt(),Ept(),Dpt(),Opt(),kpt(),Apt(),jpt(),Mpt(),Npt(),Ppt(),Fpt(),Ipt(),Lpt(),Rpt(),zpt(),Bpt(),Vpt(),Hpt(),Upt(),Wpt(),Gpt(),Kpt(),qpt(),Jpt(),Ypt(),Xpt(),Zpt(),Qpt(),$pt(),emt(),tmt(),nmt(),rmt(),imt(),amt(),omt(),smt(),cmt(),lmt(),umt(),dmt(),fmt(),pmt(),mmt(),hmt(),gmt(),_mt(),vmt(),ymt(),bmt(),xmt(),Smt(),Cmt(),wmt(),Tmt(),Emt(),Dmt(),Omt(),kmt(),Amt(),jmt(),Mmt(),Nmt(),Pmt(),Fmt(),Imt(),Lmt(),Rmt(),zmt(),Bmt(),Vmt(),Hmt(),Umt(),Wmt(),Gmt(),Kmt(),qmt(),Jmt(),Ymt(),Xmt(),Zmt(),Qmt(),$mt(),eht(),tht(),nht(),rht(),iht(),aht(),oht(),sht(),cht(),lht(),uht(),dht(),fht(),pht(),mht(),hht(),ght(),_ht(),vht(),yht(),bht(),xht(),Sht(),Cht(),wht(),Tht(),Eht(),Dht(),Oht(),kht(),Aht(),jht(),Mht(),Nht(),Pht(),Fht(),Iht(),Lht(),Rht(),zht(),Bht(),Vht(),Hht(),Uht(),Wht(),Ght(),Kht(),qht(),Jht(),Yht(),Xht(),Zht(),Qht(),$ht(),egt(),tgt(),ngt(),rgt(),igt(),agt(),ogt(),sgt(),cgt(),lgt(),ugt(),dgt(),fgt(),pgt(),mgt(),hgt(),ggt(),_gt(),vgt(),ygt(),bgt(),xgt(),Sgt(),Cgt(),wgt(),Tgt(),Egt(),Dgt(),Ogt(),kgt(),Agt(),jgt(),Mgt(),Ngt(),Pgt(),Fgt(),Igt(),Lgt(),Rgt(),zgt(),Bgt(),Vgt(),Hgt(),Ugt(),Wgt(),Ggt(),Kgt(),qgt(),Jgt(),Ygt(),Xgt(),Zgt(),Qgt(),$gt(),e_t(),t_t(),n_t(),r_t(),i_t(),a_t(),o_t(),s_t(),c_t(),l_t(),u_t(),d_t(),f_t(),p_t(),m_t(),h_t(),g_t(),__t(),v_t(),y_t(),b_t(),x_t(),S_t(),C_t(),w_t(),T_t(),E_t(),D_t(),O_t(),k_t(),A_t(),j_t(),M_t(),N_t(),P_t(),F_t(),I_t(),L_t(),R_t(),z_t(),B_t(),V_t(),H_t(),U_t(),W_t(),G_t(),K_t(),q_t(),J_t(),Y_t(),X_t(),Z_t(),Q_t(),$_t(),evt(),tvt(),nvt(),rvt(),ivt(),avt(),ovt(),svt(),cvt(),lvt(),uvt(),dvt(),fvt(),pvt(),mvt(),hvt(),gvt(),_vt(),vvt(),yvt(),bvt(),xvt(),Svt(),Cvt(),wvt(),Tvt(),Evt(),Dvt(),Ovt(),kvt(),Avt(),jvt(),Mvt(),Nvt(),Pvt(),Fvt(),Ivt(),Lvt(),Rvt(),zvt(),Bvt(),Vvt(),Hvt(),Uvt(),Wvt(),Gvt(),Kvt(),qvt(),Jvt(),Yvt(),Xvt(),Zvt(),Qvt(),$vt(),eyt(),tyt(),nyt(),ryt(),iyt(),ayt(),oyt(),syt(),cyt(),lyt(),uyt(),dyt(),fyt(),pyt(),myt(),hyt(),gyt(),_yt(),vyt(),yyt(),byt(),xyt(),Syt(),Cyt(),wyt(),Tyt(),Eyt(),Dyt(),Oyt(),kyt(),Ayt(),jyt(),Myt(),Nyt(),Pyt(),Fyt(),Iyt(),Lyt(),Ryt(),zyt(),Byt(),Vyt(),Hyt(),Uyt(),Wyt(),Gyt(),Kyt(),qyt(),Jyt(),Yyt(),Xyt(),Zyt(),Qyt(),$yt(),ebt(),tbt(),nbt(),rbt(),ibt(),abt(),obt(),sbt(),cbt(),lbt(),ubt(),dbt(),fbt(),pbt(),mbt(),hbt(),gbt(),_bt(),vbt(),ybt(),bbt(),xbt(),Sbt(),Cbt(),wbt(),Tbt(),Ebt(),Dbt(),Obt(),kbt(),Abt(),jbt(),Mbt(),Nbt(),Pbt(),Fbt(),Ibt(),Lbt(),Rbt(),zbt(),Bbt(),Vbt(),Hbt(),Ubt(),Wbt(),Gbt(),Kbt(),qbt(),Jbt(),Ybt(),Xbt(),Zbt(),Qbt(),$bt(),ext(),txt(),nxt(),rxt(),ixt(),axt(),oxt(),sxt(),cxt(),lxt(),uxt(),dxt(),fxt(),pxt(),mxt(),hxt(),gxt(),_xt(),vxt(),yxt(),bxt(),xxt(),Sxt(),Cxt(),wxt(),Txt(),Ext(),Dxt(),Oxt(),kxt(),Axt(),jxt(),Mxt(),Nxt(),Pxt(),Fxt(),Ixt(),Lxt(),Rxt(),zxt(),Bxt(),Vxt(),Hxt(),Uxt(),Wxt(),Gxt(),Kxt(),qxt(),Jxt(),Yxt(),Xxt(),Zxt(),Qxt(),$xt(),eSt(),tSt(),nSt(),rSt(),iSt(),aSt(),oSt(),sSt(),cSt(),lSt(),uSt(),dSt(),fSt(),pSt(),mSt(),hSt(),gSt(),_St(),vSt(),ySt(),bSt(),xSt(),SSt(),CSt(),wSt(),TSt(),ESt(),DSt(),OSt(),kSt(),ASt(),jSt(),MSt(),NSt(),PSt(),FSt(),ISt(),LSt(),RSt(),zSt(),BSt(),VSt(),HSt(),USt(),WSt(),GSt(),KSt(),qSt(),JSt(),YSt(),XSt(),ZSt(),QSt(),$St(),eCt(),tCt(),nCt(),rCt(),iCt(),aCt(),oCt(),sCt(),cCt(),lCt(),uCt(),dCt(),fCt(),pCt(),mCt(),hCt(),gCt(),_Ct(),vCt(),yCt(),bCt(),xCt(),SCt(),CCt(),wCt(),TCt(),ECt(),DCt(),OCt(),kCt(),ACt(),jCt(),MCt(),NCt(),PCt(),FCt(),ICt(),LCt(),RCt(),zCt(),BCt(),VCt(),HCt(),UCt(),WCt(),GCt(),KCt(),qCt(),JCt(),YCt(),XCt(),ZCt(),QCt(),$Ct(),ewt(),twt(),nwt(),rwt(),iwt(),awt(),owt(),swt(),cwt(),lwt(),uwt(),dwt(),fwt(),pwt(),mwt(),hwt(),gwt(),_wt(),vwt(),ywt(),bwt(),xwt(),Swt(),Cwt(),wwt(),Twt(),Ewt(),Dwt(),Owt(),kwt(),Awt(),jwt(),Mwt(),Nwt(),Pwt(),Fwt(),Iwt(),Lwt(),Rwt(),zwt(),Bwt(),Vwt(),Hwt(),Uwt(),Wwt(),Gwt(),Kwt(),qwt(),Jwt(),Ywt(),Xwt(),Zwt(),Qwt(),$wt(),eTt(),tTt(),nTt(),rTt(),iTt(),aTt(),oTt(),sTt(),cTt(),lTt(),uTt(),dTt(),fTt(),pTt(),mTt(),hTt(),gTt(),_Tt(),vTt(),yTt(),bTt(),xTt(),STt(),CTt(),wTt(),TTt(),ETt(),DTt(),OTt(),kTt(),ATt(),jTt(),MTt(),NTt(),PTt(),FTt(),ITt(),LTt(),RTt(),zTt(),BTt(),VTt(),HTt(),UTt(),WTt(),GTt(),KTt(),qTt(),JTt(),YTt(),XTt(),ZTt(),QTt(),$Tt(),eEt(),tEt(),nEt(),rEt(),iEt(),aEt(),oEt(),sEt(),cEt(),lEt(),uEt(),dEt(),fEt(),pEt(),mEt(),hEt(),gEt(),_Et(),vEt(),yEt(),bEt(),xEt(),SEt(),CEt(),wEt(),TEt(),EEt(),DEt(),OEt(),kEt(),AEt(),jEt(),MEt(),NEt(),PEt(),FEt(),IEt(),LEt(),REt(),zEt(),BEt(),VEt(),HEt(),UEt(),WEt(),GEt(),KEt(),qEt(),JEt(),YEt(),XEt(),ZEt(),QEt(),$Et(),eDt(),tDt(),nDt(),rDt(),iDt(),aDt(),oDt(),sDt(),cDt(),lDt(),uDt(),dDt(),fDt(),pDt(),mDt(),hDt(),gDt(),_Dt(),vDt(),yDt(),bDt(),xDt(),SDt(),CDt(),wDt(),TDt(),EDt(),DDt(),ODt(),kDt(),ADt(),jDt(),MDt(),NDt(),PDt(),FDt(),IDt(),LDt(),RDt(),zDt(),BDt(),VDt(),HDt(),UDt(),WDt(),GDt(),KDt(),qDt(),JDt(),YDt(),XDt(),ZDt(),QDt(),$Dt(),eOt(),tOt(),nOt(),rOt(),iOt(),aOt(),oOt(),sOt(),cOt(),lOt(),uOt(),dOt(),fOt(),pOt(),mOt(),hOt(),gOt(),_Ot(),vOt(),yOt(),bOt(),xOt(),SOt(),COt(),wOt(),TOt(),EOt(),DOt(),OOt(),kOt(),AOt(),jOt(),MOt(),NOt(),POt(),FOt(),IOt(),LOt(),ROt(),zOt(),BOt(),VOt(),HOt(),UOt(),WOt(),GOt(),KOt(),qOt(),JOt(),YOt(),XOt(),ZOt(),QOt(),$Ot(),ekt(),tkt(),nkt(),rkt(),ikt(),akt(),okt(),skt(),ckt(),lkt(),ukt(),dkt(),fkt(),pkt(),mkt(),hkt(),gkt(),_kt(),vkt(),ykt(),bkt(),xkt(),Skt(),Ckt(),wkt(),Tkt(),Ekt(),Dkt(),Okt(),kkt(),Akt(),jkt(),Mkt(),Nkt(),Pkt(),Fkt(),Ikt(),Lkt(),Rkt(),zkt(),Bkt(),Vkt(),Hkt(),Ukt(),Wkt(),Gkt(),Kkt(),qkt(),Jkt(),Ykt(),Xkt(),Zkt(),Qkt(),$kt(),eAt(),tAt(),nAt(),rAt(),iAt(),aAt(),oAt(),sAt(),cAt(),lAt(),uAt(),dAt(),fAt(),pAt(),mAt(),hAt(),gAt(),_At(),vAt(),yAt(),bAt(),xAt(),SAt(),CAt(),wAt(),TAt(),EAt(),DAt(),OAt(),kAt(),AAt(),jAt(),MAt(),NAt(),PAt(),FAt(),IAt(),LAt(),RAt(),zAt(),BAt(),VAt(),HAt(),UAt(),WAt(),GAt(),KAt(),qAt(),JAt(),YAt(),XAt(),ZAt(),QAt(),$At(),ejt(),tjt(),njt(),rjt(),ijt(),ajt(),ojt(),sjt(),cjt(),ljt(),ujt(),djt(),fjt(),pjt(),mjt(),hjt(),gjt(),_jt(),vjt(),yjt(),bjt(),xjt(),Sjt(),Cjt(),wjt(),Tjt(),Ejt(),Djt(),Ojt(),kjt(),Ajt(),jjt(),Mjt(),Njt(),Pjt(),Fjt(),Ijt(),Ljt(),Rjt(),zjt(),Bjt(),Vjt(),Hjt(),Ujt(),Wjt(),Gjt(),Kjt(),qjt(),Jjt(),Yjt(),Xjt(),Zjt(),Qjt(),$jt(),eMt(),tMt(),nMt(),rMt(),iMt(),aMt(),oMt(),sMt(),cMt(),lMt(),uMt(),dMt(),fMt(),pMt(),mMt(),hMt(),gMt(),_Mt(),vMt(),yMt(),bMt(),xMt(),SMt(),CMt(),wMt(),TMt(),EMt(),DMt(),OMt(),kMt(),AMt(),jMt(),MMt(),NMt(),PMt(),FMt(),IMt(),LMt(),RMt(),zMt(),BMt(),VMt(),HMt(),UMt(),WMt(),GMt(),KMt(),qMt(),JMt(),YMt(),XMt(),ZMt(),QMt(),$Mt(),eNt(),tNt(),nNt(),rNt(),iNt(),aNt(),oNt(),sNt(),cNt(),lNt(),uNt(),dNt(),fNt(),pNt(),mNt(),hNt(),gNt(),_Nt(),vNt(),yNt(),bNt(),xNt(),SNt(),CNt(),wNt(),TNt(),ENt(),DNt(),ONt(),kNt(),ANt(),jNt(),MNt(),NNt(),PNt(),FNt(),INt(),LNt(),RNt(),zNt(),BNt(),VNt(),HNt(),UNt(),WNt(),GNt(),KNt(),qNt(),JNt(),YNt(),XNt(),ZNt(),QNt(),$Nt(),ePt(),tPt(),nPt(),rPt(),iPt(),aPt(),oPt(),sPt(),cPt(),lPt(),uPt(),dPt(),fPt(),pPt(),mPt(),hPt(),gPt(),_Pt(),vPt(),yPt(),bPt(),xPt(),SPt(),CPt(),wPt(),TPt(),EPt(),DPt(),OPt(),kPt(),APt(),jPt(),MPt(),NPt(),PPt(),FPt(),IPt(),LPt(),RPt(),zPt(),BPt(),VPt(),HPt(),UPt(),WPt(),GPt(),KPt(),qPt(),JPt(),YPt(),XPt(),ZPt(),QPt(),$Pt(),eFt(),tFt(),nFt(),rFt(),iFt(),aFt(),oFt(),sFt(),cFt(),lFt(),uFt(),dFt(),fFt(),pFt(),mFt(),hFt(),gFt(),_Ft(),vFt(),yFt(),bFt(),xFt(),SFt(),CFt(),wFt(),TFt(),EFt(),DFt(),OFt(),kFt(),AFt(),jFt(),MFt(),NFt(),PFt(),FFt(),IFt(),LFt(),RFt(),zFt(),BFt(),VFt(),HFt(),UFt(),WFt(),GFt(),KFt(),qFt(),JFt(),YFt(),XFt(),ZFt(),QFt(),$Ft(),eIt(),tIt(),nIt(),rIt(),iIt(),aIt(),oIt(),sIt(),cIt(),lIt(),uIt(),dIt(),fIt(),pIt(),mIt(),hIt(),gIt(),_It(),vIt(),yIt(),bIt(),xIt(),SIt(),CIt(),wIt(),TIt(),EIt(),DIt(),OIt(),kIt(),AIt(),jIt(),MIt(),NIt(),PIt(),FIt(),IIt(),LIt(),RIt(),zIt(),BIt(),VIt(),HIt(),UIt(),WIt(),GIt(),KIt(),qIt(),JIt(),YIt(),XIt(),ZIt(),QIt(),$It(),eLt(),tLt(),nLt(),rLt(),iLt(),aLt(),oLt(),sLt(),cLt(),lLt(),uLt(),dLt(),fLt(),pLt(),mLt(),hLt(),gLt(),_Lt(),vLt(),yLt(),bLt(),xLt(),SLt(),CLt(),wLt(),TLt(),ELt(),DLt(),OLt(),kLt(),ALt(),jLt(),MLt(),NLt(),PLt(),FLt(),ILt(),LLt(),RLt(),zLt(),BLt(),VLt(),HLt(),ULt(),WLt(),GLt(),KLt(),qLt(),JLt(),YLt(),XLt(),ZLt(),QLt(),$Lt(),eRt(),tRt(),nRt(),rRt(),iRt(),aRt(),oRt(),sRt(),cRt(),lRt(),uRt(),dRt(),fRt(),pRt(),mRt(),hRt(),gRt(),_Rt(),vRt(),yRt(),bRt(),xRt(),SRt(),CRt(),wRt(),TRt(),ERt(),DRt(),ORt(),kRt(),ARt(),jRt(),MRt(),NRt(),PRt(),FRt(),IRt(),LRt(),RRt(),zRt(),BRt(),VRt(),HRt(),URt(),WRt(),GRt(),KRt(),qRt(),JRt(),YRt(),XRt(),ZRt(),QRt(),$Rt(),ezt(),tzt(),nzt(),rzt(),izt(),azt(),ozt(),szt(),czt(),lzt(),uzt(),dzt(),fzt(),pzt(),mzt(),hzt(),gzt(),_zt(),vzt(),yzt(),bzt(),xzt(),Szt(),Czt(),wzt(),Tzt(),Ezt(),Dzt(),Ozt(),kzt(),Azt(),jzt(),Mzt(),Nzt(),Pzt(),Fzt(),Izt(),Lzt(),Rzt(),zzt(),Bzt(),Vzt(),Hzt(),Uzt(),Wzt(),Gzt(),Kzt(),qzt(),Jzt(),Yzt(),Xzt(),Zzt(),Qzt(),$zt(),eBt(),tBt(),nBt(),rBt(),iBt(),aBt(),oBt(),sBt(),cBt(),lBt(),uBt(),dBt(),fBt(),pBt(),mBt(),hBt(),gBt(),_Bt(),vBt(),yBt(),bBt(),xBt(),SBt(),CBt(),wBt(),TBt(),EBt(),DBt(),OBt(),kBt(),ABt(),jBt(),MBt(),NBt(),PBt(),FBt(),IBt(),LBt(),RBt(),zBt(),BBt(),VBt(),HBt(),UBt(),WBt(),GBt(),KBt(),qBt(),JBt(),YBt(),XBt(),ZBt(),QBt(),$Bt(),eVt(),tVt(),nVt(),rVt(),iVt(),aVt(),oVt(),sVt(),cVt(),lVt(),uVt(),dVt(),fVt(),pVt(),mVt(),hVt(),gVt(),_Vt(),vVt(),yVt(),bVt(),xVt(),SVt(),CVt(),wVt(),TVt(),EVt(),DVt(),OVt(),kVt(),AVt(),jVt(),MVt(),NVt(),PVt(),FVt(),IVt(),LVt(),RVt(),zVt(),BVt(),VVt(),HVt(),UVt(),WVt(),GVt(),KVt(),qVt(),JVt(),YVt(),XVt(),ZVt(),QVt(),$Vt(),eHt(),tHt(),nHt(),rHt(),iHt(),aHt(),oHt(),sHt(),cHt(),lHt(),uHt(),dHt(),fHt(),pHt(),mHt(),hHt(),gHt(),_Ht(),vHt(),yHt(),bHt(),xHt(),SHt(),CHt(),wHt(),THt(),EHt(),DHt(),OHt(),kHt(),AHt(),jHt(),MHt(),NHt(),PHt(),FHt(),IHt(),LHt(),RHt(),zHt(),BHt(),VHt(),HHt(),UHt(),WHt(),GHt(),KHt(),qHt(),JHt(),YHt(),XHt(),ZHt(),QHt(),$Ht(),eUt(),tUt(),nUt(),rUt(),iUt(),aUt(),oUt(),sUt(),cUt(),lUt(),uUt(),dUt(),fUt(),pUt(),mUt(),hUt(),gUt(),_Ut(),vUt(),yUt(),bUt(),xUt(),SUt()})),wUt=O((()=>{I()})),vq,yq=O((()=>{s.object({"object.name":s.string().describe(`display name`),"object.id":s.string().describe(`identifier`)}),s.object({grantor:s.array(s.string()).optional().describe(`--- filters ---
1435
+ --num-skintones: ${dG};`}),o(()=>{a.customEmoji&&a.database&&x()}),o(()=>{a.customEmoji&&a.customEmoji.length?a.groups!==cG&&(a.groups=cG):a.groups!==lG&&(a.currentGroupIndex&&a.currentGroupIndex--,a.groups=lG)}),o(()=>{async function e(){a.databaseLoaded&&(a.currentSkinTone=await a.database.getPreferredSkinTone())}e()}),o(()=>{a.skinTones=Array(dG).fill().map((e,t)=>Lrt(a.skinToneEmoji,t))}),o(()=>{a.skinToneButtonText=a.skinTones[a.currentSkinTone]}),o(()=>{a.skinToneButtonLabel=a.i18n.skinToneLabel.replace(`{skinTone}`,a.i18n.skinTones[a.currentSkinTone])}),o(()=>{async function e(){let{database:e}=a,t=(await Promise.all(_G.map(t=>e.getEmojiByUnicodeOrName(t)))).filter(Boolean);a.defaultFavoriteEmojis=t}a.databaseLoaded&&e()});function x(){let{customEmoji:e,database:t}=a,n=e||VG;t.customEmoji!==n&&(t.customEmoji=n)}o(()=>{async function e(){x();let{database:e,defaultFavoriteEmojis:t,numColumns:n}=a,r=await ne(eG([...await e.getTopFavoriteEmoji(n),...t],e=>e.unicode||e.name).slice(0,n));a.currentFavorites=r}a.databaseLoaded&&a.defaultFavoriteEmojis&&e()});function S(e){zrt(e,i,()=>{{let e=getComputedStyle(n.rootElement),t=parseInt(e.getPropertyValue(`--num-columns`),10),r=e.getPropertyValue(`direction`)===`rtl`;a.numColumns=t,a.isRtl=r}})}function C(e){eit(e,i,e=>{for(let{target:t,isIntersecting:n}of e)t.classList.toggle(`onscreen`,n)})}o(()=>{async function e(){let{searchText:e,currentGroup:t,databaseLoaded:n,customEmoji:r}=a;if(!n)a.currentEmojis=[],a.searchMode=!1;else if(e.length>=uG){let t=await ie(e);a.searchText===e&&(p(t),m(!0))}else{let{id:e}=t;if(e!==-1||r&&r.length){let t=await re(e);a.currentGroup.id===e&&(p(t),m(!1))}}}e()});let w=()=>{AG(()=>Hrt(n.tabpanelElement))};o(()=>{let{currentEmojis:e,emojiVersion:t}=a,n=e.filter(e=>e.unicode).filter(e=>ZW(e)&&!wG.has(e.unicode));if(!t&&n.length)p(e),AG(()=>T(n));else{let n=t?e:e.filter(ee);p(n),w()}});function T(e){Brt(e,n.baselineEmoji,l)?w():a.currentEmojis=[...a.currentEmojis]}function ee(e){return!e.unicode||!ZW(e)||wG.get(e.unicode)}async function te(e){let t=a.emojiVersion||await CG();return e.filter(({version:e})=>!e||e<=t)}async function ne(e){return Rrt(e,a.emojiVersion||await CG())}async function re(e){return ne(await te(e===-1?a.customEmoji:await a.database.getEmojiByGroup(e)))}async function ie(e){return ne(await te(await a.database.getEmojiBySearchQuery(e)))}o(()=>{}),o(()=>{function e(){let{searchMode:e,currentEmojis:t}=a;if(e)return[{category:``,emojis:t}];let n=new Map;for(let e of t){let t=e.category||``,r=n.get(t);r||(r=[],n.set(t,r)),r.push(e)}return[...n.entries()].map(([e,t])=>({category:e,emojis:t})).sort((e,t)=>a.customCategorySorting(e.category,t.category))}let t=e();h(t)}),o(()=>{a.activeSearchItemId=a.activeSearchItem!==-1&&a.currentEmojis[a.activeSearchItem].id}),o(()=>{let{rawSearchText:e}=a;fG(()=>{a.searchText=(e||``).trim(),a.activeSearchItem=-1})});function E(e){if(!a.searchMode||!a.currentEmojis.length)return;let t=t=>{QW(e),a.activeSearchItem=$W(t,a.activeSearchItem,a.currentEmojis)};switch(e.key){case`ArrowDown`:return t(!1);case`ArrowUp`:return t(!0);case`Enter`:if(a.activeSearchItem===-1)a.activeSearchItem=0;else return QW(e),ce(a.currentEmojis[a.activeSearchItem].id)}}function ae(e){let{target:t}=e,r=t.closest(`.nav-button`);if(!r)return;let i=parseInt(r.dataset.groupId,10);n.searchElement.value=``,a.rawSearchText=``,a.searchText=``,a.activeSearchItem=-1,a.currentGroupIndex=a.groups.findIndex(e=>e.id===i)}function oe(e){let{target:t,key:n}=e,r=t=>{t&&(QW(e),t.focus())};switch(n){case`ArrowLeft`:return r(t.previousElementSibling);case`ArrowRight`:return r(t.nextElementSibling);case`Home`:return r(t.parentElement.firstElementChild);case`End`:return r(t.parentElement.lastElementChild)}}async function se(e){let t=await a.database.getEmojiByUnicodeOrName(e),n=[...a.currentEmojis,...a.currentFavorites].find(t=>t.id===e),r=n.unicode&&g(n,a.currentSkinTone);return await a.database.incrementFavoriteEmojiCount(e),{emoji:t,skinTone:a.currentSkinTone,...r&&{unicode:r},...n.name&&{name:n.name}}}async function ce(e){let t=se(e);u(`emoji-click-sync`,t),u(`emoji-click`,await t)}function le(e){let{target:t}=e;t.classList.contains(`emoji`)&&(QW(e),ce(t.id.substring(4)))}function D(e){a.currentSkinTone=e,a.skinTonePickerExpanded=!1,c(`skintone-button`),u(`skin-tone-change`,{skinTone:e}),a.database.setPreferredSkinTone(e)}function ue(e){let{target:{id:t}}=e,n=t&&t.match(/^skintone-(\d)/);n&&(QW(e),D(parseInt(n[1],10)))}function de(e){a.skinTonePickerExpanded=!a.skinTonePickerExpanded,a.activeSkinTone=a.currentSkinTone,a.skinTonePickerExpanded&&(QW(e),AG(()=>c(`skintone-list`)))}o(()=>{a.skinTonePickerExpanded?n.skinToneDropdown.addEventListener(`transitionend`,()=>{a.skinTonePickerExpandedAfterAnimation=!0},{once:!0}):a.skinTonePickerExpandedAfterAnimation=!1});function fe(e){if(!a.skinTonePickerExpanded)return;let t=async t=>{QW(e),a.activeSkinTone=t};switch(e.key){case`ArrowUp`:return t($W(!0,a.activeSkinTone,a.skinTones));case`ArrowDown`:return t($W(!1,a.activeSkinTone,a.skinTones));case`Home`:return t(0);case`End`:return t(a.skinTones.length-1);case`Enter`:return QW(e),D(a.activeSkinTone);case`Escape`:return QW(e),a.skinTonePickerExpanded=!1,c(`skintone-button`)}}function pe(e){if(a.skinTonePickerExpanded)switch(e.key){case` `:return QW(e),D(a.activeSkinTone)}}async function me(e){let{relatedTarget:t}=e;(!t||t.id!==`skintone-list`)&&(a.skinTonePickerExpanded=!1)}function he(e){a.rawSearchText=e.target.value}return{$set(e){HG(a,e)},$destroy(){r.abort()}}}function sG(e){e instanceof YG||Object.setPrototypeOf(e,customElements.get(e.tagName.toLowerCase()).prototype)}var cG,lG,uG,dG,fG,pG,mG,hG,gG,_G,vG,yG,bG,xG,SG,CG,wG,TG,EG,DG,OG,kG,AG,jG,MG,NG,PG,FG,IG,LG,RG,zG,BG,VG,HG,UG,WG,GG,KG,qG,JG,YG,XG,nit=O((()=>{Prt(),cG=[[-1,`✨`,`custom`],[0,`😀`,`smileys-emotion`],[1,`👋`,`people-body`],[3,`🐱`,`animals-nature`],[4,`🍎`,`food-drink`],[5,`🏠️`,`travel-places`],[6,`⚽`,`activities`],[7,`📝`,`objects`],[8,`⛔️`,`symbols`],[9,`🏁`,`flags`]].map(([e,t,n])=>({id:e,emoji:t,name:n})),lG=cG.slice(1),uG=2,dG=6,fG=typeof requestIdleCallback==`function`?requestIdleCallback:setTimeout,pG={"🫪":17,"🫩":16,"🫨":15.1,"🫠":14,"🥲":13.1,"🥻":12.1,"🥰":11,"🤩":5,"👱‍♀️":4,"🤣":3,"👁️‍🗨️":2,"😀":1,"😐️":.7,"😃":.6},mG=1e3,hG=`🖐️`,gG=8,_G=[`😊`,`😒`,`❤️`,`👍️`,`😍`,`😂`,`😭`,`☺️`,`😔`,`😩`,`😏`,`💕`,`🙌`,`😘`],vG=`"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif`,yG=(e,t)=>e<t?-1:+(e>t),bG=(e,t)=>{let n=document.createElement(`canvas`);n.width=n.height=1;let r=n.getContext(`2d`,{willReadFrequently:!0});return r.textBaseline=`top`,r.font=`100px ${vG}`,r.fillStyle=t,r.scale(.01,.01),r.fillText(e,0,0),r.getImageData(0,0,1,1).data},xG=(e,t)=>{let n=[...e].join(`,`);return n===[...t].join(`,`)&&!n.startsWith(`0,0,0,`)},CG=()=>(SG||=new Promise(e=>fG(()=>e(Irt()))),SG),wG=new Map,TG=`️`,EG=`\ud83c`,DG=`‍`,OG=127995,kG=57339,AG=requestAnimationFrame,jG=typeof ResizeObserver==`function`,MG=`😀`,FG=new WeakMap,IG=new WeakMap,LG=Symbol(`un-keyed`),RG=`replaceChildren`in Element.prototype,zG=typeof queueMicrotask==`function`?queueMicrotask:e=>Promise.resolve().then(e),BG=new WeakMap,VG=[],{assign:HG}=Object,UG=`https://cdn.jsdelivr.net/npm/emoji-picker-element-data@^1/en/emojibase/data.json`,WG=`en`,GG={categoriesLabel:`Categories`,emojiUnsupportedMessage:`Your browser does not support color emoji.`,favoritesLabel:`Favorites`,loadingMessage:`Loading…`,networkErrorMessage:`Could not load emoji.`,regionLabel:`Emoji picker`,searchDescription:`When search results are available, press up or down to select and enter to choose.`,searchLabel:`Search`,searchResultsLabel:`Search results`,skinToneDescription:`When expanded, press up or down to select and enter to choose.`,skinToneLabel:`Choose a skin tone (currently {skinTone})`,skinTonesLabel:`Skin tones`,skinTones:[`Default`,`Light`,`Medium-Light`,`Medium`,`Medium-Dark`,`Dark`],categories:{custom:`Custom`,"smileys-emotion":`Smileys and emoticons`,"people-body":`People and body`,"animals-nature":`Animals and nature`,"food-drink":`Food and drink`,"travel-places":`Travel and places`,activities:`Activities`,objects:`Objects`,symbols:`Symbols`,flags:`Flags`}},KG=`:host{--emoji-size:1.375rem;--emoji-padding:0.5rem;--category-emoji-size:var(--emoji-size);--category-emoji-padding:var(--emoji-padding);--indicator-height:3px;--input-border-radius:0.5rem;--input-border-size:1px;--input-font-size:1rem;--input-line-height:1.5;--input-padding:0.25rem;--num-columns:8;--outline-size:2px;--border-size:1px;--border-radius:0;--skintone-border-radius:1rem;--category-font-size:1rem;display:flex;width:min-content;height:400px}:host,:host(.light){color-scheme:light;--background:#fff;--border-color:#e0e0e0;--indicator-color:#385ac1;--input-border-color:#999;--input-font-color:#111;--input-placeholder-color:#999;--outline-color:#999;--category-font-color:#111;--button-active-background:#e6e6e6;--button-hover-background:#d9d9d9}:host(.dark){color-scheme:dark;--background:#222;--border-color:#444;--indicator-color:#5373ec;--input-border-color:#ccc;--input-font-color:#efefef;--input-placeholder-color:#ccc;--outline-color:#fff;--category-font-color:#efefef;--button-active-background:#555555;--button-hover-background:#484848}@media (prefers-color-scheme:dark){:host{color-scheme:dark;--background:#222;--border-color:#444;--indicator-color:#5373ec;--input-border-color:#ccc;--input-font-color:#efefef;--input-placeholder-color:#ccc;--outline-color:#fff;--category-font-color:#efefef;--button-active-background:#555555;--button-hover-background:#484848}}:host([hidden]){display:none}button{margin:0;padding:0;border:0;background:0 0;box-shadow:none;-webkit-tap-highlight-color:transparent}button::-moz-focus-inner{border:0}input{padding:0;margin:0;line-height:1.15;font-family:inherit}input[type=search]{-webkit-appearance:none}:focus{outline:var(--outline-color) solid var(--outline-size);outline-offset:calc(-1*var(--outline-size))}:host([data-js-focus-visible]) :focus:not([data-focus-visible-added]){outline:0}:focus:not(:focus-visible){outline:0}.hide-focus{outline:0}*{box-sizing:border-box}.picker{contain:content;display:flex;flex-direction:column;background:var(--background);border:var(--border-size) solid var(--border-color);border-radius:var(--border-radius);width:100%;height:100%;overflow:hidden;--total-emoji-size:calc(var(--emoji-size) + (2 * var(--emoji-padding)));--total-category-emoji-size:calc(var(--category-emoji-size) + (2 * var(--category-emoji-padding)))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.hidden{opacity:0;pointer-events:none}.abs-pos{position:absolute;left:0;top:0}.gone{display:none!important}.skintone-button-wrapper,.skintone-list{background:var(--background);z-index:3}.skintone-button-wrapper.expanded{z-index:1}.skintone-list{position:absolute;inset-inline-end:0;top:0;z-index:2;overflow:visible;border-bottom:var(--border-size) solid var(--border-color);border-radius:0 0 var(--skintone-border-radius) var(--skintone-border-radius);will-change:transform;transition:transform .2s ease-in-out;transform-origin:center 0}@media (prefers-reduced-motion:reduce){.skintone-list{transition-duration:.001s}}@supports not (inset-inline-end:0){.skintone-list{right:0}}.skintone-list.no-animate{transition:none}.tabpanel{overflow-y:auto;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch;will-change:transform;min-height:0;flex:1;contain:content}.emoji-menu{display:grid;grid-template-columns:repeat(var(--num-columns),var(--total-emoji-size));justify-content:space-around;align-items:flex-start;width:100%}.emoji-menu.visibility-auto{content-visibility:auto;contain-intrinsic-size:calc(var(--num-columns)*var(--total-emoji-size)) calc(var(--num-rows)*var(--total-emoji-size))}.category{padding:var(--emoji-padding);font-size:var(--category-font-size);color:var(--category-font-color)}.emoji,button.emoji{font-size:var(--emoji-size);display:flex;align-items:center;justify-content:center;border-radius:100%;height:var(--total-emoji-size);width:var(--total-emoji-size);line-height:1;overflow:hidden;font-family:var(--emoji-font-family);cursor:pointer}@media (hover:hover) and (pointer:fine){.emoji:hover,button.emoji:hover{background:var(--button-hover-background)}}.emoji.active,.emoji:active,button.emoji.active,button.emoji:active{background:var(--button-active-background)}.onscreen .custom-emoji::after{content:"";width:var(--emoji-size);height:var(--emoji-size);background-repeat:no-repeat;background-position:center center;background-size:contain;background-image:var(--custom-emoji-background)}.nav,.nav-button{align-items:center}.nav{display:grid;justify-content:space-between;contain:content}.nav-button{display:flex;justify-content:center}.nav-emoji{font-size:var(--category-emoji-size);width:var(--total-category-emoji-size);height:var(--total-category-emoji-size)}.indicator-wrapper{display:flex;border-bottom:1px solid var(--border-color)}.indicator{width:calc(100%/var(--num-groups));height:var(--indicator-height);opacity:var(--indicator-opacity);background-color:var(--indicator-color);will-change:transform,opacity;transition:opacity .1s linear,transform .25s ease-in-out}@media (prefers-reduced-motion:reduce){.indicator{will-change:opacity;transition:opacity .1s linear}}.pad-top,input.search{background:var(--background);width:100%}.pad-top{height:var(--emoji-padding);z-index:3}.search-row{display:flex;align-items:center;position:relative;padding-inline-start:var(--emoji-padding);padding-bottom:var(--emoji-padding)}.search-wrapper{flex:1;min-width:0}input.search{padding:var(--input-padding);border-radius:var(--input-border-radius);border:var(--input-border-size) solid var(--input-border-color);color:var(--input-font-color);font-size:var(--input-font-size);line-height:var(--input-line-height)}input.search::placeholder{color:var(--input-placeholder-color)}.favorites{overflow-y:auto;scrollbar-gutter:stable;display:flex;flex-direction:row;border-top:var(--border-size) solid var(--border-color);contain:content}.message{padding:var(--emoji-padding)}`,qG=[`customEmoji`,`customCategorySorting`,`database`,`dataSource`,`i18n`,`locale`,`skinToneEmoji`,`emojiVersion`],JG=`:host{--emoji-font-family:${vG}}`,YG=class extends HTMLElement{constructor(e){super(),this.attachShadow({mode:`open`});let t=document.createElement(`style`);t.textContent=KG+JG,this.shadowRoot.appendChild(t),this._ctx={locale:WG,dataSource:UG,skinToneEmoji:hG,customCategorySorting:yG,customEmoji:null,i18n:GG,emojiVersion:null,...e};for(let e of qG)e!==`database`&&Object.prototype.hasOwnProperty.call(this,e)&&(this._ctx[e]=this[e],delete this[e]);this._dbFlush()}connectedCallback(){sG(this),this._cmp||=tit(this.shadowRoot,this._ctx)}disconnectedCallback(){sG(this),zG(()=>{if(!this.isConnected&&this._cmp){this._cmp.$destroy(),this._cmp=void 0;let{database:e}=this._ctx;e.close().catch(e=>console.error(e))}})}static get observedAttributes(){return[`locale`,`data-source`,`skin-tone-emoji`,`emoji-version`]}attributeChangedCallback(e,t,n){this._set(e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),e===`emoji-version`?parseFloat(n):n)}_set(e,t){this._ctx[e]=t,this._cmp&&this._cmp.$set({[e]:t}),[`locale`,`dataSource`].includes(e)&&this._dbFlush()}_dbCreate(){let{locale:e,dataSource:t,database:n}=this._ctx;(!n||n.locale!==e||n.dataSource!==t)&&this._set(`database`,new XW({locale:e,dataSource:t}))}_dbFlush(){zG(()=>this._dbCreate())}},XG={};for(let e of qG)XG[e]={get(){return e===`database`&&this._dbCreate(),this._ctx[e]},set(t){if(e===`database`)throw Error(`database is read-only`);this._set(e,t)}};Object.defineProperties(YG.prototype,XG),customElements.get(`emoji-picker`)||customElements.define(`emoji-picker`,YG)})),rit=O((()=>{})),iit=A({default:()=>$G}),ZG,QG,$G,ait=O((()=>{T9(),Xp(),nit(),By(),rit(),R(),ZG={class:`wt-chat-emoji`},QG={__name:`wt-chat-emoji`,props:{size:{type:String,default:V.MD},popupTeleportTo:{type:String,default:``},filled:{type:Boolean,default:!1},variant:{type:String,default:Dp.OUTLINED},rounded:{type:Boolean,default:!0}},emits:[`insert-emoji`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(null),o=(0,t.ref)(!1),s=(0,t.ref)(null),c=(0,t.computed)(()=>r.popupTeleportTo||`body`),l=(0,t.computed)(()=>r.filled||o.value?Dp.ACTIVE:r.variant),u=async()=>{s.value||(s.value=document.createElement(`emoji-picker`),d(),s.value.addEventListener(`emoji-click`,f))},d=()=>{a.value&&s.value&&a.value.appendChild(s.value)},f=e=>{let{unicode:t}=e.detail;i(`insert-emoji`,t),p()},p=()=>{o.value=!1,s.value&&a.value&&(s.value.removeEventListener(`emoji-click`,f),a.value.removeChild(s.value),s.value=null)},m=e=>{a.value?.contains(e.target)||p()},h=async()=>{g(),o.value=!o.value,o.value?(await(0,t.nextTick)(),await u()):p()},g=()=>wy.$emit(`chat-input-focus`);return(0,t.onBeforeUnmount)(()=>{p()}),(n,r)=>{let i=(0,t.resolveDirective)(`clickaway`);return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ZG,[(0,t.createVNode)((0,t.unref)(uh),{size:e.size,variant:l.value,color:`secondary`,icon:`chat-emoji`,rounded:e.rounded,wide:``,onClick:h},null,8,[`size`,`variant`,`rounded`]),((0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{defer:``,disabled:!e.popupTeleportTo,to:c.value},[o.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,ref_key:`emojiPickerWrapper`,ref:a,class:`wt-chat-emoji__wrapper`},null,512)):(0,t.createCommentVNode)(``,!0)],8,[`disabled`,`to`]))])),[[i,m]])}}},$G=L(QG,[[`__scopeId`,`data-v-1d5eaef1`]])})),eK,tK,nK,rK,iK=O((()=>{T9(),Sm(),eK={class:`wt-display-chip-items`},tK={key:0},nK=[`onClick`],rK=(0,t.defineComponent)({__name:`wt-display-chip-items`,props:{hideFirstItem:{type:Boolean},useEmptySymbol:{type:Boolean},title:{},items:{}},setup(e){let n=e,r=(0,t.computed)(()=>n.items?.length?n.items[0]?.name:n.useEmptySymbol?`-`:``),i=(0,t.computed)(()=>n.items?.length?n.hideFirstItem?n.items:n.items.slice(1):[]);return(a,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,eK,[n.title?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,tK,(0,t.toDisplayString)(e.title)+`:`,1)):(0,t.createCommentVNode)(``,!0),n.hideFirstItem?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(a.$slots,`first-item`,{key:1},()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(bm)(r.value)),1)],!0),(0,t.createVNode)((0,t.unref)(S9),null,{activator:(0,t.withCtx)(({toggle:e})=>[(0,t.renderSlot)(a.$slots,`activator`,{toggle:e},()=>[i.value.length?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,onClick:e},[(0,t.createVNode)((0,t.unref)(rb),null,{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)(` +`+(0,t.toDisplayString)(i.value.length),1)],void 0,!0),_:1})],8,nK)):(0,t.createCommentVNode)(``,!0)],!0)]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(a.$slots,`items`,{items:i.value},()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value,({name:e,id:n})=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n},(0,t.toDisplayString)(e),1))),128))],!0)]),_:3})]))}})})),oit=O((()=>{})),sit=A({default:()=>aK}),aK,cit=O((()=>{iK(),iK(),oit(),R(),aK=L(rK,[[`__scopeId`,`data-v-02135394`]])})),lit=O((()=>{})),oK,sK,cK,lK,uit=O((()=>{lit(),R(),oK={class:`nav-menu__category nav-menu-lvl-1`},sK=[`onClick`],cK={__name:`nav-menu-lvl-1`,props:{categories:{type:Array,default:()=>[]},selected:{type:Object,default:()=>({})},icons:{type:Array,default:()=>[]}},emits:[`select`],setup(e,{emit:n}){let r=n;function i(e){r(`select`,e)}return(n,r)=>{let a=(0,t.resolveComponent)(`wt-icon`);return(0,t.openBlock)(),(0,t.createElementBlock)(`ul`,oK,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.categories,(r,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:o,class:`nav-menu__option`},[(0,t.createElementVNode)(`button`,{class:(0,t.normalizeClass)([{"nav-menu__item--selected":e.selected.value===r.value},`typo-body-1 nav-menu__item nav-menu__item--active`]),onClick:e=>i(r)},[(0,t.createVNode)(a,{color:e.selected.value===r.value?`on-primary`:`default`,icon:e.icons.find(e=>e.includes(r.value))},null,8,[`color`,`icon`]),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(r.name),1)],10,sK),(0,t.withDirectives)((0,t.createElementVNode)(`div`,null,[(0,t.renderSlot)(n.$slots,`default`,{},void 0,!0)],512),[[t.vShow,e.selected.value===r.value]])]))),128))])}}},lK=L(cK,[[`__scopeId`,`data-v-52920c85`]])})),dit=O((()=>{})),uK,dK,fK,fit=O((()=>{dit(),R(),uK={class:`nav-menu__category nav-menu-lvl-2`},dK={__name:`nav-menu-lvl-2`,props:{categories:{type:Array,default:()=>[]}},setup(e){return(n,r)=>{let i=(0,t.resolveComponent)(`router-link`);return(0,t.openBlock)(),(0,t.createElementBlock)(`ul`,uK,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.categories,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n,class:`typo-body-1 nav-menu__option nav-menu__item nav-menu-lvl-2--inner`},[r[0]||=(0,t.createElementVNode)(`span`,{class:`nav-menu-lvl-2__indicator`},null,-1),(0,t.createVNode)(i,{to:e.route,class:`nav-menu-lvl-2__link`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.name),1)],void 0,!0),_:2},1032,[`to`])]))),128))])}}},fK=L(dK,[[`__scopeId`,`data-v-c560eb2d`]])})),pit=O((()=>{})),mit=A({default:()=>gK}),pK,mK,hK,gK,hit=O((()=>{uit(),fit(),pit(),R(),pK={class:`wt-navigation-menu`},mK={class:`wt-navigation-menu__wrapper`},hK={__name:`wt-navigation-menu`,props:{nav:{type:Array,required:!0},icons:{type:Array,default:()=>[]}},setup(e){let n=e,r=(0,t.ref)(``),i=(0,t.computed)(()=>{let e=new Map;return n.nav.forEach(t=>{e.set(t.value,{...t,name:t.name})}),e}),a=(0,t.computed)(()=>{let e=new Map;return n.nav.forEach(t=>{if(t.subNav){let n=t.subNav.map(e=>{let n=t.route?`${t.route}/${e.route}`:e.route;return{...e,name:e.name,route:n}});e.set(t.value,n)}else e.set(t.value,[])}),e}),o=(0,t.computed)(()=>Array.from(i.value.values()).filter(e=>{let t=a.value.get(e.value);return t&&t.length>0})),s=(0,t.computed)(()=>a.value.get(c.value?.value)||[]),c=(0,t.computed)(()=>i.value.get(r.value)||o.value[0]);function l(e){r.value=e.value}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`section`,pK,[(0,t.createElementVNode)(`article`,mK,[(0,t.createVNode)(lK,{categories:o.value,icons:e.icons,selected:c.value,onSelect:l},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(fK,{categories:s.value,class:`wt-navigation-menu__categories--display`},null,8,[`categories`])],void 0,!0),_:1},8,[`categories`,`icons`,`selected`]),(0,t.createVNode)(fK,{categories:s.value,class:`wt-navigation-menu__categories--hidden`},null,8,[`categories`])])]))}},gK=L(hK,[[`__scopeId`,`data-v-fcbc24f4`]])}));function git(){return _K??=import(`tinymce/tinymce`).then(()=>Promise.all([import(`tinymce/icons/default`),import(`tinymce/models/dom`),import(`tinymce/themes/silver`),import(`tinymce/plugins/advlist`),import(`tinymce/plugins/emoticons`),import(`tinymce/plugins/emoticons/js/emojis`),import(`tinymce/plugins/fullscreen`),import(`tinymce/plugins/image`),import(`tinymce/plugins/link`),import(`tinymce/plugins/lists`),import(`tinymce/plugins/table`),import(`tinymce/skins/ui/oxide/skin.css`)]).then(()=>void 0)),_K}var _K,_it=O((()=>{_K=null})),vK,yK,bK=O((()=>{mS(),_it(),hp(),vK={class:`wt-rich-text-editor`},yK=(0,t.defineComponent)({compatConfig:{MODE:3},__name:`wt-rich-text-editor`,props:(0,t.mergeModels)({label:{},labelProps:{},output:{default:`html`},height:{default:300},disabled:{type:Boolean},placeholder:{},toolbar:{},plugins:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n={...o.default,name:`TinyMceEditor`,compatConfig:{MODE:3}},r=e,i=(0,t.useModel)(e,`modelValue`),a=(0,t.useId)(),s=(0,t.ref)(!1);git().then(()=>{s.value=!0});let c=[`advlist`,`emoticons`,`fullscreen`,`image`,`link`,`lists`,`table`],l=[`undo redo`,`bold italic underline strikethrough`,`fullscreen`,`fontfamily fontsize`,`alignleft aligncenter alignright alignjustify`,`numlist bullist`,`forecolor backcolor removeformat`,`emoticons image link table`].join(` | `),u=(0,t.computed)(()=>r.output===`html`),d=(0,t.computed)(()=>r.plugins??(u.value?c:[])),f=(0,t.computed)(()=>r.toolbar??(u.value?l:`undo redo`));function p(){let e=getComputedStyle(document.documentElement);return{backgroundColor:e.getPropertyValue(`--content-wrapper-color`).trim(),color:e.getPropertyValue(`--wt-text-field-text-color`).trim()}}let m=(0,t.computed)(()=>{let{backgroundColor:e,color:t}=p();return{height:Number(r.height),menubar:!1,statusbar:u.value,toolbar_mode:`sliding`,toolbar_sticky:!0,placeholder:r.placeholder,skin:!1,content_css:!1,content_style:`body { background-color: ${e}; color: ${t}; }`}}),h=null,g=new MutationObserver(()=>{h?.getBody()&&h.dom.setStyles(h.getBody(),p())});function _(e,t){h=t,g.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`]})}return(0,t.onBeforeUnmount)(()=>{g.disconnect(),h=null}),(r,o)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,vK,[e.label||r.$slots.label?((0,t.openBlock)(),(0,t.createBlock)(pS,(0,t.mergeProps)({key:0},e.labelProps,{disabled:e.disabled,for:(0,t.unref)(a)}),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(r.$slots,`label`,(0,t.normalizeProps)((0,t.guardReactiveProps)({label:e.label})),()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.label),1)],!0)],void 0,!0),_:3},16,[`disabled`,`for`])):(0,t.createCommentVNode)(``,!0),s.value?((0,t.openBlock)(),(0,t.createBlock)(n,{key:1,id:(0,t.unref)(a),modelValue:i.value,"onUpdate:modelValue":o[0]||=e=>i.value=e,disabled:e.disabled,init:m.value,"output-format":e.output,plugins:d.value,toolbar:f.value,"license-key":`gpl`,onInit:_},null,8,[`id`,`modelValue`,`disabled`,`init`,`output-format`,`plugins`,`toolbar`])):((0,t.openBlock)(),(0,t.createBlock)(mp,{key:2}))]))}})})),vit=O((()=>{})),yit=A({default:()=>xK}),xK,bit=O((()=>{bK(),bK(),vit(),R(),xK=L(yK,[[`__scopeId`,`data-v-47d8ed9a`]])})),xit=O((()=>{})),Sit=A({default:()=>DK}),SK,CK,wK,TK,EK,DK,Cit=O((()=>{iy(),xit(),R(),SK={class:`wt-selection-popup__options`},CK=[`onClick`],wK={class:`wt-selection-popup__item-header typo-subtitle-2`},TK={key:1,class:`popup-options__item-text`},EK={__name:`wt-selection-popup`,props:{title:{type:String},selected:{type:Object},options:{type:Array,default:()=>[]}},emits:[`change`,`add`,`close`],setup(e,{emit:n}){let r=e,i=n,{t:a}=Tv();function o(){i(`add`,r.selected)}function s(){i(`close`)}function c(e){i(`change`,e)}return(n,r)=>{let i=(0,t.resolveComponent)(`wt-icon`),l=(0,t.resolveComponent)(`wt-icon-btn`),u=(0,t.resolveComponent)(`wt-button`),d=(0,t.resolveComponent)(`wt-popup`),f=(0,t.resolveDirective)(`tooltip`);return(0,t.openBlock)(),(0,t.createBlock)(d,(0,t.mergeProps)(n.$attrs,{class:`wt-selection-popup`,overflow:``,size:`sm`},{onClose:s}),{title:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)]),main:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`ul`,SK,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(r,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:a,class:(0,t.normalizeClass)([{active:r.value===e.selected.value},`wt-selection-popup__item-wrapper`]),onClick:e=>c(r)},[(0,t.renderSlot)(n.$slots,`option`,{option:r},()=>[r.icon?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,icon:r.icon,size:`sm`},null,8,[`icon`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`h4`,wK,(0,t.toDisplayString)(r.title),1),r.description?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,TK,(0,t.toDisplayString)(r.description),1)):(0,t.createCommentVNode)(``,!0),r.description?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(l,{key:2,color:`info`,icon:`rounded-info`},null,512)),[[f,r.description]]):(0,t.createCommentVNode)(``,!0)],!0)],10,CK))),128))]),(0,t.renderSlot)(n.$slots,`after-section`,{},void 0,!0)]),actions:(0,t.withCtx)(()=>[(0,t.createVNode)(u,{disabled:!e.selected,onClick:o},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(a)(`reusable.create`)),1)],void 0,!0),_:1},8,[`disabled`]),(0,t.createVNode)(u,{color:`secondary`,onClick:s},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(a)(`reusable.close`)),1)],void 0,!0),_:1})]),_:3},16)}}},DK=L(EK,[[`__scopeId`,`data-v-d7ed7032`]])})),OK,kK,wit=O((()=>{ht(),Array.isArray,OK=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),Symbol(M.env.NODE_ENV===`production`?``:`navigation failure`),OK.MATCHER_NOT_FOUND,OK.NAVIGATION_GUARD_REDIRECT,OK.NAVIGATION_ABORTED,OK.NAVIGATION_CANCELLED,OK.NAVIGATION_DUPLICATED,Symbol(M.env.NODE_ENV===`production`?``:`router view location matched`),Symbol(M.env.NODE_ENV===`production`?``:`router view depth`),kK=Symbol(M.env.NODE_ENV===`production`?``:`router`),Symbol(M.env.NODE_ENV===`production`?``:`route location`),Symbol(M.env.NODE_ENV===`production`?``:`router view location`)}));function Tit(){return(0,t.inject)(kK)}var AK,Eit=O((()=>{ht(),wit(),AK=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),AK.Static})),Dit=O((()=>{})),jK,MK,NK,PK,FK,IK,LK,Oit=O((()=>{Eit(),Dit(),R(),jK={class:`start-page-card`},MK={class:`typo-heading-4 start-page-card__header`},NK={class:`start-page-card__main-section`},PK=[`alt`,`src`],FK={class:`typo-body-1 start-page-card__description`},IK={__name:`start-page-card`,props:{card:{type:Object,required:!0}},setup(e){let n=Tit(),r=e,i=()=>n.push(r.card.route);return(n,r)=>{let a=(0,t.resolveComponent)(`wt-icon`),o=(0,t.resolveComponent)(`wt-button`);return(0,t.openBlock)(),(0,t.createElementBlock)(`article`,jK,[(0,t.createElementVNode)(`header`,MK,[e.card.disabled?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,icon:`lock`})):(0,t.createCommentVNode)(``,!0),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.card.name),1)]),(0,t.createElementVNode)(`section`,NK,[(0,t.createElementVNode)(`img`,{alt:e.card.name,src:e.card.image},null,8,PK),(0,t.createElementVNode)(`p`,FK,(0,t.toDisplayString)(e.card.text),1)]),(0,t.createElementVNode)(`footer`,null,[(0,t.createVNode)(o,{disabled:e.card.disabled,class:`start-page-card__button`,color:`secondary`,wide:``,onClick:i},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.$t(`reusable.open`)),1)],void 0,!0),_:1},8,[`disabled`])])])}}},LK=L(IK,[[`__scopeId`,`data-v-e4560b27`]])})),kit=O((()=>{})),RK,zK,BK,VK,Ait=O((()=>{kit(),R(),RK={class:`start-page-logo`},zK=[`src`],BK={__name:`start-page-logo`,props:{logo:{type:String,required:!0}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,RK,[(0,t.createElementVNode)(`img`,{src:e.logo},null,8,zK)]))}},VK=L(BK,[[`__scopeId`,`data-v-187dc1b4`]])})),HK,UK,WK,GK=O((()=>{Oit(),Ait(),HK={class:`wt-start-page`},UK={class:`wt-start-page__wrapper`},WK=(0,t.defineComponent)({__name:`wt-start-page`,props:{nav:{},appLogo:{},darkMode:{type:Boolean,default:!1}},setup(e){let n=e;(0,t.provide)(`darkMode`,n.darkMode);let r=(0,t.computed)(()=>n.darkMode?n.appLogo.dark:n.appLogo.light),i=(0,t.computed)(()=>n.nav.map(e=>({...e,image:n.darkMode?e.images.dark:e.images.light})));return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,HK,[e.appLogo?((0,t.openBlock)(),(0,t.createBlock)(VK,{key:0,logo:r.value},null,8,[`logo`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,UK,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value,e=>((0,t.openBlock)(),(0,t.createBlock)(LK,{key:e.value,card:e},null,8,[`card`]))),128))])]))}})})),jit=O((()=>{})),Mit=A({default:()=>Nit}),Nit,Pit=O((()=>{GK(),GK(),jit(),R(),Nit=L(WK,[[`__scopeId`,`data-v-85dd1b85`]])})),KK,Fit=O((()=>{KK=()=>({items:[],next:!1})})),qK,Iit=O((()=>{qK=({page:e=1,size:t=10}={})=>({page:e,size:t})})),Y=O((()=>{Fit(),Iit(),ba()})),JK,Lit=O((()=>{JK=e=>t=>{let n=t;if(e&&e.length>0){if(n.includes(`?`))return n+=`&${e.join(`&`)}`,n;n+=`?${e.join(`&`)}`}return n}})),YK,Rit=O((()=>{YK=(e,t,{debug:n=!1,withContext:r=null}={})=>t.reduce((e,t,i)=>(n&&console.info(`applyTransform debug on step ${i}`,e),r?t(e,r):t(e)),e)})),XK,zit=O((()=>{Ko(),XK=(e=[])=>t=>Wo(t,e)})),ZK,Bit=O((()=>{Je(),ZK=e=>t=>`${e}?${Fe(t,{skipEmptyString:!0,skipNull:!0,arrayFormat:`repeat`})}`})),QK=k(((e,t)=>{var n=function(e){return r(e)&&!i(e)};function r(e){return!!e&&typeof e==`object`}function i(e){var t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||o(e)}var a=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function o(e){return e.$$typeof===a}function s(e){return Array.isArray(e)?[]:{}}function c(e,t){return t.clone!==!1&&t.isMergeableObject(e)?g(s(e),e,t):e}function l(e,t,n){return e.concat(t).map(function(e){return c(e,n)})}function u(e,t){if(!t.customMerge)return g;var n=t.customMerge(e);return typeof n==`function`?n:g}function d(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function f(e){return Object.keys(e).concat(d(e))}function p(e,t){try{return t in e}catch{return!1}}function m(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function h(e,t,n){var r={};return n.isMergeableObject(e)&&f(e).forEach(function(t){r[t]=c(e[t],n)}),f(t).forEach(function(i){m(e,i)||(p(e,i)&&n.isMergeableObject(t[i])?r[i]=u(i,n)(e[i],t[i],n):r[i]=c(t[i],n))}),r}function g(e,t,r){r||={},r.arrayMerge=r.arrayMerge||l,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=c;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):h(e,t,r):c(t,r)}g.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return g(e,n,t)},{})},t.exports=g})),$K,eq,Vit=O((()=>{$K=ye(QK(),1),eq=(...e)=>t=>$K.default.all([...e,t])})),tq,nq,Hit=O((()=>{tq=ye(QK(),1),nq=(...e)=>t=>t.map(t=>tq.default.all([...e,t]))})),rq,iq=O((()=>{rq={eventBus:null,i18n:null}}));function aq(e){if(typeof e==`function`){let t=({type:e,text:t})=>rq.eventBus?.$emit(`notification`,{type:e,text:t});return n=>(e({callback:t}),n)}if(e instanceof Error){let{response:t}=e,n=t?.data?.translation||t?.data?.detail||t?.data?.message||e;rq.eventBus?.$emit(`notification`,{type:`error`,text:n})}return e}var Uit=O((()=>{iq()})),oq,sq=O((()=>{oq=e=>t=>Object.keys(t).reduce((n,r)=>(e.indexOf(r)===-1||(n[r]=t[r]),n),{})})),cq,lq,Wit=O((()=>{cq=e=>e.replace(/[^a-zA-Z0-9]/g,``).toLowerCase(),lq=e=>t=>{if(!t)return t;let n=new Map(e.map(e=>[cq(e),e]));return Object.entries(t).reduce((e,[t,r])=>(e[n.get(cq(t))??t]=r,e),{})}})),uq,Git=O((()=>{sq(),Wit(),uq=e=>t=>oq(e)(lq(e)(t))})),dq,Kit=O((()=>{Ko(),dq=(e=[])=>t=>Uo(t,e)})),fq,pq,qit=O((()=>{fq=ye(iz(),1),pq=(e=`search`)=>t=>{let r=(0,fq.default)(t),i=(0,n.get)(r,e);return!i||i.slice(-1)===`*`?r:(0,n.set)(r,e,`${i}*`)}})),Jit=O((()=>{yu(),iq()})),X=O((()=>{Lit(),Rit(),zit(),Bit(),Vit(),Hit(),Uit(),sq(),Git(),Kit(),qit(),Jit()})),mq,hq,gq,_q=O((()=>{Y(),X(),mq=`acl`,hq=e=>e.map(e=>({...e,access:{x:{id:(e.granted.match(/x/g)||[]).length+1,rule:`x`.repeat((e.granted.match(/x/g)||[]).length)},r:{id:(e.granted.match(/r/g)||[]).length+1,rule:`r`.repeat((e.granted.match(/r/g)||[]).length)},w:{id:(e.granted.match(/w/g)||[]).length+1,rule:`w`.repeat((e.granted.match(/w/g)||[]).length)},d:{id:(e.granted.match(/d/g)||[]).length+1,rule:`d`.repeat((e.granted.match(/d/g)||[]).length)}}})),gq=e=>{let t=ya();return{getPermissionsList:async({parentId:n,...r})=>{let i=[`page`,`size`,`q`,`sort`,`fields`,`id`],a={user:!1},o=YK(r,[eq(qK()),pq(`search`),e=>({...e,q:e.search}),oq(i),XK(),ZK(`${e}/${n}/${mq}`)]);try{let{items:e,next:n}=YK((await t.get(o)).data,[dq(),eq(KK())]);return{items:YK(e,[nq(a),hq]),next:n}}catch(e){throw YK(e,[aq])}},patchPermissions:async({changes:n,id:r})=>{let i=YK(n,[XK()]),a=`${e}/${r}/${mq}`;try{return YK((await t.patch(a,i)).data,[dq()])}catch(e){throw YK(e,[aq])}}}}})),Yit=O((()=>{})),Xit=O((()=>{})),Zit=O((()=>{})),Qit=O((()=>{})),$it=O((()=>{})),eat=O((()=>{})),tat=O((()=>{})),nat=O((()=>{})),rat=O((()=>{})),iat=O((()=>{})),aat=O((()=>{})),oat=O((()=>{})),sat=O((()=>{})),cat=O((()=>{})),lat=O((()=>{})),uat=O((()=>{})),dat=O((()=>{})),fat=O((()=>{})),pat=O((()=>{})),mat=O((()=>{})),hat=O((()=>{})),gat=O((()=>{})),_at=O((()=>{})),vat=O((()=>{})),yat=O((()=>{})),bat=O((()=>{})),xat=O((()=>{})),Sat=O((()=>{})),Cat=O((()=>{})),wat=O((()=>{})),Tat=O((()=>{})),Eat=O((()=>{})),Dat=O((()=>{})),Oat=O((()=>{})),kat=O((()=>{})),Aat=O((()=>{})),jat=O((()=>{})),Mat=O((()=>{})),Nat=O((()=>{})),Pat=O((()=>{})),Fat=O((()=>{})),Iat=O((()=>{})),Lat=O((()=>{})),Rat=O((()=>{})),zat=O((()=>{})),Bat=O((()=>{})),Vat=O((()=>{})),Hat=O((()=>{})),Uat=O((()=>{})),Wat=O((()=>{})),Gat=O((()=>{})),Kat=O((()=>{})),qat=O((()=>{})),Jat=O((()=>{})),Yat=O((()=>{})),Xat=O((()=>{})),Zat=O((()=>{})),Qat=O((()=>{})),$at=O((()=>{})),eot=O((()=>{})),tot=O((()=>{})),not=O((()=>{})),rot=O((()=>{})),iot=O((()=>{})),aot=O((()=>{})),oot=O((()=>{})),sot=O((()=>{})),cot=O((()=>{})),lot=O((()=>{})),uot=O((()=>{})),dot=O((()=>{})),fot=O((()=>{})),pot=O((()=>{})),mot=O((()=>{})),hot=O((()=>{})),got=O((()=>{})),_ot=O((()=>{})),vot=O((()=>{})),yot=O((()=>{})),bot=O((()=>{})),xot=O((()=>{})),Sot=O((()=>{})),Cot=O((()=>{})),wot=O((()=>{})),Tot=O((()=>{})),Eot=O((()=>{})),Dot=O((()=>{})),Oot=O((()=>{})),kot=O((()=>{})),Aot=O((()=>{})),jot=O((()=>{})),Mot=O((()=>{})),Not=O((()=>{})),Pot=O((()=>{})),Fot=O((()=>{})),Iot=O((()=>{})),Lot=O((()=>{})),Rot=O((()=>{})),zot=O((()=>{})),Bot=O((()=>{})),Vot=O((()=>{})),Hot=O((()=>{})),Uot=O((()=>{})),Wot=O((()=>{})),Got=O((()=>{})),Kot=O((()=>{})),qot=O((()=>{})),Jot=O((()=>{})),Yot=O((()=>{})),Xot=O((()=>{})),Zot=O((()=>{})),Qot=O((()=>{})),$ot=O((()=>{})),est=O((()=>{})),tst=O((()=>{})),nst=O((()=>{})),rst=O((()=>{})),ist=O((()=>{})),ast=O((()=>{})),ost=O((()=>{})),sst=O((()=>{})),cst=O((()=>{})),lst=O((()=>{})),ust=O((()=>{})),dst=O((()=>{})),fst=O((()=>{})),pst=O((()=>{})),mst=O((()=>{})),hst=O((()=>{})),gst=O((()=>{})),_st=O((()=>{})),vst=O((()=>{})),yst=O((()=>{})),bst=O((()=>{})),xst=O((()=>{})),Sst=O((()=>{})),Cst=O((()=>{})),wst=O((()=>{})),Tst=O((()=>{})),Est=O((()=>{})),Dst=O((()=>{})),Ost=O((()=>{})),kst=O((()=>{})),Ast=O((()=>{})),jst=O((()=>{})),Mst=O((()=>{})),Nst=O((()=>{})),Pst=O((()=>{})),Fst=O((()=>{})),Ist=O((()=>{})),Lst=O((()=>{})),Rst=O((()=>{})),zst=O((()=>{})),Bst=O((()=>{})),Vst=O((()=>{})),Hst=O((()=>{})),Ust=O((()=>{})),Wst=O((()=>{})),Gst=O((()=>{})),Kst=O((()=>{})),qst=O((()=>{})),Jst=O((()=>{})),Yst=O((()=>{})),Xst=O((()=>{})),Zst=O((()=>{})),Qst=O((()=>{})),$st=O((()=>{})),ect=O((()=>{})),tct=O((()=>{})),nct=O((()=>{})),rct=O((()=>{})),ict=O((()=>{})),act=O((()=>{})),oct=O((()=>{})),sct=O((()=>{})),cct=O((()=>{})),lct=O((()=>{})),uct=O((()=>{})),dct=O((()=>{})),fct=O((()=>{})),pct=O((()=>{})),mct=O((()=>{})),hct=O((()=>{})),gct=O((()=>{})),_ct=O((()=>{})),vct=O((()=>{})),yct=O((()=>{})),bct=O((()=>{})),xct=O((()=>{})),Sct=O((()=>{})),Cct=O((()=>{})),wct=O((()=>{})),Tct=O((()=>{})),Ect=O((()=>{})),Dct=O((()=>{})),Oct=O((()=>{})),kct=O((()=>{})),Act=O((()=>{})),jct=O((()=>{})),Mct=O((()=>{})),Nct=O((()=>{})),Pct=O((()=>{})),Fct=O((()=>{})),Ict=O((()=>{})),Lct=O((()=>{})),Rct=O((()=>{})),zct=O((()=>{})),Bct=O((()=>{})),Vct=O((()=>{})),Hct=O((()=>{})),Uct=O((()=>{})),Wct=O((()=>{})),Gct=O((()=>{})),Kct=O((()=>{})),qct=O((()=>{})),Jct=O((()=>{})),Yct=O((()=>{})),Xct=O((()=>{})),Zct=O((()=>{})),Qct=O((()=>{})),$ct=O((()=>{})),elt=O((()=>{})),tlt=O((()=>{})),nlt=O((()=>{})),rlt=O((()=>{})),ilt=O((()=>{})),alt=O((()=>{})),olt=O((()=>{})),slt=O((()=>{})),clt=O((()=>{})),llt=O((()=>{})),ult=O((()=>{})),dlt=O((()=>{})),flt=O((()=>{})),plt=O((()=>{})),mlt=O((()=>{})),hlt=O((()=>{})),glt=O((()=>{})),_lt=O((()=>{})),vlt=O((()=>{})),ylt=O((()=>{})),blt=O((()=>{})),xlt=O((()=>{})),Slt=O((()=>{})),Clt=O((()=>{})),wlt=O((()=>{})),Tlt=O((()=>{})),Elt=O((()=>{})),Dlt=O((()=>{})),Olt=O((()=>{})),klt=O((()=>{})),Alt=O((()=>{})),jlt=O((()=>{})),Mlt=O((()=>{})),Nlt=O((()=>{})),Plt=O((()=>{})),Flt=O((()=>{})),Ilt=O((()=>{})),Llt=O((()=>{})),Rlt=O((()=>{})),zlt=O((()=>{})),Blt=O((()=>{})),Vlt=O((()=>{})),Hlt=O((()=>{})),Ult=O((()=>{})),Wlt=O((()=>{})),Glt=O((()=>{})),Klt=O((()=>{})),qlt=O((()=>{})),Jlt=O((()=>{})),Ylt=O((()=>{})),Xlt=O((()=>{})),Zlt=O((()=>{})),Qlt=O((()=>{})),$lt=O((()=>{})),eut=O((()=>{})),tut=O((()=>{})),nut=O((()=>{})),rut=O((()=>{})),iut=O((()=>{})),aut=O((()=>{})),out=O((()=>{})),sut=O((()=>{})),cut=O((()=>{})),lut=O((()=>{})),uut=O((()=>{})),dut=O((()=>{})),fut=O((()=>{})),put=O((()=>{})),mut=O((()=>{})),hut=O((()=>{})),gut=O((()=>{})),_ut=O((()=>{})),vut=O((()=>{})),yut=O((()=>{})),but=O((()=>{})),xut=O((()=>{})),Sut=O((()=>{})),Cut=O((()=>{})),wut=O((()=>{})),Tut=O((()=>{})),Eut=O((()=>{})),Dut=O((()=>{})),Out=O((()=>{})),kut=O((()=>{})),Aut=O((()=>{})),jut=O((()=>{})),Mut=O((()=>{})),Nut=O((()=>{})),Put=O((()=>{})),Fut=O((()=>{})),Iut=O((()=>{})),Lut=O((()=>{})),Rut=O((()=>{})),zut=O((()=>{})),But=O((()=>{})),Vut=O((()=>{})),Hut=O((()=>{})),Uut=O((()=>{})),Wut=O((()=>{})),Gut=O((()=>{})),Kut=O((()=>{})),qut=O((()=>{})),Jut=O((()=>{})),Yut=O((()=>{})),Xut=O((()=>{})),Zut=O((()=>{})),Qut=O((()=>{})),$ut=O((()=>{})),edt=O((()=>{})),tdt=O((()=>{})),ndt=O((()=>{})),rdt=O((()=>{})),idt=O((()=>{})),adt=O((()=>{})),odt=O((()=>{})),sdt=O((()=>{})),cdt=O((()=>{})),ldt=O((()=>{})),udt=O((()=>{})),ddt=O((()=>{})),fdt=O((()=>{})),pdt=O((()=>{})),mdt=O((()=>{})),hdt=O((()=>{})),gdt=O((()=>{})),_dt=O((()=>{})),vdt=O((()=>{})),ydt=O((()=>{})),bdt=O((()=>{})),xdt=O((()=>{})),Sdt=O((()=>{})),Cdt=O((()=>{})),wdt=O((()=>{})),Tdt=O((()=>{})),Edt=O((()=>{})),Ddt=O((()=>{})),Odt=O((()=>{})),kdt=O((()=>{})),Adt=O((()=>{})),jdt=O((()=>{})),Mdt=O((()=>{})),Ndt=O((()=>{})),Pdt=O((()=>{})),Fdt=O((()=>{})),Idt=O((()=>{})),Ldt=O((()=>{})),Rdt=O((()=>{})),zdt=O((()=>{})),Bdt=O((()=>{})),Vdt=O((()=>{})),Hdt=O((()=>{})),Udt=O((()=>{})),Wdt=O((()=>{})),Gdt=O((()=>{})),Kdt=O((()=>{})),qdt=O((()=>{})),Jdt=O((()=>{})),Ydt=O((()=>{})),Xdt=O((()=>{})),Zdt=O((()=>{})),Qdt=O((()=>{})),$dt=O((()=>{})),eft=O((()=>{})),tft=O((()=>{})),nft=O((()=>{})),rft=O((()=>{})),ift=O((()=>{})),aft=O((()=>{})),oft=O((()=>{})),sft=O((()=>{})),cft=O((()=>{})),lft=O((()=>{})),uft=O((()=>{})),dft=O((()=>{})),fft=O((()=>{})),pft=O((()=>{})),mft=O((()=>{})),hft=O((()=>{})),gft=O((()=>{})),_ft=O((()=>{})),vft=O((()=>{})),yft=O((()=>{})),bft=O((()=>{})),xft=O((()=>{})),Sft=O((()=>{})),Cft=O((()=>{})),wft=O((()=>{})),Tft=O((()=>{})),Eft=O((()=>{})),Dft=O((()=>{})),Oft=O((()=>{})),kft=O((()=>{})),Aft=O((()=>{})),jft=O((()=>{})),Mft=O((()=>{})),Nft=O((()=>{})),Pft=O((()=>{})),Fft=O((()=>{})),Ift=O((()=>{})),Lft=O((()=>{})),Rft=O((()=>{})),zft=O((()=>{})),Bft=O((()=>{})),Vft=O((()=>{})),Hft=O((()=>{})),Uft=O((()=>{})),Wft=O((()=>{})),Gft=O((()=>{})),Kft=O((()=>{})),qft=O((()=>{})),Jft=O((()=>{})),Yft=O((()=>{})),Xft=O((()=>{})),Zft=O((()=>{})),Qft=O((()=>{})),$ft=O((()=>{})),ept=O((()=>{})),tpt=O((()=>{})),npt=O((()=>{})),rpt=O((()=>{})),ipt=O((()=>{})),apt=O((()=>{})),opt=O((()=>{})),spt=O((()=>{})),cpt=O((()=>{})),lpt=O((()=>{})),upt=O((()=>{})),dpt=O((()=>{})),fpt=O((()=>{})),ppt=O((()=>{})),mpt=O((()=>{})),hpt=O((()=>{})),gpt=O((()=>{})),_pt=O((()=>{})),vpt=O((()=>{})),ypt=O((()=>{})),bpt=O((()=>{})),xpt=O((()=>{})),Spt=O((()=>{})),Cpt=O((()=>{})),wpt=O((()=>{})),Tpt=O((()=>{})),Ept=O((()=>{})),Dpt=O((()=>{})),Opt=O((()=>{})),kpt=O((()=>{})),Apt=O((()=>{})),jpt=O((()=>{})),Mpt=O((()=>{})),Npt=O((()=>{})),Ppt=O((()=>{})),Fpt=O((()=>{})),Ipt=O((()=>{})),Lpt=O((()=>{})),Rpt=O((()=>{})),zpt=O((()=>{})),Bpt=O((()=>{})),Vpt=O((()=>{})),Hpt=O((()=>{})),Upt=O((()=>{})),Wpt=O((()=>{})),Gpt=O((()=>{})),Kpt=O((()=>{})),qpt=O((()=>{})),Jpt=O((()=>{})),Ypt=O((()=>{})),Xpt=O((()=>{})),Zpt=O((()=>{})),Qpt=O((()=>{})),$pt=O((()=>{})),emt=O((()=>{})),tmt=O((()=>{})),nmt=O((()=>{})),rmt=O((()=>{})),imt=O((()=>{})),amt=O((()=>{})),omt=O((()=>{})),smt=O((()=>{})),cmt=O((()=>{})),lmt=O((()=>{})),umt=O((()=>{})),dmt=O((()=>{})),fmt=O((()=>{})),pmt=O((()=>{})),mmt=O((()=>{})),hmt=O((()=>{})),gmt=O((()=>{})),_mt=O((()=>{})),vmt=O((()=>{})),ymt=O((()=>{})),bmt=O((()=>{})),xmt=O((()=>{})),Smt=O((()=>{})),Cmt=O((()=>{})),wmt=O((()=>{})),Tmt=O((()=>{})),Emt=O((()=>{})),Dmt=O((()=>{})),Omt=O((()=>{})),kmt=O((()=>{})),Amt=O((()=>{})),jmt=O((()=>{})),Mmt=O((()=>{})),Nmt=O((()=>{})),Pmt=O((()=>{})),Fmt=O((()=>{})),Imt=O((()=>{})),Lmt=O((()=>{})),Rmt=O((()=>{})),zmt=O((()=>{})),Bmt=O((()=>{})),Vmt=O((()=>{})),Hmt=O((()=>{})),Umt=O((()=>{})),Wmt=O((()=>{})),Gmt=O((()=>{})),Kmt=O((()=>{})),qmt=O((()=>{})),Jmt=O((()=>{})),Ymt=O((()=>{})),Xmt=O((()=>{})),Zmt=O((()=>{})),Qmt=O((()=>{})),$mt=O((()=>{})),eht=O((()=>{})),tht=O((()=>{})),nht=O((()=>{})),rht=O((()=>{})),iht=O((()=>{})),aht=O((()=>{})),oht=O((()=>{})),sht=O((()=>{})),cht=O((()=>{})),lht=O((()=>{})),uht=O((()=>{})),dht=O((()=>{})),fht=O((()=>{})),pht=O((()=>{})),mht=O((()=>{})),hht=O((()=>{})),ght=O((()=>{})),_ht=O((()=>{})),vht=O((()=>{})),yht=O((()=>{})),bht=O((()=>{})),xht=O((()=>{})),Sht=O((()=>{})),Cht=O((()=>{})),wht=O((()=>{})),Tht=O((()=>{})),Eht=O((()=>{})),Dht=O((()=>{})),Oht=O((()=>{})),kht=O((()=>{})),Aht=O((()=>{})),jht=O((()=>{})),Mht=O((()=>{})),Nht=O((()=>{})),Pht=O((()=>{})),Fht=O((()=>{})),Iht=O((()=>{})),Lht=O((()=>{})),Rht=O((()=>{})),zht=O((()=>{})),Bht=O((()=>{})),Vht=O((()=>{})),Hht=O((()=>{})),Uht=O((()=>{})),Wht=O((()=>{})),Ght=O((()=>{})),Kht=O((()=>{})),qht=O((()=>{})),Jht=O((()=>{})),Yht=O((()=>{})),Xht=O((()=>{})),Zht=O((()=>{})),Qht=O((()=>{})),$ht=O((()=>{})),egt=O((()=>{})),tgt=O((()=>{})),ngt=O((()=>{})),rgt=O((()=>{})),igt=O((()=>{})),agt=O((()=>{})),ogt=O((()=>{})),sgt=O((()=>{})),cgt=O((()=>{})),lgt=O((()=>{})),ugt=O((()=>{})),dgt=O((()=>{})),fgt=O((()=>{})),pgt=O((()=>{})),mgt=O((()=>{})),hgt=O((()=>{})),ggt=O((()=>{})),_gt=O((()=>{})),vgt=O((()=>{})),ygt=O((()=>{})),bgt=O((()=>{})),xgt=O((()=>{})),Sgt=O((()=>{})),Cgt=O((()=>{})),wgt=O((()=>{})),Tgt=O((()=>{})),Egt=O((()=>{})),Dgt=O((()=>{})),Ogt=O((()=>{})),kgt=O((()=>{})),Agt=O((()=>{})),jgt=O((()=>{})),Mgt=O((()=>{})),Ngt=O((()=>{})),Pgt=O((()=>{})),Fgt=O((()=>{})),Igt=O((()=>{})),Lgt=O((()=>{})),Rgt=O((()=>{})),zgt=O((()=>{})),Bgt=O((()=>{})),Vgt=O((()=>{})),Hgt=O((()=>{})),Ugt=O((()=>{})),Wgt=O((()=>{})),Ggt=O((()=>{})),Kgt=O((()=>{})),qgt=O((()=>{})),Jgt=O((()=>{})),Ygt=O((()=>{})),Xgt=O((()=>{})),Zgt=O((()=>{})),Qgt=O((()=>{})),$gt=O((()=>{})),e_t=O((()=>{})),t_t=O((()=>{})),n_t=O((()=>{})),r_t=O((()=>{})),i_t=O((()=>{})),a_t=O((()=>{})),o_t=O((()=>{})),s_t=O((()=>{})),c_t=O((()=>{})),l_t=O((()=>{})),u_t=O((()=>{})),d_t=O((()=>{})),f_t=O((()=>{})),p_t=O((()=>{})),m_t=O((()=>{})),h_t=O((()=>{})),g_t=O((()=>{})),__t=O((()=>{})),v_t=O((()=>{})),y_t=O((()=>{})),b_t=O((()=>{})),x_t=O((()=>{})),S_t=O((()=>{})),C_t=O((()=>{})),w_t=O((()=>{})),T_t=O((()=>{})),E_t=O((()=>{})),D_t=O((()=>{})),O_t=O((()=>{})),k_t=O((()=>{})),A_t=O((()=>{})),j_t=O((()=>{})),M_t=O((()=>{})),N_t=O((()=>{})),P_t=O((()=>{})),F_t=O((()=>{})),I_t=O((()=>{})),L_t=O((()=>{})),R_t=O((()=>{})),z_t=O((()=>{})),B_t=O((()=>{})),V_t=O((()=>{})),H_t=O((()=>{})),U_t=O((()=>{})),W_t=O((()=>{})),G_t=O((()=>{})),K_t=O((()=>{})),q_t=O((()=>{})),J_t=O((()=>{})),Y_t=O((()=>{})),X_t=O((()=>{})),Z_t=O((()=>{})),Q_t=O((()=>{})),$_t=O((()=>{})),evt=O((()=>{})),tvt=O((()=>{})),nvt=O((()=>{})),rvt=O((()=>{})),ivt=O((()=>{})),avt=O((()=>{})),ovt=O((()=>{})),svt=O((()=>{})),cvt=O((()=>{})),lvt=O((()=>{})),uvt=O((()=>{})),dvt=O((()=>{})),fvt=O((()=>{})),pvt=O((()=>{})),mvt=O((()=>{})),hvt=O((()=>{})),gvt=O((()=>{})),_vt=O((()=>{})),vvt=O((()=>{})),yvt=O((()=>{})),bvt=O((()=>{})),xvt=O((()=>{})),Svt=O((()=>{})),Cvt=O((()=>{})),wvt=O((()=>{})),Tvt=O((()=>{})),Evt=O((()=>{})),Dvt=O((()=>{})),Ovt=O((()=>{})),kvt=O((()=>{})),Avt=O((()=>{})),jvt=O((()=>{})),Mvt=O((()=>{})),Nvt=O((()=>{})),Pvt=O((()=>{})),Fvt=O((()=>{})),Ivt=O((()=>{})),Lvt=O((()=>{})),Rvt=O((()=>{})),zvt=O((()=>{})),Bvt=O((()=>{})),Vvt=O((()=>{})),Hvt=O((()=>{})),Uvt=O((()=>{})),Wvt=O((()=>{})),Gvt=O((()=>{})),Kvt=O((()=>{})),qvt=O((()=>{})),Jvt=O((()=>{})),Yvt=O((()=>{})),Xvt=O((()=>{})),Zvt=O((()=>{})),Qvt=O((()=>{})),$vt=O((()=>{})),eyt=O((()=>{})),tyt=O((()=>{})),nyt=O((()=>{})),ryt=O((()=>{})),iyt=O((()=>{})),ayt=O((()=>{})),oyt=O((()=>{})),syt=O((()=>{})),cyt=O((()=>{})),lyt=O((()=>{})),uyt=O((()=>{})),dyt=O((()=>{})),fyt=O((()=>{})),pyt=O((()=>{})),myt=O((()=>{})),hyt=O((()=>{})),gyt=O((()=>{})),_yt=O((()=>{})),vyt=O((()=>{})),yyt=O((()=>{})),byt=O((()=>{})),xyt=O((()=>{})),Syt=O((()=>{})),Cyt=O((()=>{})),wyt=O((()=>{})),Tyt=O((()=>{})),Eyt=O((()=>{})),Dyt=O((()=>{})),Oyt=O((()=>{})),kyt=O((()=>{})),Ayt=O((()=>{})),jyt=O((()=>{})),Myt=O((()=>{})),Nyt=O((()=>{})),Pyt=O((()=>{})),Fyt=O((()=>{})),Iyt=O((()=>{})),Lyt=O((()=>{})),Ryt=O((()=>{})),zyt=O((()=>{})),Byt=O((()=>{})),Vyt=O((()=>{})),Hyt=O((()=>{})),Uyt=O((()=>{})),Wyt=O((()=>{})),Gyt=O((()=>{})),Kyt=O((()=>{})),qyt=O((()=>{})),Jyt=O((()=>{})),Yyt=O((()=>{})),Xyt=O((()=>{})),Zyt=O((()=>{})),Qyt=O((()=>{})),$yt=O((()=>{})),ebt=O((()=>{})),tbt=O((()=>{})),nbt=O((()=>{})),rbt=O((()=>{})),ibt=O((()=>{})),abt=O((()=>{})),obt=O((()=>{})),sbt=O((()=>{})),cbt=O((()=>{})),lbt=O((()=>{})),ubt=O((()=>{})),dbt=O((()=>{})),fbt=O((()=>{})),pbt=O((()=>{})),mbt=O((()=>{})),hbt=O((()=>{})),gbt=O((()=>{})),_bt=O((()=>{})),vbt=O((()=>{})),ybt=O((()=>{})),bbt=O((()=>{})),xbt=O((()=>{})),Sbt=O((()=>{})),Cbt=O((()=>{})),wbt=O((()=>{})),Tbt=O((()=>{})),Ebt=O((()=>{})),Dbt=O((()=>{})),Obt=O((()=>{})),kbt=O((()=>{})),Abt=O((()=>{})),jbt=O((()=>{})),Mbt=O((()=>{})),Nbt=O((()=>{})),Pbt=O((()=>{})),Fbt=O((()=>{})),Ibt=O((()=>{})),Lbt=O((()=>{})),Rbt=O((()=>{})),zbt=O((()=>{})),Bbt=O((()=>{})),Vbt=O((()=>{})),Hbt=O((()=>{})),Ubt=O((()=>{})),Wbt=O((()=>{})),Gbt=O((()=>{})),Kbt=O((()=>{})),qbt=O((()=>{})),Jbt=O((()=>{})),Ybt=O((()=>{})),Xbt=O((()=>{})),Zbt=O((()=>{})),Qbt=O((()=>{})),$bt=O((()=>{})),ext=O((()=>{})),txt=O((()=>{})),nxt=O((()=>{})),rxt=O((()=>{})),ixt=O((()=>{})),axt=O((()=>{})),oxt=O((()=>{})),sxt=O((()=>{})),cxt=O((()=>{})),lxt=O((()=>{})),uxt=O((()=>{})),dxt=O((()=>{})),fxt=O((()=>{})),pxt=O((()=>{})),mxt=O((()=>{})),hxt=O((()=>{})),gxt=O((()=>{})),_xt=O((()=>{})),vxt=O((()=>{})),yxt=O((()=>{})),bxt=O((()=>{})),xxt=O((()=>{})),Sxt=O((()=>{})),Cxt=O((()=>{})),wxt=O((()=>{})),Txt=O((()=>{})),Ext=O((()=>{})),Dxt=O((()=>{})),Oxt=O((()=>{})),kxt=O((()=>{})),Axt=O((()=>{})),jxt=O((()=>{})),Mxt=O((()=>{})),Nxt=O((()=>{})),Pxt=O((()=>{})),Fxt=O((()=>{})),Ixt=O((()=>{})),Lxt=O((()=>{})),Rxt=O((()=>{})),zxt=O((()=>{})),Bxt=O((()=>{})),Vxt=O((()=>{})),Hxt=O((()=>{})),Uxt=O((()=>{})),Wxt=O((()=>{})),Gxt=O((()=>{})),Kxt=O((()=>{})),qxt=O((()=>{})),Jxt=O((()=>{})),Yxt=O((()=>{})),Xxt=O((()=>{})),Zxt=O((()=>{})),Qxt=O((()=>{})),$xt=O((()=>{})),eSt=O((()=>{})),tSt=O((()=>{})),nSt=O((()=>{})),rSt=O((()=>{})),iSt=O((()=>{})),aSt=O((()=>{})),oSt=O((()=>{})),sSt=O((()=>{})),cSt=O((()=>{})),lSt=O((()=>{})),uSt=O((()=>{})),dSt=O((()=>{})),fSt=O((()=>{})),pSt=O((()=>{})),mSt=O((()=>{})),hSt=O((()=>{})),gSt=O((()=>{})),_St=O((()=>{})),vSt=O((()=>{})),ySt=O((()=>{})),bSt=O((()=>{})),xSt=O((()=>{})),SSt=O((()=>{})),CSt=O((()=>{})),wSt=O((()=>{})),TSt=O((()=>{})),ESt=O((()=>{})),DSt=O((()=>{})),OSt=O((()=>{})),kSt=O((()=>{})),ASt=O((()=>{})),jSt=O((()=>{})),MSt=O((()=>{})),NSt=O((()=>{})),PSt=O((()=>{})),FSt=O((()=>{})),ISt=O((()=>{})),LSt=O((()=>{})),RSt=O((()=>{})),zSt=O((()=>{})),BSt=O((()=>{})),VSt=O((()=>{})),HSt=O((()=>{})),USt=O((()=>{})),WSt=O((()=>{})),GSt=O((()=>{})),KSt=O((()=>{})),qSt=O((()=>{})),JSt=O((()=>{})),YSt=O((()=>{})),XSt=O((()=>{})),ZSt=O((()=>{})),QSt=O((()=>{})),$St=O((()=>{})),eCt=O((()=>{})),tCt=O((()=>{})),nCt=O((()=>{})),rCt=O((()=>{})),iCt=O((()=>{})),aCt=O((()=>{})),oCt=O((()=>{})),sCt=O((()=>{})),cCt=O((()=>{})),lCt=O((()=>{})),uCt=O((()=>{})),dCt=O((()=>{})),fCt=O((()=>{})),pCt=O((()=>{})),mCt=O((()=>{})),hCt=O((()=>{})),gCt=O((()=>{})),_Ct=O((()=>{})),vCt=O((()=>{})),yCt=O((()=>{})),bCt=O((()=>{})),xCt=O((()=>{})),SCt=O((()=>{})),CCt=O((()=>{})),wCt=O((()=>{})),TCt=O((()=>{})),ECt=O((()=>{})),DCt=O((()=>{})),OCt=O((()=>{})),kCt=O((()=>{})),ACt=O((()=>{})),jCt=O((()=>{})),MCt=O((()=>{})),NCt=O((()=>{})),PCt=O((()=>{})),FCt=O((()=>{})),ICt=O((()=>{})),LCt=O((()=>{})),RCt=O((()=>{})),zCt=O((()=>{})),BCt=O((()=>{})),VCt=O((()=>{})),HCt=O((()=>{})),UCt=O((()=>{})),WCt=O((()=>{})),GCt=O((()=>{})),KCt=O((()=>{})),qCt=O((()=>{})),JCt=O((()=>{})),YCt=O((()=>{})),XCt=O((()=>{})),ZCt=O((()=>{})),QCt=O((()=>{})),$Ct=O((()=>{})),ewt=O((()=>{})),twt=O((()=>{})),nwt=O((()=>{})),rwt=O((()=>{})),iwt=O((()=>{})),awt=O((()=>{})),owt=O((()=>{})),swt=O((()=>{})),cwt=O((()=>{})),lwt=O((()=>{})),uwt=O((()=>{})),dwt=O((()=>{})),fwt=O((()=>{})),pwt=O((()=>{})),mwt=O((()=>{})),hwt=O((()=>{})),gwt=O((()=>{})),_wt=O((()=>{})),vwt=O((()=>{})),ywt=O((()=>{})),bwt=O((()=>{})),xwt=O((()=>{})),Swt=O((()=>{})),Cwt=O((()=>{})),wwt=O((()=>{})),Twt=O((()=>{})),Ewt=O((()=>{})),Dwt=O((()=>{})),Owt=O((()=>{})),kwt=O((()=>{})),Awt=O((()=>{})),jwt=O((()=>{})),Mwt=O((()=>{})),Nwt=O((()=>{})),Pwt=O((()=>{})),Fwt=O((()=>{})),Iwt=O((()=>{})),Lwt=O((()=>{})),Rwt=O((()=>{})),zwt=O((()=>{})),Bwt=O((()=>{})),Vwt=O((()=>{})),Hwt=O((()=>{})),Uwt=O((()=>{})),Wwt=O((()=>{})),Gwt=O((()=>{})),Kwt=O((()=>{})),qwt=O((()=>{})),Jwt=O((()=>{})),Ywt=O((()=>{})),Xwt=O((()=>{})),Zwt=O((()=>{})),Qwt=O((()=>{})),$wt=O((()=>{})),eTt=O((()=>{})),tTt=O((()=>{})),nTt=O((()=>{})),rTt=O((()=>{})),iTt=O((()=>{})),aTt=O((()=>{})),oTt=O((()=>{})),sTt=O((()=>{})),cTt=O((()=>{})),lTt=O((()=>{})),uTt=O((()=>{})),dTt=O((()=>{})),fTt=O((()=>{})),pTt=O((()=>{})),mTt=O((()=>{})),hTt=O((()=>{})),gTt=O((()=>{})),_Tt=O((()=>{})),vTt=O((()=>{})),yTt=O((()=>{})),bTt=O((()=>{})),xTt=O((()=>{})),STt=O((()=>{})),CTt=O((()=>{})),wTt=O((()=>{})),TTt=O((()=>{})),ETt=O((()=>{})),DTt=O((()=>{})),OTt=O((()=>{})),kTt=O((()=>{})),ATt=O((()=>{})),jTt=O((()=>{})),MTt=O((()=>{})),NTt=O((()=>{})),PTt=O((()=>{})),FTt=O((()=>{})),ITt=O((()=>{})),LTt=O((()=>{})),RTt=O((()=>{})),zTt=O((()=>{})),BTt=O((()=>{})),VTt=O((()=>{})),HTt=O((()=>{})),UTt=O((()=>{})),WTt=O((()=>{})),GTt=O((()=>{})),KTt=O((()=>{})),qTt=O((()=>{})),JTt=O((()=>{})),YTt=O((()=>{})),XTt=O((()=>{})),ZTt=O((()=>{})),QTt=O((()=>{})),$Tt=O((()=>{})),eEt=O((()=>{})),tEt=O((()=>{})),nEt=O((()=>{})),rEt=O((()=>{})),iEt=O((()=>{})),aEt=O((()=>{})),oEt=O((()=>{})),sEt=O((()=>{})),cEt=O((()=>{})),lEt=O((()=>{})),uEt=O((()=>{})),dEt=O((()=>{})),fEt=O((()=>{})),pEt=O((()=>{})),mEt=O((()=>{})),hEt=O((()=>{})),gEt=O((()=>{})),_Et=O((()=>{})),vEt=O((()=>{})),yEt=O((()=>{})),bEt=O((()=>{})),xEt=O((()=>{})),SEt=O((()=>{})),CEt=O((()=>{})),wEt=O((()=>{})),TEt=O((()=>{})),EEt=O((()=>{})),DEt=O((()=>{})),OEt=O((()=>{})),kEt=O((()=>{})),AEt=O((()=>{})),jEt=O((()=>{})),MEt=O((()=>{})),NEt=O((()=>{})),PEt=O((()=>{})),FEt=O((()=>{})),IEt=O((()=>{})),LEt=O((()=>{})),REt=O((()=>{})),zEt=O((()=>{})),BEt=O((()=>{})),VEt=O((()=>{})),HEt=O((()=>{})),UEt=O((()=>{})),WEt=O((()=>{})),GEt=O((()=>{})),KEt=O((()=>{})),qEt=O((()=>{})),JEt=O((()=>{})),YEt=O((()=>{})),XEt=O((()=>{})),ZEt=O((()=>{})),QEt=O((()=>{})),$Et=O((()=>{})),eDt=O((()=>{})),tDt=O((()=>{})),nDt=O((()=>{})),rDt=O((()=>{})),iDt=O((()=>{})),aDt=O((()=>{})),oDt=O((()=>{})),sDt=O((()=>{})),cDt=O((()=>{})),lDt=O((()=>{})),uDt=O((()=>{})),dDt=O((()=>{})),fDt=O((()=>{})),pDt=O((()=>{})),mDt=O((()=>{})),hDt=O((()=>{})),gDt=O((()=>{})),_Dt=O((()=>{})),vDt=O((()=>{})),yDt=O((()=>{})),bDt=O((()=>{})),xDt=O((()=>{})),SDt=O((()=>{})),CDt=O((()=>{})),wDt=O((()=>{})),TDt=O((()=>{})),EDt=O((()=>{})),DDt=O((()=>{})),ODt=O((()=>{})),kDt=O((()=>{})),ADt=O((()=>{})),jDt=O((()=>{})),MDt=O((()=>{})),NDt=O((()=>{})),PDt=O((()=>{})),FDt=O((()=>{})),IDt=O((()=>{})),LDt=O((()=>{})),RDt=O((()=>{})),zDt=O((()=>{})),BDt=O((()=>{})),VDt=O((()=>{})),HDt=O((()=>{})),UDt=O((()=>{})),WDt=O((()=>{})),GDt=O((()=>{})),KDt=O((()=>{})),qDt=O((()=>{})),JDt=O((()=>{})),YDt=O((()=>{})),XDt=O((()=>{})),ZDt=O((()=>{})),QDt=O((()=>{})),$Dt=O((()=>{})),eOt=O((()=>{})),tOt=O((()=>{})),nOt=O((()=>{})),rOt=O((()=>{})),iOt=O((()=>{})),aOt=O((()=>{})),oOt=O((()=>{})),sOt=O((()=>{})),cOt=O((()=>{})),lOt=O((()=>{})),uOt=O((()=>{})),dOt=O((()=>{})),fOt=O((()=>{})),pOt=O((()=>{})),mOt=O((()=>{})),hOt=O((()=>{})),gOt=O((()=>{})),_Ot=O((()=>{})),vOt=O((()=>{})),yOt=O((()=>{})),bOt=O((()=>{})),xOt=O((()=>{})),SOt=O((()=>{})),COt=O((()=>{})),wOt=O((()=>{})),TOt=O((()=>{})),EOt=O((()=>{})),DOt=O((()=>{})),OOt=O((()=>{})),kOt=O((()=>{})),AOt=O((()=>{})),jOt=O((()=>{})),MOt=O((()=>{})),NOt=O((()=>{})),POt=O((()=>{})),FOt=O((()=>{})),IOt=O((()=>{})),LOt=O((()=>{})),ROt=O((()=>{})),zOt=O((()=>{})),BOt=O((()=>{})),VOt=O((()=>{})),HOt=O((()=>{})),UOt=O((()=>{})),WOt=O((()=>{})),GOt=O((()=>{})),KOt=O((()=>{})),qOt=O((()=>{})),JOt=O((()=>{})),YOt=O((()=>{})),XOt=O((()=>{})),ZOt=O((()=>{})),QOt=O((()=>{})),$Ot=O((()=>{})),ekt=O((()=>{})),tkt=O((()=>{})),nkt=O((()=>{})),rkt=O((()=>{})),ikt=O((()=>{})),akt=O((()=>{})),okt=O((()=>{})),skt=O((()=>{})),ckt=O((()=>{})),lkt=O((()=>{})),ukt=O((()=>{})),dkt=O((()=>{})),fkt=O((()=>{})),pkt=O((()=>{})),mkt=O((()=>{})),hkt=O((()=>{})),gkt=O((()=>{})),_kt=O((()=>{})),vkt=O((()=>{})),ykt=O((()=>{})),bkt=O((()=>{})),xkt=O((()=>{})),Skt=O((()=>{})),Ckt=O((()=>{})),wkt=O((()=>{})),Tkt=O((()=>{})),Ekt=O((()=>{})),Dkt=O((()=>{})),Okt=O((()=>{})),kkt=O((()=>{})),Akt=O((()=>{})),jkt=O((()=>{})),Mkt=O((()=>{})),Nkt=O((()=>{})),Pkt=O((()=>{})),Fkt=O((()=>{})),Ikt=O((()=>{})),Lkt=O((()=>{})),Rkt=O((()=>{})),zkt=O((()=>{})),Bkt=O((()=>{})),Vkt=O((()=>{})),Hkt=O((()=>{})),Ukt=O((()=>{})),Wkt=O((()=>{})),Gkt=O((()=>{})),Kkt=O((()=>{})),qkt=O((()=>{})),Jkt=O((()=>{})),Ykt=O((()=>{})),Xkt=O((()=>{})),Zkt=O((()=>{})),Qkt=O((()=>{})),$kt=O((()=>{})),eAt=O((()=>{})),tAt=O((()=>{})),nAt=O((()=>{})),rAt=O((()=>{})),iAt=O((()=>{})),aAt=O((()=>{})),oAt=O((()=>{})),sAt=O((()=>{})),cAt=O((()=>{})),lAt=O((()=>{})),uAt=O((()=>{})),dAt=O((()=>{})),fAt=O((()=>{})),pAt=O((()=>{})),mAt=O((()=>{})),hAt=O((()=>{})),gAt=O((()=>{})),_At=O((()=>{})),vAt=O((()=>{})),yAt=O((()=>{})),bAt=O((()=>{})),xAt=O((()=>{})),SAt=O((()=>{})),CAt=O((()=>{})),wAt=O((()=>{})),TAt=O((()=>{})),EAt=O((()=>{})),DAt=O((()=>{})),OAt=O((()=>{})),kAt=O((()=>{})),AAt=O((()=>{})),jAt=O((()=>{})),MAt=O((()=>{})),NAt=O((()=>{})),PAt=O((()=>{})),FAt=O((()=>{})),IAt=O((()=>{})),LAt=O((()=>{})),RAt=O((()=>{})),zAt=O((()=>{})),BAt=O((()=>{})),VAt=O((()=>{})),HAt=O((()=>{})),UAt=O((()=>{})),WAt=O((()=>{})),GAt=O((()=>{})),KAt=O((()=>{})),qAt=O((()=>{})),JAt=O((()=>{})),YAt=O((()=>{})),XAt=O((()=>{})),ZAt=O((()=>{})),QAt=O((()=>{})),$At=O((()=>{})),ejt=O((()=>{})),tjt=O((()=>{})),njt=O((()=>{})),rjt=O((()=>{})),ijt=O((()=>{})),ajt=O((()=>{})),ojt=O((()=>{})),sjt=O((()=>{})),cjt=O((()=>{})),ljt=O((()=>{})),ujt=O((()=>{})),djt=O((()=>{})),fjt=O((()=>{})),pjt=O((()=>{})),mjt=O((()=>{})),hjt=O((()=>{})),gjt=O((()=>{})),_jt=O((()=>{})),vjt=O((()=>{})),yjt=O((()=>{})),bjt=O((()=>{})),xjt=O((()=>{})),Sjt=O((()=>{})),Cjt=O((()=>{})),wjt=O((()=>{})),Tjt=O((()=>{})),Ejt=O((()=>{})),Djt=O((()=>{})),Ojt=O((()=>{})),kjt=O((()=>{})),Ajt=O((()=>{})),jjt=O((()=>{})),Mjt=O((()=>{})),Njt=O((()=>{})),Pjt=O((()=>{})),Fjt=O((()=>{})),Ijt=O((()=>{})),Ljt=O((()=>{})),Rjt=O((()=>{})),zjt=O((()=>{})),Bjt=O((()=>{})),Vjt=O((()=>{})),Hjt=O((()=>{})),Ujt=O((()=>{})),Wjt=O((()=>{})),Gjt=O((()=>{})),Kjt=O((()=>{})),qjt=O((()=>{})),Jjt=O((()=>{})),Yjt=O((()=>{})),Xjt=O((()=>{})),Zjt=O((()=>{})),Qjt=O((()=>{})),$jt=O((()=>{})),eMt=O((()=>{})),tMt=O((()=>{})),nMt=O((()=>{})),rMt=O((()=>{})),iMt=O((()=>{})),aMt=O((()=>{})),oMt=O((()=>{})),sMt=O((()=>{})),cMt=O((()=>{})),lMt=O((()=>{})),uMt=O((()=>{})),dMt=O((()=>{})),fMt=O((()=>{})),pMt=O((()=>{})),mMt=O((()=>{})),hMt=O((()=>{})),gMt=O((()=>{})),_Mt=O((()=>{})),vMt=O((()=>{})),yMt=O((()=>{})),bMt=O((()=>{})),xMt=O((()=>{})),SMt=O((()=>{})),CMt=O((()=>{})),wMt=O((()=>{})),TMt=O((()=>{})),EMt=O((()=>{})),DMt=O((()=>{})),OMt=O((()=>{})),kMt=O((()=>{})),AMt=O((()=>{})),jMt=O((()=>{})),MMt=O((()=>{})),NMt=O((()=>{})),PMt=O((()=>{})),FMt=O((()=>{})),IMt=O((()=>{})),LMt=O((()=>{})),RMt=O((()=>{})),zMt=O((()=>{})),BMt=O((()=>{})),VMt=O((()=>{})),HMt=O((()=>{})),UMt=O((()=>{})),WMt=O((()=>{})),GMt=O((()=>{})),KMt=O((()=>{})),qMt=O((()=>{})),JMt=O((()=>{})),YMt=O((()=>{})),XMt=O((()=>{})),ZMt=O((()=>{})),QMt=O((()=>{})),$Mt=O((()=>{})),eNt=O((()=>{})),tNt=O((()=>{})),nNt=O((()=>{})),rNt=O((()=>{})),iNt=O((()=>{})),aNt=O((()=>{})),oNt=O((()=>{})),sNt=O((()=>{})),cNt=O((()=>{})),lNt=O((()=>{})),uNt=O((()=>{})),dNt=O((()=>{})),fNt=O((()=>{})),pNt=O((()=>{})),mNt=O((()=>{})),hNt=O((()=>{})),gNt=O((()=>{})),_Nt=O((()=>{})),vNt=O((()=>{})),yNt=O((()=>{})),bNt=O((()=>{})),xNt=O((()=>{})),SNt=O((()=>{})),CNt=O((()=>{})),wNt=O((()=>{})),TNt=O((()=>{})),ENt=O((()=>{})),DNt=O((()=>{})),ONt=O((()=>{})),kNt=O((()=>{})),ANt=O((()=>{})),jNt=O((()=>{})),MNt=O((()=>{})),NNt=O((()=>{})),PNt=O((()=>{})),FNt=O((()=>{})),INt=O((()=>{})),LNt=O((()=>{})),RNt=O((()=>{})),zNt=O((()=>{})),BNt=O((()=>{})),VNt=O((()=>{})),HNt=O((()=>{})),UNt=O((()=>{})),WNt=O((()=>{})),GNt=O((()=>{})),KNt=O((()=>{})),qNt=O((()=>{})),JNt=O((()=>{})),YNt=O((()=>{})),XNt=O((()=>{})),ZNt=O((()=>{})),QNt=O((()=>{})),$Nt=O((()=>{})),ePt=O((()=>{})),tPt=O((()=>{})),nPt=O((()=>{})),rPt=O((()=>{})),iPt=O((()=>{})),aPt=O((()=>{})),oPt=O((()=>{})),sPt=O((()=>{})),cPt=O((()=>{})),lPt=O((()=>{})),uPt=O((()=>{})),dPt=O((()=>{})),fPt=O((()=>{})),pPt=O((()=>{})),mPt=O((()=>{})),hPt=O((()=>{})),gPt=O((()=>{})),_Pt=O((()=>{})),vPt=O((()=>{})),yPt=O((()=>{})),bPt=O((()=>{})),xPt=O((()=>{})),SPt=O((()=>{})),CPt=O((()=>{})),wPt=O((()=>{})),TPt=O((()=>{})),EPt=O((()=>{})),DPt=O((()=>{})),OPt=O((()=>{})),kPt=O((()=>{})),APt=O((()=>{})),jPt=O((()=>{})),MPt=O((()=>{})),NPt=O((()=>{})),PPt=O((()=>{})),FPt=O((()=>{})),IPt=O((()=>{})),LPt=O((()=>{})),RPt=O((()=>{})),zPt=O((()=>{})),BPt=O((()=>{})),VPt=O((()=>{})),HPt=O((()=>{})),UPt=O((()=>{})),WPt=O((()=>{})),GPt=O((()=>{})),KPt=O((()=>{})),qPt=O((()=>{})),JPt=O((()=>{})),YPt=O((()=>{})),XPt=O((()=>{})),ZPt=O((()=>{})),QPt=O((()=>{})),$Pt=O((()=>{})),eFt=O((()=>{})),tFt=O((()=>{})),nFt=O((()=>{})),rFt=O((()=>{})),iFt=O((()=>{})),aFt=O((()=>{})),oFt=O((()=>{})),sFt=O((()=>{})),cFt=O((()=>{})),lFt=O((()=>{})),uFt=O((()=>{})),dFt=O((()=>{})),fFt=O((()=>{})),pFt=O((()=>{})),mFt=O((()=>{})),hFt=O((()=>{})),gFt=O((()=>{})),_Ft=O((()=>{})),vFt=O((()=>{})),yFt=O((()=>{})),bFt=O((()=>{})),xFt=O((()=>{})),SFt=O((()=>{})),CFt=O((()=>{})),wFt=O((()=>{})),TFt=O((()=>{})),EFt=O((()=>{})),DFt=O((()=>{})),OFt=O((()=>{})),kFt=O((()=>{})),AFt=O((()=>{})),jFt=O((()=>{})),MFt=O((()=>{})),NFt=O((()=>{})),PFt=O((()=>{})),FFt=O((()=>{})),IFt=O((()=>{})),LFt=O((()=>{})),RFt=O((()=>{})),zFt=O((()=>{})),BFt=O((()=>{})),VFt=O((()=>{})),HFt=O((()=>{})),UFt=O((()=>{})),WFt=O((()=>{})),GFt=O((()=>{})),KFt=O((()=>{})),qFt=O((()=>{})),JFt=O((()=>{})),YFt=O((()=>{})),XFt=O((()=>{})),ZFt=O((()=>{})),QFt=O((()=>{})),$Ft=O((()=>{})),eIt=O((()=>{})),tIt=O((()=>{})),nIt=O((()=>{})),rIt=O((()=>{})),iIt=O((()=>{})),aIt=O((()=>{})),oIt=O((()=>{})),sIt=O((()=>{})),cIt=O((()=>{})),lIt=O((()=>{})),uIt=O((()=>{})),dIt=O((()=>{})),fIt=O((()=>{})),pIt=O((()=>{})),mIt=O((()=>{})),hIt=O((()=>{})),gIt=O((()=>{})),_It=O((()=>{})),vIt=O((()=>{})),yIt=O((()=>{})),bIt=O((()=>{})),xIt=O((()=>{})),SIt=O((()=>{})),CIt=O((()=>{})),wIt=O((()=>{})),TIt=O((()=>{})),EIt=O((()=>{})),DIt=O((()=>{})),OIt=O((()=>{})),kIt=O((()=>{})),AIt=O((()=>{})),jIt=O((()=>{})),MIt=O((()=>{})),NIt=O((()=>{})),PIt=O((()=>{})),FIt=O((()=>{})),IIt=O((()=>{})),LIt=O((()=>{})),RIt=O((()=>{})),zIt=O((()=>{})),BIt=O((()=>{})),VIt=O((()=>{})),HIt=O((()=>{})),UIt=O((()=>{})),WIt=O((()=>{})),GIt=O((()=>{})),KIt=O((()=>{})),qIt=O((()=>{})),JIt=O((()=>{})),YIt=O((()=>{})),XIt=O((()=>{})),ZIt=O((()=>{})),QIt=O((()=>{})),$It=O((()=>{})),eLt=O((()=>{})),tLt=O((()=>{})),nLt=O((()=>{})),rLt=O((()=>{})),iLt=O((()=>{})),aLt=O((()=>{})),oLt=O((()=>{})),sLt=O((()=>{})),cLt=O((()=>{})),lLt=O((()=>{})),uLt=O((()=>{})),dLt=O((()=>{})),fLt=O((()=>{})),pLt=O((()=>{})),mLt=O((()=>{})),hLt=O((()=>{})),gLt=O((()=>{})),_Lt=O((()=>{})),vLt=O((()=>{})),yLt=O((()=>{})),bLt=O((()=>{})),xLt=O((()=>{})),SLt=O((()=>{})),CLt=O((()=>{})),wLt=O((()=>{})),TLt=O((()=>{})),ELt=O((()=>{})),DLt=O((()=>{})),OLt=O((()=>{})),kLt=O((()=>{})),ALt=O((()=>{})),jLt=O((()=>{})),MLt=O((()=>{})),NLt=O((()=>{})),PLt=O((()=>{})),FLt=O((()=>{})),ILt=O((()=>{})),LLt=O((()=>{})),RLt=O((()=>{})),zLt=O((()=>{})),BLt=O((()=>{})),VLt=O((()=>{})),HLt=O((()=>{})),ULt=O((()=>{})),WLt=O((()=>{})),GLt=O((()=>{})),KLt=O((()=>{})),qLt=O((()=>{})),JLt=O((()=>{})),YLt=O((()=>{})),XLt=O((()=>{})),ZLt=O((()=>{})),QLt=O((()=>{})),$Lt=O((()=>{})),eRt=O((()=>{})),tRt=O((()=>{})),nRt=O((()=>{})),rRt=O((()=>{})),iRt=O((()=>{})),aRt=O((()=>{})),oRt=O((()=>{})),sRt=O((()=>{})),cRt=O((()=>{})),lRt=O((()=>{})),uRt=O((()=>{})),dRt=O((()=>{})),fRt=O((()=>{})),pRt=O((()=>{})),mRt=O((()=>{})),hRt=O((()=>{})),gRt=O((()=>{})),_Rt=O((()=>{})),vRt=O((()=>{})),yRt=O((()=>{})),bRt=O((()=>{})),xRt=O((()=>{})),SRt=O((()=>{})),CRt=O((()=>{})),wRt=O((()=>{})),TRt=O((()=>{})),ERt=O((()=>{})),DRt=O((()=>{})),ORt=O((()=>{})),kRt=O((()=>{})),ARt=O((()=>{})),jRt=O((()=>{})),MRt=O((()=>{})),NRt=O((()=>{})),PRt=O((()=>{})),FRt=O((()=>{})),IRt=O((()=>{})),LRt=O((()=>{})),RRt=O((()=>{})),zRt=O((()=>{})),BRt=O((()=>{})),VRt=O((()=>{})),HRt=O((()=>{})),URt=O((()=>{})),WRt=O((()=>{})),GRt=O((()=>{})),KRt=O((()=>{})),qRt=O((()=>{})),JRt=O((()=>{})),YRt=O((()=>{})),XRt=O((()=>{})),ZRt=O((()=>{})),QRt=O((()=>{})),$Rt=O((()=>{})),ezt=O((()=>{})),tzt=O((()=>{})),nzt=O((()=>{})),rzt=O((()=>{})),izt=O((()=>{})),azt=O((()=>{})),ozt=O((()=>{})),szt=O((()=>{})),czt=O((()=>{})),lzt=O((()=>{})),uzt=O((()=>{})),dzt=O((()=>{})),fzt=O((()=>{})),pzt=O((()=>{})),mzt=O((()=>{})),hzt=O((()=>{})),gzt=O((()=>{})),_zt=O((()=>{})),vzt=O((()=>{})),yzt=O((()=>{})),bzt=O((()=>{})),xzt=O((()=>{})),Szt=O((()=>{})),Czt=O((()=>{})),wzt=O((()=>{})),Tzt=O((()=>{})),Ezt=O((()=>{})),Dzt=O((()=>{})),Ozt=O((()=>{})),kzt=O((()=>{})),Azt=O((()=>{})),jzt=O((()=>{})),Mzt=O((()=>{})),Nzt=O((()=>{})),Pzt=O((()=>{})),Fzt=O((()=>{})),Izt=O((()=>{})),Lzt=O((()=>{})),Rzt=O((()=>{})),zzt=O((()=>{})),Bzt=O((()=>{})),Vzt=O((()=>{})),Hzt=O((()=>{})),Uzt=O((()=>{})),Wzt=O((()=>{})),Gzt=O((()=>{})),Kzt=O((()=>{})),qzt=O((()=>{})),Jzt=O((()=>{})),Yzt=O((()=>{})),Xzt=O((()=>{})),Zzt=O((()=>{})),Qzt=O((()=>{})),$zt=O((()=>{})),eBt=O((()=>{})),tBt=O((()=>{})),nBt=O((()=>{})),rBt=O((()=>{})),iBt=O((()=>{})),aBt=O((()=>{})),oBt=O((()=>{})),sBt=O((()=>{})),cBt=O((()=>{})),lBt=O((()=>{})),uBt=O((()=>{})),dBt=O((()=>{})),fBt=O((()=>{})),pBt=O((()=>{})),mBt=O((()=>{})),hBt=O((()=>{})),gBt=O((()=>{})),_Bt=O((()=>{})),vBt=O((()=>{})),yBt=O((()=>{})),bBt=O((()=>{})),xBt=O((()=>{})),SBt=O((()=>{})),CBt=O((()=>{})),wBt=O((()=>{})),TBt=O((()=>{})),EBt=O((()=>{})),DBt=O((()=>{})),OBt=O((()=>{})),kBt=O((()=>{})),ABt=O((()=>{})),jBt=O((()=>{})),MBt=O((()=>{})),NBt=O((()=>{})),PBt=O((()=>{})),FBt=O((()=>{})),IBt=O((()=>{})),LBt=O((()=>{})),RBt=O((()=>{})),zBt=O((()=>{})),BBt=O((()=>{})),VBt=O((()=>{})),HBt=O((()=>{})),UBt=O((()=>{})),WBt=O((()=>{})),GBt=O((()=>{})),KBt=O((()=>{})),qBt=O((()=>{})),JBt=O((()=>{})),YBt=O((()=>{})),XBt=O((()=>{})),ZBt=O((()=>{})),QBt=O((()=>{})),$Bt=O((()=>{})),eVt=O((()=>{})),tVt=O((()=>{})),nVt=O((()=>{})),rVt=O((()=>{})),iVt=O((()=>{})),aVt=O((()=>{})),oVt=O((()=>{})),sVt=O((()=>{})),cVt=O((()=>{})),lVt=O((()=>{})),uVt=O((()=>{})),dVt=O((()=>{})),fVt=O((()=>{})),pVt=O((()=>{})),mVt=O((()=>{})),hVt=O((()=>{})),gVt=O((()=>{})),_Vt=O((()=>{})),vVt=O((()=>{})),yVt=O((()=>{})),bVt=O((()=>{})),xVt=O((()=>{})),SVt=O((()=>{})),CVt=O((()=>{})),wVt=O((()=>{})),TVt=O((()=>{})),EVt=O((()=>{})),DVt=O((()=>{})),OVt=O((()=>{})),kVt=O((()=>{})),AVt=O((()=>{})),jVt=O((()=>{})),MVt=O((()=>{})),NVt=O((()=>{})),PVt=O((()=>{})),FVt=O((()=>{})),IVt=O((()=>{})),LVt=O((()=>{})),RVt=O((()=>{})),zVt=O((()=>{})),BVt=O((()=>{})),VVt=O((()=>{})),HVt=O((()=>{})),UVt=O((()=>{})),WVt=O((()=>{})),GVt=O((()=>{})),KVt=O((()=>{})),qVt=O((()=>{})),JVt=O((()=>{})),YVt=O((()=>{})),XVt=O((()=>{})),ZVt=O((()=>{})),QVt=O((()=>{})),$Vt=O((()=>{})),eHt=O((()=>{})),tHt=O((()=>{})),nHt=O((()=>{})),rHt=O((()=>{})),iHt=O((()=>{})),aHt=O((()=>{})),oHt=O((()=>{})),sHt=O((()=>{})),cHt=O((()=>{})),lHt=O((()=>{})),uHt=O((()=>{})),dHt=O((()=>{})),fHt=O((()=>{})),pHt=O((()=>{})),mHt=O((()=>{})),hHt=O((()=>{})),gHt=O((()=>{})),_Ht=O((()=>{})),vHt=O((()=>{})),yHt=O((()=>{})),bHt=O((()=>{})),xHt=O((()=>{})),SHt=O((()=>{})),CHt=O((()=>{})),wHt=O((()=>{})),THt=O((()=>{})),EHt=O((()=>{})),DHt=O((()=>{})),OHt=O((()=>{})),kHt=O((()=>{})),AHt=O((()=>{})),jHt=O((()=>{})),MHt=O((()=>{})),NHt=O((()=>{})),PHt=O((()=>{})),FHt=O((()=>{})),IHt=O((()=>{})),LHt=O((()=>{})),RHt=O((()=>{})),zHt=O((()=>{})),BHt=O((()=>{})),VHt=O((()=>{})),HHt=O((()=>{})),UHt=O((()=>{})),WHt=O((()=>{})),GHt=O((()=>{})),KHt=O((()=>{})),qHt=O((()=>{})),JHt=O((()=>{})),YHt=O((()=>{})),XHt=O((()=>{})),ZHt=O((()=>{})),QHt=O((()=>{})),$Ht=O((()=>{})),eUt=O((()=>{})),tUt=O((()=>{})),nUt=O((()=>{})),rUt=O((()=>{})),iUt=O((()=>{})),aUt=O((()=>{})),oUt=O((()=>{})),sUt=O((()=>{})),cUt=O((()=>{})),lUt=O((()=>{})),uUt=O((()=>{})),dUt=O((()=>{})),fUt=O((()=>{})),pUt=O((()=>{})),mUt=O((()=>{})),hUt=O((()=>{})),gUt=O((()=>{})),_Ut=O((()=>{})),vUt=O((()=>{})),yUt=O((()=>{})),bUt=O((()=>{})),xUt=O((()=>{})),SUt=O((()=>{})),CUt=O((()=>{Yit(),Xit(),Zit(),Qit(),$it(),eat(),tat(),nat(),rat(),iat(),aat(),oat(),sat(),cat(),lat(),uat(),dat(),fat(),pat(),mat(),hat(),gat(),_at(),vat(),yat(),bat(),xat(),Sat(),Cat(),wat(),Tat(),Eat(),Dat(),Oat(),kat(),Aat(),jat(),Mat(),Nat(),Pat(),Fat(),Iat(),Lat(),Rat(),zat(),Bat(),Vat(),Hat(),Uat(),Wat(),Gat(),Kat(),qat(),Jat(),Yat(),Xat(),Zat(),Qat(),$at(),eot(),tot(),not(),rot(),iot(),aot(),oot(),sot(),cot(),lot(),uot(),dot(),fot(),pot(),mot(),hot(),got(),_ot(),vot(),yot(),bot(),xot(),Sot(),Cot(),wot(),Tot(),Eot(),Dot(),Oot(),kot(),Aot(),jot(),Mot(),Not(),Pot(),Fot(),Iot(),Lot(),Rot(),zot(),Bot(),Vot(),Hot(),Uot(),Wot(),Got(),Kot(),qot(),Jot(),Yot(),Xot(),Zot(),Qot(),$ot(),est(),tst(),nst(),rst(),ist(),ast(),ost(),sst(),cst(),lst(),ust(),dst(),fst(),pst(),mst(),hst(),gst(),_st(),vst(),yst(),bst(),xst(),Sst(),Cst(),wst(),Tst(),Est(),Dst(),Ost(),kst(),Ast(),jst(),Mst(),Nst(),Pst(),Fst(),Ist(),Lst(),Rst(),zst(),Bst(),Vst(),Hst(),Ust(),Wst(),Gst(),Kst(),qst(),Jst(),Yst(),Xst(),Zst(),Qst(),$st(),ect(),tct(),nct(),rct(),ict(),act(),oct(),sct(),cct(),lct(),uct(),dct(),fct(),pct(),mct(),hct(),gct(),_ct(),vct(),yct(),bct(),xct(),Sct(),Cct(),wct(),Tct(),Ect(),Dct(),Oct(),kct(),Act(),jct(),Mct(),Nct(),Pct(),Fct(),Ict(),Lct(),Rct(),zct(),Bct(),Vct(),Hct(),Uct(),Wct(),Gct(),Kct(),qct(),Jct(),Yct(),Xct(),Zct(),Qct(),$ct(),elt(),tlt(),nlt(),rlt(),ilt(),alt(),olt(),slt(),clt(),llt(),ult(),dlt(),flt(),plt(),mlt(),hlt(),glt(),_lt(),vlt(),ylt(),blt(),xlt(),Slt(),Clt(),wlt(),Tlt(),Elt(),Dlt(),Olt(),klt(),Alt(),jlt(),Mlt(),Nlt(),Plt(),Flt(),Ilt(),Llt(),Rlt(),zlt(),Blt(),Vlt(),Hlt(),Ult(),Wlt(),Glt(),Klt(),qlt(),Jlt(),Ylt(),Xlt(),Zlt(),Qlt(),$lt(),eut(),tut(),nut(),rut(),iut(),aut(),out(),sut(),cut(),lut(),uut(),dut(),fut(),put(),mut(),hut(),gut(),_ut(),vut(),yut(),but(),xut(),Sut(),Cut(),wut(),Tut(),Eut(),Dut(),Out(),kut(),Aut(),jut(),Mut(),Nut(),Put(),Fut(),Iut(),Lut(),Rut(),zut(),But(),Vut(),Hut(),Uut(),Wut(),Gut(),Kut(),qut(),Jut(),Yut(),Xut(),Zut(),Qut(),$ut(),edt(),tdt(),ndt(),rdt(),idt(),adt(),odt(),sdt(),cdt(),ldt(),udt(),ddt(),fdt(),pdt(),mdt(),hdt(),gdt(),_dt(),vdt(),ydt(),bdt(),xdt(),Sdt(),Cdt(),wdt(),Tdt(),Edt(),Ddt(),Odt(),kdt(),Adt(),jdt(),Mdt(),Ndt(),Pdt(),Fdt(),Idt(),Ldt(),Rdt(),zdt(),Bdt(),Vdt(),Hdt(),Udt(),Wdt(),Gdt(),Kdt(),qdt(),Jdt(),Ydt(),Xdt(),Zdt(),Qdt(),$dt(),eft(),tft(),nft(),rft(),ift(),aft(),oft(),sft(),cft(),lft(),uft(),dft(),fft(),pft(),mft(),hft(),gft(),_ft(),vft(),yft(),bft(),xft(),Sft(),Cft(),wft(),Tft(),Eft(),Dft(),Oft(),kft(),Aft(),jft(),Mft(),Nft(),Pft(),Fft(),Ift(),Lft(),Rft(),zft(),Bft(),Vft(),Hft(),Uft(),Wft(),Gft(),Kft(),qft(),Jft(),Yft(),Xft(),Zft(),Qft(),$ft(),ept(),tpt(),npt(),rpt(),ipt(),apt(),opt(),spt(),cpt(),lpt(),upt(),dpt(),fpt(),ppt(),mpt(),hpt(),gpt(),_pt(),vpt(),ypt(),bpt(),xpt(),Spt(),Cpt(),wpt(),Tpt(),Ept(),Dpt(),Opt(),kpt(),Apt(),jpt(),Mpt(),Npt(),Ppt(),Fpt(),Ipt(),Lpt(),Rpt(),zpt(),Bpt(),Vpt(),Hpt(),Upt(),Wpt(),Gpt(),Kpt(),qpt(),Jpt(),Ypt(),Xpt(),Zpt(),Qpt(),$pt(),emt(),tmt(),nmt(),rmt(),imt(),amt(),omt(),smt(),cmt(),lmt(),umt(),dmt(),fmt(),pmt(),mmt(),hmt(),gmt(),_mt(),vmt(),ymt(),bmt(),xmt(),Smt(),Cmt(),wmt(),Tmt(),Emt(),Dmt(),Omt(),kmt(),Amt(),jmt(),Mmt(),Nmt(),Pmt(),Fmt(),Imt(),Lmt(),Rmt(),zmt(),Bmt(),Vmt(),Hmt(),Umt(),Wmt(),Gmt(),Kmt(),qmt(),Jmt(),Ymt(),Xmt(),Zmt(),Qmt(),$mt(),eht(),tht(),nht(),rht(),iht(),aht(),oht(),sht(),cht(),lht(),uht(),dht(),fht(),pht(),mht(),hht(),ght(),_ht(),vht(),yht(),bht(),xht(),Sht(),Cht(),wht(),Tht(),Eht(),Dht(),Oht(),kht(),Aht(),jht(),Mht(),Nht(),Pht(),Fht(),Iht(),Lht(),Rht(),zht(),Bht(),Vht(),Hht(),Uht(),Wht(),Ght(),Kht(),qht(),Jht(),Yht(),Xht(),Zht(),Qht(),$ht(),egt(),tgt(),ngt(),rgt(),igt(),agt(),ogt(),sgt(),cgt(),lgt(),ugt(),dgt(),fgt(),pgt(),mgt(),hgt(),ggt(),_gt(),vgt(),ygt(),bgt(),xgt(),Sgt(),Cgt(),wgt(),Tgt(),Egt(),Dgt(),Ogt(),kgt(),Agt(),jgt(),Mgt(),Ngt(),Pgt(),Fgt(),Igt(),Lgt(),Rgt(),zgt(),Bgt(),Vgt(),Hgt(),Ugt(),Wgt(),Ggt(),Kgt(),qgt(),Jgt(),Ygt(),Xgt(),Zgt(),Qgt(),$gt(),e_t(),t_t(),n_t(),r_t(),i_t(),a_t(),o_t(),s_t(),c_t(),l_t(),u_t(),d_t(),f_t(),p_t(),m_t(),h_t(),g_t(),__t(),v_t(),y_t(),b_t(),x_t(),S_t(),C_t(),w_t(),T_t(),E_t(),D_t(),O_t(),k_t(),A_t(),j_t(),M_t(),N_t(),P_t(),F_t(),I_t(),L_t(),R_t(),z_t(),B_t(),V_t(),H_t(),U_t(),W_t(),G_t(),K_t(),q_t(),J_t(),Y_t(),X_t(),Z_t(),Q_t(),$_t(),evt(),tvt(),nvt(),rvt(),ivt(),avt(),ovt(),svt(),cvt(),lvt(),uvt(),dvt(),fvt(),pvt(),mvt(),hvt(),gvt(),_vt(),vvt(),yvt(),bvt(),xvt(),Svt(),Cvt(),wvt(),Tvt(),Evt(),Dvt(),Ovt(),kvt(),Avt(),jvt(),Mvt(),Nvt(),Pvt(),Fvt(),Ivt(),Lvt(),Rvt(),zvt(),Bvt(),Vvt(),Hvt(),Uvt(),Wvt(),Gvt(),Kvt(),qvt(),Jvt(),Yvt(),Xvt(),Zvt(),Qvt(),$vt(),eyt(),tyt(),nyt(),ryt(),iyt(),ayt(),oyt(),syt(),cyt(),lyt(),uyt(),dyt(),fyt(),pyt(),myt(),hyt(),gyt(),_yt(),vyt(),yyt(),byt(),xyt(),Syt(),Cyt(),wyt(),Tyt(),Eyt(),Dyt(),Oyt(),kyt(),Ayt(),jyt(),Myt(),Nyt(),Pyt(),Fyt(),Iyt(),Lyt(),Ryt(),zyt(),Byt(),Vyt(),Hyt(),Uyt(),Wyt(),Gyt(),Kyt(),qyt(),Jyt(),Yyt(),Xyt(),Zyt(),Qyt(),$yt(),ebt(),tbt(),nbt(),rbt(),ibt(),abt(),obt(),sbt(),cbt(),lbt(),ubt(),dbt(),fbt(),pbt(),mbt(),hbt(),gbt(),_bt(),vbt(),ybt(),bbt(),xbt(),Sbt(),Cbt(),wbt(),Tbt(),Ebt(),Dbt(),Obt(),kbt(),Abt(),jbt(),Mbt(),Nbt(),Pbt(),Fbt(),Ibt(),Lbt(),Rbt(),zbt(),Bbt(),Vbt(),Hbt(),Ubt(),Wbt(),Gbt(),Kbt(),qbt(),Jbt(),Ybt(),Xbt(),Zbt(),Qbt(),$bt(),ext(),txt(),nxt(),rxt(),ixt(),axt(),oxt(),sxt(),cxt(),lxt(),uxt(),dxt(),fxt(),pxt(),mxt(),hxt(),gxt(),_xt(),vxt(),yxt(),bxt(),xxt(),Sxt(),Cxt(),wxt(),Txt(),Ext(),Dxt(),Oxt(),kxt(),Axt(),jxt(),Mxt(),Nxt(),Pxt(),Fxt(),Ixt(),Lxt(),Rxt(),zxt(),Bxt(),Vxt(),Hxt(),Uxt(),Wxt(),Gxt(),Kxt(),qxt(),Jxt(),Yxt(),Xxt(),Zxt(),Qxt(),$xt(),eSt(),tSt(),nSt(),rSt(),iSt(),aSt(),oSt(),sSt(),cSt(),lSt(),uSt(),dSt(),fSt(),pSt(),mSt(),hSt(),gSt(),_St(),vSt(),ySt(),bSt(),xSt(),SSt(),CSt(),wSt(),TSt(),ESt(),DSt(),OSt(),kSt(),ASt(),jSt(),MSt(),NSt(),PSt(),FSt(),ISt(),LSt(),RSt(),zSt(),BSt(),VSt(),HSt(),USt(),WSt(),GSt(),KSt(),qSt(),JSt(),YSt(),XSt(),ZSt(),QSt(),$St(),eCt(),tCt(),nCt(),rCt(),iCt(),aCt(),oCt(),sCt(),cCt(),lCt(),uCt(),dCt(),fCt(),pCt(),mCt(),hCt(),gCt(),_Ct(),vCt(),yCt(),bCt(),xCt(),SCt(),CCt(),wCt(),TCt(),ECt(),DCt(),OCt(),kCt(),ACt(),jCt(),MCt(),NCt(),PCt(),FCt(),ICt(),LCt(),RCt(),zCt(),BCt(),VCt(),HCt(),UCt(),WCt(),GCt(),KCt(),qCt(),JCt(),YCt(),XCt(),ZCt(),QCt(),$Ct(),ewt(),twt(),nwt(),rwt(),iwt(),awt(),owt(),swt(),cwt(),lwt(),uwt(),dwt(),fwt(),pwt(),mwt(),hwt(),gwt(),_wt(),vwt(),ywt(),bwt(),xwt(),Swt(),Cwt(),wwt(),Twt(),Ewt(),Dwt(),Owt(),kwt(),Awt(),jwt(),Mwt(),Nwt(),Pwt(),Fwt(),Iwt(),Lwt(),Rwt(),zwt(),Bwt(),Vwt(),Hwt(),Uwt(),Wwt(),Gwt(),Kwt(),qwt(),Jwt(),Ywt(),Xwt(),Zwt(),Qwt(),$wt(),eTt(),tTt(),nTt(),rTt(),iTt(),aTt(),oTt(),sTt(),cTt(),lTt(),uTt(),dTt(),fTt(),pTt(),mTt(),hTt(),gTt(),_Tt(),vTt(),yTt(),bTt(),xTt(),STt(),CTt(),wTt(),TTt(),ETt(),DTt(),OTt(),kTt(),ATt(),jTt(),MTt(),NTt(),PTt(),FTt(),ITt(),LTt(),RTt(),zTt(),BTt(),VTt(),HTt(),UTt(),WTt(),GTt(),KTt(),qTt(),JTt(),YTt(),XTt(),ZTt(),QTt(),$Tt(),eEt(),tEt(),nEt(),rEt(),iEt(),aEt(),oEt(),sEt(),cEt(),lEt(),uEt(),dEt(),fEt(),pEt(),mEt(),hEt(),gEt(),_Et(),vEt(),yEt(),bEt(),xEt(),SEt(),CEt(),wEt(),TEt(),EEt(),DEt(),OEt(),kEt(),AEt(),jEt(),MEt(),NEt(),PEt(),FEt(),IEt(),LEt(),REt(),zEt(),BEt(),VEt(),HEt(),UEt(),WEt(),GEt(),KEt(),qEt(),JEt(),YEt(),XEt(),ZEt(),QEt(),$Et(),eDt(),tDt(),nDt(),rDt(),iDt(),aDt(),oDt(),sDt(),cDt(),lDt(),uDt(),dDt(),fDt(),pDt(),mDt(),hDt(),gDt(),_Dt(),vDt(),yDt(),bDt(),xDt(),SDt(),CDt(),wDt(),TDt(),EDt(),DDt(),ODt(),kDt(),ADt(),jDt(),MDt(),NDt(),PDt(),FDt(),IDt(),LDt(),RDt(),zDt(),BDt(),VDt(),HDt(),UDt(),WDt(),GDt(),KDt(),qDt(),JDt(),YDt(),XDt(),ZDt(),QDt(),$Dt(),eOt(),tOt(),nOt(),rOt(),iOt(),aOt(),oOt(),sOt(),cOt(),lOt(),uOt(),dOt(),fOt(),pOt(),mOt(),hOt(),gOt(),_Ot(),vOt(),yOt(),bOt(),xOt(),SOt(),COt(),wOt(),TOt(),EOt(),DOt(),OOt(),kOt(),AOt(),jOt(),MOt(),NOt(),POt(),FOt(),IOt(),LOt(),ROt(),zOt(),BOt(),VOt(),HOt(),UOt(),WOt(),GOt(),KOt(),qOt(),JOt(),YOt(),XOt(),ZOt(),QOt(),$Ot(),ekt(),tkt(),nkt(),rkt(),ikt(),akt(),okt(),skt(),ckt(),lkt(),ukt(),dkt(),fkt(),pkt(),mkt(),hkt(),gkt(),_kt(),vkt(),ykt(),bkt(),xkt(),Skt(),Ckt(),wkt(),Tkt(),Ekt(),Dkt(),Okt(),kkt(),Akt(),jkt(),Mkt(),Nkt(),Pkt(),Fkt(),Ikt(),Lkt(),Rkt(),zkt(),Bkt(),Vkt(),Hkt(),Ukt(),Wkt(),Gkt(),Kkt(),qkt(),Jkt(),Ykt(),Xkt(),Zkt(),Qkt(),$kt(),eAt(),tAt(),nAt(),rAt(),iAt(),aAt(),oAt(),sAt(),cAt(),lAt(),uAt(),dAt(),fAt(),pAt(),mAt(),hAt(),gAt(),_At(),vAt(),yAt(),bAt(),xAt(),SAt(),CAt(),wAt(),TAt(),EAt(),DAt(),OAt(),kAt(),AAt(),jAt(),MAt(),NAt(),PAt(),FAt(),IAt(),LAt(),RAt(),zAt(),BAt(),VAt(),HAt(),UAt(),WAt(),GAt(),KAt(),qAt(),JAt(),YAt(),XAt(),ZAt(),QAt(),$At(),ejt(),tjt(),njt(),rjt(),ijt(),ajt(),ojt(),sjt(),cjt(),ljt(),ujt(),djt(),fjt(),pjt(),mjt(),hjt(),gjt(),_jt(),vjt(),yjt(),bjt(),xjt(),Sjt(),Cjt(),wjt(),Tjt(),Ejt(),Djt(),Ojt(),kjt(),Ajt(),jjt(),Mjt(),Njt(),Pjt(),Fjt(),Ijt(),Ljt(),Rjt(),zjt(),Bjt(),Vjt(),Hjt(),Ujt(),Wjt(),Gjt(),Kjt(),qjt(),Jjt(),Yjt(),Xjt(),Zjt(),Qjt(),$jt(),eMt(),tMt(),nMt(),rMt(),iMt(),aMt(),oMt(),sMt(),cMt(),lMt(),uMt(),dMt(),fMt(),pMt(),mMt(),hMt(),gMt(),_Mt(),vMt(),yMt(),bMt(),xMt(),SMt(),CMt(),wMt(),TMt(),EMt(),DMt(),OMt(),kMt(),AMt(),jMt(),MMt(),NMt(),PMt(),FMt(),IMt(),LMt(),RMt(),zMt(),BMt(),VMt(),HMt(),UMt(),WMt(),GMt(),KMt(),qMt(),JMt(),YMt(),XMt(),ZMt(),QMt(),$Mt(),eNt(),tNt(),nNt(),rNt(),iNt(),aNt(),oNt(),sNt(),cNt(),lNt(),uNt(),dNt(),fNt(),pNt(),mNt(),hNt(),gNt(),_Nt(),vNt(),yNt(),bNt(),xNt(),SNt(),CNt(),wNt(),TNt(),ENt(),DNt(),ONt(),kNt(),ANt(),jNt(),MNt(),NNt(),PNt(),FNt(),INt(),LNt(),RNt(),zNt(),BNt(),VNt(),HNt(),UNt(),WNt(),GNt(),KNt(),qNt(),JNt(),YNt(),XNt(),ZNt(),QNt(),$Nt(),ePt(),tPt(),nPt(),rPt(),iPt(),aPt(),oPt(),sPt(),cPt(),lPt(),uPt(),dPt(),fPt(),pPt(),mPt(),hPt(),gPt(),_Pt(),vPt(),yPt(),bPt(),xPt(),SPt(),CPt(),wPt(),TPt(),EPt(),DPt(),OPt(),kPt(),APt(),jPt(),MPt(),NPt(),PPt(),FPt(),IPt(),LPt(),RPt(),zPt(),BPt(),VPt(),HPt(),UPt(),WPt(),GPt(),KPt(),qPt(),JPt(),YPt(),XPt(),ZPt(),QPt(),$Pt(),eFt(),tFt(),nFt(),rFt(),iFt(),aFt(),oFt(),sFt(),cFt(),lFt(),uFt(),dFt(),fFt(),pFt(),mFt(),hFt(),gFt(),_Ft(),vFt(),yFt(),bFt(),xFt(),SFt(),CFt(),wFt(),TFt(),EFt(),DFt(),OFt(),kFt(),AFt(),jFt(),MFt(),NFt(),PFt(),FFt(),IFt(),LFt(),RFt(),zFt(),BFt(),VFt(),HFt(),UFt(),WFt(),GFt(),KFt(),qFt(),JFt(),YFt(),XFt(),ZFt(),QFt(),$Ft(),eIt(),tIt(),nIt(),rIt(),iIt(),aIt(),oIt(),sIt(),cIt(),lIt(),uIt(),dIt(),fIt(),pIt(),mIt(),hIt(),gIt(),_It(),vIt(),yIt(),bIt(),xIt(),SIt(),CIt(),wIt(),TIt(),EIt(),DIt(),OIt(),kIt(),AIt(),jIt(),MIt(),NIt(),PIt(),FIt(),IIt(),LIt(),RIt(),zIt(),BIt(),VIt(),HIt(),UIt(),WIt(),GIt(),KIt(),qIt(),JIt(),YIt(),XIt(),ZIt(),QIt(),$It(),eLt(),tLt(),nLt(),rLt(),iLt(),aLt(),oLt(),sLt(),cLt(),lLt(),uLt(),dLt(),fLt(),pLt(),mLt(),hLt(),gLt(),_Lt(),vLt(),yLt(),bLt(),xLt(),SLt(),CLt(),wLt(),TLt(),ELt(),DLt(),OLt(),kLt(),ALt(),jLt(),MLt(),NLt(),PLt(),FLt(),ILt(),LLt(),RLt(),zLt(),BLt(),VLt(),HLt(),ULt(),WLt(),GLt(),KLt(),qLt(),JLt(),YLt(),XLt(),ZLt(),QLt(),$Lt(),eRt(),tRt(),nRt(),rRt(),iRt(),aRt(),oRt(),sRt(),cRt(),lRt(),uRt(),dRt(),fRt(),pRt(),mRt(),hRt(),gRt(),_Rt(),vRt(),yRt(),bRt(),xRt(),SRt(),CRt(),wRt(),TRt(),ERt(),DRt(),ORt(),kRt(),ARt(),jRt(),MRt(),NRt(),PRt(),FRt(),IRt(),LRt(),RRt(),zRt(),BRt(),VRt(),HRt(),URt(),WRt(),GRt(),KRt(),qRt(),JRt(),YRt(),XRt(),ZRt(),QRt(),$Rt(),ezt(),tzt(),nzt(),rzt(),izt(),azt(),ozt(),szt(),czt(),lzt(),uzt(),dzt(),fzt(),pzt(),mzt(),hzt(),gzt(),_zt(),vzt(),yzt(),bzt(),xzt(),Szt(),Czt(),wzt(),Tzt(),Ezt(),Dzt(),Ozt(),kzt(),Azt(),jzt(),Mzt(),Nzt(),Pzt(),Fzt(),Izt(),Lzt(),Rzt(),zzt(),Bzt(),Vzt(),Hzt(),Uzt(),Wzt(),Gzt(),Kzt(),qzt(),Jzt(),Yzt(),Xzt(),Zzt(),Qzt(),$zt(),eBt(),tBt(),nBt(),rBt(),iBt(),aBt(),oBt(),sBt(),cBt(),lBt(),uBt(),dBt(),fBt(),pBt(),mBt(),hBt(),gBt(),_Bt(),vBt(),yBt(),bBt(),xBt(),SBt(),CBt(),wBt(),TBt(),EBt(),DBt(),OBt(),kBt(),ABt(),jBt(),MBt(),NBt(),PBt(),FBt(),IBt(),LBt(),RBt(),zBt(),BBt(),VBt(),HBt(),UBt(),WBt(),GBt(),KBt(),qBt(),JBt(),YBt(),XBt(),ZBt(),QBt(),$Bt(),eVt(),tVt(),nVt(),rVt(),iVt(),aVt(),oVt(),sVt(),cVt(),lVt(),uVt(),dVt(),fVt(),pVt(),mVt(),hVt(),gVt(),_Vt(),vVt(),yVt(),bVt(),xVt(),SVt(),CVt(),wVt(),TVt(),EVt(),DVt(),OVt(),kVt(),AVt(),jVt(),MVt(),NVt(),PVt(),FVt(),IVt(),LVt(),RVt(),zVt(),BVt(),VVt(),HVt(),UVt(),WVt(),GVt(),KVt(),qVt(),JVt(),YVt(),XVt(),ZVt(),QVt(),$Vt(),eHt(),tHt(),nHt(),rHt(),iHt(),aHt(),oHt(),sHt(),cHt(),lHt(),uHt(),dHt(),fHt(),pHt(),mHt(),hHt(),gHt(),_Ht(),vHt(),yHt(),bHt(),xHt(),SHt(),CHt(),wHt(),THt(),EHt(),DHt(),OHt(),kHt(),AHt(),jHt(),MHt(),NHt(),PHt(),FHt(),IHt(),LHt(),RHt(),zHt(),BHt(),VHt(),HHt(),UHt(),WHt(),GHt(),KHt(),qHt(),JHt(),YHt(),XHt(),ZHt(),QHt(),$Ht(),eUt(),tUt(),nUt(),rUt(),iUt(),aUt(),oUt(),sUt(),cUt(),lUt(),uUt(),dUt(),fUt(),pUt(),mUt(),hUt(),gUt(),_Ut(),vUt(),yUt(),bUt(),xUt(),SUt()})),wUt=O((()=>{I()})),vq,yq=O((()=>{s.object({"object.name":s.string().describe(`display name`),"object.id":s.string().describe(`identifier`)}),s.object({grantor:s.array(s.string()).optional().describe(`--- filters ---
1436
1436
 
1437
1437
  [optional] [FROM] each rule owner is any of role(s) id; user -or- role`),grantee:s.array(s.string()).optional().describe(`[optional] [TO] subject role(s) id; user -or- role`),granted:s.array(s.string()).optional().describe(`[xrwdxrwd] [R]ecord-[b]ased-[A]ccess-[C]ontrol level check(!)`),q:s.string().optional().describe(`[optional] [TO] subject.name ILIKE ?q=; user -or- role`),fields:s.array(s.string()).optional().describe(`----- Select Options -------------------------
1438
1438
 
@@ -4809,7 +4809,7 @@ to the external chat partner.`),s.looseObject({}).describe(`ProviderSendTypingRe
4809
4809
 
4810
4810
  - PROVIDER_STATUS_ACTIVE: Provider is healthy and processing messages
4811
4811
  - PROVIDER_STATUS_INACTIVE: Manually disabled by user
4812
- - PROVIDER_STATUS_ERROR: Connection or authentication failed`),updated_at:s.string().optional(),waba_id:s.string().optional()}).optional()}).describe(`/ ProviderUpdateWhatsAppGateResponse returns the updated WhatsApp provider.`)})),PWt=O((()=>{s.object({page:s.int().optional(),size:s.int().optional(),q:s.string().optional(),sort:s.string().optional(),fields:s.array(s.string()).optional()}),s.object({items:s.array(s.object({created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),days_off:s.int().optional(),description:s.string().optional(),domain_id:s.string().optional(),id:s.string().optional(),name:s.string().optional(),pause_duration:s.int().optional(),pause_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),shift_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),sick_leaves:s.int().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),vacation:s.int().optional(),workday_hours:s.int().optional(),workdays_per_month:s.int().optional()})).optional(),next:s.boolean().optional()}),s.object({item:s.object({created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),days_off:s.int().optional(),description:s.string().optional(),domain_id:s.string().optional(),id:s.string().optional(),name:s.string().optional(),pause_duration:s.int().optional(),pause_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),shift_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),sick_leaves:s.int().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),vacation:s.int().optional(),workday_hours:s.int().optional(),workdays_per_month:s.int().optional()}).optional()}),s.object({item:s.object({created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),days_off:s.int().optional(),description:s.string().optional(),domain_id:s.string().optional(),id:s.string().optional(),name:s.string().optional(),pause_duration:s.int().optional(),pause_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),shift_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),sick_leaves:s.int().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),vacation:s.int().optional(),workday_hours:s.int().optional(),workdays_per_month:s.int().optional()}).optional()}),s.object({id:s.string()}),s.object({id:s.string().optional()}),s.object({id:s.string()}),s.object({fields:s.array(s.string()).optional()}),s.object({item:s.object({created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),days_off:s.int().optional(),description:s.string().optional(),domain_id:s.string().optional(),id:s.string().optional(),name:s.string().optional(),pause_duration:s.int().optional(),pause_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),shift_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),sick_leaves:s.int().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),vacation:s.int().optional(),workday_hours:s.int().optional(),workdays_per_month:s.int().optional()}).optional()}),s.object({"item.id":s.string()}),s.object({item:s.object({created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),days_off:s.int().optional(),description:s.string().optional(),domain_id:s.string().optional(),name:s.string().optional(),pause_duration:s.int().optional(),pause_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),shift_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),sick_leaves:s.int().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),vacation:s.int().optional(),workday_hours:s.int().optional(),workdays_per_month:s.int().optional()}).optional()}),s.object({item:s.object({created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),days_off:s.int().optional(),description:s.string().optional(),domain_id:s.string().optional(),id:s.string().optional(),name:s.string().optional(),pause_duration:s.int().optional(),pause_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),shift_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),sick_leaves:s.int().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),vacation:s.int().optional(),workday_hours:s.int().optional(),workdays_per_month:s.int().optional()}).optional()})})),FWt,IWt,LWt,RWt,zWt,BWt,VWt=O((()=>{s.object({q:s.string().optional(),page:s.int().optional(),size:s.int().optional(),sort:s.string().optional(),fields:s.array(s.string()).optional()}),FWt=`WORKING_SCHEDULE_STATE_UNSPECIFIED`,s.object({items:s.array(s.object({agents:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),block_outside_activity:s.boolean().optional(),calendar:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),domain_id:s.string().optional(),end_date_at:s.string().optional(),end_time_at:s.string().optional(),extra_skills:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),id:s.string().optional(),name:s.string().optional(),start_date_at:s.string().optional(),start_time_at:s.string().optional(),state:s.enum([`WORKING_SCHEDULE_STATE_UNSPECIFIED`,`WORKING_SCHEDULE_STATE_ACTIVE`,`WORKING_SCHEDULE_STATE_PENDING`,`WORKING_SCHEDULE_STATE_DRAFT`,`WORKING_SCHEDULE_STATE_ARCHIVED`]).default(FWt),team:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),total_agents:s.string().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional()})).optional(),next:s.boolean().optional()}),IWt=`WORKING_SCHEDULE_STATE_UNSPECIFIED`,s.object({item:s.object({agents:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),block_outside_activity:s.boolean().optional(),calendar:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),domain_id:s.string().optional(),end_date_at:s.string().optional(),end_time_at:s.string().optional(),extra_skills:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),id:s.string().optional(),name:s.string().optional(),start_date_at:s.string().optional(),start_time_at:s.string().optional(),state:s.enum([`WORKING_SCHEDULE_STATE_UNSPECIFIED`,`WORKING_SCHEDULE_STATE_ACTIVE`,`WORKING_SCHEDULE_STATE_PENDING`,`WORKING_SCHEDULE_STATE_DRAFT`,`WORKING_SCHEDULE_STATE_ARCHIVED`]).default(IWt),team:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),total_agents:s.string().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional()}).optional()}),LWt=`WORKING_SCHEDULE_STATE_UNSPECIFIED`,s.object({item:s.object({agents:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),block_outside_activity:s.boolean().optional(),calendar:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),domain_id:s.string().optional(),end_date_at:s.string().optional(),end_time_at:s.string().optional(),extra_skills:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),id:s.string().optional(),name:s.string().optional(),start_date_at:s.string().optional(),start_time_at:s.string().optional(),state:s.enum([`WORKING_SCHEDULE_STATE_UNSPECIFIED`,`WORKING_SCHEDULE_STATE_ACTIVE`,`WORKING_SCHEDULE_STATE_PENDING`,`WORKING_SCHEDULE_STATE_DRAFT`,`WORKING_SCHEDULE_STATE_ARCHIVED`]).default(LWt),team:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),total_agents:s.string().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional()}).optional()}),s.object({id:s.string()}),s.object({id:s.string().optional()}),s.object({id:s.string()}),s.object({fields:s.array(s.string()).optional()}),RWt=`WORKING_SCHEDULE_STATE_UNSPECIFIED`,s.object({item:s.object({agents:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),block_outside_activity:s.boolean().optional(),calendar:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),domain_id:s.string().optional(),end_date_at:s.string().optional(),end_time_at:s.string().optional(),extra_skills:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),id:s.string().optional(),name:s.string().optional(),start_date_at:s.string().optional(),start_time_at:s.string().optional(),state:s.enum([`WORKING_SCHEDULE_STATE_UNSPECIFIED`,`WORKING_SCHEDULE_STATE_ACTIVE`,`WORKING_SCHEDULE_STATE_PENDING`,`WORKING_SCHEDULE_STATE_DRAFT`,`WORKING_SCHEDULE_STATE_ARCHIVED`]).default(RWt),team:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),total_agents:s.string().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional()}).optional()}),s.object({id:s.string()}),s.object({agents:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional()}),s.object({agents:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional()}),s.object({id:s.string(),agent_id:s.string()}),s.object({id:s.string().optional()}),s.object({id:s.string()}),s.object({"date.from":s.string().optional(),"date.to":s.string().optional()}),s.object({items:s.record(s.string(),s.object({forecast:s.array(s.object({agents:s.string().optional(),hour:s.string().optional()})).optional()})).optional()}),s.object({"item.id":s.string()}),zWt=`WORKING_SCHEDULE_STATE_UNSPECIFIED`,s.object({item:s.object({agents:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),block_outside_activity:s.boolean().optional(),calendar:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),domain_id:s.string().optional(),end_date_at:s.string().optional(),end_time_at:s.string().optional(),extra_skills:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),name:s.string().optional(),start_date_at:s.string().optional(),start_time_at:s.string().optional(),state:s.enum([`WORKING_SCHEDULE_STATE_UNSPECIFIED`,`WORKING_SCHEDULE_STATE_ACTIVE`,`WORKING_SCHEDULE_STATE_PENDING`,`WORKING_SCHEDULE_STATE_DRAFT`,`WORKING_SCHEDULE_STATE_ARCHIVED`]).default(zWt),team:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),total_agents:s.string().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional()}).optional()}),BWt=`WORKING_SCHEDULE_STATE_UNSPECIFIED`,s.object({item:s.object({agents:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),block_outside_activity:s.boolean().optional(),calendar:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),domain_id:s.string().optional(),end_date_at:s.string().optional(),end_time_at:s.string().optional(),extra_skills:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),id:s.string().optional(),name:s.string().optional(),start_date_at:s.string().optional(),start_time_at:s.string().optional(),state:s.enum([`WORKING_SCHEDULE_STATE_UNSPECIFIED`,`WORKING_SCHEDULE_STATE_ACTIVE`,`WORKING_SCHEDULE_STATE_PENDING`,`WORKING_SCHEDULE_STATE_DRAFT`,`WORKING_SCHEDULE_STATE_ARCHIVED`]).default(BWt),team:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),total_agents:s.string().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional()}).optional()})})),HWt=O((()=>{yq(),kq(),jq(),Mq(),Nq(),Bq(),Vq(),Hq(),Uq(),Kq(),NJ(),PJ(),YJ(),XJ(),ZJ(),QJ(),$J(),uY(),hY(),gY(),_Y(),vY(),bY(),CY(),GY(),JY(),YY(),XY(),ZY(),QY(),_X(),bX(),AX(),jX(),FX(),IX(),ZX(),tZ(),nZ(),rZ(),aZ(),EZ(),DZ(),kZ(),jZ(),VZ(),qZ(),JZ(),sQ(),cQ(),vQ(),AQ(),jQ(),MQ(),NQ(),HQ(),qQ(),JQ(),n$(),r$(),s$(),u$(),d$(),f$(),p$(),v$(),y$(),b$(),x$(),T$(),D$(),O$(),k$(),A$(),j$(),I$(),L$(),V$(),W$(),G$(),K$(),q$(),J$(),Y$(),X$(),Z$(),Q$(),$$(),o1(),s1(),_1(),O1(),k1(),A1(),B1(),V1(),H1(),U1(),q1(),J1(),Y1(),X1(),Z1(),s0(),p0(),m0(),h0(),w0(),T0(),E0(),I0(),L0(),B0(),W0(),b2(),x2(),D2(),O2(),k2(),M2(),H2(),U2(),W2(),G2(),K2(),q2(),Z2(),o4(),A4(),x3(),S3(),C3(),Y3(),$3(),r6(),i6(),a6(),l6(),p6(),v6(),C6(),D6(),O6(),N6(),P6(),F6(),G6(),Z6(),kWt(),NWt(),PWt(),VWt()})),UWt=O((()=>{I()})),WWt=O((()=>{I()})),GWt=O((()=>{I()})),KWt=O((()=>{I()})),qWt=O((()=>{I()})),JWt=O((()=>{I()})),YWt=O((()=>{I()})),XWt=O((()=>{I()})),ZWt=O((()=>{I()})),QWt=O((()=>{I()})),n8,$Wt=O((()=>{I(),n8=(e=Sa)=>({messagesServiceBroadcastMessage:(t,n)=>e.post(`/chat/broadcast`,t,n),catalogGetCustomers:(t,n)=>e.get(`/chat/customers`,{...n,params:{...t,...n?.params}}),catalogGetDialogs:(t,n)=>e.get(`/chat/dialogs`,{...n,params:{...t,...n?.params}}),catalogGetMembers:(t,n,r)=>e.get(`/chat/dialogs/${t}/members`,{...r,params:{...n,...r?.params}}),catalogGetHistory:(t,n,r)=>e.get(`/chat/dialogs/${t}/messages`,{...r,params:{...n,...r?.params}}),catalogGetHistory2:(t,n,r,i)=>e.get(`/chat/${t}/${n}/messages`,{...i,params:{...r,...i?.params}})})})),eGt=O((()=>{I()})),tGt=O((()=>{I()})),nGt=O((()=>{I()})),rGt=O((()=>{I()})),iGt=O((()=>{I()})),aGt=O((()=>{I()})),oGt=O((()=>{I()})),sGt=O((()=>{I()})),cGt=O((()=>{I()})),lGt=O((()=>{I()})),uGt=O((()=>{I()})),dGt=O((()=>{I()})),fGt=O((()=>{I()})),pGt=O((()=>{I()})),mGt=O((()=>{I()})),hGt=O((()=>{I()})),gGt=O((()=>{I()})),_Gt=O((()=>{I()})),vGt=O((()=>{I()})),yGt=O((()=>{I()})),bGt=O((()=>{I()})),xGt=O((()=>{I()})),SGt=O((()=>{I()})),CGt=O((()=>{I()})),wGt=O((()=>{I()})),TGt=O((()=>{I()})),EGt=O((()=>{I()})),DGt=O((()=>{I()})),OGt=O((()=>{I()})),kGt=O((()=>{I()})),AGt=O((()=>{I()})),jGt=O((()=>{I()})),MGt=O((()=>{I()})),NGt=O((()=>{I()})),PGt=O((()=>{I()})),FGt=O((()=>{I()})),IGt=O((()=>{I()})),LGt=O((()=>{I()})),RGt=O((()=>{I()})),zGt=O((()=>{I()})),BGt=O((()=>{I()})),VGt=O((()=>{I()})),HGt=O((()=>{I()})),UGt=O((()=>{I()})),WGt=O((()=>{I()})),GGt=O((()=>{I()})),r8,KGt=O((()=>{I(),r8=(e=Sa)=>({searchTypes:(t,n)=>e.get(`/types`,{...n,params:{...t,...n?.params}}),locate:(t,n)=>e.get(`/types/${t}`,n)})})),qGt=O((()=>{I()})),JGt=O((()=>{I()})),YGt=O((()=>{I()})),XGt=O((()=>{I()})),ZGt=O((()=>{I()})),QGt=O((()=>{I()})),$Gt=O((()=>{I()})),eKt=O((()=>{I()})),tKt=O((()=>{I()})),nKt=O((()=>{I()})),rKt=O((()=>{I()})),iKt=O((()=>{I()})),aKt=O((()=>{I()})),oKt=O((()=>{I()})),sKt=O((()=>{I()})),cKt=O((()=>{I()})),lKt=O((()=>{I()})),uKt=O((()=>{I()})),dKt=O((()=>{I()})),fKt=O((()=>{I()})),pKt=O((()=>{I()})),mKt=O((()=>{I()})),hKt=O((()=>{I()})),gKt=O((()=>{I()})),_Kt=O((()=>{I()})),vKt=O((()=>{I()})),yKt=O((()=>{I()})),bKt=O((()=>{I()})),xKt=O((()=>{I()})),SKt=O((()=>{I()})),CKt=O((()=>{I()})),wKt=O((()=>{I()})),TKt=O((()=>{I()})),EKt=O((()=>{I()})),DKt=O((()=>{I()})),Z=O((()=>{CUt(),wUt(),yq(),TUt(),kq(),EUt(),jq(),DUt(),Mq(),OUt(),Nq(),kUt(),Bq(),AUt(),Vq(),jUt(),Hq(),MUt(),Uq(),NUt(),Kq(),PUt(),NJ(),FUt(),PJ(),IUt(),YJ(),LUt(),XJ(),RUt(),ZJ(),zUt(),QJ(),BUt(),$J(),VUt(),uY(),HUt(),hY(),UUt(),gY(),WUt(),_Y(),GUt(),vY(),KUt(),bY(),qUt(),CY(),JUt(),GY(),YUt(),JY(),XUt(),YY(),ZUt(),XY(),QUt(),ZY(),$Ut(),QY(),eWt(),_X(),tWt(),bX(),nWt(),AX(),rWt(),jX(),iWt(),FX(),aWt(),IX(),oWt(),ZX(),sWt(),tZ(),cWt(),nZ(),lWt(),rZ(),uWt(),aZ(),dWt(),EZ(),fWt(),DZ(),pWt(),kZ(),mWt(),jZ(),hWt(),VZ(),gWt(),qZ(),_Wt(),JZ(),vWt(),sQ(),yWt(),cQ(),bWt(),vQ(),xWt(),AQ(),SWt(),jQ(),CWt(),MQ(),wWt(),NQ(),TWt(),HQ(),EWt(),qQ(),DWt(),JQ(),OWt(),n$(),HWt(),UWt(),r$(),WWt(),s$(),GWt(),u$(),KWt(),d$(),qWt(),f$(),JWt(),p$(),YWt(),v$(),XWt(),y$(),ZWt(),b$(),QWt(),x$(),$Wt(),T$(),eGt(),D$(),tGt(),O$(),nGt(),k$(),rGt(),A$(),iGt(),j$(),aGt(),I$(),oGt(),L$(),sGt(),V$(),cGt(),W$(),lGt(),G$(),uGt(),K$(),dGt(),q$(),fGt(),J$(),pGt(),Y$(),mGt(),X$(),hGt(),Z$(),gGt(),Q$(),_Gt(),$$(),vGt(),o1(),yGt(),s1(),bGt(),_1(),xGt(),O1(),SGt(),k1(),CGt(),A1(),wGt(),B1(),TGt(),V1(),EGt(),H1(),DGt(),U1(),OGt(),q1(),kGt(),J1(),AGt(),Y1(),jGt(),X1(),MGt(),Z1(),NGt(),s0(),PGt(),p0(),FGt(),m0(),IGt(),h0(),LGt(),w0(),RGt(),T0(),zGt(),E0(),BGt(),I0(),VGt(),L0(),HGt(),B0(),UGt(),W0(),WGt(),b2(),GGt(),x2(),KGt(),D2(),qGt(),O2(),JGt(),k2(),YGt(),M2(),XGt(),H2(),ZGt(),U2(),QGt(),W2(),$Gt(),G2(),eKt(),K2(),tKt(),q2(),nKt(),Z2(),rKt(),o4(),iKt(),A4(),aKt(),x3(),oKt(),S3(),sKt(),C3(),cKt(),Y3(),lKt(),$3(),uKt(),r6(),dKt(),i6(),fKt(),a6(),pKt(),l6(),mKt(),p6(),hKt(),v6(),gKt(),C6(),_Kt(),D6(),vKt(),O6(),yKt(),N6(),bKt(),P6(),xKt(),F6(),SKt(),G6(),CKt(),Z6(),wKt(),kWt(),TKt(),NWt(),EKt(),PWt(),DKt(),VWt()})),OKt=O((()=>{Pp(),Z(),vy(),yu(),Y(),X()})),kKt=O((()=>{Pp(),Z(),vy(),yu(),Y(),X()})),AKt=O((()=>{Z(),Y(),X()})),jKt=O((()=>{Z(),Y(),X()})),MKt=O((()=>{Z(),Y(),X()})),NKt=O((()=>{Z(),Y(),X()})),PKt,i8,a8,FKt,IKt,LKt,RKt,zKt,BKt,VKt,HKt,UKt,WKt,GKt,KKt,qKt,JKt,YKt,XKt,ZKt,QKt=O((()=>{vu(),Pp(),Z(),vy(),yu(),Y(),X(),_q(),PKt=`/call_center/agents`,i8=e=>e>3600*24?`>24:00:00`:fy(e),a8=async e=>{let t=e=>e.map(e=>({...e,statusDuration:i8(e.statusDuration)})),n=_u(Fq),r=YK(e,[XK(),eq(qK()),e=>({...e,q:e.search,team_id:e.team_id??e.team,skill_id:e.skill_id??e.skill,not_supervisor:e.not_supervisor??e.is_not_supervisor}),uq(n)]);try{let{items:e,next:n}=YK((await Pq().searchAgent(r)).data,[dq(),eq(KK())]);return{items:YK(e,[t]),next:n}}catch(e){throw YK(e,[aq])}},FKt={user:{},team:{},supervisor:[],auditor:[],region:{},progressiveCount:null,chatCount:0,taskCount:0,isSupervisor:!1,description:``,greetingMedia:{}},IKt=async({itemId:e,defaultObject:t=FKt})=>{try{return YK((await Pq().readAgent(String(e))).data,[dq(),eq(t)])}catch(e){throw YK(e,[aq])}},LKt=async({itemInstance:e})=>{let t=YK(e,[uq(_u(Iq)),XK()]);try{return YK((await Pq().createAgent(t)).data,[dq()])}catch(e){throw YK(e,[aq])}},RKt=async({changes:e,id:t})=>{let n=YK(e,[uq(_u(Lq)),XK()]);try{return YK((await Pq().patchAgent(String(t),n)).data,[dq()])}catch(e){throw YK(e,[aq])}},zKt=async({itemInstance:e,itemId:t})=>{let n=YK(e,[uq(_u(Rq)),XK()]);try{return YK((await Pq().updateAgent(String(t),n)).data,[dq()])}catch(e){throw YK(e,[aq])}},BKt=async({id:e})=>{try{return YK((await Pq().deleteAgent(String(e))).data,[])}catch(e){throw YK(e,[aq])}},VKt=async e=>{let t={search:``,sort:`+name`,fields:[],from:new Date().setHours(0,0,0,0),to:new Date().setHours(23,59,59,999),utilizationFrom:`0`},n={offline:0,online:0,pause:0,statusDuration:0,transferred:0,missed:0,utilization:0,occupancy:0,callTime:0,chatTime:0},r=e=>e.map(e=>{let t={...n,...e};return{...t,_isSelected:!1,statusDuration:i8(t.statusDuration),utilization:`${t.utilization.toFixed(2)}%`,occupancy:`${t.occupancy.toFixed(2)}%`,online:fy(t.online),offline:fy(t.offline),pause:fy(t.pause),callTime:fy(t.callTime),chatTime:fy(t.chatTime)}}),{page:i,size:a,search:o,sort:s,ids:c,fields:l,from:u,to:d,queue:f,team:p,skill:m,supervisor:h,auditor:g,region:_,utilizationFrom:v,utilizationProgress:y,agentStatus:b,callNow:x}=YK(e,[eq(t),eq(qK())]);try{let{items:e,next:t}=YK((await Pq().searchAgentStatusStatistic({page:i,size:a,q:o,sort:s,fields:l,agent_id:c,"time.from":u==null?void 0:String(u),"time.to":d==null?void 0:String(d),status:b,queue_id:f,team_id:p,"utilization.from":v,"utilization.to":y,has_call:x,skill_id:m,region_id:_,supervisor_id:h,auditor_id:g})).data,[dq(),eq(KK())]);return{items:YK(e,[r]),next:t}}catch(e){throw YK(e,[aq])}},HKt=async({agentId:e,from:t,to:n})=>{try{return YK((await Pq().searchAgentStatusStatisticItem(String(e),{"time.from":t,"time.to":n})).data,[dq()])}catch(e){throw YK(e,[aq])}},UKt=async e=>{let{parentId:t,page:n,size:r,search:i,sort:a,fields:o}=YK(e,[eq(qK()),pq(`search`)]);try{let{items:e,next:s}=YK((await Pq().searchAgentInQueue(String(t),{page:n,size:r,q:i,sort:a,fields:o})).data,[dq(),eq(KK())]);return{items:YK(e,[nq({countMembers:0,waitingMembers:0,type:0})]),next:s}}catch(e){throw YK(e,[aq])}},WKt=async({agentId:e})=>{let t={name:``,durationMin:0,limitMin:0};try{let{items:n,next:r}=YK((await Pq().searchPauseCauseForAgent(String(e))).data,[dq(),eq(KK())]);return{items:YK(n,[nq(t)]),next:r}}catch(e){throw YK(e,[aq])}},GKt=e=>a8({...e,fields:e.fields||[`id`,`name`]}),KKt=async e=>{let{parentId:t,joinedAt:n,page:r,size:i,sort:a}=YK(e,[eq(qK()),eq({sort:`-joined_at`}),pq(`search`)]),o=_y(n),s=e=>e.map(e=>({...e,from:mu(+e.joinedAt,kp.DATETIME),to:e.duration?mu(+e.joinedAt+e.duration*1e3,kp.DATETIME):null,duration:fy(e.duration)}));try{let{items:e,next:n}=YK((await Pq().searchAgentStateHistory({page:r,size:i,agent_id:t?[t]:void 0,sort:a,"joined_at.from":o?.from==null?void 0:String(o.from),"joined_at.to":o?.to==null?void 0:String(o.to)})).data,[dq(),eq(KK())]);return{items:YK(e,[s]),next:n}}catch(e){throw YK(e,[aq])}},qKt=async e=>{let{page:t,size:n,search:r}=YK(e,[eq(qK()),pq(`search`)]);try{let{items:e,next:i}=YK((await Pq().searchLookupUsersAgentNotExists({page:t,size:n,q:r})).data,[dq(),eq(KK())]);return{items:e,next:i}}catch(e){throw YK(e,[aq])}},JKt=async e=>{let t=_u(zq),n=YK(e,[XK(),eq(qK()),pq(`search`),e=>({...e,q:e.search}),uq(t)]);try{let{items:e,next:t}=YK((await Pq().searchUserStatus(n)).data,[dq(),eq(KK())]);return{items:e,next:t}}catch(e){throw YK(e,[aq])}},YKt=async e=>a8({...e,isSupervisor:!0}),XKt=async e=>a8({...e,isNotSupervisor:!0}),ZKt={getList:a8,get:IKt,add:LKt,patch:RKt,update:zKt,delete:BKt,getLookup:GKt,getAgentHistory:KKt,getRegularAgentsOptions:XKt,getAgentUsersOptions:qKt,getSupervisorOptions:YKt,getUsersStatus:JKt,getPauseCausesForAgent:WKt,getAgentQueues:UKt,getStatusStatistics:VKt,getStatusStatisticsItem:HKt,...gq(PKt)}})),$Kt=O((()=>{qU(),Z(),Y(),X()})),eqt=O((()=>{Z(),X(),$Kt(),dq()})),tqt=O((()=>{Z(),Y(),X()})),nqt=O((()=>{Z(),Y(),X()})),rqt,iqt=O((()=>{iz(),Z(),Y(),X(),_q(),rqt=`/calendars`,{...gq(rqt)}})),aqt=O((()=>{Z(),X()})),oqt=O((()=>{Z(),Y(),X()})),sqt=O((()=>{Z(),Y(),X()})),cqt=O((()=>{Z(),Y(),X()})),lqt=O((()=>{Z(),Y(),X()})),uqt=O((()=>{Z(),Y(),X()})),dqt=O((()=>{vu(),Z(),Y(),X(),_u(yY)})),fqt=O((()=>{Z(),Y(),X()})),pqt=O((()=>{Z(),Y(),X()})),mqt=O((()=>{Z(),Y(),X()})),hqt=O((()=>{qU(),vu(),Z(),Y(),X(),_u(W1),_u(W1),_u(K1),_u(G1)})),gqt=O((()=>{Z(),Y(),X()})),_qt=O((()=>{Z(),Y(),X()})),vqt=O((()=>{Z(),Y(),X()})),yqt=O((()=>{vu(),Z(),Y(),X()})),bqt=O((()=>{Pp(),vy()})),xqt,Sqt=O((()=>{vu(),yu(),Z(),Y(),X(),_q(),yqt(),bqt(),wY(),xqt=`/cases`,_u(BY),_u(OY),{...gq(xqt)}})),Cqt=O((()=>{Z(),X()})),wqt=O((()=>{Z(),Y(),X()})),Tqt=O((()=>{Z(),Y(),X()})),Eqt=O((()=>{Object.freeze({VIBER:`viber`,WHATSAPP:`whatsapp`,TELEGRAM:`telegram`,MESSENGER:`messenger`,EMAIL:`email`})})),Dqt=O((()=>{Pp(),Eqt()})),Oqt=O((()=>{Pp(),iz(),QK(),Y(),X(),Dqt(),ya()})),kqt,o8,Aqt=O((()=>{Z(),X(),kqt=({messages:e,peers:t})=>e?e.map(({from:e,...n})=>({...n,peer:e&&t?t[e.id-1]:void 0})):[],o8=e=>async({parentId:t,taskId:n})=>{try{let{messages:r,peers:i}=YK((await e(String(t),String(n))).data,[dq()]);return{items:YK({messages:r,peers:i},[kqt])}}catch(e){throw YK(e,[aq])}},o8((e,t)=>QX().contactsChatCatalogGetContactChatHistory(e,t)),o8((e,t)=>KY().casesChatCatalogGetCaseChatHistory(e,t))})),jqt=O((()=>{Z(),Y(),X()})),Mqt,Nqt=O((()=>{Z(),Y(),X(),_q(),Mqt=`/storage/cognitive_profiles`,{...gq(Mqt)}})),Pqt=O((()=>{Z(),Y(),X()})),Fqt=O((()=>{qU(),vu(),Z(),Y(),X(),[..._u(v0)]})),Iqt=O((()=>{yu(),Z(),Y(),X(),yqt(),bqt()})),Lqt,Rqt=O((()=>{qU(),vu(),Z(),Y(),X(),_q(),Lqt=`/contacts/groups`,_u(BQ),{...gq(Lqt)}})),zqt,Bqt=O((()=>{iz(),Z(),Y(),X(),_q(),zqt=`/devices`,{...gq(zqt)}})),Vqt=O((()=>{Z(),Y(),X()})),Hqt=O((()=>{vu(),Z(),Y(),X(),_u(OZ)})),Uqt=O((()=>{qU(),vu(),Z(),Y(),X(),_u(AZ)})),Wqt=O((()=>{qU(),Z(),Y(),X()})),Gqt=O((()=>{vu(),Z(),Y(),X(),_u(UZ),_u(KZ)})),Kqt=O((()=>{Z(),vy(),Y(),X()})),qqt=O((()=>{qU(),Z(),Y(),X()})),Jqt=O((()=>{Z(),Y(),X()})),Yqt=O((()=>{Y(),X(),ya()})),Xqt=O((()=>{Z(),Y(),X()})),Zqt=O((()=>{Z(),Y(),X()})),Qqt,$qt=O((()=>{Z(),Y(),X(),_q(),Qqt=`/storage/import_templates`,{...gq(Qqt)}})),eJt=O((()=>{Z(),Y(),X()})),tJt=O((()=>{Z(),Y(),X(),ya()})),nJt=O((()=>{Z(),Y(),X()})),rJt=O((()=>{Z(),Y(),X()})),iJt,aJt=O((()=>{Z(),Y(),X(),_q(),iJt=`/call_center/list`,{...gq(iJt)}})),oJt=O((()=>{Z(),vy(),Y(),X()})),sJt=O((()=>{ha(),Z(),Y(),X(),ya(),localStorage.getItem(`access-token`),ma.create({headers:{"content-type":`multipart/form-data`}})})),cJt,lJt,uJt,dJt=O((()=>{Z(),Y(),X(),cJt=async e=>{let t=YK(e,[XK()]);try{return YK((await n8().messagesServiceBroadcastMessage(t)).data,[dq()])}catch(e){throw YK(e,[aq])}},lJt=async({chatId:e,...t})=>{let n=YK(t,[eq(qK()),XK()]);try{let{messages:t,peers:r,next:i}=YK((await n8().catalogGetHistory(String(e),n)).data,[dq(),eq(KK())]);return{messages:t,peers:r,next:i}}catch(e){throw YK(e,[aq])}},uJt={patch:cJt,getChatHistory:lJt}})),fJt,pJt=O((()=>{vu(),Z(),Y(),X(),_q(),_u(E$),fJt=`/oauth/apps`,{...gq(fJt)}})),mJt,hJt,gJt,_Jt,vJt,yJt,bJt=O((()=>{Z(),Y(),X(),mJt=ya(),hJt=async e=>{let{page:t,size:n,fields:r,sort:i,id:a,q:o}=YK(e,[eq(qK()),pq(`search`),e=>({...e,q:e.search}),oq([`page`,`size`,`q`,`sort`,`fields`,`id`]),XK()]);try{let{data:e,next:s}=YK((await r8().searchTypes({q:o,id:a,size:n,page:t,sort:i,fields:r})).data,[eq(KK())]);return{items:YK(e,[dq(),e=>(e||[]).map(e=>({...e,id:e.repo}))]),next:s}}catch(e){throw YK(e,[aq])}},gJt=async({...e})=>{let t=YK(e,[eq(qK()),e=>({...e,q:e.search,extensions:!1}),oq([`page`,`size`,`q`,`sort`,`extensions`,`fields`,`id`]),XK(),ZK(`types`)]);try{let{data:e,next:n}=YK((await mJt.get(t)).data,[dq(),eq(KK())]);return{items:e??[],next:n}}catch(e){throw YK(e,[aq])}},_Jt=async e=>gJt({...e,fields:e.fields||[`id`,`name`]}),vJt=async({itemId:e})=>{try{return YK((await r8().locate(String(e))).data,[dq()])}catch(e){throw YK(e,[aq])}},yJt={getList:hJt,get:vJt,getLookup:_Jt}})),xJt=O((()=>{Z(),Y(),X()})),SJt,CJt=O((()=>{iz(),Z(),Y(),X(),_q(),SJt=`/call_center/resource_group`,{...gq(SJt)}})),wJt=O((()=>{Z(),Y(),X()})),TJt,EJt=O((()=>{iz(),Z(),Y(),X(),_q(),TJt=`/call_center/resources`,{...gq(TJt)}})),DJt=O((()=>{Z(),Y(),X()})),OJt=O((()=>{iz(),Z(),Y(),X()})),kJt=O((()=>{Z(),vy(),Y(),X()})),AJt=O((()=>{vu(),Z(),Y(),X(),_u(R$),_u(B$)})),jJt=O((()=>{Z(),Y(),X()})),s8,c8=O((()=>{s8=s.z.number().nullable().optional()})),l8,u8=O((()=>{l8=(e=1)=>s.z.union([s.z.string().min(e),s.z.number().min(e)])})),d8,f8=O((()=>{d8=e=>({params:{i18nKey:e}})})),p8,MJt=O((()=>{p8=e=>e==null?!1:Array.isArray(e)?e.length>0:e instanceof Date?!Number.isNaN(e.getTime()):typeof e==`object`?Object.keys(e).length>0:String(e).length>0})),m8,h8,g8,_8,v8=O((()=>{f8(),MJt(),m8=s.z.object({id:s.z.string().optional(),name:s.z.string().optional()}),h8=s.z.object({id:s.z.string().min(1),name:s.z.string().optional()}),g8=s.z.object({id:s.z.union([s.z.string(),s.z.number()]).optional(),name:s.z.string().optional()}),_8=g8.refine(e=>p8(e),d8(`required`))})),NJt,PJt,FJt=O((()=>{f8(),NJt=/^\+?[A-Za-z0-9\-_.!~*'()]+$/,PJt=s.z.string().min(1).refine(e=>e===``||NJt.test(e),d8(`phoneNumberSymbolsValidator`))})),y8,b8=O((()=>{y8=s.z.object({key:s.z.string(),value:s.z.string()})})),IJt=O((()=>{f8(),s.z.object({name:s.z.string().min(1),repo:s.z.string().min(1).refine(e=>/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e),d8(`latinWithNumber`)),about:s.z.string().optional(),administered:s.z.boolean().optional(),primary:s.z.string().optional(),display:s.z.string().optional(),fields:s.z.array(s.z.any()).optional(),indexes:s.z.any().optional()})})),LJt=O((()=>{v8(),s.z.object({id:s.z.string().optional(),user:_8,team:_8,supervisor:s.z.array(g8).optional().default([]),auditor:s.z.array(g8).optional().default([]),region:g8.optional().default({}),greetingMedia:g8.optional().default({}),progressiveCount:s.z.number().min(1).nullable().optional().default(null),chatCount:s.z.number().min(1).default(1),taskCount:s.z.number().min(1).default(1),extraChatCount:s.z.number().min(0).nullable().optional().default(0),isSupervisor:s.z.boolean().optional().default(!1),screenControl:s.z.boolean().optional().default(!1),allowSetScreenControl:s.z.boolean().optional()})})),RJt=O((()=>{c8(),v8(),s.z.object({name:s.z.string().min(1).default(``),limitMin:s8.default(60),description:s.z.string().optional().default(``),allowAdmin:s.z.boolean().default(!0),allowSupervisor:s.z.boolean().default(!0),allowAgent:s.z.boolean().default(!0),teams:s.z.array(g8).optional().default([])})})),zJt=O((()=>{v8(),s.z.object({skill:_8,capacity:s.z.number().min(0).max(100).default(10),enabled:s.z.boolean().default(!0)})})),BJt=O((()=>{v8(),s.z.object({agent:_8})})),VJt=O((()=>{v8(),s.z.object({name:s.z.string().min(3),description:s.z.string().optional(),teams:s.z.array(m8).optional().default([]),enabled:s.z.boolean().optional().default(!0),questions:s.z.array(s.z.any()).min(1).default([])})})),HJt=O((()=>{s.z.object({name:s.z.string().min(1),description:s.z.string().optional()})})),UJt,x8,S8,C8,WJt,GJt,w8,KJt,qJt,JJt,T8,YJt=O((()=>{f8(),v8(),UJt=`hourRange`,x8=`timerangeStartLessThanEnd`,S8=`timerangeNotIntersect`,C8=s.z.number().int().refine(e=>e>=0&&e<1440,d8(UJt)),WJt=e=>{let t=new Set,n=new Map;return e.forEach((e,t)=>{let r=n.get(e.day)??[];r.push(t),n.set(e.day,r)}),n.forEach(n=>{let r=[];n.forEach(n=>{let i=e[n];r.forEach(e=>{(i.start>=e.start&&i.end<=e.end||i.start<=e.start&&i.end>=e.start||i.start<=e.end&&i.end>=e.end)&&(t.add(n),t.add(e.index))}),r.push({start:i.start,end:i.end,index:n})})}),t},GJt=s.z.object({day:s.z.number().int().min(0).max(6),disabled:s.z.boolean().default(!1),start:C8,end:C8}).superRefine((e,t)=>{e.start>=e.end&&(t.addIssue({code:`custom`,path:[`start`],...d8(x8)}),t.addIssue({code:`custom`,path:[`end`],...d8(x8)}))}),w8=s.z.array(GJt).superRefine((e,t)=>{WJt(e).forEach(e=>{t.addIssue({code:`custom`,path:[e,`start`],...d8(S8)}),t.addIssue({code:`custom`,path:[e,`end`],...d8(S8)})})}),KJt=s.z.object({name:s.z.string().min(1),date:s.z.union([s.z.number(),s.z.string()]).optional(),repeat:s.z.boolean().optional(),working:s.z.boolean().optional(),workStart:C8.nullish(),workStop:C8.nullish()}),qJt=()=>Array.from({length:7},(e,t)=>({day:t,disabled:!1,start:540,end:1200})),JJt=()=>Array.from({length:7},(e,t)=>({day:t,disabled:!0,start:540,end:1200})),T8=()=>Date.now(),s.z.object({name:s.z.string().min(1),description:s.z.string().optional().default(``),timezone:h8,startAt:s.z.any().optional().default(T8),endAt:s.z.any().optional().default(T8),expires:s.z.boolean().optional().default(!1),accepts:w8.default(qJt),specials:w8.default(JJt),excepts:s.z.array(KJt).optional().default([])})})),E8,XJt,D8,ZJt=O((()=>{f8(),v8(),E8=()=>m8.passthrough().default({}),XJt=()=>s.z.object({id:s.z.union([s.z.string(),s.z.number()]).optional(),name:s.z.string().optional(),final:s.z.boolean().optional(),initial:s.z.boolean().optional()}).passthrough().default({}),s.z.object({subject:s.z.string().default(``),source:E8(),priority:E8(),reporter:E8(),service:E8(),statusCondition:XJt(),closeReason:m8.passthrough().nullish(),closeResult:s.z.string().default(``)}),D8=(e,t)=>s.z.refine(t=>!t?.statusCondition?.final||e(t),{path:t,when:()=>!0,...d8(`required`)}),D8(e=>!!e.closeReason,[`closeReason`]),D8(e=>!e.closeReason||!!e.closeReason.id,[`closeReason`,`id`]),D8(e=>!!e.closeResult,[`closeResult`])})),QJt=O((()=>{f8(),s.z.object({reason:s.z.object({id:s.z.union([s.z.string(),s.z.number()])}).passthrough().nullable(),result:s.z.string().nullable()}).superRefine((e,t)=>{e.reason?.id||t.addIssue({code:`custom`,path:[`reason`],...d8(`required`)}),e.result||t.addIssue({code:`custom`,path:[`result`],...d8(`required`)})})})),$Jt=O((()=>{s.z.object({name:s.z.string().min(1),description:s.z.string().optional()})})),eYt=O((()=>{s.z.object({name:s.z.string().min(1),description:s.z.string().optional()})})),tYt=O((()=>{f8(),s.z.object({type:s.z.object({name:s.z.string(),value:s.z.string()}).nullable(),separator:s.z.string().nullable()}).superRefine((e,t)=>{e.type||t.addIssue({code:`custom`,path:[`type`],...d8(`required`)}),e.type?.value===`csv`&&!e.separator&&t.addIssue({code:`custom`,path:[`separator`],...d8(`required`)})})})),nYt,rYt=O((()=>{Pp(),f8(),nYt=e=>{try{return Object.values(Np).includes(new URL(e).protocol)}catch{return!1}},s.z.object({url:s.z.string().min(1).refine(e=>!e||nYt(e),d8(`url`)),name:s.z.string().optional()})})),iYt=O((()=>{s.z.object({name:s.z.string().min(1),color:s.z.string().min(1),description:s.z.string().optional()})})),aYt=O((()=>{v8(),s.z.object({name:s.z.string().min(1),assignee:m8.optional(),group:m8.optional(),sla:m8.optional(),defaultPriority:m8.optional(),code:s.z.string().optional(),description:s.z.string().optional(),state:s.z.boolean().default(!0)})})),oYt=O((()=>{v8(),s.z.object({name:s.z.string().min(1),prefix:s.z.string().min(1),status:h8,closeReasonGroup:h8,sla:h8,defaultPriority:h8,teams:s.z.array(m8).optional(),skills:s.z.array(m8).optional(),code:s.z.string().optional(),description:s.z.string().optional(),state:s.z.boolean().default(!0)})})),sYt=O((()=>{s.z.object({name:s.z.string().min(1),description:s.z.string().optional(),type:s.z.string().min(1)})})),cYt=O((()=>{s.z.object({name:s.z.string().min(1),description:s.z.string().optional()})})),lYt=O((()=>{s.z.object({name:s.z.string().min(1),description:s.z.string().optional()})})),uYt=O((()=>{s.z.object({name:s.z.object({commonName:s.z.string().min(1)}).passthrough().optional(),timezones:s.z.any().optional(),managers:s.z.any().optional(),groups:s.z.any().optional(),labels:s.z.any().optional(),about:s.z.string().nullish(),user:s.z.any().nullish()})})),dYt=O((()=>{v8(),s.z.object({email:s.z.string().min(1).email(),type:_8,primary:s.z.boolean().optional()})})),O8,fYt,pYt,mYt=O((()=>{qU(),v8(),O8={name:s.z.string().min(1),description:s.z.string().optional(),enabled:s.z.boolean().default(!0),type:s.z.string().optional()},fYt=s.z.object({...O8,defaultGroup:m8.optional()}),pYt=s.z.object({...O8,defaultGroup:h8}),s.z.discriminatedUnion(`type`,[fYt.extend({type:s.z.literal(BU.Static)}),pYt.extend({type:s.z.literal(BU.Dynamic)})])})),hYt=O((()=>{v8(),s.z.object({expression:s.z.string().min(1),group:h8,assignee:m8.nullish()})})),gYt=O((()=>{v8(),s.z.object({number:s.z.string().min(1),type:_8,primary:s.z.boolean().optional()})})),_Yt,vYt,yYt,bYt,xYt=O((()=>{f8(),v8(),_Yt=/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/,vYt=/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/,yYt=s.z.string().optional().default(``).refine(e=>e?e===`127.0.0.1`||e===`0.0.0.0`?!1:_Yt.test(e):!0,d8(`ipValidator`)),bYt=s.z.string().optional().default(``).refine(e=>!e||vYt.test(e),d8(`macValidator`)),s.z.object({id:s.z.string().optional(),name:s.z.string().min(1).default(``),account:s.z.string().min(1).default(``),password:s.z.string().optional().default(``),user:g8.optional().default({}),ip:yYt,brand:s.z.string().optional().default(``),model:s.z.string().optional().default(``),mac:bYt,hotdesk:s.z.boolean().optional(),hotdesks:s.z.array(s.z.string()).optional()}).superRefine((e,t)=>{!e.id&&!e.password&&t.addIssue({code:`custom`,path:[`password`],...d8(`required`)});let n=e.hotdesks;e.hotdesk&&n?.some(e=>!/\w+/.test(e))&&t.addIssue({code:`custom`,path:[`hotdesks`],...d8(`required`)})})})),SYt=O((()=>{s.z.object({certificate:s.z.string().min(1).default(``)})})),CYt=O((()=>{s.z.object({name:s.z.string().min(1),type:s.z.string().min(1),clientId:s.z.string().min(1),clientSecret:s.z.string().min(1),discoveryUrl:s.z.string().min(1),scopes:s.z.array(s.z.string()).optional(),enabled:s.z.boolean().optional(),claims:s.z.array(s.z.object({type:s.z.string().optional(),value:s.z.string().optional()})).optional()})})),wYt=O((()=>{v8(),s.z.object({name:s.z.string().min(1),description:s.z.string().optional(),skills:s.z.array(m8).optional()})})),TYt,EYt,DYt=O((()=>{Pp(),TYt={required:[`name`],minValue:{priority:0,"payload.minOnlineAgents":0}},EYt={[z.OFFLINE_QUEUE]:{required:[`strategy`,`calendar`],minValue:{"payload.originateTimeout":0}},[z.INBOUND_QUEUE]:{required:[`payload.timeBaseScore`],minValue:{"payload.maxWaitTime":0,"payload.discardAbandonedAfter":0}},[z.OUTBOUND_IVR_QUEUE]:{required:[`strategy`,`calendar`,`schema`,`payload.resourceStrategy`],minValue:{"payload.originateTimeout":0,"payload.waitBetweenRetries":0,"payload.minDuration":0}},[z.PREVIEW_DIALER]:{required:[`strategy`,`calendar`,`payload.resourceStrategy`],minValue:{"payload.originateTimeout":0,"payload.waitBetweenRetries":0}},[z.PROGRESSIVE_DIALER]:{required:[`strategy`,`calendar`,`payload.resourceStrategy`,`payload.progressiveCount`],minValue:{"payload.originateTimeout":0,"payload.waitBetweenRetries":0,"payload.progressiveCount":1}},[z.PREDICTIVE_DIALER]:{required:[`strategy`,`calendar`,`payload.resourceStrategy`,`payload.progressiveCount`,`payload.maxAgentLine`],minValue:{"payload.originateTimeout":0,"payload.waitBetweenRetries":0,"payload.maxWaitTime":0,"payload.progressiveCount":1,"payload.maxAgentLine":1}},[z.CHAT_INBOUND_QUEUE]:{required:[`strategy`,`payload.timeBaseScore`],minValue:{"payload.maxWaitTime":0,"payload.discardAbandonedAfter":0}},[z.IM_CHAT_QUEUE]:{required:[`strategy`,`payload.timeBaseScore`],minValue:{"payload.maxWaitTime":0,"payload.discardAbandonedAfter":0}},[z.INBOUND_JOB_QUEUE]:{required:[`strategy`,`calendar`],minValue:{"payload.waitBetweenRetries":0}},[z.OUTBOUND_JOB_QUEUE]:{required:[`strategy`,`calendar`,`schema`],minValue:{"payload.originateTimeout":0,"payload.waitBetweenRetries":0,"payload.minDuration":0}}}})),OYt,kYt=O((()=>{c8(),v8(),OYt=s.z.object({enabled:s.z.boolean().optional(),ai:s.z.boolean().optional(),positive:s.z.array(s.z.string()).optional(),playback:g8.optional(),allowNotSure:s.z.boolean().optional(),silenceNotSure:s.z.boolean().optional(),maxWordLength:s8,maxNumberOfWords:s8,betweenWordsSilence:s8,minWordLength:s8,totalAnalysisTime:s8,silenceThreshold:s8,afterGreetingSilence:s8,greeting:s8,initialSilence:s8})})),AYt,jYt=O((()=>{c8(),kYt(),AYt=s.z.object({maxAttempts:s8,minAttempts:s8,originateTimeout:s8,waitBetweenRetries:s8,waitBetweenRetriesDesc:s.z.boolean().optional(),minDuration:s8,maxCalls:s8,progressiveCount:s8,dialingRate:s8,resourceStrategy:s.z.string().optional(),strictCircuit:s.z.boolean().optional(),perNumbers:s.z.boolean().optional(),endless:s.z.boolean().optional(),retryAbandoned:s.z.boolean().optional(),maxAgentLine:s8,maxAgentLose:s8,maxAbandonedRate:s8,targetAbandonedRate:s8,abandonRateAdjustment:s8,loadFactor:s8,playbackSilence:s8,statisticTime:s8,timeBaseScore:s.z.string().optional(),maxWaitTime:s8,maxWaitingSize:s8,discardAbandonedAfter:s8,manualDistribution:s.z.boolean().optional(),minOnlineAgents:s8,maxMemberLimit:s8,ignoreCalendar:s.z.boolean().optional(),stickyAgentSec:s8,stickyIgnoreStatus:s.z.boolean().optional(),maxIdleAgent:s8,maxIdleClient:s8,maxIdleDialog:s8,lastMessageTimeout:s.z.boolean().optional(),recordings:s.z.boolean().optional(),recordAll:s.z.boolean().optional(),allowGreetingAgent:s.z.boolean().optional(),autoAnswerTone:s.z.string().nullable().optional(),amd:OYt.optional()})})),MYt,NYt,PYt=O((()=>{c8(),v8(),MYt=s.z.object({enabled:s.z.boolean().optional(),isTimeoutRetry:s.z.boolean().optional(),prolongationTimeSec:s8,repeatsNumber:s8}),NYt=s.z.object({enabled:s.z.boolean().optional(),formSchema:g8.optional(),sec:s8,renewalSec:s8,prolongationOptions:MYt.prefault({})})})),FYt,IYt,LYt=O((()=>{c8(),f8(),MJt(),v8(),b8(),DYt(),jYt(),PYt(),FYt=s.z.object({name:s.z.string().min(1),description:s.z.string().optional(),type:s.z.number(),enabled:s.z.boolean().optional(),priority:s8,tags:s.z.array(s.z.object({name:s.z.string()})).optional(),calendar:g8.optional(),team:g8.optional(),dncList:g8.optional(),grantee:g8.optional(),ringtone:g8.optional(),schema:g8.optional(),doSchema:g8.optional(),afterSchema:g8.optional(),formSchema:g8.optional(),strategy:s.z.string().optional(),stickyAgent:s.z.boolean().optional(),taskProcessing:NYt.optional(),payload:AYt.optional(),variables:s.z.array(y8).optional()}),IYt=FYt.superRefine((e,t)=>{let r=[TYt,EYt[Number(e.type)]??{}];for(let i of r){for(let r of i.required??[]){let i=(0,n.get)(e,r);p8(i)||t.addIssue({code:`custom`,path:(0,n.isPlainObject)(i)?[...r.split(`.`),`id`]:r.split(`.`),...d8(`required`)})}for(let[r,a]of Object.entries(i.minValue??{})){let i=(0,n.get)(e,r);i==null||i===``||Number(i)<a&&t.addIssue({code:`too_small`,origin:`number`,minimum:a,inclusive:!0,input:i,path:r.split(`.`)})}}})})),RYt,zYt=O((()=>{v8(),RYt=s.z.object({bucket:_8,priority:s.z.number().min(0).default(0),disabled:s.z.boolean().optional()})})),BYt,VYt=O((()=>{v8(),BYt=s.z.object({event:s.z.string().min(1),schema:_8,properties:s.z.array(s.z.string()).optional(),enabled:s.z.boolean().default(!0)})})),HYt,k8,UYt=O((()=>{v8(),FJt(),HYt=/^[\d|w|W]*$/,k8=s.z.object({destination:s.z.string().min(1),type:_8,dtmf:s.z.string().regex(HYt).optional(),display:s.z.string().optional(),priority:s.z.number().optional(),resource:g8.optional(),description:s.z.string().optional()}),k8.extend({destination:PJt})})),WYt,GYt=O((()=>{Tl(),v8(),b8(),UYt(),WYt=s.z.object({name:s.z.string().min(1),communications:s.z.array(k8).min(1),priority:s.z.number().optional().default(0),bucket:g8.optional(),timezone:g8.optional(),agent:g8.optional(),expireAt:s.z.union([s.z.string(),s.z.number()]).optional().default(()=>Wre(Date.now(),7).getTime()),minOfferingAt:s.z.union([s.z.string(),s.z.number()]).optional(),stopCause:s.z.string().optional(),variables:s.z.array(y8).optional()})})),KYt,qYt=O((()=>{v8(),KYt=s.z.object({resourceGroup:_8,communication:g8.optional()})})),JYt,YYt,XYt=O((()=>{v8(),JYt=s.z.object({skill:_8,lvl:s.z.number().min(0).max(1e3).default(0),minCapacity:s.z.number().min(0).max(100).optional().default(0),maxCapacity:s.z.number().min(0).max(100).optional().default(10),buckets:s.z.array(g8).optional().default([]),enabled:s.z.boolean().default(!0)}),YYt=JYt.superRefine((e,t)=>{e.minCapacity==null||e.maxCapacity==null||e.minCapacity<=e.maxCapacity||(t.addIssue({code:`custom`,path:[`minCapacity`],message:`Value must be less than or equal to the maximum capacity`}),t.addIssue({code:`custom`,path:[`maxCapacity`],message:`Value must be greater than or equal to the minimum capacity`}))})})),ZYt,QYt=O((()=>{u8(),v8(),ZYt=6e4,s.z.object({name:s.z.string().min(1),description:s.z.string().optional(),calendar:h8,reactionTime:l8(),resolutionTime:l8(),validFrom:s.z.union([s.z.string(),s.z.number()]).nullish(),validTo:s.z.union([s.z.string(),s.z.number()]).nullish()}).superRefine((e,t)=>{if(!e.validFrom||!e.validTo)return;let n=Number(e.validFrom),r=Number(e.validTo);Number.isNaN(n)||Number.isNaN(r)||n>r-ZYt&&t.addIssue({code:`too_big`,origin:`date`,maximum:r,inclusive:!1,input:e.validFrom,path:[`validFrom`]})})})),$Yt=O((()=>{u8(),v8(),s.z.object({name:s.z.string().min(1),priorities:s.z.array(h8).min(1),reactionTime:l8(),resolutionTime:l8()})})),eXt=O((()=>{v8(),s.z.object({id:s.z.string().optional(),name:s.z.string().min(1).default(``),description:s.z.string().optional().default(``),strategy:s.z.string().min(1).default(``),admin:s.z.array(g8).optional().default([]),screenControl:s.z.boolean().optional().default(!1),maxNoAnswer:s.z.number().default(3),wrapUpTime:s.z.number().default(15),noAnswerDelayTime:s.z.number().default(30),taskAcceptTimeout:s.z.number().default(30),callTimeout:s.z.number().default(60),inviteChatTimeout:s.z.number().default(30)})})),tXt=O((()=>{v8(),s.z.object({agent:_8})})),nXt=O((()=>{v8(),s.z.object({name:s.z.string().min(1),description:s.z.string().optional(),schema:_8,enabled:s.z.boolean().default(!0)})})),rXt=O((()=>{v8(),s.z.object({event:s.z.string().min(1),schema:_8,properties:s.z.array(s.z.string()).optional(),enabled:s.z.boolean().default(!0)})})),iXt=O((()=>{s.z.object({fields:s.z.array(s.z.any()).optional()})})),aXt=O((()=>{})),oXt,sXt,cXt=O((()=>{f8(),v8(),b8(),oXt=/^[0-9]*$/,sXt=s.z.object({id:s.z.string().optional(),name:s.z.string().min(1).default(``),username:s.z.string().min(1).default(``),password:s.z.string().optional().default(``),extension:s.z.string().optional().default(``).refine(e=>!e||oXt.test(e),d8(`numeric`)),email:s.z.string().optional().default(``),chatName:s.z.string().optional().default(``),contact:g8.nullish().default({}),roles:s.z.array(g8).optional().default([]),license:s.z.array(s.z.any()).optional().default([]),devices:s.z.array(g8).optional().default([]),device:g8.nullish().default({}),forcePasswordChange:s.z.boolean().optional().default(!1),generateDevice:s.z.boolean().optional().default(!1),variables:s.z.array(y8).optional().default([])}),sXt.superRefine((e,t)=>{!e.id&&!e.password&&t.addIssue({code:`custom`,path:[`password`],...d8(`required`)}),e.variables?.forEach(({key:e,value:n},r)=>{n&&!e&&t.addIssue({code:`custom`,path:[`variables`,r,`key`],...d8(`required`)}),e&&!n&&t.addIssue({code:`custom`,path:[`variables`,r,`value`],...d8(`required`)})})})})),lXt,uXt=O((()=>{lXt=s.z.object({usage:s.z.string().default(``)})})),dXt=O((()=>{s.z.object({key:s.z.string().min(1),value:s.z.string().min(1)})})),A8=O((()=>{c8(),u8(),f8(),v8(),FJt(),b8(),IJt(),LJt(),RJt(),zJt(),BJt(),VJt(),HJt(),YJt(),ZJt(),QJt(),$Jt(),eYt(),tYt(),rYt(),iYt(),aYt(),oYt(),sYt(),cYt(),lYt(),uYt(),dYt(),mYt(),hYt(),gYt(),xYt(),SYt(),CYt(),wYt(),DYt(),LYt(),kYt(),jYt(),PYt(),zYt(),VYt(),UYt(),GYt(),qYt(),XYt(),QYt(),$Yt(),eXt(),tXt(),nXt(),rXt(),iXt(),aXt(),cXt(),uXt(),dXt()})),fXt=O((()=>{vu(),A8(),Z(),Y(),X(),[..._u(RYt)]})),pXt=O((()=>{vu(),A8(),Z(),Y(),X(),[..._u(BYt)]})),mXt=O((()=>{Z(),vy(),Y(),X()})),hXt=O((()=>{vu(),A8(),iz(),Z(),vy(),Y(),X(),[..._u(WYt)]})),gXt=O((()=>{vu(),A8(),Z(),Y(),X(),[..._u(KYt)]})),_Xt=O((()=>{vu(),A8(),Z(),Y(),X(),[..._u(YYt)]})),vXt=O((()=>{Z(),X()})),yXt=O((()=>{QK()})),bXt=O((()=>{})),xXt=O((()=>{})),SXt=O((()=>{Pp(),bXt(),xXt(),yXt(),z.OFFLINE_QUEUE,z.INBOUND_QUEUE,z.OUTBOUND_IVR_QUEUE,z.PREVIEW_DIALER,z.PROGRESSIVE_DIALER,z.PREDICTIVE_DIALER,z.CHAT_INBOUND_QUEUE,z.IM_CHAT_QUEUE,z.INBOUND_JOB_QUEUE,z.OUTBOUND_JOB_QUEUE})),CXt,wXt,TXt=O((()=>{vu(),A8(),iz(),QK(),Pp(),Z(),Y(),X(),_q(),yXt(),SXt(),CXt=`/call_center/queues`,wXt=[`variables`],_u(IYt),dq(wXt),{...gq(CXt)}})),EXt=O((()=>{Z(),Y(),X()})),DXt=O((()=>{Z(),Y(),X()})),OXt=O((()=>{Z(),Y(),X()})),kXt=O((()=>{Z(),Y(),X()})),AXt=O((()=>{Z(),Y(),X()})),jXt=O((()=>{Z(),Y(),X()})),MXt=O((()=>{Z(),Y(),X()})),NXt=O((()=>{Z(),Y(),X()})),PXt=O((()=>{iz(),Z(),Y(),X()})),FXt=O((()=>{Z(),Y(),X()})),IXt,LXt=O((()=>{Z(),Y(),X(),_q(),IXt=`/call_center/teams`,{...gq(IXt)}})),RXt=O((()=>{Z(),Y(),X()})),zXt=O((()=>{Z(),Y(),X()})),BXt=O((()=>{Z(),Y(),X()})),VXt=O((()=>{Z(),Y(),X()})),HXt=O((()=>{iz(),Z(),Y(),X()})),UXt=O((()=>{I(),X()})),WXt,GXt=O((()=>{vu(),iz(),Z(),Y(),X(),_q(),ya(),WXt=`/users`,{...gq(WXt)}})),KXt=O((()=>{vu(),A8(),Z(),Y(),X(),_u(lXt)})),qXt=O((()=>{vu(),Z(),Y(),X(),_u(F2),_u(V2)})),JXt=O((()=>{Z(),Y(),X()})),YXt=O((()=>{Z(),vy(),X()})),XXt=O((()=>{Z(),Y(),X(),ya()})),ZXt=O((()=>{iz()})),QXt=O((()=>{Z(),Y(),X(),ZXt()})),$Xt,j8,M8,eZt,tZt,N8,nZt,rZt,iZt=O((()=>{Y(),X(),$Xt=ya(),j8=/\{([^}]+)\}/g,M8=(e,t)=>t.split(`.`).reduce((e,t)=>e?.[t],e),eZt=(e,t)=>e.match(j8)?e.replace(j8,(e,n)=>{let r=M8(t,n);return r==null?`{${n}}`:String(r)}):M8(t,e),tZt=({display:e,primary:t})=>n=>n.map(n=>({...n,...t&&{id:n[t]},...e&&{name:eZt(e,n)}})),N8=async({path:e,display:t,primary:n,filters:r=[],...i})=>{let a=YK(i,[eq(qK()),pq(`search`),e=>({...e,q:e.search}),e=>({...e,ids:e.id}),oq([`page`,`size`,`q`,`sort`,`fields`,`id`,`ids`]),XK(),ZK(e),JK(r)]);try{let{data:e,items:r,next:i}=YK((await $Xt.get(a)).data,[eq(KK())]);return{items:YK(e||r||[],[tZt({display:t,primary:n})])??[],next:i}}catch(e){throw YK(e,[aq])}},nZt=e=>N8({...e,fields:e.fields||[`id`,`name`]}),rZt={getList:N8,getLookup:nZt}})),aZt=O((()=>{Z(),X(),ZXt(),YZ()})),oZt=O((()=>{Z(),Y(),X()})),sZt=O((()=>{WU(),vy()})),cZt=O((()=>{Object.freeze({NAME:`name`,LABELS:`labels`,ABOUT:`about`,VARIABLES:`variables`,DESTINATION:`destination`})})),lZt,uZt=O((()=>{vu(),Z(),Y(),X(),_q(),sZt(),cZt(),lZt=`/contacts`,_u(VX),[..._u(UX)],[..._u(XX)],{...gq(lZt)}})),dZt=O((()=>{})),fZt=O((()=>{oZt(),uZt(),cZt(),dZt()})),P8=O((()=>{_q(),OKt(),kKt(),AKt(),jKt(),MKt(),NKt(),QKt(),$Kt(),eqt(),tqt(),nqt(),iqt(),aqt(),oqt(),sqt(),cqt(),lqt(),uqt(),dqt(),fqt(),pqt(),mqt(),hqt(),gqt(),_qt(),vqt(),Sqt(),Cqt(),wqt(),Tqt(),Oqt(),Aqt(),jqt(),Nqt(),Pqt(),Fqt(),Iqt(),Rqt(),Bqt(),Vqt(),Hqt(),Uqt(),Wqt(),Gqt(),Kqt(),qqt(),Jqt(),Yqt(),Xqt(),Zqt(),$qt(),eJt(),tJt(),nJt(),rJt(),aJt(),oJt(),sJt(),dJt(),pJt(),bJt(),xJt(),CJt(),wJt(),EJt(),DJt(),OJt(),kJt(),AJt(),jJt(),fXt(),pXt(),mXt(),hXt(),gXt(),_Xt(),vXt(),TXt(),EXt(),DXt(),OXt(),kXt(),AXt(),jXt(),MXt(),NXt(),PXt(),FXt(),LXt(),RXt(),zXt(),BXt(),VXt(),HXt(),UXt(),GXt(),KXt(),qXt(),JXt(),YXt(),XXt(),QXt(),iZt(),aZt(),fZt()})),pZt=O((()=>{iz(),QK(),Xp()})),mZt=O((()=>{Xp(),Ay()})),hZt,gZt,_Zt=O((()=>{hZt=Symbol(`filterReadAccess`),gZt=()=>(0,t.inject)(hZt,()=>void 0)})),F8,I8,vZt=O((()=>{F8={Read:`read`,Write:`write`,Delete:`delete`,Add:`add`},I8={PlaybackRecordFile:`playback_record_file`,ResetActiveAttempts:`reset_active_attempts`,TimeLimitedRecordFile:`time_limited_record_file`,ManageUserLicense:`manage_user_license`,SchemeVariables:`scheme_variables`,SystemSetting:`system_setting`,ManageUserRoles:`manage_user_roles`,ExportDataGrid:`export_data_grid`,LimitWorkspaceContacts:`limit_workspace_contacts`,ViewCdrPhoneNumbers:`view_cdr_phone_numbers`,ChangeUserPassword:`change_user_password`,EavesdropCall:`eavesdrop_call`,ControlAgentScreen:`control_agent_screen`}})),L8,yZt=O((()=>{L8={Agent:`cc_agent`,Queue:`cc_queue`,Dictionaries:`dictionaries`,EmailProfile:`email_profile`,Skills:`cc_skill`,Users:`users`,Devices:`devices`,AcrRouting:`acr_routing`,Gateways:`gateways`,AcrChatPlan:`acr_chat_plan`,Chats:`chats`,List:`cc_list`,Calendars:`calendars`,Team:`cc_team`,ResourceGroup:`cc_resource_group`,Resource:`cc_resource`,StorageProfile:`storage_profile`,CognitiveProfile:`cognitive_profile`,ImportTemplate:`import_template`,Trigger:`trigger`,Schema:`schema`,Role:`roles`,Contacts:`contacts`,MediaFile:`media_file`,Logger:`logger`,Calls:`calls`,RecordFile:`record_file`,ScreenRecordings:`screen_recordings`,VideocallFiles:`videocall_files`,ContactGroups:`contact_groups`,ChatBots:`chat_bots`,Cases:`cases`,CaseComments:`case_comments`,AuditForm:`cc_audit_form`,AuditRating:`rating`,PauseTemplates:`pause_templates`,ShiftTemplates:`shift_templates`,WorkingConditions:`working_conditions`,AgentWorkingConditions:`agent_working_conditions`,ListNumber:`cc_list_number`,CaseLookups:`case_lookups`,FilesPolicy:`files_policy`,PortalUsers:`portal_users`,Custom:`custom`,SingleSignOn:`sso`}})),R8=O((()=>{vZt(),yZt()})),bZt,z8,xZt,SZt,B8=O((()=>{Xp(),R8(),bZt={[F8.Add]:zp.Create,[F8.Read]:zp.Read,[F8.Write]:zp.Update,[F8.Delete]:zp.Delete},(0,n.invert)(bZt),z8={[L8.Users]:[K.User],[L8.Devices]:[K.Device],[L8.Schema]:[K.Flow],[L8.AcrRouting]:[K.Dialplan],[L8.Gateways]:[K.Gateway],[L8.AcrChatPlan]:[K.Chatplan],[L8.Dictionaries]:[K.Region,K.Bucket,K.Communication,K.PauseCause,K.QuickReply],[L8.List]:[K.Blacklist],[L8.Skills]:[K.Skill,K.ActivityType],[L8.Calendars]:[K.Calendar],[L8.MediaFile]:[K.Media],[L8.Agent]:[K.Agent],[L8.Queue]:[K.Queue,K.Member],[L8.ResourceGroup]:[K.ResourceGroup],[L8.Resource]:[K.Resource],[L8.Team]:[K.Team],[L8.StorageProfile]:[K.Storage],[L8.CognitiveProfile]:[K.CognitiveProfile],[L8.EmailProfile]:[K.EmailProfile],[L8.SingleSignOn]:[K.SingleSignOn],[L8.ImportTemplate]:[K.ImportCsv],[L8.Trigger]:[K.Trigger],[L8.Role]:[K.Role],[L8.Contacts]:[K.Contact],[L8.Logger]:[K.ChangeLog],[L8.Calls]:[K.Call],[L8.RecordFile]:[K.RecordFile],[L8.ScreenRecordings]:[K.ScreenRecordings],[L8.VideocallFiles]:[K.VideocallFiles],[L8.ContactGroups]:[K.ContactGroup],[L8.ChatBots]:[K.ChatGateway],[L8.Cases]:[K.Case],[L8.CaseComments]:[K.CaseComment],[L8.AuditForm]:[K.AuditForm],[L8.AuditRating]:[K.AuditRating],[L8.PauseTemplates]:[K.PauseTemplate],[L8.ShiftTemplates]:[K.ShiftTemplate],[L8.WorkingConditions]:[K.WorkingCondition],[L8.AgentWorkingConditions]:[K.AgentWorkingCondition],[L8.ListNumber]:[K.ListNumber],[L8.CaseLookups]:[K.Slas,K.ServiceCatalog,K.Priorities,K.Status,K.Source,K.CloseReasonGroup],[L8.FilesPolicy]:[K.FilePolicy],[L8.PortalUsers]:[K.PortalUser],[L8.Custom]:[K.CustomLookup]},K.License,K.Object,K.Configuration,I8.SystemSetting,K.GlobalVariable,I8.SchemeVariables,xZt={r:zp.Read,w:zp.Update,d:zp.Delete,x:zp.Create},(0,n.invert)(xZt),SZt={[G.Admin]:{[K.User]:U.Users,[K.Agent]:U.Agents,[K.License]:U.License,[K.Device]:U.Devices,[K.Flow]:U.Flow,[K.Dialplan]:U.Dialplan,[K.Gateway]:U.Gateways,[K.Chatplan]:U.Chatplan,[K.ChatGateway]:U.ChatGateways,[K.Skill]:U.Skills,[K.Bucket]:U.Buckets,[K.Blacklist]:U.Blacklist,[K.Region]:U.Regions,[K.Calendar]:U.Calendars,[K.Communication]:U.Communications,[K.PauseCause]:U.PauseCause,[K.Media]:U.Media,[K.Team]:U.Teams,[K.Resource]:U.Resources,[K.ResourceGroup]:U.ResourceGroups,[K.Queue]:U.Queues,[K.Storage]:U.Storage,[K.CognitiveProfile]:U.CognitiveProfiles,[K.EmailProfile]:U.EmailProfiles,[K.ImportCsv]:U.ImportCsv,[K.Trigger]:U.Triggers,[K.Role]:U.Roles,[K.Object]:U.Objects,[K.ChangeLog]:U.Changelogs,[K.Configuration]:U.Configuration,[K.GlobalVariable]:U.GlobalVariables,[K.ShiftTemplate]:U.ShiftTemplates,[K.PauseTemplate]:U.PauseTemplates,[K.WorkingCondition]:U.WorkingConditions,[K.Member]:U.Members,[K.QuickReply]:U.QuickReplies,[K.ActivityType]:U.ActivityTypes},[G.Audit]:{[K.AuditForm]:qp.Scorecards},[G.Crm]:{[K.Contact]:W.Contacts,[K.Case]:W.Cases,[K.Slas]:W.Slas,[K.ServiceCatalog]:W.ServiceCatalogs,[K.CaseSource]:W.CaseSources,[K.CloseReasonGroup]:W.CloseReasonGroups,[K.Priorities]:W.Priorities,[K.Status]:W.Statuses,[K.Source]:W.Sources,[K.ContactGroup]:W.ContactGroups,[K.CustomLookup]:W.CustomLookups},[G.Supervisor]:{[K.Queue]:Jp.Queues,[K.Agent]:Jp.Agents,[K.Communication]:Jp.ActiveCalls},[G.Wfm]:{}},(0,n.invert)(SZt),(0,n.invert)(U),(0,n.invert)(qp),(0,n.invert)(W),(0,n.invert)(Jp)})),CZt,wZt,TZt,EZt,DZt=O((()=>{R8(),B8(),CZt={"call_center/queues":L8.Queue,"call_center/agents":L8.Agent,"call_center/list":L8.List,"call_center/teams":L8.Team,"call_center/skills":L8.Skills,"call_center/resources":L8.Resource,"call_center/resource_group":L8.ResourceGroup,"call_center/communication_type":L8.Dictionaries,"call_center/buckets":L8.Dictionaries,"call_center/pause_causes":L8.Dictionaries,"call_center/quick_replies":L8.Dictionaries,regions:L8.Dictionaries,"contacts/groups":L8.ContactGroups},wZt=[{prefix:`cases/`,scopeClass:L8.CaseLookups},{prefix:`dictionaries/`,scopeClass:L8.Custom}],TZt=e=>e?z8[e]?e:CZt[e]||wZt.find(({prefix:t})=>e.startsWith(t))?.scopeClass:void 0,EZt=e=>e?z8[e]?.[0]:void 0})),V8,H8,U8,OZt,kZt,AZt=O((()=>{P8(),V8=(0,t.reactive)(new Map),H8=new Map,U8=e=>e?.replace(/^\//,``)||void 0,OZt=async e=>{if(V8.has(e))return V8.get(e);let t=H8.get(e);if(t)return t;let n=yJt.get({itemId:e}).then(t=>{let n=t?.objclass;return V8.set(e,n),n}).catch(()=>{V8.set(e,void 0)}).finally(()=>{H8.delete(e)});return H8.set(e,n),n},kZt=e=>{let t=U8(e);if(t)return V8.has(t)||OZt(t),V8.get(t)}})),jZt,MZt,NZt=O((()=>{_Zt(),DZt(),AZt(),jZt=(e,t)=>{let n=U8(e?.lookup?.path);if(!n)return!0;let r=e?.lookup?.objclass||TZt(n)||kZt(n);if(!r)return!1;let i=EZt(r);return t?.(i??r)??!1},MZt=(e,n)=>{let r=gZt();return{hasReadAccess:(0,t.computed)(()=>jZt((0,t.toValue)(e),n??r()))}}})),W8,PZt=O((()=>{W8={en:`en`,uk:`uk`,ru:`ru`,es:`es`,kz:`kz`,vi:`vi`,pl:`pl`,ro:`ro`,uz:`uz`}})),FZt=k((e=>{var t=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0}),e.$listeners=Symbol(`EventEmitter.listeners`),e.$addListener=Symbol(`EventEmitter.addListener`),e.EventEmitter=function(){function i(){this[e.$listeners]={}}return i.count=function(t,n){var r=0,i=t[e.$listeners][n];if(i)for(var a=i.first;++r&&a.next;)a=a.next;return r},i.has=function(t,n){if(n==`*`){for(n in t[e.$listeners])return!0;return!1}return t[e.$listeners][n]!==void 0},i.keys=function(t){return Object.keys(t[e.$listeners])},i.unhandle=function(t,n,r,i){return t.on(n,function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(!t[e.$listeners][n].first.next)return r.apply(void 0,i)},i)},i.prototype.on=function(t,n,r){return typeof n==`function`?this[e.$addListener](t,n,r):this[e.$addListener](t,void 0,n)},i.prototype.one=function(t,n,r){return typeof n==`function`?this[e.$addListener](t,n,r,!0):this[e.$addListener](t,void 0,n,!0)},i.prototype.off=function(t,n){if(t==`*`){var i=this[e.$listeners];if(this[e.$listeners]={},this._onEventUnhandled)for(var a in i)this._onEventUnhandled(a);return this}if(typeof n==`function`){var o=this[e.$listeners][t];if(!o||r(o,function(e){return e.fn==n}))return this}return delete this[e.$listeners][t],this._onEventUnhandled&&this._onEventUnhandled(t),this},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r,i=this.listeners(e);;){var a=i.next(),o=a.value;if(a.done)return r;var s=o.apply(void 0,t);s!==void 0&&(r=s)}},i.prototype.listeners=function(n){var r,i,a;return t(this,function(t){switch(t.label){case 0:if(r=this[e.$listeners][n],!r)return[2];i=null,a=r.first,t.label=1;case 1:return[4,a.fn];case 2:if(t.sent(),a.once)if(i)i.next=a.next;else if(a.next)return r.first=a=a.next,[3,1];else return delete this[e.$listeners][n],this._onEventUnhandled&&this._onEventUnhandled(n),[2];else i=a;return a.next?(a=a.next,[3,1]):(r.last=a,[2]);case 3:return[2]}})},i.prototype[e.$addListener]=function(t,r,i,a){var o=this;if(a===void 0&&(a=!1),typeof t==`object`){var s,c=function(){if(typeof t[s]==`function`){var r=t[s],c=n(l[e.$listeners],s,{fn:r,once:a,next:null});i&&i.push({dispose:function(){return o.off(s,r)}}),r==c.first.fn&&l._onEventHandled&&l._onEventHandled(s)}},l=this;for(s in t)c();return this}if(typeof r==`function`){var u=t,d=n(this[e.$listeners],u,{fn:r,once:a,next:null});i&&i.push({dispose:function(){return o.off(u,r)}}),r==d.first.fn&&this._onEventHandled&&this._onEventHandled(t)}return r},i.ev=e.$listeners,i}();function n(e,t,n){var r=e[t];return r?(r.last.next=n,r.last=n):e[t]=r={first:n,last:n},r}function r(e,t){for(var n=null,r=e.first;;)if(t(r))if(n)if(n.next=r.next,r.next)r=r.next;else break;else if(r.next)e.first=r=r.next;else return null;else if(n=r,r.next)r=r.next;else break;return e.last=n,e}})),IZt=A({bugs:()=>t5,contributors:()=>X8,default:()=>LZt,dependencies:()=>i5,description:()=>q8,devDependencies:()=>a5,files:()=>n5,homepage:()=>Y8,keywords:()=>$8,license:()=>`MIT`,main:()=>Q8,name:()=>G8,repository:()=>e5,scripts:()=>r5,title:()=>K8,types:()=>Z8,version:()=>J8}),G8,K8,q8,J8,Y8,X8,Z8,Q8,$8,e5,t5,n5,r5,i5,a5,LZt,RZt=O((()=>{G8=`jssip`,K8=`JsSIP`,q8=`The Javascript SIP library`,J8=`3.13.8`,Y8=`https://jssip.net`,X8=[`José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan)`,`Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)`],Z8=`lib/JsSIP.d.ts`,Q8=`lib/JsSIP.js`,$8=[`sip`,`websocket`,`webrtc`,`node`,`browser`,`library`],e5={type:`git`,url:`https://github.com/versatica/JsSIP.git`},t5={url:`https://github.com/versatica/JsSIP/issues`},n5=[`LICENSE`,`README.md`,`npm-scripts.mjs`,`lib`],r5={lint:`node npm-scripts.mjs lint`,"lint:fix":`node npm-scripts.mjs lint:fix`,test:`node npm-scripts.mjs test`,coverage:`node npm-scripts.mjs coverage`,build:`node npm-scripts.mjs build`,"typescript:build":`node npm-scripts.mjs typescript:build`,release:`node npm-scripts.mjs release`,docs:`node npm-scripts.mjs docs`,"docs:watch":`node npm-scripts.mjs docs:watch`,"docs:check":`node npm-scripts.mjs docs:check`},i5={debug:`^4.3.1`,events:`^3.3.0`,"sdp-transform":`^2.14.1`},a5={"@eslint/eslintrc":`^3.3.3`,"@eslint/js":`^9.39.2`,"@types/debug":`^4.1.12`,"@types/events":`^3.0.3`,"@types/jest":`^30.0.0`,"@types/node":`^25.0.10`,cpx:`^1.5.0`,esbuild:`^0.27.2`,eslint:`^9.39.1`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-jest":`^29.12.1`,"eslint-plugin-prettier":`^5.5.5`,globals:`^17.0.0`,jest:`^30.2.0`,"open-cli":`^8.0.0`,pegjs:`^0.7.0`,prettier:`^3.8.1`,"ts-jest":`^29.4.6`,typedoc:`^0.28.16`,typescript:`^5.9.3`,"typescript-eslint":`^8.53.1`},LZt={name:G8,title:K8,description:q8,version:J8,homepage:Y8,contributors:X8,types:Z8,main:Q8,keywords:$8,license:`MIT`,repository:e5,bugs:t5,files:n5,scripts:r5,dependencies:i5,devDependencies:a5}})),o5=k(((e,t)=>{var n=(RZt(),be(IZt).default);t.exports={USER_AGENT:`${n.title} ${n.version}`,SIP:`sip`,SIPS:`sips`,causes:{CONNECTION_ERROR:`Connection Error`,REQUEST_TIMEOUT:`Request Timeout`,SIP_FAILURE_CODE:`SIP Failure Code`,INTERNAL_ERROR:`Internal Error`,BUSY:`Busy`,REJECTED:`Rejected`,REDIRECTED:`Redirected`,UNAVAILABLE:`Unavailable`,NOT_FOUND:`Not Found`,ADDRESS_INCOMPLETE:`Address Incomplete`,INCOMPATIBLE_SDP:`Incompatible SDP`,MISSING_SDP:`Missing SDP`,AUTHENTICATION_ERROR:`Authentication Error`,BYE:`Terminated`,WEBRTC_ERROR:`WebRTC Error`,CANCELED:`Canceled`,NO_ANSWER:`No Answer`,EXPIRES:`Expires`,NO_ACK:`No ACK`,DIALOG_ERROR:`Dialog Error`,USER_DENIED_MEDIA_ACCESS:`User Denied Media Access`,BAD_MEDIA_DESCRIPTION:`Bad Media Description`,RTP_TIMEOUT:`RTP Timeout`},SIP_ERROR_CAUSES:{REDIRECTED:[300,301,302,305,380],BUSY:[486,600],REJECTED:[403,603],NOT_FOUND:[404,604],UNAVAILABLE:[480,410,408,430],ADDRESS_INCOMPLETE:[484,424],INCOMPATIBLE_SDP:[488,606],AUTHENTICATION_ERROR:[401,407]},ACK:`ACK`,BYE:`BYE`,CANCEL:`CANCEL`,INFO:`INFO`,INVITE:`INVITE`,MESSAGE:`MESSAGE`,NOTIFY:`NOTIFY`,OPTIONS:`OPTIONS`,REGISTER:`REGISTER`,REFER:`REFER`,UPDATE:`UPDATE`,SUBSCRIBE:`SUBSCRIBE`,DTMF_TRANSPORT:{INFO:`INFO`,RFC2833:`RFC2833`},REASON_PHRASE:{100:`Trying`,180:`Ringing`,181:`Call Is Being Forwarded`,182:`Queued`,183:`Session Progress`,199:`Early Dialog Terminated`,200:`OK`,202:`Accepted`,204:`No Notification`,300:`Multiple Choices`,301:`Moved Permanently`,302:`Moved Temporarily`,305:`Use Proxy`,380:`Alternative Service`,400:`Bad Request`,401:`Unauthorized`,402:`Payment Required`,403:`Forbidden`,404:`Not Found`,405:`Method Not Allowed`,406:`Not Acceptable`,407:`Proxy Authentication Required`,408:`Request Timeout`,410:`Gone`,412:`Conditional Request Failed`,413:`Request Entity Too Large`,414:`Request-URI Too Long`,415:`Unsupported Media Type`,416:`Unsupported URI Scheme`,417:`Unknown Resource-Priority`,420:`Bad Extension`,421:`Extension Required`,422:`Session Interval Too Small`,423:`Interval Too Brief`,424:`Bad Location Information`,428:`Use Identity Header`,429:`Provide Referrer Identity`,430:`Flow Failed`,433:`Anonymity Disallowed`,436:`Bad Identity-Info`,437:`Unsupported Certificate`,438:`Invalid Identity Header`,439:`First Hop Lacks Outbound Support`,440:`Max-Breadth Exceeded`,469:`Bad Info Package`,470:`Consent Needed`,478:`Unresolvable Destination`,480:`Temporarily Unavailable`,481:`Call/Transaction Does Not Exist`,482:`Loop Detected`,483:`Too Many Hops`,484:`Address Incomplete`,485:`Ambiguous`,486:`Busy Here`,487:`Request Terminated`,488:`Not Acceptable Here`,489:`Bad Event`,491:`Request Pending`,493:`Undecipherable`,494:`Security Agreement Required`,500:`JsSIP Internal Error`,501:`Not Implemented`,502:`Bad Gateway`,503:`Service Unavailable`,504:`Server Time-out`,505:`Version Not Supported`,513:`Message Too Large`,580:`Precondition Failure`,600:`Busy Everywhere`,603:`Decline`,604:`Does Not Exist Anywhere`,606:`Not Acceptable`},ALLOWED_METHODS:`INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY,SUBSCRIBE`,ACCEPTED_BODY_TYPES:`application/sdp, application/dtmf-relay`,MAX_FORWARDS:69,SESSION_EXPIRES:90,MIN_SESSION_EXPIRES:60,CONNECTION_RECOVERY_MAX_INTERVAL:30,CONNECTION_RECOVERY_MIN_INTERVAL:2}})),s5=k(((e,t)=>{t.exports={ConfigurationError:class extends Error{constructor(e,t){super(),this.code=1,this.name=`CONFIGURATION_ERROR`,this.parameter=e,this.value=t,this.message=this.value?`Invalid value ${JSON.stringify(this.value)} for parameter "${this.parameter}"`:`Missing parameter: ${this.parameter}`}},InvalidStateError:class extends Error{constructor(e){super(),this.code=2,this.name=`INVALID_STATE_ERROR`,this.status=e,this.message=`Invalid status: ${e}`}},NotSupportedError:class extends Error{constructor(e){super(),this.code=3,this.name=`NOT_SUPPORTED_ERROR`,this.message=e}},NotReadyError:class extends Error{constructor(e){super(),this.code=4,this.name=`NOT_READY_ERROR`,this.message=e}}}})),c5=k(((e,t)=>{var n=u5(),r=l5();t.exports=class e{static parse(e){if(e=r.parse(e,`Name_Addr_Header`),e!==-1)return e}constructor(e,t,r){if(!e||!(e instanceof n))throw TypeError(`missing or invalid "uri" parameter`);this._uri=e,this._parameters={},this.display_name=t;for(let e in r)Object.prototype.hasOwnProperty.call(r,e)&&this.setParam(e,r[e])}get uri(){return this._uri}get display_name(){return this._display_name}set display_name(e){this._display_name=e===0?`0`:e}setParam(e,t){e&&(this._parameters[e.toLowerCase()]=t==null?null:t.toString())}getParam(e){if(e)return this._parameters[e.toLowerCase()]}hasParam(e){if(e)return this._parameters.hasOwnProperty(e.toLowerCase())&&!0||!1}deleteParam(e){if(e=e.toLowerCase(),this._parameters.hasOwnProperty(e)){let t=this._parameters[e];return delete this._parameters[e],t}}clearParams(){this._parameters={}}clone(){return new e(this._uri.clone(),this._display_name,JSON.parse(JSON.stringify(this._parameters)))}_quote(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}toString(){let e=this._display_name?`"${this._quote(this._display_name)}" `:``;e+=`<${this._uri.toString()}>`;for(let t in this._parameters)Object.prototype.hasOwnProperty.call(this._parameters,t)&&(e+=`;${t}`,this._parameters[t]!==null&&(e+=`=${this._parameters[t]}`));return e}}})),l5=k(((e,t)=>{t.exports=(function(){function e(e){return`"`+e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\x08/g,`\\b`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\f/g,`\\f`).replace(/\r/g,`\\r`).replace(/[\x00-\x07\x0B\x0E-\x1F\x80-\uFFFF]/g,escape)+`"`}var t={parse:function(t,n){var r={CRLF:l,DIGIT:u,ALPHA:d,HEXDIG:f,WSP:p,OCTET:m,DQUOTE:h,SP:g,HTAB:_,alphanum:v,reserved:y,unreserved:b,mark:x,escaped:S,LWS:C,SWS:w,HCOLON:T,TEXT_UTF8_TRIM:ee,TEXT_UTF8char:te,UTF8_NONASCII:ne,UTF8_CONT:re,LHEX:ie,token:E,token_nodot:ae,separators:oe,word:se,STAR:ce,SLASH:le,EQUAL:D,LPAREN:ue,RPAREN:de,RAQUOT:fe,LAQUOT:pe,COMMA:me,SEMI:he,COLON:ge,LDQUOT:O,RDQUOT:k,comment:A,ctext:_e,quoted_string:ve,quoted_string_clean:ye,qdtext:be,quoted_pair:xe,SIP_URI_noparams:Se,SIP_URI:Ce,uri_scheme:we,uri_scheme_sips:Te,uri_scheme_sip:Ee,userinfo:De,user:Oe,user_unreserved:ke,password:Ae,hostport:je,host:Me,hostname:Ne,domainlabel:Pe,toplabel:Fe,IPv6reference:Ie,IPv6address:Le,h16:j,ls32:Re,IPv4address:ze,dec_octet:Be,port:Ve,uri_parameters:He,uri_parameter:Ue,transport_param:We,user_param:Ge,method_param:Ke,ttl_param:qe,maddr_param:Je,lr_param:Ye,other_param:Xe,pname:Ze,pvalue:Qe,paramchar:$e,param_unreserved:et,headers:tt,header:nt,hname:rt,hvalue:it,hnv_unreserved:at,Request_Response:ot,Request_Line:st,Request_URI:ct,absoluteURI:lt,hier_part:ut,net_path:dt,abs_path:ft,opaque_part:pt,uric:mt,uric_no_slash:M,path_segments:ht,segment:gt,param:_t,pchar:vt,scheme:yt,authority:bt,srvr:xt,reg_name:St,query:Ct,SIP_Version:wt,INVITEm:Tt,ACKm:Et,OPTIONSm:Dt,BYEm:Ot,CANCELm:kt,REGISTERm:At,SUBSCRIBEm:jt,NOTIFYm:Mt,REFERm:Nt,Method:Pt,Status_Line:Ft,Status_Code:It,extension_code:Lt,Reason_Phrase:Rt,Allow_Events:zt,Call_ID:Bt,Contact:Vt,contact_param:Ht,name_addr:Ut,display_name:Wt,contact_params:Gt,c_p_q:Kt,c_p_expires:qt,delta_seconds:Jt,qvalue:Yt,generic_param:Xt,gen_value:Zt,Content_Disposition:Qt,disp_type:$t,disp_param:en,handling_param:tn,Content_Encoding:nn,Content_Length:rn,Content_Type:an,media_type:on,m_type:sn,discrete_type:cn,composite_type:ln,extension_token:un,x_token:dn,m_subtype:fn,m_parameter:pn,m_value:mn,CSeq:hn,CSeq_value:gn,Expires:_n,Event:vn,event_type:yn,From:bn,from_param:xn,tag_param:Sn,Max_Forwards:Cn,Min_Expires:wn,Name_Addr_Header:Tn,Proxy_Authenticate:En,challenge:Dn,other_challenge:On,auth_param:kn,digest_cln:An,realm:jn,realm_value:Mn,domain:Nn,URI:Pn,nonce:N,nonce_value:Fn,opaque:In,stale:Ln,algorithm:Rn,qop_options:zn,qop_value:Bn,Proxy_Require:Vn,Record_Route:Hn,rec_route:Un,Reason:Wn,reason_param:Gn,reason_cause:Kn,Require:qn,Route:Jn,route_param:Yn,Subscription_State:Xn,substate_value:Zn,subexp_params:Qn,event_reason_value:$n,Subject:er,Supported:tr,To:nr,to_param:rr,Via:ir,via_param:ar,via_params:or,via_ttl:sr,via_maddr:cr,via_received:lr,via_branch:ur,response_port:dr,rport:fr,sent_protocol:pr,protocol_name:mr,transport:hr,sent_by:gr,via_host:_r,via_port:vr,ttl:yr,WWW_Authenticate:br,Session_Expires:xr,s_e_expires:Sr,s_e_params:Cr,s_e_refresher:P,extension_header:wr,header_value:Tr,message_body:Er,uuid_URI:Dr,uuid:Or,hex4:kr,hex8:Ar,hex12:jr,Refer_To:Mr,Replaces:Nr,call_id:Pr,replaces_param:Fr,to_tag:Ir,from_tag:Lr,early_flag:Rr};if(n!==void 0){if(r[n]===void 0)throw Error(`Invalid rule name: `+e(n)+`.`)}else n=`CRLF`;var i=0,a=0,o=0,s=[];function c(e){i<o||(i>o&&(o=i,s=[]),s.push(e))}function l(){var e;return t.substr(i,2)===`\r
4812
+ - PROVIDER_STATUS_ERROR: Connection or authentication failed`),updated_at:s.string().optional(),waba_id:s.string().optional()}).optional()}).describe(`/ ProviderUpdateWhatsAppGateResponse returns the updated WhatsApp provider.`)})),PWt=O((()=>{s.object({page:s.int().optional(),size:s.int().optional(),q:s.string().optional(),sort:s.string().optional(),fields:s.array(s.string()).optional()}),s.object({items:s.array(s.object({created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),days_off:s.int().optional(),description:s.string().optional(),domain_id:s.string().optional(),id:s.string().optional(),name:s.string().optional(),pause_duration:s.int().optional(),pause_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),shift_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),sick_leaves:s.int().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),vacation:s.int().optional(),workday_hours:s.int().optional(),workdays_per_month:s.int().optional()})).optional(),next:s.boolean().optional()}),s.object({item:s.object({created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),days_off:s.int().optional(),description:s.string().optional(),domain_id:s.string().optional(),id:s.string().optional(),name:s.string().optional(),pause_duration:s.int().optional(),pause_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),shift_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),sick_leaves:s.int().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),vacation:s.int().optional(),workday_hours:s.int().optional(),workdays_per_month:s.int().optional()}).optional()}),s.object({item:s.object({created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),days_off:s.int().optional(),description:s.string().optional(),domain_id:s.string().optional(),id:s.string().optional(),name:s.string().optional(),pause_duration:s.int().optional(),pause_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),shift_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),sick_leaves:s.int().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),vacation:s.int().optional(),workday_hours:s.int().optional(),workdays_per_month:s.int().optional()}).optional()}),s.object({id:s.string()}),s.object({id:s.string().optional()}),s.object({id:s.string()}),s.object({fields:s.array(s.string()).optional()}),s.object({item:s.object({created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),days_off:s.int().optional(),description:s.string().optional(),domain_id:s.string().optional(),id:s.string().optional(),name:s.string().optional(),pause_duration:s.int().optional(),pause_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),shift_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),sick_leaves:s.int().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),vacation:s.int().optional(),workday_hours:s.int().optional(),workdays_per_month:s.int().optional()}).optional()}),s.object({"item.id":s.string()}),s.object({item:s.object({created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),days_off:s.int().optional(),description:s.string().optional(),domain_id:s.string().optional(),name:s.string().optional(),pause_duration:s.int().optional(),pause_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),shift_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),sick_leaves:s.int().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),vacation:s.int().optional(),workday_hours:s.int().optional(),workdays_per_month:s.int().optional()}).optional()}),s.object({item:s.object({created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),days_off:s.int().optional(),description:s.string().optional(),domain_id:s.string().optional(),id:s.string().optional(),name:s.string().optional(),pause_duration:s.int().optional(),pause_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),shift_template:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),sick_leaves:s.int().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),vacation:s.int().optional(),workday_hours:s.int().optional(),workdays_per_month:s.int().optional()}).optional()})})),FWt,IWt,LWt,RWt,zWt,BWt,VWt=O((()=>{s.object({q:s.string().optional(),page:s.int().optional(),size:s.int().optional(),sort:s.string().optional(),fields:s.array(s.string()).optional()}),FWt=`WORKING_SCHEDULE_STATE_UNSPECIFIED`,s.object({items:s.array(s.object({agents:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),block_outside_activity:s.boolean().optional(),calendar:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),domain_id:s.string().optional(),end_date_at:s.string().optional(),end_time_at:s.string().optional(),extra_skills:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),id:s.string().optional(),name:s.string().optional(),start_date_at:s.string().optional(),start_time_at:s.string().optional(),state:s.enum([`WORKING_SCHEDULE_STATE_UNSPECIFIED`,`WORKING_SCHEDULE_STATE_ACTIVE`,`WORKING_SCHEDULE_STATE_PENDING`,`WORKING_SCHEDULE_STATE_DRAFT`,`WORKING_SCHEDULE_STATE_ARCHIVED`]).default(FWt),team:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),total_agents:s.string().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional()})).optional(),next:s.boolean().optional()}),IWt=`WORKING_SCHEDULE_STATE_UNSPECIFIED`,s.object({item:s.object({agents:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),block_outside_activity:s.boolean().optional(),calendar:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),domain_id:s.string().optional(),end_date_at:s.string().optional(),end_time_at:s.string().optional(),extra_skills:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),id:s.string().optional(),name:s.string().optional(),start_date_at:s.string().optional(),start_time_at:s.string().optional(),state:s.enum([`WORKING_SCHEDULE_STATE_UNSPECIFIED`,`WORKING_SCHEDULE_STATE_ACTIVE`,`WORKING_SCHEDULE_STATE_PENDING`,`WORKING_SCHEDULE_STATE_DRAFT`,`WORKING_SCHEDULE_STATE_ARCHIVED`]).default(IWt),team:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),total_agents:s.string().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional()}).optional()}),LWt=`WORKING_SCHEDULE_STATE_UNSPECIFIED`,s.object({item:s.object({agents:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),block_outside_activity:s.boolean().optional(),calendar:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),domain_id:s.string().optional(),end_date_at:s.string().optional(),end_time_at:s.string().optional(),extra_skills:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),id:s.string().optional(),name:s.string().optional(),start_date_at:s.string().optional(),start_time_at:s.string().optional(),state:s.enum([`WORKING_SCHEDULE_STATE_UNSPECIFIED`,`WORKING_SCHEDULE_STATE_ACTIVE`,`WORKING_SCHEDULE_STATE_PENDING`,`WORKING_SCHEDULE_STATE_DRAFT`,`WORKING_SCHEDULE_STATE_ARCHIVED`]).default(LWt),team:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),total_agents:s.string().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional()}).optional()}),s.object({id:s.string()}),s.object({id:s.string().optional()}),s.object({id:s.string()}),s.object({fields:s.array(s.string()).optional()}),RWt=`WORKING_SCHEDULE_STATE_UNSPECIFIED`,s.object({item:s.object({agents:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),block_outside_activity:s.boolean().optional(),calendar:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),domain_id:s.string().optional(),end_date_at:s.string().optional(),end_time_at:s.string().optional(),extra_skills:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),id:s.string().optional(),name:s.string().optional(),start_date_at:s.string().optional(),start_time_at:s.string().optional(),state:s.enum([`WORKING_SCHEDULE_STATE_UNSPECIFIED`,`WORKING_SCHEDULE_STATE_ACTIVE`,`WORKING_SCHEDULE_STATE_PENDING`,`WORKING_SCHEDULE_STATE_DRAFT`,`WORKING_SCHEDULE_STATE_ARCHIVED`]).default(RWt),team:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),total_agents:s.string().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional()}).optional()}),s.object({id:s.string()}),s.object({agents:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional()}),s.object({agents:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional()}),s.object({id:s.string(),agent_id:s.string()}),s.object({id:s.string().optional()}),s.object({id:s.string()}),s.object({"date.from":s.string().optional(),"date.to":s.string().optional()}),s.object({items:s.record(s.string(),s.object({forecast:s.array(s.object({agents:s.string().optional(),hour:s.string().optional()})).optional()})).optional()}),s.object({"item.id":s.string()}),zWt=`WORKING_SCHEDULE_STATE_UNSPECIFIED`,s.object({item:s.object({agents:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),block_outside_activity:s.boolean().optional(),calendar:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),domain_id:s.string().optional(),end_date_at:s.string().optional(),end_time_at:s.string().optional(),extra_skills:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),name:s.string().optional(),start_date_at:s.string().optional(),start_time_at:s.string().optional(),state:s.enum([`WORKING_SCHEDULE_STATE_UNSPECIFIED`,`WORKING_SCHEDULE_STATE_ACTIVE`,`WORKING_SCHEDULE_STATE_PENDING`,`WORKING_SCHEDULE_STATE_DRAFT`,`WORKING_SCHEDULE_STATE_ARCHIVED`]).default(zWt),team:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),total_agents:s.string().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional()}).optional()}),BWt=`WORKING_SCHEDULE_STATE_UNSPECIFIED`,s.object({item:s.object({agents:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),block_outside_activity:s.boolean().optional(),calendar:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),created_at:s.string().optional(),created_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),domain_id:s.string().optional(),end_date_at:s.string().optional(),end_time_at:s.string().optional(),extra_skills:s.array(s.object({id:s.string().optional(),name:s.string().optional()})).optional(),id:s.string().optional(),name:s.string().optional(),start_date_at:s.string().optional(),start_time_at:s.string().optional(),state:s.enum([`WORKING_SCHEDULE_STATE_UNSPECIFIED`,`WORKING_SCHEDULE_STATE_ACTIVE`,`WORKING_SCHEDULE_STATE_PENDING`,`WORKING_SCHEDULE_STATE_DRAFT`,`WORKING_SCHEDULE_STATE_ARCHIVED`]).default(BWt),team:s.object({id:s.string().optional(),name:s.string().optional()}).optional(),total_agents:s.string().optional(),updated_at:s.string().optional(),updated_by:s.object({id:s.string().optional(),name:s.string().optional()}).optional()}).optional()})})),HWt=O((()=>{yq(),kq(),jq(),Mq(),Nq(),Bq(),Vq(),Hq(),Uq(),Kq(),NJ(),PJ(),YJ(),XJ(),ZJ(),QJ(),$J(),uY(),hY(),gY(),_Y(),vY(),bY(),CY(),GY(),JY(),YY(),XY(),ZY(),QY(),_X(),bX(),AX(),jX(),FX(),IX(),ZX(),tZ(),nZ(),rZ(),aZ(),EZ(),DZ(),kZ(),jZ(),VZ(),qZ(),JZ(),sQ(),cQ(),vQ(),AQ(),jQ(),MQ(),NQ(),HQ(),qQ(),JQ(),n$(),r$(),s$(),u$(),d$(),f$(),p$(),v$(),y$(),b$(),x$(),T$(),D$(),O$(),k$(),A$(),j$(),I$(),L$(),V$(),W$(),G$(),K$(),q$(),J$(),Y$(),X$(),Z$(),Q$(),$$(),o1(),s1(),_1(),O1(),k1(),A1(),B1(),V1(),H1(),U1(),q1(),J1(),Y1(),X1(),Z1(),s0(),p0(),m0(),h0(),w0(),T0(),E0(),I0(),L0(),B0(),W0(),b2(),x2(),D2(),O2(),k2(),M2(),H2(),U2(),W2(),G2(),K2(),q2(),Z2(),o4(),A4(),x3(),S3(),C3(),Y3(),$3(),r6(),i6(),a6(),l6(),p6(),v6(),C6(),D6(),O6(),N6(),P6(),F6(),G6(),Z6(),kWt(),NWt(),PWt(),VWt()})),UWt=O((()=>{I()})),WWt=O((()=>{I()})),GWt=O((()=>{I()})),KWt=O((()=>{I()})),qWt=O((()=>{I()})),JWt=O((()=>{I()})),YWt=O((()=>{I()})),XWt=O((()=>{I()})),ZWt=O((()=>{I()})),QWt=O((()=>{I()})),n8,$Wt=O((()=>{I(),n8=(e=Sa)=>({messagesServiceBroadcastMessage:(t,n)=>e.post(`/chat/broadcast`,t,n),catalogGetCustomers:(t,n)=>e.get(`/chat/customers`,{...n,params:{...t,...n?.params}}),catalogGetDialogs:(t,n)=>e.get(`/chat/dialogs`,{...n,params:{...t,...n?.params}}),catalogGetMembers:(t,n,r)=>e.get(`/chat/dialogs/${t}/members`,{...r,params:{...n,...r?.params}}),catalogGetHistory:(t,n,r)=>e.get(`/chat/dialogs/${t}/messages`,{...r,params:{...n,...r?.params}}),catalogGetHistory2:(t,n,r,i)=>e.get(`/chat/${t}/${n}/messages`,{...i,params:{...r,...i?.params}})})})),eGt=O((()=>{I()})),tGt=O((()=>{I()})),nGt=O((()=>{I()})),rGt=O((()=>{I()})),iGt=O((()=>{I()})),aGt=O((()=>{I()})),oGt=O((()=>{I()})),sGt=O((()=>{I()})),cGt=O((()=>{I()})),lGt=O((()=>{I()})),uGt=O((()=>{I()})),dGt=O((()=>{I()})),fGt=O((()=>{I()})),pGt=O((()=>{I()})),mGt=O((()=>{I()})),hGt=O((()=>{I()})),gGt=O((()=>{I()})),_Gt=O((()=>{I()})),vGt=O((()=>{I()})),yGt=O((()=>{I()})),bGt=O((()=>{I()})),xGt=O((()=>{I()})),SGt=O((()=>{I()})),CGt=O((()=>{I()})),wGt=O((()=>{I()})),TGt=O((()=>{I()})),EGt=O((()=>{I()})),DGt=O((()=>{I()})),OGt=O((()=>{I()})),kGt=O((()=>{I()})),AGt=O((()=>{I()})),jGt=O((()=>{I()})),MGt=O((()=>{I()})),NGt=O((()=>{I()})),PGt=O((()=>{I()})),FGt=O((()=>{I()})),IGt=O((()=>{I()})),LGt=O((()=>{I()})),RGt=O((()=>{I()})),zGt=O((()=>{I()})),BGt=O((()=>{I()})),VGt=O((()=>{I()})),HGt=O((()=>{I()})),UGt=O((()=>{I()})),WGt=O((()=>{I()})),GGt=O((()=>{I()})),r8,KGt=O((()=>{I(),r8=(e=Sa)=>({searchTypes:(t,n)=>e.get(`/types`,{...n,params:{...t,...n?.params}}),locate:(t,n)=>e.get(`/types/${t}`,n)})})),qGt=O((()=>{I()})),JGt=O((()=>{I()})),YGt=O((()=>{I()})),XGt=O((()=>{I()})),ZGt=O((()=>{I()})),QGt=O((()=>{I()})),$Gt=O((()=>{I()})),eKt=O((()=>{I()})),tKt=O((()=>{I()})),nKt=O((()=>{I()})),rKt=O((()=>{I()})),iKt=O((()=>{I()})),aKt=O((()=>{I()})),oKt=O((()=>{I()})),sKt=O((()=>{I()})),cKt=O((()=>{I()})),lKt=O((()=>{I()})),uKt=O((()=>{I()})),dKt=O((()=>{I()})),fKt=O((()=>{I()})),pKt=O((()=>{I()})),mKt=O((()=>{I()})),hKt=O((()=>{I()})),gKt=O((()=>{I()})),_Kt=O((()=>{I()})),vKt=O((()=>{I()})),yKt=O((()=>{I()})),bKt=O((()=>{I()})),xKt=O((()=>{I()})),SKt=O((()=>{I()})),CKt=O((()=>{I()})),wKt=O((()=>{I()})),TKt=O((()=>{I()})),EKt=O((()=>{I()})),DKt=O((()=>{I()})),Z=O((()=>{CUt(),wUt(),yq(),TUt(),kq(),EUt(),jq(),DUt(),Mq(),OUt(),Nq(),kUt(),Bq(),AUt(),Vq(),jUt(),Hq(),MUt(),Uq(),NUt(),Kq(),PUt(),NJ(),FUt(),PJ(),IUt(),YJ(),LUt(),XJ(),RUt(),ZJ(),zUt(),QJ(),BUt(),$J(),VUt(),uY(),HUt(),hY(),UUt(),gY(),WUt(),_Y(),GUt(),vY(),KUt(),bY(),qUt(),CY(),JUt(),GY(),YUt(),JY(),XUt(),YY(),ZUt(),XY(),QUt(),ZY(),$Ut(),QY(),eWt(),_X(),tWt(),bX(),nWt(),AX(),rWt(),jX(),iWt(),FX(),aWt(),IX(),oWt(),ZX(),sWt(),tZ(),cWt(),nZ(),lWt(),rZ(),uWt(),aZ(),dWt(),EZ(),fWt(),DZ(),pWt(),kZ(),mWt(),jZ(),hWt(),VZ(),gWt(),qZ(),_Wt(),JZ(),vWt(),sQ(),yWt(),cQ(),bWt(),vQ(),xWt(),AQ(),SWt(),jQ(),CWt(),MQ(),wWt(),NQ(),TWt(),HQ(),EWt(),qQ(),DWt(),JQ(),OWt(),n$(),HWt(),UWt(),r$(),WWt(),s$(),GWt(),u$(),KWt(),d$(),qWt(),f$(),JWt(),p$(),YWt(),v$(),XWt(),y$(),ZWt(),b$(),QWt(),x$(),$Wt(),T$(),eGt(),D$(),tGt(),O$(),nGt(),k$(),rGt(),A$(),iGt(),j$(),aGt(),I$(),oGt(),L$(),sGt(),V$(),cGt(),W$(),lGt(),G$(),uGt(),K$(),dGt(),q$(),fGt(),J$(),pGt(),Y$(),mGt(),X$(),hGt(),Z$(),gGt(),Q$(),_Gt(),$$(),vGt(),o1(),yGt(),s1(),bGt(),_1(),xGt(),O1(),SGt(),k1(),CGt(),A1(),wGt(),B1(),TGt(),V1(),EGt(),H1(),DGt(),U1(),OGt(),q1(),kGt(),J1(),AGt(),Y1(),jGt(),X1(),MGt(),Z1(),NGt(),s0(),PGt(),p0(),FGt(),m0(),IGt(),h0(),LGt(),w0(),RGt(),T0(),zGt(),E0(),BGt(),I0(),VGt(),L0(),HGt(),B0(),UGt(),W0(),WGt(),b2(),GGt(),x2(),KGt(),D2(),qGt(),O2(),JGt(),k2(),YGt(),M2(),XGt(),H2(),ZGt(),U2(),QGt(),W2(),$Gt(),G2(),eKt(),K2(),tKt(),q2(),nKt(),Z2(),rKt(),o4(),iKt(),A4(),aKt(),x3(),oKt(),S3(),sKt(),C3(),cKt(),Y3(),lKt(),$3(),uKt(),r6(),dKt(),i6(),fKt(),a6(),pKt(),l6(),mKt(),p6(),hKt(),v6(),gKt(),C6(),_Kt(),D6(),vKt(),O6(),yKt(),N6(),bKt(),P6(),xKt(),F6(),SKt(),G6(),CKt(),Z6(),wKt(),kWt(),TKt(),NWt(),EKt(),PWt(),DKt(),VWt()})),OKt=O((()=>{Pp(),Z(),vy(),yu(),Y(),X()})),kKt=O((()=>{Pp(),Z(),vy(),yu(),Y(),X()})),AKt=O((()=>{Z(),Y(),X()})),jKt=O((()=>{Z(),Y(),X()})),MKt=O((()=>{Z(),Y(),X()})),NKt=O((()=>{Z(),Y(),X()})),PKt,i8,a8,FKt,IKt,LKt,RKt,zKt,BKt,VKt,HKt,UKt,WKt,GKt,KKt,qKt,JKt,YKt,XKt,ZKt,QKt=O((()=>{vu(),Pp(),Z(),vy(),yu(),Y(),X(),_q(),PKt=`/call_center/agents`,i8=e=>e>3600*24?`>24:00:00`:fy(e),a8=async e=>{let t=e=>e.map(e=>({...e,statusDuration:i8(e.statusDuration)})),n=_u(Fq),r=YK(e,[XK(),eq(qK()),e=>({...e,q:e.search,team_id:e.team_id??e.team,skill_id:e.skill_id??e.skill,not_supervisor:e.not_supervisor??e.is_not_supervisor}),uq(n)]);try{let{items:e,next:n}=YK((await Pq().searchAgent(r)).data,[dq(),eq(KK())]);return{items:YK(e,[t]),next:n}}catch(e){throw YK(e,[aq])}},FKt={user:{},team:{},supervisor:[],auditor:[],region:{},progressiveCount:null,chatCount:0,taskCount:0,isSupervisor:!1,description:``,greetingMedia:{}},IKt=async({itemId:e,defaultObject:t=FKt})=>{try{return YK((await Pq().readAgent(String(e))).data,[dq(),eq(t)])}catch(e){throw YK(e,[aq])}},LKt=async({itemInstance:e})=>{let t=YK(e,[uq(_u(Iq)),XK()]);try{return YK((await Pq().createAgent(t)).data,[dq()])}catch(e){throw YK(e,[aq])}},RKt=async({changes:e,id:t})=>{let n=YK(e,[uq(_u(Lq)),XK()]);try{return YK((await Pq().patchAgent(String(t),n)).data,[dq()])}catch(e){throw YK(e,[aq])}},zKt=async({itemInstance:e,itemId:t})=>{let n=YK(e,[uq(_u(Rq)),XK()]);try{return YK((await Pq().updateAgent(String(t),n)).data,[dq()])}catch(e){throw YK(e,[aq])}},BKt=async({id:e})=>{try{return YK((await Pq().deleteAgent(String(e))).data,[])}catch(e){throw YK(e,[aq])}},VKt=async e=>{let t={search:``,sort:`+name`,fields:[],from:new Date().setHours(0,0,0,0),to:new Date().setHours(23,59,59,999),utilizationFrom:`0`},n={offline:0,online:0,pause:0,statusDuration:0,transferred:0,missed:0,utilization:0,occupancy:0,callTime:0,chatTime:0},r=e=>e.map(e=>{let t={...n,...e};return{...t,_isSelected:!1,statusDuration:i8(t.statusDuration),utilization:`${t.utilization.toFixed(2)}%`,occupancy:`${t.occupancy.toFixed(2)}%`,online:fy(t.online),offline:fy(t.offline),pause:fy(t.pause),callTime:fy(t.callTime),chatTime:fy(t.chatTime)}}),{page:i,size:a,search:o,sort:s,ids:c,fields:l,from:u,to:d,queue:f,team:p,skill:m,supervisor:h,auditor:g,region:_,utilizationFrom:v,utilizationProgress:y,agentStatus:b,callNow:x}=YK(e,[eq(t),eq(qK())]);try{let{items:e,next:t}=YK((await Pq().searchAgentStatusStatistic({page:i,size:a,q:o,sort:s,fields:l,agent_id:c,"time.from":u==null?void 0:String(u),"time.to":d==null?void 0:String(d),status:b,queue_id:f,team_id:p,"utilization.from":v,"utilization.to":y,has_call:x,skill_id:m,region_id:_,supervisor_id:h,auditor_id:g})).data,[dq(),eq(KK())]);return{items:YK(e,[r]),next:t}}catch(e){throw YK(e,[aq])}},HKt=async({agentId:e,from:t,to:n})=>{try{return YK((await Pq().searchAgentStatusStatisticItem(String(e),{"time.from":t,"time.to":n})).data,[dq()])}catch(e){throw YK(e,[aq])}},UKt=async e=>{let{parentId:t,page:n,size:r,search:i,sort:a,fields:o}=YK(e,[eq(qK()),pq(`search`)]);try{let{items:e,next:s}=YK((await Pq().searchAgentInQueue(String(t),{page:n,size:r,q:i,sort:a,fields:o})).data,[dq(),eq(KK())]);return{items:YK(e,[nq({countMembers:0,waitingMembers:0,type:0})]),next:s}}catch(e){throw YK(e,[aq])}},WKt=async({agentId:e})=>{let t={name:``,durationMin:0,limitMin:0};try{let{items:n,next:r}=YK((await Pq().searchPauseCauseForAgent(String(e))).data,[dq(),eq(KK())]);return{items:YK(n,[nq(t)]),next:r}}catch(e){throw YK(e,[aq])}},GKt=e=>a8({...e,fields:e.fields||[`id`,`name`]}),KKt=async e=>{let{parentId:t,joinedAt:n,page:r,size:i,sort:a}=YK(e,[eq(qK()),eq({sort:`-joined_at`}),pq(`search`)]),o=_y(n),s=e=>e.map(e=>({...e,from:mu(+e.joinedAt,kp.DATETIME),to:e.duration?mu(+e.joinedAt+e.duration*1e3,kp.DATETIME):null,duration:fy(e.duration)}));try{let{items:e,next:n}=YK((await Pq().searchAgentStateHistory({page:r,size:i,agent_id:t?[t]:void 0,sort:a,"joined_at.from":o?.from==null?void 0:String(o.from),"joined_at.to":o?.to==null?void 0:String(o.to)})).data,[dq(),eq(KK())]);return{items:YK(e,[s]),next:n}}catch(e){throw YK(e,[aq])}},qKt=async e=>{let{page:t,size:n,search:r}=YK(e,[eq(qK()),pq(`search`)]);try{let{items:e,next:i}=YK((await Pq().searchLookupUsersAgentNotExists({page:t,size:n,q:r})).data,[dq(),eq(KK())]);return{items:e,next:i}}catch(e){throw YK(e,[aq])}},JKt=async e=>{let t=_u(zq),n=YK(e,[XK(),eq(qK()),pq(`search`),e=>({...e,q:e.search}),uq(t)]);try{let{items:e,next:t}=YK((await Pq().searchUserStatus(n)).data,[dq(),eq(KK())]);return{items:e,next:t}}catch(e){throw YK(e,[aq])}},YKt=async e=>a8({...e,isSupervisor:!0}),XKt=async e=>a8({...e,isNotSupervisor:!0}),ZKt={getList:a8,get:IKt,add:LKt,patch:RKt,update:zKt,delete:BKt,getLookup:GKt,getAgentHistory:KKt,getRegularAgentsOptions:XKt,getAgentUsersOptions:qKt,getSupervisorOptions:YKt,getUsersStatus:JKt,getPauseCausesForAgent:WKt,getAgentQueues:UKt,getStatusStatistics:VKt,getStatusStatisticsItem:HKt,...gq(PKt)}})),$Kt=O((()=>{qU(),Z(),Y(),X()})),eqt=O((()=>{Z(),X(),$Kt(),dq()})),tqt=O((()=>{Z(),Y(),X()})),nqt=O((()=>{Z(),Y(),X()})),rqt,iqt=O((()=>{iz(),Z(),Y(),X(),_q(),rqt=`/calendars`,{...gq(rqt)}})),aqt=O((()=>{Z(),X()})),oqt=O((()=>{Z(),Y(),X()})),sqt=O((()=>{Z(),Y(),X()})),cqt=O((()=>{Z(),Y(),X()})),lqt=O((()=>{Z(),Y(),X()})),uqt=O((()=>{Z(),Y(),X()})),dqt=O((()=>{vu(),Z(),Y(),X(),_u(yY)})),fqt=O((()=>{Z(),Y(),X()})),pqt=O((()=>{Z(),Y(),X()})),mqt=O((()=>{Z(),Y(),X()})),hqt=O((()=>{qU(),vu(),Z(),Y(),X(),_u(W1),_u(W1),_u(K1),_u(G1)})),gqt=O((()=>{Z(),Y(),X()})),_qt=O((()=>{Z(),Y(),X()})),vqt=O((()=>{Z(),Y(),X()})),yqt=O((()=>{vu(),Z(),Y(),X()})),bqt=O((()=>{Pp(),vy()})),xqt,Sqt=O((()=>{vu(),yu(),Z(),Y(),X(),_q(),yqt(),bqt(),wY(),xqt=`/cases`,_u(BY),_u(OY),{...gq(xqt)}})),Cqt=O((()=>{Z(),X()})),wqt=O((()=>{Z(),Y(),X()})),Tqt=O((()=>{Z(),Y(),X()})),Eqt=O((()=>{Object.freeze({VIBER:`viber`,WHATSAPP:`whatsapp`,TELEGRAM:`telegram`,MESSENGER:`messenger`,EMAIL:`email`})})),Dqt=O((()=>{Pp(),Eqt()})),Oqt=O((()=>{Pp(),iz(),QK(),Y(),X(),Dqt(),ya()})),kqt,o8,Aqt=O((()=>{Z(),X(),kqt=({messages:e,peers:t})=>e?e.map(({from:e,...n})=>({...n,peer:e&&t?t[e.id-1]:void 0})):[],o8=e=>async({parentId:t,taskId:n})=>{try{let{messages:r,peers:i}=YK((await e(String(t),String(n))).data,[dq()]);return{items:YK({messages:r,peers:i},[kqt])}}catch(e){throw YK(e,[aq])}},o8((e,t)=>QX().contactsChatCatalogGetContactChatHistory(e,t)),o8((e,t)=>KY().casesChatCatalogGetCaseChatHistory(e,t))})),jqt=O((()=>{Z(),Y(),X()})),Mqt,Nqt=O((()=>{Z(),Y(),X(),_q(),Mqt=`/storage/cognitive_profiles`,{...gq(Mqt)}})),Pqt=O((()=>{Z(),Y(),X()})),Fqt=O((()=>{qU(),vu(),Z(),Y(),X(),[..._u(v0)]})),Iqt=O((()=>{yu(),Z(),Y(),X(),yqt(),bqt()})),Lqt,Rqt=O((()=>{qU(),vu(),Z(),Y(),X(),_q(),Lqt=`/contacts/groups`,_u(BQ),{...gq(Lqt)}})),zqt,Bqt=O((()=>{iz(),Z(),Y(),X(),_q(),zqt=`/devices`,{...gq(zqt)}})),Vqt=O((()=>{Z(),Y(),X()})),Hqt=O((()=>{vu(),Z(),Y(),X(),_u(OZ)})),Uqt=O((()=>{qU(),vu(),Z(),Y(),X(),_u(AZ)})),Wqt=O((()=>{qU(),Z(),Y(),X()})),Gqt=O((()=>{vu(),Z(),Y(),X(),_u(UZ),_u(KZ)})),Kqt=O((()=>{Z(),vy(),Y(),X()})),qqt=O((()=>{qU(),Z(),Y(),X()})),Jqt=O((()=>{Z(),Y(),X()})),Yqt=O((()=>{Y(),X(),ya()})),Xqt=O((()=>{Z(),Y(),X()})),Zqt=O((()=>{Z(),Y(),X()})),Qqt,$qt=O((()=>{Z(),Y(),X(),_q(),Qqt=`/storage/import_templates`,{...gq(Qqt)}})),eJt=O((()=>{Z(),Y(),X()})),tJt=O((()=>{Z(),Y(),X(),ya()})),nJt=O((()=>{Z(),Y(),X()})),rJt=O((()=>{Z(),Y(),X()})),iJt,aJt=O((()=>{Z(),Y(),X(),_q(),iJt=`/call_center/list`,{...gq(iJt)}})),oJt=O((()=>{Z(),vy(),Y(),X()})),sJt=O((()=>{ha(),Z(),Y(),X(),ya(),localStorage.getItem(`access-token`),ma.create({headers:{"content-type":`multipart/form-data`}})})),cJt,lJt,uJt,dJt=O((()=>{Z(),Y(),X(),cJt=async e=>{let t=YK(e,[XK()]);try{return YK((await n8().messagesServiceBroadcastMessage(t)).data,[dq()])}catch(e){throw YK(e,[aq])}},lJt=async({chatId:e,...t})=>{let n=YK(t,[eq(qK()),XK()]);try{let{messages:t,peers:r,next:i}=YK((await n8().catalogGetHistory(String(e),n)).data,[dq(),eq(KK())]);return{messages:t,peers:r,next:i}}catch(e){throw YK(e,[aq])}},uJt={patch:cJt,getChatHistory:lJt}})),fJt,pJt=O((()=>{vu(),Z(),Y(),X(),_q(),_u(E$),fJt=`/oauth/apps`,{...gq(fJt)}})),mJt,hJt,gJt,_Jt,vJt,yJt,bJt=O((()=>{Z(),Y(),X(),mJt=ya(),hJt=async e=>{let{page:t,size:n,fields:r,sort:i,id:a,q:o}=YK(e,[eq(qK()),pq(`search`),e=>({...e,q:e.search}),oq([`page`,`size`,`q`,`sort`,`fields`,`id`]),XK()]);try{let{data:e,next:s}=YK((await r8().searchTypes({q:o,id:a,size:n,page:t,sort:i,fields:r})).data,[eq(KK())]);return{items:YK(e,[dq(),e=>(e||[]).map(e=>({...e,id:e.repo}))]),next:s}}catch(e){throw YK(e,[aq])}},gJt=async({...e})=>{let t=YK(e,[eq(qK()),e=>({...e,q:e.search,extensions:!1}),oq([`page`,`size`,`q`,`sort`,`extensions`,`fields`,`id`]),XK(),ZK(`types`)]);try{let{data:e,next:n}=YK((await mJt.get(t)).data,[dq(),eq(KK())]);return{items:e??[],next:n}}catch(e){throw YK(e,[aq])}},_Jt=async e=>gJt({...e,fields:e.fields||[`id`,`name`]}),vJt=async({itemId:e})=>{try{return YK((await r8().locate(String(e))).data,[dq()])}catch(e){throw YK(e,[aq])}},yJt={getList:hJt,get:vJt,getLookup:_Jt}})),xJt=O((()=>{Z(),Y(),X()})),SJt,CJt=O((()=>{iz(),Z(),Y(),X(),_q(),SJt=`/call_center/resource_group`,{...gq(SJt)}})),wJt=O((()=>{Z(),Y(),X()})),TJt,EJt=O((()=>{iz(),Z(),Y(),X(),_q(),TJt=`/call_center/resources`,{...gq(TJt)}})),DJt=O((()=>{Z(),Y(),X()})),OJt=O((()=>{iz(),Z(),Y(),X()})),kJt=O((()=>{Z(),vy(),Y(),X()})),AJt=O((()=>{vu(),Z(),Y(),X(),_u(R$),_u(B$)})),jJt=O((()=>{Z(),Y(),X()})),s8,c8=O((()=>{s8=s.z.number().nullable().optional()})),l8,u8=O((()=>{l8=(e=1)=>s.z.union([s.z.string().min(e),s.z.number().min(e)])})),d8,f8=O((()=>{d8=e=>({params:{i18nKey:e}})})),p8,MJt=O((()=>{p8=e=>e==null?!1:Array.isArray(e)?e.length>0:e instanceof Date?!Number.isNaN(e.getTime()):typeof e==`object`?Object.keys(e).length>0:String(e).length>0})),m8,h8,g8,_8,v8=O((()=>{f8(),MJt(),m8=s.z.object({id:s.z.string().optional(),name:s.z.string().optional()}),h8=s.z.object({id:s.z.string().min(1),name:s.z.string().optional()}),g8=s.z.object({id:s.z.union([s.z.string(),s.z.number()]).optional(),name:s.z.string().optional()}),_8=g8.refine(e=>p8(e),d8(`required`))})),NJt,PJt,FJt=O((()=>{f8(),NJt=/^\+?[A-Za-z0-9\-_.!~*'()]+$/,PJt=s.z.string().min(1).refine(e=>e===``||NJt.test(e),d8(`phoneNumberSymbolsValidator`))})),y8,b8=O((()=>{y8=s.z.object({key:s.z.string(),value:s.z.string()})})),IJt=O((()=>{f8(),s.z.object({name:s.z.string().min(1),repo:s.z.string().min(1).refine(e=>/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e),d8(`latinWithNumber`)),about:s.z.string().optional(),administered:s.z.boolean().optional(),primary:s.z.string().optional(),display:s.z.string().optional(),fields:s.z.array(s.z.any()).optional(),indexes:s.z.any().optional()})})),LJt=O((()=>{v8(),s.z.object({id:s.z.string().optional(),user:_8,team:_8,supervisor:s.z.array(g8).optional().default([]),auditor:s.z.array(g8).optional().default([]),region:g8.optional().default({}),greetingMedia:g8.optional().default({}),progressiveCount:s.z.number().min(1).nullable().optional().default(null),chatCount:s.z.number().min(1).default(1),taskCount:s.z.number().min(1).default(1),extraChatCount:s.z.number().min(0).nullable().optional().default(0),isSupervisor:s.z.boolean().optional().default(!1),screenControl:s.z.boolean().optional().default(!1),allowSetScreenControl:s.z.boolean().optional()})})),RJt=O((()=>{c8(),v8(),s.z.object({name:s.z.string().min(1).default(``),limitMin:s8.default(60),description:s.z.string().optional().default(``),allowAdmin:s.z.boolean().default(!0),allowSupervisor:s.z.boolean().default(!0),allowAgent:s.z.boolean().default(!0),teams:s.z.array(g8).optional().default([])})})),zJt=O((()=>{v8(),s.z.object({skill:_8,capacity:s.z.number().min(0).max(100).default(10),enabled:s.z.boolean().default(!0)})})),BJt=O((()=>{v8(),s.z.object({agent:_8})})),VJt=O((()=>{v8(),s.z.object({name:s.z.string().min(3),description:s.z.string().optional(),teams:s.z.array(m8).optional().default([]),enabled:s.z.boolean().optional().default(!0),questions:s.z.array(s.z.any()).min(1).default([])})})),HJt=O((()=>{s.z.object({name:s.z.string().min(1),description:s.z.string().optional()})})),UJt,x8,S8,C8,WJt,GJt,w8,KJt,qJt,JJt,T8,YJt=O((()=>{f8(),v8(),UJt=`hourRange`,x8=`timerangeStartLessThanEnd`,S8=`timerangeNotIntersect`,C8=s.z.number().int().refine(e=>e>=0&&e<1440,d8(UJt)),WJt=e=>{let t=new Set,n=new Map;return e.forEach((e,t)=>{let r=n.get(e.day)??[];r.push(t),n.set(e.day,r)}),n.forEach(n=>{let r=[];n.forEach(n=>{let i=e[n];r.forEach(e=>{(i.start>=e.start&&i.end<=e.end||i.start<=e.start&&i.end>=e.start||i.start<=e.end&&i.end>=e.end)&&(t.add(n),t.add(e.index))}),r.push({start:i.start,end:i.end,index:n})})}),t},GJt=s.z.object({day:s.z.number().int().min(0).max(6),disabled:s.z.boolean().default(!1),start:C8,end:C8}).superRefine((e,t)=>{e.start>=e.end&&(t.addIssue({code:`custom`,path:[`start`],...d8(x8)}),t.addIssue({code:`custom`,path:[`end`],...d8(x8)}))}),w8=s.z.array(GJt).superRefine((e,t)=>{WJt(e).forEach(e=>{t.addIssue({code:`custom`,path:[e,`start`],...d8(S8)}),t.addIssue({code:`custom`,path:[e,`end`],...d8(S8)})})}),KJt=s.z.object({name:s.z.string().min(1),date:s.z.union([s.z.number(),s.z.string()]).optional(),repeat:s.z.boolean().optional(),working:s.z.boolean().optional(),workStart:C8.nullish(),workStop:C8.nullish()}),qJt=()=>Array.from({length:7},(e,t)=>({day:t,disabled:!1,start:540,end:1200})),JJt=()=>Array.from({length:7},(e,t)=>({day:t,disabled:!0,start:540,end:1200})),T8=()=>Date.now(),s.z.object({name:s.z.string().min(1),description:s.z.string().optional().default(``),timezone:h8,startAt:s.z.any().optional().default(T8),endAt:s.z.any().optional().default(T8),expires:s.z.boolean().optional().default(!1),accepts:w8.default(qJt),specials:w8.default(JJt),excepts:s.z.array(KJt).optional().default([])})})),E8,XJt,D8,ZJt=O((()=>{f8(),v8(),E8=()=>m8.passthrough().default({}),XJt=()=>s.z.object({id:s.z.union([s.z.string(),s.z.number()]).optional(),name:s.z.string().optional(),final:s.z.boolean().optional(),initial:s.z.boolean().optional()}).passthrough().default({}),s.z.object({subject:s.z.string().default(``),source:E8(),priority:E8(),reporter:E8(),service:E8(),statusCondition:XJt(),closeReason:m8.passthrough().nullish().default(null),closeResult:s.z.string().default(``)}),D8=(e,t)=>s.z.refine(t=>!t?.statusCondition?.final||e(t),{path:t,when:()=>!0,...d8(`required`)}),D8(e=>!!e.closeReason,[`closeReason`]),D8(e=>!e.closeReason||!!e.closeReason.id,[`closeReason`,`id`]),D8(e=>!!e.closeResult,[`closeResult`])})),QJt=O((()=>{f8(),s.z.object({reason:s.z.object({id:s.z.union([s.z.string(),s.z.number()])}).passthrough().nullable(),result:s.z.string().nullable()}).superRefine((e,t)=>{e.reason?.id||t.addIssue({code:`custom`,path:[`reason`],...d8(`required`)}),e.result||t.addIssue({code:`custom`,path:[`result`],...d8(`required`)})})})),$Jt=O((()=>{s.z.object({name:s.z.string().min(1),description:s.z.string().optional()})})),eYt=O((()=>{s.z.object({name:s.z.string().min(1),description:s.z.string().optional()})})),tYt=O((()=>{f8(),s.z.object({type:s.z.object({name:s.z.string(),value:s.z.string()}).nullable(),separator:s.z.string().nullable()}).superRefine((e,t)=>{e.type||t.addIssue({code:`custom`,path:[`type`],...d8(`required`)}),e.type?.value===`csv`&&!e.separator&&t.addIssue({code:`custom`,path:[`separator`],...d8(`required`)})})})),nYt,rYt=O((()=>{Pp(),f8(),nYt=e=>{try{return Object.values(Np).includes(new URL(e).protocol)}catch{return!1}},s.z.object({url:s.z.string().min(1).refine(e=>!e||nYt(e),d8(`url`)),name:s.z.string().optional()})})),iYt=O((()=>{s.z.object({name:s.z.string().min(1),color:s.z.string().min(1),description:s.z.string().optional()})})),aYt=O((()=>{v8(),s.z.object({name:s.z.string().min(1),assignee:m8.optional(),group:m8.optional(),sla:m8.optional(),defaultPriority:m8.optional(),code:s.z.string().optional(),description:s.z.string().optional(),state:s.z.boolean().default(!0)})})),oYt=O((()=>{v8(),s.z.object({name:s.z.string().min(1),prefix:s.z.string().min(1),status:h8,closeReasonGroup:h8,sla:h8,defaultPriority:h8,teams:s.z.array(m8).optional(),skills:s.z.array(m8).optional(),code:s.z.string().optional(),description:s.z.string().optional(),state:s.z.boolean().default(!0)})})),sYt=O((()=>{s.z.object({name:s.z.string().min(1),description:s.z.string().optional(),type:s.z.string().min(1)})})),cYt=O((()=>{s.z.object({name:s.z.string().min(1),description:s.z.string().optional()})})),lYt=O((()=>{s.z.object({name:s.z.string().min(1),description:s.z.string().optional()})})),uYt=O((()=>{s.z.object({name:s.z.object({commonName:s.z.string().min(1)}).passthrough().optional(),timezones:s.z.any().optional(),managers:s.z.any().optional(),groups:s.z.any().optional(),labels:s.z.any().optional(),about:s.z.string().nullish(),user:s.z.any().nullish()})})),dYt=O((()=>{v8(),s.z.object({email:s.z.string().min(1).email(),type:_8,primary:s.z.boolean().optional()})})),O8,fYt,pYt,mYt=O((()=>{qU(),v8(),O8={name:s.z.string().min(1),description:s.z.string().optional(),enabled:s.z.boolean().default(!0),type:s.z.string().optional()},fYt=s.z.object({...O8,defaultGroup:m8.optional()}),pYt=s.z.object({...O8,defaultGroup:h8}),s.z.discriminatedUnion(`type`,[fYt.extend({type:s.z.literal(BU.Static)}),pYt.extend({type:s.z.literal(BU.Dynamic)})])})),hYt=O((()=>{v8(),s.z.object({expression:s.z.string().min(1),group:h8,assignee:m8.nullish()})})),gYt=O((()=>{v8(),s.z.object({number:s.z.string().min(1),type:_8,primary:s.z.boolean().optional()})})),_Yt,vYt,yYt,bYt,xYt=O((()=>{f8(),v8(),_Yt=/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/,vYt=/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/,yYt=s.z.string().optional().default(``).refine(e=>e?e===`127.0.0.1`||e===`0.0.0.0`?!1:_Yt.test(e):!0,d8(`ipValidator`)),bYt=s.z.string().optional().default(``).refine(e=>!e||vYt.test(e),d8(`macValidator`)),s.z.object({id:s.z.string().optional(),name:s.z.string().min(1).default(``),account:s.z.string().min(1).default(``),password:s.z.string().optional().default(``),user:g8.optional().default({}),ip:yYt,brand:s.z.string().optional().default(``),model:s.z.string().optional().default(``),mac:bYt,hotdesk:s.z.boolean().optional(),hotdesks:s.z.array(s.z.string()).optional()}).superRefine((e,t)=>{!e.id&&!e.password&&t.addIssue({code:`custom`,path:[`password`],...d8(`required`)});let n=e.hotdesks;e.hotdesk&&n?.some(e=>!/\w+/.test(e))&&t.addIssue({code:`custom`,path:[`hotdesks`],...d8(`required`)})})})),SYt=O((()=>{s.z.object({certificate:s.z.string().min(1).default(``)})})),CYt=O((()=>{s.z.object({name:s.z.string().min(1),type:s.z.string().min(1),clientId:s.z.string().min(1),clientSecret:s.z.string().min(1),discoveryUrl:s.z.string().min(1),scopes:s.z.array(s.z.string()).optional(),enabled:s.z.boolean().optional(),claims:s.z.array(s.z.object({type:s.z.string().optional(),value:s.z.string().optional()})).optional()})})),wYt=O((()=>{v8(),s.z.object({name:s.z.string().min(1),description:s.z.string().optional(),skills:s.z.array(m8).optional()})})),TYt,EYt,DYt=O((()=>{Pp(),TYt={required:[`name`],minValue:{priority:0,"payload.minOnlineAgents":0}},EYt={[z.OFFLINE_QUEUE]:{required:[`strategy`,`calendar`],minValue:{"payload.originateTimeout":0}},[z.INBOUND_QUEUE]:{required:[`payload.timeBaseScore`],minValue:{"payload.maxWaitTime":0,"payload.discardAbandonedAfter":0}},[z.OUTBOUND_IVR_QUEUE]:{required:[`strategy`,`calendar`,`schema`,`payload.resourceStrategy`],minValue:{"payload.originateTimeout":0,"payload.waitBetweenRetries":0,"payload.minDuration":0}},[z.PREVIEW_DIALER]:{required:[`strategy`,`calendar`,`payload.resourceStrategy`],minValue:{"payload.originateTimeout":0,"payload.waitBetweenRetries":0}},[z.PROGRESSIVE_DIALER]:{required:[`strategy`,`calendar`,`payload.resourceStrategy`,`payload.progressiveCount`],minValue:{"payload.originateTimeout":0,"payload.waitBetweenRetries":0,"payload.progressiveCount":1}},[z.PREDICTIVE_DIALER]:{required:[`strategy`,`calendar`,`payload.resourceStrategy`,`payload.progressiveCount`,`payload.maxAgentLine`],minValue:{"payload.originateTimeout":0,"payload.waitBetweenRetries":0,"payload.maxWaitTime":0,"payload.progressiveCount":1,"payload.maxAgentLine":1}},[z.CHAT_INBOUND_QUEUE]:{required:[`strategy`,`payload.timeBaseScore`],minValue:{"payload.maxWaitTime":0,"payload.discardAbandonedAfter":0}},[z.IM_CHAT_QUEUE]:{required:[`strategy`,`payload.timeBaseScore`],minValue:{"payload.maxWaitTime":0,"payload.discardAbandonedAfter":0}},[z.INBOUND_JOB_QUEUE]:{required:[`strategy`,`calendar`],minValue:{"payload.waitBetweenRetries":0}},[z.OUTBOUND_JOB_QUEUE]:{required:[`strategy`,`calendar`,`schema`],minValue:{"payload.originateTimeout":0,"payload.waitBetweenRetries":0,"payload.minDuration":0}}}})),OYt,kYt=O((()=>{c8(),v8(),OYt=s.z.object({enabled:s.z.boolean().optional(),ai:s.z.boolean().optional(),positive:s.z.array(s.z.string()).optional(),playback:g8.optional(),allowNotSure:s.z.boolean().optional(),silenceNotSure:s.z.boolean().optional(),maxWordLength:s8,maxNumberOfWords:s8,betweenWordsSilence:s8,minWordLength:s8,totalAnalysisTime:s8,silenceThreshold:s8,afterGreetingSilence:s8,greeting:s8,initialSilence:s8})})),AYt,jYt=O((()=>{c8(),kYt(),AYt=s.z.object({maxAttempts:s8,minAttempts:s8,originateTimeout:s8,waitBetweenRetries:s8,waitBetweenRetriesDesc:s.z.boolean().optional(),minDuration:s8,maxCalls:s8,progressiveCount:s8,dialingRate:s8,resourceStrategy:s.z.string().optional(),strictCircuit:s.z.boolean().optional(),perNumbers:s.z.boolean().optional(),endless:s.z.boolean().optional(),retryAbandoned:s.z.boolean().optional(),maxAgentLine:s8,maxAgentLose:s8,maxAbandonedRate:s8,targetAbandonedRate:s8,abandonRateAdjustment:s8,loadFactor:s8,playbackSilence:s8,statisticTime:s8,timeBaseScore:s.z.string().optional(),maxWaitTime:s8,maxWaitingSize:s8,discardAbandonedAfter:s8,manualDistribution:s.z.boolean().optional(),minOnlineAgents:s8,maxMemberLimit:s8,ignoreCalendar:s.z.boolean().optional(),stickyAgentSec:s8,stickyIgnoreStatus:s.z.boolean().optional(),maxIdleAgent:s8,maxIdleClient:s8,maxIdleDialog:s8,lastMessageTimeout:s.z.boolean().optional(),recordings:s.z.boolean().optional(),recordAll:s.z.boolean().optional(),allowGreetingAgent:s.z.boolean().optional(),autoAnswerTone:s.z.string().nullable().optional(),amd:OYt.optional()})})),MYt,NYt,PYt=O((()=>{c8(),v8(),MYt=s.z.object({enabled:s.z.boolean().optional(),isTimeoutRetry:s.z.boolean().optional(),prolongationTimeSec:s8,repeatsNumber:s8}),NYt=s.z.object({enabled:s.z.boolean().optional(),formSchema:g8.optional(),sec:s8,renewalSec:s8,prolongationOptions:MYt.prefault({})})})),FYt,IYt,LYt=O((()=>{c8(),f8(),MJt(),v8(),b8(),DYt(),jYt(),PYt(),FYt=s.z.object({name:s.z.string().min(1),description:s.z.string().optional(),type:s.z.number(),enabled:s.z.boolean().optional(),priority:s8,tags:s.z.array(s.z.object({name:s.z.string()})).optional(),calendar:g8.optional(),team:g8.optional(),dncList:g8.optional(),grantee:g8.optional(),ringtone:g8.optional(),schema:g8.optional(),doSchema:g8.optional(),afterSchema:g8.optional(),formSchema:g8.optional(),strategy:s.z.string().optional(),stickyAgent:s.z.boolean().optional(),taskProcessing:NYt.optional(),payload:AYt.optional(),variables:s.z.array(y8).optional()}),IYt=FYt.superRefine((e,t)=>{let r=[TYt,EYt[Number(e.type)]??{}];for(let i of r){for(let r of i.required??[]){let i=(0,n.get)(e,r);p8(i)||t.addIssue({code:`custom`,path:(0,n.isPlainObject)(i)?[...r.split(`.`),`id`]:r.split(`.`),...d8(`required`)})}for(let[r,a]of Object.entries(i.minValue??{})){let i=(0,n.get)(e,r);i==null||i===``||Number(i)<a&&t.addIssue({code:`too_small`,origin:`number`,minimum:a,inclusive:!0,input:i,path:r.split(`.`)})}}})})),RYt,zYt=O((()=>{v8(),RYt=s.z.object({bucket:_8,priority:s.z.number().min(0).default(0),disabled:s.z.boolean().optional()})})),BYt,VYt=O((()=>{v8(),BYt=s.z.object({event:s.z.string().min(1),schema:_8,properties:s.z.array(s.z.string()).optional(),enabled:s.z.boolean().default(!0)})})),HYt,k8,UYt=O((()=>{v8(),FJt(),HYt=/^[\d|w|W]*$/,k8=s.z.object({destination:s.z.string().min(1),type:_8,dtmf:s.z.string().regex(HYt).optional(),display:s.z.string().optional(),priority:s.z.number().optional(),resource:g8.optional(),description:s.z.string().optional()}),k8.extend({destination:PJt})})),WYt,GYt=O((()=>{Tl(),v8(),b8(),UYt(),WYt=s.z.object({name:s.z.string().min(1),communications:s.z.array(k8).min(1),priority:s.z.number().optional().default(0),bucket:g8.optional(),timezone:g8.optional(),agent:g8.optional(),expireAt:s.z.union([s.z.string(),s.z.number()]).optional().default(()=>Wre(Date.now(),7).getTime()),minOfferingAt:s.z.union([s.z.string(),s.z.number()]).optional(),stopCause:s.z.string().optional(),variables:s.z.array(y8).optional()})})),KYt,qYt=O((()=>{v8(),KYt=s.z.object({resourceGroup:_8,communication:g8.optional()})})),JYt,YYt,XYt=O((()=>{v8(),JYt=s.z.object({skill:_8,lvl:s.z.number().min(0).max(1e3).default(0),minCapacity:s.z.number().min(0).max(100).optional().default(0),maxCapacity:s.z.number().min(0).max(100).optional().default(10),buckets:s.z.array(g8).optional().default([]),enabled:s.z.boolean().default(!0)}),YYt=JYt.superRefine((e,t)=>{e.minCapacity==null||e.maxCapacity==null||e.minCapacity<=e.maxCapacity||(t.addIssue({code:`custom`,path:[`minCapacity`],message:`Value must be less than or equal to the maximum capacity`}),t.addIssue({code:`custom`,path:[`maxCapacity`],message:`Value must be greater than or equal to the minimum capacity`}))})})),ZYt,QYt=O((()=>{u8(),v8(),ZYt=6e4,s.z.object({name:s.z.string().min(1),description:s.z.string().optional(),calendar:h8,reactionTime:l8(),resolutionTime:l8(),validFrom:s.z.union([s.z.string(),s.z.number()]).nullish(),validTo:s.z.union([s.z.string(),s.z.number()]).nullish()}).superRefine((e,t)=>{if(!e.validFrom||!e.validTo)return;let n=Number(e.validFrom),r=Number(e.validTo);Number.isNaN(n)||Number.isNaN(r)||n>r-ZYt&&t.addIssue({code:`too_big`,origin:`date`,maximum:r,inclusive:!1,input:e.validFrom,path:[`validFrom`]})})})),$Yt=O((()=>{u8(),v8(),s.z.object({name:s.z.string().min(1),priorities:s.z.array(h8).min(1),reactionTime:l8(),resolutionTime:l8()})})),eXt=O((()=>{v8(),s.z.object({id:s.z.string().optional(),name:s.z.string().min(1).default(``),description:s.z.string().optional().default(``),strategy:s.z.string().min(1).default(``),admin:s.z.array(g8).optional().default([]),screenControl:s.z.boolean().optional().default(!1),maxNoAnswer:s.z.number().default(3),wrapUpTime:s.z.number().default(15),noAnswerDelayTime:s.z.number().default(30),taskAcceptTimeout:s.z.number().default(30),callTimeout:s.z.number().default(60),inviteChatTimeout:s.z.number().default(30)})})),tXt=O((()=>{v8(),s.z.object({agent:_8})})),nXt=O((()=>{v8(),s.z.object({name:s.z.string().min(1),description:s.z.string().optional(),schema:_8,enabled:s.z.boolean().default(!0)})})),rXt=O((()=>{v8(),s.z.object({event:s.z.string().min(1),schema:_8,properties:s.z.array(s.z.string()).optional(),enabled:s.z.boolean().default(!0)})})),iXt=O((()=>{s.z.object({fields:s.z.array(s.z.any()).optional()})})),aXt=O((()=>{})),oXt,sXt,cXt=O((()=>{f8(),v8(),b8(),oXt=/^[0-9]*$/,sXt=s.z.object({id:s.z.string().optional(),name:s.z.string().min(1).default(``),username:s.z.string().min(1).default(``),password:s.z.string().optional().default(``),extension:s.z.string().optional().default(``).refine(e=>!e||oXt.test(e),d8(`numeric`)),email:s.z.string().optional().default(``),chatName:s.z.string().optional().default(``),contact:g8.nullish().default({}),roles:s.z.array(g8).optional().default([]),license:s.z.array(s.z.any()).optional().default([]),devices:s.z.array(g8).optional().default([]),device:g8.nullish().default({}),forcePasswordChange:s.z.boolean().optional().default(!1),generateDevice:s.z.boolean().optional().default(!1),variables:s.z.array(y8).optional().default([])}),sXt.superRefine((e,t)=>{!e.id&&!e.password&&t.addIssue({code:`custom`,path:[`password`],...d8(`required`)}),e.variables?.forEach(({key:e,value:n},r)=>{n&&!e&&t.addIssue({code:`custom`,path:[`variables`,r,`key`],...d8(`required`)}),e&&!n&&t.addIssue({code:`custom`,path:[`variables`,r,`value`],...d8(`required`)})})})})),lXt,uXt=O((()=>{lXt=s.z.object({usage:s.z.string().default(``)})})),dXt=O((()=>{s.z.object({key:s.z.string().min(1),value:s.z.string().min(1)})})),A8=O((()=>{c8(),u8(),f8(),v8(),FJt(),b8(),IJt(),LJt(),RJt(),zJt(),BJt(),VJt(),HJt(),YJt(),ZJt(),QJt(),$Jt(),eYt(),tYt(),rYt(),iYt(),aYt(),oYt(),sYt(),cYt(),lYt(),uYt(),dYt(),mYt(),hYt(),gYt(),xYt(),SYt(),CYt(),wYt(),DYt(),LYt(),kYt(),jYt(),PYt(),zYt(),VYt(),UYt(),GYt(),qYt(),XYt(),QYt(),$Yt(),eXt(),tXt(),nXt(),rXt(),iXt(),aXt(),cXt(),uXt(),dXt()})),fXt=O((()=>{vu(),A8(),Z(),Y(),X(),[..._u(RYt)]})),pXt=O((()=>{vu(),A8(),Z(),Y(),X(),[..._u(BYt)]})),mXt=O((()=>{Z(),vy(),Y(),X()})),hXt=O((()=>{vu(),A8(),iz(),Z(),vy(),Y(),X(),[..._u(WYt)]})),gXt=O((()=>{vu(),A8(),Z(),Y(),X(),[..._u(KYt)]})),_Xt=O((()=>{vu(),A8(),Z(),Y(),X(),[..._u(YYt)]})),vXt=O((()=>{Z(),X()})),yXt=O((()=>{QK()})),bXt=O((()=>{})),xXt=O((()=>{})),SXt=O((()=>{Pp(),bXt(),xXt(),yXt(),z.OFFLINE_QUEUE,z.INBOUND_QUEUE,z.OUTBOUND_IVR_QUEUE,z.PREVIEW_DIALER,z.PROGRESSIVE_DIALER,z.PREDICTIVE_DIALER,z.CHAT_INBOUND_QUEUE,z.IM_CHAT_QUEUE,z.INBOUND_JOB_QUEUE,z.OUTBOUND_JOB_QUEUE})),CXt,wXt,TXt=O((()=>{vu(),A8(),iz(),QK(),Pp(),Z(),Y(),X(),_q(),yXt(),SXt(),CXt=`/call_center/queues`,wXt=[`variables`],_u(IYt),dq(wXt),{...gq(CXt)}})),EXt=O((()=>{Z(),Y(),X()})),DXt=O((()=>{Z(),Y(),X()})),OXt=O((()=>{Z(),Y(),X()})),kXt=O((()=>{Z(),Y(),X()})),AXt=O((()=>{Z(),Y(),X()})),jXt=O((()=>{Z(),Y(),X()})),MXt=O((()=>{Z(),Y(),X()})),NXt=O((()=>{Z(),Y(),X()})),PXt=O((()=>{iz(),Z(),Y(),X()})),FXt=O((()=>{Z(),Y(),X()})),IXt,LXt=O((()=>{Z(),Y(),X(),_q(),IXt=`/call_center/teams`,{...gq(IXt)}})),RXt=O((()=>{Z(),Y(),X()})),zXt=O((()=>{Z(),Y(),X()})),BXt=O((()=>{Z(),Y(),X()})),VXt=O((()=>{Z(),Y(),X()})),HXt=O((()=>{iz(),Z(),Y(),X()})),UXt=O((()=>{I(),X()})),WXt,GXt=O((()=>{vu(),iz(),Z(),Y(),X(),_q(),ya(),WXt=`/users`,{...gq(WXt)}})),KXt=O((()=>{vu(),A8(),Z(),Y(),X(),_u(lXt)})),qXt=O((()=>{vu(),Z(),Y(),X(),_u(F2),_u(V2)})),JXt=O((()=>{Z(),Y(),X()})),YXt=O((()=>{Z(),vy(),X()})),XXt=O((()=>{Z(),Y(),X(),ya()})),ZXt=O((()=>{iz()})),QXt=O((()=>{Z(),Y(),X(),ZXt()})),$Xt,j8,M8,eZt,tZt,N8,nZt,rZt,iZt=O((()=>{Y(),X(),$Xt=ya(),j8=/\{([^}]+)\}/g,M8=(e,t)=>t.split(`.`).reduce((e,t)=>e?.[t],e),eZt=(e,t)=>e.match(j8)?e.replace(j8,(e,n)=>{let r=M8(t,n);return r==null?`{${n}}`:String(r)}):M8(t,e),tZt=({display:e,primary:t})=>n=>n.map(n=>({...n,...t&&{id:n[t]},...e&&{name:eZt(e,n)}})),N8=async({path:e,display:t,primary:n,filters:r=[],...i})=>{let a=YK(i,[eq(qK()),pq(`search`),e=>({...e,q:e.search}),e=>({...e,ids:e.id}),oq([`page`,`size`,`q`,`sort`,`fields`,`id`,`ids`]),XK(),ZK(e),JK(r)]);try{let{data:e,items:r,next:i}=YK((await $Xt.get(a)).data,[eq(KK())]);return{items:YK(e||r||[],[tZt({display:t,primary:n})])??[],next:i}}catch(e){throw YK(e,[aq])}},nZt=e=>N8({...e,fields:e.fields||[`id`,`name`]}),rZt={getList:N8,getLookup:nZt}})),aZt=O((()=>{Z(),X(),ZXt(),YZ()})),oZt=O((()=>{Z(),Y(),X()})),sZt=O((()=>{WU(),vy()})),cZt=O((()=>{Object.freeze({NAME:`name`,LABELS:`labels`,ABOUT:`about`,VARIABLES:`variables`,DESTINATION:`destination`})})),lZt,uZt=O((()=>{vu(),Z(),Y(),X(),_q(),sZt(),cZt(),lZt=`/contacts`,_u(VX),[..._u(UX)],[..._u(XX)],{...gq(lZt)}})),dZt=O((()=>{})),fZt=O((()=>{oZt(),uZt(),cZt(),dZt()})),P8=O((()=>{_q(),OKt(),kKt(),AKt(),jKt(),MKt(),NKt(),QKt(),$Kt(),eqt(),tqt(),nqt(),iqt(),aqt(),oqt(),sqt(),cqt(),lqt(),uqt(),dqt(),fqt(),pqt(),mqt(),hqt(),gqt(),_qt(),vqt(),Sqt(),Cqt(),wqt(),Tqt(),Oqt(),Aqt(),jqt(),Nqt(),Pqt(),Fqt(),Iqt(),Rqt(),Bqt(),Vqt(),Hqt(),Uqt(),Wqt(),Gqt(),Kqt(),qqt(),Jqt(),Yqt(),Xqt(),Zqt(),$qt(),eJt(),tJt(),nJt(),rJt(),aJt(),oJt(),sJt(),dJt(),pJt(),bJt(),xJt(),CJt(),wJt(),EJt(),DJt(),OJt(),kJt(),AJt(),jJt(),fXt(),pXt(),mXt(),hXt(),gXt(),_Xt(),vXt(),TXt(),EXt(),DXt(),OXt(),kXt(),AXt(),jXt(),MXt(),NXt(),PXt(),FXt(),LXt(),RXt(),zXt(),BXt(),VXt(),HXt(),UXt(),GXt(),KXt(),qXt(),JXt(),YXt(),XXt(),QXt(),iZt(),aZt(),fZt()})),pZt=O((()=>{iz(),QK(),Xp()})),mZt=O((()=>{Xp(),Ay()})),hZt,gZt,_Zt=O((()=>{hZt=Symbol(`filterReadAccess`),gZt=()=>(0,t.inject)(hZt,()=>void 0)})),F8,I8,vZt=O((()=>{F8={Read:`read`,Write:`write`,Delete:`delete`,Add:`add`},I8={PlaybackRecordFile:`playback_record_file`,ResetActiveAttempts:`reset_active_attempts`,TimeLimitedRecordFile:`time_limited_record_file`,ManageUserLicense:`manage_user_license`,SchemeVariables:`scheme_variables`,SystemSetting:`system_setting`,ManageUserRoles:`manage_user_roles`,ExportDataGrid:`export_data_grid`,LimitWorkspaceContacts:`limit_workspace_contacts`,ViewCdrPhoneNumbers:`view_cdr_phone_numbers`,ChangeUserPassword:`change_user_password`,EavesdropCall:`eavesdrop_call`,ControlAgentScreen:`control_agent_screen`}})),L8,yZt=O((()=>{L8={Agent:`cc_agent`,Queue:`cc_queue`,Dictionaries:`dictionaries`,EmailProfile:`email_profile`,Skills:`cc_skill`,Users:`users`,Devices:`devices`,AcrRouting:`acr_routing`,Gateways:`gateways`,AcrChatPlan:`acr_chat_plan`,Chats:`chats`,List:`cc_list`,Calendars:`calendars`,Team:`cc_team`,ResourceGroup:`cc_resource_group`,Resource:`cc_resource`,StorageProfile:`storage_profile`,CognitiveProfile:`cognitive_profile`,ImportTemplate:`import_template`,Trigger:`trigger`,Schema:`schema`,Role:`roles`,Contacts:`contacts`,MediaFile:`media_file`,Logger:`logger`,Calls:`calls`,RecordFile:`record_file`,ScreenRecordings:`screen_recordings`,VideocallFiles:`videocall_files`,ContactGroups:`contact_groups`,ChatBots:`chat_bots`,Cases:`cases`,CaseComments:`case_comments`,AuditForm:`cc_audit_form`,AuditRating:`rating`,PauseTemplates:`pause_templates`,ShiftTemplates:`shift_templates`,WorkingConditions:`working_conditions`,AgentWorkingConditions:`agent_working_conditions`,ListNumber:`cc_list_number`,CaseLookups:`case_lookups`,FilesPolicy:`files_policy`,PortalUsers:`portal_users`,Custom:`custom`,SingleSignOn:`sso`}})),R8=O((()=>{vZt(),yZt()})),bZt,z8,xZt,SZt,B8=O((()=>{Xp(),R8(),bZt={[F8.Add]:zp.Create,[F8.Read]:zp.Read,[F8.Write]:zp.Update,[F8.Delete]:zp.Delete},(0,n.invert)(bZt),z8={[L8.Users]:[K.User],[L8.Devices]:[K.Device],[L8.Schema]:[K.Flow],[L8.AcrRouting]:[K.Dialplan],[L8.Gateways]:[K.Gateway],[L8.AcrChatPlan]:[K.Chatplan],[L8.Dictionaries]:[K.Region,K.Bucket,K.Communication,K.PauseCause,K.QuickReply],[L8.List]:[K.Blacklist],[L8.Skills]:[K.Skill,K.ActivityType],[L8.Calendars]:[K.Calendar],[L8.MediaFile]:[K.Media],[L8.Agent]:[K.Agent],[L8.Queue]:[K.Queue,K.Member],[L8.ResourceGroup]:[K.ResourceGroup],[L8.Resource]:[K.Resource],[L8.Team]:[K.Team],[L8.StorageProfile]:[K.Storage],[L8.CognitiveProfile]:[K.CognitiveProfile],[L8.EmailProfile]:[K.EmailProfile],[L8.SingleSignOn]:[K.SingleSignOn],[L8.ImportTemplate]:[K.ImportCsv],[L8.Trigger]:[K.Trigger],[L8.Role]:[K.Role],[L8.Contacts]:[K.Contact],[L8.Logger]:[K.ChangeLog],[L8.Calls]:[K.Call],[L8.RecordFile]:[K.RecordFile],[L8.ScreenRecordings]:[K.ScreenRecordings],[L8.VideocallFiles]:[K.VideocallFiles],[L8.ContactGroups]:[K.ContactGroup],[L8.ChatBots]:[K.ChatGateway],[L8.Cases]:[K.Case],[L8.CaseComments]:[K.CaseComment],[L8.AuditForm]:[K.AuditForm],[L8.AuditRating]:[K.AuditRating],[L8.PauseTemplates]:[K.PauseTemplate],[L8.ShiftTemplates]:[K.ShiftTemplate],[L8.WorkingConditions]:[K.WorkingCondition],[L8.AgentWorkingConditions]:[K.AgentWorkingCondition],[L8.ListNumber]:[K.ListNumber],[L8.CaseLookups]:[K.Slas,K.ServiceCatalog,K.Priorities,K.Status,K.Source,K.CloseReasonGroup],[L8.FilesPolicy]:[K.FilePolicy],[L8.PortalUsers]:[K.PortalUser],[L8.Custom]:[K.CustomLookup]},K.License,K.Object,K.Configuration,I8.SystemSetting,K.GlobalVariable,I8.SchemeVariables,xZt={r:zp.Read,w:zp.Update,d:zp.Delete,x:zp.Create},(0,n.invert)(xZt),SZt={[G.Admin]:{[K.User]:U.Users,[K.Agent]:U.Agents,[K.License]:U.License,[K.Device]:U.Devices,[K.Flow]:U.Flow,[K.Dialplan]:U.Dialplan,[K.Gateway]:U.Gateways,[K.Chatplan]:U.Chatplan,[K.ChatGateway]:U.ChatGateways,[K.Skill]:U.Skills,[K.Bucket]:U.Buckets,[K.Blacklist]:U.Blacklist,[K.Region]:U.Regions,[K.Calendar]:U.Calendars,[K.Communication]:U.Communications,[K.PauseCause]:U.PauseCause,[K.Media]:U.Media,[K.Team]:U.Teams,[K.Resource]:U.Resources,[K.ResourceGroup]:U.ResourceGroups,[K.Queue]:U.Queues,[K.Storage]:U.Storage,[K.CognitiveProfile]:U.CognitiveProfiles,[K.EmailProfile]:U.EmailProfiles,[K.ImportCsv]:U.ImportCsv,[K.Trigger]:U.Triggers,[K.Role]:U.Roles,[K.Object]:U.Objects,[K.ChangeLog]:U.Changelogs,[K.Configuration]:U.Configuration,[K.GlobalVariable]:U.GlobalVariables,[K.ShiftTemplate]:U.ShiftTemplates,[K.PauseTemplate]:U.PauseTemplates,[K.WorkingCondition]:U.WorkingConditions,[K.Member]:U.Members,[K.QuickReply]:U.QuickReplies,[K.ActivityType]:U.ActivityTypes},[G.Audit]:{[K.AuditForm]:qp.Scorecards},[G.Crm]:{[K.Contact]:W.Contacts,[K.Case]:W.Cases,[K.Slas]:W.Slas,[K.ServiceCatalog]:W.ServiceCatalogs,[K.CaseSource]:W.CaseSources,[K.CloseReasonGroup]:W.CloseReasonGroups,[K.Priorities]:W.Priorities,[K.Status]:W.Statuses,[K.Source]:W.Sources,[K.ContactGroup]:W.ContactGroups,[K.CustomLookup]:W.CustomLookups},[G.Supervisor]:{[K.Queue]:Jp.Queues,[K.Agent]:Jp.Agents,[K.Communication]:Jp.ActiveCalls},[G.Wfm]:{}},(0,n.invert)(SZt),(0,n.invert)(U),(0,n.invert)(qp),(0,n.invert)(W),(0,n.invert)(Jp)})),CZt,wZt,TZt,EZt,DZt=O((()=>{R8(),B8(),CZt={"call_center/queues":L8.Queue,"call_center/agents":L8.Agent,"call_center/list":L8.List,"call_center/teams":L8.Team,"call_center/skills":L8.Skills,"call_center/resources":L8.Resource,"call_center/resource_group":L8.ResourceGroup,"call_center/communication_type":L8.Dictionaries,"call_center/buckets":L8.Dictionaries,"call_center/pause_causes":L8.Dictionaries,"call_center/quick_replies":L8.Dictionaries,regions:L8.Dictionaries,"contacts/groups":L8.ContactGroups},wZt=[{prefix:`cases/`,scopeClass:L8.CaseLookups},{prefix:`dictionaries/`,scopeClass:L8.Custom}],TZt=e=>e?z8[e]?e:CZt[e]||wZt.find(({prefix:t})=>e.startsWith(t))?.scopeClass:void 0,EZt=e=>e?z8[e]?.[0]:void 0})),V8,H8,U8,OZt,kZt,AZt=O((()=>{P8(),V8=(0,t.reactive)(new Map),H8=new Map,U8=e=>e?.replace(/^\//,``)||void 0,OZt=async e=>{if(V8.has(e))return V8.get(e);let t=H8.get(e);if(t)return t;let n=yJt.get({itemId:e}).then(t=>{let n=t?.objclass;return V8.set(e,n),n}).catch(()=>{V8.set(e,void 0)}).finally(()=>{H8.delete(e)});return H8.set(e,n),n},kZt=e=>{let t=U8(e);if(t)return V8.has(t)||OZt(t),V8.get(t)}})),jZt,MZt,NZt=O((()=>{_Zt(),DZt(),AZt(),jZt=(e,t)=>{let n=U8(e?.lookup?.path);if(!n)return!0;let r=e?.lookup?.objclass||TZt(n)||kZt(n);if(!r)return!1;let i=EZt(r);return t?.(i??r)??!1},MZt=(e,n)=>{let r=gZt();return{hasReadAccess:(0,t.computed)(()=>jZt((0,t.toValue)(e),n??r()))}}})),W8,PZt=O((()=>{W8={en:`en`,uk:`uk`,ru:`ru`,es:`es`,kz:`kz`,vi:`vi`,pl:`pl`,ro:`ro`,uz:`uz`}})),FZt=k((e=>{var t=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0}),e.$listeners=Symbol(`EventEmitter.listeners`),e.$addListener=Symbol(`EventEmitter.addListener`),e.EventEmitter=function(){function i(){this[e.$listeners]={}}return i.count=function(t,n){var r=0,i=t[e.$listeners][n];if(i)for(var a=i.first;++r&&a.next;)a=a.next;return r},i.has=function(t,n){if(n==`*`){for(n in t[e.$listeners])return!0;return!1}return t[e.$listeners][n]!==void 0},i.keys=function(t){return Object.keys(t[e.$listeners])},i.unhandle=function(t,n,r,i){return t.on(n,function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(!t[e.$listeners][n].first.next)return r.apply(void 0,i)},i)},i.prototype.on=function(t,n,r){return typeof n==`function`?this[e.$addListener](t,n,r):this[e.$addListener](t,void 0,n)},i.prototype.one=function(t,n,r){return typeof n==`function`?this[e.$addListener](t,n,r,!0):this[e.$addListener](t,void 0,n,!0)},i.prototype.off=function(t,n){if(t==`*`){var i=this[e.$listeners];if(this[e.$listeners]={},this._onEventUnhandled)for(var a in i)this._onEventUnhandled(a);return this}if(typeof n==`function`){var o=this[e.$listeners][t];if(!o||r(o,function(e){return e.fn==n}))return this}return delete this[e.$listeners][t],this._onEventUnhandled&&this._onEventUnhandled(t),this},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r,i=this.listeners(e);;){var a=i.next(),o=a.value;if(a.done)return r;var s=o.apply(void 0,t);s!==void 0&&(r=s)}},i.prototype.listeners=function(n){var r,i,a;return t(this,function(t){switch(t.label){case 0:if(r=this[e.$listeners][n],!r)return[2];i=null,a=r.first,t.label=1;case 1:return[4,a.fn];case 2:if(t.sent(),a.once)if(i)i.next=a.next;else if(a.next)return r.first=a=a.next,[3,1];else return delete this[e.$listeners][n],this._onEventUnhandled&&this._onEventUnhandled(n),[2];else i=a;return a.next?(a=a.next,[3,1]):(r.last=a,[2]);case 3:return[2]}})},i.prototype[e.$addListener]=function(t,r,i,a){var o=this;if(a===void 0&&(a=!1),typeof t==`object`){var s,c=function(){if(typeof t[s]==`function`){var r=t[s],c=n(l[e.$listeners],s,{fn:r,once:a,next:null});i&&i.push({dispose:function(){return o.off(s,r)}}),r==c.first.fn&&l._onEventHandled&&l._onEventHandled(s)}},l=this;for(s in t)c();return this}if(typeof r==`function`){var u=t,d=n(this[e.$listeners],u,{fn:r,once:a,next:null});i&&i.push({dispose:function(){return o.off(u,r)}}),r==d.first.fn&&this._onEventHandled&&this._onEventHandled(t)}return r},i.ev=e.$listeners,i}();function n(e,t,n){var r=e[t];return r?(r.last.next=n,r.last=n):e[t]=r={first:n,last:n},r}function r(e,t){for(var n=null,r=e.first;;)if(t(r))if(n)if(n.next=r.next,r.next)r=r.next;else break;else if(r.next)e.first=r=r.next;else return null;else if(n=r,r.next)r=r.next;else break;return e.last=n,e}})),IZt=A({bugs:()=>t5,contributors:()=>X8,default:()=>LZt,dependencies:()=>i5,description:()=>q8,devDependencies:()=>a5,files:()=>n5,homepage:()=>Y8,keywords:()=>$8,license:()=>`MIT`,main:()=>Q8,name:()=>G8,repository:()=>e5,scripts:()=>r5,title:()=>K8,types:()=>Z8,version:()=>J8}),G8,K8,q8,J8,Y8,X8,Z8,Q8,$8,e5,t5,n5,r5,i5,a5,LZt,RZt=O((()=>{G8=`jssip`,K8=`JsSIP`,q8=`The Javascript SIP library`,J8=`3.13.8`,Y8=`https://jssip.net`,X8=[`José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan)`,`Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)`],Z8=`lib/JsSIP.d.ts`,Q8=`lib/JsSIP.js`,$8=[`sip`,`websocket`,`webrtc`,`node`,`browser`,`library`],e5={type:`git`,url:`https://github.com/versatica/JsSIP.git`},t5={url:`https://github.com/versatica/JsSIP/issues`},n5=[`LICENSE`,`README.md`,`npm-scripts.mjs`,`lib`],r5={lint:`node npm-scripts.mjs lint`,"lint:fix":`node npm-scripts.mjs lint:fix`,test:`node npm-scripts.mjs test`,coverage:`node npm-scripts.mjs coverage`,build:`node npm-scripts.mjs build`,"typescript:build":`node npm-scripts.mjs typescript:build`,release:`node npm-scripts.mjs release`,docs:`node npm-scripts.mjs docs`,"docs:watch":`node npm-scripts.mjs docs:watch`,"docs:check":`node npm-scripts.mjs docs:check`},i5={debug:`^4.3.1`,events:`^3.3.0`,"sdp-transform":`^2.14.1`},a5={"@eslint/eslintrc":`^3.3.3`,"@eslint/js":`^9.39.2`,"@types/debug":`^4.1.12`,"@types/events":`^3.0.3`,"@types/jest":`^30.0.0`,"@types/node":`^25.0.10`,cpx:`^1.5.0`,esbuild:`^0.27.2`,eslint:`^9.39.1`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-jest":`^29.12.1`,"eslint-plugin-prettier":`^5.5.5`,globals:`^17.0.0`,jest:`^30.2.0`,"open-cli":`^8.0.0`,pegjs:`^0.7.0`,prettier:`^3.8.1`,"ts-jest":`^29.4.6`,typedoc:`^0.28.16`,typescript:`^5.9.3`,"typescript-eslint":`^8.53.1`},LZt={name:G8,title:K8,description:q8,version:J8,homepage:Y8,contributors:X8,types:Z8,main:Q8,keywords:$8,license:`MIT`,repository:e5,bugs:t5,files:n5,scripts:r5,dependencies:i5,devDependencies:a5}})),o5=k(((e,t)=>{var n=(RZt(),be(IZt).default);t.exports={USER_AGENT:`${n.title} ${n.version}`,SIP:`sip`,SIPS:`sips`,causes:{CONNECTION_ERROR:`Connection Error`,REQUEST_TIMEOUT:`Request Timeout`,SIP_FAILURE_CODE:`SIP Failure Code`,INTERNAL_ERROR:`Internal Error`,BUSY:`Busy`,REJECTED:`Rejected`,REDIRECTED:`Redirected`,UNAVAILABLE:`Unavailable`,NOT_FOUND:`Not Found`,ADDRESS_INCOMPLETE:`Address Incomplete`,INCOMPATIBLE_SDP:`Incompatible SDP`,MISSING_SDP:`Missing SDP`,AUTHENTICATION_ERROR:`Authentication Error`,BYE:`Terminated`,WEBRTC_ERROR:`WebRTC Error`,CANCELED:`Canceled`,NO_ANSWER:`No Answer`,EXPIRES:`Expires`,NO_ACK:`No ACK`,DIALOG_ERROR:`Dialog Error`,USER_DENIED_MEDIA_ACCESS:`User Denied Media Access`,BAD_MEDIA_DESCRIPTION:`Bad Media Description`,RTP_TIMEOUT:`RTP Timeout`},SIP_ERROR_CAUSES:{REDIRECTED:[300,301,302,305,380],BUSY:[486,600],REJECTED:[403,603],NOT_FOUND:[404,604],UNAVAILABLE:[480,410,408,430],ADDRESS_INCOMPLETE:[484,424],INCOMPATIBLE_SDP:[488,606],AUTHENTICATION_ERROR:[401,407]},ACK:`ACK`,BYE:`BYE`,CANCEL:`CANCEL`,INFO:`INFO`,INVITE:`INVITE`,MESSAGE:`MESSAGE`,NOTIFY:`NOTIFY`,OPTIONS:`OPTIONS`,REGISTER:`REGISTER`,REFER:`REFER`,UPDATE:`UPDATE`,SUBSCRIBE:`SUBSCRIBE`,DTMF_TRANSPORT:{INFO:`INFO`,RFC2833:`RFC2833`},REASON_PHRASE:{100:`Trying`,180:`Ringing`,181:`Call Is Being Forwarded`,182:`Queued`,183:`Session Progress`,199:`Early Dialog Terminated`,200:`OK`,202:`Accepted`,204:`No Notification`,300:`Multiple Choices`,301:`Moved Permanently`,302:`Moved Temporarily`,305:`Use Proxy`,380:`Alternative Service`,400:`Bad Request`,401:`Unauthorized`,402:`Payment Required`,403:`Forbidden`,404:`Not Found`,405:`Method Not Allowed`,406:`Not Acceptable`,407:`Proxy Authentication Required`,408:`Request Timeout`,410:`Gone`,412:`Conditional Request Failed`,413:`Request Entity Too Large`,414:`Request-URI Too Long`,415:`Unsupported Media Type`,416:`Unsupported URI Scheme`,417:`Unknown Resource-Priority`,420:`Bad Extension`,421:`Extension Required`,422:`Session Interval Too Small`,423:`Interval Too Brief`,424:`Bad Location Information`,428:`Use Identity Header`,429:`Provide Referrer Identity`,430:`Flow Failed`,433:`Anonymity Disallowed`,436:`Bad Identity-Info`,437:`Unsupported Certificate`,438:`Invalid Identity Header`,439:`First Hop Lacks Outbound Support`,440:`Max-Breadth Exceeded`,469:`Bad Info Package`,470:`Consent Needed`,478:`Unresolvable Destination`,480:`Temporarily Unavailable`,481:`Call/Transaction Does Not Exist`,482:`Loop Detected`,483:`Too Many Hops`,484:`Address Incomplete`,485:`Ambiguous`,486:`Busy Here`,487:`Request Terminated`,488:`Not Acceptable Here`,489:`Bad Event`,491:`Request Pending`,493:`Undecipherable`,494:`Security Agreement Required`,500:`JsSIP Internal Error`,501:`Not Implemented`,502:`Bad Gateway`,503:`Service Unavailable`,504:`Server Time-out`,505:`Version Not Supported`,513:`Message Too Large`,580:`Precondition Failure`,600:`Busy Everywhere`,603:`Decline`,604:`Does Not Exist Anywhere`,606:`Not Acceptable`},ALLOWED_METHODS:`INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY,SUBSCRIBE`,ACCEPTED_BODY_TYPES:`application/sdp, application/dtmf-relay`,MAX_FORWARDS:69,SESSION_EXPIRES:90,MIN_SESSION_EXPIRES:60,CONNECTION_RECOVERY_MAX_INTERVAL:30,CONNECTION_RECOVERY_MIN_INTERVAL:2}})),s5=k(((e,t)=>{t.exports={ConfigurationError:class extends Error{constructor(e,t){super(),this.code=1,this.name=`CONFIGURATION_ERROR`,this.parameter=e,this.value=t,this.message=this.value?`Invalid value ${JSON.stringify(this.value)} for parameter "${this.parameter}"`:`Missing parameter: ${this.parameter}`}},InvalidStateError:class extends Error{constructor(e){super(),this.code=2,this.name=`INVALID_STATE_ERROR`,this.status=e,this.message=`Invalid status: ${e}`}},NotSupportedError:class extends Error{constructor(e){super(),this.code=3,this.name=`NOT_SUPPORTED_ERROR`,this.message=e}},NotReadyError:class extends Error{constructor(e){super(),this.code=4,this.name=`NOT_READY_ERROR`,this.message=e}}}})),c5=k(((e,t)=>{var n=u5(),r=l5();t.exports=class e{static parse(e){if(e=r.parse(e,`Name_Addr_Header`),e!==-1)return e}constructor(e,t,r){if(!e||!(e instanceof n))throw TypeError(`missing or invalid "uri" parameter`);this._uri=e,this._parameters={},this.display_name=t;for(let e in r)Object.prototype.hasOwnProperty.call(r,e)&&this.setParam(e,r[e])}get uri(){return this._uri}get display_name(){return this._display_name}set display_name(e){this._display_name=e===0?`0`:e}setParam(e,t){e&&(this._parameters[e.toLowerCase()]=t==null?null:t.toString())}getParam(e){if(e)return this._parameters[e.toLowerCase()]}hasParam(e){if(e)return this._parameters.hasOwnProperty(e.toLowerCase())&&!0||!1}deleteParam(e){if(e=e.toLowerCase(),this._parameters.hasOwnProperty(e)){let t=this._parameters[e];return delete this._parameters[e],t}}clearParams(){this._parameters={}}clone(){return new e(this._uri.clone(),this._display_name,JSON.parse(JSON.stringify(this._parameters)))}_quote(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}toString(){let e=this._display_name?`"${this._quote(this._display_name)}" `:``;e+=`<${this._uri.toString()}>`;for(let t in this._parameters)Object.prototype.hasOwnProperty.call(this._parameters,t)&&(e+=`;${t}`,this._parameters[t]!==null&&(e+=`=${this._parameters[t]}`));return e}}})),l5=k(((e,t)=>{t.exports=(function(){function e(e){return`"`+e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\x08/g,`\\b`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\f/g,`\\f`).replace(/\r/g,`\\r`).replace(/[\x00-\x07\x0B\x0E-\x1F\x80-\uFFFF]/g,escape)+`"`}var t={parse:function(t,n){var r={CRLF:l,DIGIT:u,ALPHA:d,HEXDIG:f,WSP:p,OCTET:m,DQUOTE:h,SP:g,HTAB:_,alphanum:v,reserved:y,unreserved:b,mark:x,escaped:S,LWS:C,SWS:w,HCOLON:T,TEXT_UTF8_TRIM:ee,TEXT_UTF8char:te,UTF8_NONASCII:ne,UTF8_CONT:re,LHEX:ie,token:E,token_nodot:ae,separators:oe,word:se,STAR:ce,SLASH:le,EQUAL:D,LPAREN:ue,RPAREN:de,RAQUOT:fe,LAQUOT:pe,COMMA:me,SEMI:he,COLON:ge,LDQUOT:O,RDQUOT:k,comment:A,ctext:_e,quoted_string:ve,quoted_string_clean:ye,qdtext:be,quoted_pair:xe,SIP_URI_noparams:Se,SIP_URI:Ce,uri_scheme:we,uri_scheme_sips:Te,uri_scheme_sip:Ee,userinfo:De,user:Oe,user_unreserved:ke,password:Ae,hostport:je,host:Me,hostname:Ne,domainlabel:Pe,toplabel:Fe,IPv6reference:Ie,IPv6address:Le,h16:j,ls32:Re,IPv4address:ze,dec_octet:Be,port:Ve,uri_parameters:He,uri_parameter:Ue,transport_param:We,user_param:Ge,method_param:Ke,ttl_param:qe,maddr_param:Je,lr_param:Ye,other_param:Xe,pname:Ze,pvalue:Qe,paramchar:$e,param_unreserved:et,headers:tt,header:nt,hname:rt,hvalue:it,hnv_unreserved:at,Request_Response:ot,Request_Line:st,Request_URI:ct,absoluteURI:lt,hier_part:ut,net_path:dt,abs_path:ft,opaque_part:pt,uric:mt,uric_no_slash:M,path_segments:ht,segment:gt,param:_t,pchar:vt,scheme:yt,authority:bt,srvr:xt,reg_name:St,query:Ct,SIP_Version:wt,INVITEm:Tt,ACKm:Et,OPTIONSm:Dt,BYEm:Ot,CANCELm:kt,REGISTERm:At,SUBSCRIBEm:jt,NOTIFYm:Mt,REFERm:Nt,Method:Pt,Status_Line:Ft,Status_Code:It,extension_code:Lt,Reason_Phrase:Rt,Allow_Events:zt,Call_ID:Bt,Contact:Vt,contact_param:Ht,name_addr:Ut,display_name:Wt,contact_params:Gt,c_p_q:Kt,c_p_expires:qt,delta_seconds:Jt,qvalue:Yt,generic_param:Xt,gen_value:Zt,Content_Disposition:Qt,disp_type:$t,disp_param:en,handling_param:tn,Content_Encoding:nn,Content_Length:rn,Content_Type:an,media_type:on,m_type:sn,discrete_type:cn,composite_type:ln,extension_token:un,x_token:dn,m_subtype:fn,m_parameter:pn,m_value:mn,CSeq:hn,CSeq_value:gn,Expires:_n,Event:vn,event_type:yn,From:bn,from_param:xn,tag_param:Sn,Max_Forwards:Cn,Min_Expires:wn,Name_Addr_Header:Tn,Proxy_Authenticate:En,challenge:Dn,other_challenge:On,auth_param:kn,digest_cln:An,realm:jn,realm_value:Mn,domain:Nn,URI:Pn,nonce:N,nonce_value:Fn,opaque:In,stale:Ln,algorithm:Rn,qop_options:zn,qop_value:Bn,Proxy_Require:Vn,Record_Route:Hn,rec_route:Un,Reason:Wn,reason_param:Gn,reason_cause:Kn,Require:qn,Route:Jn,route_param:Yn,Subscription_State:Xn,substate_value:Zn,subexp_params:Qn,event_reason_value:$n,Subject:er,Supported:tr,To:nr,to_param:rr,Via:ir,via_param:ar,via_params:or,via_ttl:sr,via_maddr:cr,via_received:lr,via_branch:ur,response_port:dr,rport:fr,sent_protocol:pr,protocol_name:mr,transport:hr,sent_by:gr,via_host:_r,via_port:vr,ttl:yr,WWW_Authenticate:br,Session_Expires:xr,s_e_expires:Sr,s_e_params:Cr,s_e_refresher:P,extension_header:wr,header_value:Tr,message_body:Er,uuid_URI:Dr,uuid:Or,hex4:kr,hex8:Ar,hex12:jr,Refer_To:Mr,Replaces:Nr,call_id:Pr,replaces_param:Fr,to_tag:Ir,from_tag:Lr,early_flag:Rr};if(n!==void 0){if(r[n]===void 0)throw Error(`Invalid rule name: `+e(n)+`.`)}else n=`CRLF`;var i=0,a=0,o=0,s=[];function c(e){i<o||(i>o&&(o=i,s=[]),s.push(e))}function l(){var e;return t.substr(i,2)===`\r
4813
4813
  `?(e=`\r
4814
4814
  `,i+=2):(e=null,a===0&&c(`"\\r\\n"`)),e}function u(){var e;return/^[0-9]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[0-9]`)),e}function d(){var e;return/^[a-zA-Z]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[a-zA-Z]`)),e}function f(){var e;return/^[0-9a-fA-F]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[0-9a-fA-F]`)),e}function p(){var e=g();return e===null&&(e=_()),e}function m(){var e;return/^[\0-\xFF]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[\\0-\\xFF]`)),e}function h(){var e;return/^["]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`["]`)),e}function g(){var e;return t.charCodeAt(i)===32?(e=` `,i++):(e=null,a===0&&c(`" "`)),e}function _(){var e;return t.charCodeAt(i)===9?(e=` `,i++):(e=null,a===0&&c(`"\\t"`)),e}function v(){var e;return/^[a-zA-Z0-9]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[a-zA-Z0-9]`)),e}function y(){var e;return t.charCodeAt(i)===59?(e=`;`,i++):(e=null,a===0&&c(`";"`)),e===null&&(t.charCodeAt(i)===47?(e=`/`,i++):(e=null,a===0&&c(`"/"`)),e===null&&(t.charCodeAt(i)===63?(e=`?`,i++):(e=null,a===0&&c(`"?"`)),e===null&&(t.charCodeAt(i)===58?(e=`:`,i++):(e=null,a===0&&c(`":"`)),e===null&&(t.charCodeAt(i)===64?(e=`@`,i++):(e=null,a===0&&c(`"@"`)),e===null&&(t.charCodeAt(i)===38?(e=`&`,i++):(e=null,a===0&&c(`"&"`)),e===null&&(t.charCodeAt(i)===61?(e=`=`,i++):(e=null,a===0&&c(`"="`)),e===null&&(t.charCodeAt(i)===43?(e=`+`,i++):(e=null,a===0&&c(`"+"`)),e===null&&(t.charCodeAt(i)===36?(e=`$`,i++):(e=null,a===0&&c(`"$"`)),e===null&&(t.charCodeAt(i)===44?(e=`,`,i++):(e=null,a===0&&c(`","`))))))))))),e}function b(){var e=v();return e===null&&(e=x()),e}function x(){var e;return t.charCodeAt(i)===45?(e=`-`,i++):(e=null,a===0&&c(`"-"`)),e===null&&(t.charCodeAt(i)===95?(e=`_`,i++):(e=null,a===0&&c(`"_"`)),e===null&&(t.charCodeAt(i)===46?(e=`.`,i++):(e=null,a===0&&c(`"."`)),e===null&&(t.charCodeAt(i)===33?(e=`!`,i++):(e=null,a===0&&c(`"!"`)),e===null&&(t.charCodeAt(i)===126?(e=`~`,i++):(e=null,a===0&&c(`"~"`)),e===null&&(t.charCodeAt(i)===42?(e=`*`,i++):(e=null,a===0&&c(`"*"`)),e===null&&(t.charCodeAt(i)===39?(e=`'`,i++):(e=null,a===0&&c(`"'"`)),e===null&&(t.charCodeAt(i)===40?(e=`(`,i++):(e=null,a===0&&c(`"("`)),e===null&&(t.charCodeAt(i)===41?(e=`)`,i++):(e=null,a===0&&c(`")"`)))))))))),e}function S(){var e,n,r,o=i,s=i;return t.charCodeAt(i)===37?(e=`%`,i++):(e=null,a===0&&c(`"%"`)),e===null?(e=null,i=s):(n=f(),n===null?(e=null,i=s):(r=f(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){return t.join(``)})(o,e)),e===null&&(i=o),e}function C(){var e,t,n,r=i,a=i,o=i;for(e=[],t=p();t!==null;)e.push(t),t=p();if(e===null?(e=null,i=o):(t=l(),t===null?(e=null,i=o):e=[e,t]),e=e===null?``:e,e!==null){if(n=p(),n!==null)for(t=[];n!==null;)t.push(n),n=p();else t=null;t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e!==null&&(e=(function(e){return` `})(r)),e===null&&(i=r),e}function w(){var e=C();return e=e===null?``:e,e}function T(){var e,n,r,o=i,s=i;for(e=[],n=g(),n===null&&(n=_());n!==null;)e.push(n),n=g(),n===null&&(n=_());return e===null?(e=null,i=s):(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(e=null,i=s):(r=w(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return`:`})(o)),e===null&&(i=o),e}function ee(){var e,n,r,a,o=i,s=i,c;if(n=te(),n!==null)for(e=[];n!==null;)e.push(n),n=te();else e=null;if(e!==null){for(n=[],c=i,r=[],a=C();a!==null;)r.push(a),a=C();for(r===null?(r=null,i=c):(a=te(),a===null?(r=null,i=c):r=[r,a]);r!==null;){for(n.push(r),c=i,r=[],a=C();a!==null;)r.push(a),a=C();r===null?(r=null,i=c):(a=te(),a===null?(r=null,i=c):r=[r,a])}n===null?(e=null,i=s):e=[e,n]}else e=null,i=s;return e!==null&&(e=(function(e){return t.substring(i,e)})(o)),e===null&&(i=o),e}function te(){var e;return/^[!-~]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[!-~]`)),e===null&&(e=ne()),e}function ne(){var e;return/^[\x80-\uFFFF]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[\\x80-\\uFFFF]`)),e}function re(){var e;return/^[\x80-\xBF]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[\\x80-\\xBF]`)),e}function ie(){var e=u();return e===null&&(/^[a-f]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[a-f]`))),e}function E(){var e,n,r=i;if(n=v(),n===null&&(t.charCodeAt(i)===45?(n=`-`,i++):(n=null,a===0&&c(`"-"`)),n===null&&(t.charCodeAt(i)===46?(n=`.`,i++):(n=null,a===0&&c(`"."`)),n===null&&(t.charCodeAt(i)===33?(n=`!`,i++):(n=null,a===0&&c(`"!"`)),n===null&&(t.charCodeAt(i)===37?(n=`%`,i++):(n=null,a===0&&c(`"%"`)),n===null&&(t.charCodeAt(i)===42?(n=`*`,i++):(n=null,a===0&&c(`"*"`)),n===null&&(t.charCodeAt(i)===95?(n=`_`,i++):(n=null,a===0&&c(`"_"`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`)),n===null&&(t.charCodeAt(i)===96?(n="`",i++):(n=null,a===0&&c('"`"')),n===null&&(t.charCodeAt(i)===39?(n=`'`,i++):(n=null,a===0&&c(`"'"`)),n===null&&(t.charCodeAt(i)===126?(n=`~`,i++):(n=null,a===0&&c(`"~"`)))))))))))),n!==null)for(e=[];n!==null;)e.push(n),n=v(),n===null&&(t.charCodeAt(i)===45?(n=`-`,i++):(n=null,a===0&&c(`"-"`)),n===null&&(t.charCodeAt(i)===46?(n=`.`,i++):(n=null,a===0&&c(`"."`)),n===null&&(t.charCodeAt(i)===33?(n=`!`,i++):(n=null,a===0&&c(`"!"`)),n===null&&(t.charCodeAt(i)===37?(n=`%`,i++):(n=null,a===0&&c(`"%"`)),n===null&&(t.charCodeAt(i)===42?(n=`*`,i++):(n=null,a===0&&c(`"*"`)),n===null&&(t.charCodeAt(i)===95?(n=`_`,i++):(n=null,a===0&&c(`"_"`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`)),n===null&&(t.charCodeAt(i)===96?(n="`",i++):(n=null,a===0&&c('"`"')),n===null&&(t.charCodeAt(i)===39?(n=`'`,i++):(n=null,a===0&&c(`"'"`)),n===null&&(t.charCodeAt(i)===126?(n=`~`,i++):(n=null,a===0&&c(`"~"`))))))))))));else e=null;return e!==null&&(e=(function(e){return t.substring(i,e)})(r)),e===null&&(i=r),e}function ae(){var e,n,r=i;if(n=v(),n===null&&(t.charCodeAt(i)===45?(n=`-`,i++):(n=null,a===0&&c(`"-"`)),n===null&&(t.charCodeAt(i)===33?(n=`!`,i++):(n=null,a===0&&c(`"!"`)),n===null&&(t.charCodeAt(i)===37?(n=`%`,i++):(n=null,a===0&&c(`"%"`)),n===null&&(t.charCodeAt(i)===42?(n=`*`,i++):(n=null,a===0&&c(`"*"`)),n===null&&(t.charCodeAt(i)===95?(n=`_`,i++):(n=null,a===0&&c(`"_"`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`)),n===null&&(t.charCodeAt(i)===96?(n="`",i++):(n=null,a===0&&c('"`"')),n===null&&(t.charCodeAt(i)===39?(n=`'`,i++):(n=null,a===0&&c(`"'"`)),n===null&&(t.charCodeAt(i)===126?(n=`~`,i++):(n=null,a===0&&c(`"~"`))))))))))),n!==null)for(e=[];n!==null;)e.push(n),n=v(),n===null&&(t.charCodeAt(i)===45?(n=`-`,i++):(n=null,a===0&&c(`"-"`)),n===null&&(t.charCodeAt(i)===33?(n=`!`,i++):(n=null,a===0&&c(`"!"`)),n===null&&(t.charCodeAt(i)===37?(n=`%`,i++):(n=null,a===0&&c(`"%"`)),n===null&&(t.charCodeAt(i)===42?(n=`*`,i++):(n=null,a===0&&c(`"*"`)),n===null&&(t.charCodeAt(i)===95?(n=`_`,i++):(n=null,a===0&&c(`"_"`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`)),n===null&&(t.charCodeAt(i)===96?(n="`",i++):(n=null,a===0&&c('"`"')),n===null&&(t.charCodeAt(i)===39?(n=`'`,i++):(n=null,a===0&&c(`"'"`)),n===null&&(t.charCodeAt(i)===126?(n=`~`,i++):(n=null,a===0&&c(`"~"`)))))))))));else e=null;return e!==null&&(e=(function(e){return t.substring(i,e)})(r)),e===null&&(i=r),e}function oe(){var e;return t.charCodeAt(i)===40?(e=`(`,i++):(e=null,a===0&&c(`"("`)),e===null&&(t.charCodeAt(i)===41?(e=`)`,i++):(e=null,a===0&&c(`")"`)),e===null&&(t.charCodeAt(i)===60?(e=`<`,i++):(e=null,a===0&&c(`"<"`)),e===null&&(t.charCodeAt(i)===62?(e=`>`,i++):(e=null,a===0&&c(`">"`)),e===null&&(t.charCodeAt(i)===64?(e=`@`,i++):(e=null,a===0&&c(`"@"`)),e===null&&(t.charCodeAt(i)===44?(e=`,`,i++):(e=null,a===0&&c(`","`)),e===null&&(t.charCodeAt(i)===59?(e=`;`,i++):(e=null,a===0&&c(`";"`)),e===null&&(t.charCodeAt(i)===58?(e=`:`,i++):(e=null,a===0&&c(`":"`)),e===null&&(t.charCodeAt(i)===92?(e=`\\`,i++):(e=null,a===0&&c(`"\\\\"`)),e===null&&(e=h(),e===null&&(t.charCodeAt(i)===47?(e=`/`,i++):(e=null,a===0&&c(`"/"`)),e===null&&(t.charCodeAt(i)===91?(e=`[`,i++):(e=null,a===0&&c(`"["`)),e===null&&(t.charCodeAt(i)===93?(e=`]`,i++):(e=null,a===0&&c(`"]"`)),e===null&&(t.charCodeAt(i)===63?(e=`?`,i++):(e=null,a===0&&c(`"?"`)),e===null&&(t.charCodeAt(i)===61?(e=`=`,i++):(e=null,a===0&&c(`"="`)),e===null&&(t.charCodeAt(i)===123?(e=`{`,i++):(e=null,a===0&&c(`"{"`)),e===null&&(t.charCodeAt(i)===125?(e=`}`,i++):(e=null,a===0&&c(`"}"`)),e===null&&(e=g(),e===null&&(e=_())))))))))))))))))),e}function se(){var e,n,r=i;if(n=v(),n===null&&(t.charCodeAt(i)===45?(n=`-`,i++):(n=null,a===0&&c(`"-"`)),n===null&&(t.charCodeAt(i)===46?(n=`.`,i++):(n=null,a===0&&c(`"."`)),n===null&&(t.charCodeAt(i)===33?(n=`!`,i++):(n=null,a===0&&c(`"!"`)),n===null&&(t.charCodeAt(i)===37?(n=`%`,i++):(n=null,a===0&&c(`"%"`)),n===null&&(t.charCodeAt(i)===42?(n=`*`,i++):(n=null,a===0&&c(`"*"`)),n===null&&(t.charCodeAt(i)===95?(n=`_`,i++):(n=null,a===0&&c(`"_"`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`)),n===null&&(t.charCodeAt(i)===96?(n="`",i++):(n=null,a===0&&c('"`"')),n===null&&(t.charCodeAt(i)===39?(n=`'`,i++):(n=null,a===0&&c(`"'"`)),n===null&&(t.charCodeAt(i)===126?(n=`~`,i++):(n=null,a===0&&c(`"~"`)),n===null&&(t.charCodeAt(i)===40?(n=`(`,i++):(n=null,a===0&&c(`"("`)),n===null&&(t.charCodeAt(i)===41?(n=`)`,i++):(n=null,a===0&&c(`")"`)),n===null&&(t.charCodeAt(i)===60?(n=`<`,i++):(n=null,a===0&&c(`"<"`)),n===null&&(t.charCodeAt(i)===62?(n=`>`,i++):(n=null,a===0&&c(`">"`)),n===null&&(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null&&(t.charCodeAt(i)===92?(n=`\\`,i++):(n=null,a===0&&c(`"\\\\"`)),n===null&&(n=h(),n===null&&(t.charCodeAt(i)===47?(n=`/`,i++):(n=null,a===0&&c(`"/"`)),n===null&&(t.charCodeAt(i)===91?(n=`[`,i++):(n=null,a===0&&c(`"["`)),n===null&&(t.charCodeAt(i)===93?(n=`]`,i++):(n=null,a===0&&c(`"]"`)),n===null&&(t.charCodeAt(i)===63?(n=`?`,i++):(n=null,a===0&&c(`"?"`)),n===null&&(t.charCodeAt(i)===123?(n=`{`,i++):(n=null,a===0&&c(`"{"`)),n===null&&(t.charCodeAt(i)===125?(n=`}`,i++):(n=null,a===0&&c(`"}"`))))))))))))))))))))))))),n!==null)for(e=[];n!==null;)e.push(n),n=v(),n===null&&(t.charCodeAt(i)===45?(n=`-`,i++):(n=null,a===0&&c(`"-"`)),n===null&&(t.charCodeAt(i)===46?(n=`.`,i++):(n=null,a===0&&c(`"."`)),n===null&&(t.charCodeAt(i)===33?(n=`!`,i++):(n=null,a===0&&c(`"!"`)),n===null&&(t.charCodeAt(i)===37?(n=`%`,i++):(n=null,a===0&&c(`"%"`)),n===null&&(t.charCodeAt(i)===42?(n=`*`,i++):(n=null,a===0&&c(`"*"`)),n===null&&(t.charCodeAt(i)===95?(n=`_`,i++):(n=null,a===0&&c(`"_"`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`)),n===null&&(t.charCodeAt(i)===96?(n="`",i++):(n=null,a===0&&c('"`"')),n===null&&(t.charCodeAt(i)===39?(n=`'`,i++):(n=null,a===0&&c(`"'"`)),n===null&&(t.charCodeAt(i)===126?(n=`~`,i++):(n=null,a===0&&c(`"~"`)),n===null&&(t.charCodeAt(i)===40?(n=`(`,i++):(n=null,a===0&&c(`"("`)),n===null&&(t.charCodeAt(i)===41?(n=`)`,i++):(n=null,a===0&&c(`")"`)),n===null&&(t.charCodeAt(i)===60?(n=`<`,i++):(n=null,a===0&&c(`"<"`)),n===null&&(t.charCodeAt(i)===62?(n=`>`,i++):(n=null,a===0&&c(`">"`)),n===null&&(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null&&(t.charCodeAt(i)===92?(n=`\\`,i++):(n=null,a===0&&c(`"\\\\"`)),n===null&&(n=h(),n===null&&(t.charCodeAt(i)===47?(n=`/`,i++):(n=null,a===0&&c(`"/"`)),n===null&&(t.charCodeAt(i)===91?(n=`[`,i++):(n=null,a===0&&c(`"["`)),n===null&&(t.charCodeAt(i)===93?(n=`]`,i++):(n=null,a===0&&c(`"]"`)),n===null&&(t.charCodeAt(i)===63?(n=`?`,i++):(n=null,a===0&&c(`"?"`)),n===null&&(t.charCodeAt(i)===123?(n=`{`,i++):(n=null,a===0&&c(`"{"`)),n===null&&(t.charCodeAt(i)===125?(n=`}`,i++):(n=null,a===0&&c(`"}"`)))))))))))))))))))))))));else e=null;return e!==null&&(e=(function(e){return t.substring(i,e)})(r)),e===null&&(i=r),e}function ce(){var e,n,r,o=i,s=i;return e=w(),e===null?(e=null,i=s):(t.charCodeAt(i)===42?(n=`*`,i++):(n=null,a===0&&c(`"*"`)),n===null?(e=null,i=s):(r=w(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return`*`})(o)),e===null&&(i=o),e}function le(){var e,n,r,o=i,s=i;return e=w(),e===null?(e=null,i=s):(t.charCodeAt(i)===47?(n=`/`,i++):(n=null,a===0&&c(`"/"`)),n===null?(e=null,i=s):(r=w(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return`/`})(o)),e===null&&(i=o),e}function D(){var e,n,r,o=i,s=i;return e=w(),e===null?(e=null,i=s):(t.charCodeAt(i)===61?(n=`=`,i++):(n=null,a===0&&c(`"="`)),n===null?(e=null,i=s):(r=w(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return`=`})(o)),e===null&&(i=o),e}function ue(){var e,n,r,o=i,s=i;return e=w(),e===null?(e=null,i=s):(t.charCodeAt(i)===40?(n=`(`,i++):(n=null,a===0&&c(`"("`)),n===null?(e=null,i=s):(r=w(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return`(`})(o)),e===null&&(i=o),e}function de(){var e,n,r,o=i,s=i;return e=w(),e===null?(e=null,i=s):(t.charCodeAt(i)===41?(n=`)`,i++):(n=null,a===0&&c(`")"`)),n===null?(e=null,i=s):(r=w(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return`)`})(o)),e===null&&(i=o),e}function fe(){var e,n,r=i,o=i;return t.charCodeAt(i)===62?(e=`>`,i++):(e=null,a===0&&c(`">"`)),e===null?(e=null,i=o):(n=w(),n===null?(e=null,i=o):e=[e,n]),e!==null&&(e=(function(e){return`>`})(r)),e===null&&(i=r),e}function pe(){var e,n,r=i,o=i;return e=w(),e===null?(e=null,i=o):(t.charCodeAt(i)===60?(n=`<`,i++):(n=null,a===0&&c(`"<"`)),n===null?(e=null,i=o):e=[e,n]),e!==null&&(e=(function(e){return`<`})(r)),e===null&&(i=r),e}function me(){var e,n,r,o=i,s=i;return e=w(),e===null?(e=null,i=s):(t.charCodeAt(i)===44?(n=`,`,i++):(n=null,a===0&&c(`","`)),n===null?(e=null,i=s):(r=w(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return`,`})(o)),e===null&&(i=o),e}function he(){var e,n,r,o=i,s=i;return e=w(),e===null?(e=null,i=s):(t.charCodeAt(i)===59?(n=`;`,i++):(n=null,a===0&&c(`";"`)),n===null?(e=null,i=s):(r=w(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return`;`})(o)),e===null&&(i=o),e}function ge(){var e,n,r,o=i,s=i;return e=w(),e===null?(e=null,i=s):(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(e=null,i=s):(r=w(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return`:`})(o)),e===null&&(i=o),e}function O(){var e,t,n=i,r=i;return e=w(),e===null?(e=null,i=r):(t=h(),t===null?(e=null,i=r):e=[e,t]),e!==null&&(e=(function(e){return`"`})(n)),e===null&&(i=n),e}function k(){var e,t,n=i,r=i;return e=h(),e===null?(e=null,i=r):(t=w(),t===null?(e=null,i=r):e=[e,t]),e!==null&&(e=(function(e){return`"`})(n)),e===null&&(i=n),e}function A(){var e,t,n,r=i;if(e=ue(),e!==null){for(t=[],n=_e(),n===null&&(n=xe(),n===null&&(n=A()));n!==null;)t.push(n),n=_e(),n===null&&(n=xe(),n===null&&(n=A()));t===null?(e=null,i=r):(n=de(),n===null?(e=null,i=r):e=[e,t,n])}else e=null,i=r;return e}function _e(){var e;return/^[!-']/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[!-']`)),e===null&&(/^[*-[]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[*-[]`)),e===null&&(/^[\]-~]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[\\]-~]`)),e===null&&(e=ne(),e===null&&(e=C())))),e}function ve(){var e,n,r,a,o=i,s=i;if(e=w(),e!==null)if(n=h(),n!==null){for(r=[],a=be(),a===null&&(a=xe());a!==null;)r.push(a),a=be(),a===null&&(a=xe());r===null?(e=null,i=s):(a=h(),a===null?(e=null,i=s):e=[e,n,r,a])}else e=null,i=s;else e=null,i=s;return e!==null&&(e=(function(e){return t.substring(i,e)})(o)),e===null&&(i=o),e}function ye(){var e,n,r,a,o=i,s=i;if(e=w(),e!==null)if(n=h(),n!==null){for(r=[],a=be(),a===null&&(a=xe());a!==null;)r.push(a),a=be(),a===null&&(a=xe());r===null?(e=null,i=s):(a=h(),a===null?(e=null,i=s):e=[e,n,r,a])}else e=null,i=s;else e=null,i=s;return e!==null&&(e=(function(e){var n=t.substring(i,e).trim();return n.substring(1,n.length-1).replace(/\\([\x00-\x09\x0b-\x0c\x0e-\x7f])/g,`$1`)})(o)),e===null&&(i=o),e}function be(){var e=C();return e===null&&(t.charCodeAt(i)===33?(e=`!`,i++):(e=null,a===0&&c(`"!"`)),e===null&&(/^[#-[]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[#-[]`)),e===null&&(/^[\]-~]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[\\]-~]`)),e===null&&(e=ne())))),e}function xe(){var e,n,r=i;return t.charCodeAt(i)===92?(e=`\\`,i++):(e=null,a===0&&c(`"\\\\"`)),e===null?(e=null,i=r):(/^[\0-\t]/.test(t.charAt(i))?(n=t.charAt(i),i++):(n=null,a===0&&c(`[\\0-\\t]`)),n===null&&(/^[\x0B-\f]/.test(t.charAt(i))?(n=t.charAt(i),i++):(n=null,a===0&&c(`[\\x0B-\\f]`)),n===null&&(/^[\x0E-]/.test(t.charAt(i))?(n=t.charAt(i),i++):(n=null,a===0&&c(`[\\x0E-]`)))),n===null?(e=null,i=r):e=[e,n]),e}function Se(){var e,n,r,o,s=i,l=i;return e=we(),e===null?(e=null,i=l):(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(e=null,i=l):(r=De(),r=r===null?``:r,r===null?(e=null,i=l):(o=je(),o===null?(e=null,i=l):e=[e,n,r,o]))),e!==null&&(e=(function(e){try{F.uri=new Vr(F.scheme,F.user,F.host,F.port),delete F.scheme,delete F.user,delete F.host,delete F.host_type,delete F.port}catch{F=-1}})(s)),e===null&&(i=s),e}function Ce(){var e,r,o,s,l,u,d=i,f=i;return e=we(),e===null?(e=null,i=f):(t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(e=null,i=f):(o=De(),o=o===null?``:o,o===null?(e=null,i=f):(s=je(),s===null?(e=null,i=f):(l=He(),l===null?(e=null,i=f):(u=tt(),u=u===null?``:u,u===null?(e=null,i=f):e=[e,r,o,s,l,u]))))),e!==null&&(e=(function(e){try{F.uri=new Vr(F.scheme,F.user,F.host,F.port,F.uri_params,F.uri_headers),delete F.scheme,delete F.user,delete F.host,delete F.host_type,delete F.port,delete F.uri_params,n===`SIP_URI`&&(F=F.uri)}catch{F=-1}})(d)),e===null&&(i=d),e}function we(){var e=Te();return e===null&&(e=Ee()),e}function Te(){var e,n=i;return t.substr(i,4).toLowerCase()===`sips`?(e=t.substr(i,4),i+=4):(e=null,a===0&&c(`"sips"`)),e!==null&&(e=(function(e,t){F.scheme=t.toLowerCase()})(n,e)),e===null&&(i=n),e}function Ee(){var e,n=i;return t.substr(i,3).toLowerCase()===`sip`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"sip"`)),e!==null&&(e=(function(e,t){F.scheme=t.toLowerCase()})(n,e)),e===null&&(i=n),e}function De(){var e,n,r,o=i,s=i,l;return e=Oe(),e===null?(e=null,i=s):(l=i,t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(n=null,i=l):(r=Ae(),r===null?(n=null,i=l):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=s):(t.charCodeAt(i)===64?(r=`@`,i++):(r=null,a===0&&c(`"@"`)),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){F.user=decodeURIComponent(t.substring(i-1,e))})(o)),e===null&&(i=o),e}function Oe(){var e,t=b();if(t===null&&(t=S(),t===null&&(t=ke())),t!==null)for(e=[];t!==null;)e.push(t),t=b(),t===null&&(t=S(),t===null&&(t=ke()));else e=null;return e}function ke(){var e;return t.charCodeAt(i)===38?(e=`&`,i++):(e=null,a===0&&c(`"&"`)),e===null&&(t.charCodeAt(i)===61?(e=`=`,i++):(e=null,a===0&&c(`"="`)),e===null&&(t.charCodeAt(i)===43?(e=`+`,i++):(e=null,a===0&&c(`"+"`)),e===null&&(t.charCodeAt(i)===36?(e=`$`,i++):(e=null,a===0&&c(`"$"`)),e===null&&(t.charCodeAt(i)===44?(e=`,`,i++):(e=null,a===0&&c(`","`)),e===null&&(t.charCodeAt(i)===59?(e=`;`,i++):(e=null,a===0&&c(`";"`)),e===null&&(t.charCodeAt(i)===63?(e=`?`,i++):(e=null,a===0&&c(`"?"`)),e===null&&(t.charCodeAt(i)===47?(e=`/`,i++):(e=null,a===0&&c(`"/"`))))))))),e}function Ae(){var e,n,r=i;for(e=[],n=b(),n===null&&(n=S(),n===null&&(t.charCodeAt(i)===38?(n=`&`,i++):(n=null,a===0&&c(`"&"`)),n===null&&(t.charCodeAt(i)===61?(n=`=`,i++):(n=null,a===0&&c(`"="`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`)),n===null&&(t.charCodeAt(i)===36?(n=`$`,i++):(n=null,a===0&&c(`"$"`)),n===null&&(t.charCodeAt(i)===44?(n=`,`,i++):(n=null,a===0&&c(`","`))))))));n!==null;)e.push(n),n=b(),n===null&&(n=S(),n===null&&(t.charCodeAt(i)===38?(n=`&`,i++):(n=null,a===0&&c(`"&"`)),n===null&&(t.charCodeAt(i)===61?(n=`=`,i++):(n=null,a===0&&c(`"="`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`)),n===null&&(t.charCodeAt(i)===36?(n=`$`,i++):(n=null,a===0&&c(`"$"`)),n===null&&(t.charCodeAt(i)===44?(n=`,`,i++):(n=null,a===0&&c(`","`))))))));return e!==null&&(e=(function(e){F.password=t.substring(i,e)})(r)),e===null&&(i=r),e}function je(){var e,n,r,o=i,s;return e=Me(),e===null?(e=null,i=o):(s=i,t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(n=null,i=s):(r=Ve(),r===null?(n=null,i=s):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=o):e=[e,n]),e}function Me(){var e,n=i;return e=Ne(),e===null&&(e=ze(),e===null&&(e=Ie())),e!==null&&(e=(function(e){return F.host=t.substring(i,e).toLowerCase(),F.host})(n)),e===null&&(i=n),e}function Ne(){var e,n,r,o=i,s=i,l;for(e=[],l=i,n=Pe(),n===null?(n=null,i=l):(t.charCodeAt(i)===46?(r=`.`,i++):(r=null,a===0&&c(`"."`)),r===null?(n=null,i=l):n=[n,r]);n!==null;)e.push(n),l=i,n=Pe(),n===null?(n=null,i=l):(t.charCodeAt(i)===46?(r=`.`,i++):(r=null,a===0&&c(`"."`)),r===null?(n=null,i=l):n=[n,r]);return e===null?(e=null,i=s):(n=Fe(),n===null?(e=null,i=s):(t.charCodeAt(i)===46?(r=`.`,i++):(r=null,a===0&&c(`"."`)),r=r===null?``:r,r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return F.host_type=`domain`,t.substring(i,e)})(o)),e===null&&(i=o),e}function Pe(){var e,n,r,o=i;if(e=v(),e!==null){for(n=[],r=v(),r===null&&(t.charCodeAt(i)===45?(r=`-`,i++):(r=null,a===0&&c(`"-"`)),r===null&&(t.charCodeAt(i)===95?(r=`_`,i++):(r=null,a===0&&c(`"_"`))));r!==null;)n.push(r),r=v(),r===null&&(t.charCodeAt(i)===45?(r=`-`,i++):(r=null,a===0&&c(`"-"`)),r===null&&(t.charCodeAt(i)===95?(r=`_`,i++):(r=null,a===0&&c(`"_"`))));n===null?(e=null,i=o):e=[e,n]}else e=null,i=o;return e}function Fe(){var e,n,r,o=i;if(e=d(),e!==null){for(n=[],r=v(),r===null&&(t.charCodeAt(i)===45?(r=`-`,i++):(r=null,a===0&&c(`"-"`)),r===null&&(t.charCodeAt(i)===95?(r=`_`,i++):(r=null,a===0&&c(`"_"`))));r!==null;)n.push(r),r=v(),r===null&&(t.charCodeAt(i)===45?(r=`-`,i++):(r=null,a===0&&c(`"-"`)),r===null&&(t.charCodeAt(i)===95?(r=`_`,i++):(r=null,a===0&&c(`"_"`))));n===null?(e=null,i=o):e=[e,n]}else e=null,i=o;return e}function Ie(){var e,n,r,o=i,s=i;return t.charCodeAt(i)===91?(e=`[`,i++):(e=null,a===0&&c(`"["`)),e===null?(e=null,i=s):(n=Le(),n===null?(e=null,i=s):(t.charCodeAt(i)===93?(r=`]`,i++):(r=null,a===0&&c(`"]"`)),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e){return F.host_type=`IPv6`,t.substring(i,e)})(o)),e===null&&(i=o),e}function Le(){var e,n,r,o,s,l,u,d,f,p,m,h,g,_=i,v=i,y;return e=j(),e===null?(e=null,i=v):(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(e=null,i=v):(r=j(),r===null?(e=null,i=v):(t.charCodeAt(i)===58?(o=`:`,i++):(o=null,a===0&&c(`":"`)),o===null?(e=null,i=v):(s=j(),s===null?(e=null,i=v):(t.charCodeAt(i)===58?(l=`:`,i++):(l=null,a===0&&c(`":"`)),l===null?(e=null,i=v):(u=j(),u===null?(e=null,i=v):(t.charCodeAt(i)===58?(d=`:`,i++):(d=null,a===0&&c(`":"`)),d===null?(e=null,i=v):(f=j(),f===null?(e=null,i=v):(t.charCodeAt(i)===58?(p=`:`,i++):(p=null,a===0&&c(`":"`)),p===null?(e=null,i=v):(m=j(),m===null?(e=null,i=v):(t.charCodeAt(i)===58?(h=`:`,i++):(h=null,a===0&&c(`":"`)),h===null?(e=null,i=v):(g=Re(),g===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d,f,p,m,h,g])))))))))))),e===null&&(v=i,t.substr(i,2)===`::`?(e=`::`,i+=2):(e=null,a===0&&c(`"::"`)),e===null?(e=null,i=v):(n=j(),n===null?(e=null,i=v):(t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(e=null,i=v):(o=j(),o===null?(e=null,i=v):(t.charCodeAt(i)===58?(s=`:`,i++):(s=null,a===0&&c(`":"`)),s===null?(e=null,i=v):(l=j(),l===null?(e=null,i=v):(t.charCodeAt(i)===58?(u=`:`,i++):(u=null,a===0&&c(`":"`)),u===null?(e=null,i=v):(d=j(),d===null?(e=null,i=v):(t.charCodeAt(i)===58?(f=`:`,i++):(f=null,a===0&&c(`":"`)),f===null?(e=null,i=v):(p=j(),p===null?(e=null,i=v):(t.charCodeAt(i)===58?(m=`:`,i++):(m=null,a===0&&c(`":"`)),m===null?(e=null,i=v):(h=Re(),h===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d,f,p,m,h]))))))))))),e===null&&(v=i,t.substr(i,2)===`::`?(e=`::`,i+=2):(e=null,a===0&&c(`"::"`)),e===null?(e=null,i=v):(n=j(),n===null?(e=null,i=v):(t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(e=null,i=v):(o=j(),o===null?(e=null,i=v):(t.charCodeAt(i)===58?(s=`:`,i++):(s=null,a===0&&c(`":"`)),s===null?(e=null,i=v):(l=j(),l===null?(e=null,i=v):(t.charCodeAt(i)===58?(u=`:`,i++):(u=null,a===0&&c(`":"`)),u===null?(e=null,i=v):(d=j(),d===null?(e=null,i=v):(t.charCodeAt(i)===58?(f=`:`,i++):(f=null,a===0&&c(`":"`)),f===null?(e=null,i=v):(p=Re(),p===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d,f,p]))))))))),e===null&&(v=i,t.substr(i,2)===`::`?(e=`::`,i+=2):(e=null,a===0&&c(`"::"`)),e===null?(e=null,i=v):(n=j(),n===null?(e=null,i=v):(t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(e=null,i=v):(o=j(),o===null?(e=null,i=v):(t.charCodeAt(i)===58?(s=`:`,i++):(s=null,a===0&&c(`":"`)),s===null?(e=null,i=v):(l=j(),l===null?(e=null,i=v):(t.charCodeAt(i)===58?(u=`:`,i++):(u=null,a===0&&c(`":"`)),u===null?(e=null,i=v):(d=Re(),d===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d]))))))),e===null&&(v=i,t.substr(i,2)===`::`?(e=`::`,i+=2):(e=null,a===0&&c(`"::"`)),e===null?(e=null,i=v):(n=j(),n===null?(e=null,i=v):(t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(e=null,i=v):(o=j(),o===null?(e=null,i=v):(t.charCodeAt(i)===58?(s=`:`,i++):(s=null,a===0&&c(`":"`)),s===null?(e=null,i=v):(l=Re(),l===null?(e=null,i=v):e=[e,n,r,o,s,l]))))),e===null&&(v=i,t.substr(i,2)===`::`?(e=`::`,i+=2):(e=null,a===0&&c(`"::"`)),e===null?(e=null,i=v):(n=j(),n===null?(e=null,i=v):(t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(e=null,i=v):(o=Re(),o===null?(e=null,i=v):e=[e,n,r,o]))),e===null&&(v=i,t.substr(i,2)===`::`?(e=`::`,i+=2):(e=null,a===0&&c(`"::"`)),e===null?(e=null,i=v):(n=Re(),n===null?(e=null,i=v):e=[e,n]),e===null&&(v=i,t.substr(i,2)===`::`?(e=`::`,i+=2):(e=null,a===0&&c(`"::"`)),e===null?(e=null,i=v):(n=j(),n===null?(e=null,i=v):e=[e,n]),e===null&&(v=i,e=j(),e===null?(e=null,i=v):(t.substr(i,2)===`::`?(n=`::`,i+=2):(n=null,a===0&&c(`"::"`)),n===null?(e=null,i=v):(r=j(),r===null?(e=null,i=v):(t.charCodeAt(i)===58?(o=`:`,i++):(o=null,a===0&&c(`":"`)),o===null?(e=null,i=v):(s=j(),s===null?(e=null,i=v):(t.charCodeAt(i)===58?(l=`:`,i++):(l=null,a===0&&c(`":"`)),l===null?(e=null,i=v):(u=j(),u===null?(e=null,i=v):(t.charCodeAt(i)===58?(d=`:`,i++):(d=null,a===0&&c(`":"`)),d===null?(e=null,i=v):(f=j(),f===null?(e=null,i=v):(t.charCodeAt(i)===58?(p=`:`,i++):(p=null,a===0&&c(`":"`)),p===null?(e=null,i=v):(m=Re(),m===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d,f,p,m])))))))))),e===null&&(v=i,e=j(),e===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(n=null,i=y):(r=j(),r===null?(n=null,i=y):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=v):(t.substr(i,2)===`::`?(r=`::`,i+=2):(r=null,a===0&&c(`"::"`)),r===null?(e=null,i=v):(o=j(),o===null?(e=null,i=v):(t.charCodeAt(i)===58?(s=`:`,i++):(s=null,a===0&&c(`":"`)),s===null?(e=null,i=v):(l=j(),l===null?(e=null,i=v):(t.charCodeAt(i)===58?(u=`:`,i++):(u=null,a===0&&c(`":"`)),u===null?(e=null,i=v):(d=j(),d===null?(e=null,i=v):(t.charCodeAt(i)===58?(f=`:`,i++):(f=null,a===0&&c(`":"`)),f===null?(e=null,i=v):(p=Re(),p===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d,f,p]))))))))),e===null&&(v=i,e=j(),e===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(n=null,i=y):(r=j(),r===null?(n=null,i=y):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(r=null,i=y):(o=j(),o===null?(r=null,i=y):r=[r,o]),r=r===null?``:r,r===null?(e=null,i=v):(t.substr(i,2)===`::`?(o=`::`,i+=2):(o=null,a===0&&c(`"::"`)),o===null?(e=null,i=v):(s=j(),s===null?(e=null,i=v):(t.charCodeAt(i)===58?(l=`:`,i++):(l=null,a===0&&c(`":"`)),l===null?(e=null,i=v):(u=j(),u===null?(e=null,i=v):(t.charCodeAt(i)===58?(d=`:`,i++):(d=null,a===0&&c(`":"`)),d===null?(e=null,i=v):(f=Re(),f===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d,f])))))))),e===null&&(v=i,e=j(),e===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(n=null,i=y):(r=j(),r===null?(n=null,i=y):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(r=null,i=y):(o=j(),o===null?(r=null,i=y):r=[r,o]),r=r===null?``:r,r===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(o=`:`,i++):(o=null,a===0&&c(`":"`)),o===null?(o=null,i=y):(s=j(),s===null?(o=null,i=y):o=[o,s]),o=o===null?``:o,o===null?(e=null,i=v):(t.substr(i,2)===`::`?(s=`::`,i+=2):(s=null,a===0&&c(`"::"`)),s===null?(e=null,i=v):(l=j(),l===null?(e=null,i=v):(t.charCodeAt(i)===58?(u=`:`,i++):(u=null,a===0&&c(`":"`)),u===null?(e=null,i=v):(d=Re(),d===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d]))))))),e===null&&(v=i,e=j(),e===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(n=null,i=y):(r=j(),r===null?(n=null,i=y):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(r=null,i=y):(o=j(),o===null?(r=null,i=y):r=[r,o]),r=r===null?``:r,r===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(o=`:`,i++):(o=null,a===0&&c(`":"`)),o===null?(o=null,i=y):(s=j(),s===null?(o=null,i=y):o=[o,s]),o=o===null?``:o,o===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(s=`:`,i++):(s=null,a===0&&c(`":"`)),s===null?(s=null,i=y):(l=j(),l===null?(s=null,i=y):s=[s,l]),s=s===null?``:s,s===null?(e=null,i=v):(t.substr(i,2)===`::`?(l=`::`,i+=2):(l=null,a===0&&c(`"::"`)),l===null?(e=null,i=v):(u=Re(),u===null?(e=null,i=v):e=[e,n,r,o,s,l,u])))))),e===null&&(v=i,e=j(),e===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(n=null,i=y):(r=j(),r===null?(n=null,i=y):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(r=null,i=y):(o=j(),o===null?(r=null,i=y):r=[r,o]),r=r===null?``:r,r===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(o=`:`,i++):(o=null,a===0&&c(`":"`)),o===null?(o=null,i=y):(s=j(),s===null?(o=null,i=y):o=[o,s]),o=o===null?``:o,o===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(s=`:`,i++):(s=null,a===0&&c(`":"`)),s===null?(s=null,i=y):(l=j(),l===null?(s=null,i=y):s=[s,l]),s=s===null?``:s,s===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(l=`:`,i++):(l=null,a===0&&c(`":"`)),l===null?(l=null,i=y):(u=j(),u===null?(l=null,i=y):l=[l,u]),l=l===null?``:l,l===null?(e=null,i=v):(t.substr(i,2)===`::`?(u=`::`,i+=2):(u=null,a===0&&c(`"::"`)),u===null?(e=null,i=v):(d=j(),d===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d]))))))),e===null&&(v=i,e=j(),e===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(n=null,i=y):(r=j(),r===null?(n=null,i=y):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(r=`:`,i++):(r=null,a===0&&c(`":"`)),r===null?(r=null,i=y):(o=j(),o===null?(r=null,i=y):r=[r,o]),r=r===null?``:r,r===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(o=`:`,i++):(o=null,a===0&&c(`":"`)),o===null?(o=null,i=y):(s=j(),s===null?(o=null,i=y):o=[o,s]),o=o===null?``:o,o===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(s=`:`,i++):(s=null,a===0&&c(`":"`)),s===null?(s=null,i=y):(l=j(),l===null?(s=null,i=y):s=[s,l]),s=s===null?``:s,s===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(l=`:`,i++):(l=null,a===0&&c(`":"`)),l===null?(l=null,i=y):(u=j(),u===null?(l=null,i=y):l=[l,u]),l=l===null?``:l,l===null?(e=null,i=v):(y=i,t.charCodeAt(i)===58?(u=`:`,i++):(u=null,a===0&&c(`":"`)),u===null?(u=null,i=y):(d=j(),d===null?(u=null,i=y):u=[u,d]),u=u===null?``:u,u===null?(e=null,i=v):(t.substr(i,2)===`::`?(d=`::`,i+=2):(d=null,a===0&&c(`"::"`)),d===null?(e=null,i=v):e=[e,n,r,o,s,l,u,d]))))))))))))))))))))),e!==null&&(e=(function(e){return F.host_type=`IPv6`,t.substring(i,e)})(_)),e===null&&(i=_),e}function j(){var e,t,n,r,a=i;return e=f(),e===null?(e=null,i=a):(t=f(),t=t===null?``:t,t===null?(e=null,i=a):(n=f(),n=n===null?``:n,n===null?(e=null,i=a):(r=f(),r=r===null?``:r,r===null?(e=null,i=a):e=[e,t,n,r]))),e}function Re(){var e,n,r,o=i;return e=j(),e===null?(e=null,i=o):(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(e=null,i=o):(r=j(),r===null?(e=null,i=o):e=[e,n,r])),e===null&&(e=ze()),e}function ze(){var e,n,r,o,s,l,u,d=i,f=i;return e=Be(),e===null?(e=null,i=f):(t.charCodeAt(i)===46?(n=`.`,i++):(n=null,a===0&&c(`"."`)),n===null?(e=null,i=f):(r=Be(),r===null?(e=null,i=f):(t.charCodeAt(i)===46?(o=`.`,i++):(o=null,a===0&&c(`"."`)),o===null?(e=null,i=f):(s=Be(),s===null?(e=null,i=f):(t.charCodeAt(i)===46?(l=`.`,i++):(l=null,a===0&&c(`"."`)),l===null?(e=null,i=f):(u=Be(),u===null?(e=null,i=f):e=[e,n,r,o,s,l,u])))))),e!==null&&(e=(function(e){return F.host_type=`IPv4`,t.substring(i,e)})(d)),e===null&&(i=d),e}function Be(){var e,n,r,o=i;return t.substr(i,2)===`25`?(e=`25`,i+=2):(e=null,a===0&&c(`"25"`)),e===null?(e=null,i=o):(/^[0-5]/.test(t.charAt(i))?(n=t.charAt(i),i++):(n=null,a===0&&c(`[0-5]`)),n===null?(e=null,i=o):e=[e,n]),e===null&&(o=i,t.charCodeAt(i)===50?(e=`2`,i++):(e=null,a===0&&c(`"2"`)),e===null?(e=null,i=o):(/^[0-4]/.test(t.charAt(i))?(n=t.charAt(i),i++):(n=null,a===0&&c(`[0-4]`)),n===null?(e=null,i=o):(r=u(),r===null?(e=null,i=o):e=[e,n,r])),e===null&&(o=i,t.charCodeAt(i)===49?(e=`1`,i++):(e=null,a===0&&c(`"1"`)),e===null?(e=null,i=o):(n=u(),n===null?(e=null,i=o):(r=u(),r===null?(e=null,i=o):e=[e,n,r])),e===null&&(o=i,/^[1-9]/.test(t.charAt(i))?(e=t.charAt(i),i++):(e=null,a===0&&c(`[1-9]`)),e===null?(e=null,i=o):(n=u(),n===null?(e=null,i=o):e=[e,n]),e===null&&(e=u())))),e}function Ve(){var e,t,n,r,a,o=i,s=i;return e=u(),e=e===null?``:e,e===null?(e=null,i=s):(t=u(),t=t===null?``:t,t===null?(e=null,i=s):(n=u(),n=n===null?``:n,n===null?(e=null,i=s):(r=u(),r=r===null?``:r,r===null?(e=null,i=s):(a=u(),a=a===null?``:a,a===null?(e=null,i=s):e=[e,t,n,r,a])))),e!==null&&(e=(function(e,t){return t=parseInt(t.join(``)),F.port=t,t})(o,e)),e===null&&(i=o),e}function He(){var e=[],n,r,o=i;for(t.charCodeAt(i)===59?(n=`;`,i++):(n=null,a===0&&c(`";"`)),n===null?(n=null,i=o):(r=Ue(),r===null?(n=null,i=o):n=[n,r]);n!==null;)e.push(n),o=i,t.charCodeAt(i)===59?(n=`;`,i++):(n=null,a===0&&c(`";"`)),n===null?(n=null,i=o):(r=Ue(),r===null?(n=null,i=o):n=[n,r]);return e}function Ue(){var e=We();return e===null&&(e=Ge(),e===null&&(e=Ke(),e===null&&(e=qe(),e===null&&(e=Je(),e===null&&(e=Ye(),e===null&&(e=Xe())))))),e}function We(){var e,n,r=i,o=i;return t.substr(i,10).toLowerCase()===`transport=`?(e=t.substr(i,10),i+=10):(e=null,a===0&&c(`"transport="`)),e===null?(e=null,i=o):(t.substr(i,3).toLowerCase()===`udp`?(n=t.substr(i,3),i+=3):(n=null,a===0&&c(`"udp"`)),n===null&&(t.substr(i,3).toLowerCase()===`tcp`?(n=t.substr(i,3),i+=3):(n=null,a===0&&c(`"tcp"`)),n===null&&(t.substr(i,4).toLowerCase()===`sctp`?(n=t.substr(i,4),i+=4):(n=null,a===0&&c(`"sctp"`)),n===null&&(t.substr(i,3).toLowerCase()===`tls`?(n=t.substr(i,3),i+=3):(n=null,a===0&&c(`"tls"`)),n===null&&(n=E())))),n===null?(e=null,i=o):e=[e,n]),e!==null&&(e=(function(e,t){F.uri_params||={},F.uri_params.transport=t.toLowerCase()})(r,e[1])),e===null&&(i=r),e}function Ge(){var e,n,r=i,o=i;return t.substr(i,5).toLowerCase()===`user=`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"user="`)),e===null?(e=null,i=o):(t.substr(i,5).toLowerCase()===`phone`?(n=t.substr(i,5),i+=5):(n=null,a===0&&c(`"phone"`)),n===null&&(t.substr(i,2).toLowerCase()===`ip`?(n=t.substr(i,2),i+=2):(n=null,a===0&&c(`"ip"`)),n===null&&(n=E())),n===null?(e=null,i=o):e=[e,n]),e!==null&&(e=(function(e,t){F.uri_params||={},F.uri_params.user=t.toLowerCase()})(r,e[1])),e===null&&(i=r),e}function Ke(){var e,n,r=i,o=i;return t.substr(i,7).toLowerCase()===`method=`?(e=t.substr(i,7),i+=7):(e=null,a===0&&c(`"method="`)),e===null?(e=null,i=o):(n=Pt(),n===null?(e=null,i=o):e=[e,n]),e!==null&&(e=(function(e,t){F.uri_params||={},F.uri_params.method=t})(r,e[1])),e===null&&(i=r),e}function qe(){var e,n,r=i,o=i;return t.substr(i,4).toLowerCase()===`ttl=`?(e=t.substr(i,4),i+=4):(e=null,a===0&&c(`"ttl="`)),e===null?(e=null,i=o):(n=yr(),n===null?(e=null,i=o):e=[e,n]),e!==null&&(e=(function(e,t){F.params||={},F.params.ttl=t})(r,e[1])),e===null&&(i=r),e}function Je(){var e,n,r=i,o=i;return t.substr(i,6).toLowerCase()===`maddr=`?(e=t.substr(i,6),i+=6):(e=null,a===0&&c(`"maddr="`)),e===null?(e=null,i=o):(n=Me(),n===null?(e=null,i=o):e=[e,n]),e!==null&&(e=(function(e,t){F.uri_params||={},F.uri_params.maddr=t})(r,e[1])),e===null&&(i=r),e}function Ye(){var e,n,r,o=i,s=i,l;return t.substr(i,2).toLowerCase()===`lr`?(e=t.substr(i,2),i+=2):(e=null,a===0&&c(`"lr"`)),e===null?(e=null,i=s):(l=i,t.charCodeAt(i)===61?(n=`=`,i++):(n=null,a===0&&c(`"="`)),n===null?(n=null,i=l):(r=E(),r===null?(n=null,i=l):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=s):e=[e,n]),e!==null&&(e=(function(e){F.uri_params||={},F.uri_params.lr=void 0})(o)),e===null&&(i=o),e}function Xe(){var e,n,r,o=i,s=i,l;return e=Ze(),e===null?(e=null,i=s):(l=i,t.charCodeAt(i)===61?(n=`=`,i++):(n=null,a===0&&c(`"="`)),n===null?(n=null,i=l):(r=Qe(),r===null?(n=null,i=l):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=s):e=[e,n]),e!==null&&(e=(function(e,t,n){F.uri_params||={},n=n===void 0?void 0:n[1],F.uri_params[t.toLowerCase()]=n})(o,e[0],e[1])),e===null&&(i=o),e}function Ze(){var e,t,n=i;if(t=$e(),t!==null)for(e=[];t!==null;)e.push(t),t=$e();else e=null;return e!==null&&(e=(function(e,t){return t.join(``)})(n,e)),e===null&&(i=n),e}function Qe(){var e,t,n=i;if(t=$e(),t!==null)for(e=[];t!==null;)e.push(t),t=$e();else e=null;return e!==null&&(e=(function(e,t){return t.join(``)})(n,e)),e===null&&(i=n),e}function $e(){var e=et();return e===null&&(e=b(),e===null&&(e=S())),e}function et(){var e;return t.charCodeAt(i)===91?(e=`[`,i++):(e=null,a===0&&c(`"["`)),e===null&&(t.charCodeAt(i)===93?(e=`]`,i++):(e=null,a===0&&c(`"]"`)),e===null&&(t.charCodeAt(i)===47?(e=`/`,i++):(e=null,a===0&&c(`"/"`)),e===null&&(t.charCodeAt(i)===58?(e=`:`,i++):(e=null,a===0&&c(`":"`)),e===null&&(t.charCodeAt(i)===38?(e=`&`,i++):(e=null,a===0&&c(`"&"`)),e===null&&(t.charCodeAt(i)===43?(e=`+`,i++):(e=null,a===0&&c(`"+"`)),e===null&&(t.charCodeAt(i)===36?(e=`$`,i++):(e=null,a===0&&c(`"$"`)))))))),e}function tt(){var e,n,r,o,s,l=i,u;if(t.charCodeAt(i)===63?(e=`?`,i++):(e=null,a===0&&c(`"?"`)),e!==null)if(n=nt(),n!==null){for(r=[],u=i,t.charCodeAt(i)===38?(o=`&`,i++):(o=null,a===0&&c(`"&"`)),o===null?(o=null,i=u):(s=nt(),s===null?(o=null,i=u):o=[o,s]);o!==null;)r.push(o),u=i,t.charCodeAt(i)===38?(o=`&`,i++):(o=null,a===0&&c(`"&"`)),o===null?(o=null,i=u):(s=nt(),s===null?(o=null,i=u):o=[o,s]);r===null?(e=null,i=l):e=[e,n,r]}else e=null,i=l;else e=null,i=l;return e}function nt(){var e,n,r,o=i,s=i;return e=rt(),e===null?(e=null,i=s):(t.charCodeAt(i)===61?(n=`=`,i++):(n=null,a===0&&c(`"="`)),n===null?(e=null,i=s):(r=it(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t,n){t=t.join(``).toLowerCase(),n=n.join(``),F.uri_headers||={},F.uri_headers[t]?F.uri_headers[t].push(n):F.uri_headers[t]=[n]})(o,e[0],e[2])),e===null&&(i=o),e}function rt(){var e,t=at();if(t===null&&(t=b(),t===null&&(t=S())),t!==null)for(e=[];t!==null;)e.push(t),t=at(),t===null&&(t=b(),t===null&&(t=S()));else e=null;return e}function it(){var e=[],t=at();for(t===null&&(t=b(),t===null&&(t=S()));t!==null;)e.push(t),t=at(),t===null&&(t=b(),t===null&&(t=S()));return e}function at(){var e;return t.charCodeAt(i)===91?(e=`[`,i++):(e=null,a===0&&c(`"["`)),e===null&&(t.charCodeAt(i)===93?(e=`]`,i++):(e=null,a===0&&c(`"]"`)),e===null&&(t.charCodeAt(i)===47?(e=`/`,i++):(e=null,a===0&&c(`"/"`)),e===null&&(t.charCodeAt(i)===63?(e=`?`,i++):(e=null,a===0&&c(`"?"`)),e===null&&(t.charCodeAt(i)===58?(e=`:`,i++):(e=null,a===0&&c(`":"`)),e===null&&(t.charCodeAt(i)===43?(e=`+`,i++):(e=null,a===0&&c(`"+"`)),e===null&&(t.charCodeAt(i)===36?(e=`$`,i++):(e=null,a===0&&c(`"$"`)))))))),e}function ot(){var e=Ft();return e===null&&(e=st()),e}function st(){var e,t,n,r,a,o=i;return e=Pt(),e===null?(e=null,i=o):(t=g(),t===null?(e=null,i=o):(n=ct(),n===null?(e=null,i=o):(r=g(),r===null?(e=null,i=o):(a=wt(),a===null?(e=null,i=o):e=[e,t,n,r,a])))),e}function ct(){var e=Ce();return e===null&&(e=lt()),e}function lt(){var e,n,r,o=i;return e=yt(),e===null?(e=null,i=o):(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null?(e=null,i=o):(r=ut(),r===null&&(r=pt()),r===null?(e=null,i=o):e=[e,n,r])),e}function ut(){var e,n,r,o=i,s;return e=dt(),e===null&&(e=ft()),e===null?(e=null,i=o):(s=i,t.charCodeAt(i)===63?(n=`?`,i++):(n=null,a===0&&c(`"?"`)),n===null?(n=null,i=s):(r=Ct(),r===null?(n=null,i=s):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=o):e=[e,n]),e}function dt(){var e,n,r,o=i;return t.substr(i,2)===`//`?(e=`//`,i+=2):(e=null,a===0&&c(`"//"`)),e===null?(e=null,i=o):(n=bt(),n===null?(e=null,i=o):(r=ft(),r=r===null?``:r,r===null?(e=null,i=o):e=[e,n,r])),e}function ft(){var e,n,r=i;return t.charCodeAt(i)===47?(e=`/`,i++):(e=null,a===0&&c(`"/"`)),e===null?(e=null,i=r):(n=ht(),n===null?(e=null,i=r):e=[e,n]),e}function pt(){var e,t,n,r=i;if(e=M(),e!==null){for(t=[],n=mt();n!==null;)t.push(n),n=mt();t===null?(e=null,i=r):e=[e,t]}else e=null,i=r;return e}function mt(){var e=y();return e===null&&(e=b(),e===null&&(e=S())),e}function M(){var e=b();return e===null&&(e=S(),e===null&&(t.charCodeAt(i)===59?(e=`;`,i++):(e=null,a===0&&c(`";"`)),e===null&&(t.charCodeAt(i)===63?(e=`?`,i++):(e=null,a===0&&c(`"?"`)),e===null&&(t.charCodeAt(i)===58?(e=`:`,i++):(e=null,a===0&&c(`":"`)),e===null&&(t.charCodeAt(i)===64?(e=`@`,i++):(e=null,a===0&&c(`"@"`)),e===null&&(t.charCodeAt(i)===38?(e=`&`,i++):(e=null,a===0&&c(`"&"`)),e===null&&(t.charCodeAt(i)===61?(e=`=`,i++):(e=null,a===0&&c(`"="`)),e===null&&(t.charCodeAt(i)===43?(e=`+`,i++):(e=null,a===0&&c(`"+"`)),e===null&&(t.charCodeAt(i)===36?(e=`$`,i++):(e=null,a===0&&c(`"$"`)),e===null&&(t.charCodeAt(i)===44?(e=`,`,i++):(e=null,a===0&&c(`","`)))))))))))),e}function ht(){var e,n,r,o,s=i,l;if(e=gt(),e!==null){for(n=[],l=i,t.charCodeAt(i)===47?(r=`/`,i++):(r=null,a===0&&c(`"/"`)),r===null?(r=null,i=l):(o=gt(),o===null?(r=null,i=l):r=[r,o]);r!==null;)n.push(r),l=i,t.charCodeAt(i)===47?(r=`/`,i++):(r=null,a===0&&c(`"/"`)),r===null?(r=null,i=l):(o=gt(),o===null?(r=null,i=l):r=[r,o]);n===null?(e=null,i=s):e=[e,n]}else e=null,i=s;return e}function gt(){var e,n,r,o,s=i,l;for(e=[],n=vt();n!==null;)e.push(n),n=vt();if(e!==null){for(n=[],l=i,t.charCodeAt(i)===59?(r=`;`,i++):(r=null,a===0&&c(`";"`)),r===null?(r=null,i=l):(o=_t(),o===null?(r=null,i=l):r=[r,o]);r!==null;)n.push(r),l=i,t.charCodeAt(i)===59?(r=`;`,i++):(r=null,a===0&&c(`";"`)),r===null?(r=null,i=l):(o=_t(),o===null?(r=null,i=l):r=[r,o]);n===null?(e=null,i=s):e=[e,n]}else e=null,i=s;return e}function _t(){for(var e=[],t=vt();t!==null;)e.push(t),t=vt();return e}function vt(){var e=b();return e===null&&(e=S(),e===null&&(t.charCodeAt(i)===58?(e=`:`,i++):(e=null,a===0&&c(`":"`)),e===null&&(t.charCodeAt(i)===64?(e=`@`,i++):(e=null,a===0&&c(`"@"`)),e===null&&(t.charCodeAt(i)===38?(e=`&`,i++):(e=null,a===0&&c(`"&"`)),e===null&&(t.charCodeAt(i)===61?(e=`=`,i++):(e=null,a===0&&c(`"="`)),e===null&&(t.charCodeAt(i)===43?(e=`+`,i++):(e=null,a===0&&c(`"+"`)),e===null&&(t.charCodeAt(i)===36?(e=`$`,i++):(e=null,a===0&&c(`"$"`)),e===null&&(t.charCodeAt(i)===44?(e=`,`,i++):(e=null,a===0&&c(`","`)))))))))),e}function yt(){var e,n,r,o=i,s=i;if(e=d(),e!==null){for(n=[],r=d(),r===null&&(r=u(),r===null&&(t.charCodeAt(i)===43?(r=`+`,i++):(r=null,a===0&&c(`"+"`)),r===null&&(t.charCodeAt(i)===45?(r=`-`,i++):(r=null,a===0&&c(`"-"`)),r===null&&(t.charCodeAt(i)===46?(r=`.`,i++):(r=null,a===0&&c(`"."`))))));r!==null;)n.push(r),r=d(),r===null&&(r=u(),r===null&&(t.charCodeAt(i)===43?(r=`+`,i++):(r=null,a===0&&c(`"+"`)),r===null&&(t.charCodeAt(i)===45?(r=`-`,i++):(r=null,a===0&&c(`"-"`)),r===null&&(t.charCodeAt(i)===46?(r=`.`,i++):(r=null,a===0&&c(`"."`))))));n===null?(e=null,i=s):e=[e,n]}else e=null,i=s;return e!==null&&(e=(function(e){F.scheme=t.substring(i,e)})(o)),e===null&&(i=o),e}function bt(){var e=xt();return e===null&&(e=St()),e}function xt(){var e,n,r=i,o=i;return e=De(),e===null?(e=null,i=o):(t.charCodeAt(i)===64?(n=`@`,i++):(n=null,a===0&&c(`"@"`)),n===null?(e=null,i=o):e=[e,n]),e=e===null?``:e,e===null?(e=null,i=r):(n=je(),n===null?(e=null,i=r):e=[e,n]),e=e===null?``:e,e}function St(){var e,n=b();if(n===null&&(n=S(),n===null&&(t.charCodeAt(i)===36?(n=`$`,i++):(n=null,a===0&&c(`"$"`)),n===null&&(t.charCodeAt(i)===44?(n=`,`,i++):(n=null,a===0&&c(`","`)),n===null&&(t.charCodeAt(i)===59?(n=`;`,i++):(n=null,a===0&&c(`";"`)),n===null&&(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null&&(t.charCodeAt(i)===64?(n=`@`,i++):(n=null,a===0&&c(`"@"`)),n===null&&(t.charCodeAt(i)===38?(n=`&`,i++):(n=null,a===0&&c(`"&"`)),n===null&&(t.charCodeAt(i)===61?(n=`=`,i++):(n=null,a===0&&c(`"="`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`))))))))))),n!==null)for(e=[];n!==null;)e.push(n),n=b(),n===null&&(n=S(),n===null&&(t.charCodeAt(i)===36?(n=`$`,i++):(n=null,a===0&&c(`"$"`)),n===null&&(t.charCodeAt(i)===44?(n=`,`,i++):(n=null,a===0&&c(`","`)),n===null&&(t.charCodeAt(i)===59?(n=`;`,i++):(n=null,a===0&&c(`";"`)),n===null&&(t.charCodeAt(i)===58?(n=`:`,i++):(n=null,a===0&&c(`":"`)),n===null&&(t.charCodeAt(i)===64?(n=`@`,i++):(n=null,a===0&&c(`"@"`)),n===null&&(t.charCodeAt(i)===38?(n=`&`,i++):(n=null,a===0&&c(`"&"`)),n===null&&(t.charCodeAt(i)===61?(n=`=`,i++):(n=null,a===0&&c(`"="`)),n===null&&(t.charCodeAt(i)===43?(n=`+`,i++):(n=null,a===0&&c(`"+"`)))))))))));else e=null;return e}function Ct(){for(var e=[],t=mt();t!==null;)e.push(t),t=mt();return e}function wt(){var e,n,r,o,s,l,d=i,f=i;if(t.substr(i,3).toLowerCase()===`sip`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"SIP"`)),e!==null)if(t.charCodeAt(i)===47?(n=`/`,i++):(n=null,a===0&&c(`"/"`)),n!==null){if(o=u(),o!==null)for(r=[];o!==null;)r.push(o),o=u();else r=null;if(r!==null)if(t.charCodeAt(i)===46?(o=`.`,i++):(o=null,a===0&&c(`"."`)),o!==null){if(l=u(),l!==null)for(s=[];l!==null;)s.push(l),l=u();else s=null;s===null?(e=null,i=f):e=[e,n,r,o,s]}else e=null,i=f;else e=null,i=f}else e=null,i=f;else e=null,i=f;return e!==null&&(e=(function(e){F.sip_version=t.substring(i,e)})(d)),e===null&&(i=d),e}function Tt(){var e;return t.substr(i,6)===`INVITE`?(e=`INVITE`,i+=6):(e=null,a===0&&c(`"INVITE"`)),e}function Et(){var e;return t.substr(i,3)===`ACK`?(e=`ACK`,i+=3):(e=null,a===0&&c(`"ACK"`)),e}function Dt(){var e;return t.substr(i,7)===`OPTIONS`?(e=`OPTIONS`,i+=7):(e=null,a===0&&c(`"OPTIONS"`)),e}function Ot(){var e;return t.substr(i,3)===`BYE`?(e=`BYE`,i+=3):(e=null,a===0&&c(`"BYE"`)),e}function kt(){var e;return t.substr(i,6)===`CANCEL`?(e=`CANCEL`,i+=6):(e=null,a===0&&c(`"CANCEL"`)),e}function At(){var e;return t.substr(i,8)===`REGISTER`?(e=`REGISTER`,i+=8):(e=null,a===0&&c(`"REGISTER"`)),e}function jt(){var e;return t.substr(i,9)===`SUBSCRIBE`?(e=`SUBSCRIBE`,i+=9):(e=null,a===0&&c(`"SUBSCRIBE"`)),e}function Mt(){var e;return t.substr(i,6)===`NOTIFY`?(e=`NOTIFY`,i+=6):(e=null,a===0&&c(`"NOTIFY"`)),e}function Nt(){var e;return t.substr(i,5)===`REFER`?(e=`REFER`,i+=5):(e=null,a===0&&c(`"REFER"`)),e}function Pt(){var e,n=i;return e=Tt(),e===null&&(e=Et(),e===null&&(e=Dt(),e===null&&(e=Ot(),e===null&&(e=kt(),e===null&&(e=At(),e===null&&(e=jt(),e===null&&(e=Mt(),e===null&&(e=Nt(),e===null&&(e=E()))))))))),e!==null&&(e=(function(e){return F.method=t.substring(i,e),F.method})(n)),e===null&&(i=n),e}function Ft(){var e,t,n,r,a,o=i;return e=wt(),e===null?(e=null,i=o):(t=g(),t===null?(e=null,i=o):(n=It(),n===null?(e=null,i=o):(r=g(),r===null?(e=null,i=o):(a=Rt(),a===null?(e=null,i=o):e=[e,t,n,r,a])))),e}function It(){var e,t=i;return e=Lt(),e!==null&&(e=(function(e,t){F.status_code=parseInt(t.join(``))})(t,e)),e===null&&(i=t),e}function Lt(){var e,t,n,r=i;return e=u(),e===null?(e=null,i=r):(t=u(),t===null?(e=null,i=r):(n=u(),n===null?(e=null,i=r):e=[e,t,n])),e}function Rt(){var e,n,r=i;for(e=[],n=y(),n===null&&(n=b(),n===null&&(n=S(),n===null&&(n=ne(),n===null&&(n=re(),n===null&&(n=g(),n===null&&(n=_()))))));n!==null;)e.push(n),n=y(),n===null&&(n=b(),n===null&&(n=S(),n===null&&(n=ne(),n===null&&(n=re(),n===null&&(n=g(),n===null&&(n=_()))))));return e!==null&&(e=(function(e){F.reason_phrase=t.substring(i,e)})(r)),e===null&&(i=r),e}function zt(){var e,t,n,r,a=i,o;if(e=yn(),e!==null){for(t=[],o=i,n=me(),n===null?(n=null,i=o):(r=yn(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=me(),n===null?(n=null,i=o):(r=yn(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function Bt(){var e,n,r,o=i,s=i,l;return e=se(),e===null?(e=null,i=s):(l=i,t.charCodeAt(i)===64?(n=`@`,i++):(n=null,a===0&&c(`"@"`)),n===null?(n=null,i=l):(r=se(),r===null?(n=null,i=l):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=s):e=[e,n]),e!==null&&(e=(function(e){F=t.substring(i,e)})(o)),e===null&&(i=o),e}function Vt(){var e,t,n,r,a=i,o,s;if(e=ce(),e===null)if(o=i,e=Ht(),e!==null){for(t=[],s=i,n=me(),n===null?(n=null,i=s):(r=Ht(),r===null?(n=null,i=s):n=[n,r]);n!==null;)t.push(n),s=i,n=me(),n===null?(n=null,i=s):(r=Ht(),r===null?(n=null,i=s):n=[n,r]);t===null?(e=null,i=o):e=[e,t]}else e=null,i=o;return e!==null&&(e=(function(e){var t,n=F.multi_header.length;for(t=0;t<n;t++)if(F.multi_header[t].parsed===null){F=null;break}F=F===null?-1:F.multi_header})(a)),e===null&&(i=a),e}function Ht(){var e,t,n,r,a=i,o=i,s;if(e=Se(),e===null&&(e=Ut()),e!==null){for(t=[],s=i,n=he(),n===null?(n=null,i=s):(r=Gt(),r===null?(n=null,i=s):n=[n,r]);n!==null;)t.push(n),s=i,n=he(),n===null?(n=null,i=s):(r=Gt(),r===null?(n=null,i=s):n=[n,r]);t===null?(e=null,i=o):e=[e,t]}else e=null,i=o;return e!==null&&(e=(function(e){var t;F.multi_header||=[];try{t=new Hr(F.uri,F.display_name,F.params),delete F.uri,delete F.display_name,delete F.params}catch{t=null}F.multi_header.push({possition:i,offset:e,parsed:t})})(a)),e===null&&(i=a),e}function Ut(){var e,t,n,r,a=i;return e=Wt(),e=e===null?``:e,e===null?(e=null,i=a):(t=pe(),t===null?(e=null,i=a):(n=Ce(),n===null?(e=null,i=a):(r=fe(),r===null?(e=null,i=a):e=[e,t,n,r]))),e}function Wt(){var e,t,n,r,a=i,o=i,s;if(e=E(),e!==null){for(t=[],s=i,n=C(),n===null?(n=null,i=s):(r=E(),r===null?(n=null,i=s):n=[n,r]);n!==null;)t.push(n),s=i,n=C(),n===null?(n=null,i=s):(r=E(),r===null?(n=null,i=s):n=[n,r]);t===null?(e=null,i=o):e=[e,t]}else e=null,i=o;return e===null&&(e=ye()),e!==null&&(e=(function(e,t){typeof t==`string`?F.display_name=t:F.display_name=t[1].reduce(function(e,t){return e+t[0]+t[1]},t[0])})(a,e)),e===null&&(i=a),e}function Gt(){var e=Kt();return e===null&&(e=qt(),e===null&&(e=Xt())),e}function Kt(){var e,n,r,o=i,s=i;return t.substr(i,1).toLowerCase()===`q`?(e=t.substr(i,1),i++):(e=null,a===0&&c(`"q"`)),e===null?(e=null,i=s):(n=D(),n===null?(e=null,i=s):(r=Yt(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){F.params||={},F.params.q=t})(o,e[2])),e===null&&(i=o),e}function qt(){var e,n,r,o=i,s=i;return t.substr(i,7).toLowerCase()===`expires`?(e=t.substr(i,7),i+=7):(e=null,a===0&&c(`"expires"`)),e===null?(e=null,i=s):(n=D(),n===null?(e=null,i=s):(r=Jt(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){F.params||={},F.params.expires=t})(o,e[2])),e===null&&(i=o),e}function Jt(){var e,t,n=i;if(t=u(),t!==null)for(e=[];t!==null;)e.push(t),t=u();else e=null;return e!==null&&(e=(function(e,t){return parseInt(t.join(``))})(n,e)),e===null&&(i=n),e}function Yt(){var e,n,r,o,s,l=i,d=i,f;return t.charCodeAt(i)===48?(e=`0`,i++):(e=null,a===0&&c(`"0"`)),e===null?(e=null,i=d):(f=i,t.charCodeAt(i)===46?(n=`.`,i++):(n=null,a===0&&c(`"."`)),n===null?(n=null,i=f):(r=u(),r=r===null?``:r,r===null?(n=null,i=f):(o=u(),o=o===null?``:o,o===null?(n=null,i=f):(s=u(),s=s===null?``:s,s===null?(n=null,i=f):n=[n,r,o,s]))),n=n===null?``:n,n===null?(e=null,i=d):e=[e,n]),e!==null&&(e=(function(e){return parseFloat(t.substring(i,e))})(l)),e===null&&(i=l),e}function Xt(){var e,t,n,r=i,a=i,o;return e=E(),e===null?(e=null,i=a):(o=i,t=D(),t===null?(t=null,i=o):(n=Zt(),n===null?(t=null,i=o):t=[t,n]),t=t===null?``:t,t===null?(e=null,i=a):e=[e,t]),e!==null&&(e=(function(e,t,n){F.params||={},n=n===void 0?void 0:n[1],F.params[t.toLowerCase()]=n})(r,e[0],e[1])),e===null&&(i=r),e}function Zt(){var e=E();return e===null&&(e=Me(),e===null&&(e=ve())),e}function Qt(){var e,t,n,r,a=i,o;if(e=$t(),e!==null){for(t=[],o=i,n=he(),n===null?(n=null,i=o):(r=en(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=he(),n===null?(n=null,i=o):(r=en(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function $t(){var e;return t.substr(i,6).toLowerCase()===`render`?(e=t.substr(i,6),i+=6):(e=null,a===0&&c(`"render"`)),e===null&&(t.substr(i,7).toLowerCase()===`session`?(e=t.substr(i,7),i+=7):(e=null,a===0&&c(`"session"`)),e===null&&(t.substr(i,4).toLowerCase()===`icon`?(e=t.substr(i,4),i+=4):(e=null,a===0&&c(`"icon"`)),e===null&&(t.substr(i,5).toLowerCase()===`alert`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"alert"`)),e===null&&(e=E())))),e}function en(){var e=tn();return e===null&&(e=Xt()),e}function tn(){var e,n,r,o=i;return t.substr(i,8).toLowerCase()===`handling`?(e=t.substr(i,8),i+=8):(e=null,a===0&&c(`"handling"`)),e===null?(e=null,i=o):(n=D(),n===null?(e=null,i=o):(t.substr(i,8).toLowerCase()===`optional`?(r=t.substr(i,8),i+=8):(r=null,a===0&&c(`"optional"`)),r===null&&(t.substr(i,8).toLowerCase()===`required`?(r=t.substr(i,8),i+=8):(r=null,a===0&&c(`"required"`)),r===null&&(r=E())),r===null?(e=null,i=o):e=[e,n,r])),e}function nn(){var e,t,n,r,a=i,o;if(e=E(),e!==null){for(t=[],o=i,n=me(),n===null?(n=null,i=o):(r=E(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=me(),n===null?(n=null,i=o):(r=E(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function rn(){var e,t,n=i;if(t=u(),t!==null)for(e=[];t!==null;)e.push(t),t=u();else e=null;return e!==null&&(e=(function(e,t){F=parseInt(t.join(``))})(n,e)),e===null&&(i=n),e}function an(){var e,n=i;return e=on(),e!==null&&(e=(function(e){F=t.substring(i,e)})(n)),e===null&&(i=n),e}function on(){var e,t,n,r,a,o,s=i,c;if(e=sn(),e!==null)if(t=le(),t!==null)if(n=fn(),n!==null){for(r=[],c=i,a=he(),a===null?(a=null,i=c):(o=pn(),o===null?(a=null,i=c):a=[a,o]);a!==null;)r.push(a),c=i,a=he(),a===null?(a=null,i=c):(o=pn(),o===null?(a=null,i=c):a=[a,o]);r===null?(e=null,i=s):e=[e,t,n,r]}else e=null,i=s;else e=null,i=s;else e=null,i=s;return e}function sn(){var e=cn();return e===null&&(e=ln()),e}function cn(){var e;return t.substr(i,4).toLowerCase()===`text`?(e=t.substr(i,4),i+=4):(e=null,a===0&&c(`"text"`)),e===null&&(t.substr(i,5).toLowerCase()===`image`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"image"`)),e===null&&(t.substr(i,5).toLowerCase()===`audio`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"audio"`)),e===null&&(t.substr(i,5).toLowerCase()===`video`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"video"`)),e===null&&(t.substr(i,11).toLowerCase()===`application`?(e=t.substr(i,11),i+=11):(e=null,a===0&&c(`"application"`)),e===null&&(e=un()))))),e}function ln(){var e;return t.substr(i,7).toLowerCase()===`message`?(e=t.substr(i,7),i+=7):(e=null,a===0&&c(`"message"`)),e===null&&(t.substr(i,9).toLowerCase()===`multipart`?(e=t.substr(i,9),i+=9):(e=null,a===0&&c(`"multipart"`)),e===null&&(e=un())),e}function un(){var e=E();return e===null&&(e=dn()),e}function dn(){var e,n,r=i;return t.substr(i,2).toLowerCase()===`x-`?(e=t.substr(i,2),i+=2):(e=null,a===0&&c(`"x-"`)),e===null?(e=null,i=r):(n=E(),n===null?(e=null,i=r):e=[e,n]),e}function fn(){var e=un();return e===null&&(e=E()),e}function pn(){var e,t,n,r=i;return e=E(),e===null?(e=null,i=r):(t=D(),t===null?(e=null,i=r):(n=mn(),n===null?(e=null,i=r):e=[e,t,n])),e}function mn(){var e=E();return e===null&&(e=ve()),e}function hn(){var e,t,n,r=i;return e=gn(),e===null?(e=null,i=r):(t=C(),t===null?(e=null,i=r):(n=Pt(),n===null?(e=null,i=r):e=[e,t,n])),e}function gn(){var e,t,n=i;if(t=u(),t!==null)for(e=[];t!==null;)e.push(t),t=u();else e=null;return e!==null&&(e=(function(e,t){F.value=parseInt(t.join(``))})(n,e)),e===null&&(i=n),e}function _n(){var e,t=i;return e=Jt(),e!==null&&(e=(function(e,t){F=t})(t,e)),e===null&&(i=t),e}function vn(){var e,t,n,r,a=i,o=i,s;if(e=yn(),e!==null){for(t=[],s=i,n=he(),n===null?(n=null,i=s):(r=Xt(),r===null?(n=null,i=s):n=[n,r]);n!==null;)t.push(n),s=i,n=he(),n===null?(n=null,i=s):(r=Xt(),r===null?(n=null,i=s):n=[n,r]);t===null?(e=null,i=o):e=[e,t]}else e=null,i=o;return e!==null&&(e=(function(e,t){F.event=t.join(``).toLowerCase()})(a,e[0])),e===null&&(i=a),e}function yn(){var e,n,r,o,s=i,l;if(e=ae(),e!==null){for(n=[],l=i,t.charCodeAt(i)===46?(r=`.`,i++):(r=null,a===0&&c(`"."`)),r===null?(r=null,i=l):(o=ae(),o===null?(r=null,i=l):r=[r,o]);r!==null;)n.push(r),l=i,t.charCodeAt(i)===46?(r=`.`,i++):(r=null,a===0&&c(`"."`)),r===null?(r=null,i=l):(o=ae(),o===null?(r=null,i=l):r=[r,o]);n===null?(e=null,i=s):e=[e,n]}else e=null,i=s;return e}function bn(){var e,t,n,r,a=i,o=i,s;if(e=Se(),e===null&&(e=Ut()),e!==null){for(t=[],s=i,n=he(),n===null?(n=null,i=s):(r=xn(),r===null?(n=null,i=s):n=[n,r]);n!==null;)t.push(n),s=i,n=he(),n===null?(n=null,i=s):(r=xn(),r===null?(n=null,i=s):n=[n,r]);t===null?(e=null,i=o):e=[e,t]}else e=null,i=o;return e!==null&&(e=(function(e){var t=F.tag;try{F=new Hr(F.uri,F.display_name,F.params),t&&F.setParam(`tag`,t)}catch{F=-1}})(a)),e===null&&(i=a),e}function xn(){var e=Sn();return e===null&&(e=Xt()),e}function Sn(){var e,n,r,o=i,s=i;return t.substr(i,3).toLowerCase()===`tag`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"tag"`)),e===null?(e=null,i=s):(n=D(),n===null?(e=null,i=s):(r=E(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){F.tag=t})(o,e[2])),e===null&&(i=o),e}function Cn(){var e,t,n=i;if(t=u(),t!==null)for(e=[];t!==null;)e.push(t),t=u();else e=null;return e!==null&&(e=(function(e,t){F=parseInt(t.join(``))})(n,e)),e===null&&(i=n),e}function wn(){var e,t=i;return e=Jt(),e!==null&&(e=(function(e,t){F=t})(t,e)),e===null&&(i=t),e}function Tn(){var e,t,n,r,a,o,s,c=i,l=i,u;for(e=[],t=Wt();t!==null;)e.push(t),t=Wt();if(e!==null)if(t=pe(),t!==null)if(n=Ce(),n!==null)if(r=fe(),r!==null){for(a=[],u=i,o=he(),o===null?(o=null,i=u):(s=Xt(),s===null?(o=null,i=u):o=[o,s]);o!==null;)a.push(o),u=i,o=he(),o===null?(o=null,i=u):(s=Xt(),s===null?(o=null,i=u):o=[o,s]);a===null?(e=null,i=l):e=[e,t,n,r,a]}else e=null,i=l;else e=null,i=l;else e=null,i=l;else e=null,i=l;return e!==null&&(e=(function(e){try{F=new Hr(F.uri,F.display_name,F.params)}catch{F=-1}})(c)),e===null&&(i=c),e}function En(){return Dn()}function Dn(){var e,n,r,o,s,l,u=i,d;if(t.substr(i,6).toLowerCase()===`digest`?(e=t.substr(i,6),i+=6):(e=null,a===0&&c(`"Digest"`)),e!==null)if(n=C(),n!==null)if(r=An(),r!==null){for(o=[],d=i,s=me(),s===null?(s=null,i=d):(l=An(),l===null?(s=null,i=d):s=[s,l]);s!==null;)o.push(s),d=i,s=me(),s===null?(s=null,i=d):(l=An(),l===null?(s=null,i=d):s=[s,l]);o===null?(e=null,i=u):e=[e,n,r,o]}else e=null,i=u;else e=null,i=u;else e=null,i=u;return e===null&&(e=On()),e}function On(){var e,t,n,r,a,o,s=i,c;if(e=E(),e!==null)if(t=C(),t!==null)if(n=kn(),n!==null){for(r=[],c=i,a=me(),a===null?(a=null,i=c):(o=kn(),o===null?(a=null,i=c):a=[a,o]);a!==null;)r.push(a),c=i,a=me(),a===null?(a=null,i=c):(o=kn(),o===null?(a=null,i=c):a=[a,o]);r===null?(e=null,i=s):e=[e,t,n,r]}else e=null,i=s;else e=null,i=s;else e=null,i=s;return e}function kn(){var e,t,n,r=i;return e=E(),e===null?(e=null,i=r):(t=D(),t===null?(e=null,i=r):(n=E(),n===null&&(n=ve()),n===null?(e=null,i=r):e=[e,t,n])),e}function An(){var e=jn();return e===null&&(e=Nn(),e===null&&(e=N(),e===null&&(e=In(),e===null&&(e=Ln(),e===null&&(e=Rn(),e===null&&(e=zn(),e===null&&(e=kn()))))))),e}function jn(){var e,n,r,o=i;return t.substr(i,5).toLowerCase()===`realm`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"realm"`)),e===null?(e=null,i=o):(n=D(),n===null?(e=null,i=o):(r=Mn(),r===null?(e=null,i=o):e=[e,n,r])),e}function Mn(){var e,t=i;return e=ye(),e!==null&&(e=(function(e,t){F.realm=t})(t,e)),e===null&&(i=t),e}function Nn(){var e,n,r,o,s,l,u,d=i,f;if(t.substr(i,6).toLowerCase()===`domain`?(e=t.substr(i,6),i+=6):(e=null,a===0&&c(`"domain"`)),e!==null)if(n=D(),n!==null)if(r=O(),r!==null)if(o=Pn(),o!==null){if(s=[],f=i,u=g(),u!==null)for(l=[];u!==null;)l.push(u),u=g();else l=null;for(l===null?(l=null,i=f):(u=Pn(),u===null?(l=null,i=f):l=[l,u]);l!==null;){if(s.push(l),f=i,u=g(),u!==null)for(l=[];u!==null;)l.push(u),u=g();else l=null;l===null?(l=null,i=f):(u=Pn(),u===null?(l=null,i=f):l=[l,u])}s===null?(e=null,i=d):(l=k(),l===null?(e=null,i=d):e=[e,n,r,o,s,l])}else e=null,i=d;else e=null,i=d;else e=null,i=d;else e=null,i=d;return e}function Pn(){var e=lt();return e===null&&(e=ft()),e}function N(){var e,n,r,o=i;return t.substr(i,5).toLowerCase()===`nonce`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"nonce"`)),e===null?(e=null,i=o):(n=D(),n===null?(e=null,i=o):(r=Fn(),r===null?(e=null,i=o):e=[e,n,r])),e}function Fn(){var e,t=i;return e=ye(),e!==null&&(e=(function(e,t){F.nonce=t})(t,e)),e===null&&(i=t),e}function In(){var e,n,r,o=i,s=i;return t.substr(i,6).toLowerCase()===`opaque`?(e=t.substr(i,6),i+=6):(e=null,a===0&&c(`"opaque"`)),e===null?(e=null,i=s):(n=D(),n===null?(e=null,i=s):(r=ye(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){F.opaque=t})(o,e[2])),e===null&&(i=o),e}function Ln(){var e,n,r,o=i,s;return t.substr(i,5).toLowerCase()===`stale`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"stale"`)),e===null?(e=null,i=o):(n=D(),n===null?(e=null,i=o):(s=i,t.substr(i,4).toLowerCase()===`true`?(r=t.substr(i,4),i+=4):(r=null,a===0&&c(`"true"`)),r!==null&&(r=(function(e){F.stale=!0})(s)),r===null&&(i=s),r===null&&(s=i,t.substr(i,5).toLowerCase()===`false`?(r=t.substr(i,5),i+=5):(r=null,a===0&&c(`"false"`)),r!==null&&(r=(function(e){F.stale=!1})(s)),r===null&&(i=s)),r===null?(e=null,i=o):e=[e,n,r])),e}function Rn(){var e,n,r,o=i,s=i;return t.substr(i,9).toLowerCase()===`algorithm`?(e=t.substr(i,9),i+=9):(e=null,a===0&&c(`"algorithm"`)),e===null?(e=null,i=s):(n=D(),n===null?(e=null,i=s):(t.substr(i,3).toLowerCase()===`md5`?(r=t.substr(i,3),i+=3):(r=null,a===0&&c(`"MD5"`)),r===null&&(t.substr(i,8).toLowerCase()===`md5-sess`?(r=t.substr(i,8),i+=8):(r=null,a===0&&c(`"MD5-sess"`)),r===null&&(r=E())),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){F.algorithm=t.toUpperCase()})(o,e[2])),e===null&&(i=o),e}function zn(){var e,n,r,o,s,l,u,d=i,f,p;if(t.substr(i,3).toLowerCase()===`qop`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"qop"`)),e!==null)if(n=D(),n!==null)if(r=O(),r!==null){if(f=i,o=Bn(),o!==null){for(s=[],p=i,t.charCodeAt(i)===44?(l=`,`,i++):(l=null,a===0&&c(`","`)),l===null?(l=null,i=p):(u=Bn(),u===null?(l=null,i=p):l=[l,u]);l!==null;)s.push(l),p=i,t.charCodeAt(i)===44?(l=`,`,i++):(l=null,a===0&&c(`","`)),l===null?(l=null,i=p):(u=Bn(),u===null?(l=null,i=p):l=[l,u]);s===null?(o=null,i=f):o=[o,s]}else o=null,i=f;o===null?(e=null,i=d):(s=k(),s===null?(e=null,i=d):e=[e,n,r,o,s])}else e=null,i=d;else e=null,i=d;else e=null,i=d;return e}function Bn(){var e,n=i;return t.substr(i,8).toLowerCase()===`auth-int`?(e=t.substr(i,8),i+=8):(e=null,a===0&&c(`"auth-int"`)),e===null&&(t.substr(i,4).toLowerCase()===`auth`?(e=t.substr(i,4),i+=4):(e=null,a===0&&c(`"auth"`)),e===null&&(e=E())),e!==null&&(e=(function(e,t){F.qop||=[],F.qop.push(t.toLowerCase())})(n,e)),e===null&&(i=n),e}function Vn(){var e,t,n,r,a=i,o;if(e=E(),e!==null){for(t=[],o=i,n=me(),n===null?(n=null,i=o):(r=E(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=me(),n===null?(n=null,i=o):(r=E(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function Hn(){var e,t,n,r,a=i,o=i,s;if(e=Un(),e!==null){for(t=[],s=i,n=me(),n===null?(n=null,i=s):(r=Un(),r===null?(n=null,i=s):n=[n,r]);n!==null;)t.push(n),s=i,n=me(),n===null?(n=null,i=s):(r=Un(),r===null?(n=null,i=s):n=[n,r]);t===null?(e=null,i=o):e=[e,t]}else e=null,i=o;return e!==null&&(e=(function(e){var t,n=F.multi_header.length;for(t=0;t<n;t++)if(F.multi_header[t].parsed===null){F=null;break}F=F===null?-1:F.multi_header})(a)),e===null&&(i=a),e}function Un(){var e,t,n,r,a=i,o=i,s;if(e=Ut(),e!==null){for(t=[],s=i,n=he(),n===null?(n=null,i=s):(r=Xt(),r===null?(n=null,i=s):n=[n,r]);n!==null;)t.push(n),s=i,n=he(),n===null?(n=null,i=s):(r=Xt(),r===null?(n=null,i=s):n=[n,r]);t===null?(e=null,i=o):e=[e,t]}else e=null,i=o;return e!==null&&(e=(function(e){var t;F.multi_header||=[];try{t=new Hr(F.uri,F.display_name,F.params),delete F.uri,delete F.display_name,delete F.params}catch{t=null}F.multi_header.push({possition:i,offset:e,parsed:t})})(a)),e===null&&(i=a),e}function Wn(){var e,n,r,o,s=i,l=i,u;if(t.substr(i,3).toLowerCase()===`sip`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"SIP"`)),e===null&&(e=E()),e!==null){for(n=[],u=i,r=he(),r===null?(r=null,i=u):(o=Gn(),o===null?(r=null,i=u):r=[r,o]);r!==null;)n.push(r),u=i,r=he(),r===null?(r=null,i=u):(o=Gn(),o===null?(r=null,i=u):r=[r,o]);n===null?(e=null,i=l):e=[e,n]}else e=null,i=l;return e!==null&&(e=(function(e,t){if(F.protocol=t.toLowerCase(),F.params||={},F.params.text&&F.params.text[0]===`"`){var n=F.params.text;F.text=n.substring(1,n.length-1),delete F.params.text}})(s,e[0])),e===null&&(i=s),e}function Gn(){var e=Kn();return e===null&&(e=Xt()),e}function Kn(){var e,n,r,o,s=i,l=i;if(t.substr(i,5).toLowerCase()===`cause`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"cause"`)),e!==null)if(n=D(),n!==null){if(o=u(),o!==null)for(r=[];o!==null;)r.push(o),o=u();else r=null;r===null?(e=null,i=l):e=[e,n,r]}else e=null,i=l;else e=null,i=l;return e!==null&&(e=(function(e,t){F.cause=parseInt(t.join(``))})(s,e[2])),e===null&&(i=s),e}function qn(){var e,t,n,r,a=i,o;if(e=E(),e!==null){for(t=[],o=i,n=me(),n===null?(n=null,i=o):(r=E(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=me(),n===null?(n=null,i=o):(r=E(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function Jn(){var e,t,n,r,a=i,o;if(e=Yn(),e!==null){for(t=[],o=i,n=me(),n===null?(n=null,i=o):(r=Yn(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=me(),n===null?(n=null,i=o):(r=Yn(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function Yn(){var e,t,n,r,a=i,o;if(e=Ut(),e!==null){for(t=[],o=i,n=he(),n===null?(n=null,i=o):(r=Xt(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=he(),n===null?(n=null,i=o):(r=Xt(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function Xn(){var e,t,n,r,a=i,o;if(e=Zn(),e!==null){for(t=[],o=i,n=he(),n===null?(n=null,i=o):(r=Qn(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=he(),n===null?(n=null,i=o):(r=Qn(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function Zn(){var e,n=i;return t.substr(i,6).toLowerCase()===`active`?(e=t.substr(i,6),i+=6):(e=null,a===0&&c(`"active"`)),e===null&&(t.substr(i,7).toLowerCase()===`pending`?(e=t.substr(i,7),i+=7):(e=null,a===0&&c(`"pending"`)),e===null&&(t.substr(i,10).toLowerCase()===`terminated`?(e=t.substr(i,10),i+=10):(e=null,a===0&&c(`"terminated"`)),e===null&&(e=E()))),e!==null&&(e=(function(e){F.state=t.substring(i,e)})(n)),e===null&&(i=n),e}function Qn(){var e,n,r,o=i,s=i;return t.substr(i,6).toLowerCase()===`reason`?(e=t.substr(i,6),i+=6):(e=null,a===0&&c(`"reason"`)),e===null?(e=null,i=s):(n=D(),n===null?(e=null,i=s):(r=$n(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){t!==void 0&&(F.reason=t)})(o,e[2])),e===null&&(i=o),e===null&&(o=i,s=i,t.substr(i,7).toLowerCase()===`expires`?(e=t.substr(i,7),i+=7):(e=null,a===0&&c(`"expires"`)),e===null?(e=null,i=s):(n=D(),n===null?(e=null,i=s):(r=Jt(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){t!==void 0&&(F.expires=t)})(o,e[2])),e===null&&(i=o),e===null&&(o=i,s=i,t.substr(i,11).toLowerCase()===`retry_after`?(e=t.substr(i,11),i+=11):(e=null,a===0&&c(`"retry_after"`)),e===null?(e=null,i=s):(n=D(),n===null?(e=null,i=s):(r=Jt(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){t!==void 0&&(F.retry_after=t)})(o,e[2])),e===null&&(i=o),e===null&&(e=Xt()))),e}function $n(){var e;return t.substr(i,11).toLowerCase()===`deactivated`?(e=t.substr(i,11),i+=11):(e=null,a===0&&c(`"deactivated"`)),e===null&&(t.substr(i,9).toLowerCase()===`probation`?(e=t.substr(i,9),i+=9):(e=null,a===0&&c(`"probation"`)),e===null&&(t.substr(i,8).toLowerCase()===`rejected`?(e=t.substr(i,8),i+=8):(e=null,a===0&&c(`"rejected"`)),e===null&&(t.substr(i,7).toLowerCase()===`timeout`?(e=t.substr(i,7),i+=7):(e=null,a===0&&c(`"timeout"`)),e===null&&(t.substr(i,6).toLowerCase()===`giveup`?(e=t.substr(i,6),i+=6):(e=null,a===0&&c(`"giveup"`)),e===null&&(t.substr(i,10).toLowerCase()===`noresource`?(e=t.substr(i,10),i+=10):(e=null,a===0&&c(`"noresource"`)),e===null&&(t.substr(i,9).toLowerCase()===`invariant`?(e=t.substr(i,9),i+=9):(e=null,a===0&&c(`"invariant"`)),e===null&&(e=E()))))))),e}function er(){var e=ee();return e=e===null?``:e,e}function tr(){var e,t,n,r,a=i,o;if(e=E(),e!==null){for(t=[],o=i,n=me(),n===null?(n=null,i=o):(r=E(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=me(),n===null?(n=null,i=o):(r=E(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e=e===null?``:e,e}function nr(){var e,t,n,r,a=i,o=i,s;if(e=Se(),e===null&&(e=Ut()),e!==null){for(t=[],s=i,n=he(),n===null?(n=null,i=s):(r=rr(),r===null?(n=null,i=s):n=[n,r]);n!==null;)t.push(n),s=i,n=he(),n===null?(n=null,i=s):(r=rr(),r===null?(n=null,i=s):n=[n,r]);t===null?(e=null,i=o):e=[e,t]}else e=null,i=o;return e!==null&&(e=(function(e){var t=F.tag;try{F=new Hr(F.uri,F.display_name,F.params),t&&F.setParam(`tag`,t)}catch{F=-1}})(a)),e===null&&(i=a),e}function rr(){var e=Sn();return e===null&&(e=Xt()),e}function ir(){var e,t,n,r,a=i,o;if(e=ar(),e!==null){for(t=[],o=i,n=me(),n===null?(n=null,i=o):(r=ar(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=me(),n===null?(n=null,i=o):(r=ar(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function ar(){var e,t,n,r,a,o,s=i,c;if(e=pr(),e!==null)if(t=C(),t!==null)if(n=gr(),n!==null){for(r=[],c=i,a=he(),a===null?(a=null,i=c):(o=or(),o===null?(a=null,i=c):a=[a,o]);a!==null;)r.push(a),c=i,a=he(),a===null?(a=null,i=c):(o=or(),o===null?(a=null,i=c):a=[a,o]);r===null?(e=null,i=s):e=[e,t,n,r]}else e=null,i=s;else e=null,i=s;else e=null,i=s;return e}function or(){var e=sr();return e===null&&(e=cr(),e===null&&(e=lr(),e===null&&(e=ur(),e===null&&(e=dr(),e===null&&(e=Xt()))))),e}function sr(){var e,n,r,o=i,s=i;return t.substr(i,3).toLowerCase()===`ttl`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"ttl"`)),e===null?(e=null,i=s):(n=D(),n===null?(e=null,i=s):(r=yr(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){F.ttl=t})(o,e[2])),e===null&&(i=o),e}function cr(){var e,n,r,o=i,s=i;return t.substr(i,5).toLowerCase()===`maddr`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"maddr"`)),e===null?(e=null,i=s):(n=D(),n===null?(e=null,i=s):(r=Me(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){F.maddr=t})(o,e[2])),e===null&&(i=o),e}function lr(){var e,n,r,o=i,s=i;return t.substr(i,8).toLowerCase()===`received`?(e=t.substr(i,8),i+=8):(e=null,a===0&&c(`"received"`)),e===null?(e=null,i=s):(n=D(),n===null?(e=null,i=s):(r=ze(),r===null&&(r=Le()),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){F.received=t})(o,e[2])),e===null&&(i=o),e}function ur(){var e,n,r,o=i,s=i;return t.substr(i,6).toLowerCase()===`branch`?(e=t.substr(i,6),i+=6):(e=null,a===0&&c(`"branch"`)),e===null?(e=null,i=s):(n=D(),n===null?(e=null,i=s):(r=E(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){F.branch=t})(o,e[2])),e===null&&(i=o),e}function dr(){var e,n,r,o=i,s;return t.substr(i,5).toLowerCase()===`rport`?(e=t.substr(i,5),i+=5):(e=null,a===0&&c(`"rport"`)),e===null?(e=null,i=o):(s=i,n=D(),n===null?(n=null,i=s):(r=fr(),r===null?(n=null,i=s):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=o):e=[e,n]),e}function fr(){var e,t,n,r,a,o=i,s=i;return e=u(),e=e===null?``:e,e===null?(e=null,i=s):(t=u(),t=t===null?``:t,t===null?(e=null,i=s):(n=u(),n=n===null?``:n,n===null?(e=null,i=s):(r=u(),r=r===null?``:r,r===null?(e=null,i=s):(a=u(),a=a===null?``:a,a===null?(e=null,i=s):e=[e,t,n,r,a])))),e!==null&&(e=(function(e,t){F.rport=parseInt(t.join(``))})(o,e)),e===null&&(i=o),e}function pr(){var e,t,n,r,a,o=i;return e=mr(),e===null?(e=null,i=o):(t=le(),t===null?(e=null,i=o):(n=E(),n===null?(e=null,i=o):(r=le(),r===null?(e=null,i=o):(a=hr(),a===null?(e=null,i=o):e=[e,t,n,r,a])))),e}function mr(){var e,n=i;return t.substr(i,3).toLowerCase()===`sip`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"SIP"`)),e===null&&(e=E()),e!==null&&(e=(function(e,t){F.protocol=t})(n,e)),e===null&&(i=n),e}function hr(){var e,n=i;return t.substr(i,3).toLowerCase()===`udp`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"UDP"`)),e===null&&(t.substr(i,3).toLowerCase()===`tcp`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"TCP"`)),e===null&&(t.substr(i,3).toLowerCase()===`tls`?(e=t.substr(i,3),i+=3):(e=null,a===0&&c(`"TLS"`)),e===null&&(t.substr(i,4).toLowerCase()===`sctp`?(e=t.substr(i,4),i+=4):(e=null,a===0&&c(`"SCTP"`)),e===null&&(e=E())))),e!==null&&(e=(function(e,t){F.transport=t})(n,e)),e===null&&(i=n),e}function gr(){var e,t,n,r=i,a;return e=_r(),e===null?(e=null,i=r):(a=i,t=ge(),t===null?(t=null,i=a):(n=vr(),n===null?(t=null,i=a):t=[t,n]),t=t===null?``:t,t===null?(e=null,i=r):e=[e,t]),e}function _r(){var e,n=i;return e=ze(),e===null&&(e=Ie(),e===null&&(e=Ne())),e!==null&&(e=(function(e){F.host=t.substring(i,e)})(n)),e===null&&(i=n),e}function vr(){var e,t,n,r,a,o=i,s=i;return e=u(),e=e===null?``:e,e===null?(e=null,i=s):(t=u(),t=t===null?``:t,t===null?(e=null,i=s):(n=u(),n=n===null?``:n,n===null?(e=null,i=s):(r=u(),r=r===null?``:r,r===null?(e=null,i=s):(a=u(),a=a===null?``:a,a===null?(e=null,i=s):e=[e,t,n,r,a])))),e!==null&&(e=(function(e,t){F.port=parseInt(t.join(``))})(o,e)),e===null&&(i=o),e}function yr(){var e,t,n,r=i,a=i;return e=u(),e===null?(e=null,i=a):(t=u(),t=t===null?``:t,t===null?(e=null,i=a):(n=u(),n=n===null?``:n,n===null?(e=null,i=a):e=[e,t,n])),e!==null&&(e=(function(e,t){return parseInt(t.join(``))})(r,e)),e===null&&(i=r),e}function br(){return Dn()}function xr(){var e,t,n,r,a=i,o;if(e=Sr(),e!==null){for(t=[],o=i,n=he(),n===null?(n=null,i=o):(r=Cr(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=he(),n===null?(n=null,i=o):(r=Cr(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function Sr(){var e,t=i;return e=Jt(),e!==null&&(e=(function(e,t){F.expires=t})(t,e)),e===null&&(i=t),e}function Cr(){var e=P();return e===null&&(e=Xt()),e}function P(){var e,n,r,o=i,s=i;return t.substr(i,9).toLowerCase()===`refresher`?(e=t.substr(i,9),i+=9):(e=null,a===0&&c(`"refresher"`)),e===null?(e=null,i=s):(n=D(),n===null?(e=null,i=s):(t.substr(i,3).toLowerCase()===`uac`?(r=t.substr(i,3),i+=3):(r=null,a===0&&c(`"uac"`)),r===null&&(t.substr(i,3).toLowerCase()===`uas`?(r=t.substr(i,3),i+=3):(r=null,a===0&&c(`"uas"`))),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){F.refresher=t.toLowerCase()})(o,e[2])),e===null&&(i=o),e}function wr(){var e,t,n,r=i;return e=E(),e===null?(e=null,i=r):(t=T(),t===null?(e=null,i=r):(n=Tr(),n===null?(e=null,i=r):e=[e,t,n])),e}function Tr(){var e=[],t=te();for(t===null&&(t=re(),t===null&&(t=C()));t!==null;)e.push(t),t=te(),t===null&&(t=re(),t===null&&(t=C()));return e}function Er(){for(var e=[],t=m();t!==null;)e.push(t),t=m();return e}function Dr(){var e,n,r=i;return t.substr(i,5)===`uuid:`?(e=`uuid:`,i+=5):(e=null,a===0&&c(`"uuid:"`)),e===null?(e=null,i=r):(n=Or(),n===null?(e=null,i=r):e=[e,n]),e}function Or(){var e,n,r,o,s,l,u,d,f,p=i,m=i;return e=Ar(),e===null?(e=null,i=m):(t.charCodeAt(i)===45?(n=`-`,i++):(n=null,a===0&&c(`"-"`)),n===null?(e=null,i=m):(r=kr(),r===null?(e=null,i=m):(t.charCodeAt(i)===45?(o=`-`,i++):(o=null,a===0&&c(`"-"`)),o===null?(e=null,i=m):(s=kr(),s===null?(e=null,i=m):(t.charCodeAt(i)===45?(l=`-`,i++):(l=null,a===0&&c(`"-"`)),l===null?(e=null,i=m):(u=kr(),u===null?(e=null,i=m):(t.charCodeAt(i)===45?(d=`-`,i++):(d=null,a===0&&c(`"-"`)),d===null?(e=null,i=m):(f=jr(),f===null?(e=null,i=m):e=[e,n,r,o,s,l,u,d,f])))))))),e!==null&&(e=(function(e,n){F=t.substring(i+5,e)})(p,e[0])),e===null&&(i=p),e}function kr(){var e,t,n,r,a=i;return e=f(),e===null?(e=null,i=a):(t=f(),t===null?(e=null,i=a):(n=f(),n===null?(e=null,i=a):(r=f(),r===null?(e=null,i=a):e=[e,t,n,r]))),e}function Ar(){var e,t,n=i;return e=kr(),e===null?(e=null,i=n):(t=kr(),t===null?(e=null,i=n):e=[e,t]),e}function jr(){var e,t,n,r=i;return e=kr(),e===null?(e=null,i=r):(t=kr(),t===null?(e=null,i=r):(n=kr(),n===null?(e=null,i=r):e=[e,t,n])),e}function Mr(){var e,t,n,r,a=i,o=i,s;if(e=Se(),e===null&&(e=Ut()),e!==null){for(t=[],s=i,n=he(),n===null?(n=null,i=s):(r=Xt(),r===null?(n=null,i=s):n=[n,r]);n!==null;)t.push(n),s=i,n=he(),n===null?(n=null,i=s):(r=Xt(),r===null?(n=null,i=s):n=[n,r]);t===null?(e=null,i=o):e=[e,t]}else e=null,i=o;return e!==null&&(e=(function(e){try{F=new Hr(F.uri,F.display_name,F.params)}catch{F=-1}})(a)),e===null&&(i=a),e}function Nr(){var e,t,n,r,a=i,o;if(e=Pr(),e!==null){for(t=[],o=i,n=he(),n===null?(n=null,i=o):(r=Fr(),r===null?(n=null,i=o):n=[n,r]);n!==null;)t.push(n),o=i,n=he(),n===null?(n=null,i=o):(r=Fr(),r===null?(n=null,i=o):n=[n,r]);t===null?(e=null,i=a):e=[e,t]}else e=null,i=a;return e}function Pr(){var e,n,r,o=i,s=i,l;return e=se(),e===null?(e=null,i=s):(l=i,t.charCodeAt(i)===64?(n=`@`,i++):(n=null,a===0&&c(`"@"`)),n===null?(n=null,i=l):(r=se(),r===null?(n=null,i=l):n=[n,r]),n=n===null?``:n,n===null?(e=null,i=s):e=[e,n]),e!==null&&(e=(function(e){F.call_id=t.substring(i,e)})(o)),e===null&&(i=o),e}function Fr(){var e=Ir();return e===null&&(e=Lr(),e===null&&(e=Rr(),e===null&&(e=Xt()))),e}function Ir(){var e,n,r,o=i,s=i;return t.substr(i,6)===`to-tag`?(e=`to-tag`,i+=6):(e=null,a===0&&c(`"to-tag"`)),e===null?(e=null,i=s):(n=D(),n===null?(e=null,i=s):(r=E(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){F.to_tag=t})(o,e[2])),e===null&&(i=o),e}function Lr(){var e,n,r,o=i,s=i;return t.substr(i,8)===`from-tag`?(e=`from-tag`,i+=8):(e=null,a===0&&c(`"from-tag"`)),e===null?(e=null,i=s):(n=D(),n===null?(e=null,i=s):(r=E(),r===null?(e=null,i=s):e=[e,n,r])),e!==null&&(e=(function(e,t){F.from_tag=t})(o,e[2])),e===null&&(i=o),e}function Rr(){var e,n=i;return t.substr(i,10)===`early-only`?(e=`early-only`,i+=10):(e=null,a===0&&c(`"early-only"`)),e!==null&&(e=(function(e){F.early_only=!0})(n)),e===null&&(i=n),e}function zr(e){e.sort();for(var t=null,n=[],r=0;r<e.length;r++)e[r]!==t&&(n.push(e[r]),t=e[r]);return n}function Br(){for(var e=1,n=1,r=!1,a=0;a<Math.max(i,o);a++){var s=t.charAt(a);s===`
4815
4815
  `?(r||e++,n=1,r=!1):s===`\r`||s===`\u2028`||s===`\u2029`?(e++,n=1,r=!0):(n++,r=!1)}return{line:e,column:n}}var Vr=u5(),Hr=c5(),F={};if(r[n]()===null||i!==t.length){var Ur=Math.max(i,o),Wr=Ur<t.length?t.charAt(Ur):null,Gr=Br();return new this.SyntaxError(zr(s),Wr,Ur,Gr.line,Gr.column),-1}return F},toSource:function(){return this._source}};return t.SyntaxError=function(t,n,r,i,a){function o(t,n){var r,i;switch(t.length){case 0:r=`end of input`;break;case 1:r=t[0];break;default:r=t.slice(0,t.length-1).join(`, `)+` or `+t[t.length-1]}return i=n?e(n):`end of input`,`Expected `+r+` but `+i+` found.`}this.name=`SyntaxError`,this.expected=t,this.found=n,this.message=o(t,n),this.offset=r,this.line=i,this.column=a},t.SyntaxError.prototype=Error.prototype,t})()})),u5=k(((e,t)=>{var n=o5(),r=d5(),i=l5();t.exports=class e{static parse(e){if(e=i.parse(e,`SIP_URI`),e!==-1)return e}constructor(e,t,r,i,a={},o={}){if(!r)throw TypeError(`missing or invalid "host" parameter`);this._parameters={},this._headers={},this._scheme=e||n.SIP,this._user=t,this._host=r,this._port=i;for(let e in a)Object.prototype.hasOwnProperty.call(a,e)&&this.setParam(e,a[e]);for(let e in o)Object.prototype.hasOwnProperty.call(o,e)&&this.setHeader(e,o[e])}get scheme(){return this._scheme}set scheme(e){this._scheme=e.toLowerCase()}get user(){return this._user}set user(e){this._user=e}get host(){return this._host}set host(e){this._host=e.toLowerCase()}get port(){return this._port}set port(e){this._port=e===0?e:parseInt(e,10)||null}setParam(e,t){e&&(this._parameters[e.toLowerCase()]=t==null?null:t.toString())}getParam(e){if(e)return this._parameters[e.toLowerCase()]}hasParam(e){if(e)return this._parameters.hasOwnProperty(e.toLowerCase())&&!0||!1}deleteParam(e){if(e=e.toLowerCase(),this._parameters.hasOwnProperty(e)){let t=this._parameters[e];return delete this._parameters[e],t}}clearParams(){this._parameters={}}setHeader(e,t){this._headers[r.headerize(e)]=Array.isArray(t)?t:[t]}getHeader(e){if(e)return this._headers[r.headerize(e)]}hasHeader(e){if(e)return this._headers.hasOwnProperty(r.headerize(e))&&!0||!1}deleteHeader(e){if(e=r.headerize(e),this._headers.hasOwnProperty(e)){let t=this._headers[e];return delete this._headers[e],t}}clearHeaders(){this._headers={}}clone(){return new e(this._scheme,this._user,this._host,this._port,JSON.parse(JSON.stringify(this._parameters)),JSON.parse(JSON.stringify(this._headers)))}toString(){let e=[],t=`${this._scheme}:`;this._user&&(t+=`${r.escapeUser(this._user)}@`),t+=this._host,(this._port||this._port===0)&&(t+=`:${this._port}`);for(let e in this._parameters)Object.prototype.hasOwnProperty.call(this._parameters,e)&&(t+=`;${e}`,this._parameters[e]!==null&&(t+=`=${this._parameters[e]}`));for(let t in this._headers)if(Object.prototype.hasOwnProperty.call(this._headers,t))for(let n of this._headers[t])e.push(`${t}=${n}`);return e.length>0&&(t+=`?${e.join(`&`)}`),t}toAor(e){let t=`${this._scheme}:`;return this._user&&(t+=`${r.escapeUser(this._user)}@`),t+=this._host,e&&(this._port||this._port===0)&&(t+=`:${this._port}`),t}}})),d5=k((e=>{var t=o5(),n=u5(),r=l5();e.str_utf8_length=e=>unescape(encodeURIComponent(e)).length;var i=e.isFunction=e=>e===void 0?!1:Object.prototype.toString.call(e)===`[object Function]`;e.isString=e=>e===void 0?!1:Object.prototype.toString.call(e)===`[object String]`,e.isDecimal=e=>!isNaN(e)&&parseFloat(e)===parseInt(e,10),e.isEmpty=e=>e===null||e===``||e===void 0||Array.isArray(e)&&e.length===0||typeof e==`number`&&isNaN(e),e.hasMethods=function(e,...t){for(let n of t)if(i(e[n]))return!1;return!0};var a=e.createRandomToken=(e,t=32)=>{let n,r,i=``;for(n=0;n<e;n++)r=Math.random()*t|0,i+=r.toString(t);return i};e.newTag=()=>a(10),e.newUUID=()=>`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)}),e.hostType=e=>{if(e&&(e=r.parse(e,`host`),e!==-1))return e.host_type};var o=e.escapeUser=e=>encodeURIComponent(decodeURIComponent(e)).replace(/%3A/gi,`:`).replace(/%2B/gi,`+`).replace(/%3F/gi,`?`).replace(/%2F/gi,`/`);e.normalizeTarget=(e,r)=>{if(e){if(e instanceof n)return e;if(typeof e==`string`){let i=e.split(`@`),a,s;switch(i.length){case 1:if(!r)return;a=e,s=r;break;case 2:a=i[0],s=i[1];break;default:a=i.slice(0,i.length-1).join(`@`),s=i[i.length-1]}a=a.replace(/^(sips?|tel):/i,``),/^[-.()]*\+?[0-9\-.()]+$/.test(a)&&(a=a.replace(/[-.()]/g,``)),e=`${t.SIP}:${o(a)}@${s}`;let c;return(c=n.parse(e))?c:void 0}else return}},e.headerize=e=>{let t={"Call-Id":`Call-ID`,Cseq:`CSeq`,"Www-Authenticate":`WWW-Authenticate`},n=e.toLowerCase().replace(/_/g,`-`).split(`-`),r=``,i=n.length,a;for(a=0;a<i;a++)a!==0&&(r+=`-`),r+=n[a].charAt(0).toUpperCase()+n[a].substring(1);return t[r]&&(r=t[r]),r},e.sipErrorCause=e=>{for(let n in t.SIP_ERROR_CAUSES)if(t.SIP_ERROR_CAUSES[n].indexOf(e)!==-1)return t.causes[n];return t.causes.SIP_FAILURE_CODE},e.getRandomTestNetIP=()=>{function e(e,t){return Math.floor(Math.random()*(t-e+1)+e)}return`192.0.2.${e(1,254)}`},e.calculateMD5=e=>{function t(e,t){return e<<t|e>>>32-t}function n(e,t){let n=e&2147483648,r=t&2147483648,i=e&1073741824,a=t&1073741824,o=(e&1073741823)+(t&1073741823);return i&a?o^2147483648^n^r:i|a?o&1073741824?o^3221225472^n^r:o^1073741824^n^r:o^n^r}function r(e,t,n){return e&t|~e&n}function i(e,t,n){return e&n|t&~n}function a(e,t,n){return e^t^n}function o(e,t,n){return t^(e|~n)}function s(e,i,a,o,s,c,l){return e=n(e,n(n(r(i,a,o),s),l)),n(t(e,c),i)}function c(e,r,a,o,s,c,l){return e=n(e,n(n(i(r,a,o),s),l)),n(t(e,c),r)}function l(e,r,i,o,s,c,l){return e=n(e,n(n(a(r,i,o),s),l)),n(t(e,c),r)}function u(e,r,i,a,s,c,l){return e=n(e,n(n(o(r,i,a),s),l)),n(t(e,c),r)}function d(e){let t,n=e.length,r=n+8,i=((r-r%64)/64+1)*16,a=Array(i-1),o=0,s=0;for(;s<n;)t=(s-s%4)/4,o=s%4*8,a[t]=a[t]|e.charCodeAt(s)<<o,s++;return t=(s-s%4)/4,o=s%4*8,a[t]=a[t]|128<<o,a[i-2]=n<<3,a[i-1]=n>>>29,a}function f(e){let t=``,n=``,r,i;for(i=0;i<=3;i++)r=e>>>i*8&255,n=`0${r.toString(16)}`,t+=n.substr(n.length-2,2);return t}function p(e){let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(r&63|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(r&63|128))}return t}let m=[],h,g,_,v,y,b,x,S,C;for(e=p(e),m=d(e),b=1732584193,x=4023233417,S=2562383102,C=271733878,h=0;h<m.length;h+=16)g=b,_=x,v=S,y=C,b=s(b,x,S,C,m[h+0],7,3614090360),C=s(C,b,x,S,m[h+1],12,3905402710),S=s(S,C,b,x,m[h+2],17,606105819),x=s(x,S,C,b,m[h+3],22,3250441966),b=s(b,x,S,C,m[h+4],7,4118548399),C=s(C,b,x,S,m[h+5],12,1200080426),S=s(S,C,b,x,m[h+6],17,2821735955),x=s(x,S,C,b,m[h+7],22,4249261313),b=s(b,x,S,C,m[h+8],7,1770035416),C=s(C,b,x,S,m[h+9],12,2336552879),S=s(S,C,b,x,m[h+10],17,4294925233),x=s(x,S,C,b,m[h+11],22,2304563134),b=s(b,x,S,C,m[h+12],7,1804603682),C=s(C,b,x,S,m[h+13],12,4254626195),S=s(S,C,b,x,m[h+14],17,2792965006),x=s(x,S,C,b,m[h+15],22,1236535329),b=c(b,x,S,C,m[h+1],5,4129170786),C=c(C,b,x,S,m[h+6],9,3225465664),S=c(S,C,b,x,m[h+11],14,643717713),x=c(x,S,C,b,m[h+0],20,3921069994),b=c(b,x,S,C,m[h+5],5,3593408605),C=c(C,b,x,S,m[h+10],9,38016083),S=c(S,C,b,x,m[h+15],14,3634488961),x=c(x,S,C,b,m[h+4],20,3889429448),b=c(b,x,S,C,m[h+9],5,568446438),C=c(C,b,x,S,m[h+14],9,3275163606),S=c(S,C,b,x,m[h+3],14,4107603335),x=c(x,S,C,b,m[h+8],20,1163531501),b=c(b,x,S,C,m[h+13],5,2850285829),C=c(C,b,x,S,m[h+2],9,4243563512),S=c(S,C,b,x,m[h+7],14,1735328473),x=c(x,S,C,b,m[h+12],20,2368359562),b=l(b,x,S,C,m[h+5],4,4294588738),C=l(C,b,x,S,m[h+8],11,2272392833),S=l(S,C,b,x,m[h+11],16,1839030562),x=l(x,S,C,b,m[h+14],23,4259657740),b=l(b,x,S,C,m[h+1],4,2763975236),C=l(C,b,x,S,m[h+4],11,1272893353),S=l(S,C,b,x,m[h+7],16,4139469664),x=l(x,S,C,b,m[h+10],23,3200236656),b=l(b,x,S,C,m[h+13],4,681279174),C=l(C,b,x,S,m[h+0],11,3936430074),S=l(S,C,b,x,m[h+3],16,3572445317),x=l(x,S,C,b,m[h+6],23,76029189),b=l(b,x,S,C,m[h+9],4,3654602809),C=l(C,b,x,S,m[h+12],11,3873151461),S=l(S,C,b,x,m[h+15],16,530742520),x=l(x,S,C,b,m[h+2],23,3299628645),b=u(b,x,S,C,m[h+0],6,4096336452),C=u(C,b,x,S,m[h+7],10,1126891415),S=u(S,C,b,x,m[h+14],15,2878612391),x=u(x,S,C,b,m[h+5],21,4237533241),b=u(b,x,S,C,m[h+12],6,1700485571),C=u(C,b,x,S,m[h+3],10,2399980690),S=u(S,C,b,x,m[h+10],15,4293915773),x=u(x,S,C,b,m[h+1],21,2240044497),b=u(b,x,S,C,m[h+8],6,1873313359),C=u(C,b,x,S,m[h+15],10,4264355552),S=u(S,C,b,x,m[h+6],15,2734768916),x=u(x,S,C,b,m[h+13],21,1309151649),b=u(b,x,S,C,m[h+4],6,4149444226),C=u(C,b,x,S,m[h+11],10,3174756917),S=u(S,C,b,x,m[h+2],15,718787259),x=u(x,S,C,b,m[h+9],21,3951481745),b=n(b,g),x=n(x,_),S=n(S,v),C=n(C,y);return(f(b)+f(x)+f(S)+f(C)).toLowerCase()},e.closeMediaStream=e=>{if(e)try{let t;if(e.getTracks){t=e.getTracks();for(let e of t)e.stop()}else{t=e.getAudioTracks();for(let e of t)e.stop();t=e.getVideoTracks();for(let e of t)e.stop()}}catch{(typeof e.stop==`function`||typeof e.stop==`object`)&&e.stop()}},e.cloneArray=e=>e&&e.slice()||[],e.cloneObject=(e,t={})=>e&&Object.assign({},e)||t})),f5=k(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=e===`error`,a=this._events;if(a!==void 0)i&&=a.error===void 0;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n<l;++n)r(u[n],this,t);return!0};function d(e,t,n,r){var i,o,s;if(l(n),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit(`newListener`,t,n.listener?n.listener:n),o=e._events),s=o[t]),s===void 0)s=o[t]=n,++e._eventsCount;else if(typeof s==`function`?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=u(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r<i.length;++r)a=i[r],a!==`removeListener`&&this.removeAllListeners(a);return this.removeAllListeners(`removeListener`),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],typeof t==`function`)this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function _(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function v(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function y(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){typeof e.removeListener==`function`&&e.removeListener(`error`,i),n([].slice.call(arguments))}x(e,t,a,{once:!0}),t!==`error`&&b(e,i,{once:!0})})}function b(e,t,n){typeof e.on==`function`&&x(e,`error`,t,n)}function x(e,t,n,r){if(typeof e.on==`function`)r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener==`function`)e.addEventListener(t,function i(a){r.once&&e.removeEventListener(t,i),n(a)});else throw TypeError(`The "emitter" argument must be of type EventEmitter. Received type `+typeof e)}})),zZt=k(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),BZt=k(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=zZt(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),p5=k(((e,t)=>{ht(),e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&M!==void 0&&`env`in M&&(t=M.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=BZt()(e);var{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),m5=k(((e,t)=>{var n=p5(),r=`JsSIP`;t.exports=class{constructor(e){e?(this._debug=n.default(`${r}:${e}`),this._warn=n.default(`${r}:WARN:${e}`),this._error=n.default(`${r}:ERROR:${e}`)):(this._debug=n.default(r),this._warn=n.default(`${r}:WARN`),this._error=n.default(`${r}:ERROR`)),this._debug.log=console.info.bind(console),this._warn.log=console.warn.bind(console),this._error.log=console.error.bind(console)}get debug(){return this._debug}get warn(){return this._warn}get error(){return this._error}}})),h5=k(((e,t)=>{var n=t.exports={v:[{name:`version`,reg:/^(\d*)$/}],o:[{name:`origin`,reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:[`username`,`sessionId`,`sessionVersion`,`netType`,`ipVer`,`address`],format:`%s %s %d %s IP%d %s`}],s:[{name:`name`}],i:[{name:`description`}],u:[{name:`uri`}],e:[{name:`email`}],p:[{name:`phone`}],z:[{name:`timezones`}],r:[{name:`repeats`}],t:[{name:`timing`,reg:/^(\d*) (\d*)/,names:[`start`,`stop`],format:`%d %d`}],c:[{name:`connection`,reg:/^IN IP(\d) (\S*)/,names:[`version`,`ip`],format:`IN IP%d %s`}],b:[{push:`bandwidth`,reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:[`type`,`limit`],format:`%s:%s`}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:[`type`,`port`,`protocol`,`payloads`],format:`%s %d %s %s`}],a:[{push:`rtp`,reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:[`payload`,`codec`,`rate`,`encoding`],format:function(e){return e.encoding?`rtpmap:%d %s/%s/%s`:e.rate?`rtpmap:%d %s/%s`:`rtpmap:%d %s`}},{push:`fmtp`,reg:/^fmtp:(\d*) ([\S| ]*)/,names:[`payload`,`config`],format:`fmtp:%d %s`},{name:`control`,reg:/^control:(.*)/,format:`control:%s`},{name:`rtcp`,reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:[`port`,`netType`,`ipVer`,`address`],format:function(e){return e.address==null?`rtcp:%d`:`rtcp:%d %s IP%d %s`}},{push:`rtcpFbTrrInt`,reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:[`payload`,`value`],format:`rtcp-fb:%s trr-int %d`},{push:`rtcpFb`,reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:[`payload`,`type`,`subtype`],format:function(e){return e.subtype==null?`rtcp-fb:%s %s`:`rtcp-fb:%s %s %s`}},{push:`ext`,reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:[`value`,`direction`,`encrypt-uri`,`uri`,`config`],format:function(e){return`extmap:%d`+(e.direction?`/%s`:`%v`)+(e[`encrypt-uri`]?` %s`:`%v`)+` %s`+(e.config?` %s`:``)}},{name:`extmapAllowMixed`,reg:/^(extmap-allow-mixed)/},{push:`crypto`,reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:[`id`,`suite`,`config`,`sessionConfig`],format:function(e){return e.sessionConfig==null?`crypto:%d %s %s`:`crypto:%d %s %s %s`}},{name:`setup`,reg:/^setup:(\w*)/,format:`setup:%s`},{name:`connectionType`,reg:/^connection:(new|existing)/,format:`connection:%s`},{name:`mid`,reg:/^mid:([^\s]*)/,format:`mid:%s`},{name:`msid`,reg:/^msid:(.*)/,format:`msid:%s`},{name:`ptime`,reg:/^ptime:(\d*(?:\.\d*)*)/,format:`ptime:%d`},{name:`maxptime`,reg:/^maxptime:(\d*(?:\.\d*)*)/,format:`maxptime:%d`},{name:`direction`,reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:`icelite`,reg:/^(ice-lite)/},{name:`iceUfrag`,reg:/^ice-ufrag:(\S*)/,format:`ice-ufrag:%s`},{name:`icePwd`,reg:/^ice-pwd:(\S*)/,format:`ice-pwd:%s`},{name:`fingerprint`,reg:/^fingerprint:(\S*) (\S*)/,names:[`type`,`hash`],format:`fingerprint:%s %s`},{push:`candidates`,reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:[`foundation`,`component`,`transport`,`priority`,`ip`,`port`,`type`,`raddr`,`rport`,`tcptype`,`generation`,`network-id`,`network-cost`],format:function(e){var t=`candidate:%s %d %s %d %s %d typ %s`;return t+=e.raddr==null?`%v%v`:` raddr %s rport %d`,t+=e.tcptype==null?`%v`:` tcptype %s`,e.generation!=null&&(t+=` generation %d`),t+=e[`network-id`]==null?`%v`:` network-id %d`,t+=e[`network-cost`]==null?`%v`:` network-cost %d`,t}},{name:`endOfCandidates`,reg:/^(end-of-candidates)/},{name:`remoteCandidates`,reg:/^remote-candidates:(.*)/,format:`remote-candidates:%s`},{name:`iceOptions`,reg:/^ice-options:(\S*)/,format:`ice-options:%s`},{push:`ssrcs`,reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:[`id`,`attribute`,`value`],format:function(e){var t=`ssrc:%d`;return e.attribute!=null&&(t+=` %s`,e.value!=null&&(t+=`:%s`)),t}},{push:`ssrcGroups`,reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:[`semantics`,`ssrcs`],format:`ssrc-group:%s %s`},{name:`msidSemantic`,reg:/^msid-semantic:\s?(\w*) (\S*)/,names:[`semantic`,`token`],format:`msid-semantic: %s %s`},{push:`groups`,reg:/^group:(\w*) (.*)/,names:[`type`,`mids`],format:`group:%s %s`},{name:`rtcpMux`,reg:/^(rtcp-mux)/},{name:`rtcpRsize`,reg:/^(rtcp-rsize)/},{name:`sctpmap`,reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:[`sctpmapNumber`,`app`,`maxMessageSize`],format:function(e){return e.maxMessageSize==null?`sctpmap:%s %s`:`sctpmap:%s %s %s`}},{name:`xGoogleFlag`,reg:/^x-google-flag:([^\s]*)/,format:`x-google-flag:%s`},{push:`rids`,reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:[`id`,`direction`,`params`],format:function(e){return e.params?`rid:%s %s %s`:`rid:%s %s`}},{push:`imageattrs`,reg:RegExp(`^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?`),names:[`pt`,`dir1`,`attrs1`,`dir2`,`attrs2`],format:function(e){return`imageattr:%s %s %s`+(e.dir2?` %s %s`:``)}},{name:`simulcast`,reg:RegExp(`^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$`),names:[`dir1`,`list1`,`dir2`,`list2`],format:function(e){return`simulcast:%s %s`+(e.dir2?` %s %s`:``)}},{name:`simulcast_03`,reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:[`value`],format:`simulcast: %s`},{name:`framerate`,reg:/^framerate:(\d+(?:$|\.\d+))/,format:`framerate:%s`},{name:`sourceFilter`,reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:[`filterMode`,`netType`,`addressTypes`,`destAddress`,`srcList`],format:`source-filter: %s %s %s %s %s`},{name:`bundleOnly`,reg:/^(bundle-only)/},{name:`label`,reg:/^label:(.+)/,format:`label:%s`},{name:`sctpPort`,reg:/^sctp-port:(\d+)$/,format:`sctp-port:%s`},{name:`maxMessageSize`,reg:/^max-message-size:(\d+)$/,format:`max-message-size:%s`},{push:`tsRefClocks`,reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:[`clksrc`,`clksrcExt`],format:function(e){return`ts-refclk:%s`+(e.clksrcExt==null?``:`=%s`)}},{name:`mediaClk`,reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:[`id`,`mediaClockName`,`mediaClockValue`,`rateNumerator`,`rateDenominator`],format:function(e){var t=`mediaclk:`;return t+=e.id==null?`%v%s`:`id=%s %s`,t+=e.mediaClockValue==null?``:`=%s`,t+=e.rateNumerator==null?``:` rate=%s`,t+=e.rateDenominator==null?``:`/%s`,t}},{name:`keywords`,reg:/^keywds:(.+)$/,format:`keywds:%s`},{name:`content`,reg:/^content:(.+)/,format:`content:%s`},{name:`bfcpFloorCtrl`,reg:/^floorctrl:(c-only|s-only|c-s)/,format:`floorctrl:%s`},{name:`bfcpConfId`,reg:/^confid:(\d+)/,format:`confid:%s`},{name:`bfcpUserId`,reg:/^userid:(\d+)/,format:`userid:%s`},{name:`bfcpFloorId`,reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:[`id`,`mStream`],format:`floorid:%s mstrm:%s`},{push:`invalid`,names:[`value`]}]};Object.keys(n).forEach(function(e){n[e].forEach(function(e){e.reg||=/(.*)/,e.format||=`%s`})})})),VZt=k((e=>{var t=function(e){return String(Number(e))===e?Number(e):e},n=function(e,n,r,i){if(i&&!r)n[i]=t(e[1]);else for(var a=0;a<r.length;a+=1)e[a+1]!=null&&(n[r[a]]=t(e[a+1]))},r=function(e,t,r){var i=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:i&&!t[e.name]&&(t[e.name]={});var a=e.push?{}:i?t[e.name]:t;n(r.match(e.reg),a,e.names,e.name),e.push&&t[e.push].push(a)},i=h5(),a=RegExp.prototype.test.bind(/^([a-z])=(.*)/);e.parse=function(e){var t={},n=[],o=t;return e.split(/(\r\n|\r|\n)/).filter(a).forEach(function(e){var t=e[0],a=e.slice(2);t===`m`&&(n.push({rtp:[],fmtp:[]}),o=n[n.length-1]);for(var s=0;s<(i[t]||[]).length;s+=1){var c=i[t][s];if(c.reg.test(a))return r(c,o,a)}}),t.media=n,t};var o=function(e,n){var r=n.split(/=(.+)/,2);return r.length===2?e[r[0]]=t(r[1]):r.length===1&&n.length>1&&(e[r[0]]=void 0),e};e.parseParams=function(e){return e.split(/;\s?/).reduce(o,{})},e.parseFmtpConfig=e.parseParams,e.parsePayloads=function(e){return e.toString().split(` `).map(Number)},e.parseRemoteCandidates=function(e){for(var n=[],r=e.split(` `).map(t),i=0;i<r.length;i+=3)n.push({component:r[i],ip:r[i+1],port:r[i+2]});return n},e.parseImageAttributes=function(e){return e.split(` `).map(function(e){return e.substring(1,e.length-1).split(`,`).reduce(o,{})})},e.parseSimulcastStreamList=function(e){return e.split(`;`).map(function(e){return e.split(`,`).map(function(e){var n,r=!1;return e[0]===`~`?(n=t(e.substring(1,e.length)),r=!0):n=t(e),{scid:n,paused:r}})})}})),HZt=k(((e,t)=>{var n=h5(),r=/%[sdv%]/g,i=function(e){var t=1,n=arguments,i=n.length;return e.replace(r,function(e){if(t>=i)return e;var r=n[t];switch(t+=1,e){case`%%`:return`%`;case`%s`:return String(r);case`%d`:return Number(r);case`%v`:return``}})},a=function(e,t,n){var r=t.format instanceof Function?t.format(t.push?n:n[t.name]):t.format,a=[e+`=`+r];if(t.names)for(var o=0;o<t.names.length;o+=1){var s=t.names[o];t.name?a.push(n[t.name][s]):a.push(n[t.names[o]])}else a.push(n[t.name]);return i.apply(null,a)},o=[`v`,`o`,`s`,`i`,`u`,`e`,`p`,`c`,`b`,`t`,`r`,`z`,`a`],s=[`i`,`c`,`b`,`a`];t.exports=function(e,t){t||={},e.version??=0,e.name??=` `,e.media.forEach(function(e){e.payloads??=``});var r=t.outerOrder||o,i=t.innerOrder||s,c=[];return r.forEach(function(t){n[t].forEach(function(n){n.name in e&&e[n.name]!=null?c.push(a(t,n,e)):n.push in e&&e[n.push]!=null&&e[n.push].forEach(function(e){c.push(a(t,n,e))})})}),e.media.forEach(function(e){c.push(a(`m`,n.m[0],e)),i.forEach(function(t){n[t].forEach(function(n){n.name in e&&e[n.name]!=null?c.push(a(t,n,e)):n.push in e&&e[n.push]!=null&&e[n.push].forEach(function(e){c.push(a(t,n,e))})})})}),c.join(`\r