You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nextcloud-server/dist/index-Dzo4H_NA.chunk.mjs

3 lines
100 KiB

import{v as ce,a1 as z,B as ot,b as be,ah as vo,ai as yo,f as ze,j as Q,o as I,k as H,l as Z,F as gt,c as q,m as Y,N as kt,$ as wo,n as xe,M as Vt,aj as bo,w as j,e as G,z as $e,a8 as Dt,a9 as Bt,a6 as U,p as L,ak as To,al as So,t as He,W as Bn,X as _o,A as it,am as vt,S as xo,ag as ee,an as $o,P as Ao,R as Fn,K as ko,a5 as yt,I as en,u as D,r as ye,a2 as Mn,g as No,q as rt,J as Po,s as Rn,x as Ft,E as Xe,aa as De,H as Co,G as Ze,ao as Eo,Z as Oo,i as Do,L as Bo,a4 as Fo,C as Mo,h as Ro}from"./runtime-dom.esm-bundler-DSTOTAEf.chunk.mjs";import{_ as Ye,r as wt,q as Lo,t as V,c as qt,s as Io}from"./createElementId-DhjFt1I9-Bjk2333q.chunk.mjs";import{l as zo,c as fe,N as Pe,y as Ho,z as jo,m as tn,A as Wo,n as Go}from"./logger-D3RVzcfQ-iUjwSNGe.chunk.mjs";import{N as Vo}from"./mdi-kAZc0JKn.chunk.mjs";import{a as bt,g as Nt,i as qo}from"./translation-DoG5ZELJ-2ffMJaM4.chunk.mjs";function Fs(){if(typeof globalThis.firstDay<"u")return globalThis.firstDay;const e=new Intl.Locale(bt()),t=e.getWeekInfo?.()??e.weekInfo;return t?t.firstDay%7:1}function Ms(){if(typeof globalThis.dayNames<"u")return globalThis.dayNames;const e=bt();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 Rs(){if(typeof globalThis.dayNamesMin<"u")return globalThis.dayNamesMin;const e=bt();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 Uo(e=Date.now(),t={}){const n={ignoreSeconds:!1,language:Nt(),relativeTime:"long",...t},o=new Date(e),r=new Intl.RelativeTimeFormat([n.language,Nt()],{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 s=i/60;if(Math.abs(s)<=59)return r.format(Math.round(s),"minute");const a=s/60;if(Math.abs(a)<23.5)return r.format(Math.round(a),"hour");const l=a/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,d=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,Nt()],d).format(o)}const Ko=Symbol.for("NcActions:isSemanticMenu"),Yo=Symbol.for("NcActions:closeMenu");function je(){return window._nc_focus_trap??=[],window._nc_focus_trap}function Xo(){let e=[];return{pause(){e=[...je()];for(const t of e)t.pause()},unpause(){if(e.length===je().length)for(const t of e)t.unpause();e=[]}}}function Zo(e,t={}){const n=Xo();ce(e,()=>{z(t.disabled)||(z(e)?n.pause():n.unpause())}),ot(()=>{n.unpause()})}const Jo=["top","right","bottom","left"],nn=["start","end"],on=Jo.reduce((e,t)=>e.concat(t,t+"-"+nn[0],t+"-"+nn[1]),[]),We=Math.min,Se=Math.max,Ls=Math.round,Is=Math.floor,zs=e=>({x:e,y:e}),Qo={left:"right",right:"left",bottom:"top",top:"bottom"},ei={start:"end",end:"start"};function Mt(e,t,n){return Se(e,We(t,n))}function ue(e,t){return typeof e=="function"?e(t):e}function ne(e){return e.split("-")[0]}function te(e){return e.split("-")[1]}function Ut(e){return e==="x"?"y":"x"}function Kt(e){return e==="y"?"height":"width"}const ti=new Set(["top","bottom"]);function ie(e){return ti.has(ne(e))?"y":"x"}function Yt(e){return Ut(ie(e))}function Ln(e,t,n){n===void 0&&(n=!1);const o=te(e),r=Yt(e),i=Kt(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=at(s)),[s,at(s)]}function ni(e){const t=at(e);return[st(e),t,st(t)]}function st(e){return e.replace(/start|end/g,t=>ei[t])}const rn=["left","right"],sn=["right","left"],oi=["top","bottom"],ii=["bottom","top"];function ri(e,t,n){switch(e){case"top":case"bottom":return n?t?sn:rn:t?rn:sn;case"left":case"right":return t?oi:ii;default:return[]}}function si(e,t,n,o){const r=te(e);let i=ri(ne(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(st)))),i}function at(e){return e.replace(/left|right|bottom|top/g,t=>Qo[t])}function ai(e){return{top:0,right:0,bottom:0,left:0,...e}}function In(e){return typeof e!="number"?ai(e):{top:e,right:e,bottom:e,left:e}}function Fe(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 an(e,t,n){let{reference:o,floating:r}=e;const i=ie(t),s=Yt(t),a=Kt(s),l=ne(t),u=i==="y",d=o.x+o.width/2-r.width/2,c=o.y+o.height/2-r.height/2,f=o[a]/2-r[a]/2;let p;switch(l){case"top":p={x:d,y:o.y-r.height};break;case"bottom":p={x:d,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:c};break;case"left":p={x:o.x-r.width,y:c};break;default:p={x:o.x,y:o.y}}switch(te(t)){case"start":p[s]-=f*(n&&u?-1:1);break;case"end":p[s]+=f*(n&&u?-1:1);break}return p}const li=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:c}=an(u,o,l),f=o,p={},g=0;for(let w=0;w<a.length;w++){const{name:m,fn:y}=a[w],{x:T,y:S,data:k,reset:_}=await y({x:d,y:c,initialPlacement:o,placement:f,strategy:r,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});d=T??d,c=S??c,p={...p,[m]:{...p[m],...k}},_&&g<=50&&(g++,typeof _=="object"&&(_.placement&&(f=_.placement),_.rects&&(u=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):_.rects),{x:d,y:c}=an(u,f,l)),w=-1)}return{x:d,y:c,placement:f,strategy:r,middlewareData:p}};async function Tt(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:f=!1,padding:p=0}=ue(t,e),g=In(p),w=a[f?c==="floating"?"reference":"floating":c],m=Fe(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),y=c==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(T))?await(i.getScale==null?void 0:i.getScale(T))||{x:1,y:1}:{x:1,y:1},k=Fe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:T,strategy:l}):y);return{top:(m.top-k.top+g.top)/S.y,bottom:(k.bottom-m.bottom+g.bottom)/S.y,left:(m.left-k.left+g.left)/S.x,right:(k.right-m.right+g.right)/S.x}}const ui=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:d=0}=ue(e,t)||{};if(u==null)return{};const c=In(d),f={x:n,y:o},p=Yt(r),g=Kt(p),w=await s.getDimensions(u),m=p==="y",y=m?"top":"left",T=m?"bottom":"right",S=m?"clientHeight":"clientWidth",k=i.reference[g]+i.reference[p]-f[p]-i.floating[g],_=f[p]-i.reference[p],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let O=A?A[S]:0;(!O||!await(s.isElement==null?void 0:s.isElement(A)))&&(O=a.floating[S]||i.floating[g]);const b=k/2-_/2,P=O/2-w[g]/2-1,M=We(c[y],P),h=We(c[T],P),v=M,x=O-w[g]-h,N=O/2-w[g]/2+b,C=Mt(v,N,x),B=!l.arrow&&te(r)!=null&&N!==C&&i.reference[g]/2-(N<v?M:h)-w[g]/2<0,$=B?N<v?N-v:N-x:0;return{[p]:f[p]+$,data:{[p]:C,centerOffset:N-C-$,...B&&{alignmentOffset:$}},reset:B}}});function ci(e,t,n){return(e?[...n.filter(o=>te(o)===e),...n.filter(o=>te(o)!==e)]:n.filter(o=>ne(o)===o)).filter(o=>e?te(o)===e||(t?st(o)!==o:!1):!0)}const di=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r;const{rects:i,middlewareData:s,placement:a,platform:l,elements:u}=t,{crossAxis:d=!1,alignment:c,allowedPlacements:f=on,autoAlignment:p=!0,...g}=ue(e,t),w=c!==void 0||f===on?ci(c||null,p,f):f,m=await Tt(t,g),y=((n=s.autoPlacement)==null?void 0:n.index)||0,T=w[y];if(T==null)return{};const S=Ln(T,i,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(a!==T)return{reset:{placement:w[0]}};const k=[m[ne(T)],m[S[0]],m[S[1]]],_=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:T,overflows:k}],A=w[y+1];if(A)return{data:{index:y+1,overflows:_},reset:{placement:A}};const O=_.map(P=>{const M=te(P.placement);return[P.placement,M&&d?P.overflows.slice(0,2).reduce((h,v)=>h+v,0):P.overflows[0],P.overflows]}).sort((P,M)=>P[1]-M[1]),b=((r=O.filter(P=>P[2].slice(0,te(P[0])?2:3).every(M=>M<=0))[0])==null?void 0:r[0])||O[0][0];return b!==a?{data:{index:y+1,overflows:_},reset:{placement:b}}:{}}}},pi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:w=!0,...m}=ue(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=ne(r),T=ie(a),S=ne(a)===a,k=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=f||(S||!w?[at(a)]:ni(a)),A=g!=="none";!f&&A&&_.push(...si(a,w,g,k));const O=[a,..._],b=await Tt(t,m),P=[];let M=((o=i.flip)==null?void 0:o.overflows)||[];if(d&&P.push(b[y]),c){const N=Ln(r,s,k);P.push(b[N[0]],b[N[1]])}if(M=[...M,{placement:r,overflows:P}],!P.every(N=>N<=0)){var h,v;const N=(((h=i.flip)==null?void 0:h.index)||0)+1,C=O[N];if(C&&(!(c==="alignment"&&T!==ie(C))||M.every($=>ie($.placement)===T?$.overflows[0]>0:!0)))return{data:{index:N,overflows:M},reset:{placement:C}};let B=(v=M.filter($=>$.overflows[0]<=0).sort(($,R)=>$.overflows[1]-R.overflows[1])[0])==null?void 0:v.placement;if(!B)switch(p){case"bestFit":{var x;const $=(x=M.filter(R=>{if(A){const F=ie(R.placement);return F===T||F==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(F=>F>0).reduce((F,de)=>F+de,0)]).sort((R,F)=>R[1]-F[1])[0])==null?void 0:x[0];$&&(B=$);break}case"initialPlacement":B=a;break}if(r!==B)return{reset:{placement:B}}}return{}}}},zn=new Set(["left","top"]);async function hi(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=ne(n),a=te(n),l=ie(n)==="y",u=zn.has(s)?-1:1,d=i&&l?-1:1,c=ue(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),l?{x:p*d,y:f*u}:{x:f*u,y:p*d}}const fi=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await hi(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},mi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:m=>{let{x:y,y:T}=m;return{x:y,y:T}}},...l}=ue(e,t),u={x:n,y:o},d=await Tt(t,l),c=ie(ne(r)),f=Ut(c);let p=u[f],g=u[c];if(i){const m=f==="y"?"top":"left",y=f==="y"?"bottom":"right",T=p+d[m],S=p-d[y];p=Mt(T,p,S)}if(s){const m=c==="y"?"top":"left",y=c==="y"?"bottom":"right",T=g+d[m],S=g-d[y];g=Mt(T,g,S)}const w=a.fn({...t,[f]:p,[c]:g});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[f]:i,[c]:s}}}}}},Hs=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=ue(e,t),d={x:n,y:o},c=ie(r),f=Ut(c);let p=d[f],g=d[c];const w=ue(a,t),m=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(l){const S=f==="y"?"height":"width",k=i.reference[f]-i.floating[S]+m.mainAxis,_=i.reference[f]+i.reference[S]-m.mainAxis;p<k?p=k:p>_&&(p=_)}if(u){var y,T;const S=f==="y"?"width":"height",k=zn.has(ne(r)),_=i.reference[c]-i.floating[S]+(k&&((y=s.offset)==null?void 0:y[c])||0)+(k?0:m.crossAxis),A=i.reference[c]+i.reference[S]+(k?0:((T=s.offset)==null?void 0:T[c])||0)-(k?m.crossAxis:0);g<_?g=_:g>A&&(g=A)}return{[f]:p,[c]:g}}}},gi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=ue(e,t),d=await Tt(t,u),c=ne(r),f=te(r),p=ie(r)==="y",{width:g,height:w}=i.floating;let m,y;c==="top"||c==="bottom"?(m=c,y=f===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=c,m=f==="end"?"top":"bottom");const T=w-d.top-d.bottom,S=g-d.left-d.right,k=We(w-d[m],T),_=We(g-d[y],S),A=!t.middlewareData.shift;let O=k,b=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(b=S),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(O=T),A&&!f){const M=Se(d.left,0),h=Se(d.right,0),v=Se(d.top,0),x=Se(d.bottom,0);p?b=g-2*(M!==0||h!==0?M+h:Se(d.left,d.right)):O=w-2*(v!==0||x!==0?v+x:Se(d.top,d.bottom))}await l({...t,availableWidth:b,availableHeight:O});const P=await s.getDimensions(a.floating);return g!==P.width||w!==P.height?{reset:{rects:!0}}:{}}}};function K(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function se(e){return K(e).getComputedStyle(e)}const ln=Math.min,Me=Math.max,lt=Math.round;function Hn(e){const t=se(e);let n=parseFloat(t.width),o=parseFloat(t.height);const r=e.offsetWidth,i=e.offsetHeight,s=lt(n)!==r||lt(o)!==i;return s&&(n=r,o=i),{width:n,height:o,fallback:s}}function we(e){return Wn(e)?(e.nodeName||"").toLowerCase():""}let Je;function jn(){if(Je)return Je;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Je=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Je):navigator.userAgent}function ae(e){return e instanceof K(e).HTMLElement}function me(e){return e instanceof K(e).Element}function Wn(e){return e instanceof K(e).Node}function un(e){return typeof ShadowRoot>"u"?!1:e instanceof K(e).ShadowRoot||e instanceof ShadowRoot}function St(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=se(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function vi(e){return["table","td","th"].includes(we(e))}function Rt(e){const t=/firefox/i.test(jn()),n=se(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 Gn(){return!/^((?!chrome|android).)*safari/i.test(jn())}function Xt(e){return["html","body","#document"].includes(we(e))}function Vn(e){return me(e)?e:e.contextElement}const qn={x:1,y:1};function Ce(e){const t=Vn(e);if(!ae(t))return qn;const n=t.getBoundingClientRect(),{width:o,height:r,fallback:i}=Hn(t);let s=(i?lt(n.width):n.width)/o,a=(i?lt(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}function Ge(e,t,n,o){var r,i;t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),a=Vn(e);let l=qn;t&&(o?me(o)&&(l=Ce(o)):l=Ce(e));const u=a?K(a):window,d=!Gn()&&n;let c=(s.left+(d&&((r=u.visualViewport)==null?void 0:r.offsetLeft)||0))/l.x,f=(s.top+(d&&((i=u.visualViewport)==null?void 0:i.offsetTop)||0))/l.y,p=s.width/l.x,g=s.height/l.y;if(a){const w=K(a),m=o&&me(o)?K(o):o;let y=w.frameElement;for(;y&&o&&m!==w;){const T=Ce(y),S=y.getBoundingClientRect(),k=getComputedStyle(y);S.x+=(y.clientLeft+parseFloat(k.paddingLeft))*T.x,S.y+=(y.clientTop+parseFloat(k.paddingTop))*T.y,c*=T.x,f*=T.y,p*=T.x,g*=T.y,c+=S.x,f+=S.y,y=K(y).frameElement}}return{width:p,height:g,top:f,right:c+p,bottom:f+g,left:c,x:c,y:f}}function ge(e){return((Wn(e)?e.ownerDocument:e.document)||window.document).documentElement}function _t(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Un(e){return Ge(ge(e)).left+_t(e).scrollLeft}function Ve(e){if(we(e)==="html")return e;const t=e.assignedSlot||e.parentNode||un(e)&&e.host||ge(e);return un(t)?t.host:t}function Kn(e){const t=Ve(e);return Xt(t)?t.ownerDocument.body:ae(t)&&St(t)?t:Kn(t)}function ut(e,t){var n;t===void 0&&(t=[]);const o=Kn(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=K(o);return r?t.concat(i,i.visualViewport||[],St(o)?o:[]):t.concat(o,ut(o))}function cn(e,t,n){return t==="viewport"?Fe((function(o,r){const i=K(o),s=ge(o),a=i.visualViewport;let l=s.clientWidth,u=s.clientHeight,d=0,c=0;if(a){l=a.width,u=a.height;const f=Gn();(f||!f&&r==="fixed")&&(d=a.offsetLeft,c=a.offsetTop)}return{width:l,height:u,x:d,y:c}})(e,n)):me(t)?Fe((function(o,r){const i=Ge(o,!0,r==="fixed"),s=i.top+o.clientTop,a=i.left+o.clientLeft,l=ae(o)?Ce(o):{x:1,y:1};return{width:o.clientWidth*l.x,height:o.clientHeight*l.y,x:a*l.x,y:s*l.y}})(t,n)):Fe((function(o){const r=ge(o),i=_t(o),s=o.ownerDocument.body,a=Me(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),l=Me(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let u=-i.scrollLeft+Un(o);const d=-i.scrollTop;return se(s).direction==="rtl"&&(u+=Me(r.clientWidth,s.clientWidth)-a),{width:a,height:l,x:u,y:d}})(ge(e)))}function dn(e){return ae(e)&&se(e).position!=="fixed"?e.offsetParent:null}function pn(e){const t=K(e);let n=dn(e);for(;n&&vi(n)&&se(n).position==="static";)n=dn(n);return n&&(we(n)==="html"||we(n)==="body"&&se(n).position==="static"&&!Rt(n))?t:n||(function(o){let r=Ve(o);for(;ae(r)&&!Xt(r);){if(Rt(r))return r;r=Ve(r)}return null})(e)||t}function yi(e,t,n){const o=ae(t),r=ge(t),i=Ge(e,!0,n==="fixed",t);let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&n!=="fixed")if((we(t)!=="body"||St(r))&&(s=_t(t)),ae(t)){const l=Ge(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else r&&(a.x=Un(r));return{x:i.left+s.scrollLeft-a.x,y:i.top+s.scrollTop-a.y,width:i.width,height:i.height}}const wi={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=n==="clippingAncestors"?(function(u,d){const c=d.get(u);if(c)return c;let f=ut(u).filter((m=>me(m)&&we(m)!=="body")),p=null;const g=se(u).position==="fixed";let w=g?Ve(u):u;for(;me(w)&&!Xt(w);){const m=se(w),y=Rt(w);(g?y||p:y||m.position!=="static"||!p||!["absolute","fixed"].includes(p.position))?p=m:f=f.filter((T=>T!==w)),w=Ve(w)}return d.set(u,f),f})(t,this._c):[].concat(n),s=[...i,o],a=s[0],l=s.reduce(((u,d)=>{const c=cn(t,d,r);return u.top=Me(c.top,u.top),u.right=ln(c.right,u.right),u.bottom=ln(c.bottom,u.bottom),u.left=Me(c.left,u.left),u}),cn(t,a,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=ae(n),i=ge(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((r||!r&&o!=="fixed")&&((we(n)!=="body"||St(i))&&(s=_t(n)),ae(n))){const u=Ge(n);a=Ce(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}},isElement:me,getDimensions:function(e){return ae(e)?Hn(e):e.getBoundingClientRect()},getOffsetParent:pn,getDocumentElement:ge,getScale:Ce,async getElementRects(e){let{reference:t,floating:n,strategy:o}=e;const r=this.getOffsetParent||pn,i=this.getDimensions;return{reference:yi(t,await r(n),o),floating:{x:0,y:0,...await i(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>se(e).direction==="rtl"},bi=(e,t,n)=>{const o=new Map,r={platform:wi,...n},i={...r.platform,_c:o};return li(e,t,{...r,platform:i})},ve={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 Lt(e,t){let n=ve.themes[e]||{},o;do o=n[t],typeof o>"u"?n.$extend?n=ve.themes[n.$extend]||{}:(n=null,o=ve[t]):n=null;while(n);return o}function Ti(e){const t=[e];let n=ve.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=ve.themes[n.$extend]||{}):n=null;while(n);return t.map(o=>`v-popper--theme-${o}`)}function hn(e){const t=[e];let n=ve.themes[e]||{};do n.$extend?(t.push(n.$extend),n=ve.themes[n.$extend]||{}):n=null;while(n);return t}let qe=!1;if(typeof window<"u"){qe=!1;try{const e=Object.defineProperty({},"passive",{get(){qe=!0}});window.addEventListener("test",null,e)}catch{}}let Yn=!1;typeof window<"u"&&typeof navigator<"u"&&(Yn=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Si=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),fn={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},mn={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function gn(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Pt(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const J=[];let Te=null;const vn={};function yn(e){let t=vn[e];return t||(t=vn[e]=[]),t}let It=function(){};typeof window<"u"&&(It=window.Element);function E(e){return function(t){return Lt(t.theme,e)}}const Ct="__floating-vue__popper",Xn=()=>be({name:"VPopper",provide(){return{[Ct]:{parentPopper:this}}},inject:{[Ct]:{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:E("disabled")},positioningDisabled:{type:Boolean,default:E("positioningDisabled")},placement:{type:String,default:E("placement"),validator:e=>Si.includes(e)},delay:{type:[String,Number,Object],default:E("delay")},distance:{type:[Number,String],default:E("distance")},skidding:{type:[Number,String],default:E("skidding")},triggers:{type:Array,default:E("triggers")},showTriggers:{type:[Array,Function],default:E("showTriggers")},hideTriggers:{type:[Array,Function],default:E("hideTriggers")},popperTriggers:{type:Array,default:E("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:E("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:E("popperHideTriggers")},container:{type:[String,Object,It,Boolean],default:E("container")},boundary:{type:[String,It],default:E("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:E("strategy")},autoHide:{type:[Boolean,Function],default:E("autoHide")},handleResize:{type:Boolean,default:E("handleResize")},instantMove:{type:Boolean,default:E("instantMove")},eagerMount:{type:Boolean,default:E("eagerMount")},popperClass:{type:[String,Array,Object],default:E("popperClass")},computeTransformOrigin:{type:Boolean,default:E("computeTransformOrigin")},autoMinSize:{type:Boolean,default:E("autoMinSize")},autoSize:{type:[Boolean,String],default:E("autoSize")},autoMaxSize:{type:Boolean,default:E("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:E("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:E("preventOverflow")},overflowPadding:{type:[Number,String],default:E("overflowPadding")},arrowPadding:{type:[Number,String],default:E("arrowPadding")},arrowOverflow:{type:Boolean,default:E("arrowOverflow")},flip:{type:Boolean,default:E("flip")},shift:{type:Boolean,default:E("shift")},shiftCrossAxis:{type:Boolean,default:E("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:E("noAutoFocus")},disposeTimeout:{type:Number,default:E("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[Ct])==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(fi({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(di({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(mi({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(pi({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(ui({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:r,middlewareData:i})=>{let s;const{centerOffset:a}=i.arrow;return o.startsWith("top")||o.startsWith("bottom")?s=Math.abs(a)>r.reference.width/2:s=Math.abs(a)>r.reference.height/2,{data:{overflow:s}}}}),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:s})=>{var a;if((a=s.autoSize)!=null&&a.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(gi({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 bi(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),Te&&this.instantMove&&Te.instantMove&&Te!==this.parentPopper){Te.$_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&&(Te=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 Pt(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...ut(this.$_referenceNode),...ut(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;n<J.length;n++)t=J[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}J.push(this),document.body.classList.add("v-popper--some-open");for(const t of hn(this.theme))yn(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Pt(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,gn(J,this),J.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of hn(this.theme)){const o=yn(n);gn(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Te===this&&(Te=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 Pt(),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,fn,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],fn,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,mn,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],mn,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,qe?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,o,r){let i=n;o!=null&&(i=typeof o=="function"?o(i):o),i.forEach(s=>{const a=t[s];a&&this.$_registerEventListeners(e,a,r)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:o,eventType:r,handler:i}=n;!e||e===r?o.forEach(s=>s.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(Re>=e.left&&Re<=e.right&&Le>=e.top&&Le<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Re-pe,o=Le-he,r=t.left+t.width/2-pe+(t.top+t.height/2)-he+t.width+t.height,i=pe+n*r,s=he+o*r;return Qe(pe,he,i,s,t.left,t.top,t.left,t.bottom)||Qe(pe,he,i,s,t.left,t.top,t.right,t.top)||Qe(pe,he,i,s,t.right,t.top,t.right,t.bottom)||Qe(pe,he,i,s,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(Yn){const e=qe?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>wn(t),e),document.addEventListener("touchend",t=>bn(t,!0),e)}else window.addEventListener("mousedown",e=>wn(e),!0),window.addEventListener("click",e=>bn(e,!1),!0);window.addEventListener("resize",$i)}function wn(e,t){for(let n=0;n<J.length;n++){const o=J[n];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function bn(e,t){_i(e,t)}function _i(e,t){const n={};for(let o=J.length-1;o>=0;o--){const r=J[o];try{const i=r.containsGlobalTarget=r.mouseDownContains||r.popperNode().contains(e.target);r.pendingHide=!1,requestAnimationFrame(()=>{if(r.pendingHide=!1,!n[r.randomId]&&Tn(r,i,e)){if(r.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&i){let a=r.parentPopper;for(;a;)n[a.randomId]=!0,a=a.parentPopper;return}let s=r.parentPopper;for(;s&&Tn(s,s.containsGlobalTarget,e);)s.$_handleGlobalClose(e,t),s=s.parentPopper}})}catch{}}}function Tn(e,t,n){return n.closeAllPopover||n.closePopover&&t||xi(e,n)&&!t}function xi(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function $i(){for(let e=0;e<J.length;e++)J[e].$_computePosition()}let pe=0,he=0,Re=0,Le=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{pe=Re,he=Le,Re=e.clientX,Le=e.clientY},qe?{passive:!0}:void 0);function Qe(e,t,n,o,r,i,s,a){const l=((s-r)*(t-i)-(a-i)*(e-r))/((a-i)*(n-e)-(s-r)*(o-t)),u=((n-e)*(t-i)-(o-t)*(e-r))/((a-i)*(n-e)-(s-r)*(o-t));return l>=0&&l<=1&&u>=0&&u<=1}const Ai={extends:Xn()},Zt=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};function ki(e,t,n,o,r,i){return I(),Q("div",{ref:"reference",class:xe(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Y(e.$slots,"default",Dt(Bt(e.slotData)))],2)}const Ni=Zt(Ai,[["render",ki]]);function Pi(){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 tt;function zt(){zt.init||(zt.init=!0,tt=Pi()!==-1)}var nt={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){zt(),Vt(()=>{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",tt&&this.$el.appendChild(e),e.data="about:blank",tt||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&&(!tt&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Ci=bo();vo("data-v-b329ee4c");const Ei={class:"resize-observer",tabindex:"-1"};yo();const Oi=Ci((e,t,n,o,r,i)=>(I(),q("div",Ei)));nt.render=Oi,nt.__scopeId="data-v-b329ee4c",nt.__file="src/components/ResizeObserver.vue";const Zn=(e="theme")=>({computed:{themeClass(){return Ti(this[e])}}}),Di=be({name:"VPopperContent",components:{ResizeObserver:nt},mixins:[Zn()],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}}}),Bi=["id","aria-hidden","tabindex","data-popper-placement"],Fi={ref:"inner",class:"v-popper__inner"},Mi=H("div",{class:"v-popper__arrow-outer"},null,-1),Ri=H("div",{class:"v-popper__arrow-inner"},null,-1),Li=[Mi,Ri];function Ii(e,t,n,o,r,i){const s=ze("ResizeObserver");return I(),Q("div",{id:e.popperId,ref:"popover",class:xe(["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:kt(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]=wo(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[H("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),H("div",{class:"v-popper__wrapper",style:kt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[H("div",Fi,[e.mounted?(I(),Q(gt,{key:0},[H("div",null,[Y(e.$slots,"default")]),e.handleResize?(I(),q(s,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):Z("",!0)],64)):Z("",!0)],512),H("div",{ref:"arrow",class:"v-popper__arrow-container",style:kt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Li,4)],4)],46,Bi)}const Jn=Zt(Di,[["render",Ii]]),Qn={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 Ht=function(){};typeof window<"u"&&(Ht=window.Element);const zi=be({name:"VPopperWrapper",components:{Popper:Ni,PopperContent:Jn},mixins:[Qn,Zn("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,Ht,Boolean],default:void 0},boundary:{type:[String,Ht],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 Hi(e,t,n,o,r,i){const s=ze("PopperContent"),a=ze("Popper");return I(),q(a,$e({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:j(({popperId:l,isShown:u,shouldMountContent:d,skipTransition:c,autoHide:f,show:p,hide:g,handleResize:w,onResize:m,classes:y,result:T})=>[Y(e.$slots,"default",{shown:u,show:p,hide:g}),G(s,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:u,mounted:d,"skip-transition":c,"auto-hide":f,"handle-resize":w,classes:y,result:T,onHide:g,onResize:m},{default:j(()=>[Y(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 jt=Zt(zi,[["render",Hi]]),ji={...jt,name:"VDropdown",vPopperTheme:"dropdown"};({...jt},{...jt}),be({name:"VTooltipDirective",components:{Popper:Xn(),PopperContent:Jn},mixins:[Qn],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Lt(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Lt(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 Sn=ve,Wi=ji;var eo=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ct=eo.join(","),to=typeof Element>"u",Ae=to?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,dt=!to&&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},Ue=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&&Ue(e.parentNode);return i},Gi=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},no=function(e,t,n){if(Ue(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(ct));return t&&Ae.call(e,ct)&&o.unshift(e),o=o.filter(n),o},pt=function(e,t,n){for(var o=[],r=Array.from(e);r.length;){var i=r.shift();if(!Ue(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),a=s.length?s:i.children,l=pt(a,!0,n);n.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{var u=Ae.call(i,ct);u&&n.filter(i)&&(t||!e.includes(i))&&o.push(i);var d=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),c=!Ue(d,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(d&&c){var f=pt(d===!0?i.children:d.children,!0,n);n.flatten?o.push.apply(o,f):o.push({scopeParent:i,candidates:f})}else r.unshift.apply(r,i.children)}}return o},oo=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},_e=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Gi(e))&&!oo(e)?0:e.tabIndex},Vi=function(e,t){var n=_e(e);return n<0&&t&&!oo(e)?0:n},qi=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},io=function(e){return e.tagName==="INPUT"},Ui=function(e){return io(e)&&e.type==="hidden"},Ki=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},Yi=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Xi=function(e){if(!e.name)return!0;var t=e.form||dt(e),n=function(i){return t.querySelectorAll('input[type="radio"][name="'+i+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=n(window.CSS.escape(e.name));else try{o=n(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var r=Yi(o,e.form);return!r||r===e},Zi=function(e){return io(e)&&e.type==="radio"},Ji=function(e){return Zi(e)&&!Xi(e)},Qi=function(e){var t,n=e&&dt(e),o=(t=n)===null||t===void 0?void 0:t.host,r=!1;if(n&&n!==e){var i,s,a;for(r=!!((i=o)!==null&&i!==void 0&&(s=i.ownerDocument)!==null&&s!==void 0&&s.contains(o)||e!=null&&(a=e.ownerDocument)!==null&&a!==void 0&&a.contains(e));!r&&o;){var l,u,d;n=dt(o),o=(l=n)===null||l===void 0?void 0:l.host,r=!!((u=o)!==null&&u!==void 0&&(d=u.ownerDocument)!==null&&d!==void 0&&d.contains(o))}}return r},_n=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return n===0&&o===0},er=function(e,t){var n=t.displayCheck,o=t.getShadowRoot;if(n==="full-native"&&"checkVisibility"in e){var r=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!r}if(getComputedStyle(e).visibility==="hidden")return!0;var i=Ae.call(e,"details>summary:first-of-type"),s=i?e.parentElement:e;if(Ae.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof o=="function"){for(var a=e;e;){var l=e.parentElement,u=dt(e);if(l&&!l.shadowRoot&&o(l)===!0)return _n(e);e.assignedSlot?e=e.assignedSlot:!l&&u!==e.ownerDocument?e=u.host:e=l}e=a}if(Qi(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return _n(e);return!1},tr=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<t.children.length;n++){var o=t.children.item(n);if(o.tagName==="LEGEND")return Ae.call(t,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}t=t.parentElement}return!1},ht=function(e,t){return!(t.disabled||Ue(t)||Ui(t)||er(t,e)||Ki(t)||tr(t))},Wt=function(e,t){return!(Ji(t)||_e(t)<0||!ht(e,t))},nr=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},ro=function(e){var t=[],n=[];return e.forEach(function(o,r){var i=!!o.scopeParent,s=i?o.scopeParent:o,a=Vi(s,i),l=i?ro(o.candidates):s;a===0?i?t.push.apply(t,l):t.push(s):n.push({documentOrder:r,tabIndex:a,item:o,isScope:i,content:l})}),n.sort(qi).reduce(function(o,r){return r.isScope?o.push.apply(o,r.content):o.push(r.content),o},[]).concat(t)},or=function(e,t){t=t||{};var n;return t.getShadowRoot?n=pt([e],t.includeContainer,{filter:Wt.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:nr}):n=no(e,t.includeContainer,Wt.bind(null,t)),ro(n)},ir=function(e,t){t=t||{};var n;return t.getShadowRoot?n=pt([e],t.includeContainer,{filter:ht.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=no(e,t.includeContainer,ht.bind(null,t)),n},Ne=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Ae.call(e,ct)===!1?!1:Wt(t,e)},rr=eo.concat("iframe").join(","),Et=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Ae.call(e,rr)===!1?!1:ht(t,e)};function Gt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function sr(e){if(Array.isArray(e))return Gt(e)}function ar(e,t,n){return(t=pr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lr(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ur(){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 xn(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 $n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xn(Object(n),!0).forEach(function(o){ar(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function cr(e){return sr(e)||lr(e)||hr(e)||ur()}function dr(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 pr(e){var t=dr(e,"string");return typeof t=="symbol"?t:t+""}function hr(e,t){if(e){if(typeof e=="string")return Gt(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)?Gt(e,t):void 0}}var An={activateTrap:function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}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),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},fr=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},mr=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},Ie=function(e){return e?.key==="Tab"||e?.keyCode===9},gr=function(e){return Ie(e)&&!e.shiftKey},vr=function(e){return Ie(e)&&e.shiftKey},kn=function(e){return setTimeout(e,0)},Be=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return typeof e=="function"?e.apply(void 0,n):e},et=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},yr=[],so=function(e,t){var n=t?.document||document,o=t?.trapStack||yr,r=$n({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:gr,isKeyBackward:vr},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s,a=function(h,v,x){return h&&h[v]!==void 0?h[v]:r[x||v]},l=function(h,v){var x=typeof v?.composedPath=="function"?v.composedPath():void 0;return i.containerGroups.findIndex(function(N){var C=N.container,B=N.tabbableNodes;return C.contains(h)||x?.includes(C)||B.find(function($){return $===h})})},u=function(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=v.hasFallback,N=x===void 0?!1:x,C=v.params,B=C===void 0?[]:C,$=r[h];if(typeof $=="function"&&($=$.apply(void 0,cr(B))),$===!0&&($=void 0),!$){if($===void 0||$===!1)return $;throw new Error("`".concat(h,"` was specified but was not a node, or did not return a node"))}var R=$;if(typeof $=="string"){try{R=n.querySelector($)}catch(F){throw new Error("`".concat(h,'` appears to be an invalid selector; error="').concat(F.message,'"'))}if(!R&&!N)throw new Error("`".concat(h,"` as selector refers to no known node"))}return R},d=function(){var h=u("initialFocus",{hasFallback:!0});if(h===!1)return!1;if(h===void 0||h&&!Et(h,r.tabbableOptions))if(l(n.activeElement)>=0)h=n.activeElement;else{var v=i.tabbableGroups[0],x=v&&v.firstTabbableNode;h=x||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 v=or(h,r.tabbableOptions),x=ir(h,r.tabbableOptions),N=v.length>0?v[0]:void 0,C=v.length>0?v[v.length-1]:void 0,B=x.find(function(F){return Ne(F)}),$=x.slice().reverse().find(function(F){return Ne(F)}),R=!!v.find(function(F){return _e(F)>0});return{container:h,tabbableNodes:v,focusableNodes:x,posTabIndexesFound:R,firstTabbableNode:N,lastTabbableNode:C,firstDomTabbableNode:B,lastDomTabbableNode:$,nextTabbableNode:function(F){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Oe=v.indexOf(F);return Oe<0?de?x.slice(x.indexOf(F)+1).find(function(le){return Ne(le)}):x.slice(0,x.indexOf(F)).reverse().find(function(le){return Ne(le)}):v[Oe+(de?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.")},f=function(h){var v=h.activeElement;if(v)return v.shadowRoot&&v.shadowRoot.activeElement!==null?f(v.shadowRoot):v},p=function(h){if(h!==!1&&h!==f(document)){if(!h||!h.focus){p(d());return}h.focus({preventScroll:!!r.preventScroll}),i.mostRecentlyFocusedNode=h,fr(h)&&h.select()}},g=function(h){var v=u("setReturnFocus",{params:[h]});return v||(v===!1?!1:h)},w=function(h){var v=h.target,x=h.event,N=h.isBackward,C=N===void 0?!1:N;v=v||et(x),c();var B=null;if(i.tabbableGroups.length>0){var $=l(v,x),R=$>=0?i.containerGroups[$]:void 0;if($<0)C?B=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:B=i.tabbableGroups[0].firstTabbableNode;else if(C){var F=i.tabbableGroups.findIndex(function($t){var At=$t.firstTabbableNode;return v===At});if(F<0&&(R.container===v||Et(v,r.tabbableOptions)&&!Ne(v,r.tabbableOptions)&&!R.nextTabbableNode(v,!1))&&(F=$),F>=0){var de=F===0?i.tabbableGroups.length-1:F-1,Oe=i.tabbableGroups[de];B=_e(v)>=0?Oe.lastTabbableNode:Oe.lastDomTabbableNode}else Ie(x)||(B=R.nextTabbableNode(v,!1))}else{var le=i.tabbableGroups.findIndex(function($t){var At=$t.lastTabbableNode;return v===At});if(le<0&&(R.container===v||Et(v,r.tabbableOptions)&&!Ne(v,r.tabbableOptions)&&!R.nextTabbableNode(v))&&(le=$),le>=0){var go=le===i.tabbableGroups.length-1?0:le+1,Qt=i.tabbableGroups[go];B=_e(v)>=0?Qt.firstTabbableNode:Qt.firstDomTabbableNode}else Ie(x)||(B=R.nextTabbableNode(v))}}else B=u("fallbackFocus");return B},m=function(h){var v=et(h);if(!(l(v,h)>=0)){if(Be(r.clickOutsideDeactivates,h)){s.deactivate({returnFocus:r.returnFocusOnDeactivate});return}Be(r.allowOutsideClick,h)||h.preventDefault()}},y=function(h){var v=et(h),x=l(v,h)>=0;if(x||v instanceof Document)x&&(i.mostRecentlyFocusedNode=v);else{h.stopImmediatePropagation();var N,C=!0;if(i.mostRecentlyFocusedNode)if(_e(i.mostRecentlyFocusedNode)>0){var B=l(i.mostRecentlyFocusedNode),$=i.containerGroups[B].tabbableNodes;if($.length>0){var R=$.findIndex(function(F){return F===i.mostRecentlyFocusedNode});R>=0&&(r.isKeyForward(i.recentNavEvent)?R+1<$.length&&(N=$[R+1],C=!1):R-1>=0&&(N=$[R-1],C=!1))}}else i.containerGroups.some(function(F){return F.tabbableNodes.some(function(de){return _e(de)>0})})||(C=!1);else C=!1;C&&(N=w({target:i.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(i.recentNavEvent)})),p(N||i.mostRecentlyFocusedNode||d())}i.recentNavEvent=void 0},T=function(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=h;var x=w({event:h,isBackward:v});x&&(Ie(h)&&h.preventDefault(),p(x))},S=function(h){(r.isKeyForward(h)||r.isKeyBackward(h))&&T(h,r.isKeyBackward(h))},k=function(h){mr(h)&&Be(r.escapeDeactivates,h)!==!1&&(h.preventDefault(),s.deactivate())},_=function(h){var v=et(h);l(v,h)>=0||Be(r.clickOutsideDeactivates,h)||Be(r.allowOutsideClick,h)||(h.preventDefault(),h.stopImmediatePropagation())},A=function(){if(i.active)return An.activateTrap(o,s),i.delayInitialFocusTimer=r.delayInitialFocus?kn(function(){p(d())}):p(d()),n.addEventListener("focusin",y,!0),n.addEventListener("mousedown",m,{capture:!0,passive:!1}),n.addEventListener("touchstart",m,{capture:!0,passive:!1}),n.addEventListener("click",_,{capture:!0,passive:!1}),n.addEventListener("keydown",S,{capture:!0,passive:!1}),n.addEventListener("keydown",k),s},O=function(){if(i.active)return n.removeEventListener("focusin",y,!0),n.removeEventListener("mousedown",m,!0),n.removeEventListener("touchstart",m,!0),n.removeEventListener("click",_,!0),n.removeEventListener("keydown",S,!0),n.removeEventListener("keydown",k),s},b=function(h){var v=h.some(function(x){var N=Array.from(x.removedNodes);return N.some(function(C){return C===i.mostRecentlyFocusedNode})});v&&p(d())},P=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(b):void 0,M=function(){P&&(P.disconnect(),i.active&&!i.paused&&i.containers.map(function(h){P.observe(h,{subtree:!0,childList:!0})}))};return s={get active(){return i.active},get paused(){return i.paused},activate:function(h){if(i.active)return this;var v=a(h,"onActivate"),x=a(h,"onPostActivate"),N=a(h,"checkCanFocusTrap");N||c(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=f(n),v?.();var C=function(){N&&c(),A(),M(),x?.()};return N?(N(i.containers.concat()).then(C,C),this):(C(),this)},deactivate:function(h){if(!i.active)return this;var v=$n({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},h);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,O(),i.active=!1,i.paused=!1,M(),An.deactivateTrap(o,s);var x=a(v,"onDeactivate"),N=a(v,"onPostDeactivate"),C=a(v,"checkCanReturnFocus"),B=a(v,"returnFocus","returnFocusOnDeactivate");x?.();var $=function(){kn(function(){B&&p(g(i.nodeFocusedBeforeActivation)),N?.()})};return B&&C?(C(g(i.nodeFocusedBeforeActivation)).then($,$),this):($(),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 v=[].concat(h).filter(Boolean);return i.containers=v.map(function(x){return typeof x=="string"?n.querySelector(x):x}),i.active&&c(),M(),this}},Object.defineProperties(s,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(h,v){if(i.paused===h)return this;if(i.paused=h,h){var x=a(v,"onPause"),N=a(v,"onPostPause");x?.(),O(),M(),N?.()}else{var C=a(v,"onUnpause"),B=a(v,"onPostUnpause");C?.(),c(),A(),M(),B?.()}return this}}}),s.updateContainerElements(e),s};const ft=qo(),wr=be({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})}}),br="_ncPopover_wpltc_20",Tr={"material-design-icon":"_material-design-icon_wpltc_12",ncPopover:br},ao="nc-popover-9";Sn.themes[ao]=structuredClone(Sn.themes.dropdown);const Sr={name:"NcPopover",components:{Dropdown:Wi,NcPopoverTriggerProvider:wr},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:ao}},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"?ft?"right":"left":this.placement==="end"?ft?"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=so(e,{escapeDeactivates:!1,allowOutsideClick:!0,setReturnFocus:this.setReturnFocus,trapStack:je(),fallBackFocus:e}),this.$focusTrap.activate())},clearFocusTrap(e={}){try{this.$focusTrap?.deactivate(e),this.$focusTrap=null}catch(t){zo.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 _r(e,t,n,o,r,i){const s=ze("NcPopoverTriggerProvider"),a=ze("Dropdown");return I(),q(a,{ref:"popover",shown:r.internalShown,"onUpdate:shown":[t[0]||(t[0]=l=>r.internalShown=l),t[1]||(t[1]=l=>r.internalShown=l)],"arrow-padding":10,"auto-hide":!n.noCloseOnClickOutside&&n.closeOnClickOutside,boundary:n.boundary||void 0,container:n.container,delay:n.delay,distance:10,"handle-resize":"","no-auto-focus":!0,placement:i.internalPlacement,"popper-class":[e.$style.ncPopover,n.popoverBaseClass],"popper-triggers":i.popperTriggers,"popper-hide-triggers":i.popperHideTriggers,"popper-show-triggers":i.popperShowTriggers,theme:o.theme,triggers:i.internalTriggers,"hide-triggers":i.hideTriggers,"show-triggers":i.showTriggers,onApplyShow:i.afterShow,onApplyHide:i.afterHide},{popper:j(l=>[Y(e.$slots,"default",Dt(Bt(l)))]),default:j(()=>[G(s,{shown:r.internalShown,"popup-role":n.popupRole},{default:j(l=>[Y(e.$slots,"trigger",Dt(Bt(l)))]),_:3},8,["shown","popup-role"])]),_:3},8,["shown","auto-hide","boundary","container","delay","placement","popper-class","popper-triggers","popper-hide-triggers","popper-show-triggers","theme","triggers","hide-triggers","show-triggers","onApplyShow","onApplyHide"])}const xr={$style:Tr},Nn=Ye(Sr,[["render",_r],["__cssModules",xr]]),$r={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ar=["aria-hidden","aria-label"],kr=["fill","width","height"],Nr={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"},Pr={key:0};function Cr(e,t,n,o,r,i){return I(),Q("span",$e(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]=s=>e.$emit("click",s))}),[(I(),Q("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[H("path",Nr,[n.title?(I(),Q("title",Pr,He(n.title),1)):Z("",!0)])],8,kr))],16,Ar)}const Er=Ye($r,[["render",Cr]]);wt(Lo);function lo(e){return Array.isArray(e)&&e.some(t=>{if(t===null)return!1;if(typeof t=="object"){const n=t;if(n.type===To||n.type===gt&&!lo(n.children)||n.type===So&&!n.children.trim())return!1}return!0})}const Or=".focusable",Dr={name:"NcActions",components:{NcButton:fe,NcPopover:Nn},provide(){return{[Ko]:L(()=>this.actionsMenuSemanticType==="menu"),[Yo]: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:V("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:qt()}},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(){Zo(()=>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(Or)},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=(p,g)=>{p.forEach(w=>{if(this.isAction(w)){g.push(w);return}w.type===gt&&t(w.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(p=>!o.includes(p)),i=["NcActionButton","NcActionButtonGroup","NcActionCheckbox","NcActionRadio"],s=["NcActionInput","NcActionTextEditable"],a=["NcActionLink","NcActionRouter"],l=r.some(p=>s.includes(this.getActionName(p))),u=r.some(p=>i.includes(this.getActionName(p))),d=r.some(p=>a.includes(this.getActionName(p)));l?this.actionsMenuSemanticType="dialog":u?this.actionsMenuSemanticType="menu":d?this.actionsMenuSemanticType="navigation":e.filter(p=>this.getActionName(p).startsWith("NcAction")).length===e.length?this.actionsMenuSemanticType="tooltip":this.actionsMenuSemanticType="unknown";const c=p=>{const g=p?.props?.icon,w=p?.children?.icon?.()?.[0]??(this.isIconUrl(g)?U("img",{class:"action-item__menutoggle__icon",src:g,alt:""}):U("span",{class:["icon",g]})),m=p?.children?.default?.()?.[0]?.children?.trim(),y=this.forceName?m:"";let T=p?.props?.title;this.forceName||T||(T=m);const S={...p?.props??{}},k=["submit","reset"].includes(S.type)?S.modelValue:"button";return delete S.modelValue,delete S.type,U(fe,$e(S,{class:"action-item action-item--single","aria-label":p?.props?.["aria-label"]||m,title:T,disabled:this.disabled||p?.props?.disabled,pressed:p?.props?.modelValue,size:this.size,type:k,variant:this.variant||(y?"secondary":"tertiary"),onFocus:this.onFocus,onBlur:this.onBlur,"onUpdate:pressed":p?.props?.["onUpdate:modelValue"]??(()=>{})}),{default:()=>y,icon:()=>w})},f=p=>{const g=lo(this.$slots.icon?.())?this.$slots.icon?.():this.defaultIcon?U("span",{class:["icon",this.defaultIcon]}):U(Er,{size:20}),w=`${this.randomId}-trigger`;return U(Nn,{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:()=>U(fe,{id:w,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:()=>U("div",{class:{open:this.opened},tabindex:"-1",onKeydown:this.onKeydown,ref:"menu"},[U("ul",{id:this.randomId,tabindex:"-1",ref:"menuList",role:this.config.popupRole,"aria-labelledby":w,"aria-modal":this.actionsMenuSemanticType==="dialog"?"true":void 0},[p])])})};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?U("div",{class:["action-items",`action-item--${this.triggerButtonVariant}`]},[...o.map(c),r.length>0?U("div",{class:["action-item",{"action-item--open":this.opened}]},[f(r)]):null]):U("div",{class:["action-item action-item--default-popover",`action-item--${this.triggerButtonVariant}`,{"action-item--open":this.opened}]},[f(e)]))}},Br=Ye(Dr,[["__scopeId","data-v-5f7eed6b"]]);function ke(e,t){return Bn()?(_o(e,t),!0):!1}const Ot=new WeakMap,Fr=(...e)=>{var t;const n=e[0],o=(t=vt())===null||t===void 0?void 0:t.proxy,r=o??Bn();if(r==null&&!Fn())throw new Error("injectLocal must be called in setup");return r&&Ot.has(r)&&n in Ot.get(r)?Ot.get(r)[n]:ko(...e)},Ke=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const uo=e=>e!=null,Mr=Object.prototype.toString,Rr=e=>Mr.call(e)==="[object Object]",re=()=>{};function co(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 Lr=e=>e();function po(e,t={}){let n,o,r=re;const i=a=>{clearTimeout(a),r(),r=re};let s;return a=>{const l=z(e),u=z(t.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(o&&(i(o),o=void 0),Promise.resolve(a())):new Promise((d,c)=>{r=t.rejectOnCancel?c:d,s=a,u&&!o&&(o=setTimeout(()=>{n&&i(n),o=void 0,d(s())},u)),n=setTimeout(()=>{o&&i(o),o=void 0,d(a())},l)})}}function Pn(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Ee(e){return Array.isArray(e)?e:[e]}function Ir(e){return vt()}function js(e){if(!Ke)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=Ao(!0),n=o.run(()=>e(...i))),ke(r),n))}function Ws(e,t=200,n={}){return co(po(t,n),e)}function zr(e,t,n={}){const{eventFilter:o=Lr,...r}=n;return ce(e,co(o,t),r)}function Hr(e,t=!0,n){Ir()?it(e,n):t?e():Vt(e)}function jr(e,t=1e3,n={}){const{immediate:o=!0,immediateCallback:r=!1}=n;let i=null;const s=ee(!1);function a(){i&&(clearInterval(i),i=null)}function l(){s.value=!1,a()}function u(){const d=z(t);d<=0||(s.value=!0,r&&e(),a(),s.value&&(i=setInterval(e,d)))}return o&&Ke&&u(),(xo(t)||typeof t=="function")&&ke(ce(t,()=>{s.value&&Ke&&u()})),ke(l),{isActive:$o(s),pause:l,resume:u}}function Gs(e,t,n={}){const{debounce:o=0,maxWait:r=void 0,...i}=n;return zr(e,t,{...i,eventFilter:po(o,{maxWait:r})})}function Wr(e,t,n){return ce(e,t,{...n,immediate:!0})}const oe=Ke?window:void 0,Vs=Ke?window.document:void 0;function W(e){var t;const n=z(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function X(...e){const t=(o,r,i,s)=>(o.addEventListener(r,i,s),()=>o.removeEventListener(r,i,s)),n=L(()=>{const o=Ee(z(e[0])).filter(r=>r!=null);return o.every(r=>typeof r!="string")?o:void 0});return Wr(()=>{var o,r;return[(o=(r=n.value)===null||r===void 0?void 0:r.map(i=>W(i)))!==null&&o!==void 0?o:[oe].filter(i=>i!=null),Ee(z(n.value?e[1]:e[0])),Ee(D(n.value?e[2]:e[1])),z(n.value?e[3]:e[2])]},([o,r,i,s],a,l)=>{if(!o?.length||!r?.length||!i?.length)return;const u=Rr(s)?{...s}:s,d=o.flatMap(c=>r.flatMap(f=>i.map(p=>t(c,f,p,u))));l(()=>{d.forEach(c=>c())})},{flush:"post"})}function qs(e,t,n={}){const{window:o=oe,ignore:r=[],capture:i=!0,detectIframe:s=!1,controls:a=!1}=n;if(!o)return a?{stop:re,cancel:re,trigger:re}:re;let l=!0;const u=m=>z(r).some(y=>{if(typeof y=="string")return Array.from(o.document.querySelectorAll(y)).some(T=>T===m.target||m.composedPath().includes(T));{const T=W(y);return T&&(m.target===T||m.composedPath().includes(T))}});function d(m){const y=z(m);return y&&y.$.subTree.shapeFlag===16}function c(m,y){const T=z(m),S=T.$.subTree&&T.$.subTree.children;return S==null||!Array.isArray(S)?!1:S.some(k=>k.el===y.target||y.composedPath().includes(k.el))}const f=m=>{const y=W(e);if(m.target!=null&&!(!(y instanceof Element)&&d(e)&&c(e,m))&&!(!y||y===m.target||m.composedPath().includes(y))){if("detail"in m&&m.detail===0&&(l=!u(m)),!l){l=!0;return}t(m)}};let p=!1;const g=[X(o,"click",m=>{p||(p=!0,setTimeout(()=>{p=!1},0),f(m))},{passive:!0,capture:i}),X(o,"pointerdown",m=>{const y=W(e);l=!u(m)&&!!(y&&!m.composedPath().includes(y))},{passive:!0}),s&&X(o,"blur",m=>{setTimeout(()=>{var y;const T=W(e);((y=o.document.activeElement)===null||y===void 0?void 0:y.tagName)==="IFRAME"&&!T?.contains(o.document.activeElement)&&t(m)},0)},{passive:!0})].filter(Boolean),w=()=>g.forEach(m=>m());return a?{stop:w,cancel:()=>{l=!1},trigger:m=>{l=!0,f(m),l=!1}}:w}function Gr(){const e=ee(!1),t=vt();return t&&it(()=>{e.value=!0},t),e}function xt(e){const t=Gr();return L(()=>(t.value,!!e()))}function Vr(e,t,n={}){const{window:o=oe,...r}=n;let i;const s=xt(()=>o&&"MutationObserver"in o),a=()=>{i&&(i.disconnect(),i=void 0)},l=ce(L(()=>{const c=Ee(z(e)).map(W).filter(uo);return new Set(c)}),c=>{a(),s.value&&c.size&&(i=new MutationObserver(t),c.forEach(f=>i.observe(f,r)))},{immediate:!0,flush:"post"}),u=()=>i?.takeRecords(),d=()=>{l(),a()};return ke(d),{isSupported:s,stop:d,takeRecords:u}}function qr(e,t,n={}){const{window:o=oe,document:r=o?.document,flush:i="sync"}=n;if(!o||!r)return re;let s;const a=d=>{s?.(),s=d},l=yt(()=>{const d=W(e);if(d){const{stop:c}=Vr(r,f=>{f.map(p=>[...p.removedNodes]).flat().some(p=>p===d||p.contains(d))&&t(f)},{window:o,childList:!0,subtree:!0});a(c)}},{flush:i}),u=()=>{l(),a()};return ke(u),u}function Ur(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Cn(...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=oe,eventName:i="keydown",passive:s=!1,dedupe:a=!1}=o,l=Ur(t);return X(r,i,u=>{u.repeat&&z(a)||l(u)&&n(u)},s)}function Kr(e={}){var t;const{window:n=oe,deep:o=!0,triggerOnRemoval:r=!1}=e,i=(t=e.document)!==null&&t!==void 0?t:n?.document,s=()=>{let u=i?.activeElement;if(o)for(var d;u?.shadowRoot;)u=u==null||(d=u.shadowRoot)===null||d===void 0?void 0:d.activeElement;return u},a=ee(),l=()=>{a.value=s()};if(n){const u={capture:!0,passive:!0};X(n,"blur",d=>{d.relatedTarget===null&&l()},u),X(n,"focus",l,u)}return r&&qr(a,l,{document:i}),l(),a}const Yr=Symbol("vueuse-ssr-width");function Xr(){const e=Fn()?Fr(Yr,null):null;return typeof e=="number"?e:void 0}function Zr(e,t={}){const{window:n=oe,ssrWidth:o=Xr()}=t,r=xt(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=ee(typeof o=="number"),s=ee(),a=ee(!1),l=u=>{a.value=u.matches};return yt(()=>{if(i.value){i.value=!r.value,a.value=z(e).split(",").some(u=>{const d=u.includes("not all"),c=u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),f=u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let p=!!(c||f);return c&&p&&(p=o>=Pn(c[1])),f&&p&&(p=o<=Pn(f[1])),d?!p:p});return}r.value&&(s.value=n.matchMedia(z(e)),a.value=s.value.matches)}),X(s,"change",l,{passive:!0}),L(()=>a.value)}function Us(e){return Zr("(prefers-color-scheme: dark)",e)}function Jr(e,t,n={}){const{window:o=oe,...r}=n;let i;const s=xt(()=>o&&"ResizeObserver"in o),a=()=>{i&&(i.disconnect(),i=void 0)},l=ce(L(()=>{const d=z(e);return Array.isArray(d)?d.map(c=>W(c)):[W(d)]}),d=>{if(a(),s.value&&o){i=new ResizeObserver(t);for(const c of d)c&&i.observe(c,r)}},{immediate:!0,flush:"post"}),u=()=>{a(),l()};return ke(u),{isSupported:s,stop:u}}function Qr(e,t={width:0,height:0},n={}){const{window:o=oe,box:r="content-box"}=n,i=L(()=>{var c;return(c=W(e))===null||c===void 0||(c=c.namespaceURI)===null||c===void 0?void 0:c.includes("svg")}),s=ee(t.width),a=ee(t.height),{stop:l}=Jr(e,([c])=>{const f=r==="border-box"?c.borderBoxSize:r==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(o&&i.value){const p=W(e);if(p){const g=p.getBoundingClientRect();s.value=g.width,a.value=g.height}}else if(f){const p=Ee(f);s.value=p.reduce((g,{inlineSize:w})=>g+w,0),a.value=p.reduce((g,{blockSize:w})=>g+w,0)}else s.value=c.contentRect.width,a.value=c.contentRect.height},n);Hr(()=>{const c=W(e);c&&(s.value="offsetWidth"in c?c.offsetWidth:t.width,a.value="offsetHeight"in c?c.offsetHeight:t.height)});const u=ce(()=>W(e),c=>{s.value=c?t.width:0,a.value=c?t.height:0});function d(){l(),u()}return{width:s,height:a,stop:d}}function Ks(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=0,window:s=oe,immediate:a=!0}=n,l=xt(()=>s&&"IntersectionObserver"in s),u=L(()=>Ee(z(e)).map(W).filter(uo));let d=re;const c=ee(a),f=l.value?ce(()=>[u.value,W(o),c.value],([g,w])=>{if(d(),!c.value||!g.length)return;const m=new IntersectionObserver(t,{root:W(w),rootMargin:r,threshold:i});g.forEach(y=>y&&m.observe(y)),d=()=>{m.disconnect(),d=re}},{immediate:a,flush:"post"}):re,p=()=>{d(),f(),c.value=!1};return ke(p),{isSupported:l,isActive:c,pause(){d(),c.value=!1},resume(){c.value=!0},stop:p}}const es="focusin",ts="focusout",ns=":focus-within";function Ys(e,t={}){const{window:n=oe}=t,o=L(()=>W(e)),r=ee(!1),i=L(()=>r.value);if(!n||!Kr(t).value)return{focused:i};const s={passive:!0};return X(o,es,()=>r.value=!0,s),X(o,ts,()=>{var a,l,u;return r.value=(a=(l=o.value)===null||l===void 0||(u=l.matches)===null||u===void 0?void 0:u.call(l,ns))!==null&&a!==void 0?a:!1},s),{focused:i}}function os(e,t={}){const{threshold:n=50,onSwipe:o,onSwipeEnd:r,onSwipeStart:i,passive:s=!0}=t,a=en({x:0,y:0}),l=en({x:0,y:0}),u=L(()=>a.x-l.x),d=L(()=>a.y-l.y),{max:c,abs:f}=Math,p=L(()=>c(f(u.value),f(d.value))>=n),g=ee(!1),w=L(()=>p.value?f(u.value)>f(d.value)?u.value>0?"left":"right":d.value>0?"up":"down":"none"),m=A=>[A.touches[0].clientX,A.touches[0].clientY],y=(A,O)=>{a.x=A,a.y=O},T=(A,O)=>{l.x=A,l.y=O},S={passive:s,capture:!s},k=A=>{g.value&&r?.(A,w.value),g.value=!1},_=[X(e,"touchstart",A=>{if(A.touches.length!==1)return;const[O,b]=m(A);y(O,b),T(O,b),i?.(A)},S),X(e,"touchmove",A=>{if(A.touches.length!==1)return;const[O,b]=m(A);T(O,b),S.capture&&!S.passive&&Math.abs(u.value)>Math.abs(d.value)&&A.preventDefault(),!g.value&&p.value&&(g.value=!0),g.value&&o?.(A)},S),X(e,["touchend","touchcancel"],k,S)];return{isSwiping:g,direction:w,coordsStart:a,coordsEnd:l,lengthX:u,lengthY:d,stop:()=>_.forEach(A=>A())}}const Jt=1024,ho=Jt/2,mt=e=>document.documentElement.clientWidth<e,fo=ye(mt(Jt)),is=ye(mt(ho));window.addEventListener("resize",()=>{fo.value=mt(Jt),is.value=mt(ho)},{passive:!0});function Xs(){return Mn(fo)}wt();const rs=be({__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=ye(!1);async function i(s){if(!r.value){r.value=!0;try{const a=n.type==="reset"?!1:void 0,l=await n.callback?.()??a;l!==!1&&o("click",s,l)}finally{r.value=!1}}}return(s,a)=>(I(),q(D(fe),{"aria-label":s.label,disabled:s.disabled,type:s.type,variant:s.variant,onClick:i},{icon:j(()=>[Y(s.$slots,"icon",{},()=>[r.value?(I(),q(D(Vo),{key:0,name:D(V)("Loading …")},null,8,["name"])):s.icon!==void 0?(I(),q(D(Pe),{key:1,svg:s.icon},null,8,["svg"])):Z("",!0)])]),default:j(()=>[No(He(s.label)+" ",1)]),_:3},8,["aria-label","disabled","type","variant"]))}});wt(Io);const ss={long:V("a few seconds ago"),short:V("seconds ago"),narrow:V("sec. ago")};function Zs(e=Date.now(),t={}){let n;const o=L(()=>new Date(z(e))),r=L(()=>{const{language:a,relativeTime:l,ignoreSeconds:u}=z(t);return{...a&&{language:a},...l&&{relativeTime:l},ignoreSeconds:u?ss[l||"long"]:!1}}),i=ye("");yt(()=>s());function s(){if(i.value=Uo(o.value,r.value),z(t).update!==!1){const a=Math.abs(Date.now()-new Date(z(e)).getTime()),l=a>12e4||r.value.ignoreSeconds?Math.min(a/60,18e5):1e3;n=window.setTimeout(s,l)}}return ot(()=>n&&window.clearTimeout(n)),Mn(i)}function Js(e,t){const n=L(()=>({locale:bt(),format:{dateStyle:"short",timeStyle:"medium"},...z(t)})),o=L(()=>new Intl.DateTimeFormat(n.value.locale,n.value.format));return L(()=>o.value.format(z(e)))}const as=/mac|ipad|iphone|darwin/i.test(navigator.userAgent),ls=window.OCP?.Accessibility?.disableKeyboardShortcuts?.(),us=/^[a-zA-Z0-9]$/,cs=/^[^\x20-\x7F]$/;function ds(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 En(e,t){return n=>{if((as?n.metaKey:n.ctrlKey)===!!t.ctrl){if(n.altKey!==!!t.alt||t.shift!==void 0&&n.shiftKey!==!!t.shift||ds(n,t))return;t.prevent&&n.preventDefault(),t.stop&&n.stopPropagation(),e(n)}}}function On(e,t=()=>{},n={}){if(ls)return()=>{};const o=(a,l)=>{if(a.key===l)return!0;if(n.caseSensitive){const u=l===l.toLowerCase(),d=a.key===a.key.toLowerCase();if(u!==d)return!1}return us.test(l)&&cs.test(a.key)?a.code.replace(/^(?:Key|Digit|Numpad)/,"")===l.toUpperCase():a.key.toLowerCase()===l.toLowerCase()},r=a=>typeof e=="function"?e(a):typeof e=="string"?o(a,e):Array.isArray(e)?e.some(l=>o(a,l)):!0,i=Cn(r,En(t,n),{eventName:"keydown",dedupe:!0,passive:!n.prevent}),s=n.push?Cn(r,En(t,n),{eventName:"keyup",passive:!n.prevent}):()=>{};return()=>{i(),s()}}function ps(e=document.body){const t=window.getComputedStyle(e).getPropertyValue("--background-invert-if-dark");return t!==void 0?t==="invert(100%)":!1}ps();const hs=ye(mo());window.addEventListener("resize",()=>{hs.value=mo()});function mo(){return window.outerHeight===window.screen.height}function Dn(e){return!e.parent||"vapor"in e||"vapor"in e.parent||e.parent.subTree!==e.vnode?null:e.parent}function fs(e){const t=[e];let n=Dn(e);for(;n;)t.push(n),n=Dn(n);return t}function ms(){const e=vt();if(!e)throw new Error("useScopeId must be called within a setup context");const t=fs(e).map(n=>n.vnode.scopeId).filter(Boolean);return Object.fromEntries(t.map(n=>[n,""]))}wt();const gs=["aria-labelledby","aria-describedby"],vs=["data-theme-light","data-theme-dark"],ys=["id"],ws={class:"icons-menu"},bs=["title"],Ts=["id"],Ss={class:"modal-container__content"},_s=be({inheritAttrs:!1,__name:"NcModal",props:rt({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:rt(["next","previous","close","update:show"],["update:show"]),setup(e,{emit:t}){Po(b=>({"3caa6a4b":g.value}));const n=Rn(e,"show"),o=e,r=t,i=ms(),s=qt(),a=Ft("mask");let l;it(()=>A()),ot(()=>O()),ce(()=>o.additionalTrapElements,b=>{l&&l.updateContainerElements([a.value,...b])});const{isActive:u,pause:d,resume:c}=jr(m,Oo(()=>o.slideshowDelay),{immediate:!1}),f=ye(0),p=ye(!1);yt(()=>{p.value&&!o.slideshowPaused?c():u.value&&d()});const g=L(()=>`${o.slideshowDelay}ms`),{stop:w}=os(a,{onSwipeEnd:T});ot(w),On("Escape",()=>{je().at(-1)===l&&k()},{allowInModal:!0}),On(["ArrowLeft","ArrowRight"],b=>{document.activeElement&&!a.value.contains(document.activeElement)||(b.key==="ArrowLeft"!==ft?y():m())},{allowInModal:!0}),it(()=>{!o.name&&o.labelId});function m(b){if(!o.hasNext){p.value=!1;return}b&&u.value&&S(),r("next",b)}function y(b){o.hasPrevious&&(b&&u.value&&S(),r("previous",b))}function T(b,P){if(!o.disableSwipe){if(P!=="left"&&P!=="right")return;P==="left"!==ft?m(b):y(b)}}function S(){d(),c(),f.value++}function k(b){o.noClose||(n.value=!1,setTimeout(()=>{r("close",b)},300))}function _(b){o.closeOnClickOutside&&k(b)}async function A(){if(!n.value||l)return;await Vt();const b={allowOutsideClick:!0,fallbackFocus:a.value,trapStack:je(),escapeDeactivates:!1,setReturnFocus:o.setReturnFocus};l=so([a.value,...o.additionalTrapElements],b),l.activate()}function O(){l&&(l?.deactivate(),l=void 0)}return(b,P)=>(I(),q(Eo,{disabled:b.container===null,to:b.container},[G(De,{name:"fade",appear:"",onAfterEnter:A,onBeforeLeave:O},{default:j(()=>[Xe(H("div",$e({...b.$attrs,...D(i)},{ref:"mask",class:["modal-mask",{"modal-mask--opaque":b.dark||b.closeButtonOutside||b.hasPrevious||b.hasNext,"modal-mask--light":b.lightBackdrop}],role:"dialog","aria-modal":"true","aria-labelledby":b.labelId||`modal-name-${D(s)}`,"aria-describedby":"modal-description-"+D(s),tabindex:"-1"}),[G(De,{name:"fade-visibility",appear:""},{default:j(()=>[H("div",{class:"modal-header","data-theme-light":b.lightBackdrop,"data-theme-dark":!b.lightBackdrop},[b.name.trim()!==""?(I(),Q("h2",{key:0,id:"modal-name-"+D(s),class:"modal-header__name"},He(b.name),9,ys)):Z("",!0),H("div",ws,[b.hasNext&&b.enableSlideshow?(I(),Q("button",{key:0,class:xe(["play-pause-icons",{"play-pause-icons--paused":b.slideshowPaused}]),title:D(u)?D(V)("Pause slideshow"):D(V)("Start slideshow"),type:"button",onClick:P[0]||(P[0]=M=>p.value=!p.value)},[G(Pe,{class:"play-pause-icons__icon",inline:"",name:D(u)?D(V)("Pause slideshow"):D(V)("Start slideshow"),path:D(u)?D(Ho):D(jo)},null,8,["name","path"]),D(u)?(I(),Q("svg",{key:`${D(s)}-animation-${f.value}`,class:"progress-ring",height:"50",width:"50"},[...P[1]||(P[1]=[H("circle",{class:"progress-ring__circle",stroke:"white","stroke-width":"2",fill:"transparent",r:"15",cx:"25",cy:"25"},null,-1)])])):Z("",!0)],10,bs)):Z("",!0),G(Br,{class:"header-actions",inline:b.inlineActions},{default:j(()=>[Y(b.$slots,"actions",{},void 0,!0)]),_:3},8,["inline"]),!b.noClose&&b.closeButtonOutside?(I(),q(fe,{key:1,"aria-label":D(V)("Close"),class:"header-close",variant:"tertiary",onClick:k},{icon:j(()=>[G(Pe,{path:D(tn)},null,8,["path"])]),_:1},8,["aria-label"])):Z("",!0)])],8,vs)]),_:3}),G(De,{name:`modal-${b.outTransition?"out":"in"}`,appear:""},{default:j(()=>[Xe(H("div",{class:xe(["modal-wrapper",[`modal-wrapper--${b.size}`,{"modal-wrapper--spread-navigation":b.spreadNavigation}]]),onMousedown:Co(_,["self"])},[G(De,{name:"fade-visibility",appear:""},{default:j(()=>[Xe(G(fe,{"aria-label":D(V)("Previous"),class:"prev",variant:"tertiary-no-background",onClick:y},{icon:j(()=>[G(Pe,{directional:"",path:D(Wo),size:40},null,8,["path"])]),_:1},8,["aria-label"]),[[Ze,b.hasPrevious]])]),_:1}),H("div",{id:"modal-description-"+D(s),class:"modal-container"},[H("div",Ss,[Y(b.$slots,"default",{},void 0,!0)]),!b.noClose&&!b.closeButtonOutside?(I(),q(fe,{key:0,"aria-label":D(V)("Close"),class:"modal-container__close",variant:"tertiary",onClick:k},{icon:j(()=>[G(Pe,{path:D(tn)},null,8,["path"])]),_:1},8,["aria-label"])):Z("",!0)],8,Ts),G(De,{name:"fade-visibility",appear:""},{default:j(()=>[Xe(G(fe,{"aria-label":D(V)("Next"),class:"next",variant:"tertiary-no-background",onClick:m},{icon:j(()=>[G(Pe,{directional:"",path:D(Go),size:40},null,8,["path"])]),_:1},8,["aria-label"]),[[Ze,b.hasNext]])]),_:1})],34),[[Ze,n.value]])]),_:3},8,["name"])],16,gs),[[Ze,n.value]])]),_:3})],8,["disabled","to"]))}}),xs=Ye(_s,[["__scopeId","data-v-1639aad0"]]),$s=["id","textContent"],As=["aria-label","aria-labelledby"],ks={class:"dialog__text"},Ns={class:"dialog__actions"},Ps=be({__name:"NcDialog",props:rt({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:rt(["closing","reset","submit"],["update:open"]),setup(e,{emit:t}){const n=Rn(e,"open"),o=e,r=t,i=Do(),s=Ft("wrapper"),{width:a}=Qr(s,{width:900,height:0}),l=L(()=>a.value<876),u=L(()=>i?.navigation!==void 0),d=qt(),c=L(()=>o.navigationAriaLabel||void 0),f=L(()=>{if(!o.navigationAriaLabel)return o.navigationAriaLabelledby||d}),p=Ft("dialogElement"),g=L(()=>o.isForm&&!u.value?"form":"div"),w=L(()=>g.value!=="form"?{}:{submit(_){_.preventDefault(),r("submit",_)},reset(_){_.preventDefault(),r("reset",_)}}),m=ye(!0);function y(_,A){_.type==="submit"&&g.value==="form"&&"reportValidity"in p.value&&!p.value.reportValidity()||(T(A),window.setTimeout(()=>S(),300))}function T(_){m.value=!1,r("closing",_)}function S(){m.value=!0,n.value=!1}const k=L(()=>({noClose:o.noClose,container:o.container===void 0?"body":o.container,labelId:d,size:o.size,show:n.value&&m.value,outTransition:o.outTransition,closeOnClickOutside:o.closeOnClickOutside,additionalTrapElements:o.additionalTrapElements}));return(_,A)=>n.value?(I(),q(D(xs),$e({key:0,class:"dialog__modal","enable-slideshow":!1,"disable-swipe":""},k.value,{onClose:S,"onUpdate:show":A[0]||(A[0]=O=>T())}),{default:j(()=>[H("h2",{id:D(d),class:"dialog__name",textContent:He(_.name)},null,8,$s),(I(),q(Bo(g.value),$e({ref:"dialogElement",class:["dialog",_.dialogClasses]},Fo(w.value)),{default:j(()=>[H("div",{ref:"wrapper",class:xe(["dialog__wrapper",[{"dialog__wrapper--collapsed":l.value}]])},[u.value?(I(),Q("nav",{key:0,class:xe(["dialog__navigation",_.navigationClasses]),"aria-label":c.value,"aria-labelledby":f.value},[Y(_.$slots,"navigation",{isCollapsed:l.value},void 0,!0)],10,As)):Z("",!0),H("div",{class:xe(["dialog__content",_.contentClasses])},[Y(_.$slots,"default",{},()=>[H("p",ks,He(_.message),1)],!0)],2)],2),H("div",Ns,[Y(_.$slots,"actions",{},()=>[(I(!0),Q(gt,null,Mo(_.buttons,(O,b)=>(I(),q(D(rs),$e({key:b},{ref_for:!0},O,{onClick:(P,M)=>y(O,M)}),null,16,["onClick"]))),128))],!0)])]),_:3},16,["class"]))]),_:3},16)):Z("",!0)}}),Qs=Ye(Ps,[["__scopeId","data-v-ca0b8eba"]]);function ea(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,s)=>{const a=Ro(e,{...t,container:null,onClose(...l){const u=l.length>1?l:l[0];a.unmount(),r.remove(),i(u)},"onVue:unmounted":()=>{a.unmount(),r.remove(),s(new Error("Dialog was unmounted without close event"))}});a.mount(r)})}export{Js as A,Yo as B,Vs as C,Hr as D,ke as E,W as F,lo as G,Fs as H,Er as I,os as J,ft as K,Qr as L,Ks as M,Qs as N,Et as O,Zo as P,Ys as Q,Rs as R,Ms as S,Br as a,xs as b,Ws as c,Ko as d,js as e,Uo as f,ps as g,Vr as h,Us as i,zs as j,fi as k,pi as l,mi as m,Hs as n,qs as o,Is as p,Se as q,Fe as r,ea as s,Ls as t,Xs as u,li as v,Gs as w,We as x,Nn as y,Zs as z};
//# sourceMappingURL=index-Dzo4H_NA.chunk.mjs.map