import{E as ne,q as U,F as nn,G as Xe,H as on,j as He,J as ee,m as rn,g as Je,K as lt,v as sn}from"./VennDiagram.svelte_svelte_type_style_lang.D7p4KQI7.js";import{d as an,r as ct,w as ut}from"./entry.CHK3icxR.js";import{P as xt,s as De,r as ue,i as we,g as ie,T as Oe,R as oe,U as kt,o as R,N as ft,c as Ze,e as Rt,b as Ct,d as Ft,ah as Se,l as C,u as Qe,m as $e,n as et,X as Dt,aa as ln,Y as cn}from"./scheduler.C39PMv9a.js";import{t as un,e as dt}from"./utils.IFsTSM2M.js";import{S as Lt,i as It,g as fn,a as Y,c as dn,t as X,b as mn,d as vn,m as hn,e as bn}from"./index.Te5Nl1-a.js";function co(t,...e){return t.call(this,...e)}const Ue=Symbol("Unset"),mt=Symbol("IsSetTracked"),vt=Symbol("GetModKeys"),ht=(t={},e={},n=void 0,i=void 0)=>{if(n&&!n[mt])throw new Error("SetTracked parent must be SetTracked");const o=Object.assign(()=>{},e??{}),s=Object.keys(o),r=new Proxy(o,{get(l,a){switch(a){case Ue:return!(n!=null&&n[vt].includes(i));case vt:return s;case mt:return!0;case"toJSON":return()=>({...l});case"toString":case"toPrimitive":case Symbol.toPrimitive:return r[Ue]?i&&i in t?()=>t[i]:()=>"":e.toString.bind(e);default:return a in l||(l[a]=ht(t,void 0,r,a)),l[a]}},set(l,a,c){return s.push(a),typeof c=="object"&&(c=ht(t,c,r,a)),l[a]=c,!0}});return r},uo=(t,...e)=>e.some(n=>n==null?void 0:n[Ue]);function pn(t){return t[t.length-1]}function fo(t,e){return t.map((n,i)=>t[(e+i)%t.length])}function Mt(t){return new Promise(e=>setTimeout(e,t))}const Bt=()=>typeof window<"u";function gn(){const t=navigator.userAgentData;return(t==null?void 0:t.platform)??navigator.platform}const Wt=t=>Bt()&&t.test(gn().toLowerCase()),yn=()=>Bt()&&!!navigator.maxTouchPoints,wn=()=>Wt(/^mac/)&&!yn(),Tn=()=>Wt(/mac|iphone|ipad|ipod/i),En=()=>Tn()&&!wn(),We="data-melt-scroll-lock";function bt(t,e){if(!t)return;const n=t.style.cssText;return Object.assign(t.style,e),()=>{t.style.cssText=n}}function _n(t,e,n){if(!t)return;const i=t.style.getPropertyValue(e);return t.style.setProperty(e,n),()=>{i?t.style.setProperty(e,i):t.style.removeProperty(e)}}function Pn(t){const e=t.getBoundingClientRect().left;return Math.round(e)+t.scrollLeft?"paddingLeft":"paddingRight"}function mo(t){const e=document,n=e.defaultView??window,{documentElement:i,body:o}=e;if(o.hasAttribute(We))return ne;o.setAttribute(We,"");const r=n.innerWidth-i.clientWidth,l=()=>_n(i,"--scrollbar-width",`${r}px`),a=Pn(i),c=n.getComputedStyle(o)[a],u=()=>bt(o,{overflow:"hidden",[a]:`calc(${c} + ${r}px)`}),f=()=>{const{scrollX:v,scrollY:p,visualViewport:y}=n,T=(y==null?void 0:y.offsetLeft)??0,w=(y==null?void 0:y.offsetTop)??0,E=bt(o,{position:"fixed",overflow:"hidden",top:`${-(p-Math.floor(w))}px`,left:`${-(v-Math.floor(T))}px`,right:"0",[a]:`calc(${c} + ${r}px)`});return()=>{E==null||E(),n.scrollTo(v,p)}},b=[l(),En()?f():u()];return()=>{b.forEach(v=>v==null?void 0:v()),o.removeAttribute(We)}}function vo(t){const{open:e,forceVisible:n,activeTrigger:i}=t;return an([e,n,i],([o,s,r])=>(o||s)&&r!==null)}function On(t){let e=t.parentElement;for(;U(e)&&!e.hasAttribute("data-portal");)e=e.parentElement;return e||"body"}function ho(t,e){return e!==void 0?e:On(t)==="body"?document.body:null}async function bo(t){const{prop:e,defaultEl:n}=t;if(await Promise.all([Mt(1),xt]),e===void 0){n==null||n.focus();return}const i=nn(e)?e(n):e;if(typeof i=="string"){const o=document.querySelector(i);if(!U(o))return;o.focus()}else U(i)&&i.focus()}const K=Math.min,B=Math.max,Ae=Math.round,Ee=Math.floor,J=t=>({x:t,y:t}),Sn={left:"right",right:"left",bottom:"top",top:"bottom"},An={start:"end",end:"start"};function qe(t,e,n){return B(t,K(e,n))}function de(t,e){return typeof t=="function"?t(e):t}function Z(t){return t.split("-")[0]}function me(t){return t.split("-")[1]}function jt(t){return t==="x"?"y":"x"}function tt(t){return t==="y"?"height":"width"}function re(t){return["top","bottom"].includes(Z(t))?"y":"x"}function nt(t){return jt(re(t))}function Nn(t,e,n){n===void 0&&(n=!1);const i=me(t),o=nt(t),s=tt(o);let r=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=Ne(r)),[r,Ne(r)]}function xn(t){const e=Ne(t);return[Ge(t),e,Ge(e)]}function Ge(t){return t.replace(/start|end/g,e=>An[e])}function kn(t,e,n){const i=["left","right"],o=["right","left"],s=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?s:r;default:return[]}}function Rn(t,e,n,i){const o=me(t);let s=kn(Z(t),n==="start",i);return o&&(s=s.map(r=>r+"-"+o),e&&(s=s.concat(s.map(Ge)))),s}function Ne(t){return t.replace(/left|right|bottom|top/g,e=>Sn[e])}function Cn(t){return{top:0,right:0,bottom:0,left:0,...t}}function Vt(t){return typeof t!="number"?Cn(t):{top:t,right:t,bottom:t,left:t}}function xe(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function pt(t,e,n){let{reference:i,floating:o}=t;const s=re(e),r=nt(e),l=tt(r),a=Z(e),c=s==="y",u=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,b=i[l]/2-o[l]/2;let v;switch(a){case"top":v={x:u,y:i.y-o.height};break;case"bottom":v={x:u,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:f};break;case"left":v={x:i.x-o.width,y:f};break;default:v={x:i.x,y:i.y}}switch(me(e)){case"start":v[r]-=b*(n&&c?-1:1);break;case"end":v[r]+=b*(n&&c?-1:1);break}return v}const Fn=async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:r}=n,l=s.filter(Boolean),a=await(r.isRTL==null?void 0:r.isRTL(e));let c=await r.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:f}=pt(c,i,a),b=i,v={},p=0;for(let y=0;y({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:s,platform:r,elements:l,middlewareData:a}=e,{element:c,padding:u=0}=de(t,e)||{};if(c==null)return{};const f=Vt(u),b={x:n,y:i},v=nt(o),p=tt(v),y=await r.getDimensions(c),T=v==="y",w=T?"top":"left",E=T?"bottom":"right",_=T?"clientHeight":"clientWidth",x=s.reference[p]+s.reference[v]-b[v]-s.floating[p],N=b[v]-s.reference[v],F=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let M=F?F[_]:0;(!M||!await(r.isElement==null?void 0:r.isElement(F)))&&(M=l.floating[_]||s.floating[p]);const j=x/2-N/2,I=M/2-y[p]/2-1,D=K(f[w],I),S=K(f[E],I),d=D,m=M-y[p]-S,g=M/2-y[p]/2+j,O=qe(d,g,m),P=!a.arrow&&me(o)!=null&&g!==O&&s.reference[p]/2-(gg<=0)){var S,d;const g=(((S=s.flip)==null?void 0:S.index)||0)+1,O=M[g];if(O)return{data:{index:g,overflows:D},reset:{placement:O}};let P=(d=D.filter(A=>A.overflows[0]<=0).sort((A,h)=>A.overflows[1]-h.overflows[1])[0])==null?void 0:d.placement;if(!P)switch(v){case"bestFit":{var m;const A=(m=D.filter(h=>{if(F){const k=re(h.placement);return k===E||k==="y"}return!0}).map(h=>[h.placement,h.overflows.filter(k=>k>0).reduce((k,L)=>k+L,0)]).sort((h,k)=>h[1]-k[1])[0])==null?void 0:m[0];A&&(P=A);break}case"initialPlacement":P=l;break}if(o!==P)return{reset:{placement:P}}}return{}}}};async function In(t,e){const{placement:n,platform:i,elements:o}=t,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),r=Z(n),l=me(n),a=re(n)==="y",c=["left","top"].includes(r)?-1:1,u=s&&a?-1:1,f=de(e,t);let{mainAxis:b,crossAxis:v,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof p=="number"&&(v=l==="end"?p*-1:p),a?{x:v*u,y:b*c}:{x:b*c,y:v*u}}const Mn=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:o,y:s,placement:r,middlewareData:l}=e,a=await In(e,t);return r===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:o+a.x,y:s+a.y,data:{...a,placement:r}}}}},Bn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o}=e,{mainAxis:s=!0,crossAxis:r=!1,limiter:l={fn:T=>{let{x:w,y:E}=T;return{x:w,y:E}}},...a}=de(t,e),c={x:n,y:i},u=await it(e,a),f=re(Z(o)),b=jt(f);let v=c[b],p=c[f];if(s){const T=b==="y"?"top":"left",w=b==="y"?"bottom":"right",E=v+u[T],_=v-u[w];v=qe(E,v,_)}if(r){const T=f==="y"?"top":"left",w=f==="y"?"bottom":"right",E=p+u[T],_=p-u[w];p=qe(E,p,_)}const y=l.fn({...e,[b]:v,[f]:p});return{...y,data:{x:y.x-n,y:y.y-i}}}}},Wn=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:i,platform:o,elements:s}=e,{apply:r=()=>{},...l}=de(t,e),a=await it(e,l),c=Z(n),u=me(n),f=re(n)==="y",{width:b,height:v}=i.floating;let p,y;c==="top"||c==="bottom"?(p=c,y=u===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,p=u==="end"?"top":"bottom");const T=v-a.top-a.bottom,w=b-a.left-a.right,E=K(v-a[p],T),_=K(b-a[y],w),x=!e.middlewareData.shift;let N=E,F=_;if(f?F=u||x?K(_,w):w:N=u||x?K(E,T):T,x&&!u){const j=B(a.left,0),I=B(a.right,0),D=B(a.top,0),S=B(a.bottom,0);f?F=b-2*(j!==0||I!==0?j+I:B(a.left,a.right)):N=v-2*(D!==0||S!==0?D+S:B(a.top,a.bottom))}await r({...e,availableWidth:F,availableHeight:N});const M=await o.getDimensions(s.floating);return b!==M.width||v!==M.height?{reset:{rects:!0}}:{}}}};function ve(t){return Kt(t)?(t.nodeName||"").toLowerCase():"#document"}function W(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function q(t){var e;return(e=(Kt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Kt(t){return t instanceof Node||t instanceof W(t).Node}function z(t){return t instanceof Element||t instanceof W(t).Element}function H(t){return t instanceof HTMLElement||t instanceof W(t).HTMLElement}function gt(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof W(t).ShadowRoot}function Te(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=V(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o)}function jn(t){return["table","td","th"].includes(ve(t))}function Le(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function ot(t){const e=rt(),n=V(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function Vn(t){let e=Q(t);for(;H(e)&&!fe(e);){if(Le(e))return null;if(ot(e))return e;e=Q(e)}return null}function rt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function fe(t){return["html","body","#document"].includes(ve(t))}function V(t){return W(t).getComputedStyle(t)}function Ie(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Q(t){if(ve(t)==="html")return t;const e=t.assignedSlot||t.parentNode||gt(t)&&t.host||q(t);return gt(e)?e.host:e}function zt(t){const e=Q(t);return fe(e)?t.ownerDocument?t.ownerDocument.body:t.body:H(e)&&Te(e)?e:zt(e)}function ye(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=zt(t),s=o===((i=t.ownerDocument)==null?void 0:i.body),r=W(o);return s?e.concat(r,r.visualViewport||[],Te(o)?o:[],r.frameElement&&n?ye(r.frameElement):[]):e.concat(o,ye(o,[],n))}function Ht(t){const e=V(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=H(t),s=o?t.offsetWidth:n,r=o?t.offsetHeight:i,l=Ae(n)!==s||Ae(i)!==r;return l&&(n=s,i=r),{width:n,height:i,$:l}}function st(t){return z(t)?t:t.contextElement}function ce(t){const e=st(t);if(!H(e))return J(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:s}=Ht(e);let r=(s?Ae(n.width):n.width)/i,l=(s?Ae(n.height):n.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!l||!Number.isFinite(l))&&(l=1),{x:r,y:l}}const Kn=J(0);function Ut(t){const e=W(t);return!rt()||!e.visualViewport?Kn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function zn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==W(t)?!1:e}function se(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),s=st(t);let r=J(1);e&&(i?z(i)&&(r=ce(i)):r=ce(t));const l=zn(s,n,i)?Ut(s):J(0);let a=(o.left+l.x)/r.x,c=(o.top+l.y)/r.y,u=o.width/r.x,f=o.height/r.y;if(s){const b=W(s),v=i&&z(i)?W(i):i;let p=b,y=p.frameElement;for(;y&&i&&v!==p;){const T=ce(y),w=y.getBoundingClientRect(),E=V(y),_=w.left+(y.clientLeft+parseFloat(E.paddingLeft))*T.x,x=w.top+(y.clientTop+parseFloat(E.paddingTop))*T.y;a*=T.x,c*=T.y,u*=T.x,f*=T.y,a+=_,c+=x,p=W(y),y=p.frameElement}}return xe({width:u,height:f,x:a,y:c})}function Hn(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const s=o==="fixed",r=q(i),l=e?Le(e.floating):!1;if(i===r||l&&s)return n;let a={scrollLeft:0,scrollTop:0},c=J(1);const u=J(0),f=H(i);if((f||!f&&!s)&&((ve(i)!=="body"||Te(r))&&(a=Ie(i)),H(i))){const b=se(i);c=ce(i),u.x=b.x+i.clientLeft,u.y=b.y+i.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x,y:n.y*c.y-a.scrollTop*c.y+u.y}}function Un(t){return Array.from(t.getClientRects())}function qt(t){return se(q(t)).left+Ie(t).scrollLeft}function qn(t){const e=q(t),n=Ie(t),i=t.ownerDocument.body,o=B(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=B(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let r=-n.scrollLeft+qt(t);const l=-n.scrollTop;return V(i).direction==="rtl"&&(r+=B(e.clientWidth,i.clientWidth)-o),{width:o,height:s,x:r,y:l}}function Gn(t,e){const n=W(t),i=q(t),o=n.visualViewport;let s=i.clientWidth,r=i.clientHeight,l=0,a=0;if(o){s=o.width,r=o.height;const c=rt();(!c||c&&e==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:s,height:r,x:l,y:a}}function Yn(t,e){const n=se(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,s=H(t)?ce(t):J(1),r=t.clientWidth*s.x,l=t.clientHeight*s.y,a=o*s.x,c=i*s.y;return{width:r,height:l,x:a,y:c}}function yt(t,e,n){let i;if(e==="viewport")i=Gn(t,n);else if(e==="document")i=qn(q(t));else if(z(e))i=Yn(e,n);else{const o=Ut(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return xe(i)}function Gt(t,e){const n=Q(t);return n===e||!z(n)||fe(n)?!1:V(n).position==="fixed"||Gt(n,e)}function Xn(t,e){const n=e.get(t);if(n)return n;let i=ye(t,[],!1).filter(l=>z(l)&&ve(l)!=="body"),o=null;const s=V(t).position==="fixed";let r=s?Q(t):t;for(;z(r)&&!fe(r);){const l=V(r),a=ot(r);!a&&l.position==="fixed"&&(o=null),(s?!a&&!o:!a&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Te(r)&&!a&&Gt(t,r))?i=i.filter(u=>u!==r):o=l,r=Q(r)}return e.set(t,i),i}function Jn(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const r=[...n==="clippingAncestors"?Le(e)?[]:Xn(e,this._c):[].concat(n),i],l=r[0],a=r.reduce((c,u)=>{const f=yt(e,u,o);return c.top=B(f.top,c.top),c.right=K(f.right,c.right),c.bottom=K(f.bottom,c.bottom),c.left=B(f.left,c.left),c},yt(e,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Zn(t){const{width:e,height:n}=Ht(t);return{width:e,height:n}}function Qn(t,e,n){const i=H(e),o=q(e),s=n==="fixed",r=se(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const a=J(0);if(i||!i&&!s)if((ve(e)!=="body"||Te(o))&&(l=Ie(e)),i){const f=se(e,!0,s,e);a.x=f.x+e.clientLeft,a.y=f.y+e.clientTop}else o&&(a.x=qt(o));const c=r.left+l.scrollLeft-a.x,u=r.top+l.scrollTop-a.y;return{x:c,y:u,width:r.width,height:r.height}}function je(t){return V(t).position==="static"}function wt(t,e){return!H(t)||V(t).position==="fixed"?null:e?e(t):t.offsetParent}function Yt(t,e){const n=W(t);if(Le(t))return n;if(!H(t)){let o=Q(t);for(;o&&!fe(o);){if(z(o)&&!je(o))return o;o=Q(o)}return n}let i=wt(t,e);for(;i&&jn(i)&&je(i);)i=wt(i,e);return i&&fe(i)&&je(i)&&!ot(i)?n:i||Vn(t)||n}const $n=async function(t){const e=this.getOffsetParent||Yt,n=this.getDimensions,i=await n(t.floating);return{reference:Qn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function ei(t){return V(t).direction==="rtl"}const ti={convertOffsetParentRelativeRectToViewportRelativeRect:Hn,getDocumentElement:q,getClippingRect:Jn,getOffsetParent:Yt,getElementRects:$n,getClientRects:Un,getDimensions:Zn,getScale:ce,isElement:z,isRTL:ei};function ni(t,e){let n=null,i;const o=q(t);function s(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null}function r(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),s();const{left:c,top:u,width:f,height:b}=t.getBoundingClientRect();if(l||e(),!f||!b)return;const v=Ee(u),p=Ee(o.clientWidth-(c+f)),y=Ee(o.clientHeight-(u+b)),T=Ee(c),E={rootMargin:-v+"px "+-p+"px "+-y+"px "+-T+"px",threshold:B(0,K(1,a))||1};let _=!0;function x(N){const F=N[0].intersectionRatio;if(F!==a){if(!_)return r();F?r(!1,F):i=setTimeout(()=>{r(!1,1e-7)},1e3)}_=!1}try{n=new IntersectionObserver(x,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,E)}n.observe(t)}return r(!0),s}function ii(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=i,c=st(t),u=o||s?[...c?ye(c):[],...ye(e)]:[];u.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const f=c&&l?ni(c,n):null;let b=-1,v=null;r&&(v=new ResizeObserver(w=>{let[E]=w;E&&E.target===c&&v&&(v.unobserve(e),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var _;(_=v)==null||_.observe(e)})),n()}),c&&!a&&v.observe(c),v.observe(e));let p,y=a?se(t):null;a&&T();function T(){const w=se(t);y&&(w.x!==y.x||w.y!==y.y||w.width!==y.width||w.height!==y.height)&&n(),y=w,p=requestAnimationFrame(T)}return n(),()=>{var w;u.forEach(E=>{o&&E.removeEventListener("scroll",n),s&&E.removeEventListener("resize",n)}),f==null||f(),(w=v)==null||w.disconnect(),v=null,a&&cancelAnimationFrame(p)}}const oi=Mn,ri=Bn,si=Ln,ai=Wn,li=Dn,ci=(t,e,n)=>{const i=new Map,o={platform:ti,...n},s={...o.platform,_c:i};return Fn(t,e,{...o,platform:s})},ui={strategy:"absolute",placement:"top",gutter:5,flip:!0,sameWidth:!1,overflowPadding:8},fi={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function di(t,e,n={}){if(!e||!t||n===null)return{destroy:ne};const i={...ui,...n},o=e.querySelector("[data-arrow=true]"),s=[];i.flip&&s.push(si({boundary:i.boundary,padding:i.overflowPadding}));const r=U(o)?o.offsetHeight/2:0;if(i.gutter||i.offset){const a=i.gutter?{mainAxis:i.gutter}:i.offset;(a==null?void 0:a.mainAxis)!=null&&(a.mainAxis+=r),s.push(oi(a))}s.push(ri({boundary:i.boundary,crossAxis:i.overlap,padding:i.overflowPadding})),o&&s.push(li({element:o,padding:8})),s.push(ai({padding:i.overflowPadding,apply({rects:a,availableHeight:c,availableWidth:u}){i.sameWidth&&Object.assign(e.style,{width:`${Math.round(a.reference.width)}px`,minWidth:"unset"}),i.fitViewport&&Object.assign(e.style,{maxWidth:`${u}px`,maxHeight:`${c}px`})}}));function l(){if(!t||!e||U(t)&&!t.ownerDocument.documentElement.contains(t))return;const{placement:a,strategy:c}=i;ci(t,e,{placement:a,middleware:s,strategy:c}).then(u=>{const f=Math.round(u.x),b=Math.round(u.y),[v,p]=mi(u.placement);if(e.setAttribute("data-side",v),e.setAttribute("data-align",p),Object.assign(e.style,{position:i.strategy,top:`${b}px`,left:`${f}px`}),U(o)&&u.middlewareData.arrow){const{x:y,y:T}=u.middlewareData.arrow,w=u.placement.split("-")[0];o.setAttribute("data-side",w),Object.assign(o.style,{position:"absolute",left:y!=null?`${y}px`:"",top:T!=null?`${T}px`:"",[w]:`calc(100% - ${r}px)`,transform:fi[w],backgroundColor:"inherit",zIndex:"inherit"})}return u})}return Object.assign(e.style,{position:i.strategy}),{destroy:ii(t,e,l)}}function mi(t){const[e,n="center"]=t.split("-");return[e,n]}/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */var Xt=["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])"],ke=Xt.join(","),Jt=typeof Element>"u",ae=Jt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Re=!Jt&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},Ce=function t(e,n){var i;n===void 0&&(n=!0);var o=e==null||(i=e.getAttribute)===null||i===void 0?void 0:i.call(e,"inert"),s=o===""||o==="true",r=s||n&&e&&t(e.parentNode);return r},vi=function(e){var n,i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return i===""||i==="true"},Zt=function(e,n,i){if(Ce(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(ke));return n&&ae.call(e,ke)&&o.unshift(e),o=o.filter(i),o},Qt=function t(e,n,i){for(var o=[],s=Array.from(e);s.length;){var r=s.shift();if(!Ce(r,!1))if(r.tagName==="SLOT"){var l=r.assignedElements(),a=l.length?l:r.children,c=t(a,!0,i);i.flatten?o.push.apply(o,c):o.push({scopeParent:r,candidates:c})}else{var u=ae.call(r,ke);u&&i.filter(r)&&(n||!e.includes(r))&&o.push(r);var f=r.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(r),b=!Ce(f,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(r));if(f&&b){var v=t(f===!0?r.children:f.children,!0,i);i.flatten?o.push.apply(o,v):o.push({scopeParent:r,candidates:v})}else s.unshift.apply(s,r.children)}}return o},$t=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},te=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||vi(e))&&!$t(e)?0:e.tabIndex},hi=function(e,n){var i=te(e);return i<0&&n&&!$t(e)?0:i},bi=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},en=function(e){return e.tagName==="INPUT"},pi=function(e){return en(e)&&e.type==="hidden"},gi=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(i){return i.tagName==="SUMMARY"});return n},yi=function(e,n){for(var i=0;isummary:first-of-type"),r=s?e.parentElement:e;if(ae.call(r,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="legacy-full"){if(typeof o=="function"){for(var l=e;e;){var a=e.parentElement,c=Re(e);if(a&&!a.shadowRoot&&o(a)===!0)return Tt(e);e.assignedSlot?e=e.assignedSlot:!a&&c!==e.ownerDocument?e=c.host:e=a}e=l}if(_i(e))return!e.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return Tt(e);return!1},Oi=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var i=0;i=0)},Ai=function t(e){var n=[],i=[];return e.forEach(function(o,s){var r=!!o.scopeParent,l=r?o.scopeParent:o,a=hi(l,r),c=r?t(o.candidates):l;a===0?r?n.push.apply(n,c):n.push(l):i.push({documentOrder:s,tabIndex:a,item:o,isScope:r,content:c})}),i.sort(bi).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(n)},Ni=function(e,n){n=n||{};var i;return n.getShadowRoot?i=Qt([e],n.includeContainer,{filter:Ye.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Si}):i=Zt(e,n.includeContainer,Ye.bind(null,n)),Ai(i)},xi=function(e,n){n=n||{};var i;return n.getShadowRoot?i=Qt([e],n.includeContainer,{filter:Fe.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):i=Zt(e,n.includeContainer,Fe.bind(null,n)),i},le=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return ae.call(e,ke)===!1?!1:Ye(n,e)},ki=Xt.concat("iframe").join(","),Ve=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return ae.call(e,ki)===!1?!1:Fe(n,e)};/*! * focus-trap 7.5.4 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE */function Et(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function _t(t){for(var e=1;e0){var i=e[e.length-1];i!==n&&i.pause()}var o=e.indexOf(n);o===-1||e.splice(o,1),e.push(n)},deactivateTrap:function(e,n){var i=e.indexOf(n);i!==-1&&e.splice(i,1),e.length>0&&e[e.length-1].unpause()}},Di=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Li=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},ge=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Ii=function(e){return ge(e)&&!e.shiftKey},Mi=function(e){return ge(e)&&e.shiftKey},Ot=function(e){return setTimeout(e,0)},St=function(e,n){var i=-1;return e.every(function(o,s){return n(o)?(i=s,!1):!0}),i},pe=function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o1?g-1:0),P=1;P=0)d=i.activeElement;else{var m=r.tabbableGroups[0],g=m&&m.firstTabbableNode;d=g||u("fallbackFocus")}if(!d)throw new Error("Your focus-trap needs to have at least one focusable element");return d},b=function(){if(r.containerGroups=r.containers.map(function(d){var m=Ni(d,s.tabbableOptions),g=xi(d,s.tabbableOptions),O=m.length>0?m[0]:void 0,P=m.length>0?m[m.length-1]:void 0,A=g.find(function(L){return le(L)}),h=g.slice().reverse().find(function(L){return le(L)}),k=!!m.find(function(L){return te(L)>0});return{container:d,tabbableNodes:m,focusableNodes:g,posTabIndexesFound:k,firstTabbableNode:O,lastTabbableNode:P,firstDomTabbableNode:A,lastDomTabbableNode:h,nextTabbableNode:function($){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,G=m.indexOf($);return G<0?he?g.slice(g.indexOf($)+1).find(function(be){return le(be)}):g.slice(0,g.indexOf($)).reverse().find(function(be){return le(be)}):m[G+(he?1:-1)]}}}),r.tabbableGroups=r.containerGroups.filter(function(d){return d.tabbableNodes.length>0}),r.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(r.containerGroups.find(function(d){return d.posTabIndexesFound})&&r.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.")},v=function S(d){var m=d.activeElement;if(m)return m.shadowRoot&&m.shadowRoot.activeElement!==null?S(m.shadowRoot):m},p=function S(d){if(d!==!1&&d!==v(document)){if(!d||!d.focus){S(f());return}d.focus({preventScroll:!!s.preventScroll}),r.mostRecentlyFocusedNode=d,Di(d)&&d.select()}},y=function(d){var m=u("setReturnFocus",d);return m||(m===!1?!1:d)},T=function(d){var m=d.target,g=d.event,O=d.isBackward,P=O===void 0?!1:O;m=m||_e(g),b();var A=null;if(r.tabbableGroups.length>0){var h=c(m,g),k=h>=0?r.containerGroups[h]:void 0;if(h<0)P?A=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:A=r.tabbableGroups[0].firstTabbableNode;else if(P){var L=St(r.tabbableGroups,function(Me){var Be=Me.firstTabbableNode;return m===Be});if(L<0&&(k.container===m||Ve(m,s.tabbableOptions)&&!le(m,s.tabbableOptions)&&!k.nextTabbableNode(m,!1))&&(L=h),L>=0){var $=L===0?r.tabbableGroups.length-1:L-1,he=r.tabbableGroups[$];A=te(m)>=0?he.lastTabbableNode:he.lastDomTabbableNode}else ge(g)||(A=k.nextTabbableNode(m,!1))}else{var G=St(r.tabbableGroups,function(Me){var Be=Me.lastTabbableNode;return m===Be});if(G<0&&(k.container===m||Ve(m,s.tabbableOptions)&&!le(m,s.tabbableOptions)&&!k.nextTabbableNode(m))&&(G=h),G>=0){var be=G===r.tabbableGroups.length-1?0:G+1,at=r.tabbableGroups[be];A=te(m)>=0?at.firstTabbableNode:at.firstDomTabbableNode}else ge(g)||(A=k.nextTabbableNode(m))}}else A=u("fallbackFocus");return A},w=function(d){var m=_e(d);if(!(c(m,d)>=0)){if(pe(s.clickOutsideDeactivates,d)){l.deactivate({returnFocus:s.returnFocusOnDeactivate});return}pe(s.allowOutsideClick,d)||d.preventDefault()}},E=function(d){var m=_e(d),g=c(m,d)>=0;if(g||m instanceof Document)g&&(r.mostRecentlyFocusedNode=m);else{d.stopImmediatePropagation();var O,P=!0;if(r.mostRecentlyFocusedNode)if(te(r.mostRecentlyFocusedNode)>0){var A=c(r.mostRecentlyFocusedNode),h=r.containerGroups[A].tabbableNodes;if(h.length>0){var k=h.findIndex(function(L){return L===r.mostRecentlyFocusedNode});k>=0&&(s.isKeyForward(r.recentNavEvent)?k+1=0&&(O=h[k-1],P=!1))}}else r.containerGroups.some(function(L){return L.tabbableNodes.some(function($){return te($)>0})})||(P=!1);else P=!1;P&&(O=T({target:r.mostRecentlyFocusedNode,isBackward:s.isKeyBackward(r.recentNavEvent)})),p(O||r.mostRecentlyFocusedNode||f())}r.recentNavEvent=void 0},_=function(d){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;r.recentNavEvent=d;var g=T({event:d,isBackward:m});g&&(ge(d)&&d.preventDefault(),p(g))},x=function(d){if(Li(d)&&pe(s.escapeDeactivates,d)!==!1){d.preventDefault(),l.deactivate();return}(s.isKeyForward(d)||s.isKeyBackward(d))&&_(d,s.isKeyBackward(d))},N=function(d){var m=_e(d);c(m,d)>=0||pe(s.clickOutsideDeactivates,d)||pe(s.allowOutsideClick,d)||(d.preventDefault(),d.stopImmediatePropagation())},F=function(){if(r.active)return Pt.activateTrap(o,l),r.delayInitialFocusTimer=s.delayInitialFocus?Ot(function(){p(f())}):p(f()),i.addEventListener("focusin",E,!0),i.addEventListener("mousedown",w,{capture:!0,passive:!1}),i.addEventListener("touchstart",w,{capture:!0,passive:!1}),i.addEventListener("click",N,{capture:!0,passive:!1}),i.addEventListener("keydown",x,{capture:!0,passive:!1}),l},M=function(){if(r.active)return i.removeEventListener("focusin",E,!0),i.removeEventListener("mousedown",w,!0),i.removeEventListener("touchstart",w,!0),i.removeEventListener("click",N,!0),i.removeEventListener("keydown",x,!0),l},j=function(d){var m=d.some(function(g){var O=Array.from(g.removedNodes);return O.some(function(P){return P===r.mostRecentlyFocusedNode})});m&&p(f())},I=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(j):void 0,D=function(){I&&(I.disconnect(),r.active&&!r.paused&&r.containers.map(function(d){I.observe(d,{subtree:!0,childList:!0})}))};return l={get active(){return r.active},get paused(){return r.paused},activate:function(d){if(r.active)return this;var m=a(d,"onActivate"),g=a(d,"onPostActivate"),O=a(d,"checkCanFocusTrap");O||b(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=i.activeElement,m==null||m();var P=function(){O&&b(),F(),D(),g==null||g()};return O?(O(r.containers.concat()).then(P,P),this):(P(),this)},deactivate:function(d){if(!r.active)return this;var m=_t({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},d);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,M(),r.active=!1,r.paused=!1,D(),Pt.deactivateTrap(o,l);var g=a(m,"onDeactivate"),O=a(m,"onPostDeactivate"),P=a(m,"checkCanReturnFocus"),A=a(m,"returnFocus","returnFocusOnDeactivate");g==null||g();var h=function(){Ot(function(){A&&p(y(r.nodeFocusedBeforeActivation)),O==null||O()})};return A&&P?(P(y(r.nodeFocusedBeforeActivation)).then(h,h),this):(h(),this)},pause:function(d){if(r.paused||!r.active)return this;var m=a(d,"onPause"),g=a(d,"onPostPause");return r.paused=!0,m==null||m(),M(),D(),g==null||g(),this},unpause:function(d){if(!r.paused||!r.active)return this;var m=a(d,"onUnpause"),g=a(d,"onPostUnpause");return r.paused=!1,m==null||m(),b(),F(),D(),g==null||g(),this},updateContainerElements:function(d){var m=[].concat(d).filter(Boolean);return r.containers=m.map(function(g){return typeof g=="string"?i.querySelector(g):g}),r.active&&b(),D(),this}},l.updateContainerElements(e),l};function ji(t={}){let e;const{immediate:n,...i}=t,o=ut(!1),s=ut(!1),r=f=>e==null?void 0:e.activate(f),l=f=>{e==null||e.deactivate(f)},a=()=>{e&&(e.pause(),s.set(!0))},c=()=>{e&&(e.unpause(),s.set(!1))};return{useFocusTrap:f=>(e=Wi(f,{...i,onActivate(){var b;o.set(!0),(b=t.onActivate)==null||b.call(t)},onDeactivate(){var b;o.set(!1),(b=t.onDeactivate)==null||b.call(t)}}),n&&r(),{destroy(){l(),e=void 0}}),hasFocus:ct(o),isPaused:ct(s),activate:r,deactivate:l,pause:a,unpause:c}}const Pe=[],Vi=(t,e)=>{let n=ne;function i(){const s=Pe.indexOf(t);s>=0&&Pe.splice(s,1)}function o(s){n();const{open:r,onClose:l,shouldCloseOnInteractOutside:a,closeOnInteractOutside:c}=s;Mt(100).then(()=>{r?Pe.push(t):i()});function u(){return pn(Pe)===t}function f(){u()&&l&&(l(),i())}function b(p){const y=p.target;Xe(y)&&y&&u()&&(p.preventDefault(),p.stopPropagation(),p.stopImmediatePropagation())}function v(p){a!=null&&a(p)&&u()&&(p.preventDefault(),p.stopPropagation(),p.stopImmediatePropagation(),f())}n=Hi(t,{onInteractOutsideStart:b,onInteractOutside:c?v:void 0,enabled:r}).destroy}return o(e),{update:o,destroy(){i(),n()}}},Ki={floating:{},focusTrap:{},modal:{},escapeKeydown:{},portal:"body"},po=(t,e)=>{t.dataset.escapee="";const{anchorElement:n,open:i,options:o}=e;if(!n||!i||!o)return{destroy:ne};const s={...Ki,...o},r=[];if(s.portal!==null&&r.push(zi(t,s.portal).destroy),r.push(di(n,t,s.floating).destroy),s.focusTrap!==null){const{useFocusTrap:a}=ji({immediate:!0,escapeDeactivates:!1,allowOutsideClick:!0,returnFocusOnDeactivate:!1,fallbackFocus:t,...s.focusTrap});r.push(a(t).destroy)}s.modal!==null&&r.push(Vi(t,{onClose:()=>{U(n)&&(i.set(!1),n.focus())},shouldCloseOnInteractOutside:a=>!(a.defaultPrevented||U(n)&&n.contains(a.target)),...s.modal}).destroy),s.escapeKeydown!==null&&r.push(on(t,{enabled:i,handler:()=>{i.set(!1)},...s.escapeKeydown}).destroy);const l=He(...r);return{destroy(){l()}}},zi=(t,e="body")=>{let n;if(!U(e)&&typeof e!="string")return{destroy:ne};async function i(s){if(e=s,typeof e=="string"){if(n=document.querySelector(e),n===null&&(await xt(),n=document.querySelector(e)),n===null)throw new Error(`No element found matching css selector: "${e}"`)}else if(e instanceof HTMLElement)n=e;else throw new TypeError(`Unknown portal target type: ${e===null?"null":typeof e}. Allowed types: string (CSS selector) or HTMLElement.`);t.dataset.portal="",n.appendChild(t),t.hidden=!1}function o(){t.remove()}return i(e),{update:i,destroy:o}},Hi=(t,e)=>{let n=ne,i=ne,o=!1,s=!1,r=!1;function l(u){n(),i();const{onInteractOutside:f,onInteractOutsideStart:b,enabled:v}=u;if(!v)return;function p(w){f&&At(w,t)&&(b==null||b(w));const E=w.target;Xe(E)&&tn(t,E)&&(s=!0),o=!0}function y(w){f==null||f(w)}const T=Ui(t);if(typeof PointerEvent<"u"){const w=E=>{i();const _=x=>{a(x)&&y(x),c()};if(E.pointerType==="touch"){i=ee(T,"click",_,{capture:!0,once:!0});return}_(E)};n=He(ee(T,"pointerdown",p,!0),ee(T,"pointerup",w,!0))}else{const w=_=>{r?r=!1:a(_)&&y(_),c()},E=_=>{r=!0,a(_)&&y(_),c()};n=He(ee(T,"mousedown",p,!0),ee(T,"mouseup",w,!0),ee(T,"touchstart",p,!0),ee(T,"touchend",E,!0))}}function a(u){return!!(o&&!s&&At(u,t))}function c(){o=!1,s=!1}return l(e),{update:l,destroy(){n(),i()}}};function At(t,e){if("button"in t&&t.button>0)return!1;const n=t.target;if(!Xe(n))return!1;const i=n.ownerDocument;return!i||!i.documentElement.contains(n)?!1:e&&!tn(e,n)}function tn(t,e){return t===e||t.contains(e)}function Ui(t){return(t==null?void 0:t.ownerDocument)??document}const qi={orientation:"horizontal",decorative:!1},go=t=>{const e={...qi,...t},n=un(e),{orientation:i,decorative:o}=n;return{elements:{root:rn("separator",{stores:[i,o],returned:([r,l])=>({role:l?"none":"separator","aria-orientation":r==="vertical"?r:void 0,"aria-hidden":l,"data-orientation":r})})},options:n}};function Gi(t,e){const n=[];return e.builders.forEach(i=>{const o=i.action(t);o&&n.push(o)}),{destroy:()=>{n.forEach(i=>{i.destroy&&i.destroy()})}}}function Nt(t){const e={};return t.forEach(n=>{Object.keys(n).forEach(i=>{i!=="action"&&(e[i]=n[i])})}),e}function Yi(t){let e=t[1]?"a":"button",n,i,o=(t[1]?"a":"button")&&Ke(t);return{c(){o&&o.c(),n=ue()},l(s){o&&o.l(s),n=ue()},m(s,r){o&&o.m(s,r),we(s,n,r),i=!0},p(s,r){s[1],e?De(e,s[1]?"a":"button")?(o.d(1),o=Ke(s),e=s[1]?"a":"button",o.c(),o.m(n.parentNode,n)):o.p(s,r):(o=Ke(s),e=s[1]?"a":"button",o.c(),o.m(n.parentNode,n))},i(s){i||(X(o,s),i=!0)},o(s){Y(o,s),i=!1},d(s){s&&ie(n),o&&o.d(s)}}}function Xi(t){let e=t[1]?"a":"button",n,i,o=(t[1]?"a":"button")&&ze(t);return{c(){o&&o.c(),n=ue()},l(s){o&&o.l(s),n=ue()},m(s,r){o&&o.m(s,r),we(s,n,r),i=!0},p(s,r){s[1],e?De(e,s[1]?"a":"button")?(o.d(1),o=ze(s),e=s[1]?"a":"button",o.c(),o.m(n.parentNode,n)):o.p(s,r):(o=ze(s),e=s[1]?"a":"button",o.c(),o.m(n.parentNode,n))},i(s){i||(X(o,s),i=!0)},o(s){Y(o,s),i=!1},d(s){s&&ie(n),o&&o.d(s)}}}function Ke(t){let e,n,i,o,s;const r=t[7].default,l=Ze(r,t,t[6],null);let a=[{type:n=t[1]?void 0:t[2]},{href:t[1]},{tabindex:"0"},t[5],t[4]],c={};for(let u=0;u{r[u]=null}),dn(),n=r[e],n?n.p(a,c):(n=r[e]=s[e](a),n.c()),X(n,1),n.m(i.parentNode,i))},i(a){o||(X(n),o=!0)},o(a){Y(n),o=!1},d(a){a&&ie(i),r[e].d(a)}}}function Zi(t,e,n){const i=["href","type","builders","el"];let o=Oe(e,i),{$$slots:s={},$$scope:r}=e,{href:l=void 0}=e,{type:a=void 0}=e,{builders:c=[]}=e,{el:u=void 0}=e;const f={"data-button-root":""};function b(h){R.call(this,t,h)}function v(h){R.call(this,t,h)}function p(h){R.call(this,t,h)}function y(h){R.call(this,t,h)}function T(h){R.call(this,t,h)}function w(h){R.call(this,t,h)}function E(h){R.call(this,t,h)}function _(h){R.call(this,t,h)}function x(h){R.call(this,t,h)}function N(h){R.call(this,t,h)}function F(h){R.call(this,t,h)}function M(h){R.call(this,t,h)}function j(h){R.call(this,t,h)}function I(h){R.call(this,t,h)}function D(h){R.call(this,t,h)}function S(h){R.call(this,t,h)}function d(h){R.call(this,t,h)}function m(h){R.call(this,t,h)}function g(h){R.call(this,t,h)}function O(h){R.call(this,t,h)}function P(h){ft[h?"unshift":"push"](()=>{u=h,n(0,u)})}function A(h){ft[h?"unshift":"push"](()=>{u=h,n(0,u)})}return t.$$set=h=>{e=oe(oe({},e),kt(h)),n(5,o=Oe(e,i)),"href"in h&&n(1,l=h.href),"type"in h&&n(2,a=h.type),"builders"in h&&n(3,c=h.builders),"el"in h&&n(0,u=h.el),"$$scope"in h&&n(6,r=h.$$scope)},[u,l,a,c,f,o,r,s,b,v,p,y,T,w,E,_,x,N,F,M,j,I,D,S,d,m,g,O,P,A]}let Qi=class extends Lt{constructor(e){super(),It(this,e,Zi,Ji,De,{href:1,type:2,builders:3,el:0})}};function wo(t){return(e={})=>$i(t,e)}function $i(t,e){const i={...{side:"bottom",align:"center",sideOffset:0,alignOffset:0,sameWidth:!1,avoidCollisions:!0,collisionPadding:8,fitViewport:!1,strategy:"absolute",overlap:!1},...e};t.update(o=>({...o,placement:eo(i.side,i.align),offset:{...o.offset,mainAxis:i.sideOffset,crossAxis:i.alignOffset},gutter:0,sameWidth:i.sameWidth,flip:i.avoidCollisions,overflowPadding:i.collisionPadding,boundary:i.collisionBoundary,fitViewport:i.fitViewport,strategy:i.strategy,overlap:i.overlap}))}function eo(t,e){return e==="center"?t:`${t}-${e}`}function to(t){let e;const n=t[5].default,i=Ze(n,t,t[8],null);return{c(){i&&i.c()},l(o){i&&i.l(o)},m(o,s){i&&i.m(o,s),e=!0},p(o,s){i&&i.p&&(!e||s&256)&&Qe(i,n,o,o[8],e?et(n,o[8],s,null):$e(o[8]),null)},i(o){e||(X(i,o),e=!0)},o(o){Y(i,o),e=!1},d(o){i&&i.d(o)}}}function no(t){let e,n;const i=[{builders:t[3]},{class:dt(lt({variant:t[1],size:t[2],className:t[0]}))},{type:"button"},t[4]];let o={$$slots:{default:[to]},$$scope:{ctx:t}};for(let s=0;s{e=oe(oe({},e),kt(v)),n(4,o=Oe(e,i)),"class"in v&&n(0,l=v.class),"variant"in v&&n(1,a=v.variant),"size"in v&&n(2,c=v.size),"builders"in v&&n(3,u=v.builders),"$$scope"in v&&n(8,r=v.$$scope)},[l,a,c,u,o,s,f,b,r]}class To extends Lt{constructor(e){super(),It(this,e,io,no,De,{class:0,variant:1,size:2,builders:3})}}export{To as B,Mt as a,zi as b,go as c,vo as d,wo as e,uo as f,ho as g,bo as h,co as p,mo as r,ht as s,po as u,fo as w};