(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,13234,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return i},formatWithValidation:function(){return u},urlObjectKeys:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let l=e.r(52709)._(e.r(75970)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",i=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(l.urlQueryToSearchParams(s)));let c=e.search||s&&`?${s}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${a}${c}${i}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return i(e)}},35226,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(83567);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=l(e,n)),t&&(a.current=l(t,n))},[e,t])}function l(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(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)},68081,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return l}});let n=e.r(98255),a=e.r(65696);function l(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},38416,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},1761,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return g}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let l=e.r(52709),o=e.r(77252),i=l._(e.r(83567)),s=e.r(13234),u=e.r(40646),c=e.r(35226),f=e.r(98255),d=e.r(81546);e.r(95843);let p=e.r(21692),h=e.r(34745),m=e.r(68081),b=e.r(1491);function y(t){var r,n;let a,l,y,[g,v]=(0,i.useOptimistic)(h.IDLE_LINK_STATUS),j=(0,i.useRef)(null),{href:k,as:_,children:w,prefetch:P=null,passHref:S,replace:C,shallow:N,scroll:O,onClick:T,onMouseEnter:R,onTouchStart:E,legacyBehavior:L=!1,onNavigate:M,transitionTypes:U,ref:$,unstable_dynamicOnHover:A,...B}=t;a=w,L&&("string"==typeof a||"number"==typeof a)&&(a=(0,o.jsx)("a",{children:a}));let I=i.default.useContext(u.AppRouterContext),K=!1!==P,D=!1!==P?null===(n=P)||"auto"===n?b.FetchStrategy.PPR:b.FetchStrategy.Full:b.FetchStrategy.PPR,F="string"==typeof(r=_||k)?r:(0,s.formatUrl)(r);if(L){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});l=i.default.Children.only(a)}let z=L?l&&"object"==typeof l&&l.ref:$,H=i.default.useCallback(e=>(null!==I&&(j.current=(0,h.mountLinkInstance)(e,F,I,D,K,v)),()=>{j.current&&((0,h.unmountLinkForCurrentNavigation)(j.current),j.current=null),(0,h.unmountPrefetchableInstance)(e)}),[K,F,I,D,v]),q={ref:(0,c.useMergedRef)(H,z),onClick(t){L||"function"!=typeof T||T(t),L&&l.props&&"function"==typeof l.props.onClick&&l.props.onClick(t),!I||t.defaultPrevented||function(t,r,n,a,l,o,s){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(48904);i.default.startTransition(()=>{f(r,a?"replace":"push",!1===l?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,s)})}}(t,F,j,C,O,M,U)},onMouseEnter(e){L||"function"!=typeof R||R(e),L&&l.props&&"function"==typeof l.props.onMouseEnter&&l.props.onMouseEnter(e),I&&K&&(0,h.onNavigationIntent)(e.currentTarget,!0===A)},onTouchStart:function(e){L||"function"!=typeof E||E(e),L&&l.props&&"function"==typeof l.props.onTouchStart&&l.props.onTouchStart(e),I&&K&&(0,h.onNavigationIntent)(e.currentTarget,!0===A)}};return(0,f.isAbsoluteUrl)(F)?q.href=F:L&&!S&&("a"!==l.type||"href"in l.props)||(q.href=(0,d.addBasePath)(F)),y=L?i.default.cloneElement(l,q):(0,o.jsx)("a",{...B,...q,children:a}),(0,o.jsx)(x.Provider,{value:g,children:y})}e.r(38416);let x=(0,i.createContext)(h.IDLE_LINK_STATUS),g=()=>(0,i.useContext)(x);("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)},25286,e=>{"use strict";var t=e.i(77252),r=e.i(83567),n=e.i(1761);e.s(["default",0,function(){let[e,a]=(0,r.useState)(!1),[l,o]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=()=>o(window.scrollY>20);return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,t.jsxs)("nav",{className:"fixed top-0 left-0 right-0 z-50 flex justify-center px-4 pt-4",children:[(0,t.jsxs)("div",{className:`relative flex items-center justify-between w-full max-w-5xl rounded-full px-6 py-3 transition-all duration-300 ${l?"bg-white/90 backdrop-blur-xl shadow-md border border-white/50":"bg-white/60 backdrop-blur-md border border-border/50"}`,children:[(0,t.jsx)(n.default,{href:"/",className:"text-xl font-800 tracking-tight text-primary-dark",children:"Hestia"}),(0,t.jsx)("div",{className:"hidden md:flex items-center gap-8 absolute left-1/2 -translate-x-1/2",children:[{href:"/#features",label:"Features"},{href:"/blog",label:"Blog"}].map(e=>(0,t.jsx)(n.default,{href:e.href,className:"text-sm font-medium text-text-secondary hover:text-primary-dark transition-colors duration-200",children:e.label},e.href))}),(0,t.jsxs)("div",{className:"hidden md:flex items-center gap-3",children:[(0,t.jsx)(n.default,{href:"https://app.hest.app/signin",className:"btn-press inline-block text-sm font-semibold text-text-secondary hover:text-primary-dark px-4 py-2.5 rounded-full transition-colors duration-200",children:"Sign in"}),(0,t.jsx)("a",{href:"https://cal.com/hestia-ai/hestia-chat",target:"_blank",rel:"noopener noreferrer",className:"btn-press inline-block bg-primary-dark text-white text-sm font-semibold px-6 py-2.5 rounded-full hover:bg-primary-dark/90 hover:shadow-lg hover:shadow-primary-dark/20 transition-all duration-200",children:"Try Hestia"})]}),(0,t.jsxs)("button",{className:"md:hidden flex flex-col gap-1.5 p-2",onClick:()=>a(!e),"aria-label":"Toggle menu",children:[(0,t.jsx)("span",{className:`block w-5 h-0.5 bg-primary-dark transition-all duration-300 ${e?"rotate-45 translate-y-2":""}`}),(0,t.jsx)("span",{className:`block w-5 h-0.5 bg-primary-dark transition-all duration-300 ${e?"opacity-0":""}`}),(0,t.jsx)("span",{className:`block w-5 h-0.5 bg-primary-dark transition-all duration-300 ${e?"-rotate-45 -translate-y-2":""}`})]})]}),e&&(0,t.jsx)("div",{className:"animate-slide-down absolute top-full mt-2 left-4 right-4 glass rounded-2xl shadow-xl border border-white/50 p-6 md:hidden",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[[{href:"/#features",label:"Features"},{href:"/blog",label:"Blog"}].map(e=>(0,t.jsx)(n.default,{href:e.href,className:"text-sm font-medium text-text-secondary hover:text-primary-dark transition-colors",onClick:()=>a(!1),children:e.label},e.href)),(0,t.jsx)(n.default,{href:"https://app.hest.app/signin",className:"text-sm font-semibold text-text-secondary hover:text-primary-dark transition-colors",onClick:()=>a(!1),children:"Sign in"}),(0,t.jsx)("a",{href:"https://cal.com/hestia-ai/hestia-chat",target:"_blank",rel:"noopener noreferrer",className:"btn-press inline-block text-center bg-primary-dark text-white text-sm font-semibold px-5 py-2.5 rounded-full",onClick:()=>a(!1),children:"Try Hestia"})]})})]})}])}]);