!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0879f-7b76-7a50-844e-1ddaec988936")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,497556,e=>{"use strict";var t=e.i(222666),l=e.i(505962),n=e.i(306937),a=e.i(415753),i=e.i(553215),s=e.i(452473),r=e.i(117738),o=e.i(980351),c=e.i(252358),d=e.i(779100),f=e.i(586404),u=e.i(693697),h=e.i(79247),m=e.i(699937),p=e.i(695227),x=e.i(128341),g=e.i(270401),y=e.i(193975);let w={bg:"#0B0F14",fg:"#C9D4DF",dim:"#6B7A8A",faint:"#3E4C5B",accent:"#C8FF00",green:"#3FDF8F",yellow:"#FFC66E",red:"#FF6E6E",blue:"#4D8DFF",addBg:"#14261C",delBg:"#2B161C",chrome:"#151B23"},b={bg:"#FCFCFE",fg:"#1B2733",dim:"#5E6E7E",faint:"#A8B4C0",accent:"#7624F4",green:"#00915A",yellow:"#B26A00",red:"#C22F3D",blue:"#035ADE",addBg:"#E2F5EA",delBg:"#FBE7EB",chrome:"#ECEFF3"};function j(e,t){return{text:e,style:t}}function v(e,t){if(t<=0)return[e];let l=[];for(let n of e.split("\n")){let e="";for(let a of n.split(" ")){let n=a;for(;n.length>t;)e&&(l.push(e),e=""),l.push(n.slice(0,t)),n=n.slice(t);e?e.length+1+n.length<=t?e=`${e} ${n}`:(l.push(e),e=n):e=n}l.push(e)}return l.length?l:[""]}function N({width:e,s:t,content:l}){let n=l.reduce((e,t)=>e+t.text.length,0);return[j("│",{fg:t.faint}),...l,j(" ".repeat(Math.max(0,e-n))),j("│",{fg:t.faint})]}function k(e,t,l){return v(e,l-2).map((e,l)=>[j(0===l?"❯ ":" ",{fg:t.blue,bold:!0}),j(e,{fg:t.fg,bold:!0})])}let M=/(?e.flatMap(e=>(function(e,t){let l=[...e.text.matchAll(M)];if(!l.length)return[e];let n=[],a=0;for(let i of l){let l=i.index??0;l>a&&n.push(j(e.text.slice(a,l),e.style)),n.push(j(i[0],{...e.style,fg:t})),a=l+i[0].length}return ae.padEnd(l," "))}function A(e){return e.reduce((e,t)=>Math.max(e,t.length),0)}function B(e,t){let l=[e];for(let n=e+3;n[e]});function O(){return(0,H.requestMutation)("/api/frontend/v1/private/ori-deploy-waitlist/join",{method:"POST"},D)}let V="joinWaitlist",J={fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit"};function K(e){return Math.min(75,e)}function Q(e){let n,a,i,r=(0,l.c)(11),{lines:o,tight:c}=e,d=c&&"overflow-x-auto overflow-y-hidden overscroll-x-contain leading-none",f=!c&&"leading-relaxed";if(r[0]!==d||r[1]!==f?(n=(0,s.cn)("min-w-0",d,f),r[0]=d,r[1]=f,r[2]=n):n=r[2],r[3]!==o||r[4]!==c){let e;r[6]!==c?(e=(e,l)=>(0,t.jsx)("div",{className:c?"whitespace-pre":"whitespace-pre-wrap break-words",children:e.length?e.map(Y):" "},l),r[6]=c,r[7]=e):e=r[7],a=o.map(e),r[3]=o,r[4]=c,r[5]=a}else a=r[5];return r[8]!==n||r[9]!==a?(i=(0,t.jsx)("div",{className:n,children:a}),r[8]=n,r[9]=a,r[10]=i):i=r[10],i}function Y(e,l){return(0,t.jsx)("span",{"data-allow-inline-style":!0,style:function(e){if(!e)return{};let t={};return e.fg&&(t.color=e.fg),e.bg&&(t.background=e.bg),e.bold&&(t.fontWeight=700),e.italic&&(t.fontStyle="italic"),t}(e.style),children:e.text},l)}let G="px-3 py-1";function X(e){let n,a,i,r,o=(0,l.c)(10),{lines:c,s:d,trailing:f}=e;o[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,s.cn)(G,"-ml-3.5","flex min-w-0 items-start gap-2"),o[0]=n):n=o[0];let u=`${d.blue}14`,h=`2px solid ${d.blue}`;return o[1]!==u||o[2]!==h?(a={background:u,borderLeft:h},o[1]=u,o[2]=h,o[3]=a):a=o[3],o[4]!==c?(i=(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)(Q,{lines:c})}),o[4]=c,o[5]=i):i=o[5],o[6]!==a||o[7]!==i||o[8]!==f?(r=(0,t.jsxs)("div",{"data-allow-inline-style":!0,className:n,style:a,children:[i,f]}),o[6]=a,o[7]=i,o[8]=f,o[9]=r):r=o[9],r}function Z(e){let n,a,i,r,o=(0,l.c)(8),{lines:c,s:d}=e;o[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,s.cn)(G,"-ml-3","min-w-0"),o[0]=n):n=o[0];let f=`${d.accent}0D`;return o[1]!==f?(a={background:f},o[1]=f,o[2]=a):a=o[2],o[3]!==c?(i=(0,t.jsx)(Q,{lines:c}),o[3]=c,o[4]=i):i=o[4],o[5]!==a||o[6]!==i?(r=(0,t.jsx)("div",{"data-allow-inline-style":!0,className:n,style:a,children:i}),o[5]=a,o[6]=i,o[7]=r):r=o[7],r}function ee(e){let n,a,i=(0,l.c)(19),{step:s,s:r,cols:o,sub:c,done:f,tick:u}=e,h=(0,d.useLocale)();i[0]!==o||i[1]!==f||i[2]!==h||i[3]!==r||i[4]!==s||i[5]!==c||i[6]!==u?(n=function(e,t){var l,n;let{step:a,s:i,cols:s,sub:r,done:o,tick:c}=t,d=e=>o?e:e.slice(0,r),f=e=>!o&&r[j(0===t?"⏺ ":" ",{fg:l.accent}),j(e,{fg:l.fg})]),s=i.at(-1);return a&&s&&s.push(j("▌",{fg:l.dim})),i}({text:e,s:i,cols:s,partial:!o&&re.map(e=>e.style?.fg===i.fg?{...e,style:{...e.style,fg:i.accent}}:e))),{lines:t,hlRow:a.hl}}case"out":return{lines:[[j(a.text,{fg:"warn"===a.tone?i.yellow:i.green})]]};case"boot":return{lines:function(e){let{app:t,model:l,s:n,width:a}=e;return[[j(`╭${"─".repeat(a)}╮`,{fg:n.faint})],N({width:a,s:n,content:[j(" ◆ ",{fg:n.accent}),j(t,{fg:n.fg,bold:!0})]}),N({width:a,s:n,content:[j(` ${l}`,{fg:n.dim})]}),N({width:a,s:n,content:[j(" via openrouter",{fg:n.faint})]}),[j(`╰${"─".repeat(a)}╯`,{fg:n.faint})]]}({app:a.app,model:a.model,s:i,width:K(s)-2}),box:!0};case"tool":return{lines:function(e){let{name:t,arg:l,result:n,s:a}=e;return[[j("⏺ ",{fg:a.dim}),j(t,{fg:a.dim}),j(`(${l})`,{fg:a.faint})],[j(" ⎿ ",{fg:a.dim}),j(n,{fg:a.dim})]]}({name:a.name,arg:a.arg,result:a.result,s:i})};case"diff":return{lines:(l=a.rows,l.map(e=>{let t=String(e.no).padStart(6," ");return"add"===e.kind?[j(`${t} `,{fg:i.faint}),j(`+ ${e.text}`,{fg:i.green,bg:i.addBg})]:[j(`${t} `,{fg:i.faint}),j(`- ${e.text}`,{fg:i.red,bg:i.delBg})]})),tight:!0};case"picker":{let e=o?1:Math.min(1,r/300);return{lines:function(e){let{rows:t,s:l,cols:n,progress:a=1}=e,i=Math.min(n-2,42),s=Math.max(0,t.findIndex(e=>e.active)),r=t.findIndex(e=>e.settle),o=s+Math.round(((-1===r?s:r)-s)*Math.min(1,Math.max(0,a))),c=[[j("╭─ ",{fg:l.faint}),j("select model",{fg:l.dim}),j(` ${"─".repeat(Math.max(0,i-15))}╮`,{fg:l.faint})]],d=()=>[j("│",{fg:l.faint}),j(" ".repeat(i)),j("│",{fg:l.faint})];return c.push(d()),t.forEach((e,n)=>{let a=n===o,s=e.meta??"",r=`${a?"❯ ":" "}${e.name}`,f=Math.max(0,i-r.length-s.length-1);c.push([j("│",{fg:l.faint}),j(r,a?{fg:l.accent,bold:!0}:{fg:l.fg}),j(" ".repeat(f)),j(`${s} `,{fg:l.faint}),j("│",{fg:l.faint})]),nMath.max(t[n]?.length??0,...l.map(e=>(e[n]??"").length))),o=1+3*s,c=Math.max(3*s,i-o),d=2e3;for(;r.reduce((e,t)=>e+t,0)>c&&Math.max(...r)>3&&d-- >0;){let e=r.indexOf(Math.max(...r)),t=r[e]??0;r[e]=t-1}let f=e=>r[e]??0,u=(e,t)=>e.length>f(t)?`${e.slice(0,Math.max(1,f(t)-1))}…`:e,h=e=>{let t,l;return j(` ${(t=e.text,"r"===n[l=e.c]?u(t,l).padStart(f(l)):u(t,l).padEnd(f(l)))} `,e.bg?{fg:e.fg,bg:e.bg}:{fg:e.fg})},m=e=>[j(`${e.left}${r.map(t=>e.h.repeat(t+2)).join(e.mid)}${e.right}`,{fg:a.faint})],p=[m({left:"╭",mid:"┬",right:"╮",h:"─"})],x=[j("│",{fg:a.faint})];return t.forEach((e,t)=>{x.push(h({text:e,c:t,fg:a.fg}),j("│",{fg:a.faint}))}),p.push(x),p.push(m({left:"╞",mid:"╪",right:"╡",h:"═"})),l.forEach((e,t)=>{let n=[j("│",{fg:a.faint})];e.forEach((e,t)=>{let l;n.push(h({text:e,c:t,fg:(l=e.trimStart()).startsWith("✓")?a.green:l.startsWith("✗")?a.red:a.dim}),j("│",{fg:a.faint}))}),p.push(n),te.label.length)),s=Math.max(0,...t.map(e=>e.display.length)),r=Math.max(1,...t.map(e=>e.value)),o=Math.max(6,Math.min(24,n-i-s-3));return t.flatMap((e,n)=>{let c=Math.max(1,Math.round(e.value/r*o)),d=Math.min(c,Math.round(c*a)),f=[j(`${e.label.padEnd(i)} `,{fg:l.dim}),j("█".repeat(d),{fg:l.accent}),j("░".repeat(o-d),{fg:l.faint}),j(` ${e.display.padStart(s)}`,{fg:l.fg})];return ne.label.length)),i=Math.max(0,...t.map(e=>e.display.length)),s=Math.max(6,Math.min(28,n-a-i-3));return t.map(e=>{let t=Math.min(...e.values),n=Math.max(...e.values)-t||1,r=Array.from({length:s},(l,a)=>{let i=Math.round(a/(s-1||1)*(e.values.length-1));return C[Math.min(7,Math.max(0,Math.round(((e.values[i]??t)-t)/n*7)))]??"▁"}).join("");return[j(`${e.label.padEnd(a)} `,{fg:l.dim}),j(r,{fg:l.accent}),j(` ${e.display.padStart(i)}`,{fg:l.fg})]})}({rows:a.rows.map(t=>{let l,n;return n=(l=Array.from({length:34},(e,l)=>t.baseline+E(l,c+t.phase,t.amp))).at(-1)??t.baseline,{label:t.label,values:l,display:`${(0,y.formatNativeFixed)(n,{locale:e,fractionDigits:t.decimals??0})??"—"}${t.unit}`}}),s:i,cols:K(s)}),box:!0};case"braille":return{lines:function(e){let{series:t,s:l,cols:n,rows:a}=e,i=Math.max(1,n),s=Math.max(1,a),r=2*i,o=4*s,c=Array.from({length:i*s},()=>0),d=Array.from({length:i*s}),f=({px:e,py:t,fg:l})=>{if(e<0||t<0||e>=r||t>=o)return;let n=(t>>2)*i+(e>>1),a=$[1&e]?.[3&t]??0;c[n]=(c[n]??0)|a,d[n]=l},u=t.flatMap(e=>e.values),h=Math.min(...u),m=Math.max(...u)-h||1;for(let e of t){let t=l[e.fg],n=e.values.length;for(let l=0;l({values:Array.from({length:90},(t,l)=>E(l,c+e.phase,e.amp)),fg:e.fg})),s:i,cols:K(s),rows:a.rows}),box:!0};case"servers":return{lines:(n=a.rows,n.map(e=>[j("●",{fg:i.green}),j(` ${e.name.padEnd(14)} `,{fg:i.fg}),j(e.meta,{fg:i.dim})]))};case"harness":return{lines:a.rows.map(e=>{let[t,...l]=e.cmd.split(" ");return[j("$ ",{fg:i.dim}),j(`${t} `,{fg:i.fg}),j(l.join(" "),{fg:i.accent}),j(` → ${e.label}`,{fg:i.faint})]})};default:return a}}(h,{step:s,s:r,cols:o,sub:c,done:f,tick:u}),i[0]=o,i[1]=f,i[2]=h,i[3]=r,i[4]=s,i[5]=c,i[6]=u,i[7]=n):n=i[7];let{lines:m,tight:p,bar:x,box:g,hlRow:w}=n;if(g){let e;return i[8]!==m?(e=(0,t.jsx)(Q,{lines:m,tight:!0}),i[8]=m,i[9]=e):e=i[9],e}if(x){let e;return i[10]!==m||i[11]!==r?(e=(0,t.jsx)(X,{lines:m,s:r}),i[10]=m,i[11]=r,i[12]=e):e=i[12],e}if(w){let e;return i[13]!==m||i[14]!==r?(e=(0,t.jsx)(Z,{lines:m,s:r}),i[13]=m,i[14]=r,i[15]=e):e=i[15],e}return i[16]!==m||i[17]!==p?(a=(0,t.jsx)(Q,{lines:m,tight:p}),i[16]=m,i[17]=p,i[18]=a):a=i[18],a}function et(e){let n,a,i,s,r,o,c,d,f=(0,l.c)(19),{text:u,index:h,s:m}=e,p=String(h+1);f[0]!==p?(n=p.padStart(2,"0"),f[0]=p,f[1]=n):n=f[1];let x=n;return f[2]!==m.faint?(a={color:m.faint},f[2]=m.faint,f[3]=a):a=f[3],f[4]!==m.accent?(i={color:m.accent},f[4]=m.accent,f[5]=i):i=f[5],f[6]!==x||f[7]!==i?(s=(0,t.jsx)("span",{"data-allow-inline-style":!0,className:"shrink-0",style:i,children:x}),f[6]=x,f[7]=i,f[8]=s):s=f[8],f[9]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("span",{className:"shrink-0",children:"──"}),f[9]=r):r=f[9],f[10]!==m.fg?(o={color:m.fg},f[10]=m.fg,f[11]=o):o=f[11],f[12]!==o||f[13]!==u?(c=(0,t.jsx)("span",{"data-allow-inline-style":!0,className:"min-w-0 select-text whitespace-pre-wrap break-words font-bold tracking-tight",style:o,children:u}),f[12]=o,f[13]=u,f[14]=c):c=f[14],f[15]!==a||f[16]!==s||f[17]!==c?(d=(0,t.jsxs)("div",{"data-allow-inline-style":!0,className:"flex max-w-[98ch] select-none items-baseline gap-[0.5ch] whitespace-pre text-[1.75em] leading-tight",style:a,children:[s,r,c]}),f[15]=a,f[16]=s,f[17]=c,f[18]=d):d=f[18],d}function el(e){let n,a,i,s,r,o,c,d,f,u=(0,l.c)(25),{title:h,desc:m,index:p,titleShown:x,descShown:g,s:y}=e,w=+!!x;u[0]!==w?(n={...J,opacity:w,transition:"opacity 400ms ease"},u[0]=w,u[1]=n):n=u[1],u[2]!==p||u[3]!==y||u[4]!==h?(a=(0,t.jsx)(et,{text:h,index:p,s:y}),u[2]=p,u[3]=y,u[4]=h,u[5]=a):a=u[5],u[6]!==n||u[7]!==a?(i=(0,t.jsx)("h2",{"data-allow-inline-style":!0,className:"leading-relaxed",style:n,children:a}),u[6]=n,u[7]=a,u[8]=i):i=u[8];let b=+!!g;return u[9]!==b?(s={opacity:b,transition:"opacity 400ms ease"},u[9]=b,u[10]=s):s=u[10],u[11]!==y.accent?(r=(0,t.jsx)("span",{"aria-hidden":!0,"data-allow-inline-style":!0,className:"shrink-0 select-none",style:{color:y.accent},children:"//"}),u[11]=y.accent,u[12]=r):r=u[12],u[13]!==y.fg?(o={color:y.fg},u[13]=y.fg,u[14]=o):o=u[14],u[15]!==m||u[16]!==o?(c=(0,t.jsx)("span",{"data-allow-inline-style":!0,className:"min-w-0 flex-1",style:o,children:m}),u[15]=m,u[16]=o,u[17]=c):c=u[17],u[18]!==s||u[19]!==r||u[20]!==c?(d=(0,t.jsxs)("p",{"data-allow-inline-style":!0,className:"mb-2 flex max-w-[98ch] gap-[1ch] leading-relaxed",style:s,children:[r,c]}),u[18]=s,u[19]=r,u[20]=c,u[21]=d):d=u[21],u[22]!==d||u[23]!==i?(f=(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[i,d]}),u[22]=d,u[23]=i,u[24]=f):f=u[24],f}function en(){let e,t=(0,l.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=window.matchMedia("(prefers-reduced-motion: reduce)").matches,t[0]=e):e=t[0],e}function ea(e){let n,a,i,s,r,o,c,d,f,u,h,m,p,x,y,w,b,j,v,N,k,M,S=(0,l.c)(84),{scene:E,index:C,active:$,reached:F,teased:R,descTeased:_,s:A,cols:B}=e,T=en(),[H,L]=(0,g.useState)(!1);S[0]!==F?(n=()=>{F&&L(!0)},a=[F],S[0]=F,S[1]=n,S[2]=a):(n=S[1],a=S[2]),(0,g.useEffect)(n,a);let q=H||T,[I,z]=(0,g.useState)(!1);S[3]!==R?(i=()=>{R&&z(!0)},s=[R],S[3]=R,S[4]=i,S[5]=s):(i=S[4],s=S[5]),(0,g.useEffect)(i,s),S[6]===Symbol.for("react.memo_cache_sentinel")?(r={idx:0,sub:0},S[6]=r):r=S[6];let[U,D]=(0,g.useState)(r),P=U.idx>=E.steps.length;S[7]!==P||S[8]!==T||S[9]!==E.steps||S[10]!==q?(o=()=>{if(!q)return;if(T)return void D({idx:E.steps.length,sub:0});if(P)return;let e=setInterval(()=>{D(e=>{if(e.idx>=E.steps.length)return e;let t=E.steps[e.idx];if(!t)return e;let l=function(e){switch(e.kind){case"cmt":case"shell":case"user":case"assistant":return e.text.length;case"boot":case"harness":case"table":case"servers":case"trend":case"braille":return 12;case"picker":return e.rows.some(e=>e.settle)?300:12;case"chart":return 150;case"out":case"tool":case"diff":return 10;default:return e}}(t),n=e.sub+4;return n>=l?{idx:e.idx+1,sub:0}:{idx:e.idx,sub:n}})},16);return()=>clearInterval(e)},S[7]=P,S[8]=T,S[9]=E.steps,S[10]=q,S[11]=o):o=S[11],S[12]!==P||S[13]!==T||S[14]!==E||S[15]!==q?(c=[q,T,E,P],S[12]=P,S[13]=T,S[14]=E,S[15]=q,S[16]=c):c=S[16],(0,g.useEffect)(o,c),S[17]!==E.steps?(d=E.steps.some(es),S[17]=E.steps,S[18]=d):d=S[18];let W=d,[O,V]=(0,g.useState)(0);if(S[19]!==W||S[20]!==U.idx||S[21]!==T?(u=()=>{if(!W||T||0===U.idx)return;let e=setInterval(()=>V(ei),120);return()=>clearInterval(e)},f=[W,T,U.idx],S[19]=W,S[20]=U.idx,S[21]=T,S[22]=f,S[23]=u):(f=S[22],u=S[23]),(0,g.useEffect)(u,f),S[24]!==$||S[25]!==B||S[26]!==_||S[27]!==C||S[28]!==U.idx||S[29]!==U.sub||S[30]!==A||S[31]!==E.desc||S[32]!==E.steps||S[33]!==E.title||S[34]!==q||S[35]!==I||S[36]!==O){let e,l,n=q?E.steps.slice(0,Math.min(U.idx+1,E.steps.length)):[];y="",w=!0,b="mt-24 flex flex-col gap-8";let a=$?1:.25;S[46]!==a?(j={opacity:a,transition:"opacity 400ms ease"},S[46]=a,S[47]=j):j=S[47];let i=q||I||_,s=q||_;if(S[48]!==C||S[49]!==A||S[50]!==E.desc||S[51]!==E.title||S[52]!==i||S[53]!==s?(v=(0,t.jsx)(el,{title:E.title,desc:E.desc,index:C,titleShown:i,descShown:s,s:A}),S[48]=C,S[49]=A,S[50]=E.desc,S[51]=E.title,S[52]=i,S[53]=s,S[54]=v):v=S[54],p="grid min-w-0 grid-cols-[minmax(0,1fr)] [&>*]:col-start-1 [&>*]:row-start-1 [&>*]:min-w-0",S[55]!==B||S[56]!==A||S[57]!==E.steps){let l;S[59]!==B||S[60]!==A?(l=(e,l)=>(0,t.jsx)(ee,{step:e,s:A,cols:B,sub:0,done:!0,tick:0},l),S[59]=B,S[60]=A,S[61]=l):l=S[61],e=E.steps.map(l),S[55]=B,S[56]=A,S[57]=E.steps,S[58]=e}else e=S[58];S[62]!==e?(x=(0,t.jsx)("div",{"aria-hidden":!0,className:"invisible flex flex-col gap-5",children:e}),S[62]=e,S[63]=x):x=S[63],h="flex flex-col gap-5",S[64]!==B||S[65]!==U.idx||S[66]!==U.sub||S[67]!==A||S[68]!==O?(l=(e,l)=>(0,t.jsx)(ee,{step:e,s:A,cols:B,sub:l===U.idx?U.sub:0,done:le.length)),a=Number.MAX_SAFE_INTEGER;for(let e=0;e(t[e]??"")[i]===n[i]);)i++;a=Math.min(a,i)}return a}(d);n=d.map((l,n)=>(function(e){let{frame:t,word:l,prefixCols:n}=e,a=A(t);if(!l)return B(n,a);let i=[n],s=n;for(let e of l.toUpperCase()){let t=F[e];if(void 0===t)return B(n,a);s+=t,i.push(s)}return s!==a?B(n,a):i})({frame:l,word:e[n]?.word,prefixCols:t})),o[2]=d,o[3]=e,o[4]=n}else n=o[4];let f=n,[u,h]=(0,g.useState)(R),m=!c&&d.length>1;o[5]!==m||o[6]!==f?(a=()=>{if(!m)return;let e=setInterval(()=>h(e=>(function(e){let{pos:t,stops:l}=e;if(l.length<2)return t;let n=(l[t.idx]?.length??1)-1;switch(t.phase){case"hold":if(t.ticks+1<150)return{...t,ticks:t.ticks+1};return{idx:t.idx,phase:"erase",stop:n,ticks:0};case"erase":if(t.ticks+1<4)return{...t,ticks:t.ticks+1};if(t.stop>0)return{...t,stop:t.stop-1,ticks:0};return{idx:(t.idx+1)%l.length,phase:"type",stop:0,ticks:0};case"type":if(t.ticks+1<7)return{...t,ticks:t.ticks+1};if(t.stopclearInterval(e)},i=[m,f],o[5]=m,o[6]=f,o[7]=a,o[8]=i):(a=o[7],i=o[8]),(0,g.useEffect)(a,i),o[9]!==d||o[10]!==u||o[11]!==m?(s=d[m?u.idx:0]??[],o[9]=d,o[10]=u,o[11]=m,o[12]=s):s=o[12];let p=s;if(!m||"hold"===u.phase){let e;return o[13]!==p?(e=[...p],o[13]=p,o[14]=e):e=o[14],e}let x=f[u.idx]?.[u.stop]??0;if(o[15]!==x||o[16]!==p){let e;o[18]!==x?(e=e=>e.slice(0,x),o[18]=x,o[19]=e):e=o[19],r=p.map(e),o[15]=x,o[16]=p,o[17]=r}else r=o[17];return r}(b.heroAsciiFrames);if(x[0]!==b.heroAsciiFrames){let e;e=Math.min(2.4,2.4*57/Math.max(...b.heroAsciiFrames.map(e=>A(_(e.art))),1)),n=`clamp(1px, calc(${e.toFixed(3)}cqw * var(--ori-hero-scale)), 22px)`,x[0]=b.heroAsciiFrames,x[1]=n}else n=x[1];let k=n;x[2]!==k||x[3]!==j||x[4]!==y.accent?(a={color:y.accent,fontSize:k,"--ori-hero-scale":j},x[2]=k,x[3]=j,x[4]=y.accent,x[5]=a):a=x[5];let M=a;return x[6]===Symbol.for("react.memo_cache_sentinel")?(i={containerType:"inline-size"},x[6]=i):i=x[6],x[7]!==N?(s=N.map(ed),x[7]=N,x[8]=s):s=x[8],x[9]!==M||x[10]!==s?(r=(0,t.jsx)("div",{"aria-hidden":!0,"data-allow-inline-style":!0,className:"max-w-full overflow-hidden",style:i,children:(0,t.jsx)("pre",{"data-allow-inline-style":!0,className:"select-none font-mono leading-[1.1]",style:M,children:s})}),x[9]=M,x[10]=s,x[11]=r):r=x[11],x[12]===Symbol.for("react.memo_cache_sentinel")?(o={...J,fontWeight:700},x[12]=o):o=x[12],x[13]!==b.srLabel?(c=(0,t.jsx)("span",{className:"sr-only",children:b.srLabel}),x[13]=b.srLabel,x[14]=c):c=x[14],x[15]!==b.heroHeading||x[16]!==c?(d=(0,t.jsxs)("h1",{"data-allow-inline-style":!0,className:"leading-relaxed",style:o,children:[c,b.heroHeading]}),x[15]=b.heroHeading,x[16]=c,x[17]=d):d=x[17],x[18]!==b.heroSubheading||x[19]!==y.dim?(f=b.heroSubheading?(0,t.jsx)("p",{"data-allow-inline-style":!0,className:"max-w-3xl",style:{color:y.dim,fontSize:"0.85em"},children:b.heroSubheading}):null,x[18]=b.heroSubheading,x[19]=y.dim,x[20]=f):f=x[20],x[21]!==b.CtaSlot||x[22]!==b.cta||x[23]!==y?(u=b.CtaSlot?(0,t.jsx)(b.CtaSlot,{s:y}):(0,t.jsxs)("div",{"data-allow-inline-style":!0,className:"w-full max-w-fit rounded-[var(--radius-md)] border px-3 py-2",style:{borderColor:y.faint,background:y.chrome},children:[(0,t.jsx)(eu,{s:y,label:"agent"===b.cta.kind?b.cta.label:void 0,text:b.cta.text,copyEvent:b.cta.copyEvent,copyAriaLabel:er(b.cta)}),"install"===b.cta.kind&&b.cta.runHint?(0,t.jsx)("div",{"data-allow-inline-style":!0,className:"mt-1 truncate font-semibold",style:{color:y.dim},children:b.cta.runHint}):null]}),x[21]=b.CtaSlot,x[22]=b.cta,x[23]=y,x[24]=u):u=x[24],x[25]!==b.docsHref||x[26]!==b.docsLabel||x[27]!==y.dim?(h=b.docsHref?(0,t.jsx)("a",{"data-allow-inline-style":!0,href:b.docsHref,className:"mb-8 w-fit underline underline-offset-4 hover:opacity-80",style:{color:y.dim},children:b.docsLabel??"read the docs →"}):null,x[25]=b.docsHref,x[26]=b.docsLabel,x[27]=y.dim,x[28]=h):h=x[28],x[29]!==b.demoVideo||x[30]!==v||x[31]!==y.chrome||x[32]!==y.faint?(m=b.demoVideo?(0,t.jsx)("figure",{className:"flex w-full max-w-[75ch] flex-col gap-2",children:(0,t.jsx)("div",{"data-allow-inline-style":!0,className:"w-full max-w-[calc(22rem*1618/1142)] overflow-hidden rounded-[var(--radius-md)] border p-1",style:{borderColor:y.faint,background:y.chrome},children:(0,t.jsx)("video",{src:b.demoVideo.src,autoPlay:!v,controls:v,muted:!0,loop:!0,playsInline:!0,preload:"metadata",width:1618,height:1142,"aria-label":b.demoVideo.label,className:"aspect-[1618/1142] h-auto max-h-[22rem] max-w-full rounded-sm"})})}):null,x[29]=b.demoVideo,x[30]=v,x[31]=y.chrome,x[32]=y.faint,x[33]=m):m=x[33],x[34]!==w||x[35]!==u||x[36]!==h||x[37]!==m||x[38]!==r||x[39]!==d||x[40]!==f?(p=(0,t.jsxs)("div",{ref:w,className:"flex flex-col gap-4",children:[r,d,f,u,h,m]}),x[34]=w,x[35]=u,x[36]=h,x[37]=m,x[38]=r,x[39]=d,x[40]=f,x[41]=p):p=x[41],p}function ed(e,l){return(0,t.jsx)("span",{className:"block",children:e.split(/([╔╗╚╝║═]+)/).map(ef)},l)}function ef(e,l){return/[╔╗╚╝║═]/.test(e)?(0,t.jsx)("span",{"data-allow-inline-style":!0,style:{opacity:.3},children:e},l):e}function eu(e){let n,a,i,r,o,d,f,h,x,y,w=(0,l.c)(32),{s:b,label:j,text:v,copyEvent:N,copyAriaLabel:k,wrap:M}=e,S=void 0!==M&&M,{copied:E,copy:C}=function(e,t){let n,a,i,s,r,o=(0,l.c)(11),d=(0,c.usePosthogClient)(),[f,h]=(0,g.useState)(!1),m=(0,g.useRef)(null);o[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>()=>{m.current&&clearTimeout(m.current)},a=[],o[0]=n,o[1]=a):(n=o[0],a=o[1]),(0,g.useEffect)(n,a),o[2]!==e?(i=async()=>{if(!navigator.clipboard)return;let t=await (0,u.wrap)(()=>navigator.clipboard.writeText(e));(0,u.isErr)(t)||(h(!0),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>h(!1),1600))},o[2]=e,o[3]=i):i=o[3];let p=i;o[4]!==t||o[5]!==d||o[6]!==p?(s=()=>{d.capture(t),p()},o[4]=t,o[5]=d,o[6]=p,o[7]=s):s=o[7];let x=s;return o[8]!==f||o[9]!==x?(r={copied:f,copy:x},o[8]=f,o[9]=x,o[10]=r):r=o[10],r}(v,N),$=S?"items-start":"items-center";w[0]!==$?(n=(0,s.cn)("flex gap-2",$),w[0]=$,w[1]=n):n=w[1],w[2]!==j||w[3]!==b.dim?(a=j&&(0,t.jsx)("span",{"data-allow-inline-style":!0,className:"shrink-0 select-text",style:{color:b.dim},children:j}),w[2]=j,w[3]=b.dim,w[4]=a):a=w[4],w[5]!==b.blue?(i=(0,t.jsx)("span",{"data-allow-inline-style":!0,className:"shrink-0 select-none",style:{color:b.blue},children:"❯"}),w[5]=b.blue,w[6]=i):i=w[6];let F=S?"items-start":"items-center";w[7]!==F?(r=(0,s.cn)("flex min-w-0 flex-1 cursor-pointer gap-2 text-left transition-opacity hover:opacity-70",F),w[7]=F,w[8]=r):r=w[8];let R=S?"whitespace-pre-wrap break-words":"truncate";return w[9]!==R?(o=(0,s.cn)("min-w-0 flex-1 font-semibold",R),w[9]=R,w[10]=o):o=w[10],w[11]!==b.dim?(d={color:b.dim},w[11]=b.dim,w[12]=d):d=w[12],w[13]!==d||w[14]!==o||w[15]!==v?(f=(0,t.jsx)("span",{"data-allow-inline-style":!0,className:o,style:d,children:v}),w[13]=d,w[14]=o,w[15]=v,w[16]=f):f=w[16],w[17]!==E||w[18]!==b.dim||w[19]!==b.green?(h=E?(0,t.jsx)(m.Check,{"data-allow-inline-style":!0,className:"size-4 shrink-0",style:{color:b.green}}):(0,t.jsx)(p.Copy,{"data-allow-inline-style":!0,className:"size-4 shrink-0",style:{color:b.dim}}),w[17]=E,w[18]=b.dim,w[19]=b.green,w[20]=h):h=w[20],w[21]!==C||w[22]!==k||w[23]!==f||w[24]!==h||w[25]!==r?(x=(0,t.jsxs)("button",{type:"button","aria-label":k,onClick:C,"data-allow-inline-style":!0,className:r,children:[f,h]}),w[21]=C,w[22]=k,w[23]=f,w[24]=h,w[25]=r,w[26]=x):x=w[26],w[27]!==x||w[28]!==n||w[29]!==a||w[30]!==i?(y=(0,t.jsxs)("div",{className:n,children:[a,i,x]}),w[27]=x,w[28]=n,w[29]=a,w[30]=i,w[31]=y):y=w[31],y}function eh(e){let n,a,i,s,r,o,c,d,f=(0,l.c)(22),{s:u,chromeRef:h,label:m}=e;return f[0]!==u.chrome?(n={background:u.chrome},f[0]=u.chrome,f[1]=n):n=f[1],f[2]!==u.faint?(a=(0,t.jsx)("span",{"data-allow-inline-style":!0,className:"size-2.5 rounded-[var(--radius-full)]",style:{background:u.faint}}),f[2]=u.faint,f[3]=a):a=f[3],f[4]!==u.faint?(i=(0,t.jsx)("span",{"data-allow-inline-style":!0,className:"size-2.5 rounded-[var(--radius-full)]",style:{background:u.faint}}),f[4]=u.faint,f[5]=i):i=f[5],f[6]!==u.faint?(s=(0,t.jsx)("span",{"data-allow-inline-style":!0,className:"size-2.5 rounded-[var(--radius-full)]",style:{background:u.faint}}),f[6]=u.faint,f[7]=s):s=f[7],f[8]!==a||f[9]!==i||f[10]!==s?(r=(0,t.jsxs)("span",{"aria-hidden":!0,className:"flex shrink-0 items-center gap-1.5",children:[a,i,s]}),f[8]=a,f[9]=i,f[10]=s,f[11]=r):r=f[11],f[12]!==u.dim?(o={color:u.dim},f[12]=u.dim,f[13]=o):o=f[13],f[14]!==m||f[15]!==o?(c=(0,t.jsx)("span",{"data-allow-inline-style":!0,className:"shrink-0",style:o,children:m}),f[14]=m,f[15]=o,f[16]=c):c=f[16],f[17]!==h||f[18]!==n||f[19]!==r||f[20]!==c?(d=(0,t.jsxs)("div",{ref:h,"data-allow-inline-style":!0,className:"sticky top-[calc(56px+var(--sticky-banner-top,0px))] z-20 flex items-center gap-3 px-3 py-2",style:n,children:[r,c]}),f[17]=h,f[18]=n,f[19]=r,f[20]=c,f[21]=d):d=f[21],d}function em(e){let n,a,i,s,r=(0,l.c)(9),{s:o,lean:c,children:d}=e;r[0]!==o.chrome?(n={background:o.chrome},r[0]=o.chrome,r[1]=n):n=r[1];let f=`flex flex-col gap-3 px-5 transition-[padding-top] duration-300 ease-out md:px-8 ${c?"pt-1.5":"pt-4"}`;return r[2]===Symbol.for("react.memo_cache_sentinel")?(a={paddingBottom:"max(1rem, env(safe-area-inset-bottom))"},r[2]=a):a=r[2],r[3]!==d||r[4]!==f?(i=(0,t.jsx)("div",{"data-allow-inline-style":!0,className:f,style:a,children:d}),r[3]=d,r[4]=f,r[5]=i):i=r[5],r[6]!==n||r[7]!==i?(s=(0,t.jsx)("div",{"data-allow-inline-style":!0,className:"sticky bottom-0 z-20",style:n,children:i}),r[6]=n,r[7]=i,r[8]=s):s=r[8],s}function ep(e){let n,a,i,s=(0,l.c)(9),{s:r,before:o,after:c}=e;return s[0]!==r.fg?(n={color:r.fg},s[0]=r.fg,s[1]=n):n=s[1],s[2]!==r.accent?(a=(0,t.jsx)("span",{"data-allow-inline-style":!0,style:{color:r.accent},children:"ori deploy"}),s[2]=r.accent,s[3]=a):a=s[3],s[4]!==c||s[5]!==o||s[6]!==n||s[7]!==a?(i=(0,t.jsxs)("span",{"data-allow-inline-style":!0,style:n,children:[o,a,c]}),s[4]=c,s[5]=o,s[6]=n,s[7]=a,s[8]=i):i=s[8],i}function ex(e){let n,a,i,s=(0,l.c)(7),{s:r}=e;return s[0]!==r.accent?(n=(0,t.jsxs)("span",{"data-allow-inline-style":!0,className:"select-none",style:{color:r.accent},children:["⏺"," "]}),s[0]=r.accent,s[1]=n):n=s[1],s[2]!==r?(a=(0,t.jsx)(ep,{s:r,before:"You're on the ",after:" waitlist — we'll be in touch."}),s[2]=r,s[3]=a):a=s[3],s[4]!==n||s[5]!==a?(i=(0,t.jsxs)("div",{className:"break-all",children:[n,a]}),s[4]=n,s[5]=a,s[6]=i):i=s[6],i}function eg(e){let n,a,i,s,r,o,c=(0,l.c)(19),{s:d,label:f,isDisabled:u,onJoin:h,didFail:m}=e;return c[0]!==d.blue?(n=(0,t.jsx)("span",{"data-allow-inline-style":!0,className:"shrink-0 select-none",style:{color:d.blue},children:"❯"}),c[0]=d.blue,c[1]=n):n=c[1],c[2]!==f||c[3]!==d?(a=f?(0,t.jsx)(ep,{s:d,before:f.before,after:f.after}):null,c[2]=f,c[3]=d,c[4]=a):a=c[4],c[5]!==d.faint?(i=(0,t.jsx)("span",{"data-allow-inline-style":!0,className:"ml-auto shrink-0 select-none",style:{color:d.faint},children:"↵"}),c[5]=d.faint,c[6]=i):i=c[6],c[7]!==u||c[8]!==h||c[9]!==n||c[10]!==a||c[11]!==i?(s=(0,t.jsxs)("button",{type:"button",onClick:h,disabled:u,"data-allow-inline-style":!0,className:"flex cursor-pointer items-center gap-2 text-left transition-opacity hover:opacity-70 disabled:cursor-default disabled:opacity-60",children:[n,a,i]}),c[7]=u,c[8]=h,c[9]=n,c[10]=a,c[11]=i,c[12]=s):s=c[12],c[13]!==m||c[14]!==d.yellow?(r=m&&(0,t.jsx)("span",{"data-allow-inline-style":!0,style:{color:d.yellow},children:"couldn't join just now — click to try again"}),c[13]=m,c[14]=d.yellow,c[15]=r):r=c[15],c[16]!==s||c[17]!==r?(o=(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-1",children:[s,r]}),c[16]=s,c[17]=r,c[18]=o):o=c[18],o}function ey(e){let n,i=(0,l.c)(6),{s,autoJoin:r}=e,{user:o}=(0,a.useUser)();if(!o){let e;return i[0]!==s?(e=(0,t.jsx)(eg,{s:s,label:null,isDisabled:!0,onJoin:ew,didFail:!1}),i[0]=s,i[1]=e):e=i[1],e}return i[2]!==r||i[3]!==s||i[4]!==o.id?(n=(0,t.jsx)(eb,{s:s,autoJoin:r,clerkUserId:o.id},o.id),i[2]=r,i[3]=s,i[4]=o.id,i[5]=n):n=i[5],n}function ew(){}function eb(e){let n,a,s,r,o,d,f,m,p,x,y,w=(0,l.c)(27),{s:b,autoJoin:j,clerkUserId:v}=e,N=(0,c.usePosthogClient)(),{mutate:k,isPending:M,errorT:S}=((y=(0,l.c)(4))[0]!==v?(p=W.status(v),y[0]=v,y[1]=p):p=y[1],y[2]!==p?(x={mutationFn:O,invalidates:[p]},y[2]=p,y[3]=x):x=y[3],(0,q.useAPIMutation)(x)),[E,C]=(0,g.useState)(!1),$=(0,g.useRef)(!1);w[0]!==v?(n=(0,P.queryOptions)({queryKey:W.status(v),queryFn:({signal:e})=>(0,T.fetchAPIQuery)("/api/frontend/v1/private/ori-deploy-waitlist",{signal:e,schema:z})}),w[0]=v,w[1]=n):n=w[1],w[2]!==n?(a={...n},w[2]=n,w[3]=a):a=w[3];let{data:F,isPending:R,isError:_}=(0,h.useQuery)(a);w[4]!==k||w[5]!==N?(s=async()=>{if($.current)return;$.current=!0;let e=await k();if((0,u.isErr)(e)){$.current=!1;return}C(!0),N.capture(i.PostHogEvent.OriDeployWaitlist)},w[4]=k,w[5]=N,w[6]=s):s=w[6];let A=s;if(w[7]!==j||w[8]!==_||w[9]!==R||w[10]!==A||w[11]!==F?(r=()=>{!(!j||R||F?.joined)&&(_||void 0!==F)&&A()},o=[j,_,R,A,F],w[7]=j,w[8]=_,w[9]=R,w[10]=A,w[11]=F,w[12]=r,w[13]=o):(r=w[12],o=w[13]),(0,g.useEffect)(r,o),E||F?.joined){let e;return w[14]!==b?(e=(0,t.jsx)(ex,{s:b}),w[14]=b,w[15]=e):e=w[15],e}w[16]!==R||w[17]!==M?(d=function(e){let{isCheckingStatus:t,isPending:l}=e;return t?null:l?{before:"joining the ",after:" waitlist…"}:{before:"join the ",after:" waitlist"}}({isCheckingStatus:R,isPending:M}),w[16]=R,w[17]=M,w[18]=d):d=w[18];let B=M||R;w[19]!==A?(f=()=>void A(),w[19]=A,w[20]=f):f=w[20];let H=null!==S&&!M;return w[21]!==b||w[22]!==d||w[23]!==B||w[24]!==f||w[25]!==H?(m=(0,t.jsx)(eg,{s:b,label:d,isDisabled:B,onJoin:f,didFail:H}),w[21]=b,w[22]=d,w[23]=B,w[24]=f,w[25]=H,w[26]=m):m=w[26],m}function ej(e){let a,i,s,r,o,c=(0,l.c)(14),{s:d,redirectUrl:f}=e,{openSignIn:u}=(0,n.useClerk)();c[0]!==u||c[1]!==f?(a=()=>{u&&u({forceRedirectUrl:f,signUpForceRedirectUrl:f})},c[0]=u,c[1]=f,c[2]=a):a=c[2];let h=a;return c[3]!==d.blue?(i=(0,t.jsx)("span",{"data-allow-inline-style":!0,className:"shrink-0 select-none",style:{color:d.blue},children:"❯"}),c[3]=d.blue,c[4]=i):i=c[4],c[5]!==d?(s=(0,t.jsx)(ep,{s:d,before:"sign in to join the ",after:" waitlist"}),c[5]=d,c[6]=s):s=c[6],c[7]!==d.faint?(r=(0,t.jsx)("span",{"data-allow-inline-style":!0,className:"ml-auto shrink-0 select-none",style:{color:d.faint},children:"↵"}),c[7]=d.faint,c[8]=r):r=c[8],c[9]!==h||c[10]!==i||c[11]!==s||c[12]!==r?(o=(0,t.jsxs)("button",{type:"button",onClick:h,"data-allow-inline-style":!0,className:"flex flex-1 cursor-pointer items-center gap-2 text-left transition-opacity hover:opacity-70",children:[i,s,r]}),c[9]=h,c[10]=i,c[11]=s,c[12]=r,c[13]=o):o=c[13],o}function ev(e){let n,i,s,o,c,d=(0,l.c)(15),{s:f,showDivider:u,waitlistRedirectUrl:h}=e,{isSignedIn:m}=(0,r.useEntity)(),{user:p}=(0,a.useUser)(),x=p?.id,[y,w]=(0,g.useState)(null);d[0]!==x||d[1]!==m?(n=()=>{if(!m||void 0===x)return;let e=new URLSearchParams(window.location.search);if("1"!==e.get(V))return;w(e=>e??x),e.delete(V);let t=e.toString();window.history.replaceState(null,"",`${window.location.pathname}${t?`?${t}`:""}`)},i=[x,m],d[0]=x,d[1]=m,d[2]=n,d[3]=i):(n=d[2],i=d[3]),(0,g.useEffect)(n,i);let b=y===x,j=u?"flex items-center gap-2 border-t pt-3":"flex items-center gap-2";return d[4]!==f.faint?(s={borderColor:f.faint},d[4]=f.faint,d[5]=s):s=d[5],d[6]!==b||d[7]!==m||d[8]!==f||d[9]!==h?(o=m?(0,t.jsx)(ey,{s:f,autoJoin:b}):(0,t.jsx)(ej,{s:f,redirectUrl:`${h}?${V}=1`}),d[6]=b,d[7]=m,d[8]=f,d[9]=h,d[10]=o):o=d[10],d[11]!==j||d[12]!==s||d[13]!==o?(c=(0,t.jsx)("div",{"data-allow-inline-style":!0,className:j,style:s,children:o}),d[11]=j,d[12]=s,d[13]=o,d[14]=c):c=d[14],c}function eN(e){let n,a,i,s,r,o,c,d,f,u,h=(0,l.c)(33),{item:m,s:p,cols:x,isOpen:y,onToggle:w}=e,b=(0,g.useId)();h[0]!==x||h[1]!==m.q||h[2]!==p?(n=S(k(m.q,p,x),p.accent),h[0]=x,h[1]=m.q,h[2]=p,h[3]=n):n=h[3];let N=n;h[4]!==x||h[5]!==m.a||h[6]!==p?(a=S(function(e){let{text:t,s:l,cols:n}=e;return v(t,n-2).map(e=>[j(" "),j(e,{fg:l.fg})])}({text:m.a,s:p,cols:x}),p.accent),h[4]=x,h[5]=m.a,h[6]=p,h[7]=a):a=h[7];let M=a;h[8]!==p.faint?(i={color:p.faint},h[8]=p.faint,h[9]=i):i=h[9];let E=y?"[-]":"[+]";h[10]!==i||h[11]!==E?(s=(0,t.jsx)("span",{"aria-hidden":!0,"data-allow-inline-style":!0,className:"shrink-0 select-none whitespace-pre",style:i,children:E}),h[10]=i,h[11]=E,h[12]=s):s=h[12],h[13]!==N||h[14]!==p||h[15]!==s?(r=(0,t.jsx)(X,{lines:N,s:p,trailing:s}),h[13]=N,h[14]=p,h[15]=s,h[16]=r):r=h[16],h[17]!==b||h[18]!==y||h[19]!==w||h[20]!==r?(o=(0,t.jsx)("h2",{"data-allow-inline-style":!0,style:J,children:(0,t.jsx)("button",{type:"button",onClick:w,"aria-expanded":y,"aria-controls":b,className:"block w-full cursor-pointer text-left transition-opacity hover:opacity-70",children:r})}),h[17]=b,h[18]=y,h[19]=w,h[20]=r,h[21]=o):o=h[21];let C=y?"1fr":"0fr";return h[22]!==C?(c={gridTemplateRows:C},h[22]=C,h[23]=c):c=h[23],h[24]!==M?(d=(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsx)("div",{className:"pt-3",children:(0,t.jsx)(Q,{lines:M})})}),h[24]=M,h[25]=d):d=h[25],h[26]!==b||h[27]!==d||h[28]!==c?(f=(0,t.jsx)("div",{id:b,role:"region","data-allow-inline-style":!0,className:"grid transition-[grid-template-rows] duration-200 ease-out",style:c,children:d}),h[26]=b,h[27]=d,h[28]=c,h[29]=f):f=h[29],h[30]!==f||h[31]!==o?(u=(0,t.jsxs)("div",{className:"flex flex-col",children:[o,f]}),h[30]=f,h[31]=o,h[32]=u):u=h[32],u}function ek(e){let n,a,i,s,r,o,c=(0,l.c)(22),{s:d,cols:f,content:u,reached:h}=e,[m,p]=(0,g.useState)(null),x=en(),[y,w]=(0,g.useState)(!1);c[0]!==h?(n=()=>{h&&w(!0)},a=[h],c[0]=h,c[1]=n,c[2]=a):(n=c[1],a=c[2]),(0,g.useEffect)(n,a);let b=+!!(y||x);if(c[3]!==b?(i={opacity:b,transition:"opacity 400ms ease"},c[3]=b,c[4]=i):i=c[4],c[5]!==u.faqBannerText||c[6]!==u.scenes.length||c[7]!==d?(s=(0,t.jsx)("h2",{"data-allow-inline-style":!0,className:"mb-5 leading-relaxed",style:J,children:(0,t.jsx)(et,{text:u.faqBannerText,index:u.scenes.length,s:d})}),c[5]=u.faqBannerText,c[6]=u.scenes.length,c[7]=d,c[8]=s):s=c[8],c[9]!==f||c[10]!==u.faqs||c[11]!==m||c[12]!==d){let e;c[14]!==f||c[15]!==m||c[16]!==d?(e=e=>(0,t.jsx)(eN,{item:e,s:d,cols:f,isOpen:m===e.q,onToggle:()=>p(t=>t===e.q?null:e.q)},e.q),c[14]=f,c[15]=m,c[16]=d,c[17]=e):e=c[17],r=u.faqs.map(e),c[9]=f,c[10]=u.faqs,c[11]=m,c[12]=d,c[13]=r}else r=c[13];return c[18]!==i||c[19]!==s||c[20]!==r?(o=(0,t.jsxs)("section",{"data-section":"","data-allow-inline-style":!0,className:"mt-24 flex flex-col gap-3",style:i,children:[s,r]}),c[18]=i,c[19]=s,c[20]=r,c[21]=o):o=c[21],o}function eM(e){let n,a,i,s,r,o,c=(0,l.c)(22),{s:d,pastHero:u,content:h}=e,m=!u,p=u?"1fr":"0fr";c[0]!==p?(n={gridTemplateRows:p},c[0]=p,c[1]=n):n=c[1];let x="agent"===h.cta.kind?h.cta.label:"get started",g=h.cta.text,y=h.cta.copyEvent;return c[2]!==h.cta?(a=er(h.cta),c[2]=h.cta,c[3]=a):a=c[3],c[4]!==h.cta.copyEvent||c[5]!==h.cta.text||c[6]!==d||c[7]!==x||c[8]!==a?(i=(0,t.jsx)("div",{className:"flex min-w-0 w-full max-w-fit flex-col gap-1.5 overflow-hidden",children:(0,t.jsx)(eu,{s:d,label:x,text:g,copyEvent:y,copyAriaLabel:a})}),c[4]=h.cta.copyEvent,c[5]=h.cta.text,c[6]=d,c[7]=x,c[8]=a,c[9]=i):i=c[9],c[10]!==n||c[11]!==i?(s=(0,t.jsx)("div",{"data-allow-inline-style":!0,className:"grid transition-[grid-template-rows] duration-300 ease-out",style:n,children:i}),c[10]=n,c[11]=i,c[12]=s):s=c[12],c[13]!==h.waitlistRedirectUrl||c[14]!==u||c[15]!==d?(r=(0,f.isDefinedAndNotNull)(h.waitlistRedirectUrl)?(0,t.jsx)(ev,{s:d,showDivider:u,waitlistRedirectUrl:h.waitlistRedirectUrl}):null,c[13]=h.waitlistRedirectUrl,c[14]=u,c[15]=d,c[16]=r):r=c[16],c[17]!==d||c[18]!==m||c[19]!==r||c[20]!==s?(o=(0,t.jsxs)(em,{s:d,lean:m,children:[s,r]}),c[17]=d,c[18]=m,c[19]=r,c[20]=s,c[21]=o):o=c[21],o}let eS={cols:80,heroScale:1,pastHero:!1,activeIdx:0,hasScrolled:!1};function eE(){}let eC=()=>eS;e.s(["CopyLine",0,eu,"OriTerminal",0,function(e){let n,a,i,s,r,c,d,f,u,h,m,p,y,j=(0,l.c)(47),{content:v}=e,{resolvedTheme:N}=(0,x.useTheme)(),k=(0,o.useHydrated)(),M="light"===N?"light":"dark";j[0]!==M?(n="light"===M?b:w,j[0]=M,j[1]=n):n=j[1];let S=n,E=(0,g.useRef)(null),C=(0,g.useRef)(null),$=(0,g.useRef)(null),F=(0,g.useRef)(null),R=(0,g.useRef)(null),_=(0,g.useRef)(null);j[2]!==k?(a={containerRef:E,rulerRef:C,boxRulerRef:$,shadeRulerRef:F,heroRef:R,chromeRef:_,enabled:k},j[2]=k,j[3]=a):a=j[3];let{cols:A,heroScale:B,pastHero:T,activeIdx:H,hasScrolled:L}=function(e){let t,n,a,i=(0,l.c)(10),{containerRef:s,rulerRef:r,boxRulerRef:o,shadeRulerRef:c,heroRef:d,chromeRef:f,enabled:u}=e;i[0]===Symbol.for("react.memo_cache_sentinel")?(t={cols:80,heroScale:1,pastHero:!1,activeIdx:0,hasScrolled:!1},i[0]=t):t=i[0];let h=(0,g.useRef)(t);i[1]!==o||i[2]!==f||i[3]!==s||i[4]!==u||i[5]!==d||i[6]!==r||i[7]!==c?(n=e=>{if(!u)return eE;let t=!1,l=l=>{if(t)return;let n=s.current,a=r.current,i=o.current,u=c.current,m=d.current,p=f.current,x=h.current,g=x.cols,y=x.heroScale,w=x.pastHero,b=x.activeIdx,j=x.hasScrolled||void 0!==l&&l;if(n&&a&&i&&u){let e=a.getBoundingClientRect().width/100,t=Math.max(e,i.getBoundingClientRect().width/100,u.getBoundingClientRect().width/100);if(t>0){var v;v=n.clientWidth,g=t<=0?24:Math.min(98,Math.max(24,Math.floor(v/t))),y=e<=0||t<=0?1:Math.min(1,e/t)}}m&&p&&(w=m.getBoundingClientRect().bottom<=p.getBoundingClientRect().bottom);let N=n?.querySelectorAll("[data-section]");if(N&&N.length>0)if(window.innerHeight+window.scrollY>=document.documentElement.scrollHeight-4)b=N.length-1;else{let e=.55*window.innerHeight,t=0;N.forEach((l,n)=>{l.getBoundingClientRect().top<=e&&(t=n)}),b=t}(g!==x.cols||y!==x.heroScale||w!==x.pastHero||b!==x.activeIdx||j!==x.hasScrolled)&&(h.current={cols:g,heroScale:y,pastHero:w,activeIdx:b,hasScrolled:j},e())};l(),document.fonts.ready.then(()=>l());let n=()=>l();window.addEventListener("resize",n);let a=()=>l(!0);return window.addEventListener("scroll",a,{passive:!0}),()=>{t=!0,window.removeEventListener("resize",n),window.removeEventListener("scroll",a)}},i[1]=o,i[2]=f,i[3]=s,i[4]=u,i[5]=d,i[6]=r,i[7]=c,i[8]=n):n=i[8];let m=n;i[9]===Symbol.for("react.memo_cache_sentinel")?(a=()=>h.current,i[9]=a):a=i[9];let p=a;return(0,g.useSyncExternalStore)(m,p,eC)}(a);if(!k){let e;return j[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"min-h-svh"}),j[4]=e):e=j[4],e}if(j[5]!==S.bg||j[6]!==S.fg?(i={background:S.bg,color:S.fg,fontFamily:'"Cascadia Mono", ui-monospace, Menlo, Monaco, "Roboto Mono", monospace'},j[5]=S.bg,j[6]=S.fg,j[7]=i):i=j[7],j[8]!==v.chromeLabel||j[9]!==S?(s=(0,t.jsx)(eh,{s:S,chromeRef:_,label:v.chromeLabel}),j[8]=v.chromeLabel,j[9]=S,j[10]=s):s=j[10],j[11]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("span",{ref:C,"aria-hidden":!0,className:"pointer-events-none invisible fixed -left-[10000px] top-0 whitespace-pre",children:"M".repeat(100)}),j[11]=r):r=j[11],j[12]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("span",{ref:$,"aria-hidden":!0,className:"pointer-events-none invisible fixed -left-[10000px] top-0 whitespace-pre",children:"─".repeat(100)}),j[12]=c):c=j[12],j[13]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)("span",{ref:F,"aria-hidden":!0,className:"pointer-events-none invisible fixed -left-[10000px] top-0 whitespace-pre",children:"▓".repeat(100)}),j[13]=d):d=j[13],j[14]!==v||j[15]!==B||j[16]!==S?(f=(0,t.jsx)(ec,{s:S,heroRef:R,content:v,heroScale:B}),j[14]=v,j[15]=B,j[16]=S,j[17]=f):f=j[17],j[18]!==H||j[19]!==A||j[20]!==v.scenes||j[21]!==L||j[22]!==S){let e;j[24]!==H||j[25]!==A||j[26]!==L||j[27]!==S?(e=(e,l)=>(0,t.jsx)(ea,{scene:e,index:l,active:H===l,reached:L&&H>=l,teased:L&&H>=l-1,descTeased:0===l,s:S,cols:A},l),j[24]=H,j[25]=A,j[26]=L,j[27]=S,j[28]=e):e=j[28],u=v.scenes.map(e),j[18]=H,j[19]=A,j[20]=v.scenes,j[21]=L,j[22]=S,j[23]=u}else u=j[23];let q=L&&H>=v.scenes.length;return j[29]!==A||j[30]!==v||j[31]!==S||j[32]!==q?(h=(0,t.jsx)(ek,{s:S,cols:A,content:v,reached:q}),j[29]=A,j[30]=v,j[31]=S,j[32]=q,j[33]=h):h=j[33],j[34]!==u||j[35]!==h||j[36]!==f?(m=(0,t.jsx)("div",{className:"overflow-x-hidden px-5 py-10 md:px-8 md:py-14",children:(0,t.jsxs)("div",{ref:E,className:"relative",children:[r,c,d,f,u,h]})}),j[34]=u,j[35]=h,j[36]=f,j[37]=m):m=j[37],j[38]!==v||j[39]!==T||j[40]!==S?(p=(0,t.jsx)(eM,{s:S,pastHero:T,content:v}),j[38]=v,j[39]=T,j[40]=S,j[41]=p):p=j[41],j[42]!==m||j[43]!==p||j[44]!==i||j[45]!==s?(y=(0,t.jsxs)("div",{"data-allow-inline-style":!0,className:"min-h-svh text-[length:var(--text-body)] leading-relaxed",style:i,children:[s,m,p]}),j[42]=m,j[43]=p,j[44]=i,j[45]=s,j[46]=y):y=j[46],y}],497556)}]); //# sourceMappingURL=3za1pde4_i73z.js.map //# chunkId=01a0879f-7b76-7a50-844e-1ddaec988936