1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,443880,e=>{"use strict";var t=e.i(247167),r=e.i(271645);function a(){return"u">typeof window}function s(){return"production"}function n(){return(a()?window.vam:s())||"production"}function o(){return"production"===n()}function l(){return"development"===n()}function i(e,t,r){var s,n;if(!a()){let e="[Vercel Web Analytics] Please import `track` from `@vercel/analytics/server` when using this function in a server environment";if(o())console.warn(e);else throw Error(e);return}if(!t){null==(s=window.va)||s.call(window,"event",{name:e,options:r});return}try{let a=function(e,t){if(!e)return;let r=e,a=[];for(let[s,n]of Object.entries(e))"object"==typeof n&&null!==n&&(t.strip?r=function(e,{[e]:t,...r}){return r}(s,r):a.push(s));if(a.length>0&&!t.strip)throw Error(`The following properties are not valid: ${a.join(", ")}. Only strings, numbers, booleans, and null are allowed.`);return r}(t,{strip:o()});null==(n=window.va)||n.call(window,"event",{name:e,data:a,options:r})}catch(e){e instanceof Error&&l()&&console.error(e)}}function d(e){return(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,r.useEffect)(()=>{!function(e={debug:!0}){var t;if(!a())return;!function(e="auto"){if("auto"===e){window.vam=s();return}window.vam=e}(e.mode),window.va||(window.va=function(...e){(window.vaq=window.vaq||[]).push(e)}),e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend));let r=e.scriptSrc?e.scriptSrc:l()?"https://va.vercel-scripts.com/v1/script.debug.js":e.basePath?`${e.basePath}/insights/script.js`:"/_vercel/insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return;let n=document.createElement("script");n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/analytics"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.6.1",e.disableAutoTrack&&(n.dataset.disableAutoTrack="1"),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/insights`),e.dsn&&(n.dataset.dsn=e.dsn),n.onerror=()=>{let e=l()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${r}. ${e}`)},l()&&!1===e.debug&&(n.dataset.debug="false"),document.head.appendChild(n)}({framework:e.framework||"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,r.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var r;null==(r=window.va)||r.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null}e.s(["Analytics",()=>d,"track",()=>i])},957215,e=>{"use strict";var t=e.i(247167),r=e.i(271645),a=e.i(618566);function s(){return false}function n(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function o(e){(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let a=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(a.current)e.route&&a.current(e.route);else{let r=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let r=e.scriptSrc?e.scriptSrc:s()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let a=document.createElement("script");return a.src=r,a.defer=!0,a.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),a.dataset.sdkv="1.3.1",e.sampleRate&&(a.dataset.sampleRate=e.sampleRate.toString()),e.route&&(a.dataset.route=e.route),e.endpoint?a.dataset.endpoint=e.endpoint:e.basePath&&(a.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(a.dataset.dsn=e.dsn),s()&&!1===e.debug&&(a.dataset.debug="false"),a.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(a),{setRoute:e=>{a.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});r&&(a.current=r.setRoute)}},[e.route]),null}function l(e){let s=(()=>{let e=(0,a.useParams)(),t=(0,a.useSearchParams)()||new URLSearchParams,r=(0,a.usePathname)();if(!e)return null;let s=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!r||!s)return r;let o=r;try{let e=Object.entries(s);for(let[t,r]of e)if(!Array.isArray(r)){let e=n(r);e.test(o)&&(o=o.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=n(r.join("/"));e.test(o)&&(o=o.replace(e,`/[...${t}]`))}return o}catch(e){return r}})();return r.default.createElement(o,{route:s,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}function i(e){return r.default.createElement(r.Suspense,{fallback:null},r.default.createElement(l,{...e}))}e.s(["SpeedInsights",()=>i])},544636,e=>{"use strict";e.i(247167);var t,r=e.i(843476),a=e.i(271645),s=(e,t,r,a,s,n,o,l)=>{let i=document.documentElement,d=["light","dark"];function c(t){var r;
1(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,a=r&&n?s.map(e=>n[e]||e):s;r?(i.classList.remove(...a),i.classList.add(n&&n[t]?n[t]:t)):i.setAttribute(e,t)}),r=t,l&&d.includes(r)&&(i.style.colorScheme=r)}if(a)c(a);else try{let e=localStorage.getItem(t)||r,a=o&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(a)}catch(e){}},n=["light","dark"],o="(prefers-color-scheme: dark)",l="u"<typeof window,i=a.createContext(void 0),d=e=>a.useContext(i)?a.createElement(a.Fragment,null,e.children):a.createElement(u,{...e}),c=["light","dark"],u=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:s=!0,storageKey:l="theme",themes:d=c,defaultTheme:u=r?"system":"light",attribute:x="data-theme",value:g,children:b,nonce:v,scriptProps:y})=>{let[w,j]=a.useState(()=>m(l,u)),[k,N]=a.useState(()=>"system"===w?p():w),E=g?Object.values(g):d,S=a.useCallback(e=>{let a=e;if(!a)return;"system"===e&&r&&(a=p());let o=g?g[a]:a,l=t?h(v):null,i=document.documentElement,d=e=>{"class"===e?(i.classList.remove(...E),o&&i.classList.add(o)):e.startsWith("data-")&&(o?i.setAttribute(e,o):i.removeAttribute(e))};if(Array.isArray(x)?x.forEach(d):d(x),s){let e=n.includes(u)?u:null,t=n.includes(a)?a:e;i.style.colorScheme=t}null==l||l()},[v]),C=a.useCallback(e=>{let t="function"==typeof e?e(w):e;j(t);try{localStorage.setItem(l,t)}catch(e){}},[w]),I=a.useCallback(t=>{N(p(t)),"system"===w&&r&&!e&&S("system")},[w,e]);a.useEffect(()=>{let e=window.matchMedia(o);return e.addListener(I),I(e),()=>e.removeListener(I)},[I]),a.useEffect(()=>{let e=e=>{e.key===l&&(e.newValue?j(e.newValue):C(u))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[C]),a.useEffect(()=>{S(null!=e?e:w)},[e,w]);let T=a.useMemo(()=>({theme:w,setTheme:C,forcedTheme:e,resolvedTheme:"system"===w?k:w,themes:r?[...d,"system"]:d,systemTheme:r?k:void 0}),[w,C,e,k,r,d]);return a.createElement(i.Provider,{value:T},a.createElement(f,{forcedTheme:e,storageKey:l,attribute:x,enableSystem:r,enableColorScheme:s,defaultTheme:u,value:g,themes:d,nonce:v,scriptProps:y}),b)},f=a.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:l,value:i,themes:d,nonce:c,scriptProps:u})=>{let f=JSON.stringify([r,t,l,e,d,i,n,o]).slice(1,-1);return a.createElement("script",{...u,suppressHydrationWarning:!0,nonce:"u"<typeof window?c:"",dangerouslySetInnerHTML:{__html:`(${s.toString()})(${f})`}})}),m=(e,t)=>{let r;if(!l){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},h=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},p=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light"),x=e.i(618566),g=e.i(604570),b=(0,a.createContext)({get client(){return t},bootstrap:void 0});function v(e){var r,s,n=e.children,o=e.client,l=e.apiKey,i=e.options,d=(0,a.useRef)(null),c=(0,a.useMemo)(function(){if(o)return l&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),i&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),o;var e=t;return l||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),e},[o,l,JSON.stringify(i)]);return(0,a.useEffect)(function(){if(!o&&l){var e=t,r=d.current;r?(l!==r.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),i&&!function e(t,r,a){if(void 0===a&&(a=new WeakMap),t===r)return!0;
1if("object"!=typeof t||null===t||"object"!=typeof r||null===r)return!1;if(a.has(t)&&a.get(t)===r)return!0;a.set(t,r);var s=Object.keys(t),n=Object.keys(r);if(s.length!==n.length)return!1;for(var o=0;o<s.length;o++){var l=s[o];if(!n.includes(l)||!e(t[l],r[l],a))return!1}return!0}(i,r.options)&&e.set_config(i)):(e.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),e.init(l,i)),d.current={apiKey:l,options:null!=i?i:{}}}},[o,l,JSON.stringify(i)]),a.default.createElement(b.Provider,{value:{client:c,bootstrap:null!=(r=null==i?void 0:i.bootstrap)?r:null==(s=null==o?void 0:o.config)?void 0:s.bootstrap}},n)}var y=function(e){return"function"==typeof e},w=function(e,t){return(w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};"function"==typeof SuppressedError&&SuppressedError;var j={componentStack:null,exceptionEvent:null,error:null};!function(e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}function r(t){var r=e.call(this,t)||this;return r.state=j,r}w(r,e),r.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t),r.prototype.componentDidCatch=function(e,t){var r,a=this.props.additionalProperties;y(a)?r=a(e):"object"==typeof a&&(r=a);var s=this.context.client.captureException(e,r),n=t.componentStack;this.setState({error:e,componentStack:null!=n?n:null,exceptionEvent:s})},r.prototype.render=function(){var e=this.props,t=e.children,r=e.fallback,s=this.state;if(null==s.componentStack)return y(t)?t():t;var n=y(r)?a.default.createElement(r,{error:s.error,componentStack:s.componentStack,exceptionEvent:s.exceptionEvent}):r;return a.default.isValidElement(n)?n:(console.warn("[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."),a.default.createElement(a.default.Fragment,null))},r.contextType=b}(a.default.Component),t=g.default;var k=e.i(174080);let N=Array(12).fill(0),E=({visible:e,className:t})=>a.default.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},a.default.createElement("div",{className:"sonner-spinner"},N.map((e,t)=>a.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${t}`})))),S=a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},a.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),C=a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},a.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),I=a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},a.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),T=a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},a.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),P=a.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},a.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),a.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),B=1,D=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
vendor: 1,075 bytes, line 1
1{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...a}=e,s="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:B++,n=this.toasts.find(e=>e.id===s),o=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),n?this.toasts=this.toasts.map(t=>t.id===s?(this.publish({...t,...e,id:s,title:r}),{...t,...e,id:s,dismissible:o,title:r}):t):this.addToast({title:r,...a,dismissible:o,id:s}),s},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
1this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let r,s;if(!t)return;void 0!==t.loading&&(s=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let n=Promise.resolve(e instanceof Function?e():e),o=void 0!==s,l=n.then(async e=>{if(r=["resolve",e],a.default.isValidElement(e))o=!1,this.create({id:s,type:"default",message:e});else if(R(e)&&!e.ok){o=!1;let r="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,n="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,l="object"!=typeof r||a.default.isValidElement(r)?{message:r}:r;this.create({id:s,type:"error",description:n,...l})}else if(e instanceof Error){o=!1;let r="function"==typeof t.error?await t.error(e):t.error,n="function"==typeof t.description?await t.description(e):t.description,l="object"!=typeof r||a.default.isValidElement(r)?{message:r}:r;this.create({id:s,type:"error",description:n,...l})}else if(void 0!==t.success){o=!1;let r="function"==typeof t.success?await t.success(e):t.success,n="function"==typeof t.description?await t.description(e):t.description,l="object"!=typeof r||a.default.isValidElement(r)?{message:r}:r;this.create({id:s,type:"success",description:n,...l})}}).catch(async e=>{if(r=["reject",e],void 0!==t.error){o=!1;let r="function"==typeof t.error?await t.error(e):t.error,n="function"==typeof t.description?await t.description(e):t.description,l="object"!=typeof r||a.default.isValidElement(r)?{message:r}:r;this.create({id:s,type:"error",description:n,...l})}}).finally(()=>{o&&(this.dismiss(s),s=void 0),null==t.finally||t.finally.call(t)}),i=()=>new Promise((e,t)=>l.then(()=>"reject"===r[0]?t(r[1]):e(r[1])).catch(t));return"string"!=typeof s&&"number"!=typeof s?{unwrap:i}:Object.assign(s,{unwrap:i})},this.custom=(e,t)=>{let r=(null==t?void 0:t.id)||B++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},R=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status;function z(e){return void 0!==e.label}function L(...e){return e.filter(Boolean).join(" ")}Object.assign((e,t)=>{let r=(null==t?void 0:t.id)||B++;return D.addToast({title:e,...t,id:r}),r},{success:D.success,info:D.info,warning:D.warning,error:D.error,custom:D.custom,message:D.message,promise:D.promise,dismiss:D.dismiss,loading:D.loading},{getHistory:()=>D.toasts,getToasts:()=>D.getActiveToasts()}),function(e){if(!e||"u"<typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}
vendor: 14,864 bytes, line 1
1("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
1let A=e=>{var t,r,s,n,o,l,i,d,c,u,f,m,h;let{invert:p,toast:x,unstyled:g,interacting:b,setHeights:v,visibleToasts:y,heights:w,index:j,toasts:k,expanded:N,removeToast:B,defaultRichColors:D,closeButton:R,style:A,cancelButtonStyle:M,actionButtonStyle:$,className:_="",descriptionClassName:O="",duration:U,position:Y,gap:H,expandByDefault:V,classNames:F,icons:K,closeButtonAriaLabel:G="Close toast"}=e,[W,X]=a.default.useState(null),[q,J]=a.default.useState(null),[Z,Q]=a.default.useState(!1),[ee,et]=a.default.useState(!1),[er,ea]=a.default.useState(!1),[es,en]=a.default.useState(!1),[eo,el]=a.default.useState(!1),[ei,ed]=a.default.useState(0),[e
1c,eu]=a.default.useState(0),ef=a.default.useRef(x.duration||U||4e3),em=a.default.useRef(null),eh=a.default.useRef(null),ep=0===j,ex=j+1<=y,eg=x.type,eb=!1!==x.dismissible,ev=x.className||"",ey=x.descriptionClassName||"",ew=a.default.useMemo(()=>w.findIndex(e=>e.toastId===x.id)||0,[w,x.id]),ej=a.default.useMemo(()=>{var e;return null!=(e=x.closeButton)?e:R},[x.closeButton,R]),ek=a.default.useMemo(()=>x.duration||U||4e3,[x.duration,U]),eN=a.default.useRef(0),eE=a.default.useRef(0),eS=a.default.useRef(0),eC=a.default.useRef(null),[eI,eT]=Y.split("-"),eP=a.default.useMemo(()=>w.reduce((e,t,r)=>r>=ew?e:e+t.height,0),[w,ew]),eB=(()=>{let[e,t]=a.default.useState(document.hidden);return a.default.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),eD=x.invert||p,eR="loading"===eg;eE.current=a.default.useMemo(()=>ew*H+eP,[ew,eP]),a.default.useEffect(()=>{ef.current=ek},[ek]),a.default.useEffect(()=>{Q(!0)},[]),a.default.useEffect(()=>{let e=eh.current;if(e){let t=e.getBoundingClientRect().height;return eu(t),v(e=>[{toastId:x.id,height:t,position:x.position},...e]),()=>v(e=>e.filter(e=>e.toastId!==x.id))}},[v,x.id]),a.default.useLayoutEffect(()=>{if(!Z)return;let e=eh.current,t=e.style.height;e.style.height="auto";let r=e.getBoundingClientRect().height;e.style.height=t,eu(r),v(e=>e.find(e=>e.toastId===x.id)?e.map(e=>e.toastId===x.id?{...e,height:r}:e):[{toastId:x.id,height:r,position:x.position},...e])},[Z,x.title,x.description,v,x.id,x.jsx,x.action,x.cancel]);let ez=a.default.useCallback(()=>{et(!0),ed(eE.current),v(e=>e.filter(e=>e.toastId!==x.id)),setTimeout(()=>{B(x)},200)},[x,B,v,eE]);a.default.useEffect(()=>{let e;if((!x.promise||"loading"!==eg)&&x.duration!==1/0&&"loading"!==x.type){if(N||b||eB){if(eS.current<eN.current){let e=new Date().getTime()-eN.current;ef.current=ef.current-e}eS.current=new Date().getTime()}else ef.current!==1/0&&(eN.current=new Date().getTime(),e=setTimeout(()=>{null==x.onAutoClose||x.onAutoClose.call(x,x),ez()},ef.current));return()=>clearTimeout(e)}},[N,b,x,eg,eB,ez]),a.default.useEffect(()=>{x.delete&&(ez(),null==x.onDismiss||x.onDismiss.call(x,x))},[ez,x.delete]);let eL=x.icon||(null==K?void 0:K[eg])||(e=>{switch(e){case"success":return S;case"info":return I;case"warning":return C;case"error":return T;default:return null}})(eg);return a.default.createElement("li",{tabIndex:0,ref:eh,className:L(_,ev,null==F?void 0:F.toast,null==x||null==(t=x.classNames)?void 0:t.toast,null==F?void 0:F.default,null==F?void 0:F[eg],null==x||null==(r=x.classNames)?void 0:r[eg]),"data-sonner-toast":"","data-rich-colors":null!=(u=x.richColors)?u:D,"data-styled":!(x.jsx||x.unstyled||g),"data-mounted":Z,"data-promise":!!x.promise,"data-swiped":eo,"data-removed":ee,"data-visible":ex,"data-y-position":eI,"data-x-position":eT,"data-index":j,"data-front":ep,"data-swiping":er,"data-dismissible":eb,"data-type":eg,"data-invert":eD,"data-swipe-out":es,"data-swipe-direction":q,"data-expanded":!!(N||V&&Z),"data-testid":x.testId,style:{"--index":j,"--toasts-before":j,"--z-index":k.length-j,"--offset":`${ee?ei:eE.current}px`,"--initial-height":V?"auto":`${ec}px`,...A,...x.style},onDragEnd:()=>{ea(!1),X(null),eC.current=null},onPointerDown:e=>{2===e.button||eR||!eb||(em.current=new Date,ed(eE.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(ea(!0),eC.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,r,a,s;if(es||!eb)return;eC.current=null;let n=Number((null==(e=eh.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),o=Number((null==(t=eh.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),l=new Date().getTime()-(null==(r=em.current)?void 0:r.getTime()),i="x"===W?n:o,d=Math.abs(i)/l;if(Math.abs(i)>=45||d>.11){ed(eE.current),null==x.onDismiss||x.onDismiss.call(x,x),"x"===W?J(n>0?"right":"left"):J(o>0?"down":"up"),ez(),en(!0);return}null==(a=eh.current)||a.style.setProperty("--swipe-amount-x","0px"),null==(s=eh.current)||s.style.setProperty("--swipe-amount-y","0px"),el(!1),ea(!1),X(null)},onPointerMove:t=>{var r,a,s,n;if(!eC.current||!eb||(null==(r=window.getSelection())?void 0:r.toString().length)>0)return;let o=t.clientY-eC.current.y,l=t.clientX-eC.current.x,i=null!=(n=e.swipeDirections)?n:function(e){let[t,r]=e.split("-"),a=[];return t&&a.push(t),r&&a.push(r),a}(Y);!W&&(Math.abs(l)>1||Math.abs(o)>1)&&X(Math.abs(l)>
1Math.abs(o)?"x":"y");let d={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if("y"===W){if(i.includes("top")||i.includes("bottom"))if(i.includes("top")&&o<0||i.includes("bottom")&&o>0)d.y=o;else{let e=o*c(o);d.y=Math.abs(e)<Math.abs(o)?e:o}}else if("x"===W&&(i.includes("left")||i.includes("right")))if(i.includes("left")&&l<0||i.includes("right")&&l>0)d.x=l;else{let e=l*c(l);d.x=Math.abs(e)<Math.abs(l)?e:l}(Math.abs(d.x)>0||Math.abs(d.y)>0)&&el(!0),null==(a=eh.current)||a.style.setProperty("--swipe-amount-x",`${d.x}px`),null==(s=eh.current)||s.style.setProperty("--swipe-amount-y",`${d.y}px`)}},ej&&!x.jsx&&"loading"!==eg?a.default.createElement("button",{"aria-label":G,"data-disabled":eR,"data-close-button":!0,onClick:eR||!eb?()=>{}:()=>{ez(),null==x.onDismiss||x.onDismiss.call(x,x)},className:L(null==F?void 0:F.closeButton,null==x||null==(s=x.classNames)?void 0:s.closeButton)},null!=(f=null==K?void 0:K.close)?f:P):null,(eg||x.icon||x.promise)&&null!==x.icon&&((null==K?void 0:K[eg])!==null||x.icon)?a.default.createElement("div",{"data-icon":"",className:L(null==F?void 0:F.icon,null==x||null==(n=x.classNames)?void 0:n.icon)},x.promise||"loading"===x.type&&!x.icon?x.icon||((null==K?void 0:K.loading)?a.default.createElement("div",{className:L(null==F?void 0:F.loader,null==x||null==(h=x.classNames)?void 0:h.loader,"sonner-loader"),"data-visible":"loading"===eg},K.loading):a.default.createElement(E,{className:L(null==F?void 0:F.loader,null==x||null==(m=x.classNames)?void 0:m.loader),visible:"loading"===eg})):null,"loading"!==x.type?eL:null):null,a.default.createElement("div",{"data-content":"",className:L(null==F?void 0:F.content,null==x||null==(o=x.classNames)?void 0:o.content)},a.default.createElement("div",{"data-title":"",className:L(null==F?void 0:F.title,null==x||null==(l=x.classNames)?void 0:l.title)},x.jsx?x.jsx:"function"==typeof x.title?x.title():x.title),x.description?a.default.createElement("div",{"data-description":"",className:L(O,ey,null==F?void 0:F.description,null==x||null==(i=x.classNames)?void 0:i.description)},"function"==typeof x.description?x.description():x.description):null),a.default.isValidElement(x.cancel)?x.cancel:x.cancel&&z(x.cancel)?a.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:x.cancelButtonStyle||M,onClick:e=>{!z(x.cancel)||eb&&(null==x.cancel.onClick||x.cancel.onClick.call(x.cancel,e),ez())},className:L(null==F?void 0:F.cancelButton,null==x||null==(d=x.classNames)?void 0:d.cancelButton)},x.cancel.label):null,a.default.isValidElement(x.action)?x.action:x.action&&z(x.action)?a.default.createElement("button",{"data-button":!0,"data-action":!0,style:x.actionButtonStyle||$,onClick:e=>{!z(x.action)||(null==x.action.onClick||x.action.onClick.call(x.action,e),e.defaultPrevented||ez())},className:L(null==F?void 0:F.actionButton,null==x||null==(c=x.classNames)?void 0:c.actionButton)},x.action.label):null)};function M(){if("u"<typeof window||"u"<typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}let $=a.default.forwardRef(function(e,t){let{id:r,invert:s,position:n="bottom-right",hotkey:o=["altKey","KeyT"],expand:l,closeButton:i,className:d,offset:c,mobileOffset:u,theme:f="light",richColors:m,duration:h,style:p,visibleToasts:x=3,toastOptions:g,dir:b=M(),gap:v=14,icons:y,containerAriaLabel:w="Notifications"}=e,[j,N]=a.default.useState([]),E=a.default.useMemo(()=>r?j.filter(e=>e.toasterId===r):j.filter(e=>!e.toasterId),[j,r]),S=a.default.useMemo(()=>Array.from(new Set([n].concat(E.filter(e=>e.position).map(e=>e.position)))),[E,n]),[C,I]=a.default.useState([]),[T,P]=a.default.useState(!1),[B,R]=a.default.useState(!1),[z,L]=a.default.useState("system"!==f?f:"u">typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),$=a.default.useRef(null),_=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=a.default.useRef(null),U=a.default.useRef(!1),Y=a.default.useCallback(e=>{N(t=>{var r;return(null==(r=t.find(t=>t.id===e.id))?void 0:r.delete)||D.dismiss(e.id),t.filter(({id:t})=>t!==e.id)})},[]);return a.default.useEffect(()=>D.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{N(t=>t.map(t=>
1t.id===e.id?{...t,delete:!0}:t))}):setTimeout(()=>{k.default.flushSync(()=>{N(t=>{let r=t.findIndex(t=>t.id===e.id);return -1!==r?[...t.slice(0,r),{...t[r],...e},...t.slice(r+1)]:[e,...t]})})})}),[j]),a.default.useEffect(()=>{if("system"!==f)return void L(f);if("system"===f&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),"u"<typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",({matches:e})=>{e?L("dark"):L("light")})}catch(t){e.addListener(({matches:e})=>{try{e?L("dark"):L("light")}catch(e){console.error(e)}})}},[f]),a.default.useEffect(()=>{j.length<=1&&P(!1)},[j]),a.default.useEffect(()=>{let e=e=>{var t,r;o.every(t=>e[t]||e.code===t)&&(P(!0),null==(r=$.current)||r.focus()),"Escape"===e.code&&(document.activeElement===$.current||(null==(t=$.current)?void 0:t.contains(document.activeElement)))&&P(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),a.default.useEffect(()=>{if($.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,U.current=!1)}},[$.current]),a.default.createElement("section",{ref:t,"aria-label":`${w} ${_}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},S.map((t,r)=>{var n;let o,[f,w]=t.split("-");return E.length?a.default.createElement("ol",{key:t,dir:"auto"===b?M():b,tabIndex:-1,ref:$,className:d,"data-sonner-toaster":!0,"data-sonner-theme":z,"data-y-position":f,"data-x-position":w,style:{"--front-toast-height":`${(null==(n=C[0])?void 0:n.height)||0}px`,"--width":"356px","--gap":`${v}px`,...p,...(o={},[c,u].forEach((e,t)=>{let r=1===t,a=r?"--mobile-offset":"--offset",s=r?"16px":"24px";function n(e){["top","right","bottom","left"].forEach(t=>{o[`${a}-${t}`]="number"==typeof e?`${e}px`:e})}"number"==typeof e||"string"==typeof e?n(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?o[`${a}-${t}`]=s:o[`${a}-${t}`]="number"==typeof e[t]?`${e[t]}px`:e[t]}):n(s)}),o)},onBlur:e=>{U.current&&!e.currentTarget.contains(e.relatedTarget)&&(U.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:e=>{!(e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible)&&(U.current||(U.current=!0,O.current=e.relatedTarget))},onMouseEnter:()=>P(!0),onMouseMove:()=>P(!0),onMouseLeave:()=>{B||P(!1)},onDragEnd:()=>P(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||R(!0)},onPointerUp:()=>R(!1)},E.filter(e=>!e.position&&0===r||e.position===t).map((r,n)=>{var o,d;return a.default.createElement(A,{key:r.id,icons:y,index:n,toast:r,defaultRichColors:m,duration:null!=(o=null==g?void 0:g.duration)?o:h,className:null==g?void 0:g.className,descriptionClassName:null==g?void 0:g.descriptionClassName,invert:s,visibleToasts:x,closeButton:null!=(d=null==g?void 0:g.closeButton)?d:i,interacting:B,position:t,style:null==g?void 0:g.style,unstyled:null==g?void 0:g.unstyled,classNames:null==g?void 0:g.classNames,cancelButtonStyle:null==g?void 0:g.cancelButtonStyle,actionButtonStyle:null==g?void 0:g.actionButtonStyle,closeButtonAriaLabel:null==g?void 0:g.closeButtonAriaLabel,removeToast:Y,toasts:E.filter(e=>e.position==r.position),heights:C.filter(e=>e.position==r.position),setHeights:I,expandByDefault:l,gap:v,expanded:T,swipeDirections:e.swipeDirections})})):null}))});var _=e.i(235924);function O({children:e}){let t=(0,x.usePathname)();return(0,r.jsxs)(d,{attribute:"class",forcedTheme:"/contact"===t?"light":void 0,children:[(0,r.jsx)($,{position:"bottom-right"}),e]})}function U({children:e}){return a.default.useEffect(()=>{(0,_.initPosthogClient)("phc_qh8L3NKZ4JP6pOLRnuF3UkkUVjmktWW1mR8WfiIvWyi")},[]),(0,r.jsx)(v,{client:g.default,children:e})}e.s(["PHProvider",()=>U,"default",()=>O],544636)},206581,e=>{"use strict";var t=e.i(843476),r=e.i(271645);let a=(0,e.i(770703).default)(()=>e.A(699881),{loadableGenerated:{modules:[164058]},ssr:!1});function s(){return(0,t.jsx)(r.Suspense,{fallback:null,children:(0,t.jsx)(a,{})})}e.s(["default",()=>s])},717639,e=>{"use strict";var t=e.i(843476),r=e.i(657688),a=e.i(271645),s=e.i(618566),n=e.i(427234),o=e.i(425246),l=e.i(494881);function i(e){let t=1e4*Math.sin(e);return Math.round((t-Math.floor(t))*1e6)/1e6}let d="M240.269 49.8154L166.804 115.963L115.966 159.44L181.335 220.585L249.784 162.048L196.78 112.47L253.068 61.7881L362.605 164.246L178.739 321.489L3.14502 157.242L187.011 0L240.269 49.8154Z",c="matrix(0.75471 -0.656059 0 1 188.017 336.544)",u="matrix(0.731354 0.681998 0 1 0 174.962)",f=[{x:0,y:-160},{x:183,y:-50},{x:183,y:162},{x:0,y:262},{x:-183,y:162},{x:-183,y:-50}];function m(){let[r,s]=(0,a.useState)(new Set),[n,o]=(0,a.useState)(!1),[l,m]=(0,a.useState)(new Map),[h,p]=(0,a.useState)(new Set),x=(0,a.useRef)(null),g=(0,a.useRef)(null),b=(0,a.useRef)(null),v=(0,a.useRef)(null),y=(0,a.useRef)(0),w=(0,a.useRef)(new Map),j=(0,a.useRef)(new Map),k=(0,a.useRef)(null),N=(0,a.useRef)(null),E=(0,a.useRef)(null),S=(0,a.useRef)(null),C=(0,a.useRef)(null),I=(0,a.useRef)(null),T=(0,a.useCallback)(e=>{p(t=>{let r=new Set(t);return r.add(e),r});let t=w.current.get(e);t&&clearTimeout(t);let r=setTimeout(()=>{p(t=>{let r=new Set(t);return r.delete(e),r}),w.current.delete(e)},2e3);w.current.set(e,r)},[]),P=(0,a.useCallback)(e=>{if(n)return;s(t=>{let r=new Set(t);return r.add(e),r});let t=j.current.get(e);t&&clearTimeout(t);let r=setTimeout(()=>{s(t=>{let r=new Set(t);return r.delete(e),r}),j.current.delete(e)},2e3);j.current.set(e,r)},[n]),{allDiamonds:B,svgHeight:D,scale:R}=(0,a.useMemo)(()=>(function(e){let t=420/367*180,r=420/367*122.4,a=420/367*180*4,s=[];for(let e=1;e<3;e++)for(let t=0;t<18;t++)s.push({x:180*t+(e%2?90:0),y:a+e*r,rotation:0,key:`g-${e}-${t}`});for(let e=0;e<18;e++){let r=e+200;if(i(31*r+9)>.65)continue;let n=(i(11*r+1)-.5)*27,o=(i(17*r+2)-.5)*t*.1,l=(i(23*r+3)-.5)*10;s.push({x:180*e+n,y:a+o,rotation:l,key:`g-0-${e}`})}let n=[{xPct:.05,yUp:1.1,rot:-8},{xPct:.18,yUp:1.3,rot:12},{xPct:.32,yUp:1,rot:-5},{xPct:.45,yUp:1.5,rot:15},{xPct:.58,yUp:1.2,rot:-10},{xPct:.72,yUp:1.4,rot:7},{xPct:.88,yUp:1.1,rot:-12},{xPct:.12,yUp:2.2,rot:18},{xPct:.38,yUp:2.5,rot:-20},{xPct:.62,yUp:2,rot:14}
1,{xPct:.82,yUp:2.4,rot:-16},{xPct:.25,yUp:3.2,rot:25},{xPct:.55,yUp:3.5,rot:-22},{xPct:.78,yUp:3,rot:30}];for(let e=0;e<n.length;e++){let t=n[e];s.push({x:3330*t.xPct,y:a-t.yUp*r,rotation:t.rot,key:`b-${e}`,animate:t.yUp>1.8})}return{allDiamonds:s,svgWidth:3330,svgHeight:a+(2*r+t),scale:180/367,gridOffsetY:a}})(3330),[3330]),z=(0,a.useCallback)(async(t,r,a)=>{if(n||!x.current)return;o(!0),g.current||(g.current=(await e.A(378797)).default);let s=g.current,l=x.current,i=l.getBoundingClientRect(),d=i.width/3330,{Engine:c,Runner:u,Bodies:h,Composite:p,Mouse:w,MouseConstraint:j,Events:I}=s,P=c.create({gravity:{x:0,y:1.5}});b.current=P;let z=R*d,L=new Map,A=new Map;for(let e of B){let t=e.x*d+183*R*d,r=e.y*d+160*R*d,a=f.map(e=>({x:e.x*z,y:e.y*z})),s=h.fromVertices(t,r,[a],{restitution:.3,friction:.4,frictionAir:.01,angle:e.rotation*Math.PI/180});L.set(e.key,s),A.set(s.id,e.key),p.add(P.world,s)}let M=i.width,$=D*d,_=h.rectangle(M/2,$+50,2*M,100,{isStatic:!0}),O=l.parentElement?.previousElementSibling,U=(O?O.getBoundingClientRect().bottom:i.top)-i.top,Y=h.rectangle(M/2,U-50,2*M,100,{isStatic:!0}),H=h.rectangle(-50,$/2,100,3*$,{isStatic:!0}),V=h.rectangle(M+50,$/2,100,3*$,{isStatic:!0});p.add(P.world,[_,Y,H,V]);let F=w.create(l);S.current=F,F.element.removeEventListener("mousewheel",F.mousewheel),F.element.removeEventListener("DOMMouseScroll",F.mousewheel);let K=j.create(P,{mouse:F,constraint:{stiffness:.2,render:{visible:!1}}});p.add(P.world,K);let G=e=>{k.current=e.body,N.current=e.body.angle,E.current=e.body.inertia,s.Body.setAngularVelocity(e.body,0),s.Body.setInertia(e.body,1/0),l.style.cursor="grabbing";let t=A.get(e.body.id);t&&T(t)},W=()=>{k.current&&null!=E.current&&s.Body.setInertia(k.current,E.current),N.current=null,E.current=null,k.current=null,l.style.cursor="grab"},X=e=>{let t=k.current;if(t)for(let r of e.pairs){let e=null;if(r.bodyA===t?e=r.bodyB:r.bodyB===t&&(e=r.bodyA),e){let t=A.get(e.id);t&&T(t)}}},q=()=>{let e=k.current;if(!e||K.body!==e)return;null!=N.current&&(s.Body.setAngle(e,N.current),s.Body.setAngularVelocity(e,0));let t=U+16,r=t+(e.position.y-e.bounds.min.y);if(K.constraint.pointA.y<r&&(K.constraint.pointA.y=r),K.mouse.position.y<r&&(K.mouse.position.y=r,K.mouse.absolute.y=r+i.top),e.bounds.min.y<t){let r=t-e.bounds.min.y;s.Body.setPosition(e,{x:e.position.x,y:e.position.y+r}),s.Body.setVelocity(e,{x:e.velocity.x,y:Math.max(0,e.velocity.y)})}};I.on(K,"startdrag",G),I.on(K,"enddrag",W),I.on(P,"collisionStart",X),I.on(P,"beforeUpdate",q),C.current=()=>{I.off(K,"startdrag",G),I.off(K,"enddrag",W),I.off(P,"collisionStart",X),I.off(P,"beforeUpdate",q)};let J=u.create();u.run(J,P),v.current=J,T(t),requestAnimationFrame(()=>{l.dispatchEvent(new MouseEvent("mousedown",{clientX:r,clientY:a,bubbles:!0}))});let Z=()=>{if(!y.current)return;let e=new Map;L.forEach((t,r)=>{e.set(r,{x:t.position.x/d-183*R,y:t.position.y/d-160*R,angle:t.angle})}),m(e),y.current=requestAnimationFrame(Z)};y.current=requestAnimationFrame(Z)},[n,B,R,3330,D,T]),L=(0,a.useCallback)(()=>{y.current&&cancelAnimationFrame(y.current),C.current&&C.current();let e=g.current;e&&S.current&&(e.Mouse.clearSourceEvents(S.current),S.current=null),e&&b.current&&e.Engine.clear(b.current),e&&v.current&&e.Runner.stop(v.current),y.current=0,C.current=null,b.current=null,v.current=null,I.current=null,o(!1),m(new Map),p(new Set)},[]);return(0,a.useEffect)(()=>{if(!n||!x.current)return;let e=new ResizeObserver(e=>{let t=e[0];if(!t)return;let r={width:t.contentRect.width,height:t.contentRect.height},a=I.current;if(!a){I.current=r;return}(a.width!==r.width||a.height!==r.height)&&L()});return e.observe(x.current),()=>e.disconnect()},[n,L]),(0,a.useEffect)(()=>{let e=w.current,t=j.current;return()=>{L(),e.forEach(e=>clearTimeout(e)),t.forEach(e=>clearTimeout(e))}},[L]),(0,t.jsx)("div",{ref:x,className:"w-full overflow-hidden leading-[0]",style:{touchAction:n?"none":void 0},children:(0,t.jsxs)("svg",{viewBox:`0 0 3330 ${D}`,className:"w-full block",xmlns:"http://www.w3.org/2000/svg",style:{pointerEvents:n?"none":void 0},children:[(0,t.jsx)("style",{children:` 2 .gr-diamond { fill: #d1d1d1; transition: fill 0.3s ease, opacity 0.3s ease; cursor: pointer; } 3 .gr-diamond:hover { fill: #28E99F !important; opacity: 1 !important; } 4 .gr-visited { fill: #28E99F !important; } 5 .gr-physics { fill: #d1d1d1; cursor: grab; transition: fill 0.4s ease; } 6 .gr-physics-active { fill: #28E99F !important; } 7 `}),B.map(e=>{let a=r.has(e.key),s=l.get(e.key),o=h.has(e.key);if(n&&s){let r=183*R,a=160*R;return(0,t.jsxs)("g",{transform:`translate(${s.x}, ${s.y}) rotate(${180*s.angle/Math.PI}, ${r}, ${a}) scale(${R})`,className:`gr-physics${o?" gr-physics-active":""}`,children:[(0,t.jsx)("path",{d:d}),(0,t.jsx)("rect",{width:236.453,height:83.4566,transform:c}),(0,t.jsx)("rect",{width:236.453,height:83.4566,transform:u})]},e.key)}return(0,t.jsxs)("g",{transform:`translate(${e.x}, ${e.y}) rotate(${e.rotation}, ${183*R}, ${210*R}) scale(${R})`,className:`gr-diamond${a?" gr-visited":""}`,onMouseEnter:()=>P(e.key),onMouseDown:t=>{n||z(e.key,t.clientX,t.clientY)},children:[(0,t.jsx)("rect",{width:367,height:420,fill:"transparent",pointerEvents:"all"}),(0,t.jsx)("path",{d:d}),(0,t.jsx)("rect",{width:236.453,height:83.4566,transform:c}),(0,t.jsx)("rect",{width:236.453,height:83.4566,transform:u})]},e.key)})]})})}function h(){return(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-[10px] 2xl:text-xs 3xl:text-sm font-mono font-bold uppercase tracking-[0.15em] text-onyx",children:"Status"}),(0,t.jsxs)(o.default,{href:l.SITE.status,className:"flex items-center gap-2 no-underline hover:opacity-70 transition-opacity",children:[(0,t.jsx)("svg",{viewBox:"0 0 11.547 13.333",className:"w-2.5 h-2.5 2xl:w-3 2xl:h-3 3xl:w-3.5 3xl:h-3.5 text-greptile-green fill-current shrink-0",children:(0,t.jsx)("polygon",{points:"5.774,0 11.547,3.333 11.547,10 5.774,13.333 0,10 0,3.333"})}),(0,t.jsx)("span",{className:"text-[11px] 2xl:text-xs 3xl:text-sm font-mono uppercase tracking-wide text-onyx underline",children:"View status"})]})]})}let p={tagline:"Change the way code is shipped.",sections:[{title:"Product",links:[{label:"Enterprise",href:l.SITE.enterprise},{label:"Pricing",href:l.SITE.pricing},{label:"Docs",href:l.SITE.docs},{label:"Zapier",href:"https://zapier.com/apps/greptile/integrations"}]},{title:"Company",links:[{label:"Examples",href:l.SITE.examples},{label:"Careers",href:l.SITE.careers},{label:"Blog",href:l.SITE.blog},{label:"Changelog",href:l.SITE.changelog},{label:"Case Studies",href:l.SITE.customers},{label:"Podcast",href:l.SITE.podcast},{label:"Brand",href:l.SITE.brand}]},{title:"Resources",links:[{label:"Grepository",href:"/grepository"},{label:"Content Library",href:"/content-library"},{label:"What is AI code review?",href:"/what-is-ai-code-review"},{label:"Code review checklist",href:"/content-library/code-review-checklist"},{label:"Benchmarks",href:l.SITE.benchmarks},{label:"Paste a PR",href:"/review"},{label:"Greptile vs Coderabbit",href:l.SITE.greptileVsCoderabbit},{label:"Greptile vs Bugbot",href:"/greptile-vs-bugbot"},{label:"State of AI Coding 2026",href:l.SITE.stateOfAiCoding},{label:"For YC Companies",href:l.SITE.yc}]}],supportLinks:[{label:"Contact us",href:"/contact"},{label:"Security",href:l.SITE.security},{label:"Privacy Policy",href:l.SITE.privacy},{label:"Terms of Service",href:l.SITE.termsOfService},{label:"Report Bugs",href:"https://forms.gle/2BHYzC23TwjnQz3r7"}],socials:[{label:"GitHub",icon:"GithubLogo",href:"https://github.com/greptileai"},{label:"X",icon:"XLogo",href:"https://twitter.com/greptile"},{label:"LinkedIn",icon:"LinkedinLogo",href:"https://www.linkedin.com/company/greptile/"},{label:"Discord",icon:"DiscordLogo",href:"https://discord.gg/dWaGnuFyJA"}],copyright:"Tabnam, Inc."};function x(){let e=(0,s.usePathname)();return(0,l.isBareRoute)(e)?null:(0,t.jsxs)("footer",{className:"w-full bg-fog bg-paper-dot pb-0",children:[(0,t.jsx)("div",{className:"divider-double-dashed text-border"}),(0,t.jsxs)("div",{className:"content-shell hidden lg:flex text-border",children:[(0,t.jsx)("div",{className:"divider-double-solid-vertical shrink-0 self-stretch"}),(0,t.jsx)("div",{className:"w-1/5 shrink-0 flex items-center justify-center overflow-hidden",children:(0,t.jsx)(r.default,{src:"/greptile-logo-wireframe.svg",alt:"Greptile",width:367,height:420,className:"w-full object-contain select-none",draggable:!1})}),(0,t.jsx)("div",{className:"divider-double-solid-vertical shrink-0 self-stretch"}),[...p.sections,{title:"Support",links:p.supportLinks}].map((e,r)=>(0,t.jsxs)(a.Fragment,{children:[r>0&&(0,t.jsx)("div",{className:"divider-double-solid-vertical shrink-0 self-stretch"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col gap-3 2xl:gap-4 py-8 2xl:py-10 3xl:py-12 px-6 xl:px-8 3xl:px-10",children:[(0,t.jsx)("span",{className:"text-[10px] 2xl:text-xs 3xl:text-sm font-mono font-bold uppercase tracking-[0.15em] text-onyx mb-1",children:e.title}),e.links.map(e=>(0,t.jsx)(o.default,{href:e.href,className:"text-[11px] 2xl:text-xs 3xl:text-sm font-mono uppercase tracking-wide text-onyx hover:bg-greptile-green hover:text-black px-1 -mx-1 w-fit",children:e.label},e.label)),"Product"===e.title&&(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(h,{})}
7),"Support"===e.title&&(0,t.jsxs)("div",{className:"flex flex-col gap-3 mt-4",children:[(0,t.jsx)("span",{className:"text-[10px] 2xl:text-xs 3xl:text-sm font-mono font-bold uppercase tracking-[0.15em] text-onyx",children:"Socials"}),(0,t.jsx)("div",{className:"flex items-center gap-3",children:p.socials.map(e=>(0,t.jsx)(o.default,{href:e.href,target:"_blank","aria-label":e.label,children:(0,t.jsx)(n.Icon,{name:e.icon,className:"h-3.5 w-3.5 2xl:h-4 2xl:w-4 3xl:h-5 3xl:w-5 text-slate hover:text-onyx transition-colors"})},e.label))})]})]})]},e.title)),(0,t.jsx)("div",{className:"divider-double-solid-vertical shrink-0 self-stretch"})]}),(0,t.jsxs)("div",{className:"lg:hidden text-border",children:[(0,t.jsxs)("div",{className:"relative flex items-center justify-center py-6 px-8 overflow-hidden",children:[(0,t.jsx)(r.default,{src:"/scales-footer.png",alt:"",fill:!0,className:"object-cover opacity-50",draggable:!1}),(0,t.jsx)(r.default,{src:"/wordmark-logo.svg",alt:"Greptile",width:1447,height:348,className:"relative h-6 sm:h-8 w-auto select-none",draggable:!1})]}),(0,t.jsx)("div",{className:"divider-double-dashed"}),(0,t.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-4",children:[...p.sections,{title:"Support",links:p.supportLinks}].map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-3 py-6 px-4 sm:px-6",children:[(0,t.jsx)("span",{className:"text-[10px] font-mono font-bold uppercase tracking-[0.15em] text-onyx mb-1",children:e.title}),e.links.map(e=>(0,t.jsx)(o.default,{href:e.href,className:"text-[11px] font-mono uppercase tracking-wide text-onyx hover:bg-greptile-green hover:text-black px-1 -mx-1 w-fit",children:e.label},e.label)),"Product"===e.title&&(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(h,{})}),"Support"===e.title&&(0,t.jsxs)("div",{className:"flex flex-col gap-3 mt-4",children:[(0,t.jsx)("span",{className:"text-[10px] font-mono font-bold uppercase tracking-[0.15em] text-onyx",children:"Socials"}),(0,t.jsx)("div",{className:"flex items-center gap-3",children:p.socials.map(e=>(0,t.jsx)(o.default,{href:e.href,target:"_blank","aria-label":e.label,children:(0,t.jsx)(n.Icon,{name:e.icon,className:"h-3.5 w-3.5 text-slate hover:text-onyx transition-colors"})},e.label))})]})]},e.title))})]}),(0,t.jsx)("div",{className:"divider-double-dashed text-border"}),(0,t.jsx)("div",{className:"-mt-20 lg:-mt-44 overflow-hidden pb-0 mb-0",children:(0,t.jsx)(m,{})}),(0,t.jsx)("div",{className:"content-shell flex justify-end px-4 md:px-8 lg:px-10 py-3",children:(0,t.jsxs)("span",{className:"text-[10px] 2xl:text-xs 3xl:text-sm font-mono text-onyx/30",children:["© ",new Date().getFullYear()," ",p.copyright]})})]})}e.s(["default",()=>x])},272204,e=>{"use strict";var t=e.i(843476),r=e.i(618566),a=e.i(271645),s=e.i(427234),n=e.i(425246),o=e.i(494881),l=e.i(975157);function i({className:e}){let r=(0,a.useRef)(null);(0,a.useLayoutEffect)(()=>{let e=r.current,t=e?.parentElement;if(!e||!t)return;let a=()=>t.style.setProperty("--announcement-height",`${e.offsetHeight}px`);a();let s=new ResizeObserver(a);return s.observe(e),()=>{s.disconnect(),t.style.removeProperty("--announcement-height")}},[]);let[i,d]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=window.setTimeout(()=>d(!0),50);return()=>window.clearTimeout(e)},[]),(0,t.jsx)("div",{ref:r,role:"region","aria-label":"Announcement",className:(0,l.cn)("fixed left-0 right-0 top-0 z-[60] min-h-10 border-b border-slate/20 bg-greptile-green transition-all duration-700 ease-out sm:min-h-11",i?"translate-y-0 opacity-100":"-translate-y-full opacity-0",e),children:(0,t.jsx)("div",{className:"relative z-10 flex min-h-10 items-center px-3 py-2 sm:min-h-11 sm:px-4",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-7xl flex-wrap items-center justify-center gap-2 text-center",children:[(0,t.jsx)("p",{className:"p-sm font-semibold text-slate",children:"Introducing Plus and Apex, for more powerful reviews."}),(0,t.jsxs)(n.default,{href:o.SITE.plusAndApex,className:"group inline-flex shrink-0 items-center gap-1 label-xs font-semibold text-slate transition-colors hover:text-black",children:[(0,t.jsx)("span",{className:"underline underline-offset-2",children:"Learn more"}),(0,t.jsx)(s.Icon,{name:"ArrowRight",size:"xs",className:"h-3 w-3 transition-transform group-hover:translate-x-0.5"})]})]})})})}var d=e.i(657688),c=e.i(456945);let u=[{label:"Logo Icon",file:"/logo.svg",width:367,height:420},{label:"Wordmark",file:"/wordmark-logo-green.svg",width:1447,height:348}];function f(e,t){return e.replace(/^\//,"").replace(/\.svg$/,`.${t}`)}function m({children:e}){let[r,o]=(0,a.useState)(!1),[l,i]=(0,a.useState)({x:0,y:0}),d=(0,a.useRef)(null),c=(0,a.useCallback)(()=>o(!1),[]);return(0,a.useEffect)(()=>
7{if(!r)return;let e=e=>{d.current&&!d.current.contains(e.target)&&c()},t=e=>{"Escape"===e.key&&c()};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),window.addEventListener("scroll",c,!0),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t),window.removeEventListener("scroll",c,!0)}},[r,c]),(0,t.jsxs)("div",{onContextMenu:e=>{e.preventDefault(),i({x:e.clientX,y:e.clientY}),o(!0)},className:"contents",children:[e,r&&(0,t.jsxs)("div",{ref:d,className:"fixed z-[100] bg-fog border border-dashed border-slate/20 shadow-sm py-1.5 px-1.5 min-w-[200px]",style:{top:l.y,left:l.x},children:[(0,t.jsx)("div",{className:"px-2 py-1.5 font-space-mono text-[10px] uppercase tracking-wider text-slate/70 select-none",children:"Download Brand Assets"}),(0,t.jsx)("div",{className:"h-px bg-slate/10 my-1"}),u.map(e=>(0,t.jsxs)("div",{className:"flex items-center justify-between px-2 py-1.5 gap-4",children:[(0,t.jsx)("span",{className:"font-space-mono text-xs text-slate select-none",children:e.label}),(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("button",{onClick:t=>{var r;let a;t.stopPropagation(),r=e.file,(a=document.createElement("a")).href=r,a.download=f(r,"svg"),document.body.appendChild(a),a.click(),document.body.removeChild(a),c()},className:"font-space-mono text-[10px] uppercase tracking-wider text-slate/60 hover:text-slate hover:bg-slate/5 px-1.5 py-0.5 transition-colors cursor-pointer",children:"SVG"}),(0,t.jsx)("button",{onClick:t=>{var r,a,s;let n;t.stopPropagation(),r=e.file,a=e.width,s=e.height,(n=new Image).crossOrigin="anonymous",n.onload=()=>{let e=document.createElement("canvas");e.width=a,e.height=s;let t=e.getContext("2d");t&&(t.drawImage(n,0,0,a,s),e.toBlob(e=>{if(!e)return;let t=URL.createObjectURL(e),a=document.createElement("a");a.href=t,a.download=f(r,"png"),document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(t)},"image/png"))},n.src=r,c()},className:"font-space-mono text-[10px] uppercase tracking-wider text-slate/60 hover:text-slate hover:bg-slate/5 px-1.5 py-0.5 transition-colors cursor-pointer",children:"PNG"})]})]},e.label)),(0,t.jsx)("div",{className:"h-px bg-slate/10 my-1"}),(0,t.jsxs)(n.default,{href:"/design",onClick:c,className:"flex items-center justify-between gap-4 px-2 py-1.5 font-space-mono text-xs text-slate/70 hover:text-slate hover:bg-slate/5 transition-colors",children:[(0,t.jsx)("span",{children:"Brand guidelines"}),(0,t.jsx)(s.Icon,{name:"ArrowRight",size:"xs"})]})]})]})}var h=e.i(519455);let p="font-space-mono text-xs 2xl:text-sm 3xl:text-base uppercase tracking-wider text-slate hover:bg-greptile-green hover:text-black transition-colors flex items-center gap-1.5 3xl:gap-2 px-2 -mx-2 py-1",x=()=>{let[e,i]=(0,a.useState)(!1),[u,f]=(0,a.useState)(!1),[x,g]=(0,a.useState)(!1),[b,v]=(0,a.useState)(!1),[y,w]=(0,a.useState)(!1),[j,k]=(0,a.useState)(!1),[N]=(0,a.useState)(()=>"u">typeof document&&document.cookie.split("; ").some(e=>"greptile_logged_in=1"===e)),E=(0,a.useRef)(null),S=(0,r.usePathname)();(0,a.useEffect)(()=>{let e=()=>k(window.scrollY>20);return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,a.useEffect)(()=>{let e=e=>{E.current&&!E.current.contains(e.target)&&(f(!1),g(!1),i(!1))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,a.useEffect)(()=>{i(!1),f(!1),g(!1),v(!1),w(!1),k(window.scrollY>20)},[S]);let C=(e,t)=>{},I=()=>{i(!1),f(!1),g(!1)};return(0,t.jsx)("div",{className:(0,l.cn)("fixed z-50 transition-all duration-300",j?"site-nav-scrolled left-4 right-4 md:left-8 md:right-8":"site-nav left-0 right-0"),style:{overflow:"visible"},children:(0,t.jsxs)("nav",{ref:E,className:"w-full relative",style:{overflow:"visible"},children:[(0,t.jsxs)("div",{className:(0,l.cn)("relative z-10 transition-all duration-300 border-dashed border-slate/20",j?"border":"border-b"),style:{backgroundColor:"#EEEEEE"},children:[j&&["top-0 left-0 -translate-x-1/2 -translate-y-1/2","top-0 right-0 translate-x-1/2 -translate-y-1/2","bottom-0 left-0 -translate-x-1/2 translate-y-1/2","bottom-0 right-0 translate-x-1/2 translate-y-1/2"].map(e=>(0,t.jsxs)("div",{className:`absolute ${e} w-[13px] h-[13px] pointer-events-none z-20`,children:[(0,t.jsx)("div",{className:"absolute top-1/2 left-0 w-full h-px bg-greptile-green"}),(0,t.jsx)("div",{className:"absolute left-1/2 top-0 h-full w-px bg-greptile-green"})]},e)),(0,t.jsxs)("div",{className:"content-shell hidden lg:flex items-center h-16 3xl:h-20 px-4 xl:px-8 3xl:px-12",children:[(0,t.jsx)(m,{children:(0,t.jsx)(n.default,{href:"/",scroll:!0,
7className:"flex items-center",onClick:I,children:(0,t.jsx)(c.Logo,{className:"h-9 w-auto 2xl:h-11 3xl:h-14"})})}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsxs)("div",{className:"flex items-center gap-8 xl:gap-10 2xl:gap-14 3xl:gap-20",children:[(0,t.jsx)(n.default,{href:o.SITE.examples,scroll:!0,className:p,onClick:()=>{C("examples"),I()},children:"Examples"}),(0,t.jsx)(n.default,{href:o.SITE.pricing,scroll:!0,className:p,onClick:()=>{C("pricing"),I()},children:"Pricing"}),(0,t.jsxs)("button",{className:p,onClick:()=>{g(!x),f(!1)},children:["Features",(0,t.jsx)(s.Icon,{name:"CaretDown",size:"xs",className:(0,l.cn)("h-3 w-3 2xl:h-3.5 2xl:w-3.5 3xl:h-4 3xl:w-4 transition-transform",x&&"rotate-180")})]}),(0,t.jsx)(n.default,{href:o.SITE.enterprise,scroll:!0,className:p,onClick:()=>{C("enterprise"),I()},children:"Enterprise"}),(0,t.jsx)(n.default,{href:o.SITE.blog,scroll:!0,className:p,onClick:()=>{C("blog"),I()},children:"Blog"}),(0,t.jsxs)("button",{className:p,onClick:()=>{f(!u),g(!1)},children:["Resources",(0,t.jsx)(s.Icon,{name:"CaretDown",size:"xs",className:(0,l.cn)("h-3 w-3 2xl:h-3.5 2xl:w-3.5 3xl:h-4 3xl:w-4 transition-transform",u&&"rotate-180")})]})]}),(0,t.jsx)("div",{className:"flex-1 flex justify-end pl-6",children:N?(0,t.jsx)(h.Button,{variant:"outline",size:"sm",className:"btn-hex !border-greptile-green !bg-greptile-green !text-black 2xl:btn-hex-md 3xl:btn-hex-lg",asChild:!0,children:(0,t.jsx)(n.default,{href:o.SITE.app,onClick:()=>
7C("dashboard"),children:"Dashboard"})}):(0,t.jsxs)("div",{className:"btn-hex-group",children:[(0,t.jsx)(h.Button,{variant:"outline",size:"sm",className:"btn-hex-notch !border-slate !bg-slate !text-fog hidden xl:inline-flex 2xl:btn-hex-md 3xl:btn-hex-lg",asChild:!0,children:(0,t.jsx)(n.default,{href:o.SITE.demo,onClick:()=>C("contact_sales"),children:"Contact sales"})}),(0,t.jsx)(h.Button,{variant:"outline",size:"sm",className:"btn-hex !border-greptile-green !bg-greptile-green !text-black 2xl:btn-hex-md 3xl:btn-hex-lg",asChild:!0,children:(0,t.jsx)(n.default,{href:o.SITE.signup,onClick:()=>C("sign_up"),children:"Sign up"})})]})})]}),(0,t.jsxs)("div",{className:"content-shell flex lg:hidden items-center justify-between h-16 px-4 md:px-8",children:[(0,t.jsx)(m,{children:(0,t.jsx)(n.default,{href:"/",scroll:!0,className:"flex items-center",children:(0,t.jsx)(c.Logo,{className:"h-8 w-auto"})})}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(h.Button,{variant:"outline",size:"sm",className:"btn-hex !border-greptile-green !bg-greptile-green !text-black",asChild:!0,children:(0,t.jsx)(n.default,{href:N?o.SITE.app:o.SITE.signup,onClick:()=>C(N?"dashboard":"sign_up"),children:N?"Dashboard":"Sign up"})}),(0,t.jsx)("button",{className:"p-2 text-slate",onClick:()=>{i(!e),f(!1),g(!1)},"aria-label":"Toggle menu",children:e?(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,t.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}):(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),(0,t.jsx)("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),(0,t.jsx)("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})})]})]})]}),(0,t.jsxs)("div",{className:(0,l.cn)("hidden lg:block absolute top-full left-0 right-0 w-full bg-fog border-b border-dashed border-silver transition-all duration-200",x?"opacity-100 visible translate-y-0":"opacity-0 invisible -translate-y-2"),children:[(0,t.jsx)("div",{className:"absolute left-0 top-0 bottom-0 w-4 pointer-events-none",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg width='16' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='1' y1='0' x2='1' y2='40' stroke='%23D6D6D6' stroke-width='1'/%3E%3Cline x1='1' y1='0' x2='15' y2='0' stroke='%23D6D6D6' stroke-width='1'/%3E%3Cline x1='1' y1='20' x2='9' y2='20' stroke='%23D6D6D6' stroke-width='1'/%3E%3Cline x1='1' y1='10' x2='6' y2='10' stroke='%23D6D6D6' stroke-width='1'/%3E%3Cline x1='1' y1='30' x2='6' y2='30' stroke='%23D6D6D6' stroke-width='1'/%3E%3C/svg%3E\")",backgroundRepeat:"repeat-y",backgroundPosition:"center"}}),(0,t.jsx)("div",{className:"absolute right-0 top-0 bottom-0 w-4 pointer-events-none",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg width='16' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='15' y1='0' x2='15' y2='40' stroke='%23D6D6D6' stroke-width='1'/%3E%3Cline x1='1' y1='0' x2='15' y2='0' stroke='%23D6D6D6' stroke-width='1'/%3E%3Cline x1='7' y1='20' x2='15' y2='20' stroke='%23D6D6D6' stroke-width='1'/%3E%3Cline x1='10' y1='10' x2='15' y2='10' stroke='%23D6D6D6' stroke-width='1'/%3E%3Cline x1='10' y1='30' x2='15' y2='30' stroke='%23D6D6D6' stroke-width='1'/%3E%3C/svg%3E\")",backgroundRepeat:"repeat-y",backgroundPosition:"center"}}),(0,t.jsx)("div",{className:"content-shell px-8 xl:px-16",children:(0,t.jsxs)("div",{className:"grid grid-cols-4",children:[(0,t.jsxs)(n.default,{href:"/trex",className:"group block transition-colors border-l border-r border-dashed border-border",onClick:()=>{C("feature_trex","features"),I()},children:[(0,t.jsx)("div",{className:"relative w-full bg-white/50 overflow-hidden",style:{paddingBottom:"40%"},children:(0,t.jsx)(d.default,{src:"/features/trex/image0.png",alt:"TREX",fill:!0,className:"object-contain"})}),(0,t.jsx)("div",{className:"p-3 border-t border-dashed border-border transition-colors group-hover:bg-greptile-green/20",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm font-sans text-slate flex-wrap",children:[(0,t.jsx)(s.Icon,{name:"Lightning",size:"xs",className:"h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"whitespace-nowrap",children:"TREX: Runtime Validation"}),(0,t.jsx)("span",{className:"text-[9px] font-mono uppercase tracking-wider bg-neon text-slate px-1.5 py-0.5 rounded-sm leading-none shrink-0",children:"Beta"})]})})]}),(0,t.jsxs)(n.default,{href:"/agent",className:"group block transition-colors border-r border-dashed border-border",onClick:()=>{C("feature_agent","features"),I()},children:[(0,t.jsx)("div",{className:"relative w-full bg-white/50 overflow-hidden",style:{paddingBottom:"40%"},children:(0,t.jsx)(d.default,{src:"/features/agent/image0.png",alt:"Agent",fill:!0,className:"object-contain"})}),(0,t.jsx)("div",{className:"p-3 border-t border-dashed border-border transition-colors group-hover:bg-greptile-green/20",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm font-sans text-slate",children:[(0,t.jsx)(s.Icon,{name:"GitBranch",size:"xs",className:"h-3 w-3"}),(0,t.jsx)("span",{children:"Greptile Agent"})]})})]}),(0,t.jsxs)(n.default,{href:"/independence",className:"group block transition-colors border-r border-dashed border-border",onClick:()=>{C("feature_independence","features"),I()},children:[(0,t.jsx)("div",{className:"relative w-full bg-white/50 overflow-hidden",style:{paddingBottom:"40%"},children:(0,t.jsx)(d.default,{src:"/features/independence/independence-simplified.png",alt:"Independence",fill:!0,className:"object-contain"})}),(0,t.jsx)("div",{className:"p-3 border-t border-dashed border-border transition-colors group-hover:bg-greptile-green/20",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm font-sans text-slate",children:[(0,t.jsx)(s.Icon,{name:"Shield",size:"xs",className:"h-3 w-3"}),(0,t.jsx)("span",{children:"Independence"})]})})]}),(0,t.jsxs)(n.default,{href:"/security-check",className:"group block transition-colors border-r border-dashed border-border",onClick:()=>{C("feature_security_check","features"),I()},children:[(0,t.jsx)("div",{className:"relative w-full bg-white/50 overflow-hidden",style:{paddingBottom:"40%"},children:(0,t.jsx)(d.default,{src:"/features/security-check/image0.png",alt:"Security Review",fill:!0,className:"object-contain"})}),(0,t.jsx)("div",{className:"p-3 border-t border-dashed border-border transition-colors group-hover:bg-greptile-green/20",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm font-sans text-slate",children:[(0,t.jsx)(s.Icon,{name:"ShieldCheck",size:"xs",className:"h-3 w-3"}),(0,t.jsx)("span",{children:"Security Review"})]})})]}),(0,t.jsxs)(n.default,{href:"/learning",className:"group block transition-colors border-l border-r border-t border-dashed border-border",onClick:()=>{C("feature_learning","features"),I()},children:[(0,t.jsx)("div",{className:"relative w-full bg-white/50 overflow-hidden",style:{paddingBottom:"40%"},children:(0,t.jsx)(d.default,{src:"/features/learning/image0.png",alt:"Learning & Custom Context",fill:!0,className:"object-contain"})}),(0,t.jsx)("div",{className:"p-3 border-t border-dashed border-border transition-colors group-hover:bg-greptile-green/20",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm font-sans text-slate",children:[(0,t.jsx)(s.Icon,{name:"Brain",size:"xs",className:"h-3 w-3"}),(0,t.jsx)("span",{children:"Learning & Custom Context"})]})})]}),(0,t.jsxs)(n.default,{href:"/cli",className:"group block transition-colors border-r border-t border-dashed border-border",onClick:()=>{C("feature_cli","features"),I()},children:[(0,t.jsx)("div",{className:"relative w-full bg-white/50 overflow-hidden",style:{paddingBottom:"40%"},children:(0,t.jsx)(d.default,{src:"/features/cli/image0.png",alt:"Greptile CLI",fill:!0,className:"object-contain",unoptimized:!0})}),(0,t.jsx)("div",{className:"p-3 border-t border-dashed border-border transition-colors group-hover:bg-greptile-green/20",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm font-sans text-slate",children:[(0,t.jsx)(s.Icon,{name:"Terminal",size:"xs",className:"h-3 w-3"}),(0,t.jsx)("span",{children:"Greptile CLI"})]})})]}),(0,t.jsxs)(n.default,{href:o.SITE.partners,className:"group block transition-colors border-r border-t border-dashed border-border",onClick:()=>{C("feature_integrations","features"),I()},children:[(0,t.jsx)("div",{className:"relative w-full bg-white/50 overflow-hidden",style:{paddingBottom:"40%"},children:(0,t.jsx)(d.default,{src:"/features/integrations/image0.png",alt:"Partners",fill:!0,className:"object-contain"})}),(0,t.jsx)("div",{className:"p-3 border-t border-dashed border-border transition-colors group-hover:bg-greptile-green/20",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm font-sans text-slate",children:[(0,t.jsx)(s.Icon,{name:"Plugs",size:"xs",className:"h-3 w-3"}),(0,t.jsx)("span",{children:"Partners"})]})})]}),(0,t.jsxs)(n.default,{href:"/knowledge-base",className:"group block transition-colors border-r border-t border-dashed border-border",onClick:()=>{C("feature_knowledge_base","features"),I()},children:[(0,t.jsx)("div",{className:"relative w-full bg-white/50 overflow-hidden",style:{paddingBottom:"40%"},children:(0,t.jsx)(d.default,{src:"/features/knowledge-base/image0.png",alt:"Knowledge Base",fill:!0,className:"object-contain object-bottom scale-150 translate-y-[25%]"})}),(0,t.jsx)("div",{className:"p-3 border-t border-dashed border-border transition-colors group-hover:bg-greptile-green/20",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm font-sans text-slate",children:[(0,t.jsx)(s.Icon,{name:"Database",size:"xs",className:"h-3 w-3"}),(0,t.jsx)("span",{children:"Knowledge Base"})]})})]})]})}),(0,t.jsx)("div",{className:"divider-hatch text-border",style:{height:8}})]}),(0,t.jsxs)("div",{className:(0,l.cn)("hidden lg:block absolute top-full left-0 right-0 w-full bg-fog border-b border-dashed border-silver transition-all duration-200",u?"opacity-100 visible translate-y-0":"opacity-0 invisible -translate-y-2"),children:[(0,t.jsx)("div",{className:"absolute left-0 top-0 bottom-0 w-4 pointer-events-none",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg width='16' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='1' y1='0' x2='1' y2='40' stroke='%23D6D6D6' stroke-width='1'/%3E%3Cline x1='1' y1='0' x2='15' y2='0' stroke='%23D6D6D6' stroke-width='1'/%3E%3Cline x1='1' y1='20' x2='9' y2='20' stroke='%23D6D6D6' stroke-width='1'/%3E%3Cline x1='1' y1='10' x2='6' y2='10' stroke='%23D6D6D6' stroke-width='1'/%3E%3Cline x1='1' y1='30' x2='6' y2='30' stroke='%23D6D6D6' stroke-width='1'/%3E%3C/svg%3E\")",backgroundRepeat:"repeat-y",backgroundPosition:"center"}}),(0,t.jsx)("div",{className:"absolute right-0 top-0 bottom-0 w-4 pointer-events-none",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg width='16' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='15' y1='0' x2='15' y2='40' stroke='%23D6D6D6' stroke-width='1'/%3E%3Cline x1='1' y1='0' x2='15' y2='0' stroke='%23D6D6D6' stroke-width='1'/%3E%3Cline x1='7' y1='20' x2='15' y2='20' stroke='%23D6D6D6' stroke-width='1'/%3E%3Cline x1='10' y1='10' x2='15' y2='10' stroke='%23D6D6D6' stroke-width='1'/%3E%3Cline x1='10' y1='30' x2='15' y2='30' stroke='%23D6D6D6' stroke-width='1'/%3E%3C/svg%3E\")",backgroundRepeat:"repeat-y",backgroundPosition:"center"}}),(0,t.jsx)("div",{className:"content-shell px-8 xl:px-16",children:(0,t.jsxs)("div",{className:"grid grid-cols-3",children:[(0,t.jsxs)(n.default,{target:"_blank",href:o.SITE.docs,className:"group relative flex items-start gap-4 p-4 transition-colors border-l border-r border-b border-dashed border-border overflow-hidden hover:bg-greptile-green/20",onClick:()=>{C("docs","resources"),I()},children:[(0,t.jsx)(s.Icon,{name:"Book",size:"sm",className:"h-5 w-5 shrink-0 mt-0.5 text-slate relative z-10"}),(0,t.jsxs)("div",{className:"relative z-10",children:[(0,t.jsx)("div",{className:"text-sm font-sans text-slate font-medium",children:"Docs"}),(0,t.jsx)("div",{className:"text-xs font-sans text-slate/50 mt-1",children:"Comprehensive documentation and guides"})]})]}),(0,t.jsxs)(n.default,{href:o.SITE.examples,className:"group relative flex items-start gap-4 p-4 transition-colors border-r border-b border-dashed border-border overflow-hidden hover:bg-greptile-green/20",onClick:()=>{C("examples","resources"),I()},children:[(0,t.jsx)(s.Icon,{name:"GitPullRequest",size:"sm",className:"h-5 w-5 shrink-0 mt-0.5 text-slate relative z-10"}),(0,t.jsxs)("div",{className:"relative z-10",children:[(0,t.jsx)("div",{className:"text-sm font-sans text-slate font-medium",children:"Greptile Examples"}),(0,t.jsx)("div",{className:"text-xs font-sans text-slate/50 mt-1",children:"See Greptile catching bugs in large OS repos."})]})]}),(0,t.jsxs)(n.default,{href:o.SITE.demo,className:"group relative flex items-start gap-4 p-4 transition-colors border-r border-b border-dashed border-border overflow-hidden hover:bg-greptile-green/20",onClick:()=>{C("contact_sales","resources"),I()},children:[(0,t.jsx)(s.Icon,{name:"Calendar",size:"sm",className:"h-5 w-5 shrink-0 mt-0.5 text-slate relative z-10"}),(0,t.jsxs)("div",{className:"relative z-10",children:[(0,t.jsx)("div",{className:"text-sm font-sans text-slate font-medium",children:"Contact sales"}),(0,t.jsx)("div",{className:"text-xs font-sans text-slate/50 mt-1",children:"Schedule a demo with our team"})]})]}),(0,t.jsxs)(n.default,{href:o.SITE.customers,className:"group relative flex items-start gap-4 p-4 transition-colors border-l border-r border-dashed border-border overflow-hidden hover:bg-greptile-green/20",onClick:()=>{C("customers","resources"),I()},children:[(0,t.jsx)(s.Icon,{name:"Users",size:"sm",className:"h-5 w-5 shrink-0 mt-0.5 text-slate relative z-10"}),(0,t.jsxs)("div",{className:"relative z-10",children:[(0,t.jsx)("div",{className:"text-sm font-sans text-slate font-medium",children:"Customers"}),(0,t.jsx)("div",{className:"text-xs font-sans text-slate/50 mt-1",children:"Success stories and case studies"})]})]}),(0,t.jsxs)(n.default,{href:o.SITE.benchmarks,className:"group relative flex items-start gap-4 p-4 transition-colors border-r border-dashed border-border overflow-hidden hover:bg-greptile-green/20",onClick:()=>{C("benchmarks","resources"),I()},children:[(0,t.jsx)(s.Icon,{name:"ChartBar",size:"sm",className:"h-5 w-5 shrink-0 mt-0.5 text-slate relative z-10"}),(0,t.jsxs)("div",{className:"relative z-10",children:[(0,t.jsx)("div",{className:"text-sm font-sans text-slate font-medium",children:"Benchmarks"}),(0,t.jsx)("div",{className:"text-xs font-sans text-slate/50 mt-1",children:"Performance metrics and comparisons"})]})]}),(0,t.jsxs)(n.default,{href:o.SITE.security,className:"group relative flex items-start gap-4 p-4 transition-colors border-r border-dashed border-border overflow-hidden hover:bg-greptile-green/20",onClick:()=>{C("security","resources"),I()},children:[(0,t.jsx)(s.Icon,{name:"Shield",size:"sm",className:"h-5 w-5 shrink-0 mt-0.5 text-slate relative z-10"}),(0,t.jsxs)("div",{className:"relative z-10",children:[(0,t.jsx)("div",{className:"text-sm font-sans text-slate font-medium",children:"Security"}),(0,t.jsx)("div",{className:"text-xs font-sans text-slate/50 mt-1",children:"Security practices and compliance"})]})]})]})}),(0,t.jsx)("div",{className:"divider-hatch text-border",style:{height:8}})]}),e&&(0,t.jsxs)("div",{className:"lg:hidden px-4 md:px-8 py-2 flex flex-col",style:{backgroundColor:"#EEEEEE"},children:[(0,t.jsx)(n.default,{href:o.SITE.examples,className:(0,l.cn)(p,"py-3 border-b border-dashed border-slate/20"),onClick:()=>{C("examples"),I()},children:"Examples"}),(0,t.jsx)(n.default,{href:o.SITE.pricing,className:(0,l.cn)(p,"py-3 border-b border-dashed border-slate/20"),onClick:()=>{C("pricing"),I()},children:"Pricing"}),(0,t.jsxs)("button",{className:(0,l.cn)(p,"py-3 border-b border-dashed border-slate/20 w-full"),onClick:()=>w(!y),children:["Features",(0,t.jsx)(s.Icon,{name:"CaretDown",size:"xs",className:(0,l.cn)(
7"h-3 w-3 ml-auto transition-transform duration-200",y&&"rotate-180")})]}),(0,t.jsx)("div",{className:(0,l.cn)("grid grid-cols-2 border-b border-dashed border-slate/20 transition-all duration-200 overflow-hidden",y?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0 border-b-0"),children:(0,t.jsxs)("div",{className:"overflow-hidden col-span-2 grid grid-cols-2",children:[(0,t.jsxs)(n.default,{href:"/trex",className:"flex items-center gap-2 py-3 px-3 text-sm font-sans text-slate hover:bg-fog transition-colors border-r border-b border-dashed border-slate/20",onClick:()=>{C("feature_trex","features"),I()},children:[(0,t.jsx)(s.Icon,{name:"Lightning",size:"xs",className:"h-3.5 w-3.5 shrink-0"})," TREX",(0,t.jsx)("span",{className:"text-[8px] font-mono uppercase tracking-wider bg-neon text-slate px-1 py-0.5 rounded-sm leading-none whitespace-nowrap shrink-0",children:"Beta"})]}),(0,t.jsxs)(n.default,{href:"/agent",className:"flex items-center gap-2 py-3 px-3 text-sm font-sans text-slate hover:bg-fog transition-colors border-b border-dashed border-slate/20",onClick:()=>{C("feature_agent","features"),I()},children:[(0,t.jsx)(s.Icon,{name:"GitBranch",size:"xs",className:"h-3.5 w-3.5"})," Agent"]}),(0,t.jsxs)(n.default,{href:"/independence",className:"flex items-center gap-2 py-3 px-3 text-sm font-sans text-slate hover:bg-fog transition-colors border-r border-dashed border-slate/20",onClick:()=>{C("feature_independence","features"),I()},children:[(0,t.jsx)(s.Icon,{name:"Shield",size:"xs",className:"h-3.5 w-3.5"})," Independence"]}),(0,t.jsxs)(n.default,{href:"/learning",className:"flex items-center gap-2 py-3 px-3 text-sm font-sans text-slate hover:bg-fog transition-colors",onClick:()=>{C("feature_learning","features"),I()},children:[(0,t.jsx)(s.Icon,{name:"Brain",size:"xs",className:"h-3.5 w-3.5"})," Learning"]}),(0,t.jsxs)(n.default,{href:"/cli",className:"flex items-center gap-2 py-3 px-3 text-sm font-sans text-slate hover:bg-fog transition-colors border-t border-r border-dashed border-slate/20",onClick:()=>{C("feature_cli","features"),I()},children:[(0,t.jsx)(s.Icon,{name:"Terminal",size:"xs",className:"h-3.5 w-3.5"})," CLI"]}),(0,t.jsxs)(n.default,{href:o.SITE.partners,className:"flex items-center gap-2 py-3 px-3 text-sm font-sans text-slate hover:bg-fog transition-colors border-t border-dashed border-slate/20",onClick:()=>{C("feature_integrations","features"),I()},children:[(0,t.jsx)(s.Icon,{name:"Plugs",size:"xs",className:"h-3.5 w-3.5"})," Partners"]}),(0,t.jsxs)(n.default,{href:"/security-check",className:"flex items-center gap-2 py-3 px-3 text-sm font-sans text-slate hover:bg-fog transition-colors border-t border-r border-dashed border-slate/20",onClick:()=>{C("feature_security_check","features"),I()},children:[(0,t.jsx)(s.Icon,{name:"ShieldCheck",size:"xs",className:"h-3.5 w-3.5"})," Security Review"]}),(0,t.jsxs)(n.default,{href:"/knowledge-base",className:"flex items-center gap-2 py-3 px-3 text-sm font-sans text-slate hover:bg-fog transition-colors border-t border-dashed border-slate/20",onClick:()=>{C("feature_knowledge_base","features"),I()},children:[(0,t.jsx)(s.Icon,{name:"Database",size:"xs",className:"h-3.5 w-3.5"})," Knowledge Base"]})]})}),(0,t.jsx)(n.default,{href:o.SITE.enterprise,className:(0,l.cn)(p,"py-3 border-b border-dashed border-slate/20"),onClick:()=>{C("enterprise"),I()},children:"Enterprise"}),(0,t.jsx)(n.default,{href:o.SITE.blog,className:(0,l.cn)(p,"py-3 border-b border-dashed border-slate/20"),onClick:()=>{C("blog"),I()},children:"Blog"}),(0,t.jsxs)("button",{className:(0,l.cn)(p,"py-3 border-b border-dashed border-slate/20 w-full"),onClick:()=>v(!b),children:["Resources",(0,t.jsx)(s.Icon,{name:"CaretDown",size:"xs",className:(0,l.cn)("h-3 w-3 ml-auto transition-transform duration-200",b&&"rotate-180")})]}),(0,t.jsx)("div",{className:(0,l.cn)("grid grid-cols-2 border-b border-dashed border-slate/20 transition-all duration-200 overflow-hidden",b?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0 border-b-0"),children:(0,t.jsxs)("div",{className:"overflow-hidden col-span-2 grid grid-cols-2",children:[(0,t.jsxs)(n.default,{href:o.SITE.docs,target:"_blank",className:"flex items-center gap-2 py-3 px-3 text-sm font-sans text-slate hover:bg-fog transition-colors border-r border-b border-dashed border-slate/20",onClick:()=>{C("docs","resources"),I()},children:[(0,t.jsx)(s.Icon,{name:"Book",size:"xs",className:"h-3.5 w-3.5"})," Docs"]}),(0,t.jsxs)(n.default,{href:o.SITE.customers,className:"flex items-center gap-2 py-3 px-3 text-sm font-sans text-slate hover:bg-fog transition-colors border-b border-dashed border-slate/20",onClick:()=>{C("customers","resources"),I()},children:[(0,t.jsx)(s.Icon,{name:"Users",size:"xs",className:"h-3.5 w-3.5"})," Customers"]}),(0,t.jsxs)(n.default,{href:o.SITE.benchmarks,className:"flex items-center gap-2 py-3 px-3 text-sm font-sans text-slate hover:bg-fog transition-colors border-r border-b border-dashed border-slate/20",onClick:()=>{C("benchmarks","resources"),I()},children:[(0,t.jsx)(s.Icon,{name:"ChartBar",size:"xs",className:"h-3.5 w-3.5"})," Benchmarks"]}),(0,t.jsxs)(n.default,{href:o.SITE.security,className:"flex items-center gap-2 py-3 px-3 text-sm font-sans text-slate hover:bg-fog transition-colors border-b border-dashed border-slate/20",onClick:()=>{C("security","resources"),I()},children:[(0,t.jsx)(s.Icon,{name:"Shield",size:"xs",className:"h-3.5 w-3.5"})," Security"]}),(0,t.jsxs)(n.default,{href:o.SITE.demo,className:"flex items-center gap-2 py-3 px-3 text-sm font-sans text-slate hover:bg-fog transition-colors border-r border-dashed border-slate/20",onClick:()=>{C("contact_sales","resources"),I()},children:[(0,t.jsx)(s.Icon,{name:"Calendar",size:"xs",className:"h-3.5 w-3.5"})," Contact sales"]})]})})]})]})})};function g({children:e}){let a=(0,r.usePathname)();if((0,o.isBareRoute)(a))return e;let s=a!==o.SITE.plusAndApex&&a!==`${o.SITE.plusAndApex}/`;return(0,t.jsxs)("div",{className:(0,l.cn)("site-chrome",s&&"site-chrome-with-announcement"),children:[s&&(0,t.jsx)(i,{}),(0,t.jsx)(x,{}),(0,t.jsx)("main",{className:"site-chrome-main flex min-h-screen w-full flex-1 flex-col bg-white",children:e})]})}e.s(["default",()=>g],272204)}]);
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.