(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,229387,e=>{"use strict";var t=e.i(659350),l=e.i(663456);e.i(707060);var r=e.i(196991),n=e.i(16043),a=e.i(325896),i=e.i(685135),o=e.i(452880),s=e.i(139697),d=e.i(797521),u=e.i(300326),c=e.i(153746),m=e.i(934416);e.i(406201);var f=e.i(967605);function h(e){let n,a,i,o,h,g,b,x,v=(0,l.c)(14),{modelCount:y}=e,k=(0,d.f)();v[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(r.T,{children:(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"text-base font-semibold text-foreground",children:"Browse every model"}),(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"Search, filter, sort, and compare the complete catalog on the models page."})]})}),v[0]=n):n=v[0],v[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(f.Link,{href:"/models"}),v[1]=a):a=v[1];let j=y>0?"counted":"uncounted";return v[2]!==k||v[3]!==y?(i=k.number(y,{preset:"integer"}),v[2]=k,v[3]=y,v[4]=i):i=v[4],v[5]!==i?(o=(0,t.jsxs)(t.Fragment,{children:["View all ",(0,t.jsx)(c.d,{children:i})," models"]}),v[5]=i,v[6]=o):o=v[6],v[7]===Symbol.for("react.memo_cache_sentinel")?(h=(0,t.jsx)(t.Fragment,{children:"View all models"}),v[7]=h):h=v[7],v[8]!==j||v[9]!==o?(g=(0,t.jsx)(r.T,{children:(0,t.jsx)(u.f,{branch:j,counted:o,uncounted:h})}),v[8]=j,v[9]=o,v[10]=g):g=v[10],v[11]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)(m.f,{className:"size-4"}),v[11]=b):b=v[11],v[12]!==g?(x=(0,t.jsxs)("section",{className:"flex flex-col gap-3 rounded-lg border border-border bg-card p-5 sm:flex-row sm:items-center",children:[n,(0,t.jsxs)(s.Button,{variant:"default",onClick:p,className:"shrink-0 self-start sm:self-center",render:a,children:[g,b]})]}),v[12]=g,v[13]=x):x=v[13],x}function p(){(0,a.m)(a.A.ModelsOutboundClicked,{source:a.N.FooterBanner})}var g=e.i(208966),b=e.i(387086),x=e.i(919035),v=e.i(24381),y=e.i(136562),k=e.i(751155),j=e.i(862389);function w(e){let r,n,a,i,o=(0,l.c)(9),{content:s,className:d}=e;return s?(o[0]!==d?(r=(0,y.f)("relative inline-flex cursor-help before:absolute before:-inset-1.5 before:content-['']",d),o[0]=d,o[1]=r):r=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(j.f,{"aria-hidden":"true",className:"size-3.5"}),o[2]=n):n=o[2],o[3]!==s||o[4]!==r?(a=(0,t.jsx)("span",{"aria-label":s,tabIndex:0,onClick:P,className:r,children:n}),o[3]=s,o[4]=r,o[5]=a):a=o[5],o[6]!==s||o[7]!==a?(i=(0,t.jsx)(k.Tooltip,{side:"top",content:s,children:a}),o[6]=s,o[7]=a,o[8]=i):i=o[8],i):null}function P(e){e.stopPropagation(),e.preventDefault()}var _=e.i(207298);let N="default",T="top-usage",S="lab-frontier",A="smartest-open",M="smartest-coding",C="value",L="fastest",I=(0,b.b)("Price in"),V=(0,b.b)("Price out"),U={[I]:(0,b.b)("List input price; native units are shown for non-token models."),[V]:(0,b.b)("List output price when applicable to the model."),[(0,b.b)("TTFT p50")]:(0,b.b)("Median time to first token: how long the model takes to start responding."),[(0,b.b)("Throughput")]:(0,b.b)("Median output speed across recent production traffic."),[(0,b.b)("Providers")]:(0,b.b)("How many providers currently serve this model."),[(0,b.b)("Agentic pctl")]:(0,b.b)("Percentile on the Artificial Analysis agentic index, relative to the other frontier models it scores."),[(0,b.b)("Intel pctl")]:(0,b.b)("Percentile on the Artificial Analysis intelligence index, relative to the other frontier models it scores."),[(0,b.b)("Coding pctl")]:(0,b.b)("Percentile on the Artificial Analysis coding index, relative to the other frontier models it scores."),[(0,b.b)("Tokens")]:(0,b.b)("Tokens served on OpenRouter over the last 7 days."),[(0,b.b)("Tokens/wk")]:(0,b.b)("Tokens served on OpenRouter over the last 7 days."),[(0,b.b)("Family tokens")]:(0,b.b)("Weekly tokens served across every model in this family.")},H=(0,_.f)("",{variants:{tone:{[N]:"text-foreground",positive:"text-positive-text",warning:"text-warning-text"},emphasized:{true:"font-medium"}}});function O(e){let r,n,a,i,o=(0,l.c)(14),{label:s}=e,d=(0,x.f)(),u=U[s];if(!u){let e;return o[0]!==s||o[1]!==d?(e=d(s),o[0]=s,o[1]=d,o[2]=e):e=o[2],e}return o[3]!==u||o[4]!==d?(r=d(u),o[3]=u,o[4]=d,o[5]=r):r=o[5],o[6]!==s||o[7]!==d?(n=d(s),o[6]=s,o[7]=d,o[8]=n):n=o[8],o[9]!==n?(a=(0,t.jsx)("span",{className:"cursor-help border-b border-dotted border-muted-foreground",children:n}),o[9]=n,o[10]=a):a=o[10],o[11]!==r||o[12]!==a?(i=(0,t.jsx)(k.Tooltip,{side:"top",content:r,children:a}),o[11]=r,o[12]=a,o[13]=i):i=o[13],i}function R(e){let t=new Set;for(let l of e)for(let e of l.stats)t.add(e.label);return[...t]}function D(e,t){return 224+160*!!t+96*e}var $=e.i(530798),B=e.i(289947),E=e.i(153206),F=e.i(596369),z=e.i(894868);function W(e){let r,n,i,o,s,d,u,c,m=(0,l.c)(34),{laneId:f,model:h,rank:p,columns:b,clickEvent:x,byline:v,leadingCells:k,toneStats:j}=e,w=(0,g.s)(),P=(0,g.Q)()===h.variantPermaslug,_=v?"font-medium":"font-semibold";m[0]!==_?(r=(0,y.f)("truncate text-sm text-foreground transition-colors group-hover:text-accent-foreground",_),m[0]=_,m[1]=r):r=m[1];let T=r;if(m[2]!==x||m[3]!==f||m[4]!==h||m[5]!==w||m[6]!==p?(n=e=>{(0,g.N)(e)||((0,a.m)(x,{lane_id:f,rank:p,model_permaslug:h.variantPermaslug,model_name:h.name}),w(h))},m[2]=x,m[3]=f,m[4]=h,m[5]=w,m[6]=p,m[7]=n):n=m[7],m[8]!==p?(i=(0,t.jsx)($.TableCell,{className:"text-center",children:(0,t.jsx)("span",{className:"font-mono text-sm tabular-nums text-muted-foreground",children:p})}),m[8]=p,m[9]=i):i=m[9],m[10]!==h.authorSlug||m[11]!==h.variantPermaslug?(o=(0,t.jsx)(z.f,{author:h.authorSlug,permaslug:h.variantPermaslug,frame:!0,className:"size-7 shrink-0"}),m[10]=h.authorSlug,m[11]=h.variantPermaslug,m[12]=o):o=m[12],m[13]!==v||m[14]!==h.name||m[15]!==T?(s=v?(0,t.jsxs)("div",{className:"flex min-w-0 flex-col",children:[(0,t.jsx)("span",{className:T,children:h.name}),v]}):(0,t.jsx)("span",{className:T,children:h.name}),m[13]=v,m[14]=h.name,m[15]=T,m[16]=s):s=m[16],m[17]!==o||m[18]!==s?(d=(0,t.jsx)($.TableCell,{children:(0,t.jsxs)("div",{className:"flex max-w-64 items-center gap-2.5",children:[o,s]})}),m[17]=o,m[18]=s,m[19]=d):d=m[19],m[20]!==b||m[21]!==h.stats||m[22]!==j){let e;m[24]!==h.stats||m[25]!==j?(e=e=>{let l=h.stats.find(t=>t.label===e);return(0,t.jsx)($.TableCell,{className:"whitespace-nowrap text-right",children:l?(0,t.jsx)("span",{className:(0,y.f)("font-mono text-sm tabular-nums",H({tone:j?l.tone??N:void 0,emphasized:j})),children:l.value}):(0,t.jsx)(q,{})},e)},m[24]=h.stats,m[25]=j,m[26]=e):e=m[26],u=b.map(e),m[20]=b,m[21]=h.stats,m[22]=j,m[23]=u}else u=m[23];return m[27]!==P||m[28]!==k||m[29]!==n||m[30]!==i||m[31]!==d||m[32]!==u?(c=(0,t.jsxs)($.TableRow,{className:"group cursor-pointer",selected:P,onClick:n,children:[i,d,k,u]}),m[27]=P,m[28]=k,m[29]=n,m[30]=i,m[31]=d,m[32]=u,m[33]=c):c=m[33],c}function q(){let e,r=(0,l.c)(1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("span",{className:"text-muted-foreground",children:"–"}),r[0]=e):e=r[0],e}var G=e.i(885523);function Q(e){let n,i,o,s,d,u=(0,l.c)(11),{lane:c}=e,m=(0,g.o)();return u[0]!==c.id||u[1]!==m?(n=()=>{(0,a.m)(a.A.LaneViewMoreClicked,{lane_id:c.id}),m.toggleLane(c.id)},u[0]=c.id,u[1]=m,u[2]=n):n=u[2],u[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(r.T,{children:"View more"}),u[3]=i):i=u[3],u[4]!==n?(o=(0,t.jsx)("button",{type:"button",onClick:n,className:"shrink-0 whitespace-nowrap text-sm font-medium text-foreground underline underline-offset-4 transition-colors hover:text-accent-foreground",children:i}),u[4]=n,u[5]=o):o=u[5],u[6]!==c?(s=(0,t.jsx)(K,{lane:c}),u[6]=c,u[7]=s):s=u[7],u[8]!==o||u[9]!==s?(d=(0,t.jsxs)(t.Fragment,{children:[o,s]}),u[8]=o,u[9]=s,u[10]=d):d=u[10],d}function K(e){let n,i,o,s,d,u,c,m,f,h,p,b,v,y,k,j,w,P,_,N,T,S,A,M,C,L,U,H,B,z=(0,l.c)(83),{lane:q,footer:Q}=e,K=(0,g.o)(),Y=(0,x.f)();if(z[0]!==Q||z[1]!==q.id||z[2]!==q.sheetModels||z[3]!==q.subtitle||z[4]!==q.title||z[5]!==Y||z[6]!==K.openLaneId||z[7]!==K.setIsOpen){c=R(q.sheetModels),m="free"!==q.id,u=E.f,T=K.openLaneId===q.id,h=K.setIsOpen,z[29]!==q.title||z[30]!==Y?(p=Y(q.title),z[29]=q.title,z[30]=Y,z[31]=p):p=z[31],z[32]!==q.subtitle||z[33]!==Y?(b=Y(q.subtitle),z[32]=q.subtitle,z[33]=Y,z[34]=b):b=z[34],v=Q,d=g.W,s=G.f,o=$.Table,w="min-w-(--table-min-width)",P="or-table-wrapper--framed",_=!0;let e=`${D(c.length,m)}px`;z[35]!==e?(N={"--table-min-width":e},z[35]=e,z[36]=N):N=z[36],i=$.TableHeader,n=$.TableRow,z[37]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)($.TableHead,{className:"text-center",children:"#"}),z[37]=f):f=z[37],z[38]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)($.TableHead,{className:"min-w-44",children:(0,t.jsx)(r.T,{children:"Model"})}),z[38]=y):y=z[38],z[39]!==m?(k=m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)($.TableHead,{className:"whitespace-nowrap text-right",children:(0,t.jsx)(O,{label:I})}),(0,t.jsx)($.TableHead,{className:"whitespace-nowrap",children:(0,t.jsx)(O,{label:V})})]}),z[39]=m,z[40]=k):k=z[40],j=c.map(X),z[0]=Q,z[1]=q.id,z[2]=q.sheetModels,z[3]=q.subtitle,z[4]=q.title,z[5]=Y,z[6]=K.openLaneId,z[7]=K.setIsOpen,z[8]=n,z[9]=i,z[10]=o,z[11]=s,z[12]=d,z[13]=u,z[14]=c,z[15]=m,z[16]=f,z[17]=h,z[18]=p,z[19]=b,z[20]=v,z[21]=y,z[22]=k,z[23]=j,z[24]=w,z[25]=P,z[26]=_,z[27]=N,z[28]=T}else n=z[8],i=z[9],o=z[10],s=z[11],d=z[12],u=z[13],c=z[14],m=z[15],f=z[16],h=z[17],p=z[18],b=z[19],v=z[20],y=z[21],k=z[22],j=z[23],w=z[24],P=z[25],_=z[26],N=z[27],T=z[28];if(z[41]!==n||z[42]!==f||z[43]!==y||z[44]!==k||z[45]!==j?(S=(0,t.jsxs)(n,{children:[f,y,k,j]}),z[41]=n,z[42]=f,z[43]=y,z[44]=k,z[45]=j,z[46]=S):S=z[46],z[47]!==i||z[48]!==S?(A=(0,t.jsx)(i,{children:S}),z[47]=i,z[48]=S,z[49]=A):A=z[49],z[50]!==c||z[51]!==q.id||z[52]!==q.sheetModels||z[53]!==m){let e;z[55]!==c||z[56]!==q.id||z[57]!==m?(e=(e,l)=>(0,t.jsx)(W,{laneId:q.id,model:e,rank:l+1,columns:c,clickEvent:a.A.LaneSheetRowClicked,toneStats:!1,byline:(0,t.jsx)(F.f,{author:e.authorSlug,displayName:e.lab,className:"truncate text-xs text-muted-foreground"}),leadingCells:m&&(0,t.jsx)(J,{model:e})},e.variantPermaslug),z[55]=c,z[56]=q.id,z[57]=m,z[58]=e):e=z[58],M=q.sheetModels.map(e),z[50]=c,z[51]=q.id,z[52]=q.sheetModels,z[53]=m,z[54]=M}else M=z[54];return z[59]!==M?(C=(0,t.jsx)($.TableBody,{children:M}),z[59]=M,z[60]=C):C=z[60],z[61]!==o||z[62]!==A||z[63]!==C||z[64]!==w||z[65]!==P||z[66]!==_||z[67]!==N?(L=(0,t.jsxs)(o,{className:w,containerClassName:P,"data-allow-inline-style":_,style:N,children:[A,C]}),z[61]=o,z[62]=A,z[63]=C,z[64]=w,z[65]=P,z[66]=_,z[67]=N,z[68]=L):L=z[68],z[69]!==s||z[70]!==L?(U=(0,t.jsx)(s,{children:L}),z[69]=s,z[70]=L,z[71]=U):U=z[71],z[72]!==d||z[73]!==U?(H=(0,t.jsx)(d,{children:U}),z[72]=d,z[73]=U,z[74]=H):H=z[74],z[75]!==u||z[76]!==h||z[77]!==p||z[78]!==b||z[79]!==v||z[80]!==H||z[81]!==T?(B=(0,t.jsx)(u,{isOpen:T,setIsOpen:h,title:p,subtitle:b,footer:v,children:H}),z[75]=u,z[76]=h,z[77]=p,z[78]=b,z[79]=v,z[80]=H,z[81]=T,z[82]=B):B=z[82],B}function X(e){return(0,t.jsx)($.TableHead,{className:"whitespace-nowrap text-right",children:(0,t.jsx)(O,{label:e})},e)}function J(e){let r,n,a,i=(0,l.c)(9),{model:o}=e,s=(0,x.f)();return i[0]!==s||i[1]!==o.inputPrice?(r=(0,t.jsx)($.TableCell,{className:"whitespace-nowrap text-right",children:o.inputPrice?(0,t.jsx)(Y,{value:(0,B.T)(s,o.inputPrice)}):(0,t.jsx)(q,{})}),i[0]=s,i[1]=o.inputPrice,i[2]=r):r=i[2],i[3]!==o.isCustomPricing||i[4]!==o.outputPrice?(n=(0,t.jsx)($.TableCell,{className:"whitespace-nowrap",children:o.outputPrice&&!o.isCustomPricing?(0,t.jsx)(Y,{value:o.outputPrice}):(0,t.jsx)(q,{})}),i[3]=o.isCustomPricing,i[4]=o.outputPrice,i[5]=n):n=i[5],i[6]!==r||i[7]!==n?(a=(0,t.jsxs)(t.Fragment,{children:[r,n]}),i[6]=r,i[7]=n,i[8]=a):a=i[8],a}function Y(e){let r,n,a,i,o=(0,l.c)(10),{value:s}=e;o[0]!==s?(r=s.startsWith("$"),o[0]=s,o[1]=r):r=o[1];let d=r;return o[2]!==d?(n=d&&(0,t.jsx)("span",{className:"text-muted-foreground",children:"$"}),o[2]=d,o[3]=n):n=o[3],o[4]!==d||o[5]!==s?(a=d?s.slice(1).trimStart():s,o[4]=d,o[5]=s,o[6]=a):a=o[6],o[7]!==n||o[8]!==a?(i=(0,t.jsxs)("span",{className:"font-mono text-sm tabular-nums",children:[n,a]}),o[7]=n,o[8]=a,o[9]=i):i=o[9],i}let Z={value:(0,b.b)("Benchmark performance per dollar. Scores come from the independent Artificial Analysis benchmarks; price is each model’s combined rate for input and output tokens, weighted toward input to match typical usage. Only models scoring in the top half qualify.")};function ee(e){let n,i=(0,l.c)(18),{lane:o}=e,s=(0,x.f)(),d=Z[o.id];if(i[0]!==o||i[1]!==s||i[2]!==d){var u;let e,l,c,m,f,h=R(o.models);i[4]!==o.title||i[5]!==s?(e=s(o.title),i[4]=o.title,i[5]=s,i[6]=e):e=i[6],i[7]!==s||i[8]!==d?(l=d&&(0,t.jsx)(w,{content:s(d),className:"text-muted-foreground"}),i[7]=s,i[8]=d,i[9]=l):l=i[9],i[10]!==e||i[11]!==l?(c=(0,t.jsxs)(t.Fragment,{children:[e,l]}),i[10]=e,i[11]=l,i[12]=c):c=i[12],i[13]!==o.subtitle||i[14]!==s?(m=s(o.subtitle),i[13]=o.subtitle,i[14]=s,i[15]=m):m=i[15],i[16]!==o?(f=(0,t.jsx)(Q,{lane:o}),i[16]=o,i[17]=f):f=i[17],n=(0,t.jsx)(v.f,{title:c,subtitle:m,action:f,columns:(u=h,[{key:"rank",label:(0,t.jsx)(r.T,{children:(0,t.jsx)("span",{className:"sr-only",children:"Rank"})}),className:"w-10 text-center"},{key:"model",label:(0,t.jsx)(r.T,{children:"Model"}),className:"min-w-44"},...u.map(e=>({key:e,label:(0,t.jsx)(O,{label:e}),className:"whitespace-nowrap text-right"}))]),rows:o.models.map((e,l)=>(0,t.jsx)(W,{laneId:o.id,model:e,rank:l+1,columns:h,clickEvent:a.A.LaneRowClicked,toneStats:!0},e.variantPermaslug)),tableMinWidth:D(h.length,!1)}),i[0]=o,i[1]=s,i[2]=d,i[3]=n}else n=i[3];return n}var et=e.i(288265),el=e.i(942960),er=e.i(636129),en=e.i(690387),ea=e.i(667417),ei=e.i(497187),eo=e.i(297272),es=e.i(782143),ed=e.i(297510),eu=e.i(293747);function ec(e,t){return(0,es.f)(t,{locale:e,preset:"discovery-tokens"})??function(e){if(!Number.isFinite(e))return 1/0===e?"InfinityT":String(e)}(t)??"—"}function em(e,t){if(t<1e3){let l=Math.round(t);return`${(0,eo._)(l,{locale:e})??String(l)}ms`}let l=t/1e3;return`${(0,eo.B)(l,{locale:e,fractionDigits:1})??String(l)}s`}function ef(e,t){let l;return l=Math.round(t),`${(0,eo._)(l,{locale:e})??String(l)} tok/s`}function eh(e,t){return!Number.isFinite(t)||t<0?null:0===t?"Free":(0,eu.f)(1e6*t,{locale:e,preset:"discovery-price"})??null}function ep(e,t){return t>0?(0,es.f)(t,{locale:e,preset:"discovery-context"})??null:null}function eg(e){return ex(e?.endpoint?.pricing.prompt)}function eb(e){return ex(e?.endpoint?.pricing.completion)}function ex(e){if(void 0===e)return;let t=Number(String(e));return Number.isFinite(t)&&t>=0?t:void 0}let ev=[{id:"vision",title:(0,b.b)("Image understanding"),description:(0,b.b)("Analyze screenshots, documents, charts, and photos."),modelsHref:"/models?input_modalities=image",matches:e=>e.input_modalities.includes(ea.D.Image)&&e.output_modalities.includes(ea.j.Text)},{id:"image-generation",title:(0,b.b)("Image generation"),description:(0,b.b)("Create and edit images from natural-language prompts."),modelsHref:"/models?output_modalities=image",matches:e=>e.output_modalities.includes(ea.j.Image)},{id:"video-generation",title:(0,b.b)("Video generation"),description:(0,b.b)("Turn text and reference images into video."),modelsHref:"/models?output_modalities=video",matches:e=>e.output_modalities.includes(ea.j.Video)},{id:"speech-to-text",title:(0,b.b)("Speech to text"),description:(0,b.b)("Transcribe calls, meetings, voice notes, and media."),modelsHref:"/models?output_modalities=transcription",matches:e=>e.output_modalities.includes(ea.j.Transcription)},{id:"text-to-speech",title:(0,b.b)("Text to speech"),description:(0,b.b)("Generate narration, voices, and spoken responses."),modelsHref:"/models?output_modalities=speech",matches:e=>e.output_modalities.includes(ea.j.TTS)},{id:"audio-generation",title:(0,b.b)("Audio generation"),description:(0,b.b)("Create music, sound effects, and other audio."),modelsHref:"/models?output_modalities=audio",matches:e=>e.output_modalities.includes(ea.j.Audio)},{id:"embeddings",title:(0,b.b)("Embeddings"),description:(0,b.b)("Power semantic search, clustering, and RAG retrieval."),modelsHref:"/models?output_modalities=embeddings",matches:e=>e.output_modalities.includes(ea.j.Embeddings)},{id:"rerank",title:(0,b.b)("Reranking"),description:(0,b.b)("Improve search and RAG by reordering retrieved results."),modelsHref:"/models?output_modalities=rerank",matches:e=>e.output_modalities.includes(ea.j.Rerank)}];function ey(e){let t=[e.intelligencePct,e.codingPct,e.agenticPct].filter(e=>void 0!==e);if(0!==t.length)return t.reduce((e,t)=>e+t,0)/t.length}function ek(e){let t=ey(e),l=function(e){let t=e.promptPricePerToken;if(void 0===t)return;let l=e.completionPricePerToken;return void 0===l?t:(3*t+l)/4}(e);return void 0===t||void 0===l||0===l?0:t/(1e6*l)}function ej(e,t){let l=(t.perf?.p50_throughput??-1/0)-(e.perf?.p50_throughput??-1/0);return 0!==l?l:(e.perf?.p50_latency??1/0)-(t.perf?.p50_latency??1/0)}function ew(){let e=new Set;return t=>{let l=(0,el.f)(t.entry.variantPermaslug);return!e.has(l)&&(e.add(l),!0)}}function eP(e){return{variantPermaslug:e.entry.variantPermaslug,name:e.entry.name,lab:e.entry.model?.author_display_name??e.entry.author,authorSlug:e.entry.author,href:e.entry.href}}function e_(e,t){return{...eP(t),...eI(e,t.entry.model?.endpoint,t.entry.model?.endpoint?.display_pricing??[]),badges:[{signal:"value"}],stats:eC([void 0===t.intelligencePct?null:{label:(0,b.b)("Intel pctl"),value:`${t.intelligencePct}`},void 0===t.codingPct?null:{label:(0,b.b)("Coding pctl"),value:`${t.codingPct}`},void 0===t.agenticPct?null:{label:(0,b.b)("Agentic pctl"),value:`${t.agenticPct}`},t.weeklyTokens>0?{label:(0,b.b)("Tokens"),value:ec(e,t.weeklyTokens)}:null])}}function eN(e,t){return{...eP(t),...eI(e,t.entry.model?.endpoint,t.entry.model?.endpoint?.display_pricing??[]),badges:[{signal:"fast"}],stats:eC([t.perf?{label:(0,b.b)("Throughput"),value:ef(e,t.perf.p50_throughput)}:null,t.perf?{label:(0,b.b)("TTFT p50"),value:em(e,t.perf.p50_latency)}:null,t.perf?{label:(0,b.b)("Providers"),value:`${t.perf.provider_count}`}:null])}}function eT(e,t){let l=ep(e,t.entry.model?.context_length??0);return{...eP(t),...eI(e,t.entry.model?.endpoint,t.entry.model?.endpoint?.display_pricing??[]),badges:[],stats:eC([t.weeklyTokens>0?{label:(0,b.b)("Tokens/wk"),value:ec(e,t.weeklyTokens)}:null,l?{label:(0,b.b)("Context"),value:l}:null])}}function eS(e,t){let l=ep(e,t.context_length??0);return{variantPermaslug:t.permaslug,name:t.short_name,lab:t.author_display_name??t.author,authorSlug:t.author,href:`/${t.slug}`,badges:[],stats:eC([l?{label:(0,b.b)("Context"),value:l}:null]),...eI(e,t.endpoint,t.endpoint?.display_pricing??[])}}function eA(e,t){let l=ep(e,t.entry.model?.context_length??0);return{...eP(t),...eI(e,t.entry.model?.endpoint,t.entry.model?.endpoint?.display_pricing??[]),badges:[{signal:"new"}],stats:eC([t.weeklyTokens>0?{label:(0,b.b)("Family tokens"),value:ec(e,t.weeklyTokens)}:null,l?{label:(0,b.b)("Context"),value:l}:null])}}function eM(e,t){let l=ep(e,t.entry.model?.context_length??0);return{...eP(t),...eI(e,t.entry.model?.endpoint,t.entry.model?.endpoint?.display_pricing??[]),badges:[{signal:"free"}],stats:eC([{label:(0,b.b)("Tokens/wk"),value:ec(e,t.weeklyTokens)},l?{label:(0,b.b)("Context"),value:l}:null])}}function eC(e){return e.filter(e=>null!==e)}function eL(e){return e.models.length>=3?e:null}function eI(e,t,l){if((0,en.h)(t,l))return{inputPrice:(0,b.b)("Free"),outputPrice:null,isCustomPricing:!1};let r=(0,en.u)(e,t,l);return r?"custom"===r.kind?{inputPrice:{literal:r.label},outputPrice:null,isCustomPricing:!0}:{inputPrice:{literal:`${r.inputPrice}`},outputPrice:`${r.outputPrice}`,isCustomPricing:!1}:{inputPrice:null,outputPrice:null,isCustomPricing:!1}}let eV={TokensThisWeek:(0,b.b)("tokens this week"),IntelligenceScore:(0,b.b)("intelligence score"),OnTheIndex:(0,b.b)("on the index"),CodingScore:(0,b.b)("coding score"),PerMillionInput:(0,b.b)("per 1M input"),MedianOutputSpeed:(0,b.b)("median output speed")},eU=[{slug:"anthropic",name:"Anthropic"},{slug:"openai",name:"OpenAI"},{slug:"x-ai",name:"SpaceXAI"},{slug:"google",name:"Google"}];function eH(e){return{title:{literal:e.entry.name},authorSlug:e.entry.author,variantPermaslug:e.entry.variantPermaslug,href:e.entry.href,series:e.series}}function eO(e){return e.openrouter_slug??e.heuristic_openrouter_slug??e.permaslug}function eR(e,t){return eD(t)-eD(e)}function eD(e){if(e.metricLabel!==eV.IntelligenceScore)return -1;let t=Number(e.metric);return Number.isFinite(t)?t:-1}function e$({sources:e,byPermaslug:t,taken:l,matches:r}){for(let[n,a]of e.intelligence.entries()){let i=eO(a),o=e.resolveEntry(i);if(!l.has((0,el.f)(o.variantPermaslug))&&r(o))return{entry:o,activity:t.get(i)??t.get(a.permaslug),score:a.score,rank:n+1,total:e.intelligence.length}}return null}let eB={[eV.TokensThisWeek]:(0,b.b)("tokens/wk"),[eV.IntelligenceScore]:(0,b.b)("intelligence"),[eV.CodingScore]:(0,b.b)("coding index"),[eV.PerMillionInput]:(0,b.b)("/M tokens"),[eV.MedianOutputSpeed]:(0,b.b)("tok/s")},eE=[T,A,C,L,M];function eF(e){let r,n,a,i,o,s,d,u,c=(0,l.c)(20),{signals:m}=e;c[0]!==m?(r=m.find(ez),c[0]=m,c[1]=r):r=c[1];let f=r;if(c[2]!==f||c[3]!==m){s=Symbol.for("react.early_return_sentinel");e:{let e;c[9]!==m?(e=e=>{var t;let l=m.find(t=>t.kind===e);return l&&void 0!==(t=l).metric&&void 0!==t.metricLabel?[l]:[]},c[9]=m,c[10]=e):e=c[10];let l=eE.flatMap(e);if(!f&&0===l.length){s=null;break e}i="grid grid-cols-1 gap-3 lg:grid-cols-[minmax(0,11fr)_minmax(0,9fr)]",c[11]!==f?(o=f&&(0,t.jsx)(eW,{signal:f}),c[11]=f,c[12]=o):o=c[12],n="grid auto-rows-fr grid-cols-1 gap-3 sm:grid-cols-2",a=l.map((e,r)=>(0,t.jsx)(eK,{signal:e,className:r===l.length-1&&l.length%2==1?"sm:col-span-2":void 0},e.id))}c[2]=f,c[3]=m,c[4]=n,c[5]=a,c[6]=i,c[7]=o,c[8]=s}else n=c[4],a=c[5],i=c[6],o=c[7],s=c[8];return s!==Symbol.for("react.early_return_sentinel")?s:(c[13]!==n||c[14]!==a?(d=(0,t.jsx)("div",{className:n,children:a}),c[13]=n,c[14]=a,c[15]=d):d=c[15],c[16]!==i||c[17]!==o||c[18]!==d?(u=(0,t.jsxs)("section",{className:i,children:[o,d]}),c[16]=i,c[17]=o,c[18]=d,c[19]=u):u=c[19],u)}function ez(e){return e.kind===S}function eW(e){let n,a,i,o,s,d,u,c,m,f=(0,l.c)(24),{signal:h}=e,p=(0,et.f)(),g=(0,x.f)();if(f[0]!==p||f[1]!==g||f[2]!==h){let e,l,u;f[9]!==h.frontier?(e=h.frontier??[],f[9]=h.frontier,f[10]=e):e=f[10];let c=e.toSorted((e,t)=>(eX(t)??-1)-(eX(e)??-1)),m=function({gt:e,m:t,entries:l,signal:r}){let[n,a]=l,i=n?eX(n):null,o=a?eX(a):null;if(!n||!a||null===i||null===o)return{headline:t(r.headline),body:t(r.body)};let s=Math.round(i)-Math.round(o);if(0===s)return{headline:e("{leader} and {runnerUp} share the frontier lead",{leader:n.name,runnerUp:a.name}),body:e("{leaderLab} and {runnerUpLab} are tied on the Artificial Analysis intelligence index.",{leaderLab:n.lab,runnerUpLab:a.lab})};let d=e("{leader} takes the frontier lead",{leader:n.name});return 1===s?{headline:d,body:e("{leaderLab} edges {runnerUpLab} by 1 point on the Artificial Analysis intelligence index.",{leaderLab:n.lab,runnerUpLab:a.lab})}:{headline:d,body:e("{leaderLab} edges {runnerUpLab} by {gap} points on the Artificial Analysis intelligence index.",{leaderLab:n.lab,runnerUpLab:a.lab,gap:s})}}({gt:p,m:g,entries:c,signal:h}),b=c.some(eG);s="flex flex-col gap-5 rounded-lg border border-border bg-card p-5 lg:p-6",f[11]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(r.T,{children:(0,t.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:"Today's frontier"})}),f[11]=l):l=f[11],d=(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[l,(0,t.jsx)("h2",{className:"text-pretty text-2xl font-semibold leading-tight tracking-tight text-foreground",children:m.headline}),(0,t.jsx)("p",{className:"text-sm leading-6 text-muted-foreground",children:m.body})]}),i="flex flex-1 flex-col",f[12]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(r.T,{children:(0,t.jsx)("span",{children:"Model"})}),f[12]=u):u=f[12],o=(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b border-border pb-2 text-xs text-muted-foreground",children:[u,b&&(0,t.jsx)(r.T,{children:(0,t.jsx)("span",{children:"Intelligence (0–100)"})})]}),n="flex flex-1 flex-col",a=c.map(eq),f[0]=p,f[1]=g,f[2]=h,f[3]=n,f[4]=a,f[5]=i,f[6]=o,f[7]=s,f[8]=d}else n=f[3],a=f[4],i=f[5],o=f[6],s=f[7],d=f[8];return f[13]!==n||f[14]!==a?(u=(0,t.jsx)("ol",{className:n,children:a}),f[13]=n,f[14]=a,f[15]=u):u=f[15],f[16]!==i||f[17]!==o||f[18]!==u?(c=(0,t.jsxs)("div",{className:i,children:[o,u]}),f[16]=i,f[17]=o,f[18]=u,f[19]=c):c=f[19],f[20]!==s||f[21]!==d||f[22]!==c?(m=(0,t.jsxs)("article",{className:s,children:[d,c]}),f[20]=s,f[21]=d,f[22]=c,f[23]=m):m=f[23],m}function eq(e,l){return(0,t.jsx)(eQ,{entry:e,rank:l+1},e.lab)}function eG(e){return null!==eX(e)}function eQ(e){let r,n,i,o,s,d,u,c,m,h,p,b,v,k,j,w,P=(0,l.c)(54),{entry:_,rank:N}=e,T=(0,g.s)(),S=(0,g.Q)(),A=(0,x.f)();P[0]!==_?(r=eX(_),P[0]=_,P[1]=r):r=P[1];let M=r,{variantPermaslug:C}=_;P[2]!==_.href||P[3]!==_.lab||P[4]!==_.name||P[5]!==C?(n=()=>{(0,a.m)(a.A.SignalCardClicked,{cta:"frontier_row",lab:_.lab,model_name:_.name,model_permaslug:C,href:C?void 0:_.href})},P[2]=_.href,P[3]=_.lab,P[4]=_.name,P[5]=C,P[6]=n):n=P[6];let L=n;P[7]!==N?(i=(0,t.jsx)("span",{className:"w-5 shrink-0 text-center font-mono text-sm tabular-nums text-muted-foreground",children:N}),P[7]=N,P[8]=i):i=P[8],P[9]!==_.authorSlug||P[10]!==_.variantPermaslug?(o=(0,t.jsx)(z.f,{author:_.authorSlug,permaslug:_.variantPermaslug,frame:!0,className:"size-8 shrink-0"}),P[9]=_.authorSlug,P[10]=_.variantPermaslug,P[11]=o):o=P[11],P[12]!==_.name?(s=(0,t.jsx)("span",{className:"truncate text-sm font-semibold text-foreground transition-colors group-hover:text-accent-foreground",children:_.name}),P[12]=_.name,P[13]=s):s=P[13],P[14]!==_.lab?(d=(0,t.jsx)("span",{className:"truncate text-xs text-muted-foreground",children:_.lab}),P[14]=_.lab,P[15]=d):d=P[15],P[16]!==s||P[17]!==d?(u=(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col",children:[s,d]}),P[16]=s,P[17]=d,P[18]=u):u=P[18],P[19]!==_.metric||P[20]!==_.metricLabel||P[21]!==A||P[22]!==M?(c=null===M?(0,t.jsxs)("span",{className:"flex shrink-0 flex-col items-end",children:[(0,t.jsx)("span",{className:"font-mono text-sm font-semibold tabular-nums text-foreground",children:_.metric}),(0,t.jsx)("span",{className:"text-[0.625rem] leading-4 text-muted-foreground",children:A(_.metricLabel)})]}):(0,t.jsxs)("span",{className:"flex shrink-0 items-center gap-3",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"h-1.5 w-24 overflow-hidden rounded-full bg-foreground/10",children:(0,t.jsx)("span",{className:"block h-full w-(--score-width) rounded-full bg-primary","data-allow-inline-style":!0,style:{"--score-width":`${Math.min(M,100)}%`}})}),(0,t.jsx)("span",{className:"w-7 text-right font-mono text-sm font-semibold tabular-nums text-foreground",children:_.metric})]}),P[19]=_.metric,P[20]=_.metricLabel,P[21]=A,P[22]=M,P[23]=c):c=P[23],P[24]!==i||P[25]!==o||P[26]!==u||P[27]!==c?(m=(0,t.jsxs)(t.Fragment,{children:[i,o,u,c]}),P[24]=i,P[25]=o,P[26]=u,P[27]=c,P[28]=m):m=P[28];let I=m;if(P[29]!==I||P[30]!==_.href||P[31]!==_.name||P[32]!==S||P[33]!==T||P[34]!==L||P[35]!==C){k=Symbol.for("react.early_return_sentinel");e:{let e=(0,y.f)("group flex w-full items-center gap-3 px-1 py-2 text-left hover:bg-foreground/5",null!==S&&S===C&&"bg-foreground/5");if(!C){k=(0,t.jsx)("li",{className:"flex border-t border-border/60 first:border-t-0",children:(0,t.jsx)(f.Link,{href:_.href,onClick:L,className:e,children:I})});break e}v="flex border-t border-border/60 first:border-t-0",h="button",P[41]!==_.name||P[42]!==T||P[43]!==L||P[44]!==C?(p=()=>{L(),T({variantPermaslug:C,name:_.name})},P[41]=_.name,P[42]=T,P[43]=L,P[44]=C,P[45]=p):p=P[45],b=(0,y.f)(e,"transition-colors")}P[29]=I,P[30]=_.href,P[31]=_.name,P[32]=S,P[33]=T,P[34]=L,P[35]=C,P[36]=h,P[37]=p,P[38]=b,P[39]=v,P[40]=k}else h=P[36],p=P[37],b=P[38],v=P[39],k=P[40];return k!==Symbol.for("react.early_return_sentinel")?k:(P[46]!==I||P[47]!==h||P[48]!==p||P[49]!==b?(j=(0,t.jsx)("button",{type:h,onClick:p,className:b,children:I}),P[46]=I,P[47]=h,P[48]=p,P[49]=b,P[50]=j):j=P[50],P[51]!==v||P[52]!==j?(w=(0,t.jsx)("li",{className:v,children:j}),P[51]=v,P[52]=j,P[53]=w):w=P[53],w)}function eK(e){let r,n,i,o,s,d,u,c,m,h,p,b,v,k,j,P,_=(0,l.c)(72),{signal:N,className:T}=e,S=(0,g.s)(),A=(0,g.Q)(),M=(0,x.f)(),{variantPermaslug:C}=N,L=void 0!==C&&A===C;_[0]!==N.href||_[1]!==N.id||_[2]!==N.kind||_[3]!==C?(r=()=>{(0,a.m)(a.A.SignalCardClicked,{cta:"stat_card",signal_id:N.id,signal_kind:N.kind,model_permaslug:C,href:C?void 0:N.href})},_[0]=N.href,_[1]=N.id,_[2]=N.kind,_[3]=C,_[4]=r):r=_[4];let I=r;if(_[5]!==M||_[6]!==N){var V;let e,l,r,a,c,m,f,h=(e=eB[(V=N).metricLabel]??V.metricLabel,{value:V.metric.endsWith(" tok/s")?V.metric.slice(0,-6):V.metric,unit:e});_[13]!==M||_[14]!==N.kindLabel?(l=M(N.kindLabel),_[13]=M,_[14]=N.kindLabel,_[15]=l):l=_[15],_[16]!==M||_[17]!==N.explainer?(r=M(N.explainer),_[16]=M,_[17]=N.explainer,_[18]=r):r=_[18],_[19]!==r?(a=(0,t.jsx)(w,{content:r}),_[19]=r,_[20]=a):a=_[20],_[21]!==a||_[22]!==l?(d=(0,t.jsxs)("span",{className:"flex items-center gap-1.5 text-sm font-medium text-muted-foreground",children:[l,a]}),_[21]=a,_[22]=l,_[23]=d):d=_[23],_[24]!==N.authorSlug||_[25]!==N.variantPermaslug?(c=(0,t.jsx)(z.f,{author:N.authorSlug,permaslug:N.variantPermaslug,frame:!0,className:"size-5 shrink-0"}),_[24]=N.authorSlug,_[25]=N.variantPermaslug,_[26]=c):c=_[26],_[27]!==M||_[28]!==N.title?(m=(0,B.T)(M,N.title),_[27]=M,_[28]=N.title,_[29]=m):m=_[29],_[30]!==m?(f=(0,t.jsx)("span",{className:"truncate text-sm font-semibold text-foreground transition-colors group-hover:text-accent-foreground",children:m}),_[30]=m,_[31]=f):f=_[31],_[32]!==c||_[33]!==f?(u=(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[c,f]}),_[32]=c,_[33]=f,_[34]=u):u=_[34],o="mt-auto flex items-baseline gap-1.5 pt-3",s=(0,t.jsx)("span",{className:"text-3xl font-semibold leading-none tracking-tight tabular-nums text-foreground",children:h.value}),n="text-xs text-muted-foreground",i=M(h.unit),_[5]=M,_[6]=N,_[7]=n,_[8]=i,_[9]=o,_[10]=s,_[11]=d,_[12]=u}else n=_[7],i=_[8],o=_[9],s=_[10],d=_[11],u=_[12];_[35]!==n||_[36]!==i?(c=(0,t.jsx)("span",{className:n,children:i}),_[35]=n,_[36]=i,_[37]=c):c=_[37],_[38]!==o||_[39]!==s||_[40]!==c?(m=(0,t.jsxs)("span",{className:o,children:[s,c]}),_[38]=o,_[39]=s,_[40]=c,_[41]=m):m=_[41],_[42]!==d||_[43]!==u||_[44]!==m?(h=(0,t.jsxs)(t.Fragment,{children:[d,u,m]}),_[42]=d,_[43]=u,_[44]=m,_[45]=h):h=_[45];let U=h;if(_[46]!==T||_[47]!==U||_[48]!==L||_[49]!==M||_[50]!==S||_[51]!==N.href||_[52]!==N.title||_[53]!==I||_[54]!==C){j=Symbol.for("react.early_return_sentinel");e:{let e=(0,y.f)("group flex min-h-32 flex-col gap-2 rounded-lg p-4 text-left","border border-border bg-card hover:border-foreground/20",L&&"border-foreground/25 bg-foreground/[0.03]",T);if(!C){j=(0,t.jsx)(f.Link,{href:N.href,onClick:I,className:(0,y.f)(e,"no-underline"),children:U});break e}p="button",b=L,_[60]!==M||_[61]!==S||_[62]!==N.title||_[63]!==I||_[64]!==C?(v=()=>{I(),S({variantPermaslug:C,name:(0,B.T)(M,N.title)})},_[60]=M,_[61]=S,_[62]=N.title,_[63]=I,_[64]=C,_[65]=v):v=_[65],k=(0,y.f)(e,"transition-colors")}_[46]=T,_[47]=U,_[48]=L,_[49]=M,_[50]=S,_[51]=N.href,_[52]=N.title,_[53]=I,_[54]=C,_[55]=p,_[56]=b,_[57]=v,_[58]=k,_[59]=j}else p=_[55],b=_[56],v=_[57],k=_[58],j=_[59];return j!==Symbol.for("react.early_return_sentinel")?j:(_[66]!==U||_[67]!==p||_[68]!==b||_[69]!==v||_[70]!==k?(P=(0,t.jsx)("button",{type:p,"data-selected":b,onClick:v,className:k,children:U}),_[66]=U,_[67]=p,_[68]=b,_[69]=v,_[70]=k,_[71]=P):P=_[71],P)}function eX(e){if(e.metricLabel!==eV.IntelligenceScore)return null;let t=Number(e.metric);return Number.isFinite(t)?t:null}var eJ=e.i(586534),eY=e.i(134611),eZ=e.i(143324);function e0({fallbackSlug:e,model:t,outputModalityIntent:l}){return t?{detailHref:(0,eZ.S)(t,{outputModalityIntent:l}),variantPermaslug:(0,eY.Q)(t)}:{detailHref:`/${e}?output_modalities=${l}`,variantPermaslug:e}}var e1=e.i(633154),e2=e.i(49199);function e3(e){let r,n,a,i,o,s=(0,l.c)(14),{description:d,title:u,viewAll:c}=e;return s[0]!==u?(r=(0,t.jsx)("h2",{className:"text-base font-semibold text-foreground",children:u}),s[0]=u,s[1]=r):r=s[1],s[2]!==d?(n=(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:d}),s[2]=d,s[3]=n):n=s[3],s[4]!==r||s[5]!==n?(a=(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[r,n]}),s[4]=r,s[5]=n,s[6]=a):a=s[6],s[7]!==c.href||s[8]!==c.label||s[9]!==c.onClick?(i=(0,t.jsx)(f.Link,{href:c.href,onClick:c.onClick,variant:"inline",className:"shrink-0 whitespace-nowrap text-sm font-medium hover:text-accent-foreground",children:c.label}),s[7]=c.href,s[8]=c.label,s[9]=c.onClick,s[10]=i):i=s[10],s[11]!==a||s[12]!==i?(o=(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[a,i]}),s[11]=a,s[12]=i,s[13]=o):o=s[13],o}function e5(e){let n,i,o,s,d,u,m,f,h,p,g,b,v=(0,l.c)(40),{config:y,resolveModel:k,weeklyUsageByVariantPermaslug:j}=e,w=(0,x.f)();v[0]!==y||v[1]!==k||v[2]!==j?(n=function({config:e,resolveModel:t,weeklyUsageByVariantPermaslug:l}){return e.families.map((r,n)=>{var a,i;let o=t(r.flagshipSlug),{detailHref:s,variantPermaslug:d}=e0({fallbackSlug:r.flagshipSlug,model:o,outputModalityIntent:e.outputModalityIntent});return{familyName:r.familyName,name:o?e.getDisplayName(o.short_name,r.familyName):r.familyName,author:o?.author||r.author,variantPermaslug:d,detailHref:s,thumbnailUrl:(a=o,i=e,(a?i.getPreviewThumbnailUrl?i.getPreviewThumbnailUrl(a):a.preview_thumbnail_url??null:null)||r.fallbackThumbnailUrl),hoverVideoUrl:r.hoverVideoUrl??null,weeklyUsage:function({family:e,variantPermaslug:t,weeklyUsageByVariantPermaslug:l}){let r=e.usagePermaslugPrefix;return void 0===r?l[t]??0:Object.entries(l).reduce((e,[t,l])=>t.startsWith(r)?e+l:e,0)}({family:r,variantPermaslug:d,weeklyUsageByVariantPermaslug:l}),fallbackOrder:n}}).toSorted((e,t)=>t.weeklyUsage-e.weeklyUsage||e.fallbackOrder-t.fallbackOrder)}({config:y,resolveModel:k,weeklyUsageByVariantPermaslug:j}),v[0]=y,v[1]=k,v[2]=j,v[3]=n):n=v[3];let P=n;v[4]!==y.heading||v[5]!==w?(i=w(y.heading),v[4]=y.heading,v[5]=w,v[6]=i):i=v[6],v[7]!==y.description||v[8]!==w?(o=w(y.description),v[7]=y.description,v[8]=w,v[9]=o):o=v[9];let _=y.viewAllHref;v[10]!==y.viewAllLabel||v[11]!==w?(s=w(y.viewAllLabel),v[10]=y.viewAllLabel,v[11]=w,v[12]=s):s=v[12],v[13]!==s?(d=(0,t.jsxs)(r.T,{children:["View all",(0,t.jsxs)("span",{className:"hidden sm:inline",children:[" ",(0,t.jsx)(c.d,{children:s})]})]}),v[13]=s,v[14]=d):d=v[14],v[15]!==y.viewAllSource?(u=()=>{(0,a.m)(a.A.ModelsOutboundClicked,{source:y.viewAllSource})},v[15]=y.viewAllSource,v[16]=u):u=v[16],v[17]!==y.viewAllHref||v[18]!==d||v[19]!==u?(m={href:_,label:d,onClick:u},v[17]=y.viewAllHref,v[18]=d,v[19]=u,v[20]=m):m=v[20],v[21]!==i||v[22]!==o||v[23]!==m?(f=(0,t.jsx)(e3,{title:i,description:o,viewAll:m}),v[21]=i,v[22]=o,v[23]=m,v[24]=f):f=v[24],v[25]!==y.listLabel||v[26]!==w?(h=w(y.listLabel),v[25]=y.listLabel,v[26]=w,v[27]=h):h=v[27];let N=P.length;if(v[28]!==y||v[29]!==P){let e;v[31]!==y?(e=e=>(0,t.jsx)("li",{children:(0,t.jsx)(e4,{model:e,config:y})},e.familyName),v[31]=y,v[32]=e):e=v[32],p=P.map(e),v[28]=y,v[29]=P,v[30]=p}else p=v[30];return v[33]!==P.length||v[34]!==h||v[35]!==p?(g=(0,t.jsx)(e1.e,{ariaLabel:h,itemCount:N,children:p}),v[33]=P.length,v[34]=h,v[35]=p,v[36]=g):g=v[36],v[37]!==g||v[38]!==f?(b=(0,t.jsxs)("section",{className:"flex flex-col gap-2",children:[f,g]}),v[37]=g,v[38]=f,v[39]=b):b=v[39],b}function e4(e){let r,n,i,o,s,d,u,c,m=(0,l.c)(37),{model:f,config:h}=e,p=(0,et.f)(),{shouldPlayVideo:g,isVideoRendering:b,handlePlayStart:x,handlePlayStop:v,handleVideoPlaying:k}=(0,eJ.f)(f.hoverVideoUrl),j=f.thumbnailUrl;return m[0]!==h||m[1]!==p||m[2]!==f.name?(r=h.getThumbnailAlt(p,f.name),m[0]=h,m[1]=p,m[2]=f.name,m[3]=r):r=m[3],m[4]!==f.thumbnailUrl||m[5]!==r?(n=(0,t.jsx)("img",{src:j,alt:r,loading:"lazy",className:"size-full object-cover transition-transform duration-300 group-hover:scale-102"}),m[4]=f.thumbnailUrl,m[5]=r,m[6]=n):n=m[6],m[7]!==k||m[8]!==b||m[9]!==f.hoverVideoUrl||m[10]!==g?(i=g&&f.hoverVideoUrl?(0,t.jsx)("video",{src:f.hoverVideoUrl,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,"aria-hidden":!0,onPlaying:k,className:(0,y.f)("pointer-events-none absolute inset-0 size-full object-cover","transition duration-300 group-hover:scale-102",b?"opacity-100":"opacity-0")}):null,m[7]=k,m[8]=b,m[9]=f.hoverVideoUrl,m[10]=g,m[11]=i):i=m[11],m[12]!==n||m[13]!==i?(o=(0,t.jsxs)(t.Fragment,{children:[n,i]}),m[12]=n,m[13]=i,m[14]=o):o=m[14],m[15]!==p||m[16]!==f.author||m[17]!==f.familyName||m[18]!==f.name?(s=p("{family} family: {name} by {author}",{family:f.familyName,name:f.name,author:f.author}),m[15]=p,m[16]=f.author,m[17]=f.familyName,m[18]=f.name,m[19]=s):s=m[19],m[20]!==h.familyClickedEvent||m[21]!==f.familyName||m[22]!==f.name||m[23]!==f.variantPermaslug?(d=()=>{(0,a.m)(h.familyClickedEvent,{family:f.familyName,model_permaslug:f.variantPermaslug,model_name:f.name})},m[20]=h.familyClickedEvent,m[21]=f.familyName,m[22]=f.name,m[23]=f.variantPermaslug,m[24]=d):d=m[24],m[25]!==f.author||m[26]!==f.detailHref||m[27]!==f.name||m[28]!==f.variantPermaslug||m[29]!==s||m[30]!==d?(u={ariaLabel:s,author:f.author,href:f.detailHref,name:f.name,permaslug:f.variantPermaslug,onClick:d},m[25]=f.author,m[26]=f.detailHref,m[27]=f.name,m[28]=f.variantPermaslug,m[29]=s,m[30]=d,m[31]=u):u=m[31],m[32]!==x||m[33]!==v||m[34]!==o||m[35]!==u?(c=(0,t.jsx)(e2.m,{variant:"default",onHoverStart:x,onHoverEnd:v,preview:o,identity:u}),m[32]=x,m[33]=v,m[34]=o,m[35]=u,m[36]=c):c=m[36],c}function e6({models:e,modality:t,getPreview:l}){let r=new Map;for(let n of e){let e=l(n);if(n.hidden||n.is_private||!n.output_modalities.includes(t)||!n.author_flagship_modalities?.includes(t)||!e)continue;let a=r.get(n.author)?.model;(!a||e7(n,a))&&r.set(n.author,{model:n,preview:e})}return[...r.values()]}function e7(e,t){let l=Date.parse(e.created_at)||0,r=Date.parse(t.created_at)||0;return l>r||l===r&&e.sluge.find(e=>e.slug===t),n[0]=e,n[1]=t):t=n[1];let d=t,u=s?a:e,c=s?i:d;return n[2]!==o||n[3]!==s||n[4]!==u||n[5]!==c?(r={models:u,resolveModel:c,isModelsReady:s,hasAvailableModelsError:o},n[2]=o,n[3]=s,n[4]=u,n[5]=c,n[6]=r):r=n[6],r}let tr={outputModalityIntent:ea.j.Image,heading:(0,b.b)("Image models"),description:(0,b.b)("Generate and edit images across the leading model providers."),listLabel:(0,b.b)("Image model families"),viewAllHref:"/models?fmt=cards&output_modalities=image&order=most-popular",viewAllLabel:(0,b.b)("image models"),viewAllSource:a.N.ImageModelsViewAll,familyClickedEvent:a.A.ImageFamilyClicked,getDisplayName:e9,getThumbnailAlt:(e,t)=>e("Example generated by {name}",{name:t}),getPreviewThumbnailUrl:ti};function tn(e){let r,n=(0,l.c)(6),{serverModels:a,weeklyTokensByVariantPermaslug:i}=e,s=void 0===a?tt:a,{models:d,resolveModel:u,hasAvailableModelsError:c,isModelsReady:m}=tl(s);if(!m&&0===s.length){let e;return n[0]!==c?(e=c?null:(0,t.jsx)(o.SpotlightSkeleton,{variant:"default"}),n[0]=c,n[1]=e):e=n[1],e}return n[2]!==d||n[3]!==u||n[4]!==i?(r=(0,t.jsx)(ta,{models:d,resolveModel:u,weeklyTokensByVariantPermaslug:i}),n[2]=d,n[3]=u,n[4]=i,n[5]=r):r=n[5],r}function ta(e){let r,n,a,i=(0,l.c)(8),{models:o,resolveModel:s,weeklyTokensByVariantPermaslug:d}=e;i[0]!==o?(r=e6({models:o,modality:ea.j.Image,getPreview:ti}).map(({model:e,preview:t})=>({familyName:e9(e.short_name),author:e.author,flagshipSlug:e.slug,fallbackThumbnailUrl:t})),i[0]=o,i[1]=r):r=i[1],i[2]!==r?(n={...tr,families:r},i[2]=r,i[3]=n):n=i[3];let u=n;return i[4]!==u||i[5]!==s||i[6]!==d?(a=(0,t.jsx)(e5,{config:u,resolveModel:s,weeklyUsageByVariantPermaslug:d}),i[4]=u,i[5]=s,i[6]=d,i[7]=a):a=i[7],a}function ti(e){return e.previews_by_modality?.image?.thumbnail_url||null}var to=e.i(651681);let ts={name:"binary",size:24,node:[["rect",{x:"14",y:"14",width:"4",height:"6",rx:"2",key:"p02svl"}],["rect",{x:"6",y:"4",width:"4",height:"6",rx:"2",key:"xm4xkj"}],["path",{d:"M6 20h4",key:"1i6q5t"}],["path",{d:"M14 10h4",key:"ru81e7"}],["path",{d:"M6 14h2v6",key:"16z9wg"}],["path",{d:"M14 4h2v6",key:"1idq9u"}]]};ts.node;let td=(0,to.f)(ts);var tu=e.i(260344),tc=e.i(915522),tm=e.i(94409),tf=e.i(257723),th=e.i(149423);let tp={name:"eighth-notes",size:24,node:[["path",{d:"M21 16V3a1 1 0 0 0-1.28-.96l-10 2.917a1 1 0 0 0-.72.96V19",key:"uy6ho8"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}],["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}]],aliases:["music"]};tp.node;let tg=(0,to.f)(tp);var tb=e.i(529809),tx=e.i(288087);let tv={vision:tm.f,"image-generation":tf.f,"video-generation":tx.f,"speech-to-text":tc.f,"text-to-speech":tb.f,"audio-generation":tg,embeddings:td,rerank:th.f},ty={vision:"bg-amber-3 text-amber-11","image-generation":"bg-green-3 text-green-11","video-generation":"bg-red-3 text-red-11","speech-to-text":"bg-teal-3 text-teal-11","text-to-speech":"bg-pink-3 text-pink-11","audio-generation":"bg-violet-3 text-violet-11",embeddings:"bg-purple-3 text-purple-11",rerank:"bg-orange-3 text-orange-11"};function tk(e){let n,i,o,s,d,u=(0,l.c)(15),{collections:c}=e,f=(0,g.o)(),h=(0,x.f)();if(u[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(r.T,{children:(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("h2",{className:"text-base font-semibold text-foreground",children:"Explore every modality"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Start with a focused set of models for the job you need to do."})]})}),u[0]=n):n=u[0],u[1]!==c||u[2]!==h||u[3]!==f){let e;u[5]!==h||u[6]!==f?(e=e=>{let l=tv[e.id]??tu.f,n=f.openLaneId===e.id;return(0,t.jsxs)("button",{type:"button","data-selected":n,onClick:()=>{let t=f.toggleLane(e.id);(0,a.m)(a.A.ModalityCardClicked,{collection_id:e.id,is_close:!t})},className:(0,y.f)("group flex min-h-36 flex-col gap-3 rounded-lg border border-border bg-card p-4 text-left","transition-colors hover:border-foreground/20 hover:bg-foreground/[0.02]","data-[selected=true]:border-foreground/25 data-[selected=true]:bg-foreground/[0.05]"),children:[(0,t.jsx)("span",{className:(0,y.f)("flex size-9 items-center justify-center rounded-md",ty[e.id]??"bg-slate-3 text-slate-11"),children:(0,t.jsx)(l,{className:"size-4.5"})}),(0,t.jsxs)("span",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{className:"font-medium text-foreground transition-colors group-hover:text-accent-foreground",children:h(e.title)}),(0,t.jsx)("span",{className:"text-sm leading-snug text-muted-foreground",children:h(e.subtitle)})]}),(0,t.jsxs)("span",{className:"mt-auto inline-flex items-center gap-1 text-xs font-medium text-foreground",children:[(0,t.jsx)(r.T,{children:"See models"}),(0,t.jsx)(m.f,{className:"size-3.5 transition-transform group-hover:translate-x-0.5"})]})]},e.id)},u[5]=h,u[6]=f,u[7]=e):e=u[7],i=c.map(e),u[1]=c,u[2]=h,u[3]=f,u[4]=i}else i=u[4];return u[8]!==i?(o=(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:i}),u[8]=i,u[9]=o):o=u[9],u[10]!==c?(s=c.map(tj),u[10]=c,u[11]=s):s=u[11],u[12]!==o||u[13]!==s?(d=(0,t.jsxs)("section",{className:"flex flex-col gap-3",children:[n,o,s]}),u[12]=o,u[13]=s,u[14]=d):d=u[14],d}function tj(e){return(0,t.jsx)(K,{lane:e,footer:(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)(s.Button,{variant:"default",size:"md",onClick:()=>{(0,a.m)(a.A.ModelsOutboundClicked,{source:a.N.ModalitySheetFooter,collection_id:e.id})},render:(0,t.jsx)(f.Link,{href:e.modelsHref}),children:[(0,t.jsx)(r.T,{children:"View all in models"}),(0,t.jsx)(m.f,{className:"size-3.5 shrink-0"})]})})},e.id)}var tw=e.i(177113),tP=e.i(199168),t_=e.i(430022),tN=e.i(209615),tT=e.i(649864);let tS=30*t_.N;function tA(e,t){return(Date.parse(t.created_at)||0)-(Date.parse(e.created_at)||0)}function tM(e){let n,i,d,u,c,m=(0,l.c)(17),{serverModels:h,routerTokensByPermaslug:p}=e,b=void 0===h?tt:h,x=(0,g.s)(),v=(0,g.Q)(),{models:k,hasAvailableModelsError:j,isModelsReady:w}=tl(b),P=(0,tP.o)();m[0]!==k||m[1]!==p?(n=function(e,{routerTokensByPermaslug:t,nowMS:l=Date.now()}){let r=Object.keys(t).length>0;return e.filter(e=>{var n;return e.group===tN.f.Router&&"openrouter"===e.author&&null!==(n=e)&&!n.hidden&&!n.is_private&&(!r||function({model:e,routerTokensByPermaslug:t,nowMS:l}){return(t[e.permaslug]??0)>0||l-(Date.parse(e.created_at)||0)<=tS}({model:e,routerTokensByPermaslug:t,nowMS:l}))}).toSorted(tA).slice(0,tT.f)}(k,{routerTokensByPermaslug:p}),m[0]=k,m[1]=p,m[2]=n):n=m[2];let _=n;if(!w&&0===b.length&&!j){let e;return m[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(o.RouterStripSkeleton,{}),m[3]=e):e=m[3],e}if(0===_.length)return null;if(m[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)(r.T,{children:(0,t.jsx)("h2",{className:"text-base font-semibold text-foreground",children:"Routers"})}),m[4]=i):i=m[4],m[5]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsxs)("div",{className:"flex flex-wrap items-baseline gap-1.5",children:[i,(0,t.jsx)(f.Link,{href:"/models?arch=Router&model_authors=openrouter",onClick:tC,variant:"inline",className:"ml-auto shrink-0 self-center whitespace-nowrap text-sm font-medium hover:text-accent-foreground",children:(0,t.jsx)(r.T,{children:"View all routers"})})]}),m[5]=d):d=m[5],m[6]!==P||m[7]!==v||m[8]!==x||m[9]!==_){let e;m[11]!==P||m[12]!==v||m[13]!==x?(e=e=>{let l=(0,eY.Q)(e);return(0,t.jsxs)("div",{"data-selected":v===l,className:(0,y.f)("group relative flex min-h-28 flex-col gap-3 rounded-lg p-3.5 text-left","border border-border/60 bg-muted/40 transition-colors","hover:border-border hover:bg-muted/70","data-[selected=true]:border-foreground/20 data-[selected=true]:bg-foreground/5"),children:[(0,t.jsx)(s.Button,{"aria-label":P("Open {name} details",{name:e.short_name}),onClick:()=>{(0,a.m)(a.A.RouterCardClicked,{router_slug:e.slug,router_name:e.short_name}),x({variantPermaslug:l,name:e.short_name})},variant:"link",className:"absolute inset-0 z-0 rounded-lg"}),(0,t.jsxs)("div",{className:"pointer-events-none relative z-10 flex flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(tw.f,{className:"size-4.5 shrink-0 text-muted-foreground"}),(0,t.jsx)(f.Link,{href:`/${e.slug}`,className:"pointer-events-auto truncate text-base font-semibold text-foreground group-hover:text-accent-foreground",children:e.short_name})]}),(0,t.jsx)("p",{className:"line-clamp-3 text-xs leading-5 text-muted-foreground",children:e.description})]})]},l)},m[11]=P,m[12]=v,m[13]=x,m[14]=e):e=m[14],u=_.map(e),m[6]=P,m[7]=v,m[8]=x,m[9]=_,m[10]=u}else u=m[10];return m[15]!==u?(c=(0,t.jsxs)("section",{className:"flex flex-col gap-2",children:[d,(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-flow-col lg:auto-cols-fr lg:grid-cols-none",children:u})]}),m[15]=u,m[16]=c):c=m[16],c}function tC(){(0,a.m)(a.A.ModelsOutboundClicked,{source:a.N.RoutersViewAll})}var tL=e.i(40255),tI=e.i(138257),tV=e.i(919873);let tU=`/models?fmt=cards&output_modalities=${ea.j.TTS}&order=most-popular`;function tH(e){let r,a,i,o=(0,l.c)(5),{children:s,className:d}=e,u=(0,n.useRef)(null);return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{let e=u.current;if(!e)return;let t=t=>{let l=t.target;if(l instanceof HTMLAudioElement)for(let t of e.querySelectorAll("audio"))t===l||t.paused||t.pause()};return e.addEventListener("play",t,!0),()=>{e.removeEventListener("play",t,!0)}},a=[],o[0]=r,o[1]=a):(r=o[0],a=o[1]),(0,n.useEffect)(r,a),o[2]!==s||o[3]!==d?(i=(0,t.jsx)("div",{ref:u,className:d,children:s}),o[2]=s,o[3]=d,o[4]=i):i=o[4],i}function tO(e){let r,n,a,i,o,s,d=(0,l.c)(31),{seedUrl:u,barCount:c,className:m,onPlaybackStart:f}=e,h=void 0===c?28:c,p=(0,tI.useLocale)(),g=(0,et.f)(),b=(0,tL.G)(),x=(0,tL.m)();d[0]!==h||d[1]!==u?(r=function(e,t){let l=0x811c9dc5;for(let t=0;t20+Math.round(80*(((l=Math.imul(l^t+1,0x1000193))>>>8)%1e3/1e3)))}(u,h),d[0]=h,d[1]=u,d[2]=r):r=d[2];let v=r;if(!b||null===x)return null;let{duration:k}=b;d[3]!==k?(n=void 0!==k&&Number.isFinite(k)&&k>0,d[3]=k,d[4]=n):n=d[4];let j=n,w=j?Math.min(1,Math.max(0,x/k)):0;if(d[5]!==g?(a=g("Waveform seek bars"),d[5]=g,d[6]=a):a=d[6],d[7]!==m?(i=(0,y.f)("flex h-6 min-w-0 flex-1 items-end gap-px",m),d[7]=m,d[8]=i):i=d[8],d[9]!==k||d[10]!==g||d[11]!==j||d[12]!==v||d[13]!==p||d[14]!==f||d[15]!==b||d[16]!==w){let e;d[18]!==k||d[19]!==g||d[20]!==j||d[21]!==v.length||d[22]!==p||d[23]!==f||d[24]!==b||d[25]!==w?(e=(e,l)=>{let r=j&&(l+1)/v.length<=w;return(0,t.jsx)("button",{type:"button",disabled:!j,"aria-label":g("Seek to {percent}",{percent:(0,ed.I)(Math.round(l/v.length*100),{locale:p,preset:"fee"})??"—"}),onClick:()=>{j&&(b.seek(l/v.length*k),b.isPlaying||f?.(),b.play())},"data-allow-inline-style":!0,style:{"--bar-height":`${e}%`},className:(0,y.f)("min-w-0 h-(--bar-height) flex-1 rounded-sm transition-colors",r?"bg-primary":"bg-primary/25 hover:bg-primary/50")},l)},d[18]=k,d[19]=g,d[20]=j,d[21]=v.length,d[22]=p,d[23]=f,d[24]=b,d[25]=w,d[26]=e):e=d[26],o=v.map(e),d[9]=k,d[10]=g,d[11]=j,d[12]=v,d[13]=p,d[14]=f,d[15]=b,d[16]=w,d[17]=o}else o=d[17];return d[27]!==a||d[28]!==i||d[29]!==o?(s=(0,t.jsx)("div",{role:"group","aria-label":a,className:i,children:o}),d[27]=a,d[28]=i,d[29]=o,d[30]=s):s=d[30],s}function tR(e){let r,n,i=(0,l.c)(7),{section:o,modelPermaslug:s,className:d}=e,u=(0,tL.G)();return i[0]!==s||i[1]!==u?.isPlaying||i[2]!==o?(r=()=>{u?.isPlaying||(0,a.m)(a.A.SpeechSamplePlayed,{section:o,model_permaslug:s})},i[0]=s,i[1]=u?.isPlaying,i[2]=o,i[3]=r):r=i[3],i[4]!==d||i[5]!==r?(n=(0,t.jsx)(tL.l,{className:d,onClickCapture:r}),i[4]=d,i[5]=r,i[6]=n):n=i[6],n}function tD(e){let r,n=(0,l.c)(5),{weeklyTokensByVariantPermaslug:a}=e,{featuredTextModels:i,hasAvailableModelsError:s,isModelsReady:d}=(0,te.S)();if(!d){let e;return n[0]!==s?(e=s?null:(0,t.jsx)(o.SpotlightSkeleton,{variant:"compact"}),n[0]=s,n[1]=e):e=n[1],e}return n[2]!==i||n[3]!==a?(r=(0,t.jsx)(tB,{models:i,weeklyTokensByVariantPermaslug:a}),n[2]=i,n[3]=a,n[4]=r):r=n[4],r}let t$={};function tB(e){let n,a,i,o,s,d,u,c,m,f=(0,l.c)(22),{models:h,weeklyTokensByVariantPermaslug:p}=e,g=void 0===p?t$:p,b=(0,et.f)();f[0]!==h||f[1]!==g?(n=function(e,t={}){let l=new Map;for(let t of e){let e=t.preview_audio;if(t.hidden||t.is_private||!t.output_modalities.includes(ea.j.TTS)||!t.author_flagship_modalities?.includes(ea.j.TTS)||e?.modality!==tV.f.Speech)continue;let r=l.get(t.author)?.model;(!r||e7(t,r))&&l.set(t.author,{model:t,previewAudio:e})}return[...l.values()].map(({model:e,previewAudio:t},l)=>({family:{familyName:e8(e.short_name),name:e.short_name,author:e.author,...e0({fallbackSlug:e.slug,model:e,outputModalityIntent:ea.j.TTS}),previewAudio:t},fallbackOrder:l})).toSorted((e,l)=>(t[l.family.variantPermaslug]??0)-(t[e.family.variantPermaslug]??0)||e.fallbackOrder-l.fallbackOrder).map(({family:e})=>e)}(h,g),f[0]=h,f[1]=g,f[2]=n):n=f[2];let x=n;if(0===x.length)return null;f[3]!==b?(a=b("Speech models"),f[3]=b,f[4]=a):a=f[4],f[5]!==b?(i=b("Hear voice samples from the leading speech models."),f[5]=b,f[6]=i):i=f[6],f[7]===Symbol.for("react.memo_cache_sentinel")?(o={href:tU,label:(0,t.jsxs)(r.T,{children:["View all",(0,t.jsx)("span",{className:"hidden sm:inline",children:" speech models"})]}),onClick:tF},f[7]=o):o=f[7],f[8]!==a||f[9]!==i?(s=(0,t.jsx)(e3,{title:a,description:i,viewAll:o}),f[8]=a,f[9]=i,f[10]=s):s=f[10],f[11]!==b?(d=b("Speech model families"),f[11]=b,f[12]=d):d=f[12];let v=x.length;return f[13]!==x?(u=x.map(tE),f[13]=x,f[14]=u):u=f[14],f[15]!==x.length||f[16]!==d||f[17]!==u?(c=(0,t.jsx)(tH,{children:(0,t.jsx)(e1.e,{ariaLabel:d,itemCount:v,children:u})}),f[15]=x.length,f[16]=d,f[17]=u,f[18]=c):c=f[18],f[19]!==c||f[20]!==s?(m=(0,t.jsxs)("section",{className:"flex flex-col gap-2",children:[s,c]}),f[19]=c,f[20]=s,f[21]=m):m=f[21],m}function tE(e){return(0,t.jsx)("li",{children:(0,t.jsx)(tz,{model:e})},e.familyName)}function tF(){(0,a.m)(a.A.ModelsOutboundClicked,{source:a.N.AudioModelsViewAll,modality:ea.j.TTS})}function tz(e){let r,n,i,o,s,d,u,c,m,f,h=(0,l.c)(34),{model:p}=e,g=(0,et.f)();h[0]!==g||h[1]!==p.author||h[2]!==p.familyName||h[3]!==p.name||h[4]!==p.previewAudio.voice?(r=null===p.previewAudio.voice?g("{family} family: {name} by {author}",{family:p.familyName,name:p.name,author:p.author}):g("{family} family: {name} by {author}, voice {voice}",{family:p.familyName,name:p.name,author:p.author,voice:p.previewAudio.voice}),h[0]=g,h[1]=p.author,h[2]=p.familyName,h[3]=p.name,h[4]=p.previewAudio.voice,h[5]=r):r=h[5];let b=r;return h[6]!==p.variantPermaslug?(n=(0,t.jsx)(tR,{className:"size-8 min-w-8 shrink-0",section:"spotlight",modelPermaslug:p.variantPermaslug}),h[6]=p.variantPermaslug,h[7]=n):n=h[7],h[8]!==p.variantPermaslug?(i=()=>{(0,a.m)(a.A.SpeechSamplePlayed,{section:"spotlight",model_permaslug:p.variantPermaslug})},h[8]=p.variantPermaslug,h[9]=i):i=h[9],h[10]!==p.previewAudio.url||h[11]!==i?(o=(0,t.jsx)(tO,{seedUrl:p.previewAudio.url,onPlaybackStart:i}),h[10]=p.previewAudio.url,h[11]=i,h[12]=o):o=h[12],h[13]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(tL.p,{className:"shrink-0 text-xs"}),h[13]=s):s=h[13],h[14]!==n||h[15]!==o?(d=(0,t.jsxs)("div",{className:e2.z,children:[n,o,s]}),h[14]=n,h[15]=o,h[16]=d):d=h[16],h[17]!==p.previewAudio.url||h[18]!==d?(u=(0,t.jsx)(tL.h,{src:p.previewAudio.url,children:d}),h[17]=p.previewAudio.url,h[18]=d,h[19]=u):u=h[19],h[20]!==p.familyName||h[21]!==p.name||h[22]!==p.previewAudio.modality||h[23]!==p.variantPermaslug?(c=()=>{(0,a.m)(a.A.AudioFamilyClicked,{family:p.familyName,model_permaslug:p.variantPermaslug,model_name:p.name,modality:p.previewAudio.modality})},h[20]=p.familyName,h[21]=p.name,h[22]=p.previewAudio.modality,h[23]=p.variantPermaslug,h[24]=c):c=h[24],h[25]!==b||h[26]!==p.author||h[27]!==p.detailHref||h[28]!==p.name||h[29]!==c?(m={ariaLabel:b,author:p.author,href:p.detailHref,name:p.name,onClick:c},h[25]=b,h[26]=p.author,h[27]=p.detailHref,h[28]=p.name,h[29]=c,h[30]=m):m=h[30],h[31]!==u||h[32]!==m?(f=(0,t.jsx)(e2.m,{variant:"compact",isPreviewInteractive:!0,preview:u,identity:m}),h[31]=u,h[32]=m,h[33]=f):f=h[33],f}function tW(e){let t=e.previews_by_modality?.video;return t?.thumbnail_url&&t.thumbnail_url!==t.url?t:null}let tq=[{familyName:"H3",author:"minimax",flagshipSlug:"minimax/hailuo-3",usagePermaslugPrefix:"minimax/hailuo-",fallbackThumbnailUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/hailuo-3.webp?v=1",hoverVideoUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/hailuo-3.mp4?v=1"},{familyName:"Veo",author:"google",flagshipSlug:"google/veo-3.1",usagePermaslugPrefix:"google/veo-",fallbackThumbnailUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/veo-3-1.webp?v=3",hoverVideoUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/veo-3-1.mp4?v=3"},{familyName:"Seedance",author:"bytedance",flagshipSlug:"bytedance/seedance-2.0",usagePermaslugPrefix:"bytedance/seedance-",fallbackThumbnailUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/seedance-2-0.webp?v=3",hoverVideoUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/seedance-2-0.mp4?v=3"},{familyName:"Kling",author:"kwaivgi",flagshipSlug:"kwaivgi/kling-v3.0-pro",usagePermaslugPrefix:"kwaivgi/kling-",fallbackThumbnailUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/kling-v3-0-pro.webp?v=3",hoverVideoUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/kling-v3-0-pro.mp4?v=3"},{familyName:"HappyHorse",author:"alibaba",flagshipSlug:"alibaba/happyhorse-1.1",usagePermaslugPrefix:"alibaba/happyhorse-",fallbackThumbnailUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/happyhorse-1-1.webp?v=3",hoverVideoUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/happyhorse-1-1.mp4?v=3"},{familyName:"Wan",author:"alibaba",flagshipSlug:"alibaba/wan-2.7",usagePermaslugPrefix:"alibaba/wan-",fallbackThumbnailUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/wan-2-7.webp?v=3",hoverVideoUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/wan-2-7.mp4?v=3"},{familyName:"Sora",author:"openai",flagshipSlug:"openai/sora-2-pro",usagePermaslugPrefix:"openai/sora-",fallbackThumbnailUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/sora-2-pro.webp?v=3",hoverVideoUrl:"https://model-assets.openrouter.ai/model-discovery-video-carousel/sora-2-pro.mp4?v=3"}],tG={outputModalityIntent:ea.j.Video,heading:(0,b.b)("Video models"),description:(0,b.b)("Generate videos from text and image prompts across the leading model providers."),listLabel:(0,b.b)("Video model families"),viewAllHref:"/models?fmt=cards&output_modalities=video&order=most-popular",viewAllLabel:(0,b.b)("video models"),viewAllSource:a.N.VideoModelsViewAll,familyClickedEvent:a.A.VideoFamilyClicked,getDisplayName:function(e,t){let l=e8(e);return l.toLowerCase().includes(t.toLowerCase())?l:`${t} ${l}`},getThumbnailAlt:(e,t)=>e("Example frame generated by {name}",{name:t}),getPreviewThumbnailUrl:function(e){return tW(e)?.thumbnail_url??null}};function tQ(e){let r,n=(0,l.c)(4),{serverModels:a,weeklyVideoRequestsByVariantPermaslug:i}=e,{models:o,resolveModel:s}=tl(void 0===a?tt:a);return n[0]!==o||n[1]!==s||n[2]!==i?(r=(0,t.jsx)(tK,{models:o,resolveModel:s,weeklyVideoRequestsByVariantPermaslug:i}),n[0]=o,n[1]=s,n[2]=i,n[3]=r):r=n[3],r}function tK(e){var r;let n,a,i,o,s=(0,l.c)(8),{models:d,resolveModel:u,weeklyVideoRequestsByVariantPermaslug:c}=e;s[0]!==d?(n=new Set((r=e6({models:d,modality:ea.j.Video,getPreview:tW}).map(tX)).map(e=>e.author)),a=[...r,...tq.filter(e=>!n.has(e.author))],s[0]=d,s[1]=a):a=s[1],s[2]!==a?(i={...tG,families:a},s[2]=a,s[3]=i):i=s[3];let m=i;return s[4]!==m||s[5]!==u||s[6]!==c?(o=(0,t.jsx)(e5,{config:m,resolveModel:u,weeklyUsageByVariantPermaslug:c}),s[4]=m,s[5]=u,s[6]=c,s[7]=o):o=s[7],o}function tX({model:e,preview:t}){let l=tq.find(t=>e.slug.startsWith(t.usagePermaslugPrefix));return{familyName:l?.familyName??function(e){let[,t=""]=tJ(e);return tY(t).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}(e.slug),author:e.author,flagshipSlug:e.slug,usagePermaslugPrefix:l?.usagePermaslugPrefix??function(e){let[t="",l=""]=tJ(e);return`${t}/${tY(l).join("-")}-`}(e.slug),fallbackThumbnailUrl:t.thumbnail_url,hoverVideoUrl:t.url}}function tJ(e){let[t,l]=e.replace(/^~/u,"").split("/");return[t,l]}function tY(e){let t=e.split("-"),l=t.findIndex(e=>/\d/u.test(e));return -1===l?t:l>0?t.slice(0,l):t.slice(0,1)}({...tG,families:tq});let tZ={};function t0(e){let r,n,a,o,s,d,u,c,m,f,p,b=(0,l.c)(33),{view:x,serverModels:v,weeklyTokensByVariantPermaslug:y,weeklyVideoRequestsByVariantPermaslug:k,routerTokensByPermaslug:j}=e,w=void 0===v?tt:v,P=void 0===y?tZ:y,_=void 0===k?tZ:k,N=void 0===j?tZ:j;return b[0]!==x.featuredModelCount?(r=(0,t.jsx)(i.DiscoveryPageHeader,{modelCount:x.featuredModelCount}),b[0]=x.featuredModelCount,b[1]=r):r=b[1],b[2]!==x.signals?(n=x.signals.length>0&&(0,t.jsx)(eF,{signals:x.signals}),b[2]=x.signals,b[3]=n):n=b[3],b[4]!==N||b[5]!==w?(a=(0,t.jsx)(tM,{serverModels:w,routerTokensByPermaslug:N}),b[4]=N,b[5]=w,b[6]=a):a=b[6],b[7]!==x.lanes?(o=(function(e){let t=[];for(let l of e){let e=t.at(-1);if(!0===l.isHalfWidth&&void 0!==e&&1===e.length&&e[0]?.isHalfWidth===!0){e.push(l);continue}t.push([l])}return t})(x.lanes).map(t1),b[7]=x.lanes,b[8]=o):o=b[8],b[9]!==o?(s=(0,t.jsx)("div",{className:"flex flex-col gap-10",children:o}),b[9]=o,b[10]=s):s=b[10],b[11]!==w||b[12]!==P?(d=(0,t.jsx)(tn,{serverModels:w,weeklyTokensByVariantPermaslug:P}),b[11]=w,b[12]=P,b[13]=d):d=b[13],b[14]!==w||b[15]!==_?(u=(0,t.jsx)(tQ,{serverModels:w,weeklyVideoRequestsByVariantPermaslug:_}),b[14]=w,b[15]=_,b[16]=u):u=b[16],b[17]!==P?(c=(0,t.jsx)(tD,{weeklyTokensByVariantPermaslug:P}),b[17]=P,b[18]=c):c=b[18],b[19]!==x.collections?(m=(0,t.jsx)(tk,{collections:x.collections}),b[19]=x.collections,b[20]=m):m=b[20],b[21]!==x.featuredModelCount?(f=(0,t.jsx)(h,{modelCount:x.featuredModelCount}),b[21]=x.featuredModelCount,b[22]=f):f=b[22],b[23]!==d||b[24]!==u||b[25]!==c||b[26]!==m||b[27]!==f||b[28]!==r||b[29]!==n||b[30]!==a||b[31]!==s?(p=(0,t.jsx)(g.r,{children:(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-7xl flex-col gap-10 px-4 py-8",children:[r,n,a,s,d,u,c,m,f]})}),b[23]=d,b[24]=u,b[25]=c,b[26]=m,b[27]=f,b[28]=r,b[29]=n,b[30]=a,b[31]=s,b[32]=p):p=b[32],p}function t1(e){return e.length>1?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-2 lg:gap-6",children:e.map(t3)},e[0]?.id):e.map(t2)}function t2(e){return(0,t.jsx)(ee,{lane:e},e.id)}function t3(e){return(0,t.jsx)(ee,{lane:e},e.id)}var t5=e.i(618115),t4=e.i(411240),t6=e.i(770292),t7=e.i(195759),t8=e.i(572201);function t9(e){return e.slug.endsWith("-latest")}function le(e){return!e.hidden&&!e.is_private}var lt=e.i(427150);function ll(e){let t=new Map;return e.forEach((l,r)=>{let n=Math.round((e.length-r)/e.length*100);for(let e of[l.openrouter_slug,l.permaslug,l.heuristic_openrouter_slug])null===e||""===e||t.has(e)||t.set(e,n)}),t}function lr(e,t){for(let l of t){let t=e.get(l);if(void 0!==t)return t}}function ln({map:e,slugKeys:t,index:l}){if(e)for(let r of t){let t=e[r]?.[l];if((0,lt.f)(t))return t}}function la(e){let t=[e.variantPermaslug,(0,el.f)(e.variantPermaslug)];return e.model&&t.push((0,eY.i)(e.model),e.model.slug,e.model.permaslug),[...new Set(t)]}let li={};function lo(e){let[t,l]=e;return[t,l.t]}var ls=e.i(795625);function ld(){let e,n=(0,l.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(ls.f,{title:(0,t.jsx)(r.T,{children:"No routed traffic in this window"}),description:(0,t.jsx)(r.T,{children:"Discovery sections appear once the API has enough usage rows to rank honestly."})}),n[0]=e):e=n[0],e}function lu(){let e,n=(0,l.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(ls.f,{title:(0,t.jsx)(r.T,{children:"Discovery is taking a breather"}),description:(0,t.jsx)(r.T,{children:"We couldn't load live traffic just now. Refresh in a moment to try again."})}),n[0]=e):e=n[0],e}e.s(["DiscoveryPageClient",0,function(e){let r,s,d,u,c,m,f,h,p,g,x,v=(0,l.c)(26),{initialView:y,serverModels:k}=e,j=function(){let e,t,r,n,a,i,o=(0,l.c)(32),s=(0,tI.useLocale)();o[0]===Symbol.for("react.memo_cache_sentinel")?(e={...(0,t4.U)(),refetchInterval:18e5},o[0]=e):e=o[0];let{data:d,error:u}=(0,t5.f)(e);o[1]!==d?.totals?(t=Object.fromEntries(Object.entries(d?.totals??{}).map(lo)),o[1]=d?.totals,o[2]=t):t=o[2];let c=t;o[3]===Symbol.for("react.memo_cache_sentinel")?(r={...(0,t4.x)(),refetchInterval:18e5},o[3]=r):r=o[3];let{data:m}=(0,t5.f)(r);o[4]===Symbol.for("react.memo_cache_sentinel")?(n={...(0,t4.b)(),refetchInterval:18e5},o[4]=n):n=o[4];let{data:f}=(0,t5.f)(n),{resolve:h,latestAliasModels:p,catalogModels:g,featuredModelCount:x,isReady:v}=function(){let e,t,r,n,a,i=(0,l.c)(16),{featuredTextModels:o,getModelInfoByVariantPermaslug:s,getModelInfoByVariantSlug:d,getPrimaryModelInfoByPermaslug:u,isReady:c}=(0,te.S)();i[0]!==s||i[1]!==d||i[2]!==u?(e=e=>{let t=(0,el.f)(e),l=(0,t7.z)(e),r=s(e)??u(t)??d(e);return r?{variantPermaslug:e,name:(0,t7.I)(r,l),author:r.author,href:`/${(0,t8.k)(r.slug,l)}`,model:r}:{variantPermaslug:e,name:(0,t6.b)(e),author:(0,t6.x)(e),href:`/${e}`,model:null}},i[0]=s,i[1]=d,i[2]=u,i[3]=e):e=i[3];let m=e;i[4]!==o?(t=o.filter(le),i[4]=o,i[5]=t):t=i[5];let f=t;i[6]!==f?(r=f.filter(t9),i[6]=f,i[7]=r):r=i[7];let h=r;i[8]!==o?(n=(0,eY.v)(o),i[8]=o,i[9]=n):n=i[9];let p=n;return i[10]!==f||i[11]!==p||i[12]!==c||i[13]!==h||i[14]!==m?(a={isReady:c,resolve:m,latestAliasModels:h,catalogModels:f,featuredModelCount:p},i[10]=f,i[11]=p,i[12]=c,i[13]=h,i[14]=m,i[15]=a):a=i[15],a}();e:{var y,k,j,w,P;let e,t,l,r,n,i,u,c,_,N,I,V,U,H,O,R,D,$,B,E;if(!d||!v){a=null;break e}o[5]!==m?.aaData.intelligence?(e=m?.aaData.intelligence??[],o[5]=m?.aaData.intelligence,o[6]=e):e=o[6],o[7]!==m?.aaData.coding?(t=m?.aaData.coding??[],o[7]=m?.aaData.coding,o[8]=t):t=o[8],o[9]!==m?.aaData.agentic?(l=m?.aaData.agentic??[],o[9]=m?.aaData.agentic,o[10]=l):l=o[10];let F=m?.aaData.percentilesBySlug;o[11]!==f?(r=f??[],o[11]=f,o[12]=r):r=o[12],o[13]!==g||o[14]!==d||o[15]!==x||o[16]!==p||o[17]!==s||o[18]!==h||o[19]!==e||o[20]!==t||o[21]!==l||o[22]!==F||o[23]!==r?(y=s,I=(i=ll((j=k={discovery:d,intelligence:e,coding:t,agentic:l,aaPercentilesBySlug:F,performance:r,resolveEntry:h,latestAliasModels:p,catalogModels:g,featuredModelCount:x}).intelligence),u=ll(j.coding),c=ll(j.agentic),e=>({intelligencePct:ln({map:j.aaPercentilesBySlug,slugKeys:e,index:"intelligence"})??lr(i,e),codingPct:ln({map:j.aaPercentilesBySlug,slugKeys:e,index:"coding"})??lr(u,e),agenticPct:ln({map:j.aaPercentilesBySlug,slugKeys:e,index:"agentic"})??lr(c,e)})),U=new Map((V=(w=k,P=I,_=new Map(w.performance.map(e=>[e.slug,e])),N=new Map([...w.discovery.climbing,...w.discovery.breakouts].map(e=>[e.variantPermaslug,e.series.map(e=>e.tokens)])),Object.entries(w.discovery.totals).toSorted(([,e],[,t])=>t.t-e.t).map(([e,t],l)=>{let r=w.resolveEntry(e),n=la(r),a=n.map(e=>_.get(e)).find(e=>void 0!==e);return{entry:r,weeklyTokens:t.t,growthRatio:t.c,series:t.s??N.get(e),...P(n),perf:a,promptPricePerToken:eg(r.model),completionPricePerToken:eb(r.model),usageRank:l+1,isDroppedOff:!0===t.d}}))).map(e=>[e.entry.variantPermaslug,e])),H=V.filter(e=>!e.isDroppedOff),O=new Set(V.filter(e=>e.isDroppedOff).map(e=>(0,el.f)(e.entry.variantPermaslug))),R=[...H,...function({sources:e,percentilesFor:t,enriched:l}){let r=new Set(l.flatMap(e=>[e.entry.variantPermaslug,e.entry.model?.permaslug,e.entry.model?.slug].map(e=>void 0===e?void 0:(0,el.f)(e)))),n=new Set(e.latestAliasModels.map(e=>e.slug));return e.catalogModels.filter(e=>!r.has((0,el.f)(e.permaslug))&&!n.has(e.slug)).map(e=>{var l,r;let n;return l=e,r=t,{entry:n={variantPermaslug:l.permaslug,name:l.short_name,author:l.author,href:`/${l.slug}`,model:l},weeklyTokens:0,growthRatio:null,...r(la(n)),promptPricePerToken:eg(l),completionPricePerToken:eb(l),usageRank:0,isDroppedOff:!1}})}({sources:k,percentilesFor:I,enriched:V})].filter(e=>(ey(e)??0)>=50&&void 0!==e.promptPricePerToken&&e.promptPricePerToken>0).toSorted((e,t)=>ek(t)-ek(e)).filter(ew()).slice(0,25),D=H.filter(e=>{var t;return void 0!==e.perf&&e.perf.request_count>=1e3&&e.perf.p50_latency>0&&e.perf.p50_throughput>=40&&e.perf.provider_count>=2&&(void 0!==(t=e).intelligencePct||void 0!==t.codingPct||void 0!==t.agenticPct||(t.perf?.provider_count??0)>=5&&t.weeklyTokens>=1e7)}).toSorted(ej).filter(ew()).slice(0,25),$=function(e,t){let l=e.latestAliasModels.map(e=>({model:e,stem:(0,ei.H)(e.slug),weeklyTokens:0,newestMS:Date.parse(e.created_at)||0}));for(let e of t){let t=(0,ei.u)((0,el.f)(e.entry.variantPermaslug)),r=l.filter(l=>l.model.author===e.entry.author&&(0,ei.A)(t,l.stem)).toSorted((e,t)=>(0,ei.s)(e.stem,t.stem))[0];r&&(r.weeklyTokens+=e.weeklyTokens,r.newestMS=Math.max(r.newestMS,Date.parse(e.entry.model?.created_at??"")||0))}return(function(e){let t=new Map;for(let l of e){let e=t.get(l.model.author)??[];e.push(l),t.set(l.model.author,e)}let l=[];for(let r=0;l.lengthe[r]).filter(e=>void 0!==e).toSorted((e,t)=>t.newestMS-e.newestMS);l.push(...e)}return l})(l.toSorted((e,t)=>t.newestMS-e.newestMS)).map(({model:e,weeklyTokens:t})=>{var l,r;return l=e,r=t,{entry:{variantPermaslug:l.permaslug,name:l.short_name,author:l.author,href:`/${l.slug}`,model:l},weeklyTokens:r,growthRatio:null,promptPricePerToken:eg(l),completionPricePerToken:eb(l),usageRank:0,isDroppedOff:!1}}).slice(0,25)}(k,H),B=H.filter(e=>{let t=e.entry.model?.endpoint;return(0,en.h)(t,t?.display_pricing??[])}).slice(0,25),E=[eL({id:"value",title:(0,b.b)("Value leaders"),subtitle:(0,b.b)("The most capability per dollar of list price."),models:R.slice(0,5).map(e_.bind(void 0,y)),sheetModels:R.map(e_.bind(void 0,y)),isHalfWidth:!0}),eL({id:"fast",title:(0,b.b)("Fastest models"),subtitle:(0,b.b)("Highest median output speed across multiple providers."),models:D.slice(0,5).map(eN.bind(void 0,y)),sheetModels:D.map(eN.bind(void 0,y)),isHalfWidth:!0}),eL({id:"latest",title:(0,b.b)("Always-latest aliases"),subtitle:(0,b.b)("Pin one model ID and always get the newest release in that family."),models:$.slice(0,5).map(eA.bind(void 0,y)),sheetModels:$.map(eA.bind(void 0,y)),isHalfWidth:!0}),eL({id:"free",title:(0,b.b)("Free models"),subtitle:(0,b.b)("The most-used models with a free endpoint."),models:B.slice(0,5).map(eM.bind(void 0,y)),sheetModels:B.map(eM.bind(void 0,y)),isHalfWidth:!0})].filter(e=>null!==e),n={signals:function(e,{sources:t,enriched:l,byPermaslug:r,value:n,fast:a,droppedOffSlugs:i}){var o,s;let d=new Set(i),u=e=>(e?.variantPermaslug&&d.add((0,el.f)(e.variantPermaslug)),e),c=u(function(e,t){if(!t)return null;let l=function(e,t){if(null===t||!Number.isFinite(t))return null;if(Math.round(100*t)>=1e3)return`${(0,eo._)(Math.round(t+1),{locale:e})??"—"}x`;let l=Math.round(100*t),r=(0,ed.I)(l,{locale:e,preset:"native-unrounded"});return r?(l>0?"+":"")+r:null}(e,t.growthRatio);return{id:"top-usage",kind:T,kindLabel:(0,b.b)("#1 on OpenRouter"),explainer:(0,b.b)("The model that served the most tokens on OpenRouter this week. If you want the popular pick, start here."),...eH(t),headline:(0,b.b)("{name} moves more tokens than any other model.",{name:t.entry.name}),body:l?(0,b.b)("{tokens} tokens over the last 7 days, {growth} week over week.",{tokens:ec(e,t.weeklyTokens),growth:l}):(0,b.b)("{tokens} tokens over the last 7 days.",{tokens:ec(e,t.weeklyTokens)}),metric:ec(e,t.weeklyTokens),metricLabel:eV.TokensThisWeek}}(e,l[0])),m=u(function(e,{sources:t,enriched:l,byPermaslug:r,taken:n}){let a=e$({sources:t,byPermaslug:r,taken:n,matches:e=>null!==e.model&&(0,er.q)(e.model)&&!(0,er.w)(e.model)});if(a){var i;let t;return{id:"smartest-open",kind:A,kindLabel:(0,b.b)("Smartest open model"),explainer:(0,b.b)("The highest-ranked open-weights model on the Artificial Analysis intelligence index: frontier-grade quality you can self-host."),...(t=Number.isFinite((i=a).score)&&i.score>0,{title:{literal:i.entry.name},authorSlug:i.entry.author,variantPermaslug:i.entry.variantPermaslug,href:i.entry.href,series:i.activity?.series,metric:t?`${Math.round(i.score)}`:`#${i.rank}`,metricLabel:t?eV.IntelligenceScore:eV.OnTheIndex}),headline:(0,b.b)("{name} is the smartest open-weights model.",{name:a.entry.name}),body:a.activity?(0,b.b)("The highest-ranked open-weights model on the Artificial Analysis intelligence index. It served {tokens} tokens on OpenRouter this week.",{tokens:ec(e,a.activity.weeklyTokens)}):(0,b.b)("The highest-ranked open-weights model on the Artificial Analysis intelligence index.")}}let o=l.find(e=>null!==e.entry.model&&(0,er.q)(e.entry.model)&&!(0,er.w)(e.entry.model)&&!n.has((0,el.f)(e.entry.variantPermaslug)));return o?{id:"smartest-open",kind:A,kindLabel:(0,b.b)("Most-used open model"),explainer:(0,b.b)("The most-used open-weights model on OpenRouter this week."),...eH(o),headline:(0,b.b)("{name} leads the open-weights pack.",{name:o.entry.name}),body:(0,b.b)("The most-used open-weights model this week, with {tokens} tokens served.",{tokens:ec(e,o.weeklyTokens)}),metric:ec(e,o.weeklyTokens),metricLabel:eV.TokensThisWeek}:null}(e,{sources:t,enriched:l,byPermaslug:r,taken:d}));return[function(e,{sources:t,enriched:l,byPermaslug:r,taken:n}){let a=(function(e,t){let l=[...eU],r=new Set(l.map(e=>e.slug));for(let n of e.intelligence.slice(0,5)){let a=e.resolveEntry(eO(n));t.has((0,el.f)(a.variantPermaslug))||r.has(a.author)||(r.add(a.author),l.push({slug:a.author,name:a.model?.author_display_name??a.author}))}return l})(t,n).map(a=>(function(e,{lab:t,sources:l,enriched:r,byPermaslug:n,taken:a}){let i=e$({sources:l,byPermaslug:n,taken:a,matches:e=>e.author===t.slug});if(i){let e=Number.isFinite(i.score)&&i.score>0;return{lab:t.name,name:i.entry.name,authorSlug:i.entry.author,variantPermaslug:i.entry.variantPermaslug,href:i.entry.href,metric:e?`${Math.round(i.score)}`:`#${i.rank}`,metricLabel:e?eV.IntelligenceScore:eV.OnTheIndex}}let o=r.find(e=>e.entry.author===t.slug&&!a.has((0,el.f)(e.entry.variantPermaslug)));return o?{lab:t.name,name:o.entry.name,authorSlug:o.entry.author,variantPermaslug:o.entry.variantPermaslug,href:o.entry.href,metric:ec(e,o.weeklyTokens),metricLabel:eV.TokensThisWeek}:null})(e,{lab:a,sources:t,enriched:l,byPermaslug:r,taken:n})).filter(e=>null!==e).toSorted(eR);if(0===a.length)return null;let i=a.some(e=>e.metricLabel===eV.IntelligenceScore);return{id:"lab-frontiers",kind:S,kindLabel:(0,b.b)("Lab frontiers"),explainer:i?(0,b.b)("Each major lab's strongest model on the Artificial Analysis intelligence index right now."):(0,b.b)("Each major lab's most-used model on OpenRouter this week."),title:(0,b.b)("The latest on the frontier"),authorSlug:a[0]?.authorSlug??"",href:"/models",headline:(0,b.b)("The frontier"),body:i?(0,b.b)("Each major lab's strongest model on the Artificial Analysis intelligence index."):(0,b.b)("Each major lab's most-used model on OpenRouter this week."),frontier:a}}(e,{sources:t,enriched:l,byPermaslug:r,taken:d}),c,m,function(e,{sources:t,byPermaslug:l,taken:r}){let n=t.coding.findIndex(e=>!r.has((0,el.f)(t.resolveEntry(eO(e)).variantPermaslug))),a=-1===n?void 0:t.coding[n];if(!a)return null;let i=n+1,o=eO(a),s=t.resolveEntry(o),d=l.get(o)??l.get(a.permaslug),u=Number.isFinite(a.score)&&a.score>0;return{id:"smartest-coding",kind:M,kindLabel:(0,b.b)("Smartest coding"),explainer:(0,b.b)("Near the top of the Artificial Analysis coding index right now. If you are writing code and want a very strong model regardless of price, start here."),title:{literal:s.name},authorSlug:s.author,variantPermaslug:s.variantPermaslug,href:s.href,series:d?.series,headline:1===i?(0,b.b)("{name} leads for coding.",{name:s.name}):(0,b.b)("{name} is a top coding pick.",{name:s.name}),body:d?(0,b.b)("Ranked #{rank} of {total} models on the Artificial Analysis coding index. It served {tokens} tokens on OpenRouter this week.",{rank:i,total:t.coding.length,tokens:ec(e,d.weeklyTokens)}):(0,b.b)("Ranked #{rank} of {total} models on the Artificial Analysis coding index.",{rank:i,total:t.coding.length}),metric:u?`${Math.round(a.score)}`:`#${i}`,metricLabel:u?eV.CodingScore:eV.OnTheIndex}}(e,{sources:t,byPermaslug:r,taken:d}),function(e,t){if(!t||void 0===t.promptPricePerToken)return null;let l=t.entry.model?.endpoint?.display_pricing??[];if(eI(e,t.entry.model?.endpoint,l).isCustomPricing||0===t.promptPricePerToken&&!(0,en.C)(l))return null;let r=ey(t);if(void 0===r)return null;let n=eh(e,t.promptPricePerToken);if(!n)return null;let a=void 0===t.completionPricePerToken?null:eh(e,t.completionPricePerToken);return{id:"best-value",kind:C,kindLabel:(0,b.b)("Best value"),explainer:(0,b.b)("Scores in the top half of the independent Artificial Analysis benchmarks at the lowest combined rate for input and output tokens. The most capability per dollar spent."),...eH(t),headline:(0,b.b)("{name}: the most capability per dollar.",{name:t.entry.name}),body:a?(0,b.b)("Averages the {percentile}th percentile across the Artificial Analysis indexes at {price}/M input and {outputPrice}/M output tokens.",{percentile:Math.round(r),price:n,outputPrice:a}):(0,b.b)("Averages the {percentile}th percentile across the Artificial Analysis indexes at {price}/M input tokens.",{percentile:Math.round(r),price:n}),metric:n,metricLabel:eV.PerMillionInput}}(e,n[0]),(o=e,s=a[0],s?.perf?{id:"fastest",kind:L,kindLabel:(0,b.b)("Fastest"),explainer:(0,b.b)("Streams output at the highest sustained speed across real production requests and multiple providers. Best when users need answers quickly."),...eH(s),headline:(0,b.b)("{name} streams fastest.",{name:s.entry.name}),body:(0,b.b)("{speed} median output speed across {providers} providers, with {latency} median time to first token.",{speed:ef(o,s.perf.p50_throughput),providers:s.perf.provider_count,latency:em(o,s.perf.p50_latency)}),metric:ef(o,s.perf.p50_throughput),metricLabel:eV.MedianOutputSpeed}:null)].filter(e=>null!==e)}(y,{sources:k,enriched:H,byPermaslug:U,value:R,fast:D,droppedOffSlugs:O}),lanes:E,collections:function(e,{sources:t,enriched:l,droppedOffSlugs:r}){return ev.map(n=>{let a=l.filter(e=>null!==e.entry.model&&n.matches(e.entry.model)).filter(ew()).slice(0,25).map(eT.bind(void 0,e)),i=new Set(a.map(e=>(0,el.f)(e.variantPermaslug))),o=t.catalogModels.filter(e=>n.matches(e)&&!i.has((0,el.f)(e.permaslug))&&!r.has((0,el.f)(e.permaslug))).slice(0,Math.max(0,25-a.length)).map(eS.bind(void 0,e)),s=[...a,...o];return{id:n.id,title:n.title,subtitle:n.description,models:s.slice(0,5),sheetModels:s,modelsHref:n.modelsHref}})}(y,{sources:k,enriched:H,droppedOffSlugs:O}),hasTraffic:V.length>0,featuredModelCount:k.featuredModelCount},o[13]=g,o[14]=d,o[15]=x,o[16]=p,o[17]=s,o[18]=h,o[19]=e,o[20]=t,o[21]=l,o[22]=F,o[23]=r,o[24]=n):n=o[24],a=n}let _=a,N=d?.videoRequests??li,I=d?.routerTokens??li,V=null===_&&null===u,U=null===_&&null!==u;return o[25]!==N||o[26]!==I||o[27]!==V||o[28]!==U||o[29]!==_||o[30]!==c?(i={view:_,weeklyTokensByVariantPermaslug:c,weeklyVideoRequestsByVariantPermaslug:N,routerTokensByPermaslug:I,isLoading:V,isUnavailable:U},o[25]=N,o[26]=I,o[27]=V,o[28]=U,o[29]=_,o[30]=c,o[31]=i):i=o[31],i}(),{view:w,weeklyTokensByVariantPermaslug:P,weeklyVideoRequestsByVariantPermaslug:_,routerTokensByPermaslug:N}=j,I=w??y,V=null===I&&j.isLoading,U=null===I&&j.isUnavailable,H=I?.hasTraffic===!0,O=null!==I&&!H,R=(0,n.useRef)(!1);if(v[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{R.current||(R.current=!0,(0,a.m)(a.A.PageViewed,{referrer:document.referrer||null}))},s=[],v[0]=r,v[1]=s):(r=v[0],s=v[1]),(0,n.useEffect)(r,s),v[2]!==U?(d=()=>{U&&(0,a.m)(a.A.PageUnavailable)},u=[U],v[2]=U,v[3]=d,v[4]=u):(d=v[3],u=v[4]),(0,n.useEffect)(d,u),v[5]!==O?(c=()=>{O&&(0,a.m)(a.A.PageEmptyTraffic)},m=[O],v[5]=O,v[6]=c,v[7]=m):(c=v[6],m=v[7]),(0,n.useEffect)(c,m),I&&H){let e;return v[8]!==I||v[9]!==N||v[10]!==k||v[11]!==P||v[12]!==_?(e=(0,t.jsx)(t0,{view:I,serverModels:k,weeklyTokensByVariantPermaslug:P,weeklyVideoRequestsByVariantPermaslug:_,routerTokensByPermaslug:N}),v[8]=I,v[9]=N,v[10]=k,v[11]=P,v[12]=_,v[13]=e):e=v[13],e}return v[14]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)(i.DiscoveryPageHeader,{}),v[14]=f):f=v[14],v[15]!==V?(h=V&&(0,t.jsx)(o.DiscoveryPageSkeleton,{}),v[15]=V,v[16]=h):h=v[16],v[17]!==U?(p=U&&(0,t.jsx)(lu,{}),v[17]=U,v[18]=p):p=v[18],v[19]!==I||v[20]!==H?(g=I&&!H&&(0,t.jsx)(ld,{}),v[19]=I,v[20]=H,v[21]=g):g=v[21],v[22]!==g||v[23]!==h||v[24]!==p?(x=(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-7xl flex-col gap-10 px-4 py-8",children:[f,h,p,g]}),v[22]=g,v[23]=h,v[24]=p,v[25]=x):x=v[25],x}],229387)}]); //# sourceMappingURL=2cwbih8m-42y6.js.map