import{w as Rt,d as jt,g as se,r as ot}from"./D5tH3th7.js";import{a as ce,o as le}from"./DWud6uKx.js";import{aC as ae}from"./CQR64lqe.js";const ue=()=>performance.now(),V={tick:t=>requestAnimationFrame(t),now:()=>ue(),tasks:new Set};function zt(){const t=V.now();V.tasks.forEach(e=>{e.c(t)||(V.tasks.delete(e),e.f())}),V.tasks.size!==0&&V.tick(zt)}function jn(t){let e;return V.tasks.size===0&&V.tick(zt),{promise:new Promise(n=>{V.tasks.add(e={c:t,f:n})}),abort(){V.tasks.delete(e)}}}const fe=Rt(!1);function zn(){fe.update(t=>!t)}function de(t){return Object.keys(t).reduce((e,n)=>t[n]===void 0?e:e+`${n}:${t[n]};`,"")}function Un(t){return t?!0:void 0}de({position:"absolute",opacity:0,"pointer-events":"none",margin:0,transform:"translateX(-100%)"});function qn(t){if(t!==null)return""}function Ut(...t){return(...e)=>{for(const n of t)typeof n=="function"&&n(...e)}}function D(){}function me(t,...e){const n={};for(const o of Object.keys(t))e.includes(o)||(n[o]=t[o]);return n}function ct(t){const e={};for(const n in t){const o=t[n];o!==void 0&&(e[n]=o)}return e}function Mt(t){function e(n){return n(t),()=>{}}return{subscribe:e}}const lt=t=>new Proxy(t,{get(e,n,o){return Reflect.get(e,n,o)},ownKeys(e){return Reflect.ownKeys(e).filter(n=>n!=="action")}}),Ft=t=>typeof t=="function";pe("empty");function pe(t,e){const{stores:n,action:o,returned:r}=e??{},i=(()=>{if(n&&r)return jt(n,l=>{const c=r(l);if(Ft(c)){const a=(...u)=>lt(ct({...c(...u),[`data-melt-${t}`]:"",action:o??D}));return a.action=o??D,a}return lt(ct({...c,[`data-melt-${t}`]:"",action:o??D}))});{const c=r?.();if(Ft(c)){const a=(...u)=>lt(ct({...c(...u),[`data-melt-${t}`]:"",action:o??D}));return a.action=o??D,Mt(a)}return Mt(lt(ct({...c,[`data-melt-${t}`]:"",action:o??D})))}})(),s=o??(()=>{});return s.subscribe=i.subscribe,s}function Kn(t){const e=i=>i?`${t}-${i}`:t,n=i=>`data-melt-${t}${i?`-${i}`:""}`,o=i=>`[data-melt-${t}${i?`-${i}`:""}]`;return{name:e,attribute:n,selector:o,getEl:i=>document.querySelector(o(i))}}const Yn=typeof document<"u",he=t=>typeof t=="function";function Xn(t){return t instanceof Document}function qt(t){return t instanceof ShadowRoot}function Kt(t){return t instanceof Element}function q(t){return t instanceof HTMLElement}function Gn(t){const e=t.getAttribute("aria-disabled"),n=t.getAttribute("disabled"),o=t.hasAttribute("data-disabled");return!!(e==="true"||n!==null||o)}function Jn(t){return t.pointerType==="touch"}function St(t){return t!==null&&typeof t=="object"}function ge(t){return St(t)&&"subscribe"in t}function ye(t){if(!q(t))return!1;const e=t.getRootNode();return e===document?!0:qt(e)?e.ownerDocument===document:!1}function xt(t,e,n,o){const r=Array.isArray(e)?e:[e];return r.forEach(i=>t.addEventListener(i,n,o)),()=>{r.forEach(i=>t.removeEventListener(i,n,o))}}function Qn(t,e,n,o){const r=Array.isArray(e)?e:[e];if(typeof n=="function"){const i=be(s=>n(s));return r.forEach(s=>t.addEventListener(s,i,o)),()=>{r.forEach(s=>t.removeEventListener(s,i,o))}}return()=>void 0}function we(t){const e=t.currentTarget;if(!q(e))return null;const n=new CustomEvent(`m-${t.type}`,{detail:{originalEvent:t},cancelable:!0});return e.dispatchEvent(n),n}function be(t){return e=>{if(!we(e)?.defaultPrevented)return t(e)}}const Zn=t=>{try{le(t)}catch{return t}},xe=t=>{try{ce(t)}catch{return t}};function it(t){return{...t,get:()=>se(t)}}it.writable=function(t){const e=Rt(t);let n=t;return{subscribe:e.subscribe,set(o){e.set(o),n=o},update(o){const r=o(n);e.set(r),n=r},get(){return n}}};it.derived=function(t,e){const n=new Map,o=()=>{const i=Array.isArray(t)?t.map(s=>s.get()):t.get();return e(i)};return{get:o,subscribe:i=>{const s=[];return(Array.isArray(t)?t:[t]).forEach(c=>{s.push(c.subscribe(()=>{i(o())}))}),i(o()),n.set(i,s),()=>{const c=n.get(i);if(c)for(const a of c)a();n.delete(i)}}}};const to=(t,e)=>{const n=it(t),o=(i,s)=>{n.update(l=>{const c=i(l);let a=c;return e&&(a=e({curr:l,next:c})),s?.(a),a})};return{...n,update:o,set:i=>{o(()=>i)}}};let ve="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ae=(t=21)=>{let e="",n=t|0;for(;n--;)e+=ve[Math.random()*64|0];return e};function Ee(){return Ae(10)}function eo(t){return t.reduce((e,n)=>(e[n]=Ee(),e),{})}const j={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SPACE:" ",TAB:"Tab"},Oe=[j.ARROW_DOWN,j.PAGE_UP,j.HOME],Re=[j.ARROW_UP,j.PAGE_DOWN,j.END],no=[...Oe,...Re],oo=[j.ENTER,j.SPACE];function wt(t,e=500){let n;const o=(...r)=>{clearTimeout(n),n=setTimeout(()=>t(...r),e)};return o.destroy=()=>clearTimeout(n),o}function Se(t){const e=t.slice();return e.sort(Pe),De(e)}function De(t){if(t.length<=1)return t.slice();const e=[];for(let o=0;o=2;){const i=e[e.length-1],s=e[e.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))e.pop();else break}e.push(r)}e.pop();const n=[];for(let o=t.length-1;o>=0;o--){const r=t[o];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(r.y-s.y)>=(i.y-s.y)*(r.x-s.x))n.pop();else break}n.push(r)}return n.pop(),e.length==1&&n.length==1&&e[0].x==n[0].x&&e[0].y==n[0].y?e:e.concat(n)}function Pe(t,e){return t.xe.x?1:t.ye.y?1:0}function Te(t){const e=t.getBoundingClientRect();return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.right,y:e.bottom},{x:e.left,y:e.bottom}]}function ro(t){const e=t.flatMap(n=>Te(n));return Se(e)}function Ce(t,e){let n=!1;for(let o=0,r=e.length-1;ot.y!=c>t.y&&t.x<(l-i)*(t.y-s)/(c-s)+i&&(n=!n)}return n}function Le(t,e,n={}){const{skipFirstRun:o}=n;let r=!0,i;const s=jt(t,c=>{i?.(),r&&o?r=!1:i=e(c)}).subscribe(D),l=()=>{s(),i?.()};return xe(l),l}function io(t){const e={};return Object.keys(t).forEach(n=>{const o=n,r=t[o];e[o]=it(Rt(r))}),e}function ke(t){let e=t.parentElement;for(;q(e)&&!e.hasAttribute("data-portal");)e=e.parentElement;return e||"body"}function so(t,e){return e!==void 0?e:ke(t)==="body"?document.body:null}function Yt(t,e){return t===e||t.contains(e)}function Me(t){return t?.ownerDocument??document}function co(t,e){return e?Ce({x:t.clientX,y:t.clientY},e):!1}ot(!1),ot(!1),ot(void 0),ot(void 0);const ut=new Map,lo=((t,e={})=>{let n=D;function o(r={}){n();const i={behaviorType:"close",...r},s=ge(i.behaviorType)?i.behaviorType:it(ot(i.behaviorType));ut.set(t,s),n=Ut(xt(document,"keydown",c=>{if(c.key!==j.ESCAPE||!Fe(t))return;const a=c.target;q(a)&&(c.preventDefault(),!$e(c,i.ignore)&&We(s.get())&&i.handler?.(c))},{passive:!1}),Le(s,c=>{c==="close"||c==="defer-otherwise-close"&&[...ut.keys()][0]===t?t.dataset.escapee="":delete t.dataset.escapee}),s.destroy||D)}return o(e),{update:o,destroy(){ut.delete(t),delete t.dataset.escapee,n()}}}),Fe=t=>{const e=[...ut],n=e.findLast(([r,i])=>{const s=i.get();return s==="close"||s==="ignore"});if(n)return n[0]===t;const[o]=e[0];return o===t},$e=(t,e)=>e?!!(he(e)&&e(t)||Array.isArray(e)&&e.some(n=>t.target===n)):!1,We=t=>t==="close"||t==="defer-otherwise-close",K=Math.min,C=Math.max,ft=Math.round,at=Math.floor,H=t=>({x:t,y:t}),He={left:"right",right:"left",bottom:"top",top:"bottom"},Ne={start:"end",end:"start"};function vt(t,e,n){return C(t,K(e,n))}function tt(t,e){return typeof t=="function"?t(e):t}function Y(t){return t.split("-")[0]}function et(t){return t.split("-")[1]}function Xt(t){return t==="x"?"y":"x"}function Dt(t){return t==="y"?"height":"width"}const Ie=new Set(["top","bottom"]);function B(t){return Ie.has(Y(t))?"y":"x"}function Pt(t){return Xt(B(t))}function _e(t,e,n){n===void 0&&(n=!1);const o=et(t),r=Pt(t),i=Dt(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=dt(s)),[s,dt(s)]}function Ve(t){const e=dt(t);return[At(t),e,At(e)]}function At(t){return t.replace(/start|end/g,e=>Ne[e])}const $t=["left","right"],Wt=["right","left"],Be=["top","bottom"],je=["bottom","top"];function ze(t,e,n){switch(t){case"top":case"bottom":return n?e?Wt:$t:e?$t:Wt;case"left":case"right":return e?Be:je;default:return[]}}function Ue(t,e,n,o){const r=et(t);let i=ze(Y(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(At)))),i}function dt(t){return t.replace(/left|right|bottom|top/g,e=>He[e])}function qe(t){return{top:0,right:0,bottom:0,left:0,...t}}function Gt(t){return typeof t!="number"?qe(t):{top:t,right:t,bottom:t,left:t}}function mt(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function Ht(t,e,n){let{reference:o,floating:r}=t;const i=B(e),s=Pt(e),l=Dt(s),c=Y(e),a=i==="y",u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,m=o[l]/2-r[l]/2;let f;switch(c){case"top":f={x:u,y:o.y-r.height};break;case"bottom":f={x:u,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-r.width,y:d};break;default:f={x:o.x,y:o.y}}switch(et(e)){case"start":f[s]-=m*(n&&a?-1:1);break;case"end":f[s]+=m*(n&&a?-1:1);break}return f}const Ke=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:d}=Ht(a,o,c),m=o,f={},h=0;for(let g=0;g({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:l,middlewareData:c}=e,{element:a,padding:u=0}=tt(t,e)||{};if(a==null)return{};const d=Gt(u),m={x:n,y:o},f=Pt(r),h=Dt(f),g=await s.getDimensions(a),y=f==="y",p=y?"top":"left",w=y?"bottom":"right",b=y?"clientHeight":"clientWidth",v=i.reference[h]+i.reference[f]-m[f]-i.floating[h],x=m[f]-i.reference[f],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let A=O?O[b]:0;(!A||!await(s.isElement==null?void 0:s.isElement(O)))&&(A=l.floating[b]||i.floating[h]);const R=v/2-x/2,P=A/2-g[h]/2-1,E=K(d[p],P),k=K(d[w],P),T=E,z=A-g[h]-k,S=A/2-g[h]/2+R,G=vt(T,S,z),_=!c.arrow&&et(r)!=null&&S!==G&&i.reference[h]/2-(SS<=0)){var k,T;const S=(((k=i.flip)==null?void 0:k.index)||0)+1,G=A[S];if(G&&(!(d==="alignment"?w!==B(G):!1)||E.every(F=>B(F.placement)===w?F.overflows[0]>0:!0)))return{data:{index:S,overflows:E},reset:{placement:G}};let _=(T=E.filter(M=>M.overflows[0]<=0).sort((M,F)=>M.overflows[1]-F.overflows[1])[0])==null?void 0:T.placement;if(!_)switch(f){case"bestFit":{var z;const M=(z=E.filter(F=>{if(O){const U=B(F.placement);return U===w||U==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(U=>U>0).reduce((U,ie)=>U+ie,0)]).sort((F,U)=>F[1]-U[1])[0])==null?void 0:z[0];M&&(_=M);break}case"initialPlacement":_=l;break}if(r!==_)return{reset:{placement:_}}}return{}}}},Ge=new Set(["left","top"]);async function Je(t,e){const{placement:n,platform:o,elements:r}=t,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=Y(n),l=et(n),c=B(n)==="y",a=Ge.has(s)?-1:1,u=i&&c?-1:1,d=tt(e,t);let{mainAxis:m,crossAxis:f,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof h=="number"&&(f=l==="end"?h*-1:h),c?{x:f*u,y:m*a}:{x:m*a,y:f*u}}const Qe=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:l}=e,c=await Je(e,t);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},Ze=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:y=>{let{x:p,y:w}=y;return{x:p,y:w}}},...c}=tt(t,e),a={x:n,y:o},u=await Tt(e,c),d=B(Y(r)),m=Xt(d);let f=a[m],h=a[d];if(i){const y=m==="y"?"top":"left",p=m==="y"?"bottom":"right",w=f+u[y],b=f-u[p];f=vt(w,f,b)}if(s){const y=d==="y"?"top":"left",p=d==="y"?"bottom":"right",w=h+u[y],b=h-u[p];h=vt(w,h,b)}const g=l.fn({...e,[m]:f,[d]:h});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[m]:i,[d]:s}}}}}},tn=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:l}=e,{apply:c=()=>{},...a}=tt(t,e),u=await Tt(e,a),d=Y(r),m=et(r),f=B(r)==="y",{width:h,height:g}=i.floating;let y,p;d==="top"||d==="bottom"?(y=d,p=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(p=d,y=m==="end"?"top":"bottom");const w=g-u.top-u.bottom,b=h-u.left-u.right,v=K(g-u[y],w),x=K(h-u[p],b),O=!e.middlewareData.shift;let A=v,R=x;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(R=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(A=w),O&&!m){const E=C(u.left,0),k=C(u.right,0),T=C(u.top,0),z=C(u.bottom,0);f?R=h-2*(E!==0||k!==0?E+k:C(u.left,u.right)):A=g-2*(T!==0||z!==0?T+z:C(u.top,u.bottom))}await c({...e,availableWidth:R,availableHeight:A});const P=await s.getDimensions(l.floating);return h!==P.width||g!==P.height?{reset:{rects:!0}}:{}}}};function pt(){return typeof window<"u"}function nt(t){return Jt(t)?(t.nodeName||"").toLowerCase():"#document"}function L(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function I(t){var e;return(e=(Jt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Jt(t){return pt()?t instanceof Node||t instanceof L(t).Node:!1}function $(t){return pt()?t instanceof Element||t instanceof L(t).Element:!1}function N(t){return pt()?t instanceof HTMLElement||t instanceof L(t).HTMLElement:!1}function Nt(t){return!pt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof L(t).ShadowRoot}const en=new Set(["inline","contents"]);function st(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=W(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!en.has(r)}const nn=new Set(["table","td","th"]);function on(t){return nn.has(nt(t))}const rn=[":popover-open",":modal"];function ht(t){return rn.some(e=>{try{return t.matches(e)}catch{return!1}})}const sn=["transform","translate","scale","rotate","perspective"],cn=["transform","translate","scale","rotate","perspective","filter"],ln=["paint","layout","strict","content"];function Ct(t){const e=Lt(),n=$(t)?W(t):t;return sn.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||cn.some(o=>(n.willChange||"").includes(o))||ln.some(o=>(n.contain||"").includes(o))}function an(t){let e=X(t);for(;N(e)&&!Z(e);){if(Ct(e))return e;if(ht(e))return null;e=X(e)}return null}function Lt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const un=new Set(["html","body","#document"]);function Z(t){return un.has(nt(t))}function W(t){return L(t).getComputedStyle(t)}function gt(t){return $(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function X(t){if(nt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Nt(t)&&t.host||I(t);return Nt(e)?e.host:e}function Qt(t){const e=X(t);return Z(e)?t.ownerDocument?t.ownerDocument.body:t.body:N(e)&&st(e)?e:Qt(e)}function rt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Qt(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=L(r);if(i){const l=Et(s);return e.concat(s,s.visualViewport||[],st(r)?r:[],l&&n?rt(l):[])}return e.concat(r,rt(r,[],n))}function Et(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Zt(t){const e=W(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=N(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,l=ft(n)!==i||ft(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function kt(t){return $(t)?t:t.contextElement}function Q(t){const e=kt(t);if(!N(e))return H(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=Zt(e);let s=(i?ft(n.width):n.width)/o,l=(i?ft(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const fn=H(0);function te(t){const e=L(t);return!Lt()||!e.visualViewport?fn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function dn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==L(t)?!1:e}function J(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=kt(t);let s=H(1);e&&(o?$(o)&&(s=Q(o)):s=Q(t));const l=dn(i,n,o)?te(i):H(0);let c=(r.left+l.x)/s.x,a=(r.top+l.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(i){const m=L(i),f=o&&$(o)?L(o):o;let h=m,g=Et(h);for(;g&&o&&f!==h;){const y=Q(g),p=g.getBoundingClientRect(),w=W(g),b=p.left+(g.clientLeft+parseFloat(w.paddingLeft))*y.x,v=p.top+(g.clientTop+parseFloat(w.paddingTop))*y.y;c*=y.x,a*=y.y,u*=y.x,d*=y.y,c+=b,a+=v,h=L(g),g=Et(h)}}return mt({width:u,height:d,x:c,y:a})}function yt(t,e){const n=gt(t).scrollLeft;return e?e.left+n:J(I(t)).left+n}function ee(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-yt(t,n),r=n.top+e.scrollTop;return{x:o,y:r}}function mn(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=I(o),l=e?ht(e.floating):!1;if(o===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},a=H(1);const u=H(0),d=N(o);if((d||!d&&!i)&&((nt(o)!=="body"||st(s))&&(c=gt(o)),N(o))){const f=J(o);a=Q(o),u.x=f.x+o.clientLeft,u.y=f.y+o.clientTop}const m=s&&!d&&!i?ee(s,c):H(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+u.x+m.x,y:n.y*a.y-c.scrollTop*a.y+u.y+m.y}}function pn(t){return Array.from(t.getClientRects())}function hn(t){const e=I(t),n=gt(t),o=t.ownerDocument.body,r=C(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=C(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+yt(t);const l=-n.scrollTop;return W(o).direction==="rtl"&&(s+=C(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}const It=25;function gn(t,e){const n=L(t),o=I(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(r){i=r.width,s=r.height;const u=Lt();(!u||u&&e==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}const a=yt(o);if(a<=0){const u=o.ownerDocument,d=u.body,m=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,h=Math.abs(o.clientWidth-d.clientWidth-f);h<=It&&(i-=h)}else a<=It&&(i+=a);return{width:i,height:s,x:l,y:c}}const yn=new Set(["absolute","fixed"]);function wn(t,e){const n=J(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=N(t)?Q(t):H(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,c=r*i.x,a=o*i.y;return{width:s,height:l,x:c,y:a}}function _t(t,e,n){let o;if(e==="viewport")o=gn(t,n);else if(e==="document")o=hn(I(t));else if($(e))o=wn(e,n);else{const r=te(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return mt(o)}function ne(t,e){const n=X(t);return n===e||!$(n)||Z(n)?!1:W(n).position==="fixed"||ne(n,e)}function bn(t,e){const n=e.get(t);if(n)return n;let o=rt(t,[],!1).filter(l=>$(l)&&nt(l)!=="body"),r=null;const i=W(t).position==="fixed";let s=i?X(t):t;for(;$(s)&&!Z(s);){const l=W(s),c=Ct(s);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&!!r&&yn.has(r.position)||st(s)&&!c&&ne(t,s))?o=o.filter(u=>u!==s):r=l,s=X(s)}return e.set(t,o),o}function xn(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?ht(e)?[]:bn(e,this._c):[].concat(n),o],l=s[0],c=s.reduce((a,u)=>{const d=_t(e,u,r);return a.top=C(d.top,a.top),a.right=K(d.right,a.right),a.bottom=K(d.bottom,a.bottom),a.left=C(d.left,a.left),a},_t(e,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function vn(t){const{width:e,height:n}=Zt(t);return{width:e,height:n}}function An(t,e,n){const o=N(e),r=I(e),i=n==="fixed",s=J(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=H(0);function a(){c.x=yt(r)}if(o||!o&&!i)if((nt(e)!=="body"||st(r))&&(l=gt(e)),o){const f=J(e,!0,i,e);c.x=f.x+e.clientLeft,c.y=f.y+e.clientTop}else r&&a();i&&!o&&r&&a();const u=r&&!o&&!i?ee(r,l):H(0),d=s.left+l.scrollLeft-c.x-u.x,m=s.top+l.scrollTop-c.y-u.y;return{x:d,y:m,width:s.width,height:s.height}}function bt(t){return W(t).position==="static"}function Vt(t,e){if(!N(t)||W(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return I(t)===n&&(n=n.ownerDocument.body),n}function oe(t,e){const n=L(t);if(ht(t))return n;if(!N(t)){let r=X(t);for(;r&&!Z(r);){if($(r)&&!bt(r))return r;r=X(r)}return n}let o=Vt(t,e);for(;o&&on(o)&&bt(o);)o=Vt(o,e);return o&&Z(o)&&bt(o)&&!Ct(o)?n:o||an(t)||n}const En=async function(t){const e=this.getOffsetParent||oe,n=this.getDimensions,o=await n(t.floating);return{reference:An(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function On(t){return W(t).direction==="rtl"}const Rn={convertOffsetParentRelativeRectToViewportRelativeRect:mn,getDocumentElement:I,getClippingRect:xn,getOffsetParent:oe,getElementRects:En,getClientRects:pn,getDimensions:vn,getScale:Q,isElement:$,isRTL:On};function re(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Sn(t,e){let n=null,o;const r=I(t);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const a=t.getBoundingClientRect(),{left:u,top:d,width:m,height:f}=a;if(l||e(),!m||!f)return;const h=at(d),g=at(r.clientWidth-(u+m)),y=at(r.clientHeight-(d+f)),p=at(u),b={rootMargin:-h+"px "+-g+"px "+-y+"px "+-p+"px",threshold:C(0,K(1,c))||1};let v=!0;function x(O){const A=O[0].intersectionRatio;if(A!==c){if(!v)return s();A?s(!1,A):o=setTimeout(()=>{s(!1,1e-7)},1e3)}A===1&&!re(a,t.getBoundingClientRect())&&s(),v=!1}try{n=new IntersectionObserver(x,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(x,b)}n.observe(t)}return s(!0),i}function Dn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,a=kt(t),u=r||i?[...a?rt(a):[],...rt(e)]:[];u.forEach(p=>{r&&p.addEventListener("scroll",n,{passive:!0}),i&&p.addEventListener("resize",n)});const d=a&&l?Sn(a,n):null;let m=-1,f=null;s&&(f=new ResizeObserver(p=>{let[w]=p;w&&w.target===a&&f&&(f.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=f)==null||b.observe(e)})),n()}),a&&!c&&f.observe(a),f.observe(e));let h,g=c?J(t):null;c&&y();function y(){const p=J(t);g&&!re(g,p)&&n(),g=p,h=requestAnimationFrame(y)}return n(),()=>{var p;u.forEach(w=>{r&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),d?.(),(p=f)==null||p.disconnect(),f=null,c&&cancelAnimationFrame(h)}}const Pn=Qe,Tn=Ze,Cn=Xe,Ln=tn,kn=Ye,Mn=(t,e,n)=>{const o=new Map,r={platform:Rn,...n},i={...r.platform,_c:o};return Ke(t,e,{...r,platform:i})},Fn={strategy:"absolute",placement:"top",gutter:5,flip:!0,sameWidth:!1,overflowPadding:8},$n={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function Wn(t){return St(t)&&"getBoundingClientRect"in t}function ao(t,e,n={}){if(!e||!t||n===null)return{destroy:D};const o={...Fn,...n},r=e.querySelector("[data-arrow=true]"),i=[];o.flip&&i.push(Cn({boundary:o.boundary,padding:o.overflowPadding,...St(o.flip)&&o.flip}));const s=q(r)?r.offsetHeight/2:0;if(o.gutter||o.offset){const c=o.gutter?{mainAxis:o.gutter}:o.offset;c?.mainAxis!=null&&(c.mainAxis+=s),i.push(Pn(c))}i.push(Tn({boundary:o.boundary,crossAxis:o.overlap,padding:o.overflowPadding})),r&&i.push(kn({element:r,padding:8})),i.push(Ln({padding:o.overflowPadding,apply({rects:c,availableHeight:a,availableWidth:u}){o.sameWidth&&Object.assign(e.style,{width:`${Math.round(c.reference.width)}px`,minWidth:"unset"}),o.fitViewport&&Object.assign(e.style,{maxWidth:`${u}px`,maxHeight:`${a}px`})}}));function l(){if(!t||!e||!Wn(t)&&!ye(t))return;const{placement:c,strategy:a}=o;Mn(t,e,{placement:c,middleware:i,strategy:a}).then(u=>{const d=Math.round(u.x),m=Math.round(u.y),[f,h]=Hn(u.placement);if(e.setAttribute("data-side",f),e.setAttribute("data-align",h),Object.assign(e.style,{position:o.strategy,top:`${m}px`,left:`${d}px`}),q(r)&&u.middlewareData.arrow){const{x:g,y}=u.middlewareData.arrow,p=u.placement.split("-")[0];r.setAttribute("data-side",p),Object.assign(r.style,{position:"absolute",left:g!=null?`${g}px`:"",top:y!=null?`${y}px`:"",[p]:`calc(100% - ${s}px)`,transform:$n[p],backgroundColor:"inherit",zIndex:"inherit"})}return u})}return Object.assign(e.style,{position:o.strategy}),{destroy:Dn(t,e,l)}}function Hn(t){const[e,n="center"]=t.split("-");return[e,n]}const uo=((t,e="body")=>{let n;if(!q(e)&&typeof e!="string")return{destroy:D};async function o(i="body"){if(e=i,typeof e=="string"){if(n=document.querySelector(e),n===null&&(await ae(),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 r(){t.remove()}return o(e),{update:o,destroy:r}}),Ot=new Set,fo=((t,e={})=>{let n=D,o=D,r=D,i=D;Ot.add(t);const s=Me(t);let l=!1,c=!1;const a={pointerdown:!1,pointerup:!1,mousedown:!1,mouseup:!1,touchstart:!1,touchend:!1,click:!1},u=()=>{for(const p in a)a[p]=!1},d=()=>{for(const p of Object.values(a))if(p)return!0;return!1},m=(p,w)=>xt(s,p,b=>{a[p]=!0,w?.(b)},!0),f=(p,w)=>xt(s,p,b=>{a[p]=!1;const v={};q(b.target)&&qt(b.target.shadowRoot)&&(v.shadowTarget=b.composedPath()[0]),w?.(b,v)});function h(p){n(),o(),r(),i(),u();const{onInteractOutside:w,onInteractOutsideStart:b,enabled:v}={enabled:!0,...p};if(!v)return;let x=!1;const O=wt((E,k)=>{if(!x||d())return;w&&Bt(E,t)&&b?.(E);const T=k?.shadowTarget?k.shadowTarget:E.target;Kt(T)&&Yt(t,T)&&(c=!0),l=!0},10);o=O.destroy;const A=wt(E=>{x&&!d()&&g(E)&&w?.(E),y()},10);r=A.destroy;const R=wt(u,20);i=R.destroy;const P=()=>{x=Nn(t)};n=Ut(m("pointerdown",P),m("mousedown",P),m("touchstart",P),m("pointerup",R),m("mouseup",R),m("touchend",R),m("click",R),f("pointerdown",O),f("mousedown",O),f("touchstart",O),f("pointerup",A),f("mouseup",A),f("touchend",A),f("click",A))}function g(p){return!!(l&&!c&&Bt(p,t))}function y(){l=!1,c=!1}return h(e),{update:h,destroy(){n(),o(),r(),i(),Ot.delete(t)}}});function Bt(t,e){if("button"in t&&t.button>0)return!1;const n=t.target;if(!Kt(n))return!1;const o=n.ownerDocument;return!o||!o.documentElement.contains(n)?!1:e&&!Yt(e,n)}function Nn(t){return Array.from(Ot).at(-1)===t}const In={isDateDisabled:void 0,isDateUnavailable:void 0,value:void 0,preventDeselect:!1,numberOfMonths:1,pagedNavigation:!1,weekStartsOn:0,fixedWeeks:!1,calendarLabel:"Event Date",locale:"en",minValue:void 0,maxValue:void 0,disabled:!1,readonly:!1,weekdayFormat:"narrow"};({...me(In,"isDateDisabled","isDateUnavailable","value","locale","disabled","readonly","minValue","maxValue","weekdayFormat")});export{V as A,zn as B,q as C,it as D,wt as E,he as F,Me as G,ge as H,Yt as I,no as J,j as K,Gn as L,Zn as M,Un as N,oo as S,to as a,Qn as b,Kn as c,Le as d,Ut as e,xt as f,eo as g,Jn as h,fe as i,Kt as j,Xn as k,jn as l,pe as m,Yn as n,me as o,qn as p,so as q,ao as r,de as s,io as t,uo as u,fo as v,lo as w,D as x,ro as y,co as z};