1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,607107,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(672136),s=e.i(162400),n=e.i(491967),o=e.i(560404),a=e.i(161664),c=e.i(810840);function l(e,t,r){let i=e?a.CREDIT_PACKS.find(t=>t.id===e):void 0,s=i?{pack_id:i.id,hours:i.hours,price_usd:i.priceUsd,is_custom:!1}:null!=t?{pack_id:"custom",hours:(0,a.customTopupCredits)(t)/60/a.CREDITS_PER_MINUTE,price_usd:t,is_custom:!0}:{pack_id:"unknown",is_custom:null!=t};try{let e=localStorage.getItem(c.RESEARCH_PROFILE_OWNER_KEY);if(r&&e!==r||!r&&e)return s;let t=(0,c.parseStoredResearchProfile)(localStorage.getItem(c.RESEARCH_PROFILE_STORAGE_KEY));return t?{...s,...(0,c.researchProfileEventProperties)(t)}:s}catch{return s}}e.s(["BuyButton",0,function(e){let{packId:a,amountUsd:c,analytics:u,disabled:d,className:m,children:p}=e,f=(0,o.useAppI18n)().t.billing.buyButton,{data:h}=(0,i.useSession)(),[g,x]=(0,r.useState)(!1),[_,b]=(0,r.useState)(null),[v,y]=(0,r.useState)(!1),S=(0,r.useRef)(!1),k=(0,r.useRef)(!1),j=(0,r.useCallback)(async()=>{x(!0),b(null),n.posthog.capture("checkout_started",{...l(a,c,h?.user?.id),...u});try{let e=await fetch("/api/checkout",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({...null!=c?{amountUsd:c}:{packId:a},...u?.purchase_context?{purchaseContext:u.purchase_context}:{},...u?.origin_surface?{originSurface:u.origin_surface}:{}})}),t=await e.json().catch(()=>({}));if(401===e.status){x(!1),S.current=!0,y(!0);return}if(!e.ok)throw n.posthog.capture("checkout_start_failed",{...l(a,c,h?.user?.id),error_code:`http_${e.status}`}),Error(t.error??f.checkoutFailed);if(!t.url)throw n.posthog.capture("checkout_start_failed",{...l(a,c,h?.user?.id),error_code:"missing_checkout_url"}),Error(f.noCheckoutUrl);window.location.href=t.url}catch(e){e instanceof TypeError&&n.posthog.capture("checkout_start_failed",{...l(a,c,h?.user?.id),error_code:"network_error"}),b(e instanceof Error?e.message:f.checkoutFailed),x(!1)}},[a,c,h?.user?.id,u,f]);return(0,r.useEffect)(()=>{h&&S.current&&(S.current=!1,y(!1),j())},[h,j]),(0,t.jsxs)("div",{className:"flex flex-col items-stretch gap-1",children:[(0,t.jsx)("button",{type:"button",onClick:function(){n.posthog.capture("billing_pack_selected",{...l(a,c,h?.user?.id),...u}),h?j():(S.current=!0,k.current=!1,y(!0))},disabled:g||d,className:m,children:g?f.redirecting:p}),_&&(0,t.jsx)("span",{className:"text-center text-xs text-accent",children:_}),v&&(0,t.jsx)(s.AuthModal,{onSuccess:()=>{k.current=!0},onClose:()=>{y(!1),k.current||(S.current=!1)}})]})}])},728427,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(607107),s=e.i(161664),n=e.i(560404);e.s(["CustomAmount",0,function(){let{copy:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{t:o,fmt:a,lang:c}=(0,n.useAppI18n)(),l=o.billing.customAmount,u=e??{...l,note:a(l.note,{volume:`$${s.RATE_TIERS[0].minUsd}`})},d=`$${s.CUSTOM_TOPUP_MIN_USD}`,[m,p]=(0,r.useState)(""),f=Number(m),h=Number.isFinite(f)&&f>=s.CUSTOM_TOPUP_MIN_USD,g=h?(0,s.customTopupCredits)(f):0,x=""!==m.trim();return(0,t.jsxs)("div",{className:"mt-3 rounded-2xl border border-accent/30 bg-accent-soft p-5 shadow-[0_16px_45px_-34px_rgba(70,45,25,0.55)] sm:p-6",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"font-display text-lg font-semibold text-ink",children:u.label}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-relaxed text-muted",children:u.note.replace("{min}",d)})]}),(0,t.jsxs)("div",{className:"flex w-full shrink-0 items-start gap-2 sm:w-auto",children:[(0,t.jsxs)("div",{className:"relative min-w-0 flex-1 sm:flex-none",children:[(0,t.jsx)("span",{className:"pointer-events-none absolute start-3 top-1/2 -translate-y-1/2 text-sm text-muted",children:"$"}),(0,t.jsx)("input",{type:"number",inputMode:"decimal",min:s.CUSTOM_TOPUP_MIN_USD,step:"1",value:m,onChange:e=>p(e.target.value),placeholder:"50","aria-label":u.currencyAria,className:"w-full rounded-full border border-accent/30 bg-surface py-2.5 ps-7 pe-3 text-sm text-ink outline-none transition focus:border-accent focus:ring-2 focus:ring-accent/20 sm:w-32"})]}),(0,t.jsx)(i.BuyButton,{amountUsd:h?f:void 0,disabled:!h,className:"shrink-0 rounded-full bg-accent px-5 py-2.5 text-sm font-semibold text-white outline-none transition hover:bg-accent-hover focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-accent-soft disabled:cursor-not-allowed disabled:opacity-50",children:u.buy})]})]}),(0,t.jsx)("p",{className:"mt-2 text-xs text-muted","aria-live":"polite",children:x&&!h?u.minError.replace("{min}",d):h?e?`â ${(g/60).toFixed(1)} ${e.hours}
1 \xb7 ${g.toLocaleString()} ${e.credits} \xb7 $${(0,s.ratePerHour)(f).toFixed(2)}/hr`:a(l.summary,{hours:new Intl.NumberFormat(c,{minimumFractionDigits:1,maximumFractionDigits:1,useGrouping:!1}).format(g/60),credits:g.toLocaleString(c),rate:`$${(0,s.ratePerHour)(f).toFixed(2)}`}):" "})]})}])},214613,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(657688);let s=["#34594a","#8f4026","#8c5e32","#211e18"];function n(e){let n,{person:o,idx:a=0,size:c=40,ring:l=!1,alt:u,loading:d="lazy"}=e,[m,p]=(0,r.useState)(!1),f=`inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full${l?" ring-2 ring-canvas":""}`,h={width:c,height:c};if(o.src&&!m)return(0,t.jsx)(i.default,{src:o.src,alt:u??o.name,width:c,height:c,loading:d,fetchPriority:"low",quality:72,decoding:"async",referrerPolicy:"no-referrer",onError:()=>p(!0),className:`${f} object-cover`,style:h});let g=o.tint??s[a%s.length];return(0,t.jsx)("span",{"aria-hidden":"true",className:`${f} font-mono font-medium tracking-wide`,style:{...h,backgroundColor:g,color:"#f3efe6",fontSize:Math.round(.34*c)},children:(n=o.name.trim().split(/\s+/),((n[0]?.[0]??"")+(n.length>1?n[n.length-1][0]:"")).toUpperCase())})}e.s(["Avatar",0,n,"AvatarStack",0,function(e){let{people:r,size:i=36,max:s=6}=e;return 0===r.length?null:(0,t.jsx)("div",{className:"flex shrink-0 items-center -space-x-2.5",children:r.slice(0,s).map((e,r)=>(0,t.jsx)(n,{person:e,idx:r,size:i,ring:!0},e.name))})}])},693825,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(618566),s=e.i(162400),n=e.i(672136),o=e.i(161664),a=e.i(491967);e.s(["TeamPlanLink",0,function(e){let{planId:c,className:l,children:u}=e,d=(0,i.useRouter)(),{data:m}=(0,n.useSession)(),[p,f]=(0,r.useState)(!1),h=(0,o.getCompanyPlan)(c),g=`/settings/team?plan=${encodeURIComponent(c)}`;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:function(){a.posthog.capture("pricing_team_plan_clicked",{plan_id:c,surface:"pricing_page",signed_in:!!m}),m?d.push(g):f(!0)},className:l,children:u}),p&&(0,t.jsx)(s.AuthModal,{initialMode:"up",source:"pricing_team_plan",callbackURL:g,pitch:{title:`Create a free account to start ${h?.label??"your"} plan`,sub:"Sign up, name your company, and go straight to checkout. Teammates are free."},onClose:()=>f(!1)})]})}])},794909,(e,t,r)=>{"use strict";e.i(247167),Object.defineProperty(r,"__esModule",{value:!0});var i={default:function(){return u},getImageProps:function(){return l}};for(var s in i)Object.defineProperty(r,s,{enumerable:!0,get:i[s]});let n=e.r(555682),o=e.r(908927),a=e.r(605500),c=n._(e.r(1948));function l(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:c.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let u=a.Image},657688,(e,t,r)=>{t.exports=e.r(794909)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.