import{r as v,t as mn,j as Y}from"./app-DiP2eDol.js";import{b as Be,d as He,c as hn}from"./index-hVpyGAX_.js";import{c as Ot}from"./createLucideIcon-BkDEFyhH.js";import{u as Xe,P as Re}from"./index-DKUBOKhx.js";import{r as pn}from"./index-OoDD3hVZ.js";import{u as gn}from"./index-ClI6zOFo.js";var vn=mn[" useId ".trim().toString()]||(()=>{}),wn=0;function Mo(e){const[t,n]=v.useState(vn());return Be(()=>{n(r=>r??String(wn++))},[e]),e||(t?`radix-${t}`:"")}/**
* @license lucide-react v0.474.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yn=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ko=Ot("Check",yn);/**
* @license lucide-react v0.474.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xn=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Lo=Ot("ChevronDown",xn);var bn=v.createContext(void 0);function No(e){const t=v.useContext(bn);return e||t||"ltr"}function Do(e,[t,n]){return Math.min(n,Math.max(t,e))}var ke=0;function Fo(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??lt()),document.body.insertAdjacentElement("beforeend",e[1]??lt()),ke++,()=>{ke===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ke--}},[])}function lt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Le="focusScope.autoFocusOnMount",Ne="focusScope.autoFocusOnUnmount",ut={bubbles:!1,cancelable:!0},En="FocusScope",Sn=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...c}=e,[s,m]=v.useState(null),u=He(o),f=He(i),l=v.useRef(null),h=Xe(t,a=>m(a)),d=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let a=function(x){if(d.paused||!s)return;const b=x.target;s.contains(b)?l.current=b:Z(l.current,{select:!0})},p=function(x){if(d.paused||!s)return;const b=x.relatedTarget;b!==null&&(s.contains(b)||Z(l.current,{select:!0}))},g=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&Z(s)};document.addEventListener("focusin",a),document.addEventListener("focusout",p);const y=new MutationObserver(g);return s&&y.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",p),y.disconnect()}}},[r,s,d.paused]),v.useEffect(()=>{if(s){dt.add(d);const a=document.activeElement;if(!s.contains(a)){const g=new CustomEvent(Le,ut);s.addEventListener(Le,u),s.dispatchEvent(g),g.defaultPrevented||(An(Tn(Pt(s)),{select:!0}),document.activeElement===a&&Z(s))}return()=>{s.removeEventListener(Le,u),setTimeout(()=>{const g=new CustomEvent(Ne,ut);s.addEventListener(Ne,f),s.dispatchEvent(g),g.defaultPrevented||Z(a??document.body,{select:!0}),s.removeEventListener(Ne,f),dt.remove(d)},0)}}},[s,u,f,d]);const w=v.useCallback(a=>{if(!n&&!r||d.paused)return;const p=a.key==="Tab"&&!a.altKey&&!a.ctrlKey&&!a.metaKey,g=document.activeElement;if(p&&g){const y=a.currentTarget,[x,b]=Cn(y);x&&b?!a.shiftKey&&g===b?(a.preventDefault(),n&&Z(x,{select:!0})):a.shiftKey&&g===x&&(a.preventDefault(),n&&Z(b,{select:!0})):g===y&&a.preventDefault()}},[n,r,d.paused]);return Y.jsx(Re.div,{tabIndex:-1,...c,ref:h,onKeyDown:w})});Sn.displayName=En;function An(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Z(r,{select:t}),document.activeElement!==n)return}function Cn(e){const t=Pt(e),n=ft(t,e),r=ft(t.reverse(),e);return[n,r]}function Pt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ft(e,t){for(const n of e)if(!Rn(n,{upTo:t}))return n}function Rn(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function On(e){return e instanceof HTMLInputElement&&"select"in e}function Z(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&On(e)&&t&&e.select()}}var dt=Pn();function Pn(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=mt(e,t),e.unshift(t)},remove(t){var n;e=mt(e,t),(n=e[0])==null||n.resume()}}}function mt(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Tn(e){return e.filter(t=>t.tagName!=="A")}const Mn=["top","right","bottom","left"],G=Math.min,I=Math.max,Ee=Math.round,he=Math.floor,z=e=>({x:e,y:e}),kn={left:"right",right:"left",bottom:"top",top:"bottom"},Ln={start:"end",end:"start"};function je(e,t,n){return I(e,G(t,n))}function K(e,t){return typeof e=="function"?e(t):e}function q(e){return e.split("-")[0]}function ce(e){return e.split("-")[1]}function Ue(e){return e==="x"?"y":"x"}function Ke(e){return e==="y"?"height":"width"}function V(e){return["top","bottom"].includes(q(e))?"y":"x"}function qe(e){return Ue(V(e))}function Nn(e,t,n){n===void 0&&(n=!1);const r=ce(e),o=qe(e),i=Ke(o);let c=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=Se(c)),[c,Se(c)]}function Dn(e){const t=Se(e);return[Ve(e),t,Ve(t)]}function Ve(e){return e.replace(/start|end/g,t=>Ln[t])}function Fn(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:c;default:return[]}}function Wn(e,t,n,r){const o=ce(e);let i=Fn(q(e),n==="start",r);return o&&(i=i.map(c=>c+"-"+o),t&&(i=i.concat(i.map(Ve)))),i}function Se(e){return e.replace(/left|right|bottom|top/g,t=>kn[t])}function In(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tt(e){return typeof e!="number"?In(e):{top:e,right:e,bottom:e,left:e}}function Ae(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ht(e,t,n){let{reference:r,floating:o}=e;const i=V(t),c=qe(t),s=Ke(c),m=q(t),u=i==="y",f=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let d;switch(m){case"top":d={x:f,y:r.y-o.height};break;case"bottom":d={x:f,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:l};break;case"left":d={x:r.x-o.width,y:l};break;default:d={x:r.x,y:r.y}}switch(ce(t)){case"start":d[c]-=h*(n&&u?-1:1);break;case"end":d[c]+=h*(n&&u?-1:1);break}return d}const _n=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:c}=n,s=i.filter(Boolean),m=await(c.isRTL==null?void 0:c.isRTL(t));let u=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:l}=ht(u,r,m),h=r,d={},w=0;for(let a=0;a<s.length;a++){const{name:p,fn:g}=s[a],{x:y,y:x,data:b,reset:E}=await g({x:f,y:l,initialPlacement:r,placement:h,strategy:o,middlewareData:d,rects:u,platform:c,elements:{reference:e,floating:t}});f=y??f,l=x??l,d={...d,[p]:{...d[p],...b}},E&&w<=50&&(w++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(u=E.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:l}=ht(u,h,m)),a=-1)}return{x:f,y:l,placement:h,strategy:o,middlewareData:d}};async function le(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:c,elements:s,strategy:m}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:l="floating",altBoundary:h=!1,padding:d=0}=K(t,e),w=Tt(d),p=s[h?l==="floating"?"reference":"floating":l],g=Ae(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(p)))==null||n?p:p.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:m})),y=l==="floating"?{x:r,y:o,width:c.floating.width,height:c.floating.height}:c.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),b=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},E=Ae(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:x,strategy:m}):y);return{top:(g.top-E.top+w.top)/b.y,bottom:(E.bottom-g.bottom+w.bottom)/b.y,left:(g.left-E.left+w.left)/b.x,right:(E.right-g.right+w.right)/b.x}}const $n=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:c,elements:s,middlewareData:m}=t,{element:u,padding:f=0}=K(e,t)||{};if(u==null)return{};const l=Tt(f),h={x:n,y:r},d=qe(o),w=Ke(d),a=await c.getDimensions(u),p=d==="y",g=p?"top":"left",y=p?"bottom":"right",x=p?"clientHeight":"clientWidth",b=i.reference[w]+i.reference[d]-h[d]-i.floating[w],E=h[d]-i.reference[d],S=await(c.getOffsetParent==null?void 0:c.getOffsetParent(u));let A=S?S[x]:0;(!A||!await(c.isElement==null?void 0:c.isElement(S)))&&(A=s.floating[x]||i.floating[w]);const R=b/2-E/2,L=A/2-a[w]/2-1,k=G(l[g],L),D=G(l[y],L),F=k,P=A-a[w]-D,O=A/2-a[w]/2+R,W=je(F,O,P),T=!m.arrow&&ce(o)!=null&&O!==W&&i.reference[w]/2-(O<F?k:D)-a[w]/2<0,M=T?O<F?O-F:O-P:0;return{[d]:h[d]+M,data:{[d]:W,centerOffset:O-W-M,...T&&{alignmentOffset:M}},reset:T}}}),Bn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:c,initialPlacement:s,platform:m,elements:u}=t,{mainAxis:f=!0,crossAxis:l=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:a=!0,...p}=K(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=q(o),y=V(s),x=q(s)===s,b=await(m.isRTL==null?void 0:m.isRTL(u.floating)),E=h||(x||!a?[Se(s)]:Dn(s)),S=w!=="none";!h&&S&&E.push(...Wn(s,a,w,b));const A=[s,...E],R=await le(t,p),L=[];let k=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&L.push(R[g]),l){const O=Nn(o,c,b);L.push(R[O[0]],R[O[1]])}if(k=[...k,{placement:o,overflows:L}],!L.every(O=>O<=0)){var D,F;const O=(((D=i.flip)==null?void 0:D.index)||0)+1,W=A[O];if(W&&(!(l==="alignment"?y!==V(W):!1)||k.every(C=>C.overflows[0]>0&&V(C.placement)===y)))return{data:{index:O,overflows:k},reset:{placement:W}};let T=(F=k.filter(M=>M.overflows[0]<=0).sort((M,C)=>M.overflows[1]-C.overflows[1])[0])==null?void 0:F.placement;if(!T)switch(d){case"bestFit":{var P;const M=(P=k.filter(C=>{if(S){const N=V(C.placement);return N===y||N==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(N=>N>0).reduce((N,H)=>N+H,0)]).sort((C,N)=>C[1]-N[1])[0])==null?void 0:P[0];M&&(T=M);break}case"initialPlacement":T=s;break}if(o!==T)return{reset:{placement:T}}}return{}}}};function pt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gt(e){return Mn.some(t=>e[t]>=0)}const Hn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=K(e,t);switch(r){case"referenceHidden":{const i=await le(t,{...o,elementContext:"reference"}),c=pt(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:gt(c)}}}case"escaped":{const i=await le(t,{...o,altBoundary:!0}),c=pt(i,n.floating);return{data:{escapedOffsets:c,escaped:gt(c)}}}default:return{}}}}};async function jn(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),c=q(n),s=ce(n),m=V(n)==="y",u=["left","top"].includes(c)?-1:1,f=i&&m?-1:1,l=K(t,e);let{mainAxis:h,crossAxis:d,alignmentAxis:w}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return s&&typeof w=="number"&&(d=s==="end"?w*-1:w),m?{x:d*f,y:h*u}:{x:h*u,y:d*f}}const Vn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:c,middlewareData:s}=t,m=await jn(t,e);return c===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+m.x,y:i+m.y,data:{...m,placement:c}}}}},Yn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:s={fn:p=>{let{x:g,y}=p;return{x:g,y}}},...m}=K(e,t),u={x:n,y:r},f=await le(t,m),l=V(q(o)),h=Ue(l);let d=u[h],w=u[l];if(i){const p=h==="y"?"top":"left",g=h==="y"?"bottom":"right",y=d+f[p],x=d-f[g];d=je(y,d,x)}if(c){const p=l==="y"?"top":"left",g=l==="y"?"bottom":"right",y=w+f[p],x=w-f[g];w=je(y,w,x)}const a=s.fn({...t,[h]:d,[l]:w});return{...a,data:{x:a.x-n,y:a.y-r,enabled:{[h]:i,[l]:c}}}}}},zn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:c}=t,{offset:s=0,mainAxis:m=!0,crossAxis:u=!0}=K(e,t),f={x:n,y:r},l=V(o),h=Ue(l);let d=f[h],w=f[l];const a=K(s,t),p=typeof a=="number"?{mainAxis:a,crossAxis:0}:{mainAxis:0,crossAxis:0,...a};if(m){const x=h==="y"?"height":"width",b=i.reference[h]-i.floating[x]+p.mainAxis,E=i.reference[h]+i.reference[x]-p.mainAxis;d<b?d=b:d>E&&(d=E)}if(u){var g,y;const x=h==="y"?"width":"height",b=["top","left"].includes(q(o)),E=i.reference[l]-i.floating[x]+(b&&((g=c.offset)==null?void 0:g[l])||0)+(b?0:p.crossAxis),S=i.reference[l]+i.reference[x]+(b?0:((y=c.offset)==null?void 0:y[l])||0)-(b?p.crossAxis:0);w<E?w=E:w>S&&(w=S)}return{[h]:d,[l]:w}}}},Xn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:c,elements:s}=t,{apply:m=()=>{},...u}=K(e,t),f=await le(t,u),l=q(o),h=ce(o),d=V(o)==="y",{width:w,height:a}=i.floating;let p,g;l==="top"||l==="bottom"?(p=l,g=h===(await(c.isRTL==null?void 0:c.isRTL(s.floating))?"start":"end")?"left":"right"):(g=l,p=h==="end"?"top":"bottom");const y=a-f.top-f.bottom,x=w-f.left-f.right,b=G(a-f[p],y),E=G(w-f[g],x),S=!t.middlewareData.shift;let A=b,R=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=y),S&&!h){const k=I(f.left,0),D=I(f.right,0),F=I(f.top,0),P=I(f.bottom,0);d?R=w-2*(k!==0||D!==0?k+D:I(f.left,f.right)):A=a-2*(F!==0||P!==0?F+P:I(f.top,f.bottom))}await m({...t,availableWidth:R,availableHeight:A});const L=await c.getDimensions(s.floating);return w!==L.width||a!==L.height?{reset:{rects:!0}}:{}}}};function Oe(){return typeof window<"u"}function se(e){return Mt(e)?(e.nodeName||"").toLowerCase():"#document"}function _(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function U(e){var t;return(t=(Mt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mt(e){return Oe()?e instanceof Node||e instanceof _(e).Node:!1}function $(e){return Oe()?e instanceof Element||e instanceof _(e).Element:!1}function X(e){return Oe()?e instanceof HTMLElement||e instanceof _(e).HTMLElement:!1}function vt(e){return!Oe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _(e).ShadowRoot}function fe(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Un(e){return["table","td","th"].includes(se(e))}function Pe(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ze(e){const t=Ge(),n=$(e)?B(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Kn(e){let t=Q(e);for(;X(t)&&!ie(t);){if(Ze(t))return t;if(Pe(t))return null;t=Q(t)}return null}function Ge(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ie(e){return["html","body","#document"].includes(se(e))}function B(e){return _(e).getComputedStyle(e)}function Te(e){return $(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Q(e){if(se(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vt(e)&&e.host||U(e);return vt(t)?t.host:t}function kt(e){const t=Q(e);return ie(t)?e.ownerDocument?e.ownerDocument.body:e.body:X(t)&&fe(t)?t:kt(t)}function ue(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=kt(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),c=_(o);if(i){const s=Ye(c);return t.concat(c,c.visualViewport||[],fe(o)?o:[],s&&n?ue(s):[])}return t.concat(o,ue(o,[],n))}function Ye(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lt(e){const t=B(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=X(e),i=o?e.offsetWidth:n,c=o?e.offsetHeight:r,s=Ee(n)!==i||Ee(r)!==c;return s&&(n=i,r=c),{width:n,height:r,$:s}}function Qe(e){return $(e)?e:e.contextElement}function re(e){const t=Qe(e);if(!X(t))return z(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Lt(t);let c=(i?Ee(n.width):n.width)/r,s=(i?Ee(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!s||!Number.isFinite(s))&&(s=1),{x:c,y:s}}const qn=z(0);function Nt(e){const t=_(e);return!Ge()||!t.visualViewport?qn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_(e)?!1:t}function J(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Qe(e);let c=z(1);t&&(r?$(r)&&(c=re(r)):c=re(e));const s=Zn(i,n,r)?Nt(i):z(0);let m=(o.left+s.x)/c.x,u=(o.top+s.y)/c.y,f=o.width/c.x,l=o.height/c.y;if(i){const h=_(i),d=r&&$(r)?_(r):r;let w=h,a=Ye(w);for(;a&&r&&d!==w;){const p=re(a),g=a.getBoundingClientRect(),y=B(a),x=g.left+(a.clientLeft+parseFloat(y.paddingLeft))*p.x,b=g.top+(a.clientTop+parseFloat(y.paddingTop))*p.y;m*=p.x,u*=p.y,f*=p.x,l*=p.y,m+=x,u+=b,w=_(a),a=Ye(w)}}return Ae({width:f,height:l,x:m,y:u})}function Je(e,t){const n=Te(e).scrollLeft;return t?t.left+n:J(U(e)).left+n}function Dt(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Je(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function Gn(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",c=U(r),s=t?Pe(t.floating):!1;if(r===c||s&&i)return n;let m={scrollLeft:0,scrollTop:0},u=z(1);const f=z(0),l=X(r);if((l||!l&&!i)&&((se(r)!=="body"||fe(c))&&(m=Te(r)),X(r))){const d=J(r);u=re(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}const h=c&&!l&&!i?Dt(c,m,!0):z(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-m.scrollLeft*u.x+f.x+h.x,y:n.y*u.y-m.scrollTop*u.y+f.y+h.y}}function Qn(e){return Array.from(e.getClientRects())}function Jn(e){const t=U(e),n=Te(e),r=e.ownerDocument.body,o=I(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=I(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+Je(e);const s=-n.scrollTop;return B(r).direction==="rtl"&&(c+=I(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:c,y:s}}function er(e,t){const n=_(e),r=U(e),o=n.visualViewport;let i=r.clientWidth,c=r.clientHeight,s=0,m=0;if(o){i=o.width,c=o.height;const u=Ge();(!u||u&&t==="fixed")&&(s=o.offsetLeft,m=o.offsetTop)}return{width:i,height:c,x:s,y:m}}function tr(e,t){const n=J(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=X(e)?re(e):z(1),c=e.clientWidth*i.x,s=e.clientHeight*i.y,m=o*i.x,u=r*i.y;return{width:c,height:s,x:m,y:u}}function wt(e,t,n){let r;if(t==="viewport")r=er(e,n);else if(t==="document")r=Jn(U(e));else if($(t))r=tr(t,n);else{const o=Nt(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ae(r)}function Ft(e,t){const n=Q(e);return n===t||!$(n)||ie(n)?!1:B(n).position==="fixed"||Ft(n,t)}function nr(e,t){const n=t.get(e);if(n)return n;let r=ue(e,[],!1).filter(s=>$(s)&&se(s)!=="body"),o=null;const i=B(e).position==="fixed";let c=i?Q(e):e;for(;$(c)&&!ie(c);){const s=B(c),m=Ze(c);!m&&s.position==="fixed"&&(o=null),(i?!m&&!o:!m&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||fe(c)&&!m&&Ft(e,c))?r=r.filter(f=>f!==c):o=s,c=Q(c)}return t.set(e,r),r}function rr(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?Pe(t)?[]:nr(t,this._c):[].concat(n),r],s=c[0],m=c.reduce((u,f)=>{const l=wt(t,f,o);return u.top=I(l.top,u.top),u.right=G(l.right,u.right),u.bottom=G(l.bottom,u.bottom),u.left=I(l.left,u.left),u},wt(t,s,o));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function or(e){const{width:t,height:n}=Lt(e);return{width:t,height:n}}function ir(e,t,n){const r=X(t),o=U(t),i=n==="fixed",c=J(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const m=z(0);function u(){m.x=Je(o)}if(r||!r&&!i)if((se(t)!=="body"||fe(o))&&(s=Te(t)),r){const d=J(t,!0,i,t);m.x=d.x+t.clientLeft,m.y=d.y+t.clientTop}else o&&u();i&&!r&&o&&u();const f=o&&!r&&!i?Dt(o,s):z(0),l=c.left+s.scrollLeft-m.x-f.x,h=c.top+s.scrollTop-m.y-f.y;return{x:l,y:h,width:c.width,height:c.height}}function De(e){return B(e).position==="static"}function yt(e,t){if(!X(e)||B(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return U(e)===n&&(n=n.ownerDocument.body),n}function Wt(e,t){const n=_(e);if(Pe(e))return n;if(!X(e)){let o=Q(e);for(;o&&!ie(o);){if($(o)&&!De(o))return o;o=Q(o)}return n}let r=yt(e,t);for(;r&&Un(r)&&De(r);)r=yt(r,t);return r&&ie(r)&&De(r)&&!Ze(r)?n:r||Kn(e)||n}const cr=async function(e){const t=this.getOffsetParent||Wt,n=this.getDimensions,r=await n(e.floating);return{reference:ir(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function sr(e){return B(e).direction==="rtl"}const ar={convertOffsetParentRelativeRectToViewportRelativeRect:Gn,getDocumentElement:U,getClippingRect:rr,getOffsetParent:Wt,getElementRects:cr,getClientRects:Qn,getDimensions:or,getScale:re,isElement:$,isRTL:sr};function It(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lr(e,t){let n=null,r;const o=U(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function c(s,m){s===void 0&&(s=!1),m===void 0&&(m=1),i();const u=e.getBoundingClientRect(),{left:f,top:l,width:h,height:d}=u;if(s||t(),!h||!d)return;const w=he(l),a=he(o.clientWidth-(f+h)),p=he(o.clientHeight-(l+d)),g=he(f),x={rootMargin:-w+"px "+-a+"px "+-p+"px "+-g+"px",threshold:I(0,G(1,m))||1};let b=!0;function E(S){const A=S[0].intersectionRatio;if(A!==m){if(!b)return c();A?c(!1,A):r=setTimeout(()=>{c(!1,1e-7)},1e3)}A===1&&!It(u,e.getBoundingClientRect())&&c(),b=!1}try{n=new IntersectionObserver(E,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return c(!0),i}function ur(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:m=!1}=r,u=Qe(e),f=o||i?[...u?ue(u):[],...ue(t)]:[];f.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const l=u&&s?lr(u,n):null;let h=-1,d=null;c&&(d=new ResizeObserver(g=>{let[y]=g;y&&y.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=d)==null||x.observe(t)})),n()}),u&&!m&&d.observe(u),d.observe(t));let w,a=m?J(e):null;m&&p();function p(){const g=J(e);a&&!It(a,g)&&n(),a=g,w=requestAnimationFrame(p)}return n(),()=>{var g;f.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),l==null||l(),(g=d)==null||g.disconnect(),d=null,m&&cancelAnimationFrame(w)}}const fr=Vn,dr=Yn,mr=Bn,hr=Xn,pr=Hn,xt=$n,gr=zn,vr=(e,t,n)=>{const r=new Map,o={platform:ar,...n},i={...o.platform,_c:r};return _n(e,t,{...o,platform:i})};var wr=typeof document<"u",yr=function(){},ye=wr?v.useLayoutEffect:yr;function Ce(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ce(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ce(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function _t(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bt(e,t){const n=_t(e);return Math.round(t*n)/n}function Fe(e){const t=v.useRef(e);return ye(()=>{t.current=e}),t}function xr(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:c}={},transform:s=!0,whileElementsMounted:m,open:u}=e,[f,l]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,d]=v.useState(r);Ce(h,r)||d(r);const[w,a]=v.useState(null),[p,g]=v.useState(null),y=v.useCallback(C=>{C!==S.current&&(S.current=C,a(C))},[]),x=v.useCallback(C=>{C!==A.current&&(A.current=C,g(C))},[]),b=i||w,E=c||p,S=v.useRef(null),A=v.useRef(null),R=v.useRef(f),L=m!=null,k=Fe(m),D=Fe(o),F=Fe(u),P=v.useCallback(()=>{if(!S.current||!A.current)return;const C={placement:t,strategy:n,middleware:h};D.current&&(C.platform=D.current),vr(S.current,A.current,C).then(N=>{const H={...N,isPositioned:F.current!==!1};O.current&&!Ce(R.current,H)&&(R.current=H,pn.flushSync(()=>{l(H)}))})},[h,t,n,D,F]);ye(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,l(C=>({...C,isPositioned:!1})))},[u]);const O=v.useRef(!1);ye(()=>(O.current=!0,()=>{O.current=!1}),[]),ye(()=>{if(b&&(S.current=b),E&&(A.current=E),b&&E){if(k.current)return k.current(b,E,P);P()}},[b,E,P,k,L]);const W=v.useMemo(()=>({reference:S,floating:A,setReference:y,setFloating:x}),[y,x]),T=v.useMemo(()=>({reference:b,floating:E}),[b,E]),M=v.useMemo(()=>{const C={position:n,left:0,top:0};if(!T.floating)return C;const N=bt(T.floating,f.x),H=bt(T.floating,f.y);return s?{...C,transform:"translate("+N+"px, "+H+"px)",..._t(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:H}},[n,s,T.floating,f.x,f.y]);return v.useMemo(()=>({...f,update:P,refs:W,elements:T,floatingStyles:M}),[f,P,W,T,M])}const br=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?xt({element:r.current,padding:o}).fn(n):{}:r?xt({element:r,padding:o}).fn(n):{}}}},Er=(e,t)=>({...fr(e),options:[e,t]}),Sr=(e,t)=>({...dr(e),options:[e,t]}),Ar=(e,t)=>({...gr(e),options:[e,t]}),Cr=(e,t)=>({...mr(e),options:[e,t]}),Rr=(e,t)=>({...hr(e),options:[e,t]}),Or=(e,t)=>({...pr(e),options:[e,t]}),Pr=(e,t)=>({...br(e),options:[e,t]});var Tr="Arrow",$t=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return Y.jsx(Re.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:Y.jsx("polygon",{points:"0,0 30,0 15,10"})})});$t.displayName=Tr;var Mr=$t,et="Popper",[Bt,Wo]=hn(et),[kr,Ht]=Bt(et),jt=e=>{const{__scopePopper:t,children:n}=e,[r,o]=v.useState(null);return Y.jsx(kr,{scope:t,anchor:r,onAnchorChange:o,children:n})};jt.displayName=et;var Vt="PopperAnchor",Yt=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ht(Vt,n),c=v.useRef(null),s=Xe(t,c);return v.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||c.current)}),r?null:Y.jsx(Re.div,{...o,ref:s})});Yt.displayName=Vt;var tt="PopperContent",[Lr,Nr]=Bt(tt),zt=v.forwardRef((e,t)=>{var nt,rt,ot,it,ct,st;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:c=0,arrowPadding:s=0,avoidCollisions:m=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:l="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:w,...a}=e,p=Ht(tt,n),[g,y]=v.useState(null),x=Xe(t,ae=>y(ae)),[b,E]=v.useState(null),S=gn(b),A=(S==null?void 0:S.width)??0,R=(S==null?void 0:S.height)??0,L=r+(i!=="center"?"-"+i:""),k=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},D=Array.isArray(u)?u:[u],F=D.length>0,P={padding:k,boundary:D.filter(Fr),altBoundary:F},{refs:O,floatingStyles:W,placement:T,isPositioned:M,middlewareData:C}=xr({strategy:"fixed",placement:L,whileElementsMounted:(...ae)=>ur(...ae,{animationFrame:d==="always"}),elements:{reference:p.anchor},middleware:[Er({mainAxis:o+R,alignmentAxis:c}),m&&Sr({mainAxis:!0,crossAxis:!1,limiter:l==="partial"?Ar():void 0,...P}),m&&Cr({...P}),Rr({...P,apply:({elements:ae,rects:at,availableWidth:ln,availableHeight:un})=>{const{width:fn,height:dn}=at.reference,me=ae.floating.style;me.setProperty("--radix-popper-available-width",`${ln}px`),me.setProperty("--radix-popper-available-height",`${un}px`),me.setProperty("--radix-popper-anchor-width",`${fn}px`),me.setProperty("--radix-popper-anchor-height",`${dn}px`)}}),b&&Pr({element:b,padding:s}),Wr({arrowWidth:A,arrowHeight:R}),h&&Or({strategy:"referenceHidden",...P})]}),[N,H]=Kt(T),de=He(w);Be(()=>{M&&(de==null||de())},[M,de]);const rn=(nt=C.arrow)==null?void 0:nt.x,on=(rt=C.arrow)==null?void 0:rt.y,cn=((ot=C.arrow)==null?void 0:ot.centerOffset)!==0,[sn,an]=v.useState();return Be(()=>{g&&an(window.getComputedStyle(g).zIndex)},[g]),Y.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:M?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:sn,"--radix-popper-transform-origin":[(it=C.transformOrigin)==null?void 0:it.x,(ct=C.transformOrigin)==null?void 0:ct.y].join(" "),...((st=C.hide)==null?void 0:st.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Y.jsx(Lr,{scope:n,placedSide:N,onArrowChange:E,arrowX:rn,arrowY:on,shouldHideArrow:cn,children:Y.jsx(Re.div,{"data-side":N,"data-align":H,...a,ref:x,style:{...a.style,animation:M?void 0:"none"}})})})});zt.displayName=tt;var Xt="PopperArrow",Dr={top:"bottom",right:"left",bottom:"top",left:"right"},Ut=v.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Nr(Xt,r),c=Dr[i.placedSide];return Y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:Y.jsx(Mr,{...o,ref:n,style:{...o.style,display:"block"}})})});Ut.displayName=Xt;function Fr(e){return e!==null}var Wr=e=>({name:"transformOrigin",options:e,fn(t){var p,g,y;const{placement:n,rects:r,middlewareData:o}=t,c=((p=o.arrow)==null?void 0:p.centerOffset)!==0,s=c?0:e.arrowWidth,m=c?0:e.arrowHeight,[u,f]=Kt(n),l={start:"0%",center:"50%",end:"100%"}[f],h=(((g=o.arrow)==null?void 0:g.x)??0)+s/2,d=(((y=o.arrow)==null?void 0:y.y)??0)+m/2;let w="",a="";return u==="bottom"?(w=c?l:`${h}px`,a=`${-m}px`):u==="top"?(w=c?l:`${h}px`,a=`${r.floating.height+m}px`):u==="right"?(w=`${-m}px`,a=c?l:`${d}px`):u==="left"&&(w=`${r.floating.width+m}px`,a=c?l:`${d}px`),{data:{x:w,y:a}}}});function Kt(e){const[t,n="center"]=e.split("-");return[t,n]}var Io=jt,_o=Yt,$o=zt,Bo=Ut,Ir=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ee=new WeakMap,pe=new WeakMap,ge={},We=0,qt=function(e){return e&&(e.host||qt(e.parentNode))},_r=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=qt(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$r=function(e,t,n,r){var o=_r(t,Array.isArray(e)?e:[e]);ge[n]||(ge[n]=new WeakMap);var i=ge[n],c=[],s=new Set,m=new Set(o),u=function(l){!l||s.has(l)||(s.add(l),u(l.parentNode))};o.forEach(u);var f=function(l){!l||m.has(l)||Array.prototype.forEach.call(l.children,function(h){if(s.has(h))f(h);else try{var d=h.getAttribute(r),w=d!==null&&d!=="false",a=(ee.get(h)||0)+1,p=(i.get(h)||0)+1;ee.set(h,a),i.set(h,p),c.push(h),a===1&&w&&pe.set(h,!0),p===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",h,g)}})};return f(t),s.clear(),We++,function(){c.forEach(function(l){var h=ee.get(l)-1,d=i.get(l)-1;ee.set(l,h),i.set(l,d),h||(pe.has(l)||l.removeAttribute(r),pe.delete(l)),d||l.removeAttribute(n)}),We--,We||(ee=new WeakMap,ee=new WeakMap,pe=new WeakMap,ge={})}},Ho=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Ir(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),$r(r,o,n,"aria-hidden")):function(){return null}},j=function(){return j=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},j.apply(this,arguments)};function Zt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Br(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var xe="right-scroll-bar-position",be="width-before-scroll-bar",Hr="with-scroll-bars-hidden",jr="--removed-body-scroll-bar-size";function Ie(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Vr(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Yr=typeof window<"u"?v.useLayoutEffect:v.useEffect,Et=new WeakMap;function zr(e,t){var n=Vr(null,function(r){return e.forEach(function(o){return Ie(o,r)})});return Yr(function(){var r=Et.get(n);if(r){var o=new Set(r),i=new Set(e),c=n.current;o.forEach(function(s){i.has(s)||Ie(s,null)}),i.forEach(function(s){o.has(s)||Ie(s,c)})}Et.set(n,e)},[e]),n}function Xr(e){return e}function Ur(e,t){t===void 0&&(t=Xr);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var c=t(i,r);return n.push(c),function(){n=n.filter(function(s){return s!==c})}},assignSyncMedium:function(i){for(r=!0;n.length;){var c=n;n=[],c.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var c=[];if(n.length){var s=n;n=[],s.forEach(i),c=n}var m=function(){var f=c;c=[],f.forEach(i)},u=function(){return Promise.resolve().then(m)};u(),n={push:function(f){c.push(f),u()},filter:function(f){return c=c.filter(f),n}}}};return o}function Kr(e){e===void 0&&(e={});var t=Ur(null);return t.options=j({async:!0,ssr:!1},e),t}var Gt=function(e){var t=e.sideCar,n=Zt(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,j({},n))};Gt.isSideCarExport=!0;function qr(e,t){return e.useMedium(t),Gt}var Qt=Kr(),_e=function(){},Me=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:_e,onWheelCapture:_e,onTouchMoveCapture:_e}),o=r[0],i=r[1],c=e.forwardProps,s=e.children,m=e.className,u=e.removeScrollBar,f=e.enabled,l=e.shards,h=e.sideCar,d=e.noRelative,w=e.noIsolation,a=e.inert,p=e.allowPinchZoom,g=e.as,y=g===void 0?"div":g,x=e.gapMode,b=Zt(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,S=zr([n,t]),A=j(j({},b),o);return v.createElement(v.Fragment,null,f&&v.createElement(E,{sideCar:Qt,removeScrollBar:u,shards:l,noRelative:d,noIsolation:w,inert:a,setCallbacks:i,allowPinchZoom:!!p,lockRef:n,gapMode:x}),c?v.cloneElement(v.Children.only(s),j(j({},A),{ref:S})):v.createElement(y,j({},A,{className:m,ref:S}),s))});Me.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Me.classNames={fullWidth:be,zeroRight:xe};var Zr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Gr(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Zr();return t&&e.setAttribute("nonce",t),e}function Qr(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Jr(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var eo=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Gr())&&(Qr(t,n),Jr(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},to=function(){var e=eo();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Jt=function(){var e=to(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},no={left:0,top:0,right:0,gap:0},$e=function(e){return parseInt(e||"",10)||0},ro=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[$e(n),$e(r),$e(o)]},oo=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return no;var t=ro(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},io=Jt(),oe="data-scroll-locked",co=function(e,t,n,r){var o=e.left,i=e.top,c=e.right,s=e.gap;return n===void 0&&(n="margin"),`
.`.concat(Hr,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(s,"px ").concat(r,`;
}
body[`).concat(oe,`] {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(o,`px;
padding-top: `).concat(i,`px;
padding-right: `).concat(c,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(s,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(xe,` {
right: `).concat(s,"px ").concat(r,`;
}
.`).concat(be,` {
margin-right: `).concat(s,"px ").concat(r,`;
}
.`).concat(xe," .").concat(xe,` {
right: 0 `).concat(r,`;
}
.`).concat(be," .").concat(be,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(oe,`] {
`).concat(jr,": ").concat(s,`px;
}
`)},St=function(){var e=parseInt(document.body.getAttribute(oe)||"0",10);return isFinite(e)?e:0},so=function(){v.useEffect(function(){return document.body.setAttribute(oe,(St()+1).toString()),function(){var e=St()-1;e<=0?document.body.removeAttribute(oe):document.body.setAttribute(oe,e.toString())}},[])},ao=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;so();var i=v.useMemo(function(){return oo(o)},[o]);return v.createElement(io,{styles:co(i,!t,o,n?"":"!important")})},ze=!1;if(typeof window<"u")try{var ve=Object.defineProperty({},"passive",{get:function(){return ze=!0,!0}});window.addEventListener("test",ve,ve),window.removeEventListener("test",ve,ve)}catch{ze=!1}var te=ze?{passive:!1}:!1,lo=function(e){return e.tagName==="TEXTAREA"},en=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!lo(e)&&n[t]==="visible")},uo=function(e){return en(e,"overflowY")},fo=function(e){return en(e,"overflowX")},At=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=tn(e,r);if(o){var i=nn(e,r),c=i[1],s=i[2];if(c>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},mo=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ho=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},tn=function(e,t){return e==="v"?uo(t):fo(t)},nn=function(e,t){return e==="v"?mo(t):ho(t)},po=function(e,t){return e==="h"&&t==="rtl"?-1:1},go=function(e,t,n,r,o){var i=po(e,window.getComputedStyle(t).direction),c=i*r,s=n.target,m=t.contains(s),u=!1,f=c>0,l=0,h=0;do{if(!s)break;var d=nn(e,s),w=d[0],a=d[1],p=d[2],g=a-p-i*w;(w||g)&&tn(e,s)&&(l+=g,h+=w);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!m&&s!==document.body||m&&(t.contains(s)||t===s));return(f&&Math.abs(l)<1||!f&&Math.abs(h)<1)&&(u=!0),u},we=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ct=function(e){return[e.deltaX,e.deltaY]},Rt=function(e){return e&&"current"in e?e.current:e},vo=function(e,t){return e[0]===t[0]&&e[1]===t[1]},wo=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},yo=0,ne=[];function xo(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(yo++)[0],i=v.useState(Jt)[0],c=v.useRef(e);v.useEffect(function(){c.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var a=Br([e.lockRef.current],(e.shards||[]).map(Rt),!0).filter(Boolean);return a.forEach(function(p){return p.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),a.forEach(function(p){return p.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback(function(a,p){if("touches"in a&&a.touches.length===2||a.type==="wheel"&&a.ctrlKey)return!c.current.allowPinchZoom;var g=we(a),y=n.current,x="deltaX"in a?a.deltaX:y[0]-g[0],b="deltaY"in a?a.deltaY:y[1]-g[1],E,S=a.target,A=Math.abs(x)>Math.abs(b)?"h":"v";if("touches"in a&&A==="h"&&S.type==="range")return!1;var R=At(A,S);if(!R)return!0;if(R?E=A:(E=A==="v"?"h":"v",R=At(A,S)),!R)return!1;if(!r.current&&"changedTouches"in a&&(x||b)&&(r.current=E),!E)return!0;var L=r.current||E;return go(L,p,a,L==="h"?x:b)},[]),m=v.useCallback(function(a){var p=a;if(!(!ne.length||ne[ne.length-1]!==i)){var g="deltaY"in p?Ct(p):we(p),y=t.current.filter(function(E){return E.name===p.type&&(E.target===p.target||p.target===E.shadowParent)&&vo(E.delta,g)})[0];if(y&&y.should){p.cancelable&&p.preventDefault();return}if(!y){var x=(c.current.shards||[]).map(Rt).filter(Boolean).filter(function(E){return E.contains(p.target)}),b=x.length>0?s(p,x[0]):!c.current.noIsolation;b&&p.cancelable&&p.preventDefault()}}},[]),u=v.useCallback(function(a,p,g,y){var x={name:a,delta:p,target:g,should:y,shadowParent:bo(g)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(b){return b!==x})},1)},[]),f=v.useCallback(function(a){n.current=we(a),r.current=void 0},[]),l=v.useCallback(function(a){u(a.type,Ct(a),a.target,s(a,e.lockRef.current))},[]),h=v.useCallback(function(a){u(a.type,we(a),a.target,s(a,e.lockRef.current))},[]);v.useEffect(function(){return ne.push(i),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:h}),document.addEventListener("wheel",m,te),document.addEventListener("touchmove",m,te),document.addEventListener("touchstart",f,te),function(){ne=ne.filter(function(a){return a!==i}),document.removeEventListener("wheel",m,te),document.removeEventListener("touchmove",m,te),document.removeEventListener("touchstart",f,te)}},[]);var d=e.removeScrollBar,w=e.inert;return v.createElement(v.Fragment,null,w?v.createElement(i,{styles:wo(o)}):null,d?v.createElement(ao,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function bo(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Eo=qr(Qt,xo);var So=v.forwardRef(function(e,t){return v.createElement(Me,j({},e,{ref:t,sideCar:Eo}))});So.classNames=Me.classNames;export{_o as A,ko as C,Sn as F,Io as R,Lo as a,No as b,Do as c,Wo as d,Fo as e,So as f,$o as g,Ho as h,Bo as i,Mo as u};
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]