(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,633639,e=>{"use strict";var t=e.i(651681);let n={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};n.node;let i=(0,t.f)(n);e.s(["f",0,i])},627956,e=>{"use strict";var t=e.i(633639);e.s(["f",()=>t.f])},271441,e=>{"use strict";var t=e.i(651681);let n={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};n.node;let i=(0,t.f)(n);e.s(["f",0,i])},59889,e=>{"use strict";var t=e.i(271441);e.s(["f",()=>t.f])},977560,e=>{"use strict";let t=/^[^\s@,]+@[^\s@,]+\.[^\s@,]+$/,n=/^[^\s@,/:?#\u{80}-\u{10FFFF}]+@(?:[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?\.)+[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?$/u;e.s(["r",0,function(e){return t.test(e)},"v",0,function(e){let t=e.trim();return!URL.canParse(t)&&n.test(t)}])},536274,e=>{"use strict";var t=e.i(659350),n=e.i(663456),i=e.i(339195),r=e.i(967605);e.s(["f",0,function(){let e,s,l=(0,n.c)(2);l[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.F.split("Privacy Policy"),l[0]=e):e=l[0];let[a,o]=e;return l[1]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsxs)("p",{className:"text-2xs text-muted-foreground",children:[a,(0,t.jsx)(r.Link,{href:"/privacy",variant:"underline",className:"text-inherit underline-offset-2 decoration-current/40 hover:text-accent-foreground hover:decoration-current",children:"Privacy Policy"}),o]}),l[1]=s):s=l[1],s}])},451547,e=>{"use strict";var t=e.i(659350),n=e.i(663456),i=e.i(339195),r=e.i(196991),s=e.i(288265),l=e.i(139697),a=e.i(181870),o=e.i(475615),c=e.i(73065);function u(e,t){let i,r=(0,n.c)(4),l=(0,s.f)();return r[0]!==e||r[1]!==t?.headline||r[2]!==l?(i=t?.headline??l(e?"Join the OpenRouter newsletter":"Subscribe to the OpenRouter newsletter"),r[0]=e,r[1]=t?.headline,r[2]=l,r[3]=i):i=r[3],i}function d(e){let i,r=(0,n.c)(2),{eyebrow:s}=e;return null===s?null:(r[0]!==s?(i=(0,t.jsx)("p",{className:c.E,children:s}),r[0]=s,r[1]=i):i=r[1],i)}function m(e){let i,s=(0,n.c)(4),{compact:l,body:a}=e;if(null!==a){let e;return s[0]!==a?(e=(0,t.jsx)(t.Fragment,{children:a}),s[0]=a,s[1]=e):e=s[1],e}return s[2]!==l?(i=l?(0,t.jsx)(r.T,{children:"Model usage data, product updates, and research reports. One email each week."}):(0,t.jsx)(r.T,{children:"Model usage data, product updates, and research reports, about one email a week."}),s[2]=l,s[3]=i):i=s[3],i}e.s(["x",0,function(e){let r,o,c,u,d,m,f,h=(0,n.c)(23),{inputId:_,email:p,onEmailChange:x,ctaLabel:b,isSubmitting:g,isInvalid:k,autoFocus:v}=e,y=void 0!==v&&v,j=(0,s.f)();h[0]!==x?(r=e=>x(e.target.value),h[0]=x,h[1]=r):r=h[1],h[2]!==j?(o=j("you@company.com"),h[2]=j,h[3]=o):o=h[3];let w=void 0!==k&&k||void 0;return h[4]!==y||h[5]!==p||h[6]!==_||h[7]!==g||h[8]!==r||h[9]!==o||h[10]!==w?(c=(0,t.jsx)(a.f,{id:_,name:"email",type:"email",value:p,onChange:r,placeholder:o,autoComplete:"email",inputMode:"email",enterKeyHint:"send",maxLength:i.s,required:!0,"aria-invalid":w,className:"sm:flex-1 @max-sm:flex-none",disabled:g,autoFocus:y}),h[4]=y,h[5]=p,h[6]=_,h[7]=g,h[8]=r,h[9]=o,h[10]=w,h[11]=c):c=h[11],h[12]!==b||h[13]!==j?(u=b??j("Subscribe"),h[12]=b,h[13]=j,h[14]=u):u=h[14],h[15]!==u?(d=(0,t.jsx)("span",{children:u}),h[15]=u,h[16]=d):d=h[16],h[17]!==g||h[18]!==d?(m=(0,t.jsx)(l.Button,{type:"submit",isLoading:g,className:"shrink-0",children:d}),h[17]=g,h[18]=d,h[19]=m):m=h[19],h[20]!==c||h[21]!==m?(f=(0,t.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row @max-sm:flex-col",children:[c,m]}),h[20]=c,h[21]=m,h[22]=f):f=h[22],f},"B",0,function(e){let i,r,s,l,a=(0,n.c)(15),{inputId:c,compact:f,hideIntro:h,copy:_}=e,p=u(f,_);if(h){let e;return a[0]!==c||a[1]!==p?(e=(0,t.jsx)("label",{htmlFor:c,className:"sr-only",children:p}),a[0]=c,a[1]=p,a[2]=e):e=a[2],e}let x=_?.eyebrow??null;a[3]!==x?(i=(0,t.jsx)(d,{eyebrow:x}),a[3]=x,a[4]=i):i=a[4],a[5]!==c||a[6]!==p?(r=(0,t.jsx)(o.f,{htmlFor:c,variant:"field",children:p}),a[5]=c,a[6]=p,a[7]=r):r=a[7];let b=_?.body??null;return a[8]!==f||a[9]!==b?(s=(0,t.jsx)("p",{className:"text-body text-muted-foreground",children:(0,t.jsx)(m,{compact:f,body:b})}),a[8]=f,a[9]=b,a[10]=s):s=a[10],a[11]!==i||a[12]!==r||a[13]!==s?(l=(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[i,r,s]}),a[11]=i,a[12]=r,a[13]=s,a[14]=l):l=a[14],l},"S",0,m,"g",0,d,"C",0,u])},596376,e=>{"use strict";var t=e.i(659350),n=e.i(663456),i=e.i(207298),r=e.i(136562);let s=(0,i.f)("mt-1 leading-body",{variants:{tone:{muted:"text-muted-foreground",foreground:"text-foreground"}},defaultVariants:{tone:"muted"}}),l="border-negative/30 bg-negative-bg text-foreground [&>svg]:text-negative",a=(0,i.f)("relative flex w-full rounded-lg border text-xs [&>svg]:mt-0.5 [&>svg]:shrink-0",{variants:{size:{default:"gap-3 px-4 py-3 [&>svg]:size-4",compact:"gap-1.5 px-2.5 py-1.5 [&>svg]:size-3.5"},variant:{default:"border-border bg-muted text-foreground [&>svg]:text-muted-foreground",destructive:l,positive:"border-positive/30 bg-positive-bg text-foreground [&>svg]:text-positive",negative:l,warning:"border-warning/30 bg-warning-bg text-foreground [&>svg]:text-warning",info:"border-info/30 bg-info-bg text-foreground [&>svg]:text-info",promo:"border-promo/30 bg-promo-bg text-foreground [&>svg]:text-promo"}},defaultVariants:{size:"default",variant:"default"}});e.s(["J",0,function(e){let i,s,l,o,c,u,d=(0,n.c)(12);return d[0]!==e?({className:i,variant:o,size:l,...s}=e,d[0]=e,d[1]=i,d[2]=s,d[3]=l,d[4]=o):(i=d[1],s=d[2],l=d[3],o=d[4]),d[5]!==i||d[6]!==l||d[7]!==o?(c=(0,r.f)(a({size:l,variant:o}),i),d[5]=i,d[6]=l,d[7]=o,d[8]=c):c=d[8],d[9]!==s||d[10]!==c?(u=(0,t.jsx)("div",{role:"alert",className:c,...s}),d[9]=s,d[10]=c,d[11]=u):u=d[11],u},"p",0,function(e){let i,l,a,o,c,u=(0,n.c)(10);return u[0]!==e?({className:i,tone:a,...l}=e,u[0]=e,u[1]=i,u[2]=l,u[3]=a):(i=u[1],l=u[2],a=u[3]),u[4]!==i||u[5]!==a?(o=(0,r.f)(s({tone:a}),i),u[4]=i,u[5]=a,u[6]=o):o=u[6],u[7]!==l||u[8]!==o?(c=(0,t.jsx)("div",{className:o,...l}),u[7]=l,u[8]=o,u[9]=c):c=u[9],c},"s",0,function(e){let i,s,l,a,o=(0,n.c)(8);return o[0]!==e?({className:i,...s}=e,o[0]=e,o[1]=i,o[2]=s):(i=o[1],s=o[2]),o[3]!==i?(l=(0,r.f)("font-medium leading-snug text-foreground",i),o[3]=i,o[4]=l):l=o[4],o[5]!==s||o[6]!==l?(a=(0,t.jsx)("h5",{className:l,...s,children:s.children}),o[5]=s,o[6]=l,o[7]=a):a=o[7],a}],596376)},127160,e=>{"use strict";e.s(["O",0,"","f",0,"https://discord.gg/fVyRaUDgxW","Z",0,"https://github.com/OpenRouterTeam","F",0,"https://www.linkedin.com/company/104068329","T",0,"https://status.openrouter.ai","q",0,"https://twitter.com/openrouter","B",0,"https://www.youtube.com/@OpenRouterAI"])},765605,807505,696501,e=>{"use strict";var t=e.i(659350),n=e.i(663456),i=e.i(402600),r=e.i(16043),s=e.i(173234),l=e.i(643939),a=e.i(843816),o=e.i(320013),c=e.i(277150),u=e.i(618115),d=e.i(188580),m=e.i(269006),f=e.i(648057),h=e.i(677410),_=e.i(421056);function p(e){let t,i=(0,n.c)(2);return i[0]!==e?(t={unitKey:l.A,clerkUserId:e,yieldsToPageOwnedSignup:!0},i[0]=e,i[1]=t):t=i[1],x(t)}function x(e){var t;let s,a,o,c,p,x,b,g,k,v=(0,n.c)(29),{unitKey:y,clerkUserId:j,yieldsToPageOwnedSignup:w}=e,z=(0,i.f)()??"/",S=(0,d.f)();v[0]===Symbol.for("react.memo_cache_sentinel")?(c=(0,m.u)(),v[0]=c):c=v[0];let{data:C,isError:T}=(0,u.f)(c),N=j??null;v[1]!==N?(p=(0,m.P)(N),v[1]=N,v[2]=p):p=v[2];let I=(0,u.f)(p),{account:R,isUnresolved:E,now:P}=(0,_.f)(j),L=(0,f.f)(),U="string"==typeof j,A=U&&(I.isPending||I.isFetching),K=U&&!I.isPending&&I.isFetching,O=I.data?.is_confirmed,F=I.data?.status;v[3]!==j||v[4]!==L||v[5]!==O||v[6]!==F?(s="string"==typeof(t={clerkUserId:j,gate:L,isConfirmed:O,status:F}).clerkUserId,a=t.gate.isSettled&&t.gate.isEnabled,o=void 0!==t.clerkUserId,x={isSubscribedOnServer:(0,h.a)({isSignedIn:s,isGateEnabled:a,isAuthResolved:o,isSubscriptionPending:!1,isConfirmed:t.isConfirmed}),isUnsubscribedOnServer:(0,h.x)({isSignedIn:s,isGateEnabled:a,isAuthResolved:o,status:t.status})},v[3]=j,v[4]=L,v[5]=O,v[6]=F,v[7]=x):x=v[7];let{isSubscribedOnServer:q,isUnsubscribedOnServer:B}=x;v[8]!==R||v[9]!==j||v[10]!==C||v[11]!==E||v[12]!==T||v[13]!==q||v[14]!==A||v[15]!==B||v[16]!==P||v[17]!==z||v[18]!==S||v[19]!==y||v[20]!==w?(b=function(e){if(e.yieldsToPageOwnedSignup&&(0,l.q)(e.pathname))return{status:"hidden"};let{clerkUserId:t,units:n}=e;return void 0===t||e.isSubscriptionUnresolved?{status:"pending"}:void 0===n?e.isUnitsError?{status:"hidden"}:{status:"pending"}:e.isAccountUnresolved&&(0,l.K)(n,e.unitKey)?{status:"pending"}:(0,l.X)(n,{unitKey:e.unitKey,visitor:{pathname:e.pathname,stableId:e.stableId,clerkUserId:t,account:e.account,isSubscribedOnServer:e.isSubscribedOnServer,isUnsubscribedOnServer:e.isUnsubscribedOnServer,now:e.now}})}({unitKey:y,yieldsToPageOwnedSignup:w,pathname:z,stableId:S,clerkUserId:j,account:R,isAccountUnresolved:E,isSubscriptionUnresolved:A,isSubscribedOnServer:q,isUnsubscribedOnServer:B,units:C,isUnitsError:T,now:P}),v[8]=R,v[9]=j,v[10]=C,v[11]=E,v[12]=T,v[13]=q,v[14]=A,v[15]=B,v[16]=P,v[17]=z,v[18]=S,v[19]=y,v[20]=w,v[21]=b):b=v[21];let D=b,V="live"===D.status?D.unit:null;v[22]!==j||v[23]!==K||v[24]!==V?(g={clerkUserId:j,liveUnit:V,isSubscriptionRefetching:K},v[22]=j,v[23]=K,v[24]=V,v[25]=g):g=v[25];let $=function(e){var t,i;let s,l=(0,n.c)(4),{clerkUserId:a,liveUnit:o,isSubscriptionRefetching:c}=e,[u,d]=(0,r.useState)(null),m=null!==u&&u.clerkUserId!==a,f=null===u||m?null:u.unit;l[0]!==c||l[1]!==o||l[2]!==f?(s=c?f:(t=f,null===(i=o)?null:t?.unitKey===i.unitKey?t:i),l[0]=c,l[1]=o,l[2]=f,l[3]=s):s=l[3];let h=s;return(h!==f||m)&&d(null===h?null:{clerkUserId:a,unit:h}),h}(g);return v[26]!==$||v[27]!==D?(k=null===$?D:{status:"live",unit:$},v[26]=$,v[27]=D,v[28]=k):k=v[28],k}function b(e){let u,d,m,f=(0,n.c)(10),{clerkUserId:h,onPendingChange:_,...x}=e,{rendered:b,offscreen:g,handlePendingChange:k}=function(e,t){let s,a,o=(0,n.c)(8),c=(0,i.f)()??"/",u=p(e),[d,m]=(0,r.useState)(null),f=d?.clerkUserId===e?d:null;null!==d&&null===f&&m(null),o[0]!==e||o[1]!==t||o[2]!==u?(s=n=>{n&&"live"===u.status&&m({clerkUserId:e,presented:u}),t?.(n)},o[0]=e,o[1]=t,o[2]=u,o[3]=s):s=o[3];let h=s,_=(0,l.q)(c),x=_?u:f?.presented??u,b=_?f?.presented??null:null;return o[4]!==h||o[5]!==x||o[6]!==b?(a={rendered:x,offscreen:b,handlePendingChange:h},o[4]=h,o[5]=x,o[6]=b,o[7]=a):a=o[7],a}(h,_);if("pending"===b.status)return(0,t.jsx)(c.f,{surface:x.surface,...(0,s.g)(x)});let v="hidden"===b.status?g:b;if(null===v)return null;let y=null!==g?"hidden":"contents";return f[0]!==v.unit?(u=(0,a.f)(v.unit),f[0]=v.unit,f[1]=u):u=f[1],f[2]!==h||f[3]!==k||f[4]!==x||f[5]!==u?(d=(0,t.jsx)(o.f,{...x,...u,clerkUserId:h,onPendingChange:k}),f[2]=h,f[3]=k,f[4]=x,f[5]=u,f[6]=d):d=f[6],f[7]!==y||f[8]!==d?(m=(0,t.jsx)("div",{className:y,children:d}),f[7]=y,f[8]=d,f[9]=m):m=f[9],m}e.s(["a",0,p,"L",0,x],807505);var g=e.i(427720),k=e.i(376885);function v(){let{isLoaded:e,userId:t}=(0,k.f)();return e?t??null:void 0}function y(e){let i,r,s=(0,n.c)(9);s[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,g.i)("0x4AAAAAAFAY2-D9TAmDe1_K"),s[0]=i):i=s[0];let l=i,a=(0,g.W)(l),c=v();if("footer"===e.surface){let n;return s[1]!==c||s[2]!==e||s[3]!==a?(n=(0,t.jsx)(b,{...e,siteKey:l,turnstile:a,clerkUserId:c}),s[1]=c,s[2]=e,s[3]=a,s[4]=n):n=s[4],n}return s[5]!==c||s[6]!==e||s[7]!==a?(r=(0,t.jsx)(o.f,{...e,siteKey:l,turnstile:a,clerkUserId:c}),s[5]=c,s[6]=e,s[7]=a,s[8]=r):r=s[8],r}function j(e){let i,r=(0,n.c)(2),s=(0,f.f)();return s.isSettled&&s.isEnabled?(r[0]!==e?(i=(0,t.jsx)(y,{...e}),r[0]=e,r[1]=i):i=r[1],i):null}e.s(["f",0,v],696501),e.s(["NewsletterForm",0,function(e){let i,r,s,l=(0,n.c)(5);return(l[0]!==e?({authMode:r,...i}=e,l[0]=e,l[1]=i,l[2]=r):(i=l[1],r=l[2]),"anonymous"===(void 0===r?"clerk":r))?null:(l[3]!==i?(s=(0,t.jsx)(j,{...i}),l[3]=i,l[4]=s):s=l[4],s)}],765605)},320013,277150,e=>{"use strict";var t=e.i(659350),n=e.i(663456),i=e.i(960773),r=e.i(618115),s=e.i(16043),l=e.i(269006),a=e.i(754216),o=e.i(173234),c=e.i(536274),u=e.i(451547),d=e.i(181870),m=e.i(136562),f=e.i(596376);e.i(707060);var h=e.i(196991),_=e.i(288265),p=e.i(59889),x=e.i(627956),b=e.i(977560),g=e.i(339195),k=e.i(647204),v=e.i(261738),y=e.i(170929),j=e.i(882844),w=e.i(635157),z=e.i(478523);let S=w.z.enum([z.f.Pending,z.f.Confirmed,z.f.Unsubscribed,z.f.Bounced]);w.z.object({status:S.optional(),source:w.z.string().trim().min(1).max(100).optional(),is_eu:j.Y.optional(),has_account:j.Y.optional(),email:w.z.string().trim().min(3).max(320).optional(),after_id:w.z.string().uuid().optional(),page:w.z.coerce.number().int().positive().max(1e6).default(1),page_size:w.z.coerce.number().int().min(1).max(100).default(25)});let C=w.z.boolean().nullable(),T=w.z.object({topic_1:C,topic_2:C,topic_3:C,topic_4:C,topic_5:C}),N=w.z.object({id:w.z.string().uuid(),email:w.z.string().nullable(),clerk_user_id:w.z.string().nullable(),status:S,source:w.z.string().nullable(),statsig_variant:w.z.string().nullable(),popup_config_revision:w.z.number().int().nullable(),signup_page_path:w.z.string().nullable().default(null),signup_root_url:w.z.string().nullable().default(null),confirmation_required:w.z.boolean(),consent_is_eu_country:w.z.boolean(),consent_country:w.z.string().nullable(),consent_copy_version:w.z.string().nullable(),topic_scope:w.z.enum(["all_topics","newsletter_topics"]),topics:T,consent_at:w.z.string().nullable(),confirmed_at:w.z.string().nullable(),unsubscribed_at:w.z.string().nullable(),bounced_at:w.z.string().nullable(),last_submitted_at:w.z.string().nullable(),created_at:w.z.string(),updated_at:w.z.string()}),I=w.z.object({id:w.z.string().uuid(),event:w.z.string(),occurred_at:w.z.string(),source:w.z.string().nullable(),consent_copy_version:w.z.string().nullable(),consent_country:w.z.string().nullable(),consent_is_eu_country:w.z.boolean(),confirmation_required:w.z.boolean()});w.z.object({data:w.z.object({subscribers:w.z.array(N),pagination:w.z.object({page:w.z.number().int().positive(),page_size:w.z.number().int().positive(),total:w.z.number().int().nonnegative(),total_pages:w.z.number().int().nonnegative()})})}),w.z.object({data:w.z.object({subscriber:N,consent_events:w.z.array(I),consent_events_total:w.z.number().int().nonnegative()})}),w.z.object({data:w.z.object({subscriber:N,did_transition:w.z.boolean()})}),w.z.object({days:w.z.coerce.number().int().min(1).max(365).default(90),status:S.optional()});let R=w.z.object({date:w.z.string(),source:w.z.string().nullable(),count:w.z.number().int().nonnegative()});w.z.object({data:w.z.object({start_date:w.z.string(),end_date:w.z.string(),rows:w.z.array(R)})});var E=e.i(235801);let P=Number.MAX_SAFE_INTEGER,L=Number.MAX_SAFE_INTEGER,U=/^[a-z0-9_]+$/,A="Use lowercase letters, digits and underscores",K=w.z.string().trim().min(1).max(100).regex(U,A),O=w.z.enum(["popup","inline"]),F=w.z.enum(E.G),q=["imagedelivery.net","model-assets.openrouter.ai","openrouter.ai","raw.githubusercontent.com"],B=`Artwork must be hosted on ${q.join(", ")}`,D=w.z.string().trim().max(2e3).url().startsWith("https://","Artwork must be served over https").refine(function(e){if(!URL.canParse(e))return!1;let{hostname:t,port:n}=new URL(e);return""===n&&q.some(e=>e===t)},B),V=w.z.string().trim().min(1).max(300),$={desktop:{urlField:"image_url",altField:"image_alt"},mobile:{urlField:"image_url_mobile",altField:"image_alt_mobile"}},Y=w.z.object({eyebrow:w.z.string().trim().min(1).max(80).optional(),headline:w.z.string().trim().min(1).max(200).optional(),body:w.z.string().trim().min(1).max(1e3).optional(),cta_label:w.z.string().trim().min(1).max(60).optional(),image_url:D.optional(),image_alt:V.optional(),image_url_mobile:D.optional(),image_alt_mobile:V.optional()}).superRefine(function(e,t){for(let{urlField:n,altField:i}of Object.values($))void 0!==e[n]&&void 0===e[i]&&t.addIssue({code:"custom",path:[i],message:"Alt text is required when artwork is set"}),void 0!==e[i]&&void 0===e[n]&&t.addIssue({code:"custom",path:[n],message:"Artwork URL is required when alt text is set"})}),M=w.z.string().trim().min(1).max(200).startsWith("/"),W=w.z.object({is_enabled:w.z.boolean(),rollout_percentage:w.z.number().int().min(0).max(100),time_on_page_ms:w.z.number().int().min(0).max(0x7fffffff),scroll_depth_percent:w.z.number().int().min(0).max(100),exit_intent_enabled:w.z.boolean(),frequency_cap_ms:w.z.number().int().min(0).max(P),excluded_paths:w.z.array(M).max(100),included_paths:w.z.array(M).max(100).nullable(),source:w.z.string().trim().min(1).max(100).regex(U,A),creative:Y.nullable()}),G=w.z.string().trim().min(1).max(100).regex(U,A),X=W.extend({form_factor:O,audience:F,exit_intent_desktop_only:w.z.boolean(),dismiss_cooldown_ms:w.z.number().int().min(0).max(L),priority:w.z.number().int().min(0).max(100).default(50),show_to_unsubscribed:w.z.boolean().default(!1),customerio_list:G.nullable().optional()}).omit({customerio_list:!0}).extend({unit_key:K,revision:w.z.number().int().positive()}),J=X.extend({customerio_list:G.nullable(),created_at:w.z.string(),created_by_clerk_user_id:w.z.string().nullable()});w.z.object({data:w.z.array(X)}),w.z.object({data:w.z.array(J)}),w.z.object({data:w.z.object({current:J.nullable(),history:w.z.array(J)})}),w.z.object({data:J});let Q=W.extend({revision:w.z.number().int().positive()}).extend({created_at:w.z.string(),created_by_clerk_user_id:w.z.string().nullable()});w.z.object({data:w.z.object({current:Q.nullable(),history:w.z.array(Q)})}),w.z.object({data:Q}),w.z.object({is_confirmed:w.z.boolean(),status:S.nullable().optional(),masked_email:w.z.string().nullish()}),w.z.object({signup_page_path:w.z.string().regex(y._).nullish(),signup_root_url:w.z.string().refine(y.$).nullish()}).extend({statsig_variant:w.z.string().trim().min(1).max(100).nullish(),unit_key:K.nullish(),popup_config_revision:w.z.number().int().positive().max(0x7fffffff).nullish()});let H=w.z.object({data:w.z.object({accepted:w.z.literal(!0),confirmation_required:w.z.boolean()})});function Z(e){return{...e.statsigVariant?{statsig_variant:e.statsigVariant}:{},...e.unitKey?{unit_key:e.unitKey}:{},..."number"==typeof e.popupConfigRevision?{popup_config_revision:e.popupConfigRevision}:{}}}async function ee(e){let{email:t,source:n,website:i,turnstileToken:r,stableId:s}=e,l=Z(e),a=(0,y.y)(),o=await (0,k.$)(()=>fetch("/api/frontend/v1/newsletter/subscribe",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:t,source:n,...r?{turnstile_token:r}:{},website:i,consent_copy_version:g.K,...s?{statsig_stable_id:s}:{},...l,...a})}));if((0,k.V)(o))return(0,k.Y)({kind:"network"});if(!o.data.ok)return await (0,k.$)(()=>o.data.body?.cancel()),(0,k.Y)({kind:"http_status",httpStatus:o.data.status});let c=await (0,k.$)(()=>o.data.json());if((0,k.V)(c))return(0,k.Y)({kind:"unreadable_body"});let u=(0,j.C)(H,c.data);return(0,k.V)(u)?(0,k.Y)({kind:"malformed_body"}):(0,k.N)({isConfirmationRequired:u.data.data.confirmation_required})}async function et(e){let{posthog:t,eventContext:n}=e;try{return await ei(e)}catch{return(0,a.B)(t,{eventContext:n,reason:"unexpected"}),{status:"error",reason:"unexpected"}}}function en(e,t){(0,a.m)(e,{eventContext:t.eventContext,turnstileRetried:t.turnstileRetried}),(0,a.K)(window.dataLayer??=[],t.eventContext),(0,v.N)(window.localStorage,{key:(0,v.l)(t.clerkUserId),value:(0,v.o)({clerkUserId:t.clerkUserId,now:Date.now()})})}async function ei(e){let{posthog:t,eventContext:n}=e;(0,a.c)(t,n);let i=e.requiresTurnstile?await e.executeTurnstile():void 0;if(i&&(0,k.V)(i))return(0,a.B)(t,{eventContext:n,reason:"turnstile_incomplete",turnstileMiss:i.error}),{status:"error",reason:"turnstile_incomplete"};let r=i?.data.token,s=await ee({email:e.email,source:e.source,website:e.website,turnstileToken:r,stableId:e.stableId,statsigVariant:e.statsigVariant,unitKey:e.unitKey,popupConfigRevision:e.popupConfigRevision});return(0,k.V)(s)?((0,a.B)(t,{eventContext:n,reason:"request_failed",httpStatus:s.error.httpStatus}),{status:"error",reason:"request_failed"}):(en(t,{eventContext:n,clerkUserId:e.clerkUserId,turnstileRetried:i?.data.retried}),{status:"success",result:s.data.isConfirmationRequired?"confirmation_required":"confirmed",isAccountEmail:!1})}function er(e){let t,i,r,l,a,o,c=(0,n.c)(12),{onSuccess:u,onPendingChange:d,run:m}=e;c[0]===Symbol.for("react.memo_cache_sentinel")?(t={status:"idle"},c[0]=t):t=c[0];let[f,h]=(0,s.useState)(t),_=(0,s.useRef)(!0);c[1]===Symbol.for("react.memo_cache_sentinel")?(i=()=>(_.current=!0,()=>{_.current=!1}),r=[],c[1]=i,c[2]=r):(i=c[1],r=c[2]),(0,s.useEffect)(i,r),c[3]!==d||c[4]!==u||c[5]!==m||c[6]!==f?(l=async e=>{let t;if("submitting"===f.status)return;if(void 0!==e&&!((t=e.trim()).length<=g.s&&(0,b.r)(t)))return void h({status:"error",reason:"invalid_email"});h({status:"submitting"}),d?.(!0);let n=await m();d?.(!1),_.current&&(h(n),"success"===n.status&&u?.())},c[3]=d,c[4]=u,c[5]=m,c[6]=f,c[7]=l):l=c[7];let p=l;c[8]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{h(es)},c[8]=a):a=c[8];let x=a;return c[9]!==f||c[10]!==p?(o={state:f,submit:p,dismissInvalidEmail:x},c[9]=f,c[10]=p,c[11]=o):o=c[11],o}function es(e){return"error"===e.status&&"invalid_email"===e.reason?{status:"idle"}:e}function el(e){let i=(0,n.c)(3),{success:r}=e,{result:s,isAccountEmail:l}=r;switch(s){case"confirmation_required":{let e;return i[0]!==l?(e=l?(0,t.jsx)(h.T,{children:"Check your inbox for a confirmation link. Your subscription starts when you click it."}):(0,t.jsx)(h.T,{children:"One more step! Check your inbox for the confirmation link we just sent to complete your subscription."}),i[0]=l,i[1]=e):e=i[1],e}case"confirmed":{let e;return i[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(h.T,{children:"Subscription confirmed."}),i[2]=e):e=i[2],e}default:return s}}function ea(e){let i,r,s,l,a=(0,n.c)(9),{success:o,className:c}=e,u=o.result;return a[0]!==c?(i=(0,m.f)("ph-no-capture items-start",c),a[0]=c,a[1]=i):i=a[1],a[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)(p.f,{"aria-hidden":"true"}),a[2]=r):r=a[2],a[3]!==o?(s=(0,t.jsx)("div",{className:"text-body text-foreground",children:(0,t.jsx)(el,{success:o})}),a[3]=o,a[4]=s):s=a[4],a[5]!==o.result||a[6]!==i||a[7]!==s?(l=(0,t.jsxs)(f.J,{variant:"positive",role:"status","data-newsletter-result":u,"data-dd-privacy":"hidden",className:i,children:[r,s]}),a[5]=o.result,a[6]=i,a[7]=s,a[8]=l):l=a[8],l}function eo(e){let i,r,s,l=(0,n.c)(6),{state:a}=e,o=(0,_.f)();return"error"!==a.status?null:(l[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(x.f,{"aria-hidden":"true",className:"mt-1 size-3 shrink-0"}),l[0]=i):i=l[0],l[1]!==o||l[2]!==a.reason?(r=function(e,t){switch(t){case"invalid_email":return e("Please enter a valid email address.");case"turnstile_incomplete":return e("Please complete the security check and try again.");case"request_failed":return e("We could not subscribe you right now. Please try again.");case"unexpected":return e("Something went wrong. Please try again.");default:return t}}(o,a.reason),l[1]=o,l[2]=a.reason,l[3]=r):r=l[3],l[4]!==r?(s=(0,t.jsxs)("p",{role:"alert",className:"flex items-start gap-1.5 text-body text-negative-text",children:[i,(0,t.jsx)("span",{children:r})]}),l[4]=r,l[5]=s):s=l[5],s)}w.z.object({is_confirmed:w.z.boolean(),confirmation_required:w.z.boolean()});var ec=e.i(73065);function eu(e){let i,r=(0,n.c)(10),{layout:s,intro:l,children:a}=e;if("split"===s){let e,n,i;return r[0]!==l?(e=(0,t.jsx)("div",{className:ec.R.intro,children:l}),r[0]=l,r[1]=e):e=r[1],r[2]!==a?(n=(0,t.jsx)("div",{className:ec.R.controls,children:a}),r[2]=a,r[3]=n):n=r[3],r[4]!==e||r[5]!==n?(i=(0,t.jsxs)(t.Fragment,{children:[e,n]}),r[4]=e,r[5]=n,r[6]=i):i=r[6],i}return r[7]!==a||r[8]!==l?(i=(0,t.jsxs)(t.Fragment,{children:[l,a]}),r[7]=a,r[8]=l,r[9]=i):i=r[9],i}function ed(e){let i,r,s,l=(0,n.c)(9),{isSuccess:a,status:o,children:c}=e,u=a&&"invisible";l[0]!==u?(i=(0,m.f)("col-start-1 row-start-1 min-w-0",u),l[0]=u,l[1]=i):i=l[1],l[2]!==c||l[3]!==a||l[4]!==i?(r=(0,t.jsx)("div",{className:i,inert:a,children:c}),l[2]=c,l[3]=a,l[4]=i,l[5]=r):r=l[5];let d=a&&o;return l[6]!==r||l[7]!==d?(s=(0,t.jsxs)("div",{className:"grid min-h-10 grid-cols-[minmax(0,1fr)]",children:[r,d]}),l[6]=r,l[7]=d,l[8]=s):s=l[8],s}function em({surface:e,eventContext:n,attribution:r,compact:l,hideIntro:a,layout:m,ctaLabel:f,copy:h,stableId:_,siteKey:p,turnstile:x,onSuccess:b,onPendingChange:g,isDifferentEmail:k=!1,clerkUserId:v=null}){let y=(0,i.Q)(),[j,w]=(0,s.useState)(""),[z,S]=(0,s.useState)(""),{state:C,submit:T,dismissInvalidEmail:N}=er({onSuccess:b,onPendingChange:g,run:()=>et({email:j,website:z,source:n.source,stableId:_,statsigVariant:r.statsigVariant,unitKey:r.unitKey,popupConfigRevision:r.popupConfigRevision,requiresTurnstile:void 0!==p,clerkUserId:v,executeTurnstile:x.execute,posthog:y,eventContext:n})}),I=`newsletter-email-${e}`;return(0,t.jsx)("form",{className:(0,o.a)(m),onSubmit:e=>{e.preventDefault(),T(j)},noValidate:!0,children:(0,t.jsxs)(eu,{layout:m,intro:(0,t.jsx)(u.B,{inputId:I,compact:l,hideIntro:a,copy:h}),children:[(0,t.jsx)(ed,{isSuccess:"success"===C.status,status:"success"===C.status?(0,t.jsx)(ea,{success:C,className:"col-start-1 row-start-1 self-center"}):null,children:(0,t.jsx)(u.x,{inputId:I,email:j,onEmailChange:e=>{w(e),N()},ctaLabel:f,isSubmitting:"submitting"===C.status,isInvalid:"error"===C.status&&"invalid_email"===C.reason,autoFocus:k})}),(0,t.jsx)(d.f,{name:"website",type:"text",value:z,onChange:e=>S(e.target.value),tabIndex:-1,"aria-hidden":"true",autoComplete:"off",className:"absolute -left-2499.75 w-px","data-testid":"newsletter-website"}),(0,t.jsx)("div",{ref:x.containerRef,className:"relative w-full overflow-visible empty:hidden"}),(0,t.jsx)(eo,{state:C}),(0,t.jsx)(c.f,{})]})})}var ef=e.i(139697);function eh(e){let i,r,s,l,a,m,f,h,p,x,b=(0,n.c)(28),{surface:g,compact:k,hideIntro:v,layout:y,ctaLabel:j,copy:w}=e,z=(0,_.f)(),S=`newsletter-email-${g}`;return b[0]!==y?(i=(0,o.a)(y),b[0]=y,b[1]=i):i=b[1],b[2]!==k||b[3]!==w||b[4]!==v||b[5]!==S?(r=(0,t.jsx)(u.B,{inputId:S,compact:k,hideIntro:v,copy:w}),b[2]=k,b[3]=w,b[4]=v,b[5]=S,b[6]=r):r=b[6],b[7]!==z?(s=z("you@company.com"),b[7]=z,b[8]=s):s=b[8],b[9]!==S||b[10]!==s?(l=(0,t.jsx)(d.f,{id:S,type:"email",placeholder:s,className:"sm:flex-1",disabled:!0,readOnly:!0}),b[9]=S,b[10]=s,b[11]=l):l=b[11],b[12]!==j||b[13]!==z?(a=j??z("Subscribe"),b[12]=j,b[13]=z,b[14]=a):a=b[14],b[15]!==a?(m=(0,t.jsx)(ef.Button,{type:"button",className:"shrink-0",disabled:!0,children:a}),b[15]=a,b[16]=m):m=b[16],b[17]!==l||b[18]!==m?(f=(0,t.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[l,m]}),b[17]=l,b[18]=m,b[19]=f):f=b[19],b[20]===Symbol.for("react.memo_cache_sentinel")?(h=(0,t.jsx)(c.f,{}),b[20]=h):h=b[20],b[21]!==y||b[22]!==r||b[23]!==f?(p=(0,t.jsxs)(eu,{layout:y,intro:r,children:[f,h]}),b[21]=y,b[22]=r,b[23]=f,b[24]=p):p=b[24],b[25]!==i||b[26]!==p?(x=(0,t.jsx)("div",{className:i,"aria-busy":"true","data-testid":"newsletter-auth-loading",children:p}),b[25]=i,b[26]=p,b[27]=x):x=b[27],x}async function e_(e){let{posthog:t,eventContext:n}=e;(0,a.c)(t,n);let i=await e.subscribe({source:e.source,consent_copy_version:g.K,...e.stableId?{statsig_stable_id:e.stableId}:{},...e.posthogDistinctId?{posthog_distinct_id:e.posthogDistinctId}:{},...Z(e),...(0,y.y)()});return(0,k.V)(i)?((0,a.B)(t,{eventContext:n,reason:"request_failed"}),{status:"error",reason:"request_failed"}):(en(t,{eventContext:n,clerkUserId:e.clerkUserId}),{status:"success",result:i.data.is_confirmed?"confirmed":"confirmation_required",isAccountEmail:!0})}function ep(e){let i,r,s,l,a=(0,n.c)(11),{compact:o,copy:c}=e,d=(0,u.C)(o,c),m=c?.eyebrow??null;a[0]!==m?(i=(0,t.jsx)(u.g,{eyebrow:m}),a[0]=m,a[1]=i):i=a[1],a[2]!==d?(r=(0,t.jsx)("p",{className:"text-body font-medium text-foreground",children:d}),a[2]=d,a[3]=r):r=a[3];let f=c?.body??null;return a[4]!==o||a[5]!==f?(s=(0,t.jsx)("p",{className:"text-body text-muted-foreground",children:(0,t.jsx)(u.S,{compact:o,body:f})}),a[4]=o,a[5]=f,a[6]=s):s=a[6],a[7]!==i||a[8]!==r||a[9]!==s?(l=(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[i,r,s]}),a[7]=i,a[8]=r,a[9]=s,a[10]=l):l=a[10],l}function ex(e){let i,r,s,l,a,o=(0,n.c)(13),{maskedEmail:c,onUseDifferentEmail:u,isSubmitting:m}=e,f=(0,_.f)(),p=c??"";return o[0]!==f?(i=f("The email address on your account"),o[0]=f,o[1]=i):i=o[1],o[2]!==f?(r=f("Account email"),o[2]=f,o[3]=r):r=o[3],o[4]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(h.T,{children:"Change"}),o[4]=s):s=o[4],o[5]!==m||o[6]!==u?(l=(0,t.jsx)(ef.Button,{variant:"link",size:"sm",tone:"subdued",weight:"regular",onClick:u,disabled:m,className:"px-2",children:s}),o[5]=m,o[6]=u,o[7]=l):l=o[7],o[8]!==p||o[9]!==i||o[10]!==r||o[11]!==l?(a=(0,t.jsx)(d.f,{readOnly:!0,type:"text",value:p,placeholder:i,"aria-label":r,containerClassName:"sm:flex-1 @max-sm:flex-none",trailingContent:l}),o[8]=p,o[9]=i,o[10]=r,o[11]=l,o[12]=a):a=o[12],a}function eb(e){let r,s,a,u,d,m,f,h,p,x,b,g,k,v,y,j,w=(0,n.c)(54),{clerkUserId:z,maskedEmail:S,onUseDifferentEmail:C,eventContext:T,compact:N,hideIntro:I,layout:R,ctaLabel:E,copy:P,stableId:L,statsigVariant:U,unitKey:A,popupConfigRevision:K,onSuccess:O,onPendingChange:F}=e,q=(0,_.f)(),B=(0,i.Q)(),{mutate:D}=(0,l.G)(z);w[0]!==z||w[1]!==T||w[2]!==D||w[3]!==K||w[4]!==B||w[5]!==L||w[6]!==U||w[7]!==A?(r=()=>e_({clerkUserId:z,source:T.source,stableId:L,statsigVariant:U,unitKey:A,popupConfigRevision:K,posthogDistinctId:B.get_distinct_id?.()??void 0,subscribe:D,posthog:B,eventContext:T}),w[0]=z,w[1]=T,w[2]=D,w[3]=K,w[4]=B,w[5]=L,w[6]=U,w[7]=A,w[8]=r):r=w[8],w[9]!==F||w[10]!==O||w[11]!==r?(s={onSuccess:O,onPendingChange:F,run:r},w[9]=F,w[10]=O,w[11]=r,w[12]=s):s=w[12];let{state:V,submit:$}=er(s);w[13]!==$?(a=e=>{e.preventDefault(),$()},w[13]=$,w[14]=a):a=w[14];let Y=a;w[15]!==R?(u=(0,o.a)(R),w[15]=R,w[16]=u):u=w[16],w[17]!==N||w[18]!==P||w[19]!==I?(d=I?null:(0,t.jsx)(ep,{compact:N,copy:P}),w[17]=N,w[18]=P,w[19]=I,w[20]=d):d=w[20];let M="success"===V.status;w[21]!==V?(m="success"===V.status?(0,t.jsx)(ea,{success:V,className:"col-start-1 row-start-1 self-center"}):null,w[21]=V,w[22]=m):m=w[22];let W="submitting"===V.status;w[23]!==S||w[24]!==C||w[25]!==W?(f=(0,t.jsx)(ex,{maskedEmail:S,onUseDifferentEmail:C,isSubmitting:W}),w[23]=S,w[24]=C,w[25]=W,w[26]=f):f=w[26];let G="submitting"===V.status;return w[27]!==E||w[28]!==q?(h=E??q("Subscribe"),w[27]=E,w[28]=q,w[29]=h):h=w[29],w[30]!==h?(p=(0,t.jsx)("span",{children:h}),w[30]=h,w[31]=p):p=w[31],w[32]!==G||w[33]!==p?(x=(0,t.jsx)(ef.Button,{type:"submit",isLoading:G,className:"shrink-0",children:p}),w[32]=G,w[33]=p,w[34]=x):x=w[34],w[35]!==x||w[36]!==f?(b=(0,t.jsxs)("div",{className:"ph-no-capture flex flex-col gap-2 sm:flex-row @max-sm:flex-col","data-dd-privacy":"hidden",children:[f,x]}),w[35]=x,w[36]=f,w[37]=b):b=w[37],w[38]!==b||w[39]!==M||w[40]!==m?(g=(0,t.jsx)(ed,{isSuccess:M,status:m,children:b}),w[38]=b,w[39]=M,w[40]=m,w[41]=g):g=w[41],w[42]!==V?(k=(0,t.jsx)(eo,{state:V}),w[42]=V,w[43]=k):k=w[43],w[44]===Symbol.for("react.memo_cache_sentinel")?(v=(0,t.jsx)(c.f,{}),w[44]=v):v=w[44],w[45]!==R||w[46]!==g||w[47]!==k||w[48]!==d?(y=(0,t.jsxs)(eu,{layout:R,intro:d,children:[g,k,v]}),w[45]=R,w[46]=g,w[47]=k,w[48]=d,w[49]=y):y=w[49],w[50]!==Y||w[51]!==y||w[52]!==u?(j=(0,t.jsx)("form",{className:u,onSubmit:Y,"data-testid":"newsletter-one-click-form",children:y}),w[50]=Y,w[51]=y,w[52]=u,w[53]=j):j=w[53],j}function eg(e){let i,a,o,c,u,d,m,f=(0,n.c)(16);f[0]!==e?({renderEmailForm:o,placeholder:a,...i}=e,f[0]=e,f[1]=i,f[2]=a,f[3]=o):(i=f[1],a=f[2],o=f[3]),f[4]!==i.clerkUserId?(c=(0,l.P)(i.clerkUserId),f[4]=i.clerkUserId,f[5]=c):c=f[5],f[6]!==c?(u={...c,refetchOnMount:!1},f[6]=c,f[7]=u):u=f[7];let h=(0,r.f)(u),[_,p]=(0,s.useState)(!1);if(h.isPending)return a;if(h.data?.masked_email===null){let e;return f[8]!==o?(e=o(!1),f[8]=o,f[9]=e):e=f[9],e}if(_){let e;return f[10]!==o?(e=o(!0),f[10]=o,f[11]=e):e=f[11],e}let x=h.data?.masked_email;return f[12]===Symbol.for("react.memo_cache_sentinel")?(d=()=>p(!0),f[12]=d):d=f[12],f[13]!==i||f[14]!==x?(m=(0,t.jsx)(eb,{maskedEmail:x,onUseDifferentEmail:d,...i}),f[13]=i,f[14]=x,f[15]=m):m=f[15],m}e.s(["f",0,eh],277150),e.s(["f",0,function(e){let r,l,c,u,d,m=(0,n.c)(39),{surface:f,source:h,onSuccess:_,onPendingChange:p,siteKey:x,stableId:b,popupArm:g,popupConfigRevision:k,unitKey:v,turnstile:y,clerkUserId:j,...w}=e,z=(0,i.Q)(),S=h??o.E;m[0]!==g||m[1]!==k||m[2]!==S||m[3]!==f||m[4]!==v?(r={surface:f,source:S,popupArm:g,popupConfigRevision:k,unitKey:v},m[0]=g,m[1]=k,m[2]=S,m[3]=f,m[4]=v,m[5]=r):r=m[5];let C=r;m[6]!==g||m[7]!==k||m[8]!==v?(l={statsigVariant:g,unitKey:v,popupConfigRevision:k},m[6]=g,m[7]=k,m[8]=v,m[9]=l):l=m[9];let T=l,N=(0,o.g)(w);(function(e,t){let i,r,l=(0,n.c)(9),o=(0,s.useRef)(null),{surface:c,source:u,popupArm:d,popupConfigRevision:m,unitKey:f}=t,h=`${u}:${f??""}:${m??""}`;l[0]!==d||l[1]!==m||l[2]!==e||l[3]!==h||l[4]!==u||l[5]!==c||l[6]!==f?(i=()=>{"popup"!==c&&o.current!==h&&(o.current=h,(0,a.z)(e,{surface:c,source:u,popupArm:d,popupConfigRevision:m,unitKey:f}))},r=[d,m,e,h,u,c,f],l[0]=d,l[1]=m,l[2]=e,l[3]=h,l[4]=u,l[5]=c,l[6]=f,l[7]=i,l[8]=r):(i=l[7],r=l[8]),(0,s.useEffect)(i,r)})(z,C),m[10]!==T||m[11]!==j||m[12]!==C||m[13]!==p||m[14]!==_||m[15]!==N||m[16]!==x||m[17]!==b||m[18]!==f||m[19]!==y?(c=e=>(0,t.jsx)(em,{surface:f,eventContext:C,attribution:T,stableId:b,siteKey:x,turnstile:y,onSuccess:_,onPendingChange:p,isDifferentEmail:e,clerkUserId:j??null,...N},e?"different-email":"anonymous"),m[10]=T,m[11]=j,m[12]=C,m[13]=p,m[14]=_,m[15]=N,m[16]=x,m[17]=b,m[18]=f,m[19]=y,m[20]=c):c=m[20];let I=c;if(void 0===j){let e;return m[21]!==N||m[22]!==f?(e=(0,t.jsx)(eh,{surface:f,...N}),m[21]=N,m[22]=f,m[23]=e):e=m[23],e}if(null===j){let e;return m[24]!==I?(e=I(!1),m[24]=I,m[25]=e):e=m[25],e}return m[26]!==N||m[27]!==f?(u=(0,t.jsx)(eh,{surface:f,...N}),m[26]=N,m[27]=f,m[28]=u):u=m[28],m[29]!==T||m[30]!==j||m[31]!==C||m[32]!==p||m[33]!==_||m[34]!==N||m[35]!==I||m[36]!==b||m[37]!==u?(d=(0,t.jsx)(eg,{clerkUserId:j,renderEmailForm:I,placeholder:u,eventContext:C,stableId:b,onSuccess:_,onPendingChange:p,...N,...T},j),m[29]=T,m[30]=j,m[31]=C,m[32]=p,m[33]=_,m[34]=N,m[35]=I,m[36]=b,m[37]=u,m[38]=d):d=m[38],d}],320013)},173234,643939,e=>{"use strict";var t=e.i(73065);e.s(["E",0,"web_footer","a",0,function(e){switch(e){case"stack":return"flex flex-col gap-3";case"split":return t.R.root;default:return e}},"g",0,function({compact:e=!1,hideIntro:t=!1,layout:n="stack",ctaLabel:i,copy:r}){return{compact:e,hideIntro:t,layout:n,ctaLabel:i,copy:r}}],173234);var n=e.i(235801),i=e.i(825828),r=e.i(677410);let s="web_footer",l=["/data","/blog"];function a(e,t){return e.find(e=>e.unit_key===t&&"inline"===e.form_factor)}e.s(["A",0,s,"K",0,function(e,t){let i=a(e,t);return void 0!==i&&i.is_enabled&&(0,n.F)(i.audience)},"q",0,function(e){return l.some(t=>e===t||e.startsWith(`${t}/`))},"X",0,function(e,t){var l,o,c;let u=a(e,t.unitKey);return void 0!==u&&u.is_enabled&&null!==u.creative&&(l=u,o=t.visitor,(0,n.k)(l.audience,{clerkUserId:o.clerkUserId,account:o.account,now:o.now})&&!o.isSubscribedOnServer&&(!o.isUnsubscribedOnServer||l.show_to_unsubscribed)&&(0,i.$)(o.pathname,{includedPaths:l.included_paths,excludedPaths:l.excluded_paths})&&(0,i.i)(o.stableId,l.rollout_percentage))?{status:"live",unit:{unitKey:u.unit_key,revision:u.revision,source:(c=u.source,(0,r.S)(c)?c:s),eyebrow:u.creative.eyebrow??null,headline:u.creative.headline??null,body:u.creative.body??null,ctaLabel:u.creative.cta_label??null}}:{status:"hidden"}}],643939)},648057,e=>{"use strict";var t=e.i(663456),n=e.i(129067),i=e.i(324828);e.s(["f",0,function(){let e,r=(0,t.c)(3),s=(0,n.l)("newsletterPopup"),l=(0,i.Q)();return r[0]!==s||r[1]!==l?(e={isSettled:l,isEnabled:s},r[0]=s,r[1]=l,r[2]=e):e=r[2],e}])},843816,e=>{"use strict";e.s(["f",0,function(e){return{source:e.source,unitKey:e.unitKey,popupConfigRevision:e.revision,ctaLabel:e.ctaLabel??void 0,copy:{eyebrow:e.eyebrow,headline:e.headline,body:e.body}}}])},427720,339195,e=>{"use strict";var t=e.i(663456);let n="newsletter_capture";e.s(["F",0,"By subscribing you agree to receive the OpenRouter newsletter: model usage data, product updates, and research reports, about one email a week. Unsubscribe anytime via the link in every email. See our Privacy Policy.","K",0,"newsletter_optin_v1","s",0,320,"D",0,n],339195);var i=e.i(647204),r=e.i(67089),s=e.i(16043);let l={kind:"waiting",challengeShown:!1},a="newsletter-turnstile-script",o=null,c={action:n,siteKeyEnvVar:"NEXT_PUBLIC_NEWSLETTER_TURNSTILE_SITE_KEY",missingSiteKeyEffect:"subscribe requests are sent without a token"};e.s(["i",0,function(e){return e?.trim()||void 0},"W",0,function(e,n){let u,d,m,f,h,_=(0,t.c)(16),p=void 0===n?c:n,x=(0,s.useRef)(null),b=(0,s.useRef)(null),g=(0,s.useRef)(null),k=(0,s.useRef)(null),v=(0,s.useRef)(!1),y=(0,s.useRef)(0),[j,w]=(0,s.useState)(!1);_[0]!==p.action||_[1]!==e?(u=()=>{let t=y.current;if(null!==g.current)return Promise.resolve(g.current);if(k.current)return k.current;if(!e||!x.current)return Promise.resolve(null);let n=(function(){if(window.turnstile)return Promise.resolve(window.turnstile);if(o)return o;let e=new Promise(e=>{let t=document.querySelector(`#${a}`),n=t??document.createElement("script"),i=()=>{window.turnstile?e(window.turnstile):(n.remove(),e(null))};n.addEventListener("load",i,{once:!0}),n.addEventListener("error",i,{once:!0}),t||(n.id=a,n.setAttribute("src","https://challenges.cloudflare.com/turnstile/v0/api.js"),n.setAttribute("async",""),n.setAttribute("defer",""),document.head.append(n))}).then(t=>(null===t&&o===e&&(o=null),t));return o=e,e})().then(n=>{let i;if(k.current=null,!v.current||y.current!==t||!n||!x.current)return null;try{i=n.render(x.current,{sitekey:e,action:p.action,execution:"execute",appearance:"interaction-only",callback:e=>{w(!0),b.current?.dispatch({type:"token",token:e})},"error-callback":e=>{b.current?.dispatch({type:"challenge_error",errorCode:e})},"expired-callback":()=>{b.current?.dispatch({type:"fail",cause:"expired"})},"before-interactive-callback":()=>{b.current?.dispatch({type:"challenge_shown"})},"after-interactive-callback":()=>{b.current?.leaveInteractive()}})}catch{return null}return g.current=i,w(!0),i});return k.current=n,n},_[0]=p.action,_[1]=e,_[2]=u):u=_[2];let z=u;_[3]!==p.missingSiteKeyEffect||_[4]!==p.siteKeyEnvVar||_[5]!==z||_[6]!==e?(d=()=>(y.current=y.current+1,v.current=!0,void 0===e&&(0,r.L)("newsletter_turnstile_site_key_missing",{env_var:p.siteKeyEnvVar,effect:p.missingSiteKeyEffect}),z(),()=>{if(v.current=!1,null!==g.current)try{window.turnstile?.remove(g.current)}catch{}g.current=null,k.current=null,b.current?.dispatch({type:"fail",cause:"unmounted"}),w(!1)}),_[3]=p.missingSiteKeyEffect,_[4]=p.siteKeyEnvVar,_[5]=z,_[6]=e,_[7]=d):d=_[7],_[8]!==p.action||_[9]!==e?(m=[e,p.action],_[8]=p.action,_[9]=e,_[10]=m):m=_[10],(0,s.useEffect)(d,m),_[11]!==z?(f=async()=>{let e=y.current,t=await z();return v.current&&y.current===e?null!==t&&window.turnstile?await new Promise(e=>{let n,r=l,s=()=>{window.clearTimeout(n),n=window.setTimeout(()=>{b.current===a&&(window.turnstile?.reset(t),a.dispatch({type:"fail",cause:"timeout"}))},1e4)},a={dispatch:t=>{let l=function(e,t){switch(e.kind){case"waiting":case"retrying":var n=e,i=t;let r="retrying"===n.kind;switch(i.type){case"challenge_shown":return{kind:n.kind,challengeShown:!0};case"challenge_error":return r?{kind:"failed",miss:{cause:"challenge_error",errorCode:i.errorCode},challengeShown:n.challengeShown,retried:r}:{kind:"retrying",challengeShown:n.challengeShown};case"token":return{kind:"solved",token:i.token,retried:r};case"fail":return{kind:"failed",miss:{cause:i.cause},challengeShown:n.challengeShown,retried:r};default:return i}case"solved":case"failed":return null;default:return e}}(r,t);if(null!==l)switch(r=l,l.kind){case"solved":case"failed":return void(window.clearTimeout(n),b.current===a&&(b.current=null),e(function(e){switch(e.kind){case"solved":return(0,i.N)({token:e.token,retried:e.retried});case"failed":return(0,i.Y)({...e.miss,challengeShown:e.challengeShown,...e.retried?{retried:!0}:{}});default:return e}}(l)));case"waiting":case"retrying":window.clearTimeout(n),"challenge_error"===t.type&&(s(),o());return;default:return l}},leaveInteractive:s},o=()=>{try{window.turnstile?.reset(t),window.turnstile?.execute(t)}catch{a.dispatch({type:"fail",cause:"execute_threw"})}};s(),b.current=a,o()}):(0,i.Y)({cause:"widget_unavailable"}):(0,i.Y)({cause:"unmounted"})},_[11]=z,_[12]=f):f=_[12];let S=f;return _[13]!==S||_[14]!==j?(h={containerRef:x,execute:S,isReady:j},_[13]=S,_[14]=j,_[15]=h):h=_[15],h}],427720)},756880,e=>{"use strict";var t=e.i(659350),n=e.i(663456),i=e.i(510433),r=e.i(136562),s=e.i(446754),l=e.i(233452),a=e.i(960773),o=e.i(127160);e.i(707060);var c=e.i(196991),u=e.i(288265),d=e.i(765605);e.i(406201);var m=e.i(967605),f=e.i(769145);let h="text-xs font-normal text-muted-foreground hover:text-accent-foreground flex items-center gap-2",_=(0,r.f)(h,"transition-colors");function p(e){let r,s,l=(0,n.c)(5),{authMode:a,onClick:o}=e;l[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)(c.T,{children:"Chat"}),l[0]=r):r=l[0];let u=r;if("anonymous"===a){let e;return l[1]!==o?(e=(0,t.jsx)(b,{href:"/chat",onClick:o,children:u}),l[1]=o,l[2]=e):e=l[2],e}return l[3]!==o?(s=(0,t.jsx)("li",{children:(0,t.jsx)(f.CapabilityGatedTextLink,{capability:i.J.Chatroom,className:_,render:(0,t.jsx)(m.Link,{href:"/chat",className:h,onClick:o}),children:u})}),l[3]=o,l[4]=s):s=l[4],s}function x(e){let i,r,s,l=(0,n.c)(7),{title:a,children:o}=e;return l[0]!==a?(i=(0,t.jsx)("h3",{className:"text-xs font-medium text-foreground",children:a}),l[0]=a,l[1]=i):i=l[1],l[2]!==o?(r=(0,t.jsx)("ul",{className:"flex flex-col gap-2",children:o}),l[2]=o,l[3]=r):r=l[3],l[4]!==i||l[5]!==r?(s=(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[i,r]}),l[4]=i,l[5]=r,l[6]=s):s=l[6],s}function b(e){let i,r,s,a=(0,n.c)(13),{href:o,external:c,onClick:u,badge:d,children:f}=e;a[0]!==d?(i=d&&(0,t.jsx)(l.Badge,{variant:"info",size:"sm",children:d}),a[0]=d,a[1]=i):i=a[1],a[2]!==f||a[3]!==i?(r=(0,t.jsxs)(t.Fragment,{children:[f,i]}),a[2]=f,a[3]=i,a[4]=r):r=a[4];let p=r;if(c){let e;return a[5]!==p||a[6]!==o||a[7]!==u?(e=(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:o,className:_,onClick:u,target:"_blank",rel:"noopener noreferrer",children:p})}),a[5]=p,a[6]=o,a[7]=u,a[8]=e):e=a[8],e}return a[9]!==p||a[10]!==o||a[11]!==u?(s=(0,t.jsx)("li",{children:(0,t.jsx)(m.Link,{href:o,className:h,onClick:u,children:p})}),a[9]=p,a[10]=o,a[11]=u,a[12]=s):s=a[12],s}e.s(["Footer",0,function(e){let i,l,f,h,_,g,k,v,y,j,w,z,S,C,T,N,I,R,E,P,L,U,A,K,O,F,q,B,D,V,$,Y,M,W,G,X,J,Q,H,Z,ee,et,en,ei,er,es,el,ea,eo,ec,eu,ed,em,ef,eh,e_,ep,ex,eb,eg,ek,ev,ey,ej,ew,ez,eS,eC,eT,eN,eI,eR,eE,eP,eL,eU,eA,eK,eO,eF,eq,eB,eD,eV,e$,eY,eM,eW,eG,eX,eJ,eQ,eH,eZ,e0,e1,e2,e3,e5,e6,e4,e7,e9,e8,te,tt,tn,ti,tr,ts,tl,ta,to,tc,tu,td,tm,tf,th,t_,tp,tx,tb,tg,tk,tv,ty,tj,tw=(0,n.c)(260);tw[0]!==e?(i=void 0===e?{}:e,tw[0]=e,tw[1]=i):i=tw[1];let{newsletterAuthMode:tz}=i,tS=(0,u.f)(),tC=(0,a.Q)();return tw[2]!==tS?(l=tS("Footer"),tw[2]=tS,tw[3]=l):l=tw[3],tw[4]!==l?(f=(0,t.jsx)("h2",{className:"sr-only",children:l}),tw[4]=l,tw[5]=f):f=tw[5],tw[6]===Symbol.for("react.memo_cache_sentinel")?(h=(0,r.f)("px-6 py-12 md:px-12 md:py-16 border-t bg-background"),_=(0,r.f)("mx-auto max-w-7xl grid gap-8","grid-cols-2 md:grid-cols-5 lg:grid-cols-6"),tw[6]=h,tw[7]=_):(h=tw[6],_=tw[7]),tw[8]!==tC?(g=()=>{tC.capture("click_footer_link",{link_text:"Logo",destination:"/"})},tw[8]=tC,tw[9]=g):g=tw[9],tw[10]===Symbol.for("react.memo_cache_sentinel")?(k=(0,t.jsx)("img",{alt:"OpenRouter",className:"hidden h-5 w-auto dark:block",src:"/brand/v2/openrouter-dark.svg"}),v=(0,t.jsx)("img",{alt:"OpenRouter",className:"block h-5 w-auto dark:hidden",src:"/brand/v2/openrouter-light.svg"}),tw[10]=k,tw[11]=v):(k=tw[10],v=tw[11]),tw[12]!==g?(y=(0,t.jsxs)(m.Link,{href:"/",className:"flex items-center gap-2 text-foreground hover:text-foreground/80 w-fit",onClick:g,children:[k,v]}),tw[12]=g,tw[13]=y):y=tw[13],tw[14]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsx)(s.f,{size:"sm",className:"lg:order-last"}),w=(0,t.jsx)("div",{className:"basis-full text-xs text-muted-foreground lg:basis-auto",children:"© 2026 OpenRouter, Inc"}),tw[14]=j,tw[15]=w):(j=tw[14],w=tw[15]),tw[16]!==y?(z=(0,t.jsxs)("div",{className:"col-span-2 md:col-span-5 lg:col-span-1 flex flex-wrap items-center justify-between gap-4 lg:flex-col lg:flex-nowrap lg:items-start lg:justify-start",children:[y,j,w]}),tw[16]=y,tw[17]=z):z=tw[17],tw[18]!==tS?(S=tS("Product"),tw[18]=tS,tw[19]=S):S=tw[19],tw[20]!==tC?(C=()=>{tC.capture("click_footer_link",{link_text:"Chat",destination:"/chat"})},tw[20]=tC,tw[21]=C):C=tw[21],tw[22]!==tz||tw[23]!==C?(T=(0,t.jsx)(p,{authMode:tz,onClick:C}),tw[22]=tz,tw[23]=C,tw[24]=T):T=tw[24],tw[25]!==tC?(N=()=>{tC.capture("click_footer_link",{link_text:"Ori",destination:"/ori"})},tw[25]=tC,tw[26]=N):N=tw[26],tw[27]===Symbol.for("react.memo_cache_sentinel")?(I=(0,t.jsx)(c.T,{children:"Ori"}),tw[27]=I):I=tw[27],tw[28]!==N?(R=(0,t.jsx)(b,{href:"/ori",onClick:N,children:I}),tw[28]=N,tw[29]=R):R=tw[29],tw[30]!==tC?(E=()=>{tC.capture("click_footer_link",{link_text:"Labs",destination:"/labs"})},tw[30]=tC,tw[31]=E):E=tw[31],tw[32]===Symbol.for("react.memo_cache_sentinel")?(P=(0,t.jsx)(c.T,{children:"Labs"}),tw[32]=P):P=tw[32],tw[33]!==E?(L=(0,t.jsx)(b,{href:"/labs",onClick:E,children:P}),tw[33]=E,tw[34]=L):L=tw[34],tw[35]!==tC?(U=()=>{tC.capture("click_footer_link",{link_text:"Pricing",destination:"/pricing"})},tw[35]=tC,tw[36]=U):U=tw[36],tw[37]===Symbol.for("react.memo_cache_sentinel")?(A=(0,t.jsx)(c.T,{children:"Pricing"}),tw[37]=A):A=tw[37],tw[38]!==U?(K=(0,t.jsx)(b,{href:"/pricing",onClick:U,children:A}),tw[38]=U,tw[39]=K):K=tw[39],tw[40]!==tC?(O=()=>{tC.capture("click_footer_link",{link_text:"Business",destination:"/business"})},tw[40]=tC,tw[41]=O):O=tw[41],tw[42]===Symbol.for("react.memo_cache_sentinel")?(F=(0,t.jsx)(c.T,{children:"Business"}),tw[42]=F):F=tw[42],tw[43]!==O?(q=(0,t.jsx)(b,{href:"/business",onClick:O,children:F}),tw[43]=O,tw[44]=q):q=tw[44],tw[45]!==tC?(B=()=>{tC.capture("click_footer_link",{link_text:"Enterprise",destination:"/enterprise"})},tw[45]=tC,tw[46]=B):B=tw[46],tw[47]===Symbol.for("react.memo_cache_sentinel")?(D=(0,t.jsx)(c.T,{children:"Enterprise"}),tw[47]=D):D=tw[47],tw[48]!==B?(V=(0,t.jsx)(b,{href:"/enterprise",onClick:B,children:D}),tw[48]=B,tw[49]=V):V=tw[49],tw[50]!==S||tw[51]!==T||tw[52]!==R||tw[53]!==L||tw[54]!==K||tw[55]!==q||tw[56]!==V?($=(0,t.jsxs)(x,{title:S,children:[T,R,L,K,q,V]}),tw[50]=S,tw[51]=T,tw[52]=R,tw[53]=L,tw[54]=K,tw[55]=q,tw[56]=V,tw[57]=$):$=tw[57],tw[58]!==tS?(Y=tS("Explore"),tw[58]=tS,tw[59]=Y):Y=tw[59],tw[60]!==tC?(M=()=>{tC.capture("click_footer_link",{link_text:"Rankings",destination:"/rankings"})},tw[60]=tC,tw[61]=M):M=tw[61],tw[62]===Symbol.for("react.memo_cache_sentinel")?(W=(0,t.jsx)(c.T,{children:"Rankings"}),tw[62]=W):W=tw[62],tw[63]!==M?(G=(0,t.jsx)(b,{href:"/rankings",onClick:M,children:W}),tw[63]=M,tw[64]=G):G=tw[64],tw[65]!==tC?(X=()=>{tC.capture("click_footer_link",{link_text:"Models",destination:"/models"})},tw[65]=tC,tw[66]=X):X=tw[66],tw[67]===Symbol.for("react.memo_cache_sentinel")?(J=(0,t.jsx)(c.T,{children:"Models"}),tw[67]=J):J=tw[67],tw[68]!==X?(Q=(0,t.jsx)(b,{href:"/models",onClick:X,children:J}),tw[68]=X,tw[69]=Q):Q=tw[69],tw[70]!==tC?(H=()=>{tC.capture("click_footer_link",{link_text:"Apps",destination:"/apps"})},tw[70]=tC,tw[71]=H):H=tw[71],tw[72]===Symbol.for("react.memo_cache_sentinel")?(Z=(0,t.jsx)(c.T,{children:"Apps"}),tw[72]=Z):Z=tw[72],tw[73]!==H?(ee=(0,t.jsx)(b,{href:"/apps",onClick:H,children:Z}),tw[73]=H,tw[74]=ee):ee=tw[74],tw[75]!==tC?(et=()=>{tC.capture("click_footer_link",{link_text:"Providers",destination:"/providers"})},tw[75]=tC,tw[76]=et):et=tw[76],tw[77]===Symbol.for("react.memo_cache_sentinel")?(en=(0,t.jsx)(c.T,{children:"Providers"}),tw[77]=en):en=tw[77],tw[78]!==et?(ei=(0,t.jsx)(b,{href:"/providers",onClick:et,children:en}),tw[78]=et,tw[79]=ei):ei=tw[79],tw[80]!==tC?(er=()=>{tC.capture("click_footer_link",{link_text:"Benchmarks",destination:"/benchmarks"})},tw[80]=tC,tw[81]=er):er=tw[81],tw[82]===Symbol.for("react.memo_cache_sentinel")?(es=(0,t.jsx)(c.T,{children:"Benchmarks"}),tw[82]=es):es=tw[82],tw[83]!==er?(el=(0,t.jsx)(b,{href:"/benchmarks",onClick:er,children:es}),tw[83]=er,tw[84]=el):el=tw[84],tw[85]!==tC?(ea=()=>{tC.capture("click_footer_link",{link_text:"Tools",destination:"/tools"})},tw[85]=tC,tw[86]=ea):ea=tw[86],tw[87]===Symbol.for("react.memo_cache_sentinel")?(eo=(0,t.jsx)(c.T,{children:"Tools"}),tw[87]=eo):eo=tw[87],tw[88]!==ea?(ec=(0,t.jsx)(b,{href:"/tools",onClick:ea,children:eo}),tw[88]=ea,tw[89]=ec):ec=tw[89],tw[90]!==tC?(eu=()=>{tC.capture("click_footer_link",{link_text:"Discover",destination:"/discover"})},tw[90]=tC,tw[91]=eu):eu=tw[91],tw[92]===Symbol.for("react.memo_cache_sentinel")?(ed=(0,t.jsx)(c.T,{children:"Discover"}),tw[92]=ed):ed=tw[92],tw[93]!==eu?(em=(0,t.jsx)(b,{href:"/discover",onClick:eu,children:ed}),tw[93]=eu,tw[94]=em):em=tw[94],tw[95]!==tC?(ef=()=>{tC.capture("click_footer_link",{link_text:"Works With OR",destination:"/works-with-openrouter"})},tw[95]=tC,tw[96]=ef):ef=tw[96],tw[97]===Symbol.for("react.memo_cache_sentinel")?(eh=(0,t.jsx)(c.T,{children:"Works With OR"}),tw[97]=eh):eh=tw[97],tw[98]!==ef?(e_=(0,t.jsx)(b,{href:"/works-with-openrouter",onClick:ef,children:eh}),tw[98]=ef,tw[99]=e_):e_=tw[99],tw[100]!==Y||tw[101]!==G||tw[102]!==Q||tw[103]!==ee||tw[104]!==ei||tw[105]!==el||tw[106]!==ec||tw[107]!==em||tw[108]!==e_?(ep=(0,t.jsxs)(x,{title:Y,children:[G,Q,ee,ei,el,ec,em,e_]}),tw[100]=Y,tw[101]=G,tw[102]=Q,tw[103]=ee,tw[104]=ei,tw[105]=el,tw[106]=ec,tw[107]=em,tw[108]=e_,tw[109]=ep):ep=tw[109],tw[110]!==tS?(ex=tS("Company"),tw[110]=tS,tw[111]=ex):ex=tw[111],tw[112]!==tC?(eb=()=>{tC.capture("click_footer_link",{link_text:"About",destination:"/about"})},tw[112]=tC,tw[113]=eb):eb=tw[113],tw[114]===Symbol.for("react.memo_cache_sentinel")?(eg=(0,t.jsx)(c.T,{children:"About"}),tw[114]=eg):eg=tw[114],tw[115]!==eb?(ek=(0,t.jsx)(b,{href:"/about",onClick:eb,children:eg}),tw[115]=eb,tw[116]=ek):ek=tw[116],tw[117]!==tC?(ev=()=>{tC.capture("click_footer_link",{link_text:"Blog",destination:"/blog"})},tw[117]=tC,tw[118]=ev):ev=tw[118],tw[119]===Symbol.for("react.memo_cache_sentinel")?(ey=(0,t.jsx)(c.T,{children:"Blog"}),tw[119]=ey):ey=tw[119],tw[120]!==ev?(ej=(0,t.jsx)(b,{href:"/blog",onClick:ev,children:ey}),tw[120]=ev,tw[121]=ej):ej=tw[121],tw[122]!==tC?(ew=()=>{tC.capture("click_footer_link",{link_text:"Customers",destination:"/customers"})},tw[122]=tC,tw[123]=ew):ew=tw[123],tw[124]===Symbol.for("react.memo_cache_sentinel")?(ez=(0,t.jsx)(c.T,{children:"Customers"}),tw[124]=ez):ez=tw[124],tw[125]!==ew?(eS=(0,t.jsx)(b,{href:"/customers",onClick:ew,children:ez}),tw[125]=ew,tw[126]=eS):eS=tw[126],tw[127]!==tC?(eC=()=>{tC.capture("click_footer_link",{link_text:"Careers",destination:"/careers"})},tw[127]=tC,tw[128]=eC):eC=tw[128],tw[129]!==tS?(eT=tS("Hiring"),tw[129]=tS,tw[130]=eT):eT=tw[130],tw[131]===Symbol.for("react.memo_cache_sentinel")?(eN=(0,t.jsx)(c.T,{children:"Careers"}),tw[131]=eN):eN=tw[131],tw[132]!==eC||tw[133]!==eT?(eI=(0,t.jsx)(b,{href:"/careers",onClick:eC,badge:eT,children:eN}),tw[132]=eC,tw[133]=eT,tw[134]=eI):eI=tw[134],tw[135]!==tC?(eR=()=>{tC.capture("click_footer_link",{link_text:"Privacy",destination:"/privacy"})},tw[135]=tC,tw[136]=eR):eR=tw[136],tw[137]===Symbol.for("react.memo_cache_sentinel")?(eE=(0,t.jsx)(c.T,{children:"Privacy"}),tw[137]=eE):eE=tw[137],tw[138]!==eR?(eP=(0,t.jsx)(b,{href:"/privacy",onClick:eR,children:eE}),tw[138]=eR,tw[139]=eP):eP=tw[139],tw[140]!==tC?(eL=()=>{tC.capture("click_footer_link",{link_text:"Terms of Service",destination:"/terms"})},tw[140]=tC,tw[141]=eL):eL=tw[141],tw[142]===Symbol.for("react.memo_cache_sentinel")?(eU=(0,t.jsx)(c.T,{children:"Terms of Service"}),tw[142]=eU):eU=tw[142],tw[143]!==eL?(eA=(0,t.jsx)(b,{href:"/terms",onClick:eL,children:eU}),tw[143]=eL,tw[144]=eA):eA=tw[144],tw[145]!==tC?(eK=()=>{tC.capture("click_footer_link",{link_text:"Trust Center",destination:"https://trust.openrouter.ai/"})},tw[145]=tC,tw[146]=eK):eK=tw[146],tw[147]===Symbol.for("react.memo_cache_sentinel")?(eO=(0,t.jsx)(c.T,{children:"Trust Center"}),tw[147]=eO):eO=tw[147],tw[148]!==eK?(eF=(0,t.jsx)(b,{href:"https://trust.openrouter.ai/",external:!0,onClick:eK,children:eO}),tw[148]=eK,tw[149]=eF):eF=tw[149],tw[150]!==tC?(eq=()=>{tC.capture("click_footer_link",{link_text:"Support",destination:"/support"})},tw[150]=tC,tw[151]=eq):eq=tw[151],tw[152]===Symbol.for("react.memo_cache_sentinel")?(eB=(0,t.jsx)(c.T,{children:"Support"}),tw[152]=eB):eB=tw[152],tw[153]!==eq?(eD=(0,t.jsx)(b,{href:"/support",onClick:eq,children:eB}),tw[153]=eq,tw[154]=eD):eD=tw[154],tw[155]!==tC?(eV=()=>{tC.capture("click_footer_link",{link_text:"Data",destination:"/data"})},tw[155]=tC,tw[156]=eV):eV=tw[156],tw[157]===Symbol.for("react.memo_cache_sentinel")?(e$=(0,t.jsx)(c.T,{children:"Data"}),tw[157]=e$):e$=tw[157],tw[158]!==eV?(eY=(0,t.jsx)(b,{href:"/data",onClick:eV,children:e$}),tw[158]=eV,tw[159]=eY):eY=tw[159],tw[160]!==tC?(eM=()=>{tC.capture("click_footer_link",{link_text:"Brand",destination:"/brand"})},tw[160]=tC,tw[161]=eM):eM=tw[161],tw[162]===Symbol.for("react.memo_cache_sentinel")?(eW=(0,t.jsx)(c.T,{children:"Brand"}),tw[162]=eW):eW=tw[162],tw[163]!==eM?(eG=(0,t.jsx)(b,{href:"/brand",onClick:eM,children:eW}),tw[163]=eM,tw[164]=eG):eG=tw[164],tw[165]!==ex||tw[166]!==ek||tw[167]!==ej||tw[168]!==eS||tw[169]!==eI||tw[170]!==eP||tw[171]!==eA||tw[172]!==eF||tw[173]!==eD||tw[174]!==eY||tw[175]!==eG?(eX=(0,t.jsxs)(x,{title:ex,children:[ek,ej,eS,eI,eP,eA,eF,eD,eY,eG]}),tw[165]=ex,tw[166]=ek,tw[167]=ej,tw[168]=eS,tw[169]=eI,tw[170]=eP,tw[171]=eA,tw[172]=eF,tw[173]=eD,tw[174]=eY,tw[175]=eG,tw[176]=eX):eX=tw[176],tw[177]!==tS?(eJ=tS("Developer"),tw[177]=tS,tw[178]=eJ):eJ=tw[178],tw[179]!==tC?(eQ=()=>{tC.capture("click_footer_link",{link_text:"Documentation",destination:"/docs"})},tw[179]=tC,tw[180]=eQ):eQ=tw[180],tw[181]===Symbol.for("react.memo_cache_sentinel")?(eH=(0,t.jsx)(c.T,{children:"Documentation"}),tw[181]=eH):eH=tw[181],tw[182]!==eQ?(eZ=(0,t.jsx)(b,{href:"/docs",external:!0,onClick:eQ,children:eH}),tw[182]=eQ,tw[183]=eZ):eZ=tw[183],tw[184]!==tC?(e0=()=>{tC.capture("click_footer_link",{link_text:"API Reference",destination:"/docs/api_reference/overview"})},tw[184]=tC,tw[185]=e0):e0=tw[185],tw[186]===Symbol.for("react.memo_cache_sentinel")?(e1=(0,t.jsx)(c.T,{children:"API Reference"}),tw[186]=e1):e1=tw[186],tw[187]!==e0?(e2=(0,t.jsx)(b,{href:"/docs/api_reference/overview",external:!0,onClick:e0,children:e1}),tw[187]=e0,tw[188]=e2):e2=tw[188],tw[189]!==tC?(e3=()=>{tC.capture("click_footer_link",{link_text:"Developer Platform",destination:"/developers"})},tw[189]=tC,tw[190]=e3):e3=tw[190],tw[191]===Symbol.for("react.memo_cache_sentinel")?(e5=(0,t.jsx)(c.T,{children:"Developer Platform"}),tw[191]=e5):e5=tw[191],tw[192]!==e3?(e6=(0,t.jsx)(b,{href:"/developers",onClick:e3,children:e5}),tw[192]=e3,tw[193]=e6):e6=tw[193],tw[194]!==tC?(e4=()=>{tC.capture("click_footer_link",{link_text:"Status",destination:o.T})},tw[194]=tC,tw[195]=e4):e4=tw[195],tw[196]===Symbol.for("react.memo_cache_sentinel")?(e7=(0,t.jsx)(c.T,{children:"Status"}),tw[196]=e7):e7=tw[196],tw[197]!==e4?(e9=(0,t.jsx)(b,{href:o.T,external:!0,onClick:e4,children:e7}),tw[197]=e4,tw[198]=e9):e9=tw[198],tw[199]!==tC?(e8=()=>{tC.capture("click_footer_link",{link_text:"AI Site Map",destination:"/for-ai"})},tw[199]=tC,tw[200]=e8):e8=tw[200],tw[201]===Symbol.for("react.memo_cache_sentinel")?(te=(0,t.jsx)(c.T,{children:"AI Site Map"}),tw[201]=te):te=tw[201],tw[202]!==e8?(tt=(0,t.jsx)(b,{href:"/for-ai",onClick:e8,children:te}),tw[202]=e8,tw[203]=tt):tt=tw[203],tw[204]!==e6||tw[205]!==e9||tw[206]!==tt||tw[207]!==eJ||tw[208]!==eZ||tw[209]!==e2?(tn=(0,t.jsxs)(x,{title:eJ,children:[eZ,e2,e6,e9,tt]}),tw[204]=e6,tw[205]=e9,tw[206]=tt,tw[207]=eJ,tw[208]=eZ,tw[209]=e2,tw[210]=tn):tn=tw[210],tw[211]!==tS?(ti=tS("Connect"),tw[211]=tS,tw[212]=ti):ti=tw[212],tw[213]!==tC?(tr=()=>{tC.capture("click_footer_link",{link_text:"Discord",destination:o.f})},tw[213]=tC,tw[214]=tr):tr=tw[214],tw[215]===Symbol.for("react.memo_cache_sentinel")?(ts=(0,t.jsx)(c.T,{children:"Discord"}),tw[215]=ts):ts=tw[215],tw[216]!==tr?(tl=(0,t.jsx)(b,{href:o.f,external:!0,onClick:tr,children:ts}),tw[216]=tr,tw[217]=tl):tl=tw[217],tw[218]!==tC?(ta=()=>{tC.capture("click_footer_link",{link_text:"GitHub",destination:o.Z})},tw[218]=tC,tw[219]=ta):ta=tw[219],tw[220]===Symbol.for("react.memo_cache_sentinel")?(to=(0,t.jsx)(c.T,{children:"GitHub"}),tw[220]=to):to=tw[220],tw[221]!==ta?(tc=(0,t.jsx)(b,{href:o.Z,external:!0,onClick:ta,children:to}),tw[221]=ta,tw[222]=tc):tc=tw[222],tw[223]!==tC?(tu=()=>{tC.capture("click_footer_link",{link_text:"LinkedIn",destination:o.F})},tw[223]=tC,tw[224]=tu):tu=tw[224],tw[225]===Symbol.for("react.memo_cache_sentinel")?(td=(0,t.jsx)(c.T,{children:"LinkedIn"}),tw[225]=td):td=tw[225],tw[226]!==tu?(tm=(0,t.jsx)(b,{href:o.F,external:!0,onClick:tu,children:td}),tw[226]=tu,tw[227]=tm):tm=tw[227],tw[228]!==tC?(tf=()=>{tC.capture("click_footer_link",{link_text:"X",destination:o.q})},tw[228]=tC,tw[229]=tf):tf=tw[229],tw[230]===Symbol.for("react.memo_cache_sentinel")?(th=(0,t.jsx)(c.T,{children:"X"}),tw[230]=th):th=tw[230],tw[231]!==tf?(t_=(0,t.jsx)(b,{href:o.q,external:!0,onClick:tf,children:th}),tw[231]=tf,tw[232]=t_):t_=tw[232],tw[233]!==tC?(tp=()=>{tC.capture("click_footer_link",{link_text:"YouTube",destination:o.B})},tw[233]=tC,tw[234]=tp):tp=tw[234],tw[235]===Symbol.for("react.memo_cache_sentinel")?(tx=(0,t.jsx)(c.T,{children:"YouTube"}),tw[235]=tx):tx=tw[235],tw[236]!==tp?(tb=(0,t.jsx)(b,{href:o.B,external:!0,onClick:tp,children:tx}),tw[236]=tp,tw[237]=tb):tb=tw[237],tw[238]!==ti||tw[239]!==tl||tw[240]!==tc||tw[241]!==tm||tw[242]!==t_||tw[243]!==tb?(tg=(0,t.jsxs)(x,{title:ti,children:[tl,tc,tm,t_,tb]}),tw[238]=ti,tw[239]=tl,tw[240]=tc,tw[241]=tm,tw[242]=t_,tw[243]=tb,tw[244]=tg):tg=tw[244],tw[245]!==tn||tw[246]!==z||tw[247]!==tg||tw[248]!==$||tw[249]!==ep||tw[250]!==eX?(tk=(0,t.jsxs)("div",{className:_,children:[z,$,ep,eX,tn,tg]}),tw[245]=tn,tw[246]=z,tw[247]=tg,tw[248]=$,tw[249]=ep,tw[250]=eX,tw[251]=tk):tk=tw[251],tw[252]!==tz?(tv=(0,t.jsx)("div",{className:"@container mx-auto mt-10 max-w-7xl border-t border-border/50 pt-8 empty:hidden has-[>.hidden]:hidden",children:(0,t.jsx)(d.NewsletterForm,{surface:"footer",authMode:tz,compact:!0,layout:"split"})}),tw[252]=tz,tw[253]=tv):tv=tw[253],tw[254]!==tk||tw[255]!==tv?(ty=(0,t.jsxs)("div",{className:h,children:[tk,tv]}),tw[254]=tk,tw[255]=tv,tw[256]=ty):ty=tw[256],tw[257]!==ty||tw[258]!==f?(tj=(0,t.jsxs)("footer",{children:[f,ty]}),tw[257]=ty,tw[258]=f,tw[259]=tj):tj=tw[259],tj}])},406201,e=>{"use strict";e.i(967605),e.s([])},769145,e=>{"use strict";var t=e.i(659350),n=e.i(663456),i=e.i(765019),r=e.i(231171),s=e.i(16043),l=e.i(953545);e.s(["CapabilityGatedTextLink",0,function(e){let a=(0,n.c)(7),{capability:o,render:c,className:u,children:d}=e,m=(0,l.f)(o);switch(m){case r.L.Allowed:{let e;return a[0]!==d||a[1]!==c?(e=(0,s.cloneElement)(c,void 0,d),a[0]=d,a[1]=c,a[2]=e):e=a[2],e}case r.L.Loading:case r.L.Blocked:{let e,n=m===r.L.Loading;return a[3]!==d||a[4]!==u||a[5]!==n?(e=(0,t.jsx)(i.m,{className:u,isResolving:n,children:d}),a[3]=d,a[4]=u,a[5]=n,a[6]=e):e=a[6],e}default:return m}}])},953545,e=>{"use strict";var t=e.i(663456),n=e.i(376885),i=e.i(236614),r=e.i(231171);e.s(["f",0,function(e){let s,l=(0,t.c)(3),a=(0,i.f)(e),{isSignedIn:o}=(0,n.f)();return l[0]!==a||l[1]!==o?(s=function({gate:e,isSignedIn:t}){return e===r.L.Loading&&!0!==t?r.L.Allowed:e}({gate:a,isSignedIn:o}),l[0]=a,l[1]=o,l[2]=s):s=l[2],s}])}]); //# sourceMappingURL=2fkmvsmv-lwl4.js.map