this.bindToMotionValue(s,n)),Dm.current||oT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ic.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Yd.delete(this.current),this.projection&&this.projection.unmount(),Nn(this.notifyUpdate),Nn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=xs.has(t),r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ce.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ks){const n=Ks[t];if(!n)continue;const{isEnabled:s,Feature:r}=n;if(!this.features[t]&&r&&s(this.props)&&(this.features[t]=new r(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):je()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s this.bindToMotionValue(r,n)),Om.current||tT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:rc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Qd.delete(this.current),this.projection&&this.projection.unmount(),Nn(this.notifyUpdate),Nn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=xr.has(t),s=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ce.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Kr){const n=Kr[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):je()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rE&&(m=E)}return{[f]:p,[d]:m}}}},iC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:r,rects:i,platform:o,elements:a}=t,{apply:c=()=>{},...l}=mn(e,t),u=await zr(t,l),d=gn(r),f=cr(r),p=Mn(r)==="y",{width:m,height:h}=i.floating;let g,v;d==="top"||d==="bottom"?(g=d,v=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,g=f==="end"?"top":"bottom");const b=h-u.top-u.bottom,w=m-u.left-u.right,T=Dn(h-u[g],b),S=Dn(m-u[v],w),E=!t.middlewareData.shift;let R=T,A=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=w),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(R=b),E&&!f){const D=ht(u.left,0),L=ht(u.right,0),j=ht(u.top,0),$=ht(u.bottom,0);p?A=m-2*(D!==0||L!==0?D+L:ht(u.left,u.right)):R=h-2*(j!==0||$!==0?j+$:ht(u.top,u.bottom))}await c({...t,availableWidth:A,availableHeight:R});const N=await o.getDimensions(a.floating);return m!==N.width||h!==N.height?{reset:{rects:!0}}:{}}}};function zo(){return typeof window<"u"}function lr(e){return lg(e)?(e.nodeName||"").toLowerCase():"#document"}function yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rn(e){var t;return(t=(lg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lg(e){return zo()?e instanceof Node||e instanceof yt(e).Node:!1}function Mt(e){return zo()?e instanceof Element||e instanceof yt(e).Element:!1}function tn(e){return zo()?e instanceof HTMLElement||e instanceof yt(e).HTMLElement:!1}function pf(e){return!zo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yt(e).ShadowRoot}function xi(e){const{overflow:t,overflowX:n,overflowY:s,display:r}=Ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(r)}function oC(e){return["table","td","th"].includes(lr(e))}function Wo(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ul(e){const t=$l(),n=Mt(e)?Ft(e):e;return["transform","translate","scale","rotate","perspective"].some(s=>n[s]?n[s]!=="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(s=>(n.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(n.contain||"").includes(s))}function aC(e){let t=Fn(e);for(;tn(t)&&!Ys(t);){if(Ul(t))return t;if(Wo(t))return null;t=Fn(t)}return null}function $l(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ys(e){return["html","body","#document"].includes(lr(e))}function Ft(e){return yt(e).getComputedStyle(e)}function Ho(e){return Mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fn(e){if(lr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pf(e)&&e.host||rn(e);return pf(t)?t.host:t}function ug(e){const t=Fn(e);return Ys(t)?e.ownerDocument?e.ownerDocument.body:e.body:tn(t)&&xi(t)?t:ug(t)}function Wr(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=ug(e),i=r===((s=e.ownerDocument)==null?void 0:s.body),o=yt(r);if(i){const a=dc(o);return t.concat(o,o.visualViewport||[],xi(r)?r:[],a&&n?Wr(a):[])}return t.concat(r,Wr(r,[],n))}function dc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function dg(e){const t=Ft(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const r=tn(e),i=r?e.offsetWidth:n,o=r?e.offsetHeight:s,a=ho(n)!==i||ho(s)!==o;return a&&(n=i,s=o),{width:n,height:s,$:a}}function zl(e){return Mt(e)?e:e.contextElement}function js(e){const t=zl(e);if(!tn(t))return Jt(1);const n=t.getBoundingClientRect(),{width:s,height:r,$:i}=dg(t);let o=(i?ho(n.width):n.width)/s,a=(i?ho(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const cC=Jt(0);function fg(e){const t=yt(e);return!$l()||!t.visualViewport?cC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function lC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yt(e)?!1:t}function fs(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=zl(e);let o=Jt(1);t&&(s?Mt(s)&&(o=js(s)):o=js(e));const a=lC(i,n,s)?fg(i):Jt(0);let c=(r.left+a.x)/o.x,l=(r.top+a.y)/o.y,u=r.width/o.x,d=r.height/o.y;if(i){const f=yt(i),p=s&&Mt(s)?yt(s):s;let m=f,h=dc(m);for(;h&&s&&p!==m;){const g=js(h),v=h.getBoundingClientRect(),b=Ft(h),w=v.left+(h.clientLeft+parseFloat(b.paddingLeft))*g.x,T=v.top+(h.clientTop+parseFloat(b.paddingTop))*g.y;c*=g.x,l*=g.y,u*=g.x,d*=g.y,c+=w,l+=T,m=yt(h),h=dc(m)}}return mo({width:u,height:d,x:c,y:l})}function Wl(e,t){const n=Ho(e).scrollLeft;return t?t.left+n:fs(rn(e)).left+n}function hg(e,t,n){n===void 0&&(n=!1);const s=e.getBoundingClientRect(),r=s.left+t.scrollLeft-(n?0:Wl(e,s)),i=s.top+t.scrollTop;return{x:r,y:i}}function uC(e){let{elements:t,rect:n,offsetParent:s,strategy:r}=e;const i=r==="fixed",o=rn(s),a=t?Wo(t.floating):!1;if(s===o||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Jt(1);const u=Jt(0),d=tn(s);if((d||!d&&!i)&&((lr(s)!=="body"||xi(o))&&(c=Ho(s)),tn(s))){const p=fs(s);l=js(s),u.x=p.x+s.clientLeft,u.y=p.y+s.clientTop}const f=o&&!d&&!i?hg(o,c,!0):Jt(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function dC(e){return Array.from(e.getClientRects())}function fC(e){const t=rn(e),n=Ho(e),s=e.ownerDocument.body,r=ht(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),i=ht(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-n.scrollLeft+Wl(e);const a=-n.scrollTop;return Ft(s).direction==="rtl"&&(o+=ht(t.clientWidth,s.clientWidth)-r),{width:r,height:i,x:o,y:a}}function hC(e,t){const n=yt(e),s=rn(e),r=n.visualViewport;let i=s.clientWidth,o=s.clientHeight,a=0,c=0;if(r){i=r.width,o=r.height;const l=$l();(!l||l&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:o,x:a,y:c}}function pC(e,t){const n=fs(e,!0,t==="fixed"),s=n.top+e.clientTop,r=n.left+e.clientLeft,i=tn(e)?js(e):Jt(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,l=s*i.y;return{width:o,height:a,x:c,y:l}}function mf(e,t,n){let s;if(t==="viewport")s=hC(e,n);else if(t==="document")s=fC(rn(e));else if(Mt(t))s=pC(t,n);else{const r=fg(e);s={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return mo(s)}function pg(e,t){const n=Fn(e);return n===t||!Mt(n)||Ys(n)?!1:Ft(n).position==="fixed"||pg(n,t)}function mC(e,t){const n=t.get(e);if(n)return n;let s=Wr(e,[],!1).filter(a=>Mt(a)&&lr(a)!=="body"),r=null;const i=Ft(e).position==="fixed";let o=i?Fn(e):e;for(;Mt(o)&&!Ys(o);){const a=Ft(o),c=Ul(o);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||xi(o)&&!c&&pg(e,o))?s=s.filter(u=>u!==o):r=a,o=Fn(o)}return t.set(e,s),s}function gC(e){let{element:t,boundary:n,rootBoundary:s,strategy:r}=e;const o=[...n==="clippingAncestors"?Wo(t)?[]:mC(t,this._c):[].concat(n),s],a=o[0],c=o.reduce((l,u)=>{const d=mf(t,u,r);return l.top=ht(d.top,l.top),l.right=Dn(d.right,l.right),l.bottom=Dn(d.bottom,l.bottom),l.left=ht(d.left,l.left),l},mf(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function yC(e){const{width:t,height:n}=dg(e);return{width:t,height:n}}function vC(e,t,n){const s=tn(t),r=rn(t),i=n==="fixed",o=fs(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Jt(0);if(s||!s&&!i)if((lr(t)!=="body"||xi(r))&&(a=Ho(t)),s){const f=fs(t,!0,i,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else r&&(c.x=Wl(r));const l=r&&!s&&!i?hg(r,a):Jt(0),u=o.left+a.scrollLeft-c.x-l.x,d=o.top+a.scrollTop-c.y-l.y;return{x:u,y:d,width:o.width,height:o.height}}function Ea(e){return Ft(e).position==="static"}function gf(e,t){if(!tn(e)||Ft(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return rn(e)===n&&(n=n.ownerDocument.body),n}function mg(e,t){const n=yt(e);if(Wo(e))return n;if(!tn(e)){let r=Fn(e);for(;r&&!Ys(r);){if(Mt(r)&&!Ea(r))return r;r=Fn(r)}return n}let s=gf(e,t);for(;s&&oC(s)&&Ea(s);)s=gf(s,t);return s&&Ys(s)&&Ea(s)&&!Ul(s)?n:s||aC(e)||n}const xC=async function(e){const t=this.getOffsetParent||mg,n=this.getDimensions,s=await n(e.floating);return{reference:vC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function bC(e){return Ft(e).direction==="rtl"}const wC={convertOffsetParentRelativeRectToViewportRelativeRect:uC,getDocumentElement:rn,getClippingRect:gC,getOffsetParent:mg,getElementRects:xC,getClientRects:dC,getDimensions:yC,getScale:js,isElement:Mt,isRTL:bC};function gg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function SC(e,t){let n=null,s;const r=rn(e);function i(){var a;clearTimeout(s),(a=n)==null||a.disconnect(),n=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(a||t(),!f||!p)return;const m=Bi(d),h=Bi(r.clientWidth-(u+f)),g=Bi(r.clientHeight-(d+p)),v=Bi(u),w={rootMargin:-m+"px "+-h+"px "+-g+"px "+-v+"px",threshold:ht(0,Dn(1,c))||1};let T=!0;function S(E){const R=E[0].intersectionRatio;if(R!==c){if(!T)return o();R?o(!1,R):s=setTimeout(()=>{o(!1,1e-7)},1e3)}R===1&&!gg(l,e.getBoundingClientRect())&&o(),T=!1}try{n=new IntersectionObserver(S,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return o(!0),i}function _C(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,l=zl(e),u=r||i?[...l?Wr(l):[],...Wr(t)]:[];u.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&a?SC(l,n):null;let f=-1,p=null;o&&(p=new ResizeObserver(v=>{let[b]=v;b&&b.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?fs(e):null;c&&g();function g(){const v=fs(e);h&&!gg(h,v)&&n(),h=v,m=requestAnimationFrame(g)}return n(),()=>{var v;u.forEach(b=>{r&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(v=p)==null||v.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const TC=nC,CC=sC,AC=JT,EC=iC,PC=eC,yf=YT,RC=rC,kC=(e,t,n)=>{const s=new Map,r={platform:wC,...n},i={...r.platform,_c:s};return XT(e,t,{...r,platform:i})};var Xi=typeof document<"u"?x.useLayoutEffect:x.useEffect;function go(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,s,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!go(e[s],t[s]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,r[s]))return!1;for(s=n;s--!==0;){const i=r[s];if(!(i==="_owner"&&e.$$typeof)&&!go(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function yg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vf(e,t){const n=yg(e);return Math.round(t*n)/n}function Pa(e){const t=x.useRef(e);return Xi(()=>{t.current=e}),t}function OC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:r,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=x.useState(s);go(f,s)||p(s);const[m,h]=x.useState(null),[g,v]=x.useState(null),b=x.useCallback(q=>{q!==E.current&&(E.current=q,h(q))},[]),w=x.useCallback(q=>{q!==R.current&&(R.current=q,v(q))},[]),T=i||m,S=o||g,E=x.useRef(null),R=x.useRef(null),A=x.useRef(u),N=c!=null,D=Pa(c),L=Pa(r),j=Pa(l),$=x.useCallback(()=>{if(!E.current||!R.current)return;const q={placement:t,strategy:n,middleware:f};L.current&&(q.platform=L.current),kC(E.current,R.current,q).then(re=>{const me={...re,isPositioned:j.current!==!1};W.current&&!go(A.current,me)&&(A.current=me,lh.flushSync(()=>{d(me)}))})},[f,t,n,L,j]);Xi(()=>{l===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(q=>({...q,isPositioned:!1})))},[l]);const W=x.useRef(!1);Xi(()=>(W.current=!0,()=>{W.current=!1}),[]),Xi(()=>{if(T&&(E.current=T),S&&(R.current=S),T&&S){if(D.current)return D.current(T,S,$);$()}},[T,S,$,D,N]);const se=x.useMemo(()=>({reference:E,floating:R,setReference:b,setFloating:w}),[b,w]),Y=x.useMemo(()=>({reference:T,floating:S}),[T,S]),Z=x.useMemo(()=>{const q={position:n,left:0,top:0};if(!Y.floating)return q;const re=vf(Y.floating,u.x),me=vf(Y.floating,u.y);return a?{...q,transform:"translate("+re+"px, "+me+"px)",...yg(Y.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:me}},[n,a,Y.floating,u.x,u.y]);return x.useMemo(()=>({...u,update:$,refs:se,elements:Y,floatingStyles:Z}),[u,$,se,Y,Z])}const NC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:r}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?yf({element:s.current,padding:r}).fn(n):{}:s?yf({element:s,padding:r}).fn(n):{}}}},jC=(e,t)=>({...TC(e),options:[e,t]}),DC=(e,t)=>({...CC(e),options:[e,t]}),MC=(e,t)=>({...RC(e),options:[e,t]}),FC=(e,t)=>({...AC(e),options:[e,t]}),LC=(e,t)=>({...EC(e),options:[e,t]}),IC=(e,t)=>({...PC(e),options:[e,t]}),VC=(e,t)=>({...NC(e),options:[e,t]});var BC="Arrow",vg=x.forwardRef((e,t)=>{const{children:n,width:s=10,height:r=5,...i}=e;return y.jsx(rt.svg,{...i,ref:t,width:s,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});vg.displayName=BC;var UC=vg;function $C(e){const[t,n]=x.useState(void 0);return us(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var Hl="Popper",[xg,bg]=Bc(Hl),[zC,wg]=xg(Hl),Sg=e=>{const{__scopePopper:t,children:n}=e,[s,r]=x.useState(null);return y.jsx(zC,{scope:t,anchor:s,onAnchorChange:r,children:n})};Sg.displayName=Hl;var _g="PopperAnchor",Tg=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...r}=e,i=wg(_g,n),o=x.useRef(null),a=It(t,o);return x.useEffect(()=>{i.onAnchorChange((s==null?void 0:s.current)||o.current)}),s?null:y.jsx(rt.div,{...r,ref:a})});Tg.displayName=_g;var ql="PopperContent",[WC,HC]=xg(ql),Cg=x.forwardRef((e,t)=>{var ue,ye,Oe,Le,we,G;const{__scopePopper:n,side:s="bottom",sideOffset:r=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:m,...h}=e,g=wg(ql,n),[v,b]=x.useState(null),w=It(t,de=>b(de)),[T,S]=x.useState(null),E=$C(T),R=(E==null?void 0:E.width)??0,A=(E==null?void 0:E.height)??0,N=s+(i!=="center"?"-"+i:""),D=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},L=Array.isArray(l)?l:[l],j=L.length>0,$={padding:D,boundary:L.filter(ZC),altBoundary:j},{refs:W,floatingStyles:se,placement:Y,isPositioned:Z,middlewareData:q}=OC({strategy:"fixed",placement:N,whileElementsMounted:(...de)=>_C(...de,{animationFrame:p==="always"}),elements:{reference:g.anchor},middleware:[jC({mainAxis:r+A,alignmentAxis:o}),c&&DC({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?MC():void 0,...$}),c&&FC({...$}),LC({...$,apply:({elements:de,rects:Se,availableWidth:Ue,availableHeight:ft})=>{const{width:bt,height:_}=Se.reference,P=de.floating.style;P.setProperty("--radix-popper-available-width",`${Ue}px`),P.setProperty("--radix-popper-available-height",`${ft}px`),P.setProperty("--radix-popper-anchor-width",`${bt}px`),P.setProperty("--radix-popper-anchor-height",`${_}px`)}}),T&&VC({element:T,padding:a}),GC({arrowWidth:R,arrowHeight:A}),f&&IC({strategy:"referenceHidden",...$})]}),[re,me]=Pg(Y),ge=On(m);us(()=>{Z&&(ge==null||ge())},[Z,ge]);const We=(ue=q.arrow)==null?void 0:ue.x,dt=(ye=q.arrow)==null?void 0:ye.y,He=((Oe=q.arrow)==null?void 0:Oe.centerOffset)!==0,[At,Xe]=x.useState();return us(()=>{v&&Xe(window.getComputedStyle(v).zIndex)},[v]),y.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...se,transform:Z?se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:At,"--radix-popper-transform-origin":[(Le=q.transformOrigin)==null?void 0:Le.x,(we=q.transformOrigin)==null?void 0:we.y].join(" "),...((G=q.hide)==null?void 0:G.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(WC,{scope:n,placedSide:re,onArrowChange:S,arrowX:We,arrowY:dt,shouldHideArrow:He,children:y.jsx(rt.div,{"data-side":re,"data-align":me,...h,ref:w,style:{...h.style,animation:Z?void 0:"none"}})})})});Cg.displayName=ql;var Ag="PopperArrow",qC={top:"bottom",right:"left",bottom:"top",left:"right"},Eg=x.forwardRef(function(t,n){const{__scopePopper:s,...r}=t,i=HC(Ag,s),o=qC[i.placedSide];return y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]: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(UC,{...r,ref:n,style:{...r.style,display:"block"}})})});Eg.displayName=Ag;function ZC(e){return e!==null}var GC=e=>({name:"transformOrigin",options:e,fn(t){var g,v,b;const{placement:n,rects:s,middlewareData:r}=t,o=((g=r.arrow)==null?void 0:g.centerOffset)!==0,a=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=Pg(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((v=r.arrow)==null?void 0:v.x)??0)+a/2,p=(((b=r.arrow)==null?void 0:b.y)??0)+c/2;let m="",h="";return l==="bottom"?(m=o?d:`${f}px`,h=`${-c}px`):l==="top"?(m=o?d:`${f}px`,h=`${s.floating.height+c}px`):l==="right"?(m=`${-c}px`,h=o?d:`${p}px`):l==="left"&&(m=`${s.floating.width+c}px`,h=o?d:`${p}px`),{data:{x:m,y:h}}}});function Pg(e){const[t,n="center"]=e.split("-");return[t,n]}var KC=Sg,Rg=Tg,QC=Cg,XC=Eg,Zl="Popover",[kg,Qk]=Bc(Zl,[bg]),bi=bg(),[YC,zn]=kg(Zl),Og=e=>{const{__scopePopover:t,children:n,open:s,defaultOpen:r,onOpenChange:i,modal:o=!1}=e,a=bi(t),c=x.useRef(null),[l,u]=x.useState(!1),[d=!1,f]=dh({prop:s,defaultProp:r,onChange:i});return y.jsx(KC,{...a,children:y.jsx(YC,{scope:t,contentId:zi(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:x.useCallback(()=>f(p=>!p),[f]),hasCustomAnchor:l,onCustomAnchorAdd:x.useCallback(()=>u(!0),[]),onCustomAnchorRemove:x.useCallback(()=>u(!1),[]),modal:o,children:n})})};Og.displayName=Zl;var Ng="PopoverAnchor",JC=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=zn(Ng,n),i=bi(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=r;return x.useEffect(()=>(o(),()=>a()),[o,a]),y.jsx(Rg,{...i,...s,ref:t})});JC.displayName=Ng;var jg="PopoverTrigger",Dg=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=zn(jg,n),i=bi(n),o=It(t,r.triggerRef),a=y.jsx(rt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Vg(r.open),...s,ref:o,onClick:mt(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:y.jsx(Rg,{asChild:!0,...i,children:a})});Dg.displayName=jg;var Gl="PopoverPortal",[eA,tA]=kg(Gl,{forceMount:void 0}),Mg=e=>{const{__scopePopover:t,forceMount:n,children:s,container:r}=e,i=zn(Gl,t);return y.jsx(eA,{scope:t,forceMount:n,children:y.jsx(rr,{present:n||i.open,children:y.jsx(zc,{asChild:!0,container:r,children:s})})})};Mg.displayName=Gl;var Js="PopoverContent",Fg=x.forwardRef((e,t)=>{const n=tA(Js,e.__scopePopover),{forceMount:s=n.forceMount,...r}=e,i=zn(Js,e.__scopePopover);return y.jsx(rr,{present:s||i.open,children:i.modal?y.jsx(nA,{...r,ref:t}):y.jsx(sA,{...r,ref:t})})});Fg.displayName=Js;var nA=x.forwardRef((e,t)=>{const n=zn(Js,e.__scopePopover),s=x.useRef(null),r=It(t,s),i=x.useRef(!1);return x.useEffect(()=>{const o=s.current;if(o)return Th(o)},[]),y.jsx(Wc,{as:sr,allowPinchZoom:!0,children:y.jsx(Lg,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:mt(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:mt(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0,l=a.button===2||c;i.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:mt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),sA=x.forwardRef((e,t)=>{const n=zn(Js,e.__scopePopover),s=x.useRef(!1),r=x.useRef(!1);return y.jsx(Lg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),s.current=!1,r.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),Lg=x.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=zn(Js,n),p=bi(n);return mh(),y.jsx($c,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:y.jsx(Uc,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:y.jsx(QC,{"data-state":Vg(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Ig="PopoverClose",rA=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=zn(Ig,n);return y.jsx(rt.button,{type:"button",...s,ref:t,onClick:mt(e.onClick,()=>r.onOpenChange(!1))})});rA.displayName=Ig;var iA="PopoverArrow",oA=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=bi(n);return y.jsx(XC,{...r,...s,ref:t})});oA.displayName=iA;function Vg(e){return e?"open":"closed"}var aA=Og,cA=Dg,lA=Mg,Bg=Fg;const Ug=aA,$g=cA,Kl=x.forwardRef(({className:e,align:t="center",sideOffset:n=4,...s},r)=>y.jsx(lA,{children:y.jsx(Bg,{ref:r,align:t,sideOffset:n,className:Q("z-50 w-32 rounded-[2px] s bg-white p-4 text-popover-foreground drop-shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...s})}));Kl.displayName=Bg.displayName;const xf=e=>{let t;const n=new Set,s=(l,u)=>{const d=typeof l=="function"?l(t):l;if(!Object.is(d,t)){const f=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(p=>p(t,f))}},r=()=>t,a={setState:s,getState:r,getInitialState:()=>c,subscribe:l=>(n.add(l),()=>n.delete(l))},c=t=e(s,r,a);return a},uA=e=>e?xf(e):xf,dA=e=>e;function fA(e,t=dA){const n=ve.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return ve.useDebugValue(n),n}const hA=e=>{const t=uA(e),n=s=>fA(t,s);return Object.assign(n,t),n},pA=e=>hA;function mA(e,t){let n;try{n=e()}catch{return}return{getItem:r=>{var i;const o=c=>c===null?null:JSON.parse(c,void 0),a=(i=n.getItem(r))!=null?i:null;return a instanceof Promise?a.then(o):o(a)},setItem:(r,i)=>n.setItem(r,JSON.stringify(i,void 0)),removeItem:r=>n.removeItem(r)}}const fc=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(s){return fc(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return fc(s)(n)}}}},gA=(e,t)=>(n,s,r)=>{let i={storage:mA(()=>localStorage),partialize:h=>h,version:0,merge:(h,g)=>({...g,...h}),...t},o=!1;const a=new Set,c=new Set;let l=i.storage;if(!l)return e((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...h)},s,r);const u=()=>{const h=i.partialize({...s()});return l.setItem(i.name,{state:h,version:i.version})},d=r.setState;r.setState=(h,g)=>{d(h,g),u()};const f=e((...h)=>{n(...h),u()},s,r);r.getInitialState=()=>f;let p;const m=()=>{var h,g;if(!l)return;o=!1,a.forEach(b=>{var w;return b((w=s())!=null?w:f)});const v=((g=i.onRehydrateStorage)==null?void 0:g.call(i,(h=s())!=null?h:f))||void 0;return fc(l.getItem.bind(l))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate){const w=i.migrate(b.state,b.version);return w instanceof Promise?w.then(T=>[!0,T]):[!0,w]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var w;const[T,S]=b;if(p=i.merge(S,(w=s())!=null?w:f),n(p,!0),T)return u()}).then(()=>{v==null||v(p,void 0),p=s(),o=!0,c.forEach(b=>b(p))}).catch(b=>{v==null||v(void 0,b)})};return r.persist={setOptions:h=>{i={...i,...h},h.storage&&(l=h.storage)},clearStorage:()=>{l==null||l.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:h=>(a.add(h),()=>{a.delete(h)}),onFinishHydration:h=>(c.add(h),()=>{c.delete(h)})},i.skipHydration||m(),p||f},yA=gA;var pt=(e=>(e.EN="en",e.RU="ru",e))(pt||{});const Ve=pA()(yA(e=>({lang:"en",setLang:t=>e({lang:t})}),{name:"lang-storage"})),vA=[{lang:pt.RU},{lang:pt.EN}],bf=({className:e,light:t=!1})=>{const n=Ve(o=>o.lang),s=Ve(o=>o.setLang),[r,i]=x.useState(!1);return y.jsxs(Ug,{open:r,onOpenChange:()=>i(!r),children:[y.jsxs($g,{className:Q("flex text-white items-center gap-2",t?"text-white":"text-black",e),children:[y.jsx("img",{src:n===pt.RU?"/ru.svg":"/english.svg",alt:""}),n===pt.RU?"Ру":"En",y.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:t?"#fff":"#000"})})]}),y.jsx(Kl,{className:"flex flex-col gap-6",children:vA.filter(o=>o.lang!==n).map((o,a)=>y.jsxs("div",{onClick:()=>{s(o.lang),i(!1)},className:"flex gap-3 py-1 items-center cursor-pointer",children:[y.jsx("img",{src:o.lang===pt.RU?"/ru.svg":"/english.svg",alt:"flag"}),y.jsx("h5",{children:o.lang===pt.RU?"Русский":"English"})]},a))})]})},xA=Uh,bA=$h,wA=zh,zg=x.forwardRef(({className:e,...t},n)=>y.jsx(Ro,{ref:n,className:Q("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));zg.displayName=Ro.displayName;const Wg=x.forwardRef(({className:e,children:t,...n},s)=>y.jsxs(wA,{children:[y.jsx(zg,{}),y.jsxs(ko,{ref:s,className:Q("fixed left-[50%] top-[50%] z-50 grid 2xl:w-[40%] lg:w-1/2 w-[70%] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background md:p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,y.jsxs(Kc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[y.jsx(Gh,{className:"size-6"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Wg.displayName=ko.displayName;const SA=x.forwardRef(({className:e,...t},n)=>y.jsx(Oo,{ref:n,className:Q("text-lg font-semibold leading-none tracking-tight",e),...t}));SA.displayName=Oo.displayName;const _A=x.forwardRef(({className:e,...t},n)=>y.jsx(No,{ref:n,className:Q("text-sm text-muted-foreground",e),...t}));_A.displayName=No.displayName;const wf=(e,t,n)=>{if(e&&"reportValidity"in e){const s=V(n,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},Hg=(e,t)=>{for(const n in t.fields){const s=t.fields[n];s&&s.ref&&"reportValidity"in s.ref?wf(s.ref,n,e):s.refs&&s.refs.forEach(r=>wf(r,n,e))}},TA=(e,t)=>{t.shouldUseNativeValidation&&Hg(e,t);const n={};for(const s in e){const r=V(t.fields,s),i=Object.assign(e[s]||{},{ref:r&&r.ref});if(CA(t.names||Object.keys(e),s)){const o=Object.assign({},V(n,s));xe(o,"root",i),xe(n,s,o)}else xe(n,s,i)}return n},CA=(e,t)=>e.some(n=>n.startsWith(t+"."));var AA=function(e,t){for(var n={};e.length;){var s=e[0],r=s.code,i=s.message,o=s.path.join(".");if(!n[o])if("unionErrors"in s){var a=s.unionErrors[0].errors[0];n[o]={message:a.message,type:a.code}}else n[o]={message:i,type:r};if("unionErrors"in s&&s.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=n[o].types,l=c&&c[s.code];n[o]=Hm(o,t,n,r,l?[].concat(l,s.message):s.message)}e.shift()}return n},EA=function(e,t,n){return n===void 0&&(n={}),function(s,r,i){try{return Promise.resolve(function(o,a){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](s,t)).then(function(l){return i.shouldUseNativeValidation&&Hg({},i),{errors:{},values:n.raw?s:l}})}catch(l){return a(l)}return c&&c.then?c.then(void 0,a):c}(0,function(o){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(o))return{values:{},errors:TA(AA(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},pe;(function(e){e.assertEqual=r=>r;function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{const i={};for(const o of r)i[o]=o;return i},e.getValidEnumValues=r=>{const i=e.objectKeys(r).filter(a=>typeof r[r[a]]!="number"),o={};for(const a of i)o[a]=r[a];return e.objectValues(o)},e.objectValues=r=>e.objectKeys(r).map(function(i){return r[i]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const i=[];for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.push(o);return i},e.find=(r,i)=>{for(const o of r)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&isFinite(r)&&Math.floor(r)===r;function s(r,i=" | "){return r.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(r,i)=>typeof i=="bigint"?i.toString():i})(pe||(pe={}));var hc;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(hc||(hc={}));const z=pe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),un=e=>{switch(typeof e){case"undefined":return z.undefined;case"string":return z.string;case"number":return isNaN(e)?z.nan:z.number;case"boolean":return z.boolean;case"function":return z.function;case"bigint":return z.bigint;case"symbol":return z.symbol;case"object":return Array.isArray(e)?z.array:e===null?z.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?z.promise:typeof Map<"u"&&e instanceof Map?z.map:typeof Set<"u"&&e instanceof Set?z.set:typeof Date<"u"&&e instanceof Date?z.date:z.object;default:return z.unknown}},M=pe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),PA=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class vt extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},s={_errors:[]},r=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(r);else if(o.code==="invalid_return_type")r(o.returnTypeError);else if(o.code==="invalid_arguments")r(o.argumentsError);else if(o.path.length===0)s._errors.push(n(o));else{let a=s,c=0;for(;c"u")return Kv;var t=Qv(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])}},Yv=xh(),Or="data-scroll-locked",Jv=function(e,t,n,r){var s=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),`
- .`.concat(Dv,` {
- overflow: hidden `).concat(r,`;
- padding-right: `).concat(a,"px ").concat(r,`;
- }
- body[`).concat(Or,`] {
- overflow: hidden `).concat(r,`;
- overscroll-behavior: contain;
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
- padding-left: `.concat(s,`px;
- padding-top: `).concat(i,`px;
- padding-right: `).concat(o,`px;
- margin-left:0;
- margin-top:0;
- margin-right: `).concat(a,"px ").concat(r,`;
- `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
- }
-
- .`).concat(Wi,` {
- right: `).concat(a,"px ").concat(r,`;
- }
-
- .`).concat(Hi,` {
- margin-right: `).concat(a,"px ").concat(r,`;
- }
-
- .`).concat(Wi," .").concat(Wi,` {
- right: 0 `).concat(r,`;
- }
-
- .`).concat(Hi," .").concat(Hi,` {
- margin-right: 0 `).concat(r,`;
- }
-
- body[`).concat(Or,`] {
- `).concat(Mv,": ").concat(a,`px;
- }
-`)},Au=function(){var e=parseInt(document.body.getAttribute(Or)||"0",10);return isFinite(e)?e:0},ex=function(){x.useEffect(function(){return document.body.setAttribute(Or,(Au()+1).toString()),function(){var e=Au()-1;e<=0?document.body.removeAttribute(Or):document.body.setAttribute(Or,e.toString())}},[])},tx=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;ex();var i=x.useMemo(function(){return Xv(s)},[s]);return x.createElement(Yv,{styles:Jv(i,!t,s,n?"":"!important")})},La=!1;if(typeof window<"u")try{var Ni=Object.defineProperty({},"passive",{get:function(){return La=!0,!0}});window.addEventListener("test",Ni,Ni),window.removeEventListener("test",Ni,Ni)}catch{La=!1}var br=La?{passive:!1}:!1,nx=function(e){return e.tagName==="TEXTAREA"},bh=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!nx(e)&&n[t]==="visible")},rx=function(e){return bh(e,"overflowY")},sx=function(e){return bh(e,"overflowX")},Eu=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=wh(e,r);if(s){var i=Sh(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ix=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ox=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},wh=function(e,t){return e==="v"?rx(t):sx(t)},Sh=function(e,t){return e==="v"?ix(t):ox(t)},ax=function(e,t){return e==="h"&&t==="rtl"?-1:1},cx=function(e,t,n,r,s){var i=ax(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,c=t.contains(a),l=!1,u=o>0,d=0,f=0;do{var p=Sh(e,a),m=p[0],h=p[1],g=p[2],v=h-g-i*m;(m||v)&&wh(e,a)&&(d+=v,f+=m),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(l=!0),l},ji=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pu=function(e){return[e.deltaX,e.deltaY]},Ru=function(e){return e&&"current"in e?e.current:e},lx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ux=function(e){return`
- .block-interactivity-`.concat(e,` {pointer-events: none;}
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
-`)},dx=0,wr=[];function fx(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),s=x.useState(dx++)[0],i=x.useState(xh)[0],o=x.useRef(e);x.useEffect(function(){o.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var h=jv([e.lockRef.current],(e.shards||[]).map(Ru),!0).filter(Boolean);return h.forEach(function(g){return g.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),h.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var a=x.useCallback(function(h,g){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!o.current.allowPinchZoom;var v=ji(h),b=n.current,w="deltaX"in h?h.deltaX:b[0]-v[0],T="deltaY"in h?h.deltaY:b[1]-v[1],S,E=h.target,R=Math.abs(w)>Math.abs(T)?"h":"v";if("touches"in h&&R==="h"&&E.type==="range")return!1;var A=Eu(R,E);if(!A)return!0;if(A?S=R:(S=R==="v"?"h":"v",A=Eu(R,E)),!A)return!1;if(!r.current&&"changedTouches"in h&&(w||T)&&(r.current=S),!S)return!0;var N=r.current||S;return cx(N,g,h,N==="h"?w:T)},[]),c=x.useCallback(function(h){var g=h;if(!(!wr.length||wr[wr.length-1]!==i)){var v="deltaY"in g?Pu(g):ji(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&lx(S.delta,v)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var w=(o.current.shards||[]).map(Ru).filter(Boolean).filter(function(S){return S.contains(g.target)}),T=w.length>0?a(g,w[0]):!o.current.noIsolation;T&&g.cancelable&&g.preventDefault()}}},[]),l=x.useCallback(function(h,g,v,b){var w={name:h,delta:g,target:v,should:b,shadowParent:hx(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(T){return T!==w})},1)},[]),u=x.useCallback(function(h){n.current=ji(h),r.current=void 0},[]),d=x.useCallback(function(h){l(h.type,Pu(h),h.target,a(h,e.lockRef.current))},[]),f=x.useCallback(function(h){l(h.type,ji(h),h.target,a(h,e.lockRef.current))},[]);x.useEffect(function(){return wr.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,br),document.addEventListener("touchmove",c,br),document.addEventListener("touchstart",u,br),function(){wr=wr.filter(function(h){return h!==i}),document.removeEventListener("wheel",c,br),document.removeEventListener("touchmove",c,br),document.removeEventListener("touchstart",u,br)}},[]);var p=e.removeScrollBar,m=e.inert;return x.createElement(x.Fragment,null,m?x.createElement(i,{styles:ux(s)}):null,p?x.createElement(tx,{gapMode:e.gapMode}):null)}function hx(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const px=$v(vh,fx);var zc=x.forwardRef(function(e,t){return x.createElement(Po,Gt({},e,{ref:t,sideCar:px}))});zc.classNames=Po.classNames;var mx=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Sr=new WeakMap,Di=new WeakMap,Mi={},ca=0,_h=function(e){return e&&(e.host||_h(e.parentNode))},gx=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=_h(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})},yx=function(e,t,n,r){var s=gx(t,Array.isArray(e)?e:[e]);Mi[n]||(Mi[n]=new WeakMap);var i=Mi[n],o=[],a=new Set,c=new Set(s),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};s.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var p=f.getAttribute(r),m=p!==null&&p!=="false",h=(Sr.get(f)||0)+1,g=(i.get(f)||0)+1;Sr.set(f,h),i.set(f,g),o.push(f),h===1&&m&&Di.set(f,!0),g===1&&f.setAttribute(n,"true"),m||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),ca++,function(){o.forEach(function(d){var f=Sr.get(d)-1,p=i.get(d)-1;Sr.set(d,f),i.set(d,p),f||(Di.has(d)||d.removeAttribute(r),Di.delete(d)),p||d.removeAttribute(n)}),ca--,ca||(Sr=new WeakMap,Sr=new WeakMap,Di=new WeakMap,Mi={})}},Th=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=mx(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),yx(r,s,n,"aria-hidden")):function(){return null}},Wc="Dialog",[Ch,Bk]=Vc(Wc),[vx,Vt]=Ch(Wc),Ah=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=e,a=x.useRef(null),c=x.useRef(null),[l=!1,u]=dh({prop:r,defaultProp:s,onChange:i});return y.jsx(vx,{scope:t,triggerRef:a,contentRef:c,contentId:zi(),titleId:zi(),descriptionId:zi(),open:l,onOpenChange:u,onOpenToggle:x.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};Ah.displayName=Wc;var Eh="DialogTrigger",Ph=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Vt(Eh,n),i=It(t,s.triggerRef);return y.jsx(it.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Zc(s.open),...r,ref:i,onClick:mt(e.onClick,s.onOpenToggle)})});Ph.displayName=Eh;var Hc="DialogPortal",[xx,Rh]=Ch(Hc,{forceMount:void 0}),kh=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=Vt(Hc,t);return y.jsx(xx,{scope:t,forceMount:n,children:x.Children.map(r,o=>y.jsx(ss,{present:n||i.open,children:y.jsx($c,{asChild:!0,container:s,children:o})}))})};kh.displayName=Hc;var to="DialogOverlay",Oh=x.forwardRef((e,t)=>{const n=Rh(to,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=Vt(to,e.__scopeDialog);return i.modal?y.jsx(ss,{present:r||i.open,children:y.jsx(bx,{...s,ref:t})}):null});Oh.displayName=to;var bx=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Vt(to,n);return y.jsx(zc,{as:rs,allowPinchZoom:!0,shards:[s.contentRef],children:y.jsx(it.div,{"data-state":Zc(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),dr="DialogContent",Nh=x.forwardRef((e,t)=>{const n=Rh(dr,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=Vt(dr,e.__scopeDialog);return y.jsx(ss,{present:r||i.open,children:i.modal?y.jsx(wx,{...s,ref:t}):y.jsx(Sx,{...s,ref:t})})});Nh.displayName=dr;var wx=x.forwardRef((e,t)=>{const n=Vt(dr,e.__scopeDialog),r=x.useRef(null),s=It(t,n.contentRef,r);return x.useEffect(()=>{const i=r.current;if(i)return Th(i)},[]),y.jsx(jh,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:mt(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:mt(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:mt(e.onFocusOutside,i=>i.preventDefault())})}),Sx=x.forwardRef((e,t)=>{const n=Vt(dr,e.__scopeDialog),r=x.useRef(!1),s=x.useRef(!1);return y.jsx(jh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),jh=x.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=e,a=Vt(dr,n),c=x.useRef(null),l=It(t,c);return mh(),y.jsxs(y.Fragment,{children:[y.jsx(Uc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:y.jsx(Bc,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Zc(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(_x,{titleId:a.titleId}),y.jsx(Cx,{contentRef:c,descriptionId:a.descriptionId})]})]})}),qc="DialogTitle",Dh=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Vt(qc,n);return y.jsx(it.h2,{id:s.titleId,...r,ref:t})});Dh.displayName=qc;var Mh="DialogDescription",Fh=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Vt(Mh,n);return y.jsx(it.p,{id:s.descriptionId,...r,ref:t})});Fh.displayName=Mh;var Lh="DialogClose",Ih=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=Vt(Lh,n);return y.jsx(it.button,{type:"button",...r,ref:t,onClick:mt(e.onClick,()=>s.onOpenChange(!1))})});Ih.displayName=Lh;function Zc(e){return e?"open":"closed"}var Vh="DialogTitleWarning",[Uk,Bh]=rv(Vh,{contentName:dr,titleName:qc,docsSlug:"dialog"}),_x=({titleId:e})=>{const t=Bh(Vh),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
-
-If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
-
-For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return x.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Tx="DialogDescriptionWarning",Cx=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Bh(Tx).contentName}}.`;return x.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Uh=Ah,$h=Ph,zh=kh,Ro=Oh,ko=Nh,Oo=Dh,No=Fh,Gc=Ih;function Wh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Ou=Hh,Kc=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Ou(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(l=>{const u=n==null?void 0:n[l],d=i==null?void 0:i[l];if(u===null)return null;const f=ku(u)||ku(d);return s[l][f]}),a=n&&Object.entries(n).reduce((l,u)=>{let[d,f]=u;return f===void 0||(l[d]=f),l},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,u)=>{let{class:d,className:f,...p}=u;return Object.entries(p).every(m=>{let[h,g]=m;return Array.isArray(g)?g.includes({...i,...a}[h]):{...i,...a}[h]===g})?[...l,d,f]:l},[]);return Ou(e,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/**
- * @license lucide-react v0.473.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Ax=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qh=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
- * @license lucide-react v0.473.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */var Ex={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
- * @license lucide-react v0.473.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Px=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},c)=>x.createElement("svg",{ref:c,...Ex,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:qh("lucide",s),...a},[...o.map(([l,u])=>x.createElement(l,u)),...Array.isArray(i)?i:[i]]));/**
- * @license lucide-react v0.473.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Un=(e,t)=>{const n=x.forwardRef(({className:r,...s},i)=>x.createElement(Px,{ref:i,iconNode:t,className:qh(`lucide-${Ax(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
- * @license lucide-react v0.473.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Rx=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],kx=Un("ArrowUpRight",Rx);/**
- * @license lucide-react v0.473.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Ox=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],Nx=Un("Facebook",Ox);/**
- * @license lucide-react v0.473.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const jx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Zh=Un("LoaderCircle",jx);/**
- * @license lucide-react v0.473.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Dx=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],$k=Un("Loader",Dx);/**
- * @license lucide-react v0.473.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Mx=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Fx=Un("MapPin",Mx);/**
- * @license lucide-react v0.473.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Lx=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Ix=Un("Smartphone",Lx);/**
- * @license lucide-react v0.473.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Vx=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],Bx=Un("Upload",Vx);/**
- * @license lucide-react v0.473.0 - ISC
- *
- * This source code is licensed under the ISC license.
- * See the LICENSE file in the root directory of this source tree.
- */const Ux=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Gh=Un("X",Ux),Qc="-",$x=e=>{const t=Wx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(Qc);return a[0]===""&&a.length!==1&&a.shift(),Kh(a,t)||zx(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&r[o]?[...c,...r[o]]:c}}},Kh=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?Kh(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(Qc);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Nu=/^\[(.+)\]$/,zx=e=>{if(Nu.test(e)){const t=Nu.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Wx=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return qx(Object.entries(e.classGroups),n).forEach(([i,o])=>{Ia(o,r,i,t)}),r},Ia=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:ju(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(Hx(s)){Ia(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Ia(o,ju(t,i),n,r)})})},ju=(e,t)=>{let n=e;return t.split(Qc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Hx=e=>e.isThemeGetter,qx=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e,Zx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},Qh="!",Gx=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=a=>{const c=[];let l=0,u=0,d;for(let g=0;g!isNaN(parseFloat(e));class Vw{constructor(t,n={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=Yt.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Yt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Iw(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new vl);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ce.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Yt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>zu)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,zu);return Ep(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Bs(e,t){return new Vw(e,t)}function Bw(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Bs(n))}function Uw(e,t){const n=Lo(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=dw(i[o]);Bw(e,o,a)}}function $w(e){return!!(Qe(e)&&e.add)}function za(e,t){const n=e.getValue("willChange");if($w(n))return n.add(t)}function Pp(e){return e.props[fp]}function xl(e){let t;return()=>(t===void 0&&(t=e()),t)}const zw=xl(()=>window.ScrollTimeline!==void 0);class Ww{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Wa={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_s([0,.65,.55,1]),circOut:_s([.55,0,1,.45]),backIn:_s([.31,.01,.66,-.59]),backOut:_s([.33,1.53,.69,.99])};function Op(e,t){if(e)return typeof e=="function"&&ro()?Rp(e,t):wl(e)?_s(e):Array.isArray(e)?e.map(n=>Op(n,t)||Wa.easeOut):Wa[e]}const Np=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Gw=1e-7,Kw=12;function Qw(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=Np(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>Gw&&++axd&&(t.x=1),t.yE&&(m=E)}return{[f]:p,[d]:m}}}},eC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:a}=t,{apply:c=()=>{},...l}=mn(e,t),u=await zs(t,l),d=gn(s),f=cs(s),p=Mn(s)==="y",{width:m,height:h}=i.floating;let g,v;d==="top"||d==="bottom"?(g=d,v=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,g=f==="end"?"top":"bottom");const b=h-u.top-u.bottom,w=m-u.left-u.right,T=Dn(h-u[g],b),S=Dn(m-u[v],w),E=!t.middlewareData.shift;let R=T,A=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=b),E&&!f){const D=ht(u.left,0),L=ht(u.right,0),j=ht(u.top,0),$=ht(u.bottom,0);p?A=m-2*(D!==0||L!==0?D+L:ht(u.left,u.right)):R=h-2*(j!==0||$!==0?j+$:ht(u.top,u.bottom))}await c({...t,availableWidth:A,availableHeight:R});const N=await o.getDimensions(a.floating);return m!==N.width||h!==N.height?{reset:{rects:!0}}:{}}}};function $o(){return typeof window<"u"}function ls(e){return og(e)?(e.nodeName||"").toLowerCase():"#document"}function yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function sn(e){var t;return(t=(og(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function og(e){return $o()?e instanceof Node||e instanceof yt(e).Node:!1}function Mt(e){return $o()?e instanceof Element||e instanceof yt(e).Element:!1}function tn(e){return $o()?e instanceof HTMLElement||e instanceof yt(e).HTMLElement:!1}function ff(e){return!$o()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yt(e).ShadowRoot}function xi(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Ft(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function tC(e){return["table","td","th"].includes(ls(e))}function zo(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Bl(e){const t=Ul(),n=Mt(e)?Ft(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 nC(e){let t=Fn(e);for(;tn(t)&&!Yr(t);){if(Bl(t))return t;if(zo(t))return null;t=Fn(t)}return null}function Ul(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Yr(e){return["html","body","#document"].includes(ls(e))}function Ft(e){return yt(e).getComputedStyle(e)}function Wo(e){return Mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fn(e){if(ls(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ff(e)&&e.host||sn(e);return ff(t)?t.host:t}function ag(e){const t=Fn(e);return Yr(t)?e.ownerDocument?e.ownerDocument.body:e.body:tn(t)&&xi(t)?t:ag(t)}function Ws(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=ag(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=yt(s);if(i){const a=lc(o);return t.concat(o,o.visualViewport||[],xi(s)?s:[],a&&n?Ws(a):[])}return t.concat(s,Ws(s,[],n))}function lc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cg(e){const t=Ft(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=tn(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=ho(n)!==i||ho(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function $l(e){return Mt(e)?e:e.contextElement}function jr(e){const t=$l(e);if(!tn(t))return Jt(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=cg(t);let o=(i?ho(n.width):n.width)/r,a=(i?ho(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const rC=Jt(0);function lg(e){const t=yt(e);return!Ul()||!t.visualViewport?rC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yt(e)?!1:t}function fr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=$l(e);let o=Jt(1);t&&(r?Mt(r)&&(o=jr(r)):o=jr(e));const a=sC(i,n,r)?lg(i):Jt(0);let c=(s.left+a.x)/o.x,l=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const f=yt(i),p=r&&Mt(r)?yt(r):r;let m=f,h=lc(m);for(;h&&r&&p!==m;){const g=jr(h),v=h.getBoundingClientRect(),b=Ft(h),w=v.left+(h.clientLeft+parseFloat(b.paddingLeft))*g.x,T=v.top+(h.clientTop+parseFloat(b.paddingTop))*g.y;c*=g.x,l*=g.y,u*=g.x,d*=g.y,c+=w,l+=T,m=yt(h),h=lc(m)}}return mo({width:u,height:d,x:c,y:l})}function zl(e,t){const n=Wo(e).scrollLeft;return t?t.left+n:fr(sn(e)).left+n}function ug(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:zl(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function iC(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=sn(r),a=t?zo(t.floating):!1;if(r===o||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=Jt(1);const u=Jt(0),d=tn(r);if((d||!d&&!i)&&((ls(r)!=="body"||xi(o))&&(c=Wo(r)),tn(r))){const p=fr(r);l=jr(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const f=o&&!d&&!i?ug(o,c,!0):Jt(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function oC(e){return Array.from(e.getClientRects())}function aC(e){const t=sn(e),n=Wo(e),r=e.ownerDocument.body,s=ht(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ht(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+zl(e);const a=-n.scrollTop;return Ft(r).direction==="rtl"&&(o+=ht(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function cC(e,t){const n=yt(e),r=sn(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,c=0;if(s){i=s.width,o=s.height;const l=Ul();(!l||l&&t==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:a,y:c}}function lC(e,t){const n=fr(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=tn(e)?jr(e):Jt(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,c=s*i.x,l=r*i.y;return{width:o,height:a,x:c,y:l}}function hf(e,t,n){let r;if(t==="viewport")r=cC(e,n);else if(t==="document")r=aC(sn(e));else if(Mt(t))r=lC(t,n);else{const s=lg(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return mo(r)}function dg(e,t){const n=Fn(e);return n===t||!Mt(n)||Yr(n)?!1:Ft(n).position==="fixed"||dg(n,t)}function uC(e,t){const n=t.get(e);if(n)return n;let r=Ws(e,[],!1).filter(a=>Mt(a)&&ls(a)!=="body"),s=null;const i=Ft(e).position==="fixed";let o=i?Fn(e):e;for(;Mt(o)&&!Yr(o);){const a=Ft(o),c=Bl(o);!c&&a.position==="fixed"&&(s=null),(i?!c&&!s:!c&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||xi(o)&&!c&&dg(e,o))?r=r.filter(u=>u!==o):s=a,o=Fn(o)}return t.set(e,r),r}function dC(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?zo(t)?[]:uC(t,this._c):[].concat(n),r],a=o[0],c=o.reduce((l,u)=>{const d=hf(t,u,s);return l.top=ht(d.top,l.top),l.right=Dn(d.right,l.right),l.bottom=Dn(d.bottom,l.bottom),l.left=ht(d.left,l.left),l},hf(t,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function fC(e){const{width:t,height:n}=cg(e);return{width:t,height:n}}function hC(e,t,n){const r=tn(t),s=sn(t),i=n==="fixed",o=fr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Jt(0);if(r||!r&&!i)if((ls(t)!=="body"||xi(s))&&(a=Wo(t)),r){const f=fr(t,!0,i,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else s&&(c.x=zl(s));const l=s&&!r&&!i?ug(s,a):Jt(0),u=o.left+a.scrollLeft-c.x-l.x,d=o.top+a.scrollTop-c.y-l.y;return{x:u,y:d,width:o.width,height:o.height}}function Aa(e){return Ft(e).position==="static"}function pf(e,t){if(!tn(e)||Ft(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return sn(e)===n&&(n=n.ownerDocument.body),n}function fg(e,t){const n=yt(e);if(zo(e))return n;if(!tn(e)){let s=Fn(e);for(;s&&!Yr(s);){if(Mt(s)&&!Aa(s))return s;s=Fn(s)}return n}let r=pf(e,t);for(;r&&tC(r)&&Aa(r);)r=pf(r,t);return r&&Yr(r)&&Aa(r)&&!Bl(r)?n:r||nC(e)||n}const pC=async function(e){const t=this.getOffsetParent||fg,n=this.getDimensions,r=await n(e.floating);return{reference:hC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function mC(e){return Ft(e).direction==="rtl"}const gC={convertOffsetParentRelativeRectToViewportRelativeRect:iC,getDocumentElement:sn,getClippingRect:dC,getOffsetParent:fg,getElementRects:pC,getClientRects:oC,getDimensions:fC,getScale:jr,isElement:Mt,isRTL:mC};function hg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yC(e,t){let n=null,r;const s=sn(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(a||t(),!f||!p)return;const m=Bi(d),h=Bi(s.clientWidth-(u+f)),g=Bi(s.clientHeight-(d+p)),v=Bi(u),w={rootMargin:-m+"px "+-h+"px "+-g+"px "+-v+"px",threshold:ht(0,Dn(1,c))||1};let T=!0;function S(E){const R=E[0].intersectionRatio;if(R!==c){if(!T)return o();R?o(!1,R):r=setTimeout(()=>{o(!1,1e-7)},1e3)}R===1&&!hg(l,e.getBoundingClientRect())&&o(),T=!1}try{n=new IntersectionObserver(S,{...w,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return o(!0),i}function vC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=$l(e),u=s||i?[...l?Ws(l):[],...Ws(t)]:[];u.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&a?yC(l,n):null;let f=-1,p=null;o&&(p=new ResizeObserver(v=>{let[b]=v;b&&b.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?fr(e):null;c&&g();function g(){const v=fr(e);h&&!hg(h,v)&&n(),h=v,m=requestAnimationFrame(g)}return n(),()=>{var v;u.forEach(b=>{s&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(v=p)==null||v.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const xC=XT,bC=YT,wC=GT,SC=eC,_C=KT,mf=ZT,TC=JT,CC=(e,t,n)=>{const r=new Map,s={platform:gC,...n},i={...s.platform,_c:r};return qT(e,t,{...s,platform:i})};var Xi=typeof document<"u"?x.useLayoutEffect:x.useEffect;function go(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,s;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(!go(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!go(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function pg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gf(e,t){const n=pg(e);return Math.round(t*n)/n}function Ea(e){const t=x.useRef(e);return Xi(()=>{t.current=e}),t}function AC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=x.useState(r);go(f,r)||p(r);const[m,h]=x.useState(null),[g,v]=x.useState(null),b=x.useCallback(q=>{q!==E.current&&(E.current=q,h(q))},[]),w=x.useCallback(q=>{q!==R.current&&(R.current=q,v(q))},[]),T=i||m,S=o||g,E=x.useRef(null),R=x.useRef(null),A=x.useRef(u),N=c!=null,D=Ea(c),L=Ea(s),j=Ea(l),$=x.useCallback(()=>{if(!E.current||!R.current)return;const q={placement:t,strategy:n,middleware:f};L.current&&(q.platform=L.current),CC(E.current,R.current,q).then(se=>{const me={...se,isPositioned:j.current!==!1};W.current&&!go(A.current,me)&&(A.current=me,lh.flushSync(()=>{d(me)}))})},[f,t,n,L,j]);Xi(()=>{l===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(q=>({...q,isPositioned:!1})))},[l]);const W=x.useRef(!1);Xi(()=>(W.current=!0,()=>{W.current=!1}),[]),Xi(()=>{if(T&&(E.current=T),S&&(R.current=S),T&&S){if(D.current)return D.current(T,S,$);$()}},[T,S,$,D,N]);const re=x.useMemo(()=>({reference:E,floating:R,setReference:b,setFloating:w}),[b,w]),Y=x.useMemo(()=>({reference:T,floating:S}),[T,S]),Z=x.useMemo(()=>{const q={position:n,left:0,top:0};if(!Y.floating)return q;const se=gf(Y.floating,u.x),me=gf(Y.floating,u.y);return a?{...q,transform:"translate("+se+"px, "+me+"px)",...pg(Y.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:se,top:me}},[n,a,Y.floating,u.x,u.y]);return x.useMemo(()=>({...u,update:$,refs:re,elements:Y,floatingStyles:Z}),[u,$,re,Y,Z])}const EC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?mf({element:r.current,padding:s}).fn(n):{}:r?mf({element:r,padding:s}).fn(n):{}}}},PC=(e,t)=>({...xC(e),options:[e,t]}),RC=(e,t)=>({...bC(e),options:[e,t]}),kC=(e,t)=>({...TC(e),options:[e,t]}),OC=(e,t)=>({...wC(e),options:[e,t]}),NC=(e,t)=>({...SC(e),options:[e,t]}),jC=(e,t)=>({..._C(e),options:[e,t]}),DC=(e,t)=>({...EC(e),options:[e,t]});var MC="Arrow",mg=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return y.jsx(it.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});mg.displayName=MC;var FC=mg;function LC(e){const[t,n]=x.useState(void 0);return ur(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Wl="Popper",[gg,yg]=Vc(Wl),[IC,vg]=gg(Wl),xg=e=>{const{__scopePopper:t,children:n}=e,[r,s]=x.useState(null);return y.jsx(IC,{scope:t,anchor:r,onAnchorChange:s,children:n})};xg.displayName=Wl;var bg="PopperAnchor",wg=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=vg(bg,n),o=x.useRef(null),a=It(t,o);return x.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:y.jsx(it.div,{...s,ref:a})});wg.displayName=bg;var Hl="PopperContent",[VC,BC]=gg(Hl),Sg=x.forwardRef((e,t)=>{var ue,ye,Oe,Ie,we,G;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:m,...h}=e,g=vg(Hl,n),[v,b]=x.useState(null),w=It(t,de=>b(de)),[T,S]=x.useState(null),E=LC(T),R=(E==null?void 0:E.width)??0,A=(E==null?void 0:E.height)??0,N=r+(i!=="center"?"-"+i:""),D=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},L=Array.isArray(l)?l:[l],j=L.length>0,$={padding:D,boundary:L.filter($C),altBoundary:j},{refs:W,floatingStyles:re,placement:Y,isPositioned:Z,middlewareData:q}=AC({strategy:"fixed",placement:N,whileElementsMounted:(...de)=>vC(...de,{animationFrame:p==="always"}),elements:{reference:g.anchor},middleware:[PC({mainAxis:s+A,alignmentAxis:o}),c&&RC({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?kC():void 0,...$}),c&&OC({...$}),NC({...$,apply:({elements:de,rects:Se,availableWidth:Ue,availableHeight:ft})=>{const{width:bt,height:_}=Se.reference,P=de.floating.style;P.setProperty("--radix-popper-available-width",`${Ue}px`),P.setProperty("--radix-popper-available-height",`${ft}px`),P.setProperty("--radix-popper-anchor-width",`${bt}px`),P.setProperty("--radix-popper-anchor-height",`${_}px`)}}),T&&DC({element:T,padding:a}),zC({arrowWidth:R,arrowHeight:A}),f&&jC({strategy:"referenceHidden",...$})]}),[se,me]=Cg(Y),ge=On(m);ur(()=>{Z&&(ge==null||ge())},[Z,ge]);const He=(ue=q.arrow)==null?void 0:ue.x,dt=(ye=q.arrow)==null?void 0:ye.y,qe=((Oe=q.arrow)==null?void 0:Oe.centerOffset)!==0,[At,Ye]=x.useState();return ur(()=>{v&&Ye(window.getComputedStyle(v).zIndex)},[v]),y.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:Z?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:At,"--radix-popper-transform-origin":[(Ie=q.transformOrigin)==null?void 0:Ie.x,(we=q.transformOrigin)==null?void 0:we.y].join(" "),...((G=q.hide)==null?void 0:G.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(VC,{scope:n,placedSide:se,onArrowChange:S,arrowX:He,arrowY:dt,shouldHideArrow:qe,children:y.jsx(it.div,{"data-side":se,"data-align":me,...h,ref:w,style:{...h.style,animation:Z?void 0:"none"}})})})});Sg.displayName=Hl;var _g="PopperArrow",UC={top:"bottom",right:"left",bottom:"top",left:"right"},Tg=x.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=BC(_g,r),o=UC[i.placedSide];return y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]: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(FC,{...s,ref:n,style:{...s.style,display:"block"}})})});Tg.displayName=_g;function $C(e){return e!==null}var zC=e=>({name:"transformOrigin",options:e,fn(t){var g,v,b;const{placement:n,rects:r,middlewareData:s}=t,o=((g=s.arrow)==null?void 0:g.centerOffset)!==0,a=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=Cg(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((v=s.arrow)==null?void 0:v.x)??0)+a/2,p=(((b=s.arrow)==null?void 0:b.y)??0)+c/2;let m="",h="";return l==="bottom"?(m=o?d:`${f}px`,h=`${-c}px`):l==="top"?(m=o?d:`${f}px`,h=`${r.floating.height+c}px`):l==="right"?(m=`${-c}px`,h=o?d:`${p}px`):l==="left"&&(m=`${r.floating.width+c}px`,h=o?d:`${p}px`),{data:{x:m,y:h}}}});function Cg(e){const[t,n="center"]=e.split("-");return[t,n]}var WC=xg,Ag=wg,HC=Sg,qC=Tg,ql="Popover",[Eg,Qk]=Vc(ql,[yg]),bi=yg(),[ZC,zn]=Eg(ql),Pg=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!1}=e,a=bi(t),c=x.useRef(null),[l,u]=x.useState(!1),[d=!1,f]=dh({prop:r,defaultProp:s,onChange:i});return y.jsx(WC,{...a,children:y.jsx(ZC,{scope:t,contentId:zi(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:x.useCallback(()=>f(p=>!p),[f]),hasCustomAnchor:l,onCustomAnchorAdd:x.useCallback(()=>u(!0),[]),onCustomAnchorRemove:x.useCallback(()=>u(!1),[]),modal:o,children:n})})};Pg.displayName=ql;var Rg="PopoverAnchor",GC=x.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=zn(Rg,n),i=bi(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=s;return x.useEffect(()=>(o(),()=>a()),[o,a]),y.jsx(Ag,{...i,...r,ref:t})});GC.displayName=Rg;var kg="PopoverTrigger",Og=x.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=zn(kg,n),i=bi(n),o=It(t,s.triggerRef),a=y.jsx(it.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Fg(s.open),...r,ref:o,onClick:mt(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:y.jsx(Ag,{asChild:!0,...i,children:a})});Og.displayName=kg;var Zl="PopoverPortal",[KC,QC]=Eg(Zl,{forceMount:void 0}),Ng=e=>{const{__scopePopover:t,forceMount:n,children:r,container:s}=e,i=zn(Zl,t);return y.jsx(KC,{scope:t,forceMount:n,children:y.jsx(ss,{present:n||i.open,children:y.jsx($c,{asChild:!0,container:s,children:r})})})};Ng.displayName=Zl;var Jr="PopoverContent",jg=x.forwardRef((e,t)=>{const n=QC(Jr,e.__scopePopover),{forceMount:r=n.forceMount,...s}=e,i=zn(Jr,e.__scopePopover);return y.jsx(ss,{present:r||i.open,children:i.modal?y.jsx(XC,{...s,ref:t}):y.jsx(YC,{...s,ref:t})})});jg.displayName=Jr;var XC=x.forwardRef((e,t)=>{const n=zn(Jr,e.__scopePopover),r=x.useRef(null),s=It(t,r),i=x.useRef(!1);return x.useEffect(()=>{const o=r.current;if(o)return Th(o)},[]),y.jsx(zc,{as:rs,allowPinchZoom:!0,children:y.jsx(Dg,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:mt(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:mt(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0,l=a.button===2||c;i.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:mt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),YC=x.forwardRef((e,t)=>{const n=zn(Jr,e.__scopePopover),r=x.useRef(!1),s=x.useRef(!1);return y.jsx(Dg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),Dg=x.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=zn(Jr,n),p=bi(n);return mh(),y.jsx(Uc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:y.jsx(Bc,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:y.jsx(HC,{"data-state":Fg(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Mg="PopoverClose",JC=x.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=zn(Mg,n);return y.jsx(it.button,{type:"button",...r,ref:t,onClick:mt(e.onClick,()=>s.onOpenChange(!1))})});JC.displayName=Mg;var eA="PopoverArrow",tA=x.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,s=bi(n);return y.jsx(qC,{...s,...r,ref:t})});tA.displayName=eA;function Fg(e){return e?"open":"closed"}var nA=Pg,rA=Og,sA=Ng,Lg=jg;const Ig=nA,Vg=rA,Gl=x.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},s)=>y.jsx(sA,{children:y.jsx(Lg,{ref:s,align:t,sideOffset:n,className:X("z-50 w-32 rounded-[2px] s bg-white p-4 text-popover-foreground drop-shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));Gl.displayName=Lg.displayName;const iA=[{lang:pt.RU},{lang:pt.EN}],yf=({className:e,light:t=!1})=>{const n=Le(o=>o.lang),r=Le(o=>o.setLang),[s,i]=x.useState(!1);return y.jsxs(Ig,{open:s,onOpenChange:()=>i(!s),children:[y.jsxs(Vg,{className:X("flex text-white items-center gap-2",t?"text-white":"text-black",e),children:[y.jsx("img",{src:n===pt.RU?"/ru.svg":"/english.svg",alt:""}),n===pt.RU?"Ру":"En",y.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:t?"#fff":"#000"})})]}),y.jsx(Gl,{className:"flex flex-col gap-6",children:iA.filter(o=>o.lang!==n).map((o,a)=>y.jsxs("div",{onClick:()=>{r(o.lang),i(!1)},className:"flex gap-3 py-1 items-center cursor-pointer",children:[y.jsx("img",{src:o.lang===pt.RU?"/ru.svg":"/english.svg",alt:"flag"}),y.jsx("h5",{children:o.lang===pt.RU?"Русский":"English"})]},a))})]})},oA=Uh,aA=$h,cA=zh,Bg=x.forwardRef(({className:e,...t},n)=>y.jsx(Ro,{ref:n,className:X("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Bg.displayName=Ro.displayName;const Ug=x.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(cA,{children:[y.jsx(Bg,{}),y.jsxs(ko,{ref:r,className:X("fixed left-[50%] top-[50%] z-50 grid 2xl:w-[40%] lg:w-1/2 w-[70%] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background md:p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,y.jsxs(Gc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[y.jsx(Gh,{className:"size-6"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ug.displayName=ko.displayName;const lA=x.forwardRef(({className:e,...t},n)=>y.jsx(Oo,{ref:n,className:X("text-lg font-semibold leading-none tracking-tight",e),...t}));lA.displayName=Oo.displayName;const uA=x.forwardRef(({className:e,...t},n)=>y.jsx(No,{ref:n,className:X("text-sm text-muted-foreground",e),...t}));uA.displayName=No.displayName;const vf=(e,t,n)=>{if(e&&"reportValidity"in e){const r=V(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},$g=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?vf(r.ref,n,e):r.refs&&r.refs.forEach(s=>vf(s,n,e))}},dA=(e,t)=>{t.shouldUseNativeValidation&&$g(e,t);const n={};for(const r in e){const s=V(t.fields,r),i=Object.assign(e[r]||{},{ref:s&&s.ref});if(fA(t.names||Object.keys(e),r)){const o=Object.assign({},V(n,r));xe(o,"root",i),xe(n,r,o)}else xe(n,r,i)}return n},fA=(e,t)=>e.some(n=>n.startsWith(t+"."));var hA=function(e,t){for(var n={};e.length;){var r=e[0],s=r.code,i=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var a=r.unionErrors[0].errors[0];n[o]={message:a.message,type:a.code}}else n[o]={message:i,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=$m(o,t,n,s,l?[].concat(l,r.message):r.message)}e.shift()}return n},pA=function(e,t,n){return n===void 0&&(n={}),function(r,s,i){try{return Promise.resolve(function(o,a){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return i.shouldUseNativeValidation&&$g({},i),{errors:{},values:n.raw?r:l}})}catch(l){return a(l)}return c&&c.then?c.then(void 0,a):c}(0,function(o){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(o))return{values:{},errors:dA(hA(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},pe;(function(e){e.assertEqual=s=>s;function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},e.getValidEnumValues=s=>{const i=e.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of i)o[a]=s[a];return e.objectValues(o)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},e.find=(s,i)=>{for(const o of s)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(pe||(pe={}));var uc;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(uc||(uc={}));const z=pe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),un=e=>{switch(typeof e){case"undefined":return z.undefined;case"string":return z.string;case"number":return isNaN(e)?z.nan:z.number;case"boolean":return z.boolean;case"function":return z.function;case"bigint":return z.bigint;case"symbol":return z.symbol;case"object":return Array.isArray(e)?z.array:e===null?z.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?z.promise:typeof Map<"u"&&e instanceof Map?z.map:typeof Set<"u"&&e instanceof Set?z.set:typeof Date<"u"&&e instanceof Date?z.date:z.object;default:return z.unknown}},M=pe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),mA=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class vt extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},r={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let a=r,c=0;for(;c0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Xn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ry=e=>!si(e)&&e!==Xn;function pc(){const{caseless:e}=ry(this)&&this||{},t={},n=(r,s)=>{const i=e&&ny(t,s)||s;Yi(t[i])&&Yi(r)?t[i]=pc(t[i],r):Yi(r)?t[i]=pc({},r):us(r)?t[i]=r.slice():t[i]=r};for(let r=0,s=arguments.length;r(Si(t,(s,i)=>{n&&xt(s)?e[i]=Jg(s,n):e[i]=s},{allOwnKeys:r}),e),UE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$E=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},zE=(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Ql(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},WE=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},HE=e=>{if(!e)return null;if(us(e))return e;let t=e.length;if(!ty(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},qE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ql(Uint8Array)),ZE=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},GE=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},KE=Bt("HTMLFormElement"),QE=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Sf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),XE=Bt("RegExp"),sy=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Si(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},YE=e=>{sy(e,(t,n)=>{if(xt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(xt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},JE=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return us(e)?r(e):r(String(e).split(t)),n},eP=()=>{},tP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ka="abcdefghijklmnopqrstuvwxyz",_f="0123456789",iy={DIGIT:_f,ALPHA:ka,ALPHA_DIGIT:ka+ka.toUpperCase()+_f},nP=(e=16,t=iy.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function rP(e){return!!(e&&xt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const sP=e=>{const t=new Array(10),n=(r,s)=>{if(Go(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const i=us(r)?[]:{};return Si(r,(o,a)=>{const c=n(o,s+1);!si(c)&&(i[a]=c)}),t[s]=void 0,i}}return r};return n(e,0)},iP=Bt("AsyncFunction"),oP=e=>e&&(Go(e)||xt(e))&&xt(e.then)&&xt(e.catch),oy=((e,t)=>e?setImmediate:t?((n,r)=>(Xn.addEventListener("message",({source:s,data:i})=>{s===Xn&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),Xn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",xt(Xn.postMessage)),aP=typeof queueMicrotask<"u"?queueMicrotask.bind(Xn):typeof process<"u"&&process.nextTick||oy,k={isArray:us,isArrayBuffer:ey,isBuffer:TE,isFormData:jE,isArrayBufferView:CE,isString:AE,isNumber:ty,isBoolean:EE,isObject:Go,isPlainObject:Yi,isReadableStream:ME,isRequest:FE,isResponse:LE,isHeaders:IE,isUndefined:si,isDate:PE,isFile:RE,isBlob:kE,isRegExp:XE,isFunction:xt,isStream:NE,isURLSearchParams:DE,isTypedArray:qE,isFileList:OE,forEach:Si,merge:pc,extend:BE,trim:VE,stripBOM:UE,inherits:$E,toFlatObject:zE,kindOf:qo,kindOfTest:Bt,endsWith:WE,toArray:HE,forEachEntry:ZE,matchAll:GE,isHTMLForm:KE,hasOwnProperty:Sf,hasOwnProp:Sf,reduceDescriptors:sy,freezeMethods:YE,toObjectSet:JE,toCamelCase:QE,noop:eP,toFiniteNumber:tP,findKey:ny,global:Xn,isContextDefined:ry,ALPHABET:iy,generateString:nP,isSpecCompliantForm:rP,toJSONObject:sP,isAsyncFn:iP,isThenable:oP,setImmediate:oy,asap:aP};function ie(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}k.inherits(ie,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.status}}});const ay=ie.prototype,cy={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{cy[e]={value:e}});Object.defineProperties(ie,cy);Object.defineProperty(ay,"isAxiosError",{value:!0});ie.from=(e,t,n,r,s,i)=>{const o=Object.create(ay);return k.toFlatObject(e,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),ie.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const cP=null;function mc(e){return k.isPlainObject(e)||k.isArray(e)}function ly(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Tf(e,t,n){return e?e.concat(t).map(function(s,i){return s=ly(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function lP(e){return k.isArray(e)&&!e.some(mc)}const uP=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function Ko(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,g){return!k.isUndefined(g[h])});const r=n.metaTokens,s=n.visitor||u,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(s))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(k.isDate(m))return m.toISOString();if(!c&&k.isBlob(m))throw new ie("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(m)||k.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,h,g){let v=m;if(m&&!g&&typeof m=="object"){if(k.endsWith(h,"{}"))h=r?h:h.slice(0,-2),m=JSON.stringify(m);else if(k.isArray(m)&&lP(m)||(k.isFileList(m)||k.endsWith(h,"[]"))&&(v=k.toArray(m)))return h=ly(h),v.forEach(function(w,T){!(k.isUndefined(w)||w===null)&&t.append(o===!0?Tf([h],T,i):o===null?h:h+"[]",l(w))}),!1}return mc(m)?!0:(t.append(Tf(g,h,i),l(m)),!1)}const d=[],f=Object.assign(uP,{defaultVisitor:u,convertValue:l,isVisitable:mc});function p(m,h){if(!k.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(m),k.forEach(m,function(v,b){(!(k.isUndefined(v)||v===null)&&s.call(t,v,k.isString(b)?b.trim():b,h,f))===!0&&p(v,h?h.concat(b):[b])}),d.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Cf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Xl(e,t){this._pairs=[],e&&Ko(e,this,t)}const uy=Xl.prototype;uy.append=function(t,n){this._pairs.push([t,n])};uy.toString=function(t){const n=t?function(r){return t.call(this,r,Cf)}:Cf;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function dP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dy(e,t,n){if(!t)return e;const r=n&&n.encode||dP;k.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=k.isURLSearchParams(t)?t.toString():new Xl(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Af{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){k.forEach(this.handlers,function(r){r!==null&&t(r)})}}const fy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fP=typeof URLSearchParams<"u"?URLSearchParams:Xl,hP=typeof FormData<"u"?FormData:null,pP=typeof Blob<"u"?Blob:null,mP={isBrowser:!0,classes:{URLSearchParams:fP,FormData:hP,Blob:pP},protocols:["http","https","file","blob","url","data"]},Yl=typeof window<"u"&&typeof document<"u",gc=typeof navigator=="object"&&navigator||void 0,gP=Yl&&(!gc||["ReactNative","NativeScript","NS"].indexOf(gc.product)<0),yP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",vP=Yl&&window.location.href||"http://localhost",xP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yl,hasStandardBrowserEnv:gP,hasStandardBrowserWebWorkerEnv:yP,navigator:gc,origin:vP},Symbol.toStringTag,{value:"Module"})),Ke={...xP,...mP};function bP(e,t){return Ko(e,new Ke.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return Ke.isNode&&k.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function wP(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function SP(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r=n.length;return o=!o&&k.isArray(s)?s.length:o,c?(k.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!k.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&k.isArray(s[o])&&(s[o]=SP(s[o])),!a)}if(k.isFormData(e)&&k.isFunction(e.entries)){const n={};return k.forEachEntry(e,(r,s)=>{t(wP(r),s,n,0)}),n}return null}function _P(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const _i={transitional:fy,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=k.isObject(t);if(i&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return s?JSON.stringify(hy(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return bP(t,this.formSerializer).toString();if((a=k.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Ko(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),_P(t)):t}],transformResponse:[function(t){const n=this.transitional||_i.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?ie.from(a,ie.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{_i.headers[e]={}});const TP=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),CP=e=>{const t={};let n,r,s;return e&&e.split(`
-`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&TP[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ef=Symbol("internals");function Ss(e){return e&&String(e).trim().toLowerCase()}function Ji(e){return e===!1||e==null?e:k.isArray(e)?e.map(Ji):String(e)}function AP(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const EP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Oa(e,t,n,r,s){if(k.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!k.isString(t)){if(k.isString(r))return t.indexOf(r)!==-1;if(k.isRegExp(r))return r.test(t)}}function PP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function RP(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}class lt{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(a,c,l){const u=Ss(c);if(!u)throw new Error("header name must be a non-empty string");const d=k.findKey(s,u);(!d||s[d]===void 0||l===!0||l===void 0&&s[d]!==!1)&&(s[d||c]=Ji(a))}const o=(a,c)=>k.forEach(a,(l,u)=>i(l,u,c));if(k.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(k.isString(t)&&(t=t.trim())&&!EP(t))o(CP(t),n);else if(k.isHeaders(t))for(const[a,c]of t.entries())i(c,a,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Ss(t),t){const r=k.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return AP(s);if(k.isFunction(n))return n.call(this,s,r);if(k.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ss(t),t){const r=k.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Oa(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=Ss(o),o){const a=k.findKey(r,o);a&&(!n||Oa(r,r[a],a,n))&&(delete r[a],s=!0)}}return k.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||Oa(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return k.forEach(this,(s,i)=>{const o=k.findKey(r,i);if(o){n[o]=Ji(s),delete n[i];return}const a=t?PP(i):String(i).trim();a!==i&&delete n[i],n[a]=Ji(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&k.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
-`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ef]=this[Ef]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=Ss(o);r[a]||(RP(s,o),r[a]=!0)}return k.isArray(t)?t.forEach(i):i(t),this}}lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(lt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});k.freezeMethods(lt);function Na(e,t){const n=this||_i,r=t||n,s=lt.from(r.headers);let i=r.data;return k.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function py(e){return!!(e&&e.__CANCEL__)}function ds(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(ds,ie,{__CANCEL__:!0});function my(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ie("Request failed with status code "+n.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function kP(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function OP(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=r[i];o||(o=l),n[s]=c,r[s]=l;let d=i,f=0;for(;d!==s;)f+=n[d++],d=d%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),l-o