@webitel/ui-sdk 26.4.51 → 26.4.52

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 (59) hide show
  1. package/dist/{index-7yV8LPEs.js → index-Cmmpjaaw.js} +1 -1
  2. package/dist/{index-IX7fiGyx.js → index-DPoUONAL.js} +1 -1
  3. package/dist/{install-BUa1vI9s.js → install-BKNg655Q.js} +37 -37
  4. package/dist/{isObject-D9NvACRd.js → isObject-DLjfdO5u.js} +1 -1
  5. package/dist/ui-sdk.css +1 -1
  6. package/dist/ui-sdk.js +1 -1
  7. package/dist/ui-sdk.umd.cjs +1 -1
  8. package/dist/{useVidstackSrc-DrgPuS60.js → useVidstackSrc-Bl_rZkGR.js} +1 -1
  9. package/dist/{vidstack-Bq6c3Bam-BBbC1lHS.js → vidstack-Bq6c3Bam-BTBqk6hY.js} +3 -3
  10. package/dist/{vidstack-D2pY00kU-CRDNwYj-.js → vidstack-D2pY00kU-DUQyDRHU.js} +3 -3
  11. package/dist/{vidstack-DDXt6fpN-Dsxo9dnV.js → vidstack-DDXt6fpN-Djlw0s86.js} +2 -2
  12. package/dist/{vidstack-D_-9AA6_-M0PF_1Gb.js → vidstack-D_-9AA6_-Do_TZsJW.js} +2 -2
  13. package/dist/{vidstack-DqAw8m9J-GmX-oEBj.js → vidstack-DqAw8m9J-D9dEhO4u.js} +1 -1
  14. package/dist/{vidstack-audio-bmtRotbW.js → vidstack-audio-LtWvMaOa.js} +2 -2
  15. package/dist/{vidstack-dash-D4zBS1H1.js → vidstack-dash-BRznaqS9.js} +4 -4
  16. package/dist/{vidstack-google-cast-BYM5rQ8K.js → vidstack-google-cast-ncbqKRq2.js} +4 -4
  17. package/dist/{vidstack-hls-CJxXTxR7.js → vidstack-hls-CxWxc-L8.js} +4 -4
  18. package/dist/{vidstack-video-Dr_pjDju.js → vidstack-video-DhqiLLDm.js} +3 -3
  19. package/dist/{vidstack-vimeo-CC3dl2bj.js → vidstack-vimeo-BnJ5krY4.js} +4 -4
  20. package/dist/{vidstack-youtube-Cmt5250K.js → vidstack-youtube-pRKhA09Q.js} +3 -3
  21. package/dist/{wt-action-bar-CN9VakZE.js → wt-action-bar-7Xpxn3d6.js} +1 -1
  22. package/dist/{wt-button-select-Hdw6_SzY.js → wt-button-select-BytMoZS_.js} +1 -1
  23. package/dist/{wt-call-media-action-CysFRLWQ.js → wt-call-media-action-DmYwZIpC.js} +1 -1
  24. package/dist/{wt-chat-emoji-5n_9FKhp.js → wt-chat-emoji-DFTDlUEY.js} +4 -4
  25. package/dist/{wt-confirm-dialog-BKeMowIH.js → wt-confirm-dialog-B0jzcJ5q.js} +1 -1
  26. package/dist/{wt-context-menu-COflN14B.js → wt-context-menu-BlYrI_GJ.js} +1 -1
  27. package/dist/{wt-copy-action-CgCXkDZx.js → wt-copy-action-VKkMg5I4.js} +1 -1
  28. package/dist/{wt-datepicker-CRDHPn5L.js → wt-datepicker-DQuWk1JT.js} +1 -1
  29. package/dist/{wt-display-chip-items-CsBxxDIj.js → wt-display-chip-items-4BXyiNYU.js} +1 -1
  30. package/dist/{wt-dual-panel-VEDmew84.js → wt-dual-panel-C1SWIVPG.js} +1 -1
  31. package/dist/{wt-dummy-C3F8UALY.js → wt-dummy-OHq_4xRg.js} +1 -1
  32. package/dist/{wt-error-page-DfUOuTIJ.js → wt-error-page-22sXOqXT.js} +1 -1
  33. package/dist/{wt-expansion-card-CAxZ7QOa.js → wt-expansion-card--B85xl1m.js} +1 -1
  34. package/dist/{wt-expansion-panel-BwNLQvie.js → wt-expansion-panel-EfO-Kp8h.js} +1 -1
  35. package/dist/{wt-filters-panel-wrapper-gw5etD9x.js → wt-filters-panel-wrapper-B82HAL8S.js} +1 -1
  36. package/dist/{wt-galleria-S_5N54fv.js → wt-galleria-CyiBOnzk.js} +1 -1
  37. package/dist/{wt-inline-add-panel-CvGMxRkP.js → wt-inline-add-panel-C59Am-nO.js} +1 -1
  38. package/dist/{wt-navigation-menu-Cd6hKSt8.js → wt-navigation-menu-74OlWGah.js} +1 -1
  39. package/dist/{wt-notifications-bar-DMQHPjUO.js → wt-notifications-bar-CmEXBoay.js} +2 -2
  40. package/dist/{wt-pagination-BTqSLzX5.js → wt-pagination-C3QC0VT2.js} +1 -1
  41. package/dist/{wt-player-BOUp1C3w.js → wt-player-NHEO1TaM.js} +2 -2
  42. package/dist/{wt-screen-recordings-action-B9DytjMJ.js → wt-screen-recordings-action-DuNRvrO1.js} +1 -1
  43. package/dist/{wt-search-bar-vhHyjsDt.js → wt-search-bar-ow5VlzRH.js} +1 -1
  44. package/dist/{wt-selection-popup-DzN-XRrj.js → wt-selection-popup-BZlz6su2.js} +1 -1
  45. package/dist/{wt-start-page-B0j7k5ZD.js → wt-start-page-CySk8n_P.js} +1 -1
  46. package/dist/{wt-status-select-BJ6aONaZ.js → wt-status-select-DiWx0L_x.js} +1 -1
  47. package/dist/{wt-stepper-BZOvzp4s.js → wt-stepper-3BEAefLa.js} +1 -1
  48. package/dist/{wt-table-CdJkjZpR.js → wt-table-Cy8bJFk8.js} +1 -1
  49. package/dist/{wt-table-actions-BRdVrRdy.js → wt-table-actions-DDg4Nym-.js} +1 -1
  50. package/dist/{wt-table-column-select-bC1IdvdS.js → wt-table-column-select-BHAnmTuD.js} +2 -2
  51. package/dist/{wt-tabs-6iMLaxp2.js → wt-tabs-BD9Jez-9.js} +1 -1
  52. package/dist/{wt-tags-input-CBhld0Uz.js → wt-tags-input-UyCE9TnY.js} +2 -2
  53. package/dist/{wt-timepicker-CesbOb_Q.js → wt-timepicker-BLyYZ9oY.js} +1 -1
  54. package/dist/{wt-tree-B9u8VqV8.js → wt-tree-DWufNmUB.js} +2 -2
  55. package/dist/{wt-tree-table-C5GLX50U.js → wt-tree-table-DMSz1qEO.js} +1 -1
  56. package/dist/{wt-type-extension-value-input-DAaFhvm-.js → wt-type-extension-value-input-CWcD24fv.js} +2 -2
  57. package/dist/{wt-vidstack-player-D21MMwnT.js → wt-vidstack-player-DTWg6M2v.js} +10 -10
  58. package/package.json +1 -1
  59. package/src/components/on-demand/wt-chat-emoji/wt-chat-emoji.vue +1 -1
package/dist/ui-sdk.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ap as s, ao as e } from "./install-BUa1vI9s.js";
1
+ import { ap as s, ao as e } from "./install-BKNg655Q.js";
2
2
  export {
3
3
  s as default,
4
4
  e as fillIconsRepository
@@ -6942,7 +6942,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6942
6942
  `}}class cye extends Ke{static props={when:!1}}class dye extends We(HTMLElement,cye){static tagName="media-layout";#e;onSetup(){this.#e=lt()}onConnect(){oe(this.#t.bind(this))}#t(){const o=this.firstElementChild,i=o?.localName==="template",r=this.$props.when();if(!(mI(r)?r:gi(()=>r(this.#e.player.state))())){i?(this.textContent="",this.appendChild(o)):Wa(o)&&(o.style.display="none");return}i?this.append(o.content.cloneNode(!0)):Wa(o)&&(o.style.display="")}}class pye extends We(HTMLElement,Obe){static tagName="media-google-cast-button"}class uye extends We(HTMLElement,kS){static tagName="media-toggle-button"}class gye extends We(HTMLElement,Tbe){static tagName="media-tooltip"}class fye extends We(HTMLElement,Ebe){static tagName="media-tooltip-trigger";onConnect(){this.style.display="contents"}}class mye extends We(HTMLElement,Abe){static tagName="media-tooltip-content"}class hye extends We(HTMLElement,ybe){static tagName="media-menu-portal";static attrs={disabled:{converter(o){return Me(o)?o:o!==null}}}}class bye extends We(HTMLElement,T0){static tagName="media-chapters-radio-group";onConnect(){ul(this,(o,i)=>{const{cue:r,startTime:l,duration:s}=i,c=o.querySelector(".vds-thumbnail,media-thumbnail"),d=o.querySelector('[data-part="start-time"]'),p=o.querySelector('[data-part="duration"]');d&&(d.textContent=l),p&&(p.textContent=s),c&&(c.setAttribute("time",r.startTime+""),oe(()=>{const u=this.$props.thumbnails();"src"in c?c.src=u:Me(u)&&c.setAttribute("src",u)}))})}}class yye extends We(HTMLElement,TS){static tagName="media-audio-gain-radio-group";onConnect(){ul(this)}}class vye extends We(HTMLElement,IS){static tagName="media-radio-group"}class Cye extends We(HTMLElement,Td){static tagName="media-slider"}const wye=N9('<video muted playsinline preload="none" style="max-width: unset;"></video>');class kye extends We(HTMLElement,jS){static tagName="media-slider-video";#e;#t=this.#o();onSetup(){this.#e=lt(),this.$state.video.set(this.#t)}onConnect(){const{canLoad:o}=this.#e.$state,{src:i,crossOrigin:r}=this.$state;this.#t.parentNode!==this&&this.prepend(this.#t),oe(()=>{Ae(this.#t,"crossorigin",r()),Ae(this.#t,"preload",o()?"auto":"none"),Ae(this.#t,"src",i())})}#o(){return F9(wye)}}class jye extends We(HTMLElement,Rbe){static tagName="media-audio-gain-slider"}class xye extends We(HTMLElement,_be){static tagName="media-speed-slider"}class Iye extends We(HTMLElement,Bbe){static tagName="media-quality-slider"}class Sye extends We(HTMLElement,xS){static tagName="media-slider-chapters";#e=null;onConnect(){yr(()=>{if(!this.connectScope)return;const o=this.querySelector("template");o&&(this.#e=o,oe(this.#t.bind(this)))})}#t(){if(!this.#e)return;const o=$9(this.#e,this.cues.length||1);this.setRefs(o)}}class Tye extends Ke{}class Eye extends We(HTMLElement,Tye){static tagName="media-slider-steps";#e=null;onConnect(o){yr(()=>{this.connectScope&&(this.#e=o.querySelector("template"),this.#e&&oe(this.#t.bind(this)))})}#t(){if(!this.#e)return;const{min:o,max:i,step:r}=ol(Xa),l=(i()-o())/r();$9(this.#e,Math.floor(l)+1)}}class Aye extends We(HTMLElement,qbe){static tagName="media-poster";static attrs={crossOrigin:"crossorigin"};#e=document.createElement("img");onSetup(){this.$state.img.set(this.#e)}onConnect(){const{src:o,alt:i,crossOrigin:r}=this.$state;oe(()=>{const{loading:l,hidden:s}=this.$state;this.#e.style.display=l()||s()?"none":""}),oe(()=>{Ae(this.#e,"alt",i()),Ae(this.#e,"crossorigin",r()),Ae(this.#e,"src",o())}),this.#e.parentNode!==this&&this.prepend(this.#e)}}ze(dye),ze(tye),ze(oye),ze(Aye),ze(eye),ze(gye),ze(fye),ze(mye),ze(P8e),ze(_8e),ze(O8e),ze(D8e),ze(B8e),ze(M8e),ze(L8e),ze(pye),ze(uye),ze(Cye),ze(jye),ze(Q8e),ze(Y8e),ze(xye),ze(Iye),ze(Sye),ze(Eye),ze(X8e),ze(W8e),ze(K8e),ze(kye),ze(F8e),ze(q8e),ze(hye),ze(H8e),ze(U8e),ze($8e),ze(N8e),ze(z8e),ze(yye),ze(Z8e),ze(bye),ze(vye),ze(G8e),ze(V8e),ze(YE),ze(J8e),ze(R8e),ze(A8e),ze(iye),ze(aye),ze(lye);const Lye={class:"controls-group__actions"},Oye=xe(a.defineComponent({__name:"controls-group",setup(n){const{size:o}=a.inject("size");return(i,r)=>(a.openBlock(),a.createElementBlock("media-controls-group",{class:a.normalizeClass(["controls-group",`controls-group--${a.unref(o)}`])},[a.createElementVNode("div",Lye,[a.renderSlot(i.$slots,"default",{},void 0,!0)])],2))}}),[["__scopeId","data-v-435a35bc"]]),Dye=xe(a.defineComponent({__name:"fullscreen-button",emits:["toggle"],setup(n,{emit:o}){const i=o;return(r,l)=>(a.openBlock(),a.createElementBlock("media-fullscreen-button",{class:"fullscreen-button",onMediaEnterFullscreenRequest:l[0]||(l[0]=s=>i("toggle",!0)),onMediaExitFullscreenRequest:l[1]||(l[1]=s=>i("toggle",!1))},[a.createVNode(Ts,{icon:"player-enter-fullscreen",color:"on-dark",class:"fullscreen-button__enter"}),a.createVNode(Ts,{icon:"player-exit-fullscreen",color:"on-dark",class:"fullscreen-button__exit"})],32))}}),[["__scopeId","data-v-3dfe2495"]]),Rye=a.defineComponent({__name:"toggle-button",props:{icon:{},color:{},disabled:{type:Boolean}},emits:["toggle"],setup(n,{emit:o}){const i=n,r=o,l=()=>{i.disabled||r("toggle")};return(s,c)=>(a.openBlock(),a.createElementBlock("div",{class:"toggle-button",onClick:l},[a.createVNode(Ts,{icon:i.icon,color:i.color,disabled:i.disabled},null,8,["icon","color","disabled"])]))}}),_ye={class:"video-display-panel__head"},Bye=["title"],Pye={class:"video-display-panel__controls"},Mye=xe(a.defineComponent({__name:"video-display-panel",props:{title:{},username:{},closable:{type:Boolean},hideExpand:{type:Boolean}},emits:["close"],setup(n,{emit:o}){const{size:i,fullscreen:r,changeSize:l}=a.inject("size"),s=a.computed(()=>i.value===Be.SM?"expand":"collapse"),c=n,d=o,p=m=>{m?i.value!==Be.LG&&(r.value=!0,l(Be.LG)):i.value===Be.LG&&(g(),r.value=!1,l(Be.SM))},u=()=>{i.value===Be.SM?l(Be.MD):i.value===Be.MD?l(Be.SM):i.value===Be.LG&&(g(),r.value=!1,l(Be.MD))},g=()=>{document.fullscreenElement&&document.exitFullscreen()},f=m=>{m.key==="Escape"&&p(!1)};return a.onMounted(()=>{document.addEventListener("fullscreenchange",()=>{document.fullscreenElement||p(!1)}),a.onBeforeUnmount(()=>{document.removeEventListener("keyup",f)})}),(m,h)=>(a.openBlock(),a.createElementBlock("media-controls-group",{class:a.normalizeClass([`video-display-panel--${a.unref(i)}`,"video-display-panel controls-group"])},[a.createElementVNode("div",_ye,[a.renderSlot(m.$slots,"avatar",{},()=>[c.username?(a.openBlock(),a.createBlock(D6,{key:0,username:c.username,size:"sm",class:"video-display-panel__avatar"},null,8,["username"])):a.createCommentVNode("",!0)],!0),a.createElementVNode("span",{class:"video-display-panel__title typo-body-2-bold",title:c.title||c.username},a.toDisplayString(c.title||c.username),9,Bye)]),a.createElementVNode("div",Pye,[a.createVNode(Dye,{onToggle:p}),c.hideExpand?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(Rye,{key:0,icon:s.value,color:"on-dark",onToggle:u},null,8,["icon"])),c.closable?(a.openBlock(),a.createBlock(Ts,{key:1,icon:"close",color:"on-dark",onClick:h[0]||(h[0]=y=>d("close"))})):a.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-f72cdda8"]]),$ye={class:"video-display-panel-wrapper"},Nye={class:"video-layout-content"},Fye={class:"video-layout-controls"},qye=xe(a.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(n,{emit:o}){const{size:i}=a.inject("size"),r=n,l=o;return(s,c)=>(a.openBlock(),a.createElementBlock("media-controls",{class:a.normalizeClass(["video-layout controls",`video-layout--${a.unref(i)}`])},[a.createElementVNode("div",$ye,[r.hideVideoDisplayPanel?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(Mye,{key:0,title:r.title,username:r.username,closable:r.closable,"hide-expand":r.hideExpand,onClose:c[0]||(c[0]=d=>l("close-player"))},a.createSlots({_:2},[s.$slots.avatar?{name:"avatar",fn:a.withCtx(()=>[a.renderSlot(s.$slots,"avatar",{},void 0,!0)]),key:"0"}:void 0]),1032,["title","username","closable","hide-expand"]))]),a.createElementVNode("media-controls-group",Nye,[a.renderSlot(s.$slots,"content",{},void 0,!0)]),a.createElementVNode("div",Fye,[r.hideControlsPanel?a.createCommentVNode("",!0):a.renderSlot(s.$slots,"controls-panel",{key:0},()=>[a.createVNode(a.unref(Gye),{"countdown-time-mode":r.countdownTimeMode},null,8,["countdown-time-mode"])],!0)])],2))}}),[["__scopeId","data-v-e3192d93"]]),Uye={class:"play-button"},Hye=xe(a.defineComponent({__name:"play-button",setup(n){const{size:o}=a.inject("size");return(i,r)=>{const l=a.resolveComponent("wt-button");return a.openBlock(),a.createElementBlock("media-play-button",Uye,[a.createVNode(l,{size:a.unref(o),variant:"outlined",color:"secondary",icon:"play",type:"play",rounded:"","contains-icon":"",class:"play-button__play-icon"},null,8,["size"]),a.createVNode(l,{size:a.unref(o),variant:"outlined",color:"secondary",icon:"pause",type:"pause",rounded:"","contains-icon":"",class:"play-button__pause-icon"},null,8,["size"])])}}}),[["__scopeId","data-v-b5fb70ec"]]),zye={class:"time-slider media-slider"},Zye=xe(a.defineComponent({__name:"time-slider",setup(n){return(o,i)=>(a.openBlock(),a.createElementBlock("media-time-slider",zye,[a.createVNode(E0,{class:"time-slider__slider"})]))}}),[["__scopeId","data-v-fbc2d9f8"]]),Gye=xe(a.defineComponent({__name:"playback-controls-panel",props:{countdownTimeMode:{type:Boolean,default:!1}},setup(n){const o=n;return(i,r)=>(a.openBlock(),a.createBlock(a.unref(Oye),{class:"playback-control-panel"},{default:a.withCtx(()=>[a.createVNode(Hye),a.createVNode(Zye),a.createVNode(iI,{countdown:o.countdownTimeMode},null,8,["countdown"])],void 0,!0),_:1}))}}),[["__scopeId","data-v-9d70f28d"]]),Kye=["autoplay","muted","src"],Wye=Object.freeze(Object.defineProperty({__proto__:null,default:xe(a.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"}},emits:["close","change-size"],setup(n,{emit:o}){const i=n,r=o,l=a.ref(i.size||Be.SM),s=a.ref(!1),c=m=>{l.value=m,r("change-size",m)};a.provide("size",{size:l,fullscreen:s,changeSize:c});const{src:d,mime:p,stream:u}=a.toRefs(i),{normalizedSrcObject:g}=ES({src:d,type:p,stream:u}),f=m=>{i.autoplay&&m.target?.play()};return(m,h)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass([[`wt-vidstack-player--${l.value}`,`wt-vidstack-player-video-object-fit--${i.videoObjectFit}`,s.value&&"wt-vidstack-player--fullscreen",n.stretch&&"wt-vidstack-player--stretch",i.static&&"wt-vidstack-player--static",i.hideBackground&&"wt-vidstack-player--hide-background"],"wt-vidstack-player"])},[a.createElementVNode("media-player",{ref:"player",autoplay:i.autoplay,muted:i.muted,src:a.unref(g),class:"wt-vidstack-player__player","cross-origin":"",playsinline:"",onClose:h[1]||(h[1]=y=>r("close")),onCanPlay:f},[h[2]||(h[2]=a.createElementVNode("media-provider",{class:"wt-vidstack-player__provider"},null,-1)),a.createVNode(a.unref(qye),{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:h[0]||(h[0]=y=>r("close"))},a.createSlots({"controls-panel":a.withCtx(()=>[a.renderSlot(m.$slots,"controls-panel",{size:l.value},void 0,!0)]),content:a.withCtx(()=>[a.renderSlot(m.$slots,"content",{size:l.value},void 0,!0)]),_:2},[m.$slots.avatar?{name:"avatar",fn:a.withCtx(()=>[a.renderSlot(m.$slots,"avatar",{},void 0,!0)]),key:"0"}:void 0]),1032,["autoplay","closable","hide-controls-panel","hide-expand","hide-video-display-panel","title","username","countdown-time-mode"])],40,Kye)],2))}}),[["__scopeId","data-v-cb7058f6"]])},Symbol.toStringTag,{value:"Module"})),$d={FileTypeScreensharing:"file_type_screensharing",FileTypeAudio:"file_type_audio",FileTypeVideo:"file_type_video"},Yye={class:"wt-call-media-action__option"},Xye=Object.freeze(Object.defineProperty({__proto__:null,default:xe(a.defineComponent({__name:"wt-call-media-action",props:{files:{},playingFileId:{default:""}},emits:["play","stop"],setup(n,{emit:o}){const i=n,r=o,l=a.computed(()=>[...i.files[$d.FileTypeAudio]||[],...i.files[$d.FileTypeVideo]||[]]),s=a.computed(()=>i.files[$d.FileTypeVideo]?"preview-tag-video":"play"),c=a.computed(()=>l.value.some(u=>u.id===i.playingFileId)),d=a.computed(()=>l.value.map(({name:u,id:g,mimeType:f,type:m})=>({text:u,id:g,mimeType:f,type:m,icon:f==="video/mp4"?"preview-tag-video":"preview-tag-audio"}))),p=({option:u})=>{i.playingFileId===u.id?r("stop"):r("play",u)};return(u,g)=>{const f=a.resolveComponent("wt-icon-btn"),m=a.resolveComponent("wt-icon"),h=a.resolveComponent("wt-context-menu");return a.openBlock(),a.createBlock(h,{class:"wt-call-media-action",options:d.value,"max-width":"400px",onClick:p},{activator:a.withCtx(({toggle:y})=>[l.value.length?(a.openBlock(),a.createBlock(f,{key:0,icon:c.value?"stop":s.value,onClick:y},null,8,["icon","onClick"])):a.createCommentVNode("",!0)]),option:a.withCtx(({text:y,id:k,icon:v})=>[a.createElementVNode("div",Yye,[a.createVNode(m,{icon:k===n.playingFileId?"stop":v},null,8,["icon"]),a.createTextVNode(" "+a.toDisplayString(y),1)])]),_:1},8,["options"])}}}),[["__scopeId","data-v-a6f7b638"]])},Symbol.toStringTag,{value:"Module"}));function $0(n){if(typeof n!="string"||!n)throw new Error("expected a non-empty string, got: "+n)}function dh(n){if(typeof n!="number")throw new Error("expected a number, got: "+n)}const Qye=1,Jye=1,rs="emoji",gl="keyvalue",ph="favorites",Vye="tokens",XE="tokens",eve="unicode",QE="count",tve="group",ove="order",JE="group-order",uh="eTag",N0="url",VE="skinTone",fl="readonly",gh="readwrite",eA="skinUnicodes",nve="skinUnicodes",ive="https://cdn.jsdelivr.net/npm/emoji-picker-element-data@^1/en/emojibase/data.json",rve="en";function ave(n,o){const i=new Set,r=[];for(const l of n){const s=o(l);i.has(s)||(i.add(s),r.push(l))}return r}function tA(n){return ave(n,o=>o.unicode)}function sve(n){function o(i,r,l){const s=r?n.createObjectStore(i,{keyPath:r}):n.createObjectStore(i);if(l)for(const[c,[d,p]]of Object.entries(l))s.createIndex(c,d,{multiEntry:p});return s}o(gl),o(rs,eve,{[XE]:[Vye,!0],[JE]:[[tve,ove]],[eA]:[nve,!0]}),o(ph,void 0,{[QE]:[""]})}const fh={},F0={},q0={};function oA(n,o,i){i.onerror=()=>o(i.error),i.onblocked=()=>o(new Error("IDB blocked")),i.onsuccess=()=>n(i.result)}async function lve(n){const o=await new Promise((i,r)=>{const l=indexedDB.open(n,Qye);fh[n]=l,l.onupgradeneeded=s=>{s.oldVersion<Jye&&sve(l.result)},oA(i,r,l)});return o.onclose=()=>mh(n),o}function cve(n){return F0[n]||(F0[n]=lve(n)),F0[n]}function wr(n,o,i,r){return new Promise((l,s)=>{const c=n.transaction(o,i,{durability:"relaxed"}),d=typeof o=="string"?c.objectStore(o):o.map(u=>c.objectStore(u));let p;r(d,c,u=>{p=u}),c.oncomplete=()=>l(p),c.onerror=()=>s(c.error)})}function mh(n){const o=fh[n],i=o&&o.result;if(i){i.close();const r=q0[n];if(r)for(const l of r)l()}delete fh[n],delete F0[n],delete q0[n]}function dve(n){return new Promise((o,i)=>{mh(n);const r=indexedDB.deleteDatabase(n);oA(o,i,r)})}function pve(n,o){let i=q0[n];i||(i=q0[n]=[]),i.push(o)}const uve=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#"]);function ml(n){return n.split(/[\s_]+/).map(o=>!o.match(/\w/)||uve.has(o)?o.toLowerCase():o.replace(/[)(:,]/g,"").replace(/’/g,"'").toLowerCase()).filter(Boolean)}const gve=2;function nA(n){return n.filter(Boolean).map(o=>o.toLowerCase()).filter(o=>o.length>=gve)}function fve(n){return n.map(({annotation:i,emoticon:r,group:l,order:s,shortcodes:c,skins:d,tags:p,emoji:u,version:g})=>{const f=[...new Set(nA([...(c||[]).map(ml).flat(),...(p||[]).map(ml).flat(),...ml(i),r]))].sort(),m={annotation:i,group:l,order:s,tags:p,tokens:f,unicode:u,version:g};if(r&&(m.emoticon=r),c&&(m.shortcodes=c),d){m.skinTones=[],m.skinUnicodes=[],m.skinVersions=[];for(const{tone:h,emoji:y,version:k}of d)m.skinTones.push(h),m.skinUnicodes.push(y),m.skinVersions.push(k)}return m})}function iA(n,o,i,r){n[o](i).onsuccess=l=>r&&r(l.target.result)}function as(n,o,i){iA(n,"get",o,i)}function rA(n,o,i){iA(n,"getAll",o,i)}function hh(n){n.commit&&n.commit()}function mve(n,o){let i=n[0];for(let r=1;r<n.length;r++){const l=n[r];o(i)>o(l)&&(i=l)}return i}function aA(n,o){const i=mve(n,l=>l.length),r=[];for(const l of i)n.some(s=>s.findIndex(c=>o(c)===o(l))===-1)||r.push(l);return r}async function hve(n){return!await bh(n,gl,N0)}async function bve(n,o,i){const[r,l]=await Promise.all([uh,N0].map(s=>bh(n,gl,s)));return r===i&&l===o}async function yve(n,o){return wr(n,rs,fl,(r,l,s)=>{let c;const d=()=>{r.getAll(c&&IDBKeyRange.lowerBound(c,!0),50).onsuccess=p=>{const u=p.target.result;for(const g of u)if(c=g.unicode,o(g))return s(g);if(u.length<50)return s();d()}};d()})}async function sA(n,o,i,r){{const l=fve(o);await wr(n,[rs,gl],gh,([s,c],d)=>{let p,u,g=0;function f(){++g===2&&m()}function m(){if(!(p===r&&u===i)){s.clear();for(const h of l)s.put(h);c.put(r,uh),c.put(i,N0),hh(d)}}as(c,uh,h=>{p=h,f()}),as(c,N0,h=>{u=h,f()})})}}async function vve(n,o){return wr(n,rs,fl,(i,r,l)=>{const s=IDBKeyRange.bound([o,0],[o+1,0],!1,!0);rA(i.index(JE),s,l)})}async function lA(n,o){const i=nA(ml(o));return i.length?wr(n,rs,fl,(r,l,s)=>{const c=[],d=()=>{c.length===i.length&&p()},p=()=>{const u=aA(c,g=>g.unicode);s(u.sort((g,f)=>g.order<f.order?-1:1))};for(let u=0;u<i.length;u++){const g=i[u],f=u===i.length-1?IDBKeyRange.bound(g,g+"￿",!1,!0):IDBKeyRange.only(g);rA(r.index(XE),f,m=>{c.push(m),d()})}}):[]}async function Cve(n,o){const i=await lA(n,o);return i.length?i.filter(r=>(r.shortcodes||[]).map(s=>s.toLowerCase()).includes(o.toLowerCase()))[0]||null:await yve(n,l=>(l.shortcodes||[]).includes(o.toLowerCase()))||null}async function wve(n,o){return wr(n,rs,fl,(i,r,l)=>as(i,o,s=>{if(s)return l(s);as(i.index(eA),o,c=>l(c||null))}))}function bh(n,o,i){return wr(n,o,fl,(r,l,s)=>as(r,i,s))}function kve(n,o,i,r){return wr(n,o,gh,(l,s)=>{l.put(r,i),hh(s)})}function jve(n,o){return wr(n,ph,gh,(i,r)=>as(i,o,l=>{i.put((l||0)+1,o),hh(r)}))}function xve(n,o,i){return i===0?[]:wr(n,[ph,rs],fl,([r,l],s,c)=>{const d=[];r.index(QE).openCursor(void 0,"prev").onsuccess=p=>{const u=p.target.result;if(!u)return c(d);function g(h){if(d.push(h),d.length===i)return c(d);u.continue()}const f=u.primaryKey,m=o.byName(f);if(m)return g(m);as(l,f,h=>{if(h)return g(h);u.continue()})}})}const U0="";function Ive(n,o){const i=new Map;for(const l of n){const s=o(l);for(const c of s){let d=i;for(let u=0;u<c.length;u++){const g=c.charAt(u);let f=d.get(g);f||(f=new Map,d.set(g,f)),d=f}let p=d.get(U0);p||(p=[],d.set(U0,p)),p.push(l)}}return(l,s)=>{let c=i;for(let u=0;u<l.length;u++){const g=l.charAt(u),f=c.get(g);if(f)c=f;else return[]}if(s)return c.get(U0)||[];const d=[],p=[c];for(;p.length;){const g=[...p.shift().entries()].sort((f,m)=>f[0]<m[0]?-1:1);for(const[f,m]of g)f===U0?d.push(...m):p.push(m)}return d}}const Sve=["name","url"];function Tve(n){const o=n&&Array.isArray(n),i=o&&n.length&&(!n[0]||Sve.some(r=>!(r in n[0])));if(!o||i)throw new Error("Custom emojis are in the wrong format")}function cA(n){Tve(n);const o=(m,h)=>m.name.toLowerCase()<h.name.toLowerCase()?-1:1,i=n.sort(o),l=Ive(n,m=>{const h=new Set;if(m.shortcodes)for(const y of m.shortcodes)for(const k of ml(y))h.add(k);return h}),s=m=>l(m,!0),c=m=>l(m,!1),d=m=>{const h=ml(m),y=h.map((k,v)=>(v<h.length-1?s:c)(k));return aA(y,k=>k.name).sort(o)},p=new Map,u=new Map;for(const m of n){u.set(m.name.toLowerCase(),m);for(const h of m.shortcodes||[])p.set(h.toLowerCase(),m)}return{all:i,search:d,byShortcode:m=>p.get(m.toLowerCase()),byName:m=>u.get(m.toLowerCase())}}const Eve=typeof wrappedJSObject<"u";function Nd(n){if(!n)return n;if(Eve&&(n=structuredClone(n)),delete n.tokens,n.skinTones){const o=n.skinTones.length;n.skins=Array(o);for(let i=0;i<o;i++)n.skins[i]={tone:n.skinTones[i],unicode:n.skinUnicodes[i],version:n.skinVersions[i]};delete n.skinTones,delete n.skinUnicodes,delete n.skinVersions}return n}function dA(n){n||console.warn("emoji-picker-element is more efficient if the dataSource server exposes an ETag header.")}const Ave=["annotation","emoji","group","order","version"];function Lve(n){if(!n||!Array.isArray(n)||!n[0]||typeof n[0]!="object"||Ave.some(o=>!(o in n[0])))throw new Error("Emoji data is in the wrong format")}function pA(n,o){if(Math.floor(n.status/100)!==2)throw new Error("Failed to fetch: "+o+": "+n.status)}async function Ove(n){const o=await fetch(n,{method:"HEAD"});pA(o,n);const i=o.headers.get("etag");return dA(i),i}async function yh(n){const o=await fetch(n);pA(o,n);const i=o.headers.get("etag");dA(i);const r=await o.json();return Lve(r),[i,r]}function Dve(n){for(var o="",i=new Uint8Array(n),r=i.byteLength,l=-1;++l<r;)o+=String.fromCharCode(i[l]);return o}function Rve(n){for(var o=n.length,i=new ArrayBuffer(o),r=new Uint8Array(i),l=-1;++l<o;)r[l]=n.charCodeAt(l);return i}async function uA(n){const o=JSON.stringify(n);let i=Rve(o);const r=await crypto.subtle.digest("SHA-1",i),l=Dve(r);return btoa(l)}async function _ve(n,o){let i,r=await Ove(o);if(!r){const l=await yh(o);r=l[0],i=l[1],r||(r=await uA(i))}await bve(n,o,r)||(i||(i=(await yh(o))[1]),await sA(n,i,o,r))}async function Bve(n,o){let[i,r]=await yh(o);i||(i=await uA(r)),await sA(n,r,o,i)}async function Pve(n,o){try{await _ve(n,o)}catch(i){if(i.name!=="InvalidStateError")throw i}}class Mve{constructor({dataSource:o=ive,locale:i=rve,customEmoji:r=[]}={}){this.dataSource=o,this.locale=i,this._dbName=`emoji-picker-element-${this.locale}`,this._db=void 0,this._lazyUpdate=void 0,this._custom=cA(r),this._clear=this._clear.bind(this),this._ready=this._init()}async _init(){const o=this._db=await cve(this._dbName);pve(this._dbName,this._clear);const i=this.dataSource;await hve(o)?await Bve(o,i):this._lazyUpdate=Pve(o,i)}async ready(){const o=async()=>(this._ready||(this._ready=this._init()),this._ready);await o(),this._db||await o()}async getEmojiByGroup(o){return dh(o),await this.ready(),tA(await vve(this._db,o)).map(Nd)}async getEmojiBySearchQuery(o){$0(o),await this.ready();const i=this._custom.search(o),r=tA(await lA(this._db,o)).map(Nd);return[...i,...r]}async getEmojiByShortcode(o){$0(o),await this.ready();const i=this._custom.byShortcode(o);return i||Nd(await Cve(this._db,o))}async getEmojiByUnicodeOrName(o){$0(o),await this.ready();const i=this._custom.byName(o);return i||Nd(await wve(this._db,o))}async getPreferredSkinTone(){return await this.ready(),await bh(this._db,gl,VE)||0}async setPreferredSkinTone(o){return dh(o),await this.ready(),kve(this._db,gl,VE,o)}async incrementFavoriteEmojiCount(o){return $0(o),await this.ready(),jve(this._db,o)}async getTopFavoriteEmoji(o){return dh(o),await this.ready(),(await xve(this._db,this._custom,o)).map(Nd)}set customEmoji(o){this._custom=cA(o)}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 mh(this._dbName)}async delete(){await this._shutdown(),await dve(this._dbName)}}const vh=[[-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(([n,o,i])=>({id:n,emoji:o,name:i})),Ch=vh.slice(1),$ve=2,gA=6,fA=typeof requestIdleCallback=="function"?requestIdleCallback:setTimeout;function mA(n){return n.unicode.includes("‍")}const Nve={"🫪":17,"🫩":16,"🫨":15.1,"🫠":14,"🥲":13.1,"🥻":12.1,"🥰":11,"🤩":5,"👱‍♀️":4,"🤣":3,"👁️‍🗨️":2,"😀":1,"😐️":.7,"😃":.6},Fve=1e3,qve="🖐️",Uve=8,Hve=["😊","😒","❤️","👍️","😍","😂","😭","☺️","😔","😩","😏","💕","🙌","😘"],hA='"Twemoji Mozilla","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","EmojiOne Color","Android Emoji",sans-serif',zve=(n,o)=>n<o?-1:n>o?1:0,bA=(n,o)=>{const i=document.createElement("canvas");i.width=i.height=1;const r=i.getContext("2d",{willReadFrequently:!0});return r.textBaseline="top",r.font=`100px ${hA}`,r.fillStyle=o,r.scale(.01,.01),r.fillText(n,0,0),r.getImageData(0,0,1,1).data},Zve=(n,o)=>{const i=[...n].join(","),r=[...o].join(",");return i===r&&!i.startsWith("0,0,0,")};function Gve(n){const o=bA(n,"#000"),i=bA(n,"#fff");return o&&i&&Zve(o,i)}function Kve(){const n=Object.entries(Nve);try{for(const[o,i]of n)if(Gve(o))return i}catch{}return n[0][1]}let wh;const kh=()=>(wh||(wh=new Promise(n=>fA(()=>n(Kve())))),wh),jh=new Map,Wve="️",Yve="\uD83C",Xve="‍",Qve=127995,Jve=57339;function Vve(n,o){if(o===0)return n;const i=n.indexOf(Xve);return i!==-1?n.substring(0,i)+String.fromCodePoint(Qve+o-1)+n.substring(i):(n.endsWith(Wve)&&(n=n.substring(0,n.length-1)),n+Yve+String.fromCodePoint(Jve+o-1))}function Zi(n){n.preventDefault(),n.stopPropagation()}function xh(n,o,i){return o+=n?-1:1,o<0?o=i.length-1:o>=i.length&&(o=0),o}function yA(n,o){const i=new Set,r=[];for(const l of n){const s=o(l);i.has(s)||(i.add(s),r.push(l))}return r}function eCe(n,o){const i=r=>{const l={};for(const s of r)typeof s.tone=="number"&&s.version<=o&&(l[s.tone]=s.unicode);return l};return n.map(({unicode:r,skins:l,shortcodes:s,url:c,name:d,category:p,annotation:u})=>({unicode:r,name:d,shortcodes:s,url:c,category:p,annotation:u,id:r||d,skins:l&&i(l)}))}const H0=requestAnimationFrame;let tCe=typeof ResizeObserver=="function";function oCe(n,o,i){let r;tCe?(r=new ResizeObserver(i),r.observe(n)):H0(i),o.addEventListener("abort",()=>{r&&r.disconnect()})}function vA(n){{const o=document.createRange();return o.selectNode(n.firstChild),o.getBoundingClientRect().width}}let Ih;function nCe(n,o,i){let r=!0;for(const l of n){const s=i(l);if(!s)continue;const c=vA(s);typeof Ih>"u"&&(Ih=vA(o));const d=c/1.8<Ih;jh.set(l.unicode,d),d||(r=!1)}return r}function iCe(n){return yA(n,o=>o)}function rCe(n){n&&(n.scrollTop=0)}function Fd(n,o,i){let r=n.get(o);return r||(r=i(),n.set(o,r)),r}function CA(n){return""+n}function aCe(n){const o=document.createElement("template");return o.innerHTML=n,o}const sCe=new WeakMap,lCe=new WeakMap,cCe=Symbol("un-keyed"),dCe="replaceChildren"in Element.prototype;function pCe(n,o){dCe?n.replaceChildren(...o):(n.innerHTML="",n.append(...o))}function uCe(n,o){let i=n.firstChild,r=0;for(;i;){if(o[r]!==i)return!0;i=i.nextSibling,r++}return r!==o.length}function gCe(n,o){const{targetNode:i}=o;let{targetParentNode:r}=o,l=!1;r?l=uCe(r,n):(l=!0,o.targetNode=void 0,o.targetParentNode=r=i.parentNode),l&&pCe(r,n)}function fCe(n,o){for(const i of o){const{targetNode:r,currentExpression:l,binding:{expressionIndex:s,attributeName:c,attributeValuePre:d,attributeValuePost:p}}=i,u=n[s];if(l!==u)if(i.currentExpression=u,c)if(u===null)r.removeAttribute(c);else{const g=d+CA(u)+p;r.setAttribute(c,g)}else{let g;Array.isArray(u)?gCe(u,i):u instanceof Element?(g=u,r.replaceWith(g)):r.nodeValue=CA(u),g&&(i.targetNode=g)}}}function mCe(n){let o="",i=!1,r=!1,l=-1;const s=new Map,c=[];let d=0;for(let u=0,g=n.length;u<g;u++){const f=n[u];if(o+=f.slice(d),u===g-1)break;for(let w=0;w<f.length;w++)switch(f.charAt(w)){case"<":{f.charAt(w+1)==="/"?c.pop():(i=!0,c.push(++l));break}case">":{i=!1,r=!1;break}case"=":{r=!0;break}}const m=c[c.length-1],h=Fd(s,m,()=>[]);let y,k,v;if(r){const w=/(\S+)="?([^"=]*)$/.exec(f);y=w[1],k=w[2];const S=/^([^">]*)("?)/.exec(n[u+1]);v=S[1],o=o.slice(0,-1*w[0].length),d=S[0].length}else d=0;const C={attributeName:y,attributeValuePre:k,attributeValuePost:v,expressionIndex:u};h.push(C),!i&&!r&&(o+=" ")}return{template:aCe(o),elementsToBindings:s}}function wA(n,o,i){for(let r=0;r<n.length;r++){const l=n[r],s=l.attributeName?o:o.firstChild,c={binding:l,targetNode:s,targetParentNode:void 0,currentExpression:void 0};i.push(c)}}function hCe(n,o){const i=[];let r;if(o.size===1&&(r=o.get(0)))wA(r,n,i);else{const l=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT);let s=n,c=-1;do{const d=o.get(++c);d&&wA(d,s,i)}while(s=l.nextNode())}return i}function bCe(n){const{template:o,elementsToBindings:i}=Fd(sCe,n,()=>mCe(n)),r=o.cloneNode(!0).content.firstElementChild,l=hCe(r,i);return function(c){return fCe(c,l),r}}function yCe(n){const o=Fd(lCe,n,()=>new Map);let i=cCe;function r(s,...c){const d=Fd(o,s,()=>new Map);return Fd(d,i,()=>bCe(s))(c)}function l(s,c,d){return s.map((p,u)=>{const g=i;i=d(p);try{return c(p,u)}finally{i=g}})}return{map:l,html:r}}function vCe(n,o,i,r,l,s,c,d,p){const{labelWithSkin:u,titleForEmoji:g,unicodeWithSkin:f}=i,{html:m,map:h}=yCe(o);function y(w,S,x){return h(w,(I,L)=>m`<button role="${S?"option":"menuitem"}" aria-selected="${S?L===o.activeSearchItem:null}" aria-label="${u(I,o.currentSkinTone)}" title="${g(I)}" class="${"emoji"+(S&&L===o.activeSearchItem?" active":"")+(I.unicode?"":" custom-emoji")}" id="${`${x}-${I.id}`}" style="${I.unicode?null:`--custom-emoji-background: url(${JSON.stringify(I.url)})`}">${I.unicode?f(I,o.currentSkinTone):""}</button>`,I=>`${x}-${I.id}`)}const v=m`<section data-ref="rootElement" class="picker" aria-label="${o.i18n.regionLabel}" style="${o.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="${o.i18n.searchLabel}" autocapitalize="none" autocomplete="off" spellcheck="true" aria-expanded="${!!(o.searchMode&&o.currentEmojis.length)}" aria-controls="search-results" aria-describedby="search-description" aria-autocomplete="list" aria-activedescendant="${o.activeSearchItemId?`emo-${o.activeSearchItemId}`:null}" data-ref="searchElement" data-on-input="onSearchInput" data-on-keydown="onSearchKeydown"><label class="sr-only" for="search">${o.i18n.searchLabel}</label> <span id="search-description" class="sr-only">${o.i18n.searchDescription}</span></div><div class="skintone-button-wrapper ${o.skinTonePickerExpandedAfterAnimation?"expanded":""}"><button id="skintone-button" class="emoji ${o.skinTonePickerExpanded?"hide-focus":""}" aria-label="${o.skinToneButtonLabel}" title="${o.skinToneButtonLabel}" aria-describedby="skintone-description" aria-haspopup="listbox" aria-expanded="${o.skinTonePickerExpanded}" aria-controls="skintone-list" data-on-click="onClickSkinToneButton">${o.skinToneButtonText||""}</button></div><span id="skintone-description" class="sr-only">${o.i18n.skinToneDescription}</span><div data-ref="skinToneDropdown" id="skintone-list" class="skintone-list hide-focus ${o.skinTonePickerExpanded?"":"hidden no-animate"}" style="transform:translateY(${o.skinTonePickerExpanded?0:"calc(-1 * var(--num-skintones) * var(--total-emoji-size))"})" role="listbox" aria-label="${o.i18n.skinTonesLabel}" aria-activedescendant="skintone-${o.activeSkinTone}" aria-hidden="${!o.skinTonePickerExpanded}" tabIndex="-1" data-on-focusout="onSkinToneOptionsFocusOut" data-on-click="onSkinToneOptionsClick" data-on-keydown="onSkinToneOptionsKeydown" data-on-keyup="onSkinToneOptionsKeyup">${h(o.skinTones,(w,S)=>m`<div id="skintone-${S}" class="emoji ${S===o.activeSkinTone?"active":""}" aria-selected="${S===o.activeSkinTone}" role="option" title="${o.i18n.skinTones[S]}" aria-label="${o.i18n.skinTones[S]}">${w}</div>`,w=>w)}</div></div><div class="nav" role="tablist" style="grid-template-columns:repeat(${o.groups.length},1fr)" aria-label="${o.i18n.categoriesLabel}" data-on-keydown="onNavKeydown" data-on-click="onNavClick">${h(o.groups,w=>m`<button role="tab" class="nav-button" aria-controls="tab-${w.id}" aria-label="${o.i18n.categories[w.name]}" aria-selected="${!o.searchMode&&o.currentGroup.id===w.id}" title="${o.i18n.categories[w.name]}" data-group-id="${w.id}"><div class="nav-emoji emoji">${w.emoji}</div></button>`,w=>w.id)}</div><div class="indicator-wrapper"><div class="indicator" style="transform:translateX(${(o.isRtl?-1:1)*o.currentGroupIndex*100}%)"></div></div><div class="message ${o.message?"":"gone"}" role="alert" aria-live="polite">${o.message||""}</div><div data-ref="tabpanelElement" class="tabpanel ${!o.databaseLoaded||o.message?"gone":""}" role="${o.searchMode?"region":"tabpanel"}" aria-label="${o.searchMode?o.i18n.searchResultsLabel:o.i18n.categories[o.currentGroup.name]}" id="${o.searchMode?null:`tab-${o.currentGroup.id}`}" tabIndex="0" data-on-click="onEmojiClick"><div data-action="calculateEmojiGridStyle">${h(o.currentEmojisWithCategories,(w,S)=>m`<div><div id="menu-label-${S}" class="category ${o.currentEmojisWithCategories.length===1&&o.currentEmojisWithCategories[0].category===""?"gone":""}" aria-hidden="true">${o.searchMode?o.i18n.searchResultsLabel:w.category?w.category:o.currentEmojisWithCategories.length>1?o.i18n.categories.custom:o.i18n.categories[o.currentGroup.name]}</div><div class="emoji-menu ${S!==0&&!o.searchMode&&o.currentGroup.id===-1?"visibility-auto":""}" style="${`--num-rows: ${Math.ceil(w.emojis.length/o.numColumns)}`}" data-action="updateOnIntersection" role="${o.searchMode?"listbox":"menu"}" aria-labelledby="menu-label-${S}" id="${o.searchMode?"search-results":null}">${y(w.emojis,o.searchMode,"emo")}</div></div>`,w=>w.category)}</div></div><div class="favorites onscreen emoji-menu ${o.message?"gone":""}" role="menu" aria-label="${o.i18n.favoritesLabel}" data-on-click="onEmojiClick">${y(o.currentFavorites,!1,"fav")}</div><button data-ref="baselineEmoji" aria-hidden="true" tabindex="-1" class="abs-pos hidden emoji baseline-emoji">😀</button></section>`,C=(w,S)=>{for(const x of n.querySelectorAll(`[${w}]`))S(x,x.getAttribute(w))};if(p){n.appendChild(v);for(const w of["click","focusout","input","keydown","keyup"])C(`data-on-${w}`,(S,x)=>{S.addEventListener(w,r[x])});C("data-ref",(w,S)=>{s[S]=w}),c.addEventListener("abort",()=>{n.removeChild(v)})}C("data-action",(w,S)=>{let x=d.get(S);x||d.set(S,x=new WeakSet),x.has(w)||(x.add(w),l[S](w))})}const z0=typeof queueMicrotask=="function"?queueMicrotask:n=>Promise.resolve().then(n);function CCe(n){let o=!1,i;const r=new Map,l=new Set;let s;const c=()=>{if(o)return;const u=[...l];l.clear();try{for(const g of u)g()}finally{s=!1,l.size&&(s=!0,z0(c))}},d=new Proxy({},{get(u,g){if(i){let f=r.get(g);f||(f=new Set,r.set(g,f)),f.add(i)}return u[g]},set(u,g,f){if(u[g]!==f){u[g]=f;const m=r.get(g);if(m){for(const h of m)l.add(h);s||(s=!0,z0(c))}}return!0}}),p=u=>{const g=()=>{const f=i;i=g;try{return u()}finally{i=f}};return g()};return n.addEventListener("abort",()=>{o=!0}),{state:d,createEffect:p}}function Sh(n,o,i){if(n.length!==o.length)return!1;for(let r=0;r<n.length;r++)if(!i(n[r],o[r]))return!1;return!0}const kA=new WeakMap;function wCe(n,o,i){{const r=n.closest(".tabpanel");let l=kA.get(r);l||(l=new IntersectionObserver(i,{root:r,rootMargin:"50% 0px 50% 0px",threshold:0}),kA.set(r,l),o.addEventListener("abort",()=>{l.disconnect()})),l.observe(n)}}const Th=[],{assign:Z0}=Object;function kCe(n,o){const i={},r=new AbortController,l=r.signal,{state:s,createEffect:c}=CCe(l),d=new Map;Z0(s,{skinToneEmoji:void 0,i18n:void 0,database:void 0,customEmoji:void 0,customCategorySorting:void 0,emojiVersion:void 0}),Z0(s,o),Z0(s,{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:Uve,isRtl:!1,currentGroupIndex:0,groups:Ch,databaseLoaded:!1,activeSearchItemId:void 0}),c(()=>{s.currentGroup!==s.groups[s.currentGroupIndex]&&(s.currentGroup=s.groups[s.currentGroupIndex])});const p=K=>{n.getElementById(K).focus()},u=K=>n.getElementById(`emo-${K.id}`),g=(K,X)=>{i.rootElement.dispatchEvent(new CustomEvent(K,{detail:X,bubbles:!0,composed:!0}))},f=(K,X)=>K.id===X.id,m=(K,X)=>{const{category:re,emojis:pe}=K,{category:Ce,emojis:me}=X;return re!==Ce?!1:Sh(pe,me,f)},h=K=>{Sh(s.currentEmojis,K,f)||(s.currentEmojis=K)},y=K=>{s.searchMode!==K&&(s.searchMode=K)},k=K=>{Sh(s.currentEmojisWithCategories,K,m)||(s.currentEmojisWithCategories=K)},v=(K,X)=>X&&K.skins&&K.skins[X]||K.unicode,S={labelWithSkin:(K,X)=>iCe([K.name||v(K,X),K.annotation,...K.shortcodes||Th].filter(Boolean)).join(", "),titleForEmoji:K=>K.annotation||(K.shortcodes||Th).join(", "),unicodeWithSkin:v},x={onClickSkinToneButton:F,onEmojiClick:ae,onNavClick:U,onNavKeydown:M,onSearchKeydown:E,onSkinToneOptionsClick:A,onSkinToneOptionsFocusOut:fe,onSkinToneOptionsKeydown:ce,onSkinToneOptionsKeyup:de,onSearchInput:ve},I={calculateEmojiGridStyle:O,updateOnIntersection:P};let L=!0;c(()=>{vCe(n,s,S,x,I,i,l,d,L),L=!1}),s.emojiVersion||kh().then(K=>{K||(s.message=s.i18n.emojiUnsupportedMessage)}),c(()=>{async function K(){let X=!1;const re=setTimeout(()=>{X=!0,s.message=s.i18n.loadingMessage},Fve);try{await s.database.ready(),s.databaseLoaded=!0}catch(pe){console.error(pe),s.message=s.i18n.networkErrorMessage}finally{clearTimeout(re),X&&(X=!1,s.message="")}}s.database&&K()}),c(()=>{s.pickerStyle=`
6943
6943
  --num-groups: ${s.groups.length};
6944
6944
  --indicator-opacity: ${s.searchMode?0:1};
6945
- --num-skintones: ${gA};`}),c(()=>{s.customEmoji&&s.database&&T()}),c(()=>{s.customEmoji&&s.customEmoji.length?s.groups!==vh&&(s.groups=vh):s.groups!==Ch&&(s.currentGroupIndex&&s.currentGroupIndex--,s.groups=Ch)}),c(()=>{async function K(){s.databaseLoaded&&(s.currentSkinTone=await s.database.getPreferredSkinTone())}K()}),c(()=>{s.skinTones=Array(gA).fill().map((K,X)=>Vve(s.skinToneEmoji,X))}),c(()=>{s.skinToneButtonText=s.skinTones[s.currentSkinTone]}),c(()=>{s.skinToneButtonLabel=s.i18n.skinToneLabel.replace("{skinTone}",s.i18n.skinTones[s.currentSkinTone])}),c(()=>{async function K(){const{database:X}=s,re=(await Promise.all(Hve.map(pe=>X.getEmojiByUnicodeOrName(pe)))).filter(Boolean);s.defaultFavoriteEmojis=re}s.databaseLoaded&&K()});function T(){const{customEmoji:K,database:X}=s,re=K||Th;X.customEmoji!==re&&(X.customEmoji=re)}c(()=>{async function K(){T();const{database:X,defaultFavoriteEmojis:re,numColumns:pe}=s,Ce=await X.getTopFavoriteEmoji(pe),me=await V(yA([...Ce,...re],he=>he.unicode||he.name).slice(0,pe));s.currentFavorites=me}s.databaseLoaded&&s.defaultFavoriteEmojis&&K()});function O(K){oCe(K,l,()=>{{const X=getComputedStyle(i.rootElement),re=parseInt(X.getPropertyValue("--num-columns"),10),pe=X.getPropertyValue("direction")==="rtl";s.numColumns=re,s.isRtl=pe}})}function P(K){wCe(K,l,X=>{for(const{target:re,isIntersecting:pe}of X)re.classList.toggle("onscreen",pe)})}c(()=>{async function K(){const{searchText:X,currentGroup:re,databaseLoaded:pe,customEmoji:Ce}=s;if(!pe)s.currentEmojis=[],s.searchMode=!1;else if(X.length>=$ve){const me=await ee(X);s.searchText===X&&(h(me),y(!0))}else{const{id:me}=re;if(me!==-1||Ce&&Ce.length){const he=await ne(me);s.currentGroup.id===me&&(h(he),y(!1))}}}K()});const z=()=>{H0(()=>rCe(i.tabpanelElement))};c(()=>{const{currentEmojis:K,emojiVersion:X}=s,re=K.filter(pe=>pe.unicode).filter(pe=>mA(pe)&&!jh.has(pe.unicode));if(!X&&re.length)h(K),H0(()=>D(re));else{const pe=X?K:K.filter(_);h(pe),z()}});function D(K){nCe(K,i.baselineEmoji,u)?z():s.currentEmojis=[...s.currentEmojis]}function _(K){return!K.unicode||!mA(K)||jh.get(K.unicode)}async function G(K){const X=s.emojiVersion||await kh();return K.filter(({version:re})=>!re||re<=X)}async function V(K){return eCe(K,s.emojiVersion||await kh())}async function ne(K){const X=K===-1?s.customEmoji:await s.database.getEmojiByGroup(K);return V(await G(X))}async function ee(K){return V(await G(await s.database.getEmojiBySearchQuery(K)))}c(()=>{}),c(()=>{function K(){const{searchMode:re,currentEmojis:pe}=s;if(re)return[{category:"",emojis:pe}];const Ce=new Map;for(const me of pe){const he=me.category||"";let be=Ce.get(he);be||(be=[],Ce.set(he,be)),be.push(me)}return[...Ce.entries()].map(([me,he])=>({category:me,emojis:he})).sort((me,he)=>s.customCategorySorting(me.category,he.category))}const X=K();k(X)}),c(()=>{s.activeSearchItemId=s.activeSearchItem!==-1&&s.currentEmojis[s.activeSearchItem].id}),c(()=>{const{rawSearchText:K}=s;fA(()=>{s.searchText=(K||"").trim(),s.activeSearchItem=-1})});function E(K){if(!s.searchMode||!s.currentEmojis.length)return;const X=re=>{Zi(K),s.activeSearchItem=xh(re,s.activeSearchItem,s.currentEmojis)};switch(K.key){case"ArrowDown":return X(!1);case"ArrowUp":return X(!0);case"Enter":if(s.activeSearchItem===-1)s.activeSearchItem=0;else return Zi(K),Y(s.currentEmojis[s.activeSearchItem].id)}}function U(K){const{target:X}=K,re=X.closest(".nav-button");if(!re)return;const pe=parseInt(re.dataset.groupId,10);i.searchElement.value="",s.rawSearchText="",s.searchText="",s.activeSearchItem=-1,s.currentGroupIndex=s.groups.findIndex(Ce=>Ce.id===pe)}function M(K){const{target:X,key:re}=K,pe=Ce=>{Ce&&(Zi(K),Ce.focus())};switch(re){case"ArrowLeft":return pe(X.previousElementSibling);case"ArrowRight":return pe(X.nextElementSibling);case"Home":return pe(X.parentElement.firstElementChild);case"End":return pe(X.parentElement.lastElementChild)}}async function N(K){const X=await s.database.getEmojiByUnicodeOrName(K),re=[...s.currentEmojis,...s.currentFavorites].find(Ce=>Ce.id===K),pe=re.unicode&&v(re,s.currentSkinTone);return await s.database.incrementFavoriteEmojiCount(K),{emoji:X,skinTone:s.currentSkinTone,...pe&&{unicode:pe},...re.name&&{name:re.name}}}async function Y(K){const X=N(K);g("emoji-click-sync",X),g("emoji-click",await X)}function ae(K){const{target:X}=K;if(!X.classList.contains("emoji"))return;Zi(K);const re=X.id.substring(4);Y(re)}function J(K){s.currentSkinTone=K,s.skinTonePickerExpanded=!1,p("skintone-button"),g("skin-tone-change",{skinTone:K}),s.database.setPreferredSkinTone(K)}function A(K){const{target:{id:X}}=K,re=X&&X.match(/^skintone-(\d)/);if(!re)return;Zi(K);const pe=parseInt(re[1],10);J(pe)}function F(K){s.skinTonePickerExpanded=!s.skinTonePickerExpanded,s.activeSkinTone=s.currentSkinTone,s.skinTonePickerExpanded&&(Zi(K),H0(()=>p("skintone-list")))}c(()=>{s.skinTonePickerExpanded?i.skinToneDropdown.addEventListener("transitionend",()=>{s.skinTonePickerExpandedAfterAnimation=!0},{once:!0}):s.skinTonePickerExpandedAfterAnimation=!1});function ce(K){if(!s.skinTonePickerExpanded)return;const X=async re=>{Zi(K),s.activeSkinTone=re};switch(K.key){case"ArrowUp":return X(xh(!0,s.activeSkinTone,s.skinTones));case"ArrowDown":return X(xh(!1,s.activeSkinTone,s.skinTones));case"Home":return X(0);case"End":return X(s.skinTones.length-1);case"Enter":return Zi(K),J(s.activeSkinTone);case"Escape":return Zi(K),s.skinTonePickerExpanded=!1,p("skintone-button")}}function de(K){if(s.skinTonePickerExpanded&&K.key===" ")return Zi(K),J(s.activeSkinTone)}async function fe(K){const{relatedTarget:X}=K;(!X||X.id!=="skintone-list")&&(s.skinTonePickerExpanded=!1)}function ve(K){s.rawSearchText=K.target.value}return{$set(K){Z0(s,K)},$destroy(){r.abort()}}}const jCe="https://cdn.jsdelivr.net/npm/emoji-picker-element-data@^1/en/emojibase/data.json",xCe="en";var ICe={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"}},SCe=':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)}';const jA=["customEmoji","customCategorySorting","database","dataSource","i18n","locale","skinToneEmoji","emojiVersion"],TCe=`:host{--emoji-font-family:${hA}}`;class Eh extends HTMLElement{constructor(o){super(),this.attachShadow({mode:"open"});const i=document.createElement("style");i.textContent=SCe+TCe,this.shadowRoot.appendChild(i),this._ctx={locale:xCe,dataSource:jCe,skinToneEmoji:qve,customCategorySorting:zve,customEmoji:null,i18n:ICe,emojiVersion:null,...o};for(const r of jA)r!=="database"&&Object.prototype.hasOwnProperty.call(this,r)&&(this._ctx[r]=this[r],delete this[r]);this._dbFlush()}connectedCallback(){IA(this),this._cmp||(this._cmp=kCe(this.shadowRoot,this._ctx))}disconnectedCallback(){IA(this),z0(()=>{if(!this.isConnected&&this._cmp){this._cmp.$destroy(),this._cmp=void 0;const{database:o}=this._ctx;o.close().catch(i=>console.error(i))}})}static get observedAttributes(){return["locale","data-source","skin-tone-emoji","emoji-version"]}attributeChangedCallback(o,i,r){this._set(o.replace(/-([a-z])/g,(l,s)=>s.toUpperCase()),o==="emoji-version"?parseFloat(r):r)}_set(o,i){this._ctx[o]=i,this._cmp&&this._cmp.$set({[o]:i}),["locale","dataSource"].includes(o)&&this._dbFlush()}_dbCreate(){const{locale:o,dataSource:i,database:r}=this._ctx;(!r||r.locale!==o||r.dataSource!==i)&&this._set("database",new Mve({locale:o,dataSource:i}))}_dbFlush(){z0(()=>this._dbCreate())}}const xA={};for(const n of jA)xA[n]={get(){return n==="database"&&this._dbCreate(),this._ctx[n]},set(o){if(n==="database")throw new Error("database is read-only");this._set(n,o)}};Object.defineProperties(Eh.prototype,xA);function IA(n){n instanceof Eh||Object.setPrototypeOf(n,customElements.get(n.tagName.toLowerCase()).prototype)}customElements.get("emoji-picker")||customElements.define("emoji-picker",Eh);var Gi=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof ca=="object"&&ca.global===ca?ca:void 0;function ECe(n,o){return typeof o>"u"?o={autoBom:!1}:typeof o!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["\uFEFF",n],{type:n.type}):n}function Ah(n,o,i){var r=new XMLHttpRequest;r.open("GET",n),r.responseType="blob",r.onload=function(){Lh(r.response,o,i)},r.onerror=function(){console.error("could not download file")},r.send()}function SA(n){var o=new XMLHttpRequest;o.open("HEAD",n,!1);try{o.send()}catch{}return o.status>=200&&o.status<=299}function G0(n){try{n.dispatchEvent(new MouseEvent("click"))}catch{var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(o)}}var TA=Gi.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),Lh=Gi.saveAs||(typeof window!="object"||window!==Gi?function(){}:"download"in HTMLAnchorElement.prototype&&!TA?function(o,i,r){var l=Gi.URL||Gi.webkitURL,s=document.createElement("a");i=i||o.name||"download",s.download=i,s.rel="noopener",typeof o=="string"?(s.href=o,s.origin!==location.origin?SA(s.href)?Ah(o,i,r):G0(s,s.target="_blank"):G0(s)):(s.href=l.createObjectURL(o),setTimeout(function(){l.revokeObjectURL(s.href)},4e4),setTimeout(function(){G0(s)},0))}:"msSaveOrOpenBlob"in navigator?function(o,i,r){if(i=i||o.name||"download",typeof o=="string")if(SA(o))Ah(o,i,r);else{var l=document.createElement("a");l.href=o,l.target="_blank",setTimeout(function(){G0(l)})}else navigator.msSaveOrOpenBlob(ECe(o,r),i)}:function(o,i,r,l){if(l=l||open("","_blank"),l&&(l.document.title=l.document.body.innerText="downloading..."),typeof o=="string")return Ah(o,i,r);var s=o.type==="application/octet-stream",c=/constructor/i.test(Gi.HTMLElement)||Gi.safari,d=/CriOS\/[\d]+/.test(navigator.userAgent);if((d||s&&c||TA)&&typeof FileReader<"u"){var p=new FileReader;p.onloadend=function(){var f=p.result;f=d?f:f.replace(/^data:[^;]*;/,"data:attachment/file;"),l?l.location.href=f:location=f,l=null},p.readAsDataURL(o)}else{var u=Gi.URL||Gi.webkitURL,g=u.createObjectURL(o);l?l.location=g:location.href=g,l=null,setTimeout(function(){u.revokeObjectURL(g)},4e4)}});Gi.saveAs=Lh.saveAs=Lh;var Oh,EA;function ACe(){if(EA)return Oh;EA=1;var n=N1();function o(){this.__data__=new n,this.size=0}return Oh=o,Oh}var Dh,AA;function LCe(){if(AA)return Dh;AA=1;function n(o){var i=this.__data__,r=i.delete(o);return this.size=i.size,r}return Dh=n,Dh}var Rh,LA;function OCe(){if(LA)return Rh;LA=1;function n(o){return this.__data__.get(o)}return Rh=n,Rh}var _h,OA;function DCe(){if(OA)return _h;OA=1;function n(o){return this.__data__.has(o)}return _h=n,_h}var Bh,DA;function RCe(){if(DA)return Bh;DA=1;var n=N1(),o=u3(),i=Vy(),r=200;function l(s,c){var d=this.__data__;if(d instanceof n){var p=d.__data__;if(!o||p.length<r-1)return p.push([s,c]),this.size=++d.size,this;d=this.__data__=new i(p)}return d.set(s,c),this.size=d.size,this}return Bh=l,Bh}var Ph,RA;function _Ce(){if(RA)return Ph;RA=1;var n=N1(),o=ACe(),i=LCe(),r=OCe(),l=DCe(),s=RCe();function c(d){var p=this.__data__=new n(d);this.size=p.size}return c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=r,c.prototype.has=l,c.prototype.set=s,Ph=c,Ph}var Mh,_A;function BCe(){if(_A)return Mh;_A=1;function n(o,i){for(var r=-1,l=o==null?0:o.length;++r<l&&i(o[r],r,o)!==!1;);return o}return Mh=n,Mh}var $h,BA;function PCe(){if(BA)return $h;BA=1;var n=ja(),o=(function(){try{var i=n(Object,"defineProperty");return i({},"",{}),i}catch{}})();return $h=o,$h}var Nh,PA;function MA(){if(PA)return Nh;PA=1;var n=PCe();function o(i,r,l){r=="__proto__"&&n?n(i,r,{configurable:!0,enumerable:!0,value:l,writable:!0}):i[r]=l}return Nh=o,Nh}var Fh,$A;function qh(){if($A)return Fh;$A=1;var n=MA(),o=My(),i=Object.prototype,r=i.hasOwnProperty;function l(s,c,d){var p=s[c];(!(r.call(s,c)&&o(p,d))||d===void 0&&!(c in s))&&n(s,c,d)}return Fh=l,Fh}var Uh,NA;function K0(){if(NA)return Uh;NA=1;var n=qh(),o=MA();function i(r,l,s,c){var d=!s;s||(s={});for(var p=-1,u=l.length;++p<u;){var g=l[p],f=c?c(s[g],r[g],g,s,r):void 0;f===void 0&&(f=r[g]),d?o(s,g,f):n(s,g,f)}return s}return Uh=i,Uh}var Hh,FA;function MCe(){if(FA)return Hh;FA=1;function n(o,i){for(var r=-1,l=Array(o);++r<o;)l[r]=i(r);return l}return Hh=n,Hh}var zh,qA;function $Ce(){if(qA)return zh;qA=1;var n=Zl(),o=As(),i="[object Arguments]";function r(l){return o(l)&&n(l)==i}return zh=r,zh}var Zh,UA;function NCe(){if(UA)return Zh;UA=1;var n=$Ce(),o=As(),i=Object.prototype,r=i.hasOwnProperty,l=i.propertyIsEnumerable,s=n((function(){return arguments})())?n:function(c){return o(c)&&r.call(c,"callee")&&!l.call(c,"callee")};return Zh=s,Zh}var qd={exports:{}},Gh,HA;function FCe(){if(HA)return Gh;HA=1;function n(){return!1}return Gh=n,Gh}qd.exports;var zA;function ZA(){return zA||(zA=1,(function(n,o){var i=oi(),r=FCe(),l=o&&!o.nodeType&&o,s=l&&!0&&n&&!n.nodeType&&n,c=s&&s.exports===l,d=c?i.Buffer:void 0,p=d?d.isBuffer:void 0,u=p||r;n.exports=u})(qd,qd.exports)),qd.exports}var Kh,GA;function KA(){if(GA)return Kh;GA=1;var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;function i(r,l){var s=typeof r;return l=l??n,!!l&&(s=="number"||s!="symbol"&&o.test(r))&&r>-1&&r%1==0&&r<l}return Kh=i,Kh}var Wh,WA;function YA(){if(WA)return Wh;WA=1;var n=9007199254740991;function o(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=n}return Wh=o,Wh}var Yh,XA;function qCe(){if(XA)return Yh;XA=1;var n=Zl(),o=YA(),i=As(),r="[object Arguments]",l="[object Array]",s="[object Boolean]",c="[object Date]",d="[object Error]",p="[object Function]",u="[object Map]",g="[object Number]",f="[object Object]",m="[object RegExp]",h="[object Set]",y="[object String]",k="[object WeakMap]",v="[object ArrayBuffer]",C="[object DataView]",w="[object Float32Array]",S="[object Float64Array]",x="[object Int8Array]",I="[object Int16Array]",L="[object Int32Array]",T="[object Uint8Array]",O="[object Uint8ClampedArray]",P="[object Uint16Array]",z="[object Uint32Array]",D={};D[w]=D[S]=D[x]=D[I]=D[L]=D[T]=D[O]=D[P]=D[z]=!0,D[r]=D[l]=D[v]=D[s]=D[C]=D[c]=D[d]=D[p]=D[u]=D[g]=D[f]=D[m]=D[h]=D[y]=D[k]=!1;function _(G){return i(G)&&o(G.length)&&!!D[n(G)]}return Yh=_,Yh}var Xh,QA;function Qh(){if(QA)return Xh;QA=1;function n(o){return function(i){return o(i)}}return Xh=n,Xh}var Ud={exports:{}};Ud.exports;var JA;function Jh(){return JA||(JA=1,(function(n,o){var i=cy(),r=o&&!o.nodeType&&o,l=r&&!0&&n&&!n.nodeType&&n,s=l&&l.exports===r,c=s&&i.process,d=(function(){try{var p=l&&l.require&&l.require("util").types;return p||c&&c.binding&&c.binding("util")}catch{}})();n.exports=d})(Ud,Ud.exports)),Ud.exports}var Vh,VA;function UCe(){if(VA)return Vh;VA=1;var n=qCe(),o=Qh(),i=Jh(),r=i&&i.isTypedArray,l=r?o(r):n;return Vh=l,Vh}var e4,eL;function tL(){if(eL)return e4;eL=1;var n=MCe(),o=NCe(),i=Es(),r=ZA(),l=KA(),s=UCe(),c=Object.prototype,d=c.hasOwnProperty;function p(u,g){var f=i(u),m=!f&&o(u),h=!f&&!m&&r(u),y=!f&&!m&&!h&&s(u),k=f||m||h||y,v=k?n(u.length,String):[],C=v.length;for(var w in u)(g||d.call(u,w))&&!(k&&(w=="length"||h&&(w=="offset"||w=="parent")||y&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||l(w,C)))&&v.push(w);return v}return e4=p,e4}var t4,oL;function o4(){if(oL)return t4;oL=1;var n=Object.prototype;function o(i){var r=i&&i.constructor,l=typeof r=="function"&&r.prototype||n;return i===l}return t4=o,t4}var n4,nL;function iL(){if(nL)return n4;nL=1;function n(o,i){return function(r){return o(i(r))}}return n4=n,n4}var i4,rL;function HCe(){if(rL)return i4;rL=1;var n=iL(),o=n(Object.keys,Object);return i4=o,i4}var r4,aL;function zCe(){if(aL)return r4;aL=1;var n=o4(),o=HCe(),i=Object.prototype,r=i.hasOwnProperty;function l(s){if(!n(s))return o(s);var c=[];for(var d in Object(s))r.call(s,d)&&d!="constructor"&&c.push(d);return c}return r4=l,r4}var a4,sL;function lL(){if(sL)return a4;sL=1;var n=Cy(),o=YA();function i(r){return r!=null&&o(r.length)&&!n(r)}return a4=i,a4}var s4,cL;function l4(){if(cL)return s4;cL=1;var n=tL(),o=zCe(),i=lL();function r(l){return i(l)?n(l):o(l)}return s4=r,s4}var c4,dL;function ZCe(){if(dL)return c4;dL=1;var n=K0(),o=l4();function i(r,l){return r&&n(l,o(l),r)}return c4=i,c4}var d4,pL;function GCe(){if(pL)return d4;pL=1;function n(o){var i=[];if(o!=null)for(var r in Object(o))i.push(r);return i}return d4=n,d4}var p4,uL;function KCe(){if(uL)return p4;uL=1;var n=ar(),o=o4(),i=GCe(),r=Object.prototype,l=r.hasOwnProperty;function s(c){if(!n(c))return i(c);var d=o(c),p=[];for(var u in c)u=="constructor"&&(d||!l.call(c,u))||p.push(u);return p}return p4=s,p4}var u4,gL;function g4(){if(gL)return u4;gL=1;var n=tL(),o=KCe(),i=lL();function r(l){return i(l)?n(l,!0):o(l)}return u4=r,u4}var f4,fL;function WCe(){if(fL)return f4;fL=1;var n=K0(),o=g4();function i(r,l){return r&&n(l,o(l),r)}return f4=i,f4}var Hd={exports:{}};Hd.exports;var mL;function YCe(){return mL||(mL=1,(function(n,o){var i=oi(),r=o&&!o.nodeType&&o,l=r&&!0&&n&&!n.nodeType&&n,s=l&&l.exports===r,c=s?i.Buffer:void 0,d=c?c.allocUnsafe:void 0;function p(u,g){if(g)return u.slice();var f=u.length,m=d?d(f):new u.constructor(f);return u.copy(m),m}n.exports=p})(Hd,Hd.exports)),Hd.exports}var m4,hL;function XCe(){if(hL)return m4;hL=1;function n(o,i){var r=-1,l=o.length;for(i||(i=Array(l));++r<l;)i[r]=o[r];return i}return m4=n,m4}var h4,bL;function QCe(){if(bL)return h4;bL=1;function n(o,i){for(var r=-1,l=o==null?0:o.length,s=0,c=[];++r<l;){var d=o[r];i(d,r,o)&&(c[s++]=d)}return c}return h4=n,h4}var b4,yL;function vL(){if(yL)return b4;yL=1;function n(){return[]}return b4=n,b4}var y4,CL;function v4(){if(CL)return y4;CL=1;var n=QCe(),o=vL(),i=Object.prototype,r=i.propertyIsEnumerable,l=Object.getOwnPropertySymbols,s=l?function(c){return c==null?[]:(c=Object(c),n(l(c),function(d){return r.call(c,d)}))}:o;return y4=s,y4}var C4,wL;function JCe(){if(wL)return C4;wL=1;var n=K0(),o=v4();function i(r,l){return n(r,o(r),l)}return C4=i,C4}var w4,kL;function jL(){if(kL)return w4;kL=1;function n(o,i){for(var r=-1,l=i.length,s=o.length;++r<l;)o[s+r]=i[r];return o}return w4=n,w4}var k4,xL;function IL(){if(xL)return k4;xL=1;var n=iL(),o=n(Object.getPrototypeOf,Object);return k4=o,k4}var j4,SL;function TL(){if(SL)return j4;SL=1;var n=jL(),o=IL(),i=v4(),r=vL(),l=Object.getOwnPropertySymbols,s=l?function(c){for(var d=[];c;)n(d,i(c)),c=o(c);return d}:r;return j4=s,j4}var x4,EL;function VCe(){if(EL)return x4;EL=1;var n=K0(),o=TL();function i(r,l){return n(r,o(r),l)}return x4=i,x4}var I4,AL;function LL(){if(AL)return I4;AL=1;var n=jL(),o=Es();function i(r,l,s){var c=l(r);return o(r)?c:n(c,s(r))}return I4=i,I4}var S4,OL;function ewe(){if(OL)return S4;OL=1;var n=LL(),o=v4(),i=l4();function r(l){return n(l,i,o)}return S4=r,S4}var T4,DL;function twe(){if(DL)return T4;DL=1;var n=LL(),o=TL(),i=g4();function r(l){return n(l,i,o)}return T4=r,T4}var E4,RL;function owe(){if(RL)return E4;RL=1;var n=ja(),o=oi(),i=n(o,"DataView");return E4=i,E4}var A4,_L;function nwe(){if(_L)return A4;_L=1;var n=ja(),o=oi(),i=n(o,"Promise");return A4=i,A4}var L4,BL;function iwe(){if(BL)return L4;BL=1;var n=ja(),o=oi(),i=n(o,"Set");return L4=i,L4}var O4,PL;function rwe(){if(PL)return O4;PL=1;var n=ja(),o=oi(),i=n(o,"WeakMap");return O4=i,O4}var D4,ML;function R4(){if(ML)return D4;ML=1;var n=owe(),o=u3(),i=nwe(),r=iwe(),l=rwe(),s=Zl(),c=xy(),d="[object Map]",p="[object Object]",u="[object Promise]",g="[object Set]",f="[object WeakMap]",m="[object DataView]",h=c(n),y=c(o),k=c(i),v=c(r),C=c(l),w=s;return(n&&w(new n(new ArrayBuffer(1)))!=m||o&&w(new o)!=d||i&&w(i.resolve())!=u||r&&w(new r)!=g||l&&w(new l)!=f)&&(w=function(S){var x=s(S),I=x==p?S.constructor:void 0,L=I?c(I):"";if(L)switch(L){case h:return m;case y:return d;case k:return u;case v:return g;case C:return f}return x}),D4=w,D4}var _4,$L;function awe(){if($L)return _4;$L=1;var n=Object.prototype,o=n.hasOwnProperty;function i(r){var l=r.length,s=new r.constructor(l);return l&&typeof r[0]=="string"&&o.call(r,"index")&&(s.index=r.index,s.input=r.input),s}return _4=i,_4}var B4,NL;function swe(){if(NL)return B4;NL=1;var n=oi(),o=n.Uint8Array;return B4=o,B4}var P4,FL;function M4(){if(FL)return P4;FL=1;var n=swe();function o(i){var r=new i.constructor(i.byteLength);return new n(r).set(new n(i)),r}return P4=o,P4}var $4,qL;function lwe(){if(qL)return $4;qL=1;var n=M4();function o(i,r){var l=r?n(i.buffer):i.buffer;return new i.constructor(l,i.byteOffset,i.byteLength)}return $4=o,$4}var N4,UL;function cwe(){if(UL)return N4;UL=1;var n=/\w*$/;function o(i){var r=new i.constructor(i.source,n.exec(i));return r.lastIndex=i.lastIndex,r}return N4=o,N4}var F4,HL;function dwe(){if(HL)return F4;HL=1;var n=B1(),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;function r(l){return i?Object(i.call(l)):{}}return F4=r,F4}var q4,zL;function pwe(){if(zL)return q4;zL=1;var n=M4();function o(i,r){var l=r?n(i.buffer):i.buffer;return new i.constructor(l,i.byteOffset,i.length)}return q4=o,q4}var U4,ZL;function uwe(){if(ZL)return U4;ZL=1;var n=M4(),o=lwe(),i=cwe(),r=dwe(),l=pwe(),s="[object Boolean]",c="[object Date]",d="[object Map]",p="[object Number]",u="[object RegExp]",g="[object Set]",f="[object String]",m="[object Symbol]",h="[object ArrayBuffer]",y="[object DataView]",k="[object Float32Array]",v="[object Float64Array]",C="[object Int8Array]",w="[object Int16Array]",S="[object Int32Array]",x="[object Uint8Array]",I="[object Uint8ClampedArray]",L="[object Uint16Array]",T="[object Uint32Array]";function O(P,z,D){var _=P.constructor;switch(z){case h:return n(P);case s:case c:return new _(+P);case y:return o(P,D);case k:case v:case C:case w:case S:case x:case I:case L:case T:return l(P,D);case d:return new _;case p:case f:return new _(P);case u:return i(P);case g:return new _;case m:return r(P)}}return U4=O,U4}var H4,GL;function gwe(){if(GL)return H4;GL=1;var n=ar(),o=Object.create,i=(function(){function r(){}return function(l){if(!n(l))return{};if(o)return o(l);r.prototype=l;var s=new r;return r.prototype=void 0,s}})();return H4=i,H4}var z4,KL;function fwe(){if(KL)return z4;KL=1;var n=gwe(),o=IL(),i=o4();function r(l){return typeof l.constructor=="function"&&!i(l)?n(o(l)):{}}return z4=r,z4}var Z4,WL;function mwe(){if(WL)return Z4;WL=1;var n=R4(),o=As(),i="[object Map]";function r(l){return o(l)&&n(l)==i}return Z4=r,Z4}var G4,YL;function hwe(){if(YL)return G4;YL=1;var n=mwe(),o=Qh(),i=Jh(),r=i&&i.isMap,l=r?o(r):n;return G4=l,G4}var K4,XL;function bwe(){if(XL)return K4;XL=1;var n=R4(),o=As(),i="[object Set]";function r(l){return o(l)&&n(l)==i}return K4=r,K4}var W4,QL;function ywe(){if(QL)return W4;QL=1;var n=bwe(),o=Qh(),i=Jh(),r=i&&i.isSet,l=r?o(r):n;return W4=l,W4}var Y4,JL;function vwe(){if(JL)return Y4;JL=1;var n=_Ce(),o=BCe(),i=qh(),r=ZCe(),l=WCe(),s=YCe(),c=XCe(),d=JCe(),p=VCe(),u=ewe(),g=twe(),f=R4(),m=awe(),h=uwe(),y=fwe(),k=Es(),v=ZA(),C=hwe(),w=ar(),S=ywe(),x=l4(),I=g4(),L=1,T=2,O=4,P="[object Arguments]",z="[object Array]",D="[object Boolean]",_="[object Date]",G="[object Error]",V="[object Function]",ne="[object GeneratorFunction]",ee="[object Map]",E="[object Number]",U="[object Object]",M="[object RegExp]",N="[object Set]",Y="[object String]",ae="[object Symbol]",J="[object WeakMap]",A="[object ArrayBuffer]",F="[object DataView]",ce="[object Float32Array]",de="[object Float64Array]",fe="[object Int8Array]",ve="[object Int16Array]",K="[object Int32Array]",X="[object Uint8Array]",re="[object Uint8ClampedArray]",pe="[object Uint16Array]",Ce="[object Uint32Array]",me={};me[P]=me[z]=me[A]=me[F]=me[D]=me[_]=me[ce]=me[de]=me[fe]=me[ve]=me[K]=me[ee]=me[E]=me[U]=me[M]=me[N]=me[Y]=me[ae]=me[X]=me[re]=me[pe]=me[Ce]=!0,me[G]=me[V]=me[J]=!1;function he(be,H,W,le,we,qe){var Ne,De=H&L,ie=H&T,ue=H&O;if(W&&(Ne=we?W(be,le,we,qe):W(be)),Ne!==void 0)return Ne;if(!w(be))return be;var $e=k(be);if($e){if(Ne=m(be),!De)return c(be,Ne)}else{var Ye=f(be),Rt=Ye==V||Ye==ne;if(v(be))return s(be,De);if(Ye==U||Ye==P||Rt&&!we){if(Ne=ie||Rt?{}:y(be),!De)return ie?p(be,l(Ne,be)):d(be,r(Ne,be))}else{if(!me[Ye])return we?be:{};Ne=h(be,Ye,De)}}qe||(qe=new n);var R=qe.get(be);if(R)return R;qe.set(be,Ne),S(be)?be.forEach(function(B){Ne.add(he(B,H,W,B,be,qe))}):C(be)&&be.forEach(function(B,Z){Ne.set(Z,he(B,H,W,Z,be,qe))});var b=ue?ie?g:u:ie?I:x,j=$e?void 0:b(be);return o(j||be,function(B,Z){j&&(Z=B,B=be[Z]),i(Ne,Z,he(B,H,W,Z,be,qe))}),Ne}return Y4=he,Y4}var X4,VL;function Cwe(){if(VL)return X4;VL=1;var n=vwe(),o=1,i=4;function r(l){return n(l,o|i)}return X4=r,X4}Cwe();var Q4,eO;function wwe(){if(eO)return Q4;eO=1;var n=qh(),o=sv(),i=KA(),r=ar(),l=cv();function s(c,d,p,u){if(!r(c))return c;d=o(d,c);for(var g=-1,f=d.length,m=f-1,h=c;h!=null&&++g<f;){var y=l(d[g]),k=p;if(y==="__proto__"||y==="constructor"||y==="prototype")return c;if(g!=m){var v=h[y];k=u?u(v,y,h):void 0,k===void 0&&(k=r(v)?v:i(d[g+1])?[]:{})}n(h,y,k),h=h[y]}return c}return Q4=s,Q4}var J4,tO;function kwe(){if(tO)return J4;tO=1;var n=wwe();function o(i,r,l){return i==null?i:n(i,r,l)}return J4=o,J4}kwe();const jwe={class:"wt-chat-emoji"},xwe={__name:"wt-chat-emoji",props:{size:{type:String,default:Be.MD},popupTeleportTo:{type:String,default:""},filled:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1}},emits:["insert-emoji"],setup(n,{emit:o}){const i=n,r=o,l=a.ref(null),s=a.ref(!1),c=a.ref(null),d=a.computed(()=>i.popupTeleportTo||"body"),p=a.computed(()=>i.filled||s.value?"active":"outlined"),u=async()=>{c.value||(c.value=document.createElement("emoji-picker"),g(),c.value.addEventListener("emoji-click",f))},g=()=>{l.value&&c.value&&l.value.appendChild(c.value)},f=v=>{const{unicode:C}=v.detail;r("insert-emoji",C),m()},m=()=>{s.value=!1,c.value&&l.value&&(c.value.removeEventListener("emoji-click",f),l.value.removeChild(c.value),c.value=null)},h=v=>{l.value?.contains(v.target)||m()},y=async()=>{k(),s.value=!s.value,s.value?(await a.nextTick(),await u()):m()},k=()=>nI.$emit("chat-input-focus");return a.onBeforeUnmount(()=>{m()}),(v,C)=>{const w=a.resolveDirective("clickaway");return a.withDirectives((a.openBlock(),a.createElementBlock("div",jwe,[a.createVNode(a.unref(X6),{size:n.size,variant:p.value,color:"secondary",icon:"chat-emoji",rounded:n.rounded,wide:"",onClick:y},null,8,["size","variant","rounded"]),(a.openBlock(),a.createBlock(a.Teleport,{disabled:!n.popupTeleportTo,to:d.value},[s.value?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"emojiPickerWrapper",ref:l,class:"wt-chat-emoji__wrapper"},null,512)):a.createCommentVNode("",!0)],8,["disabled","to"]))])),[[w,h]])}}},Iwe=Object.freeze(Object.defineProperty({__proto__:null,default:xe(xwe,[["__scopeId","data-v-82f32294"]])},Symbol.toStringTag,{value:"Module"})),Swe={class:"wt-display-chip-items"},Twe={key:0},Ewe=["onClick"],Awe=Object.freeze(Object.defineProperty({__proto__:null,default:xe(a.defineComponent({__name:"wt-display-chip-items",props:{hideFirstItem:{type:Boolean},useEmptySymbol:{type:Boolean},title:{},items:{}},setup(n){const o=n,i=a.computed(()=>o.items?.length?o.items[0]?.name:o.useEmptySymbol?Rp:""),r=a.computed(()=>o.items?.length?o.hideFirstItem?o.items:o.items.slice(1):[]);return(l,s)=>(a.openBlock(),a.createElementBlock("div",Swe,[o.title?(a.openBlock(),a.createElementBlock("p",Twe,a.toDisplayString(n.title)+":",1)):a.createCommentVNode("",!0),o.hideFirstItem?a.createCommentVNode("",!0):a.renderSlot(l.$slots,"first-item",{key:1},()=>[a.createTextVNode(a.toDisplayString(a.unref(rB)(i.value)),1)],!0),a.createVNode(a.unref(_C),null,{activator:a.withCtx(({toggle:c})=>[a.renderSlot(l.$slots,"activator",{toggle:c},()=>[r.value.length?(a.openBlock(),a.createElementBlock("div",{key:0,onClick:c},[a.createVNode(a.unref(Q6),null,{default:a.withCtx(()=>[a.createTextVNode(" +"+a.toDisplayString(r.value.length),1)],void 0,!0),_:1})],8,Ewe)):a.createCommentVNode("",!0)],!0)]),default:a.withCtx(()=>[a.renderSlot(l.$slots,"items",{items:r.value},()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,({name:c,id:d})=>(a.openBlock(),a.createElementBlock("div",{key:d},a.toDisplayString(c),1))),128))],!0)]),_:3})]))}}),[["__scopeId","data-v-4c67fbb7"]])},Symbol.toStringTag,{value:"Module"})),Lwe={class:"nav-menu__category nav-menu-lvl-1"},Owe=["onClick"],Dwe=xe({__name:"nav-menu-lvl-1",props:{categories:{type:Array,default:()=>[]},selected:{type:Object,default:()=>({})},icons:{type:Array,default:()=>[]}},emits:["select"],setup(n,{emit:o}){const i=o;function r(l){i("select",l)}return(l,s)=>{const c=a.resolveComponent("wt-icon");return a.openBlock(),a.createElementBlock("ul",Lwe,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.categories,(d,p)=>(a.openBlock(),a.createElementBlock("li",{key:p,class:"nav-menu__option"},[a.createElementVNode("button",{class:a.normalizeClass([{"nav-menu__item--selected":n.selected.value===d.value},"typo-body-1 nav-menu__item nav-menu__item--active"]),onClick:u=>r(d)},[a.createVNode(c,{color:n.selected.value===d.value?"on-primary":"default",icon:n.icons.find(u=>u.includes(d.value))},null,8,["color","icon"]),a.createTextVNode(" "+a.toDisplayString(d.name),1)],10,Owe),a.withDirectives(a.createElementVNode("div",null,[a.renderSlot(l.$slots,"default",{},void 0,!0)],512),[[a.vShow,n.selected.value===d.value]])]))),128))])}}},[["__scopeId","data-v-dd3e01a2"]]),Rwe={class:"nav-menu__category nav-menu-lvl-2"},oO=xe({__name:"nav-menu-lvl-2",props:{categories:{type:Array,default:()=>[]}},setup(n){return(o,i)=>{const r=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("ul",Rwe,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.categories,(l,s)=>(a.openBlock(),a.createElementBlock("li",{key:s,class:"typo-body-1 nav-menu__option nav-menu__item nav-menu-lvl-2--inner"},[i[0]||(i[0]=a.createElementVNode("span",{class:"nav-menu-lvl-2__indicator"},null,-1)),a.createVNode(r,{to:l.route,class:"nav-menu-lvl-2__link"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l.name),1)],void 0,!0),_:2},1032,["to"])]))),128))])}}},[["__scopeId","data-v-d3104e61"]]),_we={class:"wt-navigation-menu"},Bwe={class:"wt-navigation-menu__wrapper"},Pwe=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"wt-navigation-menu",props:{nav:{type:Array,required:!0},icons:{type:Array,default:()=>[]}},setup(n){const o=n,i=a.ref(""),r=a.computed(()=>{const u=new Map;return o.nav.forEach(g=>{u.set(g.value,{...g,name:g.name})}),u}),l=a.computed(()=>{const u=new Map;return o.nav.forEach(g=>{if(g.subNav){const f=g.subNav.map(m=>{const h=g.route?`${g.route}/${m.route}`:m.route;return{...m,name:m.name,route:h}});u.set(g.value,f)}else u.set(g.value,[])}),u}),s=a.computed(()=>Array.from(r.value.values()).filter(u=>{const g=l.value.get(u.value);return g&&g.length>0})),c=a.computed(()=>l.value.get(d.value?.value)||[]),d=a.computed(()=>r.value.get(i.value)||s.value[0]);function p(u){i.value=u.value}return(u,g)=>(a.openBlock(),a.createElementBlock("section",_we,[a.createElementVNode("article",Bwe,[a.createVNode(Dwe,{categories:s.value,icons:n.icons,selected:d.value,onSelect:p},{default:a.withCtx(()=>[a.createVNode(oO,{categories:c.value,class:"wt-navigation-menu__categories--display"},null,8,["categories"])],void 0,!0),_:1},8,["categories","icons","selected"]),a.createVNode(oO,{categories:c.value,class:"wt-navigation-menu__categories--hidden"},null,8,["categories"])])]))}},[["__scopeId","data-v-fcbc24f4"]])},Symbol.toStringTag,{value:"Module"})),Mwe={class:"wt-selection-popup__options"},$we=["onClick"],Nwe={class:"wt-selection-popup__item-header typo-subtitle-2"},Fwe={key:1,class:"popup-options__item-text"},qwe=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"wt-selection-popup",props:{title:{type:String},selected:{type:Object},options:{type:Array,default:()=>[]}},emits:["change","add","close"],setup(n,{emit:o}){const i=n,r=o,{t:l}=Pn();function s(){r("add",i.selected)}function c(){r("close")}function d(p){r("change",p)}return(p,u)=>{const g=a.resolveComponent("wt-icon"),f=a.resolveComponent("wt-icon-btn"),m=a.resolveComponent("wt-button"),h=a.resolveComponent("wt-popup"),y=a.resolveDirective("tooltip");return a.openBlock(),a.createBlock(h,a.mergeProps(p.$attrs,{class:"wt-selection-popup",overflow:"",size:"sm"},{onClose:c}),{title:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(n.title),1)]),main:a.withCtx(()=>[a.createElementVNode("ul",Mwe,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.options,(k,v)=>(a.openBlock(),a.createElementBlock("li",{key:v,class:a.normalizeClass([{active:k.value===n.selected.value},"wt-selection-popup__item-wrapper"]),onClick:C=>d(k)},[a.renderSlot(p.$slots,"option",{option:k},()=>[k.icon?(a.openBlock(),a.createBlock(g,{key:0,icon:k.icon,size:"sm"},null,8,["icon"])):a.createCommentVNode("",!0),a.createElementVNode("h4",Nwe,a.toDisplayString(k.title),1),k.description?(a.openBlock(),a.createElementBlock("p",Fwe,a.toDisplayString(k.description),1)):a.createCommentVNode("",!0),k.description?a.withDirectives((a.openBlock(),a.createBlock(f,{key:2,color:"info",icon:"rounded-info"},null,512)),[[y,k.description]]):a.createCommentVNode("",!0)],!0)],10,$we))),128))]),a.renderSlot(p.$slots,"after-section",{},void 0,!0)]),actions:a.withCtx(()=>[a.createVNode(m,{disabled:!n.selected,onClick:s},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(l)("reusable.create")),1)],void 0,!0),_:1},8,["disabled"]),a.createVNode(m,{color:"secondary",onClick:c},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(l)("reusable.close")),1)],void 0,!0),_:1})]),_:3},16)}}},[["__scopeId","data-v-d7ed7032"]])},Symbol.toStringTag,{value:"Module"})),Uwe={class:"start-page-card"},Hwe={class:"typo-heading-4 start-page-card__header"},zwe={class:"start-page-card__main-section"},Zwe=["alt","src"],Gwe={class:"typo-body-1 start-page-card__description"},Kwe=xe({__name:"start-page-card",props:{card:{type:Object,required:!0}},setup(n){const o=zU(),i=n,r=()=>o.push(i.card.route);return(l,s)=>{const c=a.resolveComponent("wt-icon"),d=a.resolveComponent("wt-button");return a.openBlock(),a.createElementBlock("article",Uwe,[a.createElementVNode("header",Hwe,[n.card.disabled?(a.openBlock(),a.createBlock(c,{key:0,icon:"lock"})):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(n.card.name),1)]),a.createElementVNode("section",zwe,[a.createElementVNode("img",{alt:n.card.name,src:n.card.image},null,8,Zwe),a.createElementVNode("p",Gwe,a.toDisplayString(n.card.text),1)]),a.createElementVNode("footer",null,[a.createVNode(d,{disabled:n.card.disabled,class:"start-page-card__button",color:"secondary",wide:"",onClick:r},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l.$t("reusable.open")),1)],void 0,!0),_:1},8,["disabled"])])])}}},[["__scopeId","data-v-e4560b27"]]),Wwe={class:"start-page-logo"},Ywe=["src"],Xwe=xe({__name:"start-page-logo",props:{logo:{type:String,required:!0}},setup(n){return(o,i)=>(a.openBlock(),a.createElementBlock("div",Wwe,[a.createElementVNode("img",{src:n.logo},null,8,Ywe)]))}},[["__scopeId","data-v-187dc1b4"]]),Qwe={class:"wt-start-page"},Jwe={class:"wt-start-page__wrapper"},Vwe=Object.freeze(Object.defineProperty({__proto__:null,default:xe(a.defineComponent({__name:"wt-start-page",props:{nav:{},appLogo:{},darkMode:{type:Boolean,default:!1}},setup(n){const o=n;a.provide("darkMode",o.darkMode);const i=a.computed(()=>o.darkMode?o.appLogo.dark:o.appLogo.light),r=a.computed(()=>o.nav.map(l=>({...l,image:o.darkMode?l.images.dark:l.images.light})));return(l,s)=>(a.openBlock(),a.createElementBlock("div",Qwe,[n.appLogo?(a.openBlock(),a.createBlock(Xwe,{key:0,logo:i.value},null,8,["logo"])):a.createCommentVNode("",!0),a.createElementVNode("div",Jwe,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,c=>(a.openBlock(),a.createBlock(Kwe,{key:c.value,card:c},null,8,["card"]))),128))])]))}}),[["__scopeId","data-v-85dd1b85"]])},Symbol.toStringTag,{value:"Module"})),nO=()=>({items:[],next:!1}),iO=({page:n=1,size:o=10}={})=>({page:n,size:o}),eke=String.prototype.replace,tke=/%20/g,rO={RFC1738:"RFC1738",RFC3986:"RFC3986"},V4={RFC1738:function(n){return eke.call(n,tke,"+")},RFC3986:function(n){return String(n)}},oke=rO.RFC1738,aO=rO.RFC3986,nke=Array.isArray,Ki=(function(){const n=[];for(let o=0;o<256;++o)n.push("%"+((o<16?"0":"")+o.toString(16)).toUpperCase());return n})(),eb=1024,ike=function(o,i,r,l,s){if(o.length===0)return o;let c=o;if(typeof o=="symbol"?c=Symbol.prototype.toString.call(o):typeof o!="string"&&(c=String(o)),r==="iso-8859-1")return escape(c).replace(/%u[0-9a-f]{4}/gi,function(p){return"%26%23"+parseInt(p.slice(2),16)+"%3B"});let d="";for(let p=0;p<c.length;p+=eb){const u=c.length>=eb?c.slice(p,p+eb):c,g=[];for(let f=0;f<u.length;++f){let m=u.charCodeAt(f);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||s===oke&&(m===40||m===41)){g[g.length]=u.charAt(f);continue}if(m<128){g[g.length]=Ki[m];continue}if(m<2048){g[g.length]=Ki[192|m>>6]+Ki[128|m&63];continue}if(m<55296||m>=57344){g[g.length]=Ki[224|m>>12]+Ki[128|m>>6&63]+Ki[128|m&63];continue}f+=1,m=65536+((m&1023)<<10|u.charCodeAt(f)&1023),g[g.length]=Ki[240|m>>18]+Ki[128|m>>12&63]+Ki[128|m>>6&63]+Ki[128|m&63]}d+=g.join("")}return d},rke=function(o){return!o||typeof o!="object"?!1:!!(o.constructor&&o.constructor.isBuffer&&o.constructor.isBuffer(o))},sO=function(o,i){if(nke(o)){const r=[];for(let l=0;l<o.length;l+=1)r.push(i(o[l]));return r}return i(o)},ake=Object.prototype.hasOwnProperty,lO={brackets:function(o){return o+"[]"},comma:"comma",indices:function(o,i){return o+"["+i+"]"},repeat:function(o){return o}},Wi=Array.isArray,ske=Array.prototype.push,cO=function(n,o){ske.apply(n,Wi(o)?o:[o])},lke=Date.prototype.toISOString,dO=aO,ho={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ike,encodeValuesOnly:!1,format:dO,formatter:V4[dO],indices:!1,serializeDate:function(o){return lke.call(o)},skipNulls:!1,strictNullHandling:!1},cke=function(o){return typeof o=="string"||typeof o=="number"||typeof o=="boolean"||typeof o=="symbol"||typeof o=="bigint"},tb={},pO=function(o,i,r,l,s,c,d,p,u,g,f,m,h,y,k,v,C,w){let S=o,x=w,I=0,L=!1;for(;(x=x.get(tb))!==void 0&&!L;){const D=x.get(o);if(I+=1,typeof D<"u"){if(D===I)throw new RangeError("Cyclic object value");L=!0}typeof x.get(tb)>"u"&&(I=0)}if(typeof g=="function"?S=g(i,S):S instanceof Date?S=h(S):r==="comma"&&Wi(S)&&(S=sO(S,function(D){return D instanceof Date?h(D):D})),S===null){if(c)return u&&!v?u(i,ho.encoder,C,"key",y):i;S=""}if(cke(S)||rke(S)){if(u){const D=v?i:u(i,ho.encoder,C,"key",y);return[k(D)+"="+k(u(S,ho.encoder,C,"value",y))]}return[k(i)+"="+k(String(S))]}const T=[];if(typeof S>"u")return T;let O;if(r==="comma"&&Wi(S))v&&u&&(S=sO(S,u)),O=[{value:S.length>0?S.join(",")||null:void 0}];else if(Wi(g))O=g;else{const D=Object.keys(S);O=f?D.sort(f):D}const P=p?i.replace(/\./g,"%2E"):i,z=l&&Wi(S)&&S.length===1?P+"[]":P;if(s&&Wi(S)&&S.length===0)return z+"[]";for(let D=0;D<O.length;++D){const _=O[D],G=typeof _=="object"&&typeof _.value<"u"?_.value:S[_];if(d&&G===null)continue;const V=m&&p?_.replace(/\./g,"%2E"):_,ne=Wi(S)?typeof r=="function"?r(z,V):z:z+(m?"."+V:"["+V+"]");w.set(o,I);const ee=new WeakMap;ee.set(tb,w),cO(T,pO(G,ne,r,l,s,c,d,p,r==="comma"&&v&&Wi(S)?null:u,g,f,m,h,y,k,v,C,ee))}return T},dke=function(o){if(!o)return ho;if(typeof o.allowEmptyArrays<"u"&&typeof o.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof o.encodeDotInKeys<"u"&&typeof o.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(o.encoder!==null&&typeof o.encoder<"u"&&typeof o.encoder!="function")throw new TypeError("Encoder has to be a function.");const i=o.charset||ho.charset;if(typeof o.charset<"u"&&o.charset!=="utf-8"&&o.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let r=aO;if(typeof o.format<"u"){if(!ake.call(V4,o.format))throw new TypeError("Unknown format option provided.");r=o.format}const l=V4[r];let s=ho.filter;(typeof o.filter=="function"||Wi(o.filter))&&(s=o.filter);let c;if(o.arrayFormat in lO?c=o.arrayFormat:"indices"in o?c=o.indices?"indices":"repeat":c=ho.arrayFormat,"commaRoundTrip"in o&&typeof o.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");const d=typeof o.allowDots>"u"?o.encodeDotInKeys===!0?!0:ho.allowDots:!!o.allowDots;return{addQueryPrefix:typeof o.addQueryPrefix=="boolean"?o.addQueryPrefix:ho.addQueryPrefix,allowDots:d,allowEmptyArrays:typeof o.allowEmptyArrays=="boolean"?!!o.allowEmptyArrays:ho.allowEmptyArrays,arrayFormat:c,charset:i,charsetSentinel:typeof o.charsetSentinel=="boolean"?o.charsetSentinel:ho.charsetSentinel,commaRoundTrip:o.commaRoundTrip,delimiter:typeof o.delimiter>"u"?ho.delimiter:o.delimiter,encode:typeof o.encode=="boolean"?o.encode:ho.encode,encodeDotInKeys:typeof o.encodeDotInKeys=="boolean"?o.encodeDotInKeys:ho.encodeDotInKeys,encoder:typeof o.encoder=="function"?o.encoder:ho.encoder,encodeValuesOnly:typeof o.encodeValuesOnly=="boolean"?o.encodeValuesOnly:ho.encodeValuesOnly,filter:s,format:r,formatter:l,serializeDate:typeof o.serializeDate=="function"?o.serializeDate:ho.serializeDate,skipNulls:typeof o.skipNulls=="boolean"?o.skipNulls:ho.skipNulls,sort:typeof o.sort=="function"?o.sort:null,strictNullHandling:typeof o.strictNullHandling=="boolean"?o.strictNullHandling:ho.strictNullHandling}};function uO(n,o){let i=n;const r=dke(o);let l,s;typeof r.filter=="function"?(s=r.filter,i=s("",i)):Wi(r.filter)&&(s=r.filter,l=s);const c=[];if(typeof i!="object"||i===null)return"";const d=lO[r.arrayFormat],p=d==="comma"&&r.commaRoundTrip;l||(l=Object.keys(i)),r.sort&&l.sort(r.sort);const u=new WeakMap;for(let m=0;m<l.length;++m){const h=l[m];r.skipNulls&&i[h]===null||cO(c,pO(i[h],h,d,p,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,u))}const g=c.join(r.delimiter);let f=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),g.length>0?f+g:""}const pke=[n=>(n.headers["X-Webitel-Access"]=localStorage.getItem("access-token")||"",n),n=>Promise.reject(n)],uke=[n=>n,n=>{if(n.response&&n.response.status===401){const o=encodeURIComponent(window.location.href),i=void 0;window.location.href=`${i}?redirectTo=${o}`}return Promise.reject(n)}],Ct=()=>{const n={arrayFormat:"repeat"};return k7({interceptors:{request:[pke],response:[uke]},baseURL:"/api",paramsSerializer:o=>uO(o,n)})};var ss={},zd={exports:{}};var gke=zd.exports,gO;function fke(){return gO||(gO=1,(function(n,o){(function(i){var r=o&&!o.nodeType&&o,l=n&&!n.nodeType&&n,s=typeof Ri=="object"&&Ri;(s.global===s||s.window===s||s.self===s)&&(i=s);var c,d=2147483647,p=36,u=1,g=26,f=38,m=700,h=72,y=128,k="-",v=/^xn--/,C=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=p-u,I=Math.floor,L=String.fromCharCode,T;function O(N){throw new RangeError(S[N])}function P(N,Y){for(var ae=N.length,J=[];ae--;)J[ae]=Y(N[ae]);return J}function z(N,Y){var ae=N.split("@"),J="";ae.length>1&&(J=ae[0]+"@",N=ae[1]),N=N.replace(w,".");var A=N.split("."),F=P(A,Y).join(".");return J+F}function D(N){for(var Y=[],ae=0,J=N.length,A,F;ae<J;)A=N.charCodeAt(ae++),A>=55296&&A<=56319&&ae<J?(F=N.charCodeAt(ae++),(F&64512)==56320?Y.push(((A&1023)<<10)+(F&1023)+65536):(Y.push(A),ae--)):Y.push(A);return Y}function _(N){return P(N,function(Y){var ae="";return Y>65535&&(Y-=65536,ae+=L(Y>>>10&1023|55296),Y=56320|Y&1023),ae+=L(Y),ae}).join("")}function G(N){return N-48<10?N-22:N-65<26?N-65:N-97<26?N-97:p}function V(N,Y){return N+22+75*(N<26)-((Y!=0)<<5)}function ne(N,Y,ae){var J=0;for(N=ae?I(N/m):N>>1,N+=I(N/Y);N>x*g>>1;J+=p)N=I(N/x);return I(J+(x+1)*N/(N+f))}function ee(N){var Y=[],ae=N.length,J,A=0,F=y,ce=h,de,fe,ve,K,X,re,pe,Ce,me;for(de=N.lastIndexOf(k),de<0&&(de=0),fe=0;fe<de;++fe)N.charCodeAt(fe)>=128&&O("not-basic"),Y.push(N.charCodeAt(fe));for(ve=de>0?de+1:0;ve<ae;){for(K=A,X=1,re=p;ve>=ae&&O("invalid-input"),pe=G(N.charCodeAt(ve++)),(pe>=p||pe>I((d-A)/X))&&O("overflow"),A+=pe*X,Ce=re<=ce?u:re>=ce+g?g:re-ce,!(pe<Ce);re+=p)me=p-Ce,X>I(d/me)&&O("overflow"),X*=me;J=Y.length+1,ce=ne(A-K,J,K==0),I(A/J)>d-F&&O("overflow"),F+=I(A/J),A%=J,Y.splice(A++,0,F)}return _(Y)}function E(N){var Y,ae,J,A,F,ce,de,fe,ve,K,X,re=[],pe,Ce,me,he;for(N=D(N),pe=N.length,Y=y,ae=0,F=h,ce=0;ce<pe;++ce)X=N[ce],X<128&&re.push(L(X));for(J=A=re.length,A&&re.push(k);J<pe;){for(de=d,ce=0;ce<pe;++ce)X=N[ce],X>=Y&&X<de&&(de=X);for(Ce=J+1,de-Y>I((d-ae)/Ce)&&O("overflow"),ae+=(de-Y)*Ce,Y=de,ce=0;ce<pe;++ce)if(X=N[ce],X<Y&&++ae>d&&O("overflow"),X==Y){for(fe=ae,ve=p;K=ve<=F?u:ve>=F+g?g:ve-F,!(fe<K);ve+=p)he=fe-K,me=p-K,re.push(L(V(K+he%me,0))),fe=I(he/me);re.push(L(V(fe,0))),F=ne(ae,Ce,J==A),ae=0,++J}++ae,++Y}return re.join("")}function U(N){return z(N,function(Y){return v.test(Y)?ee(Y.slice(4).toLowerCase()):Y})}function M(N){return z(N,function(Y){return C.test(Y)?"xn--"+E(Y):Y})}if(c={version:"1.4.1",ucs2:{decode:D,encode:_},decode:ee,encode:E,toASCII:M,toUnicode:U},r&&l)if(n.exports==r)l.exports=c;else for(T in c)c.hasOwnProperty(T)&&(r[T]=c[T]);else i.punycode=c})(gke)})(zd,zd.exports)),zd.exports}var ob,fO;function nb(){if(fO)return ob;fO=1;var n=String.prototype.replace,o=/%20/g,i={RFC1738:"RFC1738",RFC3986:"RFC3986"};return ob={default:i.RFC3986,formatters:{RFC1738:function(r){return n.call(r,o,"+")},RFC3986:function(r){return String(r)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986},ob}var ib,mO;function hO(){if(mO)return ib;mO=1;var n=nb(),o=Object.prototype.hasOwnProperty,i=Array.isArray,r=(function(){for(var v=[],C=0;C<256;++C)v.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return v})(),l=function(C){for(;C.length>1;){var w=C.pop(),S=w.obj[w.prop];if(i(S)){for(var x=[],I=0;I<S.length;++I)typeof S[I]<"u"&&x.push(S[I]);w.obj[w.prop]=x}}},s=function(C,w){for(var S=w&&w.plainObjects?{__proto__:null}:{},x=0;x<C.length;++x)typeof C[x]<"u"&&(S[x]=C[x]);return S},c=function v(C,w,S){if(!w)return C;if(typeof w!="object"&&typeof w!="function"){if(i(C))C.push(w);else if(C&&typeof C=="object")(S&&(S.plainObjects||S.allowPrototypes)||!o.call(Object.prototype,w))&&(C[w]=!0);else return[C,w];return C}if(!C||typeof C!="object")return[C].concat(w);var x=C;return i(C)&&!i(w)&&(x=s(C,S)),i(C)&&i(w)?(w.forEach(function(I,L){if(o.call(C,L)){var T=C[L];T&&typeof T=="object"&&I&&typeof I=="object"?C[L]=v(T,I,S):C.push(I)}else C[L]=I}),C):Object.keys(w).reduce(function(I,L){var T=w[L];return o.call(I,L)?I[L]=v(I[L],T,S):I[L]=T,I},x)},d=function(C,w){return Object.keys(w).reduce(function(S,x){return S[x]=w[x],S},C)},p=function(v,C,w){var S=v.replace(/\+/g," ");if(w==="iso-8859-1")return S.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(S)}catch{return S}},u=1024,g=function(C,w,S,x,I){if(C.length===0)return C;var L=C;if(typeof C=="symbol"?L=Symbol.prototype.toString.call(C):typeof C!="string"&&(L=String(C)),S==="iso-8859-1")return escape(L).replace(/%u[0-9a-f]{4}/gi,function(G){return"%26%23"+parseInt(G.slice(2),16)+"%3B"});for(var T="",O=0;O<L.length;O+=u){for(var P=L.length>=u?L.slice(O,O+u):L,z=[],D=0;D<P.length;++D){var _=P.charCodeAt(D);if(_===45||_===46||_===95||_===126||_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||I===n.RFC1738&&(_===40||_===41)){z[z.length]=P.charAt(D);continue}if(_<128){z[z.length]=r[_];continue}if(_<2048){z[z.length]=r[192|_>>6]+r[128|_&63];continue}if(_<55296||_>=57344){z[z.length]=r[224|_>>12]+r[128|_>>6&63]+r[128|_&63];continue}D+=1,_=65536+((_&1023)<<10|P.charCodeAt(D)&1023),z[z.length]=r[240|_>>18]+r[128|_>>12&63]+r[128|_>>6&63]+r[128|_&63]}T+=z.join("")}return T},f=function(C){for(var w=[{obj:{o:C},prop:"o"}],S=[],x=0;x<w.length;++x)for(var I=w[x],L=I.obj[I.prop],T=Object.keys(L),O=0;O<T.length;++O){var P=T[O],z=L[P];typeof z=="object"&&z!==null&&S.indexOf(z)===-1&&(w.push({obj:L,prop:P}),S.push(z))}return l(w),C},m=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},h=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},y=function(C,w){return[].concat(C,w)},k=function(C,w){if(i(C)){for(var S=[],x=0;x<C.length;x+=1)S.push(w(C[x]));return S}return w(C)};return ib={arrayToObject:s,assign:d,combine:y,compact:f,decode:p,encode:g,isBuffer:h,isRegExp:m,maybeMap:k,merge:c},ib}var rb,bO;function mke(){if(bO)return rb;bO=1;var n=Lm(),o=hO(),i=nb(),r=Object.prototype.hasOwnProperty,l={brackets:function(v){return v+"[]"},comma:"comma",indices:function(v,C){return v+"["+C+"]"},repeat:function(v){return v}},s=Array.isArray,c=Array.prototype.push,d=function(k,v){c.apply(k,s(v)?v:[v])},p=Date.prototype.toISOString,u=i.default,g={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:u,formatter:i.formatters[u],indices:!1,serializeDate:function(v){return p.call(v)},skipNulls:!1,strictNullHandling:!1},f=function(v){return typeof v=="string"||typeof v=="number"||typeof v=="boolean"||typeof v=="symbol"||typeof v=="bigint"},m={},h=function k(v,C,w,S,x,I,L,T,O,P,z,D,_,G,V,ne,ee,E){for(var U=v,M=E,N=0,Y=!1;(M=M.get(m))!==void 0&&!Y;){var ae=M.get(v);if(N+=1,typeof ae<"u"){if(ae===N)throw new RangeError("Cyclic object value");Y=!0}typeof M.get(m)>"u"&&(N=0)}if(typeof P=="function"?U=P(C,U):U instanceof Date?U=_(U):w==="comma"&&s(U)&&(U=o.maybeMap(U,function(me){return me instanceof Date?_(me):me})),U===null){if(I)return O&&!ne?O(C,g.encoder,ee,"key",G):C;U=""}if(f(U)||o.isBuffer(U)){if(O){var J=ne?C:O(C,g.encoder,ee,"key",G);return[V(J)+"="+V(O(U,g.encoder,ee,"value",G))]}return[V(C)+"="+V(String(U))]}var A=[];if(typeof U>"u")return A;var F;if(w==="comma"&&s(U))ne&&O&&(U=o.maybeMap(U,O)),F=[{value:U.length>0?U.join(",")||null:void 0}];else if(s(P))F=P;else{var ce=Object.keys(U);F=z?ce.sort(z):ce}var de=T?String(C).replace(/\./g,"%2E"):String(C),fe=S&&s(U)&&U.length===1?de+"[]":de;if(x&&s(U)&&U.length===0)return fe+"[]";for(var ve=0;ve<F.length;++ve){var K=F[ve],X=typeof K=="object"&&K&&typeof K.value<"u"?K.value:U[K];if(!(L&&X===null)){var re=D&&T?String(K).replace(/\./g,"%2E"):String(K),pe=s(U)?typeof w=="function"?w(fe,re):fe:fe+(D?"."+re:"["+re+"]");E.set(v,N);var Ce=n();Ce.set(m,E),d(A,k(X,pe,w,S,x,I,L,T,w==="comma"&&ne&&s(U)?null:O,P,z,D,_,G,V,ne,ee,Ce))}}return A},y=function(v){if(!v)return g;if(typeof v.allowEmptyArrays<"u"&&typeof v.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof v.encodeDotInKeys<"u"&&typeof v.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(v.encoder!==null&&typeof v.encoder<"u"&&typeof v.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=v.charset||g.charset;if(typeof v.charset<"u"&&v.charset!=="utf-8"&&v.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var w=i.default;if(typeof v.format<"u"){if(!r.call(i.formatters,v.format))throw new TypeError("Unknown format option provided.");w=v.format}var S=i.formatters[w],x=g.filter;(typeof v.filter=="function"||s(v.filter))&&(x=v.filter);var I;if(v.arrayFormat in l?I=v.arrayFormat:"indices"in v?I=v.indices?"indices":"repeat":I=g.arrayFormat,"commaRoundTrip"in v&&typeof v.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var L=typeof v.allowDots>"u"?v.encodeDotInKeys===!0?!0:g.allowDots:!!v.allowDots;return{addQueryPrefix:typeof v.addQueryPrefix=="boolean"?v.addQueryPrefix:g.addQueryPrefix,allowDots:L,allowEmptyArrays:typeof v.allowEmptyArrays=="boolean"?!!v.allowEmptyArrays:g.allowEmptyArrays,arrayFormat:I,charset:C,charsetSentinel:typeof v.charsetSentinel=="boolean"?v.charsetSentinel:g.charsetSentinel,commaRoundTrip:!!v.commaRoundTrip,delimiter:typeof v.delimiter>"u"?g.delimiter:v.delimiter,encode:typeof v.encode=="boolean"?v.encode:g.encode,encodeDotInKeys:typeof v.encodeDotInKeys=="boolean"?v.encodeDotInKeys:g.encodeDotInKeys,encoder:typeof v.encoder=="function"?v.encoder:g.encoder,encodeValuesOnly:typeof v.encodeValuesOnly=="boolean"?v.encodeValuesOnly:g.encodeValuesOnly,filter:x,format:w,formatter:S,serializeDate:typeof v.serializeDate=="function"?v.serializeDate:g.serializeDate,skipNulls:typeof v.skipNulls=="boolean"?v.skipNulls:g.skipNulls,sort:typeof v.sort=="function"?v.sort:null,strictNullHandling:typeof v.strictNullHandling=="boolean"?v.strictNullHandling:g.strictNullHandling}};return rb=function(k,v){var C=k,w=y(v),S,x;typeof w.filter=="function"?(x=w.filter,C=x("",C)):s(w.filter)&&(x=w.filter,S=x);var I=[];if(typeof C!="object"||C===null)return"";var L=l[w.arrayFormat],T=L==="comma"&&w.commaRoundTrip;S||(S=Object.keys(C)),w.sort&&S.sort(w.sort);for(var O=n(),P=0;P<S.length;++P){var z=S[P],D=C[z];w.skipNulls&&D===null||d(I,h(D,z,L,T,w.allowEmptyArrays,w.strictNullHandling,w.skipNulls,w.encodeDotInKeys,w.encode?w.encoder:null,w.filter,w.sort,w.allowDots,w.serializeDate,w.format,w.formatter,w.encodeValuesOnly,w.charset,O))}var _=I.join(w.delimiter),G=w.addQueryPrefix===!0?"?":"";return w.charsetSentinel&&(w.charset==="iso-8859-1"?G+="utf8=%26%2310003%3B&":G+="utf8=%E2%9C%93&"),_.length>0?G+_:""},rb}var ab,yO;function hke(){if(yO)return ab;yO=1;var n=hO(),o=Object.prototype.hasOwnProperty,i=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},l=function(m){return m.replace(/&#(\d+);/g,function(h,y){return String.fromCharCode(parseInt(y,10))})},s=function(m,h,y){if(m&&typeof m=="string"&&h.comma&&m.indexOf(",")>-1)return m.split(",");if(h.throwOnLimitExceeded&&y>=h.arrayLimit)throw new RangeError("Array limit exceeded. Only "+h.arrayLimit+" element"+(h.arrayLimit===1?"":"s")+" allowed in an array.");return m},c="utf8=%26%2310003%3B",d="utf8=%E2%9C%93",p=function(h,y){var k={__proto__:null},v=y.ignoreQueryPrefix?h.replace(/^\?/,""):h;v=v.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var C=y.parameterLimit===1/0?void 0:y.parameterLimit,w=v.split(y.delimiter,y.throwOnLimitExceeded?C+1:C);if(y.throwOnLimitExceeded&&w.length>C)throw new RangeError("Parameter limit exceeded. Only "+C+" parameter"+(C===1?"":"s")+" allowed.");var S=-1,x,I=y.charset;if(y.charsetSentinel)for(x=0;x<w.length;++x)w[x].indexOf("utf8=")===0&&(w[x]===d?I="utf-8":w[x]===c&&(I="iso-8859-1"),S=x,x=w.length);for(x=0;x<w.length;++x)if(x!==S){var L=w[x],T=L.indexOf("]="),O=T===-1?L.indexOf("="):T+1,P,z;O===-1?(P=y.decoder(L,r.decoder,I,"key"),z=y.strictNullHandling?null:""):(P=y.decoder(L.slice(0,O),r.decoder,I,"key"),z=n.maybeMap(s(L.slice(O+1),y,i(k[P])?k[P].length:0),function(_){return y.decoder(_,r.decoder,I,"value")})),z&&y.interpretNumericEntities&&I==="iso-8859-1"&&(z=l(String(z))),L.indexOf("[]=")>-1&&(z=i(z)?[z]:z);var D=o.call(k,P);D&&y.duplicates==="combine"?k[P]=n.combine(k[P],z):(!D||y.duplicates==="last")&&(k[P]=z)}return k},u=function(m,h,y,k){var v=0;if(m.length>0&&m[m.length-1]==="[]"){var C=m.slice(0,-1).join("");v=Array.isArray(h)&&h[C]?h[C].length:0}for(var w=k?h:s(h,y,v),S=m.length-1;S>=0;--S){var x,I=m[S];if(I==="[]"&&y.parseArrays)x=y.allowEmptyArrays&&(w===""||y.strictNullHandling&&w===null)?[]:n.combine([],w);else{x=y.plainObjects?{__proto__:null}:{};var L=I.charAt(0)==="["&&I.charAt(I.length-1)==="]"?I.slice(1,-1):I,T=y.decodeDotInKeys?L.replace(/%2E/g,"."):L,O=parseInt(T,10);!y.parseArrays&&T===""?x={0:w}:!isNaN(O)&&I!==T&&String(O)===T&&O>=0&&y.parseArrays&&O<=y.arrayLimit?(x=[],x[O]=w):T!=="__proto__"&&(x[T]=w)}w=x}return w},g=function(h,y,k,v){if(h){var C=k.allowDots?h.replace(/\.([^.[]+)/g,"[$1]"):h,w=/(\[[^[\]]*])/,S=/(\[[^[\]]*])/g,x=k.depth>0&&w.exec(C),I=x?C.slice(0,x.index):C,L=[];if(I){if(!k.plainObjects&&o.call(Object.prototype,I)&&!k.allowPrototypes)return;L.push(I)}for(var T=0;k.depth>0&&(x=S.exec(C))!==null&&T<k.depth;){if(T+=1,!k.plainObjects&&o.call(Object.prototype,x[1].slice(1,-1))&&!k.allowPrototypes)return;L.push(x[1])}if(x){if(k.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+k.depth+" and strictDepth is true");L.push("["+C.slice(x.index)+"]")}return u(L,y,k,v)}},f=function(h){if(!h)return r;if(typeof h.allowEmptyArrays<"u"&&typeof h.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof h.decodeDotInKeys<"u"&&typeof h.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(h.decoder!==null&&typeof h.decoder<"u"&&typeof h.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof h.charset<"u"&&h.charset!=="utf-8"&&h.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof h.throwOnLimitExceeded<"u"&&typeof h.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var y=typeof h.charset>"u"?r.charset:h.charset,k=typeof h.duplicates>"u"?r.duplicates:h.duplicates;if(k!=="combine"&&k!=="first"&&k!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var v=typeof h.allowDots>"u"?h.decodeDotInKeys===!0?!0:r.allowDots:!!h.allowDots;return{allowDots:v,allowEmptyArrays:typeof h.allowEmptyArrays=="boolean"?!!h.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:typeof h.allowPrototypes=="boolean"?h.allowPrototypes:r.allowPrototypes,allowSparse:typeof h.allowSparse=="boolean"?h.allowSparse:r.allowSparse,arrayLimit:typeof h.arrayLimit=="number"?h.arrayLimit:r.arrayLimit,charset:y,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:r.charsetSentinel,comma:typeof h.comma=="boolean"?h.comma:r.comma,decodeDotInKeys:typeof h.decodeDotInKeys=="boolean"?h.decodeDotInKeys:r.decodeDotInKeys,decoder:typeof h.decoder=="function"?h.decoder:r.decoder,delimiter:typeof h.delimiter=="string"||n.isRegExp(h.delimiter)?h.delimiter:r.delimiter,depth:typeof h.depth=="number"||h.depth===!1?+h.depth:r.depth,duplicates:k,ignoreQueryPrefix:h.ignoreQueryPrefix===!0,interpretNumericEntities:typeof h.interpretNumericEntities=="boolean"?h.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:typeof h.parameterLimit=="number"?h.parameterLimit:r.parameterLimit,parseArrays:h.parseArrays!==!1,plainObjects:typeof h.plainObjects=="boolean"?h.plainObjects:r.plainObjects,strictDepth:typeof h.strictDepth=="boolean"?!!h.strictDepth:r.strictDepth,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:typeof h.throwOnLimitExceeded=="boolean"?h.throwOnLimitExceeded:!1}};return ab=function(m,h){var y=f(h);if(m===""||m===null||typeof m>"u")return y.plainObjects?{__proto__:null}:{};for(var k=typeof m=="string"?p(m,y):m,v=y.plainObjects?{__proto__:null}:{},C=Object.keys(k),w=0;w<C.length;++w){var S=C[w],x=g(S,k[S],y,typeof m=="string");v=n.merge(v,x,y)}return y.allowSparse===!0?v:n.compact(v)},ab}var sb,vO;function bke(){if(vO)return sb;vO=1;var n=mke(),o=hke(),i=nb();return sb={formats:i,parse:o,stringify:n},sb}var CO;function yke(){if(CO)return ss;CO=1;var n=fke();function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var i=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,s=["<",">",'"',"`"," ","\r",`
6945
+ --num-skintones: ${gA};`}),c(()=>{s.customEmoji&&s.database&&T()}),c(()=>{s.customEmoji&&s.customEmoji.length?s.groups!==vh&&(s.groups=vh):s.groups!==Ch&&(s.currentGroupIndex&&s.currentGroupIndex--,s.groups=Ch)}),c(()=>{async function K(){s.databaseLoaded&&(s.currentSkinTone=await s.database.getPreferredSkinTone())}K()}),c(()=>{s.skinTones=Array(gA).fill().map((K,X)=>Vve(s.skinToneEmoji,X))}),c(()=>{s.skinToneButtonText=s.skinTones[s.currentSkinTone]}),c(()=>{s.skinToneButtonLabel=s.i18n.skinToneLabel.replace("{skinTone}",s.i18n.skinTones[s.currentSkinTone])}),c(()=>{async function K(){const{database:X}=s,re=(await Promise.all(Hve.map(pe=>X.getEmojiByUnicodeOrName(pe)))).filter(Boolean);s.defaultFavoriteEmojis=re}s.databaseLoaded&&K()});function T(){const{customEmoji:K,database:X}=s,re=K||Th;X.customEmoji!==re&&(X.customEmoji=re)}c(()=>{async function K(){T();const{database:X,defaultFavoriteEmojis:re,numColumns:pe}=s,Ce=await X.getTopFavoriteEmoji(pe),me=await V(yA([...Ce,...re],he=>he.unicode||he.name).slice(0,pe));s.currentFavorites=me}s.databaseLoaded&&s.defaultFavoriteEmojis&&K()});function O(K){oCe(K,l,()=>{{const X=getComputedStyle(i.rootElement),re=parseInt(X.getPropertyValue("--num-columns"),10),pe=X.getPropertyValue("direction")==="rtl";s.numColumns=re,s.isRtl=pe}})}function P(K){wCe(K,l,X=>{for(const{target:re,isIntersecting:pe}of X)re.classList.toggle("onscreen",pe)})}c(()=>{async function K(){const{searchText:X,currentGroup:re,databaseLoaded:pe,customEmoji:Ce}=s;if(!pe)s.currentEmojis=[],s.searchMode=!1;else if(X.length>=$ve){const me=await ee(X);s.searchText===X&&(h(me),y(!0))}else{const{id:me}=re;if(me!==-1||Ce&&Ce.length){const he=await ne(me);s.currentGroup.id===me&&(h(he),y(!1))}}}K()});const z=()=>{H0(()=>rCe(i.tabpanelElement))};c(()=>{const{currentEmojis:K,emojiVersion:X}=s,re=K.filter(pe=>pe.unicode).filter(pe=>mA(pe)&&!jh.has(pe.unicode));if(!X&&re.length)h(K),H0(()=>D(re));else{const pe=X?K:K.filter(_);h(pe),z()}});function D(K){nCe(K,i.baselineEmoji,u)?z():s.currentEmojis=[...s.currentEmojis]}function _(K){return!K.unicode||!mA(K)||jh.get(K.unicode)}async function G(K){const X=s.emojiVersion||await kh();return K.filter(({version:re})=>!re||re<=X)}async function V(K){return eCe(K,s.emojiVersion||await kh())}async function ne(K){const X=K===-1?s.customEmoji:await s.database.getEmojiByGroup(K);return V(await G(X))}async function ee(K){return V(await G(await s.database.getEmojiBySearchQuery(K)))}c(()=>{}),c(()=>{function K(){const{searchMode:re,currentEmojis:pe}=s;if(re)return[{category:"",emojis:pe}];const Ce=new Map;for(const me of pe){const he=me.category||"";let be=Ce.get(he);be||(be=[],Ce.set(he,be)),be.push(me)}return[...Ce.entries()].map(([me,he])=>({category:me,emojis:he})).sort((me,he)=>s.customCategorySorting(me.category,he.category))}const X=K();k(X)}),c(()=>{s.activeSearchItemId=s.activeSearchItem!==-1&&s.currentEmojis[s.activeSearchItem].id}),c(()=>{const{rawSearchText:K}=s;fA(()=>{s.searchText=(K||"").trim(),s.activeSearchItem=-1})});function E(K){if(!s.searchMode||!s.currentEmojis.length)return;const X=re=>{Zi(K),s.activeSearchItem=xh(re,s.activeSearchItem,s.currentEmojis)};switch(K.key){case"ArrowDown":return X(!1);case"ArrowUp":return X(!0);case"Enter":if(s.activeSearchItem===-1)s.activeSearchItem=0;else return Zi(K),Y(s.currentEmojis[s.activeSearchItem].id)}}function U(K){const{target:X}=K,re=X.closest(".nav-button");if(!re)return;const pe=parseInt(re.dataset.groupId,10);i.searchElement.value="",s.rawSearchText="",s.searchText="",s.activeSearchItem=-1,s.currentGroupIndex=s.groups.findIndex(Ce=>Ce.id===pe)}function M(K){const{target:X,key:re}=K,pe=Ce=>{Ce&&(Zi(K),Ce.focus())};switch(re){case"ArrowLeft":return pe(X.previousElementSibling);case"ArrowRight":return pe(X.nextElementSibling);case"Home":return pe(X.parentElement.firstElementChild);case"End":return pe(X.parentElement.lastElementChild)}}async function N(K){const X=await s.database.getEmojiByUnicodeOrName(K),re=[...s.currentEmojis,...s.currentFavorites].find(Ce=>Ce.id===K),pe=re.unicode&&v(re,s.currentSkinTone);return await s.database.incrementFavoriteEmojiCount(K),{emoji:X,skinTone:s.currentSkinTone,...pe&&{unicode:pe},...re.name&&{name:re.name}}}async function Y(K){const X=N(K);g("emoji-click-sync",X),g("emoji-click",await X)}function ae(K){const{target:X}=K;if(!X.classList.contains("emoji"))return;Zi(K);const re=X.id.substring(4);Y(re)}function J(K){s.currentSkinTone=K,s.skinTonePickerExpanded=!1,p("skintone-button"),g("skin-tone-change",{skinTone:K}),s.database.setPreferredSkinTone(K)}function A(K){const{target:{id:X}}=K,re=X&&X.match(/^skintone-(\d)/);if(!re)return;Zi(K);const pe=parseInt(re[1],10);J(pe)}function F(K){s.skinTonePickerExpanded=!s.skinTonePickerExpanded,s.activeSkinTone=s.currentSkinTone,s.skinTonePickerExpanded&&(Zi(K),H0(()=>p("skintone-list")))}c(()=>{s.skinTonePickerExpanded?i.skinToneDropdown.addEventListener("transitionend",()=>{s.skinTonePickerExpandedAfterAnimation=!0},{once:!0}):s.skinTonePickerExpandedAfterAnimation=!1});function ce(K){if(!s.skinTonePickerExpanded)return;const X=async re=>{Zi(K),s.activeSkinTone=re};switch(K.key){case"ArrowUp":return X(xh(!0,s.activeSkinTone,s.skinTones));case"ArrowDown":return X(xh(!1,s.activeSkinTone,s.skinTones));case"Home":return X(0);case"End":return X(s.skinTones.length-1);case"Enter":return Zi(K),J(s.activeSkinTone);case"Escape":return Zi(K),s.skinTonePickerExpanded=!1,p("skintone-button")}}function de(K){if(s.skinTonePickerExpanded&&K.key===" ")return Zi(K),J(s.activeSkinTone)}async function fe(K){const{relatedTarget:X}=K;(!X||X.id!=="skintone-list")&&(s.skinTonePickerExpanded=!1)}function ve(K){s.rawSearchText=K.target.value}return{$set(K){Z0(s,K)},$destroy(){r.abort()}}}const jCe="https://cdn.jsdelivr.net/npm/emoji-picker-element-data@^1/en/emojibase/data.json",xCe="en";var ICe={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"}},SCe=':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)}';const jA=["customEmoji","customCategorySorting","database","dataSource","i18n","locale","skinToneEmoji","emojiVersion"],TCe=`:host{--emoji-font-family:${hA}}`;class Eh extends HTMLElement{constructor(o){super(),this.attachShadow({mode:"open"});const i=document.createElement("style");i.textContent=SCe+TCe,this.shadowRoot.appendChild(i),this._ctx={locale:xCe,dataSource:jCe,skinToneEmoji:qve,customCategorySorting:zve,customEmoji:null,i18n:ICe,emojiVersion:null,...o};for(const r of jA)r!=="database"&&Object.prototype.hasOwnProperty.call(this,r)&&(this._ctx[r]=this[r],delete this[r]);this._dbFlush()}connectedCallback(){IA(this),this._cmp||(this._cmp=kCe(this.shadowRoot,this._ctx))}disconnectedCallback(){IA(this),z0(()=>{if(!this.isConnected&&this._cmp){this._cmp.$destroy(),this._cmp=void 0;const{database:o}=this._ctx;o.close().catch(i=>console.error(i))}})}static get observedAttributes(){return["locale","data-source","skin-tone-emoji","emoji-version"]}attributeChangedCallback(o,i,r){this._set(o.replace(/-([a-z])/g,(l,s)=>s.toUpperCase()),o==="emoji-version"?parseFloat(r):r)}_set(o,i){this._ctx[o]=i,this._cmp&&this._cmp.$set({[o]:i}),["locale","dataSource"].includes(o)&&this._dbFlush()}_dbCreate(){const{locale:o,dataSource:i,database:r}=this._ctx;(!r||r.locale!==o||r.dataSource!==i)&&this._set("database",new Mve({locale:o,dataSource:i}))}_dbFlush(){z0(()=>this._dbCreate())}}const xA={};for(const n of jA)xA[n]={get(){return n==="database"&&this._dbCreate(),this._ctx[n]},set(o){if(n==="database")throw new Error("database is read-only");this._set(n,o)}};Object.defineProperties(Eh.prototype,xA);function IA(n){n instanceof Eh||Object.setPrototypeOf(n,customElements.get(n.tagName.toLowerCase()).prototype)}customElements.get("emoji-picker")||customElements.define("emoji-picker",Eh);var Gi=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof ca=="object"&&ca.global===ca?ca:void 0;function ECe(n,o){return typeof o>"u"?o={autoBom:!1}:typeof o!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["\uFEFF",n],{type:n.type}):n}function Ah(n,o,i){var r=new XMLHttpRequest;r.open("GET",n),r.responseType="blob",r.onload=function(){Lh(r.response,o,i)},r.onerror=function(){console.error("could not download file")},r.send()}function SA(n){var o=new XMLHttpRequest;o.open("HEAD",n,!1);try{o.send()}catch{}return o.status>=200&&o.status<=299}function G0(n){try{n.dispatchEvent(new MouseEvent("click"))}catch{var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(o)}}var TA=Gi.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),Lh=Gi.saveAs||(typeof window!="object"||window!==Gi?function(){}:"download"in HTMLAnchorElement.prototype&&!TA?function(o,i,r){var l=Gi.URL||Gi.webkitURL,s=document.createElement("a");i=i||o.name||"download",s.download=i,s.rel="noopener",typeof o=="string"?(s.href=o,s.origin!==location.origin?SA(s.href)?Ah(o,i,r):G0(s,s.target="_blank"):G0(s)):(s.href=l.createObjectURL(o),setTimeout(function(){l.revokeObjectURL(s.href)},4e4),setTimeout(function(){G0(s)},0))}:"msSaveOrOpenBlob"in navigator?function(o,i,r){if(i=i||o.name||"download",typeof o=="string")if(SA(o))Ah(o,i,r);else{var l=document.createElement("a");l.href=o,l.target="_blank",setTimeout(function(){G0(l)})}else navigator.msSaveOrOpenBlob(ECe(o,r),i)}:function(o,i,r,l){if(l=l||open("","_blank"),l&&(l.document.title=l.document.body.innerText="downloading..."),typeof o=="string")return Ah(o,i,r);var s=o.type==="application/octet-stream",c=/constructor/i.test(Gi.HTMLElement)||Gi.safari,d=/CriOS\/[\d]+/.test(navigator.userAgent);if((d||s&&c||TA)&&typeof FileReader<"u"){var p=new FileReader;p.onloadend=function(){var f=p.result;f=d?f:f.replace(/^data:[^;]*;/,"data:attachment/file;"),l?l.location.href=f:location=f,l=null},p.readAsDataURL(o)}else{var u=Gi.URL||Gi.webkitURL,g=u.createObjectURL(o);l?l.location=g:location.href=g,l=null,setTimeout(function(){u.revokeObjectURL(g)},4e4)}});Gi.saveAs=Lh.saveAs=Lh;var Oh,EA;function ACe(){if(EA)return Oh;EA=1;var n=N1();function o(){this.__data__=new n,this.size=0}return Oh=o,Oh}var Dh,AA;function LCe(){if(AA)return Dh;AA=1;function n(o){var i=this.__data__,r=i.delete(o);return this.size=i.size,r}return Dh=n,Dh}var Rh,LA;function OCe(){if(LA)return Rh;LA=1;function n(o){return this.__data__.get(o)}return Rh=n,Rh}var _h,OA;function DCe(){if(OA)return _h;OA=1;function n(o){return this.__data__.has(o)}return _h=n,_h}var Bh,DA;function RCe(){if(DA)return Bh;DA=1;var n=N1(),o=u3(),i=Vy(),r=200;function l(s,c){var d=this.__data__;if(d instanceof n){var p=d.__data__;if(!o||p.length<r-1)return p.push([s,c]),this.size=++d.size,this;d=this.__data__=new i(p)}return d.set(s,c),this.size=d.size,this}return Bh=l,Bh}var Ph,RA;function _Ce(){if(RA)return Ph;RA=1;var n=N1(),o=ACe(),i=LCe(),r=OCe(),l=DCe(),s=RCe();function c(d){var p=this.__data__=new n(d);this.size=p.size}return c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=r,c.prototype.has=l,c.prototype.set=s,Ph=c,Ph}var Mh,_A;function BCe(){if(_A)return Mh;_A=1;function n(o,i){for(var r=-1,l=o==null?0:o.length;++r<l&&i(o[r],r,o)!==!1;);return o}return Mh=n,Mh}var $h,BA;function PCe(){if(BA)return $h;BA=1;var n=ja(),o=(function(){try{var i=n(Object,"defineProperty");return i({},"",{}),i}catch{}})();return $h=o,$h}var Nh,PA;function MA(){if(PA)return Nh;PA=1;var n=PCe();function o(i,r,l){r=="__proto__"&&n?n(i,r,{configurable:!0,enumerable:!0,value:l,writable:!0}):i[r]=l}return Nh=o,Nh}var Fh,$A;function qh(){if($A)return Fh;$A=1;var n=MA(),o=My(),i=Object.prototype,r=i.hasOwnProperty;function l(s,c,d){var p=s[c];(!(r.call(s,c)&&o(p,d))||d===void 0&&!(c in s))&&n(s,c,d)}return Fh=l,Fh}var Uh,NA;function K0(){if(NA)return Uh;NA=1;var n=qh(),o=MA();function i(r,l,s,c){var d=!s;s||(s={});for(var p=-1,u=l.length;++p<u;){var g=l[p],f=c?c(s[g],r[g],g,s,r):void 0;f===void 0&&(f=r[g]),d?o(s,g,f):n(s,g,f)}return s}return Uh=i,Uh}var Hh,FA;function MCe(){if(FA)return Hh;FA=1;function n(o,i){for(var r=-1,l=Array(o);++r<o;)l[r]=i(r);return l}return Hh=n,Hh}var zh,qA;function $Ce(){if(qA)return zh;qA=1;var n=Zl(),o=As(),i="[object Arguments]";function r(l){return o(l)&&n(l)==i}return zh=r,zh}var Zh,UA;function NCe(){if(UA)return Zh;UA=1;var n=$Ce(),o=As(),i=Object.prototype,r=i.hasOwnProperty,l=i.propertyIsEnumerable,s=n((function(){return arguments})())?n:function(c){return o(c)&&r.call(c,"callee")&&!l.call(c,"callee")};return Zh=s,Zh}var qd={exports:{}},Gh,HA;function FCe(){if(HA)return Gh;HA=1;function n(){return!1}return Gh=n,Gh}qd.exports;var zA;function ZA(){return zA||(zA=1,(function(n,o){var i=oi(),r=FCe(),l=o&&!o.nodeType&&o,s=l&&!0&&n&&!n.nodeType&&n,c=s&&s.exports===l,d=c?i.Buffer:void 0,p=d?d.isBuffer:void 0,u=p||r;n.exports=u})(qd,qd.exports)),qd.exports}var Kh,GA;function KA(){if(GA)return Kh;GA=1;var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;function i(r,l){var s=typeof r;return l=l??n,!!l&&(s=="number"||s!="symbol"&&o.test(r))&&r>-1&&r%1==0&&r<l}return Kh=i,Kh}var Wh,WA;function YA(){if(WA)return Wh;WA=1;var n=9007199254740991;function o(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=n}return Wh=o,Wh}var Yh,XA;function qCe(){if(XA)return Yh;XA=1;var n=Zl(),o=YA(),i=As(),r="[object Arguments]",l="[object Array]",s="[object Boolean]",c="[object Date]",d="[object Error]",p="[object Function]",u="[object Map]",g="[object Number]",f="[object Object]",m="[object RegExp]",h="[object Set]",y="[object String]",k="[object WeakMap]",v="[object ArrayBuffer]",C="[object DataView]",w="[object Float32Array]",S="[object Float64Array]",x="[object Int8Array]",I="[object Int16Array]",L="[object Int32Array]",T="[object Uint8Array]",O="[object Uint8ClampedArray]",P="[object Uint16Array]",z="[object Uint32Array]",D={};D[w]=D[S]=D[x]=D[I]=D[L]=D[T]=D[O]=D[P]=D[z]=!0,D[r]=D[l]=D[v]=D[s]=D[C]=D[c]=D[d]=D[p]=D[u]=D[g]=D[f]=D[m]=D[h]=D[y]=D[k]=!1;function _(G){return i(G)&&o(G.length)&&!!D[n(G)]}return Yh=_,Yh}var Xh,QA;function Qh(){if(QA)return Xh;QA=1;function n(o){return function(i){return o(i)}}return Xh=n,Xh}var Ud={exports:{}};Ud.exports;var JA;function Jh(){return JA||(JA=1,(function(n,o){var i=cy(),r=o&&!o.nodeType&&o,l=r&&!0&&n&&!n.nodeType&&n,s=l&&l.exports===r,c=s&&i.process,d=(function(){try{var p=l&&l.require&&l.require("util").types;return p||c&&c.binding&&c.binding("util")}catch{}})();n.exports=d})(Ud,Ud.exports)),Ud.exports}var Vh,VA;function UCe(){if(VA)return Vh;VA=1;var n=qCe(),o=Qh(),i=Jh(),r=i&&i.isTypedArray,l=r?o(r):n;return Vh=l,Vh}var e4,eL;function tL(){if(eL)return e4;eL=1;var n=MCe(),o=NCe(),i=Es(),r=ZA(),l=KA(),s=UCe(),c=Object.prototype,d=c.hasOwnProperty;function p(u,g){var f=i(u),m=!f&&o(u),h=!f&&!m&&r(u),y=!f&&!m&&!h&&s(u),k=f||m||h||y,v=k?n(u.length,String):[],C=v.length;for(var w in u)(g||d.call(u,w))&&!(k&&(w=="length"||h&&(w=="offset"||w=="parent")||y&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||l(w,C)))&&v.push(w);return v}return e4=p,e4}var t4,oL;function o4(){if(oL)return t4;oL=1;var n=Object.prototype;function o(i){var r=i&&i.constructor,l=typeof r=="function"&&r.prototype||n;return i===l}return t4=o,t4}var n4,nL;function iL(){if(nL)return n4;nL=1;function n(o,i){return function(r){return o(i(r))}}return n4=n,n4}var i4,rL;function HCe(){if(rL)return i4;rL=1;var n=iL(),o=n(Object.keys,Object);return i4=o,i4}var r4,aL;function zCe(){if(aL)return r4;aL=1;var n=o4(),o=HCe(),i=Object.prototype,r=i.hasOwnProperty;function l(s){if(!n(s))return o(s);var c=[];for(var d in Object(s))r.call(s,d)&&d!="constructor"&&c.push(d);return c}return r4=l,r4}var a4,sL;function lL(){if(sL)return a4;sL=1;var n=Cy(),o=YA();function i(r){return r!=null&&o(r.length)&&!n(r)}return a4=i,a4}var s4,cL;function l4(){if(cL)return s4;cL=1;var n=tL(),o=zCe(),i=lL();function r(l){return i(l)?n(l):o(l)}return s4=r,s4}var c4,dL;function ZCe(){if(dL)return c4;dL=1;var n=K0(),o=l4();function i(r,l){return r&&n(l,o(l),r)}return c4=i,c4}var d4,pL;function GCe(){if(pL)return d4;pL=1;function n(o){var i=[];if(o!=null)for(var r in Object(o))i.push(r);return i}return d4=n,d4}var p4,uL;function KCe(){if(uL)return p4;uL=1;var n=ar(),o=o4(),i=GCe(),r=Object.prototype,l=r.hasOwnProperty;function s(c){if(!n(c))return i(c);var d=o(c),p=[];for(var u in c)u=="constructor"&&(d||!l.call(c,u))||p.push(u);return p}return p4=s,p4}var u4,gL;function g4(){if(gL)return u4;gL=1;var n=tL(),o=KCe(),i=lL();function r(l){return i(l)?n(l,!0):o(l)}return u4=r,u4}var f4,fL;function WCe(){if(fL)return f4;fL=1;var n=K0(),o=g4();function i(r,l){return r&&n(l,o(l),r)}return f4=i,f4}var Hd={exports:{}};Hd.exports;var mL;function YCe(){return mL||(mL=1,(function(n,o){var i=oi(),r=o&&!o.nodeType&&o,l=r&&!0&&n&&!n.nodeType&&n,s=l&&l.exports===r,c=s?i.Buffer:void 0,d=c?c.allocUnsafe:void 0;function p(u,g){if(g)return u.slice();var f=u.length,m=d?d(f):new u.constructor(f);return u.copy(m),m}n.exports=p})(Hd,Hd.exports)),Hd.exports}var m4,hL;function XCe(){if(hL)return m4;hL=1;function n(o,i){var r=-1,l=o.length;for(i||(i=Array(l));++r<l;)i[r]=o[r];return i}return m4=n,m4}var h4,bL;function QCe(){if(bL)return h4;bL=1;function n(o,i){for(var r=-1,l=o==null?0:o.length,s=0,c=[];++r<l;){var d=o[r];i(d,r,o)&&(c[s++]=d)}return c}return h4=n,h4}var b4,yL;function vL(){if(yL)return b4;yL=1;function n(){return[]}return b4=n,b4}var y4,CL;function v4(){if(CL)return y4;CL=1;var n=QCe(),o=vL(),i=Object.prototype,r=i.propertyIsEnumerable,l=Object.getOwnPropertySymbols,s=l?function(c){return c==null?[]:(c=Object(c),n(l(c),function(d){return r.call(c,d)}))}:o;return y4=s,y4}var C4,wL;function JCe(){if(wL)return C4;wL=1;var n=K0(),o=v4();function i(r,l){return n(r,o(r),l)}return C4=i,C4}var w4,kL;function jL(){if(kL)return w4;kL=1;function n(o,i){for(var r=-1,l=i.length,s=o.length;++r<l;)o[s+r]=i[r];return o}return w4=n,w4}var k4,xL;function IL(){if(xL)return k4;xL=1;var n=iL(),o=n(Object.getPrototypeOf,Object);return k4=o,k4}var j4,SL;function TL(){if(SL)return j4;SL=1;var n=jL(),o=IL(),i=v4(),r=vL(),l=Object.getOwnPropertySymbols,s=l?function(c){for(var d=[];c;)n(d,i(c)),c=o(c);return d}:r;return j4=s,j4}var x4,EL;function VCe(){if(EL)return x4;EL=1;var n=K0(),o=TL();function i(r,l){return n(r,o(r),l)}return x4=i,x4}var I4,AL;function LL(){if(AL)return I4;AL=1;var n=jL(),o=Es();function i(r,l,s){var c=l(r);return o(r)?c:n(c,s(r))}return I4=i,I4}var S4,OL;function ewe(){if(OL)return S4;OL=1;var n=LL(),o=v4(),i=l4();function r(l){return n(l,i,o)}return S4=r,S4}var T4,DL;function twe(){if(DL)return T4;DL=1;var n=LL(),o=TL(),i=g4();function r(l){return n(l,i,o)}return T4=r,T4}var E4,RL;function owe(){if(RL)return E4;RL=1;var n=ja(),o=oi(),i=n(o,"DataView");return E4=i,E4}var A4,_L;function nwe(){if(_L)return A4;_L=1;var n=ja(),o=oi(),i=n(o,"Promise");return A4=i,A4}var L4,BL;function iwe(){if(BL)return L4;BL=1;var n=ja(),o=oi(),i=n(o,"Set");return L4=i,L4}var O4,PL;function rwe(){if(PL)return O4;PL=1;var n=ja(),o=oi(),i=n(o,"WeakMap");return O4=i,O4}var D4,ML;function R4(){if(ML)return D4;ML=1;var n=owe(),o=u3(),i=nwe(),r=iwe(),l=rwe(),s=Zl(),c=xy(),d="[object Map]",p="[object Object]",u="[object Promise]",g="[object Set]",f="[object WeakMap]",m="[object DataView]",h=c(n),y=c(o),k=c(i),v=c(r),C=c(l),w=s;return(n&&w(new n(new ArrayBuffer(1)))!=m||o&&w(new o)!=d||i&&w(i.resolve())!=u||r&&w(new r)!=g||l&&w(new l)!=f)&&(w=function(S){var x=s(S),I=x==p?S.constructor:void 0,L=I?c(I):"";if(L)switch(L){case h:return m;case y:return d;case k:return u;case v:return g;case C:return f}return x}),D4=w,D4}var _4,$L;function awe(){if($L)return _4;$L=1;var n=Object.prototype,o=n.hasOwnProperty;function i(r){var l=r.length,s=new r.constructor(l);return l&&typeof r[0]=="string"&&o.call(r,"index")&&(s.index=r.index,s.input=r.input),s}return _4=i,_4}var B4,NL;function swe(){if(NL)return B4;NL=1;var n=oi(),o=n.Uint8Array;return B4=o,B4}var P4,FL;function M4(){if(FL)return P4;FL=1;var n=swe();function o(i){var r=new i.constructor(i.byteLength);return new n(r).set(new n(i)),r}return P4=o,P4}var $4,qL;function lwe(){if(qL)return $4;qL=1;var n=M4();function o(i,r){var l=r?n(i.buffer):i.buffer;return new i.constructor(l,i.byteOffset,i.byteLength)}return $4=o,$4}var N4,UL;function cwe(){if(UL)return N4;UL=1;var n=/\w*$/;function o(i){var r=new i.constructor(i.source,n.exec(i));return r.lastIndex=i.lastIndex,r}return N4=o,N4}var F4,HL;function dwe(){if(HL)return F4;HL=1;var n=B1(),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;function r(l){return i?Object(i.call(l)):{}}return F4=r,F4}var q4,zL;function pwe(){if(zL)return q4;zL=1;var n=M4();function o(i,r){var l=r?n(i.buffer):i.buffer;return new i.constructor(l,i.byteOffset,i.length)}return q4=o,q4}var U4,ZL;function uwe(){if(ZL)return U4;ZL=1;var n=M4(),o=lwe(),i=cwe(),r=dwe(),l=pwe(),s="[object Boolean]",c="[object Date]",d="[object Map]",p="[object Number]",u="[object RegExp]",g="[object Set]",f="[object String]",m="[object Symbol]",h="[object ArrayBuffer]",y="[object DataView]",k="[object Float32Array]",v="[object Float64Array]",C="[object Int8Array]",w="[object Int16Array]",S="[object Int32Array]",x="[object Uint8Array]",I="[object Uint8ClampedArray]",L="[object Uint16Array]",T="[object Uint32Array]";function O(P,z,D){var _=P.constructor;switch(z){case h:return n(P);case s:case c:return new _(+P);case y:return o(P,D);case k:case v:case C:case w:case S:case x:case I:case L:case T:return l(P,D);case d:return new _;case p:case f:return new _(P);case u:return i(P);case g:return new _;case m:return r(P)}}return U4=O,U4}var H4,GL;function gwe(){if(GL)return H4;GL=1;var n=ar(),o=Object.create,i=(function(){function r(){}return function(l){if(!n(l))return{};if(o)return o(l);r.prototype=l;var s=new r;return r.prototype=void 0,s}})();return H4=i,H4}var z4,KL;function fwe(){if(KL)return z4;KL=1;var n=gwe(),o=IL(),i=o4();function r(l){return typeof l.constructor=="function"&&!i(l)?n(o(l)):{}}return z4=r,z4}var Z4,WL;function mwe(){if(WL)return Z4;WL=1;var n=R4(),o=As(),i="[object Map]";function r(l){return o(l)&&n(l)==i}return Z4=r,Z4}var G4,YL;function hwe(){if(YL)return G4;YL=1;var n=mwe(),o=Qh(),i=Jh(),r=i&&i.isMap,l=r?o(r):n;return G4=l,G4}var K4,XL;function bwe(){if(XL)return K4;XL=1;var n=R4(),o=As(),i="[object Set]";function r(l){return o(l)&&n(l)==i}return K4=r,K4}var W4,QL;function ywe(){if(QL)return W4;QL=1;var n=bwe(),o=Qh(),i=Jh(),r=i&&i.isSet,l=r?o(r):n;return W4=l,W4}var Y4,JL;function vwe(){if(JL)return Y4;JL=1;var n=_Ce(),o=BCe(),i=qh(),r=ZCe(),l=WCe(),s=YCe(),c=XCe(),d=JCe(),p=VCe(),u=ewe(),g=twe(),f=R4(),m=awe(),h=uwe(),y=fwe(),k=Es(),v=ZA(),C=hwe(),w=ar(),S=ywe(),x=l4(),I=g4(),L=1,T=2,O=4,P="[object Arguments]",z="[object Array]",D="[object Boolean]",_="[object Date]",G="[object Error]",V="[object Function]",ne="[object GeneratorFunction]",ee="[object Map]",E="[object Number]",U="[object Object]",M="[object RegExp]",N="[object Set]",Y="[object String]",ae="[object Symbol]",J="[object WeakMap]",A="[object ArrayBuffer]",F="[object DataView]",ce="[object Float32Array]",de="[object Float64Array]",fe="[object Int8Array]",ve="[object Int16Array]",K="[object Int32Array]",X="[object Uint8Array]",re="[object Uint8ClampedArray]",pe="[object Uint16Array]",Ce="[object Uint32Array]",me={};me[P]=me[z]=me[A]=me[F]=me[D]=me[_]=me[ce]=me[de]=me[fe]=me[ve]=me[K]=me[ee]=me[E]=me[U]=me[M]=me[N]=me[Y]=me[ae]=me[X]=me[re]=me[pe]=me[Ce]=!0,me[G]=me[V]=me[J]=!1;function he(be,H,W,le,we,qe){var Ne,De=H&L,ie=H&T,ue=H&O;if(W&&(Ne=we?W(be,le,we,qe):W(be)),Ne!==void 0)return Ne;if(!w(be))return be;var $e=k(be);if($e){if(Ne=m(be),!De)return c(be,Ne)}else{var Ye=f(be),Rt=Ye==V||Ye==ne;if(v(be))return s(be,De);if(Ye==U||Ye==P||Rt&&!we){if(Ne=ie||Rt?{}:y(be),!De)return ie?p(be,l(Ne,be)):d(be,r(Ne,be))}else{if(!me[Ye])return we?be:{};Ne=h(be,Ye,De)}}qe||(qe=new n);var R=qe.get(be);if(R)return R;qe.set(be,Ne),S(be)?be.forEach(function(B){Ne.add(he(B,H,W,B,be,qe))}):C(be)&&be.forEach(function(B,Z){Ne.set(Z,he(B,H,W,Z,be,qe))});var b=ue?ie?g:u:ie?I:x,j=$e?void 0:b(be);return o(j||be,function(B,Z){j&&(Z=B,B=be[Z]),i(Ne,Z,he(B,H,W,Z,be,qe))}),Ne}return Y4=he,Y4}var X4,VL;function Cwe(){if(VL)return X4;VL=1;var n=vwe(),o=1,i=4;function r(l){return n(l,o|i)}return X4=r,X4}Cwe();var Q4,eO;function wwe(){if(eO)return Q4;eO=1;var n=qh(),o=sv(),i=KA(),r=ar(),l=cv();function s(c,d,p,u){if(!r(c))return c;d=o(d,c);for(var g=-1,f=d.length,m=f-1,h=c;h!=null&&++g<f;){var y=l(d[g]),k=p;if(y==="__proto__"||y==="constructor"||y==="prototype")return c;if(g!=m){var v=h[y];k=u?u(v,y,h):void 0,k===void 0&&(k=r(v)?v:i(d[g+1])?[]:{})}n(h,y,k),h=h[y]}return c}return Q4=s,Q4}var J4,tO;function kwe(){if(tO)return J4;tO=1;var n=wwe();function o(i,r,l){return i==null?i:n(i,r,l)}return J4=o,J4}kwe();const jwe={class:"wt-chat-emoji"},xwe={__name:"wt-chat-emoji",props:{size:{type:String,default:Be.MD},popupTeleportTo:{type:String,default:""},filled:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0}},emits:["insert-emoji"],setup(n,{emit:o}){const i=n,r=o,l=a.ref(null),s=a.ref(!1),c=a.ref(null),d=a.computed(()=>i.popupTeleportTo||"body"),p=a.computed(()=>i.filled||s.value?"active":"outlined"),u=async()=>{c.value||(c.value=document.createElement("emoji-picker"),g(),c.value.addEventListener("emoji-click",f))},g=()=>{l.value&&c.value&&l.value.appendChild(c.value)},f=v=>{const{unicode:C}=v.detail;r("insert-emoji",C),m()},m=()=>{s.value=!1,c.value&&l.value&&(c.value.removeEventListener("emoji-click",f),l.value.removeChild(c.value),c.value=null)},h=v=>{l.value?.contains(v.target)||m()},y=async()=>{k(),s.value=!s.value,s.value?(await a.nextTick(),await u()):m()},k=()=>nI.$emit("chat-input-focus");return a.onBeforeUnmount(()=>{m()}),(v,C)=>{const w=a.resolveDirective("clickaway");return a.withDirectives((a.openBlock(),a.createElementBlock("div",jwe,[a.createVNode(a.unref(X6),{size:n.size,variant:p.value,color:"secondary",icon:"chat-emoji",rounded:n.rounded,wide:"",onClick:y},null,8,["size","variant","rounded"]),(a.openBlock(),a.createBlock(a.Teleport,{disabled:!n.popupTeleportTo,to:d.value},[s.value?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"emojiPickerWrapper",ref:l,class:"wt-chat-emoji__wrapper"},null,512)):a.createCommentVNode("",!0)],8,["disabled","to"]))])),[[w,h]])}}},Iwe=Object.freeze(Object.defineProperty({__proto__:null,default:xe(xwe,[["__scopeId","data-v-ba4e93e1"]])},Symbol.toStringTag,{value:"Module"})),Swe={class:"wt-display-chip-items"},Twe={key:0},Ewe=["onClick"],Awe=Object.freeze(Object.defineProperty({__proto__:null,default:xe(a.defineComponent({__name:"wt-display-chip-items",props:{hideFirstItem:{type:Boolean},useEmptySymbol:{type:Boolean},title:{},items:{}},setup(n){const o=n,i=a.computed(()=>o.items?.length?o.items[0]?.name:o.useEmptySymbol?Rp:""),r=a.computed(()=>o.items?.length?o.hideFirstItem?o.items:o.items.slice(1):[]);return(l,s)=>(a.openBlock(),a.createElementBlock("div",Swe,[o.title?(a.openBlock(),a.createElementBlock("p",Twe,a.toDisplayString(n.title)+":",1)):a.createCommentVNode("",!0),o.hideFirstItem?a.createCommentVNode("",!0):a.renderSlot(l.$slots,"first-item",{key:1},()=>[a.createTextVNode(a.toDisplayString(a.unref(rB)(i.value)),1)],!0),a.createVNode(a.unref(_C),null,{activator:a.withCtx(({toggle:c})=>[a.renderSlot(l.$slots,"activator",{toggle:c},()=>[r.value.length?(a.openBlock(),a.createElementBlock("div",{key:0,onClick:c},[a.createVNode(a.unref(Q6),null,{default:a.withCtx(()=>[a.createTextVNode(" +"+a.toDisplayString(r.value.length),1)],void 0,!0),_:1})],8,Ewe)):a.createCommentVNode("",!0)],!0)]),default:a.withCtx(()=>[a.renderSlot(l.$slots,"items",{items:r.value},()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,({name:c,id:d})=>(a.openBlock(),a.createElementBlock("div",{key:d},a.toDisplayString(c),1))),128))],!0)]),_:3})]))}}),[["__scopeId","data-v-4c67fbb7"]])},Symbol.toStringTag,{value:"Module"})),Lwe={class:"nav-menu__category nav-menu-lvl-1"},Owe=["onClick"],Dwe=xe({__name:"nav-menu-lvl-1",props:{categories:{type:Array,default:()=>[]},selected:{type:Object,default:()=>({})},icons:{type:Array,default:()=>[]}},emits:["select"],setup(n,{emit:o}){const i=o;function r(l){i("select",l)}return(l,s)=>{const c=a.resolveComponent("wt-icon");return a.openBlock(),a.createElementBlock("ul",Lwe,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.categories,(d,p)=>(a.openBlock(),a.createElementBlock("li",{key:p,class:"nav-menu__option"},[a.createElementVNode("button",{class:a.normalizeClass([{"nav-menu__item--selected":n.selected.value===d.value},"typo-body-1 nav-menu__item nav-menu__item--active"]),onClick:u=>r(d)},[a.createVNode(c,{color:n.selected.value===d.value?"on-primary":"default",icon:n.icons.find(u=>u.includes(d.value))},null,8,["color","icon"]),a.createTextVNode(" "+a.toDisplayString(d.name),1)],10,Owe),a.withDirectives(a.createElementVNode("div",null,[a.renderSlot(l.$slots,"default",{},void 0,!0)],512),[[a.vShow,n.selected.value===d.value]])]))),128))])}}},[["__scopeId","data-v-dd3e01a2"]]),Rwe={class:"nav-menu__category nav-menu-lvl-2"},oO=xe({__name:"nav-menu-lvl-2",props:{categories:{type:Array,default:()=>[]}},setup(n){return(o,i)=>{const r=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("ul",Rwe,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.categories,(l,s)=>(a.openBlock(),a.createElementBlock("li",{key:s,class:"typo-body-1 nav-menu__option nav-menu__item nav-menu-lvl-2--inner"},[i[0]||(i[0]=a.createElementVNode("span",{class:"nav-menu-lvl-2__indicator"},null,-1)),a.createVNode(r,{to:l.route,class:"nav-menu-lvl-2__link"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l.name),1)],void 0,!0),_:2},1032,["to"])]))),128))])}}},[["__scopeId","data-v-d3104e61"]]),_we={class:"wt-navigation-menu"},Bwe={class:"wt-navigation-menu__wrapper"},Pwe=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"wt-navigation-menu",props:{nav:{type:Array,required:!0},icons:{type:Array,default:()=>[]}},setup(n){const o=n,i=a.ref(""),r=a.computed(()=>{const u=new Map;return o.nav.forEach(g=>{u.set(g.value,{...g,name:g.name})}),u}),l=a.computed(()=>{const u=new Map;return o.nav.forEach(g=>{if(g.subNav){const f=g.subNav.map(m=>{const h=g.route?`${g.route}/${m.route}`:m.route;return{...m,name:m.name,route:h}});u.set(g.value,f)}else u.set(g.value,[])}),u}),s=a.computed(()=>Array.from(r.value.values()).filter(u=>{const g=l.value.get(u.value);return g&&g.length>0})),c=a.computed(()=>l.value.get(d.value?.value)||[]),d=a.computed(()=>r.value.get(i.value)||s.value[0]);function p(u){i.value=u.value}return(u,g)=>(a.openBlock(),a.createElementBlock("section",_we,[a.createElementVNode("article",Bwe,[a.createVNode(Dwe,{categories:s.value,icons:n.icons,selected:d.value,onSelect:p},{default:a.withCtx(()=>[a.createVNode(oO,{categories:c.value,class:"wt-navigation-menu__categories--display"},null,8,["categories"])],void 0,!0),_:1},8,["categories","icons","selected"]),a.createVNode(oO,{categories:c.value,class:"wt-navigation-menu__categories--hidden"},null,8,["categories"])])]))}},[["__scopeId","data-v-fcbc24f4"]])},Symbol.toStringTag,{value:"Module"})),Mwe={class:"wt-selection-popup__options"},$we=["onClick"],Nwe={class:"wt-selection-popup__item-header typo-subtitle-2"},Fwe={key:1,class:"popup-options__item-text"},qwe=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"wt-selection-popup",props:{title:{type:String},selected:{type:Object},options:{type:Array,default:()=>[]}},emits:["change","add","close"],setup(n,{emit:o}){const i=n,r=o,{t:l}=Pn();function s(){r("add",i.selected)}function c(){r("close")}function d(p){r("change",p)}return(p,u)=>{const g=a.resolveComponent("wt-icon"),f=a.resolveComponent("wt-icon-btn"),m=a.resolveComponent("wt-button"),h=a.resolveComponent("wt-popup"),y=a.resolveDirective("tooltip");return a.openBlock(),a.createBlock(h,a.mergeProps(p.$attrs,{class:"wt-selection-popup",overflow:"",size:"sm"},{onClose:c}),{title:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(n.title),1)]),main:a.withCtx(()=>[a.createElementVNode("ul",Mwe,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.options,(k,v)=>(a.openBlock(),a.createElementBlock("li",{key:v,class:a.normalizeClass([{active:k.value===n.selected.value},"wt-selection-popup__item-wrapper"]),onClick:C=>d(k)},[a.renderSlot(p.$slots,"option",{option:k},()=>[k.icon?(a.openBlock(),a.createBlock(g,{key:0,icon:k.icon,size:"sm"},null,8,["icon"])):a.createCommentVNode("",!0),a.createElementVNode("h4",Nwe,a.toDisplayString(k.title),1),k.description?(a.openBlock(),a.createElementBlock("p",Fwe,a.toDisplayString(k.description),1)):a.createCommentVNode("",!0),k.description?a.withDirectives((a.openBlock(),a.createBlock(f,{key:2,color:"info",icon:"rounded-info"},null,512)),[[y,k.description]]):a.createCommentVNode("",!0)],!0)],10,$we))),128))]),a.renderSlot(p.$slots,"after-section",{},void 0,!0)]),actions:a.withCtx(()=>[a.createVNode(m,{disabled:!n.selected,onClick:s},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(l)("reusable.create")),1)],void 0,!0),_:1},8,["disabled"]),a.createVNode(m,{color:"secondary",onClick:c},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(l)("reusable.close")),1)],void 0,!0),_:1})]),_:3},16)}}},[["__scopeId","data-v-d7ed7032"]])},Symbol.toStringTag,{value:"Module"})),Uwe={class:"start-page-card"},Hwe={class:"typo-heading-4 start-page-card__header"},zwe={class:"start-page-card__main-section"},Zwe=["alt","src"],Gwe={class:"typo-body-1 start-page-card__description"},Kwe=xe({__name:"start-page-card",props:{card:{type:Object,required:!0}},setup(n){const o=zU(),i=n,r=()=>o.push(i.card.route);return(l,s)=>{const c=a.resolveComponent("wt-icon"),d=a.resolveComponent("wt-button");return a.openBlock(),a.createElementBlock("article",Uwe,[a.createElementVNode("header",Hwe,[n.card.disabled?(a.openBlock(),a.createBlock(c,{key:0,icon:"lock"})):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(n.card.name),1)]),a.createElementVNode("section",zwe,[a.createElementVNode("img",{alt:n.card.name,src:n.card.image},null,8,Zwe),a.createElementVNode("p",Gwe,a.toDisplayString(n.card.text),1)]),a.createElementVNode("footer",null,[a.createVNode(d,{disabled:n.card.disabled,class:"start-page-card__button",color:"secondary",wide:"",onClick:r},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l.$t("reusable.open")),1)],void 0,!0),_:1},8,["disabled"])])])}}},[["__scopeId","data-v-e4560b27"]]),Wwe={class:"start-page-logo"},Ywe=["src"],Xwe=xe({__name:"start-page-logo",props:{logo:{type:String,required:!0}},setup(n){return(o,i)=>(a.openBlock(),a.createElementBlock("div",Wwe,[a.createElementVNode("img",{src:n.logo},null,8,Ywe)]))}},[["__scopeId","data-v-187dc1b4"]]),Qwe={class:"wt-start-page"},Jwe={class:"wt-start-page__wrapper"},Vwe=Object.freeze(Object.defineProperty({__proto__:null,default:xe(a.defineComponent({__name:"wt-start-page",props:{nav:{},appLogo:{},darkMode:{type:Boolean,default:!1}},setup(n){const o=n;a.provide("darkMode",o.darkMode);const i=a.computed(()=>o.darkMode?o.appLogo.dark:o.appLogo.light),r=a.computed(()=>o.nav.map(l=>({...l,image:o.darkMode?l.images.dark:l.images.light})));return(l,s)=>(a.openBlock(),a.createElementBlock("div",Qwe,[n.appLogo?(a.openBlock(),a.createBlock(Xwe,{key:0,logo:i.value},null,8,["logo"])):a.createCommentVNode("",!0),a.createElementVNode("div",Jwe,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,c=>(a.openBlock(),a.createBlock(Kwe,{key:c.value,card:c},null,8,["card"]))),128))])]))}}),[["__scopeId","data-v-85dd1b85"]])},Symbol.toStringTag,{value:"Module"})),nO=()=>({items:[],next:!1}),iO=({page:n=1,size:o=10}={})=>({page:n,size:o}),eke=String.prototype.replace,tke=/%20/g,rO={RFC1738:"RFC1738",RFC3986:"RFC3986"},V4={RFC1738:function(n){return eke.call(n,tke,"+")},RFC3986:function(n){return String(n)}},oke=rO.RFC1738,aO=rO.RFC3986,nke=Array.isArray,Ki=(function(){const n=[];for(let o=0;o<256;++o)n.push("%"+((o<16?"0":"")+o.toString(16)).toUpperCase());return n})(),eb=1024,ike=function(o,i,r,l,s){if(o.length===0)return o;let c=o;if(typeof o=="symbol"?c=Symbol.prototype.toString.call(o):typeof o!="string"&&(c=String(o)),r==="iso-8859-1")return escape(c).replace(/%u[0-9a-f]{4}/gi,function(p){return"%26%23"+parseInt(p.slice(2),16)+"%3B"});let d="";for(let p=0;p<c.length;p+=eb){const u=c.length>=eb?c.slice(p,p+eb):c,g=[];for(let f=0;f<u.length;++f){let m=u.charCodeAt(f);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||s===oke&&(m===40||m===41)){g[g.length]=u.charAt(f);continue}if(m<128){g[g.length]=Ki[m];continue}if(m<2048){g[g.length]=Ki[192|m>>6]+Ki[128|m&63];continue}if(m<55296||m>=57344){g[g.length]=Ki[224|m>>12]+Ki[128|m>>6&63]+Ki[128|m&63];continue}f+=1,m=65536+((m&1023)<<10|u.charCodeAt(f)&1023),g[g.length]=Ki[240|m>>18]+Ki[128|m>>12&63]+Ki[128|m>>6&63]+Ki[128|m&63]}d+=g.join("")}return d},rke=function(o){return!o||typeof o!="object"?!1:!!(o.constructor&&o.constructor.isBuffer&&o.constructor.isBuffer(o))},sO=function(o,i){if(nke(o)){const r=[];for(let l=0;l<o.length;l+=1)r.push(i(o[l]));return r}return i(o)},ake=Object.prototype.hasOwnProperty,lO={brackets:function(o){return o+"[]"},comma:"comma",indices:function(o,i){return o+"["+i+"]"},repeat:function(o){return o}},Wi=Array.isArray,ske=Array.prototype.push,cO=function(n,o){ske.apply(n,Wi(o)?o:[o])},lke=Date.prototype.toISOString,dO=aO,ho={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ike,encodeValuesOnly:!1,format:dO,formatter:V4[dO],indices:!1,serializeDate:function(o){return lke.call(o)},skipNulls:!1,strictNullHandling:!1},cke=function(o){return typeof o=="string"||typeof o=="number"||typeof o=="boolean"||typeof o=="symbol"||typeof o=="bigint"},tb={},pO=function(o,i,r,l,s,c,d,p,u,g,f,m,h,y,k,v,C,w){let S=o,x=w,I=0,L=!1;for(;(x=x.get(tb))!==void 0&&!L;){const D=x.get(o);if(I+=1,typeof D<"u"){if(D===I)throw new RangeError("Cyclic object value");L=!0}typeof x.get(tb)>"u"&&(I=0)}if(typeof g=="function"?S=g(i,S):S instanceof Date?S=h(S):r==="comma"&&Wi(S)&&(S=sO(S,function(D){return D instanceof Date?h(D):D})),S===null){if(c)return u&&!v?u(i,ho.encoder,C,"key",y):i;S=""}if(cke(S)||rke(S)){if(u){const D=v?i:u(i,ho.encoder,C,"key",y);return[k(D)+"="+k(u(S,ho.encoder,C,"value",y))]}return[k(i)+"="+k(String(S))]}const T=[];if(typeof S>"u")return T;let O;if(r==="comma"&&Wi(S))v&&u&&(S=sO(S,u)),O=[{value:S.length>0?S.join(",")||null:void 0}];else if(Wi(g))O=g;else{const D=Object.keys(S);O=f?D.sort(f):D}const P=p?i.replace(/\./g,"%2E"):i,z=l&&Wi(S)&&S.length===1?P+"[]":P;if(s&&Wi(S)&&S.length===0)return z+"[]";for(let D=0;D<O.length;++D){const _=O[D],G=typeof _=="object"&&typeof _.value<"u"?_.value:S[_];if(d&&G===null)continue;const V=m&&p?_.replace(/\./g,"%2E"):_,ne=Wi(S)?typeof r=="function"?r(z,V):z:z+(m?"."+V:"["+V+"]");w.set(o,I);const ee=new WeakMap;ee.set(tb,w),cO(T,pO(G,ne,r,l,s,c,d,p,r==="comma"&&v&&Wi(S)?null:u,g,f,m,h,y,k,v,C,ee))}return T},dke=function(o){if(!o)return ho;if(typeof o.allowEmptyArrays<"u"&&typeof o.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof o.encodeDotInKeys<"u"&&typeof o.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(o.encoder!==null&&typeof o.encoder<"u"&&typeof o.encoder!="function")throw new TypeError("Encoder has to be a function.");const i=o.charset||ho.charset;if(typeof o.charset<"u"&&o.charset!=="utf-8"&&o.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let r=aO;if(typeof o.format<"u"){if(!ake.call(V4,o.format))throw new TypeError("Unknown format option provided.");r=o.format}const l=V4[r];let s=ho.filter;(typeof o.filter=="function"||Wi(o.filter))&&(s=o.filter);let c;if(o.arrayFormat in lO?c=o.arrayFormat:"indices"in o?c=o.indices?"indices":"repeat":c=ho.arrayFormat,"commaRoundTrip"in o&&typeof o.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");const d=typeof o.allowDots>"u"?o.encodeDotInKeys===!0?!0:ho.allowDots:!!o.allowDots;return{addQueryPrefix:typeof o.addQueryPrefix=="boolean"?o.addQueryPrefix:ho.addQueryPrefix,allowDots:d,allowEmptyArrays:typeof o.allowEmptyArrays=="boolean"?!!o.allowEmptyArrays:ho.allowEmptyArrays,arrayFormat:c,charset:i,charsetSentinel:typeof o.charsetSentinel=="boolean"?o.charsetSentinel:ho.charsetSentinel,commaRoundTrip:o.commaRoundTrip,delimiter:typeof o.delimiter>"u"?ho.delimiter:o.delimiter,encode:typeof o.encode=="boolean"?o.encode:ho.encode,encodeDotInKeys:typeof o.encodeDotInKeys=="boolean"?o.encodeDotInKeys:ho.encodeDotInKeys,encoder:typeof o.encoder=="function"?o.encoder:ho.encoder,encodeValuesOnly:typeof o.encodeValuesOnly=="boolean"?o.encodeValuesOnly:ho.encodeValuesOnly,filter:s,format:r,formatter:l,serializeDate:typeof o.serializeDate=="function"?o.serializeDate:ho.serializeDate,skipNulls:typeof o.skipNulls=="boolean"?o.skipNulls:ho.skipNulls,sort:typeof o.sort=="function"?o.sort:null,strictNullHandling:typeof o.strictNullHandling=="boolean"?o.strictNullHandling:ho.strictNullHandling}};function uO(n,o){let i=n;const r=dke(o);let l,s;typeof r.filter=="function"?(s=r.filter,i=s("",i)):Wi(r.filter)&&(s=r.filter,l=s);const c=[];if(typeof i!="object"||i===null)return"";const d=lO[r.arrayFormat],p=d==="comma"&&r.commaRoundTrip;l||(l=Object.keys(i)),r.sort&&l.sort(r.sort);const u=new WeakMap;for(let m=0;m<l.length;++m){const h=l[m];r.skipNulls&&i[h]===null||cO(c,pO(i[h],h,d,p,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,u))}const g=c.join(r.delimiter);let f=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),g.length>0?f+g:""}const pke=[n=>(n.headers["X-Webitel-Access"]=localStorage.getItem("access-token")||"",n),n=>Promise.reject(n)],uke=[n=>n,n=>{if(n.response&&n.response.status===401){const o=encodeURIComponent(window.location.href),i=void 0;window.location.href=`${i}?redirectTo=${o}`}return Promise.reject(n)}],Ct=()=>{const n={arrayFormat:"repeat"};return k7({interceptors:{request:[pke],response:[uke]},baseURL:"/api",paramsSerializer:o=>uO(o,n)})};var ss={},zd={exports:{}};var gke=zd.exports,gO;function fke(){return gO||(gO=1,(function(n,o){(function(i){var r=o&&!o.nodeType&&o,l=n&&!n.nodeType&&n,s=typeof Ri=="object"&&Ri;(s.global===s||s.window===s||s.self===s)&&(i=s);var c,d=2147483647,p=36,u=1,g=26,f=38,m=700,h=72,y=128,k="-",v=/^xn--/,C=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=p-u,I=Math.floor,L=String.fromCharCode,T;function O(N){throw new RangeError(S[N])}function P(N,Y){for(var ae=N.length,J=[];ae--;)J[ae]=Y(N[ae]);return J}function z(N,Y){var ae=N.split("@"),J="";ae.length>1&&(J=ae[0]+"@",N=ae[1]),N=N.replace(w,".");var A=N.split("."),F=P(A,Y).join(".");return J+F}function D(N){for(var Y=[],ae=0,J=N.length,A,F;ae<J;)A=N.charCodeAt(ae++),A>=55296&&A<=56319&&ae<J?(F=N.charCodeAt(ae++),(F&64512)==56320?Y.push(((A&1023)<<10)+(F&1023)+65536):(Y.push(A),ae--)):Y.push(A);return Y}function _(N){return P(N,function(Y){var ae="";return Y>65535&&(Y-=65536,ae+=L(Y>>>10&1023|55296),Y=56320|Y&1023),ae+=L(Y),ae}).join("")}function G(N){return N-48<10?N-22:N-65<26?N-65:N-97<26?N-97:p}function V(N,Y){return N+22+75*(N<26)-((Y!=0)<<5)}function ne(N,Y,ae){var J=0;for(N=ae?I(N/m):N>>1,N+=I(N/Y);N>x*g>>1;J+=p)N=I(N/x);return I(J+(x+1)*N/(N+f))}function ee(N){var Y=[],ae=N.length,J,A=0,F=y,ce=h,de,fe,ve,K,X,re,pe,Ce,me;for(de=N.lastIndexOf(k),de<0&&(de=0),fe=0;fe<de;++fe)N.charCodeAt(fe)>=128&&O("not-basic"),Y.push(N.charCodeAt(fe));for(ve=de>0?de+1:0;ve<ae;){for(K=A,X=1,re=p;ve>=ae&&O("invalid-input"),pe=G(N.charCodeAt(ve++)),(pe>=p||pe>I((d-A)/X))&&O("overflow"),A+=pe*X,Ce=re<=ce?u:re>=ce+g?g:re-ce,!(pe<Ce);re+=p)me=p-Ce,X>I(d/me)&&O("overflow"),X*=me;J=Y.length+1,ce=ne(A-K,J,K==0),I(A/J)>d-F&&O("overflow"),F+=I(A/J),A%=J,Y.splice(A++,0,F)}return _(Y)}function E(N){var Y,ae,J,A,F,ce,de,fe,ve,K,X,re=[],pe,Ce,me,he;for(N=D(N),pe=N.length,Y=y,ae=0,F=h,ce=0;ce<pe;++ce)X=N[ce],X<128&&re.push(L(X));for(J=A=re.length,A&&re.push(k);J<pe;){for(de=d,ce=0;ce<pe;++ce)X=N[ce],X>=Y&&X<de&&(de=X);for(Ce=J+1,de-Y>I((d-ae)/Ce)&&O("overflow"),ae+=(de-Y)*Ce,Y=de,ce=0;ce<pe;++ce)if(X=N[ce],X<Y&&++ae>d&&O("overflow"),X==Y){for(fe=ae,ve=p;K=ve<=F?u:ve>=F+g?g:ve-F,!(fe<K);ve+=p)he=fe-K,me=p-K,re.push(L(V(K+he%me,0))),fe=I(he/me);re.push(L(V(fe,0))),F=ne(ae,Ce,J==A),ae=0,++J}++ae,++Y}return re.join("")}function U(N){return z(N,function(Y){return v.test(Y)?ee(Y.slice(4).toLowerCase()):Y})}function M(N){return z(N,function(Y){return C.test(Y)?"xn--"+E(Y):Y})}if(c={version:"1.4.1",ucs2:{decode:D,encode:_},decode:ee,encode:E,toASCII:M,toUnicode:U},r&&l)if(n.exports==r)l.exports=c;else for(T in c)c.hasOwnProperty(T)&&(r[T]=c[T]);else i.punycode=c})(gke)})(zd,zd.exports)),zd.exports}var ob,fO;function nb(){if(fO)return ob;fO=1;var n=String.prototype.replace,o=/%20/g,i={RFC1738:"RFC1738",RFC3986:"RFC3986"};return ob={default:i.RFC3986,formatters:{RFC1738:function(r){return n.call(r,o,"+")},RFC3986:function(r){return String(r)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986},ob}var ib,mO;function hO(){if(mO)return ib;mO=1;var n=nb(),o=Object.prototype.hasOwnProperty,i=Array.isArray,r=(function(){for(var v=[],C=0;C<256;++C)v.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return v})(),l=function(C){for(;C.length>1;){var w=C.pop(),S=w.obj[w.prop];if(i(S)){for(var x=[],I=0;I<S.length;++I)typeof S[I]<"u"&&x.push(S[I]);w.obj[w.prop]=x}}},s=function(C,w){for(var S=w&&w.plainObjects?{__proto__:null}:{},x=0;x<C.length;++x)typeof C[x]<"u"&&(S[x]=C[x]);return S},c=function v(C,w,S){if(!w)return C;if(typeof w!="object"&&typeof w!="function"){if(i(C))C.push(w);else if(C&&typeof C=="object")(S&&(S.plainObjects||S.allowPrototypes)||!o.call(Object.prototype,w))&&(C[w]=!0);else return[C,w];return C}if(!C||typeof C!="object")return[C].concat(w);var x=C;return i(C)&&!i(w)&&(x=s(C,S)),i(C)&&i(w)?(w.forEach(function(I,L){if(o.call(C,L)){var T=C[L];T&&typeof T=="object"&&I&&typeof I=="object"?C[L]=v(T,I,S):C.push(I)}else C[L]=I}),C):Object.keys(w).reduce(function(I,L){var T=w[L];return o.call(I,L)?I[L]=v(I[L],T,S):I[L]=T,I},x)},d=function(C,w){return Object.keys(w).reduce(function(S,x){return S[x]=w[x],S},C)},p=function(v,C,w){var S=v.replace(/\+/g," ");if(w==="iso-8859-1")return S.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(S)}catch{return S}},u=1024,g=function(C,w,S,x,I){if(C.length===0)return C;var L=C;if(typeof C=="symbol"?L=Symbol.prototype.toString.call(C):typeof C!="string"&&(L=String(C)),S==="iso-8859-1")return escape(L).replace(/%u[0-9a-f]{4}/gi,function(G){return"%26%23"+parseInt(G.slice(2),16)+"%3B"});for(var T="",O=0;O<L.length;O+=u){for(var P=L.length>=u?L.slice(O,O+u):L,z=[],D=0;D<P.length;++D){var _=P.charCodeAt(D);if(_===45||_===46||_===95||_===126||_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||I===n.RFC1738&&(_===40||_===41)){z[z.length]=P.charAt(D);continue}if(_<128){z[z.length]=r[_];continue}if(_<2048){z[z.length]=r[192|_>>6]+r[128|_&63];continue}if(_<55296||_>=57344){z[z.length]=r[224|_>>12]+r[128|_>>6&63]+r[128|_&63];continue}D+=1,_=65536+((_&1023)<<10|P.charCodeAt(D)&1023),z[z.length]=r[240|_>>18]+r[128|_>>12&63]+r[128|_>>6&63]+r[128|_&63]}T+=z.join("")}return T},f=function(C){for(var w=[{obj:{o:C},prop:"o"}],S=[],x=0;x<w.length;++x)for(var I=w[x],L=I.obj[I.prop],T=Object.keys(L),O=0;O<T.length;++O){var P=T[O],z=L[P];typeof z=="object"&&z!==null&&S.indexOf(z)===-1&&(w.push({obj:L,prop:P}),S.push(z))}return l(w),C},m=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},h=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},y=function(C,w){return[].concat(C,w)},k=function(C,w){if(i(C)){for(var S=[],x=0;x<C.length;x+=1)S.push(w(C[x]));return S}return w(C)};return ib={arrayToObject:s,assign:d,combine:y,compact:f,decode:p,encode:g,isBuffer:h,isRegExp:m,maybeMap:k,merge:c},ib}var rb,bO;function mke(){if(bO)return rb;bO=1;var n=Lm(),o=hO(),i=nb(),r=Object.prototype.hasOwnProperty,l={brackets:function(v){return v+"[]"},comma:"comma",indices:function(v,C){return v+"["+C+"]"},repeat:function(v){return v}},s=Array.isArray,c=Array.prototype.push,d=function(k,v){c.apply(k,s(v)?v:[v])},p=Date.prototype.toISOString,u=i.default,g={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:u,formatter:i.formatters[u],indices:!1,serializeDate:function(v){return p.call(v)},skipNulls:!1,strictNullHandling:!1},f=function(v){return typeof v=="string"||typeof v=="number"||typeof v=="boolean"||typeof v=="symbol"||typeof v=="bigint"},m={},h=function k(v,C,w,S,x,I,L,T,O,P,z,D,_,G,V,ne,ee,E){for(var U=v,M=E,N=0,Y=!1;(M=M.get(m))!==void 0&&!Y;){var ae=M.get(v);if(N+=1,typeof ae<"u"){if(ae===N)throw new RangeError("Cyclic object value");Y=!0}typeof M.get(m)>"u"&&(N=0)}if(typeof P=="function"?U=P(C,U):U instanceof Date?U=_(U):w==="comma"&&s(U)&&(U=o.maybeMap(U,function(me){return me instanceof Date?_(me):me})),U===null){if(I)return O&&!ne?O(C,g.encoder,ee,"key",G):C;U=""}if(f(U)||o.isBuffer(U)){if(O){var J=ne?C:O(C,g.encoder,ee,"key",G);return[V(J)+"="+V(O(U,g.encoder,ee,"value",G))]}return[V(C)+"="+V(String(U))]}var A=[];if(typeof U>"u")return A;var F;if(w==="comma"&&s(U))ne&&O&&(U=o.maybeMap(U,O)),F=[{value:U.length>0?U.join(",")||null:void 0}];else if(s(P))F=P;else{var ce=Object.keys(U);F=z?ce.sort(z):ce}var de=T?String(C).replace(/\./g,"%2E"):String(C),fe=S&&s(U)&&U.length===1?de+"[]":de;if(x&&s(U)&&U.length===0)return fe+"[]";for(var ve=0;ve<F.length;++ve){var K=F[ve],X=typeof K=="object"&&K&&typeof K.value<"u"?K.value:U[K];if(!(L&&X===null)){var re=D&&T?String(K).replace(/\./g,"%2E"):String(K),pe=s(U)?typeof w=="function"?w(fe,re):fe:fe+(D?"."+re:"["+re+"]");E.set(v,N);var Ce=n();Ce.set(m,E),d(A,k(X,pe,w,S,x,I,L,T,w==="comma"&&ne&&s(U)?null:O,P,z,D,_,G,V,ne,ee,Ce))}}return A},y=function(v){if(!v)return g;if(typeof v.allowEmptyArrays<"u"&&typeof v.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof v.encodeDotInKeys<"u"&&typeof v.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(v.encoder!==null&&typeof v.encoder<"u"&&typeof v.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=v.charset||g.charset;if(typeof v.charset<"u"&&v.charset!=="utf-8"&&v.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var w=i.default;if(typeof v.format<"u"){if(!r.call(i.formatters,v.format))throw new TypeError("Unknown format option provided.");w=v.format}var S=i.formatters[w],x=g.filter;(typeof v.filter=="function"||s(v.filter))&&(x=v.filter);var I;if(v.arrayFormat in l?I=v.arrayFormat:"indices"in v?I=v.indices?"indices":"repeat":I=g.arrayFormat,"commaRoundTrip"in v&&typeof v.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var L=typeof v.allowDots>"u"?v.encodeDotInKeys===!0?!0:g.allowDots:!!v.allowDots;return{addQueryPrefix:typeof v.addQueryPrefix=="boolean"?v.addQueryPrefix:g.addQueryPrefix,allowDots:L,allowEmptyArrays:typeof v.allowEmptyArrays=="boolean"?!!v.allowEmptyArrays:g.allowEmptyArrays,arrayFormat:I,charset:C,charsetSentinel:typeof v.charsetSentinel=="boolean"?v.charsetSentinel:g.charsetSentinel,commaRoundTrip:!!v.commaRoundTrip,delimiter:typeof v.delimiter>"u"?g.delimiter:v.delimiter,encode:typeof v.encode=="boolean"?v.encode:g.encode,encodeDotInKeys:typeof v.encodeDotInKeys=="boolean"?v.encodeDotInKeys:g.encodeDotInKeys,encoder:typeof v.encoder=="function"?v.encoder:g.encoder,encodeValuesOnly:typeof v.encodeValuesOnly=="boolean"?v.encodeValuesOnly:g.encodeValuesOnly,filter:x,format:w,formatter:S,serializeDate:typeof v.serializeDate=="function"?v.serializeDate:g.serializeDate,skipNulls:typeof v.skipNulls=="boolean"?v.skipNulls:g.skipNulls,sort:typeof v.sort=="function"?v.sort:null,strictNullHandling:typeof v.strictNullHandling=="boolean"?v.strictNullHandling:g.strictNullHandling}};return rb=function(k,v){var C=k,w=y(v),S,x;typeof w.filter=="function"?(x=w.filter,C=x("",C)):s(w.filter)&&(x=w.filter,S=x);var I=[];if(typeof C!="object"||C===null)return"";var L=l[w.arrayFormat],T=L==="comma"&&w.commaRoundTrip;S||(S=Object.keys(C)),w.sort&&S.sort(w.sort);for(var O=n(),P=0;P<S.length;++P){var z=S[P],D=C[z];w.skipNulls&&D===null||d(I,h(D,z,L,T,w.allowEmptyArrays,w.strictNullHandling,w.skipNulls,w.encodeDotInKeys,w.encode?w.encoder:null,w.filter,w.sort,w.allowDots,w.serializeDate,w.format,w.formatter,w.encodeValuesOnly,w.charset,O))}var _=I.join(w.delimiter),G=w.addQueryPrefix===!0?"?":"";return w.charsetSentinel&&(w.charset==="iso-8859-1"?G+="utf8=%26%2310003%3B&":G+="utf8=%E2%9C%93&"),_.length>0?G+_:""},rb}var ab,yO;function hke(){if(yO)return ab;yO=1;var n=hO(),o=Object.prototype.hasOwnProperty,i=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},l=function(m){return m.replace(/&#(\d+);/g,function(h,y){return String.fromCharCode(parseInt(y,10))})},s=function(m,h,y){if(m&&typeof m=="string"&&h.comma&&m.indexOf(",")>-1)return m.split(",");if(h.throwOnLimitExceeded&&y>=h.arrayLimit)throw new RangeError("Array limit exceeded. Only "+h.arrayLimit+" element"+(h.arrayLimit===1?"":"s")+" allowed in an array.");return m},c="utf8=%26%2310003%3B",d="utf8=%E2%9C%93",p=function(h,y){var k={__proto__:null},v=y.ignoreQueryPrefix?h.replace(/^\?/,""):h;v=v.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var C=y.parameterLimit===1/0?void 0:y.parameterLimit,w=v.split(y.delimiter,y.throwOnLimitExceeded?C+1:C);if(y.throwOnLimitExceeded&&w.length>C)throw new RangeError("Parameter limit exceeded. Only "+C+" parameter"+(C===1?"":"s")+" allowed.");var S=-1,x,I=y.charset;if(y.charsetSentinel)for(x=0;x<w.length;++x)w[x].indexOf("utf8=")===0&&(w[x]===d?I="utf-8":w[x]===c&&(I="iso-8859-1"),S=x,x=w.length);for(x=0;x<w.length;++x)if(x!==S){var L=w[x],T=L.indexOf("]="),O=T===-1?L.indexOf("="):T+1,P,z;O===-1?(P=y.decoder(L,r.decoder,I,"key"),z=y.strictNullHandling?null:""):(P=y.decoder(L.slice(0,O),r.decoder,I,"key"),z=n.maybeMap(s(L.slice(O+1),y,i(k[P])?k[P].length:0),function(_){return y.decoder(_,r.decoder,I,"value")})),z&&y.interpretNumericEntities&&I==="iso-8859-1"&&(z=l(String(z))),L.indexOf("[]=")>-1&&(z=i(z)?[z]:z);var D=o.call(k,P);D&&y.duplicates==="combine"?k[P]=n.combine(k[P],z):(!D||y.duplicates==="last")&&(k[P]=z)}return k},u=function(m,h,y,k){var v=0;if(m.length>0&&m[m.length-1]==="[]"){var C=m.slice(0,-1).join("");v=Array.isArray(h)&&h[C]?h[C].length:0}for(var w=k?h:s(h,y,v),S=m.length-1;S>=0;--S){var x,I=m[S];if(I==="[]"&&y.parseArrays)x=y.allowEmptyArrays&&(w===""||y.strictNullHandling&&w===null)?[]:n.combine([],w);else{x=y.plainObjects?{__proto__:null}:{};var L=I.charAt(0)==="["&&I.charAt(I.length-1)==="]"?I.slice(1,-1):I,T=y.decodeDotInKeys?L.replace(/%2E/g,"."):L,O=parseInt(T,10);!y.parseArrays&&T===""?x={0:w}:!isNaN(O)&&I!==T&&String(O)===T&&O>=0&&y.parseArrays&&O<=y.arrayLimit?(x=[],x[O]=w):T!=="__proto__"&&(x[T]=w)}w=x}return w},g=function(h,y,k,v){if(h){var C=k.allowDots?h.replace(/\.([^.[]+)/g,"[$1]"):h,w=/(\[[^[\]]*])/,S=/(\[[^[\]]*])/g,x=k.depth>0&&w.exec(C),I=x?C.slice(0,x.index):C,L=[];if(I){if(!k.plainObjects&&o.call(Object.prototype,I)&&!k.allowPrototypes)return;L.push(I)}for(var T=0;k.depth>0&&(x=S.exec(C))!==null&&T<k.depth;){if(T+=1,!k.plainObjects&&o.call(Object.prototype,x[1].slice(1,-1))&&!k.allowPrototypes)return;L.push(x[1])}if(x){if(k.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+k.depth+" and strictDepth is true");L.push("["+C.slice(x.index)+"]")}return u(L,y,k,v)}},f=function(h){if(!h)return r;if(typeof h.allowEmptyArrays<"u"&&typeof h.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof h.decodeDotInKeys<"u"&&typeof h.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(h.decoder!==null&&typeof h.decoder<"u"&&typeof h.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof h.charset<"u"&&h.charset!=="utf-8"&&h.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof h.throwOnLimitExceeded<"u"&&typeof h.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var y=typeof h.charset>"u"?r.charset:h.charset,k=typeof h.duplicates>"u"?r.duplicates:h.duplicates;if(k!=="combine"&&k!=="first"&&k!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var v=typeof h.allowDots>"u"?h.decodeDotInKeys===!0?!0:r.allowDots:!!h.allowDots;return{allowDots:v,allowEmptyArrays:typeof h.allowEmptyArrays=="boolean"?!!h.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:typeof h.allowPrototypes=="boolean"?h.allowPrototypes:r.allowPrototypes,allowSparse:typeof h.allowSparse=="boolean"?h.allowSparse:r.allowSparse,arrayLimit:typeof h.arrayLimit=="number"?h.arrayLimit:r.arrayLimit,charset:y,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:r.charsetSentinel,comma:typeof h.comma=="boolean"?h.comma:r.comma,decodeDotInKeys:typeof h.decodeDotInKeys=="boolean"?h.decodeDotInKeys:r.decodeDotInKeys,decoder:typeof h.decoder=="function"?h.decoder:r.decoder,delimiter:typeof h.delimiter=="string"||n.isRegExp(h.delimiter)?h.delimiter:r.delimiter,depth:typeof h.depth=="number"||h.depth===!1?+h.depth:r.depth,duplicates:k,ignoreQueryPrefix:h.ignoreQueryPrefix===!0,interpretNumericEntities:typeof h.interpretNumericEntities=="boolean"?h.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:typeof h.parameterLimit=="number"?h.parameterLimit:r.parameterLimit,parseArrays:h.parseArrays!==!1,plainObjects:typeof h.plainObjects=="boolean"?h.plainObjects:r.plainObjects,strictDepth:typeof h.strictDepth=="boolean"?!!h.strictDepth:r.strictDepth,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:typeof h.throwOnLimitExceeded=="boolean"?h.throwOnLimitExceeded:!1}};return ab=function(m,h){var y=f(h);if(m===""||m===null||typeof m>"u")return y.plainObjects?{__proto__:null}:{};for(var k=typeof m=="string"?p(m,y):m,v=y.plainObjects?{__proto__:null}:{},C=Object.keys(k),w=0;w<C.length;++w){var S=C[w],x=g(S,k[S],y,typeof m=="string");v=n.merge(v,x,y)}return y.allowSparse===!0?v:n.compact(v)},ab}var sb,vO;function bke(){if(vO)return sb;vO=1;var n=mke(),o=hke(),i=nb();return sb={formats:i,parse:o,stringify:n},sb}var CO;function yke(){if(CO)return ss;CO=1;var n=fke();function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var i=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,s=["<",">",'"',"`"," ","\r",`
6946
6946
  `," "],c=["{","}","|","\\","^","`"].concat(s),d=["'"].concat(c),p=["%","/","?",";","#"].concat(d),u=["/","?","#"],g=255,f=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},k={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=bke();function C(I,L,T){if(I&&typeof I=="object"&&I instanceof o)return I;var O=new o;return O.parse(I,L,T),O}o.prototype.parse=function(I,L,T){if(typeof I!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof I);var O=I.indexOf("?"),P=O!==-1&&O<I.indexOf("#")?"?":"#",z=I.split(P),D=/\\/g;z[0]=z[0].replace(D,"/"),I=z.join(P);var _=I;if(_=_.trim(),!T&&I.split("#").length===1){var G=l.exec(_);if(G)return this.path=_,this.href=_,this.pathname=G[1],G[2]?(this.search=G[2],L?this.query=v.parse(this.search.substr(1)):this.query=this.search.substr(1)):L&&(this.search="",this.query={}),this}var V=i.exec(_);if(V){V=V[0];var ne=V.toLowerCase();this.protocol=ne,_=_.substr(V.length)}if(T||V||_.match(/^\/\/[^@/]+@[^@/]+/)){var ee=_.substr(0,2)==="//";ee&&!(V&&y[V])&&(_=_.substr(2),this.slashes=!0)}if(!y[V]&&(ee||V&&!k[V])){for(var E=-1,U=0;U<u.length;U++){var M=_.indexOf(u[U]);M!==-1&&(E===-1||M<E)&&(E=M)}var N,Y;E===-1?Y=_.lastIndexOf("@"):Y=_.lastIndexOf("@",E),Y!==-1&&(N=_.slice(0,Y),_=_.slice(Y+1),this.auth=decodeURIComponent(N)),E=-1;for(var U=0;U<p.length;U++){var M=_.indexOf(p[U]);M!==-1&&(E===-1||M<E)&&(E=M)}E===-1&&(E=_.length),this.host=_.slice(0,E),_=_.slice(E),this.parseHost(),this.hostname=this.hostname||"";var ae=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ae)for(var J=this.hostname.split(/\./),U=0,A=J.length;U<A;U++){var F=J[U];if(F&&!F.match(f)){for(var ce="",de=0,fe=F.length;de<fe;de++)F.charCodeAt(de)>127?ce+="x":ce+=F[de];if(!ce.match(f)){var ve=J.slice(0,U),K=J.slice(U+1),X=F.match(m);X&&(ve.push(X[1]),K.unshift(X[2])),K.length&&(_="/"+K.join(".")+_),this.hostname=ve.join(".");break}}}this.hostname.length>g?this.hostname="":this.hostname=this.hostname.toLowerCase(),ae||(this.hostname=n.toASCII(this.hostname));var re=this.port?":"+this.port:"",pe=this.hostname||"";this.host=pe+re,this.href+=this.host,ae&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),_[0]!=="/"&&(_="/"+_))}if(!h[ne])for(var U=0,A=d.length;U<A;U++){var Ce=d[U];if(_.indexOf(Ce)!==-1){var me=encodeURIComponent(Ce);me===Ce&&(me=escape(Ce)),_=_.split(Ce).join(me)}}var he=_.indexOf("#");he!==-1&&(this.hash=_.substr(he),_=_.slice(0,he));var be=_.indexOf("?");if(be!==-1?(this.search=_.substr(be),this.query=_.substr(be+1),L&&(this.query=v.parse(this.query)),_=_.slice(0,be)):L&&(this.search="",this.query={}),_&&(this.pathname=_),k[ne]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var re=this.pathname||"",H=this.search||"";this.path=re+H}return this.href=this.format(),this};function w(I){return typeof I=="string"&&(I=C(I)),I instanceof o?I.format():o.prototype.format.call(I)}o.prototype.format=function(){var I=this.auth||"";I&&(I=encodeURIComponent(I),I=I.replace(/%3A/i,":"),I+="@");var L=this.protocol||"",T=this.pathname||"",O=this.hash||"",P=!1,z="";this.host?P=I+this.host:this.hostname&&(P=I+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(P+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(z=v.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var D=this.search||z&&"?"+z||"";return L&&L.substr(-1)!==":"&&(L+=":"),this.slashes||(!L||k[L])&&P!==!1?(P="//"+(P||""),T&&T.charAt(0)!=="/"&&(T="/"+T)):P||(P=""),O&&O.charAt(0)!=="#"&&(O="#"+O),D&&D.charAt(0)!=="?"&&(D="?"+D),T=T.replace(/[?#]/g,function(_){return encodeURIComponent(_)}),D=D.replace("#","%23"),L+P+T+D+O};function S(I,L){return C(I,!1,!0).resolve(L)}o.prototype.resolve=function(I){return this.resolveObject(C(I,!1,!0)).format()};function x(I,L){return I?C(I,!1,!0).resolveObject(L):L}return o.prototype.resolveObject=function(I){if(typeof I=="string"){var L=new o;L.parse(I,!1,!0),I=L}for(var T=new o,O=Object.keys(this),P=0;P<O.length;P++){var z=O[P];T[z]=this[z]}if(T.hash=I.hash,I.href==="")return T.href=T.format(),T;if(I.slashes&&!I.protocol){for(var D=Object.keys(I),_=0;_<D.length;_++){var G=D[_];G!=="protocol"&&(T[G]=I[G])}return k[T.protocol]&&T.hostname&&!T.pathname&&(T.pathname="/",T.path=T.pathname),T.href=T.format(),T}if(I.protocol&&I.protocol!==T.protocol){if(!k[I.protocol]){for(var V=Object.keys(I),ne=0;ne<V.length;ne++){var ee=V[ne];T[ee]=I[ee]}return T.href=T.format(),T}if(T.protocol=I.protocol,!I.host&&!y[I.protocol]){for(var A=(I.pathname||"").split("/");A.length&&!(I.host=A.shift()););I.host||(I.host=""),I.hostname||(I.hostname=""),A[0]!==""&&A.unshift(""),A.length<2&&A.unshift(""),T.pathname=A.join("/")}else T.pathname=I.pathname;if(T.search=I.search,T.query=I.query,T.host=I.host||"",T.auth=I.auth,T.hostname=I.hostname||I.host,T.port=I.port,T.pathname||T.search){var E=T.pathname||"",U=T.search||"";T.path=E+U}return T.slashes=T.slashes||I.slashes,T.href=T.format(),T}var M=T.pathname&&T.pathname.charAt(0)==="/",N=I.host||I.pathname&&I.pathname.charAt(0)==="/",Y=N||M||T.host&&I.pathname,ae=Y,J=T.pathname&&T.pathname.split("/")||[],A=I.pathname&&I.pathname.split("/")||[],F=T.protocol&&!k[T.protocol];if(F&&(T.hostname="",T.port=null,T.host&&(J[0]===""?J[0]=T.host:J.unshift(T.host)),T.host="",I.protocol&&(I.hostname=null,I.port=null,I.host&&(A[0]===""?A[0]=I.host:A.unshift(I.host)),I.host=null),Y=Y&&(A[0]===""||J[0]==="")),N)T.host=I.host||I.host===""?I.host:T.host,T.hostname=I.hostname||I.hostname===""?I.hostname:T.hostname,T.search=I.search,T.query=I.query,J=A;else if(A.length)J||(J=[]),J.pop(),J=J.concat(A),T.search=I.search,T.query=I.query;else if(I.search!=null){if(F){T.host=J.shift(),T.hostname=T.host;var ce=T.host&&T.host.indexOf("@")>0?T.host.split("@"):!1;ce&&(T.auth=ce.shift(),T.hostname=ce.shift(),T.host=T.hostname)}return T.search=I.search,T.query=I.query,(T.pathname!==null||T.search!==null)&&(T.path=(T.pathname?T.pathname:"")+(T.search?T.search:"")),T.href=T.format(),T}if(!J.length)return T.pathname=null,T.search?T.path="/"+T.search:T.path=null,T.href=T.format(),T;for(var de=J.slice(-1)[0],fe=(T.host||I.host||J.length>1)&&(de==="."||de==="..")||de==="",ve=0,K=J.length;K>=0;K--)de=J[K],de==="."?J.splice(K,1):de===".."?(J.splice(K,1),ve++):ve&&(J.splice(K,1),ve--);if(!Y&&!ae)for(;ve--;ve)J.unshift("..");Y&&J[0]!==""&&(!J[0]||J[0].charAt(0)!=="/")&&J.unshift(""),fe&&J.join("/").substr(-1)!=="/"&&J.push("");var X=J[0]===""||J[0]&&J[0].charAt(0)==="/";if(F){T.hostname=X?"":J.length?J.shift():"",T.host=T.hostname;var ce=T.host&&T.host.indexOf("@")>0?T.host.split("@"):!1;ce&&(T.auth=ce.shift(),T.hostname=ce.shift(),T.host=T.hostname)}return Y=Y||T.host&&J.length,Y&&!X&&J.unshift(""),J.length>0?T.pathname=J.join("/"):(T.pathname=null,T.path=null),(T.pathname!==null||T.search!==null)&&(T.path=(T.pathname?T.pathname:"")+(T.search?T.search:"")),T.auth=I.auth||T.auth,T.slashes=T.slashes||I.slashes,T.href=T.format(),T},o.prototype.parseHost=function(){var I=this.host,L=r.exec(I);L&&(L=L[0],L!==":"&&(this.port=L.substr(1)),I=I.substr(0,I.length-L.length)),I&&(this.hostname=I)},ss.parse=C,ss.resolve=S,ss.resolveObject=x,ss.format=w,ss.Url=o,ss}yke();class vke{constructor(o={}){this.apiKey=o.apiKey,this.username=o.username,this.password=o.password,this.accessToken=o.accessToken,this.basePath=o.basePath,this.baseOptions=o.baseOptions}}const _t=()=>new vke({basePath:"/api",apiKey:localStorage.getItem("access-key")||"",accessToken:localStorage.getItem("access-key")||""}),mi=(n,o,{debug:i=!1,withContext:r=null}={})=>o.reduce((l,s,c)=>(i&&console.info(`applyTransform debug on step ${c}`,l),r?s(l,r):s(l)),n),lb=(n=[])=>o=>P7(o,n),wO=n=>o=>`${n}?${uO(o,{skipEmptyString:!0,skipNull:!0,arrayFormat:"repeat"})}`;var cb,kO;function Cke(){if(kO)return cb;kO=1;var n=function(w){return o(w)&&!i(w)};function o(C){return!!C&&typeof C=="object"}function i(C){var w=Object.prototype.toString.call(C);return w==="[object RegExp]"||w==="[object Date]"||s(C)}var r=typeof Symbol=="function"&&Symbol.for,l=r?Symbol.for("react.element"):60103;function s(C){return C.$$typeof===l}function c(C){return Array.isArray(C)?[]:{}}function d(C,w){return w.clone!==!1&&w.isMergeableObject(C)?k(c(C),C,w):C}function p(C,w,S){return C.concat(w).map(function(x){return d(x,S)})}function u(C,w){if(!w.customMerge)return k;var S=w.customMerge(C);return typeof S=="function"?S:k}function g(C){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(C).filter(function(w){return Object.propertyIsEnumerable.call(C,w)}):[]}function f(C){return Object.keys(C).concat(g(C))}function m(C,w){try{return w in C}catch{return!1}}function h(C,w){return m(C,w)&&!(Object.hasOwnProperty.call(C,w)&&Object.propertyIsEnumerable.call(C,w))}function y(C,w,S){var x={};return S.isMergeableObject(C)&&f(C).forEach(function(I){x[I]=d(C[I],S)}),f(w).forEach(function(I){h(C,I)||(m(C,I)&&S.isMergeableObject(w[I])?x[I]=u(I,S)(C[I],w[I],S):x[I]=d(w[I],S))}),x}function k(C,w,S){S=S||{},S.arrayMerge=S.arrayMerge||p,S.isMergeableObject=S.isMergeableObject||n,S.cloneUnlessOtherwiseSpecified=d;var x=Array.isArray(w),I=Array.isArray(C),L=x===I;return L?x?S.arrayMerge(C,w,S):y(C,w,S):d(w,S)}k.all=function(w,S){if(!Array.isArray(w))throw new Error("first argument should be an array");return w.reduce(function(x,I){return k(x,I,S)},{})};var v=k;return cb=v,cb}var wke=Cke();const jO=zl(wke),W0=(...n)=>o=>jO.all([...n,o]),kke=(...n)=>o=>o.map(i=>jO.all([...n,i])),jke={eventBus:null},db=n=>{if(typeof n=="function"){const o=({type:i,text:r})=>jke.eventBus.$emit("notification",{type:i,text:r});return i=>(n({callback:o}),i)}return n instanceof Error&&(n.response?.data?.translation||n.response?.data?.detail||n.response?.data?.message),n},xO=n=>o=>Object.keys(o).reduce((i,r)=>(n.indexOf(r)===-1||(i[r]=o[r]),i),{}),IO=(n=[])=>o=>B7(o,n),SO=(n="search")=>o=>{const i=LS(o),r=Ab.get(i,n);return!r||r.slice(-1)==="*"?i:Ab.set(i,n,`${r}*`)},TO="acl",xke=n=>n.map(o=>({...o,access:{x:{id:(o.granted.match(/x/g)||[]).length+1,rule:"x".repeat((o.granted.match(/x/g)||[]).length)},r:{id:(o.granted.match(/r/g)||[]).length+1,rule:"r".repeat((o.granted.match(/r/g)||[]).length)},w:{id:(o.granted.match(/w/g)||[]).length+1,rule:"w".repeat((o.granted.match(/w/g)||[]).length)},d:{id:(o.granted.match(/d/g)||[]).length+1,rule:"d".repeat((o.granted.match(/d/g)||[]).length)}}})),EO=n=>{const o=Ct();return{getPermissionsList:async({parentId:l,...s})=>{const c=["page","size","q","sort","fields","id"],d={user:!1},p=mi(s,[W0(iO()),SO("search"),u=>({...u,q:u.search}),xO(c),lb(),wO(`${n}/${l}/${TO}`)]);try{const u=await o.get(p),{items:g,next:f}=mi(u.data,[IO(),W0(nO())]);return{items:mi(g,[kke(d),xke]),next:f}}catch(u){throw mi(u,[db])}},patchPermissions:async({changes:l,id:s})=>{const c=mi(l,[lb()]),d=`${n}/${s}/${TO}`;try{const p=await o.patch(d,c);return mi(p.data,[IO()])}catch(p){throw mi(p,[db])}}}};e.object({"object.name":e.string().describe("display name"),"object.id":e.string().describe("identifier")}),e.object({grantor:e.array(e.string()).optional().describe(`--- filters ---
6947
6947
 
6948
6948
  [optional] [FROM] each rule owner is any of role(s) id; user -or- role`),grantee:e.array(e.string()).optional().describe("[optional] [TO] subject role(s) id; user -or- role"),granted:e.array(e.string()).optional().describe("[xrwdxrwd] [R]ecord-[b]ased-[A]ccess-[C]ontrol level check(!)"),q:e.string().optional().describe("[optional] [TO] subject.name ILIKE ?q=; user -or- role"),fields:e.array(e.string()).optional().describe(`----- Select Options -------------------------
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as Ee, createElementBlock as Ct, openBlock as kt, Fragment as Ce, createElementVNode as Yt, createTextVNode as ke, toRef as Ot, computed as Tt } from "vue";
2
- import { _ as Oe } from "./install-BUa1vI9s.js";
2
+ import { _ as Oe } from "./install-BKNg655Q.js";
3
3
  const Te = { class: "time-group" }, Ae = {
4
4
  key: 0,
5
5
  type: "current",
@@ -1,6 +1,6 @@
1
- import { ab as k, o as v, k as r, ak as S, d as w, n as f, m as b, al as o, U as P, G as C, x as E, am as A, l as m, D as x, v as l } from "./useVidstackSrc-DrgPuS60.js";
2
- import { R as L } from "./vidstack-DqAw8m9J-GmX-oEBj.js";
3
- import { g as y, L as u } from "./wt-vidstack-player-D21MMwnT.js";
1
+ import { ab as k, o as v, k as r, ak as S, d as w, n as f, m as b, al as o, U as P, G as C, x as E, am as A, l as m, D as x, v as l } from "./useVidstackSrc-Bl_rZkGR.js";
2
+ import { R as L } from "./vidstack-DqAw8m9J-D9dEhO4u.js";
3
+ import { g as y, L as u } from "./wt-vidstack-player-DTWg6M2v.js";
4
4
  let h = null, d = [], c = [];
5
5
  function p() {
6
6
  return h ??= new AudioContext();
@@ -1,5 +1,5 @@
1
- import { l as d, R as g, W as p, U as u, x as m } from "./useVidstackSrc-DrgPuS60.js";
2
- import { l as C } from "./wt-vidstack-player-D21MMwnT.js";
1
+ import { l as d, R as g, W as p, U as u, x as m } from "./useVidstackSrc-Bl_rZkGR.js";
2
+ import { l as C } from "./wt-vidstack-player-DTWg6M2v.js";
3
3
  function h() {
4
4
  return "https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";
5
5
  }
@@ -86,7 +86,7 @@ class S {
86
86
  async load(e) {
87
87
  if (!this.#e)
88
88
  throw Error("[vidstack] google cast player was not initialized");
89
- return new (await import("./vidstack-google-cast-BYM5rQ8K.js")).GoogleCastProvider(this.#e, e);
89
+ return new (await import("./vidstack-google-cast-ncbqKRq2.js")).GoogleCastProvider(this.#e, e);
90
90
  }
91
91
  async #r(e) {
92
92
  if (f()) return;
@@ -1,5 +1,5 @@
1
- import { v as e, l as i, m as a, x as o, d as n } from "./useVidstackSrc-DrgPuS60.js";
2
- import { f as c } from "./wt-vidstack-player-D21MMwnT.js";
1
+ import { v as e, l as i, m as a, x as o, d as n } from "./useVidstackSrc-Bl_rZkGR.js";
2
+ import { f as c } from "./wt-vidstack-player-DTWg6M2v.js";
3
3
  class g {
4
4
  #t;
5
5
  src = e("");
@@ -1,5 +1,5 @@
1
- import { aj as i, m } from "./useVidstackSrc-DrgPuS60.js";
2
- import { c as d, a as l } from "./wt-vidstack-player-D21MMwnT.js";
1
+ import { aj as i, m } from "./useVidstackSrc-Bl_rZkGR.js";
2
+ import { c as d, a as l } from "./wt-vidstack-player-DTWg6M2v.js";
3
3
  const p = /* @__PURE__ */ l(
4
4
  '<svg viewBox="0 0 32 32" fill="none" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"></svg>'
5
5
  );
@@ -1,4 +1,4 @@
1
- import { b as i, h as s } from "./useVidstackSrc-DrgPuS60.js";
1
+ import { b as i, h as s } from "./useVidstackSrc-Bl_rZkGR.js";
2
2
  class a {
3
3
  #i;
4
4
  #t;
@@ -1,5 +1,5 @@
1
- import { s as t } from "./useVidstackSrc-DrgPuS60.js";
2
- import { H as r, a as s } from "./vidstack-Bq6c3Bam-BBbC1lHS.js";
1
+ import { s as t } from "./useVidstackSrc-Bl_rZkGR.js";
2
+ import { H as r, a as s } from "./vidstack-Bq6c3Bam-BTBqk6hY.js";
3
3
  class d extends r {
4
4
  $$PROVIDER_TYPE = "AUDIO";
5
5
  get type() {
@@ -1,7 +1,7 @@
1
- import { p as x, Q as S, b as g, T as k, L as u, d as M, l as C } from "./wt-vidstack-player-D21MMwnT.js";
2
- import { a0 as N, d as p, x as R, l as b, m as F, D as l, B as I, Z as P, $, h as _, R as q, b as E, j as H } from "./useVidstackSrc-DrgPuS60.js";
3
- import { VideoProvider as j } from "./vidstack-video-Dr_pjDju.js";
4
- import { R as O } from "./vidstack-DqAw8m9J-GmX-oEBj.js";
1
+ import { p as x, Q as S, b as g, T as k, L as u, d as M, l as C } from "./wt-vidstack-player-DTWg6M2v.js";
2
+ import { a0 as N, d as p, x as R, l as b, m as F, D as l, B as I, Z as P, $, h as _, R as q, b as E, j as H } from "./useVidstackSrc-Bl_rZkGR.js";
3
+ import { VideoProvider as j } from "./vidstack-video-DhqiLLDm.js";
4
+ import { R as O } from "./vidstack-DqAw8m9J-D9dEhO4u.js";
5
5
  function v(n) {
6
6
  try {
7
7
  return new Intl.DisplayNames(navigator.languages, { type: "language" }).of(n) ?? null;