(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,917023,e=>{"use strict";var t=e.i(651681);let i={name:"audio-lines",size:24,node:[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],917023)},257723,734824,e=>{"use strict";var t=e.i(651681);let i={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],734824),e.s(["f",0,n],257723)},472089,e=>{"use strict";var t=e.i(651681);let i={name:"mic",size:24,node:[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],472089)},529809,e=>{"use strict";var t=e.i(651681);let i={name:"speech",size:24,node:[["path",{d:"M8.8 20v-4.1l1.9.2a2.3 2.3 0 0 0 2.164-2.1V8.3A5.37 5.37 0 0 0 2 8.25c0 2.8.656 3.054 1 4.55a5.77 5.77 0 0 1 .029 2.758L2 20",key:"11atix"}],["path",{d:"M19.8 17.8a7.5 7.5 0 0 0 .003-10.603",key:"yol142"}],["path",{d:"M17 15a3.5 3.5 0 0 0-.025-4.975",key:"ssbmkc"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],529809)},99938,e=>{"use strict";var t=e.i(651681);let i={name:"type",size:24,node:[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],99938)},288087,e=>{"use strict";var t=e.i(651681);let i={name:"video",size:24,node:[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]};i.node;let n=(0,t.f)(i);e.s(["f",0,n],288087)},481066,e=>{"use strict";var t=e.i(572201),i=e.i(195759);e.s(["f",0,(e,{shorten:n=!1,keepNote:a=!1,preserveVariant:l=!1}={})=>{if(!n&&!0===a)return e;let r=e.split(": ")[1]||e;if(a)return r;let s=r.split(" (")[0];if(!l)return s;let o=Object.values(t.e).filter(e=>e!==t.d.Standard&&e!==t.e.All).map(e=>(0,i.x)(e)),c=[...r.matchAll(/\(([^()]*)\)/g)].filter(([,e])=>o.some(t=>0===t.localeCompare(e??"",void 0,{sensitivity:"accent"}))).map(([,e])=>`(${e})`);return`${s}${c.length>0?` ${c.join(" ")}`:""}`}])},353273,e=>{"use strict";var t=e.i(882844),i=e.i(635157);let n={Llm:"llm",TextToImage:"text-to-image",TextToVideo:"text-to-video",ImageToVideo:"image-to-video",TextToSpeech:"text-to-speech",ImageEditing:"image-editing"},a=i.z.object({id:i.z.string(),name:i.z.string(),slug:i.z.string()}),l=i.z.object({id:i.z.string(),slug:i.z.string(),name:i.z.string(),model_creator:a,evaluations:i.z.record(i.z.string(),(0,t.$)().nullable()).optional(),openrouter_api_id:i.z.string().nullish(),huggingface_url:i.z.string().nullish(),pricing:i.z.object({price_1m_input_tokens:(0,t.$)().nullish(),price_1m_output_tokens:(0,t.$)().nullish(),price_1m_blended_3_to_1:(0,t.$)().nullish()}).nullish(),median_output_tokens_per_second:(0,t.$)().nullish(),median_time_to_first_token_seconds:(0,t.$)().nullish(),context_window:(0,t.D)().nullish()});i.z.object({data:i.z.array(l)});let r=i.z.object({style_category:i.z.string().nullish(),subject_matter_category:i.z.string().nullish(),format_category:i.z.string().nullish(),elo:(0,t.D)(),ci95:i.z.string(),appearances:(0,t.D)()}),s=i.z.object({model_type:i.z.literal(n.Llm),evaluations:i.z.record(i.z.string(),(0,t.$)().nullable())}),o=i.z.enum([n.TextToImage,n.TextToVideo,n.ImageToVideo,n.TextToSpeech,n.ImageEditing]),c=i.z.object({model_type:o,elo:(0,t.D)(),rank:(0,t.D)(),ci95:i.z.string(),appearances:(0,t.D)().nullable(),categories:i.z.array(r).optional(),elo_min:(0,t.D)().nullable().optional(),elo_max:(0,t.D)().nullable().optional()}),d=i.z.discriminatedUnion("model_type",[s,c]);i.z.object({aa_id:i.z.string(),aa_slug:i.z.string(),aa_name:i.z.string(),permaslug:i.z.string().nullable(),openrouter_slug:i.z.string().nullable(),heuristic_openrouter_slug:i.z.string().nullable(),benchmark_data:d,last_updated_at:(0,t.D)(),percentiles:i.z.object({intelligence_percentile:(0,t.D)().nullable(),coding_percentile:(0,t.D)().nullable(),agentic_percentile:(0,t.D)().nullable()}).optional()}),e.s(["f",0,n])},560832,e=>{"use strict";var t=e.i(427150);function i(e){return{intelligence:e.artificial_analysis_intelligence_index??null,coding:e.artificial_analysis_coding_index??null,agentic:e.artificial_analysis_agentic_index??null}}e.s(["o",0,66,"c",0,33,"m",0,i,"x",0,function(e){return`${(100*e).toFixed(1)}%`},"C",0,function(e){return 100*e},"l",0,function(e){return e>=.66?"green":e>=.33?"orange":"red"},"$",0,function(e){return e.length<=1?0:e.reduce((e,i,n)=>{let a=function(e){let i=e.percentiles;if(!i)return null;let n=[i.intelligence_percentile,i.coding_percentile,i.agentic_percentile].filter(t.f);return 0===n.length?null:n.reduce((e,t)=>e+t,0)/n.length}(i);return(0,t.f)(a)&&a>e.bestAvg?{bestIdx:n,bestAvg:a}:e},{bestIdx:0,bestAvg:-1/0}).bestIdx},"n",0,function(e){let t=i(e);return null!==t.intelligence||null!==t.coding||null!==t.agentic}])},610586,e=>{"use strict";let t={models:{label:"Models Arena",description:"Head-to-head comparison of AI model outputs across modalities",categories:{codecategories:{label:"Code Categories",description:"Aggregated stats across all code generation categories"},"3d":{label:"3D",description:"3D content generation"},dataviz:{label:"Data Visualization",description:"Data visualization generation"},gamedev:{label:"Game Development",description:"Game development code generation"},uicomponent:{label:"UI Component",description:"UI component generation quality"},logo:{label:"Logo",description:"Logo design generation"},image:{label:"Image",description:"Image generation quality"},video:{label:"Video",description:"Video generation quality"},slides:{label:"Slides",description:"Slide/presentation generation"},videotovideo:{label:"Video to Video",description:"Video-to-video transformation quality"},graphicdesign:{label:"Graphic Design",description:"Graphic design generation quality"},imagetoimage:{label:"Image to Image",description:"Image-to-image transformation quality"},svg:{label:"SVG",description:"SVG generation quality"}}},builders:{label:"Builders Arena",description:"Comparison of AI-powered app builders and coding agents",categories:{mobile:{label:"Mobile",description:"AI builder mobile app generation"},"native-android":{label:"Native Android",description:"AI builder native Android app generation"}}},agents:{label:"Agents Arena",description:"Agentic coding workflows evaluated end-to-end",categories:{agon_webapps:{label:"Agon Web Apps",description:"Agon web application development"},mobileapps:{label:"Mobile Apps",description:"Agentic mobile application development"},nativeapps:{label:"Native Apps",description:"Agentic native application development"},fullstack:{label:"Full Stack",description:"Full stack development workflows"}}}},i=["codecategories","uicomponent","gamedev","dataviz","3d","image","video","svg"],n=t.models,a=n?i.map(e=>({type:`da-${e}`,label:`${n.categories[e]?.label??e} ELO`,daKey:`models-${e}`})):[];({...Object.fromEntries(Object.values(t).flatMap(e=>Object.entries(e.categories).map(([e,t])=>[t.label,e]))),"3D Design":"3d","Game Dev":"gamedev"}),e.s(["h",0,a,"Z",0,i,"I",0,function(e){return t[e]?.label??e},"V",0,function(e,i){return t[e]?.categories[i]?.label??i.replaceAll(/\b([a-z])/g,e=>e.toUpperCase())}])},112252,286983,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(354896),a=e.i(139697),l=e.i(16043);let r=(0,l.createContext)(!1);function s(){return(0,l.useContext)(r)}e.s(["Z",0,function(e){let n,a,s,o,c=(0,i.c)(11),{children:d,trailing:u}=e;c[0]!==d?(n=l.Children.toArray(d),c[0]=d,c[1]=n):n=c[1];let m=n.length>=2;return c[2]!==d||c[3]!==m?(a=m?(0,t.jsx)("div",{className:"grid min-w-0 flex-1 auto-cols-auto grid-flow-col items-center gap-2 @max-xs:gap-1.5",children:d}):d,c[2]=d,c[3]=m,c[4]=a):a=c[4],c[5]!==m||c[6]!==a?(s=(0,t.jsx)(r.Provider,{value:m,children:a}),c[5]=m,c[6]=a,c[7]=s):s=c[7],c[8]!==s||c[9]!==u?(o=(0,t.jsx)("div",{className:"@container",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 @max-xs:gap-1.5",children:[s,u]})}),c[8]=s,c[9]=u,c[10]=o):o=c[10],o},"Y",0,s],286983),e.s(["f",0,function(e){let l,r,o,c,d,u,m,g=(0,i.c)(17);g[0]!==e?({children:l,hasChevron:o,...r}=e,g[0]=e,g[1]=l,g[2]=r,g[3]=o):(l=g[1],r=g[2],o=g[3]);let p=void 0===o||o,f=s(),h=f?"min-w-0 grow":"shrink-0";return g[4]!==p||g[5]!==f?(c=function({isFill:e,hasChevron:t}){if(e)return t?"between":"start"}({isFill:f,hasChevron:p}),g[4]=p,g[5]=f,g[6]=c):c=g[6],g[7]!==l?(d="string"==typeof l?(0,t.jsx)("span",{className:"min-w-0 truncate",children:l}):l,g[7]=l,g[8]=d):d=g[8],g[9]!==p?(u=p&&(0,t.jsx)(n.f,{"aria-hidden":!0}),g[9]=p,g[10]=u):u=g[10],g[11]!==r||g[12]!==h||g[13]!==c||g[14]!==d||g[15]!==u?(m=(0,t.jsxs)(a.Button,{variant:"outline",size:"sm",className:h,align:c,...r,children:[d,u]}),g[11]=r,g[12]=h,g[13]=c,g[14]=d,g[15]=u,g[16]=m):m=g[16],m}],112252)},359544,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(16043),a=e.i(547322),l=e.i(193461),r=e.i(217411),s=e.i(378318);e.s(["f",0,function(e){let o,c,d,u,m,g,p,f=(0,i.c)(28),{title:h,trigger:x,options:v,value:b,onValueChange:y,shouldApplyCurrentValue:j}=e,_=void 0!==j&&j,[k,w]=(0,n.useState)(!1),[N,A]=(0,n.useState)(b),P=(0,n.useRef)(null),L=(0,n.useRef)(!1),S=(0,n.useId)(),C=(0,n.useRef)(null);f[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>C.current?.querySelector('[role="radio"][data-checked]')??null,f[0]=o):o=f[0];let z=o,T=()=>{let e=P.current;return P.current=null,null!==e&&y(e),e},I=e=>{e&&A(T()??b),w(e)},M=e=>{P.current=e!==b||_?e:null,w(!1)},R=e=>{e||T()},D=r.j;f[1]!==x?(c=(0,t.jsx)(r.V,{render:x}),f[1]=x,f[2]=c):c=f[2];let V=r.U;f[3]!==h||f[4]!==S?(d=(0,t.jsx)(s.f,{title:h,titleId:S}),f[3]=h,f[4]=S,f[5]=d):d=f[5];let q=l.x,E=e=>{"string"==typeof e&&(A(e),L.current||M(e))},F=()=>{L.current=!1},O=e=>{L.current=e.key.startsWith("Arrow"),("Enter"===e.key||" "===e.key)&&(e.preventDefault(),M(N))},$=v.map((e,i)=>(0,t.jsx)(a.f,{value:e.value,label:e.label,accessibleLabel:e.accessibleLabel,labelId:`${S}-option-${i}`,isSelected:e.value===N,onSelect:()=>{A(e.value),M(e.value)}},e.value));return f[6]!==q||f[7]!==N||f[8]!==E||f[9]!==F||f[10]!==O||f[11]!==$||f[12]!==S?(u=(0,t.jsx)(q,{ref:C,"aria-labelledby":S,value:N,onValueChange:E,onKeyUpCapture:F,onKeyDownCapture:O,className:"gap-0 px-2",children:$}),f[6]=q,f[7]=N,f[8]=E,f[9]=F,f[10]=O,f[11]=$,f[12]=S,f[13]=u):u=f[13],f[14]!==d||f[15]!==u?(m=(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[d,u]}),f[14]=d,f[15]=u,f[16]=m):m=f[16],f[17]!==V||f[18]!==z||f[19]!==m?(g=(0,t.jsx)(V,{side:"bottom",showCloseButton:!1,keepMounted:!1,initialFocus:z,className:"px-0 pt-3",children:m}),f[17]=V,f[18]=z,f[19]=m,f[20]=g):g=f[20],f[21]!==D||f[22]!==I||f[23]!==R||f[24]!==k||f[25]!==g||f[26]!==c?(p=(0,t.jsxs)(D,{swipeDirection:"down",open:k,onOpenChange:I,onOpenChangeComplete:R,children:[c,g]}),f[21]=D,f[22]=I,f[23]=R,f[24]=k,f[25]=g,f[26]=c,f[27]=p):p=f[27],p}])},547322,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(872635),a=e.i(136562),l=e.i(193461);e.s(["f",0,function(e){let r,s,o,c,d,u,m=(0,i.c)(20),{value:g,label:p,accessibleLabel:f,labelId:h,isSelected:x,onSelect:v}=e,b=x&&"bg-selected-bg";m[0]!==b?(r=(0,a.f)("flex min-h-11 cursor-pointer items-center gap-3 rounded-xl px-2 text-body select-none","transition-colors duration-quick active:bg-card-hover has-focus-visible:shadow-focus",b),m[0]=b,m[1]=r):r=m[1];let y=void 0===f?h:void 0;return m[2]!==f||m[3]!==y||m[4]!==g?(s=(0,t.jsx)("span",{className:"sr-only",children:(0,t.jsx)(l.a,{value:g,"aria-label":f,"aria-labelledby":y})}),m[2]=f,m[3]=y,m[4]=g,m[5]=s):s=m[5],m[6]!==p||m[7]!==h?(o=(0,t.jsx)("span",{id:h,className:"min-w-0 flex-1 text-foreground",children:p}),m[6]=p,m[7]=h,m[8]=o):o=m[8],m[9]!==x?(c=x&&(0,t.jsx)(n.f,{"aria-hidden":!0}),m[9]=x,m[10]=c):c=m[10],m[11]!==c?(d=(0,t.jsx)("span",{className:"flex h-4 w-7 shrink-0 items-center justify-center text-primary",children:c}),m[11]=c,m[12]=d):d=m[12],m[13]!==v||m[14]!==r||m[15]!==s||m[16]!==o||m[17]!==d||m[18]!==g?(u=(0,t.jsxs)("div",{role:"presentation","data-option-value":g,onClick:v,className:r,children:[s,o,d]}),m[13]=v,m[14]=r,m[15]=s,m[16]=o,m[17]=d,m[18]=g,m[19]=u):u=m[19],u}])},193461,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(16043),a=e.i(82153),l=e.i(533124),r=e.i(367898),s=e.i(115370),o=e.i(132887),c=e.i(111407),d=e.i(240070),u=e.i(825086);let m={checked:e=>e?{"data-checked":""}:{"data-unchecked":""},...d.f,...u.s};var g=e.i(729253),p=e.i(811673),f=e.i(93836),h=e.i(225421),x=e.i(509208),v=e.i(604672),b=e.i(141436),y=e.i(176322),j=e.i(446443),_=e.i(76129),k=e.i(599096),w=e.i(461430);let N=n.createContext(void 0);var A=e.i(442291),P=e.i(107397);let L=n.createContext(void 0),S=n.forwardRef(function(e,i){let{render:d,className:u,disabled:P=!1,readOnly:S=!1,required:C=!1,"aria-labelledby":z,value:T,inputRef:I,nativeButton:M=!1,id:R,style:D,...V}=e,q=n.useContext(N),{disabled:E,readOnly:F,required:O,form:$,checkedValue:G,touched:B=!1,validation:K,name:H,setCheckedValue:W=s.x,setTouched:U=s.x,registerInputRef:Z=s.x}=q??{},{setTouched:Q,setFilled:Y,state:J,disabled:X}=(0,b.f)(),ee=(0,j.f)(),{labelId:et,getDescriptionProps:ei}=(0,_.f)(),en=X||ee.disabled||E||P,ea=F||S,el=O||C,er=q?G===T:""===T,es=n.useRef(null),eo=(0,y.f)(en,es),ec=n.useRef(null),ed=K?.registerInput,eu=n.useCallback(e=>ed?.(e,{controlRef:es,value:void 0}),[ed]),em=(0,a.A)(I,ec,Z,eu);(0,l.f)(()=>{ec.current?.checked&&Y(!0)},[Y]),(0,l.f)(()=>{if(ec.current){if(en&&er)return void Z(null);Z(ec.current)}},[er,en,Z]);let eg=(0,p.f)(),ep=(0,w.f)({id:R}),ef=M?void 0:ep,eh={role:"radio","aria-checked":er,"aria-labelledby":(0,k.f)(z,et,ec,!M,ef,V["aria-label"]),[x.f]:er?"":void 0,id:M?ep:eg,onKeyDown(e){"Enter"===e.key&&e.preventDefault()},onClick(e){if(e.defaultPrevented||en||ea)return;e.preventDefault();let t=ec.current;t&&(0,g.f)(t,e)},onFocus(e){eo(!0),e.defaultPrevented||en||ea||!B||(ec.current?.click(),U(!1))},onBlur(){q||eo(!1)}},{getButtonProps:ex,buttonRef:ev}=(0,h.f)({disabled:en,native:M,composite:!1}),eb={type:"radio",ref:em,form:$,id:ef,name:H,tabIndex:-1,style:H?r.L:r.p,"aria-hidden":!0,...void 0!==T?{value:(0,A.f)(T)}:s.w,disabled:en,checked:er,required:el,readOnly:ea,onChange(e){if(e.nativeEvent.defaultPrevented||en||ea||void 0===T)return;let t=(0,o.j)(c.f.none,e.nativeEvent);W(T,t),t.isCanceled||Q(!0)},onClick(e){e.stopPropagation()},onFocus(){es.current?.focus()}},ey=n.useMemo(()=>({...J,required:el,disabled:en,readOnly:ea,checked:er}),[J,en,ea,er,el]),ej=void 0!==q,e_=[i,es,ev],ek=[eh,V,ex,ei,K?e=>K.getValidationProps(en,e):s.w],ew=(0,f.a)("span",e,{enabled:!ej,state:ey,ref:e_,props:ek,stateAttributesMapping:m});return(0,t.jsxs)(L.Provider,{value:ey,children:[ej?(0,t.jsx)(v.f,{tag:"span",render:d,className:u,style:D,state:ey,refs:e_,props:ek,stateAttributesMapping:m}):ew,(0,t.jsx)("input",{...eb,suppressHydrationWarning:!0})]})});var C=e.i(692933),z=e.i(288646);let T=n.forwardRef(function(e,t){let{render:i,className:a,style:l,keepMounted:r=!1,...s}=e,o=function(){let e=n.useContext(L);if(void 0===e)throw Error((0,P.f)(52));return e}(),c=o.checked,{mounted:d,transitionStatus:u,setMounted:g}=(0,z.f)(c),p={...o,transitionStatus:u},h=n.useRef(null),x=(0,f.a)("span",e,{ref:[t,h],state:p,props:s,stateAttributesMapping:m});return((0,C.f)({batch:!0,enabled:!c,open:c,ref:h,onComplete(){c||g(!1)}}),r||d)?x:null});e.s(["Indicator",0,T,"Root",0,S],401506);var I=e.i(401506),I=I,M=I,R=e.i(389475),D=e.i(815922),V=e.i(393298),q=e.i(597233),E=e.i(587135),F=e.i(967090);Object.keys(u.t);let O=n.createContext(void 0);var $=e.i(621441),G=e.i(957854);let B=[q.B],K=n.forwardRef(function(e,i){let{render:r,className:s,disabled:o,readOnly:c,required:d,onValueChange:m,value:g,defaultValue:f,form:h,name:x,inputRef:v,id:y,style:j,...k}=e,{setTouched:w,setFocused:A,validationMode:L,name:S,disabled:C,state:z,validation:T,setDirty:I,setFilled:M,validityData:q}=(0,b.f)(),{labelId:K}=(0,_.f)(),{clearErrors:H,elementRef:W}=(0,$.f)(),U=function(e=!1){let t=n.useContext(O);if(!t&&!e)throw Error((0,P.f)(86));return t}(!0),Z=C||o,Q=S??x,Y=(0,p.f)(y),[J,X]=(0,R.f)({controlled:g,default:f,name:"RadioGroup",state:"value"}),[ee,et]=n.useState(!1),ei=(0,D.f)((e,t)=>{m?.(e,t),t.isCanceled||X(e)}),en=T.getInputControl,ea=n.useMemo(()=>({get current(){return en()}}),[en]),el=n.useRef(null),er=n.useRef(null),es=(0,a.A)(el,v),eo=n.useRef(es),ec=(0,D.f)(e=>{(el.current!==e||eo.current!==es)&&(eo.current=es,es?.(e))});(0,l.f)(()=>{ec(el.current)},[es,ec]);let ed=(0,D.f)(e=>{if(e){if(!e.disabled){er.current||(er.current=e);let t=el.current;(e.checked||null==t||t.disabled)&&ec(e)}return()=>{er.current===e&&(er.current=null),el.current===e&&ec(null)}}}),eu=(0,D.f)(()=>{let e=W.current;if(!e)return J??null;for(let t of T.registeredInputs.keys())if(t.checked&&!t.matches(":disabled")&&(!e||t.form===e||null===t.form&&!t.hasAttribute("form")))return J??null;return null});(0,F.f)(ea,Y,J??null,eu,!Z,x),(0,G.f)(J,()=>{H(Q),I(J!==q.initialValue),M(null!=J),T.change(J);let e=er.current;null==J&&e&&!e.disabled&&ec(e)});let em=K??U?.legendId,eg={...z,disabled:Z??!1,required:d??!1,readOnly:c??!1},ep=n.useMemo(()=>({checkedValue:J,disabled:Z,form:h,validation:T,name:Q,readOnly:c,registerInputRef:ed,required:d,setCheckedValue:ei,setTouched:et,touched:ee}),[J,Z,h,T,Q,c,ed,d,ei,et,ee]);return(0,t.jsx)(N.Provider,{value:ep,children:(0,t.jsx)(E.f,{render:r,className:s,style:j,state:eg,props:[{id:y,role:"radiogroup","aria-required":d||void 0,"aria-disabled":Z||void 0,"aria-readonly":c||void 0,"aria-labelledby":em,onBlur(e){(0,V.I)(e.currentTarget,e.relatedTarget)||(et(!1),w(!0),A(!1),"onBlur"===L&&T.commit(J))},onKeyDownCapture(e){e.key.startsWith("Arrow")&&et(!0)}},k,e=>T.getValidationProps(Z??!1,e)],refs:[i],stateAttributesMapping:u.s,enableHomeAndEndKeys:!1,modifierKeys:B})})});var H=e.i(136562);e.s(["x",0,function(e){let n,a,l,r,s,o=(0,i.c)(10);return o[0]!==e?({className:n,ref:l,...a}=e,o[0]=e,o[1]=n,o[2]=a,o[3]=l):(n=o[1],a=o[2],l=o[3]),o[4]!==n?(r=(0,H.f)("grid gap-2",n),o[4]=n,o[5]=r):r=o[5],o[6]!==a||o[7]!==l||o[8]!==r?(s=(0,t.jsx)(K,{className:r,...a,ref:l}),o[6]=a,o[7]=l,o[8]=r,o[9]=s):s=o[9],s},"a",0,function(e){let n,a,l,r,s,o,c=(0,i.c)(11);return c[0]!==e?({className:n,ref:l,...a}=e,c[0]=e,c[1]=n,c[2]=a,c[3]=l):(n=c[1],a=c[2],l=c[3]),c[4]!==n?(r=(0,H.f)("flex shrink-0 items-center justify-center aspect-square h-4 w-4 rounded-full border border-foreground/30 bg-muted text-primary cursor-pointer hover:border-foreground/50 data-[checked]:border-primary ring-offset-background focus:outline-none focus-visible:border-focus-border focus-visible:shadow-focus data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",n),c[4]=n,c[5]=r):r=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(I.Indicator,{keepMounted:!0,className:"flex items-center justify-center transition-[scale,opacity] duration-quick ease-smooth-out motion-reduce:transition-opacity motion-reduce:data-[unchecked]:scale-100 data-[unchecked]:scale-(--scale-large) data-[unchecked]:opacity-0",children:(0,t.jsx)("span",{"aria-hidden":!0,className:"size-2 rounded-full bg-current forced-colors:bg-[CanvasText]"})}),c[6]=s):s=c[6],c[7]!==a||c[8]!==l||c[9]!==r?(o=(0,t.jsx)(M.Root,{ref:l,className:r,...a,children:s}),c[7]=a,c[8]=l,c[9]=r,c[10]=o):o=c[10],o}],193461)},378318,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(612927),a=e.i(199168),l=e.i(139697),r=e.i(217411);e.s(["f",0,function(e){let s,o,c,d,u,m,g=(0,i.c)(12),{title:p,titleId:f}=e,h=(0,a.o)();return g[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)("div",{"aria-hidden":!0,className:"mx-auto h-1 w-10 rounded-full bg-foreground/20"}),g[0]=s):s=g[0],g[1]!==p||g[2]!==f?(o=(0,t.jsx)(r.L,{id:f,children:p}),g[1]=p,g[2]=f,g[3]=o):o=g[3],g[4]!==h?(c=h("Close"),g[4]=h,g[5]=c):c=g[5],g[6]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(n.X,{"aria-hidden":!0}),g[6]=d):d=g[6],g[7]!==c?(u=(0,t.jsx)(r.O,{render:(0,t.jsx)(l.Button,{variant:"ghost",size:"icon",shape:"pill",touchTarget:"below-sm","aria-label":c,children:d})}),g[7]=c,g[8]=u):u=g[8],g[9]!==o||g[10]!==u?(m=(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[s,(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 pr-2 pl-4",children:[o,u]})]}),g[9]=o,g[10]=u,g[11]=m):m=g[11],m}])},305874,851296,974558,e=>{"use strict";var t=e.i(297272),i=e.i(560832);e.s(["f",0,function(e,n,a){return a?(0,i.x)(n):(0,t.B)(n,{locale:e,fractionDigits:1})??"—"}],305874);var n=e.i(659350),a=e.i(663456),l=e.i(112252),r=e.i(359544),s=e.i(326e3),o=e.i(199168);function c(e){let t,i,c,u,m,g,p,f,h,x,v,b,y,j,_,k,w,N=(0,a.c)(43),{options:A,value:P,onValueChange:L}=e,S=(0,o.o)();if(N[0]!==S||N[1]!==L||N[2]!==A||N[3]!==P){x=Symbol.for("react.early_return_sentinel");e:{let e,a;if(N[14]!==P?(e=e=>e.value===P,N[14]=P,N[15]=e):e=N[15],void 0===(c=A.find(e))){x=null;break e}N[16]!==S?(a=S("Model variant"),N[16]=S,N[17]=a):a=N[17];let o=(0,n.jsx)(r.f,{title:a,trigger:(0,n.jsx)(l.f,{"aria-label":S("Model variant: {label}",{label:c.label}),className:"min-w-0",children:c.label}),options:A,value:P,onValueChange:L});N[18]!==o?(h=(0,n.jsx)("div",{className:"flex min-w-0 md:hidden",children:o}),N[18]=o,N[19]=h):h=N[19],f="hidden md:block",i=s.Select,g=P,p=L,t=s.SelectTrigger,u="w-auto",m=S("Model variant: {label}",{label:c.label})}N[0]=S,N[1]=L,N[2]=A,N[3]=P,N[4]=t,N[5]=i,N[6]=c,N[7]=u,N[8]=m,N[9]=g,N[10]=p,N[11]=f,N[12]=h,N[13]=x}else t=N[4],i=N[5],c=N[6],u=N[7],m=N[8],g=N[9],p=N[10],f=N[11],h=N[12],x=N[13];return x!==Symbol.for("react.early_return_sentinel")?x:(N[20]!==c.label?(v=(0,n.jsx)(s.SelectValue,{children:c.label}),N[20]=c.label,N[21]=v):v=N[21],N[22]!==t||N[23]!==u||N[24]!==m||N[25]!==v?(b=(0,n.jsx)(t,{className:u,"aria-label":m,children:v}),N[22]=t,N[23]=u,N[24]=m,N[25]=v,N[26]=b):b=N[26],N[27]!==A?(y=A.map(d),N[27]=A,N[28]=y):y=N[28],N[29]!==y?(j=(0,n.jsx)(s.SelectContent,{children:y}),N[29]=y,N[30]=j):j=N[30],N[31]!==i||N[32]!==j||N[33]!==g||N[34]!==p||N[35]!==b?(_=(0,n.jsxs)(i,{value:g,onValueChange:p,children:[b,j]}),N[31]=i,N[32]=j,N[33]=g,N[34]=p,N[35]=b,N[36]=_):_=N[36],N[37]!==_||N[38]!==f?(k=(0,n.jsx)("div",{className:f,children:_}),N[37]=_,N[38]=f,N[39]=k):k=N[39],N[40]!==k||N[41]!==h?(w=(0,n.jsxs)(n.Fragment,{children:[h,k]}),N[40]=k,N[41]=h,N[42]=w):w=N[42],w)}function d(e){return(0,n.jsx)(s.SelectItem,{value:e.value,children:e.label},e.value)}function u(e){return{value:e,label:e}}e.s(["f",0,c],851296),e.s(["G",0,function(e){let t,i,l=(0,a.c)(6),{variantList:r,selectedVariant:s,onVariantChange:o}=e;return r.length<=1?null:(l[0]!==r?(t=r.map(u),l[0]=r,l[1]=t):t=l[1],l[2]!==o||l[3]!==s||l[4]!==t?(i=(0,n.jsx)(c,{options:t,value:s,onValueChange:o}),l[2]=o,l[3]=s,l[4]=t,l[5]=i):i=l[5],i)},"M",0,function(e){let t=new Map;for(let i of e){let e=t.get(i.display_name);e?(e.total+=i.elo,e.count+=1):t.set(i.display_name,{total:i.elo,count:1})}return[...t.entries()].toSorted(([,e],[,t])=>t.count-e.count||t.total/t.count-e.total/e.count).map(([e])=>e)}],974558)},268097,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(136562),a=e.i(797521);e.i(707060);var l=e.i(196991),r=e.i(153746),s=e.i(16043);let o=!1,c=new Set,d=e=>(c.add(e),()=>{c.delete(e)}),u=()=>o,m=()=>!1;function g(){return(0,s.useSyncExternalStore)(d,u,m)}function p(e){return`repeat(${e}, minmax(280px, 1fr))`}let f=(0,s.createContext)({mobileColumnLabels:[],columnCount:0}),h=(0,s.createContext)(null);function x(e){let a,l,r,o,c,d,u,m,g=(0,i.c)(23),{gridTemplate:p,gridRowTemplate:f,allowOverflow:x,children:v}=e,b=(0,s.useRef)(null),y=(0,s.useContext)(h);g[0]!==x||g[1]!==y?(a=()=>{let e=b.current;if(e&&y&&!x)return y.register(e),()=>{y.unregister(e)}},l=[y,x],g[0]=x,g[1]=y,g[2]=a,g[3]=l):(a=g[2],l=g[3]),(0,s.useEffect)(a,l);let j=x?void 0:"";g[4]!==x||g[5]!==y?(r=e=>{x||y?.notify(e.currentTarget)},g[4]=x,g[5]=y,g[6]=r):r=g[6];let _=!x&&"md:overflow-x-auto",k=!x&&"scrollbar-hide";g[7]!==_||g[8]!==k?(o=(0,n.f)("flex flex-col",_,k),g[7]=_,g[8]=k,g[9]=o):o=g[9];let w=x?"":void 0;return g[10]===Symbol.for("react.memo_cache_sentinel")?(c=(0,n.f)("flex flex-col md:grid md:min-w-min md:gap-x-3 md:pr-2","relative grid-cols-(--compare-grid-template) grid-rows-(--compare-grid-rows)"),g[10]=c):c=g[10],g[11]!==f||g[12]!==p?(d={"--compare-grid-template":p,"--compare-grid-rows":f},g[11]=f,g[12]=p,g[13]=d):d=g[13],g[14]!==v||g[15]!==d||g[16]!==w?(u=(0,t.jsx)("div",{"data-synced-translate-target":w,className:c,"data-allow-inline-style":!0,style:d,children:v}),g[14]=v,g[15]=d,g[16]=w,g[17]=u):u=g[17],g[18]!==u||g[19]!==j||g[20]!==r||g[21]!==o?(m=(0,t.jsx)("div",{ref:b,"data-synced-scroll-wrapper":j,onScroll:r,className:o,children:u}),g[18]=u,g[19]=j,g[20]=r,g[21]=o,g[22]=m):m=g[22],m}let v="var(--cards-sticky-bottom-px, 174px)",b=`calc(${v} + 3.5rem)`,y=`calc(${b} + var(--spacing) * 5 + var(--text-lg) * var(--text-lg--line-height))`;function j(e){let a,l,r,s,o,c=(0,i.c)(18),{id:d,title:u,rightSlot:m,subsection:g}=e,p=g?b:v,f=g?"h3":"h2";c[0]!==p?(a={"--sticky-top":p},c[0]=p,c[1]=a):a=c[1];let h=g?"z-[55]":"z-fixed",x=g?"px-4 py-2 md:px-5 md:py-2.5":"px-4 py-3 md:px-5 md:py-4",y=!g&&"border-b border-border";c[2]!==h||c[3]!==x||c[4]!==y?(l=(0,n.f)("flex items-center gap-3 bg-background top-(--sticky-top) scroll-mt-(--sticky-top)",h,x,"md:sticky",y),c[2]=h,c[3]=x,c[4]=y,c[5]=l):l=c[5];let j=g?"text-base md:text-lg":"text-lg md:text-xl";return c[6]!==j?(r=(0,n.f)("font-semibold text-foreground",j),c[6]=j,c[7]=r):r=c[7],c[8]!==f||c[9]!==r||c[10]!==u?(s=(0,t.jsx)(f,{className:r,children:u}),c[8]=f,c[9]=r,c[10]=u,c[11]=s):s=c[11],c[12]!==d||c[13]!==m||c[14]!==a||c[15]!==l||c[16]!==s?(o=(0,t.jsxs)("div",{id:d,"data-allow-inline-style":!0,style:a,className:l,children:[s,m]}),c[12]=d,c[13]=m,c[14]=a,c[15]=l,c[16]=s,c[17]=o):o=c[17],o}function _(e){let a,l,r,o,c,d,u,m,g=(0,i.c)(19),{title:h,stickyTop:x}=e,v=void 0===x?b:x,{columnCount:y}=(0,s.useContext)(f);g[0]!==y?(a=p(y),g[0]=y,g[1]=a):a=g[1];let j=a;return g[2]!==h?(l=(0,t.jsx)("div",{className:"z-[55] bg-muted px-4 py-2 text-sm font-medium text-muted-foreground md:hidden",children:h}),g[2]=h,g[3]=l):l=g[3],g[4]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.f)("z-sticky hidden bg-background text-sm font-medium text-muted-foreground","md:sticky md:grid md:min-w-min md:gap-x-3","top-(--sticky-top) grid-cols-(--compare-grid-template)"),g[4]=r):r=g[4],g[5]!==j||g[6]!==v?(o={"--sticky-top":v,"--compare-grid-template":j},g[5]=j,g[6]=v,g[7]=o):o=g[7],g[8]!==y?(c=Array.from({length:y}),g[8]=y,g[9]=c):c=g[9],g[10]!==c||g[11]!==h?(d=c.map((e,i)=>(0,t.jsx)("div",{className:"bg-muted px-5 py-2",children:0===i?h:null},i)),g[10]=c,g[11]=h,g[12]=d):d=g[12],g[13]!==o||g[14]!==d?(u=(0,t.jsx)("div",{"data-slot":"compare-subsection-strip","data-synced-translate-target":"",className:r,"data-allow-inline-style":!0,style:o,children:d}),g[13]=o,g[14]=d,g[15]=u):u=g[15],g[16]!==l||g[17]!==u?(m=(0,t.jsxs)(t.Fragment,{children:[l,u]}),g[16]=l,g[17]=u,g[18]=m):m=g[18],m}e.s(["BELOW_SUBSECTION_HEADER_STICKY_TOP",0,y,"DataRow",0,function(e){let o,c,d,u,m,p,h=(0,i.c)(31),{label:x,values:v,isFirst:b,bestIndices:y,emptyIndices:j,stacked:_,hideLabel:k}=e,w=void 0!==_&&_,N=void 0!==k&&k,A=(0,a.f)(),{mobileColumnLabels:P}=(0,s.useContext)(f),L=g();h[0]!==y||h[1]!==L?(o=L?y??[]:[],h[0]=y,h[1]=L,h[2]=o):o=h[2];let S=o;h[3]!==j?(c=j??[],h[3]=j,h[4]=c):c=h[4];let C=c,z=!b&&"md:border-t md:border-border",T=!b&&"border-t border-border md:border-t-0";if(h[5]!==T?(d=(0,n.f)("col-span-full flex flex-col gap-2 px-4 py-3 md:grid md:grid-cols-subgrid md:gap-x-3 md:gap-y-0 md:px-0 md:py-0",T),h[5]=T,h[6]=d):d=h[6],h[7]!==z||h[8]!==C||h[9]!==A||h[10]!==N||h[11]!==x||h[12]!==P||h[13]!==w||h[14]!==v||h[15]!==S){let e;h[17]!==z||h[18]!==C||h[19]!==A||h[20]!==N||h[21]!==x||h[22]!==P||h[23]!==w||h[24]!==S?(e=(e,i)=>{let a=C.includes(i),s=S.includes(i);return(0,t.jsxs)("div",{className:(0,n.f)("rounded-md border border-border bg-background px-3 py-2.5 text-sm md:rounded-none md:border-0 md:px-5 md:py-3",!a&&z,a&&"md:px-0 md:py-0",!a&&!s&&"md:bg-transparent",a&&"md:bg-background",s&&"border-positive/30 bg-positive/10 md:border-border md:bg-positive/10",!w&&!a&&"md:flex md:flex-row md:flex-wrap md:items-center md:justify-between md:gap-x-3 md:gap-y-1 md:[&>:last-child]:ml-auto"),children:[(0,t.jsx)("div",{className:"mb-1 truncate text-xs font-medium text-muted-foreground md:hidden",children:P[i]??(0,t.jsxs)(l.T,{children:["Model ",(0,t.jsx)(r.d,{children:A.number(i+1,{preset:"integer"})})]})}),!a&&!N&&(0,t.jsx)("div",{"data-slot":"compare-row-label",className:(0,n.f)("mb-1 text-sm text-muted-foreground",!w&&"md:mb-0 md:shrink-0 md:whitespace-nowrap"),children:x}),e]},i)},h[17]=z,h[18]=C,h[19]=A,h[20]=N,h[21]=x,h[22]=P,h[23]=w,h[24]=S,h[25]=e):e=h[25],u=v.map(e),h[7]=z,h[8]=C,h[9]=A,h[10]=N,h[11]=x,h[12]=P,h[13]=w,h[14]=v,h[15]=S,h[16]=u}else u=h[16];return h[26]!==u?(m=(0,t.jsx)("div",{className:"grid grid-cols-1 gap-2 md:contents",children:u}),h[26]=u,h[27]=m):m=h[27],h[28]!==d||h[29]!==m?(p=(0,t.jsx)("div",{"data-slot":"compare-data-row",className:d,children:m}),h[28]=d,h[29]=m,h[30]=p):p=h[30],p},"SectionGrid",0,function(e){let a,l,r,o,c,d,u,m,g=(0,i.c)(27),{columnCount:h,mobileColumnLabels:v,allowOverflow:b,gridRowTemplate:y,children:k}=e;g[0]!==k?(a=function(e){let t,i,n={sectionHeader:null,groups:[]},a={subHeader:null,rows:[]},l=()=>{(a.subHeader||a.rows.length>0)&&n.groups.push(a)};for(let r of(t=[],(i=e=>{if(null!=e&&!1!==e&&!0!==e){if(Array.isArray(e)){for(let t of e)i(t);return}if((0,s.isValidElement)(e)){if(e.type===s.Fragment)return void i(e.props.children);t.push(e)}}})(e),t)){if(r.type===j){n.sectionHeader=r;continue}if(r.type===_){l(),a={subHeader:r,rows:[]};continue}a.rows.push(r)}return l(),0===n.groups.length&&n.groups.push({subHeader:null,rows:[]}),n}(k),g[0]=k,g[1]=a):a=g[1];let w=a;g[2]!==h?(l=p(h),g[2]=h,g[3]=l):l=g[3];let N=l;g[4]!==v?(r=v??[],g[4]=v,g[5]=r):r=g[5],g[6]!==h||g[7]!==r?(o={mobileColumnLabels:r,columnCount:h},g[6]=h,g[7]=r,g[8]=o):o=g[8];let A=o,P=!b&&"overflow-clip";g[9]!==P?(c=(0,n.f)("flex flex-col bg-background",P),g[9]=P,g[10]=c):c=g[10];let L=w.sectionHeader;if(g[11]!==b||g[12]!==y||g[13]!==N||g[14]!==w.groups){let e;g[16]!==b||g[17]!==y||g[18]!==N?(e=(e,i)=>(0,t.jsxs)(s.Fragment,{children:[e.subHeader,e.rows.length>0&&(0,t.jsx)(x,{gridTemplate:N,gridRowTemplate:y,allowOverflow:b,children:e.rows})]},i),g[16]=b,g[17]=y,g[18]=N,g[19]=e):e=g[19],d=w.groups.map(e),g[11]=b,g[12]=y,g[13]=N,g[14]=w.groups,g[15]=d}else d=g[15];return g[20]!==w.sectionHeader||g[21]!==c||g[22]!==d?(u=(0,t.jsxs)("div",{className:c,children:[L,d]}),g[20]=w.sectionHeader,g[21]=c,g[22]=d,g[23]=u):u=g[23],g[24]!==A||g[25]!==u?(m=(0,t.jsx)(f.Provider,{value:A,children:u}),g[24]=A,g[25]=u,g[26]=m):m=g[26],m},"SectionHeader",0,j,"SubSectionHeader",0,_,"SyncedScrollProvider",0,function({children:e,onScrollLeftChange:i}){let n=(0,s.useRef)(new Set),a=(0,s.useRef)(!1),l=(0,s.useRef)(new Map),r=(0,s.useRef)(null),o=(0,s.useRef)(null),[c,d]=(0,s.useState)(!1),[u,m]=(0,s.useState)(!1),g=(0,s.useMemo)(()=>{let e=({source:e,left:t,maxLeft:l})=>{if(!a.current){a.current=!0,o.current=t;try{for(let i of[...n.current].filter(i=>i!==e&&Math.abs(i.scrollLeft-t)>.5))i.scrollLeft=t;d(t>4),m(t+4{e({source:t,left:t.scrollLeft,maxLeft:t.scrollWidth-t.clientWidth})},s=()=>{null===r.current&&(r.current=requestAnimationFrame(()=>{r.current=null;let e=n.current.values().next().value;e&&t(e)}))};return{register:i=>{n.current.add(i);let a=i.firstElementChild;if("u">typeof ResizeObserver&&a instanceof Element){let e=new ResizeObserver(s);e.observe(a),l.current.set(i,e)}let r=o.current;null===r?t(i):(i.scrollLeft=r,e({source:i,left:r,maxLeft:i.scrollWidth-i.clientWidth}))},unregister:e=>{n.current.delete(e);let t=l.current.get(e);t&&(t.disconnect(),l.current.delete(e))},notify:t,canScrollLeft:c,canScrollRight:u}},[c,u,i]);return(0,s.useEffect)(()=>{let e=()=>{let e=n.current.values().next().value;e&&g.notify(e)};return window.addEventListener("resize",e,{passive:!0}),()=>{window.removeEventListener("resize",e)}},[g]),(0,s.useEffect)(()=>()=>{null!==r.current&&(cancelAnimationFrame(r.current),r.current=null)},[]),(0,t.jsx)(h.Provider,{value:g,children:e})},"buildGridTemplate",0,p,"highlightBestStore",0,{get:()=>o,set:e=>{if(o!==e)for(let t of(o=e,c))t()}},"useHighlightBest",0,g])},62380,e=>{"use strict";var t=e.i(659350),i=e.i(481066),n=e.i(140691),a=e.i(427150),l=e.i(16043);function r(e,t,i){let n=[];if(e.forEach((e,t)=>{if(null==e)return;let a=Number(e);!Number.isFinite(a)||!(a<0)&&(0!==a||i?.includeZeroValues)&&n.push({index:t,num:a})}),n.length<2)return[];let a=[],l="min"===t?1/0:-1/0;for(let{index:e,num:i}of n){if("min"===t?il){a=[e],l=i;continue}i===l&&a.push(e)}return 1===a.length?a:[]}function s({visibleIndices:e,allModels:t,extract:i,dir:n,options:a}){return r(e.map((e,n)=>{let a=t[e];if(a)return i(a,n)}),n,a)}e.s(["c",0,function(e,t){return e.some((e,i)=>!!t(e,i))},"Y",0,function(e,t,i){let n=i[t];return n?.name??n?.slug??e.author},"$",0,function(e,i,n){return e.map(e=>{let a=i[e];return a?(0,t.jsx)(l.Fragment,{children:n(a,e)},e):(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"—"},e)})},"A",0,function(e){return(0,i.f)(e.short_name,{keepNote:!0})},"b",0,function({visibleIndices:e,allModels:t,extract:i,options:n}){return s({visibleIndices:e,allModels:t,extract:i,dir:"max",options:n})},"U",0,function(e){return(0,a.f)(e)&&(0,n.I)(e).gte(0)},"q",0,function(e,t,i){return s({visibleIndices:e,allModels:t,extract:i,dir:"min"})},"P",0,r])},938577,780713,399057,483183,557352,162115,e=>{"use strict";var t=e.i(16043);let i=(0,t.createContext)(!1);e.s(["p",0,i,"E",0,function(){return(0,t.useContext)(i)}],938577);var n=e.i(659350),a=e.i(663456),l=e.i(782143),r=e.i(138257),s=e.i(427150);e.i(707060);var o=e.i(288265),c=e.i(268097),d=e.i(435754),u=e.i(279496),m=e.i(970973),g=e.i(297272),p=e.i(293747),f=e.i(136562),h=e.i(326e3),x=e.i(751155),v=e.i(140691),b=e.i(667417),y=e.i(207298),j=e.i(387086),_=e.i(196991),k=e.i(919035),w=e.i(773151),N=e.i(917023),A=e.i(260344),P=e.i(924125),L=e.i(257723),S=e.i(472089),C=e.i(529809),z=e.i(99938),T=e.i(288087),I=e.i(305874),M=e.i(134611),R=e.i(706792);let D=new Set(["Input Price","Output Price","Cache Read"]),V=new Set(["Text Input"]);function q(e,t){let i=t.length>0&&t.every(e=>e===b.j.Image||e===b.j.Video);return null==e||!(0,v.I)(e).isZero()||!i}function E(e){let t=e.tiers?.filter(e=>(0,v.I)(e.price).gt(0))??[];if(0===t.length)return e;let i=[e,...t].toSorted((e,t)=>(0,v.I)(e.price).lt(t.price)?-1:+!!(0,v.I)(e.price).gt(t.price))[0];return i?{...e,price:i.price}:e}function F(e){return e.startsWith("/")?e:`/ ${e}`}e.s(["G",0,function(e,t){let i=E(t),a=function(e,t){let i=t.tiers?.filter(e=>(0,v.I)(e.price).gt(0))??[];if(0===i.length)return[];let n=E(t);return i.every(e=>(0,v.I)(e.price).eq(n.price))?[]:i.map(i=>`${i.sku_label} ${(0,p.f)((0,v.I)(i.price).times(t.displayMultiplier),{locale:e,preset:"model-price"})??"—"}`)}(e,t),l=`${(0,p.f)((0,v.I)(i.price).times(i.displayMultiplier),{locale:e,preset:"model-price"})??"—"}`;return(0,n.jsxs)("span",{className:"flex flex-col items-start gap-0.5 md:items-end",children:[(0,n.jsxs)("span",{className:"inline-flex items-baseline gap-1",children:[a.length>0&&(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:(0,n.jsx)(_.T,{children:"from"})}),(0,n.jsx)("span",{className:"text-sm font-medium tabular-nums text-foreground",children:l}),(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:F(i.unitLabel)})]}),a.length>0&&(0,n.jsx)("span",{className:"flex max-w-full flex-col items-start text-xs tabular-nums text-muted-foreground md:items-end md:text-right",children:a.map(e=>(0,n.jsx)("span",{children:e},e))})]})},"W",0,F,"j",0,function(e){return new Map(e.map(e=>[(0,M.i)(e),e.endpoint?.display_pricing??[]]))},"t",0,function(e){let t=new Set,i=e.find(e=>"Input Price"===e.sku_label);return e.flatMap(e=>{if(e.kind===R.H.Schedule||D.has(e.sku_label)||V.has(e.sku_label)&&void 0!==i&&(0,v.I)(i.price).eq(e.price)&&i.displayMultiplier===e.displayMultiplier&&i.unitLabel===e.unitLabel)return[];let n=e.sku_label.trim().toLowerCase();return t.has(n)?[]:(t.add(n),[{...e,key:n}])})},"m",0,function(e){let t=E(e);return Number(t.price)*t.displayMultiplier},"o",0,function(e,t){return(0,s.f)(e)&&q(e,t)},"A",0,function(e){let t=e.filter(e=>void 0!==e),i=t[0];return void 0!==i&&t.every(e=>e.unitLabel===i.unitLabel&&e.displayMultiplier===i.displayMultiplier)},"C",0,q],780713);var O=e.i(62327),$=e.i(297510),G=e.i(339814),B=e.i(353273),K=e.i(560832),H=e.i(610586),W=e.i(618115),U=e.i(974558);e.i(813818);let Z=["3d","codecategories","dataviz","gamedev","image","svg","uicomponent","logo","slides"];function Q({modelId:e,displayName:t,category:i,elo:n,percentile:a}){return{da_model_id:e,display_name:t,provider:"openrouter",openrouter_id:e,permaslug:e,arena:"models",category:i,elo:n,win_rate:a/100,avg_generation_time_ms:1500,last_updated_at:173e10,elo_percentile:a,first_place:null,second_place:null,third_place:null,fourth_place:null,total_tournaments:null}}function Y({modelId:e,displayName:t,scores:i}){return Z.flatMap(n=>{let a=i[n];if(!a)return[];let[l,r]=a;return[Q({modelId:e,displayName:t,category:n,elo:l,percentile:r})]})}Y({modelId:"anthropic/claude-sonnet-4.5",displayName:"Claude Sonnet 4.5",scores:{"3d":[1315,89],codecategories:[1338,95],dataviz:[1273,82],gamedev:[1352,97],image:[1247,83],svg:[1246,84],uicomponent:[1359,97],logo:[1293,94],slides:[1338,97]}}),Y({modelId:"openai/gpt-5",displayName:"GPT-5",scores:{"3d":[1283,78],codecategories:[1315,92],dataviz:[1272,81],gamedev:[1362,99],image:[1192,60],svg:[1218,70],uicomponent:[1308,87],logo:[1381,98],slides:[1308,92]}}),Y({modelId:"google/gemini-2.5-pro",displayName:"Gemini 2.5 Pro",scores:{"3d":[1172,46],codecategories:[1212,54],dataviz:[1296,89],gamedev:[1189,45],image:[1198,65],svg:[1232,75],uicomponent:[1207,49],logo:[1188,50],slides:[1218,54]}}),Y({modelId:"openai/gpt-4o-mini",displayName:"GPT-4o mini",scores:{"3d":[1165,42],codecategories:[1198,50],dataviz:[1182,48],gamedev:[1170,40],image:[1140,35],svg:[1175,44],uicomponent:[1195,47],logo:[1180,45],slides:[1190,49]}}),Y({modelId:"anthropic/claude-haiku-4.5",displayName:"Claude Haiku 4.5",scores:{"3d":[1240,72],codecategories:[1268,80],dataviz:[1255,76],gamedev:[1248,75],image:[1230,70],svg:[1252,78],uicomponent:[1278,82],logo:[1262,79],slides:[1265,81]}}),Y({modelId:"google/gemini-2.5-flash-lite",displayName:"Gemini 2.5 Flash Lite",scores:{"3d":[1135,32],codecategories:[1158,38],dataviz:[1148,36],gamedev:[1142,34],image:[1162,40],svg:[1155,37],uicomponent:[1145,35],logo:[1150,36],slides:[1160,39]}}),Y({modelId:"anthropic/claude-opus-4.7",displayName:"Claude Opus 4.7",scores:{"3d":[1342,94],codecategories:[1368,98],dataviz:[1305,90],gamedev:[1378,99],image:[1268,88],svg:[1278,90],uicomponent:[1395,99],logo:[1320,96],slides:[1365,98]}}),[...Y({modelId:"openai/gpt-5.5",displayName:"GPT-5.5",scores:{"3d":[1310,87],codecategories:[1342,96],dataviz:[1298,88],gamedev:[1385,99],image:[1218,72],svg:[1248,82],uicomponent:[1338,94],logo:[1402,99],slides:[1335,96]}}),...Y({modelId:"openai/gpt-5.5",displayName:"GPT-5.5 (Thinking)",scores:{"3d":[1352,93],codecategories:[1388,99],dataviz:[1335,94],gamedev:[1418,99],image:[1258,82],svg:[1295,91],uicomponent:[1382,98],logo:[1442,99],slides:[1378,99]}})],Y({modelId:"x-ai/grok-4.7",displayName:"Grok 4.7",scores:{"3d":[1280,82],codecategories:[1325,92],dataviz:[1268,80],gamedev:[1310,90],image:[1232,75],svg:[1252,82],uicomponent:[1295,88],logo:[1338,96],slides:[1288,85]}}),Y({modelId:"deepseek/deepseek-chat-v3.1",displayName:"DeepSeek v3.1",scores:{"3d":[1255,78],codecategories:[1318,90],dataviz:[1252,76],gamedev:[1278,82],image:[1198,62],svg:[1228,72],uicomponent:[1262,78],logo:[1282,84],slides:[1265,80]}}),Y({modelId:"meta-llama/llama-3.3-70b-instruct",displayName:"Llama 3.3 70B",scores:{"3d":[1188,58],codecategories:[1242,72],dataviz:[1198,62],gamedev:[1218,68],image:[1152,45],svg:[1175,52],uicomponent:[1212,65],logo:[1218,66],slides:[1198,60]}}),Y({modelId:"qwen/qwen3-coder",displayName:"Qwen3 Coder",scores:{"3d":[1218,66],codecategories:[1352,96],dataviz:[1265,80],gamedev:[1245,72],image:[1175,50],svg:[1235,75],uicomponent:[1278,82],logo:[1242,72],slides:[1232,72]}}),Y({modelId:"mistralai/mistral-large-2",displayName:"Mistral Large 2",scores:{"3d":[1145,42],codecategories:[1208,62],dataviz:[1162,48],gamedev:[1188,55],image:[1118,35],svg:[1138,40],uicomponent:[1172,52],logo:[1192,58],slides:[1162,48]}}),Y({modelId:"moonshotai/kimi-k2",displayName:"Kimi K2",scores:{"3d":[1232,72],codecategories:[1278,82],dataviz:[1228,70],gamedev:[1262,78],image:[1188,58],svg:[1208,65],uicomponent:[1252,76],logo:[1262,78],slides:[1228,72]}}),Q({modelId:"sourceful/riverflow-v2.5-pro",displayName:"Riverflow V2.5 Pro",category:"graphicdesign",elo:1471,percentile:93}),Q({modelId:"sourceful/riverflow-v2.5-pro",displayName:"Riverflow V2.5 Pro",category:"image",elo:1406,percentile:93}),Q({modelId:"sourceful/riverflow-v2.5-pro",displayName:"Riverflow V2.5 Pro",category:"imagetoimage",elo:1373,percentile:88}),Q({modelId:"sourceful/riverflow-v2.5-pro",displayName:"Riverflow V2.5 Pro",category:"logo",elo:1308,percentile:93});var J=e.i(626524);function X(e,t){let i,n,l,r,s=(0,a.c)(10);s[0]!==e?(i=(0,J.T)(e),s[0]=e,s[1]=i):i=s[1];let{data:o,isLoading:c}=(0,W.f)(i);s[2]!==o?(n=o??[],s[2]=o,s[3]=n):n=s[3];let d=n,u=t??e;s[4]!==u||s[5]!==d.length?(l=[],s[4]=u,s[5]=d.length,s[6]=l):l=s[6];let m=l,g=0===d.length&&m.length>0?m:d,p=!c&&void 0!==o;return s[7]!==g||s[8]!==p?(r={benchmarkList:g,isAALoaded:p},s[7]=g,s[8]=p,s[9]=r):r=s[9],r}function ee(e,t){let i,n,l,r,s=(0,a.c)(10);s[0]!==e?(i=(0,J.q)(e),s[0]=e,s[1]=i):i=s[1];let{data:o,isLoading:c}=(0,W.f)(i);s[2]!==o?.records?(n=o?.records??[],s[2]=o?.records,s[3]=n):n=s[3];let d=n,u=t??e;s[4]!==u||s[5]!==d.length?(l=[],s[4]=u,s[5]=d.length,s[6]=l):l=s[6];let m=l,g=0===d.length&&m.length>0?m:d,p=!c&&void 0!==o;return s[7]!==g||s[8]!==p?(r={daRecordList:g,isDALoaded:p},s[7]=g,s[8]=p,s[9]=r):r=s[9],r}let et=(0,y.f)("text-xs",{variants:{tone:{green:"text-positive",orange:"text-warning",red:"text-negative"}}});function ei(e){let t,i,l,s=(0,a.c)(8),{percentile:o}=e,c=(0,r.useLocale)();return s[0]!==o?(t=et({tone:(0,K.l)(o/100)}),s[0]=o,s[1]=t):t=s[1],s[2]!==c||s[3]!==o?(i=(0,$.I)(o,{locale:c,preset:"native-unrounded"})??"—",s[2]=c,s[3]=o,s[4]=i):i=s[4],s[5]!==t||s[6]!==i?(l=(0,n.jsx)("span",{className:t,children:i}),s[5]=t,s[6]=i,s[7]=l):l=s[7],l}function en(e){return(0,s.f)(e)?(0,n.jsx)(ei,{percentile:e}):null}e.s(["z",0,function(e){let t=e?.benchmark_data.model_type===B.f.Llm?e.benchmark_data.evaluations:null,i=t?(0,K.m)(t):null,n=e?.percentiles??null;return{intelligence:i?.intelligence??null,coding:i?.coding??null,agentic:i?.agentic??null,intelligence_percentile:n?.intelligence_percentile??null,coding_percentile:n?.coding_percentile??null,agentic_percentile:n?.agentic_percentile??null}},"L",0,en,"S",0,function(e,i=[]){let n=X(e[0]??null,i[0]),a=X(e[1]??null,i[1]),l=X(e[2]??null,i[2]),r=X(e[3]??null,i[3]),s=X(e[4]??null,i[4]),o=[n,a,l,r,s];return(0,t.useMemo)(()=>e.map((e,t)=>{let i=o[t],n=i?.benchmarkList??[];return{benchmarkList:n,defaultIdx:(0,K.$)(n),isLoaded:i?.isAALoaded??!1}}),[e.length,n.benchmarkList,a.benchmarkList,l.benchmarkList,r.benchmarkList,s.benchmarkList,n.isAALoaded,a.isAALoaded,l.isAALoaded,r.isAALoaded,s.isAALoaded])},"Q",0,function(e,t){let i,n,l=(0,a.c)(9);l[0]!==t?(i=void 0===t?[]:t,l[0]=t,l[1]=i):i=l[1];let s=i,o=(0,r.useLocale)(),c=ee(e[0]??null,s[0]),d=ee(e[1]??null,s[1]),u=ee(e[2]??null,s[2]),m=ee(e[3]??null,s[3]),g=ee(e[4]??null,s[4]);return l[2]!==o||l[3]!==c.daRecordList||l[4]!==d.daRecordList||l[5]!==u.daRecordList||l[6]!==m.daRecordList||l[7]!==g.daRecordList?(n=function(e,t){let i=new Map;for(let e of t)for(let t of e){if("models"!==t.arena)continue;let e=`${t.arena}::${t.category}`;i.has(e)||i.set(e,{arena:t.arena,category:t.category})}return[...i.values()].toSorted((t,i)=>(0,G.o)((0,H.V)(t.arena,t.category),(0,H.V)(i.arena,i.category),{locale:e}))}(o,[c.daRecordList,d.daRecordList,u.daRecordList,m.daRecordList,g.daRecordList]),l[2]=o,l[3]=c.daRecordList,l[4]=d.daRecordList,l[5]=u.daRecordList,l[6]=m.daRecordList,l[7]=g.daRecordList,l[8]=n):n=l[8],n},"B",0,function(e,i=[]){let n=ee(e[0]??null,i[0]),a=ee(e[1]??null,i[1]),l=ee(e[2]??null,i[2]),r=ee(e[3]??null,i[3]),s=ee(e[4]??null,i[4]),o=[n,a,l,r,s];return(0,t.useMemo)(()=>e.map((e,t)=>{let i=o[t],n=(i?.daRecordList??[]).filter(e=>"models"===e.arena),a=(0,U.M)(n);return{records:n,variants:a,defaultVariant:a[0]??null,isLoaded:i?.isDALoaded??!1}}),[e.length,n.daRecordList,a.daRecordList,l.daRecordList,r.daRecordList,s.daRecordList,n.isDALoaded,a.isDALoaded,l.isDALoaded,r.isDALoaded,s.isDALoaded])}],399057);var ea=e.i(139697),el=e.i(548204),er=e.i(261499),es=e.i(262646),eo=e.i(797521),ec=e.i(153746),ed=e.i(59889),eu=e.i(354896),em=e.i(371821);let eg=(0,t.createContext)(null);function ep(e){return e+1}function ef(e){return e+1}function eh(){let e=(0,t.useContext)(eg);if(!e)throw Error("usePerformanceVisualization must be used within a PerformanceVisualizationProvider");return e}e.s(["f",0,function(e){let i,l,r,s,o=(0,a.c)(8),{children:c}=e,[d,u]=(0,t.useState)(!1),[m,g]=(0,t.useState)(0);o[0]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{u(e),e&&g(ef)},o[0]=i):i=o[0];let p=i;o[1]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{g(ep)},o[1]=l):l=o[1];let f=l;o[2]!==d||o[3]!==m?(r={isExpanded:d,setIsExpanded:p,runKey:m,rerun:f},o[2]=d,o[3]=m,o[4]=r):r=o[4];let h=r;return o[5]!==c||o[6]!==h?(s=(0,n.jsx)(eg.Provider,{value:h,children:c}),o[5]=c,o[6]=h,o[7]=s):s=o[7],s},"I",0,eh],483183);let ex=Array(25).fill("Attention is all you need. The dominant sequence transduction models are based on complex recurrent or convolutional neural networks in an encoder-decoder configuration. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely. Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable and requiring significantly less time to train.").join(" "),ev=ex.split(" ").length;function eb(e){let i,l,r,s,c,d,u,m,g,p,h,x,v,b,y,j,k,w,N,A,P,L,S,C,z=(0,a.c)(61),{latencyMs:T,throughputTps:I}=e,M=(0,o.f)(),{isExpanded:R,setIsExpanded:D,runKey:V,rerun:q}=eh(),[E,F]=(0,t.useState)("idle"),[O,$]=(0,t.useState)(""),[G,B]=(0,t.useState)(null),[K,H]=(0,t.useState)(0),W=(0,t.useRef)(null),U=(0,t.useRef)(null),Z=(0,t.useRef)(null);z[0]!==R||z[1]!==T||z[2]!==V||z[3]!==I?(i=()=>{if(!R||0===V){F("idle"),$("");return}let e=T??500,t=Math.max(1,I??30);F("waiting"),$(""),B(null),H(0),Z.current=performance.now(),W.current&&cancelAnimationFrame(W.current);let i=setTimeout(()=>{F("streaming");let e=ex.split(" "),i=1e3/t,n=0,a=0,l=performance.now(),r=t=>{let s=Math.min(Math.floor((t-l)/i),e.length);if(s>n){n=s,$(e.slice(0,n).join(" "));let t=10*Math.floor(n/e.length*10);t>a&&(a=t,H(t))}if(n{clearTimeout(i),W.current&&cancelAnimationFrame(W.current)}},l=[R,V,T,I],z[0]=R,z[1]=T,z[2]=V,z[3]=I,z[4]=i,z[5]=l):(i=z[4],l=z[5]),(0,t.useEffect)(i,l),z[6]!==E?(r=()=>{"streaming"===E&&U.current&&(U.current.scrollTop=U.current.scrollHeight)},z[6]=E,z[7]=r):r=z[7],z[8]!==O||z[9]!==E?(s=[O,E],z[8]=O,z[9]=E,z[10]=s):s=z[10],(0,t.useEffect)(r,s),z[11]===Symbol.for("react.memo_cache_sentinel")?(c=(0,n.jsx)(ea.Button,{variant:"ghost",size:"sm",align:"start"}),z[11]=c):c=z[11],z[12]===Symbol.for("react.memo_cache_sentinel")?(d=(0,n.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:(0,n.jsx)(_.T,{children:"Visualize Performance"})}),z[12]=d):d=z[12];let Q=R&&"-scale-y-100";return z[13]!==Q?(u=(0,f.f)("ml-auto size-4 text-muted-foreground",er.a,Q),z[13]=Q,z[14]=u):u=z[14],z[15]!==u?(m=(0,n.jsxs)(el.CollapsibleTrigger,{render:c,className:"w-full",children:[d,(0,n.jsx)(eu.f,{className:u})]}),z[15]=u,z[16]=m):m=z[16],z[17]!==E?(g="waiting"===E&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(es.f,{className:"size-4"}),(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:(0,n.jsx)(_.T,{children:"Waiting for first token..."})})]}),z[17]=E,z[18]=g):g=z[18],z[19]!==E?(p="streaming"===E&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(es.f,{className:"size-4"}),(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:(0,n.jsx)(_.T,{children:"Streaming..."})})]}),z[19]=E,z[20]=p):p=z[20],z[21]!==E||z[22]!==G?(h=(0,n.jsx)(ey,{state:E,totalTimeMs:G}),z[21]=E,z[22]=G,z[23]=h):h=z[23],z[24]!==E?(x="idle"===E&&(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:(0,n.jsx)(_.T,{children:"Ready"})}),z[24]=E,z[25]=x):x=z[25],z[26]!==g||z[27]!==p||z[28]!==h||z[29]!==x?(v=(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[g,p,h,x]}),z[26]=g,z[27]=p,z[28]=h,z[29]=x,z[30]=v):v=z[30],z[31]!==E||z[32]!==K?(b=(0,n.jsx)(ej,{state:E,streamingProgress:K}),z[31]=E,z[32]=K,z[33]=b):b=z[33],z[34]!==M?(y=M("Re-run visualization"),z[34]=M,z[35]=y):y=z[35],z[36]===Symbol.for("react.memo_cache_sentinel")?(j=(0,n.jsx)(em.f,{className:"size-4 text-muted-foreground"}),z[36]=j):j=z[36],z[37]!==q||z[38]!==y?(k=(0,n.jsx)(ea.Button,{variant:"ghost",size:"icon-sm",onClick:q,title:y,children:j}),z[37]=q,z[38]=y,z[39]=k):k=z[39],z[40]!==b||z[41]!==k?(w=(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[b,k]}),z[40]=b,z[41]=k,z[42]=w):w=z[42],z[43]!==v||z[44]!==w?(N=(0,n.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[v,w]}),z[43]=v,z[44]=w,z[45]=N):N=z[45],z[46]!==O?(A=O||(0,n.jsx)("span",{className:"text-muted-foreground opacity-50",children:(0,n.jsx)(_.T,{children:"Output will appear here..."})}),z[46]=O,z[47]=A):A=z[47],z[48]!==E?(P="streaming"===E&&(0,n.jsx)("span",{className:"animate-pulse",children:"▌"}),z[48]=E,z[49]=P):P=z[49],z[50]!==A||z[51]!==P?(L=(0,n.jsxs)("div",{ref:U,className:"h-48 overflow-y-auto rounded-sm bg-background p-2 text-sm font-mono",children:[A,P]}),z[50]=A,z[51]=P,z[52]=L):L=z[52],z[53]!==N||z[54]!==L?(S=(0,n.jsx)(el.CollapsibleContent,{children:(0,n.jsxs)("div",{className:"mt-3 rounded-md border bg-muted p-3",children:[N,L]})}),z[53]=N,z[54]=L,z[55]=S):S=z[55],z[56]!==R||z[57]!==D||z[58]!==S||z[59]!==m?(C=(0,n.jsxs)(el.Collapsible,{open:R,onOpenChange:D,className:"py-2",children:[m,S]}),z[56]=R,z[57]=D,z[58]=S,z[59]=m,z[60]=C):C=z[60],C}function ey(e){let t,i,l=(0,a.c)(7),{state:s,totalTimeMs:o}=e,c=(0,eo.f)(),d=(0,r.useLocale)();return l[0]!==c||l[1]!==d||l[2]!==s||l[3]!==o?(t="complete"===s&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ed.f,{className:"size-4 text-positive"}),(0,n.jsx)("span",{className:"text-xs text-positive",children:null===o?(0,n.jsx)(_.T,{children:"Complete"}):(0,n.jsxs)(_.T,{children:["Complete (",(0,n.jsx)(ec.d,{children:c.number(ev,{preset:"integer"})})," tokens in"," ",(0,n.jsx)(ec.d,{children:(0,g.B)(o/1e3,{locale:d,fractionDigits:1})??"—"}),"s)"]})})]}),l[0]=c,l[1]=d,l[2]=s,l[3]=o,l[4]=t):t=l[4],l[5]!==t?(i=(0,n.jsx)(n.Fragment,{children:t}),l[5]=t,l[6]=i):i=l[6],i}function ej(e){let t,i,l=(0,a.c)(6),{state:s,streamingProgress:o}=e,c=(0,r.useLocale)();return l[0]!==c||l[1]!==s||l[2]!==o?(t="streaming"===s&&(0,n.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",(0,$.I)(o,{locale:c,preset:"fee"})??"—",")"]}),l[0]=c,l[1]=s,l[2]=o,l[3]=t):t=l[3],l[4]!==t?(i=(0,n.jsx)(n.Fragment,{children:t}),l[4]=t,l[5]=i):i=l[5],i}var e_=e.i(761512);function ek(){let e,t=(0,a.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)("span",{className:"text-sm text-muted-foreground",children:"—"}),t[0]=e):e=t[0],e}let ew=(0,y.f)("inline-flex items-center gap-1 border border-border bg-muted px-2 py-0.5 text-xs font-medium",{variants:{variant:{round:"rounded-full",square:"rounded-md"}},defaultVariants:{variant:"round"}}),eN=(0,y.f)("flex flex-wrap items-center gap-1",{variants:{align:{start:"",end:"mt-2 w-full justify-start md:mt-0 md:min-w-0 md:flex-1 md:justify-end"}},defaultVariants:{align:"start"}});function eA(e){let t,i,l,r=(0,a.c)(8),{value:s,units:o}=e;if(null===s){let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(ek,{}),r[0]=e):e=r[0],e}return r[1]!==s?(t=(0,n.jsx)("span",{className:"text-sm font-medium tabular-nums text-foreground",children:s}),r[1]=s,r[2]=t):t=r[2],r[3]!==o?(i=o&&(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:o}),r[3]=o,r[4]=i):i=r[4],r[5]!==t||r[6]!==i?(l=(0,n.jsxs)("span",{className:"inline-flex items-baseline gap-1 whitespace-nowrap",children:[t,i]}),r[5]=t,r[6]=i,r[7]=l):l=r[7],l}function eP(e){let t,i=(0,a.c)(3),{value:l}=e;if(!(0,s.f)(l)){let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(ek,{}),i[0]=e):e=i[0],e}return i[1]!==l?(t=l?(0,n.jsx)(d.f,{"data-slot":"bool-value","data-value":"true",className:"size-5 text-positive"}):(0,n.jsx)(u.f,{"data-slot":"bool-value","data-value":"false",className:"size-5 text-negative"}),i[1]=l,i[2]=t):t=i[2],t}let eL=[{key:"text",label:(0,j.b)("Text"),bg:(0,e_.p)({modality:b.j.Text}),iconColor:(0,e_.W)({modality:b.j.Text}),Icon:z.f},{key:"image",label:(0,j.b)("Image"),bg:(0,e_.p)({modality:b.j.Image}),iconColor:(0,e_.W)({modality:b.j.Image}),Icon:L.f},{key:"audio",label:(0,j.b)("Audio"),bg:(0,e_.p)({modality:b.j.Audio}),iconColor:(0,e_.W)({modality:b.j.Audio}),Icon:N.f},{key:"video",label:(0,j.b)("Video"),bg:(0,e_.p)({modality:b.j.Video}),iconColor:(0,e_.W)({modality:b.j.Video}),Icon:T.f},{key:"file",label:(0,j.b)("File"),bg:"bg-modality-file/12",iconColor:"text-modality-file",Icon:P.f}];function eS(e){let t,i,l,r,s=(0,a.c)(11),{modalities:c}=e,d=(0,o.f)(),u=(0,k.f)();s[0]!==c?(t=c??[],s[0]=c,s[1]=t):t=s[1],s[2]!==t?(i=new Set(t.map(eC)),s[2]=t,s[3]=i):i=s[3];let m=i;if(0===m.size){let e;return s[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(ek,{}),s[4]=e):e=s[4],e}return s[5]!==d||s[6]!==u||s[7]!==m?(l=eL.map(e=>{let{key:t,label:i,bg:a,iconColor:l,Icon:r}=e,s=m.has(t),o=s?u(i):d("{modality} (not supported)",{modality:u(i)});return(0,n.jsx)(x.Tooltip,{content:o,children:(0,n.jsx)("span",{"data-slot":"modality-cell","data-modality":t,"data-active":s,className:(0,f.f)("inline-flex size-5 items-center justify-center rounded-md transition-colors",s?a:"bg-muted/40"),children:(0,n.jsx)(r,{className:(0,f.f)("size-3.5",s?l:"text-muted-foreground/30"),strokeWidth:2.5})})},t)}),s[5]=d,s[6]=u,s[7]=m,s[8]=l):l=s[8],s[9]!==l?(r=(0,n.jsx)("div",{className:"ml-auto flex flex-wrap items-center justify-end gap-1",children:l}),s[9]=l,s[10]=r):r=s[10],r}function eC(e){return e.toLowerCase()}function ez(e){return(0,n.jsx)(h.SelectItem,{value:e,children:e},e)}function eT(){return(0,n.jsxs)("div",{className:"flex h-full min-h-70 flex-col items-center justify-center gap-2 rounded-md border border-dashed border-border bg-foreground/[0.02] p-6 text-center text-muted-foreground",children:[(0,n.jsx)(m.f,{className:"size-10 text-border"}),(0,n.jsx)("p",{className:"text-sm font-medium text-foreground",children:(0,n.jsx)(_.T,{children:"No activity data available yet."})})]})}e.s(["A",0,function(e){let t,i=(0,a.c)(3),{model:l,activityMetric:r}=e;return i[0]!==r||i[1]!==l?(t=(0,n.jsx)("div",{className:"-mx-5 h-full",children:(0,n.jsx)(O.f,{model:l,activityMetric:r,hideHeader:!0,renderEmpty:eT})}),i[0]=r,i[1]=l,i[2]=t):t=i[2],t},"U",0,function(e){let t,i,l,o,c=(0,a.c)(11),{value:d,percentile:u}=e,m=(0,r.useLocale)();if(!(0,s.f)(d)){let e;return c[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(ek,{}),c[0]=e):e=c[0],e}return c[1]!==m||c[2]!==d?(t=(0,g.B)(d,{locale:m,fractionDigits:0})??"—",c[1]=m,c[2]=d,c[3]=t):t=c[3],c[4]!==t?(i=(0,n.jsx)("span",{className:"text-sm font-medium tabular-nums text-foreground",children:t}),c[4]=t,c[5]=i):i=c[5],c[6]!==u?(l=en(u),c[6]=u,c[7]=l):l=c[7],c[8]!==i||c[9]!==l?(o=(0,n.jsxs)("span",{className:"inline-flex items-baseline gap-1.5",children:[i,l]}),c[8]=i,c[9]=l,c[10]=o):o=c[10],o},"W",0,function(e){let t,i,l,r,s,o,c=(0,a.c)(18),{options:d,selected:u,onChange:m}=e;if(0===d.length)return null;let g=1===d.length,p=u??void 0,x=g&&"border-transparent disabled:cursor-default disabled:bg-muted/60 disabled:opacity-100";c[0]!==x?(t=(0,f.f)("w-full max-w-56",x),c[0]=x,c[1]=t):t=c[1];let v=u??void 0;return c[2]!==u||c[3]!==v?(i=(0,n.jsx)(h.SelectValue,{children:(0,n.jsx)("span",{className:"block truncate",title:v,children:u})}),c[2]=u,c[3]=v,c[4]=i):i=c[4],c[5]!==t||c[6]!==i?(l=(0,n.jsx)(h.SelectTrigger,{className:t,children:i}),c[5]=t,c[6]=i,c[7]=l):l=c[7],c[8]!==d?(r=d.map(ez),c[8]=d,c[9]=r):r=c[9],c[10]!==r?(s=(0,n.jsx)(h.SelectContent,{children:r}),c[10]=r,c[11]=s):s=c[11],c[12]!==g||c[13]!==m||c[14]!==p||c[15]!==l||c[16]!==s?(o=(0,n.jsxs)(h.Select,{variant:"square",size:"compact",disabled:g,value:p,onValueChange:m,children:[l,s]}),c[12]=g,c[13]=m,c[14]=p,c[15]=l,c[16]=s,c[17]=o):o=c[17],o},"S",0,eP,"q",0,eS,"J",0,eA,"D",0,function(e){let t,i=(0,a.c)(3),{endpointData:l}=e,{currentProviderStats:r}=l,s=r?.stats?.p50_latency??null,o=r?.stats?.p50_throughput??null;return i[0]!==s||i[1]!==o?(t=(0,n.jsx)(eb,{latencyMs:s,throughputTps:o}),i[0]=s,i[1]=o,i[2]=t):t=i[2],t},"w",0,function(e){let t,i,l,r,s,o=(0,a.c)(18),{values:c,withIcons:d,variant:u,align:m}=e,g=void 0!==d&&d,p=void 0===u?"round":u,f=void 0===m?"start":m;o[0]!==c?(t=function(){return null==c?[]:Array.isArray(c)?c:[c]},o[0]=c,o[1]=t):t=o[1];let h=t;if(o[2]!==f||o[3]!==h||o[4]!==p||o[5]!==g){r=Symbol.for("react.early_return_sentinel");e:{let e,t=h();if(0===t.length){let e;o[9]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(ek,{}),o[9]=e):e=o[9],r=e;break e}o[10]!==f?(i=eN({align:f}),o[10]=f,o[11]=i):i=o[11],o[12]!==p||o[13]!==g?(e=e=>(0,n.jsxs)("span",{className:ew({variant:p}),children:[g&&function(e){let t="size-3.5 shrink-0";switch(e.toLowerCase()){case"text":return(0,n.jsx)(z.f,{className:t});case"image":return(0,n.jsx)(L.f,{className:t});case"audio":return(0,n.jsx)(N.f,{className:t});case"video":return(0,n.jsx)(T.f,{className:t});case"file":return(0,n.jsx)(P.f,{className:t});case"embeddings":return(0,n.jsx)(A.f,{className:t});case"speech":case"tts":return(0,n.jsx)(C.f,{className:t});case"transcription":return(0,n.jsx)(S.f,{className:t});case"rerank":return(0,n.jsx)(w.f,{className:t});default:return null}}(e),e]},e),o[12]=p,o[13]=g,o[14]=e):e=o[14],l=t.map(e)}o[2]=f,o[3]=h,o[4]=p,o[5]=g,o[6]=i,o[7]=l,o[8]=r}else i=o[6],l=o[7],r=o[8];return r!==Symbol.for("react.early_return_sentinel")?r:(o[15]!==i||o[16]!==l?(s=(0,n.jsx)("div",{className:i,children:l}),o[15]=i,o[16]=l,o[17]=s):s=o[17],s)},"x",0,function(e){let t,i,l=(0,a.c)(6),{accuracy:o}=e,c=(0,r.useLocale)();if(!(0,s.f)(o)){let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(ek,{}),l[0]=e):e=l[0],e}let d=o/100;return l[1]!==c||l[2]!==d?(t=(0,I.f)(c,d,!0),l[1]=c,l[2]=d,l[3]=t):t=l[3],l[4]!==t?(i=(0,n.jsx)("span",{className:"text-sm font-medium tabular-nums text-foreground",children:t}),l[4]=t,l[5]=i):i=l[5],i},"E",0,function(e,t,i,a){return!(0,s.f)(t)||(0,v.I)(t).lt(0)?(0,n.jsx)(ek,{}):(0,n.jsxs)("span",{className:"inline-flex items-baseline gap-1 whitespace-nowrap",children:[(0,n.jsx)("span",{className:"text-sm font-medium tabular-nums text-foreground",children:(0,p.f)((0,v.I)(t).times(i),{locale:e,preset:"model-price"})??"—"}),(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:F(a)})]})}],557352);var eI=e.i(706911),eM=e.i(570667);function eR(e){return(0,n.jsx)(eS,{modalities:e.outputModalities})}function eD(e){return(0,n.jsx)(eS,{modalities:e.inputModalities})}function eV(e){return(0,n.jsx)(eP,{value:e.supportsReasoning})}function eq(e){return(0,n.jsx)(eM.f,{author:e.author,label:e.authorDisplayName,variant:"inline",hideIcon:!0,className:"text-foreground underline"})}e.s(["k",0,function(e){let t,i,d,u,m,g,p,f,h,x,v,b,y,j,_,k,w,N=(0,a.c)(47),{values:A,isFirst:P,contextLengthBestIndices:L}=e,S=(0,r.useLocale)(),C=(0,o.f)();return N[0]!==C?(t=C("Author"),N[0]=C,N[1]=t):t=N[1],N[2]!==A?(i=A(eq),N[2]=A,N[3]=i):i=N[3],N[4]!==P||N[5]!==t||N[6]!==i?(d=(0,n.jsx)(c.DataRow,{isFirst:P,label:t,values:i}),N[4]=P,N[5]=t,N[6]=i,N[7]=d):d=N[7],N[8]!==C?(u=C("Context length"),N[8]=C,N[9]=u):u=N[9],N[10]!==C||N[11]!==S?(m=e=>(0,n.jsx)(eA,{value:(0,s.f)(e.contextLength)?(0,l.f)(e.contextLength,{locale:S,preset:"compact-rounded-thousands"})??null:null,units:C("tokens")}),N[10]=C,N[11]=S,N[12]=m):m=N[12],N[13]!==m||N[14]!==A?(g=A(m),N[13]=m,N[14]=A,N[15]=g):g=N[15],N[16]!==L||N[17]!==u||N[18]!==g?(p=(0,n.jsx)(c.DataRow,{label:u,values:g,bestIndices:L}),N[16]=L,N[17]=u,N[18]=g,N[19]=p):p=N[19],N[20]!==C?(f=C("Reasoning"),N[20]=C,N[21]=f):f=N[21],N[22]!==A?(h=A(eV),N[22]=A,N[23]=h):h=N[23],N[24]!==f||N[25]!==h?(x=(0,n.jsx)(c.DataRow,{label:f,values:h}),N[24]=f,N[25]=h,N[26]=x):x=N[26],N[27]!==C?(v=C("Input modalities"),N[27]=C,N[28]=v):v=N[28],N[29]!==A?(b=A(eD),N[29]=A,N[30]=b):b=N[30],N[31]!==v||N[32]!==b?(y=(0,n.jsx)(c.DataRow,{label:v,values:b}),N[31]=v,N[32]=b,N[33]=y):y=N[33],N[34]!==C?(j=C("Output modalities"),N[34]=C,N[35]=j):j=N[35],N[36]!==A?(_=A(eR),N[36]=A,N[37]=_):_=N[37],N[38]!==j||N[39]!==_?(k=(0,n.jsx)(c.DataRow,{label:j,values:_}),N[38]=j,N[39]=_,N[40]=k):k=N[40],N[41]!==x||N[42]!==y||N[43]!==k||N[44]!==d||N[45]!==p?(w=(0,n.jsxs)(n.Fragment,{children:[d,p,x,y,k]}),N[41]=x,N[42]=y,N[43]=k,N[44]=d,N[45]=p,N[46]=w):w=N[46],w},"p",0,function(e){return{author:e.author,authorDisplayName:e.author_display_name??e.author,contextLength:(0,eI.f)(e),supportsReasoning:e.supports_reasoning,inputModalities:e.input_modalities??null,outputModalities:e.output_modalities??null}}],162115)},813818,e=>{"use strict";var t=e.i(353273);function i({slug:e,displayName:n,s:a}){return{aa_id:e,aa_slug:e,aa_name:n,permaslug:e,openrouter_slug:e,heuristic_openrouter_slug:e,benchmark_data:{model_type:t.f.Llm,evaluations:{artificial_analysis_intelligence_index:a.intelligence,artificial_analysis_coding_index:a.coding,artificial_analysis_agentic_index:a.agentic}},last_updated_at:173e10,percentiles:{intelligence_percentile:a.intelligencePct,coding_percentile:a.codingPct,agentic_percentile:a.agenticPct}}}let n={"anthropic/claude-sonnet-4.5":[i({slug:"anthropic/claude-sonnet-4.5",displayName:"Claude Sonnet 4.5",s:{intelligence:72,coding:78,agentic:70,intelligencePct:92,codingPct:96,agenticPct:90}})],"openai/gpt-5":[i({slug:"openai/gpt-5",displayName:"GPT-5",s:{intelligence:75,coding:74,agentic:73,intelligencePct:95,codingPct:91,agenticPct:94}}),i({slug:"openai/gpt-5",displayName:"GPT-5 (Thinking)",s:{intelligence:82,coding:81,agentic:80,intelligencePct:98,codingPct:97,agenticPct:97}})],"google/gemini-2.5-pro":[i({slug:"google/gemini-2.5-pro",displayName:"Gemini 2.5 Pro",s:{intelligence:68,coding:65,agentic:60,intelligencePct:86,codingPct:79,agenticPct:70}}),i({slug:"google/gemini-2.5-pro",displayName:"Gemini 2.5 Pro (Deep Think)",s:{intelligence:77,coding:73,agentic:71,intelligencePct:95,codingPct:90,agenticPct:89}})],"openai/gpt-4o-mini":[i({slug:"openai/gpt-4o-mini",displayName:"GPT-4o mini",s:{intelligence:50,coding:48,agentic:42,intelligencePct:55,codingPct:50,agenticPct:45}})],"anthropic/claude-haiku-4.5":[i({slug:"anthropic/claude-haiku-4.5",displayName:"Claude Haiku 4.5",s:{intelligence:60,coding:64,agentic:58,intelligencePct:75,codingPct:80,agenticPct:72}})],"google/gemini-2.5-flash-lite":[i({slug:"google/gemini-2.5-flash-lite",displayName:"Gemini 2.5 Flash Lite",s:{intelligence:45,coding:42,agentic:38,intelligencePct:48,codingPct:42,agenticPct:38}})],"anthropic/claude-opus-4.7":[i({slug:"anthropic/claude-opus-4.7",displayName:"Claude Opus 4.7",s:{intelligence:80,coding:84,agentic:79,intelligencePct:97,codingPct:99,agenticPct:96}}),i({slug:"anthropic/claude-opus-4.7",displayName:"Claude Opus 4.7 (Extended Thinking)",s:{intelligence:86,coding:89,agentic:85,intelligencePct:99,codingPct:99,agenticPct:98}})],"anthropic/claude-opus-4":[i({slug:"anthropic/claude-opus-4",displayName:"Claude Opus 4",s:{intelligence:73,coding:79,agentic:72,intelligencePct:93,codingPct:95,agenticPct:91}}),i({slug:"anthropic/claude-opus-4",displayName:"Claude Opus 4 (Extended Thinking)",s:{intelligence:81,coding:85,agentic:80,intelligencePct:97,codingPct:98,agenticPct:96}})],"openai/gpt-5.5":[i({slug:"openai/gpt-5.5",displayName:"GPT-5.5",s:{intelligence:79,coding:80,agentic:78,intelligencePct:96,codingPct:96,agenticPct:95}}),i({slug:"openai/gpt-5.5",displayName:"GPT-5.5 (Thinking)",s:{intelligence:85,coding:87,agentic:84,intelligencePct:99,codingPct:99,agenticPct:99}})],"x-ai/grok-4.7":[i({slug:"x-ai/grok-4.7",displayName:"Grok 4.7",s:{intelligence:71,coding:67,agentic:65,intelligencePct:89,codingPct:85,agenticPct:81}})],"deepseek/deepseek-chat-v3.1":[i({slug:"deepseek/deepseek-chat-v3.1",displayName:"DeepSeek v3.1",s:{intelligence:70,coding:68,agentic:62,intelligencePct:88,codingPct:86,agenticPct:76}})],"meta-llama/llama-3.3-70b-instruct":[i({slug:"meta-llama/llama-3.3-70b-instruct",displayName:"Llama 3.3 70B",s:{intelligence:58,coding:56,agentic:52,intelligencePct:70,codingPct:66,agenticPct:58}})],"qwen/qwen3-coder":[i({slug:"qwen/qwen3-coder",displayName:"Qwen3 Coder",s:{intelligence:62,coding:75,agentic:58,intelligencePct:78,codingPct:93,agenticPct:70}})],"mistralai/mistral-large-2":[i({slug:"mistralai/mistral-large-2",displayName:"Mistral Large 2",s:{intelligence:54,coding:52,agentic:48,intelligencePct:62,codingPct:60,agenticPct:52}})],"moonshotai/kimi-k2":[i({slug:"moonshotai/kimi-k2",displayName:"Kimi K2",s:{intelligence:66,coding:64,agentic:60,intelligencePct:82,codingPct:78,agenticPct:74}})]};e.s(["f",0,n])},706911,e=>{"use strict";var t=e.i(579841);e.s(["f",0,function(e){return(0,t.l)(e)?e.context_length:null}])},761512,e=>{"use strict";var t=e.i(667417),i=e.i(207298);let n=(0,i.f)("",{variants:{modality:{[t.j.Text]:"bg-modality-text/12",[t.j.Image]:"bg-modality-image/12",[t.j.Audio]:"bg-modality-audio/12",[t.j.Video]:"bg-modality-video/12",[t.j.Embeddings]:"bg-modality-embeddings/12",[t.j.Rerank]:"bg-modality-rerank/12",[t.j.Decisions]:"bg-modality-rerank/12",[t.j.TTS]:"bg-modality-tts/12",[t.j.Transcription]:"bg-modality-transcription/12"}}}),a=(0,i.f)("",{variants:{modality:{[t.j.Text]:"border-modality-text",[t.j.Image]:"border-modality-image",[t.j.Audio]:"border-modality-audio",[t.j.Video]:"border-modality-video",[t.j.Embeddings]:"border-modality-embeddings",[t.j.Rerank]:"border-modality-rerank",[t.j.Decisions]:"border-modality-rerank",[t.j.TTS]:"border-modality-tts",[t.j.Transcription]:"border-modality-transcription"}}}),l=(0,i.f)("",{variants:{modality:{[t.j.Text]:"",[t.j.Image]:"",[t.j.Audio]:"",[t.j.Video]:"",[t.j.Embeddings]:"",[t.j.Rerank]:"",[t.j.Decisions]:"",[t.j.TTS]:"",[t.j.Transcription]:""},isActive:{true:"",false:""}},compoundVariants:[{modality:t.j.Text,isActive:!0,class:"text-modality-text"},{modality:t.j.Image,isActive:!0,class:"text-modality-image"},{modality:t.j.Audio,isActive:!0,class:"text-modality-audio"},{modality:t.j.Video,isActive:!0,class:"text-modality-video"},{modality:t.j.Embeddings,isActive:!0,class:"text-modality-embeddings"},{modality:t.j.Rerank,isActive:!0,class:"text-modality-rerank"},{modality:t.j.Decisions,isActive:!0,class:"text-modality-rerank"},{modality:t.j.TTS,isActive:!0,class:"text-modality-tts"},{modality:t.j.Transcription,isActive:!0,class:"text-modality-transcription"},{modality:t.j.Text,isActive:!1,class:"group-hover:text-modality-text"},{modality:t.j.Image,isActive:!1,class:"group-hover:text-modality-image"},{modality:t.j.Audio,isActive:!1,class:"group-hover:text-modality-audio"},{modality:t.j.Video,isActive:!1,class:"group-hover:text-modality-video"},{modality:t.j.Embeddings,isActive:!1,class:"group-hover:text-modality-embeddings"},{modality:t.j.Rerank,isActive:!1,class:"group-hover:text-modality-rerank"},{modality:t.j.Decisions,isActive:!1,class:"group-hover:text-modality-rerank"},{modality:t.j.TTS,isActive:!1,class:"group-hover:text-modality-tts"},{modality:t.j.Transcription,isActive:!1,class:"group-hover:text-modality-transcription"}],defaultVariants:{isActive:!0}});e.s(["p",0,n,"i",0,a,"W",0,l])},626524,356713,e=>{"use strict";var t=e.i(663456);let i=["index","coding","math","academic","finance","legal","healthcare","education","cyber"];function n(e){let t=new Map;for(let i of e){let e=t.get(i.vals_model_key);if(e){e.recordList.push(i);continue}t.set(i.vals_model_key,{valsModelKey:i.vals_model_key,label:i.vals_model_label,recordList:[i]})}return[...t.values()].toSorted((e,t)=>t.recordList.length-e.recordList.length||e.valsModelKey.localeCompare(t.valsModelKey))}function a(e,t){let i=e.split(".").map(Number),n=t.split(".").map(Number),a=Math.max(i.length,n.length);for(let e=0;e({industry:e,recordList:t.toSorted((e,t)=>e.benchmark_title.localeCompare(t.benchmark_title))})).toSorted((e,t)=>r(e.industry,t.industry))},"S",0,n,"z",0,function(e){return e.split(/[-_\s]+/).filter(e=>e.length>0).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")},"c",0,function(e){let t=new Map;for(let i of e){let e=t.get(i.benchmark_family);(!e||a(i.benchmark_version,e.benchmark_version)>0)&&t.set(i.benchmark_family,i)}return[...t.values()]}],356713);var o=e.i(702596),c=e.i(819750),d=e.i(524287),u=e.i(342837),m=e.i(837808),g=e.i(173465),p=e.i(613497),f=e.i(238819);let h=(0,d.f)("model-benchmarks",{artificialAnalysis:e=>[null===e?null:{slug:e}],allArtificialAnalysis:()=>[],designArena:e=>[null===e?null:{slug:e}],valsAi:e=>[null===e?null:{slug:e}],arenaStrip:(e,t)=>[{permaslug:e,tab:t,view:m.U}]}),x={tiles:[]};async function v(e){try{return await e}catch(e){if(e instanceof o.o&&e.errorT.status===u.g.S404_Not_Found)return x;throw e}}function b(e){return(0,g.f)({queryKey:h.valsAi(e),queryFn:null===e?p.V:({signal:t})=>(0,c.f)("/api/frontend/v1/private/vals-ai-benchmarks",{searchParams:{slug:e},signal:t})})}function y(e){return b(e)}function j(e){var t,i=[...(function(e){let t=new Map;for(let i of e){let e=new Set;for(let n of i){let i=JSON.stringify([n.benchmark_family,n.benchmark_version]);if(e.has(i))continue;e.add(i);let a=t.get(n.benchmark_family)??new Map;t.set(n.benchmark_family,a);let l=a.get(n.benchmark_version);if(l){l.modelCount+=1;continue}a.set(n.benchmark_version,{reference:n,modelCount:1})}}return new Map([...t].map(([e,t])=>[e,[...t.values()]]))})(t=e.map(e=>n(e.data?.records??[])[0]?.recordList??[])).values()].flatMap(e=>{let i=e.toSorted(s)[0];if(!i)return[];let{benchmark_family:n,benchmark_version:a}=i.reference;return[{family:n,version:a,title:i.reference.benchmark_title,industry:i.reference.benchmark_industry,recordByModel:t.map(e=>e.find(e=>e.benchmark_family===n&&e.benchmark_version===a)??null)}]});let a=new Map;for(let e of i){let t=a.get(e.industry)??[];t.push(e),a.set(e.industry,t)}return[...a.entries()].map(([e,t])=>({industry:e,benchmarkList:t.toSorted((e,t)=>e.title.localeCompare(t.title))})).toSorted((e,t)=>r(e.industry,t.industry))}e.s(["K",0,function(){return(0,g.f)({queryKey:h.allArtificialAnalysis(),queryFn:({signal:e})=>(0,c.f)("/api/frontend/v1/private/artificial-analysis-benchmarks/all",{signal:e})})},"D",0,function(e,t){return(0,g.f)({queryKey:h.arenaStrip(e,t),queryFn:({signal:i})=>v((0,c.f)(`/api/frontend/v1/arena/explore/models/${e}`,{searchParams:{tab:t,view:m.U},signal:i})),staleTime:6e4})},"T",0,function(e){return(0,g.f)({queryKey:h.artificialAnalysis(e),queryFn:null===e?p.V:({signal:t})=>(0,c.f)("/api/frontend/v1/private/artificial-analysis-benchmarks",{searchParams:{slug:e},signal:t})})},"q",0,function(e){return(0,g.f)({queryKey:h.designArena(e),queryFn:null===e?p.V:({signal:t})=>(0,c.f)("/api/frontend/v1/private/design-arena-benchmarks",{searchParams:{slug:e},signal:t})})},"t",0,function(e){let i,n,a=(0,t.c)(4);return a[0]!==e?(i=e.map(y),a[0]=e,a[1]=i):i=a[1],a[2]!==i?(n={queries:i,combine:j},a[2]=i,a[3]=n):n=a[3],(0,f.f)(n)},"s",0,b],626524)}]); //# sourceMappingURL=04g7vdz-1m7la.js.map