import{v as me,a2 as M,B as st,b as $e,ah as xo,ai as _o,f as Ve,j as ie,o as z,k as j,l as ne,F as Tt,c as J,m as ee,M as Ot,_ as $o,n as Pe,L as Jt,aj as Ao,w as G,e as U,z as Ee,a8 as It,a9 as Mt,a6 as Q,p as I,ak as ko,al as No,t as Ke,V as zn,W as Po,A as lt,am as St,R as Eo,ag as re,an as Co,O as Oo,Q as Hn,I as Fo,a5 as xt,K as rn,u as D,r as xe,a3 as jn,g as Ro,q as ut,$ as Bo,s as Gn,x as zt,E as et,aa as Le,H as Do,G as tt,ao as Lo,Y as Io,i as Mo,J as zo,a0 as Ho,C as jo,h as Go}from"./runtime-dom.esm-bundler-CU8rrbZA.chunk.mjs";import{_ as Ze,r as _t,A as Wo,a as Y,c as Xt,B as Vo,N as Re,C as Ko,D as Uo,d as qo}from"./createElementId-DhjFt1I9-C_WKCRq3.chunk.mjs";import{l as Yo,N as we,v as Jo,w as Xo,m as an,x as Qo,k as Zo}from"./logger-D3RVzcfQ-CklyzrxW.chunk.mjs";import{N as ei}from"./mdi-Bm11w6Fn.chunk.mjs";import{a as $t,g as Ft,i as ti}from"./translation-DoG5ZELJ-Bni_xMHF.chunk.mjs";function Wa(){if(typeof globalThis.firstDay<"u")return globalThis.firstDay;const e=new Intl.Locale($t()),t=e.getWeekInfo?.()??e.weekInfo;return t?t.firstDay%7:1}function Va(){if(typeof globalThis.dayNames<"u")return globalThis.dayNames;const e=$t();return[new Date(1970,0,4).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,5).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,6).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,7).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,8).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,9).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,10).toLocaleDateString(e,{weekday:"long"})]}function Ka(){if(typeof globalThis.dayNamesMin<"u")return globalThis.dayNamesMin;const e=$t();return[new Date(1970,0,4).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,5).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,6).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,7).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,8).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,9).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,10).toLocaleDateString(e,{weekday:"narrow"})]}function ni(e=Date.now(),t={}){const n={ignoreSeconds:!1,language:Ft(),relativeTime:"long",...t},o=new Date(e),r=new Intl.RelativeTimeFormat([n.language,Ft()],{numeric:"auto",style:n.relativeTime}),i=(o.getTime()-Date.now())/1e3;if(Math.abs(i)<59.5)return n.ignoreSeconds||r.format(Math.round(i),"second");const a=i/60;if(Math.abs(a)<=59)return r.format(Math.round(a),"minute");const s=a/60;if(Math.abs(s)<23.5)return r.format(Math.round(s),"hour");const l=s/24;if(Math.abs(l)<6.5)return r.format(Math.round(l),"day");if(Math.abs(l)<27.5){const c=l/7;return r.format(Math.round(c),"week")}const u=l/30,p=Math.abs(u)<11?{month:n.relativeTime,day:"numeric"}:{year:n.relativeTime==="narrow"?"2-digit":"numeric",month:n.relativeTime};return new Intl.DateTimeFormat([n.language,Ft()],p).format(o)}const oi=Symbol.for("NcActions:isSemanticMenu"),ii=Symbol.for("NcActions:closeMenu");function Ue(){return window._nc_focus_trap??=[],window._nc_focus_trap}function ri(){let e=[];return{pause(){e=[...Ue()];for(const t of e)t.pause()},unpause(){if(e.length===Ue().length)for(const t of e)t.unpause();e=[]}}}function ai(e,t={}){const n=ri();me(e,()=>{M(t.disabled)||(M(e)?n.pause():n.unpause())}),st(()=>{n.unpause()})}const si=["top","right","bottom","left"],sn=["start","end"],ln=si.reduce((e,t)=>e.concat(t,t+"-"+sn[0],t+"-"+sn[1]),[]),qe=Math.min,ke=Math.max,Ua=Math.round,qa=Math.floor,Ya=e=>({x:e,y:e}),li={left:"right",right:"left",bottom:"top",top:"bottom"},ui={start:"end",end:"start"};function Ht(e,t,n){return ke(e,qe(t,n))}function fe(e,t){return typeof e=="function"?e(t):e}function se(e){return e.split("-")[0]}function ae(e){return e.split("-")[1]}function Qt(e){return e==="x"?"y":"x"}function Zt(e){return e==="y"?"height":"width"}const ci=new Set(["top","bottom"]);function ue(e){return ci.has(se(e))?"y":"x"}function en(e){return Qt(ue(e))}function Wn(e,t,n){n===void 0&&(n=!1);const o=ae(e),r=en(e),i=Zt(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=dt(a)),[a,dt(a)]}function di(e){const t=dt(e);return[ct(e),t,ct(t)]}function ct(e){return e.replace(/start|end/g,t=>ui[t])}const un=["left","right"],cn=["right","left"],pi=["top","bottom"],hi=["bottom","top"];function fi(e,t,n){switch(e){case"top":case"bottom":return n?t?cn:un:t?un:cn;case"left":case"right":return t?pi:hi;default:return[]}}function mi(e,t,n,o){const r=ae(e);let i=fi(se(e),n==="start",o);return r&&(i=i.map(a=>a+"-"+r),t&&(i=i.concat(i.map(ct)))),i}function dt(e){return e.replace(/left|right|bottom|top/g,t=>li[t])}function vi(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vn(e){return typeof e!="number"?vi(e):{top:e,right:e,bottom:e,left:e}}function ze(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function dn(e,t,n){let{reference:o,floating:r}=e;const i=ue(t),a=en(t),s=Zt(a),l=se(t),u=i==="y",p=o.x+o.width/2-r.width/2,c=o.y+o.height/2-r.height/2,m=o[s]/2-r[s]/2;let d;switch(l){case"top":d={x:p,y:o.y-r.height};break;case"bottom":d={x:p,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:c};break;case"left":d={x:o.x-r.width,y:c};break;default:d={x:o.x,y:o.y}}switch(ae(t)){case"start":d[a]-=m*(n&&u?-1:1);break;case"end":d[a]+=m*(n&&u?-1:1);break}return d}async function gi(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:c="floating",altBoundary:m=!1,padding:d=0}=fe(t,e),g=Vn(d),b=s[m?c==="floating"?"reference":"floating":c],v=ze(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:p,strategy:l})),w=c==="floating"?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),_=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},E=ze(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:S,strategy:l}):w);return{top:(v.top-E.top+g.top)/_.y,bottom:(E.bottom-v.bottom+g.bottom)/_.y,left:(v.left-E.left+g.left)/_.x,right:(E.right-v.right+g.right)/_.x}}const yi=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:p,y:c}=dn(u,o,l),m=o,d={},g=0;for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:p=0}=fe(e,t)||{};if(u==null)return{};const c=Vn(p),m={x:n,y:o},d=en(r),g=Zt(d),b=await a.getDimensions(u),v=d==="y",w=v?"top":"left",S=v?"bottom":"right",_=v?"clientHeight":"clientWidth",E=i.reference[g]+i.reference[d]-m[d]-i.floating[g],C=m[d]-i.reference[d],x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let N=x?x[_]:0;(!N||!await(a.isElement==null?void 0:a.isElement(x)))&&(N=s.floating[_]||i.floating[g]);const y=E/2-C/2,F=N/2-b[g]/2-1,L=qe(c[w],F),H=qe(c[S],F),h=L,f=N-b[g]-H,T=N/2-b[g]/2+y,P=Ht(h,T,f),k=!l.arrow&&ae(r)!=null&&T!==P&&i.reference[g]/2-(Tae(o)===e),...n.filter(o=>ae(o)!==e)]:n.filter(o=>se(o)===o)).filter(o=>e?ae(o)===e||(t?ct(o)!==o:!1):!0)}const Ti=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r;const{rects:i,middlewareData:a,placement:s,platform:l,elements:u}=t,{crossAxis:p=!1,alignment:c,allowedPlacements:m=ln,autoAlignment:d=!0,...g}=fe(e,t),b=c!==void 0||m===ln?bi(c||null,d,m):m,v=await l.detectOverflow(t,g),w=((n=a.autoPlacement)==null?void 0:n.index)||0,S=b[w];if(S==null)return{};const _=Wn(S,i,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(s!==S)return{reset:{placement:b[0]}};const E=[v[se(S)],v[_[0]],v[_[1]]],C=[...((o=a.autoPlacement)==null?void 0:o.overflows)||[],{placement:S,overflows:E}],x=b[w+1];if(x)return{data:{index:w+1,overflows:C},reset:{placement:x}};const N=C.map(F=>{const L=ae(F.placement);return[F.placement,L&&p?F.overflows.slice(0,2).reduce((H,h)=>H+h,0):F.overflows[0],F.overflows]}).sort((F,L)=>F[1]-L[1]),y=((r=N.filter(F=>F[2].slice(0,ae(F[0])?2:3).every(L=>L<=0))[0])==null?void 0:r[0])||N[0][0];return y!==s?{data:{index:w+1,overflows:C},reset:{placement:y}}:{}}}},Si=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:p=!0,crossAxis:c=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...v}=fe(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=se(r),S=ue(s),_=se(s)===s,E=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=m||(_||!b?[dt(s)]:di(s)),x=g!=="none";!m&&x&&C.push(...mi(s,b,g,E));const N=[s,...C],y=await l.detectOverflow(t,v),F=[];let L=((o=i.flip)==null?void 0:o.overflows)||[];if(p&&F.push(y[w]),c){const T=Wn(r,a,E);F.push(y[T[0]],y[T[1]])}if(L=[...L,{placement:r,overflows:F}],!F.every(T=>T<=0)){var H,h;const T=(((H=i.flip)==null?void 0:H.index)||0)+1,P=N[T];if(P&&(!(c==="alignment"&&S!==ue(P))||L.every($=>ue($.placement)===S?$.overflows[0]>0:!0)))return{data:{index:T,overflows:L},reset:{placement:P}};let k=(h=L.filter($=>$.overflows[0]<=0).sort(($,A)=>$.overflows[1]-A.overflows[1])[0])==null?void 0:h.placement;if(!k)switch(d){case"bestFit":{var f;const $=(f=L.filter(A=>{if(x){const O=ue(A.placement);return O===S||O==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(O=>O>0).reduce((O,R)=>O+R,0)]).sort((A,O)=>A[1]-O[1])[0])==null?void 0:f[0];$&&(k=$);break}case"initialPlacement":k=s;break}if(r!==k)return{reset:{placement:k}}}return{}}}},Kn=new Set(["left","top"]);async function xi(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=se(n),s=ae(n),l=ue(n)==="y",u=Kn.has(a)?-1:1,p=i&&l?-1:1,c=fe(t,e);let{mainAxis:m,crossAxis:d,alignmentAxis:g}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof g=="number"&&(d=s==="end"?g*-1:g),l?{x:d*p,y:m*u}:{x:m*u,y:d*p}}const _i=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:a,middlewareData:s}=t,l=await xi(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:a}}}}},$i=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:S,y:_}=w;return{x:S,y:_}}},...u}=fe(e,t),p={x:n,y:o},c=await i.detectOverflow(t,u),m=ue(se(r)),d=Qt(m);let g=p[d],b=p[m];if(a){const w=d==="y"?"top":"left",S=d==="y"?"bottom":"right",_=g+c[w],E=g-c[S];g=Ht(_,g,E)}if(s){const w=m==="y"?"top":"left",S=m==="y"?"bottom":"right",_=b+c[w],E=b-c[S];b=Ht(_,b,E)}const v=l.fn({...t,[d]:g,[m]:b});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[d]:a,[m]:s}}}}}},Ja=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=fe(e,t),p={x:n,y:o},c=ue(r),m=Qt(c);let d=p[m],g=p[c];const b=fe(s,t),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const _=m==="y"?"height":"width",E=i.reference[m]-i.floating[_]+v.mainAxis,C=i.reference[m]+i.reference[_]-v.mainAxis;dC&&(d=C)}if(u){var w,S;const _=m==="y"?"width":"height",E=Kn.has(se(r)),C=i.reference[c]-i.floating[_]+(E&&((w=a.offset)==null?void 0:w[c])||0)+(E?0:v.crossAxis),x=i.reference[c]+i.reference[_]+(E?0:((S=a.offset)==null?void 0:S[c])||0)-(E?v.crossAxis:0);gx&&(g=x)}return{[m]:d,[c]:g}}}},Ai=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...u}=fe(e,t),p=await a.detectOverflow(t,u),c=se(r),m=ae(r),d=ue(r)==="y",{width:g,height:b}=i.floating;let v,w;c==="top"||c==="bottom"?(v=c,w=m===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(w=c,v=m==="end"?"top":"bottom");const S=b-p.top-p.bottom,_=g-p.left-p.right,E=qe(b-p[v],S),C=qe(g-p[w],_),x=!t.middlewareData.shift;let N=E,y=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(y=_),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(N=S),x&&!m){const L=ke(p.left,0),H=ke(p.right,0),h=ke(p.top,0),f=ke(p.bottom,0);d?y=g-2*(L!==0||H!==0?L+H:ke(p.left,p.right)):N=b-2*(h!==0||f!==0?h+f:ke(p.top,p.bottom))}await l({...t,availableWidth:y,availableHeight:N});const F=await a.getDimensions(s.floating);return g!==F.width||b!==F.height?{reset:{rects:!0}}:{}}}};function Z(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function de(e){return Z(e).getComputedStyle(e)}const pn=Math.min,He=Math.max,pt=Math.round;function Un(e){const t=de(e);let n=parseFloat(t.width),o=parseFloat(t.height);const r=e.offsetWidth,i=e.offsetHeight,a=pt(n)!==r||pt(o)!==i;return a&&(n=r,o=i),{width:n,height:o,fallback:a}}function _e(e){return Yn(e)?(e.nodeName||"").toLowerCase():""}let nt;function qn(){if(nt)return nt;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(nt=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),nt):navigator.userAgent}function pe(e){return e instanceof Z(e).HTMLElement}function be(e){return e instanceof Z(e).Element}function Yn(e){return e instanceof Z(e).Node}function hn(e){return typeof ShadowRoot>"u"?!1:e instanceof Z(e).ShadowRoot||e instanceof ShadowRoot}function At(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=de(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function ki(e){return["table","td","th"].includes(_e(e))}function jt(e){const t=/firefox/i.test(qn()),n=de(e),o=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!o&&o!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some((r=>n.willChange.includes(r)))||["paint","layout","strict","content"].some((r=>{const i=n.contain;return i!=null&&i.includes(r)}))}function Jn(){return!/^((?!chrome|android).)*safari/i.test(qn())}function tn(e){return["html","body","#document"].includes(_e(e))}function Xn(e){return be(e)?e:e.contextElement}const Qn={x:1,y:1};function Be(e){const t=Xn(e);if(!pe(t))return Qn;const n=t.getBoundingClientRect(),{width:o,height:r,fallback:i}=Un(t);let a=(i?pt(n.width):n.width)/o,s=(i?pt(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function Ye(e,t,n,o){var r,i;t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),s=Xn(e);let l=Qn;t&&(o?be(o)&&(l=Be(o)):l=Be(e));const u=s?Z(s):window,p=!Jn()&&n;let c=(a.left+(p&&((r=u.visualViewport)==null?void 0:r.offsetLeft)||0))/l.x,m=(a.top+(p&&((i=u.visualViewport)==null?void 0:i.offsetTop)||0))/l.y,d=a.width/l.x,g=a.height/l.y;if(s){const b=Z(s),v=o&&be(o)?Z(o):o;let w=b.frameElement;for(;w&&o&&v!==b;){const S=Be(w),_=w.getBoundingClientRect(),E=getComputedStyle(w);_.x+=(w.clientLeft+parseFloat(E.paddingLeft))*S.x,_.y+=(w.clientTop+parseFloat(E.paddingTop))*S.y,c*=S.x,m*=S.y,d*=S.x,g*=S.y,c+=_.x,m+=_.y,w=Z(w).frameElement}}return{width:d,height:g,top:m,right:c+d,bottom:m+g,left:c,x:c,y:m}}function Te(e){return((Yn(e)?e.ownerDocument:e.document)||window.document).documentElement}function kt(e){return be(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Zn(e){return Ye(Te(e)).left+kt(e).scrollLeft}function Je(e){if(_e(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hn(e)&&e.host||Te(e);return hn(t)?t.host:t}function eo(e){const t=Je(e);return tn(t)?t.ownerDocument.body:pe(t)&&At(t)?t:eo(t)}function ht(e,t){var n;t===void 0&&(t=[]);const o=eo(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=Z(o);return r?t.concat(i,i.visualViewport||[],At(o)?o:[]):t.concat(o,ht(o))}function fn(e,t,n){return t==="viewport"?ze((function(o,r){const i=Z(o),a=Te(o),s=i.visualViewport;let l=a.clientWidth,u=a.clientHeight,p=0,c=0;if(s){l=s.width,u=s.height;const m=Jn();(m||!m&&r==="fixed")&&(p=s.offsetLeft,c=s.offsetTop)}return{width:l,height:u,x:p,y:c}})(e,n)):be(t)?ze((function(o,r){const i=Ye(o,!0,r==="fixed"),a=i.top+o.clientTop,s=i.left+o.clientLeft,l=pe(o)?Be(o):{x:1,y:1};return{width:o.clientWidth*l.x,height:o.clientHeight*l.y,x:s*l.x,y:a*l.y}})(t,n)):ze((function(o){const r=Te(o),i=kt(o),a=o.ownerDocument.body,s=He(r.scrollWidth,r.clientWidth,a.scrollWidth,a.clientWidth),l=He(r.scrollHeight,r.clientHeight,a.scrollHeight,a.clientHeight);let u=-i.scrollLeft+Zn(o);const p=-i.scrollTop;return de(a).direction==="rtl"&&(u+=He(r.clientWidth,a.clientWidth)-s),{width:s,height:l,x:u,y:p}})(Te(e)))}function mn(e){return pe(e)&&de(e).position!=="fixed"?e.offsetParent:null}function vn(e){const t=Z(e);let n=mn(e);for(;n&&ki(n)&&de(n).position==="static";)n=mn(n);return n&&(_e(n)==="html"||_e(n)==="body"&&de(n).position==="static"&&!jt(n))?t:n||(function(o){let r=Je(o);for(;pe(r)&&!tn(r);){if(jt(r))return r;r=Je(r)}return null})(e)||t}function Ni(e,t,n){const o=pe(t),r=Te(t),i=Ye(e,!0,n==="fixed",t);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&n!=="fixed")if((_e(t)!=="body"||At(r))&&(a=kt(t)),pe(t)){const l=Ye(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else r&&(s.x=Zn(r));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}const Pi={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=n==="clippingAncestors"?(function(u,p){const c=p.get(u);if(c)return c;let m=ht(u).filter((v=>be(v)&&_e(v)!=="body")),d=null;const g=de(u).position==="fixed";let b=g?Je(u):u;for(;be(b)&&!tn(b);){const v=de(b),w=jt(b);(g?w||d:w||v.position!=="static"||!d||!["absolute","fixed"].includes(d.position))?d=v:m=m.filter((S=>S!==b)),b=Je(b)}return p.set(u,m),m})(t,this._c):[].concat(n),a=[...i,o],s=a[0],l=a.reduce(((u,p)=>{const c=fn(t,p,r);return u.top=He(c.top,u.top),u.right=pn(c.right,u.right),u.bottom=pn(c.bottom,u.bottom),u.left=He(c.left,u.left),u}),fn(t,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=pe(n),i=Te(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((r||!r&&o!=="fixed")&&((_e(n)!=="body"||At(i))&&(a=kt(n)),pe(n))){const u=Ye(n);s=Be(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},isElement:be,getDimensions:function(e){return pe(e)?Un(e):e.getBoundingClientRect()},getOffsetParent:vn,getDocumentElement:Te,getScale:Be,async getElementRects(e){let{reference:t,floating:n,strategy:o}=e;const r=this.getOffsetParent||vn,i=this.getDimensions;return{reference:Ni(t,await r(n),o),floating:{x:0,y:0,...await i(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>de(e).direction==="rtl"},Ei=(e,t,n)=>{const o=new Map,r={platform:Pi,...n},i={...r.platform,_c:o};return yi(e,t,{...r,platform:i})},Se={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function Gt(e,t){let n=Se.themes[e]||{},o;do o=n[t],typeof o>"u"?n.$extend?n=Se.themes[n.$extend]||{}:(n=null,o=Se[t]):n=null;while(n);return o}function Ci(e){const t=[e];let n=Se.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Se.themes[n.$extend]||{}):n=null;while(n);return t.map(o=>`v-popper--theme-${o}`)}function gn(e){const t=[e];let n=Se.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Se.themes[n.$extend]||{}):n=null;while(n);return t}let Xe=!1;if(typeof window<"u"){Xe=!1;try{const e=Object.defineProperty({},"passive",{get(){Xe=!0}});window.addEventListener("test",null,e)}catch{}}let to=!1;typeof window<"u"&&typeof navigator<"u"&&(to=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Oi=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),yn={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},wn={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function bn(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Rt(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const oe=[];let Ae=null;const Tn={};function Sn(e){let t=Tn[e];return t||(t=Tn[e]=[]),t}let Wt=function(){};typeof window<"u"&&(Wt=window.Element);function B(e){return function(t){return Gt(t.theme,e)}}const Bt="__floating-vue__popper",no=()=>$e({name:"VPopper",provide(){return{[Bt]:{parentPopper:this}}},inject:{[Bt]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:B("disabled")},positioningDisabled:{type:Boolean,default:B("positioningDisabled")},placement:{type:String,default:B("placement"),validator:e=>Oi.includes(e)},delay:{type:[String,Number,Object],default:B("delay")},distance:{type:[Number,String],default:B("distance")},skidding:{type:[Number,String],default:B("skidding")},triggers:{type:Array,default:B("triggers")},showTriggers:{type:[Array,Function],default:B("showTriggers")},hideTriggers:{type:[Array,Function],default:B("hideTriggers")},popperTriggers:{type:Array,default:B("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:B("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:B("popperHideTriggers")},container:{type:[String,Object,Wt,Boolean],default:B("container")},boundary:{type:[String,Wt],default:B("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:B("strategy")},autoHide:{type:[Boolean,Function],default:B("autoHide")},handleResize:{type:Boolean,default:B("handleResize")},instantMove:{type:Boolean,default:B("instantMove")},eagerMount:{type:Boolean,default:B("eagerMount")},popperClass:{type:[String,Array,Object],default:B("popperClass")},computeTransformOrigin:{type:Boolean,default:B("computeTransformOrigin")},autoMinSize:{type:Boolean,default:B("autoMinSize")},autoSize:{type:[Boolean,String],default:B("autoSize")},autoMaxSize:{type:Boolean,default:B("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:B("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:B("preventOverflow")},overflowPadding:{type:[Number,String],default:B("overflowPadding")},arrowPadding:{type:[Number,String],default:B("arrowPadding")},arrowOverflow:{type:Boolean,default:B("arrowOverflow")},flip:{type:Boolean,default:B("flip")},shift:{type:Boolean,default:B("shift")},shiftCrossAxis:{type:Boolean,default:B("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:B("noAutoFocus")},disposeTimeout:{type:Number,default:B("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Bt])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var o,r;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(_i({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(Ti({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push($i({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Si({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(wi({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:r,middlewareData:i})=>{let a;const{centerOffset:s}=i.arrow;return o.startsWith("top")||o.startsWith("bottom")?a=Math.abs(s)>r.reference.width/2:a=Math.abs(s)>r.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:r,placement:i,middlewareData:a})=>{var s;if((s=a.autoSize)!=null&&s.skip)return{};let l,u;return i.startsWith("top")||i.startsWith("bottom")?l=r.reference.width:u=r.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(Ai({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:r})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=r!=null?`${r}px`:null}})));const n=await Ei(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Ae&&this.instantMove&&Ae.instantMove&&Ae!==this.parentPopper){Ae.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Ae=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Rt(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...ht(this.$_referenceNode),...ht(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),o=n.parentNode.getBoundingClientRect(),r=t.x+t.width/2-(o.left+n.offsetLeft),i=t.y+t.height/2-(o.top+n.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,bn(oe,this),oe.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of gn(this.theme)){const o=Sn(n);bn(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Ae===this&&(Ae=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Rt(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,yn,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],yn,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,wn,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],wn,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(o=>o.addEventListener(t,n,Xe?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,o,r){let i=n;o!=null&&(i=typeof o=="function"?o(i):o),i.forEach(a=>{const s=t[a];s&&this.$_registerEventListeners(e,s,r)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:o,eventType:r,handler:i}=n;!e||e===r?o.forEach(a=>a.removeEventListener(r,i)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const o=n.getAttribute(e);o&&(n.removeAttribute(e),n.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const o=e[n];o==null?t.removeAttribute(n):t.setAttribute(n,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(je>=e.left&&je<=e.right&&Ge>=e.top&&Ge<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=je-ge,o=Ge-ye,r=t.left+t.width/2-ge+(t.top+t.height/2)-ye+t.width+t.height,i=ge+n*r,a=ye+o*r;return ot(ge,ye,i,a,t.left,t.top,t.left,t.bottom)||ot(ge,ye,i,a,t.left,t.top,t.right,t.top)||ot(ge,ye,i,a,t.right,t.top,t.right,t.bottom)||ot(ge,ye,i,a,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(to){const e=Xe?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>xn(t),e),document.addEventListener("touchend",t=>_n(t,!0),e)}else window.addEventListener("mousedown",e=>xn(e),!0),window.addEventListener("click",e=>_n(e,!1),!0);window.addEventListener("resize",Bi)}function xn(e,t){for(let n=0;n=0;o--){const r=oe[o];try{const i=r.containsGlobalTarget=r.mouseDownContains||r.popperNode().contains(e.target);r.pendingHide=!1,requestAnimationFrame(()=>{if(r.pendingHide=!1,!n[r.randomId]&&$n(r,i,e)){if(r.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&i){let s=r.parentPopper;for(;s;)n[s.randomId]=!0,s=s.parentPopper;return}let a=r.parentPopper;for(;a&&$n(a,a.containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch{}}}function $n(e,t,n){return n.closeAllPopover||n.closePopover&&t||Ri(e,n)&&!t}function Ri(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function Bi(){for(let e=0;e{ge=je,ye=Ge,je=e.clientX,Ge=e.clientY},Xe?{passive:!0}:void 0);function ot(e,t,n,o,r,i,a,s){const l=((a-r)*(t-i)-(s-i)*(e-r))/((s-i)*(n-e)-(a-r)*(o-t)),u=((n-e)*(t-i)-(o-t)*(e-r))/((s-i)*(n-e)-(a-r)*(o-t));return l>=0&&l<=1&&u>=0&&u<=1}const Di={extends:no()},nn=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};function Li(e,t,n,o,r,i){return z(),ie("div",{ref:"reference",class:Pe(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[ee(e.$slots,"default",It(Mt(e.slotData)))],2)}const Ii=nn(Di,[["render",Li]]);function Mi(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}let rt;function Vt(){Vt.init||(Vt.init=!0,rt=Mi()!==-1)}var at={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Vt(),Jt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",rt&&this.$el.appendChild(e),e.data="about:blank",rt||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!rt&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const zi=Ao();xo("data-v-b329ee4c");const Hi={class:"resize-observer",tabindex:"-1"};_o();const ji=zi((e,t,n,o,r,i)=>(z(),J("div",Hi)));at.render=ji,at.__scopeId="data-v-b329ee4c",at.__file="src/components/ResizeObserver.vue";const oo=(e="theme")=>({computed:{themeClass(){return Ci(this[e])}}}),Gi=$e({name:"VPopperContent",components:{ResizeObserver:at},mixins:[oo()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),Wi=["id","aria-hidden","tabindex","data-popper-placement"],Vi={ref:"inner",class:"v-popper__inner"},Ki=j("div",{class:"v-popper__arrow-outer"},null,-1),Ui=j("div",{class:"v-popper__arrow-inner"},null,-1),qi=[Ki,Ui];function Yi(e,t,n,o,r,i){const a=Ve("ResizeObserver");return z(),ie("div",{id:e.popperId,ref:"popover",class:Pe(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Ot(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=$o(s=>e.autoHide&&e.$emit("hide"),["esc"]))},[j("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=s=>e.autoHide&&e.$emit("hide"))}),j("div",{class:"v-popper__wrapper",style:Ot(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[j("div",Vi,[e.mounted?(z(),ie(Tt,{key:0},[j("div",null,[ee(e.$slots,"default")]),e.handleResize?(z(),J(a,{key:0,onNotify:t[1]||(t[1]=s=>e.$emit("resize",s))})):ne("",!0)],64)):ne("",!0)],512),j("div",{ref:"arrow",class:"v-popper__arrow-container",style:Ot(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},qi,4)],4)],46,Wi)}const io=nn(Gi,[["render",Yi]]),ro={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Kt=function(){};typeof window<"u"&&(Kt=window.Element);const Ji=$e({name:"VPopperWrapper",components:{Popper:Ii,PopperContent:io},mixins:[ro,oo("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Kt,Boolean],default:void 0},boundary:{type:[String,Kt],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function Xi(e,t,n,o,r,i){const a=Ve("PopperContent"),s=Ve("Popper");return z(),J(s,Ee({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:G(({popperId:l,isShown:u,shouldMountContent:p,skipTransition:c,autoHide:m,show:d,hide:g,handleResize:b,onResize:v,classes:w,result:S})=>[ee(e.$slots,"default",{shown:u,show:d,hide:g}),U(a,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:u,mounted:p,"skip-transition":c,"auto-hide":m,"handle-resize":b,classes:w,result:S,onHide:g,onResize:v},{default:G(()=>[ee(e.$slots,"popper",{shown:u,hide:g})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Ut=nn(Ji,[["render",Xi]]),Qi={...Ut,name:"VDropdown",vPopperTheme:"dropdown"};({...Ut},{...Ut}),$e({name:"VTooltipDirective",components:{Popper:no(),PopperContent:io},mixins:[ro],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Gt(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Gt(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(o=>this.onResult(t,o)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}});const An=Se,Zi=Qi;var ao=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ft=ao.join(","),so=typeof Element>"u",Ce=so?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,mt=!so&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},vt=function(e,t){var n;t===void 0&&(t=!0);var o=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),r=o===""||o==="true",i=r||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):vt(e.parentNode));return i},er=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},lo=function(e,t,n){if(vt(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(ft));return t&&Ce.call(e,ft)&&o.unshift(e),o=o.filter(n),o},gt=function(e,t,n){for(var o=[],r=Array.from(e);r.length;){var i=r.shift();if(!vt(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),s=a.length?a:i.children,l=gt(s,!0,n);n.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{var u=Ce.call(i,ft);u&&n.filter(i)&&(t||!e.includes(i))&&o.push(i);var p=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),c=!vt(p,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(p&&c){var m=gt(p===!0?i.children:p.children,!0,n);n.flatten?o.push.apply(o,m):o.push({scopeParent:i,candidates:m})}else r.unshift.apply(r,i.children)}}return o},uo=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Ne=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||er(e))&&!uo(e)?0:e.tabIndex},tr=function(e,t){var n=Ne(e);return n<0&&t&&!uo(e)?0:n},nr=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},co=function(e){return e.tagName==="INPUT"},or=function(e){return co(e)&&e.type==="hidden"},ir=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},rr=function(e,t){for(var n=0;nsummary:first-of-type"),a=i?e.parentElement:e;if(Ce.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof o=="function"){for(var s=e;e;){var l=e.parentElement,u=mt(e);if(l&&!l.shadowRoot&&o(l)===!0)return kn(e);e.assignedSlot?e=e.assignedSlot:!l&&u!==e.ownerDocument?e=u.host:e=l}e=s}if(ur(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return kn(e);return!1},dr=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n=0)},po=function(e){var t=[],n=[];return e.forEach(function(o,r){var i=!!o.scopeParent,a=i?o.scopeParent:o,s=tr(a,i),l=i?po(o.candidates):a;s===0?i?t.push.apply(t,l):t.push(a):n.push({documentOrder:r,tabIndex:s,item:o,isScope:i,content:l})}),n.sort(nr).reduce(function(o,r){return r.isScope?o.push.apply(o,r.content):o.push(r.content),o},[]).concat(t)},hr=function(e,t){t=t||{};var n;return t.getShadowRoot?n=gt([e],t.includeContainer,{filter:qt.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:pr}):n=lo(e,t.includeContainer,qt.bind(null,t)),po(n)},fr=function(e,t){t=t||{};var n;return t.getShadowRoot?n=gt([e],t.includeContainer,{filter:yt.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=lo(e,t.includeContainer,yt.bind(null,t)),n},Fe=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Ce.call(e,ft)===!1?!1:qt(t,e)},mr=ao.concat("iframe:not([inert]):not([inert] *)").join(","),Dt=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Ce.call(e,mr)===!1?!1:yt(t,e)};function Yt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(l){throw l},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return a=l.done,l},e:function(l){s=!0,i=l},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}function gr(e,t,n){return(t=Sr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yr(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wr(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function On(e){for(var t=1;t3?(k=O===P)&&(y=$[(N=$[4])?5:(N=3,3)],$[4]=$[5]=e):$[0]<=A&&((k=T<2&&A<$[1])?(N=0,h.v=P,h.n=$[1]):AP||P>O)&&($[4]=T,$[5]=P,h.n=O,N=0))}if(k||T>1)return a;throw H=!0,P}return function(T,P,k){if(F>1)throw TypeError("Generator is already running");for(H&&P===1&&f(P,k),N=P,y=k;(t=N<2?e:y)||!H;){x||(N?N<3?(N>1&&(h.n=-1),f(N,y)):h.n=y:h.v=y);try{if(F=2,x){if(N||(T="next"),t=x[T]){if(!(t=t.call(x,y)))throw TypeError("iterator result is not an object");if(!t.done)return t;y=t.value,N<2&&(N=0)}else N===1&&(t=x.return)&&t.call(x),N<2&&(y=TypeError("The iterator does not provide a '"+T+"' method"),N=1);x=e}else if((t=(H=h.n<0)?y:_.call(E,h))!==a)break}catch($){x=e,N=1,y=$}finally{F=1}}return{value:t,done:H}}})(d,b,v),!0),S}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var p=[][o]?t(t([][o]())):(q(t={},o,function(){return this}),t),c=u.prototype=s.prototype=Object.create(p);function m(d){return Object.setPrototypeOf?Object.setPrototypeOf(d,u):(d.__proto__=u,q(d,r,"GeneratorFunction")),d.prototype=Object.create(c),d}return l.prototype=u,q(c,"constructor",u),q(u,"constructor",l),l.displayName="GeneratorFunction",q(u,r,"GeneratorFunction"),q(c),q(c,r,"Generator"),q(c,o,function(){return this}),q(c,"toString",function(){return"[object Generator]"}),(Me=function(){return{w:i,m}})()}function q(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch{r=0}q=function(i,a,s,l){function u(p,c){q(i,p,function(m){return this._invoke(p,c,m)})}a?r?r(i,a,{value:s,enumerable:!l,configurable:!l,writable:!l}):i[a]=s:(u("next",0),u("throw",1),u("return",2))},q(e,t,n,o)}function br(e){return vr(e)||yr(e)||ho(e)||wr()}function Tr(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sr(e){var t=Tr(e,"string");return typeof t=="symbol"?t:t+""}function ho(e,t){if(e){if(typeof e=="string")return Yt(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yt(e,t):void 0}}var he={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,t){var n=he.getActiveTrap(e);t!==n&&he.pauseTrap(e);var o=e.indexOf(t);o===-1||e.splice(o,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),he.unpauseTrap(e)},pauseTrap:function(e){var t=he.getActiveTrap(e);t?._setPausedState(!0)},unpauseTrap:function(e){var t=he.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},xr=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},_r=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},We=function(e){return e?.key==="Tab"||e?.keyCode===9},$r=function(e){return We(e)&&!e.shiftKey},Ar=function(e){return We(e)&&e.shiftKey},Fn=function(e){return setTimeout(e,0)},Ie=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1&&arguments[1]!==void 0?arguments[1]:{},T=f.hasFallback,P=T===void 0?!1:T,k=f.params,$=k===void 0?[]:k,A=r[h];if(typeof A=="function"&&(A=A.apply(void 0,br($))),A===!0&&(A=void 0),!A){if(A===void 0||A===!1)return A;throw new Error("`".concat(h,"` was specified but was not a node, or did not return a node"))}var O=A;if(typeof A=="string"){try{O=n.querySelector(A)}catch(R){throw new Error("`".concat(h,'` appears to be an invalid selector; error="').concat(R.message,'"'))}if(!O&&!P)throw new Error("`".concat(h,"` as selector refers to no known node"))}return O},p=function(){var h=u("initialFocus",{hasFallback:!0});if(h===!1)return!1;if(h===void 0||h&&!Dt(h,r.tabbableOptions))if(l(n.activeElement)>=0)h=n.activeElement;else{var f=i.tabbableGroups[0],T=f&&f.firstTabbableNode;h=T||u("fallbackFocus")}else h===null&&(h=u("fallbackFocus"));if(!h)throw new Error("Your focus-trap needs to have at least one focusable element");return h},c=function(){if(i.containerGroups=i.containers.map(function(h){var f=hr(h,r.tabbableOptions),T=fr(h,r.tabbableOptions),P=f.length>0?f[0]:void 0,k=f.length>0?f[f.length-1]:void 0,$=T.find(function(R){return Fe(R)}),A=T.slice().reverse().find(function(R){return Fe(R)}),O=!!f.find(function(R){return Ne(R)>0});return{container:h,tabbableNodes:f,focusableNodes:T,posTabIndexesFound:O,firstTabbableNode:P,lastTabbableNode:k,firstDomTabbableNode:$,lastDomTabbableNode:A,nextTabbableNode:function(R){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,X=f.indexOf(R);return X<0?W?T.slice(T.indexOf(R)+1).find(function(K){return Fe(K)}):T.slice(0,T.indexOf(R)).reverse().find(function(K){return Fe(K)}):f[X+(W?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(h){return h.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(h){return h.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},m=function(h){var f=h.activeElement;if(f)return f.shadowRoot&&f.shadowRoot.activeElement!==null?m(f.shadowRoot):f},d=function(h){if(h!==!1&&h!==m(document)){if(!h||!h.focus){d(p());return}h.focus({preventScroll:!!r.preventScroll}),i.mostRecentlyFocusedNode=h,xr(h)&&h.select()}},g=function(h){var f=u("setReturnFocus",{params:[h]});return f||(f===!1?!1:h)},b=function(h){var f=h.target,T=h.event,P=h.isBackward,k=P===void 0?!1:P;f=f||it(T),c();var $=null;if(i.tabbableGroups.length>0){var A=l(f,T),O=A>=0?i.containerGroups[A]:void 0;if(A<0)k?$=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:$=i.tabbableGroups[0].firstTabbableNode;else if(k){var R=i.tabbableGroups.findIndex(function(Et){var Ct=Et.firstTabbableNode;return f===Ct});if(R<0&&(O.container===f||Dt(f,r.tabbableOptions)&&!Fe(f,r.tabbableOptions)&&!O.nextTabbableNode(f,!1))&&(R=A),R>=0){var W=R===0?i.tabbableGroups.length-1:R-1,X=i.tabbableGroups[W];$=Ne(f)>=0?X.lastTabbableNode:X.lastDomTabbableNode}else We(T)||($=O.nextTabbableNode(f,!1))}else{var K=i.tabbableGroups.findIndex(function(Et){var Ct=Et.lastTabbableNode;return f===Ct});if(K<0&&(O.container===f||Dt(f,r.tabbableOptions)&&!Fe(f,r.tabbableOptions)&&!O.nextTabbableNode(f))&&(K=A),K>=0){var Pt=K===i.tabbableGroups.length-1?0:K+1,ve=i.tabbableGroups[Pt];$=Ne(f)>=0?ve.firstTabbableNode:ve.firstDomTabbableNode}else We(T)||($=O.nextTabbableNode(f))}}else $=u("fallbackFocus");return $},v=function(h){var f=it(h);if(!(l(f,h)>=0)){if(Ie(r.clickOutsideDeactivates,h)){a.deactivate({returnFocus:r.returnFocusOnDeactivate});return}Ie(r.allowOutsideClick,h)||h.preventDefault()}},w=function(h){var f=it(h),T=l(f,h)>=0;if(T||f instanceof Document)T&&(i.mostRecentlyFocusedNode=f);else{h.stopImmediatePropagation();var P,k=!0;if(i.mostRecentlyFocusedNode)if(Ne(i.mostRecentlyFocusedNode)>0){var $=l(i.mostRecentlyFocusedNode),A=i.containerGroups[$].tabbableNodes;if(A.length>0){var O=A.findIndex(function(R){return R===i.mostRecentlyFocusedNode});O>=0&&(r.isKeyForward(i.recentNavEvent)?O+1=0&&(P=A[O-1],k=!1))}}else i.containerGroups.some(function(R){return R.tabbableNodes.some(function(W){return Ne(W)>0})})||(k=!1);else k=!1;k&&(P=b({target:i.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(i.recentNavEvent)})),d(P||i.mostRecentlyFocusedNode||p())}i.recentNavEvent=void 0},S=function(h){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=h;var T=b({event:h,isBackward:f});T&&(We(h)&&h.preventDefault(),d(T))},_=function(h){(r.isKeyForward(h)||r.isKeyBackward(h))&&S(h,r.isKeyBackward(h))},E=function(h){_r(h)&&Ie(r.escapeDeactivates,h)!==!1&&(h.preventDefault(),a.deactivate())},C=function(h){var f=it(h);l(f,h)>=0||Ie(r.clickOutsideDeactivates,h)||Ie(r.allowOutsideClick,h)||(h.preventDefault(),h.stopImmediatePropagation())},x=function(){if(!i.active)return Promise.resolve();he.activateTrap(o,a);var h;return r.delayInitialFocus?h=new Promise(function(f){i.delayInitialFocusTimer=Fn(function(){d(p()),f()})}):(h=Promise.resolve(),d(p())),n.addEventListener("focusin",w,!0),n.addEventListener("mousedown",v,{capture:!0,passive:!1}),n.addEventListener("touchstart",v,{capture:!0,passive:!1}),n.addEventListener("click",C,{capture:!0,passive:!1}),n.addEventListener("keydown",_,{capture:!0,passive:!1}),n.addEventListener("keydown",E),h},N=function(h){i.active&&!i.paused&&a._setSubtreeIsolation(!1),i.adjacentElements.clear(),i.alreadySilent.clear();var f=new Set,T=new Set,P=En(h),k;try{for(P.s();!(k=P.n()).done;){var $=k.value;f.add($);for(var A=typeof ShadowRoot<"u"&&$.getRootNode()instanceof ShadowRoot,O=$;O;){f.add(O);var R=O.parentElement,W=[];R?W=R.children:!R&&A&&(W=O.getRootNode().children,R=O.getRootNode().host,A=typeof ShadowRoot<"u"&&R.getRootNode()instanceof ShadowRoot);var X=En(W),K;try{for(X.s();!(K=X.n()).done;){var Pt=K.value;T.add(Pt)}}catch(ve){X.e(ve)}finally{X.f()}O=R}}}catch(ve){P.e(ve)}finally{P.f()}f.forEach(function(ve){T.delete(ve)}),i.adjacentElements=T},y=function(){if(i.active)return n.removeEventListener("focusin",w,!0),n.removeEventListener("mousedown",v,!0),n.removeEventListener("touchstart",v,!0),n.removeEventListener("click",C,!0),n.removeEventListener("keydown",_,!0),n.removeEventListener("keydown",E),a},F=function(h){var f=h.some(function(T){var P=Array.from(T.removedNodes);return P.some(function(k){return k===i.mostRecentlyFocusedNode})});f&&d(p())},L=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(F):void 0,H=function(){L&&(L.disconnect(),i.active&&!i.paused&&i.containers.map(function(h){L.observe(h,{subtree:!0,childList:!0})}))};return a={get active(){return i.active},get paused(){return i.paused},activate:function(h){if(i.active)return this;var f=s(h,"onActivate"),T=s(h,"onPostActivate"),P=s(h,"checkCanFocusTrap"),k=he.getActiveTrap(o),$=!1;if(k&&!k.paused){var A;(A=k._setSubtreeIsolation)===null||A===void 0||A.call(k,!1),$=!0}try{P||c(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=m(n),f?.();var O=(function(){var W=Pn(Me().m(function X(){return Me().w(function(K){for(;;)switch(K.n){case 0:return P&&c(),K.n=1,x();case 1:a._setSubtreeIsolation(!0),H(),T?.();case 2:return K.a(2)}},X)}));return function(){return W.apply(this,arguments)}})();if(P)return P(i.containers.concat()).then(O,O),this;O()}catch(W){if(k===he.getActiveTrap(o)&&$){var R;(R=k._setSubtreeIsolation)===null||R===void 0||R.call(k,!0)}throw W}return this},deactivate:function(h){if(!i.active)return this;var f=On({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},h);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,i.paused||a._setSubtreeIsolation(!1),i.alreadySilent.clear(),y(),i.active=!1,i.paused=!1,H(),he.deactivateTrap(o,a);var T=s(f,"onDeactivate"),P=s(f,"onPostDeactivate"),k=s(f,"checkCanReturnFocus"),$=s(f,"returnFocus","returnFocusOnDeactivate");T?.();var A=function(){Fn(function(){$&&d(g(i.nodeFocusedBeforeActivation)),P?.()})};return $&&k?(k(g(i.nodeFocusedBeforeActivation)).then(A,A),this):(A(),this)},pause:function(h){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,h)):this},unpause:function(h){return i.active?(i.manuallyPaused=!1,o[o.length-1]!==this?this:this._setPausedState(!1,h)):this},updateContainerElements:function(h){var f=[].concat(h).filter(Boolean);return i.containers=f.map(function(T){return typeof T=="string"?n.querySelector(T):T}),r.isolateSubtrees&&N(i.containers),i.active&&(c(),i.paused||a._setSubtreeIsolation(!0)),H(),this}},Object.defineProperties(a,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(h,f){if(i.paused===h)return this;if(i.paused=h,h){var T=s(f,"onPause"),P=s(f,"onPostPause");T?.(),y(),a._setSubtreeIsolation(!1),H(),P?.()}else{var k=s(f,"onUnpause"),$=s(f,"onPostUnpause");k?.();var A=(function(){var O=Pn(Me().m(function R(){return Me().w(function(W){for(;;)switch(W.n){case 0:return c(),W.n=1,x();case 1:a._setSubtreeIsolation(!0),H(),$?.();case 2:return W.a(2)}},R)}));return function(){return O.apply(this,arguments)}})();A()}return this}},_setSubtreeIsolation:{value:function(h){r.isolateSubtrees&&i.adjacentElements.forEach(function(f){var T;h?r.isolateSubtrees==="aria-hidden"?((f.ariaHidden==="true"||((T=f.getAttribute("aria-hidden"))===null||T===void 0?void 0:T.toLowerCase())==="true")&&i.alreadySilent.add(f),f.setAttribute("aria-hidden","true")):((f.inert||f.hasAttribute("inert"))&&i.alreadySilent.add(f),f.setAttribute("inert",!0)):i.alreadySilent.has(f)||(r.isolateSubtrees==="aria-hidden"?f.removeAttribute("aria-hidden"):f.removeAttribute("inert"))})}}}),a.updateContainerElements(e),a};const wt=ti(),Nr=$e({name:"NcPopoverTriggerProvider",provide(){return{"NcPopover:trigger:shown":()=>this.shown,"NcPopover:trigger:attrs":()=>this.triggerAttrs}},props:{shown:{type:Boolean,required:!0},popupRole:{type:String,default:void 0}},computed:{triggerAttrs(){return{"aria-haspopup":this.popupRole,"aria-expanded":this.shown.toString()}}},render(){return this.$slots.default?.({attrs:this.triggerAttrs})}}),Pr="_ncPopover_HjJ88",Er={"material-design-icon":"_material-design-icon_FKPyJ",ncPopover:Pr},mo="nc-popover-9";An.themes[mo]=structuredClone(An.themes.dropdown);const Cr={name:"NcPopover",components:{Dropdown:Zi,NcPopoverTriggerProvider:Nr},props:{boundary:{type:[String,Object],default:""},closeOnClickOutside:{type:Boolean,default:!0},noCloseOnClickOutside:{type:Boolean,default:!1},container:{type:[Boolean,String],default:"body"},delay:{type:[Number,Object],default:0},noFocusTrap:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},popoverBaseClass:{type:String,default:""},popoverTriggers:{type:[Array,Object],default:null},popupRole:{type:String,default:void 0,validator:e=>["menu","listbox","tree","grid","dialog","true"].includes(e)},setReturnFocus:{default:void 0,type:[Boolean,HTMLElement,SVGElement,String,Function]},shown:{type:Boolean,default:!1},triggers:{type:[Array,Object],default:()=>["click"]}},emits:["afterShow","afterHide","update:shown"],setup(){return{theme:mo}},data(){return{internalShown:this.shown}},computed:{popperTriggers(){if(this.popoverTriggers&&Array.isArray(this.popoverTriggers))return this.popoverTriggers},popperHideTriggers(){if(this.popoverTriggers&&typeof this.popoverTriggers=="object")return this.popoverTriggers.hide},popperShowTriggers(){if(this.popoverTriggers&&typeof this.popoverTriggers=="object")return this.popoverTriggers.show},internalTriggers(){if(this.triggers&&Array.isArray(this.triggers))return this.triggers},hideTriggers(){if(this.triggers&&typeof this.triggers=="object")return this.triggers.hide},showTriggers(){if(this.triggers&&typeof this.triggers=="object")return this.triggers.show},internalPlacement(){return this.placement==="start"?wt?"right":"left":this.placement==="end"?wt?"left":"right":this.placement}},watch:{shown(e){this.internalShown=e},internalShown(e){this.$emit("update:shown",e)}},mounted(){this.checkTriggerA11y()},beforeUnmount(){this.clearFocusTrap(),this.clearEscapeStopPropagation()},methods:{checkTriggerA11y(){window.OC?.debug&&this.getPopoverTriggerContainerElement().querySelector("[aria-expanded]")},removeFloatingVueAriaDescribedBy(){const e=this.getPopoverTriggerContainerElement().querySelectorAll("[data-popper-shown]");for(const t of e)t.removeAttribute("aria-describedby")},getPopoverContentElement(){return this.$refs.popover?.$refs.popperContent?.$el},getPopoverTriggerContainerElement(){return this.$refs.popover?.$refs.popper?.$refs.reference},async useFocusTrap(){if(await this.$nextTick(),this.noFocusTrap)return;const e=this.getPopoverContentElement();e.tabIndex=-1,e&&(this.$focusTrap=fo(e,{escapeDeactivates:!1,allowOutsideClick:!0,setReturnFocus:this.setReturnFocus,trapStack:Ue(),fallBackFocus:e}),this.$focusTrap.activate())},clearFocusTrap(e={}){try{this.$focusTrap?.deactivate(e),this.$focusTrap=null}catch(t){Yo.warn("[NcPopover] Failed to clear focus trap",{error:t})}},addEscapeStopPropagation(){this.getPopoverContentElement()?.addEventListener("keydown",this.stopKeydownEscapeHandler)},clearEscapeStopPropagation(){this.getPopoverContentElement()?.removeEventListener("keydown",this.stopKeydownEscapeHandler)},stopKeydownEscapeHandler(e){e.type==="keydown"&&e.key==="Escape"&&e.stopPropagation()},async afterShow(){this.getPopoverContentElement().addEventListener("transitionend",()=>{this.$emit("afterShow")},{once:!0,passive:!0}),this.removeFloatingVueAriaDescribedBy(),await this.$nextTick(),await this.useFocusTrap(),this.addEscapeStopPropagation()},afterHide(){this.getPopoverContentElement()?.addEventListener("transitionend",()=>{this.$emit("afterHide")},{once:!0,passive:!0}),this.clearFocusTrap(),this.clearEscapeStopPropagation()}}};function Or(e,t,n,o,r,i){const a=Ve("NcPopoverTriggerProvider"),s=Ve("Dropdown");return z(),J(s,{ref:"popover",shown:r.internalShown,"onUpdate:shown":[t[0]||(t[0]=l=>r.internalShown=l),t[1]||(t[1]=l=>r.internalShown=l)],arrowPadding:10,autoHide:!n.noCloseOnClickOutside&&n.closeOnClickOutside,boundary:n.boundary||void 0,container:n.container,delay:n.delay,distance:10,handleResize:"",noAutoFocus:!0,placement:i.internalPlacement,popperClass:[e.$style.ncPopover,n.popoverBaseClass],popperTriggers:i.popperTriggers,popperHideTriggers:i.popperHideTriggers,popperShowTriggers:i.popperShowTriggers,theme:o.theme,triggers:i.internalTriggers,hideTriggers:i.hideTriggers,showTriggers:i.showTriggers,onApplyShow:i.afterShow,onApplyHide:i.afterHide},{popper:G(l=>[ee(e.$slots,"default",It(Mt(l)))]),default:G(()=>[U(a,{shown:r.internalShown,popupRole:n.popupRole},{default:G(l=>[ee(e.$slots,"trigger",It(Mt(l)))]),_:3},8,["shown","popupRole"])]),_:3},8,["shown","autoHide","boundary","container","delay","placement","popperClass","popperTriggers","popperHideTriggers","popperShowTriggers","theme","triggers","hideTriggers","showTriggers","onApplyShow","onApplyHide"])}const Fr={$style:Er},Rn=Ze(Cr,[["render",Or],["__cssModules",Fr]]),Rr={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Br=["aria-hidden","aria-label"],Dr=["fill","width","height"],Lr={d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"},Ir={key:0};function Mr(e,t,n,o,r,i){return z(),ie("span",Ee(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon dots-horizontal-icon",role:"img",onClick:t[0]||(t[0]=a=>e.$emit("click",a))}),[(z(),ie("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[j("path",Lr,[n.title?(z(),ie("title",Ir,Ke(n.title),1)):ne("",!0)])],8,Dr))],16,Br)}const zr=Ze(Rr,[["render",Mr]]);_t(Wo);function vo(e){return Array.isArray(e)&&e.some(t=>{if(t===null)return!1;if(typeof t=="object"){const n=t;if(n.type===ko||n.type===Tt&&!vo(n.children)||n.type===No&&!n.children.trim())return!1}return!0})}const Hr=".focusable",jr={name:"NcActions",components:{NcButton:we,NcPopover:Rn},provide(){return{[oi]:I(()=>this.actionsMenuSemanticType==="menu"),[ii]:this.closeMenu}},props:{open:{type:Boolean,default:!1},manualOpen:{type:Boolean,default:!1},forceMenu:{type:Boolean,default:!1},forceName:{type:Boolean,default:!1},menuName:{type:String,default:null},primary:{type:Boolean,default:!1},defaultIcon:{type:String,default:""},ariaLabel:{type:String,default:Y("Actions")},placement:{type:String,default:"bottom"},boundariesElement:{type:Element,default:()=>document.getElementById("content-vue")??document.querySelector("body")},container:{type:[Boolean,String,Object,Element],default:"body"},disabled:{type:Boolean,default:!1},inline:{type:Number,default:0},variant:{type:String,validator(e){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].includes(e)},default:null},size:{type:String,default:"normal",validator(e){return["small","normal","large"].includes(e)}}},emits:["click","blur","focus","close","closed","open","opened","update:open"],setup(){return{randomId:Xt()}},data(){return{opened:this.open,focusIndex:0,actionsMenuSemanticType:"unknown"}},computed:{triggerButtonVariant(){return this.variant||(this.primary?"primary":this.menuName?"secondary":"tertiary")},config(){return{menu:{popupRole:"menu",withArrowNavigation:!0,withTabNavigation:!1,withFocusTrap:!1},navigation:{popupRole:void 0,withArrowNavigation:!1,withTabNavigation:!0,withFocusTrap:!1},dialog:{popupRole:"dialog",withArrowNavigation:!1,withTabNavigation:!0,withFocusTrap:!0},tooltip:{popupRole:void 0,withArrowNavigation:!1,withTabNavigation:!1,withFocusTrap:!1},unknown:{popupRole:void 0,role:void 0,withArrowNavigation:!0,withTabNavigation:!1,withFocusTrap:!0}}[this.actionsMenuSemanticType]},withFocusTrap(){return this.config.withFocusTrap}},watch:{open(e){e!==this.opened&&(this.opened=e)},opened(){this.opened?document.body.addEventListener("keydown",this.handleEscapePressed):document.body.removeEventListener("keydown",this.handleEscapePressed)}},created(){ai(()=>this.opened,{disabled:()=>this.config.withFocusTrap}),"ariaHidden"in this.$attrs},methods:{getActionName(e){return e?.type?.name},isValidSingleAction(e){return["NcActionButton","NcActionLink","NcActionRouter"].includes(this.getActionName(e))},isAction(e){return this.getActionName(e)?.startsWith?.("NcAction")},isIconUrl(e){try{return!!new URL(e,e.startsWith("/")?window.location.origin:void 0)}catch{return!1}},toggleMenu(e){e?this.openMenu():this.closeMenu()},openMenu(){this.opened||(this.opened=!0,this.$emit("update:open",!0),this.$emit("open"))},async closeMenu(e=!0){this.opened&&(await this.$nextTick(),this.opened=!1,this.$refs.popover?.clearFocusTrap({returnFocus:e}),this.$emit("update:open",!1),this.$emit("close"),this.focusIndex=0,e&&this.$refs.triggerButton?.$el.focus())},onOpened(){this.$nextTick(()=>{this.focusFirstAction(null),this.$emit("opened")})},onClosed(){this.$emit("closed")},getCurrentActiveMenuItemElement(){return this.$refs.menu.querySelector("li.active")},getFocusableMenuItemElements(){return this.$refs.menu.querySelectorAll(Hr)},onKeydown(e){if(e.key==="Tab"){if(this.config.withFocusTrap)return;if(!this.config.withTabNavigation){this.closeMenu(!0);return}e.preventDefault();const t=this.getFocusableMenuItemElements(),n=[...t].indexOf(document.activeElement);if(n===-1)return;const o=e.shiftKey?n-1:n+1;(o<0||o===t.length)&&this.closeMenu(!0),this.focusIndex=o,this.focusAction();return}this.config.withArrowNavigation&&(e.key==="ArrowUp"&&this.focusPreviousAction(e),e.key==="ArrowDown"&&this.focusNextAction(e),e.key==="PageUp"&&this.focusFirstAction(e),e.key==="PageDown"&&this.focusLastAction(e)),this.handleEscapePressed(e)},onTriggerKeydown(e){e.key==="Escape"&&this.actionsMenuSemanticType==="tooltip"&&this.closeMenu()},handleEscapePressed(e){e.key==="Escape"&&(this.closeMenu(),e.preventDefault())},removeCurrentActive(){const e=this.$refs.menu.querySelector("li.active");e&&e.classList.remove("active")},focusAction(){const e=this.getFocusableMenuItemElements()[this.focusIndex];if(e){this.removeCurrentActive();const t=e.closest("li.action");e.focus(),t&&t.classList.add("active")}},focusPreviousAction(e){this.opened&&(this.focusIndex===0?this.focusLastAction(e):(this.preventIfEvent(e),this.focusIndex=this.focusIndex-1),this.focusAction())},focusNextAction(e){if(this.opened){const t=this.getFocusableMenuItemElements().length-1;this.focusIndex===t?this.focusFirstAction(e):(this.preventIfEvent(e),this.focusIndex=this.focusIndex+1),this.focusAction()}},focusFirstAction(e){if(this.opened){this.preventIfEvent(e);const t=[...this.getFocusableMenuItemElements()].findIndex(n=>n.getAttribute("aria-checked")==="true"&&n.getAttribute("role")==="menuitemradio");this.focusIndex=t>-1?t:0,this.focusAction()}},focusLastAction(e){this.opened&&(this.preventIfEvent(e),this.focusIndex=this.getFocusableMenuItemElements().length-1,this.focusAction())},preventIfEvent(e){e&&(e.preventDefault(),e.stopPropagation())},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e),this.actionsMenuSemanticType==="tooltip"&&this.$refs.menu&&this.getFocusableMenuItemElements().length===0&&this.closeMenu(!1)},onClick(e){this.$emit("click",e)}},render(){const e=[],t=(d,g)=>{d.forEach(b=>{if(this.isAction(b)){g.push(b);return}b.type===Tt&&t(b.children,g)})};if(t(this.$slots.default?.(),e),e.length===0)return;let n=e.filter(this.isValidSingleAction);this.forceMenu&&n.length>0&&this.inline>0&&(n=[]);const o=n.slice(0,this.inline),r=e.filter(d=>!o.includes(d)),i=["NcActionButton","NcActionButtonGroup","NcActionCheckbox","NcActionRadio"],a=["NcActionInput","NcActionTextEditable"],s=["NcActionLink","NcActionRouter"],l=r.some(d=>a.includes(this.getActionName(d))),u=r.some(d=>i.includes(this.getActionName(d))),p=r.some(d=>s.includes(this.getActionName(d)));l?this.actionsMenuSemanticType="dialog":u?this.actionsMenuSemanticType="menu":p?this.actionsMenuSemanticType="navigation":e.filter(d=>this.getActionName(d).startsWith("NcAction")).length===e.length?this.actionsMenuSemanticType="tooltip":this.actionsMenuSemanticType="unknown";const c=d=>{const g=d?.props?.icon,b=d?.children?.icon?.()?.[0]??(this.isIconUrl(g)?Q("img",{class:"action-item__menutoggle__icon",src:g,alt:""}):Q("span",{class:["icon",g]})),v=d?.children?.default?.()?.[0]?.children?.trim(),w=this.forceName?v:"";let S=d?.props?.title;this.forceName||S||(S=v);const _={...d?.props??{}},E=["submit","reset"].includes(_.type)?_.modelValue:"button";return delete _.modelValue,delete _.type,Q(we,Ee(_,{class:"action-item action-item--single","aria-label":d?.props?.["aria-label"]||v,title:S,disabled:this.disabled||d?.props?.disabled,pressed:d?.props?.modelValue,size:this.size,type:E,variant:this.variant||(w?"secondary":"tertiary"),onFocus:this.onFocus,onBlur:this.onBlur,"onUpdate:pressed":d?.props?.["onUpdate:modelValue"]??(()=>{})}),{default:()=>w,icon:()=>b})},m=d=>{const g=vo(this.$slots.icon?.())?this.$slots.icon?.():this.defaultIcon?Q("span",{class:["icon",this.defaultIcon]}):Q(zr,{size:20}),b=`${this.randomId}-trigger`;return Q(Rn,{ref:"popover",delay:0,shown:this.opened,placement:this.placement,boundary:this.boundariesElement,autoBoundaryMaxSize:!0,container:this.container,...this.manualOpen&&{triggers:[]},noCloseOnClickOutside:this.manualOpen,popoverBaseClass:"action-item__popper",popupRole:this.config.popupRole,setReturnFocus:this.config.withFocusTrap?this.$refs.triggerButton?.$el:void 0,noFocusTrap:!this.config.withFocusTrap,"onUpdate:shown":this.toggleMenu,onAfterShow:this.onOpened,onAfterClose:this.onClosed},{trigger:()=>Q(we,{id:b,class:"action-item__menutoggle",disabled:this.disabled,size:this.size,variant:this.triggerButtonVariant,ref:"triggerButton","aria-label":this.menuName?null:this.ariaLabel,"aria-controls":this.opened&&this.config.popupRole?this.randomId:null,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,onKeydown:this.onTriggerKeydown},{icon:()=>g,default:()=>this.menuName}),default:()=>Q("div",{class:{open:this.opened},tabindex:"-1",onKeydown:this.onKeydown,ref:"menu"},[Q("ul",{id:this.randomId,tabindex:"-1",ref:"menuList",role:this.config.popupRole,"aria-labelledby":b,"aria-modal":this.actionsMenuSemanticType==="dialog"?"true":void 0},[d])])})};return e.length===1&&n.length===1&&!this.forceMenu?c(e[0]):(this.$nextTick(()=>{this.opened&&this.$refs.menu&&(this.$refs.menu.querySelector("li.active")||[]).length===0&&this.focusFirstAction()}),o.length>0&&this.inline>0?Q("div",{class:["action-items",`action-item--${this.triggerButtonVariant}`]},[...o.map(c),r.length>0?Q("div",{class:["action-item",{"action-item--open":this.opened}]},[m(r)]):null]):Q("div",{class:["action-item action-item--default-popover",`action-item--${this.triggerButtonVariant}`,{"action-item--open":this.opened}]},[m(e)]))}},Gr=Ze(jr,[["__scopeId","data-v-5f7eed6b"]]);function Oe(e,t){return zn()?(Po(e,t),!0):!1}const Lt=new WeakMap,Wr=(...e)=>{var t;const n=e[0],o=(t=St())===null||t===void 0?void 0:t.proxy,r=o??zn();if(r==null&&!Hn())throw new Error("injectLocal must be called in setup");return r&&Lt.has(r)&&n in Lt.get(r)?Lt.get(r)[n]:Fo(...e)},Qe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const go=e=>e!=null,Vr=Object.prototype.toString,Kr=e=>Vr.call(e)==="[object Object]",ce=()=>{};function yo(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}const Ur=e=>e();function wo(e,t={}){let n,o,r=ce;const i=s=>{clearTimeout(s),r(),r=ce};let a;return s=>{const l=M(e),u=M(t.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(o&&(i(o),o=void 0),Promise.resolve(s())):new Promise((p,c)=>{r=t.rejectOnCancel?c:p,a=s,u&&!o&&(o=setTimeout(()=>{n&&i(n),o=void 0,p(a())},u)),n=setTimeout(()=>{o&&i(o),o=void 0,p(s())},l)})}}function Bn(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function De(e){return Array.isArray(e)?e:[e]}function qr(e){return St()}function Xa(e){if(!Qe)return e;let t=0,n,o;const r=()=>{t-=1,o&&t<=0&&(o.stop(),n=void 0,o=void 0)};return((...i)=>(t+=1,o||(o=Oo(!0),n=o.run(()=>e(...i))),Oe(r),n))}function Qa(e,t=200,n={}){return yo(wo(t,n),e)}function Yr(e,t,n={}){const{eventFilter:o=Ur,...r}=n;return me(e,yo(o,t),r)}function Jr(e,t=!0,n){qr()?lt(e,n):t?e():Jt(e)}function Xr(e,t=1e3,n={}){const{immediate:o=!0,immediateCallback:r=!1}=n;let i=null;const a=re(!1);function s(){i&&(clearInterval(i),i=null)}function l(){a.value=!1,s()}function u(){const p=M(t);p<=0||(a.value=!0,r&&e(),s(),a.value&&(i=setInterval(e,p)))}return o&&Qe&&u(),(Eo(t)||typeof t=="function")&&Oe(me(t,()=>{a.value&&Qe&&u()})),Oe(l),{isActive:Co(a),pause:l,resume:u}}function Za(e,t,n={}){const{debounce:o=0,maxWait:r=void 0,...i}=n;return Yr(e,t,{...i,eventFilter:wo(o,{maxWait:r})})}function Qr(e,t,n){return me(e,t,{...n,immediate:!0})}const le=Qe?window:void 0,es=Qe?window.document:void 0;function V(e){var t;const n=M(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function te(...e){const t=(o,r,i,a)=>(o.addEventListener(r,i,a),()=>o.removeEventListener(r,i,a)),n=I(()=>{const o=De(M(e[0])).filter(r=>r!=null);return o.every(r=>typeof r!="string")?o:void 0});return Qr(()=>{var o,r;return[(o=(r=n.value)===null||r===void 0?void 0:r.map(i=>V(i)))!==null&&o!==void 0?o:[le].filter(i=>i!=null),De(M(n.value?e[1]:e[0])),De(D(n.value?e[2]:e[1])),M(n.value?e[3]:e[2])]},([o,r,i,a],s,l)=>{if(!o?.length||!r?.length||!i?.length)return;const u=Kr(a)?{...a}:a,p=o.flatMap(c=>r.flatMap(m=>i.map(d=>t(c,m,d,u))));l(()=>{p.forEach(c=>c())})},{flush:"post"})}function ts(e,t,n={}){const{window:o=le,ignore:r=[],capture:i=!0,detectIframe:a=!1,controls:s=!1}=n;if(!o)return s?{stop:ce,cancel:ce,trigger:ce}:ce;let l=!0;const u=v=>M(r).some(w=>{if(typeof w=="string")return Array.from(o.document.querySelectorAll(w)).some(S=>S===v.target||v.composedPath().includes(S));{const S=V(w);return S&&(v.target===S||v.composedPath().includes(S))}});function p(v){const w=M(v);return w&&w.$.subTree.shapeFlag===16}function c(v,w){const S=M(v),_=S.$.subTree&&S.$.subTree.children;return _==null||!Array.isArray(_)?!1:_.some(E=>E.el===w.target||w.composedPath().includes(E.el))}const m=v=>{const w=V(e);if(v.target!=null&&!(!(w instanceof Element)&&p(e)&&c(e,v))&&!(!w||w===v.target||v.composedPath().includes(w))){if("detail"in v&&v.detail===0&&(l=!u(v)),!l){l=!0;return}t(v)}};let d=!1;const g=[te(o,"click",v=>{d||(d=!0,setTimeout(()=>{d=!1},0),m(v))},{passive:!0,capture:i}),te(o,"pointerdown",v=>{const w=V(e);l=!u(v)&&!!(w&&!v.composedPath().includes(w))},{passive:!0}),a&&te(o,"blur",v=>{setTimeout(()=>{var w;const S=V(e);((w=o.document.activeElement)===null||w===void 0?void 0:w.tagName)==="IFRAME"&&!S?.contains(o.document.activeElement)&&t(v)},0)},{passive:!0})].filter(Boolean),b=()=>g.forEach(v=>v());return s?{stop:b,cancel:()=>{l=!1},trigger:v=>{l=!0,m(v),l=!1}}:b}function Zr(){const e=re(!1),t=St();return t&<(()=>{e.value=!0},t),e}function Nt(e){const t=Zr();return I(()=>(t.value,!!e()))}function ea(e,t,n={}){const{window:o=le,...r}=n;let i;const a=Nt(()=>o&&"MutationObserver"in o),s=()=>{i&&(i.disconnect(),i=void 0)},l=me(I(()=>{const c=De(M(e)).map(V).filter(go);return new Set(c)}),c=>{s(),a.value&&c.size&&(i=new MutationObserver(t),c.forEach(m=>i.observe(m,r)))},{immediate:!0,flush:"post"}),u=()=>i?.takeRecords(),p=()=>{l(),s()};return Oe(p),{isSupported:a,stop:p,takeRecords:u}}function ta(e,t,n={}){const{window:o=le,document:r=o?.document,flush:i="sync"}=n;if(!o||!r)return ce;let a;const s=p=>{a?.(),a=p},l=xt(()=>{const p=V(e);if(p){const{stop:c}=ea(r,m=>{m.map(d=>[...d.removedNodes]).flat().some(d=>d===p||d.contains(p))&&t(m)},{window:o,childList:!0,subtree:!0});s(c)}},{flush:i}),u=()=>{l(),s()};return Oe(u),u}function na(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Dn(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=le,eventName:i="keydown",passive:a=!1,dedupe:s=!1}=o,l=na(t);return te(r,i,u=>{u.repeat&&M(s)||l(u)&&n(u)},a)}function oa(e={}){var t;const{window:n=le,deep:o=!0,triggerOnRemoval:r=!1}=e,i=(t=e.document)!==null&&t!==void 0?t:n?.document,a=()=>{let u=i?.activeElement;if(o)for(var p;u?.shadowRoot;)u=u==null||(p=u.shadowRoot)===null||p===void 0?void 0:p.activeElement;return u},s=re(),l=()=>{s.value=a()};if(n){const u={capture:!0,passive:!0};te(n,"blur",p=>{p.relatedTarget===null&&l()},u),te(n,"focus",l,u)}return r&&ta(s,l,{document:i}),l(),s}const ia=Symbol("vueuse-ssr-width");function ra(){const e=Hn()?Wr(ia,null):null;return typeof e=="number"?e:void 0}function aa(e,t={}){const{window:n=le,ssrWidth:o=ra()}=t,r=Nt(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=re(typeof o=="number"),a=re(),s=re(!1),l=u=>{s.value=u.matches};return xt(()=>{if(i.value){i.value=!r.value,s.value=M(e).split(",").some(u=>{const p=u.includes("not all"),c=u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),m=u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let d=!!(c||m);return c&&d&&(d=o>=Bn(c[1])),m&&d&&(d=o<=Bn(m[1])),p?!d:d});return}r.value&&(a.value=n.matchMedia(M(e)),s.value=a.value.matches)}),te(a,"change",l,{passive:!0}),I(()=>s.value)}function ns(e){return aa("(prefers-color-scheme: dark)",e)}function sa(e,t,n={}){const{window:o=le,...r}=n;let i;const a=Nt(()=>o&&"ResizeObserver"in o),s=()=>{i&&(i.disconnect(),i=void 0)},l=me(I(()=>{const p=M(e);return Array.isArray(p)?p.map(c=>V(c)):[V(p)]}),p=>{if(s(),a.value&&o){i=new ResizeObserver(t);for(const c of p)c&&i.observe(c,r)}},{immediate:!0,flush:"post"}),u=()=>{s(),l()};return Oe(u),{isSupported:a,stop:u}}function la(e,t={width:0,height:0},n={}){const{window:o=le,box:r="content-box"}=n,i=I(()=>{var c;return(c=V(e))===null||c===void 0||(c=c.namespaceURI)===null||c===void 0?void 0:c.includes("svg")}),a=re(t.width),s=re(t.height),{stop:l}=sa(e,([c])=>{const m=r==="border-box"?c.borderBoxSize:r==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(o&&i.value){const d=V(e);if(d){const g=d.getBoundingClientRect();a.value=g.width,s.value=g.height}}else if(m){const d=De(m);a.value=d.reduce((g,{inlineSize:b})=>g+b,0),s.value=d.reduce((g,{blockSize:b})=>g+b,0)}else a.value=c.contentRect.width,s.value=c.contentRect.height},n);Jr(()=>{const c=V(e);c&&(a.value="offsetWidth"in c?c.offsetWidth:t.width,s.value="offsetHeight"in c?c.offsetHeight:t.height)});const u=me(()=>V(e),c=>{a.value=c?t.width:0,s.value=c?t.height:0});function p(){l(),u()}return{width:a,height:s,stop:p}}function os(e,t,n={}){const{root:o,rootMargin:r,threshold:i=0,window:a=le,immediate:s=!0}=n,l=Nt(()=>a&&"IntersectionObserver"in a),u=I(()=>De(M(e)).map(V).filter(go));let p=ce;const c=re(s),m=l.value?me(()=>[u.value,V(o),M(r),c.value],([g,b,v])=>{if(p(),!c.value||!g.length)return;const w=new IntersectionObserver(t,{root:V(b),rootMargin:v,threshold:i});g.forEach(S=>S&&w.observe(S)),p=()=>{w.disconnect(),p=ce}},{immediate:s,flush:"post"}):ce,d=()=>{p(),m(),c.value=!1};return Oe(d),{isSupported:l,isActive:c,pause(){p(),c.value=!1},resume(){c.value=!0},stop:d}}const ua="focusin",ca="focusout",da=":focus-within";function is(e,t={}){const{window:n=le}=t,o=I(()=>V(e)),r=re(!1),i=I(()=>r.value);if(!n||!oa(t).value)return{focused:i};const a={passive:!0};return te(o,ua,()=>r.value=!0,a),te(o,ca,()=>{var s,l,u;return r.value=(s=(l=o.value)===null||l===void 0||(u=l.matches)===null||u===void 0?void 0:u.call(l,da))!==null&&s!==void 0?s:!1},a),{focused:i}}function pa(e,t={}){const{threshold:n=50,onSwipe:o,onSwipeEnd:r,onSwipeStart:i,passive:a=!0}=t,s=rn({x:0,y:0}),l=rn({x:0,y:0}),u=I(()=>s.x-l.x),p=I(()=>s.y-l.y),{max:c,abs:m}=Math,d=I(()=>c(m(u.value),m(p.value))>=n),g=re(!1),b=I(()=>d.value?m(u.value)>m(p.value)?u.value>0?"left":"right":p.value>0?"up":"down":"none"),v=x=>[x.touches[0].clientX,x.touches[0].clientY],w=(x,N)=>{s.x=x,s.y=N},S=(x,N)=>{l.x=x,l.y=N},_={passive:a,capture:!a},E=x=>{g.value&&r?.(x,b.value),g.value=!1},C=[te(e,"touchstart",x=>{if(x.touches.length!==1)return;const[N,y]=v(x);w(N,y),S(N,y),i?.(x)},_),te(e,"touchmove",x=>{if(x.touches.length!==1)return;const[N,y]=v(x);S(N,y),_.capture&&!_.passive&&Math.abs(u.value)>Math.abs(p.value)&&x.preventDefault(),!g.value&&d.value&&(g.value=!0),g.value&&o?.(x)},_),te(e,["touchend","touchcancel"],E,_)];return{isSwiping:g,direction:b,coordsStart:s,coordsEnd:l,lengthX:u,lengthY:p,stop:()=>C.forEach(x=>x())}}const on=1024,bo=on/2,bt=e=>document.documentElement.clientWidth{To.value=bt(on),ha.value=bt(bo)},{passive:!0});function rs(){return jn(To)}_t(Vo);const fa=$e({__name:"NcDialogButton",props:{callback:{type:Function,default:()=>{}},disabled:{type:Boolean,default:!1},icon:{default:void 0},label:{},type:{default:"button"},variant:{default:"tertiary"}},emits:["click"],setup(e,{emit:t}){const n=e,o=t,r=xe(!1);async function i(a){if(!r.value){r.value=!0;try{const s=n.type==="reset"?!1:void 0,l=await n.callback?.()??s;l!==!1&&o("click",a,l)}finally{r.value=!1}}}return(a,s)=>(z(),J(D(we),{"aria-label":a.label,disabled:a.disabled,type:a.type,variant:a.variant,onClick:i},{icon:G(()=>[ee(a.$slots,"icon",{},()=>[r.value?(z(),J(D(ei),{key:0,name:D(Y)("Loading …")},null,8,["name"])):a.icon!==void 0?(z(),J(D(Re),{key:1,svg:a.icon},null,8,["svg"])):ne("",!0)])]),default:G(()=>[Ro(Ke(a.label)+" ",1)]),_:3},8,["aria-label","disabled","type","variant"]))}});_t(Ko);const ma={long:Y("a few seconds ago"),short:Y("seconds ago"),narrow:Y("sec. ago")};function as(e=Date.now(),t={}){let n;const o=I(()=>new Date(M(e))),r=I(()=>{const{language:s,relativeTime:l,ignoreSeconds:u}=M(t);return{...s&&{language:s},...l&&{relativeTime:l},ignoreSeconds:u?ma[l||"long"]:!1}}),i=xe("");xt(()=>a());function a(){if(i.value=ni(o.value,r.value),M(t).update!==!1){const s=Math.abs(Date.now()-new Date(M(e)).getTime()),l=s>12e4||r.value.ignoreSeconds?Math.min(s/60,18e5):1e3;n=window.setTimeout(a,l)}}return st(()=>n&&window.clearTimeout(n)),jn(i)}function ss(e,t){const n=I(()=>({locale:$t(),format:{dateStyle:"short",timeStyle:"medium"},...M(t)})),o=I(()=>new Intl.DateTimeFormat(n.value.locale,n.value.format));return I(()=>o.value.format(M(e)))}const va=/mac|ipad|iphone|darwin/i.test(navigator.userAgent),ga=window.OCP?.Accessibility?.disableKeyboardShortcuts?.(),ya=/^[a-zA-Z0-9]$/,wa=/^[^\x20-\x7F]$/;function ba(e,t){return!(e.target instanceof HTMLElement)||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement||e.target.isContentEditable?!0:t.allowInModal?!1:Array.from(document.getElementsByClassName("modal-mask")).filter(n=>n.checkVisibility()).length>0}function Ln(e,t){return n=>{if((va?n.metaKey:n.ctrlKey)===!!t.ctrl){if(n.altKey!==!!t.alt||t.shift!==void 0&&n.shiftKey!==!!t.shift||ba(n,t))return;t.prevent&&n.preventDefault(),t.stop&&n.stopPropagation(),e(n)}}}function In(e,t=()=>{},n={}){if(ga)return()=>{};const o=(s,l)=>{if(s.key===l)return!0;if(n.caseSensitive){const u=l===l.toLowerCase(),p=s.key===s.key.toLowerCase();if(u!==p)return!1}return ya.test(l)&&wa.test(s.key)?s.code.replace(/^(?:Key|Digit|Numpad)/,"")===l.toUpperCase():s.key.toLowerCase()===l.toLowerCase()},r=s=>typeof e=="function"?e(s):typeof e=="string"?o(s,e):Array.isArray(e)?e.some(l=>o(s,l)):!0,i=Dn(r,Ln(t,n),{eventName:"keydown",dedupe:!0,passive:!n.prevent}),a=n.push?Dn(r,Ln(t,n),{eventName:"keyup",passive:!n.prevent}):()=>{};return()=>{i(),a()}}function Ta(e=document.body){const t=window.getComputedStyle(e).getPropertyValue("--background-invert-if-dark");return t!==void 0?t==="invert(100%)":!1}Ta();const Sa=xe(So());window.addEventListener("resize",()=>{Sa.value=So()});function So(){return window.outerHeight===window.screen.height}function Mn(e){return!e.parent||"vapor"in e||"vapor"in e.parent||e.parent.subTree!==e.vnode?null:e.parent}function xa(e){const t=[e];let n=Mn(e);for(;n;)t.push(n),n=Mn(n);return t}function _a(){const e=St();if(!e)throw new Error("useScopeId must be called within a setup context");const t=xa(e).map(n=>n.vnode.scopeId).filter(Boolean);return Object.fromEntries(t.map(n=>[n,""]))}_t(qo,Uo);const $a=["aria-labelledby","aria-describedby"],Aa=["data-theme-light","data-theme-dark"],ka=["id"],Na={class:"icons-menu"},Pa=["title"],Ea=["id"],Ca={class:"modal-container__content"},Oa=$e({inheritAttrs:!1,__name:"NcModal",props:ut({name:{default:""},hasPrevious:{type:Boolean},hasNext:{type:Boolean},outTransition:{type:Boolean},enableSlideshow:{type:Boolean},slideshowDelay:{default:5e3},slideshowPaused:{type:Boolean},disableSwipe:{type:Boolean},spreadNavigation:{type:Boolean},size:{default:"normal"},noClose:{type:Boolean},closeOnClickOutside:{type:Boolean},dark:{type:Boolean},lightBackdrop:{type:Boolean},container:{default:"body"},closeButtonOutside:{type:Boolean},additionalTrapElements:{default:()=>[]},inlineActions:{default:0},labelId:{default:""},setReturnFocus:{default:void 0}},{show:{type:Boolean,default:!0},showModifiers:{}}),emits:ut(["next","previous","close","update:show"],["update:show"]),setup(e,{emit:t}){Bo(y=>({"7f724f28":g.value}));const n=Gn(e,"show"),o=e,r=t,i=_a(),a=Xt(),s=zt("mask");let l;lt(()=>x()),st(()=>N()),me(()=>o.additionalTrapElements,y=>{l&&l.updateContainerElements([s.value,...y])});const{isActive:u,pause:p,resume:c}=Xr(v,Io(()=>o.slideshowDelay),{immediate:!1}),m=xe(0),d=xe(!1);xt(()=>{d.value&&!o.slideshowPaused?c():u.value&&p()});const g=I(()=>`${o.slideshowDelay}ms`),{stop:b}=pa(s,{onSwipeEnd:S});st(b),In("Escape",()=>{Ue().at(-1)===l&&E()},{allowInModal:!0}),In(["ArrowLeft","ArrowRight"],y=>{document.activeElement&&!s.value.contains(document.activeElement)||(y.key==="ArrowLeft"!==wt?w():v())},{allowInModal:!0}),lt(()=>{!o.name&&o.labelId});function v(y){if(!o.hasNext){d.value=!1;return}y&&u.value&&_(),r("next",y)}function w(y){o.hasPrevious&&(y&&u.value&&_(),r("previous",y))}function S(y,F){if(!o.disableSwipe){if(F!=="left"&&F!=="right")return;F==="left"!==wt?v(y):w(y)}}function _(){p(),c(),m.value++}function E(y){o.noClose||(n.value=!1,setTimeout(()=>{r("close",y)},300))}function C(y){o.closeOnClickOutside&&E(y)}async function x(){if(!n.value||l)return;await Jt();const y={allowOutsideClick:!0,fallbackFocus:s.value,trapStack:Ue(),escapeDeactivates:!1,setReturnFocus:o.setReturnFocus};l=fo([s.value,...o.additionalTrapElements],y),l.activate()}function N(){l&&(l?.deactivate(),l=void 0)}return(y,F)=>(z(),J(Lo,{disabled:y.container===null,to:y.container},[U(Le,{name:"fade",appear:"",onAfterEnter:x,onBeforeLeave:N},{default:G(()=>[et(j("div",Ee({...y.$attrs,...D(i)},{ref:"mask",class:["modal-mask",{"modal-mask--opaque":y.dark||y.closeButtonOutside||y.hasPrevious||y.hasNext,"modal-mask--light":y.lightBackdrop}],role:"dialog","aria-modal":"true","aria-labelledby":y.labelId||`modal-name-${D(a)}`,"aria-describedby":"modal-description-"+D(a),tabindex:"-1"}),[U(Le,{name:"fade-visibility",appear:""},{default:G(()=>[j("div",{class:"modal-header","data-theme-light":y.lightBackdrop,"data-theme-dark":!y.lightBackdrop},[y.name.trim()!==""?(z(),ie("h2",{key:0,id:"modal-name-"+D(a),class:"modal-header__name"},Ke(y.name),9,ka)):ne("",!0),j("div",Na,[y.hasNext&&y.enableSlideshow?(z(),ie("button",{key:0,class:Pe(["play-pause-icons",{"play-pause-icons--paused":y.slideshowPaused}]),title:D(u)?D(Y)("Pause slideshow"):D(Y)("Start slideshow"),type:"button",onClick:F[0]||(F[0]=L=>d.value=!d.value)},[U(Re,{class:"play-pause-icons__icon",inline:"",name:D(u)?D(Y)("Pause slideshow"):D(Y)("Start slideshow"),path:D(u)?D(Jo):D(Xo)},null,8,["name","path"]),D(u)?(z(),ie("svg",{key:`${D(a)}-animation-${m.value}`,class:"progress-ring",height:"50",width:"50"},[...F[1]||(F[1]=[j("circle",{class:"progress-ring__circle",stroke:"white","stroke-width":"2",fill:"transparent",r:"15",cx:"25",cy:"25"},null,-1)])])):ne("",!0)],10,Pa)):ne("",!0),U(Gr,{class:"header-actions",inline:y.inlineActions},{default:G(()=>[ee(y.$slots,"actions",{},void 0,!0)]),_:3},8,["inline"]),!y.noClose&&y.closeButtonOutside?(z(),J(we,{key:1,"aria-label":D(Y)("Close"),class:"header-close",variant:"tertiary",onClick:E},{icon:G(()=>[U(Re,{path:D(an)},null,8,["path"])]),_:1},8,["aria-label"])):ne("",!0)])],8,Aa)]),_:3}),U(Le,{name:`modal-${y.outTransition?"out":"in"}`,appear:""},{default:G(()=>[et(j("div",{class:Pe(["modal-wrapper",[`modal-wrapper--${y.size}`,{"modal-wrapper--spread-navigation":y.spreadNavigation}]]),onMousedown:Do(C,["self"])},[U(Le,{name:"fade-visibility",appear:""},{default:G(()=>[et(U(we,{"aria-label":D(Y)("Previous"),class:"prev",variant:"tertiary-no-background",onClick:w},{icon:G(()=>[U(Re,{directional:"",path:D(Qo),size:40},null,8,["path"])]),_:1},8,["aria-label"]),[[tt,y.hasPrevious]])]),_:1}),j("div",{id:"modal-description-"+D(a),class:"modal-container"},[j("div",Ca,[ee(y.$slots,"default",{},void 0,!0)]),!y.noClose&&!y.closeButtonOutside?(z(),J(we,{key:0,"aria-label":D(Y)("Close"),class:"modal-container__close",variant:"tertiary",onClick:E},{icon:G(()=>[U(Re,{path:D(an)},null,8,["path"])]),_:1},8,["aria-label"])):ne("",!0)],8,Ea),U(Le,{name:"fade-visibility",appear:""},{default:G(()=>[et(U(we,{"aria-label":D(Y)("Next"),class:"next",variant:"tertiary-no-background",onClick:v},{icon:G(()=>[U(Re,{directional:"",path:D(Zo),size:40},null,8,["path"])]),_:1},8,["aria-label"]),[[tt,y.hasNext]])]),_:1})],34),[[tt,n.value]])]),_:3},8,["name"])],16,$a),[[tt,n.value]])]),_:3})],8,["disabled","to"]))}}),Fa=Ze(Oa,[["__scopeId","data-v-67fb20ba"]]),Ra=["id","textContent"],Ba=["aria-label","aria-labelledby"],Da={class:"dialog__text"},La={class:"dialog__actions"},Ia=$e({__name:"NcDialog",props:ut({name:{},message:{default:""},additionalTrapElements:{default:()=>[]},container:{default:"body"},size:{default:"small"},buttons:{default:()=>[]},isForm:{type:Boolean},noClose:{type:Boolean},closeOnClickOutside:{type:Boolean},outTransition:{type:Boolean},navigationAriaLabel:{default:""},navigationAriaLabelledby:{default:""},contentClasses:{default:""},dialogClasses:{default:""},navigationClasses:{default:""}},{open:{type:Boolean,default:!0},openModifiers:{}}),emits:ut(["closing","reset","submit"],["update:open"]),setup(e,{emit:t}){const n=Gn(e,"open"),o=e,r=t,i=Mo(),a=zt("wrapper"),{width:s}=la(a,{width:900,height:0}),l=I(()=>s.value<876),u=I(()=>i?.navigation!==void 0),p=Xt(),c=I(()=>o.navigationAriaLabel||void 0),m=I(()=>{if(!o.navigationAriaLabel)return o.navigationAriaLabelledby||p}),d=zt("dialogElement"),g=I(()=>o.isForm&&!u.value?"form":"div"),b=I(()=>g.value!=="form"?{}:{submit(C){C.preventDefault(),r("submit",C)},reset(C){C.preventDefault(),r("reset",C)}}),v=xe(!0);function w(C,x){C.type==="submit"&&g.value==="form"&&"reportValidity"in d.value&&!d.value.reportValidity()||(S(x),window.setTimeout(()=>_(),300))}function S(C){v.value=!1,r("closing",C)}function _(){v.value=!0,n.value=!1}const E=I(()=>({noClose:o.noClose,container:o.container===void 0?"body":o.container,labelId:p,size:o.size,show:n.value&&v.value,outTransition:o.outTransition,closeOnClickOutside:o.closeOnClickOutside,additionalTrapElements:o.additionalTrapElements}));return(C,x)=>n.value?(z(),J(D(Fa),Ee({key:0,class:"dialog__modal",disableSwipe:""},E.value,{onClose:_,"onUpdate:show":x[0]||(x[0]=N=>S())}),{default:G(()=>[j("h2",{id:D(p),class:"dialog__name",textContent:Ke(C.name)},null,8,Ra),(z(),J(zo(g.value),Ee({ref:"dialogElement",class:["dialog",C.dialogClasses]},Ho(b.value)),{default:G(()=>[j("div",{ref:"wrapper",class:Pe(["dialog__wrapper",[{"dialog__wrapper--collapsed":l.value}]])},[u.value?(z(),ie("nav",{key:0,class:Pe(["dialog__navigation",C.navigationClasses]),"aria-label":c.value,"aria-labelledby":m.value},[ee(C.$slots,"navigation",{isCollapsed:l.value},void 0,!0)],10,Ba)):ne("",!0),j("div",{class:Pe(["dialog__content",C.contentClasses])},[ee(C.$slots,"default",{},()=>[j("p",Da,Ke(C.message),1)],!0)],2)],2),j("div",La,[ee(C.$slots,"actions",{},()=>[(z(!0),ie(Tt,null,jo(C.buttons,(N,y)=>(z(),J(D(fa),Ee({key:y},{ref_for:!0},N,{onClick:(F,L)=>w(N,L)}),null,16,["onClick"]))),128))],!0)])]),_:3},16,["class"]))]),_:3},16)):ne("",!0)}}),ls=Ze(Ia,[["__scopeId","data-v-24e91b99"]]);function us(e,t={},n={}){let{container:o}=n;"container"in t&&typeof t.container=="string"&&(o??=t.container);const r=(typeof o=="string"&&document.querySelector(o)||document.body).appendChild(document.createElement("div"));return new Promise((i,a)=>{const s=Go(e,{...t,container:null,onClose(...l){const u=l.length>1?l:l[0];s.unmount(),r.remove(),i(u)},"onVue:unmounted":()=>{s.unmount(),r.remove(),a(new Error("Dialog was unmounted without close event"))}});s.mount(r)})}export{as as A,ss as B,ii as C,es as D,Jr as E,Oe as F,V as G,vo as H,zr as I,pa as J,wt as K,la as L,os as M,ls as N,Dt as O,ai as P,is as Q,Ka as R,Va as S,Gr as a,Fa as b,Qa as c,oi as d,Xa as e,ni as f,Ta as g,ea as h,ns as i,Wa as j,Ya as k,_i as l,Si as m,$i as n,ts as o,Ja as p,qa as q,ze as r,us as s,ke as t,rs as u,Ua as v,Za as w,yi as x,qe as y,Rn as z}; //# sourceMappingURL=index-BrC2bLMO.chunk.mjs.map