(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,96006,e=>{"use strict";e.i(537339),e.S([199168,"SharedTranslatorsProvider,D"])},916357,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(93695),l=e.i(136562),a=e.i(139697),r=e.i(967605),s=e.i(960773);e.i(707060);var o=e.i(196991);e.s(["CompareButton",0,e=>{let c,u,m,d,f,h,p=(0,i.c)(14),{className:x,touchTarget:g,isIconOnly:v,size:j}=e,b=void 0!==v&&v,y=(0,s.Q)(),w=b?"icon-sm":void 0===j?"md":j;p[0]!==y?(c=()=>{y.capture("click_compare_button",{source:"models-page"})},p[0]=y,p[1]=c):c=p[1],p[2]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(n.f,{className:"size-3.5"}),p[2]=u):u=p[2];let k=b&&"sr-only";return p[3]!==k?(m=(0,l.f)(k),p[3]=k,p[4]=m):m=p[4],p[5]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(o.T,{children:"Compare"}),p[5]=d):d=p[5],p[6]!==m?(f=(0,t.jsxs)(r.Link,{href:"/compare",children:[u,(0,t.jsx)("span",{className:m,children:d})]}),p[6]=m,p[7]=f):f=p[7],p[8]!==x||p[9]!==w||p[10]!==c||p[11]!==f||p[12]!==g?(h=(0,t.jsx)(a.Button,{variant:"outline",size:w,className:x,touchTarget:g,onClick:c,render:f}),p[8]=x,p[9]=w,p[10]=c,p[11]=f,p[12]=g,p[13]=h):h=p[13],h}])},197838,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(136562),l=e.i(139697),a=e.i(960773),r=e.i(140570);e.i(707060);var s=e.i(196991),o=e.i(894868),c=e.i(866969),u=e.i(16043);let m=["anthropic","openai","deepseek","google","x-ai","mistralai","meta","black-forest-labs"];function d(){let e,l,a,r,s,d,h,p=(0,i.c)(15),[x,g]=(0,u.useState)(0),[v,j]=(0,u.useState)(!1),[b,y]=(0,u.useState)(!0);p[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{j(!0)},p[0]=e):e=p[0],(0,c.f)(e,2e3),p[1]!==v?(l=()=>{if(!v)return;let e=setTimeout(()=>{y(!1),g(f),j(!1),requestAnimationFrame(()=>{y(!0)})},300);return()=>clearTimeout(e)},a=[v],p[1]=v,p[2]=l,p[3]=a):(l=p[2],a=p[3]),(0,u.useEffect)(l,a);let w=m[x]??"anthropic",k=m[(x+1)%m.length]??"anthropic",_=b?"transition-transform duration-300 ease-in-out":"",N=v?"-translate-y-1/2":"translate-y-0";return p[4]!==N||p[5]!==_?(r=(0,n.f)("flex flex-col",_,N),p[4]=N,p[5]=_,p[6]=r):r=p[6],p[7]!==w?(s=(0,t.jsx)("div",{className:"flex h-5 w-5 items-center justify-center",children:(0,t.jsx)(o.f,{author:w,className:"size-5 border-0 bg-transparent p-0 shadow-none"})}),p[7]=w,p[8]=s):s=p[8],p[9]!==k?(d=(0,t.jsx)("div",{className:"flex h-5 w-5 items-center justify-center",children:(0,t.jsx)(o.f,{author:k,className:"size-5 border-0 bg-transparent p-0 shadow-none"})}),p[9]=k,p[10]=d):d=p[10],p[11]!==r||p[12]!==s||p[13]!==d?(h=(0,t.jsx)("div",{className:"relative h-5 w-5 overflow-hidden","data-testid":"rotating-author-icon",children:(0,t.jsxs)("div",{className:r,children:[s,d]})}),p[11]=r,p[12]=s,p[13]=d,p[14]=h):h=p[14],h}function f(e){return(e+1)%m.length}e.i(406201);var h=e.i(967605);e.s(["DiscoverModelsButton",0,function(e){let o,c,u,m,f,p,x,g,v,j,b=(0,i.c)(24),{className:y,touchTarget:w,isIconOnly:k,size:_}=e,N=void 0!==k&&k,L=void 0===_?"md":_,S=(0,a.Q)(),C=N&&"w-8 px-0";b[0]!==y||b[1]!==C?(o=(0,n.f)(C,y),b[0]=y,b[1]=C,b[2]=o):o=b[2],b[3]!==S?(c=()=>{S.capture("click_models_button",{variants:r.l.SecondaryCta,source:"models-page",destination:"/discover"})},b[3]=S,b[4]=c):c=b[4];let M=N&&"sr-only";b[5]!==M?(u=(0,n.f)(M),b[5]=M,b[6]=u):u=b[6],b[7]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(s.T,{children:"Discover Models"}),b[7]=m):m=b[7],b[8]!==u?(f=(0,t.jsx)("span",{className:u,children:m}),b[8]=u,b[9]=f):f=b[9];let T=!N&&"phone:hidden";return b[10]!==T?(p=(0,n.f)("contents",T),b[10]=T,b[11]=p):p=b[11],b[12]===Symbol.for("react.memo_cache_sentinel")?(x=(0,t.jsx)(d,{}),b[12]=x):x=b[12],b[13]!==p?(g=(0,t.jsx)("span",{className:p,children:x}),b[13]=p,b[14]=g):g=b[14],b[15]!==g||b[16]!==f?(v=(0,t.jsxs)(h.Link,{href:"/discover",className:"no-underline",children:[f,g]}),b[15]=g,b[16]=f,b[17]=v):v=b[17],b[18]!==L||b[19]!==v||b[20]!==o||b[21]!==c||b[22]!==w?(j=(0,t.jsx)(l.Button,{variant:"outline",size:L,className:o,touchTarget:w,onClick:c,render:v}),b[18]=L,b[19]=v,b[20]=o,b[21]=c,b[22]=w,b[23]=j):j=b[23],j}],197838)},217699,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(771743),l=e.i(63237),a=e.i(960773),r=e.i(199168),s=e.i(885024);e.i(707060);var o=e.i(196991),c=e.i(222790),u=e.i(65082),m=e.i(16043),d=e.i(947795);function f(){let e,t=(0,i.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultValue:s.P.Cards},t[0]=e):e=t[0],(0,l.j)("models-view-format",e)}function h(){let e,l,m,h,p,x,g,v,j,b,y,w,k,_,N=(0,i.c)(33),L=(0,r.o)(),[S,C]=f(),M=(0,a.Q)(),T=(0,d.useModelsPageScrollToStartOnPhone)();return N[0]!==M||N[1]!==T||N[2]!==C||N[3]!==S?(e=e=>{let t=function(e){switch(e){case s.P.Cards:return s.P.Cards;case s.P.Table:return s.P.Table;default:return null}}(e);t&&t!==S&&(T(),C(t),M.setPersonProperties({models_view_format:t}))},N[0]=M,N[1]=T,N[2]=C,N[3]=S,N[4]=e):e=N[4],N[5]!==L?(l=L("Models display format"),N[5]=L,N[6]=l):l=N[6],N[7]!==L?(m=L("List view"),N[7]=L,N[8]=m):m=N[8],N[9]!==L?(h=L("List view"),N[9]=L,N[10]=h):h=N[10],N[11]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsx)(c.f,{className:"size-4"}),N[11]=p):p=N[11],N[12]===Symbol.for("react.memo_cache_sentinel")?(x=(0,t.jsx)("span",{className:"hidden above-phone:inline",children:(0,t.jsx)(o.T,{children:"List"})}),N[12]=x):x=N[12],N[13]!==m||N[14]!==h?(g=(0,t.jsxs)(n.k,{value:s.P.Cards,"aria-label":m,title:h,children:[p,x]}),N[13]=m,N[14]=h,N[15]=g):g=N[15],N[16]!==L?(v=L("Table view"),N[16]=L,N[17]=v):v=N[17],N[18]!==L?(j=L("Table view"),N[18]=L,N[19]=j):j=N[19],N[20]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)(u.f,{className:"size-4"}),N[20]=b):b=N[20],N[21]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)("span",{className:"hidden above-phone:inline",children:(0,t.jsx)(o.T,{children:"Table"})}),N[21]=y):y=N[21],N[22]!==v||N[23]!==j?(w=(0,t.jsxs)(n.k,{value:s.P.Table,"aria-label":v,title:j,children:[b,y]}),N[22]=v,N[23]=j,N[24]=w):w=N[24],N[25]!==l||N[26]!==w||N[27]!==g?(k=(0,t.jsxs)(n.U,{"aria-label":l,size:"sm",className:"h-8",children:[g,w]}),N[25]=l,N[26]=w,N[27]=g,N[28]=k):k=N[28],N[29]!==e||N[30]!==k||N[31]!==S?(_=(0,t.jsx)(n.i,{value:S,onValueChange:e,children:k}),N[29]=e,N[30]=k,N[31]=S,N[32]=_):_=N[32],_}e.s(["ModelDisplayFormatToggle",0,function(){let e,n=(0,i.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(m.Suspense,{fallback:null,children:(0,t.jsx)(h,{})}),n[0]=e):e=n[0],e},"useModelsViewFormat",0,f])},467934,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(657288),l=e.i(136562),a=e.i(181870),r=e.i(670168),s=e.i(960773),o=e.i(199168),c=e.i(19773),u=e.i(838028),m=e.i(16043),d=e.i(947795);let f=e=>{let l,r,f,h,p,x,g=(0,i.c)(16),{containerClassName:v}=e,j=(0,o.o)(),b=(0,s.Q)(),y=(0,m.useRef)(!1),w=(0,d.useModelsPageScrollToStartOnPhone)();g[0]===Symbol.for("react.memo_cache_sentinel")?(l=c.d.withDefault("").withOptions({shallow:!0,limitUrlUpdates:(0,u.f)(300)}),g[0]=l):l=g[0];let[k,_]=(0,c.o)("q",l);return g[1]!==j?(r=j("Search models..."),g[1]=j,g[2]=r):r=g[2],g[3]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)(n.f,{}),g[3]=f):f=g[3],g[4]!==w||g[5]!==_?(h=e=>{y.current=!0,w(),_(e.target.value.toLowerCase()||null)},g[4]=w,g[5]=_,g[6]=h):h=g[6],g[7]!==b||g[8]!==k?(p=()=>{y.current&&(y.current=!1,b.capture("search_models",{query:k}))},g[7]=b,g[8]=k,g[9]=p):p=g[9],g[10]!==v||g[11]!==k||g[12]!==r||g[13]!==h||g[14]!==p?(x=(0,t.jsx)(a.f,{type:"text",placeholder:r,leadingIcon:f,size:"sm",containerClassName:v,value:k,onChange:h,onBlur:p}),g[10]=v,g[11]=k,g[12]=r,g[13]=h,g[14]=p,g[15]=x):x=g[15],x};e.s(["ModelsFilterInput",0,e=>{let n,a,s,o,c=(0,i.c)(9),{containerClassName:u}=e,d=void 0===u?"w-full md:w-80":u;return c[0]!==d?(n=(0,l.f)("h-8 w-full",d),c[0]=d,c[1]=n):n=c[1],c[2]!==n?(a=(0,t.jsx)(r.l,{className:n}),c[2]=n,c[3]=a):a=c[3],c[4]!==d?(s=(0,t.jsx)(f,{containerClassName:d}),c[4]=d,c[5]=s):s=c[5],c[6]!==a||c[7]!==s?(o=(0,t.jsx)(m.Suspense,{fallback:a,children:s}),c[6]=a,c[7]=s,c[8]=o):o=c[8],o}])},199754,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(885024),l=e.i(429332),a=e.i(217699),r=e.i(136562),s=e.i(702441),o=e.i(547242),c=e.i(939056),u=e.i(340563),m=e.i(199630),d=e.i(138257),f=e.i(272719),h=e.i(815193);e.i(707060);var p=e.i(196991),x=e.i(16043),g=e.i(322454),v=e.i(442796),j=e.i(143324),b=e.i(61811),y=e.i(223023),w=e.i(542969),k=e.i(637528),_=e.i(341951),N=e.i(222360),L=e.i(210412),S=e.i(339814),C=e.i(561348);function M(e,t){return JSON.stringify(Object.entries(t).filter(([,e])=>void 0!==e).sort(([t],[i])=>(0,S.o)(t,i,{locale:e})))}var T=e.i(2763),A=e.i(143253);function O(e){let n,l,a,r=(0,i.c)(9),{initialListing:s}=e,o=void 0===s?null:s,c=(0,m.f)(),[d,f]=(0,x.useState)(!1),h=(0,u.u)();r[0]!==o?(n=o?.models.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.x,{}),(0,t.jsx)(y.T,{initialListing:o})]}):null,r[0]=o,r[1]=n):n=r[1];let p=n,g=d||h?null:p;return r[2]!==o||r[3]!==p||r[4]!==c?(l=c||!p?(0,t.jsx)(x.Suspense,{fallback:null,children:(0,t.jsx)(z,{initialListing:o,isHydrated:c,onListPainted:f})}):null,r[2]=o,r[3]=p,r[4]=c,r[5]=l):l=r[5],r[6]!==g||r[7]!==l?(a=(0,t.jsxs)(t.Fragment,{children:[g,l]}),r[6]=g,r[7]=l,r[8]=a):a=r[8],a}function z({initialListing:e,isHydrated:l,onListPainted:a}){let u=(0,d.useLocale)(),{searchParams:m}=(0,T.f)(),{models:_,modelCount:S,isLoading:O,isCallerCatalogPending:V,isCallerCatalogError:I,retryCallerCatalog:P,isPlaceholderData:E,categories:H,analytics:R,error:B,showPrivate:$}=(0,k.f)(m),F=(0,j.B)(m.output_modalities),D=(0,b.f)(e=>e.isPinnedOnly),q=(0,f.f)(e=>e.pinnedModelSlugs),Q=l&&D,W=Q&&_?(0,v.f)(_,q):_,K=Q?W?.length??0:S,U=!Q&&M(u,m)===M(u,{...C.M,fmt:n.P.Cards})&&!V&&!I&&void 0===_&&(e?.models.length??0)>0,Z=!U&&O&&(!_||0===_.length),Y=!U&&!O&&0===S&&_?.length===0,G=!U&&!O&&Q&&void 0!==_&&0===K,[J,X]=function(){let e,t,n,l,a=(0,i.c)(6),[r,s]=(0,x.useState)(null),[o,c]=(0,x.useState)(0);a[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{s(e)},a[0]=e):e=a[0];let u=e;return a[1]!==r?(t=()=>{if(!r)return void c(0);let e=()=>{let e=r.getBoundingClientRect().top+window.scrollY;c(t=>Math.abs(t-e)>.5?e:t)};e();let t=new ResizeObserver(e);return t.observe(document.body),t.observe(r),window.addEventListener("resize",e,{passive:!0}),()=>{t.disconnect(),window.removeEventListener("resize",e)}},n=[r],a[1]=r,a[2]=t,a[3]=n):(t=a[2],n=a[3]),(0,A.f)(t,n),a[4]!==o?(l=[u,o],a[4]=o,a[5]=l):l=a[5],l}(),ee=(0,x.useCallback)(e=>W?.[e]?.endpoint?.id??W?.[e]?.permaslug??e,[W]),et=(0,x.useCallback)(()=>168,[]),ei=(0,h.V)({count:Z?20:K,estimateSize:et,getItemKey:ee,overscan:10,paddingStart:8,paddingEnd:8,scrollMargin:X,initialOffset:()=>window.scrollY,directDomUpdates:!0});ei.shouldAdjustScrollPositionOnItemSizeChange=c.f;let en=(0,x.useCallback)(e=>{ei.containerRef(e)},[ei]),el=ei.getVirtualItems();return((0,x.useLayoutEffect)(()=>{a(!U)},[U,a]),I)?(0,t.jsx)(g.f,{onRetry:P}):$&&null!==B?(0,t.jsx)(o.e,{className:"mt-8",children:(0,t.jsx)(o.c,{children:(0,t.jsx)(o.p,{children:(0,t.jsx)(p.T,{children:"Unable to load private models"})})})}):G?(0,t.jsx)(N.f,{hasPins:q.length>0}):Y?(0,t.jsx)(o.e,{className:"mt-8",children:(0,t.jsxs)(o.c,{children:[(0,t.jsx)(o.p,{children:(0,t.jsx)(p.T,{children:"No matching models found for your search."})}),(0,t.jsx)(o.Y,{children:(0,t.jsx)(L.Z,{})})]})}):U?null:(0,t.jsx)("div",{ref:J,className:"relative w-full",children:(0,t.jsx)("ul",{ref:en,className:(0,r.f)("relative w-full transition-opacity duration-quick ease-smooth-out",E&&"pointer-events-none opacity-50"),children:el.map(e=>{let i=W?.[e.index];return(0,t.jsx)("li",{ref:ei.measureElement,"data-index":e.index,className:(0,r.f)("group absolute left-0 top-0 w-full","flex flex-col justify-center","px-0.5 py-1"),children:i?(0,t.jsx)(y.k,{model:i,categories:H,analytics:R,outputModalityIntent:F}):(0,t.jsx)(s.N,{className:"relative flex items-center px-4 md:above-phone:px-5",children:(0,t.jsx)("div",{className:"pointer-events-none flex w-full items-center",children:(0,t.jsx)(w.ModelsPageListItemSkeleton,{})})})},e.key)})})})}let V=(0,l.default)(()=>e.A(311453).then(e=>e.ModelTable),{loadableGenerated:{modules:[819571]},ssr:!1});e.s(["ModelListRenderer",0,function(e){let l,r=(0,i.c)(3),{initialListing:s}=e,[o]=(0,a.useModelsViewFormat)();if(o===n.P.Table){let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("div",{className:"h-full min-h-0 pb-2",children:(0,t.jsx)(V,{})}),r[0]=e):e=r[0],e}return r[1]!==s?(l=(0,t.jsx)("div",{className:"h-full min-h-0","data-ssr-content":"models-listing",children:(0,t.jsx)(O,{initialListing:s})}),r[1]=s,r[2]=l):l=r[2],l}],199754)},778325,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(136562),l=e.i(326e3),a=e.i(670168),r=e.i(960773),s=e.i(199168),o=e.i(988590),c=e.i(651681);let u={name:"arrow-down-up",size:24,node:[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"m21 8-4-4-4 4",key:"1c9v7m"}],["path",{d:"M17 4v16",key:"7dpous"}]]};u.node;let m=(0,c.f)(u);var d=e.i(16043),f=e.i(340965),h=e.i(2763),p=e.i(261437);let x="h-8 w-full min-w-0 above-phone:w-59 above-phone:flex-none",g=e=>{let a,c,u,d,g,v,j,b,y=(0,i.c)(20),{className:w,isCompact:k}=e,_=(0,s.M)(),N=(0,r.Q)(),{searchParams:L,setSearchParams:S}=(0,h.f)(),C=L.order??(L.q?"top-weekly":"newest");return y[0]!==N||y[1]!==S?(a=e=>{(0,o.q)(e,f.f)&&(N.capture("change_models_order",{value:e}),S({order:e}))},y[0]=N,y[1]=S,y[2]=a):a=y[2],y[3]!==w?(c=(0,n.f)(x,"gap-2",w),y[3]=w,y[4]=c):c=y[4],y[5]!==k?(u=!k&&(0,t.jsx)(m,{className:"size-3.5 shrink-0"}),y[5]=k,y[6]=u):u=y[6],y[7]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(l.SelectValue,{}),y[7]=d):d=y[7],y[8]!==c||y[9]!==u?(g=(0,t.jsxs)(l.SelectTrigger,{className:c,children:[u,d]}),y[8]=c,y[9]=u,y[10]=g):g=y[10],y[11]!==_?(v=f.f.map(e=>(0,t.jsx)(l.SelectItem,{value:e,children:_(p.f[e])},e)),y[11]=_,y[12]=v):v=y[12],y[13]!==v?(j=(0,t.jsx)(l.SelectContent,{align:"start",className:"max-h-[min(20rem,var(--available-height))]",children:v}),y[13]=v,y[14]=j):j=y[14],y[15]!==C||y[16]!==a||y[17]!==g||y[18]!==j?(b=(0,t.jsxs)(l.Select,{indicator:"none",value:C,onValueChange:a,children:[g,j]}),y[15]=C,y[16]=a,y[17]=g,y[18]=j,y[19]=b):b=y[19],b};e.s(["ModelsOrderDropDown",0,e=>{let l,r,s,o,c=(0,i.c)(10),{className:u,isCompact:m}=e,f=void 0!==m&&m;return c[0]!==u?(l=(0,n.f)(x,u),c[0]=u,c[1]=l):l=c[1],c[2]!==l?(r=(0,t.jsx)(a.l,{className:l}),c[2]=l,c[3]=r):r=c[3],c[4]!==u||c[5]!==f?(s=(0,t.jsx)(g,{className:u,isCompact:f}),c[4]=u,c[5]=f,c[6]=s):s=c[6],c[7]!==r||c[8]!==s?(o=(0,t.jsx)(d.Suspense,{fallback:r,children:s}),c[7]=r,c[8]=s,c[9]=o):o=c[9],o}],778325)},825845,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(136562),l=e.i(676605),a=e.i(129067),r=e.i(138257),s=e.i(199168),o=e.i(16043);let c=o.forwardRef(function({title:e,titleId:t,...i},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},i),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5m6 4.125 2.25 2.25m0 0 2.25 2.25M12 13.875l2.25-2.25M12 13.875l-2.25 2.25M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z"}))});var u=e.i(960773);e.i(707060);var m=e.i(196991),d=e.i(2763),f=e.i(411252),h=e.i(658295),p=e.i(382526),x=e.i(838479),g=e.i(371604),v=e.i(251867);let j=o.forwardRef(function({title:e,titleId:t,...i},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},i),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 14.25v2.25m3-4.5v4.5m3-6.75v6.75m3-9v9M6 20.25h12A2.25 2.25 0 0 0 20.25 18V6A2.25 2.25 0 0 0 18 3.75H6A2.25 2.25 0 0 0 3.75 6v12A2.25 2.25 0 0 0 6 20.25Z"}))});var b=e.i(710968),y=e.i(616108),w=e.i(291192),k=e.i(922969),_=e.i(486704);let N=o.forwardRef(function({title:e,titleId:t,...i},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},i),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m20.893 13.393-1.135-1.135a2.252 2.252 0 0 1-.421-.585l-1.08-2.16a.414.414 0 0 0-.663-.107.827.827 0 0 1-.812.21l-1.273-.363a.89.89 0 0 0-.738 1.595l.587.39c.59.395.674 1.23.172 1.732l-.2.2c-.212.212-.33.498-.33.796v.41c0 .409-.11.809-.32 1.158l-1.315 2.191a2.11 2.11 0 0 1-1.81 1.025 1.055 1.055 0 0 1-1.055-1.055v-1.172c0-.92-.56-1.747-1.414-2.089l-.655-.261a2.25 2.25 0 0 1-1.383-2.46l.007-.042a2.25 2.25 0 0 1 .29-.787l.09-.15a2.25 2.25 0 0 1 2.37-1.048l1.178.236a1.125 1.125 0 0 0 1.302-.795l.208-.73a1.125 1.125 0 0 0-.578-1.315l-.665-.332-.091.091a2.25 2.25 0 0 1-1.591.659h-.18c-.249 0-.487.1-.662.274a.931.931 0 0 1-1.458-1.137l1.411-2.353a2.25 2.25 0 0 0 .286-.76m11.928 9.869A9 9 0 0 0 8.965 3.525m11.928 9.868A9 9 0 1 1 8.965 3.525"}))}),L=o.forwardRef(function({title:e,titleId:t,...i},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},i),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12Z"}))}),S=o.forwardRef(function({title:e,titleId:t,...i},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},i),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 0 0-5.78 1.128 2.25 2.25 0 0 1-2.4 2.245 4.5 4.5 0 0 0 8.4-2.245c0-.399-.078-.78-.22-1.128Zm0 0a15.998 15.998 0 0 0 3.388-1.62m-5.043-.025a15.994 15.994 0 0 1 1.622-3.395m3.42 3.42a15.995 15.995 0 0 0 4.764-4.648l3.876-5.814a1.151 1.151 0 0 0-1.597-1.597L14.146 6.32a15.996 15.996 0 0 0-4.649 4.763m3.42 3.42a6.776 6.776 0 0 0-3.42-3.42"}))});var C=e.i(778553),M=e.i(470239);let T=o.forwardRef(function({title:e,titleId:t,...i},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},i),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 6.087c0-.355.186-.676.401-.959.221-.29.349-.634.349-1.003 0-1.036-1.007-1.875-2.25-1.875s-2.25.84-2.25 1.875c0 .369.128.713.349 1.003.215.283.401.604.401.959v0a.64.64 0 0 1-.657.643 48.39 48.39 0 0 1-4.163-.3c.186 1.613.293 3.25.315 4.907a.656.656 0 0 1-.658.663v0c-.355 0-.676-.186-.959-.401a1.647 1.647 0 0 0-1.003-.349c-1.036 0-1.875 1.007-1.875 2.25s.84 2.25 1.875 2.25c.369 0 .713-.128 1.003-.349.283-.215.604-.401.959-.401v0c.31 0 .555.26.532.57a48.039 48.039 0 0 1-.642 5.056c1.518.19 3.058.309 4.616.354a.64.64 0 0 0 .657-.643v0c0-.355-.186-.676-.401-.959a1.647 1.647 0 0 1-.349-1.003c0-1.035 1.008-1.875 2.25-1.875 1.243 0 2.25.84 2.25 1.875 0 .369-.128.713-.349 1.003-.215.283-.4.604-.4.959v0c0 .333.277.599.61.58a48.1 48.1 0 0 0 5.427-.63 48.05 48.05 0 0 0 .582-4.717.532.532 0 0 0-.533-.57v0c-.355 0-.676.186-.959.401-.29.221-.634.349-1.003.349-1.035 0-1.875-1.007-1.875-2.25s.84-2.25 1.875-2.25c.37 0 .713.128 1.003.349.283.215.604.401.96.401v0a.656.656 0 0 0 .658-.663 48.422 48.422 0 0 0-.37-5.36c-1.886.342-3.81.574-5.766.689a.578.578 0 0 1-.61-.58v0Z"}))});var A=e.i(443504),O=e.i(49611),z=e.i(227049),V=e.i(973523),I=e.i(85526),P=e.i(782143),E=e.i(297510),H=e.i(293747),R=e.i(329384),B=e.i(610586),$=e.i(912147),F=e.i(328262),D=e.i(808125),q=e.i(280819),Q=e.i(668379),W=e.i(988590),K=e.i(667417),U=e.i(209615),Z=e.i(756247),Y=e.i(387086),G=e.i(153746),J=e.i(151312);let X=new Set([Z.f.Tools,Z.f.ToolChoice]),ee=new Set([U.f.Router,U.f.Media,U.f.Other,U.f.PaLM]),et={codecategories:(0,t.jsx)(b.f,{className:"size-4"}),uicomponent:(0,t.jsx)(A.f,{className:"size-4"}),gamedev:(0,t.jsx)(T,{className:"size-4"}),dataviz:(0,t.jsx)(v.f,{className:"size-4"}),"3d":(0,t.jsx)(w.f,{className:"size-4"}),image:(0,t.jsx)(M.f,{className:"size-4"}),video:(0,t.jsx)(V.f,{className:"size-4"}),svg:(0,t.jsx)(C.f,{className:"size-4"})};function ei(e,t){return(0,P.f)(e,{locale:t,preset:e>=1e3?"compact-significant-thousands":"integer"})??"—"}let en={isHipaaFilterVisible:!1};function el(e){return"key"in e?e.key:e.keys.join("-")}function ea(e,t){if("key"in e){let i=t[e.key];return Array.isArray(i)?i.length>0:void 0!==i}return e.keys.some(e=>void 0!==t[e])}function er(e){return"group"===e.type?`group:${e.name}`:el(e)}function es({gt:e,locale:t},i){return n=>{if(0===n)return e("FREE");let l=(0,H.f)(n,{locale:t,preset:"model-price"})??"—";return n===i?e("{price}+",{price:l}):l}}var eo=e.i(139697),ec=e.i(317780),eu=e.i(601083);let em=(e,t)=>{let i=t[e];return"number"==typeof i?i:0},ed=new Set([0,3,6]),ef=()=>{},eh=e=>e.toString();function ep(e){let l,a,r,c,u,d,f,h,p,x,g,v,j,b,y,w,k,_=(0,i.c)(50),{options:N,defaultValue:L,onValueChange:S,formatLabel:C}=e,M=void 0===S?ef:S,T=void 0===C?eh:C,A=(0,s.o)(),[O,z]=(0,o.useState)(L);_[0]!==N||_[1]!==O[0]||_[2]!==O[1]?(l=O[0]!==N[0]||O[1]!==N.at(-1),_[0]=N,_[1]=O[0],_[2]=O[1],_[3]=l):l=_[3];let V=l;_[4]!==M?(a=e=>{M(e)},_[4]=M,_[5]=a):a=_[5];let I=(0,eu.s)(a,300);_[6]!==A?(r=A("Minimum filter value"),_[6]=A,_[7]=r):r=_[7],_[8]!==A?(c=A("Maximum filter value"),_[8]=A,_[9]=c):c=_[9],_[10]!==r||_[11]!==c?(u=[r,c],_[10]=r,_[11]=c,_[12]=u):u=_[12];let P=N.length-1;_[13]!==N||_[14]!==O[0]?(d=N.indexOf(O[0]),_[13]=N,_[14]=O[0],_[15]=d):d=_[15],_[16]!==N||_[17]!==O[1]?(f=N.indexOf(O[1]),_[16]=N,_[17]=O[1],_[18]=f):f=_[18],_[19]!==f||_[20]!==d?(h=[d,f],_[19]=f,_[20]=d,_[21]=h):h=_[21],_[22]!==I||_[23]!==N?(p=e=>{let t=[em(e[0]??0,N),em(e[1]??N.length-1,N)];z(t),I(t)},_[22]=I,_[23]=N,_[24]=p):p=_[24],_[25]!==h||_[26]!==p||_[27]!==u||_[28]!==P?(x=(0,t.jsx)(ec.f,{"aria-label":u,min:0,max:P,step:1,value:h,onValueChange:p}),_[25]=h,_[26]=p,_[27]=u,_[28]=P,_[29]=x):x=_[29],_[30]!==T||_[31]!==N||_[32]!==O[0]||_[33]!==O[1]?(g=N.map((e,i)=>(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[(0,t.jsx)("div",{className:(0,n.f)("h-2 w-px",i>=N.indexOf(O[0])&&i<=N.indexOf(O[1])?"bg-primary":"bg-muted-foreground")}),(ed.has(i)||i===N.indexOf(O[0])||i===N.indexOf(O[1]))&&(0,t.jsx)("span",{className:"mt-2 text-2xs font-medium text-muted-foreground",children:T(e)})]},i)),_[30]=T,_[31]=N,_[32]=O[0],_[33]=O[1],_[34]=g):g=_[34],_[35]!==g?(v=(0,t.jsx)("div",{className:"relative mt-4 grid w-full grid-cols-7",children:g}),_[35]=g,_[36]=v):v=_[36];let E=!V&&"hidden";return _[37]!==E?(j=(0,n.f)("w-full",E),_[37]=E,_[38]=j):j=_[38],_[39]!==M||_[40]!==N?(b=()=>{z([N[0],N.at(-1)]),M([N[0],N.at(-1)])},_[39]=M,_[40]=N,_[41]=b):b=_[41],_[42]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)(m.T,{children:"Reset"}),_[42]=y):y=_[42],_[43]!==j||_[44]!==b?(w=(0,t.jsx)(eo.Button,{variant:"ghost",size:"sm",className:j,onClick:b,children:y}),_[43]=j,_[44]=b,_[45]=w):w=_[45],_[46]!==x||_[47]!==v||_[48]!==w?(k=(0,t.jsxs)("div",{className:"w-full p-4",children:[x,v,w]}),_[46]=x,_[47]=v,_[48]=w,_[49]=k):k=_[49],k}var ex=e.i(637528);function eg(e,t){if(!Array.isArray(e))return t;let[i,n]=e;return[i??t[0],n??t[1]]}let ev=()=>{},ej=e=>e.toString();function eb(e){let l,a,r,c,u,d,f,h,p,x,g,v,j,b,y,w,k=(0,i.c)(49),{min:_,max:N,step:L,defaultValue:S,onValueChange:C,formatLabel:M}=e,T=void 0===L?1:L,A=void 0===C?ev:C,O=void 0===M?ej:M,z=(0,s.o)(),[V,I]=(0,o.useState)(S),P=V[0]!==_||V[1]!==N;k[0]!==O||k[1]!==V[0]?(l=O(V[0]),k[0]=O,k[1]=V[0],k[2]=l):l=k[2],k[3]!==l?(a=(0,t.jsx)("span",{children:l}),k[3]=l,k[4]=a):a=k[4],k[5]!==O||k[6]!==V[1]?(r=O(V[1]),k[5]=O,k[6]=V[1],k[7]=r):r=k[7],k[8]!==r?(c=(0,t.jsx)("span",{children:r}),k[8]=r,k[9]=c):c=k[9],k[10]!==a||k[11]!==c?(u=(0,t.jsxs)("div",{className:"flex w-full items-center justify-between text-2xs font-medium text-muted-foreground tabular-nums",children:[a,c]}),k[10]=a,k[11]=c,k[12]=u):u=k[12],k[13]!==z?(d=z("Minimum filter value"),k[13]=z,k[14]=d):d=k[14],k[15]!==z?(f=z("Maximum filter value"),k[15]=z,k[16]=f):f=k[16],k[17]!==f||k[18]!==d?(h=[d,f],k[17]=f,k[18]=d,k[19]=h):h=k[19],k[20]!==N||k[21]!==_?(p=e=>{I(eg(e,[_,N]))},k[20]=N,k[21]=_,k[22]=p):p=k[22],k[23]!==N||k[24]!==_||k[25]!==A?(x=e=>{A(eg(e,[_,N]))},k[23]=N,k[24]=_,k[25]=A,k[26]=x):x=k[26],k[27]!==N||k[28]!==_||k[29]!==V||k[30]!==T||k[31]!==h||k[32]!==p||k[33]!==x?(g=(0,t.jsx)(ec.f,{"aria-label":h,min:_,max:N,step:T,value:V,onValueChange:p,onValueCommitted:x}),k[27]=N,k[28]=_,k[29]=V,k[30]=T,k[31]=h,k[32]=p,k[33]=x,k[34]=g):g=k[34];let E=!P&&"hidden";return k[35]!==E?(v=(0,n.f)("w-full",E),k[35]=E,k[36]=v):v=k[36],k[37]!==N||k[38]!==_||k[39]!==A?(j=()=>{I([_,N]),A([_,N])},k[37]=N,k[38]=_,k[39]=A,k[40]=j):j=k[40],k[41]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)(m.T,{children:"Reset"}),k[41]=b):b=k[41],k[42]!==v||k[43]!==j?(y=(0,t.jsx)(eo.Button,{variant:"ghost",size:"sm",className:v,onClick:j,children:b}),k[42]=v,k[43]=j,k[44]=y):y=k[44],k[45]!==g||k[46]!==y||k[47]!==u?(w=(0,t.jsxs)("div",{className:"flex w-full flex-col gap-3 p-4",children:[u,g,y]}),k[45]=g,k[46]=y,k[47]=u,k[48]=w):w=k[48],w}let ey=(e,t)=>{let i=t[e];return"number"==typeof i?i:0},ew=new Set([0,3,6]),ek=()=>{},e_=e=>e.toString();function eN(e){let l,a,r,c,u,d,f,h,p,x,g,v,j=(0,i.c)(34),{options:b,onValueChange:y,formatLabel:w,defaultValue:k}=e,_=void 0===y?ek:y,N=void 0===w?e_:w,L=(0,s.o)(),[S,C]=(0,o.useState)(void 0===k?0:k);j[0]!==_?(l=e=>{_(e)},j[0]=_,j[1]=l):l=j[1];let M=(0,eu.s)(l,300);j[2]!==L?(a=L("Filter value"),j[2]=L,j[3]=a):a=j[3];let T=b.length-1;j[4]!==S||j[5]!==b?(r=b.indexOf(S),j[4]=S,j[5]=b,j[6]=r):r=j[6],j[7]!==M||j[8]!==b?(c=e=>{if(0===e){C(0),M(ey(0,b));return}let t=Math.min(e,b.length-1);C(b[t]),M(ey(t,b))},j[7]=M,j[8]=b,j[9]=c):c=j[9],j[10]!==a||j[11]!==T||j[12]!==r||j[13]!==c?(u=(0,t.jsx)(ec.f,{"aria-label":a,min:0,max:T,step:1,value:r,onValueChange:c}),j[10]=a,j[11]=T,j[12]=r,j[13]=c,j[14]=u):u=j[14],j[15]!==S||j[16]!==N||j[17]!==b?(d=b.map((e,i)=>e&&(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[(0,t.jsx)("div",{className:(0,n.f)("h-2 w-px",i<=b.indexOf(S)?"bg-primary":"bg-muted-foreground")}),(ew.has(i)||i===b.indexOf(S))&&(0,t.jsx)("span",{className:"mt-2 text-2xs font-medium text-muted-foreground",children:N(e)})]},i)),j[15]=S,j[16]=N,j[17]=b,j[18]=d):d=j[18],j[19]!==d?(f=(0,t.jsx)("div",{className:"relative mt-4 grid w-full grid-cols-7",children:d}),j[19]=d,j[20]=f):f=j[20];let A=0===S&&"hidden";return j[21]!==A?(h=(0,n.f)("w-full",A),j[21]=A,j[22]=h):h=j[22],j[23]!==M||j[24]!==b?(p=()=>{C(b[0]),M(ey(0,b))},j[23]=M,j[24]=b,j[25]=p):p=j[25],j[26]===Symbol.for("react.memo_cache_sentinel")?(x=(0,t.jsx)(m.T,{children:"Reset"}),j[26]=x):x=j[26],j[27]!==h||j[28]!==p?(g=(0,t.jsx)(eo.Button,{variant:"ghost",size:"sm",className:h,onClick:p,children:x}),j[27]=h,j[28]=p,j[29]=g):g=j[29],j[30]!==f||j[31]!==g||j[32]!==u?(v=(0,t.jsxs)("div",{className:"w-full p-4",children:[u,f,g]}),j[30]=f,j[31]=g,j[32]=u,j[33]=v):v=j[33],v}let eL=[50,100,250,500,1e3],eS=[100,50,10,500,250,25];function eC(e,t){return Math.min(Math.log1p(Math.max(e,0))/t,1)}function eM(e,t){return Math.round(Math.expm1(e/200*t))}function eT(e,t){return Math.min(Math.round(Math.log1p(Math.max(e,0))/t*200),200)}function eA({index:e,binCount:t,scaleMax:i}){return Math.expm1(e/t*i)}let eO=Array.from({length:7},(e,t)=>t/6);function ez(e){let l,a,r,c,u,d,f,h,p,x,g,v,j,b,y,w,k,_,N,L,S=(0,i.c)(107),{values:C,fastestThroughput:M,defaultValue:T,onValueChange:A,formatAxisLabel:O,formatAxisEndLabel:z}=e,V=(0,s.o)();if(S[0]!==M||S[1]!==C?(l=M??C.at(-1),S[0]=M,S[1]=C,S[2]=l):l=S[2],S[3]!==l){var I;a=void 0===(I=l)?Math.log1p(1e3):Math.log1p(eL.find(e=>e>=I)??1e3),S[3]=l,S[4]=a}else a=S[4];let P=a;S[5]!==T||S[6]!==P?(r=()=>({selection:T,steps:eP(T,P),scaleMax:P}),S[5]=T,S[6]=P,S[7]=r):r=S[7];let[E,H]=(0,o.useState)(r),{selection:R}=E;S[8]!==E||S[9]!==P?(c=eV(E,P),S[8]=E,S[9]=P,S[10]=c):c=S[10];let B=c;S[11]!==P||S[12]!==C?(u=function({values:e,binCount:t,scaleMax:i}){let n=Array.from({length:t},()=>0);for(let l of e){let e=Math.min(Math.floor(Math.log1p(l)/i*t),t-1);n[Math.max(e,0)]=(n[Math.max(e,0)]??0)+1}return n}({values:C,binCount:24,scaleMax:P}),S[11]=P,S[12]=C,S[13]=u):u=S[13];let $=u,F=Math.max(...$,1),D=B[0]/200,q=B[1]/200;if(S[14]!==$||S[15]!==E||S[16]!==z||S[17]!==O||S[18]!==V||S[19]!==q||S[20]!==D||S[21]!==A||S[22]!==P||S[23]!==R.max||S[24]!==R.min||S[25]!==B||S[26]!==F){let e,i,l,a,r,s,o,c,u,m,k=function(e){let t=[];for(let i of eS){if(2===t.length)break;let n=eC(i,e);n>=.09&&n<=.7&&t.every(t=>Math.abs(eC(t,e)-n)>=.09)&&t.push(i)}return t.toSorted((e,t)=>e-t)}(P),_=eM(200,P);if(d=R.min>0||void 0!==R.max,p="flex w-full flex-col gap-2 p-4",S[38]!==$||S[39]!==P||S[40]!==R.max||S[41]!==R.min||S[42]!==F){let i;S[44]!==P||S[45]!==R.max||S[46]!==R.min||S[47]!==F?(i=(e,i)=>{let l=0===e?0:Math.max(e/F*100,8),a=eA({index:i+1,binCount:24,scaleMax:P})>R.min&&(void 0===R.max||eA({index:i,binCount:24,scaleMax:P}){let t=0===e?R.min:R.max;return void 0===t?V("No maximum"):V("{throughput} tokens per second",{throughput:O(t)})},S[58]=O,S[59]=V,S[60]=R.max,S[61]=R.min,S[62]=r):r=S[62],S[63]!==P?(s=e=>{H(t=>eI({previous:t,next:e,scaleMax:P}))},S[63]=P,S[64]=s):s=S[64],S[65]!==E||S[66]!==A||S[67]!==P?(o=e=>{A(eI({previous:E,next:e,scaleMax:P}).selection)},S[65]=E,S[66]=A,S[67]=P,S[68]=o):o=S[68],S[69]!==B||S[70]!==a||S[71]!==r||S[72]!==s||S[73]!==o?(g=(0,t.jsx)(ec.f,{"aria-label":a,min:0,max:200,step:1,value:B,getThumbAriaValueText:r,onValueChange:s,onValueCommitted:o}),S[69]=B,S[70]=a,S[71]=r,S[72]=s,S[73]=o,S[74]=g):g=S[74],S[75]!==q||S[76]!==D?(c=eO.map(e=>(0,t.jsx)("div",{className:(0,n.f)("absolute top-0 left-(--tick-left) h-2 w-px -translate-x-1/2",e>=D-.005&&e<=q+.005?"bg-primary":"bg-muted-foreground"),"data-allow-inline-style":!0,style:{"--tick-left":`${100*e}%`}},e)),S[75]=q,S[76]=D,S[77]=c):c=S[77],S[78]!==c?(v=(0,t.jsx)("div",{className:"relative mx-2 h-2","aria-hidden":!0,children:c}),S[78]=c,S[79]=v):v=S[79],y="relative mx-2 h-5 text-caption text-muted-foreground tabular-nums",w=!0,S[80]!==O?(u=O(0),S[80]=O,S[81]=u):u=S[81],S[82]!==u?(f=(0,t.jsx)("span",{className:"absolute left-0 -translate-x-1/2",children:u}),S[82]=u,S[83]=f):f=S[83],S[84]!==O||S[85]!==P?(m=e=>(0,t.jsx)("span",{className:"absolute left-(--label-left) -translate-x-1/2","data-allow-inline-style":!0,style:{"--label-left":`${100*eC(e,P)}%`},children:O(e)},e),S[84]=O,S[85]=P,S[86]=m):m=S[86],h=k.map(m),j="absolute -right-2 whitespace-nowrap",b=z(_),S[14]=$,S[15]=E,S[16]=z,S[17]=O,S[18]=V,S[19]=q,S[20]=D,S[21]=A,S[22]=P,S[23]=R.max,S[24]=R.min,S[25]=B,S[26]=F,S[27]=d,S[28]=f,S[29]=h,S[30]=p,S[31]=x,S[32]=g,S[33]=v,S[34]=j,S[35]=b,S[36]=y,S[37]=w}else d=S[27],f=S[28],h=S[29],p=S[30],x=S[31],g=S[32],v=S[33],j=S[34],b=S[35],y=S[36],w=S[37];return S[87]!==j||S[88]!==b?(k=(0,t.jsx)("span",{className:j,children:b}),S[87]=j,S[88]=b,S[89]=k):k=S[89],S[90]!==f||S[91]!==h||S[92]!==k||S[93]!==y||S[94]!==w?(_=(0,t.jsxs)("div",{className:y,"aria-hidden":w,children:[f,h,k]}),S[90]=f,S[91]=h,S[92]=k,S[93]=y,S[94]=w,S[95]=_):_=S[95],S[96]!==d||S[97]!==A||S[98]!==P?(N=d&&(0,t.jsx)(eo.Button,{variant:"ghost",size:"sm",className:"w-full",onClick:()=>{H({selection:{min:0,max:void 0},steps:[0,200],scaleMax:P}),A({min:0,max:void 0})},children:(0,t.jsx)(m.T,{children:"Reset"})}),S[96]=d,S[97]=A,S[98]=P,S[99]=N):N=S[99],S[100]!==p||S[101]!==x||S[102]!==g||S[103]!==v||S[104]!==_||S[105]!==N?(L=(0,t.jsxs)("div",{className:p,children:[x,g,v,_,N]}),S[100]=p,S[101]=x,S[102]=g,S[103]=v,S[104]=_,S[105]=N,S[106]=L):L=S[106],L}function eV(e,t){return e.scaleMax===t?e.steps:eP(e.selection,t)}function eI({previous:e,next:t,scaleMax:i}){var n;let l=Array.isArray(n=t)?[n[0]??0,n[1]??200]:[Number(n),200];return{selection:function({next:e,nextSelection:t,initial:i,initialSteps:n}){let l=e[0]===n[0],a=l?i.min:t.min,r=e[1]===n[1]?i.max:t.max;return void 0===r||a<=r?{min:a,max:r}:l?{min:a,max:a}:{min:r,max:r}}({next:l,nextSelection:function([e,t],i){return{min:eM(e,i),max:t>=200?void 0:eM(t,i)}}(l,i),initial:e.selection,initialSteps:eV(e,i)}),steps:l,scaleMax:i}}function eP(e,t){return[eT(e.min,t),void 0===e.max?200:eT(e.max,t)]}var eE=e.i(548204),eH=e.i(300326);let eR=e=>{let n,l,a,r,s=(0,i.c)(14),{options:c,renderItem:u}=e,[d,f]=(0,o.useState)(!1);return s[0]!==c||s[1]!==u?(n=c.slice(0,3).map(u),s[0]=c,s[1]=u,s[2]=n):n=s[2],s[3]!==c||s[4]!==u?(l=c.length>3&&(0,t.jsx)(eE.CollapsibleContent,{className:"flex flex-col gap-1",children:c.slice(3).map(u)}),s[3]=c,s[4]=u,s[5]=l):l=s[5],s[6]!==c.length||s[7]!==d?(a=c.length>3&&(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)(eE.CollapsibleTrigger,{render:(0,t.jsx)(eo.Button,{align:"start",variant:"ghost",size:"sm",density:"compact",tone:"subdued",className:"z-10 flex w-full gap-1"}),children:(0,t.jsx)(m.T,{children:(0,t.jsx)(eH.f,{branch:d?"less":"more",less:"Less",more:"More…"})})})}),s[6]=c.length,s[7]=d,s[8]=a):a=s[8],s[9]!==d||s[10]!==n||s[11]!==l||s[12]!==a?(r=(0,t.jsxs)(eE.Collapsible,{open:d,onOpenChange:f,className:"flex flex-col gap-1",children:[n,l,a]}),s[9]=d,s[10]=n,s[11]=l,s[12]=a,s[13]=r):r=s[13],r};var eB=e.i(918331),e$=e.i(475615);let eF=e=>{let l,a,r,s,o,c=(0,i.c)(15),{id:u,label:m,checked:d,onToggle:f}=e,h=d&&"bg-accent text-accent-foreground";return c[0]!==h?(l=(0,n.f)("flex h-8 items-center gap-2 rounded-md px-2","hover:bg-card-hover",h),c[0]=h,c[1]=l):l=c[1],c[2]!==d||c[3]!==u||c[4]!==f?(a=(0,t.jsx)(eB.f,{id:u,checked:d,onCheckedChange:f}),c[2]=d,c[3]=u,c[4]=f,c[5]=a):a=c[5],c[6]!==m?(r=(0,t.jsx)("span",{className:"truncate",children:m}),c[6]=m,c[7]=r):r=c[7],c[8]!==u||c[9]!==r?(s=(0,t.jsx)(e$.f,{leading:"body",htmlFor:u,className:"flex w-full cursor-pointer items-center truncate",children:r}),c[8]=u,c[9]=r,c[10]=s):s=c[10],c[11]!==l||c[12]!==a||c[13]!==s?(o=(0,t.jsxs)("div",{className:l,children:[a,s]}),c[11]=l,c[12]=a,c[13]=s,c[14]=o):o=c[14],o},eD=(e,t)=>{let n,l=(0,i.c)(5),a=(0,u.Q)(),{setSearchParams:r}=(0,d.f)();return l[0]!==e||l[1]!==t||l[2]!==a||l[3]!==r?(n=()=>{a.capture("change_models_filter",{filter:e,value:t}),r({[e]:t})},l[0]=e,l[1]=t,l[2]=a,l[3]=r,l[4]=n):n=l[4],n},eq=e=>{let n,l=(0,i.c)(2);return l[0]!==e?(n=(0,t.jsx)(o.Suspense,{fallback:null,children:(0,t.jsx)(eQ,{...e})}),l[0]=e,l[1]=n):n=l[1],n},eQ=e=>{let n,l,a,r,s=(0,i.c)(12);if(s[0]!==e.getValues||s[1]!==e.option){let t=e.getValues();l=(n=t.includes(e.option))?t.filter(t=>t!==e.option):[...t,e.option],s[0]=e.getValues,s[1]=e.option,s[2]=n,s[3]=l}else n=s[2],l=s[3];let o=l,c=eD(e.filterKey,o.length>0?o:null),u=`${e.filterKey}-${e.option}`;return s[4]!==e.formatLabel||s[5]!==e.option?(a=e.formatLabel?.(e.option)??e.option,s[4]=e.formatLabel,s[5]=e.option,s[6]=a):a=s[6],s[7]!==n||s[8]!==u||s[9]!==a||s[10]!==c?(r=(0,t.jsx)(eF,{id:u,label:a,checked:n,onToggle:c}),s[7]=n,s[8]=u,s[9]=a,s[10]=c,s[11]=r):r=s[11],r};function eW(e){let n,l=(0,i.c)(2);return l[0]!==e?(n=(0,t.jsx)(o.Suspense,{fallback:null,children:(0,t.jsx)(eK,{...e})}),l[0]=e,l[1]=n):n=l[1],n}function eK(e){let n,l,a,r=(0,i.c)(11);r[0]!==e.getIsActive||r[1]!==e.option?(n=e.getIsActive(e.option),r[0]=e.getIsActive,r[1]=e.option,r[2]=n):n=r[2];let s=n,o=eD(e.filterKey,s?null:e.option),c=`${e.filterKey}-${e.option}`;return r[3]!==e.formatLabel||r[4]!==e.option?(l=e.formatLabel?.(e.option)??e.option,r[3]=e.formatLabel,r[4]=e.option,r[5]=l):l=r[5],r[6]!==s||r[7]!==c||r[8]!==l||r[9]!==o?(a=(0,t.jsx)(eF,{id:c,label:l,checked:s,onToggle:o}),r[6]=s,r[7]=c,r[8]=l,r[9]=o,r[10]=a):a=r[10],a}let eU=e=>{let n,l=(0,i.c)(2),{filter:a}=e;return l[0]!==a?(n=(0,t.jsx)(o.Suspense,{fallback:null,children:(0,t.jsx)(eZ,{filter:a})}),l[0]=a,l[1]=n):n=l[1],n},eZ=e=>{let n=(0,i.c)(92),{filter:l}=e,a=(0,u.Q)(),{searchParams:r,setSearchParams:s}=(0,d.f)();switch(l.type){case"segmented-slider":{let e,i,o,c=r[l.key];n[0]!==l.options?(e=l.options.map(eJ),n[0]=l.options,n[1]=e):e=n[1],n[2]!==l.key||n[3]!==l.options[0]||n[4]!==a||n[5]!==s?(i=e=>{a.capture("change_models_filter",{filter:l.key,value:e}),s({[l.key]:e===l.options[0]?null:e})},n[2]=l.key,n[3]=l.options[0],n[4]=a,n[5]=s,n[6]=i):i=n[6];let u=r[l.key]??0;return n[7]!==l.formatLabel||n[8]!==c||n[9]!==e||n[10]!==i||n[11]!==u?(o=(0,t.jsx)(eN,{options:e,onValueChange:i,formatLabel:l.formatLabel,defaultValue:u},c),n[7]=l.formatLabel,n[8]=c,n[9]=e,n[10]=i,n[11]=u,n[12]=o):o=n[12],o}case"duo-segmented-slider":{let e,i,o,c,u,m=`${r[l.keys[0]]}-${r[l.keys[1]]}`;n[13]!==l.options?(e=l.options.map(eX),n[13]=l.options,n[14]=e):e=n[14],n[15]!==l.formatValue||n[16]!==l.keys||n[17]!==l.options||n[18]!==a||n[19]!==s?(i=e=>{let[t,i]=function({range:e,options:t,formatValue:i}){let[n,l]=e;return[n===t[0]?null:eG(n,i),eG(l,i)]}({range:e,options:l.options,formatValue:l.formatValue});a.capture("change_models_filter",{filter:l.keys.join(","),value:[t,i]}),s({[l.keys[0]]:t,[l.keys[1]]:i})},n[15]=l.formatValue,n[16]=l.keys,n[17]=l.options,n[18]=a,n[19]=s,n[20]=i):i=n[20];let d=r[l.keys[0]]??0;return n[21]!==l.keys[1]||n[22]!==l.options||n[23]!==r?(o=r[l.keys[1]]??l.options.at(-1),n[21]=l.keys[1],n[22]=l.options,n[23]=r,n[24]=o):o=n[24],n[25]!==d||n[26]!==o?(c=[d,o],n[25]=d,n[26]=o,n[27]=c):c=n[27],n[28]!==l.formatLabel||n[29]!==m||n[30]!==e||n[31]!==i||n[32]!==c?(u=(0,t.jsx)(ep,{options:e,onValueChange:i,formatLabel:l.formatLabel,defaultValue:c},m),n[28]=l.formatLabel,n[29]=m,n[30]=e,n[31]=i,n[32]=c,n[33]=u):u=n[33],u}case"range-slider":{let e,i,o,c,u,m=l.toSlider??e0,d=l.toQuery??e1,f=r[l.keys[0]],h=r[l.keys[1]],p=`${l.min}-${l.max}-${f}-${h}`;return n[34]!==l.min||n[35]!==f||n[36]!==m?(e=void 0!==f?m(f):l.min,n[34]=l.min,n[35]=f,n[36]=m,n[37]=e):e=n[37],n[38]!==l.max||n[39]!==h||n[40]!==m?(i=void 0!==h?m(h):l.max,n[38]=l.max,n[39]=h,n[40]=m,n[41]=i):i=n[41],n[42]!==e||n[43]!==i?(o=[e,i],n[42]=e,n[43]=i,n[44]=o):o=n[44],n[45]!==l.keys||n[46]!==l.max||n[47]!==l.min||n[48]!==a||n[49]!==s||n[50]!==d?(c=e=>{let[t,i]=e,n=[t<=l.min?null:d(t),i>=l.max?null:d(i)];a.capture("change_models_filter",{filter:l.keys.join(","),value:n}),s({[l.keys[0]]:n[0],[l.keys[1]]:n[1]})},n[45]=l.keys,n[46]=l.max,n[47]=l.min,n[48]=a,n[49]=s,n[50]=d,n[51]=c):c=n[51],n[52]!==l.formatLabel||n[53]!==l.max||n[54]!==l.min||n[55]!==l.step||n[56]!==p||n[57]!==o||n[58]!==c?(u=(0,t.jsx)(eb,{min:l.min,max:l.max,step:l.step,formatLabel:l.formatLabel,defaultValue:o,onValueChange:c},p),n[52]=l.formatLabel,n[53]=l.max,n[54]=l.min,n[55]=l.step,n[56]=p,n[57]=o,n[58]=c,n[59]=u):u=n[59],u}case"histogram-slider":{let e,i;if(n[60]!==l.keys||n[61]!==r){let t;n[63]!==r?(t=e=>r[e]??"",n[63]=r,n[64]=t):t=n[64],e=l.keys.map(t).join("-"),n[60]=l.keys,n[61]=r,n[62]=e}else e=n[62];return n[65]!==l||n[66]!==e?(i=(0,t.jsx)(eY,{filter:l},e),n[65]=l,n[66]=e,n[67]=i):i=n[67],i}case"plain":{let e,i;return n[68]!==l||n[69]!==r?(e=e=>(0,t.jsx)(eW,{option:e,filterKey:l.key,getIsActive:e=>r[l.key]===e,formatLabel:e=>{let t=l.options.find(t=>t===e);return void 0!==t?l.formatLabel(t):e}},e),n[68]=l,n[69]=r,n[70]=e):e=n[70],n[71]!==l.options||n[72]!==e?(i=(0,t.jsx)(eR,{options:l.options,renderItem:e}),n[71]=l.options,n[72]=e,n[73]=i):i=n[73],i}case"multiselect":{let e,i;if("input_modalities"===l.key){let e,i;if(n[74]!==l.formatLabel||n[75]!==l.key||n[76]!==l.options||n[77]!==r){let i;n[79]!==l.formatLabel||n[80]!==l.key||n[81]!==r?(i=e=>(0,t.jsx)(eq,{option:e,filterKey:l.key,formatLabel:l.formatLabel,getValues:()=>(r[l.key]||[]).map(String)},e),n[79]=l.formatLabel,n[80]=l.key,n[81]=r,n[82]=i):i=n[82],e=l.options.map(i),n[74]=l.formatLabel,n[75]=l.key,n[76]=l.options,n[77]=r,n[78]=e}else e=n[78];return n[83]!==e?(i=(0,t.jsx)("div",{className:"flex flex-col gap-1",children:e}),n[83]=e,n[84]=i):i=n[84],i}return n[85]!==l.formatLabel||n[86]!==l.key||n[87]!==r?(e=e=>(0,t.jsx)(eq,{option:e,filterKey:l.key,formatLabel:l.formatLabel,getValues:()=>(r[l.key]||[]).map(String)},e),n[85]=l.formatLabel,n[86]=l.key,n[87]=r,n[88]=e):e=n[88],n[89]!==l.options||n[90]!==e?(i=(0,t.jsx)(eR,{options:l.options,renderItem:e}),n[89]=l.options,n[90]=e,n[91]=i):i=n[91],i}default:return null}},eY=e=>{let n,l,a,r,s=(0,i.c)(16),{filter:o}=e,c=(0,u.Q)(),{searchParams:m,setSearchParams:f}=(0,d.f)(),{throughputValues:h,fastestThroughput:p}=(0,ex.f)(m);s[0]!==h?(n=h??[],s[0]=h,s[1]=n):n=s[1];let x=m[o.keys[0]]??0,g=m[o.keys[1]]??void 0;return s[2]!==x||s[3]!==g?(l={min:x,max:g},s[2]=x,s[3]=g,s[4]=l):l=s[4],s[5]!==o.keys||s[6]!==c||s[7]!==f?(a=e=>{c.capture("change_models_filter",{filter:o.keys.join(","),value:[e.min,e.max??null]}),f({[o.keys[0]]:e.min>0?e.min:null,[o.keys[1]]:e.max??null})},s[5]=o.keys,s[6]=c,s[7]=f,s[8]=a):a=s[8],s[9]!==o.formatAxisEndLabel||s[10]!==o.formatAxisLabel||s[11]!==p||s[12]!==n||s[13]!==l||s[14]!==a?(r=(0,t.jsx)(ez,{values:n,fastestThroughput:p,defaultValue:l,formatAxisLabel:o.formatAxisLabel,formatAxisEndLabel:o.formatAxisEndLabel,onValueChange:a}),s[9]=o.formatAxisEndLabel,s[10]=o.formatAxisLabel,s[11]=p,s[12]=n,s[13]=l,s[14]=a,s[15]=r):r=s[15],r};function eG(e,t){if(!t)return e;let i=t(e);return i?Number(i):null}function eJ(e){return e?Number(e):0}function eX(e){return e?Number(e):0}function e0(e){return e}function e1(e){return e}function e2(e,t){let n,l,a,r=(0,i.c)(6),s=void 0!==t&&t||e;r[0]!==e||r[1]!==s?(n={isOpen:s,wasActive:e},r[0]=e,r[1]=s,r[2]=n):n=r[2];let[c,u]=(0,o.useState)(n);c.wasActive!==e&&u({isOpen:c.isOpen||e,wasActive:e}),r[3]===Symbol.for("react.memo_cache_sentinel")?(l=e=>{u(t=>({...t,isOpen:e}))},r[3]=l):l=r[3];let m=l;return r[4]!==c.isOpen?(a=[c.isOpen,m],r[4]=c.isOpen,r[5]=a):a=r[5],a}function e3(e){let l,a,r,s,o,c,u,m,d,h,p=(0,i.c)(29),{value:x,label:g,icon:v,tooltip:j,defaultOpen:b,isActive:y,contentClassName:w,children:k}=e,[_,N]=e2(void 0!==y&&y,void 0!==b&&b),L=_?x:"";p[0]!==N||p[1]!==x?(l=e=>N(Array.isArray(e)?e.includes(x):e===x),p[0]=N,p[1]=x,p[2]=l):l=p[2];let S=j?"pr-6":void 0;return p[3]!==S?(a=(0,n.f)("text-foreground text-xs flex min-w-0 items-center gap-2 text-left font-medium",S),p[3]=S,p[4]=a):a=p[4],p[5]!==g?(r=(0,t.jsx)("span",{className:"break-words group-hover:underline",children:g}),p[5]=g,p[6]=r):r=p[6],p[7]!==v||p[8]!==a||p[9]!==r?(s=(0,t.jsx)(f.AccordionTrigger,{className:"group px-2",children:(0,t.jsxs)("div",{className:a,children:[v,r]})}),p[7]=v,p[8]=a,p[9]=r,p[10]=s):s=p[10],p[11]!==j?(o=j&&(0,t.jsx)("span",{className:"absolute right-8 top-1/2 z-10 -translate-y-1/2",children:j}),p[11]=j,p[12]=o):o=p[12],p[13]!==s||p[14]!==o?(c=(0,t.jsxs)("div",{className:"relative",children:[s,o]}),p[13]=s,p[14]=o,p[15]=c):c=p[15],p[16]!==w?(u=(0,n.f)("flex flex-col gap-1 truncate",w),p[16]=w,p[17]=u):u=p[17],p[18]!==k||p[19]!==u?(m=(0,t.jsx)(f.AccordionContent,{children:(0,t.jsx)("div",{className:u,children:k})}),p[18]=k,p[19]=u,p[20]=m):m=p[20],p[21]!==c||p[22]!==m||p[23]!==x?(d=(0,t.jsxs)(f.AccordionItem,{value:x,className:"border-none",children:[c,m]}),p[21]=c,p[22]=m,p[23]=x,p[24]=d):d=p[24],p[25]!==d||p[26]!==L||p[27]!==l?(h=(0,t.jsx)(f.Accordion,{variant:"plain",type:"single",collapsible:!0,value:L,onValueChange:l,children:d}),p[25]=d,p[26]=L,p[27]=l,p[28]=h):h=p[28],h}let e5=e=>{let n,l,a,r,s=(0,i.c)(16),{filter:o}=e,c="plain"===o.type||"multiselect"===o.type,{searchParams:u}=(0,d.f)();s[0]!==o||s[1]!==u?(n=ea(o,u),s[0]=o,s[1]=u,s[2]=n):n=s[2];let m=n;s[3]!==o?(l=el(o),s[3]=o,s[4]=l):l=s[4];let f="tooltip"in o?o.tooltip:void 0,h=c?"pl-2":void 0;return s[5]!==o?(a=(0,t.jsx)(eU,{filter:o}),s[5]=o,s[6]=a):a=s[6],s[7]!==o.defaultOpen||s[8]!==o.icon||s[9]!==o.name||s[10]!==m||s[11]!==l||s[12]!==f||s[13]!==h||s[14]!==a?(r=(0,t.jsx)(e3,{value:l,label:o.name,icon:o.icon,tooltip:f,defaultOpen:o.defaultOpen,isActive:m,contentClassName:h,children:a}),s[7]=o.defaultOpen,s[8]=o.icon,s[9]=o.name,s[10]=m,s[11]=l,s[12]=f,s[13]=h,s[14]=a,s[15]=r):r=s[15],r};function e4(){let e,n=(0,i.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(o.Suspense,{fallback:null,children:(0,t.jsx)(e6,{})}),n[0]=e):e=n[0],e}function e6(){let e,n,l,a,r,o=(0,i.c)(12),{query:f,setSearchParams:h}=(0,d.f)(),p=(0,u.Q)(),x=(0,s.o)(),g="false"===f.active;o[0]!==g||o[1]!==p||o[2]!==h?(e=()=>{h({active:g?null:"false"}),p.capture("toggle_active_endpoints",{show_deprecated:!g,source:"models-page"})},o[0]=g,o[1]=p,o[2]=h,o[3]=e):e=o[3];let v=e;return o[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)(m.T,{children:"Inactive models"}),l=(0,t.jsx)(c,{className:"size-4"}),o[4]=n,o[5]=l):(n=o[4],l=o[5]),o[6]!==x?(a=x("Show deprecated"),o[6]=x,o[7]=a):a=o[7],o[8]!==g||o[9]!==a||o[10]!==v?(r=(0,t.jsx)(e3,{value:"inactive-models",label:n,icon:l,contentClassName:"pl-2",children:(0,t.jsx)(eF,{id:"active-show-deprecated",label:a,checked:g,onToggle:v})}),o[8]=g,o[9]=a,o[10]=v,o[11]=r):r=o[11],r}var e7=e.i(673802),e9=e.i(56449);function e8(){let e,n=(0,i.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(o.Suspense,{fallback:null,children:(0,t.jsx)(te,{})}),n[0]=e):e=n[0],e}function te(){let e,n,l,a,r,o,c=(0,i.c)(13),{query:f,setSearchParams:h}=(0,d.f)();c[0]===Symbol.for("react.memo_cache_sentinel")?(e={shouldFetchPrivateModels:!0},c[0]=e):e=c[0];let{privateModels:p}=(0,e9.f)(e),x=p.length>0,g=(0,u.Q)(),v=(0,s.o)(),j="true"===f.private;if(!x)return null;c[1]!==g||c[2]!==h||c[3]!==j?(n=()=>{let e=!j;h({private:e?"true":null}),g.capture("click_private_models_toggle",{show_private:e,source:"models-page"})},c[1]=g,c[2]=h,c[3]=j,c[4]=n):n=c[4];let b=n;return c[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(m.T,{children:"Private models"}),a=(0,t.jsx)(e7.f,{className:"size-4"}),c[5]=l,c[6]=a):(l=c[5],a=c[6]),c[7]!==v?(r=v("Show private"),c[7]=v,c[8]=r):r=c[8],c[9]!==j||c[10]!==r||c[11]!==b?(o=(0,t.jsx)(e3,{value:"private-models",label:l,icon:a,contentClassName:"pl-2",children:(0,t.jsx)(eF,{id:"private-show-private",label:r,checked:j,onToggle:b})}),c[9]=j,c[10]=r,c[11]=b,c[12]=o):o=c[12],o}let tt=e=>{let l,a,r,s=(0,i.c)(8),{name:o,icon:c,className:u}=e;return s[0]!==u?(l=(0,n.f)("text-foreground text-xs flex min-w-0 items-center gap-2 text-left font-medium",u),s[0]=u,s[1]=l):l=s[1],s[2]!==o?(a=(0,t.jsx)("span",{className:"break-words group-hover:underline",children:o}),s[2]=o,s[3]=a):a=s[3],s[4]!==c||s[5]!==l||s[6]!==a?(r=(0,t.jsxs)("div",{className:l,children:[c,a]}),s[4]=c,s[5]=l,s[6]=a,s[7]=r):r=s[7],r},ti=e=>{let n,l,a,r=(0,i.c)(10),{group:s}=e;if(s.collapsible){let e;return r[0]!==s?(e=(0,t.jsx)(tn,{group:s}),r[0]=s,r[1]=e):e=r[1],e}return r[2]!==s.icon||r[3]!==s.name?(n=(0,t.jsx)("div",{className:"group px-2",children:(0,t.jsx)(tt,{name:s.name,icon:s.icon})}),r[2]=s.icon,r[3]=s.name,r[4]=n):n=r[4],r[5]!==s?(l=(0,t.jsx)(tl,{group:s}),r[5]=s,r[6]=l):l=r[6],r[7]!==n||r[8]!==l?(a=(0,t.jsxs)("div",{children:[n,l]}),r[7]=n,r[8]=l,r[9]=a):a=r[9],a},tn=e=>{let n,l,a,r,s,o,c=(0,i.c)(21),{group:u}=e,{searchParams:m}=(0,d.f)();if(c[0]!==u.filters||c[1]!==m){let e;c[3]!==m?(e=e=>ea(e,m),c[3]=m,c[4]=e):e=c[4],n=u.filters.some(e),c[0]=u.filters,c[1]=m,c[2]=n}else n=c[2];let[h,p]=e2(n,u.defaultOpen??!1),x=h?u.name:"";return c[5]!==u.name||c[6]!==p?(l=e=>p(Array.isArray(e)?e.includes(u.name):e===u.name),c[5]=u.name,c[6]=p,c[7]=l):l=c[7],c[8]!==u.icon||c[9]!==u.name?(a=(0,t.jsx)(f.AccordionTrigger,{className:"group px-2",children:(0,t.jsx)(tt,{name:u.name,icon:u.icon})}),c[8]=u.icon,c[9]=u.name,c[10]=a):a=c[10],c[11]!==u?(r=(0,t.jsx)(f.AccordionContent,{children:(0,t.jsx)(tl,{group:u})}),c[11]=u,c[12]=r):r=c[12],c[13]!==u.name||c[14]!==a||c[15]!==r?(s=(0,t.jsxs)(f.AccordionItem,{value:u.name,className:"border-none",children:[a,r]}),c[13]=u.name,c[14]=a,c[15]=r,c[16]=s):s=c[16],c[17]!==x||c[18]!==l||c[19]!==s?(o=(0,t.jsx)(f.Accordion,{variant:"plain",type:"single",collapsible:!0,value:x,onValueChange:l,children:s}),c[17]=x,c[18]=l,c[19]=s,c[20]=o):o=c[20],o},tl=e=>{let n,l,a=(0,i.c)(4),{group:r}=e;return a[0]!==r.filters?(n=r.filters.map(ta),a[0]=r.filters,a[1]=n):n=a[1],a[2]!==n?(l=(0,t.jsx)("div",{className:"border-border/50 border-l",children:n}),a[2]=n,a[3]=l):l=a[3],l};function ta(e){return(0,t.jsx)(e5,{filter:e},e.name)}var tr=e.i(109534),ts=e.i(761821),to=e.i(932061);function tc(){let e,n=(0,i.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(o.Suspense,{fallback:null,children:(0,t.jsx)(tu,{})}),n[0]=e):e=n[0],e}function tu(){let e,n,l,a,r,s,o,c=(0,i.c)(14),{searchParams:u}=(0,d.f)(),{availableTextModels:f,isReady:h}=(0,ts.S)();c[0]!==f?(e=function(e){if(!e)return[];let t=new Set;for(let i of e)i.author&&t.add(i.author);return[...t].toSorted((e,t)=>(0,to.f)(e,t))}(f),c[0]=f,c[1]=e):e=c[1];let p=e;c[2]!==u.model_authors?(n=()=>(u.model_authors||[]).map(String),c[2]=u.model_authors,c[3]=n):n=c[3];let x=n;if(!h||0===p.length)return null;c[4]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(m.T,{children:"Model authors"}),a=(0,t.jsx)(tr.f,{className:"size-4"}),c[4]=l,c[5]=a):(l=c[4],a=c[5]);let g=!!u.model_authors?.length;return c[6]!==x?(r=e=>(0,t.jsx)(eq,{option:e,filterKey:"model_authors",formatLabel:tm,getValues:x},e),c[6]=x,c[7]=r):r=c[7],c[8]!==p||c[9]!==r?(s=(0,t.jsx)(eR,{options:p,renderItem:r}),c[8]=p,c[9]=r,c[10]=s):s=c[10],c[11]!==g||c[12]!==s?(o=(0,t.jsx)(e3,{value:"model-authors",label:l,icon:a,isActive:g,contentClassName:"pl-2",children:s}),c[11]=g,c[12]=s,c[13]=o):o=c[13],o}function tm(e){return e}let td=o.forwardRef(function({title:e,titleId:t,...i},n){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},i),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21v-8.25M15.75 21v-8.25M8.25 21v-8.25M3 9l9-6 9 6m-1.5 12V10.332A48.36 48.36 0 0 0 12 9.75c-2.551 0-5.056.2-7.5.582V21M3 21h18M12 6.75h.008v.008H12V6.75Z"}))});var tf=e.i(618115),th=e.i(557986);function tp(){let e,n=(0,i.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(o.Suspense,{fallback:null,children:(0,t.jsx)(tx,{})}),n[0]=e):e=n[0],e}function tx(){let e,n,l,a,r,s,o,c,u,f=(0,i.c)(18),{searchParams:h}=(0,d.f)();f[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,th.N)(),f[0]=e):e=f[0];let{data:p,error:x}=(0,tf.f)(e);if(x||!p)return null;f[1]!==p?(n=e=>{let t=p.find(t=>t.name===e);return t?.displayName??e},f[1]=p,f[2]=n):n=f[2];let g=n;f[3]!==h.providers?(l=()=>(h.providers||[]).map(String),f[3]=h.providers,f[4]=l):l=f[4];let v=l;f[5]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(m.T,{children:"Providers"}),r=(0,t.jsx)(td,{className:"size-4"}),f[5]=a,f[6]=r):(a=f[5],r=f[6]);let j=!!h.providers?.length;return f[7]!==p?(s=p.map(tg),f[7]=p,f[8]=s):s=f[8],f[9]!==g||f[10]!==v?(o=e=>(0,t.jsx)(eq,{option:e,filterKey:"providers",formatLabel:g,getValues:v},e),f[9]=g,f[10]=v,f[11]=o):o=f[11],f[12]!==s||f[13]!==o?(c=(0,t.jsx)(eR,{options:s,renderItem:o}),f[12]=s,f[13]=o,f[14]=c):c=f[14],f[15]!==j||f[16]!==c?(u=(0,t.jsx)(e3,{value:"providers",label:a,icon:r,isActive:j,contentClassName:"pl-2",children:c}),f[15]=j,f[16]=c,f[17]=u):u=f[17],u}function tg(e){return e.name}let tv=e=>{let n,l=(0,i.c)(4),{item:a}=e;if("group"===a.type){let e;return l[0]!==a?(e=(0,t.jsx)(ti,{group:a}),l[0]=a,l[1]=e):e=l[1],e}return l[2]!==a?(n=(0,t.jsx)(e5,{filter:a}),l[2]=a,l[3]=n):n=l[3],n};function tj(e){return"group"!==e.type}function tb(e){return"group"===e.type}function ty(e){return(0,t.jsx)(tv,{item:e},er(e))}function tw(e){return(0,t.jsx)(tv,{item:e},er(e))}e.s(["ModelsPageFilters",0,()=>{let e,o,c,u,f,w,C,M,T,V=(0,i.c)(21),{searchParams:H}=(0,d.f)(),{benchmarkRanges:el}=(0,ex.f)(H),ea=(0,a.R)("hipaaWorkspaces"),er=(0,r.useLocale)(),eo=(0,s.o)(),ec=(0,s.M)();if(V[0]!==el||V[1]!==eo||V[2]!==ea||V[3]!==er||V[4]!==ec){let i=function(e,i,n=en,l=Y.Y,a=Y.M){return[...(function({locale:e,gt:i,m:n}){return[{type:"multiselect",key:"input_modalities",icon:(0,t.jsx)(h.f,{className:"size-4"}),name:i("Input modalities"),options:Object.values(K.D),formatLabel:e=>(0,W.q)(e,K.D)?n(D.Z[e]):i("Unknown"),defaultOpen:!0},{type:"plain",key:"discount",icon:(0,t.jsx)(_.f,{className:"size-4"}),defaultOpen:!1,name:i("Discounted"),options:["true"],formatLabel:e=>"true"===e?i("Has a discount"):i("No")},{type:"segmented-slider",key:"context",icon:(0,t.jsx)(y.f,{className:"size-4"}),defaultOpen:void 0,name:i("Context length"),options:[4e3,16e3,32e3,64e3,128e3,256e3,1e6],formatLabel:t=>(0,P.f)(t,{locale:e,preset:"filter-context"})??"—"},{type:"duo-segmented-slider",defaultOpen:void 0,keys:["min_price","max_price"],icon:(0,t.jsx)(k.f,{className:"size-4"}),name:i("Prompt pricing"),options:[0,.1,.2,.5,1,5,10],formatLabel:es({gt:i,locale:e},10),formatValue:e=>{if(10!==e)return e.toString()}},{type:"multiselect",key:"arch",icon:(0,t.jsx)(A.f,{className:"size-4"}),defaultOpen:!1,name:i("Series"),options:Object.values(U.f).toSorted((e,t)=>ee.has(e)?1:ee.has(t)?-1:0),formatLabel:e=>e},{type:"multiselect",key:"categories",defaultOpen:!1,icon:(0,t.jsx)(z.f,{className:"size-4"}),name:i("Categories"),options:Object.values(Q.f),formatLabel:e=>n((0,q.f)(e))},{type:"multiselect",key:"supported_parameters",icon:(0,t.jsx)(b.f,{className:"size-4"}),name:i("Supported parameters"),defaultOpen:!1,options:[Z.f.Tools,...Object.values(Z.f).filter(e=>!X.has(e))],formatLabel:e=>String(e)},{type:"plain",key:"distillable",icon:(0,t.jsx)(p.f,{className:"size-4"}),defaultOpen:!1,name:i("Distillable"),options:["true","false"],formatLabel:e=>"true"===e?i("Yes"):i("No")},{type:"plain",key:"zdr",icon:(0,t.jsx)(O.f,{className:"size-4"}),defaultOpen:!1,name:i("Zero data retention"),options:["true"],formatLabel:e=>"true"===e?i("Supported"):i("No")},{type:"plain",key:"hipaa",icon:(0,t.jsx)(L,{className:"size-4"}),defaultOpen:!1,name:i("HIPAA Compliant"),tooltip:(0,t.jsx)(F.InfoTooltip,{side:"right",children:(0,t.jsx)(m.T,{children:"Models with at least one HIPAA-eligible endpoint: one covered by a business associate agreement, so HIPAA traffic may route to it."})}),options:["true"],formatLabel:e=>"true"===e?i("Supported"):i("No")},{type:"plain",key:"region",icon:(0,t.jsx)(N,{className:"size-4"}),defaultOpen:!1,name:i("In-region routing"),tooltip:(0,t.jsx)(F.InfoTooltip,{side:"right",children:(0,t.jsxs)(m.T,{children:["Filters for endpoints where processing is done entirely in a single region."," ",(0,t.jsx)($.f,{href:"https://openrouter.ai/docs/guides/features/in-region-routing",target:"_blank",rel:"noopener noreferrer",children:"Learn more about in-region routing"})]})}),options:["eu","us"],formatLabel:e=>e.toUpperCase()},{type:"duo-segmented-slider",defaultOpen:!1,keys:["min_output_price","max_output_price"],icon:(0,t.jsx)(k.f,{className:"size-4"}),name:i("Output pricing"),options:[0,.5,1,2,5,10,30],formatLabel:es({gt:i,locale:e},30),formatValue:e=>{if(30!==e)return e.toString()}},{type:"range-slider",keys:["min_age_days","max_age_days"],icon:(0,t.jsx)(g.f,{className:"size-4"}),defaultOpen:!1,name:i("Model age"),min:0,max:12,step:1,formatLabel:t=>(function({gt:e,locale:t},i){return i<=0?e("New"):i>=12?e("{months}+ mo",{months:(0,P.f)(12,{locale:t,preset:"integer"})??"—"}):e("{months} mo",{months:(0,P.f)(i,{locale:t,preset:"integer"})??"—"})})({gt:i,locale:e},t),toSlider:e=>Math.min(Math.round(e/30),12),toQuery:e=>30*Math.round(e)}]})({locale:e,gt:l,m:a}).filter(e=>n.isHipaaFilterVisible||!("key"in e&&"hipaa"===e.key)),function(e,i,n=Y.Y){return{type:"range-slider",keys:["min_tool_success_rate","max_tool_success_rate"],icon:(0,t.jsx)(I.f,{className:"size-4"}),defaultOpen:!1,name:n("Tool calling"),tooltip:(0,t.jsx)(F.InfoTooltip,{side:"right",children:(0,t.jsx)(m.T,{children:"Tool calling success rate (percentage of requests that complete with a tool_calls finish reason)"})}),min:0,max:Math.ceil((i?.tool_success_rate?.max??1)*100),step:1,formatLabel:t=>(0,E.I)(t,{locale:e,preset:"fee"})??"—",toSlider:e=>Math.round(100*e),toQuery:e=>Math.round(e)/100}}(e,i,l),function(e,i=Y.Y){return{type:"histogram-slider",keys:["min_throughput","max_throughput"],icon:(0,t.jsx)(x.f,{className:"size-4"}),defaultOpen:!1,name:i("Throughput"),tooltip:(0,t.jsx)(F.InfoTooltip,{side:"right",children:(0,t.jsx)(m.T,{children:"Median tokens per second over the last 30 minutes. A model qualifies when any one of its providers or service tiers (such as ultrafast) falls inside the range."})}),formatAxisLabel:t=>ei(t,e),formatAxisEndLabel:t=>i("{value}+ tok/s",{value:ei(t,e)})}}(e,l),...function(e,i,n=Y.Y,l=Y.M){return[{type:"group",name:"Artificial Analysis",icon:(0,t.jsx)(j,{className:"size-4"}),collapsible:!0,defaultOpen:!1,filters:[{type:"range-slider",keys:["min_intelligence_index","max_intelligence_index"],icon:(0,t.jsx)(v.f,{className:"size-4"}),defaultOpen:!1,name:n("Intelligence Index"),tooltip:(0,t.jsx)(F.InfoTooltip,{side:"right",children:(0,t.jsx)(m.T,{children:"Artificial Analysis Intelligence Index score (0-100)"})}),min:0,max:Math.ceil(i?.intelligence_index?.max??100),step:1,formatLabel:t=>(0,P.f)(t,{locale:e,preset:"integer"})??"—"},{type:"range-slider",keys:["min_coding_index","max_coding_index"],icon:(0,t.jsx)(b.f,{className:"size-4"}),defaultOpen:!1,name:n("Coding Index"),tooltip:(0,t.jsx)(F.InfoTooltip,{side:"right",children:(0,t.jsx)(m.T,{children:"Artificial Analysis Coding Index score (0-100)"})}),min:0,max:Math.ceil(i?.coding_index?.max??100),step:1,formatLabel:t=>(0,P.f)(t,{locale:e,preset:"integer"})??"—"},{type:"range-slider",keys:["min_agentic_index","max_agentic_index"],icon:(0,t.jsx)(y.f,{className:"size-4"}),defaultOpen:!1,name:n("Agentic Index"),tooltip:(0,t.jsx)(F.InfoTooltip,{side:"right",children:(0,t.jsx)(m.T,{children:"Artificial Analysis Agentic Index score (0-100)"})}),min:0,max:Math.ceil(i?.agentic_index?.max??100),step:1,formatLabel:t=>(0,P.f)(t,{locale:e,preset:"integer"})??"—"}]},{type:"group",name:"Design Arena",icon:(0,t.jsx)(S,{className:"size-4"}),collapsible:!0,defaultOpen:!1,filters:B.Z.map(n=>{let a=(0,R.u)(n);return{type:"range-slider",keys:[(0,R.b)(n),(0,R.Y)(n)],icon:et[n],defaultOpen:!1,name:l((0,J.f)(a).label),tooltip:(0,t.jsx)(F.InfoTooltip,{side:"right",children:(0,t.jsxs)(m.T,{children:["Design Arena ",(0,t.jsx)(G.d,{children:l((0,J.f)(a).label)})," ELO from head-to-head arena battles"]})}),min:0,max:Math.ceil(i?.da_elo?.[a]?.max??2e3),step:1,formatLabel:t=>(0,P.f)(t,{locale:e,preset:"integer"})??"—"}})}]}(e,i,l,a)]}(er,el,{isHipaaFilterVisible:ea},eo,ec),a=i.filter(tj),r=i.filter(tb);e=l.f,V[10]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.f)("flex h-full w-full flex-col gap-2 pb-4 pr-5"),V[10]=o):o=V[10],c=a.map(ty),V[11]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(e4,{}),V[11]=u):u=V[11],f=r.map(tw),V[0]=el,V[1]=eo,V[2]=ea,V[3]=er,V[4]=ec,V[5]=e,V[6]=o,V[7]=c,V[8]=u,V[9]=f}else e=V[5],o=V[6],c=V[7],u=V[8],f=V[9];return V[12]===Symbol.for("react.memo_cache_sentinel")?(w=(0,t.jsx)(tp,{}),C=(0,t.jsx)(tc,{}),M=(0,t.jsx)(e8,{}),V[12]=w,V[13]=C,V[14]=M):(w=V[12],C=V[13],M=V[14]),V[15]!==e||V[16]!==o||V[17]!==c||V[18]!==u||V[19]!==f?(T=(0,t.jsxs)(e,{className:o,children:[c,u,f,w,C,M]}),V[15]=e,V[16]=o,V[17]=c,V[18]=u,V[19]=f,V[20]=T):T=V[20],T}],825845)},280983,e=>{"use strict";var t=e.i(663456),i=e.i(16043);function n(){var e,t;if(e=function(){var e;let t=performance.getEntriesByType("navigation").at(0);if(e=t,e?.entryType==="navigation"&&"type"in e)return t.type}(),t=window.location.hash,"reload"!==e||""!==t)return;l();let i=window.requestAnimationFrame(l);return()=>{window.cancelAnimationFrame(i)}}function l(){window.scrollTo({top:0,left:0,behavior:"auto"})}e.s(["ModelsPageRefreshScroll",0,function(){let e,l=(0,t.c)(1);return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],l[0]=e):e=l[0],(0,i.useLayoutEffect)(n,e),null}])},721456,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(169798);let l="OpenRouter",a=` | ${l}`;function r(e){if(e===l)return l;let t=`${e}${a}`;return t.length>70?e.length>70?function(e){if(e.length<=70)return e;let t=e.lastIndexOf(" ",69),i=-1===t?e.slice(0,69):e.slice(0,t).replace(/[\s\p{P}]+$/u,"");return`${i}…`}(e):e:t}var s=e.i(814492);e.i(127160);let o=(0,s.P)();!function(e=n.default.env.VERCEL_ENV){}(),new URL(o),RegExp("(?:^|^https://[^/]+)/dynamic-og(?:\\?|$)");var c=e.i(199168),u=e.i(497214),m=e.i(634694);e.i(707060);var d=e.i(387086);let f=(0,d.b)("Compare AI Models: Pricing, Context & Benchmarks");(0,d.b)("Compare {modelCount} LLMs from OpenAI, Anthropic, Google, Meta and more — pricing, context length, and benchmarks side by side, all through one API.",{modelCount:m.f.ModelCount});var h=e.i(2763),p=e.i(261437);e.s(["ModelsPageTitle",0,function(){let e,n,l=(0,i.c)(14),a=(0,c.o)(),s=(0,c.M)(),{query:o}=(0,h.f)();if(!(o.q||o.order)){let e,i;return l[0]!==s?(e=r(s(f)),l[0]=s,l[1]=e):e=l[1],l[2]!==e?(i=(0,t.jsx)("title",{children:e}),l[2]=e,l[3]=i):i=l[3],i}if(l[4]!==a||l[5]!==s||l[6]!==o.order||l[7]!==o.q){let t;l[9]!==s||l[10]!==o.order?(t=o.order&&` - ${s(p.f[o.order])}`,l[9]=s,l[10]=o.order,l[11]=t):t=l[11],e=r((0,u.e)([a("Models"),o.q&&`: '${o.q}'`,t]).join("")),l[4]=a,l[5]=s,l[6]=o.order,l[7]=o.q,l[8]=e}else e=l[8];return l[12]!==e?(n=(0,t.jsx)("title",{children:e}),l[12]=e,l[13]=n):n=l[13],n}],721456)},728946,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(195759),l=e.i(136562),a=e.i(326e3),r=e.i(670168),s=e.i(988590),o=e.i(572201);e.i(707060);var c=e.i(196991),u=e.i(36238),m=e.i(16043),d=e.i(2763);let f=o.e.All,h=[o.d.Standard,o.d.Free,o.d.Batch],p="h-8 w-full min-w-0 above-phone:w-40 above-phone:flex-none",x=e=>{let r,m,x,v,j,b,y,w,k,_,N,L,S=(0,i.c)(39),{className:C,isCompact:M}=e,{searchParams:T,setSearchParams:A}=(0,d.f)(),O=T.variant??f;if(S[0]!==C||S[1]!==M||S[2]!==T.variant||S[3]!==O||S[4]!==A){var z;let e,i,d,N=void 0===(z=T.variant)||h.includes(z)?h:[...h,z];m=a.Select,y="none",w=O,S[15]!==A?(k=e=>{A({variant:(0,s.q)(e,o.d)?e:null})},S[15]=A,S[16]=k):k=S[16],S[17]!==C?(e=(0,l.f)(p,"gap-2",C),S[17]=C,S[18]=e):e=S[18],S[19]!==M?(i=!M&&(0,t.jsx)(u.f,{className:"size-3.5 shrink-0"}),S[19]=M,S[20]=i):i=S[20],S[21]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(a.SelectValue,{placeholder:(0,n.x)(f)}),S[21]=d):d=S[21],S[22]!==i||S[23]!==e?(_=(0,t.jsxs)(a.SelectTrigger,{className:e,children:[i,d]}),S[22]=i,S[23]=e,S[24]=_):_=S[24],r=a.SelectContent,x="start",v=!M,S[25]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsx)(a.SelectItem,{value:f,children:(0,t.jsx)(c.T,{children:"All variants"})}),S[25]=j):j=S[25],b=N.map(g),S[0]=C,S[1]=M,S[2]=T.variant,S[3]=O,S[4]=A,S[5]=r,S[6]=m,S[7]=x,S[8]=v,S[9]=j,S[10]=b,S[11]=y,S[12]=w,S[13]=k,S[14]=_}else r=S[5],m=S[6],x=S[7],v=S[8],j=S[9],b=S[10],y=S[11],w=S[12],k=S[13],_=S[14];return S[26]!==r||S[27]!==x||S[28]!==v||S[29]!==j||S[30]!==b?(N=(0,t.jsxs)(r,{align:x,matchTriggerWidth:v,children:[j,b]}),S[26]=r,S[27]=x,S[28]=v,S[29]=j,S[30]=b,S[31]=N):N=S[31],S[32]!==m||S[33]!==y||S[34]!==w||S[35]!==k||S[36]!==_||S[37]!==N?(L=(0,t.jsxs)(m,{indicator:y,value:w,onValueChange:k,children:[_,N]}),S[32]=m,S[33]=y,S[34]=w,S[35]=k,S[36]=_,S[37]=N,S[38]=L):L=S[38],L};function g(e){return(0,t.jsx)(a.SelectItem,{value:e,children:(0,n.x)(e)},e)}e.s(["ModelsVariantDropDown",0,e=>{let n,a,s,o,c=(0,i.c)(10),{className:u,isCompact:d}=e,f=void 0!==d&&d;return c[0]!==u?(n=(0,l.f)(p,u),c[0]=u,c[1]=n):n=c[1],c[2]!==n?(a=(0,t.jsx)(r.l,{className:n}),c[2]=n,c[3]=a):a=c[3],c[4]!==u||c[5]!==f?(s=(0,t.jsx)(x,{className:u,isCompact:f}),c[4]=u,c[5]=f,c[6]=s):s=c[6],c[7]!==a||c[8]!==s?(o=(0,t.jsx)(m.Suspense,{fallback:a,children:s}),c[7]=a,c[8]=s,c[9]=o):o=c[9],o}])},569119,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(16043),l=e.i(637528),a=e.i(2763),r=e.i(136562),s=e.i(737980),o=e.i(960773),c=e.i(808125),u=e.i(199168),m=e.i(988590),d=e.i(667417),f=e.i(947795),h=e.i(943926),p=e.i(761512);let x="phone:inline-flex phone:items-center phone:px-2.5",g=[d.j.Text,d.j.Image,d.j.Video,d.j.TTS,d.j.Decisions,d.j.Embeddings,d.j.Rerank,d.j.Transcription,d.j.Audio];function v({gt:e,m:i,modalityCounts:n,showCounts:l,activeTab:a}){return[{id:"all",label:e("All")},...(function(e,t=!0){return g.map(i=>({value:i,count:t?e?.[i]??0:null}))})(n,l).map(e=>{let n=a===e.value;return{id:e.value,className:n?(0,r.f)((0,p.i)({modality:e.value}),"text-foreground"):"group hover:text-foreground",label:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsx)(h.f,{modality:e.value,strokeWidth:2.5,className:(0,r.f)("size-4",(0,p.W)({modality:e.value,isActive:n}))}),i(c.L[e.value]),null===e.count?null:(0,t.jsx)("span",{className:"tabular-nums",children:e.count})]})}})]}let j=()=>{};function b(){let e,n,l,a=(0,i.c)(8),r=(0,u.o)(),o=(0,u.M)();return a[0]!==r?(e=r("Filter models by output modality"),a[0]=r,a[1]=e):e=a[1],a[2]!==r||a[3]!==o?(n=v({gt:r,m:o,modalityCounts:void 0,showCounts:!0,activeTab:"all"}),a[2]=r,a[3]=o,a[4]=n):n=a[4],a[5]!==e||a[6]!==n?(l=(0,t.jsx)(s.f,{ariaLabel:e,tabs:n,activeTab:"all",onTabChange:j,overflow:"menu",tabClassName:x}),a[5]=e,a[6]=n,a[7]=l):l=a[7],l}function y({modalityCounts:e,showCounts:i=!0}){let l=(0,u.o)(),r=(0,u.M)(),{searchParams:c,setSearchParams:h}=(0,a.f)(),p=(0,f.useModelsPageScrollToStart)(),g=(0,o.Q)(),j=(0,n.useRef)(e);e&&(j.current=e);let b=e??j.current,w=c.output_modalities?.[0]??"all",k=(0,n.useMemo)(()=>v({gt:l,m:r,modalityCounts:b,showCounts:i,activeTab:w}),[l,r,b,i,w]);return(0,t.jsx)(s.f,{ariaLabel:l("Filter models by output modality"),tabs:k,activeTab:w,onTabChange:e=>{if(e===w)return;let t="all"!==e&&(0,m.q)(e,d.j)?e:null,i=t?[t]:null;p(),h({output_modalities:i}),g.capture("toggle_models_output_modality",{output_modality:t??void 0,is_selected:!!t,source:"models-page"})},overflow:"menu",tabClassName:x})}function w(){let e,n=(0,i.c)(3),{searchParams:r}=(0,a.f)(),{modalityCounts:s,showModalityCounts:o}=(0,l.f)(r);return n[0]!==s||n[1]!==o?(e=(0,t.jsx)(y,{modalityCounts:s,showCounts:o}),n[0]=s,n[1]=o,n[2]=e):e=n[2],e}e.s(["OutputModalityTabsConnected",0,function(){let e,l=(0,i.c)(1);return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(n.Suspense,{fallback:(0,t.jsx)(b,{}),children:(0,t.jsx)(w,{})}),l[0]=e):e=l[0],e}],569119)},332736,e=>{"use strict";var t=e.i(659350),i=e.i(663456),n=e.i(139697),l=e.i(199630),a=e.i(960773);e.i(707060);var r=e.i(196991),s=e.i(441795),o=e.i(61811),c=e.i(947795);function u(){let e,l,u,f,h=(0,i.c)(13),p=(0,a.Q)(),x=(0,o.f)(d),g=(0,o.f)(m),v=(0,c.useModelsPageScrollToStartOnPhone)();h[0]!==x||h[1]!==p||h[2]!==v||h[3]!==g?(e=()=>{p.capture("toggle_models_pinned_filter",{is_pinned_only:!x,source:"models-page"}),g(),v()},h[0]=x,h[1]=p,h[2]=v,h[3]=g,h[4]=e):e=h[4];let j=e,b=x?"default":"outline",y=x?"currentColor":"none";return h[5]!==y?(l=(0,t.jsx)(s.f,{fill:y}),h[5]=y,h[6]=l):l=h[6],h[7]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)("span",{className:"phone:sr-only",children:(0,t.jsx)(r.T,{children:"Pinned"})}),h[7]=u):u=h[7],h[8]!==j||h[9]!==x||h[10]!==b||h[11]!==l?(f=(0,t.jsxs)(n.Button,{variant:b,size:"sm","aria-pressed":x,onClick:j,className:"shrink-0 phone:w-8 phone:px-0",children:[l,u]}),h[8]=j,h[9]=x,h[10]=b,h[11]=l,h[12]=f):f=h[12],f}function m(e){return e.togglePinnedOnly}function d(e){return e.isPinnedOnly}e.s(["PinnedModelsFilterToggle",0,function(){let e,n=(0,i.c)(1);return(0,l.f)()?(n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(u,{}),n[0]=e):e=n[0],e):null}])},261437,e=>{"use strict";e.i(707060);var t=e.i(387086);let i={"most-popular":(0,t.b)("Most Popular"),newest:(0,t.b)("Newest"),oldest:(0,t.b)("Oldest"),"top-weekly":(0,t.b)("Top Weekly"),"weekly-tokens-low-to-high":(0,t.b)("Weekly Tokens: Low to High"),"discount-high-to-low":(0,t.b)("Discount: High to Low"),"pricing-low-to-high":(0,t.b)("Pricing: Low to High"),"pricing-high-to-low":(0,t.b)("Pricing: High to Low"),"context-high-to-low":(0,t.b)("Context: High to Low"),"context-low-to-high":(0,t.b)("Context: Low to High"),"throughput-high-to-low":(0,t.b)("Throughput: High to Low"),"throughput-low-to-high":(0,t.b)("Throughput: Low to High"),"latency-low-to-high":(0,t.b)("Latency: Low to High"),"latency-high-to-low":(0,t.b)("Latency: High to Low"),"intelligence-high-to-low":(0,t.b)("Intelligence: High to Low"),"intelligence-low-to-high":(0,t.b)("Intelligence: Low to High"),"coding-high-to-low":(0,t.b)("Coding: High to Low"),"coding-low-to-high":(0,t.b)("Coding: Low to High"),"agentic-high-to-low":(0,t.b)("Agentic: High to Low"),"agentic-low-to-high":(0,t.b)("Agentic: Low to High"),"da-elo-high-to-low":(0,t.b)("Design Arena ELO: High to Low"),"da-elo-low-to-high":(0,t.b)("Design Arena ELO: Low to High")};e.s(["f",0,i])}]); //# sourceMappingURL=10fozsj9w_s-8.js.map