(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,30257,e=>{"use strict";var t=e.i(47167),n=e.i(43476),r=e.i(71645),i=e.i(18566),o=e.i(21724),a=e.i(8144),s=e.i(53956),l=e.i(58024),d=e.i(27969),c=e.i(4592);function p({message:e,onRetry:t}){let i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{i.current?.scrollIntoView({block:"center",behavior:"smooth"})},[]),(0,n.jsx)("div",{ref:i,role:"alert",style:{scrollMarginBottom:96},children:(0,n.jsxs)(d.Card,{accent:a.signal.gold,children:[(0,n.jsx)("div",{style:{fontFamily:a.font.mono,fontSize:"0.6875rem",fontWeight:700,letterSpacing:"0.12em",textTransform:"uppercase",color:a.signal.gold,marginBottom:"0.65rem"},children:"◈  Run interrupted"}),(0,n.jsx)("p",{style:{fontFamily:a.font.sans,fontSize:"0.875rem",color:a.text.secondary,lineHeight:1.6,margin:"0 0 1rem"},children:e||"The terrain dropped out before activation. Your fork is held. Nothing was lost."}),(0,n.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"0.9rem",flexWrap:"wrap"},children:t&&(0,n.jsx)(c.Button,{variant:"gold",size:"sm",glyph:"↻",onClick:t,children:"Re-run the compass"})})]})})}let u=["usage_limit","rate_limited","overloaded","auth","network","upstream_error","model_error"];async function g(e,t,n=6,r=2500){for(let i=0;i<n;i++){await new Promise(e=>setTimeout(e,r));try{let n=await fetch("/api/history",{cache:"no-store"});if(!n.ok)continue;let{receipts:r}=await n.json(),i=(r??[]).find(t=>t.sessionId===e);if(i){if(!t)return i.id;else if(i.children&&i.children.length)return i.children[i.children.length-1].id}}catch{}}return null}function m(){let e=(0,i.useRouter)(),d=(0,i.useSearchParams)(),m=(0,s.useVw)(),[x,h]=(0,r.useState)(()=>d.get("q")??""),[f]=(0,r.useState)(()=>d.get("prepId")??null),[b]=(0,r.useState)(()=>"inline"===d.get("prep")),[y]=(0,r.useState)(()=>d.get("parent")??null),[S]=(0,r.useState)(()=>{let e=d.get("tributary");return"0"===e||"1"===e||"2"===e?Number(e):null}),[v]=(0,r.useState)(()=>{let e=d.get("utm_campaign");return e&&/^[a-z0-9-]{1,64}$/.test(e)?e:null}),[j,w]=(0,r.useState)(()=>{let e=d.get("horizon");return"TODAY"===e||"THIS_WEEK"===e||"THIS_QUARTER"===e||"ONE_TO_THREE_YEARS"===e?e:"THIS_WEEK"}),[k,F]=(0,r.useState)("MEDIUM"),[I,T]=(0,r.useState)(!1),[C,z]=(0,r.useState)(null),[E,R]=(0,r.useState)(()=>{let e=null;try{e=y&&1?localStorage.getItem("arcs_session_id"):null}catch{}return e??crypto.randomUUID()}),[_]=(0,r.useState)(y),[$,D]=(0,r.useState)(null);(0,r.useEffect)(()=>{fetch("/api/onboarding/upload").then(e=>e.ok?e.json():null).then(e=>{!e||e.skipped||e.hasPdf&&e.hasExport||D({hasPdf:e.hasPdf,hasExport:e.hasExport})}).catch(()=>{})},[]);let W="true"===t.default.env.NEXT_PUBLIC_OUTCOME_NUDGE,[A,B]=(0,r.useState)([]),[L,H]=(0,r.useState)(!1);(0,r.useEffect)(()=>{W&&fetch("/api/receipts/ripe").then(e=>e.ok?e.json():null).then(e=>{e?.ripe?.length&&B(e.ripe)}).catch(()=>{})},[W]);let M=(0,r.useRef)(!1);(0,r.useEffect)(()=>{!M.current&&f&&x.trim()&&(M.current=!0,N())},[f]);let U=(0,r.useRef)(!1);async function N(e={}){if(x.trim()&&!I)return O(x,!!e.followUp)}async function O(t,n,r=!1){if(I&&!r)return;T(!0),z(null);let i=n?E:crypto.randomUUID(),a=new AbortController,s=setTimeout(()=>a.abort(),65e3);try{let l=null;if(b)try{l=JSON.parse(sessionStorage.getItem("arcs_prep_inline")??"null")}catch{l=null}v&&(0,o.track)("compass_run",{campaign:v});let d=await fetch("/api/compass",{method:"POST",headers:{"Content-Type":"application/json"},signal:a.signal,body:JSON.stringify({question:t,horizon:j,stakes:k,sessionId:i,prepId:f,prep:l??void 0,parentReceiptId:n?_:null,tributaryIndex:n?S:null})});clearTimeout(s);let c=await d.json();if(409===d.status&&"session_reassigned"===c.code&&!r){try{localStorage.removeItem("arcs_session_id")}catch{}return R(""),O(t,!1,!0)}let p=function(e,t){var n;if(e)return null;let r=t??{};return{message:("string"==typeof r.error&&r.error.trim()?r.error:null)??"The compass could not take a bearing this time. Your fork is held. Nothing was lost.",code:"string"==typeof(n=r.code)&&u.includes(n)||"string"==typeof r.code?r.code:null,poll:!1}}(d.ok,c);if(p){z(p.message),T(!1);return}if(localStorage.setItem("arcs_session_id",c.session_id),c.receipt_id)e.push(`/receipt/${c.receipt_id}`);else{sessionStorage.removeItem("arcs_prep_inline");let n=`eph_${crypto.randomUUID()}`;sessionStorage.setItem(`arcs_eph_${n}`,JSON.stringify({...c,question:t,horizon:j,stakes:k,prep:l})),e.push(`/receipt/${n}`)}}catch(r){clearTimeout(s);let t=await g(i,n);if(t){localStorage.setItem("arcs_session_id",i),e.push(`/receipt/${t}`);return}z(r instanceof DOMException&&"AbortError"===r.name?"This is taking longer than usual. Your bearing may still be landing. Check History in a moment, or re-run.":"The signal dropped mid-run. Re-run in a moment. Your fork is held. Nothing was lost."),T(!1)}}return(0,r.useEffect)(()=>{!U.current&&y&&x.trim()&&E&&(U.current=!0,O(x,!0))},[E]),(0,n.jsxs)("main",{style:{minHeight:"100vh",background:a.surface.bg,color:a.text.primary},children:[$&&(0,n.jsx)("div",{style:{...(0,a.contentContainer)(m),paddingTop:"1rem",paddingBottom:0},children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,border:`1px solid ${a.border.subtle}`,borderRadius:10,padding:"10px 16px"},children:[(0,n.jsx)("span",{style:{fontSize:13,color:a.text.secondary},children:$.hasPdf?"Add your full data export to deepen your Profile Scan. Takes under 30 seconds.":"Add your LinkedIn profile to enrich your Profile Scan. Takes under 30 seconds."}),(0,n.jsxs)("div",{style:{display:"flex",gap:8,flexShrink:0},children:[(0,n.jsx)(c.Button,{variant:"ghost",size:"sm",onClick:()=>D(null),children:"Dismiss"}),(0,n.jsx)(c.ButtonLink,{variant:"primary",size:"sm",href:"/onboarding",children:$.hasPdf?"Add export":"Set up profile"})]})]})}),W&&A.length>0&&!L&&(0,n.jsx)("div",{style:{...(0,a.contentContainer)(m),paddingTop:"1rem",paddingBottom:0},children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,border:`1px solid ${a.border.subtle}`,borderLeft:`3px solid ${a.signal.cyan}`,borderRadius:10,padding:"10px 16px"},children:[(0,n.jsxs)("span",{style:{fontSize:13,color:a.text.secondary,minWidth:0},children:["The shoe may have dropped on"," ",(0,n.jsxs)("span",{style:{color:a.text.primary},children:["“",A[0].question,"”"]}),". Did it land where the compass pointed?",A.length>1?` (+${A.length-1} more to close)`:""]}),(0,n.jsxs)("div",{style:{display:"flex",gap:8,flexShrink:0},children:[(0,n.jsx)(c.Button,{variant:"ghost",size:"sm",onClick:()=>H(!0),children:"Not yet"}),(0,n.jsx)(c.Button,{variant:"primary",size:"sm",onClick:()=>e.push(`/debrief/${A[0].id}`),children:"Log how it landed →"})]})]})}),(0,n.jsx)(l.CompassForm,{question:x,horizon:j,stakes:k,running:I,onQuestionChange:h,onHorizonChange:e=>w(e),onStakesChange:e=>F(e),onCalibrate:()=>e.push(`/prep?q=${encodeURIComponent(x)}`),onSubmit:()=>N(),onHistory:()=>e.push("/history"),error:C?(0,n.jsx)(p,{message:C,onRetry:()=>N()}):null})]})}e.s(["default",0,function(){return(0,n.jsx)(r.Suspense,{fallback:(0,n.jsx)("main",{style:{minHeight:"100vh",background:a.surface.bg}}),children:(0,n.jsx)(m,{})})}],30257)},55352,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(4592);e.s(["AuthControl",0,function({next:i,showWaitlist:o}){let[a,s]=(0,n.useState)(null);return((0,n.useEffect)(()=>{let e=!1;return fetch("/api/auth/session").then(e=>e.json()).then(t=>{e||s(!!t?.user?.id)}).catch(()=>{e||s(!1)}),()=>{e=!0}},[]),null===a)?null:a?(0,t.jsx)(r.Button,{variant:"ghost",size:"sm",onClick:async()=>{let{signOut:t}=await e.A(76997);t({callbackUrl:"/"})},children:"Sign out"}):(0,t.jsxs)(t.Fragment,{children:[o&&(0,t.jsx)(r.ButtonLink,{variant:"ghost",size:"sm",href:"/waitlist",children:"Waitlist"}),(0,t.jsx)(r.ButtonLink,{variant:"ghost",size:"sm",href:i?`/compass?next=${encodeURIComponent(i)}`:"/compass",children:"Sign in"})]})}])},2511,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(8144),i=e.i(19882);function o({state:e,stepMs:i}){let[a,s]=n.default.useState(100*("done"===e));n.default.useEffect(()=>{let t=requestAnimationFrame(()=>s("done"===e?100:"pending"===e?0:"last"===e?90:100));return()=>cancelAnimationFrame(t)},[e]),n.default.useEffect(()=>{if("last"!==e)return;let t=setInterval(()=>s(e=>Math.min(99,e+1)),1400);return()=>clearInterval(t)},[e]);let l="last"===e?1300:i;return(0,t.jsx)("div",{style:{flex:1,height:2,borderRadius:2,background:"#141e2e",overflow:"hidden"},children:(0,t.jsx)("div",{style:{height:"100%",width:`${a}%`,background:r.signal.cyan,transition:`width ${l}ms linear`,boxShadow:`0 0 6px ${r.signal.cyan}99`}})})}e.s(["SequenceLoader",0,function({title:e,stages:a,footer:s,stepMs:l=800}){let d=a.length-1,[c,p]=n.default.useState(0);return n.default.useEffect(()=>{if(c>=d)return;let e=setTimeout(()=>p(e=>e+1),l);return()=>clearTimeout(e)},[c,d,l]),(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"2.25rem",width:"100%"},children:[(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"0.75rem"},children:[(0,t.jsx)(i.Wordmark,{}),(0,t.jsx)("span",{style:{fontFamily:r.font.mono,fontSize:"0.6875rem",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:r.signal.cyan},children:e})]}),(0,t.jsx)("div",{style:{width:"100%",maxWidth:420,display:"flex",flexDirection:"column",gap:"0.6rem"},children:a.map((e,n)=>{let i=n<c?"done":n===c?n===d?"last":"active":"pending",a="pending"!==i;return(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.7rem"},children:[(0,t.jsx)("span",{style:{fontFamily:r.font.mono,fontSize:"0.85rem",width:16,textAlign:"center",color:a?r.signal.cyan:r.text.muted,textShadow:a?`0 0 10px ${r.signal.cyan}88`:"none"},children:a?"▸":"·"}),e.id&&(0,t.jsx)("span",{style:{fontFamily:r.font.mono,fontSize:"0.6875rem",fontWeight:700,letterSpacing:"0.1em",color:a?r.text.primary:r.text.muted,minWidth:26},children:e.id}),(0,t.jsx)("span",{style:{fontFamily:r.font.mono,fontSize:"0.6875rem",fontWeight:700,letterSpacing:"0.1em",color:a?r.text.secondary:r.text.muted,minWidth:0,whiteSpace:"nowrap"},children:e.name}),(0,t.jsx)(o,{state:i,stepMs:l}),"done"===i&&(0,t.jsx)("span",{style:{fontFamily:r.font.mono,fontSize:"0.7rem",color:r.signal.green},children:"✓"}),("active"===i||"last"===i)&&(0,t.jsx)("span",{style:{fontFamily:r.font.mono,fontSize:"0.6875rem",letterSpacing:"0.08em",color:r.signal.cyan},children:"◂ active"})]},e.name)})}),s&&(0,t.jsx)("span",{style:{fontFamily:r.font.sans,fontSize:"0.8rem",color:r.text.dimmed,fontStyle:"italic"},children:s})]})}])},58024,23057,34202,e=>{"use strict";var t=e.i(43476),n=e.i(8144),r=e.i(53956),i=e.i(19882),o=e.i(4592),a=e.i(63087),s=e.i(91276),l=e.i(38690),d=e.i(71645);function c({label:e,glyph:r,color:i,children:o,onClick:a}){let[s,l]=(0,d.useState)(!1);return(0,t.jsxs)("button",{onClick:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{position:"relative",overflow:"hidden",width:"100%",boxSizing:"border-box",padding:"12px 16px",borderRadius:5,textAlign:"left",cursor:"pointer",display:"flex",flexDirection:"column",gap:4,opacity:s?1:.82,border:`1px solid ${i}${s?"55":"2e"}`,background:"linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01) 38%, rgba(0,0,0,.18)), linear-gradient(165deg, #131b23, #0b1117)",boxShadow:s?`inset 0 1px 0 rgba(255,255,255,.08), inset 0 -8px 14px -8px ${i}40, 0 0 12px ${i}1e, 0 5px 14px rgba(0,0,0,.42)`:"inset 0 1px 0 rgba(255,255,255,.05), 0 2px 7px rgba(0,0,0,.35)",transform:s?"translateY(-1px)":"none",transition:"all .16s"},children:[(0,t.jsxs)("span",{style:{fontFamily:n.font.mono,fontSize:11,letterSpacing:"0.1em",textTransform:"uppercase",fontWeight:700,color:i,display:"flex",alignItems:"center",gap:6},children:[r&&(0,t.jsx)("span",{children:r}),e]}),(0,t.jsx)("span",{style:{fontFamily:n.font.sans,fontSize:13,color:n.text.secondary,lineHeight:1.5},children:o})]})}e.s(["TributaryTile",0,c],23057);var p=e.i(65877),u=e.i(9907);let g=[{value:"TODAY",label:"Today"},{value:"THIS_WEEK",label:"This week"},{value:"THIS_QUARTER",label:"This quarter"},{value:"ONE_TO_THREE_YEARS",label:"1–3 years"}],m=[{value:"LOW",label:"Low",accent:"green"},{value:"MEDIUM",label:"Medium",accent:"gold"},{value:"HIGH",label:"High",accent:"red"}];function x({horizon:e,stakes:r,onHorizonChange:i,onStakesChange:o}){return(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:[(0,t.jsx)(p.Picker,{label:"Horizon",value:e,onChange:i,options:g,style:{padding:"8px 10px"}}),(0,t.jsxs)("div",{style:{position:"relative",borderRadius:6,padding:"12px 14px 13px",border:"1px solid #2a3647",background:"linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01) 38%, rgba(0,0,0,.18)), linear-gradient(165deg, #131b23, #0a1016)",boxShadow:"inset 0 1px 0 rgba(255,255,255,.14), inset 0 -2px 6px rgba(0,0,0,.55), 0 5px 14px rgba(0,0,0,.5)"},children:[(0,t.jsx)("span",{style:{display:"block",fontFamily:n.font.mono,fontSize:11,color:n.text.secondary,textTransform:"uppercase",letterSpacing:"0.1em",fontWeight:700,marginBottom:8},children:"Stakes"}),(0,t.jsx)(u.SegmentedSlider,{options:m,value:r,onChange:o})]})]})}e.s(["HorizonStakesRow",0,x],34202);var h=e.i(2511);let f=[{id:"L0",name:"ACTIVATION"},{id:"L1",name:"ADVERSARIAL"},{id:"L2",name:"BAYESIAN"},{id:"L3",name:"IMMUNE"},{id:"L4",name:"NCI"},{id:"L5",name:"SYNTHESIS"}];function b(){return(0,t.jsx)("div",{role:"status","aria-live":"polite",style:{position:"fixed",inset:0,zIndex:50,background:"radial-gradient(120% 70% at 50% -5%, #0a1422 0%, #020408 62%)",display:"flex",alignItems:"center",justifyContent:"center",padding:"2rem"},children:(0,t.jsx)(h.SequenceLoader,{title:"Reading the terrain…",stages:f,footer:"Where the fog starts to lift…"})})}var y=e.i(55352);let S=["What have I built that is mine to carry anywhere? And where can I break it into pieces, spread it, and grow it into the next thing?","Which of my skills and relationships travel with me? Where is the highest-leverage place to replant them?"],v="Am I using AI to compound what is mine, or am I dissolving into it?";e.s(["CompassForm",0,function({question:e,horizon:d,stakes:p,running:u,onQuestionChange:g,onHorizonChange:m,onStakesChange:h,onCalibrate:f,onSubmit:j,onHistory:w,error:k}){let F=(0,r.useVw)();return(0,t.jsxs)("div",{style:{...(0,n.formContainer)(F),paddingTop:"2rem",paddingBottom:"6rem",containerType:"inline-size"},children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:"1rem"},children:[(0,t.jsx)(i.Wordmark,{section:"Question Compass"}),(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.25rem"},children:[(0,t.jsx)(o.Button,{variant:"ghost",size:"sm",onClick:w,children:"History"}),(0,t.jsx)(y.AuthControl,{next:"/history"})]})]}),(0,t.jsx)(a.Rule,{style:{marginBottom:"2rem"}}),(0,t.jsx)(s.SectionLabel,{index:"01",style:{marginBottom:"0.9rem"},children:"Name what you're actually deciding"}),(0,t.jsx)("h1",{style:{fontFamily:n.font.sans,fontSize:"clamp(1.5rem, 1.1rem + 2.2cqw, 2.1rem)",textWrap:"balance",fontWeight:600,color:n.text.primary,margin:"0 0 1.5rem",lineHeight:1.15,letterSpacing:"-0.02em"},children:"What are you really trying to decide?"}),(0,t.jsxs)("form",{onSubmit:function(t){t.preventDefault(),e.trim()&&!u&&j()},children:[(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:[(0,t.jsx)(l.Field,{as:"textarea",rows:3,label:"Decision",value:e,onChange:e=>g(e.target.value),placeholder:"What have I built that is mine to carry anywhere? Where should I plant it to grow next?"}),(0,t.jsx)(x,{horizon:d,stakes:p,onHorizonChange:m,onStakesChange:h})]}),(0,t.jsx)(o.Button,{type:"submit",variant:"primary",size:"lg",glyph:u?"~":"⊕",disabled:u||!e.trim(),style:{width:"100%",marginTop:"1.5rem",opacity:u||e.trim()?void 0:.75},children:u?"Reading the terrain…":(0,t.jsxs)(t.Fragment,{children:["Get True North ",(0,t.jsx)("span",{style:{fontFamily:n.font.sans,fontWeight:500,opacity:.75},children:"→"})]})}),!u&&(0,t.jsx)("button",{type:"button","aria-disabled":!e.trim(),onClick:()=>{e.trim()&&f?.()},style:{display:"block",margin:"0.85rem auto 0",padding:"0.75rem 0.5rem",background:"none",border:"none",cursor:e.trim()?"pointer":"default",fontFamily:n.font.mono,fontSize:"0.6875rem",fontWeight:700,letterSpacing:"0.1em",textTransform:"uppercase",color:e.trim()?n.text.dimmed:n.text.muted},children:"Add context: stakes, confidence, and what you already know"}),k&&(0,t.jsx)("div",{style:{marginTop:"1.25rem"},children:k}),u&&(0,t.jsx)(b,{})]}),!e&&(0,t.jsxs)("div",{style:{marginTop:"2rem"},children:[(0,t.jsx)(s.SectionLabel,{style:{marginBottom:"0.75rem"},children:"Point at what compounds, not what you fear losing. Try one:"}),(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:[S.map(e=>(0,t.jsx)(c,{label:"Example",glyph:"⊕",color:n.signal.cyan,onClick:()=>g(e),children:e},e)),(0,t.jsx)(c,{label:"Meta",glyph:"◆",color:n.signal.gold,onClick:()=>g(v),children:v})]})]})]})}],58024)},27969,e=>{"use strict";var t=e.i(43476),n=e.i(8144);e.s(["Card",0,function({accent:e,padding:r="default",style:i,children:o,...a}){let s="compact"===r?{padding:`${n.space[3]} ${n.space[4]}`}:"flush"===r?{}:{padding:"1.25rem 1.5rem"},l=e?{border:`1px solid ${e}45`,background:`linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01) 38%, rgba(0,0,0,.18)), linear-gradient(165deg, ${e}1c, #0a1620)`,boxShadow:`inset 0 1px 0 ${e}80, inset 0 -11px 17px -11px ${e}44, 0 0 6px ${e}1e, 0 5px 16px rgba(0,0,0,.5)`}:{border:"1px solid #1c2738",background:"linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01) 38%, rgba(0,0,0,.18)), linear-gradient(165deg, #11181f, #0a1016)",boxShadow:"inset 0 1px 0 rgba(255,255,255,.04), inset 0 -2px 8px rgba(0,0,0,.4)"};return(0,t.jsx)("div",{style:{borderRadius:4,...l,...s,...i},...a,children:o})},"CardDivider",0,function({style:e,...r}){return(0,t.jsx)("hr",{style:{border:"none",borderTop:`1px solid ${n.border.subtle}`,margin:`${n.space[4]} 0`,...e},...r})},"CardHeader",0,function({label:e,accent:r,style:i,children:o,...a}){return(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:o?"space-between":"flex-start",marginBottom:n.space[3],...i},...a,children:[(0,t.jsx)("span",{style:{fontSize:n.font.size.xs,fontFamily:n.font.mono,fontWeight:n.font.weight.bold,letterSpacing:n.font.tracking.widest,textTransform:"uppercase",color:r??n.text.muted},children:e}),o]})}])},38690,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(8144);e.s(["Field",0,function({label:e,as:i="input",type:o="text",required:a,value:s,onChange:l,placeholder:d,rows:c,children:p,style:u,fieldStyle:g,inputProps:m}){let[x,h]=(0,n.useState)(!1),f=(0,n.useId)(),b="select"===i,y={width:"100%",boxSizing:"border-box",color:r.text.primary,fontSize:16,padding:"10px 12px",outline:"none",fontFamily:r.font.sans,borderRadius:5,border:`1px solid ${x?b?"#3a4a5e":"#00F0FF66":"#1c2736"}`,background:"linear-gradient(180deg, #090d12, #0c1219)",boxShadow:x&&!b?"inset 0 2px 5px rgba(0,0,0,.55), inset 0 -9px 14px -9px rgba(0,240,255,.34), 0 0 0 1px #00F0FF3a":"inset 0 2px 5px rgba(0,0,0,.65), inset 0 -1px 0 rgba(255,255,255,.04)",transition:"box-shadow .16s, border-color .16s",resize:"textarea"===i?"vertical":void 0,lineHeight:"textarea"===i?1.6:void 0,...g},S=()=>h(!0),v=()=>h(!1);return(0,t.jsxs)("div",{style:{position:"relative",borderRadius:6,padding:"12px 14px 13px",overflow:"hidden",border:"1px solid #2a3647",background:"linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01) 38%, rgba(0,0,0,.18)), linear-gradient(165deg, #131b23, #0a1016)",boxShadow:"inset 0 1px 0 rgba(255,255,255,.14), inset 0 -2px 6px rgba(0,0,0,.55), 0 5px 14px rgba(0,0,0,.5)",...u},children:[(0,t.jsx)("div",{style:{position:"absolute",inset:"0 0 auto 0",height:"34%",background:"linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,0))",pointerEvents:"none"}}),e&&(0,t.jsx)("label",{htmlFor:f,style:{position:"relative",display:"block",fontFamily:r.font.mono,...r.font.tier.t3,color:r.text.secondary,textTransform:"uppercase",marginBottom:8},children:e}),"textarea"===i?(0,t.jsx)("textarea",{id:f,rows:c||3,required:a,value:s,onChange:l,placeholder:d,onFocus:S,onBlur:v,style:y}):"select"===i?(0,t.jsx)("select",{id:f,value:s,required:a,onChange:l,onFocus:S,onBlur:v,style:y,children:p}):(0,t.jsx)("input",{...m,id:f,type:o,required:a,value:s,onChange:l,placeholder:d,onFocus:S,onBlur:v,style:y})]})}])},65877,9907,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(8144);e.s(["Picker",0,function({label:e,value:i,options:o,onChange:a,style:s}){let[l,d]=(0,n.useState)(!1),[c,p]=(0,n.useState)(!1),u=n.default.useRef(null);n.default.useEffect(()=>{if(!l)return;let e=e=>{u.current&&!u.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[l]);let g=o.find(e=>e.value===i)||o[0];return(0,t.jsxs)("div",{ref:u,style:{position:"relative",borderRadius:6,padding:"12px 14px 13px",border:"1px solid #2a3647",background:"linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01) 38%, rgba(0,0,0,.18)), linear-gradient(165deg, #131b23, #0a1016)",boxShadow:"inset 0 1px 0 rgba(255,255,255,.14), inset 0 -2px 6px rgba(0,0,0,.55), 0 5px 14px rgba(0,0,0,.5)",...s},children:[e&&(0,t.jsx)("span",{style:{display:"block",fontFamily:r.font.mono,fontSize:11,color:r.text.secondary,textTransform:"uppercase",letterSpacing:"0.1em",fontWeight:700,marginBottom:8},children:e}),(0,t.jsxs)("button",{type:"button",onClick:()=>d(e=>!e),onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,width:"100%",padding:"10px 12px",borderRadius:5,cursor:"pointer",border:`1px solid ${l?"#00F0FF66":c?"#34435a":"#1c2736"}`,color:r.text.primary,fontFamily:r.font.sans,fontSize:14,background:"linear-gradient(180deg, #090d12, #0c1219)",boxShadow:"inset 0 2px 5px rgba(0,0,0,.65), inset 0 -1px 0 rgba(255,255,255,.04)",transition:"border-color .16s"},children:[(0,t.jsx)("span",{children:g.label}),(0,t.jsx)("span",{style:{color:r.text.dimmed,fontSize:11,transform:l?"rotate(180deg)":"none",transition:"transform .2s"},children:"▾"})]}),l&&(0,t.jsx)("div",{style:{position:"absolute",left:14,right:14,top:"calc(100% - 4px)",zIndex:30,padding:4,borderRadius:8,overflow:"hidden",border:"1px solid #00F0FF44",background:"linear-gradient(180deg, #0e151e, #0a0f16)",boxShadow:"0 16px 34px -14px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.05)"},children:o.map(e=>{let n=e.value===i;return(0,t.jsxs)("button",{type:"button",onClick:()=>{a(e.value),d(!1)},style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"8px 10px",borderRadius:5,cursor:"pointer",border:"1px solid transparent",textAlign:"left",fontFamily:r.font.sans,fontSize:13.5,color:n?"#b9e8f4":r.text.primary,background:n?"linear-gradient(180deg, #00F0FF1c, #00F0FF08)":"transparent"},onMouseEnter:e=>{n||(e.currentTarget.style.background="rgba(255,255,255,.04)")},onMouseLeave:e=>{n||(e.currentTarget.style.background="transparent")},children:[e.label,n&&(0,t.jsx)("span",{style:{color:"#00F0FF",fontSize:11},children:"●"})]},e.value)})})]})}],65877);let i={green:{bd:"#00FF9D55",bloom:"#00FF9D1c",bloom2:"#00FF9D33",ink:"#bdf2dc"},gold:{bd:"#FFD70055",bloom:"#FFD70016",bloom2:"#FFD7002b",ink:"#f0e4ba"},red:{bd:"#FF4D6D55",bloom:"#FF4D6D1c",bloom2:"#FF4D6D33",ink:"#f6c9d2"},cyan:{bd:"#00F0FF55",bloom:"#00F0FF1c",bloom2:"#00F0FF2b",ink:"#b9e8f4"}};e.s(["SegmentedSlider",0,function({options:e,value:n,onChange:o,style:a}){let s=Math.max(0,e.findIndex(e=>e.value===n)),l=i[e[s]?.accent??"cyan"]||i.cyan;return(0,t.jsxs)("div",{style:{position:"relative",display:"grid",gridTemplateColumns:`repeat(${e.length}, minmax(0, 1fr))`,padding:4,borderRadius:6,background:"linear-gradient(180deg, #090d12, #0c1219)",boxShadow:"inset 0 2px 6px rgba(0,0,0,.7), inset 0 -1px 0 rgba(255,255,255,.04)",...a},children:[(0,t.jsx)("div",{style:{position:"absolute",top:4,bottom:4,left:4,width:`calc((100% - 8px) / ${e.length})`,borderRadius:4,transform:`translateX(${100*s}%)`,transition:"transform .22s cubic-bezier(.4,0,.2,1), border-color .18s, box-shadow .18s",border:`1px solid ${l.bd}`,background:"linear-gradient(180deg, #131c28, #0f1822)",boxShadow:`inset 0 1px 3px rgba(0,0,0,.4), inset 0 -5px 10px -6px ${l.bloom2}, 0 1px 0 rgba(255,255,255,.05)`}}),e.map((e,n)=>(0,t.jsx)("button",{type:"button",onClick:()=>o(e.value),style:{position:"relative",zIndex:1,minWidth:0,background:"transparent",border:"none",padding:"8px 2px",cursor:"pointer",fontFamily:r.font.mono,fontWeight:700,fontSize:11,letterSpacing:"0.03em",textAlign:"center",color:n===s?l.ink:r.text.dimmed,transition:"color .16s",whiteSpace:"nowrap"},children:e.label},e.value))]})}],9907)},63087,e=>{"use strict";var t=e.i(43476);e.s(["Rule",0,function({style:e}){return(0,t.jsx)("div",{style:{height:1,background:"rgba(255,255,255,0.06)",...e}})}])},91276,e=>{"use strict";var t=e.i(43476),n=e.i(8144);e.s(["SectionLabel",0,function({index:e,children:r,color:i=n.text.muted,style:o}){return(0,t.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:10,...o},children:[e&&(0,t.jsx)("span",{style:{fontFamily:n.font.mono,...n.font.tier.t1,color:n.signal.cyan},children:e}),(0,t.jsx)("span",{style:{fontFamily:n.font.mono,...n.font.tier.t2,textTransform:"uppercase",color:i},children:r})]})}])},19882,e=>{"use strict";var t=e.i(43476),n=e.i(22016),r=e.i(8144),i=e.i(53956);e.s(["Wordmark",0,function({section:e}){let o=(0,i.useVw)();return(0,t.jsxs)(n.default,{href:"/",style:{display:"flex",alignItems:"center",gap:"0.75rem",textDecoration:"none",flexShrink:0},children:[(0,t.jsxs)("span",{style:{fontFamily:r.font.mono,fontSize:"0.6875rem",textTransform:"uppercase",whiteSpace:"nowrap",display:"inline-flex",alignItems:"baseline",gap:"0.45em"},children:[(0,t.jsx)("span",{style:{color:r.signal.cyan,fontWeight:800,letterSpacing:"0.22em"},children:"ARCS"}),(0,t.jsx)("span",{style:{color:r.text.dimmed,fontWeight:400,letterSpacing:"0.14em"},children:"FIELD OS"})]}),!!e&&o>=640&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{style:{width:1,height:12,background:r.border.subtle}}),(0,t.jsx)("span",{style:{fontFamily:r.font.mono,fontSize:"0.6875rem",letterSpacing:"0.12em",color:r.text.muted,textTransform:"uppercase",whiteSpace:"nowrap"},children:e})]})]})}])}]);