(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1080],{93083:(e,t,r)=>{Promise.resolve().then(r.bind(r,83383)),Promise.resolve().then(r.bind(r,34127)),Promise.resolve().then(r.bind(r,11582)),Promise.resolve().then(r.bind(r,25552)),Promise.resolve().then(r.bind(r,20839)),Promise.resolve().then(r.t.bind(r,58550,23)),Promise.resolve().then(r.t.bind(r,52402,23)),Promise.resolve().then(r.bind(r,39489)),Promise.resolve().then(r.bind(r,49178)),Promise.resolve().then(r.bind(r,69073)),Promise.resolve().then(r.bind(r,92214)),Promise.resolve().then(r.bind(r,56579)),Promise.resolve().then(r.bind(r,37486)),Promise.resolve().then(r.bind(r,91338)),Promise.resolve().then(r.t.bind(r,90311,23)),Promise.resolve().then(r.t.bind(r,40731,23)),Promise.resolve().then(r.t.bind(r,50317,23)),Promise.resolve().then(r.t.bind(r,43778,23)),Promise.resolve().then(r.bind(r,9459)),Promise.resolve().then(r.t.bind(r,21727,23)),Promise.resolve().then(r.t.bind(r,27172,23)),Promise.resolve().then(r.t.bind(r,928,23)),Promise.resolve().then(r.bind(r,28923))},83383:(e,t,r)=>{"use strict";r.d(t,{Analytics:()=>v});var a=r(94450),n=r(20282),s=r(61957);let i=["auxclick","click","contextmenu","dblclick","mousedown","mouseup","pointerdown","pointerup","pointercancel","touchstart","touchend","touchcancel","gotpointercapture","lostpointercapture","keydown","keypress","keyup","beforeinput","input","compositionstart","compositionupdate","compositionend"],l=()=>"requestIdleCallback"in window?o():null,o=()=>{let e;let t=new Set,r=e=>{requestIdleCallback(()=>{for(let r of t)r(e)})},a=()=>{if(document.hidden){e={startTime:performance.now()};return}e&&(e.endTime=performance.now())};document.addEventListener("visibilitychange",a);let n=new WeakMap,s=new WeakMap,l=e=>{let{target:t}=e;if(!t)return;let r=s.get(t);r||(r=[],s.set(t,r)),r.push(e)},o=(e,t)=>{let r=s.get(e);if(!r)return[];let a=[],n=t.start-20,i=new Set(t.durations.map(e=>e.event));for(let e=r.length;e--;){let t=r[e];if(t){if(t.startTime{if(!e)return;let a=n.get(e);("render"!==t||a?.durations.length)&&a&&(a.durations.push({event:t,duration:r}),a.totalDuration+=r)},d=(e,t,r)=>{if(!t)return;let a=r-t.duration;t.duration=r,e.totalDuration+=a},u=new PerformanceObserver(e=>{for(let t of e.getEntries())l(t)});u.observe({type:"event"});let p=e=>{if(!e)return;let t=n.get(e);t&&(n.delete(e),setTimeout(()=>{let a=o(e,t),n=a[0],s=a.at(-1);if(n&&s){let e=n.processingStart-n.startTime;d(t,t.durations[0],e);let r=Math.max(.1,s.duration-(s.processingEnd-s.startTime));d(t,t.durations.at(-1),r);let i=0,l=a[0];for(let e of t.durations){if(!l)break;e.event===l.name&&(d(t,e,l.processingEnd-l.processingStart),l=a[++i])}}t.durations.length&&(t.totalDuration>=200&&(t.isSilent=!1),g.entries.push(t),++g.entryCount,m(),r(t))},250))},h=t=>{let{target:r,timeStamp:a}=t;if(!r||n.get(r))return;s.delete(r);let i=Math.max(0,performance.now()-a),l=performance.now()-i,o={target:r,start:l,durations:[],totalDuration:0,isSilent:!0};n.set(r,o),c(r,"input delay",i),requestAnimationFrame(()=>{setTimeout(()=>{let t=o.start+o.totalDuration,a=Math.max(1,performance.now()-t);e?.endTime&&e.endTime>l&&(a-=e.endTime-e.startTime),c(r,"render",Math.max(0,a)),p(r)})})},m=()=>{let e=g.entries.slice().sort((e,t)=>t.totalDuration-e.totalDuration);e.splice(10),g.entries=e;let t=e[Math.min(Math.floor(g.entryCount/50),e.length-1)];t&&(g.inp=t.totalDuration,g.inpIndex=g.entries.indexOf(t))},f=e=>{let{target:t,type:r,isTrusted:a}=e;if(!t||!a||"VERCEL-LIVE-FEEDBACK"===t.tagName)return;let n=performance.now();h(e);let s=!1,i=e=>{cancelAnimationFrame(l),window.removeEventListener(r,i),s||(s=!0,c(t,r,("object"==typeof e?performance.now():n+1)-n))};window.addEventListener(r,i,{once:!0});let l=requestAnimationFrame(i)};for(let e of i)window.addEventListener(e,f,{capture:!0});let g={inp:0,inpIndex:-1,entries:[],entryCount:0,clearEntries:()=>{g.entries.splice(0),g.inp=0,g.inpIndex=-1,r()},subscribe:e=>t.add(e),unsubscribe:e=>t.delete(e),cleanup:()=>{for(let e of(document.removeEventListener("visibilitychange",a),u.disconnect(),i))window.removeEventListener(e,f,{capture:!0})}};return g};function c(){return(0,n.useEffect)(()=>{let e=l();if(e)return e.subscribe(e=>{if(!e)return;let t=!!window.next.appDir,{target:r,totalDuration:a,durations:n}=e;if(a<200)return;let i=d(n),l=d(n,!0),o=u(r),c=`${o} : ${l}`,p=`${o} : ${i}`,h=u(r,!0),m=`${h} : ${l}`,f={path:o,event:l,pathWithEvent:c,pathWithLongestDuration:p,pathsWithClass:h,pathsWithClassWithEvent:m,isAppRouter:t,chrome:navigator.userAgent.includes("Chrome"),android:/Android/i.test(navigator.userAgent)};(0,s.u4)("long-inp-200",f),a<400||(0,s.u4)("long-inp-400",f)}),()=>e.cleanup()},[]),null}function d(e,t=!1){let r=0,a="";for(let{duration:n,event:s}of e)(!t||"input delay"!==s&&"render"!==s)&&(n<=r||(r=n,a=s));return a}function u(e,t=!1){let r=e,a=[];do{let e=r.tagName.toLowerCase();if("body"===e)break;if(r.id){a.unshift(`${e}#${r.id}`);continue}if(r.getAttribute("data-testid")){a.unshift(`${e}[data-testid="${r.getAttribute("data-testid")}"]`);continue}if(t&&r.classList.length){a.unshift(`${e}.${r.classList[0]}`);continue}a.unshift(e)}while(r=r.parentElement);return a.join(" > ")}var p=r(67027),h=r(19496),m=r(17730),f=r(18941),g=r(89217),x=r(34720);function v(){return(0,f.u)({analytics:g.zS}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.H,{}),(0,a.jsx)(p.j,{}),(0,a.jsx)(n.Suspense,{fallback:null,children:(0,a.jsx)(h.b,{})}),(0,a.jsx)(c,{}),(0,a.jsx)(m.default,{id:"loadWRM",children:`(function(d,t,u) { var re = /Googlebot|bingbot|YandexBot|YandexMobileBot|Yeti|Y!J-BRU\\/VSIDX|Y!J-BRW|Y!J-ASR|Y!J-MMP\\/dsv|Y!J-WSC|Google-Extended|ClaudeBot|claudebot|GPTBot/i; if (re.test(navigator.userAgent)) { var s = d.createElement(t); s.src = u; s.async = true; var p = d.getElementsByTagName(t)[0]; p.parentNode.insertBefore(s,p); } })(document,'script','https://merj-research-beacon-server.vercel.app/wrm.969e6689fb6bdb09ff8b.js');`})]})}},34127:(e,t,r)=>{"use strict";let a,n,s;r.d(t,{Cmdk:()=>tm});var i=r(94450),l=r(8911),o=r(20282),c=r(32361),d=r.n(c),u=r(31121),p=r(23766);r(80374);var h=r(13887),m=r(41650),f=r(54652);let g=(0,f.G)('');var x=r(99273),v=r(9047),b=r.n(v);let j=(0,o.createContext)("menu"),w=Object.assign(function({children:e,type:t="text",className:r}){return"text"===t?(0,i.jsx)(j.Provider,{value:t,children:(0,i.jsx)("nav",{"aria-label":"Breadcrumb",children:(0,i.jsx)("ol",{className:b().ol,children:e})})}):(0,i.jsx)("div",{className:(0,u.$)(b().menuWrapper,r),children:e})},{Item:function({children:e,active:t,as:r,disabled:a,...n}){let s=(0,o.useContext)(j),[l,c]=(0,o.useState)(!1),d=r||"menu"===s?"button":"li",p=(0,o.useRef)(null);return((0,o.useEffect)(()=>{if(p.current){let e=p.current;c(e.offsetWidthe.includes("static-")?1:function(e,t){return function e(t,r,a,n,s,i,l){let o,c,d,u;if(i===r.length)return s===t.length?1:.99;let p=`${s},${i}`;if(void 0!==l[p])return l[p];let h=n.charAt(i),m=a.indexOf(h,s),f=0;for(;m>=0;)(o=e(t,r,a,n,m+1,i+1,l))>f&&(m===s?o*=1:N.test(t.charAt(m-1))?(o*=.8,(d=t.slice(s,m-1).match(S))&&s>0&&(o*=Math.pow(.999,d.length))):H.test(t.charAt(m-1))?(o*=.9,(u=t.slice(s,m-1).match(E))&&s>0&&(o*=Math.pow(.999,u.length))):(o*=.17,s>0&&(o*=Math.pow(.999,m-s))),t.charAt(m)!==r.charAt(i)&&(o*=.9999)),(o<.1&&a.charAt(m-1)===n.charAt(i+1)||n.charAt(i+1)===n.charAt(i)&&a.charAt(m-1)!==n.charAt(i))&&.1*(c=e(t,r,a,n,m+1,i+2,l))>o&&(o=.1*c),o>f&&(f=o),m=a.indexOf(h,m+1);return l[p]=f,f}(e,t,V(e),V(t),0,0,{})}(e,t),D=o.createContext(void 0),T=()=>o.useContext(D),F=o.createContext(void 0),Z=()=>o.useContext(F),W=o.createContext(void 0),G=o.forwardRef((e,t)=>{let r=o.useRef(null),a=er(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),n=er(()=>new Set),s=er(()=>new Map),l=er(()=>new Map),c=er(()=>new Set),d=ee(e),{label:u,children:p,value:h,onValueChange:m,filter:f,shouldFilter:g,...x}=e,v=o.useId(),b=o.useId(),j=o.useId(),w=ei();et(()=>{if(void 0!==h){let e=h.trim().toLowerCase();a.current.value=e,w(6,S),y.emit()}},[h]);let y=o.useMemo(()=>({subscribe:e=>(c.current.add(e),()=>c.current.delete(e)),snapshot:()=>a.current,setState:(e,t,r)=>{if(!Object.is(a.current[e],t)){if(a.current[e]=t,"search"===e)N(),k(),w(1,L);else if("value"===e){if(void 0!==d.current.value){d.current.onValueChange?.(t);return}r||w(5,S)}y.emit()}},emit:()=>{c.current.forEach(e=>e())}}),[]),C=o.useMemo(()=>({value:(e,t)=>{t!==l.current.get(e)&&(l.current.set(e,t),a.current.filtered.items.set(e,_(t)),w(2,()=>{k(),y.emit()}))},item:(e,t)=>(n.current.add(e),t&&(s.current.has(t)?s.current.get(t).add(e):s.current.set(t,new Set([e]))),w(3,()=>{N(),k(),a.current.value||L(),y.emit()}),()=>{l.current.delete(e),n.current.delete(e),a.current.filtered.items.delete(e),w(4,()=>{N(),L(),y.emit()})}),group:e=>(s.current.has(e)||s.current.set(e,new Set),()=>{l.current.delete(e),s.current.delete(e)}),filter:()=>d.current.shouldFilter,label:u||e["aria-label"],listId:v,inputId:j,labelId:b}),[]);function _(e){let t=d.current.filter??O;return e?t(e,a.current.search):0}function k(){if(!r.current||!a.current.search||!1===d.current.shouldFilter)return;let e=a.current.filtered.items,t=[];a.current.filtered.groups.forEach(r=>{let a=s.current.get(r),n=0;a&&a.forEach(t=>{n=Math.max(e.get(t),n)}),t.push([r,n])});let n=r.current.querySelector('[cmdk-list-sizer=""]');E().sort((t,r)=>{let a=t.getAttribute(P),n=r.getAttribute(P);return(e.get(n)??0)-(e.get(a)??0)}).forEach(e=>{let t=e.closest($);t?t.appendChild(e.parentElement===t?e:e.closest(`${$} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${$} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=r.current.querySelector(`${M}[${P}="${e[0]}"]`);t?.parentElement.appendChild(t)})}function L(){let e=E().find(e=>!e.ariaDisabled),t=e?.getAttribute(P);y.setState("value",t||void 0)}function N(){if(!a.current.search||!1===d.current.shouldFilter){a.current.filtered.count=n.current.size;return}a.current.filtered.groups=new Set;let e=0;for(let t of n.current){let r=_(l.current.get(t));a.current.filtered.items.set(t,r),r>0&&e++}for(let[e,t]of s.current)for(let r of t)if(a.current.filtered.items.get(r)>0){a.current.filtered.groups.add(e);break}a.current.filtered.count=e}function S(){let e=H();e&&(e.parentElement?.firstChild===e&&e.closest(M)?.querySelector('[cmdk-group-heading=""]')?.scrollIntoView({block:"nearest"}),e.scrollIntoView({block:"nearest"}))}function H(){return r.current.querySelector(`${A}[aria-selected="true"]`)}function E(){return Array.from(r.current.querySelectorAll(R))}function V(e){let t=E()[e];t&&y.setState("value",t.getAttribute(P))}function T(e){let t=H(),r=E(),a=r.findIndex(e=>e===t),n=r[a+e];d.current.loop&&(n=a+e<0?r[r.length-1]:a+e===r.length?r[0]:r[a+e]),n&&y.setState("value",n.getAttribute(P))}function Z(e){let t;let r=H(),a=r?.closest(M);for(;a&&!t;)a=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(a,M):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(a,M),t=a?.querySelector(R);t?y.setState("value",t.getAttribute(P)):T(e)}let W=()=>V(E().length-1),G=e=>{e.preventDefault(),e.metaKey?W():e.altKey?Z(1):T(1)},z=e=>{e.preventDefault(),e.metaKey?V(0):e.altKey?Z(-1):T(-1)};return(0,i.jsxs)("div",{ref:ea([r,t]),...x,"cmdk-root":"",onKeyDown:e=>{if(x.onKeyDown?.(e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&G(e);break;case"ArrowDown":G(e);break;case"p":case"k":e.ctrlKey&&z(e);break;case"ArrowUp":z(e);break;case"Home":e.preventDefault(),V(0);break;case"End":e.preventDefault(),W();break;case"Enter":{e.preventDefault();let t=H();if(t){let e=new Event(I);t.dispatchEvent(e)}}}},children:[(0,i.jsx)("label",{"cmdk-label":"",htmlFor:C.inputId,id:C.labelId,style:el,children:u}),(0,i.jsx)(F.Provider,{value:y,children:(0,i.jsx)(D.Provider,{value:C,children:p})})]})}),z=o.forwardRef((e,t)=>{let r=o.useId(),a=o.useRef(null),n=o.useContext(W),s=T(),l=ee(e);et(()=>s.item(r,n),[]);let c=es(r,a,[e.value,e.children,a],e.isStatic),d=Z(),u=en(e=>e.value&&e.value===c.current),p=en(e=>!e.search||e.filtered.items.get(r)>0);function h(){l.current.onSelect?.(c.current)}if(o.useEffect(()=>{let t=a.current;if(t&&!e.disabled)return t.addEventListener(I,h),()=>t.removeEventListener(I,h)},[p,e.onSelect,e.disabled]),!p)return null;let{disabled:m,value:f,onSelect:g,isStatic:x,...v}=e;return(0,i.jsx)("div",{ref:ea([a,t]),...v,"aria-disabled":m||void 0,"aria-selected":u||void 0,"cmdk-item":"","data-selected":u||void 0,onClick:m?void 0:h,onPointerMove:m?void 0:function(){d.setState("value",c.current,!0)},role:"option",children:e.children})}),B=o.forwardRef((e,t)=>{let{heading:r,children:a,...n}=e,s=o.useId(),l=o.useRef(null),c=o.useRef(null),d=o.useId(),u=T(),p=en(e=>!e.search||e.filtered.groups.has(s));et(()=>u.group(s),[]),es(s,l,[e.value,e.heading,c]);let h=(0,i.jsx)(W.Provider,{value:s,children:a});return(0,i.jsxs)("div",{ref:ea([l,t]),...n,"cmdk-group":"",hidden:!p||void 0,role:"presentation",children:[r?(0,i.jsx)("div",{"aria-hidden":!0,"cmdk-group-heading":"",id:d,ref:c,children:r}):null,(0,i.jsx)("div",{"aria-labelledby":r?d:void 0,"cmdk-group-items":"",role:"group",children:h})]})}),U=o.forwardRef((e,t)=>{let{alwaysRender:r,...a}=e,n=o.useRef(null),s=en(e=>!e.search);return r||s?(0,i.jsx)("div",{ref:ea([n,t]),...a,"cmdk-separator":"",role:"separator"}):null}),q=o.forwardRef((e,t)=>{let{onValueChange:r,...a}=e,n=null!=e.value,s=Z(),l=en(e=>e.search),c=T();return o.useEffect(()=>{null!=e.value&&s.setState("search",e.value)},[e.value]),(0,i.jsx)("input",{ref:t,...a,"aria-autocomplete":"list","aria-controls":c.listId,"aria-expanded":!0,"aria-labelledby":c.labelId,autoComplete:"off",autoCorrect:"off","cmdk-input":"",id:c.inputId,onChange:e=>{n||s.setState("search",e.target.value),r?.(e.target.value)},role:"combobox",spellCheck:!1,type:"text",value:n?e.value:l})}),J=o.forwardRef((e,t)=>{let{children:r,...a}=e,n=o.useRef(null),s=o.useRef(null),l=T();return o.useEffect(()=>{if(s.current&&n.current){let e;let t=s.current,r=n.current,a=new ResizeObserver(()=>{e=requestAnimationFrame(()=>{let e=t.getBoundingClientRect().height;r.style.setProperty("--cmdk-list-height",`${e.toFixed(1)}px`)})});return a.observe(t),()=>{cancelAnimationFrame(e),a.unobserve(t)}}},[]),(0,i.jsx)("div",{ref:ea([n,t]),...a,"aria-label":"Suggestions","aria-labelledby":l.inputId,"cmdk-list":"",id:l.listId,role:"listbox",children:(0,i.jsx)("div",{"cmdk-list-sizer":"",ref:s,children:r})})}),K=o.forwardRef((e,t)=>{let{open:r,onOpenChange:a,container:n,...s}=e;return(0,i.jsx)(L.bL,{onOpenChange:a,open:r,children:(0,i.jsxs)(L.ZL,{container:n,children:[(0,i.jsx)(L.hJ,{"cmdk-overlay":"","geist-overlay":""}),(0,i.jsxs)(L.UC,{"aria-label":e.label,"cmdk-dialog":"","geist-dialog":"",ref:t,children:[(0,i.jsx)(L.hE,{className:"sr-only",children:"Command Menu"}),(0,i.jsx)(L.VY,{className:"sr-only",children:"Use the command menu to navigate through Vercel."}),(0,i.jsx)(G,{ref:t,...s})]})]})})}),X=o.forwardRef((e,t)=>{let r=o.useRef(!0),a=en(e=>0===e.filtered.count);return(o.useEffect(()=>{r.current=!1},[]),r.current||!a)?null:(0,i.jsx)("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Y=o.forwardRef((e,t)=>{let{progress:r,children:a,...n}=e;return(0,i.jsx)("div",{ref:t,...n,"aria-label":"Loading...","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":r,"cmdk-loading":"",role:"progressbar",children:(0,i.jsx)("div",{"aria-hidden":!0,children:a})})}),Q=Object.assign(G,{List:J,Item:z,Input:q,Group:B,Separator:U,Dialog:K,Empty:X,Loading:Y});function ee(e){let t=o.useRef(e);return et(()=>{t.current=e}),t}let et=o.useLayoutEffect;function er(e){let t=o.useRef();return void 0===t.current&&(t.current=e()),t}function ea(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function en(e){let t=Z(),r=()=>e(t.snapshot());return o.useSyncExternalStore(t.subscribe,r,r)}function es(e,t,r,a){let n=o.useRef(),s=T();return et(()=>{let i=(()=>{for(let e of r){if("string"==typeof e)return e.trim().toLowerCase();if("object"==typeof e&&"current"in e){if(e.current)return e.current.textContent?.trim().toLowerCase();return n.current}}})(),l=`${a?"static-":""}${i||""}`;s.value(e,l),t.current?.setAttribute(P,l),n.current=l}),n}let ei=()=>{let[e,t]=o.useState(),r=er(()=>new Map);return et(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,a)=>{r.current.set(e,a),t({})}};G.displayName="Command",z.displayName="CommandItem",B.displayName="CommandGroup",U.displayName="CommandSeparator",q.displayName="CommandInput",J.displayName="CommandList",K.displayName="CommandDialog",X.displayName="CommandEmpty",Y.displayName="CommandLoading";let el={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};var eo=r(67097),ec=r.n(eo);let ed=(0,o.createContext)({}),eu=()=>(0,o.useContext)(ed),ep={Root:function({label:e,children:t,open:r,setOpen:l,pages:c,setPages:d,infiniteScrollingCb:u,infiniteScrollingThreshold:p,onClose:m,container:f,onSelect:g,onValueChange:x,shouldFilter:v,value:b}){let j=(0,o.useMemo)(()=>c?.[c.length-1]??{label:"",placeholder:""},[c]),[w,_]=(0,o.useState)(!1),[L,N]=(0,o.useState)(""),S=(0,o.useRef)(null),H=(0,y.useIsMobile)();(0,o.useEffect)(()=>{if(r)return 0===k&&function(){a=document.body.style.overflow,n=document.documentElement.style.overflow,s=document.documentElement.style.borderRight;let e=window.innerWidth-document.documentElement.scrollWidth;document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",document.documentElement.style.borderRight=`${e}px solid transparent`}(),k+=1,()=>void(0==(k-=1)&&(document.body.style.overflow=a,document.documentElement.style.overflow=n,document.documentElement.style.borderRight=s))},[r]),(0,o.useEffect)(()=>{let e=S.current;e&&(e.style.transform="scale(0.99) translateX(-50%)",setTimeout(()=>{e.style.transform=""},100))},[j]),(0,o.useEffect)(()=>{if(!r&&m&&!H){let e=setTimeout(()=>{m()},200);return()=>clearTimeout(e)}},[r,m,H]);let E=(0,o.useCallback)(e=>{d?.(t=>[...t,e])},[d]),V=(0,o.useMemo)(()=>({addPage:E,open:r,setOpen:l,pages:c,setPages:d,activePage:j,loading:w,infiniteScrollingCb:u,infiniteScrollingThreshold:p,inputValue:L,setInputValue:N,setLoading:_,onSelect:g}),[E,r,l,c,d,j,w,u,p,L,N,_,g]);return H?(0,i.jsx)(ed.Provider,{value:V,children:(0,i.jsx)(C._,{container:f,fixed:!0,height:"80vh",onAnimationDone:m,onDismiss:()=>l(!1),onScroll:async e=>{u&&p&&e.scrollHeight-(e.scrollTop+e.clientHeight){!e&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),l(e)},onValueChange:x,open:r,ref:S,shouldFilter:v,value:b,children:t})})},Input:(0,o.forwardRef)(function(e,t){let{setOpen:r,pages:a,setPages:n,activePage:s,loading:l,inputValue:c,setInputValue:d}=eu(),[p,h]=(0,o.useState)(!1),m=(0,o.useRef)(null),f=(0,o.useRef)(null),g=(0,y.useIsMobile)(),{placeholder:x,onKeyDown:v,onValueChange:b,customBreadcrumbs:j,...C}=e;return(0,o.useEffect)(()=>{f.current&&(d(""),h(!0),g||f.current.focus())},[a,d,g]),(0,i.jsxs)("div",{className:ec().topSection,children:[j||(a&&a.length>0?(0,i.jsx)("div",{className:ec().breadcrumbWrapper,children:(0,i.jsx)(w,{type:"menu",children:a.map((e,t)=>(0,i.jsx)(w.Item,{onClick:()=>{s!==e&&n?.(a.slice(0,t+1))},children:e.label},e.label))})}):null),(0,i.jsxs)("div",{className:ec().inputWrapper,children:[(0,i.jsx)(Q.Input,{autoFocus:!g,className:(0,u.$)(e.className,ec().input),onKeyDown:e=>{"Backspace"===e.key&&""===c&&a&&a.length>1&&p&&n?.(a.slice(0,a.length-1)),v?.(e)},onValueChange:e=>{m.current&&clearTimeout(m.current),b?.(e),p||""!==e?h(!1):m.current=setTimeout(()=>{h(!0)},500),d(e)},placeholder:s.placeholder||x,ref:ea([f,t]),value:c,...C}),(0,i.jsx)("button",{className:ec().escButton,onClick:()=>r(!1),type:"button",children:"Esc"})]}),l?(0,i.jsx)("div",{className:ec().loader}):null]})}),Item:function(e){let{children:t,prefix:r,callback:a,closeOnCallback:n=!0,keybind:s,className:l,suffix:o,value:c,...d}=e,{setOpen:p,onSelect:h}=eu();return(0,i.jsxs)(Q.Item,{...d,className:(0,u.$)(ec().item,l),onSelect:t=>{a(t),h?.({...e,closeOnCallback:n,value:e.value??t}),n&&p(!1)},value:"string"==typeof c?c:c?.join(" "),children:[r?(0,i.jsx)("div",{className:ec().itemPrefix,children:r}):null,t,s?(0,i.jsx)("div",{className:ec().keybinds,children:s.map(e=>(0,i.jsx)("kbd",{className:ec().keybind,children:function(e){switch(e){case"Meta":return"⌘";case"Shift":return"⇧";default:return e}}(e)},e))}):null,o?(0,i.jsx)(_.B,{gap:1,style:{marginLeft:"auto"},children:o}):null]})},List:function({children:e}){let t=(0,o.useRef)(null),{infiniteScrollingThreshold:r,infiniteScrollingCb:a,pages:n,inputValue:s}=eu(),l=(0,y.useIsMobile)();return(0,o.useEffect)(()=>{if(t.current&&a&&r&&!l){let e=async()=>{if(t.current&&t.current.scrollHeight-(t.current.scrollTop+t.current.clientHeight){n.removeEventListener("scroll",e)}}},[a,r,l]),(0,o.useEffect)(()=>{window.requestAnimationFrame(()=>{t.current&&(t.current.scrollTop=0)})},[n,s]),(0,i.jsxs)(Q.List,{className:ec().list,ref:t,children:[(0,i.jsx)(Q.Empty,{className:ec().empty,children:(0,i.jsxs)(m.E,{align:"center",color:"gray-900",children:["No results found for"," ",(0,i.jsxs)("span",{className:"text-gray-1000",children:['"',s,'"']}),"."]})}),e]})},Group:function({heading:e,children:t}){return(0,i.jsx)(Q.Group,{className:ec().group,heading:e,children:t})}},eh=(0,f.G)(''),em=(0,f.G)(''),ef=(0,f.G)('');var eg=r(29173),ex=r(42841);let ev=(0,f.G)(''),eb=(0,f.G)(''),ej=(0,f.G)('');var ew=r(22569),ey=r(50743),eC=r(46083),e_=r(62602);let ek=(0,f.G)(` `),eL=(0,f.G)(` `),eN=(0,f.G)(` `);var eS=r(44134);let eH=(0,f.G)(''),eE=(0,f.G)('');function eV(e){let t=[];for(let r=0;re.id===a.id);-1!==s?t[s+1]=n:(t.push(a),t.push(n))}window.localStorage?.setItem("ai-search-recent",JSON.stringify(t.slice(t.length-8)))}let e$={Search:{label:"Universal Search",placeholder:"What are you searching for?"},Ai:{label:"Ask v0",placeholder:"Ask v0..."},Theme:{label:"Theme",placeholder:"Change Theme..."},Projects:{label:"Projects",placeholder:"Search Projects..."},DeveloperTools:{label:"Developer Tools",placeholder:"Search..."},Teams:{label:"Teams",placeholder:"Search Teams..."}};e$.Projects,e$.Search,e$.DeveloperTools,e$.Teams,e$.Theme;var eA=r(21202),eR=r.n(eA);function eI({animated:e,className:t,...r}){return(0,i.jsxs)("svg",{className:`${eR().loader} min-w-6 translate-x-[-1.5px] [&_.fg]:stroke-black [&_.bg]:stroke-gray-200 aspect-square ${t}`,"data-animated":e,"data-loader":"true",fill:"none",viewBox:"0 0 128 128",xmlns:"http://www.w3.org/2000/svg",...r,children:[(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"v-clip",children:(0,i.jsx)("rect",{height:"98",width:"128",x:"0",y:"46"})})}),(0,i.jsxs)("g",{clipPath:"url(#v-clip)",children:[(0,i.jsx)("path",{className:"bg",d:"M 15 38 C 18.011 41.4115 41.0275 67.4845 48.5 77.3 c 5.9 6.8 5.8 6.7 5.8 -1.6 C 54.3 69.651 54.3 42.8741 54.3 42.8741",strokeWidth:"9.3"}),(0,i.jsx)("path",{className:"fg",d:"M 15 38 C 18.011 41.4115 41.0275 67.4845 48.5 77.3 c 5.9 6.8 5.8 6.7 5.8 -1.6 C 54.3 69.651 54.3 42.8741 54.3 42.8741",id:"v",pathLength:"1",strokeWidth:"9.7"})]}),(0,i.jsx)("path",{className:"bg",d:"M 102.9 48.5 L 75.7 75.2",strokeWidth:"9.3"}),(0,i.jsx)("path",{className:"fg",d:"M 102.9 48.5 L 75.7 75.2",id:"o-slash",pathLength:"1",strokeWidth:"9.7"}),(0,i.jsx)("path",{className:"bg",d:"M73.4653 41.7309L97.3029 41.7309C101.815 41.7309 109.905 46.2887 109.905 54.1283V77.1615",strokeWidth:"9.3"}),(0,i.jsx)("path",{className:"fg",d:"M73.4653 41.7309L97.3029 41.7309C101.815 41.7309 109.905 46.2887 109.905 54.1283V77.1615",id:"o-top",pathLength:"0.99",strokeWidth:"9.7"}),(0,i.jsx)("path",{className:"bg",d:"M104.996 81.8855L81.0314 81.8855C75.5619 81.8855 68.5885 76.5073 68.5885 69.1236L68.5885 46.2209",strokeWidth:"9.3"}),(0,i.jsx)("path",{className:"fg",d:"M104.996 81.8855L81.0314 81.8855C75.5619 81.8855 68.5885 76.5073 68.5885 69.1236L68.5885 46.2209",id:"o-bottom",pathLength:"0.99",strokeWidth:"9.7"})]})}let eP=(0,f.G)(''),eO=(0,f.G)('');var eD=r(90823),eT=r(44866);let eF=(0,f.G)('');var eZ=r(77636),eW=r(50063),eG=r(56785),ez=r(2243),eB=r.n(ez);function eU({children:e,as:t,className:r,preClassName:a,filename:n,textToCopy:s,hideLineNumbers:l,highlightedLinesNumbers:o,language:c,pure:d,trackCopy:p,"aria-label":h,...m}){let f=(0,i.jsx)(eW.Ay,{...eW.Gs,code:e||"",language:"svelte"===c||"astro"===c?"jsx":c,theme:void 0,children:({className:e,style:t,tokens:r,getLineProps:n,getTokenProps:s})=>(0,i.jsx)("pre",{className:(0,u.$)(e,eB().pre,a,{[String(eB().pure)]:d}),style:t,children:(0,i.jsx)("code",{className:eB().code,children:r.map((e,t)=>{let r=o?.includes(t+1),{key:a,...c}=n({line:e});return(0,i.jsx)("div",{className:(0,u.$)(eB().row,"line",{[String(eB().noLineNumbers)]:l&&d}),"data-highlighted":r,children:(0,i.jsx)("div",{...c,children:e.map((e,t)=>{let{key:r,...a}=s({token:e});return(0,i.jsx)("span",{...a},t)})})},t)})})})});return d?f:(0,i.jsx)(eG.m,{"aria-label":h,as:t,className:r,fileType:c,filename:n,hideLineNumbers:l,textToCopy:s,trackCopy:p,...m,children:f})}var eq=r(75799);let eJ={overrides:{a:e=>{let t=e.children[0];return t&&t.startsWith("(")&&t.endsWith(")")&&!Number.isNaN(Number.parseInt(t.substring(1,t.length-1),10))?(0,i.jsx)(eZ.N,{...e,className:"font-[500] text-inherit no-underline hover:opacity-60",target:"_blank",children:`[${e.children[0].substring(1,e.children[0].length-1)}]`}):(0,i.jsx)(eZ.N,{target:"_blank",type:"highlight",...e,children:e.children})},p:e=>e.children&&""!==e.children.toString().trim()?(0,i.jsx)("p",{...e}):null,code:e=>{let t=e.className?.replace("lang-","")||"";return e.className||/^(?javascript|typescript|jsx|tsx|html|sh|bash|css|json)/.test(e.children)?(0,i.jsx)(eU,{...e,language:t}):(0,i.jsx)("code",{...e,className:"whitespace-prewrap inline-block rounded-[4px] bg-[var(--ds-gray-100)] p-[4px] font-mono font-[400] leading-[1.5] text-[var(--ds-gray-1000)] [font-feature-settings:'ss09']"})}}},eK=(0,o.memo)(function({children:e}){return(0,i.jsx)(eq.A,{options:eJ,children:e})}),eX=e=>async t=>{try{await navigator.clipboard.writeText(e.content);let r=t.target;r.dataset.copied="true",r.clearCopy&&clearTimeout(r.clearCopy),r.clearCopy=setTimeout(()=>{delete r.dataset.copied},1250)}catch(e){console.error(e)}};function eY({message:e,onFeedback:t,onRegenerate:r,outputId:a,loading:n}){let s;if(!e.id)return null;if("user"===e.role)return(0,i.jsxs)("div",{className:"bg-background-100 h-[40px] cursor-pointer after:from-background-100 sticky top-0 z-10 flex w-full items-center gap-x-3 px-2 text-[14px] font-[500] after:absolute after:left-2 after:right-2 after:top-full after:h-[10px] after:bg-gradient-to-b after:to-transparent after:content-['']","data-message":e.role,id:`message-${e.id}`,onClick:()=>{document.querySelector(`#message-${a}`)?.scrollIntoView({behavior:"smooth",block:"start"})},children:[(0,i.jsx)(eF,{className:"w-8"}),(0,i.jsx)("p",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap",children:e.content})]});if(e.toolInvocations){let t=e.toolInvocations.find(e=>"provideLinks"===e.toolName);t?.args&&(s=t.args.links)}let l=e.content?e.content.replaceAll(/```(?\w+)[^\n]+/g,"```$"):"";return(0,i.jsxs)("div",{className:"group/message pb-8 [&:not(:last-child)]:pb-[80px] scroll-mt-[40px]","data-message":e.role,"data-score":e.score,id:`message-${e.id}`,children:[(0,i.jsxs)("div",{className:"px-2 leading-[22px] grid grid-cols-[auto,1fr] gap-x-3",children:[(0,i.jsx)(eI,{animated:n,className:"w-8 sticky top-[40px]"},`avatar-${e.id}`),(0,i.jsx)("div",{className:"pt-1 min-w-0 [&>*]:text-[14px] [&_ul]:pl-4 [&_ul]:mt-0 [&_ol]:pl-4 [&_ol]:mt-0 [&>*]:leading-[22px] [&>div]:flex [&>div]:flex-col [&>div]:gap-y-4 [&_p]:mt-0",children:(0,i.jsx)(eK,{children:(l.match(/```/g)||[]).length%2!=0?`${l}\`\`\``:l})},`content-${e.id}`)]}),"cancelled"!==e.state||l?null:(0,i.jsx)("span",{children:"Cancelled before answer"}),"done"===e.state||"cancelled"===e.state?(0,i.jsxs)("div",{className:"mt-[0.25rem] flex items-center justify-end gap-x-2 p-[0.25rem]",children:["cancelled"!==e.state?(0,i.jsxs)(i.Fragment,{children:[t?(0,i.jsxs)(i.Fragment,{children:[e.feedbackError?(0,i.jsx)("span",{className:"flex flex-col gap-y-0 px-3 text-[13px] text-red-700",children:"Something went wrong. Try again."}):null,(0,i.jsx)(ey.$,{"aria-label":"Give positive feedback",className:"group group-[[data-score='positive']]/message:bg-blue-400 [&>span]:overflow-visible",onClick:()=>t("positive",e.id),shape:"square",size:"small",svgOnly:!0,type:"tertiary",children:(0,i.jsx)(eO,{className:"origin-left group-hover:rotate-[-20deg] group-focus-visible:rotate-[-20deg] group-active:rotate-0 motion-safe:transition"})}),(0,i.jsx)(ey.$,{"aria-label":"Give negative feedback",className:"group group-[[data-score='negative']]/message:bg-red-400 [&>span]:overflow-visible",onClick:()=>t("negative",e.id),shape:"square",size:"small",svgOnly:!0,type:"tertiary",children:(0,i.jsx)(eP,{className:"origin-left group-hover:rotate-[20deg] group-focus-visible:rotate-[20deg] group-active:rotate-0 motion-safe:transition"})})]}):null,(0,i.jsxs)(ey.$,{"aria-label":"Copy to clipboard",className:"group [&>span]:overflow-visible",onClick:eX(e),shape:"square",size:"small",svgOnly:!0,type:"tertiary",children:[(0,i.jsx)(eD.Q,{className:"absolute transition delay-100 duration-300 group-data-[copied]:scale-50 group-data-[copied]:opacity-0 group-data-[copied]:delay-0"}),(0,i.jsx)(eT.J,{className:"absolute scale-50 opacity-0 transition duration-300 group-data-[copied]:scale-100 group-data-[copied]:opacity-100 group-data-[copied]:delay-100"})]})]}):null,e.latest||"cancelled"===e.state?(0,i.jsx)(ey.$,{"aria-label":"Regenerate answer",className:"group [&>span]:overflow-visible",onClick:()=>r(),shape:"square",size:"small",svgOnly:!0,type:"tertiary",children:(0,i.jsx)(eb,{className:"origin-center group-hover:rotate-[-360deg] group-hover:scale-125 group-focus-visible:rotate-[-360deg] group-focus-visible:scale-125 group-active:scale-100 motion-safe:transition"})}):null]}):null,s&&s.length>0&&"done"===e.state?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h3",{className:"leading-1 p-2.5 text-[13px] font-medium text-gray-600",children:"Resources"}),(0,i.jsx)("ol",{className:"m-0 list-none p-0",children:s.map(t=>{var r;return(0,i.jsx)("li",{children:(0,i.jsxs)("a",{className:"hover:bg-gray-alpha-100 text-gray-1000 flex min-h-[40px] cursor-pointer items-center gap-x-3 rounded-[6px] px-2 py-0 text-[14px] no-underline",href:t.url,rel:"noopener noreferrer",target:"_blank",children:[(0,i.jsx)("span",{className:"grid h-[20px] w-8 place-items-center text-gray-900",children:"nextjs"===(r=t.type||"reference")?(0,i.jsx)(eL,{"aria-label":"Next.js Docs"}):"turbo"===r?(0,i.jsx)(eN,{"aria-label":"Turborepo Docs"}):"vercel"===r?(0,i.jsx)(ek,{"aria-label":"Vercel Docs"}):"aisdk"===r?(0,i.jsx)(eE,{"aria-label":"AI SDK Docs"}):"reference"===r?(0,i.jsx)(em,{"aria-label":"Reference"}):"guide"===r||r.toLowerCase().includes("guide")?(0,i.jsx)(eH,{"aria-label":"Guide"}):(0,i.jsx)(eS.G,{"aria-label":"Docs"})}),(0,i.jsxs)("span",{className:"flex flex-1 gap-x-2 py-2 leading-[1.4]",children:[(0,i.jsx)("p",{className:"font-sm m-0 line-clamp-1 overflow-hidden text-ellipsis font-[500]",children:t.title}),(0,i.jsx)("span",{className:"text-xs font-[500] text-inherit",children:`[${t.label}]`})]})]})},`${e.id}__${t.label}`)})})]}):null]})}let eQ=["What is Vercel?","How can I use Next.js on Vercel?","How can I use the Vercel AI SDK?","Can you explain the Vercel Pro plan?"],e0=["What is Next.js?","How can I use Next.js on Vercel?","What is Partial Prerendering?","Can you explain parallel routes?"];function e1({onAsk:e,isNextjs:t}){return(0,i.jsx)("div",{className:"pl-2 [&_[cmdk-group-heading]]:p-0 [&_[cmdk-group-items]]:grid [&_[cmdk-group-items]]:gap-y-2 [&_[aria-selected=true]]:bg-[var(--ds-background-200)]",children:(0,i.jsx)(ep.Group,{heading:"Suggested Prompts",children:(t?e0:eQ).map(t=>(0,i.jsx)(ep.Item,{callback:e(t),className:"[&>p]:m-0 group border-[1px] border-solid border-gray-500 bg-gray-200 px-4 w-fit",closeOnCallback:!1,isStatic:!0,value:t,children:(0,i.jsx)("span",{className:"overflow-hidden text-ellipsis",children:t})},t))})})}function e3({onOpen:e}){let t=window.localStorage?.getItem("ai-search-recent");if(t){let r=JSON.parse(t);if(!r.length)return null;let a=eV(r).reverse();return(0,i.jsx)("div",{className:"pl-2 [&_[cmdk-group-heading]]:p-0 [&_[cmdk-group-items]]:grid [&_[cmdk-group-items]]:gap-y-2 [&_[aria-selected=true]]:bg-[var(--ds-background-200)]",children:(0,i.jsx)(ep.Group,{heading:"Recents",children:a.map(t=>t[0].content?(0,i.jsx)(ep.Item,{callback:e(t),className:"[&>p]:m-0 group border-[1px] border-solid border-gray-500 bg-gray-200 px-4 w-fit",closeOnCallback:!1,isStatic:!0,value:t[0].id,children:(0,i.jsx)("span",{className:"overflow-hidden text-ellipsis",children:t[0].content})},t[0].id):null)})})}return null}var e5=r(26331),e2=r.n(e5);function e7({aiEndpoint:e,id:t,isNextjs:r,name:a="v0"}){var n,s;let{append:l,messages:c,setMessages:d,error:u,stop:h,isLoading:m,reload:f}=(0,ex.Y_)({keepLastMessageOnError:!0,api:e||"/api/ai/search",id:t,onFinish:e=>{if(w.current&&C.current&&w.current.unobserve(C.current),"true"===document.body.dataset.scrollSync&&C.current){let e=C.current.querySelector('[data-message="assistant"]');requestAnimationFrame(()=>{document.body.dataset.scrollSync="false",e?.scrollIntoView({behavior:"smooth",block:"end"})})}d(r=>{let a=r.map(t=>t.id===e.id?{...t,state:"done",latest:!0}:{...t,latest:!1});return eM(a),fetch("/api/ai/conversations",{method:"POST",body:JSON.stringify({id:t,messages:r.map(e=>({id:e.id,role:e.role,content:e.content})),type:"openai"})}),a})}}),{inputValue:g,activePage:x,pages:v,setPages:b}=eu(),j=(0,o.useRef)(null),w=(0,o.useRef)(null),y=(0,o.useRef)(void 0),C=(0,o.useRef)(null),_=(0,o.useRef)(0),k=(0,o.useRef)(null),L=(0,o.useRef)(null),N=(0,o.useRef)(null),[S,H]=(0,o.useState)(void 0!==(n="ai-banner-dismiss",p.A.get(n))),[E,V]=(0,o.useState)(!1),M=async(e,t)=>{let r=[...c.map(r=>r.id===t?{...r,score:e,feedbackError:void 0}:{...r})];d(r),eM(r),(await fetch("/api/ai/feedback",{method:"POST",body:JSON.stringify({type:e,messageId:t})})).ok||d([...c.map(e=>e.id===t?{...e,score:void 0,feedbackError:!0}:{...e})])},$=()=>void f();(0,o.useEffect)(()=>{w.current=new ResizeObserver(e=>{let t=e[0],r=y.current;if(r){if(t.contentRect.height-r>200&&t.contentRect.height>(t.target.parentElement?.offsetHeight||200)){y.current=t.contentRect.height;let e=t.target.querySelector('[aria-live="polite"]'),r=t.target.querySelector('[data-message="assistant"]');!e&&r&&r.scrollIntoView({behavior:"smooth",block:"end"})}}else y.current=t.contentRect.height})},[]),(0,o.useEffect)(()=>{j.current&&N.current&&""!==g.trim()&&!_.current&&(_.current=Date.now(),N.current.value=g,j.current.requestSubmit())},[g]),(0,o.useEffect)(()=>{function e(){C.current&&w.current&&w.current.unobserve(C.current),document.body.dataset.scrollSync="false",document.body.removeEventListener("wheel",e)}w.current&&C.current&&m&&"true"!==document.body.dataset.scrollObserving&&(document.body.dataset.scrollSync="true",document.body.dataset.scrollObserving="true",requestAnimationFrame(()=>{L.current?.scrollTo({top:0,behavior:"smooth"}),k.current?.addEventListener("wheel",e,{once:!0})}),w.current.observe(C.current)),m||(document.body.dataset.scrollObserving="false",e())},[c,m]);let A=e=>{if(L.current)switch(e.key){case"Home":L.current.scrollTo({top:0,behavior:"smooth"});break;case"End":L.current.scrollTo({top:L.current.scrollHeight,behavior:"smooth"});break;case"ArrowDown":L.current.scrollTo({top:L.current.scrollTop+100,behavior:"smooth"});break;case"ArrowUp":L.current.scrollTo({top:L.current.scrollTop-100,behavior:"smooth"})}},R=eV(c.filter(e=>e.id)).reverse();return(0,i.jsxs)("div",{className:"",children:[(0,i.jsxs)("div",{className:"border-gray-alpha-400 bg-background-100 relative z-50 border-0 border-b-[1px] border-solid p-[12px] sticky top-0",children:[(0,i.jsxs)("div",{className:"mb-[10px] flex justify-between",children:[(0,i.jsx)("div",{className:"flex gap-x-2",children:v?.map((e,t)=>i.jsx("button",{className:`${e.label===e$.Ai.label?"pr-[30px]":""} max-h-[20px] relative border-gray-alpha-400 bg-background-200 hover:border-gray-alpha-500 hover:text-gray-1000 active:bg-background-100 active:text-gray-1000 cursor-pointer rounded-[4px] border-[1px] border-solid px-[6px] py-[2px] text-[12px] text-gray-900 transition-colors hover:bg-gray-200 focus-visible:outline-none focus-visible:[box-shadow:var(--ds-focus-ring)] active:border-gray-600`,onClick:()=>{x!==e&&b?.(v.slice(0,t+1))},type:"button",children:e.label===e$.Ai.label?i.jsxs("span",{className:"flex items-center [&_svg]:h-[20px] [&_svg]:min-w-0 [&_svg]:absolute [&_svg]:right-[6px]",children:["Ask",i.jsx(eI,{})]}):e.label},e.label))}),(0,i.jsx)(ew.E,{size:"sm",variant:"gray-subtle",children:"Experimental"})]}),(0,i.jsxs)("form",{className:"relative flex w-full items-center gap-x-2 pl-[4px]",noValidate:!0,onSubmit:e=>{if(e.preventDefault(),!m&&N.current&&!N.current.validity.valid){let e=document.querySelector("[cmdk-dialog]");e&&(e.style.animation=null),e?.classList.add("shake");let t=e?.getAnimations()[0];t?.finished.then(()=>{e&&(e.style.animation="none"),e?.classList.remove("shake")}),V(!0);return}if(m){if(d(c.map((e,t)=>t===c.length-1?{...e,state:"cancelled"}:{...e})),N.current&&N.current.validity.valid&&""!==N.current.value){h();let e=N.current.value;N.current.value="",k.current?.scrollTo(0,0),l({role:"user",content:e});return}h();return}if(N.current&&N.current.validity.valid&&""!==N.current.value){E&&V(!1);let e=N.current.value;N.current.value="",u&&d(c.slice(0,c.length-1)),l({role:"user",content:e})}},ref:j,children:[(0,i.jsx)("input",{"aria-errormessage":"ai-hint","aria-invalid":E,autoComplete:"off",autoFocus:!0,className:"peer placeholder:opacity-0 text-gray-1000 h-[28px] flex-1 overflow-hidden text-ellipsis border-none bg-transparent p-0 text-[18px] placeholder-gray-900 outline-none",name:"query",onKeyDown:e=>{"Enter"===e.key&&j.current&&(N.current?.value!==""&&0===c.length||c.length>0)?(e.preventDefault(),e.stopPropagation(),j.current.requestSubmit()):V(!1),"ArrowDown"===e.key&&L.current&&c.length>0&&L.current.focus()},pattern:"^@?\\b\\w+\\b.*\\b\\w+\\b.*",placeholder:`Ask ${a}`,ref:N,required:!m,role:c.length>0?void 0:"combobox",type:"text"}),(0,i.jsxs)("span",{"aria-hidden":"true",className:"hidden peer-placeholder-shown:flex pl-[4px] items-center absolute inset-0 [&_svg]:w-7 gap-x-1 opacity-70 pointer-events-none",children:[(0,i.jsx)("span",{children:"Ask"}),(0,i.jsx)(eI,{})]}),(0,i.jsx)(ey.$,{"aria-label":"Search",shape:"square",size:"small",svgOnly:!0,type:"tertiary",children:m?(0,i.jsx)(ej,{}):(0,i.jsx)(ev,{})}),E?(0,i.jsxs)("span",{className:"invert-theme text-gray-1000 bg-background-100 absolute top-full inline-block translate-y-1 rounded-[6px] px-3 py-2 pt-2 text-[13px] motion-safe:animate-[fade-in_0.125s]",id:"ai-hint",children:["Enter at least ",(0,i.jsx)("strong",{children:"two words"}),(0,i.jsx)("svg",{"aria-hidden":"true",className:"text-background-100 absolute bottom-full left-[10%]",fill:"none",height:"6",viewBox:"0 0 14 6",width:"14",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M0.17157 6L13.8284 6C13.298 6 12.7893 5.78929 12.4142 5.41422L8.41421 1.41422C7.63316 0.633168 6.36683 0.633168 5.58578 1.41422L1.58578 5.41422C1.21071 5.78929 0.702003 6 0.17157 6Z",fill:"currentColor"})})]}):null]})]}),0===R.length?(0,i.jsxs)("div",{className:"flex-1 overflow-auto",children:[(0,i.jsxs)("div",{"aria-live":"polite",className:"min-h-[40px] pt-1 px-4 leading-[22px] flex items-start gap-x-3",role:"status",children:[(0,i.jsx)(eI,{className:"w-8 min-w-8"}),(0,i.jsxs)("p",{className:"m-0 text-[14px] leading-[1] pt-1",children:["Hi, I'm"," ",(0,i.jsx)(eI,{"aria-hidden":"true",className:"w-6 leading-[1] align-middle"}),(0,i.jsx)("span",{className:"sr-only",children:"v0"}),", Vercel's AI assistant trained on documentation and other content."]})]}),(0,i.jsx)("div",{"aria-labelledby":"ai-options",className:"pl-[46px] pb-8 [&>div]:!max-h-[unset]",role:"listbox",tabIndex:0,children:(0,i.jsxs)(ep.List,{children:[(0,i.jsx)(e3,{onOpen:e=>()=>{N.current?.value===""&&d([...e])}}),(0,i.jsx)(e1,{isNextjs:r,onAsk:e=>()=>{N.current?.value===""&&l({role:"user",content:e})}})]})})]}):null,(0,i.jsx)("div",{ref:k,children:(0,i.jsx)("div",{className:`after:from-background-100 flex ${R.length?"min-h-64 mt-4":""} flex-col overflow-hidden md:overflow-auto px-2 outline-blue-700 after:pointer-events-none after:absolute after:bottom-0 after:left-2 after:right-2 after:h-[20px] after:bg-gradient-to-t after:to-transparent after:content-[''] focus-visible:outline focus-visible:outline-2 md:max-h-96`,onBlur:e=>{L.current&&!L.current.contains(e.nativeEvent.relatedTarget)&&(delete L.current.dataset.syntheticScroll,document.body.removeEventListener("keydown",A))},onFocus:()=>{L.current&&!L.current.dataset.syntheticScroll&&(L.current.dataset.syntheticScroll="true",document.body.addEventListener("keydown",A))},ref:L,tabIndex:-1,children:(0,i.jsxs)("div",{ref:C,children:[R.length>0&&R.map((e,t)=>(0,i.jsxs)(o.Fragment,{children:[e.map(r=>(0,i.jsx)(eY,{loading:"assistant"===r.role&&m?0===t:void 0,message:r,onFeedback:(e,t)=>void M(e,t),onRegenerate:$,outputId:2===e.length?e[1].id:void 0},r.id)),m&&1===e.length?(0,i.jsxs)("div",{"aria-live":"polite",className:"group/message pb-8 [&:not(:last-child)]:pb-[80px] scroll-mt-[40px] snap-end px-2 leading-[22px] flex items-center gap-x-3",role:"status",children:[(0,i.jsx)(eI,{animated:!0,className:"w-8"}),(0,i.jsx)("p",{className:`${e2().shimmer} animate-shimmer bg-[length:800%_100%] bg-clip-text text-sm text-transparent m-0`,children:"is thinking..."})]}):null,u?(0,i.jsx)("div",{"aria-live":"polite",className:"pb-8 [&:not(:last-child)]:pb-[80px] scroll-mt-[40px] text-[14px] text-red-700",role:"status",children:(0,i.jsxs)("div",{className:"px-2 leading-[22px] grid grid-cols-[auto,1fr] gap-x-3",children:[(0,i.jsx)(eI,{className:"w-8"}),(0,i.jsx)("p",{className:"m-0 pt-1",children:"Something went wrong. Please try again."}),(0,i.jsx)("div",{className:"flex items-center justify-end col-span-full gap-x-2 p-[0.25rem]",children:(0,i.jsx)(ey.$,{"aria-label":"Regenerate answer",className:"group [&>span]:overflow-visible",onClick:()=>void f(),shape:"square",size:"small",svgOnly:!0,type:"tertiary",children:(0,i.jsx)(eb,{className:"origin-center group-hover:rotate-[-360deg] group-hover:scale-125 group-focus-visible:rotate-[-360deg] group-focus-visible:scale-125 group-active:scale-100 motion-safe:transition"})})})]})}):null]},`pairing-${e[0].id}`)),!S&&c.length>0?(0,i.jsx)(eC.Note,{action:(0,i.jsx)(ey.$,{onClick:()=>{H(!0),function(e,t,r="365d",a,n="/"){let s=new Date(Date.now()+(0,e_.A)(r)),i=function(e){if(e)return!!e.startsWith("https:");try{if(window.location.protocol)return"https:"===window.location.protocol}catch{}return!0}(void 0);p.A.set(e,"1",{expires:s,path:n,secure:i,SameSite:"Lax"})}("ai-banner-dismiss",0,"365d")},style:{marginLeft:"auto"},type:"secondary",children:"Dismiss"}),className:"absolute bottom-2 left-2 right-2 z-10 min-h-[unset] !bg-gray-200 !text-gray-1000 [&>div>span]:w-full",label:!1,children:(0,i.jsxs)("div",{className:"flex flex-col flex-1 items-start justify-center",children:[(0,i.jsx)("strong",{children:"Ask AI is experimental and may produce inaccurate answers"}),(0,i.jsx)("span",{children:"Always verify output with its provided documentation sources"})]})}):null]})})})]})}function e8({aiEndpoint:e,isNextjs:t,name:r}){let a=(0,eg.$C)();return(0,i.jsx)(e7,{aiEndpoint:e,id:a,isNextjs:t,name:r})}function e4({name:e="v0",onSelect:t}){let{inputValue:r}=eu(),a=r.match(/^@?\b\w+\b.*\b\w+\b.*/g);return(0,i.jsx)(ep.Group,{heading:"",children:(0,i.jsx)(ep.Item,{callback:t,className:"group/ai",closeOnCallback:!1,isStatic:!0,prefix:(0,i.jsx)(eI,{className:"group-hover/ai:[&_.fg]:[stroke-dashoffset:calc(3)] group-hover/ai:[&_.fg]:motion-safe:transition-all group-hover/ai:[&_.fg]:motion-safe:duration-500"}),children:(0,i.jsxs)("div",{className:"flex w-1/2 flex-1 items-center justify-between gap-x-4",children:[(0,i.jsxs)("div",{className:"grid grid-cols-[auto_1fr_auto]",children:[(0,i.jsxs)("span",{className:"whitespace-nowrap",children:[(0,i.jsx)("span",{children:"Ask"}),"\xa0",(0,i.jsx)("span",{children:r&&a?'"':""})]}),r&&a?(0,i.jsx)("span",{className:"overflow-hidden text-ellipsis",children:r}):null,(0,i.jsx)("span",{className:"whitespace-nowrap",children:r&&a?'"':""}),(0,i.jsx)("span",{className:"sr-only",children:`Ask ${e} ${r&&a?'"':""}${r&&a?r:null}${r&&a?'"':""}`})]}),(0,i.jsx)("div",{className:"",children:(0,i.jsx)(ew.E,{size:"sm",variant:"gray-subtle",children:"Experimental"})})]})},"ai-search")})}var e9=r(70265),e6=r(73638);let te=()=>{let{data:e,isLoading:t}=(0,e6.Ay)("/api/ai/ping",tt);return{enabled:e?.enabled??!1,isLoading:t||!e}};async function tt(e){return(await fetch(e,{method:"POST"})).json().catch(()=>({enabled:!1}))}let tr=["Shift","Meta","Alt","Control"],ta=["select","textarea","input"],tn=()=>/Mac|iPod|iPhone|iPad/.test(navigator.platform),ts={13:"v13.5.7",14:"v14.2.20",canary:"v15.0.4-canary.41",stable:"v15.0.3"};var ti=r(16542),tl=r.n(ti);let to=d()("NNTAHQI9C5","948b42d1edd177a55c6d6ae8dab24621"),tc=[{title:"Introduction",content:"Introduction",objectID:"introduction",path:"/docs/"},{title:"Getting Started",content:"Getting Started",objectID:"getting-started",path:"/docs/app/getting-started"},{title:"App Router",content:"App Router",objectID:"app-router",path:"/docs/app"},{title:"Architecture",content:"Architecture",objectID:"architecture",path:"/docs/architecture"},{title:"Pages Router",content:"Pages Router",objectID:"pages-router",path:"/docs/pages"},{title:"API Reference",content:"API Reference",objectID:"api-reference",path:"/docs/pages/api-reference"},{title:"Accessibility",content:"Accessibility",objectID:"accessibility",path:"/docs/architecture/accessibility"}],td={};for(let e of Object.keys(ts))td[e]=tc.map(t=>({...t,path:"stable"!==e?t.path.replace("/docs",`/docs/${e}`):t.path}));let tu={Home:{label:"Next.js Search",placeholder:"What are you searching for?"},Ai:{label:"Ask v0",placeholder:"Ask v0..."}};function tp({group:e,hit:t,setOpen:r}){let a=(0,l.useRouter)(),n=t||e;return n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ep.Item,{callback:()=>{a.push(`${n.path}`),r(!1)},isStatic:!0,prefix:(0,i.jsx)(em,{}),value:n.objectID,children:n.title},n.objectID),e?.hits?e.hits.map(e=>(0,i.jsx)(ep.Item,{callback:()=>{a.push(`${e.path}${e.anchor?`#${e.anchor}`:""}`),r(!1)},isStatic:!0,value:e.objectID,children:(0,i.jsxs)("div",{className:"ml-[8px] flex h-12 w-full items-center gap-2 overflow-hidden border-l border-gray-400 px-4 pl-[22px] text-sm text-gray-900 md:h-10",children:[e.content===e.section?(0,i.jsx)(ef,{className:"flex-shrink-0"}):(0,i.jsx)(eh,{className:"flex-shrink-0"}),(0,i.jsx)("span",{className:"text-gray-1000 overflow-hidden overflow-ellipsis whitespace-nowrap",children:e.content})]})},e.objectID)):null]}):null}function th({children:e,className:t,...r}){return(0,i.jsx)("button",{className:(0,u.$)("h-[20px] cursor-pointer rounded-[4px] border border-solid px-1 text-xs font-medium",t||"bg-vercel-100 border border-solid border-gray-200 text-gray-900 hover:border-gray-200 hover:text-gray-900 dark:border-gray-200 dark:bg-gray-100 dark:text-gray-900 dark:hover:text-gray-600"),tabIndex:-1,type:"button",...r,children:e})}function tm(){let[e,t]=(0,o.useState)(!1),[r,a]=(0,o.useState)(""),[n,s]=(0,o.useState)(""),[c,d]=(0,o.useState)([]),h=(0,l.usePathname)(),m=(0,o.useMemo)(()=>h?.includes("/pages/")?"pages":"app",[h]),[f,g]=(0,o.useState)([tu.Home]),x=f[f.length-1].label===tu.Ai.label,v=(0,o.useMemo)(()=>{let e=h?.split("/").filter(e=>""!==e)[1];return e&&Object.keys(ts).includes(e)?e:"stable"},[h]),b=p.A.get(e9.ym.NEXT_DOCS_SEARCH_ROUTER_TYPE)||m,[j,w]=(0,o.useState)(b),y="isPages:true OR isApp:true";"app"===j?y="isApp:true":"pages"===j&&(y="isPages:true");let C=(0,o.useMemo)(()=>({"$mod+k":e=>{e.preventDefault(),t(e=>!e)},"/":e=>{e.preventDefault(),t(e=>!e)}}),[]);(0,o.useEffect)(()=>{e&&w(p.A.get(e9.ym.NEXT_DOCS_SEARCH_ROUTER_TYPE)||m)},[e,m]),(0,o.useEffect)(()=>(function(e,t,r={}){let a=Object.keys(t).map(e=>[function(e){let t=tn()?"Meta":"Control";return e.trim().split(" ").map(e=>{let r=e.split("+"),a=r.pop();return[r=r.map(e=>"$mod"===e?t:e),a]})}(e),t[e]]),n=new Map,s=null,i=e=>{e.getModifierState&&e.getModifierState(e.key)||r.ignoreFocus&&document.activeElement&&(-1!==ta.indexOf(document.activeElement.tagName.toLowerCase())||"true"===document.activeElement.contentEditable)||(a.forEach(t=>{let r=t[0],a=t[1],s=n.get(r)||r,i=s[0];i[1].toUpperCase()!==e.key.toUpperCase()&&i[1]!==e.code||i[0].find(t=>!e.getModifierState(t))||tr.find(t=>!i[0].includes(t)&&e.getModifierState(t))?n.delete(r):s.length>1?n.set(r,s.slice(1)):(n.delete(r),a(e))}),clearTimeout(s),s=setTimeout(n.clear.bind(n),1e3))};return e.addEventListener("keydown",i),()=>{e.removeEventListener("keydown",i)}})(window,C,{ignoreFocus:!0}),[C]),(0,o.useEffect)(()=>{(async()=>{d((await to.search([{indexName:`nextjs_docs_${v}`,query:r,params:{filters:y}}])).results[0].hits)})()},[r,y,d,v]);let{enabled:_}=te(),k=(0,o.useMemo)(()=>{let e={};return c.forEach(t=>{e[t.title]?e[t.title]?.hits.push(t):e[t.title]={objectID:`${t.objectID}-group`,title:t.title,path:t.path,hits:[t]}}),Object.values(e)},[c]),L=(0,o.useMemo)(()=>(0,i.jsxs)("div",{className:"mb-[10px] flex w-full flex-none items-center gap-2 rounded-t-lg text-xs",children:[(0,i.jsx)(th,{"aria-label":"Search App Router documentation",className:(0,u.$)({"border-1 border-inset border-blue-400 bg-blue-200 text-blue-700":"app"===j}),onClick:e=>{e.preventDefault(),w("app")},children:"App"}),(0,i.jsx)(th,{"aria-label":"Search Pages Router documentation",className:(0,u.$)({"border-1 border-inset border-purple-400 bg-purple-200 text-purple-700":"pages"===j}),onClick:e=>{e.preventDefault(),w("pages")},children:"Pages"})]}),[j]);return(0,i.jsxs)(ep.Root,{label:"Search Command Menu",onValueChange:e=>{s(e)},open:e,pages:f,setOpen:e=>{t(e),e||setTimeout(()=>{a(""),w(b)},200)},setPages:g,shouldFilter:!1,value:n,children:[x?null:(0,i.jsx)(ep.Input,{customBreadcrumbs:L,onValueChange:e=>{a(e)},placeholder:"Search documentation",value:r}),(0,i.jsx)("div",{className:`uncontained tailwind tailwind-no-preflight ${tl().cmdk}`,children:x?(0,i.jsx)(e8,{aiEndpoint:"/api/ai/search",isNextjs:!0,name:"v0"}):(0,i.jsxs)(ep.List,{children:[_?(0,i.jsx)(e4,{name:"v0",onSelect:()=>g([tu.Home,tu.Ai])}):null,""!==r?k.map(e=>(0,i.jsx)(tp,{group:e,setOpen:t},e.title)):td[v].map(e=>(0,i.jsx)(tp,{hit:e,setOpen:t},e.path))]})})]})}},11582:(e,t,r)=>{"use strict";r.d(t,{Provider:()=>l});var a=r(94450),n=r(72202),s=r(18981),i=r(48264);function l({children:e}){return(0,a.jsx)(n.WX,{children:(0,a.jsx)(i.ON,{storageKey:"zeit-theme",children:(0,a.jsx)(s.F,{features:()=>r.e(7512).then(r.bind(r,57512)).then(e=>e.default),children:e})})})}},25552:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var a=r(94450),n=r(68096),s=r.n(n);function i({center:e=!1,vCenter:t=!1,dark:r=!1,gray:n=!1,wide:i=!1,wideOnMobile:l=!1,small:o=!1,padding:c=!1,overflow:d=!1,minHeight:u=null,dotBackground:p=!1,children:h,mobileStyle:m=null,divider:f=!1,...g}){return(0,a.jsxs)("div",{...g,className:s().dynamic([["6968ca852993342",[c?"6.25rem":"0",i?"0":"1rem",i&&!o?"":"max-width: 1024px;",o?"max-width: 768px;":"",e?"text-align: center;":"",r?"background: #111;":"",r?"color: #f1f1f1;":"",n?"background-color: #fafafa;":"",n?"border-top: 1px solid #eaeaea;":"",n?"border-bottom: 1px solid #eaeaea;":"",i&&!d?"overflow: hidden;":"",u?`min-height: ${u}px;`:"",t?"display: flex; align-items: center;":"",p?` background-image: radial-gradient(#D7D7D7 1px, transparent 1px), radial-gradient(#d7d7d7 1px, transparent 1px); background-position: 0 0, 25px 25px; background-size: 50px 50px; `:"",f?"border-top: 1px solid rgba(0,0,0,0.1);":"",c?"4rem":"0",i||l?"0":"2rem",l&&!d?"overflow: hidden;":"",c?"4rem":"0",i||l?"0":"1rem",m||""]]])+" "+(g&&null!=g.className&&g.className||""),children:[(0,a.jsx)(s(),{id:"6968ca852993342",dynamic:[c?"6.25rem":"0",i?"0":"1rem",i&&!o?"":"max-width: 1024px;",o?"max-width: 768px;":"",e?"text-align: center;":"",r?"background: #111;":"",r?"color: #f1f1f1;":"",n?"background-color: #fafafa;":"",n?"border-top: 1px solid #eaeaea;":"",n?"border-bottom: 1px solid #eaeaea;":"",i&&!d?"overflow: hidden;":"",u?`min-height: ${u}px;`:"",t?"display: flex; align-items: center;":"",p?` background-image: radial-gradient(#D7D7D7 1px, transparent 1px), radial-gradient(#d7d7d7 1px, transparent 1px); background-position: 0 0, 25px 25px; background-size: 50px 50px; `:"",f?"border-top: 1px solid rgba(0,0,0,0.1);":"",c?"4rem":"0",i||l?"0":"2rem",l&&!d?"overflow: hidden;":"",c?"4rem":"0",i||l?"0":"1rem",m||""],children:`div.__jsx-style-dynamic-selector{width:100%;margin:0 auto;padding:${c?"6.25rem":"0"} ${i?"0":"1rem"};${i&&!o?"":"max-width: 1024px;"} ${o?"max-width: 768px;":""} ${e?"text-align: center;":""} ${r?"background: #111;":""} ${r?"color: #f1f1f1;":""} ${n?"background-color: #fafafa;":""} ${n?"border-top: 1px solid #eaeaea;":""} ${n?"border-bottom: 1px solid #eaeaea;":""} ${i&&!d?"overflow: hidden;":""} ${u?`min-height: ${u}px;`:""} ${t?"display: flex; align-items: center;":""} ${p?` background-image: radial-gradient(#D7D7D7 1px, transparent 1px), radial-gradient(#d7d7d7 1px, transparent 1px); background-position: 0 0, 25px 25px; background-size: 50px 50px; `:""} ${f?"border-top: 1px solid rgba(0,0,0,0.1);":""}}div.__jsx-style-dynamic-selector:after{content:"";display:table;clear:both}@media screen and (max-width:960px){div.__jsx-style-dynamic-selector{padding:${c?"4rem":"0"} ${i||l?"0":"2rem"};${l&&!d?"overflow: hidden;":""}}}@media screen and (max-width:640px){div.__jsx-style-dynamic-selector{padding:${c?"4rem":"0"} ${i||l?"0":"1rem"};${m||""}}}`}),h]})}},20839:(e,t,r)=>{"use strict";r.d(t,{ExternalFooterLink:()=>i});var a=r(94450),n=r(8911),s=r(96076);function i({path:e,children:t}){let r=(0,n.usePathname)(),i=(0,s.E)(`https://vercel.com${e}?utm_source=next-site&utm_medium=footer`,r);return(0,a.jsx)("a",{href:i,rel:"noopener",target:"_blank",children:t})}},39489:(e,t,r)=>{"use strict";r.d(t,{Header:()=>er});var a=r(94450),n=r(20282),s=r(31121),i=r(68564),l=r(8911),o=r(83823),c=r(96076),d=r(96666),u=r(99849);let p=n.forwardRef(function({color:e="var(--geist-foreground)",height:t,width:r=394,...n},s){return(0,a.jsxs)("svg",{"aria-label":"Next.js logotype",height:t||68,ref:s,role:"img",viewBox:"0 0 394 79",width:t?void 0:r,...n,children:[(0,a.jsx)("path",{d:"M261.919 0.0330722H330.547V12.7H303.323V79.339H289.71V12.7H261.919V0.0330722Z",fill:e}),(0,a.jsx)("path",{d:"M149.052 0.0330722V12.7H94.0421V33.0772H138.281V45.7441H94.0421V66.6721H149.052V79.339H80.43V12.7H80.4243V0.0330722H149.052Z",fill:e}),(0,a.jsx)("path",{d:"M183.32 0.0661486H165.506L229.312 79.3721H247.178L215.271 39.7464L247.127 0.126654L229.312 0.154184L206.352 28.6697L183.32 0.0661486Z",fill:e}),(0,a.jsx)("path",{d:"M201.6 56.7148L192.679 45.6229L165.455 79.4326H183.32L201.6 56.7148Z",fill:e}),(0,a.jsx)("path",{clipRule:"evenodd",d:"M80.907 79.339L17.0151 0H0V79.3059H13.6121V16.9516L63.8067 79.339H80.907Z",fill:e,fillRule:"evenodd"}),(0,a.jsx)("path",{d:"M333.607 78.8546C332.61 78.8546 331.762 78.5093 331.052 77.8186C330.342 77.1279 329.991 76.2917 330 75.3011C329.991 74.3377 330.342 73.5106 331.052 72.8199C331.762 72.1292 332.61 71.7838 333.607 71.7838C334.566 71.7838 335.405 72.1292 336.115 72.8199C336.835 73.5106 337.194 74.3377 337.204 75.3011C337.194 75.9554 337.028 76.5552 336.696 77.0914C336.355 77.6368 335.922 78.064 335.377 78.373C334.842 78.6911 334.252 78.8546 333.607 78.8546Z",fill:e}),(0,a.jsx)("path",{d:"M356.84 45.4453H362.872V68.6846C362.863 70.8204 362.401 72.6472 361.498 74.1832C360.585 75.7191 359.321 76.8914 357.698 77.7185C356.084 78.5364 354.193 78.9546 352.044 78.9546C350.079 78.9546 348.318 78.6001 346.75 77.9094C345.182 77.2187 343.937 76.1826 343.024 74.8193C342.101 73.456 341.649 71.7565 341.649 69.7207H347.691C347.7 70.6114 347.903 71.3838 348.29 72.0291C348.677 72.6744 349.212 73.1651 349.895 73.5105C350.586 73.8559 351.38 74.0286 352.274 74.0286C353.243 74.0286 354.073 73.8286 354.746 73.4196C355.419 73.0197 355.936 72.4199 356.296 71.6201C356.646 70.8295 356.831 69.8479 356.84 68.6846V45.4453Z",fill:e}),(0,a.jsx)("path",{d:"M387.691 54.5338C387.544 53.1251 386.898 52.0254 385.773 51.2438C384.638 50.4531 383.172 50.0623 381.373 50.0623C380.11 50.0623 379.022 50.2532 378.118 50.6258C377.214 51.0075 376.513 51.5164 376.033 52.1617C375.554 52.807 375.314 53.5432 375.295 54.3703C375.295 55.061 375.461 55.6608 375.784 56.1607C376.107 56.6696 376.54 57.0968 377.103 57.4422C377.656 57.7966 378.274 58.0874 378.948 58.3237C379.63 58.56 380.313 58.76 380.995 58.9236L384.14 59.6961C385.404 59.9869 386.631 60.3778 387.802 60.8776C388.973 61.3684 390.034 61.9955 390.965 62.7498C391.897 63.5042 392.635 64.413 393.179 65.4764C393.723 66.5397 394 67.7848 394 69.2208C394 71.1566 393.502 72.8562 392.496 74.3285C391.491 75.7917 390.043 76.9369 388.143 77.764C386.252 78.582 383.965 79 381.272 79C378.671 79 376.402 78.6002 374.493 77.8004C372.575 77.0097 371.08 75.8463 370.001 74.3194C368.922 72.7926 368.341 70.9294 368.258 68.7391H374.235C374.318 69.8842 374.687 70.8386 375.314 71.6111C375.95 72.3745 376.78 72.938 377.795 73.3197C378.819 73.6923 379.962 73.8832 381.226 73.8832C382.545 73.8832 383.707 73.6832 384.712 73.2924C385.708 72.9016 386.492 72.3564 387.055 71.6475C387.627 70.9476 387.913 70.1206 387.922 69.1754C387.913 68.312 387.654 67.5939 387.156 67.0304C386.649 66.467 385.948 65.9944 385.053 65.6127C384.15 65.231 383.098 64.8856 381.899 64.5857L378.081 63.6223C375.323 62.9225 373.137 61.8592 371.541 60.4323C369.937 59.0054 369.143 57.115 369.143 54.7429C369.143 52.798 369.678 51.0894 370.758 49.6261C371.827 48.1629 373.294 47.0268 375.148 46.2179C377.011 45.4 379.114 45 381.456 45C383.836 45 385.92 45.4 387.719 46.2179C389.517 47.0268 390.929 48.1538 391.952 49.5897C392.976 51.0257 393.511 52.6707 393.539 54.5338H387.691Z",fill:e})]})});var h=r(13955),m=r(54339);let f=(0,m.S)(''),g=(0,m.S)('');var x=r(35910),v=r(52715),b=r.n(v);let j=(0,n.forwardRef)(({id:e="geist-skip-nav",...t},r)=>(0,a.jsx)("a",{className:b().skipLink,href:`#${e}`,ref:r,tabIndex:0,...t,onClick:t=>{t.preventDefault();let r=document.getElementById(e);r&&r.focus()},children:t.children||"Skip to content"}));j.displayName="SkipNavLink";var w=r(47350),y=r(13122),C=r(93406),_=r(75574),k=r.n(_),L=r(28977),N=r(13887),S=r(24302),H=r(89217),E=r(36139),V=r(28923),M=r(70265);let $=function({color:e="#111111",id:t="githublogo",size:r=22}){return(0,a.jsxs)("svg",{fill:"none",height:r,viewBox:"0 0 17 16",width:r,xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("g",{clipPath:`url(${t})`,children:(0,a.jsx)("path",{clipRule:"evenodd",d:"M8.18391.249268C3.82241.249268.253906 3.81777.253906 8.17927c0 3.46933 2.279874 6.44313 5.451874 7.53353.3965.0991.49563-.1983.49563-.3965v-1.3878c-2.18075.4956-2.67638-.9912-2.67638-.9912-.3965-.8922-.89212-1.1895-.89212-1.1895-.69388-.4957.09912-.4957.09912-.4957.793.0992 1.1895.793 1.1895.793.69388 1.2887 1.88338.8922 2.27988.6939.09912-.4956.29737-.8921.49562-1.0904-1.78425-.1982-3.5685-.8921-3.5685-3.96496 0-.89212.29738-1.586.793-2.08162-.09912-.19825-.3965-.99125.09913-2.08163 0 0 .69387-.19825 2.18075.793.59475-.19825 1.28862-.29737 1.9825-.29737.69387 0 1.38775.09912 1.98249.29737 1.4869-.99125 2.1808-.793 2.1808-.793.3965 1.09038.1982 1.88338.0991 2.08163.4956.59475.793 1.28862.793 2.08162 0 3.07286-1.8834 3.66766-3.66764 3.86586.29737.3965.59474.8921.59474 1.586v2.1808c0 .1982.0991.4956.5948.3965 3.172-1.0904 5.4518-4.0642 5.4518-7.53353-.0991-4.3615-3.6676-7.930002-8.02909-7.930002z",fill:e,fillRule:"evenodd"})}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:t,children:(0,a.jsx)("path",{d:"M0 0h15.86v15.86H0z",fill:"transparent",transform:"translate(.253906 .0493164)"})})})]})};var A=r(41249),R=r.n(A);function I({expanded:e}){return(0,a.jsx)("div",{className:`${R().wrap} ${e?R().expanded:""}`})}var P=r(89423),O=r.n(P),D=r(18878);let T=Object.assign(function({children:e,items:t,...r}){return(0,a.jsxs)(d.bL,{...r,children:[(0,a.jsx)(d.l9,{asChild:!0,children:e}),(0,a.jsx)(d.ZL,{children:(0,a.jsx)(d.UC,{className:O().contextMenu,children:t})})]})},{Item:function({children:e,...t}){return(0,a.jsx)(d.q7,{...t,className:O().contextMenuItem,children:e})}});function F(){let e=(0,l.usePathname)();return(0,a.jsx)(W,{"data-testid":(0,N.g)("navbar","vercel-logo"),href:(0,c.E)(`${M.GW}/home?utm_source=next-site&utm_medium=banner`,e),title:"Go to Vercel homepage",children:(0,a.jsx)(h.f,{height:22})})}function Z({children:e,href:t,...r}){let n=(0,l.usePathname)(),i=n?.startsWith(t);return(0,a.jsx)(V.Link,{className:(0,s.$)({[O().selected||""]:!!i}),href:t,prefetch:!0,...r,children:e})}function W({children:e,arrow:t=!1,title:r,...n}){return(0,a.jsxs)("a",{rel:"noopener noreferrer",target:"_blank",...n,"aria-label":r||void 0,title:r,children:[e,t?(0,a.jsx)(B,{}):null]})}function G(){let[e,t]=(0,n.useState)(!1);function r(){(0,L.V)().then(()=>{window.dispatchEvent(new KeyboardEvent("keydown",{key:"/"}))})}return(0,n.useEffect)(()=>{t(!0)},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{className:O().search,"data-variant":"large",onClick:r,type:"button",children:["Search documentation...",e?(0,a.jsxs)("kbd",{className:O().kbd,children:[(0,C.cX)()?"⌘":"Ctrl","K"]}):null]}),(0,a.jsxs)("button",{className:O().search,"data-variant":"medium",onClick:r,type:"button",children:["Search...",(0,a.jsx)("kbd",{children:"⌘K"})]}),(0,a.jsx)("button",{"aria-label":"Search documentation",className:O().search,"data-variant":"small",onClick:r,type:"button",children:(0,a.jsx)(g,{})})]})}function z(){return(0,a.jsx)("svg",{height:"32",viewBox:"0 0 32 32",width:"32",children:(0,a.jsx)("path",{d:"M22 5L9 28",stroke:"var(--accents-2)",strokeLinecap:"round",strokeLinejoin:"round"})})}function B(){return(0,a.jsx)("svg",{"aria-hidden":!0,className:O().externalArrow,height:"7",viewBox:"0 0 6 6",width:"7",children:(0,a.jsx)("path",{d:"M1.25215 5.54731L0.622742 4.9179L3.78169 1.75597H1.3834L1.38936 0.890915H5.27615V4.78069H4.40513L4.41109 2.38538L1.25215 5.54731Z",fill:"var(--accents-3)"})})}let U=(0,n.memo)(function({menuOpen:e,setMenuOpen:t,enterpriseHref:r}){let n=(0,l.usePathname)(),o=e=>{H.zS.track(E.wZ.CLICK_EVENT,{click_name:"nextjs_homepage_cta",click_value:e})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j,{tabIndex:0}),(0,a.jsxs)("nav",{className:O().nav,children:[(0,a.jsxs)("div",{className:O().mobileTop,children:[(0,a.jsxs)(w.B,{align:"center",direction:"row",gap:1,children:[(0,a.jsx)(F,{}),(0,a.jsx)(z,{}),(0,a.jsx)("div",{className:"uwu-flex",children:(0,a.jsx)(V.Link,{className:O().uwuMobileLogo,href:"/?uwu=true",title:"Go to the homepage",children:(0,a.jsx)(S.default,{alt:D.EE,height:34,priority:!0,src:D.gF,width:54})})}),(0,a.jsx)("div",{className:"uwu-hidden",children:(0,a.jsx)(V.Link,{className:O().mobileLogo,href:"/",title:"Go to the homepage",children:(0,a.jsx)(p,{height:18,width:90})})})]}),(0,a.jsxs)("div",{className:O().mobileTopRight,children:[(0,a.jsx)(G,{}),(0,a.jsx)("button",{"aria-label":`${e?"close menu":"open menu"}`,className:O().menuButton,onClick:()=>void(0,L.V)().then(()=>t(!e)),type:"button",children:(0,a.jsx)(I,{expanded:e})})]})]}),(0,a.jsxs)("div",{className:O().links,children:[(0,a.jsxs)(w.B,{align:"center",direction:"row",gap:1,children:[(0,a.jsx)(F,{}),(0,a.jsx)(z,{}),(0,a.jsx)("div",{className:(0,s.$)(O().uwuDesktopLogoWrapper,"uwu-flex"),children:(0,a.jsx)(T,{items:(0,a.jsxs)(T.Item,{onSelect:()=>{window.open(D.OL,"_blank","noopener")},children:[(0,a.jsx)($,{color:"var(--geist-foreground)",id:"github-logo-uwu",size:18}),"Credit: ",D.bn]}),children:(0,a.jsx)(V.Link,{"aria-label":"Go to the homepage",className:O().uwuDesktopLogo,href:"/?uwu=true",title:"Go to the homepage",children:(0,a.jsx)(S.default,{alt:D.EE,height:34,priority:!0,src:D.gF,width:54})})})}),(0,a.jsx)("div",{className:"uwu-hidden",children:(0,a.jsx)(T,{items:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(T.Item,{onSelect:()=>{k()(q),(0,i.o)("Copied Logo SVG to clipboard.",{icon:(0,a.jsx)(u.V,{size:18})})},children:[(0,a.jsx)(u.V,{size:18}),"Copy Logo as SVG"]}),(0,a.jsxs)(T.Item,{onSelect:()=>{k()(J),(0,i.o)("Copied Wordmark SVG to clipboard.",{icon:(0,a.jsx)(f,{size:18})})},children:[(0,a.jsx)(f,{size:18}),"Copy Wordmark as SVG"]})]}),children:(0,a.jsx)(V.Link,{"aria-label":"Go to the homepage",className:O().logo,href:"/",title:"Go to the homepage",children:(0,a.jsx)(p,{height:18,width:90})})})})]}),(0,a.jsx)(Z,{href:"/showcase",children:"Showcase"}),(0,a.jsx)(Z,{href:"/docs",title:"Documentation",children:"Docs"}),(0,a.jsx)(Z,{href:"/blog",children:"Blog"}),(0,a.jsx)(W,{arrow:!0,href:(0,c.E)("https://vercel.com/templates/next.js?utm_source=next-site&utm_medium=navbar",n,"next_site_nav_templates"),onClick:()=>o("Templates nav"),children:"Templates"}),(0,a.jsx)(W,{arrow:!0,href:r,onClick:()=>o("Enterprise nav"),children:"Enterprise"})]}),(0,a.jsxs)("div",{className:O().headerButtons,children:[(0,a.jsx)(G,{}),n?.startsWith("/docs")?(0,a.jsx)(x.Feedback,{label:"next-site",showEmail:!0,siteType:"next-site"}):(0,a.jsx)(y.ButtonLink,{className:O().deploy,href:(0,c.E)(`${M.GW}/new/clone?utm_source=next-site&utm_medium=banner&b=main&s=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmain%2Fexamples%2Fnextjs&showOptionalTeamCreation=false&template=nextjs&teamCreateStatus=hidden`,n),onClick:()=>o("Deploy nav"),prefix:(0,a.jsx)(h.f,{height:13}),size:"small",type:"secondary",children:"Deploy"}),(0,a.jsx)(y.ButtonLink,{href:"/learn",onClick:()=>o("Learn nav"),size:"small",type:"default",children:"Learn"})]})]})]})}),q='',J='';var K=r(25552),X=r(33085),Y=r.n(X);let Q=(0,n.memo)(function({enterpriseHref:e}){let t=(0,l.usePathname)();return(0,n.useEffect)(()=>(window.document.body.style.overflow="hidden",window.document.body.classList.add("mobile-menu-visible"),()=>{window.document.body.style.overflow="",window.document.body.classList.remove("mobile-menu-visible")}),[]),(0,a.jsx)("div",{className:"mobile-menu-wrapper",children:(0,a.jsx)("div",{className:Y().mobileMenu,children:(0,a.jsx)(K.default,{children:(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:(0,a.jsx)(V.Link,{className:(0,s.$)("mute",{[Y().selected??""]:t?.startsWith("/learn")}),href:"/learn",children:"Learn"})}),(0,a.jsx)("li",{children:(0,a.jsx)(V.Link,{className:"mute",href:"https://vercel.com/new/clone?utm_source=next-site&utm_medium=banner&utm_campaign=home&b=main&s=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmain%2Fexamples%2Fnextjs&showOptionalTeamCreation=false&template=nextjs&teamCreateStatus=hidden",rel:"noopener noreferrer",target:"_blank",children:"Deploy"})}),(0,a.jsx)("li",{children:(0,a.jsx)(V.Link,{className:(0,s.$)("mute",{[Y().selected??""]:t?.startsWith("/showcase")}),href:"/showcase",title:"Showcase",children:"Showcase"})}),(0,a.jsx)("li",{children:(0,a.jsx)(V.Link,{className:(0,s.$)("mute",{[Y().selected??""]:t?.startsWith("/docs")}),href:"/docs",title:"Documentation",children:"Docs"})}),(0,a.jsx)("li",{children:(0,a.jsx)(V.Link,{className:(0,s.$)("mute",{[Y().selected??""]:t?.startsWith("/blog")}),href:"/blog",children:"Blog"})}),(0,a.jsx)("li",{children:(0,a.jsx)(V.Link,{className:"mute",href:"https://vercel.com/templates/next.js/nextjs-commerce?utm_source=next-site&utm_medium=navbar&utm_campaign=nextjs-templates",rel:"noopener noreferrer",target:"_blank",children:"Next.js Commerce"})}),(0,a.jsx)("li",{children:(0,a.jsx)(V.Link,{className:"mute",href:"https://vercel.com/templates/next.js?utm_source=next-site&utm_medium=navbar&utm_campaign=nextjs-templates",rel:"noopener noreferrer",target:"_blank",children:"Templates"})}),(0,a.jsx)("li",{children:(0,a.jsx)("a",{className:"mute",href:e,rel:"noopener noreferrer",target:"_blank",children:"Enterprise"})}),(0,a.jsx)("li",{children:(0,a.jsx)("a",{className:"mute",href:"https://github.com/vercel/next.js",rel:"noopener noreferrer",target:"_blank",children:"GitHub"})})]})})})})});var ee=r(26692),et=r.n(ee);function er({sticky:e=!0}){let[t,r]=(0,n.useState)(!1),d=(0,l.usePathname)(),u=(0,n.useMemo)(()=>(0,c.E)("https://vercel.com/contact/sales/nextjs?utm_source=next-site&utm_medium=navbar",d,"next_site_nav_enterprise"),[d]),p=(0,l.usePathname)();(0,n.useEffect)(()=>{r(!1)},[p]);let h=p?.includes(`${o.cN}/`);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.l,{}),(0,a.jsx)("header",{className:(0,s.$)(et().header,{[et().sticky||""]:!h&&e}),children:(0,a.jsx)(U,{enterpriseHref:u,menuOpen:t,setMenuOpen:r})}),t?(0,a.jsx)("div",{className:et().mobileMenuWrapper,children:(0,a.jsx)(Q,{enterpriseHref:u})}):null]})}},18878:(e,t,r)=>{"use strict";r.d(t,{EE:()=>s,OL:()=>i,bn:()=>n,gF:()=>a}),r(94450);let a="https://assets.vercel.com/image/upload/v1714730590/front/nextjs/uwu/next-uwu-logo.png",n="SAWARATSUKI",s=`Next.js uwu logo by ${n}`,i="https://github.com/SAWARATSUKI"},49178:(e,t,r)=>{"use strict";r.d(t,{HydrateMeLater:()=>s});var a=r(94450),n=r(20282);function s({children:e}){return(0,a.jsx)(n.Suspense,{fallback:null,children:e})}},69073:(e,t,r)=>{"use strict";r.d(t,{NewsletterForm:()=>m});var a=r(94450),n=r(43137),s=r(54339);let i=(0,s.S)('',!0,{color:"var(--geist-warning)",secondary:"var(--geist-background)"}),l=(0,s.S)('','');var o=r(58550),c=r.n(o),d=r(8397);let u=(0,d.createServerReference)("60783e7744f49c47d5b6ee6cf88f8d15430875e0fb",d.callServer,void 0,d.findSourceMapURL,"subscribe"),p={success:!1,error:""};function h(){let{pending:e}=(0,n.useFormStatus)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{"aria-label":"Enter your email",className:e?c().pending:void 0,"data-1p-ignore":!0,disabled:e,name:"email",placeholder:"you@domain.com",required:!0,type:"email"}),(0,a.jsx)("button",{disabled:e,type:"submit",children:"Subscribe"})]})}function m(){let[e,t]=(0,n.useFormState)(u,p);return(0,a.jsxs)("div",{className:c().newsletter,children:[(0,a.jsx)("h4",{children:"Subscribe to our newsletter"}),(0,a.jsx)("p",{children:"Stay updated on new releases and features, guides, and case studies."}),e.success?(0,a.jsxs)("p",{"data-success-message":!0,children:[(0,a.jsx)(l,{color:"var(--geist-success)",fill:!0,size:18}),"Thanks for subscribing!"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("form",{action:t,"data-input-wrapper":!0,children:(0,a.jsx)(h,{})}),e.error?(0,a.jsxs)("p",{"data-error-message":!0,children:[(0,a.jsx)(i,{color:"currentColor",size:18}),e.error]}):null]})]})}},92214:(e,t,r)=>{"use strict";r.d(t,{ThemeSwitcher:()=>h});var a=r(94450),n=r(54339);let s=(0,n.S)(''),i=(0,n.S)(''),l=(0,n.S)('');var o=r(24330),c=r(31121),d=r(20282),u=r(23422),p=r.n(u);function h({className:e}){let{theme:t,setTheme:r}=(0,o.D)(),[n,u]=(0,d.useState)(!1);return((0,d.useEffect)(()=>{u(!0)},[]),n)?(0,a.jsxs)("div",{className:(0,c.$)(p().root,e),role:"radiogroup",children:[(0,a.jsx)("button",{"aria-checked":"light"===t,"aria-label":"Switch to light theme",className:p().switch,"data-active":"light"===t,"data-theme-switcher":!0,onClick:()=>r("light"),role:"radio",type:"button",children:(0,a.jsx)(l,{size:16})}),(0,a.jsx)("button",{"aria-checked":"system"===t,"aria-label":"Switch to system theme",className:p().switch,"data-active":"system"===t,"data-theme-switcher":!0,onClick:()=>r("system"),role:"radio",type:"button",children:(0,a.jsx)(s,{size:16})}),(0,a.jsx)("button",{"aria-checked":"dark"===t,"aria-label":"Switch to dark theme",className:p().switch,"data-active":"dark"===t,"data-theme-switcher":!0,onClick:()=>{r("dark")},role:"radio",type:"button",children:(0,a.jsx)(i,{size:16})})]}):null}},70265:(e,t,r)=>{"use strict";r.d(t,{ym:()=>s,GW:()=>n});var a=r(62602);let n="https://vercel.com";(0,a.A)("5m");let s={NEXT_DOCS_SEARCH_ROUTER_TYPE:"next-docs-search-router-type",NEXT_DOCS_VERSION:"next-docs-version"}},56579:(e,t,r)=>{"use strict";let a;r.d(t,{TrackPageView:()=>p});var n=r(8911),s=r(20282),i=r(78879),l=r(63574);let o=async(e,t)=>fetch("/api/stream/internal",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({topic:e,record:t})}).catch(()=>null);var c=function(e){return e.PageView="PageView",e}({});let d=(e,t)=>{let{route:r,...n}=t,s=Object.fromEntries([...new URLSearchParams(window.location.search).entries()].filter(([e])=>e.startsWith("utm_")));o("next_site.v0.activity",{session_id:(a||(a=sessionStorage.getItem("sid")??void 0)||(a=(0,l.A)(),sessionStorage.setItem("sid",a)),a),origin:window.origin,path:window.location.pathname,referrer:document.referrer||null,action:e,user_agent:navigator.userAgent,meta:JSON.stringify(n)||"{}",utm:JSON.stringify(s)||"{}",session_referrer:function(){let e=sessionStorage.getItem(u);return null===e?(sessionStorage.setItem(u,document.referrer||""),document.referrer):e||null}(),route:r}).catch(()=>{})},u="srid";function p(){let e=(0,s.useRef)(void 0),t=function(){let e=(0,n.useSearchParams)(),t=(0,n.usePathname)(),[r,a]=(0,s.useState)();return(0,s.useEffect)(()=>{let e=new MutationObserver(function(){setTimeout(()=>{a(window.location.pathname+window.location.search)})});e.observe(window.document,{childList:!0,subtree:!0});let t=()=>{a(window.location.pathname+window.location.search)};return window.addEventListener("popstate",t),()=>{window.removeEventListener("popstate",t),e.disconnect()}},[]),(0,s.useMemo)(()=>window.location.pathname+window.location.search,[r,t,e])}(),r=(0,i.useRouter)(),a=(0,n.usePathname)(),l=!r||r.isReady,o=r?r.pathname:a;return(0,s.useEffect)(()=>{t&&l&&e.current!==t&&(e.current=t,d(c.PageView,{route:o??void 0}))},[t,l]),null}},96076:(e,t,r)=>{"use strict";function a(e,t,r){let a,n=!1;try{a=new URL(e)}catch(t){if(!(t instanceof Error)||!t.message.includes("Invalid URL"))return e;n=!0,a=new URL(e,window.location.toString())}return(a.searchParams.delete("utm_campaign"),a.searchParams.append("utm_campaign",r||(t?"/"===t?"home":t.replace(/^\//,"").replace(/\//g,"_"):"no-campaign")),n)?`${a.pathname}${a.search}`:a.toString()}r.d(t,{E:()=>a})},9459:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ContainerStack:()=>c,StackContainerContext:()=>h});var a=r(94450),n=r(20282),s=r(31121),i=r(47350),l=r(13809),o=r.n(l);function c({containerBreakpoints:e,...t}){let r=`useContainer${(0,n.useId)().replace(/[^a-zA-Z0-9]/g,"")}`,l="object"==typeof e,c=(0,n.useContext)(h);return(0,a.jsxs)(d,{className:r,isRoot:l,children:[l?(0,a.jsx)(u,{containerClass:r,containerSizes:{sm:e.sm,md:e.md,lg:e.lg??p.lg}}):null,(0,a.jsx)(i.B,{...t,className:(0,s.$)(t.className,l?r:c?.className,{[o().useContainerRoot]:l})})]})}function d({className:e,isRoot:t,children:r}){return t?(0,a.jsx)(m,{className:e,children:r}):(0,a.jsx)(a.Fragment,{children:r})}function u({containerClass:e,containerSizes:t}){return(0,a.jsx)("style",{children:` @container (max-width: ${t.sm}px) { .${e} { --stack-direction: var(--sm-stack-direction); --stack-align: var(--sm-stack-align); --stack-justify: var(--sm-stack-justify); --stack-padding: var(--sm-stack-padding); --stack-gap: var(--sm-stack-gap); } } @container (min-width: ${t.sm+1}px) and (max-width: ${t.md}px) { .${e} { --stack-direction: var(--md-stack-direction, var(--sm-stack-direction)); --stack-align: var(--md-stack-align, var(--sm-stack-align)); --stack-justify: var(--md-stack-justify, var(--sm-stack-justify)); --stack-padding: var(--md-stack-padding, var(--sm-stack-padding)); --stack-gap: var(--md-stack-gap, var(--sm-stack-gap)); } } @container (min-width: ${t.md+1}px) { .${e} { --stack-direction: var(--lg-stack-direction, var(--md-stack-direction, var(--sm-stack-direction))); --stack-align: var(--lg-stack-align, var(--md-stack-align, var(--sm-stack-align))); --stack-justify: var(--lg-stack-justify, var(--md-stack-justify, var(--sm-stack-justify))); --stack-padding: var(--lg-stack-padding, var(--md-stack-padding, var(--sm-stack-padding))); --stack-gap: var(--lg-stack-gap, var(--md-stack-gap, var(--sm-stack-gap))); } } `})}let p={lg:1200},h=(0,n.createContext)(void 0);function m({children:e,className:t}){let r=(0,n.useMemo)(()=>({className:t}),[t]);return(0,a.jsx)(h.Provider,{value:r,children:e})}},44134:(e,t,r)=>{"use strict";r.d(t,{G:()=>a});let a=(0,r(54652).G)('')},99849:(e,t,r)=>{"use strict";r.d(t,{V:()=>o});var a=r(94450),n=r(20282),s=r(31121),i=r(48667),l=r.n(i);let o=n.forwardRef(function({size:e=80,theme:t,className:r,...i},o){let c=n.useId();return(0,a.jsxs)("svg",{"aria-label":"Next.js logomark",className:(0,s.$)(l().root,r),"data-theme":t,height:e,ref:o,role:"img",viewBox:"0 0 180 180",width:e,...i,children:[(0,a.jsx)("mask",{height:"180",id:`${c}mask0_408_134`,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},width:"180",x:"0",y:"0",children:(0,a.jsx)("circle",{cx:"90",cy:"90",fill:"black",r:"90"})}),(0,a.jsxs)("g",{mask:`url(#${c}mask0_408_134)`,children:[(0,a.jsx)("circle",{cx:"90",cy:"90","data-circle":!0,fill:"black",r:"90",..."dark"===t&&{stroke:"white",strokeWidth:"6px"}}),(0,a.jsx)("path",{d:"M149.508 157.52L69.142 54H54V125.97H66.1136V69.3836L139.999 164.845C143.333 162.614 146.509 160.165 149.508 157.52Z",fill:`url(#${c}paint0_linear_408_134)`}),(0,a.jsx)("rect",{fill:`url(#${c}paint1_linear_408_134)`,height:"72",width:"12",x:"115",y:"54"})]}),(0,a.jsxs)("defs",{children:[(0,a.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:`${c}paint0_linear_408_134`,x1:"109",x2:"144.5",y1:"116.5",y2:"160.5",children:[(0,a.jsx)("stop",{stopColor:"white"}),(0,a.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]}),(0,a.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:`${c}paint1_linear_408_134`,x1:"121",x2:"120.799",y1:"54",y2:"106.875",children:[(0,a.jsx)("stop",{stopColor:"white"}),(0,a.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]})]})]})})},13955:(e,t,r)=>{"use strict";r.d(t,{f:()=>n});var a=r(94450);let n=r(20282).forwardRef(function({color:e="var(--geist-foreground)",size:t=64,style:r,...n},s){return(0,a.jsx)("svg",{"aria-label":"Vercel logomark",height:t,ref:s,role:"img",style:{width:"auto",overflow:"visible",...r},viewBox:"0 0 74 64",...n,children:(0,a.jsx)("path",{d:"M37.5896 0.25L74.5396 64.25H0.639648L37.5896 0.25Z",fill:e})})})},28923:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Link:()=>y,PrefetchCrossZoneLinks:()=>b,PrefetchCrossZoneLinksContext:()=>c,PrefetchCrossZoneLinksProvider:()=>d,useZoneForHref:()=>w});var a=r(20282),n=r(23706),s=r.n(n),i=r(94450),l=r(17730),o=r(4533),c=(0,a.createContext)({prefetchHref:()=>{}});function d({children:e}){let[t,r]=(0,a.useState)(new Set),[n,s]=(0,a.useState)(!1);(0,a.useEffect)(()=>{s("u">typeof navigator&&(navigator.userAgent.includes("Firefox")||navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")))},[]);let l=(0,a.useCallback)(e=>{t.has(e)||r(new Set(t).add(e))},[t]),o=(0,a.useMemo)(()=>({prefetchHref:l}),[l]);return n?(0,i.jsxs)(c.Provider,{value:o,children:[e,[...t].map(e=>(0,i.jsx)("link",{as:"fetch",href:e,rel:"preload"},e))]}):(0,i.jsx)(i.Fragment,{children:e})}function u(){let e='{"applications":{"next-site":{"default":true},"nextjs-conf":{"default":false,"routing":{"assetPrefix":"nextjs-conf","matches":[{"group":"next-conf-pages","paths":["/assets/cube-transformed.glb","/conf","/conf/:path*"]}]}}}}';if(!e)throw Error("Could not find client micro-frontends config in the environment");return JSON.parse(e)}var p=null;async function h(){try{let e=await fetch("/.well-known/vercel/micro-frontends/client-config");return 200!==e.status?null:(await e.json()).config}catch{return null}}function m({removeFlaggedPathsFromDefault:e}={}){let[t,r]=(0,a.useState)(e?function(e){for(let t of Object.values(e.applications))t.routing&&(t.routing.matches=t.routing.matches.filter(e=>{var t;return!(null!=(t=e.options)&&t.flag)}));return e}(u()):u()),[n,s]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{if(!Object.values(u().applications).some(e=>{var t;return null==(t=e.routing)?void 0:t.matches.some(e=>{var t;return null==(t=e.options)?void 0:t.flag})})){s(!1);return}p||(p=h()),p.then(e=>{e&&r(t=>JSON.stringify(t)===JSON.stringify(e)?t:e)}).finally(()=>{s(!1)})},[t.applications]),{clientConfig:t,isLoading:n}}var f="data-prefetch",g={anyZone:"[data-zone]",external:'[data-zone="null"]',sameZone:'[data-zone="same"]',prefetch:`[${f}]`},x={and:[{href_matches:"/*"},{selector_matches:g.anyZone},{not:{selector_matches:g.sameZone}},{not:{selector_matches:g.external}}]},v={and:[{href_matches:"/*"},{selector_matches:g.anyZone},{not:{selector_matches:g.sameZone}},{not:{selector_matches:g.external}},{selector_matches:g.prefetch}]};function b(){let{isLoading:e}=m(),[t,r]=(0,a.useState)([]);return(0,a.useEffect)(()=>{if(e)return;let r=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&!e.target.hasAttribute(f)&&function e(t){if(!t)return!0;if("checkVisibility"in t)return t.checkVisibility({opacityProperty:!0});let r=window.getComputedStyle(t);return"none"!==r.display&&"hidden"!==r.visibility&&"0"!==r.opacity&&e(t.parentElement)}(e.target)&&e.target.setAttribute(f,"true")})},{root:null,rootMargin:"0px",threshold:.1});return t.forEach(e=>r.observe(e)),()=>{r.disconnect()}},[e,t]),(0,a.useEffect)(()=>{if(e)return;let t=new MutationObserver(e=>{e.some(e=>"childList"===e.type&&e.addedNodes.length>0||"attributes"===e.type&&"href"===e.attributeName)&&r(Array.from(document.querySelectorAll(`a${g.anyZone}:not(${g.prefetch}):not(${g.sameZone}):not(${g.external})`)))});return t.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["href"]}),()=>{t.disconnect()}},[e]),e?null:(0,i.jsx)(l.default,{dangerouslySetInnerHTML:{__html:`${JSON.stringify({prefetch:[{eagerness:"moderate",where:x},{eagerness:"immediate",where:v}],prerender:[{eagerness:"conservative",where:x}]})}`},id:"prefetch-zones-links",type:"speculationrules"})}var j=new WeakMap;function w(e){let{clientConfig:t,isLoading:r}=m({removeFlaggedPathsFromDefault:!0}),a="string"==typeof e&&e.startsWith("/"),n=a?function(e,t){if(!t.startsWith("/"))throw Error("Path must start with a /");let r=j.get(e)??{};if(r[t])return r[t];j.has(e)||j.set(e,r);let a=new URL(t,"https://example.com").pathname;for(let[n,s]of Object.entries(e.applications))if(s.routing){for(let e of s.routing.matches)for(let s of e.paths)if((0,o.MM)(s).test(a))return r[t]=n,n}let n=Object.entries(e.applications).find(([,e])=>e.default);if(!n)throw Error("No default application found. A default application must be configured in the micro-frontends configuration.");return r[t]=n[0],n[0]}(t,e):null;return{zoneOfHref:n,isDifferentZone:!a||!!n&&"next-site"!==n,isLoading:r}}var y=(0,a.forwardRef)(({children:e,...t},r)=>{let{prefetchHref:n}=(0,a.useContext)(c),{zoneOfHref:l,isDifferentZone:o,isLoading:d}=w(t.href);if(o&&null!==l){let{prefetch:r,...a}=t;return(0,i.jsx)("a",{...a,"data-zone":l,onMouseOver:!1!==t.prefetch?function(){t.href&&n(t.href)}:void 0,children:e})}return(0,i.jsx)(s(),{...t,"data-zone":l?"same":"null",prefetch:t.prefetch??(!d&&void 0),ref:r,children:e})});y.displayName="MultiZonesLink"},34720:(e,t,r)=>{"use strict";r.d(t,{H:()=>l});var a=r(94450),n=r(20282),s=r(89217),i=r(69886);function l(e){return(0,a.jsx)(n.Suspense,{children:(0,a.jsx)(o,{...e})})}function o({children:e}){let{categoriesAccepted:t,ethycaScript:r}=(0,i.or)(),l=(0,n.useMemo)(()=>(0,a.jsxs)(a.Fragment,{children:[s.zS.getScripts(t),e]}),[t,e]);return(0,a.jsxs)(a.Fragment,{children:[r,l]})}},69886:(e,t,r)=>{"use strict";let a;r.d(t,{GG:()=>f,L$:()=>m,or:()=>g});var n=r(94450),s=r(20282),i=r(23766),l=r(17730);r(45042);var o=r(64681);let c="/api/show-consent-banner",d=["essential","marketing","analytics"];function u(){let[e,t]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=new MutationObserver(e=>{for(let r of e){if("childList"!==r.type)return;let e=Array.from(document.head.getElementsByTagName("style")).find(e=>e.innerHTML.includes("--fides"));e&&(e.remove(),t(!0))}});return e.observe(document.head,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[]),e?null:(0,n.jsx)("style",{children:` #fides-overlay { display: none !important; } `})}var p=r(89217),h=r(73124);let m="nextjs.org",f="vercel.sh";function g(){return function({cookiesToDeleteOnOptOut:e,cookieDomain:t="",cookiePath:r="/"}={}){let{isShowBannerLoading:a,showBanner:p}=function({showBannerApiUrl:e=c}={}){let{data:t,isLoading:r}=(0,o.A)(e,e=>(function(e=c){return fetch(e).then(e=>e.json())})(e),{shouldRetryOnError:!1});return{showBanner:!!t?.showBanner,isShowBannerLoading:!!(!t||r)}}(),h="undefined"!=typeof navigator&&(navigator.globalPrivacyControl??!1),[m,f]=(0,s.useState)([]);function g(){var a;if(!window.Fides)return;let n=[...Object.keys(a=window.Fides.consent).filter(e=>a[e]),...d.filter(e=>!(e in a))];d.forEach(a=>{n.includes(a)||e&&Object.keys(i.A.get()).forEach(n=>{e.forEach((e,s)=>{new RegExp(s).test(n)&&e!==a&&i.A.remove(n,{path:r,domain:t})})})}),f(n)}function x(){window.Fides&&(window.Fides.gtm(),g())}return((0,s.useEffect)(()=>((function(e){let a=i.A.get("fides_consent");if(a)try{let{consent:{analytics:n,marketing:s,functional:l},fides_meta:o}=JSON.parse(a);if(!0===n||!0===s||!0===l)return;let c=new Date(o.createdAt),d=new Date(o.updatedAt);(c{window.removeEventListener("FidesUpdated",g),window.removeEventListener("FidesInitialized",x)}),[]),h||a)?{categoriesAccepted:[],ethycaScript:null}:p?{categoriesAccepted:m,ethycaScript:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u,{}),(0,n.jsx)(l.default,{src:"/_stream/external/vercel.fides-cdn.ethyca.com/fides.js?geolocation=EEA",strategy:"lazyOnload"})]})}:{categoriesAccepted:[...d],ethycaScript:null}}({cookiesToDeleteOnOptOut:p.zS.getAllCookiesMappedToConsentCategory(),cookieDomain:a})}a="production"===h.env.VERCEL_ENV?`.${m}`:"preview"===h.env.VERCEL_ENV?`.${f}`:"localhost"},52402:()=>{},27172:()=>{},45042:()=>{},80374:()=>{},928:()=>{},16542:e=>{e.exports={cmdk:"cmdk_cmdk__nyNxR"}},58550:e=>{e.exports={root:"footer_root__6F7g2",grid:"footer_grid__yp2LW",footer:"footer_footer__mqdak",copyright:"footer_copyright__z9dsS",newsletter:"footer_newsletter__GlFxe",x:"footer_x__r5_ph",socials:"footer_socials__VfDh3",socialsDesktop:"footer_socialsDesktop__XZ__G",pending:"footer_pending__WLOWk"}},26692:e=>{e.exports={header:"header_header__zJOD0",sticky:"header_sticky__2ak2z",mobileMenuWrapper:"header_mobileMenuWrapper__Kf7jF"}},41249:e=>{e.exports={wrap:"menu-toggle_wrap__qevaX",expanded:"menu-toggle_expanded__YupKc"}},33085:e=>{e.exports={mobileMenu:"mobile-menu_mobileMenu__xqbOP",selected:"mobile-menu_selected__G55UL"}},89423:e=>{e.exports={nav:"navbar_nav__dCdXi",links:"navbar_links__jysVN",externalArrow:"navbar_externalArrow___VWBd",kbd:"navbar_kbd__5R6Wu","fade-in":"navbar_fade-in__lhU_1",selected:"navbar_selected__XbA4W",mobileTop:"navbar_mobileTop__yLNXQ",menuButton:"navbar_menuButton__BJwt4",logo:"navbar_logo__wXwXy",uwuDesktopLogoWrapper:"navbar_uwuDesktopLogoWrapper__VynOK",uwuDesktopLogo:"navbar_uwuDesktopLogo__MHsxN",mobileLogo:"navbar_mobileLogo__Q5KxZ",uwuMobileLogo:"navbar_uwuMobileLogo__zHGR_",mobileTopRight:"navbar_mobileTopRight__p4VGF",headerButtons:"navbar_headerButtons__m6ZFa",deploy:"navbar_deploy__IKZN3",search:"navbar_search__dZT2b",contextMenu:"navbar_contextMenu__6J1xs",scaleOut:"navbar_scaleOut__nJJQx",contextMenuItem:"navbar_contextMenuItem__cdhFu"}},23422:e=>{e.exports={root:"theme-switcher_root__LFmWp",switch:"theme-switcher_switch__2Swty"}},26331:e=>{e.exports={shimmer:"ai-view_shimmer__w3n0l"}},21202:e=>{e.exports={loader:"v0-avatar_loader__gQOvh",drawAndErase:"v0-avatar_drawAndErase__LQX7L",drawAndEraseFirst:"v0-avatar_drawAndEraseFirst__Nt2Z7",drawAndEraseSecond:"v0-avatar_drawAndEraseSecond__3YJgy",drawAndEraseThird:"v0-avatar_drawAndEraseThird__L9h1I"}},9047:e=>{e.exports={ol:"breadcrumbs_ol__H25R2",textItem:"breadcrumbs_textItem__Nej1D",active:"breadcrumbs_active__hze9F",disabled:"breadcrumbs_disabled__Oev6z",menuItem:"breadcrumbs_menuItem__Xitaa",menuWrapper:"breadcrumbs_menuWrapper__FiewS",breadcrumbWrapper:"breadcrumbs_breadcrumbWrapper__yempR"}},67097:e=>{e.exports={topSection:"style_topSection__VAC9w",input:"style_input__t1XJR",escButton:"style_escButton__v426S",inputWrapper:"style_inputWrapper__U5UlZ",item:"style_item__flc5Q",list:"style_list__P7QQw",itemPrefix:"style_itemPrefix__HSCJc",group:"style_group__zRcxf",breadcrumbWrapper:"style_breadcrumbWrapper__fc3cr",empty:"style_empty__97dUG",keybinds:"style_keybinds___rN_R",keybind:"style_keybind__t8F_K",divider:"style_divider__iwH6i",loader:"style_loader__8YxWZ",loading:"style_loading__ON_ka"}},52715:e=>{e.exports={skipLink:"skip-nav-link_skipLink__M2lut"}},13809:e=>{e.exports={useContainerRoot:"container-stack_useContainerRoot__UV84T"}},48667:e=>{e.exports={root:"next-mark_root__iLw9v"}}},e=>{var t=t=>e(e.s=t);e.O(0,[9955,5497,5990,531,3565,2879,235,1191,2873,1937,9848,9152,7909,9878,8921,8139,9797,1213,1577,9109,2336,6336,9963,5910,9217,8435,6362,6812,7358],()=>t(93083)),_N_E=e.O()}]);