1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,55436,e=>{"use strict";let t=(0,e.i(75254).default)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);e.s(["Search",()=>t],55436)},67423,(e,t,r)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:r,blurHeight:n,blurDataURL:a,objectFit:o}){let i=r?40*r:e,s=n?40*n:t,l=i&&s?`viewBox='0 0 ${i} ${s}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${l}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${l?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${a}'/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},87690,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return o},imageConfigDefault:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=["default","imgix","cloudinary","akamai","custom"],i={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},8927,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return c}}),e.r(33525);let n=e.r(43369),a=e.r(67423),o=e.r(87690),i=["-moz-initial","fill","none","scale-down",void 0];function s(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function c({src:e,sizes:t,unoptimized:r=!1,priority:c=!1,preload:d=!1,loading:u,className:f,quality:m,width:p,height:h,fill:g=!1,style:x,overrideSrc:y,onLoad:v,onLoadingComplete:w,placeholder:b="empty",blurDataURL:j,fetchPriority:N,decoding:C="async",layout:k,objectFit:R,objectPosition:S,lazyBoundary:E,lazyRoot:P,...M},_){var O;let A,D,L,{imgConf:T,showAltText:I,blurComplete:z,defaultLoader:B}=_,F=T||o.imageConfigDefault;if("allSizes"in F)A=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>e-t),t=F.deviceSizes.sort((e,t)=>e-t),r=F.qualities?.sort((e,t)=>e-t);A={...F,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===B)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let H=M.loader||B;delete M.loader,delete M.srcSet;let q="__next_img_default"in H;if(q){if("custom"===A.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop. 2Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=H;H=t=>{let{config:r,...n}=t;return e(n)}}if(k){"fill"===k&&(g=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[k];e&&(x={...x,...e});let r={responsive:"100vw",fill:"100vw"}[k];r&&!t&&(t=r)}let $="",W=l(p),V=l(h);if((O=e)&&"object"==typeof O&&(s(O)||void 0!==O.src)){let t=s(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}
2`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(D=t.blurWidth,L=t.blurHeight,j=j||t.blurDataURL,$=t.src,!g)if(W||V){if(W&&!V){let e=W/t.width;V=Math.round(t.height*e)}else if(!W&&V){let e=V/t.height;W=Math.round(t.width*e)}}else W=t.width,V=t.height}let U=!c&&!d&&("lazy"===u||void 0===u);(!(e="string"==typeof e?e:$)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,U=!1),A.unoptimized&&(r=!0),q&&!A.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let G=l(m),K=Object.assign(g?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:R,objectPosition:S}:{},I?{}:{color:"transparent"},x),X=z||"empty"===b?null:"blur"===b?`url("data:image/svg+xml;charset=utf-8,${(0,a.getImageBlurSvg)({widthInt:W,heightInt:V,blurWidth:D,blurHeight:L,blurDataURL:j||"",objectFit:K.objectFit})}")`:`url("${b}")`,J=i.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,Q=X?{backgroundSize:J,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:X}:{},Y=function({config:e,src:t,unoptimized:r,width:a,quality:o,sizes:i,loader:s}){if(r){let e=(0,n.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")&&e){let r=t.includes("?")?"&":"?";t=`${t}${r}dpl=${e}`}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:c}=function({deviceSizes:e,allSizes:t},r,n){if(n){let r=/(^|\s)(1?\d?\d)vw/g,a=[];for(let e;e=r.exec(n);)a.push(parseInt(e[2]));if(a.length){let r=.01*Math.min(...a);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,a,i),d=l.length-1;return{sizes:i||"w"!==c?i:"100vw",srcSet:l.map((r,n)=>`${s({config:e,src:t,quality:o,width:r})} ${"w"===c?r:n+1}${c}`).join(", "),src:s({config:e,src:t,quality:o,width:l[d]})}}({config:A,src:e,unoptimized:r,width:W,quality:G,sizes:t,loader:H}),Z=U?"lazy":u;return{props:{...M,loading:Z,fetchPriority:N,width:W,height:V,decoding:C,className:f,style:{...K,...Q},sizes:Y.sizes,srcSet:Y.srcSet,src:y||Y.src},meta:{unoptimized:r,preload:d||c,placeholder:b,fill:g}}}},98879,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}});let n=e.r(71645),a="u"<typeof window,o=a?()=>{}:n.useLayoutEffect,i=a?()=>{}:n.useEffect;function s(e){let{headManager:t,reduceComponentsToState:r}=e;function s(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return a&&(t?.mountedInstances?.add(e.children),s()),o(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),o(()=>(t&&(t._pendingUpdate=s),()=>{t&&(t._pendingUpdate=s)})),i(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},25633,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return h},defaultHead:function(){return u}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(55682),i=e.r(90809),s=e.r(43476),l=i._(e.r(71645)),c=o._(e.r(98879)),d=e.r(42732);function u(){return[(0,s.jsx)("meta",{charSet:"utf-8"},"charset"),(0,s.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(33525);let m=["name","httpEquiv","charSet","itemProp"];function p(e){let t,r,n,a;return e.reduce(f,[]).reverse().concat(u().reverse()).filter((t=new Set,r=new Set,n=new Set,a={},e=>{let o=!0,i=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){i=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?o=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?o=!1:r.add(e.type);break;case"meta":for(let t=0,r=m.length;t<r;t++){let r=m[t];if(e.props.hasOwnProperty(r))if("charSet"===r)n.has(r)?o=!1:n.add(r);else{let t=e.props[r],n=a[r]||new Set;("name"!==r||!i)&&n.has(t)?o=!1:(n.add(t),a[r]=n)}}}return o}
2)).reverse().map((e,t)=>{let r=e.key||t;return l.default.cloneElement(e,{key:r})})}let h=function({children:e}){let t=(0,l.useContext)(d.HeadManagerContext);return(0,s.jsx)(c.default,{reduceComponentsToState:p,headManager:t,children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18556,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let n=e.r(55682)._(e.r(71645)),a=e.r(87690),o=n.default.createContext(a.imageConfigDefault)},65856,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(55682)._(e.r(71645)).default.createContext(null)},70965,(e,t,r)=>{"use strict";function n(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,0):r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return n}})},1948,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}});let n=e.r(70965),a=e.r(43369);function o({config:e,src:t,width:r,quality:o}){if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns. 3Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let i=(0,n.findClosestQuality)(o,e),s=(0,a.getDeploymentId)();return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${i}${t.startsWith("/")&&s?`&dpl=${s}`:""}`}o.__next_img_default=!0;let i=o},5500,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return w}});let n=e.r(55682),a=e.r(90809),o=e.r(43476),i=a._(e.r(71645)),s=n._(e.r(74080)),l=n._(e.r(25633)),c=e.r(8927),d=e.r(87690),u=e.r(18556);e.r(33525);let f=e.r(65856),m=n._(e.r(1948)),p=e.r(18581),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[70,75,80],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,r,n,a,o,i){let s=e?.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&a(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,a=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>a,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{a=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function x(e){return i.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let y=(0,i.forwardRef)(({src:e,srcSet:t,sizes:r,height:n,width:a,decoding:s,className:l,style:c,fetchPriority:d,placeholder:u,loading:f,unoptimized:m,fill:h,onLoadRef:y,onLoadingCompleteRef:v,setBlurComplete:w,setShowAltText:b,sizesInput:j,onLoad:N,onError:C,...k},R)=>{let S=(0,i.useCallback)(e=>{e&&(C&&(e.src=e.src),e.complete&&g(e,u,y,v,w,m,j))},[e,u,y,v,w,C,m,j]),E=(0,p.useMergedRef)(R,S);return(0,o.jsx)("img",{...k,...x(d),loading:f,width:a,height:n,decoding:s,"data-nimg":h?"fill":"1",className:l,style:c,sizes:r,srcSet:t,src:e,ref:E,onLoad:e=>{g(e.currentTarget,u,y,v,w,m,j)},onError:e=>{b(!0),"empty"!==u&&w(!0),C&&C(e)}})});function v({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...x(t.fetchPriority)};return e&&s.default.preload?(s.default.preload(t.src,r),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let w=(0,i.forwardRef)((e,t)=>{let r=(0,i.useContext)(f.RouterContext),n=(0,i.useContext)(u.ImageConfigContext),a=(0,i.useMemo)(()=>{let e=h||n||d.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>
3e-t),r=e.deviceSizes.sort((e,t)=>e-t),a=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:a,localPatterns:"u"<typeof window?n?.localPatterns:e.localPatterns}},[n]),{onLoad:s,onLoadingComplete:l}=e,p=(0,i.useRef)(s);(0,i.useEffect)(()=>{p.current=s},[s]);let g=(0,i.useRef)(l);(0,i.useEffect)(()=>{g.current=l},[l]);let[x,w]=(0,i.useState)(!1),[b,j]=(0,i.useState)(!1),{props:N,meta:C}=(0,c.getImgProps)(e,{defaultLoader:m.default,imgConf:a,blurComplete:x,showAltText:b});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y,{...N,unoptimized:C.unoptimized,placeholder:C.placeholder,fill:C.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:w,setShowAltText:j,sizesInput:e.sizes,ref:t}),C.preload?(0,o.jsx)(v,{isAppRouter:!r,imgAttributes:N}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},94909,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return d},getImageProps:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(55682),i=e.r(8927),s=e.r(5500),l=o._(e.r(1948));function c(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[70,75,80],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let d=s.Image},57688,(e,t,r)=>{t.exports=e.r(94909)},37727,e=>{"use strict";let t=(0,e.i(75254).default)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",()=>t],37727)},64659,e=>{"use strict";let t=(0,e.i(75254).default)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",()=>t],64659)},94351,92161,92270,48256,e=>{"use strict";var t=e.i(75254);let r=(0,t.default)("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);e.s(["Home",()=>r],94351);let n=(0,t.default)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);e.s(["Menu",()=>n],92161);let a=(0,t.default)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);e.s(["LogOut",()=>a],92270);let o=(0,t.default)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",()=>o],48256)},7486,e=>{"use strict";let t=(0,e.i(75254).default)("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);e.s(["Building2",()=>t],7486)},70273,78583,18348,4997,e=>{"use strict";var t=e.i(75254);let r=(0,t.default)("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",()=>r],70273);let n=(0,t.default)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",()=>n],78583);let a=(0,t.default)("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["HelpCircle",()=>
3a],18348);let o=(0,t.default)("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);e.s(["LogIn",()=>o],4997)},10980,e=>{"use strict";let t=(0,e.i(75254).default)("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);e.s(["BookOpen",()=>t],10980)},55711,e=>{"use strict";let t=(0,e.i(75254).default)("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);e.s(["Brain",()=>t],55711)},83086,e=>{"use strict";let t=(0,e.i(75254).default)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);e.s(["Sparkles",()=>t],83086)},7056,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(37727),a=e.i(19455);let o="lumus_utm",i=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"];var s=e.i(75679);let l=["Ansiedade","Depressão","Relacionamentos","Autoestima","Estresse e burnout","Luto","TDAH","Outro"],c="__livre__",d=["Gostaria de saber mais sobre seu trabalho.","Quero entender como funcionam as sessões.","Gostaria de agendar uma primeira conversa.","Tenho dúvidas sobre valores e disponibilidade.","Escrever minha própria mensagem"];function u({open:e,onOpenChange:u,origem:f}){let[m,p]=(0,r.useState)("choice"),[h,g]=(0,r.useState)(""),[x,y]=(0,r.useState)(""),[v,w]=(0,r.useState)(""),[b,j]=(0,r.useState)(""),[N,C]=(0,r.useState)(!1),[k,R]=(0,r.useState)(!1),[S,E]=(0,r.useState)(!1),[P,M]=(0,r.useState)(""),[_,O]=(0,r.useState)(!1),A=()=>{u(!1),p("choice"),M("")},D=async e=>{if(e.preventDefault(),M(""),!h.trim()||!x.trim()||!v)return void M("Preencha todos os campos para continuar.");if(!k)return void M("à necessário autorizar o contato para continuar.");E(!0);try{let e=await fetch("/api/leads",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apelido:h.trim(),whatsapp:x.trim(),motivo:v,mensagemLivre:b.trim()||void 0,consentimento:k,origem:f,utm:function(){try{let e=sessionStorage.getItem(o);if(e)return JSON.parse(e);let t=new URLSearchParams(window.location.search),r={};for(let e of i){let n=t.get(e);n&&(r[e]=n)}return sessionStorage.setItem(o,JSON.stringify(r)),r}catch{return}}()})}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t?.error??"Erro ao enviar. Tente novamente.");t?.duplicate?(O(!0),(0,s.trackLeadDuplicate)()):(O(!1),(0,s.trackLeadSubmit)(f),(0,s.trackLeadModalSubmit)(v)),p("success")}catch(e){M(e instanceof Error?e.message:"Erro ao enviar. Tente novamente.")}finally{E(!1)}};return e?(0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm",role:"dialog","aria-modal":"true","aria-label":"Indicação personalizada de psicólogo",children:(0,t.jsxs)("div",{className:"relative w-full max-w-md bg-white rounded-2xl shadow-2xl overflow-hidden",children:[(0,t.jsx)("div",{className:"h-1.5 w-full bg-[#00404f]"}),(0,t.jsx)("button",{onClick:()=>{(0,s.trackLeadModalDismiss)(),A()},className:"absolute top-4 right-4 w-8 h-8 flex items-center justify-center rounded-full text-gray-400 hover:text-gray-600 hover:bg-gray-100 transition-colors","aria-label":"Fechar modal",children:(0,t.jsx)(n.X,{className:"w-4 h-4"})}),(0,t.jsxs)("div",{className:"px-7 pt-7 pb-8",children:["choice"===m&&(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-widest text-[#00404f] mb-2",children:"Lumus Terapia"}),(0,t.jsx)("h2",{className:"text-xl font-serif font-bold text-gray-900 leading-snug",children:"Como prefere encontrar seu psicólogo?"}),(0,t.jsx)("p",{className:"text-sm text-gray-500 mt-2",children:"Podemos te ajudar a encontrar o profissional certo para o que você está vivendo."})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("button",{onClick:()=>{(0,s.trackLeadModalClickSuggestion)(),p("form")},className:"w-full text-left px-5 py-4 rounded-xl border-2 border-[#00404f] bg-white hover:bg-[#00404f]/5 transition-colors group",children:[(0,t.jsx)("span",{className:"block font-semibold text-[#00404f] text-sm",children:"ð¡ Quero uma
3indicação personalizada"}),(0,t.jsx)("span",{className:"block text-xs text-gray-500 mt-0.5",children:"Uma psicóloga selecionada vai entrar em contato com você pelo WhatsApp"})]}),(0,t.jsxs)("button",{onClick:()=>{(0,s.trackLeadModalClickExplore)(),A()},className:"w-full text-left px-5 py-4 rounded-xl border border-gray-200 bg-white hover:bg-gray-50 transition-colors",children:[(0,t.jsx)("span",{className:"block font-semibold text-gray-700 text-sm",children:"ð¤ Vou explorar os perfis sozinho"}),(0,t.jsx)("span",{className:"block text-xs text-gray-400 mt-0.5",children:"Navegar pela lista de psicólogos"})]})]})]}),"form"===m&&(0,t.jsxs)("form",{onSubmit:D,className:"space-y-5",noValidate:!0,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-widest text-[#00404f] mb-2",children:"Quase lá"}),(0,t.jsx)("h2",{className:"text-xl font-serif font-bold text-gray-900 leading-snug",children:"Deixa seus dados e a gente cuida do resto"}),(0,t.jsx)("p",{className:"text-sm text-gray-500 mt-2",children:"Uma psicóloga selecionada vai entrar em contato com você pelo WhatsApp."})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"lead-apelido",className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Apelido ou primeiro nome"}),(0,t.jsx)("input",{id:"lead-apelido",type:"text",value:h,onChange:e=>g(e.target.value),placeholder:"Como prefere ser chamado?",className:"w-full px-4 py-2.5 rounded-lg border border-gray-200 text-sm text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-[#00404f]/30 focus:border-[#00404f] transition-colors",autoComplete:"off"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"lead-whatsapp",className:"block text-sm font-medium text-gray-700 mb-1.5",children:"WhatsApp com DDD"}),(0,t.jsx)("input",{id:"lead-whatsapp",type:"tel",value:x,onChange:e=>y(e.target.value),placeholder:"11999999999",className:"w-full px-4 py-2.5 rounded-lg border border-gray-200 text-sm text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-[#00404f]/30 focus:border-[#00404f] transition-colors",autoComplete:"tel"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"lead-motivo",className:"block text-sm font-medium text-gray-700 mb-1.5",children:"Principal motivo"}),(0,t.jsxs)("select",{id:"lead-motivo",value:v,onChange:e=>w(e.target.value),className:"w-full px-4 py-2.5 rounded-lg border border-gray-200 text-sm text-gray-900 bg-white focus:outline-none focus:ring-2 focus:ring-[#00404f]/30 focus:border-[#00404f] transition-colors",children:[(0,t.jsx)("option",{value:"",children:"Selecione..."}),l.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"lead-mensagem-select",className:"block text-sm font-medium text-gray-700 mb-1.5",children:["Mensagem para a psicóloga"," ",(0,t.jsx)("span",{className:"text-gray-400 font-normal",children:"(opcional)"})]}),(0,t.jsxs)("select",{id:"lead-mensagem-select",value:N?c:b,onChange:e=>{e.target.value===c?(C(!0),j("")):(C(!1),j(e.target.value))},className:"w-full px-4 py-2.5 rounded-lg border border-gray-200 text-sm text-gray-900 bg-white focus:outline-none focus:ring-2 focus:ring-[#00404f]/30 focus:border-[#00404f] transition-colors",children:[(0,t.jsx)("option",{value:"",children:"Selecione uma mensagem..."}),d.slice(0,-1).map(e=>(0,t.jsx)("option",{value:e,children:e},e)),(0,t.jsx)("option",{value:c,children:" Escrever minha própria mensagem"})]}),N&&(0,t.jsxs)("div",{className:"mt-2",children:[(0,t.jsx)("textarea",{id:"lead-mensagem",value:b,onChange:e=>j(e.target.value.slice(0,500)),placeholder:"Escreva sua mensagem...",rows:2,maxLength:500,autoFocus:!0,className:"w-full px-4 py-2.5 rounded-lg border border-gray-200 text-sm text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-[#00404f]/30 focus:border-[#00404f] transition-colors resize-none"}),(0,t.jsxs)("p",{className:"text-xs text-gray-400 mt-1 text-right",children:[b.length,"/",500]})]})]}),(0,t.jsxs)("label",{htmlFor:"lead-consentimento",className:"flex items-start gap-2.5 cursor-pointer",children:[(0,t.jsx)("input",{id:"lead-consentimento",type:"checkbox",checked:k,onChange:e=>R(e.target.checked),className:"mt-0.5 w-4 h-4 rounded border-gray-300 text-[#00404f] focus:ring-[#00404f]/30"}),(0,t.jsx)("span",{className:"text-xs text-gray-500 leading-relaxed",children:"Autorizo a Lumus Terapia a compartilhar meu contato com uma psicóloga parceira para que ela entre em contato comigo."})]})]}),P&&(0,t.jsx)("p",{className:"text-xs text-red-600 bg-red-50 rounded-lg px-3 py-2",role:"alert",children:P}),(0,t.jsx)(a.Button,{type:"submit",disabled:S||!k,className:"w-full bg-[#00404f] hover:bg-[#00404f]/90 text-white font-semibold py-3 rounded-xl text-sm disabled:opacity-60",children:S?"Enviando...":"Quero minha indicação"}),(0,t.jsx)("button",{type:"button",onClick:()=>p("choice"),className:"w-full text-xs text-gray-400 hover:text-gray-600 transition-colors",children:"â Voltar"})]}),"success"===m&&(0,t.jsxs)("div",{className:"space-y-6 text-center",children:[(0,t.jsx)("div",{className:"w-16 h-16 rounded-full bg-[#fce4b1] flex items-center justify-center mx-auto text-3xl",children:"ð"}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("h2",{className:"text-xl font-serif font-bold text-gray-900",children:_?"Já recebemos seu pedido":"Tudo certo!"}),(0,t.jsx)("p",{className:"text-sm text-gray-600 leading-relaxed",children:_?"Já recebemos seu pedido, uma psicóloga vai entrar em contato em breve.":"Em breve uma psicóloga vai entrar em contato com você pelo WhatsApp ð"}),(0,t.jsx)("p",{className:"text-xs text-gray-400 leading-relaxed",children:"Se você estiver em crise ou pensando em se machucar, ligue para o CVV no 188 (24 horas, gratuito)."})]}),(0,t.jsx)(a.Button,{onClick:A,className:"w-full bg-[#00404f] hover:bg-[#00404f]/90 text-white font-semibold py-3 rounded-xl text-sm",children:"Explorar perfis"})]})]})]})}):null}
3e.s(["LeadCaptureModal",()=>u],7056)},58950,53760,53289,e=>{"use strict";let t,r=["top","right","bottom","left"],n=r.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),a=Math.min,o=Math.max,i=Math.round,s=Math.floor,l=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"};function d(e,t){return"function"==typeof e?e(t):e}function u(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function p(e){return"y"===e?"height":"width"}function h(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function g(e,t,r){void 0===r&&(r=!1);let n=f(e),a=m(h(e)),o=p(a),i="x"===a?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=j(i)),[i,j(i)]}function x(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let y=["left","right"],v=["right","left"],w=["top","bottom"],b=["bottom","top"];function j(e){let t=u(e);return c[t]+e.slice(t.length)}function N(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function C(e){let{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function k(e,t,r){let n,{reference:a,floating:o}=e,i=h(t),s=m(h(t)),l=p(s),c=u(t),d="y"===i,g=a.x+a.width/2-o.width/2,x=a.y+a.height/2-o.height/2,y=a[l]/2-o[l]/2;switch(c){case"top":n={x:g,y:a.y-o.height};break;case"bottom":n={x:g,y:a.y+a.height};break;case"right":n={x:a.x+a.width,y:x};break;case"left":n={x:a.x-o.width,y:x};break;default:n={x:a.x,y:a.y}}switch(f(t)){case"start":n[s]-=y*(r&&d?-1:1);break;case"end":n[s]+=y*(r&&d?-1:1)}return n}async function R(e,t){var r;void 0===t&&(t={});let{x:n,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:m=!1,padding:p=0}=d(t,e),h=N(p),g=s[m?"floating"===f?"reference":"floating":f],x=C(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(g)))||r?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===f?{x:n,y:a,width:i.floating.width,height:i.floating.height}:i.reference,v=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),w=await (null==o.isElement?void 0:o.isElement(v))&&await (null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},b=C(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(x.top-b.top+h.top)/w.y,bottom:(b.bottom-x.bottom+h.bottom)/w.y,left:(x.left-b.left+h.left)/w.x,right:(b.right-x.right+h.right)/w.x}}let S=async(e,t,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:o=[],platform:i}=r,s=i.detectOverflow?i:{...i,detectOverflow:R},l=await (null==i.isRTL?void 0:i.isRTL(t)),c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:u}=k(c,n,l),f=n,m=0,p={};for(let r=0;r<o.length;r++){let h=o[r];if(!h)continue;let{name:g,fn:x}=h,{x:y,y:v,data:w,reset:b}=await x({x:d,y:u,initialPlacement:n,placement:f,strategy:a,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=y?y:d,u=null!=v?v:u,p[g]={...p[g],...w},b&&m<50&&(m++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):b.rects),{x:d,y:u}=k(c,f,l)),r=-1)}return{x:d,y:u,placement:f,strategy:a,middlewareData:p}};function E(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function P(e){return r.some(t=>e[t]>=0)}function M(e){let t=a(...e.map(e=>e.left)),r=a(...e.map(e=>e.top));return{x:t,y:r,width:o(...e.map(e=>e.right))-t,height:o(...e.map(e=>e.bottom))-r}}let _=new Set(["left","top"]);async function O(e,t){let{placement:r,platform:n,elements:a}=e,o=await (null==n.isRTL?void 0:n.isRTL(a.floating)),i=u(r),s=f(r),l="y"===h(r),c=_.has(i)?-1:1,m=o&&l?-1:1,p=d(t,e),{mainAxis:g,crossAxis:x,alignmentAxis:y}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}
3:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&"number"==typeof y&&(x="end"===s?-1*y:y),l?{x:x*m,y:g*c}:{x:g*c,y:x*m}}function A(){return"u">typeof window}function D(e){return I(e)?(e.nodeName||"").toLowerCase():"#document"}function L(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function T(e){var t;return null==(t=(I(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function I(e){return!!A()&&(e instanceof Node||e instanceof L(e).Node)}function z(e){return!!A()&&(e instanceof Element||e instanceof L(e).Element)}function B(e){return!!A()&&(e instanceof HTMLElement||e instanceof L(e).HTMLElement)}function F(e){return!(!A()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof L(e).ShadowRoot)}function H(e){let{overflow:t,overflowX:r,overflowY:n,display:a}=X(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==a&&"contents"!==a}function q(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let $=/transform|translate|scale|rotate|perspective|filter/,W=/paint|layout|strict|content/,V=e=>!!e&&"none"!==e;function U(e){let t=z(e)?X(e):e;return V(t.transform)||V(t.translate)||V(t.scale)||V(t.rotate)||V(t.perspective)||!G()&&(V(t.backdropFilter)||V(t.filter))||$.test(t.willChange||"")||W.test(t.contain||"")}function G(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function K(e){return/^(html|body|#document)$/.test(D(e))}function X(e){return L(e).getComputedStyle(e)}function J(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Q(e){if("html"===D(e))return e;let t=e.assignedSlot||e.parentNode||F(e)&&e.host||T(e);return F(t)?t.host:t}function Y(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let a=function e(t){let r=Q(t);return K(r)?t.ownerDocument?t.ownerDocument.body:t.body:B(r)&&H(r)?r:e(r)}(e),o=a===(null==(n=e.ownerDocument)?void 0:n.body),i=L(a);if(!o)return t.concat(a,Y(a,[],r));{let e=Z(i);return t.concat(i,i.visualViewport||[],H(a)?a:[],e&&r?Y(e):[])}}function Z(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e){let t=X(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,a=B(e),o=a?e.offsetWidth:r,s=a?e.offsetHeight:n,l=i(r)!==o||i(n)!==s;return l&&(r=o,n=s),{width:r,height:n,$:l}}function et(e){return z(e)?e:e.contextElement}function er(e){let t=et(e);if(!B(t))return l(1);let r=t.getBoundingClientRect(),{width:n,height:a,$:o}=ee(t),s=(o?i(r.width):r.width)/n,c=(o?i(r.height):r.height)/a;return s&&Number.isFinite(s)||(s=1),c&&Number.isFinite(c)||(c=1),{x:s,y:c}}let en=l(0);function ea(e){let t=L(e);return G()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:en}function eo(e,t,r,n){var a;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),i=et(e),s=l(1);t&&(n?z(n)&&(s=er(n)):s=er(e));let c=(void 0===(a=r)&&(a=!1),n&&(!a||n===L(i))&&a)?ea(i):l(0),d=(o.left+c.x)/s.x,u=(o.top+c.y)/s.y,f=o.width/s.x,m=o.height/s.y;if(i){let e=L(i),t=n&&z(n)?L(n):n,r=e,a=Z(r);for(;a&&n&&t!==r;){let e=er(a),t=a.getBoundingClientRect(),n=X(a),o=t.left+(a.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(n.paddingTop))*e.y;d*=e.x,u*=e.y,f*=e.x,m*=e.y,d+=o,u+=i,a=Z(r=L(a))}}return C({width:f,height:m,x:d,y:u})}function ei(e,t){let r=J(e).scrollLeft;return t?t.left+r:eo(T(e)).left+r}function es(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-ei(e,r),y:r.top+t.scrollTop}}function el(e,t,r){var n;let a;if("viewport"===t)a=function(e,t){let r=L(e),n=T(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;let e=G();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}let c=ei(n);if(c<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,i=Math.abs(n.clientWidth-t.clientWidth-a);i<=25&&(o-=i)}else c<=25&&(o+=c);return{width:o,height:i,x:s,y:l}}(e,r);else if("document"===t){let t,r,i,s,l,c,d;n=T(e),t=T(n),r=J(n),i=n.ownerDocument.body,s=o(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),l=o(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),c=-r.scrollLeft+ei(n),d=-r.scrollTop,"rtl"===X(i).direction&&(c+=o(t.clientWidth,i.clientWidth)-s),a={width:s,height:l,x:c,y:d}}else if(z(t)){let e,n,o,i,s,c;n=(e=eo(t,!0,"fixed"===r)).top+t.clientTop,o=e.left+t.clientLeft,i=B(t)?er(t):l(1),s=t.clientWidth*i.x,c=t.clientHeight*i.y,a={width:s,height:c,x:o*i.x,y:n*i.y}}else{let r=ea(e);a={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return C(a)}function ec(e){return"static"===X(e).position}function ed(e,t){if(!B(e)||"fixed"===X(e).position)return null;if(t)return t(e);let r=e.offsetParent;return T(e)===r&&(r=r.ownerDocument.body),r}function eu(e,t){var r;let n=L(e);if(q(e))return n;if(!B(e)){let t=Q(e);for(;t&&!K(t);){if(z(t)&&!ec(t))return t;t=Q(t)}return n}let a=ed(e,t);for(;a&&(r=a,/^(table|td|th)$/.test(D(r)))&&ec(a);)a=ed(a,t);return a&&K(a)&&ec(a)&&!U(a)?n:a||function(e){let t=Q(e);for(;B(t)&&!K(t);){if(U(t))return t;if(q(t))break;t=Q(t)}return null}(e)||n}let ef=async function(e){let t=this.getOffsetParent||eu,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=B(t),a=T(t),o="fixed"===r,i=eo(e,!0,o,t),s={scrollLeft:0,scrollTop:0},c=l(0);if(n||!n&&!o)if(("body"!==D(t)||H(a))&&(s=J(t)),n){let e=eo(t,!0,o,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else a&&(c.x=ei(a));o&&!n&&a&&(c.x=ei(a));let d=!a||n||o?l(0):es(a,s);return{x:i.left+s.scrollLeft-c.x-d.x,y:i.top+s.scrollTop-c.y-d.y,width:i.width,height:i.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},em={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e,o="fixed"===a,i=T(n),s=!!t&&q(t.floating);if(n===i||s&&o)return r;let c={scrollLeft:0,scrollTop:0},d=l(1),u=l(0),f=B(n);if((f||!f&&!o)&&(("body"!==D(n)||H(i))&&(c=J(n)),f)){let e=eo(n);d=er(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}let m=!i||f||o?l(0):es(i,c);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+u.x+m.x,y:r.y*d.y-c.scrollTop*d.y+u.y+m.y}},getDocumentElement:T,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[..."clippingAncestors"===r?q(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=Y(e,[],!1).filter(e=>z(e)&&"body"!==D(e)),a=null,o="fixed"===X(e).position,i=o?Q(e):e;for(;z(i)&&!K(i);){let t=X(i),r=U(i);r||"fixed"!==t.position||(a=null),(o?r||a:!(!r&&"static"===t.position&&a&&("absolute"===a.position||"fixed"===a.position)||H(i)&&!r&&function e(t,r){let n=Q(t);return!(n===r||!z(n)||K(n))&&("fixed"===X(n).position||e(n,r))}(e,i)))?a=t:n=n.filter(e=>e!==i),i=Q(i)}return t.set(e,n),n}
3(t,this._c):[].concat(r),n],l=el(t,s[0],i),c=l.top,d=l.right,u=l.bottom,f=l.left;for(let e=1;e<s.length;e++){let r=el(t,s[e],i);c=o(r.top,c),d=a(r.right,d),u=a(r.bottom,u),f=o(r.left,f)}return{width:d-f,height:u-c,x:f,y:c}},getOffsetParent:eu,getElementRects:ef,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=ee(e);return{width:t,height:r}},getScale:er,isElement:z,isRTL:function(e){return"rtl"===X(e).direction}};function ep(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eh(e,t,r,n){let i;void 0===n&&(n={});let{ancestorScroll:l=!0,ancestorResize:c=!0,elementResize:d="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:f=!1}=n,m=et(e),p=l||c?[...m?Y(m):[],...t?Y(t):[]]:[];p.forEach(e=>{l&&e.addEventListener("scroll",r,{passive:!0}),c&&e.addEventListener("resize",r)});let h=m&&u?function(e,t){let r,n=null,i=T(e);function l(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function c(d,u){void 0===d&&(d=!1),void 0===u&&(u=1),l();let f=e.getBoundingClientRect(),{left:m,top:p,width:h,height:g}=f;if(d||t(),!h||!g)return;let x={rootMargin:-s(p)+"px "+-s(i.clientWidth-(m+h))+"px "+-s(i.clientHeight-(p+g))+"px "+-s(m)+"px",threshold:o(0,a(1,u))||1},y=!0;function v(t){let n=t[0].intersectionRatio;if(n!==u){if(!y)return c();n?c(!1,n):r=setTimeout(()=>{c(!1,1e-7)},1e3)}1!==n||ep(f,e.getBoundingClientRect())||c(),y=!1}try{n=new IntersectionObserver(v,{...x,root:i.ownerDocument})}catch(e){n=new IntersectionObserver(v,x)}n.observe(e)}(!0),l}(m,r):null,g=-1,x=null;d&&(x=new ResizeObserver(e=>{let[n]=e;n&&n.target===m&&x&&t&&(x.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=x)||e.observe(t)})),r()}),m&&!f&&x.observe(m),t&&x.observe(t));let y=f?eo(e):null;return f&&function t(){let n=eo(e);y&&!ep(y,n)&&r(),y=n,i=requestAnimationFrame(t)}(),r(),()=>{var e;p.forEach(e=>{l&&e.removeEventListener("scroll",r),c&&e.removeEventListener("resize",r)}),null==h||h(),null==(e=x)||e.disconnect(),x=null,f&&cancelAnimationFrame(i)}}let eg=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:a,y:o,placement:i,middlewareData:s}=t,l=await O(t,e);return i===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},ex=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,a,o,i;let{rects:s,middlewareData:l,placement:c,platform:m,elements:p}=t,{crossAxis:h=!1,alignment:y,allowedPlacements:v=n,autoAlignment:w=!0,...b}=d(e,t),j=void 0!==y||v===n?((i=y||null)?[...v.filter(e=>f(e)===i),...v.filter(e=>f(e)!==i)]:v.filter(e=>u(e)===e)).filter(e=>!i||f(e)===i||!!w&&x(e)!==e):v,N=await m.detectOverflow(t,b),C=(null==(r=l.autoPlacement)?void 0:r.index)||0,k=j[C];if(null==k)return{};let R=g(k,s,await (null==m.isRTL?void 0:m.isRTL(p.floating)));if(c!==k)return{reset:{placement:j[0]}};let S=[N[u(k)],N[R[0]],N[R[1]]],E=[...(null==(a=l.autoPlacement)?void 0:a.overflows)||[],{placement:k,overflows:S}],P=j[C+1];if(P)return{data:{index:C+1,overflows:E},reset:{placement:P}};let M=E.map(e=>{let t=f(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),_=(null==(o=M.filter(e=>e[2].slice(0,f(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||M[0][0];return _!==c?{data:{index:C+1,overflows:E},reset:{placement:_}}:{}}}},ey=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i,platform:s}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...p}=d(e,t),g={x:r,y:n},x=await s.detectOverflow(t,p),y=h(u(i)),v=m(y),w=g[v],b=g[y];if(l){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",r=w+x[e],n=w-x[t];w=o(r,a(w,n))}if(c){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",r=b+x[e],n=b-x[t];b=o(r,a(b,n))}let j=f.fn({...t,[v]:w,[y]:b});return{...j,data:{x:j.x-r,y:j.y-n,enabled:{[v]:l,[y]:c}}}}}},ev=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,a,o,i;let s,l,c,{placement:m,middlewareData:p,rects:N,initialPlacement:C,platform:k,elements:R}=t,{mainAxis:S=!0,crossAxis:E=!0,fallbackPlacements:P,fallbackStrategy:M="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:O=!0,...A}=d(e,t);if(null!=(r=p.arrow)&&r.alignmentOffset)return{};let D=u(m),L=h(C),T=u(C)===C,I=await (null==k.isRTL?void 0:k.isRTL(R.floating)),z=P||(T||!O?[j(C)]:(s=j(C),[x(C),s,x(s)])),B="none"!==_;!P&&B&&z.push(...(l=f(C),c=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?v:y;return t?y:v;case"left":case"right":return t?w:b;default:return[]}}(u(C),"start"===_,I),l&&(c=c.map(e=>e+"-"+l),O&&(c=c.concat(c.map(x)))),c));let F=[C,...z],H=await k.detectOverflow(t,A),q=[],$=(null==(n=p.flip)?void 0:n.overflows)||[];if(S&&q.push(H[D]),E){let e=g(m,N,I);q.push(H[e[0]],H[e[1]])}if($=[...$,{placement:m,overflows:q}],!q.every(e=>e<=0)){let e=((null==(a=p.flip)?void 0:a.index)||0)+1,t=F[e];if(t&&("alignment"!==E||L===h(t)||$.every(e=>h(e.placement)!==L||e.overflows[0]>0)))return{data:{index:e,overflows:$},reset:{placement:t}};let r=null==(o=$.filter(e=>e.overflows[0]<=0).sort((e,t)=>
3e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(M){case"bestFit":{let e=null==(i=$.filter(e=>{if(B){let t=h(e.placement);return t===L||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(r=e);break}case"initialPlacement":r=C}if(m!==r)return{reset:{placement:r}}}return{}}}},ew=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;let i,s,{placement:l,rects:c,platform:m,elements:p}=t,{apply:g=()=>{},...x}=d(e,t),y=await m.detectOverflow(t,x),v=u(l),w=f(l),b="y"===h(l),{width:j,height:N}=c.floating;"top"===v||"bottom"===v?(i=v,s=w===(await (null==m.isRTL?void 0:m.isRTL(p.floating))?"start":"end")?"left":"right"):(s=v,i="end"===w?"top":"bottom");let C=N-y.top-y.bottom,k=j-y.left-y.right,R=a(N-y[i],C),S=a(j-y[s],k),E=!t.middlewareData.shift,P=R,M=S;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(M=k),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(P=C),E&&!w){let e=o(y.left,0),t=o(y.right,0),r=o(y.top,0),n=o(y.bottom,0);b?M=j-2*(0!==e||0!==t?e+t:o(y.left,y.right)):P=N-2*(0!==r||0!==n?r+n:o(y.top,y.bottom))}await g({...t,availableWidth:M,availableHeight:P});let _=await m.getDimensions(p.floating);return j!==_.width||N!==_.height?{reset:{rects:!0}}:{}}}},eb=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r,platform:n}=t,{strategy:a="referenceHidden",...o}=d(e,t);switch(a){case"referenceHidden":{let e=E(await n.detectOverflow(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:P(e)}}}case"escaped":{let e=E(await n.detectOverflow(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:P(e)}}}default:return{}}}}},ej=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:s,platform:l,elements:c,middlewareData:u}=t,{element:g,padding:x=0}=d(e,t)||{};if(null==g)return{};let y=N(x),v={x:r,y:n},w=m(h(i)),b=p(w),j=await l.getDimensions(g),C="y"===w,k=C?"clientHeight":"clientWidth",R=s.reference[b]+s.reference[w]-v[w]-s.floating[b],S=v[w]-s.reference[w],E=await (null==l.getOffsetParent?void 0:l.getOffsetParent(g)),P=E?E[k]:0;P&&await (null==l.isElement?void 0:l.isElement(E))||(P=c.floating[k]||s.floating[b]);let M=P/2-j[b]/2-1,_=a(y[C?"top":"left"],M),O=a(y[C?"bottom":"right"],M),A=P-j[b]-O,D=P/2-j[b]/2+(R/2-S/2),L=o(_,a(D,A)),T=!u.arrow&&null!=f(i)&&D!==L&&s.reference[b]/2-(D<_?_:O)-j[b]/2<0,I=T?D<_?D-_:D-A:0;return{[w]:v[w]+I,data:{[w]:L,centerOffset:D-L-I,...T&&{alignmentOffset:I}},reset:T}}}),eN=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:r,elements:n,rects:i,platform:s,strategy:l}=t,{padding:c=2,x:f,y:m}=d(e,t),p=Array.from(await (null==s.getClientRects?void 0:s.getClientRects(n.reference))||[]),g=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),r=[],n=null;for(let e=0;e<t.length;e++){let a=t[e];!n||a.y-n.y>n.height/2?r.push([a]):r[r.length-1].push(a),n=a}return r.map(e=>C(M(e)))}(p),x=C(M(p)),y=N(c),v=await s.getElementRects({reference:{getBoundingClientRect:function(){if(2===g.length&&g[0].left>g[1].right&&null!=f&&null!=m)return g.find(e=>f>e.left-y.left&&f<e.right+y.right&&m>e.top-y.top&&m<e.bottom+y.bottom)||x;if(g.length>=2){if("y"===h(r)){let e=g[0],t=g[g.length-1],n="top"===u(r),a=e.top,o=t.bottom,i=n?e.left:t.left,s=n?e.right:t.right;return{top:a,bottom:o,left:i,right:s,width:s-i,height:o-a,x:i,y:a}}let e="left"===u(r),t=o(...g.map(e=>e.right)),n=a(...g.map(e=>e.left)),i=g.filter(r=>e?r.left===n:r.right===t),s=i[0].top,l=i[i.length-1].bottom;return{top:s,bottom:l,left:n,right:t,width:t-n,height:l-s,x:n,y:s}}return x}},floating:n.floating,strategy:l});return i.reference.x!==v.reference.x||i.reference.y!==v.reference.y||i.reference.width!==v.reference.width||i.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}},eC=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:a,rects:o,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=d(e,t),f={x:r,y:n},p=h(a),g=m(p),x=f[g],y=f[p],v=d(s,t),w="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){let e="y"===g?"height":"width",t=o.reference[g]-o.floating[e]+w.mainAxis,r=o.reference[g]+o.reference[e]-w.mainAxis;x<t?x=t:x>r&&(x=r)}if(c){var b,j;
3let e="y"===g?"width":"height",t=_.has(u(a)),r=o.reference[p]-o.floating[e]+(t&&(null==(b=i.offset)?void 0:b[p])||0)+(t?0:w.crossAxis),n=o.reference[p]+o.reference[e]+(t?0:(null==(j=i.offset)?void 0:j[p])||0)-(t?w.crossAxis:0);y<r?y=r:y>n&&(y=n)}return{[g]:x,[p]:y}}}},ek=(e,t,r)=>{let n=new Map,a={platform:em,...r},o={...a.platform,_c:n};return S(e,t,{...a,platform:o})};e.s(["arrow",()=>ej,"autoPlacement",()=>ex,"autoUpdate",()=>eh,"computePosition",()=>ek,"flip",()=>ev,"hide",()=>eb,"inline",()=>eN,"limitShift",()=>eC,"offset",()=>eg,"shift",()=>ey,"size",()=>ew],53760);var eR=e.i(71645),eS=e.i(74080),eE="u">typeof document?eR.useLayoutEffect:function(){};function eP(e,t){let r,n,a;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!eP(e[n],t[n]))return!1;return!0}if((r=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,a[n]))return!1;for(n=r;0!=n--;){let r=a[n];if(("_owner"!==r||!e.$$typeof)&&!eP(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function eM(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e_(e,t){let r=eM(e);return Math.round(t*r)/r}function eO(e){let t=eR.useRef(e);return eE(()=>{t.current=e}),t}function eA(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:o,floating:i}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[d,u]=eR.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=eR.useState(n);eP(f,n)||m(n);let[p,h]=eR.useState(null),[g,x]=eR.useState(null),y=eR.useCallback(e=>{e!==j.current&&(j.current=e,h(e))},[]),v=eR.useCallback(e=>{e!==N.current&&(N.current=e,x(e))},[]),w=o||p,b=i||g,j=eR.useRef(null),N=eR.useRef(null),C=eR.useRef(d),k=null!=l,R=eO(l),S=eO(a),E=eO(c),P=eR.useCallback(()=>{if(!j.current||!N.current)return;let e={placement:t,strategy:r,middleware:f};S.current&&(e.platform=S.current),ek(j.current,N.current,e).then(e=>{let t={...e,isPositioned:!1!==E.current};M.current&&!eP(C.current,t)&&(C.current=t,eS.flushSync(()=>{u(t)}))})},[f,t,r,S,E]);eE(()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,u(e=>({...e,isPositioned:!1})))},[c]);let M=eR.useRef(!1);eE(()=>(M.current=!0,()=>{M.current=!1}),[]),eE(()=>{if(w&&(j.current=w),b&&(N.current=b),w&&b){if(R.current)return R.current(w,b,P);P()}},[w,b,P,R,k]);let _=eR.useMemo(()=>({reference:j,floating:N,setReference:y,setFloating:v}),[y,v]),O=eR.useMemo(()=>({reference:w,floating:b}),[w,b]),A=eR.useMemo(()=>{let e={position:r,left:0,top:0};if(!O.floating)return e;let t=e_(O.floating,d.x),n=e_(O.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...eM(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,s,O.floating,d.x,d.y]);return eR.useMemo(()=>({...d,update:P,refs:_,elements:O,floatingStyles:A}),[d,P,_,O,A])}let eD=(e,t)=>{let r=eg(e);return{name:r.name,fn:r.fn,options:[e,t]}},eL=(e,t)=>{let r=ey(e);return{name:r.name,fn:r.fn,options:[e,t]}},eT=(e,t)=>({fn:eC(e).fn,options:[e,t]}),eI=(e,t)=>{let r=ev(e);return{name:r.name,fn:r.fn,options:[e,t]}},ez=(e,t)=>{let r=ew(e);return{name:r.name,fn:r.fn,options:[e,t]}},eB=(e,t)=>{let r=eb(e);return{name:r.name,fn:r.fn,options:[e,t]}},eF=(e,t)=>{let r={name:"arrow",options:e,fn(t){let{element:r,padding:n}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?ej({element:r.current,padding:n}).fn(t):{}:r?ej({element:r,padding:n}).fn(t):{}}};return{name:r.name,fn:r.fn,options:[e,t]}};e.s(["arrow",()=>eF,"flip",()=>eI,"hide",()=>eB,"limitShift",()=>eT,"offset",()=>eD,"shift",()=>eL,"size",()=>ez,"useFloating",()=>eA],58950);var eH=e.i(48425),eq=e.i(43476),e$=eR.forwardRef((e,t)=>{let{children:r,width:n=10,height:a=5,...o}=e;return(0,eq.jsx)(eH.Primitive.svg,{...o,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,eq.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e$.displayName="Arrow",e.s(["Root",()=>e$],53289)},35804,e=>{"use strict";var t=e.i(71645),r=e.i(34620);function n(e){let[n,a]=t.useState(void 0);return(0,r.useLayoutEffect)(()=>
3{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,n;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,n=t.blockSize}else r=e.offsetWidth,n=e.offsetHeight;a({width:r,height:n})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}a(void 0)},[e]),n}e.s(["useSize",()=>n])},53660,e=>{"use strict";var t=e.i(71645),r=e.i(58950),n=e.i(53760),a=e.i(53289),o=e.i(20783),i=e.i(30030),s=e.i(48425),l=e.i(30207),c=e.i(34620),d=e.i(35804),u=e.i(43476),f="Popper",[m,p]=(0,i.createContextScope)(f),[h,g]=m(f),x=e=>{let{__scopePopper:r,children:n}=e,[a,o]=t.useState(null);return(0,u.jsx)(h,{scope:r,anchor:a,onAnchorChange:o,children:n})};x.displayName=f;var y="PopperAnchor",v=t.forwardRef((e,r)=>{let{__scopePopper:n,virtualRef:a,...i}=e,l=g(y,n),c=t.useRef(null),d=(0,o.useComposedRefs)(r,c),f=t.useRef(null);return t.useEffect(()=>{let e=f.current;f.current=a?.current||c.current,e!==f.current&&l.onAnchorChange(f.current)}),a?null:(0,u.jsx)(s.Primitive.div,{...i,ref:d})});v.displayName=y;var w="PopperContent",[b,j]=m(w),N=t.forwardRef((e,a)=>{let{__scopePopper:i,side:f="bottom",sideOffset:m=0,align:p="center",alignOffset:h=0,arrowPadding:x=0,avoidCollisions:y=!0,collisionBoundary:v=[],collisionPadding:j=0,sticky:N="partial",hideWhenDetached:C=!1,updatePositionStrategy:k="optimized",onPlaced:R,...M}=e,_=g(w,i),[O,A]=t.useState(null),D=(0,o.useComposedRefs)(a,e=>A(e)),[L,T]=t.useState(null),I=(0,d.useSize)(L),z=I?.width??0,B=I?.height??0,F="number"==typeof j?j:{top:0,right:0,bottom:0,left:0,...j},H=Array.isArray(v)?v:[v],q=H.length>0,$={padding:F,boundary:H.filter(S),altBoundary:q},{refs:W,floatingStyles:V,placement:U,isPositioned:G,middlewareData:K}=(0,r.useFloating)({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:(...e)=>(0,n.autoUpdate)(...e,{animationFrame:"always"===k}),elements:{reference:_.anchor},middleware:[(0,r.offset)({mainAxis:m+B,alignmentAxis:h}),y&&(0,r.shift)({mainAxis:!0,crossAxis:!1,limiter:"partial"===N?(0,r.limitShift)():void 0,...$}),y&&(0,r.flip)({...$}),(0,r.size)({...$,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:a,height:o}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${r}px`),i.setProperty("--radix-popper-available-height",`${n}px`),i.setProperty("--radix-popper-anchor-width",`${a}px`),i.setProperty("--radix-popper-anchor-height",`${o}px`)}}),L&&(0,r.arrow)({element:L,padding:x}),E({arrowWidth:z,arrowHeight:B}),C&&(0,r.hide)({strategy:"referenceHidden",...$})]}),[X,J]=P(U),Q=(0,l.useCallbackRef)(R);(0,c.useLayoutEffect)(()=>{G&&Q?.()},[G,Q]);let Y=K.arrow?.x,Z=K.arrow?.y,ee=K.arrow?.centerOffset!==0,[et,er]=t.useState();return(0,c.useLayoutEffect)(()=>{O&&er(window.getComputedStyle(O).zIndex)},[O]),(0,u.jsx)("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:G?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[K.transformOrigin?.x,K.transformOrigin?.y].join(" "),...K.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,u.jsx)(b,{scope:i,placedSide:X,onArrowChange:T,arrowX:Y,arrowY:Z,shouldHideArrow:ee,children:(0,u.jsx)(s.Primitive.div,{"data-side":X,"data-align":J,...M,ref:D,style:{...M.style,animation:G?void 0:"none"}})})})});N.displayName=w;var C="PopperArrow",k={top:"bottom",right:"left",bottom:"top",left:"right"},R=t.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=j(C,r),i=k[o.placedSide];return(0,u.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,u.jsx)(a.Root,{...n,ref:t,style:{...n.style,display:"block"}})})});function S(e){return null!==e}R.displayName=C;var E=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:a}=t,o=a.arrow?.centerOffset!==0,i=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[l,c]=P(r),d={start:"0%",center:"50%",end:"100%"}[c],u=(a.arrow?.x??0)+i/2,f=(a.arrow?.y??0)+s/2,m="",p="";return"bottom"===l?(m=o?d:`${u}px`,p=`${-s}px`):"top"===l?(m=o?d:`${u}px`,p=`${n.floating.height+s}px`):"right"===l?(m=`${-s}px`,p=o?d:`${f}px`):"left"===l&&(m=`${n.floating.width+s}px`,p=o?d:`${f}px`),{data:{x:m,y:p}}}});function P(e){let[t,r="center"]=e.split("-");return[t,r]}e.s(["Anchor",()=>v,"Arrow",()=>R,"Content",()=>N,"Root",()=>x,"createPopperScope",()=>p])},43531,e=>{"use strict";
3let t=(0,e.i(75254).default)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",()=>t],43531)},14683,e=>{"use strict";let t=(0,e.i(75254).default)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Circle",()=>t],14683)},55838,(e,t,r)=>{"use strict";var n=e.r(71645),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,i=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!a(e,r)}catch(e){return!0}}var d="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),a=n[0].inst,d=n[1];return s(function(){a.value=r,a.getSnapshot=t,c(a)&&d({inst:a})},[e,r,t]),i(function(){return c(a)&&d({inst:a}),e(function(){c(a)&&d({inst:a})})},[e]),l(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:d},2239,(e,t,r)=>{"use strict";t.exports=e.r(55838)},97456,e=>{"use strict";var t=e.i(71645),r=e.i(43476),n=e.i(30207),a=e.i(34620);e.i(74080);var o=e.i(91918),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let a=(0,o.createSlot)(`Primitive.${n}`),i=t.forwardRef((e,t)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,r.jsx)(o?a:n,{...i,ref:t})});return i.displayName=`Primitive.${n}`,{...e,[n]:i}},{}),s=e.i(2239);function l(){return()=>{}}var c="Avatar",[d,u]=function(e,n=[]){let a=[],o=()=>{let r=a.map(e=>t.createContext(e));return function(n){let a=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:a}}),[n,a])}};return o.scopeName=e,[function(n,o){let i=t.createContext(o);i.displayName=n+"Context";let s=a.length;a=[...a,o];let l=n=>{let{scope:a,children:o,...l}=n,c=a?.[e]?.[s]||i,d=t.useMemo(()=>l,Object.values(l));return(0,r.jsx)(c.Provider,{value:d,children:o})};return l.displayName=n+"Provider",[l,function(r,a){let l=a?.[e]?.[s]||i,c=t.useContext(l);if(c)return c;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let a=n.reduce((t,{useScope:r,scopeName:n})=>{let a=r(e)[`__scope${n}`];return{...t,...a}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:a}),[a])}};return n.scopeName=r.scopeName,n}(o,...n)]}(c),[f,m]=d(c),p=t.forwardRef((e,n)=>{let{__scopeAvatar:a,...o}=e,[s,l]=t.useState("idle");return(0,r.jsx)(f,{scope:a,imageLoadingStatus:s,onImageLoadingStatusChange:l,children:(0,r.jsx)(i.span,{...o,ref:n})})});p.displayName=c;var h="AvatarImage",g=t.forwardRef((e,o)=>{let{__scopeAvatar:c,src:d,onLoadingStatusChange:u=()=>{},...f}=e,p=m(h,c),g=function(e,{referrerPolicy:r,crossOrigin:n}){let o=(0,s.useSyncExternalStore)(l,()=>!0,()=>!1),i=t.useRef(null),c=o?(i.current||(i.current=new window.Image),i.current):null,[d,u]=t.useState(()=>v(c,e));return(0,a.useLayoutEffect)(()=>{u(v(c,e))},[c,e]),(0,a.useLayoutEffect)(()=>{let e=e=>()=>{u(e)};if(!c)return;let t=e("loaded"),a=e("error");return c.addEventListener("load",t),c.addEventListener("error",a),r&&(c.referrerPolicy=r),"string"==typeof n&&(c.crossOrigin=n),()=>{c.removeEventListener("load",t),c.removeEventListener("error",a)}},[c,n,r]),d}(d,f),x=(0,n.useCallbackRef)(e=>{u(e),p.onImageLoadingStatusChange(e)});return(0,a.useLayoutEffect)(()=>{"idle"!==g&&x(g)},[g,x]),"loaded"===g?(0,r.jsx)(i.img,{...f,ref:o,src:d}):null});g.displayName=h;var x="AvatarFallback",y=t.forwardRef((e,n)=>{let{__scopeAvatar:a,delayMs:o,...s}=e,l=m(x,a),[c,d]=t.useState(void 0===o);return t.useEffect(()=>{if(void 0!==o){let e=window.setTimeout(()=>d(!0),o);return()=>window.clearTimeout(e)}},[o]),c&&"loaded"!==l.imageLoadingStatus?(0,r.jsx)(i.span,{...s,ref:n}):null});function v(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}y.displayName=x,e.s(["Avatar",()=>p,"AvatarFallback",()=>y,"AvatarImage",()=>g,"Fallback",()=>y,"Image",()=>g,"Root",()=>p,"createAvatarScope",()=>u],97456)},2971,e=>{"use strict";let t,r,n;var a=e.i(43476),o=e.i(22016),i=e.i(57688),s=e.i(19455),l=e.i(94351),c=e.i(92161),d=e.i(37727),u=e.i(84614),f=e.i(92270),m=e.i(64659),p=e.i(48256),h=e.i(55436),g=e.i(70273),x=e.i(7486),y=e.i(78583),v=e.i(18348),w=e.i(4997),b=e.i(10980),j=e.i(55711),N=e.i(83086),C=e.i(71645),k=e.i(45828),R=e.i(11795),S=e.i(18566),E=e.i(7056),P=e.i(75679),M=e.i(81140),_=e.i(20783),O=e.i(30030),A=e.i(69340),D=e.i(48425),L=e.i(75830),T=e.i(86318),I=e.i(26330),z=e.i(3536),B=e.i(65491),F=e.i(10772),H=e.i(53660),q=e.i(74606),$=e.i(96626),W=e.i(42727),V=Symbol("radix.slottable");function U(e){return C.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===V}var G=e.i(30207),K=e.i(86312),X=e.i(85369),J=["Enter"," "],Q=["ArrowUp","PageDown","End"],Y=["ArrowDown","PageUp","Home",...Q],Z={ltr:[...J,"ArrowRight"],rtl:[...J,"ArrowLeft"]},ee={ltr:["ArrowLeft"],rtl:["ArrowRight"]},et="Menu",[er,en,ea]=(0,L.createCollection)(et),[eo,ei]=(0,O.createContextScope)(et,[ea,H.createPopperScope,W.createRovingFocusGroupScope]),es=(0,H.createPopperScope)(),el=(0,W.createRovingFocusGroupScope)(),[ec,ed]=eo(et),[eu,ef]=eo(et),em=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:i,modal:s=!0}=e,l=es(t),[c,d]=C.useState(null),u=C.useRef(!1),f=(0,G.useCallbackRef)(i),m=(0,T.useDirection)(o);return C.useEffect(()=>{let e=()=>{u.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,a.jsx)(H.Root,{...l,children:(0,a.jsx)(ec,{scope:t,open:r,onOpenChange:f,content:c,onContentChange:d,children:(0,a.jsx)(eu,{scope:t,onClose:C.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:u,dir:m,modal:s,children:n})})})};em.displayName=et;var ep=C.forwardRef((e,t)=>
3{let{__scopeMenu:r,...n}=e,o=es(r);return(0,a.jsx)(H.Anchor,{...o,...n,ref:t})});ep.displayName="MenuAnchor";var eh="MenuPortal",[eg,ex]=eo(eh,{forceMount:void 0}),ey=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=ed(eh,t);return(0,a.jsx)(eg,{scope:t,forceMount:r,children:(0,a.jsx)($.Presence,{present:r||i.open,children:(0,a.jsx)(q.Portal,{asChild:!0,container:o,children:n})})})};ey.displayName=eh;var ev="MenuContent",[ew,eb]=eo(ev),ej=C.forwardRef((e,t)=>{let r=ex(ev,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=ed(ev,e.__scopeMenu),s=ef(ev,e.__scopeMenu);return(0,a.jsx)(er.Provider,{scope:e.__scopeMenu,children:(0,a.jsx)($.Presence,{present:n||i.open,children:(0,a.jsx)(er.Slot,{scope:e.__scopeMenu,children:s.modal?(0,a.jsx)(eN,{...o,ref:t}):(0,a.jsx)(eC,{...o,ref:t})})})})}),eN=C.forwardRef((e,t)=>{let r=ed(ev,e.__scopeMenu),n=C.useRef(null),o=(0,_.useComposedRefs)(t,n);return C.useEffect(()=>{let e=n.current;if(e)return(0,K.hideOthers)(e)},[]),(0,a.jsx)(eR,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,M.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),eC=C.forwardRef((e,t)=>{let r=ed(ev,e.__scopeMenu);return(0,a.jsx)(eR,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),ek=((n=C.forwardRef((e,t)=>{let{children:r,...n}=e;if(C.isValidElement(r)){var a;let e,o,i=(a=r,(o=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(o=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),s=function(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==C.Fragment&&(s.ref=t?(0,_.composeRefs)(t,i):i),C.cloneElement(r,s)}return C.Children.count(r)>1?C.Children.only(null):null})).displayName="MenuContent.ScrollLock.SlotClone",t=n,(r=C.forwardRef((e,r)=>{let{children:n,...o}=e,i=C.Children.toArray(n),s=i.find(U);if(s){let e=s.props.children,n=i.map(t=>t!==s?t:C.Children.count(e)>1?C.Children.only(null):C.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...o,ref:r,children:C.isValidElement(e)?C.cloneElement(e,void 0,n):null})}return(0,a.jsx)(t,{...o,ref:r,children:n})})).displayName="MenuContent.ScrollLock.Slot",r),eR=C.forwardRef((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:m,onDismiss:p,disableOutsideScroll:h,...g}=e,x=ed(ev,r),y=ef(ev,r),v=es(r),w=el(r),b=en(r),[j,N]=C.useState(null),k=C.useRef(null),R=(0,_.useComposedRefs)(t,k,x.onContentChange),S=C.useRef(0),E=C.useRef(""),P=C.useRef(0),O=C.useRef(null),A=C.useRef("right"),D=C.useRef(0),L=h?X.RemoveScroll:C.Fragment;C.useEffect(()=>()=>window.clearTimeout(S.current),[]),(0,z.useFocusGuards)();let T=C.useCallback(e=>{var t,r;return A.current===O.current?.side&&(t=e,!!(r=O.current?.area)&&function(e,t){let{x:r,y:n}=e,a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let i=t[e],s=t[o],l=i.x,c=i.y,d=s.x,u=s.y;c>n!=u>n&&r<(d-l)*(n-c)/(u-c)+l&&(a=!a)}return a}({x:t.clientX,y:t.clientY},r))},[]);return(0,a.jsx)(ew,{scope:r,searchRef:E,onItemEnter:C.useCallback(e=>{T(e)&&e.preventDefault()},[T]),onItemLeave:C.useCallback(e=>{T(e)||(k.current?.focus(),N(null))},[T]),onTriggerLeave:C.useCallback(e=>{T(e)&&e.preventDefault()},[T]),pointerGraceTimerRef:P,onPointerGraceIntentChange:C.useCallback(e=>{O.current=e},[]),children:(0,a.jsx)(L,{...h?{as:ek,allowPinchZoom:!0}:void 0,children:(0,a.jsx)(B.FocusScope,{asChild:!0,trapped:o,onMountAutoFocus:(0,M.composeEventHandlers)(i,e=>{e.preventDefault(),k.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,a.jsx)(I.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:m,onDismiss:p,children:(0,a.jsx)(W.Root,{asChild:!0,...w,dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:j,onCurrentTabStopIdChange:N,onEntryFocus:(0,M.composeEventHandlers)(c,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,a.jsx)(H.Content,{role:"menu","aria-orientation":"vertical","data-state":eY(x.open),"data-radix-menu-content":"",dir:y.dir,...v,...g,ref:R,style:{outline:"none",...g.style},onKeyDown:(0,M.composeEventHandlers)(g.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.ke
3y.length;if(t){var a;let t,o,i,s,l,c;"Tab"===e.key&&e.preventDefault(),!r&&n&&(a=e.key,t=E.current+a,o=b().filter(e=>!e.disabled),i=document.activeElement,s=o.find(e=>e.ref.current===i)?.textValue,l=function(e,t,r){var n;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=r?e.indexOf(r):-1,i=(n=Math.max(o,0),e.map((t,r)=>e[(n+r)%e.length]));1===a.length&&(i=i.filter(e=>e!==r));let s=i.find(e=>e.toLowerCase().startsWith(a.toLowerCase()));return s!==r?s:void 0}(o.map(e=>e.textValue),t,s),c=o.find(e=>e.textValue===l)?.ref.current,function e(t){E.current=t,window.clearTimeout(S.current),""!==t&&(S.current=window.setTimeout(()=>e(""),1e3))}(t),c&&setTimeout(()=>c.focus()))}let o=k.current;if(e.target!==o||!Y.includes(e.key))return;e.preventDefault();let i=b().filter(e=>!e.disabled).map(e=>e.ref.current);Q.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,M.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(S.current),E.current="")}),onPointerMove:(0,M.composeEventHandlers)(e.onPointerMove,e1(e=>{let t=e.target,r=D.current!==e.clientX;e.currentTarget.contains(t)&&r&&(A.current=e.clientX>D.current?"right":"left",D.current=e.clientX)}))})})})})})})});ej.displayName=ev;var eS=C.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,a.jsx)(D.Primitive.div,{role:"group",...n,ref:t})});eS.displayName="MenuGroup";var eE=C.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,a.jsx)(D.Primitive.div,{...n,ref:t})});eE.displayName="MenuLabel";var eP="MenuItem",eM="menu.itemSelect",e_=C.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:n,...o}=e,i=C.useRef(null),s=ef(eP,e.__scopeMenu),l=eb(eP,e.__scopeMenu),c=(0,_.useComposedRefs)(t,i),d=C.useRef(!1);return(0,a.jsx)(eO,{...o,ref:c,disabled:r,onClick:(0,M.composeEventHandlers)(e.onClick,()=>{let e=i.current;if(!r&&e){let t=new CustomEvent(eM,{bubbles:!0,cancelable:!0});e.addEventListener(eM,e=>n?.(e),{once:!0}),(0,D.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?d.current=!1:s.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),d.current=!0},onPointerUp:(0,M.composeEventHandlers)(e.onPointerUp,e=>{d.current||e.currentTarget?.click()}),onKeyDown:(0,M.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==l.searchRef.current;r||t&&" "===e.key||J.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});e_.displayName=eP;var eO=C.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:o,...i}=e,s=eb(eP,r),l=el(r),c=C.useRef(null),d=(0,_.useComposedRefs)(t,c),[u,f]=C.useState(!1),[m,p]=C.useState("");return C.useEffect(()=>{let e=c.current;e&&p((e.textContent??"").trim())},[i.children]),(0,a.jsx)(er.ItemSlot,{scope:r,disabled:n,textValue:o??m,children:(0,a.jsx)(W.Item,{asChild:!0,...l,focusable:!n,children:(0,a.jsx)(D.Primitive.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:d,onPointerMove:(0,M.composeEventHandlers)(e.onPointerMove,e1(e=>{n?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,M.composeEventHandlers)(e.onPointerLeave,e1(e=>s.onItemLeave(e))),onFocus:(0,M.composeEventHandlers)(e.onFocus,()=>f(!0)),onBlur:(0,M.composeEventHandlers)(e.onBlur,()=>f(!1))})})})}),eA=C.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,a.jsx)(eH,{scope:e.__scopeMenu,checked:r,children:(0,a.jsx)(e_,{role:"menuitemcheckbox","aria-checked":eZ(r)?"mixed":r,...o,ref:t,"data-state":e0(r),onSelect:(0,M.composeEventHandlers)(o.onSelect,()=>n?.(!!eZ(r)||!r),{checkForDefaultPrevented:!1})})})});eA.displayName="MenuCheckboxItem";var eD="MenuRadioGroup",[eL,eT]=eo(eD,{value:void 0,onValueChange:()=>{}}),eI=C.forwardRef((e,t)=>{let{value:r,onValueChange:n,...o}=e,i=(0,G.useCallbackRef)(n);return(0,a.jsx)(eL,{scope:e.__scopeMenu,value:r,onValueChange:i,children:(0,a.jsx)(eS,{...o,ref:t})})});eI.displayName=eD;var ez="MenuRadioItem",eB=C.forwardRef((e,t)=>{let{value:r,...n}=e,o=eT(ez,e.__scopeMenu),i=r===o.value;return(0,a.jsx)(eH,{scope:e.__scopeMenu,checked:i,children:(0,a.jsx)(e_,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":e0(i),onSelect:(0,M.composeEventHandlers)(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});eB.displayName=ez;var eF="MenuItemIndicator",[eH,eq]=eo(eF,{checked:!1}
3),e$=C.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,i=eq(eF,r);return(0,a.jsx)($.Presence,{present:n||eZ(i.checked)||!0===i.checked,children:(0,a.jsx)(D.Primitive.span,{...o,ref:t,"data-state":e0(i.checked)})})});e$.displayName=eF;var eW=C.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,a.jsx)(D.Primitive.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});eW.displayName="MenuSeparator";var eV=C.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=es(r);return(0,a.jsx)(H.Arrow,{...o,...n,ref:t})});eV.displayName="MenuArrow";var[eU,eG]=eo("MenuSub"),eK="MenuSubTrigger",eX=C.forwardRef((e,t)=>{let r=ed(eK,e.__scopeMenu),n=ef(eK,e.__scopeMenu),o=eG(eK,e.__scopeMenu),i=eb(eK,e.__scopeMenu),s=C.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=i,d={__scopeMenu:e.__scopeMenu},u=C.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return C.useEffect(()=>u,[u]),C.useEffect(()=>{let e=l.current;return()=>{window.clearTimeout(e),c(null)}},[l,c]),(0,a.jsx)(ep,{asChild:!0,...d,children:(0,a.jsx)(eO,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":eY(r.open),...e,ref:(0,_.composeRefs)(t,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,M.composeEventHandlers)(e.onPointerMove,e1(t=>{i.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||s.current||(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),u()},100)))})),onPointerLeave:(0,M.composeEventHandlers)(e.onPointerLeave,e1(e=>{u();let t=r.content?.getBoundingClientRect();if(t){let n=r.content?.dataset.side,a="right"===n,o=t[a?"left":"right"],s=t[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:o,y:t.top},{x:s,y:t.top},{x:s,y:t.bottom},{x:o,y:t.bottom}],side:n}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:(0,M.composeEventHandlers)(e.onKeyDown,t=>{let a=""!==i.searchRef.current;e.disabled||a&&" "===t.key||Z[n.dir].includes(t.key)&&(r.onOpenChange(!0),r.content?.focus(),t.preventDefault())})})})});eX.displayName=eK;var eJ="MenuSubContent",eQ=C.forwardRef((e,t)=>{let r=ex(ev,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=ed(ev,e.__scopeMenu),s=ef(ev,e.__scopeMenu),l=eG(eJ,e.__scopeMenu),c=C.useRef(null),d=(0,_.useComposedRefs)(t,c);return(0,a.jsx)(er.Provider,{scope:e.__scopeMenu,children:(0,a.jsx)($.Presence,{present:n||i.open,children:(0,a.jsx)(er.Slot,{scope:e.__scopeMenu,children:(0,a.jsx)(eR,{id:l.contentId,"aria-labelledby":l.triggerId,...o,ref:d,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,M.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==l.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:(0,M.composeEventHandlers)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,M.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=ee[s.dir].includes(e.key);t&&r&&(i.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())})})})})})});function eY(e){return e?"open":"closed"}function eZ(e){return"indeterminate"===e}function e0(e){return eZ(e)?"indeterminate":e?"checked":"unchecked"}function e1(e){return t=>"mouse"===t.pointerType?e(t):void 0}eQ.displayName=eJ;var e2="DropdownMenu",[e5,e4]=(0,O.createContextScope)(e2,[ei]),e3=ei(),[e6,e8]=e5(e2),e7=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,c=e3(t),d=C.useRef(null),[u,f]=(0,A.useControllableState)({prop:o,defaultProp:i??!1,onChange:s,caller:e2});return(0,a.jsx)(e6,{scope:t,triggerId:(0,F.useId)(),triggerRef:d,contentId:(0,F.useId)(),open:u,onOpenChange:f,onOpenToggle:C.useCallback(()=>f(e=>!e),[f]),modal:l,children:(0,a.jsx)(em,{...c,open:u,onOpenChange:f,dir:n,modal:l,children:r})})};e7.displayName=e2;var e9="DropdownMenuTrigger",te=C.forwardRef((e,t)=>
3{let{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,i=e8(e9,r),s=e3(r);return(0,a.jsx)(ep,{asChild:!0,...s,children:(0,a.jsx)(D.Primitive.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:(0,_.composeRefs)(t,i.triggerRef),onPointerDown:(0,M.composeEventHandlers)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:(0,M.composeEventHandlers)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});te.displayName=e9;var tt=e=>{let{__scopeDropdownMenu:t,...r}=e,n=e3(t);return(0,a.jsx)(ey,{...n,...r})};tt.displayName="DropdownMenuPortal";var tr="DropdownMenuContent",tn=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e8(tr,r),i=e3(r),s=C.useRef(!1);return(0,a.jsx)(ej,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...n,ref:t,onCloseAutoFocus:(0,M.composeEventHandlers)(e.onCloseAutoFocus,e=>{s.current||o.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:(0,M.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!o.modal||n)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tn.displayName=tr,C.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,a.jsx)(eS,{...o,...n,ref:t})}).displayName="DropdownMenuGroup";var ta=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,a.jsx)(eE,{...o,...n,ref:t})});ta.displayName="DropdownMenuLabel";var to=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,a.jsx)(e_,{...o,...n,ref:t})});to.displayName="DropdownMenuItem";var ti=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,a.jsx)(eA,{...o,...n,ref:t})});ti.displayName="DropdownMenuCheckboxItem",C.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,a.jsx)(eI,{...o,...n,ref:t})}).displayName="DropdownMenuRadioGroup";var ts=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,a.jsx)(eB,{...o,...n,ref:t})});ts.displayName="DropdownMenuRadioItem";var tl=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,a.jsx)(e$,{...o,...n,ref:t})});tl.displayName="DropdownMenuItemIndicator";var tc=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,a.jsx)(eW,{...o,...n,ref:t})});tc.displayName="DropdownMenuSeparator",C.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,a.jsx)(eV,{...o,...n,ref:t})}).displayName="DropdownMenuArrow";var td=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,a.jsx)(eX,{...o,...n,ref:t})});td.displayName="DropdownMenuSubTrigger";var tu=C.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=e3(r);return(0,a.jsx)(eQ,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tu.displayName="DropdownMenuSubContent";var tf=e.i(43531);let tm=(0,e.i(75254).default)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var tp=e.i(14683),th=e.i(75157);C.forwardRef(({className:e,inset:t,children:r,...n},o)=>(0,a.jsxs)(td,{ref:o,className:(0,th.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...n,children:[r,(0,a.jsx)(tm,{className:"ml-auto h-4 w-4"})]})).displayName=td.displayName,C.forwardRef(({className:e,...t},r)=>(0,a.jsx)(tu,{ref:r,className:(0,th.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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]:sli
3de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})).displayName=tu.displayName;let tg=C.forwardRef(({className:e,sideOffset:t=4,...r},n)=>(0,a.jsx)(tt,{children:(0,a.jsx)(tn,{ref:n,sideOffset:t,className:(0,th.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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})}));tg.displayName=tn.displayName;let tx=C.forwardRef(({className:e,inset:t,...r},n)=>(0,a.jsx)(to,{ref:n,className:(0,th.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...r}));tx.displayName=to.displayName,C.forwardRef(({className:e,children:t,checked:r,...n},o)=>(0,a.jsxs)(ti,{ref:o,className:(0,th.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:r,...n,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(tl,{children:(0,a.jsx)(tf.Check,{className:"h-4 w-4"})})}),t]})).displayName=ti.displayName,C.forwardRef(({className:e,children:t,...r},n)=>(0,a.jsxs)(ts,{ref:n,className:(0,th.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...r,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(tl,{children:(0,a.jsx)(tp.Circle,{className:"h-2 w-2 fill-current"})})}),t]})).displayName=ts.displayName;let ty=C.forwardRef(({className:e,inset:t,...r},n)=>(0,a.jsx)(ta,{ref:n,className:(0,th.cn)("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));ty.displayName=ta.displayName;let tv=C.forwardRef(({className:e,...t},r)=>(0,a.jsx)(tc,{ref:r,className:(0,th.cn)("-mx-1 my-1 h-px bg-muted",e),...t}));tv.displayName=tc.displayName;var tw=e.i(97456);let tb=C.forwardRef(({className:e,...t},r)=>(0,a.jsx)(tw.Root,{ref:r,className:(0,th.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));tb.displayName=tw.Root.displayName,C.forwardRef(({className:e,...t},r)=>(0,a.jsx)(tw.Image,{ref:r,className:(0,th.cn)("aspect-square h-full w-full",e),...t})).displayName=tw.Image.displayName;let tj=C.forwardRef(({className:e,...t},r)=>(0,a.jsx)(tw.Fallback,{ref:r,className:(0,th.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));tj.displayName=tw.Fallback.displayName,e.s(["default",0,()=>{let[e,t]=(0,C.useState)(!1),[r,n]=(0,C.useState)(!1),[M,_]=(0,C.useState)(null),[O,A]=(0,C.useState)(!0),[D,L]=(0,C.useState)(null),[T,I]=(0,C.useState)(!1),[z,B]=(0,C.useState)(!1),[F,H]=(0,C.useState)(!1),q=(0,C.useRef)(!1),$=(0,S.useRouter)();async function W(){if(!q.current){q.current=!0;try{let e=await (0,k.getCurrentUserFast)();if(_(e),e){let t=(0,R.createClient)(),{data:r}=await t.from("psychologists").select("slug").eq("user_id",e.id).maybeSingle();L(r?.slug||null)}else L(null)}catch(e){_(null),L(null)}finally{q.current=!1,A(!1)}}}async function V(){try{await (0,k.signOut)(),_(null),$.push("/"),$.refresh()}catch(e){console.error("Error signing out:",e)}}(0,C.useEffect)(()=>{W()},[]);let U=()=>t(!1),G=()=>{(0,P.trackCtaClick)("header_indicacao"),U(),n(!0)},K="text-sm font-medium text-muted-foreground relative group inline-block pb-1 hover:text-foreground transition-colors",X="text-base font-medium text-foreground py-3 flex items-center gap-3 rounded-lg hover:bg-muted/50 transition-colors",J="w-full flex items-center justify-between py-3 text-sm font-medium text-foreground hover:bg-muted/30 rounded-lg transition-colors";return(0,a.jsxs)("header",{className:"fixed top-0 left-0 right-0 z-50",role:"banner",children:[(0,a.jsx)("a",{href:"#main-content",className:"sr-only focu
3s:not-sr-only focus:absolute focus:top-4 focus:left-4 bg-primary text-primary-foreground px-4 py-2 rounded-lg z-50",children:"Pular para conteúdo"}),(0,a.jsx)("div",{className:"mx-4 mt-4",children:(0,a.jsxs)("nav",{className:"container mx-auto px-4 sm:px-6 py-3 sm:py-4 rounded-2xl bg-card/80 backdrop-blur-lg border border-border shadow-sm","aria-label":"Navegação principal",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,a.jsxs)(o.default,{href:"/",className:"flex items-center gap-2 min-w-0 flex-shrink-0","aria-label":"Lumus Terapia - página inicial",onClick:U,children:[(0,a.jsx)("div",{className:"w-10 h-10 sm:w-11 sm:h-11 rounded-full bg-gradient-to-br from-primary to-secondary flex items-center justify-center flex-shrink-0",children:(0,a.jsx)(i.default,{src:"/images/lumus-logo.webp",alt:"Logo Lumus Terapia",width:44,height:44,className:"w-full h-full rounded-full object-cover",priority:!0})}),(0,a.jsxs)("span",{className:"text-lg sm:text-xl font-serif font-bold text-foreground truncate",children:["Lumus",(0,a.jsx)("span",{className:"text-primary",children:" Terapia"})]})]}),(0,a.jsxs)("div",{className:"hidden lg:flex items-center gap-6",children:[(0,a.jsx)(o.default,{href:"/",className:K,children:"Home"}),(0,a.jsx)(o.default,{href:"/psicologos",className:K,children:"Buscar psicólogo"}),(0,a.jsx)(o.default,{href:"/favoritos",className:K,children:"Favoritos"}),(0,a.jsx)(o.default,{href:"/#como-funciona",className:K,children:"Como funciona"}),(0,a.jsx)(o.default,{href:"/blog",className:K,children:"Blog"}),(0,a.jsxs)(e7,{children:[(0,a.jsx)(te,{asChild:!0,children:(0,a.jsx)("button",{className:K,"aria-label":"Questionários de saúde mental",suppressHydrationWarning:!0,children:(0,a.jsxs)("span",{className:"inline-flex items-center gap-1",children:["Saúde mental ",(0,a.jsx)(m.ChevronDown,{className:"w-4 h-4"})]})})}),(0,a.jsxs)(tg,{className:"w-56",align:"start",forceMount:!0,children:[(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:"/questionarios",className:"cursor-pointer flex items-center gap-2",onClick:U,children:[(0,a.jsx)(j.Brain,{className:"w-4 h-4 text-muted-foreground"})," Todos os questionários"]})}),(0,a.jsx)(tv,{}),(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:"/questionarios/ansiedade-gad7",className:"cursor-pointer flex items-center gap-2",onClick:U,children:[(0,a.jsx)(j.Brain,{className:"w-4 h-4 text-muted-foreground"})," Ansiedade (GAD-7)"]})}),(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:"/questionarios/depressao-phq9",className:"cursor-pointer flex items-center gap-2",onClick:U,children:[(0,a.jsx)(j.Brain,{className:"w-4 h-4 text-muted-foreground"})," Depressão (PHQ-9)"]})}),(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:"/questionarios/autoestima-ear",className:"cursor-pointer flex items-center gap-2",onClick:U,children:[(0,a.jsx)(j.Brain,{className:"w-4 h-4 text-muted-foreground"})," Autoestima (EAR)"]})}),(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:"/questionarios/dass21",className:"cursor-pointer flex items-center gap-2",onClick:U,children:[(0,a.jsx)(j.Brain,{className:"w-4 h-4 text-muted-foreground"})," Depressão, Ansiedade e Estresse"]})}),(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:"/questionarios/personalidade-big-five",className:"cursor-pointer flex items-center gap-2",onClick:U,children:[(0,a.jsx)(j.Brain,{className:"w-4 h-4 text-muted-foreground"})," Personalidade (Big Five)"]})}),(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:"/questionarios/apego-ecrr",className:"cursor-pointer flex items-center gap-2",onClick:U,children:[(0,a.jsx)(j.Brain,{className:"w-4 h-4 text-muted-foreground"})," Apego Adulto (ECR-R)"]})}),(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:"/questionarios/atencao-asrs",className:"cursor-pointer flex items-center gap-2",onClick:U,children:[(0,a.jsx)(j.Brain,{className:"w-4 h-4 text-muted-foreground"})," Desatenção e Impulsividade (ASRS-18)"]})}),(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:"/questionarios/sofrimento-
3psicologico-k10",className:"cursor-pointer flex items-center gap-2",onClick:U,children:[(0,a.jsx)(j.Brain,{className:"w-4 h-4 text-muted-foreground"})," Sofrimento Psicológico (K10)"]})})]})]}),(0,a.jsxs)(e7,{children:[(0,a.jsx)(te,{asChild:!0,children:(0,a.jsx)("button",{className:K,"aria-label":"Menu institucional",suppressHydrationWarning:!0,children:(0,a.jsxs)("span",{className:"inline-flex items-center gap-1",children:["Institucional ",(0,a.jsx)(m.ChevronDown,{className:"w-4 h-4"})]})})}),(0,a.jsxs)(tg,{className:"w-56",align:"start",forceMount:!0,children:[(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:"/sobre",className:"cursor-pointer flex items-center gap-2",onClick:U,children:[(0,a.jsx)(x.Building2,{className:"w-4 h-4 text-muted-foreground"})," Sobre nós"]})}),(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:"/privacidade",className:"cursor-pointer flex items-center gap-2",onClick:U,children:[(0,a.jsx)(y.FileText,{className:"w-4 h-4 text-muted-foreground"})," PolÃtica de Privacidade"]})}),(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:"/termos",className:"cursor-pointer flex items-center gap-2",onClick:U,children:[(0,a.jsx)(y.FileText,{className:"w-4 h-4 text-muted-foreground"})," Termos de Uso"]})}),(0,a.jsx)(tv,{}),(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:"/ajuda",className:"cursor-pointer flex items-center gap-2",onClick:U,children:[(0,a.jsx)(v.HelpCircle,{className:"w-4 h-4 text-muted-foreground"})," Central de Ajuda"]})}),(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:"/para-psicologos",className:"cursor-pointer flex items-center gap-2",onClick:U,children:[(0,a.jsx)(x.Building2,{className:"w-4 h-4 text-muted-foreground"})," Trabalhe conosco"]})}),(0,a.jsx)(tv,{}),(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:"/beneficios-para-empresas",className:"cursor-pointer flex items-center gap-2",onClick:U,children:[(0,a.jsx)(x.Building2,{className:"w-4 h-4 text-muted-foreground"})," BenefÃcio para empresas"]})}),(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:"/programa-empresarial",className:"cursor-pointer flex items-center gap-2",onClick:U,children:[(0,a.jsx)(x.Building2,{className:"w-4 h-4 text-muted-foreground"})," Programa empresarial (psicólogas)"]})}),(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:"/acesso-empresa",className:"cursor-pointer flex items-center gap-2",onClick:U,children:[(0,a.jsx)(x.Building2,{className:"w-4 h-4 text-muted-foreground"})," Já tenho cupom da empresa"]})})]})]})]}),(0,a.jsxs)("div",{className:"hidden md:flex items-center gap-2",children:[(0,a.jsxs)(s.Button,{variant:"outline",size:"sm",onClick:G,className:"gap-1.5 text-primary border-primary/30 hover:bg-primary/5 hidden lg:inline-flex",children:[(0,a.jsx)(N.Sparkles,{className:"w-3.5 h-3.5"}),"Me indiquem uma psicóloga"]}),O?(0,a.jsx)("div",{className:"opacity-0 pointer-events-none select-none","aria-hidden":"true",children:(0,a.jsxs)(s.Button,{variant:"outline",size:"sm",className:"gap-2",tabIndex:-1,children:[(0,a.jsx)(w.LogIn,{className:"w-4 h-4"}),"Entrar"]})}):M?(0,a.jsxs)(e7,{children:[(0,a.jsx)(te,{asChild:!0,children:(0,a.jsxs)(s.Button,{variant:"ghost",className:"flex items-center gap-2 rounded-full px-2 h-10",suppressHydrationWarning:!0,children:[(0,a.jsx)(tb,{className:"h-9 w-9 border border-border",children:(0,a.jsx)(tj,{className:"text-sm bg-primary/10 text-primary",children:M.user_metadata?.full_name?.split(" ").slice(0,2).map(e=>e.charAt(0).toUpperCase()).join("")||M.email?.charAt(0).toUpperCase()})}),(0,a.jsx)(m.ChevronDown,{className:"h-4 w-4 text-muted-foreground"})]})}),(0,a.jsxs)(tg,{className:"w-56",align:"end",forceMount:!0,children:[(0,a.jsx)(ty,{className:"font-normal",children:(0,a.jsxs)("div",{className:"flex flex-col space-y-1",children:[(0,a.jsx)("p",{className:"text-sm font-medium leading-none",children:M.user_metadata?.full_name||"Profissional"}),(0,a.jsx)("p",{className:"text-xs leading-none text-muted-foreground truncate max-w-32",children:M.email})]})}),(0,a.jsx)(tv,{}),(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:"/perfil",className:"cursor-pointer",children:[(0,a.jsx)(u.User,{className:"mr-2 h-4 w-4"})," Meu Perfil"]}
3)}),D&&(0,a.jsx)(tx,{asChild:!0,children:(0,a.jsxs)(o.default,{href:`/psicologo/${D}`,className:"cursor-pointer",children:[(0,a.jsx)(p.Globe,{className:"mr-2 h-4 w-4"})," Perfil público"]})}),(0,a.jsx)(tv,{}),(0,a.jsxs)(tx,{onClick:V,className:"cursor-pointer text-destructive focus:text-destructive",children:[(0,a.jsx)(f.LogOut,{className:"mr-2 h-4 w-4"})," Sair"]})]})]}):(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.Button,{variant:"outline",size:"sm",asChild:!0,className:"gap-2",children:(0,a.jsxs)(o.default,{href:"/auth?tab=login",children:[(0,a.jsx)(w.LogIn,{className:"w-4 h-4"}),"Entrar"]})})})]}),(0,a.jsx)("button",{onClick:()=>t(!e),className:"lg:hidden p-2 text-foreground rounded-lg hover:bg-muted/50 transition-colors flex-shrink-0","aria-label":e?"Fechar menu":"Abrir menu","aria-expanded":e,"aria-controls":"mobile-menu",children:e?(0,a.jsx)(d.X,{className:"w-6 h-6"}):(0,a.jsx)(c.Menu,{className:"w-6 h-6"})})]}),e&&(0,a.jsx)("div",{id:"mobile-menu",className:"lg:hidden mt-3 pt-4 border-t border-border",role:"dialog","aria-modal":"true","aria-label":"Menu de navegação mobile",children:(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsxs)("button",{onClick:G,className:`${X} text-primary`,children:[(0,a.jsx)(N.Sparkles,{className:"w-5 h-5 text-primary flex-shrink-0"}),(0,a.jsx)("span",{children:"Me indiquem uma psicóloga"})]}),(0,a.jsxs)(o.default,{href:"/psicologos",className:X,onClick:U,children:[(0,a.jsx)(h.Search,{className:"w-5 h-5 text-primary flex-shrink-0"}),(0,a.jsx)("span",{children:"Buscar psicólogos"})]}),(0,a.jsxs)(o.default,{href:"/favoritos",className:X,onClick:U,children:[(0,a.jsx)(g.Star,{className:"w-5 h-5 text-amber-500 flex-shrink-0"}),(0,a.jsx)("span",{children:"Favoritos"})]}),(0,a.jsxs)(o.default,{href:"/blog",className:X,onClick:U,children:[(0,a.jsx)(b.BookOpen,{className:"w-5 h-5 text-primary flex-shrink-0"}),(0,a.jsx)("span",{children:"Blog"})]}),(0,a.jsxs)("div",{className:"mt-1",children:[(0,a.jsxs)("button",{onClick:()=>H(!F),className:J,"aria-expanded":F,"aria-controls":"mental-health-content",children:[(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)(j.Brain,{className:"w-4 h-4 text-muted-foreground"}),"Saúde mental"]}),(0,a.jsx)(m.ChevronDown,{className:`w-4 h-4 text-muted-foreground transition-transform ${F?"rotate-180":""}`})]}),F&&(0,a.jsxs)("div",{id:"mental-health-content",className:"pl-2 pr-2 pb-2 space-y-1",role:"region",children:[(0,a.jsxs)(o.default,{href:"/questionarios",className:X,onClick:U,children:[(0,a.jsx)(j.Brain,{className:"w-5 h-5 text-primary flex-shrink-0"})," Todos os questionários"]}),(0,a.jsxs)(o.default,{href:"/questionarios/ansiedade-gad7",className:X,onClick:U,children:[(0,a.jsx)(j.Brain,{className:"w-5 h-5 text-muted-foreground flex-shrink-0"})," Ansiedade (GAD-7)"]}),(0,a.jsxs)(o.default,{href:"/questionarios/depressao-phq9",className:X,onClick:U,children:[(0,a.jsx)(j.Brain,{className:"w-5 h-5 text-muted-foreground flex-shrink-0"})," Depressão (PHQ-9)"]}),(0,a.jsxs)(o.default,{href:"/questionarios/autoestima-ear",className:X,onClick:U,children:[(0,a.jsx)(j.Brain,{className:"w-5 h-5 text-muted-foreground flex-shrink-0"})," Autoestima (EAR)"]}),(0,a.jsxs)(o.default,{href:"/questionarios/dass21",className:X,onClick:U,children:[(0,a.jsx)(j.Brain,{className:"w-5 h-5 text-muted-foreground flex-shrink-0"})," Depressão, Ansiedade e Estresse (DAESS-21)"]}),(0,a.jsxs)(o.default,{href:"/questionarios/personalidade-big-five",className:X,onClick:U,children:[(0,a.jsx)(j.Brain,{className:"w-5 h-5 text-muted-foreground flex-shrink-0"})," Personalidade (Big Five)"]}),(0,a.jsxs)(o.default,{href:"/questionarios/apego-ecrr",className:X,onClick:U,children:[(0,a.jsx)(j.Brain,{className:"w-5 h-5 text-muted-foreground flex-shrink-0"})," Apego Adulto (ECR-R)"]}),(0,a.jsxs)(o.default,{href:"/questionarios/atencao-asrs",className:X,onClick:U,children:[(0,a.jsx)(j.Brain,{className:"w-5 h-5 text-muted-foreground flex-shrink-0"})," Desatenção e Impulsividade (ASRS-18)"]}),(0,a.jsxs)(o.default,{href:"/questionarios/sofrimento-psicologico-k10",className:X,onClick:U,children:[(0,a.jsx)(j.Brain,{className:"w-5 h-5 text-muted-foreground flex-shrink-0"})," Sofrimento Psicológico (K10)"]})]})]}),(0,a.jsxs)("div",{className:"mt-1",children:[(0,a.jsxs)("button",{onClick:()=>B(!z),className:J,"aria-expanded":z,"aria-controls":"institutional-content",children:[(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)(x.Building2,{className:"w-4 h-4 text-muted-foreground"}),"Institucional"]}),(0,a.jsx)(m.ChevronDown,{className:`w-4 h-4 text-muted-foreground transition-transform ${z?"rotate-180":""}`})]}),z&&(0,a.jsxs)("div",{id:"institutional-content",className:"pl-2 pr-2 pb-2 space-y-1",role:"region",children:[(0,a.jsxs)(o.default,{href:"/sobre",className:X,onClick:U,children:[(0,a.jsx)(x.Building2,{className:"w-5 h-5 text-muted-foreground"})," Sobre nós"]}),(0,a.jsxs)(o.default,{href:"/privacidade",className:X,onClick:U,children:[(0,a.jsx)(y.FileText,{className:"w-5 h-5 text-muted-foreground"})," PolÃtica de Privacidade"]}),(0,a.jsxs)(o.default,{href:"/termos",className:X,onClick:U,children:[(0,a.jsx)(y.FileText,{className:"w-5 h-5 text-muted-foreground"})," Termos de Uso"]}),(0,a.jsxs)(o.default,{href:"/ajuda",className:X,onClick:U,children:[(0,a.jsx)(v.HelpCircle,{className:"w-5 h-5 text-muted-foreground"})," Central de Ajuda"]}),(0,a.jsxs)(o.default,{href:"/para-psicologos",className:X,onClick:U,children:[(0,a.jsx)(v.HelpCircle,{className:"w-5 h-5 text-muted-foreground"})," trabalhe conosco"]}),(0,a.jsxs)(o.default,{href:"/beneficios-para-empresas",className:X,onClick:U,children:[(0,a.jsx)(x.Building2,{className:"w-5 h-5 text-muted-foreground"})," BenefÃcio para empresas"]}),(0,a.jsxs)(o.default,{href:"/programa-empresarial",className:X,onClick:U,children:[(0,a.jsx)(x.Building2,{className:"w-5 h-5 text-muted-foreground"})," Programa empresarial (psicólogas)"]}),(0,a.jsxs)(o.default,{href:"/acesso-empresa",className:X,onClick:U,children:[(0,a.jsx)(x.Building2,{className:"w-5 h-5 text-muted-foreground"})," Já tenho cupom da empresa"]})]})]}),(0,a.jsxs)("div",{className:"pt-2 mt-2 border-t border-border",children:[(0,a.jsxs)(o.default,{href:"/",className:X,onClick:U,children:[(0,a.jsx)(l.Home,{className:"w-5 h-5 text-muted-foreground"})," Home"]}),(0,a.jsx)(o.default,{href:"/#como-funciona",className:X,onClick:U,children:"Como funciona"})]}),O?(0,a.jsxs)("div",{className:"space-y-2 my-2",children:[(0,a.jsx)("div",{className:"w-full h-11 bg-muted rounded-lg animate-pulse"}),(0,a.jsx)("div",{className:"w-full h-11 bg-muted rounded-lg animate-pulse"})]}):M?(0,a.jsxs)("div",{className:"my-2 p-3 bg-muted/30 rounded-xl",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(tb,{className:"h-10 w-10 border border-border",children:(0,a.jsx)(tj,{className:"text-sm bg-primary/10 text-primary",children:M.user_metadata?.full_name?.split(" ").slice(0,2).map(e=>e.charAt(0).toUpperCase()).join("")||M.email?.charAt(0).toUpperCase()})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-semibold truncate",children:M.user_metadata?.full_name||"Profissional"}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:M.email})]})]}),(0,a.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-2",children:[(0,a.jsx)(s.Button,{variant:"outline",size:"sm",asChild:!0,className:"h-9 text-xs",children:(0,a.jsx)(o.default,{href:"/perfil",onClick:U,children:"Meu Perfil"})}),(0,a.jsxs)(s.Button,{variant:"ghost",size:"sm",onClick:()=>{V(),U()},className:"h-9 text-xs text-destructive hover:text-destructive hover:bg-destructive/10",children:[(0,a.jsx)(f.LogOut,{className:"w-3 h-3 mr-1"})," Sair"]})]}),D&&(0,a.jsx)(o.default,{href:`/psicologo/${D}`,className:"block mt-2 text-xs text-muted-foreground hover:text-primary",onClick:U,children:"â Ver perfil público"})]}):(0,a.jsx)("div",{className:"grid grid-cols-2 gap-2 my-2",children:(0,a.jsx)(s.Button,{variant:"outline",size:"sm",asChild:!0,className:"h-11",children:(0,a.jsxs)(o.default,{href:"/auth?tab=login",onClick:U,children:[(0,a.jsx)(w.LogIn,{className:"w-4 h-4 mr-1"})," Entrar"]})})})]})})]})}
3),(0,a.jsx)(E.LeadCaptureModal,{open:r,onOpenChange:n,origem:"outro"})]})}],2971)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.