PageSourceSearch

https://artificialanalysis.ai/_next/static/chunks/app/%5Blocale%5D/layout-e5148af24797cb85.js

js artificialanalysis.ai collected 2026-10-02 02:13:12 UTC 160,729 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0fa55-3ba7-7c11-8a55-0b768e1be569")}catch(e){}}();(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98450],{719:(e,a,t)=>{"use strict";t.d(a,{t:()=>o});var l=t(28071),r=t(98746);let n=0,o=(0,l.v)((e,a)=>({visible:!1,phase:"processing",plan:"plus",onDismiss:null,show:a=>{let{plan:t,verify:l,pollContext:r,onDismiss:o}=a,i=n+=1;e({visible:!0,phase:"processing",plan:t,onDismiss:null!=o?o:null}),s(i,l,r)},dismiss:()=>{n+=1;let{onDismiss:t}=a();e({visible:!1,phase:"processing",onDismiss:null}),null==t||t()}}));async function s(e,a,t){let l=await i(a,e=>e);e===n&&(l||r.Ay.capture("aa_plans.upgrade_poll_timeout",{plan:t.plan,billing_interval:t.billingInterval,seats:t.seats,org_id:t.orgId}),o.setState({phase:"success"}))}async function i(e,a){let{maxAttempts:t=8,intervalMs:l=1e3}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(let n=0;n<t;n++){try{if(a(await e()))return!0}catch(e){r.Ay.captureException(e,{context:"poll_until",attempt:n+1,maxAttempts:t})}n<t-1&&await new Promise(e=>setTimeout(e,l))}return!1}},1041:(e,a,t)=>{Promise.resolve().then(t.bind(t,12097)),Promise.resolve().then(t.bind(t,25009)),Promise.resolve().then(t.bind(t,30177)),Promise.resolve().then(t.bind(t,77594)),Promise.resolve().then(t.bind(t,64127)),Promise.resolve().then(t.bind(t,30493)),Promise.resolve().then(t.bind(t,91651)),Promise.resolve().then(t.bind(t,41651)),Promise.resolve().then(t.bind(t,86935)),Promise.resolve().then(t.bind(t,93834))},3895:(e,a,t)=>{"use strict";t.d(a,{p:()=>o});var l=t(58212),r=t(96040),n=t(27724);let o=r.forwardRef((e,a)=>{let{className:t,type:r,...o}=e;return(0,l.jsx)("input",{type:r,className:(0,n.cn)("flex h-9 w-full rounded-lg border border-neutral-100 bg-transparent px-3 py-1 text-base transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-neutral-500 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:a,...o})});o.displayName="Input"},4607:(e,a,t)=>{"use strict";t.d(a,{Dc:()=>s,O1:()=>g,Ob:()=>u,ac:()=>o,eC:()=>c,wr:()=>i});var l=t(52328),r=t(34872);let n={...l.KW},o=(0,r.a)(n),s=o.newRole({...l.vC.statements,invitation:["create","cancel"]}),i=o.newRole({...l.MH.statements}),c=o.newRole({...l.U1.statements}),d=["owner","admin","member"];function u(e){return d.includes(null!=e?e:"")?e:void 0}function h(e){return"owner"===e||"admin"===e}let g={canInviteMembers:h,canCancelInvitation:h,canResendInvitation:h,canManageRoles:h,canManageSeats:h,canRemoveMembers:h,canUpdateOrganization:h,canRevokeShareLinks:h,canTransferOwnership:function(e){return"owner"===e}}},5300:(e,a,t)=>{"use strict";t.d(a,{useRouter:()=>s});var l=t(36772),r=t(35908),n=t(25776),o=t(76398);function s(){let e,a,t,s,i,c=(0,l.c)(16),d=(0,r.useRouter)(),u=(0,n.Ym)();c[0]!==u?(e=function(e){return(a,t)=>{e((0,o.l)(a,u),t)}},c[0]=u,c[1]=e):e=c[1];let h=e;return c[2]!==h||c[3]!==d.push?(a=h(d.push),c[2]=h,c[3]=d.push,c[4]=a):a=c[4],c[5]!==h||c[6]!==d.replace?(t=h(d.replace),c[5]=h,c[6]=d.replace,c[7]=t):t=c[7],c[8]!==h||c[9]!==d.prefetch?(s=h(d.prefetch),c[8]=h,c[9]=d.prefetch,c[10]=s):s=c[10],c[11]!==d||c[12]!==a||c[13]!==t||c[14]!==s?(i={...d,push:a,replace:t,prefetch:s},c[11]=d,c[12]=a,c[13]=t,c[14]=s,c[15]=i):i=c[15],i}},11945:(e,a,t)=>{"use strict";t.d(a,{nW:()=>i,wk:()=>n});let l=["/articles","/features","/hardware-inference-stack","/image-lab-privacy","/image-lab-terms","/microevals","/optima","/privacy-policy","/prolific","/terms-of-use"],r=["/","/prompt-options/:path*","/methodology/:path*","/leaderboards/models/:path*","/leaderboards/providers/:path*","/models/:path*","/providers/:path*","/image/:path*","/image-lab/:path*","/video/:path*","/text-to-speech/:path*","/speech-to-speech/:path*","/music/:path*","/faq/:path*","/contact/:path*","/about/:path*","/government/:path*","/careers/:path*","/agents/:path*","/brand-kit/:path*","/trends/:path*","/changelog/:path*","/tools/llm-price-calculator/:path*","/data-api","/pricing/:path*","/speech-to-text/:path*","/evaluations/:path*","/articles"];function n(e){return!s(e)&&l.some(a=>c(e,a))}let o="/:path*";function s(e){return r.some(a=>a.endsWith(o)?c(e,a.slice(0,-o.length)):e===a||e==="".concat(a,"/"))}function i(e){return n(e)||s(e)}function c(e,a){return e===a||e.startsWith("".concat(a,"/"))}},12097:(e,a,t)=>{"use strict";t.d(a,{Providers:()=>d});
1var l=t(58212),r=t(36772),n=t(96040),o=t(13289),s=t(70512),i=t(87042),c=t(70948);function d(e){let a,t,i,d=(0,r.c)(4),{children:h}=e;return d[0]===Symbol.for("react.memo_cache_sentinel")?(a=[],d[0]=a):a=d[0],(0,n.useEffect)(u,a),d[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)(s.UpgradeCelebrationOverlay,{}),d[1]=t):t=d[1],d[2]!==h?(i=(0,l.jsx)(o.UpgradeProvider,{children:(0,l.jsxs)(c.UserTierProvider,{children:[h,t]})}),d[2]=h,d[3]=i):i=d[3],i}function u(){i.l.persist.rehydrate()}},13289:(e,a,t)=>{"use strict";t.d(a,{R:()=>i,UpgradeProvider:()=>h,y:()=>g});var l=t(58212),r=t(96040),n=t(98148),o=t(57240),s=t(98746);async function i(e,a){if(!e.ok)try{let t=await e.json();throw Error(t.error||a)}catch(e){if(e instanceof SyntaxError)throw Error(a);throw e}}let c=(0,r.createContext)(void 0);function d(e){return"/api/organizations/".concat(e,"/org-subscription")}async function u(e){let a=await fetch(e);if(!a.ok)throw Error("Failed to load billing information");return await a.json()}function h(e){let{children:a}=e,[t,h]=(0,r.useState)(null),[g,p]=(0,r.useState)(!1),m=t?d(t):null,{data:b=null,error:f,isLoading:v,isValidating:y}=(0,n.Ay)(m,u,{revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,dedupingInterval:5e3,onError:e=>{s.Ay.captureException(e,{context:"aa_plans.load_org_subscription",org_id:t})}}),x=(0,r.useRef)(new Map),w=(0,r.useCallback)(async function(e){let{forceRefresh:a=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(h(e),!a){let a=x.current.get(e);if(a)return a}let t=d(e),l=(async()=>{try{let e=await (0,o.j)(t,u(t),{populateCache:!0,revalidate:!1});return e&&s.Ay.capture("aa_plans.org_subscription_loaded",{highest_plan:e.highestPlan,tier_count:e.tiers.length,tiers:e.tiers.map(e=>({plan:e.plan,billing_interval:e.billingInterval,status:e.status,cancel_at_period_end:e.cancelAtPeriodEnd,seats:e.seats,seats_used:e.seatsUsed})),has_saved_card:null!==e.savedCard,current_user_seat_plan:e.currentUserSeatPlan,org_id:e.organizationId}),e}catch(a){s.Ay.captureException(a,{context:"aa_plans.load_org_subscription",org_id:e});return}})();return x.current.set(e,l),l.finally(()=>{x.current.get(e)===l&&x.current.delete(e)}),l},[]),k=(0,r.useCallback)(async(e,a)=>{p(!0);try{let t=await fetch("/api/organizations/".concat(e,"/org-subscription"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"cancel",plan:a})});await i(t,"Failed to cancel subscription"),s.Ay.capture("aa_plans.org_subscription_cancelled",{org_id:e,plan:a}),await w(e,{forceRefresh:!0})}catch(t){throw s.Ay.captureException(t,{context:"aa_plans.cancel_org_subscription",org_id:e,plan:a}),t}finally{p(!1)}},[w]),I=(0,r.useCallback)(async(e,a)=>{p(!0);try{let t=await fetch("/api/organizations/".concat(e,"/org-subscription"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"resubscribe",plan:a})});await i(t,"Failed to resubscribe"),s.Ay.capture("aa_plans.org_subscription_resubscribed",{plan:a,org_id:e}),await w(e,{forceRefresh:!0})}catch(t){throw s.Ay.captureException(t,{context:"aa_plans.resubscribe_org",org_id:e,plan:a}),t}finally{p(!1)}},[w]),S=(0,r.useCallback)(async(e,a,t)=>{await i(e,a);let l=await e.json();return"updated"===l.kind?(s.Ay.capture("aa_plans.org_subscription_plan_changed",{plan:t.plan,billing_interval:t.billingInterval,seats:t.seats,org_id:t.orgId}),await w(t.orgId,{forceRefresh:!0}),{updated:!0}):{updated:!1,data:l}},[w]),A=(0,r.useCallback)(async function(e,a,t){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;try{let r=await fetch("/api/organizations/".concat(e,"/org-subscription/setup"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan:a,billingInterval:t,seats:l})}),n=await S(r,"Failed to create subscription",{orgId:e,plan:a,billingInterval:t,seats:l});if(n.updated)return{status:"updated"};return s.Ay.capture("aa_plans.org_subscription_payment_started",{plan:a,billing_interval:t,seats:l,org_id:e}),{status:"requires_payment",clientSecret:n.data.clientSecret,subscriptionId:n.data.subscriptionId}}catch(r){throw s.Ay.captureException(r,{context:"aa_plans.create_org_subscription",org_id:e,plan:a,billing_interval:t,seats:l}),r}},[S]),M=(0,r.useCallback)(async e=>{let{orgId:a,plan:t,billingInterval:l,seats:r=1,changeFromPlan:n,returnPath:o,source:i}=e,c=Date.now();try{let e=await fetch("/api/organizations/".concat(a,"/org-subscription/checkout"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan:t,billingInterval:l,seats:r,...n&&{changeFromPlan:n},...o&&{returnPath:o},...i&&{source:i}})}),d=await S(e,"Failed to create checkout session",{orgId:a,plan:t,billingInterval:l,seats:r});if(d.updated)return{status:"updated"};return s.Ay.capture("aa_plans.org_checkout_session_created",{plan:t,billing_interval:l,seats:r,org_id:a,source:null!=i?i:null,duration_ms:Date.now()-c}),{url:d.data.url}}catch(e){throw s.Ay.captureException(e,{context:"aa_plans.create_org_checkout_session",org_id:a,plan:t,billing_interval:l,seats:r,change_from_plan:n,duration_ms:Date.now()-c}),e}},[S]),j=(0,r.useCallback)(async(e,a,t)=>{p(!0);try{let l=await fetch("/api/organizations/".concat(e,"/org-subscription/seats"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan:a,seats:t})});await i(l,"Failed to update seat count"),await w(e,{forceRefresh:!0})}catch(l){throw s.Ay.captureException(l,{context:"aa_plans.update_org_subscription_seats",org_id:e,plan:a,seats:t}),l}finally{p(!1)}},[w]);return(0,l.jsx)(c.Provider,{value:{billing:b,isLoading:v||y||g,error:f?"Failed to load billing information":null,loadSubscription:w,cancelSubscription:k,resubscribe:I,createSubscription:A,createCheckoutSession:M,updateSeatCount:j},children:a})}function g(){let e=(0,r.useContext)(c);if(!e)throw Error("useUpgrade must be used within an UpgradeProvider");return e}},15728:(e,a,t)=>{"use strict";t.d(a,{a:()=>r});
1var l=t(96040);function r(){let[e,a]=l.useState(void 0);return l.useEffect(()=>{let e=window.matchMedia("(max-width: ".concat(767,"px)")),t=()=>{a(window.innerWidth<768)};return e.addEventListener("change",t),a(window.innerWidth<768),()=>e.removeEventListener("change",t)},[]),!!e}},18310:(e,a,t)=>{"use strict";t.d(a,{KM:()=>o,ks:()=>i,np:()=>n,vf:()=>s,yU:()=>r});var l=t(23195);let r="Artificial Analysis Multilingual Index",n="Average across all languages",o={en:{label:"English",slug:"english",emoji:"\uD83C\uDDEC\uD83C\uDDE7",color:"#5A77B1"},zh:{label:"Chinese",slug:"chinese",emoji:"\uD83C\uDDE8\uD83C\uDDF3",color:"#D94B4B"},hi:{label:"Hindi",slug:"hindi",emoji:"\uD83C\uDDEE\uD83C\uDDF3",color:"#EFA439"},es:{label:"Spanish",slug:"spanish",emoji:"\uD83C\uDDEA\uD83C\uDDF8",color:"#F27A4E"},fr:{label:"French",slug:"french",emoji:"\uD83C\uDDEB\uD83C\uDDF7",color:"#6CA6D8"},ar:{label:"Arabic",slug:"arabic",emoji:"\uD83C\uDDF8\uD83C\uDDE6",color:"#3E8E5A"},bn:{label:"Bangla",slug:"bengali",emoji:"\uD83C\uDDE7\uD83C\uDDE9",color:"#3CA9A1"},pt:{label:"Portuguese",slug:"portuguese",emoji:"\uD83C\uDDF5\uD83C\uDDF9",color:"#4D7BC1"},id:{label:"Indonesian",slug:"indonesian",emoji:"\uD83C\uDDEE\uD83C\uDDE9",color:"#FF8FA2"},ja:{label:"Japanese",slug:"japanese",emoji:"\uD83C\uDDEF\uD83C\uDDF5",color:"#C84A44"},sw:{label:"Swahili",slug:"swahili",emoji:"\uD83C\uDDF0\uD83C\uDDEA",color:"#D8A532"},de:{label:"German",slug:"german",emoji:"\uD83C\uDDE9\uD83C\uDDEA",color:"#E4C847"},ko:{label:"Korean",slug:"korean",emoji:"\uD83C\uDDF0\uD83C\uDDF7",color:"#FF6A8C"},it:{label:"Italian",slug:"italian",emoji:"\uD83C\uDDEE\uD83C\uDDF9",color:"#80BFA2"},yo:{label:"Yoruba",slug:"yoruba",emoji:"\uD83C\uDDF3\uD83C\uDDEC",color:"#C7A44D"},my:{label:"Burmese",slug:"burmese",emoji:"\uD83C\uDDF2\uD83C\uDDF2",color:"#A978D8"}},s=[{key:"average",label:"All (average)",emoji:"\uD83C\uDF10",color:"#000000",slug:null},...(0,l.WP)(o).map(e=>{let[a,{label:t,emoji:l,color:r,slug:n}]=e;return{key:a,label:t,emoji:l,color:r,slug:n}})];Object.values(o).map(e=>{let{slug:a}=e;return a});let i=["average","en","zh","hi","es"]},22936:(e,a,t)=>{"use strict";t.d(a,{OA:()=>r,oT:()=>l});let l=["free","plus","pro","enterprise"];function r(e,a){return l.indexOf(e)-l.indexOf(a)}},23139:(e,a,t)=>{"use strict";t.d(a,{Ai:()=>s,DT:()=>g,Ej:()=>i,Vz:()=>o,Xn:()=>h,YZ:()=>u,Z:()=>c,Zd:()=>p,e1:()=>r,oM:()=>n,ry:()=>d});var l=t(50852);let r="en",n="es",o="zh",s="de",i="ko",c="ja",d="pt",u=[r,n,o,s,i,c,d],h=r,g=(0,l.A)({locales:u,defaultLocale:h,localePrefix:"as-needed",localeDetection:!1,alternateLinks:!1});function p(e){return u.some(a=>a===e)}},23195:(e,a,t)=>{"use strict";function l(e){return Object.entries(e)}function r(e){return Object.keys(e)}function n(e){return Object.fromEntries(e)}t.d(a,{MU:()=>n,WP:()=>l,uv:()=>r})},24859:(e,a,t)=>{"use strict";t.d(a,{vY:()=>o,AV:()=>i,$Z:()=>s,GU:()=>c,tJ:()=>n}),null==(l=t(37811).env.SPEECH_ARENA_ADDITIONAL_MODELS)||l.split(",").map(e=>e.trim()).filter(Boolean);var l,r=t(32080);let n={type:"updated",description:"Rankings reflect the September 2026 refresh: a new prompt set and model cohort, with Elo fitted on votes cast since the refresh."},o={new:{text:"text-brand-purple-dark",bg:"bg-brand-purple-dark"},updated:{text:"text-brand-purple-dark",bg:"bg-brand-purple-dark"},underReview:{text:"text-brand-orange",bg:"bg-brand-orange"}},s={type:"new"},i={type:"updated",description:"Updated to ".concat(r.sw,": DeepSWE v1.1, Terminal-Bench 4.0, and Scale AI-aligned SWE-Atlas-QnA grading.")},c=void 0},25009:(e,a,t)=>{"use strict";t.d(a,{BackToTopButton:()=>c});
1var l=t(58212),r=t(36772),n=t(96040),o=t(33505),s=t(19528),i=t(27724);function c(){let e,a,t,c,u,h=(0,r.c)(7),[g,p]=(0,n.useState)(!1);h[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{let e=()=>p(window.scrollY>400);return window.addEventListener("scroll",e,{passive:!0}),e(),()=>window.removeEventListener("scroll",e)},a=[],h[0]=e,h[1]=a):(e=h[0],a=h[1]),(0,n.useEffect)(e,a);let m=g?"translate-y-0 opacity-100":"translate-y-4 opacity-0 pointer-events-none";return h[2]!==m?(t=(0,i.cn)("pointer-events-auto h-10 w-10 rounded-full shadow-lg transition-all duration-300 bg-background hover:bg-neutral-100 border",m),h[2]=m,h[3]=t):t=h[3],h[4]===Symbol.for("react.memo_cache_sentinel")?(c=(0,l.jsx)(s.A,{className:"h-5 w-5"}),h[4]=c):c=h[4],h[5]!==t?(u=(0,l.jsx)(o.$,{variant:"outline",size:"icon",className:t,onClick:d,"aria-label":"Back to top",children:c}),h[5]=t,h[6]=u):u=h[6],u}function d(){window.scrollTo({top:0,behavior:"smooth"})}},26692:(e,a,t)=>{"use strict";t.d(a,{M:()=>l});let l={new:"New",updated:"Updated",underReview:"Under review"}},27126:(e,a,t)=>{"use strict";function l(e,a){let t=new Intl.DisplayNames(e,{type:"language"}).of(a),[l,...r]=Array.from(t);return null==l?t:l.toLocaleUpperCase(e)+r.join("")}t.d(a,{M:()=>l})},27724:(e,a,t)=>{"use strict";t.d(a,{cn:()=>n});var l=t(35467),r=t(53810);function n(){for(var e=arguments.length,a=Array(e),t=0;t<e;t++)a[t]=arguments[t];return(0,r.QP)((0,l.$)(a))}},27757:(e,a,t)=>{"use strict";t.d(a,{$g:()=>p,Cd:()=>f,Dr:()=>w,Hj:()=>s,J6:()=>I,JC:()=>m,NB:()=>h,ZQ:()=>c,aN:()=>o,jI:()=>v,os:()=>x,sB:()=>n,vr:()=>u,y2:()=>d,yZ:()=>k});
1var l=t(32080),r=t(22936);let n=["plus","pro"];function o(e){return"string"==typeof e&&r.oT.includes(e)}function s(e){return"string"==typeof e&&n.includes(e)}let i=l.cD?["plus","pro"]:["pro"];function c(){return n.filter(e=>i.includes(e))}function d(e){return i.includes(e)}function u(e){var a;return d(e)?e:null!=(a=c().find(a=>k({current:a,required:e})))?a:e}let h={free:{id:"free",name:"Free",description:"Get started with basic benchmarking data",pricing:null,ctaText:"Get Started",ctaVariant:"outline"},plus:{id:"plus",name:"Plus",description:"Enhanced data and features",pricing:{monthly:50,yearly:42,yearlySavingsFraction:.17,yearlySavingsDollars:96},ctaText:"Upgrade to Plus",ctaVariant:"default"},pro:{id:"pro",name:"Pro",description:"Data and insights for small organizations",pricing:{monthly:499,yearly:417,yearlySavingsFraction:.16,yearlySavingsDollars:984},highlighted:!0,ctaText:"Upgrade to Pro",ctaVariant:"default"},enterprise:{id:"enterprise",name:"Enterprise",description:"Tailored solutions for large organizations",pricing:null,ctaText:"Contact Sales",ctaVariant:"outline"}},g=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",currencyDisplay:"symbol",maximumFractionDigits:0});function p(e,a){if(!e.pricing)return"free"===e.id?g.format(0):"Custom";let t="monthly"===a?e.pricing.monthly:e.pricing.yearly;return g.format(t)}function m(e,a){return e.pricing||"free"===e.id?"/month per seat":"pricing"}let b={api:[{name:"Language Model Data",tooltip:"Model details (e.g. parameters), evaluations (e.g. scores, token use), pricing and performance (e.g. tokens/s), licensing and openness",free:!1,plus:!1,pro:!0,enterprise:!0},{name:"Media Model Data (Image, Video, Speech, Music)",tooltip:"Elo rankings with confidence intervals, pricing, category scores, etc",free:!1,plus:!1,pro:!0,enterprise:!0},{name:"Language Model Provider Data",tooltip:"Pricing, historical performance (throughput, latency, e2e response time), capabilities (e.g. JSON mode)",free:!1,plus:!1,pro:!1,enterprise:!0}],reports:[{name:"State of AI Report",free:!1,plus:!1,pro:!0,enterprise:!0},{name:"AI Adoption Survey",free:!1,plus:!1,pro:!0,enterprise:!0},{name:"Model Deployment Report",free:!1,plus:!1,pro:!1,enterprise:!0},{name:"Leaders AI Strategy Guide",free:!1,plus:!1,pro:!1,enterprise:!0}],tools:[{name:"Data Playground",key:"dataPlayground",free:!1,plus:!1,pro:!0,enterprise:!0},{name:"Table Builder",free:!1,plus:!0,pro:!0,enterprise:!0},{name:"Data Export",key:"dataExport",free:!1,plus:!1,pro:!0,enterprise:!0},{name:"Optima",tooltip:"Monthly credit for running custom benchmarks, topped up to $50 per month.",free:!1,plus:!1,pro:!0,enterprise:!0}],support:[{name:"Workshops and Education",free:!1,plus:!1,pro:!1,enterprise:!0},{name:"AI Advisory",free:!1,plus:!1,pro:!1,enterprise:!0},{name:"Custom Model, Inference, and Hardware Benchmarking",free:!1,plus:!1,pro:!1,enterprise:!0},{name:"Compute Market Model with Supply, Demand Forecasts",free:!1,plus:!1,pro:!1,enterprise:!0}],contact:[{name:"Email Support",free:!1,plus:!0,pro:!0,enterprise:!0},{name:"Dedicated Support",free:!1,plus:!1,pro:!1,enterprise:!0}]};function f(e){return b[e]}function v(e,a){for(let t of Object.values(b)){let l=t.find(e=>e.name===a);if(l)return!!l[e]}return!1}function y(e){for(let a of Object.values(b)){let t=a.find(a=>a.key===e);if(t)return t}throw Error('No FEATURE_DATA row carries the gated-feature key "'.concat(e,'"'))}function x(e,a){return!!y(a)[e]}function w(e){var a;let t=y(e);return null!=(a=n.find(e=>!!t[e]))?a:"pro"}function k(e){let{current:a,required:t}=e;return(0,r.OA)(a,t)>=0}let I={plus:["Access more benchmarking data","Export data for local analysis","Build custom charts and tables","Save model groups"],pro:["Use case data","Insights reports and guides","Comprehensive data export and API access","Historical endpoint data","Training tokens and compute scaling"]}},30177:(e,a,t)=>{"use strict";t.d(a,{IntlProvider:()=>o});var l=t(58212),r=t(36772),n=t(22924);function o(e){let a,t=(0,r.c)(3),{children:o,locale:s}=e;return t[0]!==o||t[1]!==s?(a=(0,l.jsx)(n.default,{locale:s,messages:null,children:o}),t[0]=o,t[1]=s,t[2]=a):a=t[2],a}},30220:(e,a,t)=>{"use strict";t.d(a,{B:()=>n,u:()=>o});
1var l=t(66861),r=t(21994);let n={lowerIsBetter:"Lower is better",lowerMedianIsBetter:"Lower median is better",higherIsBetter:"Higher is better",resultsByPercentile:"Results by percentile"},o={endToEndLatencyFull:"End-to-end response time: end-to-end seconds to output 500 tokens",endToEndLatency:"Seconds to output 500 tokens",endToEndResponseTime:"Seconds to output 500 tokens, including reasoning model 'thinking' time",endToEndResponseTimeLong:"Seconds to output 500 tokens, calculated based on time to first token, 'thinking' time for reasoning models, and output speed",priceBlended:"USD per 1M tokens (blended)",costPerIntelligenceIndexTask:"Weighted average cost (USD) per Intelligence Index task",timePerIntelligenceIndexTask:"Weighted average decode time (minutes) per Intelligence Index task",imageInputPrice:"Image input price: USD per 1k images at 1MP (1024x1024)",latencyFull:"Latency: seconds to first token received",latency:"Seconds to first token received",outputSpeedFull:"Output speed: output tokens per second",outputSpeed:"Output tokens per second",intelligenceIndex:"".concat(r.Fj," incorporates ").concat(l.Rm.length," evaluations: ").concat(l.Rm.map(e=>e.shortName).join(", ")),cyberIndex:"Artificial Analysis Cyber Index v1 incorporates ".concat(l.hc.length," evaluations: ").concat(new Intl.ListFormat("en",{type:"conjunction"}).format(l.hc.map(e=>e.shortName))),cweBench:"Vulnerability patching success (pass@1)",deepsecBench:"F2 score (recall weighted above precision)",cybergymE2e:"Vulnerability discovery and patching success (pass@1)",omniscienceIndex:"AA-Omniscience Index (higher is better) measures knowledge reliability and hallucination. It rewards correct answers, penalizes hallucinations, and has no penalty for refusing to answer. Scores range from -100 to 100, where 0 means as many correct as incorrect answers, and negative scores mean more incorrect than correct.",omniscienceAccuracy:"AA-Omniscience Accuracy (higher is better) measures the proportion of correctly answered questions out of all questions, regardless of whether the model chooses to answer",omniscienceHallucinationRate:"AA-Omniscience Hallucination Rate (lower is better) measures how often the model answers incorrectly when it should have refused or admitted to not knowing the answer. It is defined as the proportion of incorrect answers out of all non-correct responses, i.e. incorrect / (incorrect + partial answers + not attempted)",contextWindow:"Context window: tokens limit",totalParameters:"Size in parameters (billions)"}},30493:(e,a,t)=>{"use strict";t.d(a,{LocaleSuggestionPrompt:()=>I});var l=t(58212),r=t(36772),n=t(96040),o=t(33505),s=t(55314),i=t(57181),c=t(11945),d=t(23139);let u=JSON.parse('{"title":"Diese Seite ist auf Deutsch verf\xfcgbar","switch":"Zu Deutsch wechseln","dismiss":"Nein, danke","close":"Schlie\xdfen"}'),h=JSON.parse('{"title":"This page is available in English","switch":"Switch to English","dismiss":"No, thanks","close":"Close"}'),g=JSON.parse('{"title":"Esta p\xe1gina est\xe1 disponible en espa\xf1ol","switch":"Cambiar a espa\xf1ol","dismiss":"No, gracias","close":"Cerrar"}'),p=JSON.parse('{"title":"このページは日本語でご覧いただけます","switch":"日本語に切り替える","dismiss":"今はしない","close":"閉じる"}'),m=JSON.parse('{"title":"이 페이지는 한국어로 제공됩니다","switch":"한국어로 전환","dismiss":"괜찮습니다","close":"닫기"}'),b=JSON.parse('{"title":"Esta p\xe1gina est\xe1 dispon\xedvel em portugu\xeas","switch":"Mudar para portugu\xeas","dismiss":"N\xe3o, obrigado","close":"Fechar"}'),f=JSON.parse('{"title":"本页面提供中文版本","switch":"切换到中文","dismiss":"不用了","close":"关闭"}'),v={[d.e1]:h,[d.oM]:g,[d.Vz]:f,[d.Ai]:u,[d.Ej]:m,[d.Z]:p,[d.ry]:b};var y=t(26959),x=t(84634);let w="aa_locale_suggestion_dismissed",k="locale-suggestion-title";function I(e){let a,t,u,h,g,p,m,b,f,I,A,M,j=(0,r.c)(37),{locale:N}=e,[_,T]=(0,n.useState)(null),E=(0,i.a8)(),L=(0,i.OF)(),C=(0,s.sf)(),P=!(0,c.wk)(E);if(j[0]!==P||j[1]!==N||j[2]!==C?(a=()=>{if(!P)return;let e=function(e,a){let t=new Set;for(let l of e){let e=l.split("-")[0].toLowerCase();if(t.has(e)&&l.toLowerCase()===e)continue;let r=d.YZ.find(a=>a===e);if(r){if(S(l)===S(r))return r===a?null:r;t.add(e)}}return null}(navigator.languages,N);e&&window.localStorage.getItem(w)!==e&&(T(e),C.capture("locale_suggestion_shown",{current_locale:N,suggested_locale:e}))},t=[P,N,C],j[0]=P,j[1]=N,j[2]=C,j[3]=a,j[4]=t):(a=j[3],t=j[4]),(0,n.useEffect)(a,t),!P||!_)return null;let V=v[_],z=v[N];j[5]!==N||j[6]!==E||j[7]!==C||j[8]!==L||j[9]!==_?(u=()=>{C.capture("locale_suggestion_accepted",{current_locale:N,suggested_locale:_}),L.push("".concat(E).concat(window.location.search).concat(window.location.hash),{locale:_})},j[5]=N,j[6]=E,j[7]=C,j[8]=L,j[9]=_,j[10]=u):u=j[10];let D=u;j[11]!==N||j[12]!==C||j[13]!==_?(h=()=>{C.capture("locale_suggestion_dismissed",{current_locale:N,suggested_locale:_}),window.localStorage.setItem(w,_),T(null)}
1,j[11]=N,j[12]=C,j[13]=_,j[14]=h):h=j[14];let R=h;return j[15]===Symbol.for("react.memo_cache_sentinel")?(g=(0,l.jsx)(y.A,{className:"h-3 w-3","aria-hidden":"true"}),j[15]=g):g=j[15],j[16]!==z.close||j[17]!==R?(p=(0,l.jsx)(o.$,{variant:"ghost",size:"icon","aria-label":z.close,onClick:R,className:"absolute right-0.5 top-0.5 h-7 w-7 text-muted-foreground hover:text-foreground",children:g}),j[16]=z.close,j[17]=R,j[18]=p):p=j[18],j[19]===Symbol.for("react.memo_cache_sentinel")?(m=(0,l.jsx)(x.A,{className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),j[19]=m):m=j[19],j[20]!==_||j[21]!==V.title?(b=(0,l.jsxs)("p",{id:k,lang:_,className:"flex items-start gap-2 pr-6 text-sm",children:[m,V.title]}),j[20]=_,j[21]=V.title,j[22]=b):b=j[22],j[23]!==D||j[24]!==_||j[25]!==V.switch?(f=(0,l.jsx)(o.$,{size:"sm",onClick:D,lang:_,children:V.switch}),j[23]=D,j[24]=_,j[25]=V.switch,j[26]=f):f=j[26],j[27]!==z.dismiss||j[28]!==R?(I=(0,l.jsx)(o.$,{size:"sm",variant:"ghost",onClick:R,children:z.dismiss}),j[27]=z.dismiss,j[28]=R,j[29]=I):I=j[29],j[30]!==I||j[31]!==f?(A=(0,l.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[f,I]}),j[30]=I,j[31]=f,j[32]=A):A=j[32],j[33]!==A||j[34]!==p||j[35]!==b?(M=(0,l.jsxs)("div",{role:"region","aria-labelledby":k,className:"pointer-events-auto relative max-w-xs rounded-lg border border-neutral-100 bg-background p-3 shadow-lg",children:[p,b,A]}),j[33]=A,j[34]=p,j[35]=b,j[36]=M):M=j[36],M}function S(e){try{return new Intl.Locale(e).maximize().script}catch(e){return}}},32080:(e,a,t)=>{"use strict";t.d(a,{A7:()=>b,J:()=>c,KQ:()=>M,NH:()=>p,Tu:()=>k,Ue:()=>x,WR:()=>w,_$:()=>g,_H:()=>I,cD:()=>v,c_:()=>f,dZ:()=>i,dc:()=>m,fP:()=>S,hb:()=>E,je:()=>_,n9:()=>T,pW:()=>y,sw:()=>d,u5:()=>N,vB:()=>h,xW:()=>u,ye:()=>j,zm:()=>A});var l,r,n,o=t(35284),s=t(37811);o.DS&&s.env.REACT_GRAB_ENABLED,null==(l=s.env.IMAGE_ARENA_ADDITIONAL_MODELS)||l.split(",").map(e=>e.trim()).filter(Boolean);let i=25,c=200,d="Artificial Analysis Coding Agent Index v".concat("1.5"),u=["DeepSWE v1.1","Terminal-Bench 4.0","SWE-Atlas-QnA"];s.env.ENABLE_ARENA_DISTRIBUTION_LOGGING;let h="deepseek-v4-pro",g=[{slug:"kimi-k3",displayName:"Kimi K3 (max)"},{slug:"glm-5-2",displayName:"GLM-5.2 (max)"},{slug:"deepseek-v4-pro",displayName:"DeepSeek V4 Pro 0813 (max)"}].map(e=>
1e.slug),p=["gpt-oss-120b"],m=7,b=null!=(r=s.env.NEXT_PUBLIC_SCREENSHOT_MODE_TITLE_APPENDAGE)?r:"",f=null!=(n=s.env.NEXT_PUBLIC_SCREENSHOT_MODE_SUBTITLE_APPENDAGE)?n:"";s.env.ALLOW_NGROK;let v="TRUE"===s.env.ENABLE_AA_PLUS_PLAN;s.env.NEXT_PUBLIC_ENABLE_FEATURES_PAGE;let y=!0,x="TRUE"===s.env.NEXT_PUBLIC_ENABLE_GOVERNMENT_PAGE;s.env.NEXT_PUBLIC_ENABLE_MODEL_HOSTS_CACHING_INSIGHTS;let w={plus:{label:"text-indigo-500",dot:"bg-indigo-500",line:"bg-indigo-500"},pro:{label:"text-brand-purple",dot:"bg-brand-purple",line:"bg-brand-lime"}},k="TRUE"===s.env.NEXT_PUBLIC_ENABLE_HW_TASK_ECONOMICS,I="FALSE"!==s.env.NEXT_PUBLIC_ENABLE_HARDWARE_RESTRUCTURE,S=I&&!0,A=5,M=20,j=15e3,N={tiny:"#4f47e5",small:"#ee0d73",medium:"#51c162",large:"#17a9ff",others:"#000"},_={primary:"bg-brand-purple",speed:"bg-brand-yellow",price:"bg-brand-orange"},T="#8842FD",E={short:{color:"#CED3FB",label:"100 input tokens"},medium:{color:"#B4A8FF",label:"1k input tokens"},long:{color:"#9D7BFF",label:"10k input tokens"},hundredK:{color:"#8842FD",label:"100k input tokens"},visionSingleImage:{color:"#712EB7",label:"1MP single image"},mediumParallel:{color:"#5A1976",label:"1k input tokens (10 parallel queries)"}}},33399:(e,a,t)=>{"use strict";t.d(a,{My:()=>o,S0:()=>s,Sx:()=>l,TA:()=>r,XL:()=>n});let l={value:.15,formatted:"$0.15"},r={value:1,formatted:"$1"},n={valueBillions:4.5,formatted:"4B"},o={valueBillions:40,formatted:"40B"},s={valueBillions:150,formatted:"150B"}},33505:(e,a,t)=>{"use strict";t.d(a,{$:()=>c,r:()=>i});var l=t(58212),r=t(96040),n=t(88020),o=t(77059),s=t(27724);let i=(0,o.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:w-4 [&_svg]:h-4 [&_svg]:shrink-0 rounded-lg leading-none",{variants:{variant:{default:"bg-brand-purple text-white hover:bg-brand-blue",secondary:"bg-black text-white hover:bg-neutral-700",secondaryLight:"bg-white hover:bg-brand-blue-light",tertiary:"bg-brand-blue-light hover:bg-neutral-100",outline:"border border-neutral-100 bg-brand-blue-light text-black hover:border-neutral-700",outlineSecondary:"border border-neutral-100 bg-white text-black hover:border-neutral-700",ghost:"hover:underline",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90"},size:{default:"h-8 px-3 py-2",sm:"h-7 p-2 text-xs rounded-md [&_svg]:w-3 [&_svg]:h-3 gap-1",lg:"h-9 px-3 py-2",tight:"h-6 p-0",icon:"h-8 w-8",inlineSm:"h-7 py-2 text-xs [&_svg]:w-3 [&_svg]:h-3 gap-1",external:"h-8 px-3 py-2 rounded-none",externalSm:"h-7 p-2 text-xs rounded-none [&_svg]:w-3 [&_svg]:h-3 gap-1"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef((e,a)=>{let{className:t,variant:r,size:o,asChild:c=!1,...d}=e,u=c?n.DX:"button";return(0,l.jsx)(u,{className:(0,s.cn)(i({variant:r,size:o,className:t})),ref:a,...d})});c.displayName="Button"},35284:(e,a,t)=>{"use strict";var l;t.d(a,{DS:()=>r});let r="development"===(null!=(l=t(37811).env.VERCEL_ENV)?l:"development")},37008:(e,a,t)=>{"use strict";t.d(a,{AM:()=>s,Rp:()=>d,Wv:()=>i,dT:()=>c,hl:()=>u});var l=t(58212),r=t(96040),n=t(10065),o=t(27724);let s=n.bL,i=n.l9,c=n.Mz,d=n.i3,u=r.forwardRef((e,a)=>{let{className:t,align:r="center",sideOffset:s=4,...i}=e;return(0,l.jsx)(n.ZL,{children:(0,l.jsx)(n.UC,{ref:a,align:r,sideOffset:s,className:(0,o.cn)("z-50 w-72 origin-[--radix-popover-content-transform-origin] rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...i})})});u.displayName=n.UC.displayName},38289:(e,a,t)=>{"use strict";t.d(a,{Cf:()=>p,Es:()=>b,HM:()=>h,L3:()=>f,c7:()=>m,lG:()=>c,rr:()=>v,zM:()=>d});var l=t(58212),r=t(36772),n=t(96040),o=t(98750),s=t(27724),i=t(57474);let c=o.bL,d=o.l9,u=o.ZL,h=o.bm,g=n.forwardRef((e,a)=>{let t,n,i,c,d=(0,r.c)(9);return d[0]!==e?({className:t,...n}=e,d[0]=e,d[1]=t,d[2]=n):(t=d[1],n=d[2]),d[3]!==t?(i=(0,s.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),d[3]=t,d[4]=i):i=d[4],d[5]!==n||d[6]!==a||d[7]!==i?(c=(0,l.jsx)(o.hJ,{ref:a,className:i,...n}),d[5]=n,d[6]=a,d[7]=i,d[8]=c):c=d[8],c});g.displayName=o.hJ.displayName;let p=n.forwardRef((e,a)=>{let t,n,c,d,h,p,m,b,f=(0,r.c)(16);return f[0]!==e?({className:n,children:t,hideClose:c,...d}=e,f[0]=e,f[1]=t,f[2]=n,f[3]=c,f[4]=d):(t=f[1],n=f[2],c=f[3],d=f[4]),f[5]===Symbol.for("react.memo_cache_sentinel")?(h=(0,l.jsx)(g,{}
1),f[5]=h):h=f[5],f[6]!==n?(p=(0,s.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n),f[6]=n,f[7]=p):p=f[7],f[8]!==c?(m=!c&&(0,l.jsxs)(o.bm,{className:"absolute right-4 top-4 rounded opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,l.jsx)(i.MKb,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]}),f[8]=c,f[9]=m):m=f[9],f[10]!==t||f[11]!==d||f[12]!==a||f[13]!==p||f[14]!==m?(b=(0,l.jsxs)(u,{children:[h,(0,l.jsxs)(o.UC,{ref:a,className:p,...d,children:[t,m]})]}),f[10]=t,f[11]=d,f[12]=a,f[13]=p,f[14]=m,f[15]=b):b=f[15],b});p.displayName=o.UC.displayName;let m=e=>{let{className:a,...t}=e;return(0,l.jsx)("div",{className:(0,s.cn)("flex flex-col space-y-2 text-center sm:text-left",a),...t})};m.displayName="DialogHeader";let b=e=>{let{className:a,...t}=e;return(0,l.jsx)("div",{className:(0,s.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t})};b.displayName="DialogFooter";let f=n.forwardRef((e,a)=>{let t,n,i,c,d=(0,r.c)(9);return d[0]!==e?({className:t,...n}=e,d[0]=e,d[1]=t,d[2]=n):(t=d[1],n=d[2]),d[3]!==t?(i=(0,s.cn)("text-xl font-medium leading-none tracking-tight font-brand-serif",t),d[3]=t,d[4]=i):i=d[4],d[5]!==n||d[6]!==a||d[7]!==i?(c=(0,l.jsx)(o.hE,{ref:a,className:i,...n}),d[5]=n,d[6]=a,d[7]=i,d[8]=c):c=d[8],c});f.displayName=o.hE.displayName;let v=n.forwardRef((e,a)=>{let t,n,i,c,d=(0,r.c)(9);return d[0]!==e?({className:t,...n}=e,d[0]=e,d[1]=t,d[2]=n):(t=d[1],n=d[2]),d[3]!==t?(i=(0,s.cn)("text-sm text-neutral-400",t),d[3]=t,d[4]=i):i=d[4],d[5]!==n||d[6]!==a||d[7]!==i?(c=(0,l.jsx)(o.VY,{ref:a,className:i,...n}),d[5]=n,d[6]=a,d[7]=i,d[8]=c):c=d[8],c});v.displayName=o.VY.displayName},41151:(e,a,t)=>{"use strict";t.d(a,{Be:()=>k,C1:()=>I,C3:()=>r,DX:()=>s,Go:()=>p,JL:()=>S,OE:()=>d,Pt:()=>o,S$:()=>v,Sy:()=>b,UJ:()=>n,Y$:()=>u,cu:()=>c,fu:()=>y,iF:()=>x,mT:()=>m,oh:()=>A,pP:()=>f,tk:()=>h,xr:()=>w,xv:()=>g,zp:()=>i});var l=t(49605);let r="Artificial Analysis",n="%s | ".concat(r),o="https://x.com/ArtificialAnlys",s="https://www.linkedin.com/company/artificial-analysis/",i="https://discord.gg/Mk298GPZ7V",c="https://www.xiaohongshu.com/user/profile/69ea6345000000000d034c02",d="https://www.youtube.com/@ArtificialAnalysisAI",u=" \xb7 ",h="https://artificialanalysiscdn.com/brand-kit",g="model",p="prompt",m="category",b="accent",f="gender",v="license",y="https://artificialanalysiscdn.com/image-arena/arena-prompts/",x="https://artificialanalysis.ai/docs/legal/Terms-of-Use.pdf",w="https://artificialanalysiscdn.com/legal/ProDataPlatformTerms.pdf",k=x,I="https://".concat("artificialanalysis.ai"),S=Array.from(Object.entries(l.Q2),e=>{let[a,t]=e;return{name:a,value:t.value,label:t.label}}),A="long"},41651:(e,a,t)=>{"use strict";t.d(a,{SubscribeInput:()=>i});var l=t(58212),r=t(92515),n=t(96040),o=t(43861);let s={emailLabel:"Email address",placeholder:"What's your email?",buttonLabel:"Subscribe",messageSubscribed:"Check your email to confirm",errorGeneric:"An error occurred. Please try again later."};function i(e){let{className:a,description:t,title:i}=e,[c,d]=(0,n.useState)(""),[u,h]=(0,n.useState)(!1),[g,p]=(0,n.useState)(""),m=async e=>{e.preventDefault();try{let e=await fetch("/api/article-alerts/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c})});if(!e.ok)throw Error("Request failed: ".concat(e.status));h(!0),p(s.messageSubscribed),d("")}catch(e){console.error("Newsletter subscribe failed",e),p(s.errorGeneric)}};return(0,l.jsxs)("div",{className:a,children:[i&&(0,l.jsx)("h3",{className:"mb-4 text-sm font-semibold leading-6 text-brand-plum",children:i}),t&&(0,l.jsx)("p",{className:"mb-4 mt-2 text-sm leading-6 text-brand-plum/70",children:t}),u?(0,l.jsxs)("div",{className:"mt-3 flex items-center text-sm text-brand-plum",children:[(0,l.jsx)(r.A,{className:"mr-2 h-5 w-5 text-brand-plum"}),g]}):(0,l.jsx)("form",{className:"pointer-events-auto",onSubmit:m,children:(0,l.jsxs)("div",{className:"flex w-full items-stretch overflow-hidden border border-brand-plum p-2 focus-within:ring-1 focus-within:ring-brand-plum focus-within:ring-offset-2 focus-within:ring-offset-brand-purple-light",children:[(0,l.jsx)("label",{htmlFor:"email",className:"sr-only",children:s.emailLabel}),(0,l.jsx)("input",{type:"email",name:"email",id:"email",autoComplete:"email",required:!0,className:"min-w-0 px-2 flex-1 border-none bg-transparent text-sm leading-6 text-brand-plum outline-none focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0 placeholder:text-brand-plum/60",placeholder:s.placeholder,value:c,onChange:e=>d(e.target.value)}),(0,l.jsx)(o.P,{type:"submit",className:"ml-3 flex-none",children:s.buttonLabel})]})})]})}},43861:(e,a,t)=>{"use strict";t.d(a,{P:()=>o});
1var l=t(58212),r=t(36772);t(96040);var n=t(27724);function o(e){let a,t,o,s,i=(0,r.c)(8);return i[0]!==e?({className:a,...t}=e,i[0]=e,i[1]=a,i[2]=t):(a=i[1],t=i[2]),i[3]!==a?(o=(0,n.cn)("inline-flex h-auto items-center justify-center gap-2 whitespace-nowrap rounded-none bg-brand-plum px-4 py-2 text-sm font-semibold leading-6 text-white transition-colors hover:bg-brand-plum/90 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:h-4 [&_svg]:w-4 [&_svg]:shrink-0",a),i[3]=a,i[4]=o):o=i[4],i[5]!==t||i[6]!==o?(s=(0,l.jsx)("button",{className:o,...t}),i[5]=t,i[6]=o,i[7]=s):s=i[7],s}},44365:(e,a,t)=>{"use strict";t.d(a,{bq:()=>h,eb:()=>b,gC:()=>m,l6:()=>c,s3:()=>d,yv:()=>u});var l=t(58212),r=t(96040),n=t(57857),o=t(27724),s=t(57474),i=t(92515);let c=n.bL,d=n.YJ,u=n.WT,h=r.forwardRef((e,a)=>{let{className:t,children:r,...i}=e;return(0,l.jsxs)(n.l9,{ref:a,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-lg border border-neutral-100 bg-transparent px-3 py-2 text-sm r
1ing-offset-background focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-neutral-500 [&>span]:truncate",t),...i,children:[r,(0,l.jsx)(n.In,{asChild:!0,children:(0,l.jsx)(s.D3D,{className:"h-4 w-4 shrink-0"})})]})});h.displayName=n.l9.displayName;let g=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,l.jsx)(n.PP,{ref:a,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,l.jsx)(s.Mtm,{className:"h-4 w-4"})})});g.displayName=n.PP.displayName;let p=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,l.jsx)(n.wn,{ref:a,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",t),...r,children:(0,l.jsx)(s.D3D,{className:"h-4 w-4"})})});p.displayName=n.wn.displayName;let m=r.forwardRef((e,a)=>{let{className:t,children:r,position:s="popper",...i}=e;return(0,l.jsx)(n.ZL,{children:(0,l.jsxs)(n.UC,{ref:a,className:(0,o.cn)("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-lg border border-neutral-100 bg-background shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===s&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:s,...i,children:[(0,l.jsx)(g,{}),(0,l.jsx)(n.LM,{className:(0,o.cn)("p-1","popper"===s&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,l.jsx)(p,{})]})})});m.displayName=n.UC.displayName,r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,l.jsx)(n.JU,{ref:a,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",t),...r})}).displayName=n.JU.displayName;let b=r.forwardRef((e,a)=>{let{className:t,children:r,...s}=e;return(0,l.jsxs)(n.q7,{ref:a,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-2 pr-8 text-sm outline-none text-neutral-900 focus:bg-brand-blue-light focus:text-black data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>span]:truncate",t),...s,children:[(0,l.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,l.jsx)(n.VF,{children:(0,l.jsx)(i.A,{className:"h-4 w-4"})})}),(0,l.jsx)(n.p4,{children:r})]})});b.displayName=n.q7.displayName,r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,l.jsx)(n.wv,{ref:a,className:(0,o.cn)("-mx-1 my-1 h-px bg-border",t),...r})}).displayName=n.wv.displayName},49605:(e,a,t)=>{"use strict";t.d(a,{Ar:()=>l,JQ:()=>s,Oz:()=>o,Q2:()=>r,Y$:()=>n});let l="white-circle.svg",r={medium:{value:1e3,label:"1,000 Input Tokens"},long:{value:1e4,label:"10,000 Input Tokens"},"100k":{value:1e5,label:"100,000 Input Tokens"},vision_single_image:{value:1e3,label:"1,000 Input Tokens"},medium_coding:{value:1e3,label:"1,000 Input Tokens (Coding workload)"}},n={medium:{tokens:1e3,parallelQueries:1,label:"1,000 input tokens"},long:{tokens:1e4,parallelQueries:1,label:"10,000 input tokens"},"100k":{tokens:1e5,parallelQueries:1,label:"100,000 input tokens"},vision_single_image:{tokens:1e3,parallelQueries:1,label:"1,000 input tokens"},medium_coding:{tokens:1e3,parallelQueries:1,label:"1,000 input tokens (coding workload)"},medium_parallel:{tokens:1e3,parallelQueries:10,label:"1,000 input tokens (10 parallel queries)"}},o="long",s=Array.from(Object.entries(n),e=>{let[a,t]=e;return{name:a,value:t.tokens,label:t.label}})},57181:(e,a,t)=>{"use strict";t.d(a,{Hm:()=>d,OF:()=>s,a8:()=>o,rd:()=>n.useRouter});var l=t(87755),r=t(23139),n=t(5300);let{usePathname:o,useRouter:s,redirect:i,permanentRedirect:c,getPathname:d}=(0,l.A)(r.DT)},58410:(e,a,t)=>{"use strict";function l(e,a){if(!e)throw Error("Invariant violation: ".concat(a))}t.d(a,{V:()=>l})},58595:(e,a,t)=>{"use strict";t.d(a,{BE:()=>g,I6:()=>m,Uz:()=>c,_s:()=>i,gk:()=>p,zj:()=>h});
1var l=t(58212),r=t(36772),n=t(96040),o=t(41224),s=t(27724);let i=e=>{let{shouldScaleBackground:a=!0,...t}=e;return(0,l.jsx)(o._s.Root,{shouldScaleBackground:a,...t})};i.displayName="Drawer";let c=o._s.Trigger,d=o._s.Portal;o._s.Close;let u=n.forwardRef((e,a)=>{let t,n,i,c,d=(0,r.c)(9);return d[0]!==e?({className:t,...n}=e,d[0]=e,d[1]=t,d[2]=n):(t=d[1],n=d[2]),d[3]!==t?(i=(0,s.cn)("fixed inset-0 z-50 bg-black/80",t),d[3]=t,d[4]=i):i=d[4],d[5]!==n||d[6]!==a||d[7]!==i?(c=(0,l.jsx)(o._s.Overlay,{ref:a,className:i,...n}),d[5]=n,d[6]=a,d[7]=i,d[8]=c):c=d[8],c});u.displayName=o._s.Overlay.displayName;let h=n.forwardRef((e,a)=>{let t,n,i,c,h,g,p,m=(0,r.c)(13);return m[0]!==e?({className:n,children:t,...i}=e,m[0]=e,m[1]=t,m[2]=n,m[3]=i):(t=m[1],n=m[2],i=m[3]),m[4]===Symbol.for("react.memo_cache_sentinel")?(c=(0,l.jsx)(u,{}),m[4]=c):c=m[4],m[5]!==n?(h=(0,s.cn)("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t border bg-background",n),m[5]=n,m[6]=h):h=m[6],m[7]===Symbol.for("react.memo_cache_sentinel")?(g=(0,l.jsx)("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),m[7]=g):g=m[7],m[8]!==t||m[9]!==i||m[10]!==a||m[11]!==h?(p=(0,l.jsxs)(d,{children:[c,(0,l.jsxs)(o._s.Content,{ref:a,className:h,...i,children:[g,t]})]}),m[8]=t,m[9]=i,m[10]=a,m[11]=h,m[12]=p):p=m[12],p});h.displayName="DrawerContent";let g=e=>{let{className:a,...t}=e;return(0,l.jsx)("div",{className:(0,s.cn)("grid gap-1.5 p-4 text-center sm:text-left",a),...t})};g.displayName="DrawerHeader";let p=n.forwardRef((e,a)=>{let t,n,i,c,d=(0,r.c)(9);return d[0]!==e?({className:t,...n}=e,d[0]=e,d[1]=t,d[2]=n):(t=d[1],n=d[2]),d[3]!==t?(i=(0,s.cn)("text-lg font-semibold leading-none tracking-tight",t),d[3]=t,d[4]=i):i=d[4],d[5]!==n||d[6]!==a||d[7]!==i?(c=(0,l.jsx)(o._s.Title,{ref:a,className:i,...n}),d[5]=n,d[6]=a,d[7]=i,d[8]=c):c=d[8],c});p.displayName=o._s.Title.displayName;let m=n.forwardRef((e,a)=>{let t,n,i,c,d=(0,r.c)(9);return d[0]!==e?({className:t,...n}=e,d[0]=e,d[1]=t,d[2]=n):(t=d[1],n=d[2]),d[3]!==t?(i=(0,s.cn)("text-sm text-muted-foreground",t),d[3]=t,d[4]=i):i=d[4],d[5]!==n||d[6]!==a||d[7]!==i?(c=(0,l.jsx)(o._s.Description,{ref:a,className:i,...n}),d[5]=n,d[6]=a,d[7]=i,d[8]=c):c=d[8],c});m.displayName=o._s.Description.displayName},58872:(e,a,t)=>{"use strict";t.d(a,{y:()=>o});var l=t(3757),r=t(13470),n=t(4607);let o=(0,r.M)({plugins:[(0,l.VY)({ac:n.ac,schema:(0,l.Xc)(),roles:{owner:n.eC,admin:n.wr,member:n.Dc}}),(0,l.bH)(),(0,l.tT)()]})},64127:(e,a,t)=>{"use strict";t.r(a),t.d(a,{Link:()=>d});var l=t(58212),r=t(36772),n=t(63763),o=t.n(n),s=t(25776),i=t(96040),c=t(76398);function d(e){let a,t,n,d,u,h,g=(0,r.c)(14);g[0]!==e?({href:a,onMouseEnter:t,...n}=e,g[0]=e,g[1]=a,g[2]=t,g[3]=n):(a=g[1],t=g[2],n=g[3]);let p=(0,s.Ym)(),[m,b]=(0,i.useState)(!1),f=!!m&&null;return g[4]!==t?(d=e=>{b(!0),null==t||t(e)},g[4]=t,g[5]=d):d=g[5],g[6]!==a||g[7]!==p?(u=(0,c.l)(a,p),g[6]=a,g[7]=p,g[8]=u):u=g[8],g[9]!==n||g[10]!==f||g[11]!==d||g[12]!==u?(h=(0,l.jsx)(o(),{...n,prefetch:f,onMouseEnter:d,href:u}),g[9]=n,g[10]=f,g[11]=d,g[12]=u,g[13]=h):h=g[13],h}},70400:(e,a,t)=>{"use strict";t.d(a,{g:()=>o});var l=t(58212),r=t(36772),n=t(27724);function o(e){let a,t,o,s,i,c,d=(0,r.c)(10),{size:u,className:h,style:g}=e,p=void 0===u?24:u;return d[0]!==h?(a=(0,n.cn)("shrink-0",h),d[0]=h,d[1]=a):a=d[1],d[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)("path",{d:"M46.2194 52.8204H52.8194V39.6104H46.2194H39.6094V52.8204H46.2194Z"}),o=(0,l.jsx)("path",{d:"M26.41 0L13.2 13.2H0V26.41H19.81L33.01 13.2H39.61V0H26.41Z"}),s=(0,l.jsx)("path",{d:"M26.41 26.4102L13.2 39.6102H0V52.8202H19.81L33.01 39.6102H39.61V26.4102H26.41Z"}),i=(0,l.jsx)("path",{d:"M52.8194 26.4102V13.2002H46.2194H39.6094V26.4102H46.2194H52.8194Z"}),d[2]=t,d[3]=o,d[4]=s,d[5]=i):(t=d[2],o=d[3],s=d[4],i=d[5]),d[6]!==p||d[7]!==g||d[8]!==a?(c=(0,l.jsxs)("svg",{width:p,height:p,viewBox:"0 0 53 53",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,className:a,style:g,children:[t,o,s,i]}),d[6]=p,d[7]=g,d[8]=a,d[9]=c):c=d[9],c}},70512:(e,a,t)=>{"use strict";t.d(a,{UpgradeCelebrationOverlay:()=>p});
1var l=t(58212),r=t(36772),n=t(96040),o=t(55082),s=t(20754),i=t(33505),c=t(27724),d=t(32080),u=t(27757),h=t(70400),g=t(719);function p(){let e,a,t,p,v,y,x,w,k,I,S,A,M,j,N,_,T,E,L,C,P,V,z,D,R,O,U,B=(0,r.c)(122),{visible:G,phase:H,plan:F,dismiss:W}=(0,g.t)((0,s.k)(b)),Y=(0,n.useRef)(null);if(B[0]!==H||B[1]!==G?(e=()=>{if(G&&"processing"===H)return window.addEventListener("beforeunload",m),()=>window.removeEventListener("beforeunload",m)},a=[G,H],B[0]=H,B[1]=G,B[2]=e,B[3]=a):(e=B[2],a=B[3]),(0,n.useEffect)(e,a),B[4]!==G?(t=()=>{if(!G)return;let e=document.activeElement;return()=>null==e?void 0:e.focus()},p=[G],B[4]=G,B[5]=t,B[6]=p):(t=B[5],p=B[6]),(0,n.useEffect)(t,p),B[7]!==G?(v=()=>{if(!G)return;let e=Y.current;if(!e)return;let[a]=f(e);(null!=a?a:e).focus();let t=a=>{if("Tab"!==a.key)return;let t=f(e),[l]=t,r=t[t.length-1];if(!l||!r){a.preventDefault(),e.focus();return}let n=document.activeElement;a.shiftKey&&(n===l||!e.contains(n))?(a.preventDefault(),r.focus()):a.shiftKey||n!==r&&e.contains(n)||(a.preventDefault(),l.focus())};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},B[7]=G,B[8]=v):v=B[8],B[9]!==H||B[10]!==G?(y=[G,H],B[9]=H,B[10]=G,B[11]=y):y=B[11],(0,n.useEffect)(v,y),!G)return null;let Z=u.NB[F].name,J="Artificial Analysis ".concat(Z);if(B[12]!==J||B[13]!==H||B[14]!==F){var $,q;let e,a,t,r,n,s,i,g,p,m,b,f,v,y,P,V,z,D,R,O;x=null!=($=u.J6[F])?$:[];let U=null!=(q=d.WR[F])?q:d.WR.plus;I=Y,S="dialog",A="true",M="processing"===H?"Verifying payment":"Welcome to ".concat(J),j=-1,N="fixed inset-0 z-[100] flex items-center justify-center bg-black/80 outline-none";let G="processing"===H?"scale-100 opacity-100":"pointer-events-none scale-110 opacity-0";B[29]!==G?(e=(0,c.cn)("absolute transition-all duration-500 ease-out",G),B[29]=G,B[30]=e):e=B[30],B[31]!==U.label?(a=(0,c.cn)("mb-5",U.label),B[31]=U.label,B[32]=a):a=B[32],B[33]!==a?(t=(0,l.jsx)(h.g,{size:32,className:a}),B[33]=a,B[34]=t):t=B[34],B[35]!==U.label?(r=(0,c.cn)("h-5 w-5 animate-spin",U.label),B[35]=U.label,B[36]=r):r=B[36],B[37]!==r?(n=(0,l.jsx)(o.A,{className:r}),B[37]=r,B[38]=n):n=B[38],B[39]===Symbol.for("react.memo_cache_sentinel")?(s=(0,l.jsx)("p",{className:"mt-4 text-sm font-medium text-foreground",children:"Verifying payment"}),i=(0,l.jsx)("p",{className:"mt-1.5 text-xs text-muted-foreground",children:"Please don't navigate away"}),B[39]=s,B[40]=i):(s=B[39],i=B[40]),B[41]!==t||B[42]!==n?(g=(0,l.jsxs)("div",{className:"flex flex-col items-center rounded-lg border bg-background px-10 py-8 shadow-lg",children:[t,n,s,i]}),B[41]=t,B[42]=n,B[43]=g):g=B[43],B[44]!==e||B[45]!==g?(_=(0,l.jsx)("div",{className:e,children:g}),B[44]=e,B[45]=g,B[46]=_):_=B[46];let W="success"===H?"scale-100 opacity-100":"pointer-events-none scale-90 opacity-0";B[47]!==W?(k=(0,c.cn)("absolute w-full max-w-md px-4 transition-all duration-500 ease-out",W),B[47]=W,B[48]=k):k=B[48],L="rounded-lg border bg-background p-8 shadow-lg",B[49]!==U.label?(p=(0,c.cn)("mb-6 transition-all duration-500",U.label),B[49]=U.label,B[50]=p):p=B[50];let Z=+("success"===H),X="success"===H?"translateY(0)":"translateY(6px)";B[51]!==Z||B[52]!==X?(m={opacity:Z,transform:X},B[51]=Z,B[52]=X,B[53]=m):m=B[53],B[54]!==p||B[55]!==m?(b=(0,l.jsx)(h.g,{size:36,className:p,style:m}),B[54]=p,B[55]=m,B[56]=b):b=B[56],B[57]!==U.line?(f=(0,c.cn)("h-px transition-all duration-500 delay-100",U.line),B[57]=U.line,B[58]=f):f=B[58];let K="success"===H?"2.5rem":"0rem";B[59]!==K?(v={width:K},B[59]=K,B[60]=v):v=B[60],B[61]!==f||B[62]!==v?(y=(0,l.jsx)("div",{className:f,style:v}),B[61]=f,B[62]=v,B[63]=y):y=B[63],B[64]!==U.label?(P=(0,c.cn)("mt-5 text-xs font-medium uppercase tracking-[0.15em] transition-all duration-500 delay-150",U.label),B[64]=U.label,B[65]=P):P=B[65];let Q=+("success"===H),ee="success"===H?"translateY(0)":"translateY(4px)";B[66]!==Q||B[67]!==ee?(V={opacity:Q,transform:ee},B[66]=Q,B[67]=ee,B[68]=V):V=B[68],B[69]!==J||B[70]!==P||B[71]!==V?(z=(0,l.jsx)("p",{className:P,style:V,children:J}),B[69]=J,B[70]=P,B[71]=V,B[72]=z):z=B[72];let ea=+("success"===H),et="success"===H?"translateY(0)":"translateY(6px)";B[73]!==ea||B[74]!==et?(D=(0,l.jsx)("h2",{className:"mt-3 text-2xl font-bold tracking-tight text-foreground transition-all duration-500",style:{transitionDelay:"250m
1s",opacity:ea,transform:et},children:"You're all set."}),B[73]=ea,B[74]=et,B[75]=D):D=B[75];let el=+("success"===H),er="success"===H?"translateY(0)":"translateY(6px)";B[76]!==el||B[77]!==er?(R=(0,l.jsx)("p",{className:"mt-2 text-sm text-muted-foreground transition-all duration-500",style:{transitionDelay:"350ms",opacity:el,transform:er},children:"Your plan is active. Here's what's now available to you."}),B[76]=el,B[77]=er,B[78]=R):R=B[78],B[79]!==b||B[80]!==y||B[81]!==z||B[82]!==D||B[83]!==R?(C=(0,l.jsxs)("div",{className:"flex flex-col items-center text-center",children:[b,y,z,D,R]}),B[79]=b,B[80]=y,B[81]=z,B[82]=D,B[83]=R,B[84]=C):C=B[84];let en=+("success"===H),eo="success"===H?"scaleX(1)":"scaleX(0.6)";B[85]!==en||B[86]!==eo?(w=(0,l.jsx)("div",{className:"mt-6 h-px w-full bg-border transition-all duration-500",style:{transitionDelay:"400ms",opacity:en,transform:eo}}),B[85]=en,B[86]=eo,B[87]=w):w=B[87],T="mt-5 space-y-3.5",B[88]!==U.dot||B[89]!==H?(O=(e,a)=>(0,l.jsxs)("li",{className:"flex items-baseline gap-3 text-sm text-foreground transition-all duration-500",style:{transitionDelay:"".concat(500+80*a,"ms"),opacity:+("success"===H),transform:"success"===H?"translateY(0)":"translateY(6px)"},children:[(0,l.jsx)("span",{className:(0,c.cn)("block h-1 w-1 flex-shrink-0 translate-y-[-1px] rounded-full",U.dot)}),(0,l.jsx)("span",{className:"leading-snug",children:e})]},e),B[88]=U.dot,B[89]=H,B[90]=O):O=B[90],E=x.map(O),B[12]=J,B[13]=H,B[14]=F,B[15]=x,B[16]=w,B[17]=k,B[18]=I,B[19]=S,B[20]=A,B[21]=M,B[22]=j,B[23]=N,B[24]=_,B[25]=T,B[26]=E,B[27]=L,B[28]=C}else x=B[15],w=B[16],k=B[17],I=B[18],S=B[19],A=B[20],M=B[21],j=B[22],N=B[23],_=B[24],T=B[25],E=B[26],L=B[27],C=B[28];B[91]!==T||B[92]!==E?(P=(0,l.jsx)("ul",{className:T,children:E}),B[91]=T,B[92]=E,B[93]=P):P=B[93];let X="".concat(500+80*x.length+100,"ms"),K=+("success"===H),Q="success"===H?"translateY(0)":"translateY(6px)";B[94]!==X||B[95]!==K||B[96]!==Q?(V={transitionDelay:X,opacity:K,transform:Q},B[94]=X,B[95]=K,B[96]=Q,B[97]=V):V=B[97];let ee="success"!==H;return B[98]!==W||B[99]!==ee?(z=(0,l.jsx)(i.$,{onClick:W,disabled:ee,className:"h-10 w-full text-sm font-medium shadow",children:"Continue"}),B[98]=W,B[99]=ee,B[100]=z):z=B[100],B[101]!==V||B[102]!==z?(D=(0,l.jsx)("div",{className:"mt-8 transition-all duration-500",style:V,children:z}),B[101]=V,B[102]=z,B[103]=D):D=B[103],B[104]!==w||B[105]!==P||B[106]!==D||B[107]!==L||B[108]!==C?(R=(0,l.jsxs)("div",{className:L,children:[C,w,P,D]}),B[104]=w,B[105]=P,B[106]=D,B[107]=L,B[108]=C,B[109]=R):R=B[109],B[110]!==k||B[111]!==R?(O=(0,l.jsx)("div",{className:k,children:R}),B[110]=k,B[111]=R,B[112]=O):O=B[112],B[113]!==I||B[114]!==S||B[115]!==A||B[116]!==M||B[117]!==j||B[118]!==N||B[119]!==_||B[120]!==O?(U=(0,l.jsxs)("div",{ref:I,role:S,"aria-modal":A,"aria-label":M,tabIndex:j,className:N,children:[_,O]}),B[113]=I,B[114]=S,B[115]=A,B[116]=M,B[117]=j,B[118]=N,B[119]=_,B[120]=O,B[121]=U):U=B[121],U}function m(e){e.preventDefault()}function b(e){return{visible:e.visible,phase:e.phase,plan:e.plan,dismiss:e.dismiss}}function f(e){return Array.from(e.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'))}},70948:(e,a,t)=>{"use strict";t.d(a,{UserTierProvider:()=>d,e:()=>i});var l=t(58212),r=t(36772),n=t(96040),o=t(97369);let s=(0,n.createContext)(null);function i(){return(0,n.useContext)(s)}let c={free:0,plus:1,pro:2};function d(e){let a,t,n,i=(0,r.c)(9),{children:d}=e,{currentPlan:u,isLoading:h}=(0,o.Z)(),g="enterprise"===u?"pro":u;i[0]!==g?(a=e=>c[g]>=c[e],i[0]=g,i[1]=a):a=i[1];let p=a;return i[2]!==p||i[3]!==h||i[4]!==g?(t={tier:g,hasAccess:p,isLoading:h},i[2]=p,i[3]=h,i[4]=g,i[5]=t):t=i[5],i[6]!==d||i[7]!==t?(n=(0,l.jsx)(s.Provider,{value:t,children:d}),i[6]=d,i[7]=t,i[8]=n):n=i[8],n}},72838:(e,a,t)=>{"use strict";t.d(a,{$y:()=>i,F0:()=>h,M9:()=>c,S2:()=>r,UN:()=>p,VF:()=>u,Zr:()=>n,aN:()=>o,cB:()=>s,p4:()=>g,vo:()=>m,yl:()=>d});let l="-vs-",r="compare";function n(e){return"/models/".concat(e)}function o(e){return"/models/".concat(e,"/providers")}function s(e){return"/models/releases/".concat(e)}function i(e){return"/models/creators/".concat(e)}function c(){for(var e=arguments.length,a=Array(e),t=0;t<e;t++)a[t]=arguments[t];return"/models/comparisons/".concat(a.join(l))}function d(){for(var e=arguments.length,a=Array(e),t=0;t<e;t++)a[t]=arguments[t];return"/models/comparisons?".concat(r,"=").concat(a.join(","))}function u(e,a){return"/models/releases/comparisons/".concat(e).concat(l).concat(a)}function h(){for(var e=arguments.length,a=Array(e),t=0;t<e;t++)a[t]=arguments[t];return"/models/releases/comparisons?".concat(r,"=").concat(a.join(","))}function g(e){return"/models/multilingual/".concat(e)}function p(e){return"/providers/".concat(e)}function m(e){return"/img/logos/".concat(e)}},72931:(e,a,t)=>{"use strict";t.d(a,{Y0:()=>s,aU:()=>i,vj:()=>o});
1var l=t(58212),r=t(36772),n=t(96040);let o=n.forwardRef(function(e,a){let t,n,o,s,i=(0,r.c)(9);i[0]!==e?({color:n,...t}=e,i[0]=e,i[1]=t,i[2]=n):(t=i[1],n=i[2]);let c=void 0===n?"currentColor":n;return i[3]!==c?(o=(0,l.jsx)("path",{d:"M8.73677 6.50461L13.5763 1H12.4295L8.22732 5.77958L4.87105 1H1L6.07533 8.22757L1 14H2.14688L6.58449 8.9526L10.1289 14H14L8.73648 6.50461H8.73677ZM7.16595 8.29124L6.65172 7.57154L2.56012 1.84479H4.32166L7.62363 6.46646L8.13787 7.18616L12.43 13.1936H10.6685L7.16595 8.29152V8.29124Z",fill:c}),i[3]=c,i[4]=o):o=i[4],i[5]!==a||i[6]!==t||i[7]!==o?(s=(0,l.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,ref:a,children:o}),i[5]=a,i[6]=t,i[7]=o,i[8]=s):s=i[8],s}),s=n.forwardRef(function(e,a){let t,o,s,i,c,d,u,h=(0,r.c)(15);h[0]!==e?({color:o,...t}=e,h[0]=e,h[1]=t,h[2]=o):(t=h[1],o=h[2]);let g=void 0===o?"currentColor":o,p=n.useId();h[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,l.jsx)("rect",{width:"24",height:"24",rx:"5",fill:"white"}),h[3]=s):s=h[3],h[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)("g",{transform:"translate(3 3) scale(0.75)",children:(0,l.jsx)("path",{d:"M22.405 9.879c.002.016.01.02.07.019h.725a.797.797 0 0 0 .78-.972.794.794 0 0 0-.884-.618.795.795 0 0 0-.692.794c0 .101-.002.666.001.777zm-11.509 4.808c-.203.001-1.353.004-1.685.003a2.528 2.528 0 0 1-.766-.126.025.025 0 0 0-.03.014L7.7 16.127a.025.025 0 0 0 .01.032c.111.06.336.124.495.124.66.01 1.32.002 1.981 0 .01 0 .02-.006.023-.015l.712-1.545a.025.025 0 0 0-.024-.036zM.477 9.91c-.071 0-.076.002-.076.01a.834.834 0 0 0-.01.08c-.027.397-.038.495-.234 3.06-.012.24-.034.389-.135.607-.026.057-.033.042.003.112.046.092.681 1.523.787 1.74.008.015.011.02.017.02.008 0 .033-.026.047-.044.147-.187.268-.391.371-.606.306-.635.44-1.325.486-1.706.014-.11.021-.22.03-.33l.204-2.616.022-.293c.003-.029 0-.033-.03-.034zm7.203 3.757a1.427 1.427 0 0 1-.135-.607c-.004-.084-.031-.39-.235-3.06a.443.443 0 0 0-.01-.082c-.004-.011-.052-.008-.076-.008h-1.48c-.03.001-.034.005-.03.034l.021.293c.076.982.153 1.964.233 2.946.05.4.186 1.085.487 1.706.103.215.223.419.37.606.015.018.037.051.048.049.02-.003.742-1.642.804-1.765.036-.07.03-.055.003-.112zm3.861-.913h-.872a.126.126 0 0 1-.116-.178l1.178-2.625a.025.025 0 0 0-.023-.035l-1.318-.003a.148.148 0 0 1-.135-.21l.876-1.954a.025.025 0 0 0-.023-.035h-1.56c-.01 0-.02.006-.024.015l-.926 2.068c-.085.169-.314.634-.399.938a.534.534 0 0 0-.02.191.46.46 0 0 0 .23.378.981.981 0 0 0 .46.119h.59c.041 0-.688 1.482-.834 1.972a.53.53 0 0 0-.023.172.465.465 0 0 0 .23.398c.15.092.342.12.475.12l1.66-.001c.01 0 .02-.006.023-.015l.575-1.28a.025.025 0 0 0-.024-.035zm-6.93-4.937H3.1a.032.032 0 0 0-.034.033c0 1.048-.01 2.795-.01 6.829 0 .288-.269.262-.28.262h-.74c-.04.001-.044.004-.04.047.001.037.465 1.064.555 1.263.01.02.03.033.051.033.157.003.767.009.938-.014.153-.02.3-.06.438-.132.3-.156.49-.419.595-.765.052-.172.075-.353.075-.533.002-2.33 0-4.66-.007-6.991a.032.032 0 0 0-.032-.032zm11.784 6.896c0-.014-.01-.021-.024-.022h-1.465c-.048-.001-.049-.002-.05-.049v-4.66c0-.072-.005-.07.07-.07h.863c.08 0 .075.004.075-.074V8.393c0-.082.006-.076-.08-.076h-3.5c-.064 0-.075-.006-.075.073v1.445c0 .083-.006.077.08.077h.854c.075 0 .07-.004.07.07v4.624c0 .095.008.084-.085.084-.37 0-1.11-.002-1.304 0-.048.001-.06.03-.06.03l-.697 1.519s-.014.025-.008.036c.006.01.013.008.058.008 1.748.003 3.495.002 5.243.002.03-.001.034-.006.035-.033v-1.539zm4.177-3.43c0 .013-.007.023-.02.024-.346.006-.692.004-1.037.004-.014-.002-.022-.01-.022-.024-.005-.434-.007-.869-.01-1.303 0-.072-.006-.071.07-.07l.733-.003c.041 0 .081.002.12.015.093.025.16.107.165.204.006.431.002 1.153.001 1.153zm2.67.244a1.953 1.953 0 0 0-.883-.222h-.18c-.04-.001-.04-.003-.042-.04V10.21c0-.132-.007-.263-.025-.394a1.823 1.823 0 0 0-.153-.53 1.533 1.533 0 0 0-.677-.71 2.167 2.167 0 0 0-1-.258c-.153-.003-.567 0-.72 0-.07 0-.068.004-.068-.065V7.76c0-.031-.01-.041-.046-.039H17.93s-.016 0-.023.007c-.006.006-.008.012-.008.023v.546c-.008.036-.057.015-.082.022h-.95c-.022.002-.028.008-.03.032v1.481c0 .09-.004.082.082.082h.913c.082 0 .072.128.072.128V11.19s.003.117-.06.117h-1.482c-.068 0-.06.082-.06.082v1.445s-.01.068.064.068h1.457c.082 0 .076-.006.076.079v3.225c0 .088-.007.081.082.081h1.43c.09 0 .082.007.082-.08v-3.27c0-.029.006-.035.033-.035l2.323-.003c.098 0 .191.02.28.061a.46.46 0 0 1 .274.407c.008.395.003.79.003 1.185 0 .259-.107.367-.33.367h-1.218c-.023.002-.029.008-.028.033.184.437.374.871.57 1.303a.045.045 0 0 0 .04.026c.17.005.34.002.51.003.15-.002.517.004.666-.01a2.03 2.03 0 0 0 .408-.075c.59-.18.975-.698.976-1.313v-1.981c0-.128-.01-.254-.034-.38 0 .078-.029-.641-.724-.998z",fill:"black"})}),h[4]=i):i=h[4],h[5]!==p?(c=(0,l.jsxs)("mask",{id:p,maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:[s,i]}
1),h[5]=p,h[6]=c):c=h[6];let m="url(#".concat(p,")");return h[7]!==g||h[8]!==m?(d=(0,l.jsx)("rect",{width:"24",height:"24",rx:"5",fill:g,mask:m}),h[7]=g,h[8]=m,h[9]=d):d=h[9],h[10]!==a||h[11]!==t||h[12]!==c||h[13]!==d?(u=(0,l.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,ref:a,children:[c,d]}),h[10]=a,h[11]=t,h[12]=c,h[13]=d,h[14]=u):u=h[14],u}),i=n.forwardRef(function(e,a){let t,n,o,s,i=(0,r.c)(9);i[0]!==e?({color:n,...t}=e,i[0]=e,i[1]=t,i[2]=n):(t=i[1],n=i[2]);let c=void 0===n?"currentColor":n;return i[3]!==c?(o=(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z",fill:c}),i[3]=c,i[4]=o):o=i[4],i[5]!==a||i[6]!==t||i[7]!==o?(s=(0,l.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,ref:a,children:o}),i[5]=a,i[6]=t,i[7]=o,i[8]=s):s=i[8],s})},76398:(e,a,t)=>{"use strict";t.d(a,{l:()=>n});var l=t(23139),r=t(11945);function n(e,a){var t;if(a===l.Xn||!e.startsWith("/"))return e;let n=function(e){let a=e.search(/[?#]/);return -1===a?e:e.slice(0,a)}(e);return(t=n,l.YZ.some(e=>t==="/".concat(e)||t.startsWith("/".concat(e,"/")))||!(0,r.nW)(n))?e:"/".concat(a).concat("/"===n?e.slice(1):e)}},77594:(e,a,t)=>{"use strict";t.d(a,{LanguageSelector:()=>d});var l=t(58212),r=t(36772),n=t(27126),o=t(57181),s=t(23139),i=t(44365),c=t(57474);function d(e){let a,t,d,h,g,p,m=(0,r.c)(15),{label:b,locale:f}=e,v=(0,o.a8)(),y=(0,o.OF)();m[0]!==f||m[1]!==v||m[2]!==y?(a=e=>{(0,s.Zd)(e)&&e!==f&&y.push("".concat(v).concat(window.location.search).concat(window.location.hash),{locale:e})},m[0]=f,m[1]=v,m[2]=y,m[3]=a):a=m[3];let x=a;return m[4]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)(c.fCU,{className:"h-3.5 w-3.5","aria-hidden":"true"}),m[4]=t):t=m[4],m[5]!==f?(d=(0,n.M)(f,f),m[5]=f,m[6]=d):d=m[6],m[7]!==b||m[8]!==d?(h=(0,l.jsxs)(i.bq,{"aria-label":b,className:"h-7 w-auto gap-1.5 border-brand-plum/40 px-2 py-1 text-xs text-brand-plum",children:[t,d]}),m[7]=b,m[8]=d,m[9]=h):h=m[9],m[10]===Symbol.for("react.memo_cache_sentinel")?(g=(0,l.jsx)(i.gC,{align:"end",children:s.YZ.map(u)}),m[10]=g):g=m[10],m[11]!==f||m[12]!==x||m[13]!==h?(p=(0,l.jsxs)(i.l6,{value:f,onValueChange:x,children:[h,g]}),m[11]=f,m[12]=x,m[13]=h,m[14]=p):p=m[14],p}function u(e){return(0,l.jsx)(i.eb,{value:e,children:(0,n.M)(e,e)},e)}},78305:(e,a,t)=>{"use strict";t.d(a,{J:()=>l});class l extends Error{constructor(e){super("Unreachable code: ".concat(e))}}},79910:(e,a,t)=>{"use strict";function l(e){let{knowledge:a,attributes:t=[],skills:l,messages:r}=e;return[...new Set([...a.map(e=>r.knowledge[e]),...t.map(e=>r.attributes[e]),...l.map(e=>r.skills[e])])]}t.d(a,{S:()=>l})},84762:(e,a,t)=>{"use strict";t.d(a,{E:()=>i});var l=t(58212),r=t(36772);t(96040);var n=t(77059),o=t(27724);let s=(0,n.F)("font-brand-sans inline-flex items-center whitespace-nowrap leading-none rounded border transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-brand-purple text-white shadow hover:bg-brand-purple/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground",brandOutline:"border border-neutral-100 bg-white",brandSecondary:"border-none bg-black text-white",brandDark:"border border-white/10 bg-white/5 text-white",brandDefault:"border-none bg-brand-purple text-white"},size:{default:"text-xs font-semibold h-6 px-2.5 py-0.5",brandDefault:"text-xs font-normal rounded-md h-6 px-2 py-1 [&_svg]:w-3 [&_svg]:h-3 [&_svg]:shrink-0",brandRounded:"text-xs font-normal rounded-3xl h-6 px-2 py-1 [&_svg]:w-3 [&_svg]:h-3 [&_svg]:shrink-0",brandRoundedSmall:"text-[10px] font-normal rounded-3xl h-6 px-2 py-1 [&_svg]:w-3 [&_svg]:h-3 [&_svg]:shrink-0"}},defaultVariants:{variant:"brandDefault",size:"brandDefault"}});function i(e){let a,t,n,i,c,d,u=(0,r.c)(12);return u[0]!==e?({className:a,variant:i,size:n,...t}=e,u[0]=e,u[1]=a,u[2]=t,u[3]=n,u[4]=i):(a=u[1],t=u[2],n=u[3],i=u[4]),u[5]!==a||u[6]!==n||u[7]!==i?(c=(0,o.cn)(s({variant:i,size:n}
1),a),u[5]=a,u[6]=n,u[7]=i,u[8]=c):c=u[8],u[9]!==t||u[10]!==c?(d=(0,l.jsx)("div",{className:c,...t}),u[9]=t,u[10]=c,u[11]=d):d=u[11],d}},86935:(e,a,t)=>{"use strict";t.d(a,{Toaster:()=>u});var l=t(58212),r=t(36772),n=t(60144),o=t(81340),s=t(60441),i=t(70366),c=t(55082),d=t(61082);let u=e=>{let a,t,u,h=(0,r.c)(4);return h[0]===Symbol.for("react.memo_cache_sentinel")?(a={success:(0,l.jsx)(n.A,{className:"size-5 shrink-0 fill-green-700 text-white"}),error:(0,l.jsx)(o.A,{className:"size-5 shrink-0 fill-red-700 text-white"}),info:(0,l.jsx)(s.A,{className:"size-5 shrink-0 fill-blue-700 text-white"}),warning:(0,l.jsx)(i.A,{className:"size-5 shrink-0 fill-amber-700 text-white"}),loading:(0,l.jsx)(c.A,{className:"size-5 shrink-0 animate-spin text-neutral-700"})},t={classNames:{toast:"group toast group-[.toaster]:!bg-white group-[.toaster]:!text-black group-[.toaster]:!font-brand-sans group-[.toaster]:!border group-[.toaster]:!border-black group-[.toaster]:!rounded-none group-[.toaster]:!shadow-none",success:"group-[.toaster]:data-[type=success]:!bg-green-50 group-[.toaster]:data-[type=success]:!border-green-500",error:"group-[.toaster]:data-[type=error]:!bg-red-50 group-[.toaster]:data-[type=error]:!border-red-500",info:"group-[.toaster]:data-[type=info]:!bg-blue-50 group-[.toaster]:data-[type=info]:!border-blue-500",warning:"group-[.toaster]:data-[type=warning]:!bg-amber-50 group-[.toaster]:data-[type=warning]:!border-amber-500",loading:"group-[.toaster]:data-[type=loading]:!bg-neutral-50",title:"!text-[15px] !font-medium !leading-tight",description:"group-[.toast]:!text-neutral-600 !text-[13px] !leading-snug !mt-0.5",actionButton:"group-[.toast]:!bg-black group-[.toast]:!text-white group-[.toast]:!rounded-none group-[.toast]:!font-medium group-[.toast]:!text-[12px] group-[.toast]:hover:!bg-black/90",cancelButton:"group-[.toast]:!bg-transparent group-[.toast]:!text-black group-[.toast]:!border group-[.toast]:!border-black group-[.toast]:!rounded-none group-[.toast]:!font-medium group-[.toast]:!text-[12px] group-[.toast]:hover:!bg-black group-[.toast]:hover:!text-white"}},h[0]=a,h[1]=t):(a=h[0],t=h[1]),h[2]!==e?(u=(0,l.jsx)(d.l$,{...e,className:"toaster group",icons:a,toastOptions:t}),h[2]=e,h[3]=u):u=h[3],u}},87042:(e,a,t)=>{"use strict";t.d(a,{l:()=>o});var l=t(28071),r=t(6964),n=t(96276);let o=(0,l.v)()((0,r.Zr)(e=>({labelFontSize:n.t0,showXTickLabels:!0,showScatterLabels:!0,showParetoLine:!0,setLabelFontSize:a=>e({labelFontSize:a}),setShowXTickLabels:a=>e({showXTickLabels:a}),setShowScatterLabels:a=>e({showScatterLabels:a}),setShowParetoLine:a=>e({showParetoLine:a}),reset:()=>e({labelFontSize:n.t0,showXTickLabels:!0,showScatterLabels:!0,showParetoLine:!0})}),{name:"aa_chart_display_settings",storage:(0,r.KU)(()=>localStorage),skipHydration:!0}))},91651:(e,a,t)=>{"use strict";t.d(a,{Nav:()=>as});var l=t(58212),r=t(36772),n=t(26692),o=t(64127),s=t(57147),i=t(1573),c=t(57181),d=t(55314),u=t(96040),h=t(33505),g=t(67338),p=t(77059),m=t(27724);let b=u.forwardRef((e,a)=>{let{className:t,children:r,...n}=e;return(0,l.jsxs)(g.bL,{ref:a,className:(0,m.cn)("relative z-10 flex max-w-max flex-1 items-center justify-center",t),...n,children:[r,(0,l.jsx)(I,{})]})});b.displayName=g.bL.displayName;let f=u.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,l.jsx)(g.B8,{ref:a,className:(0,m.cn)("group flex flex-1 list-none items-center justify-center",t),...r})});f.displayName=g.B8.displayName;let v=g.q7,y=(0,p.F)("inline-flex w-max items-center justify-center rounded-3xl px-3 py-2 text-sm transition-colors focus:outline-none disabled:pointer-events-none disabled:opacity-50"),x=u.forwardRef((e,a)=>{let{className:t,children:r,...n}=e;return(0,l.jsx)(g.l9,{ref:a,className:(0,m.cn)(y(),t),...n,children:r})});x.displayName=g.l9.displayName;let w=u.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,l.jsx)(g.UC,{ref:a,className:(0,m.cn)("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute",t),...r})});w.displayName=g.UC.displayName;let k=g.N_,I=u.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,l.jsx)("div",{className:"absolute left-0 right-0 top-full z-[1]",children:(0,l.jsx)(g.LM,{ref:a,className:(0,m.cn)("relative mt-2 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-3xl bg-neutral-100 transition-[height] duration-200",t),...r})})});I.displayName="NavigationMenuViewport",u.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,l.jsx)(g.C1,{ref:a,className:(0,m.cn)("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",t),...r,children:(0,l.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl bg-border shadow-md"})})}).displayName=g.C1.displayName;var S=t(96790),A=t(37008),M=t(24859),j=t(41151),N=t(93834);function _(e){let a,t,n,s,i=(0,r.c)(7),{logoClassName:c}=e;return i[0]!==c?(a=(0,m.cn)("h-4 w-4 text-white",c),i[0]=c,i[1]=a):a=i[1],i[2]!==a?(t=(0,l.jsx)(N.default,{className:a}),i[2]=a,i[3]=t):t=i[3],i[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)("span",{className:"font-brand-serif text-white hidden sm:block whitespace-nowrap",children:j.C3}),i[4]=n):n=i[4],i[5]!==t?(s=(0,l.jsxs)(o.Link,{href:"/",className:"flex-shrink-0 flex items-center select-none gap-2 px-3 bg-black rounded-full self
1-stretch",children:[t,n]}),i[5]=t,i[6]=s):s=i[6],s}var T=t(82026),E=t(24121),L=t(8148),C=t(84762),P=t(38289),V=t(98495),z=t(3895),D=t(77759),R=t(78305),O=t(65854);function U(e){var a;let t,n,o,s,g,p,m,b,f,v,y,x,w,k,I,S,A,M,j=(0,r.c)(70),{fuse:N,isOpen:_,onOpenChange:E,defaultItems:L,locale:C,messages:z}=e,D=(0,c.rd)(),R=(0,d.sf)(),[O,U]=(0,u.useState)(0);j[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>U(0),j[0]=t):t=j[0];let{debouncedValue:H,value:F,setValue:W}=(0,V.l)("",330,t),Y=F!==H;j[1]===Symbol.for("react.memo_cache_sentinel")?(n=new Map,j[1]=n):n=j[1];let q=(0,u.useRef)(n);e:{let e,a,t,l;if(!H.trim()){let e;j[2]!==L?(e=Z(L,L.length),j[2]=L,j[3]=e):e=j[3],o=e;break e}if(j[4]!==H||j[5]!==L||j[6]!==N){let l=function(e,a){let t=$(a);return e.map(e=>({result:e,tier:function(e,a){let t=$(e);return t===a?0:t.startsWith(a)?1:t.includes(a)?2:3}(e.item.label,t)})).sort(J).map(e=>{let{result:a}=e;return a})}(N.search(H),H);if(0===l.length){let e;j[11]!==L?(e=Z(L.slice(0,5),0),j[11]=L,j[12]=e):e=j[12],o=e;break e}for(let a of(e=new Map,l)){let t=e.get(a.item.category);t?t.push(a.item):e.set(a.item.category,[a.item])}t=new Map((a=Array.from(e.values()).flat()).map(B)),j[4]=H,j[5]=L,j[6]=N,j[7]=e,j[8]=a,j[9]=t,j[10]=o}else e=j[7],a=j[8],t=j[9],o=j[10];let r=t;j[13]!==e||j[14]!==r||j[15]!==a?(l={groupedItems:e,visuallyOrderedItems:a,idToIndexMap:r,totalCount:a.length,resultCount:a.length}
1,j[13]=e,j[14]=r,j[15]=a,j[16]=l):l=j[16],o=l}let{groupedItems:X,visuallyOrderedItems:K,idToIndexMap:Q,totalCount:ee,resultCount:ea}=o;j[17]===Symbol.for("react.memo_cache_sentinel")?(s=(e,a)=>{e?q.current.set(a,e):q.current.delete(a)},j[17]=s):s=j[17];let et=s;j[18]!==E||j[19]!==W?(g=e=>{E(e),e||(W(""),U(0))},j[18]=E,j[19]=W,j[20]=g):g=j[20];let el=g;j[21]!==_||j[22]!==K?(p=e=>{if(U(e),_&&K[e]){var a;null==(a=q.current.get(K[e].id))||a.scrollIntoView({block:"nearest",behavior:"smooth"})}},j[21]=_,j[22]=K,j[23]=p):p=j[23];let er=p;j[24]!==Q?(m=e=>{let a=Q.get(e);null!=a&&U(a)},j[24]=Q,j[25]=m):m=j[25];let en=m;j[26]!==W?(b=e=>W(e.target.value),j[26]=W,j[27]=b):b=j[27];let eo=b;j[28]!==H||j[29]!==_||j[30]!==R||j[31]!==ea?(v=()=>{if(!_)return;let e=!H.trim();R.capture("nav_search_query",{query:H,total_results:ea,used_default_suggestions:e})},f=[_,H,ea,R],j[28]=H,j[29]=_,j[30]=R,j[31]=ea,j[32]=f,j[33]=v):(f=j[32],v=j[33]),(0,u.useEffect)(v,f),j[34]!==H||j[35]!==Q||j[36]!==R||j[37]!==ea?(y=(e,a)=>{var t;let l=!H.trim(),r=Q.get(e.id);R.capture("nav_search_select",{query:H,selected_index:r,total_results:ea,item_id:e.id,item_label:e.label,item_href:e.href,item_category:e.category,item_subcategory:null!=(t=e.subcategory)?t:null,selection_method:a,used_default_suggestions:l})},j[34]=H,j[35]=Q,j[36]=R,j[37]=ea,j[38]=y):y=j[38];let es=y;j[39]!==es||j[40]!==el||j[41]!==er||j[42]!==_||j[43]!==D||j[44]!==O||j[45]!==ee||j[46]!==K?(x=()=>{if(!_)return;let e=e=>{switch(e.key){case"ArrowDown":e.preventDefault(),ee>0&&er(Math.min(O+1,ee-1));break;case"ArrowUp":e.preventDefault(),ee>0&&er(Math.max(O-1,0));break;case"Enter":{e.preventDefault();let a=K[O];a&&(es(a,"keyboard"),D.push(a.href),el(!1));break}case"Escape":e.preventDefault(),el(!1)}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},w=[_,ee,K,O,D,er,el,es],j[39]=es,j[40]=el,j[41]=er,j[42]=_,j[43]=D,j[44]=O,j[45]=ee,j[46]=K,j[47]=x,j[48]=w):(x=j[47],w=j[48]),(0,u.useEffect)(x,w),j[49]===Symbol.for("react.memo_cache_sentinel")?(k=(0,l.jsx)(i.A,{size:16}),j[49]=k):k=j[49],j[50]===Symbol.for("react.memo_cache_sentinel")?(I=(0,l.jsx)(P.zM,{asChild:!0,children:(0,l.jsxs)(h.$,{variant:"tertiary",size:"icon",className:"bg-neutral-100 hover:bg-neutral-200 h-9 w-9 2xl:w-auto 2xl:px-3",children:[k,(0,l.jsxs)("span",{className:"hidden 2xl:inline-flex gap-0.5 items-center text-neutral-700",children:[(0,l.jsx)(T.A,{className:"!w-3 !h-3"}),"K"]})]})}),j[50]=I):I=j[50];let ei=null==(a=K[O])?void 0:a.id;return j[51]!==es||j[52]!==el?(S=e=>{es(e,"click"),el(!1)},j[51]=es,j[52]=el,j[53]=S):S=j[53],j[54]!==H||j[55]!==X||j[56]!==en||j[57]!==Y||j[58]!==C||j[59]!==z||j[60]!==eo||j[61]!==F||j[62]!==ea||j[63]!==ei||j[64]!==S?(A=(0,l.jsx)(G,{query:F,debouncedQuery:H,onQueryChange:eo,items:X,selectedId:ei,onClick:S,onHover:en,setItemRef:et,loading:Y,locale:C,messages:z,resultCount:ea}),j[54]=H,j[55]=X,j[56]=en,j[57]=Y,j[58]=C,j[59]=z,j[60]=eo,j[61]=F,j[62]=ea,j[63]=ei,j[64]=S,j[65]=A):A=j[65],j[66]!==el||j[67]!==_||j[68]!==A?(M=(0,l.jsxs)(P.lG,{open:_,onOpenChange:el,children:[I,A]}),j[66]=el,j[67]=_,j[68]=A,j[69]=M):M=j[69],M}function B(e,a){return[e.id,a]}function G(e){let a,t,n,o,s,c,d,u,h,g,p,m,b,f,v=(0,r.c)(69),{query:y,debouncedQuery:x,onQueryChange:w,items:k,selectedId:I,onClick:S,onHover:A,setItemRef:M,loading:j,locale:N,messages:_,resultCount:T}=e;if(v[0]!==x||v[1]!==k||v[2]!==j||v[3]!==N||v[4]!==_||v[5]!==S||v[6]!==A||v[7]!==w||v[8]!==y||v[9]!==T||v[10]!==I||v[11]!==M){let e,r,h,g,p,m=(0,O.HM)({locale:N,messages:_});t=P.Cf,s=!0,c="p-0 max-w-2xl !top-[10vh] !translate-y-0 max-h-[80vh] !flex flex-col !gap-0 data-[state=open]:!slide-in-from-top-[10vh] data-[state=closed]:!slide-out-to-top-[10vh]",v[20]!==_.placeholder||v[21]!==w||v[22]!==y?(e=(0,l.jsx)(z.p,{value:y,onChange:w,className:"pl-8 leading-none",placeholder:_.placeholder,autoFocus:!0}),v[20]=_.placeholder,v[21]=w,v[22]=y,v[23]=e):e=v[23],v[24]!==j?(r=(0,l.jsx)("div",{className:"absolute left-2 top-1/2 -translate-y-1/2",children:j?(0,l.jsx)(E.A,{size:16,className:"animate-spin"}):(0,l.jsx)(i.A,{size:16})}),v[24]=j,v[25]=r):r=v[25],v[26]!==e||v[27]!==r?(h=(0,l.jsxs)("div",{className:"relative w-full",children:[e,r]}),v[26]=e,v[27]=r,v[28]=h):h=v[28],v[29]!==_.dialogTitle?(g=(0,l.jsx)(P.L3,{className:"sr-only",children:_.dialogTitle}),v[29]=_.dialogTitle,v[30]=g):g=v[30],v[31]!==_.dialogDescription?(p=(0,l.jsx)(P.rr,{className:"sr-only",children:_.dialogDescription}),v[31]=_.dialogDescription,v[32]=p):p=v[32],v[33]!==g||v[34]!==p||v[35]!==h?(d=(0,l.jsxs)(P.c7,{className:"p-4 border-b flex-shrink-0",children:[h,g,p]}),v[33]=g,v[34]=p,v[35]=h,v[36]=d):d=v[36];let b=""!==x.trim()&&0===T;v[37]!==x||v[38]!==k||v[39]!==N||v[40]!==_||v[41]!==S||v[42]!==A||v[43]!==I||v[44]!==M||v[45]!==b?(u=(0,l.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto",children:(0,l.jsx)(H,{items:k,noResults:b,selectedId:I,onClick:S,setItemRef:M,onHover:A,query:x,locale:N,messages:_})}),v[37]=x,v[38]=k,v[39]=N,v[40]=_,v[41]=S,v[42]=A,v[43]=I,v[44]=M,v[45]=b,v[46]=u):u=v[46],a=P.Es,n="p-4 border-t flex-row justify-between items-center gap-2 sm:justify-between flex-shrink-0",o=x.trim()&&(0,l.jsx)("div",{className:"text-xs text-muted-foreground",children:m("results",{count:T})}),v[0]=x,v[1]=k,v[2]=j,v[3]=N,v[4]=_,v[5]=S,v[6]=A,v[7]=w,v[8]=y,v[9]=T,v[10]=I,v[11]=M,v[12]=a,v[13]=t,v[14]=n,v[15]=o,v[16]=s,v[17]=c,v[18]=d,v[19]=u}else a=v[12],t=v[13],n=v[14],o=v[15],s=v[16],c=v[17],d=v[18],u=v[19];return v[47]!==_.hotkeys.navigate?(h=(0,l.jsx)("span",{children:(0,l.jsx)(Y,{symbol:"↑↓",label:_.hotkeys.navigate})}),v[47]=_.hotkeys.navigate,v[48]=h):h=v[48],v[49]!==_.hotkeys.select?(g=(0,l.jsx)("span",{children:(0,l.jsx)(Y,{symbol:"Enter",label:_.hotkeys.select})}),v[49]=_.hotkeys.select,v[50]=g):g=v[50],v[51]!==_.hotkeys.exit?(p=(0,l.jsx)("span",{children:(0,l.jsx)(Y,{symbol:"Esc",label:_.hotkeys.exit})}),v[51]=_.hotkeys.exit,v[52]=p):p=v[52],v[53]!==h||v[54]!==g||v[55]!==p?(m=(0,l.jsxs)("div",{className:"ml-auto text-xs text-muted-foreground flex items-center gap-3",children:[h,g,p]}),v[53]=h,v[54]=g,v[55]=p,v[56]=m):m=v[56],v[57]!==a||v[58]!==n||v[59]!==m||v[60]!==o?(b=(0,l.jsxs)(a,{className:n,children:[o,m]}),v[57]=a,v[58]=n,v[59]=m,v[60]=o,v[61]=b):b=v[61],v[62]!==t||v[63]!==b||v[64]!==s||v[65]!==c||v[66]!==d||v[67]!==u?(f=(0,l.jsxs)(t,{hideClose:s,className:c,children:[d,u,b]}),v[62]=t,v[63]=b,v[64]=s,v[65]=c,v[66]=d,v[67]=u,v[68]=f):f=v[68],f}function H(e){let a,t,n,o=(0,r.c)(21),{items:s,noResults:i,selectedId:c,onClick:d,onHover:u,setItemRef:h,query:g,locale:p,messages:m}=e;if(o[0]!==p||o[1]!==m||o[2]!==i||o[3]!==g){let e=(0,O.HM)({locale:p,messages:m});a=i&&(0,l.jsxs)("div",{className:"p-8 text-center text-muted-foreground",children:[(0,l.jsx)(L.A,{className:"mx-auto mb-4",size:48}),(0,l.jsx)("p",{className:"text-sm",children:e("noResults",{query:g})})]}),o[0]=p,o[1]=m,o[2]=i,o[3]=g,o[4]=a}else a=o[4];if(o[5]!==s||o[6]!==m.categories||o[7]!==d||o[8]!==u||o[9]!==c||o[10]!==h){let e;o[12]!==m.categories||o[13]!==d||o[14]!==u||o[15]!==c||o[16]!==h?(e=e=>{let[a,t]=e;return(0,l.jsxs)("div",{className:"px-1 pb-1 border-t first:border-none",children:[(0,l.jsx)(F,{label:m.categories[a]}),t.map(e=>(0,l.jsx)(W,{selectedId:c,item:e,onClick:d,onHover:u,setItemRef:h},e.id))]},a)},o[12]=m.categories,o[13]=d,o[14]=u,o[15]=c,o[16]=h,o[17]=e):e=o[17],t=Array.from(s.entries()).map(e),o[5]=s,o[6]=m.categories,o[7]=d,o[8]=u,o[9]=c,o[10]=h,o[11]=t}else t=o[11];return o[18]!==a||o[19]!==t?(n=(0,l.jsxs)(l.Fragment,{children:[a,t]}),o[18]=a,o[19]=t,o[20]=n):n=o[20],n}function F(e){let a,t=(0,r.c)(2),{label:n}=e;return t[0]!==n?(a=(0,l.jsx)("div",{className:"sticky top-0 z-10 px-4 py-3 text-xs font-medium text-muted-foreground bg-background",children:n}),t[0]=n,t[1]=a):a=t[1],a}function W(e){let a,t,n,s,i,c,d,u,h,g,p,b,f=(0,r.c)(42),{item:v,selectedId:y,onClick:x,onHover:w,setItemRef:k}=e,I=y===v.id;f[0]!==v.id||f[1]!==w?(a=()=>w(v.id),f[0]=v.id,f[1]=w,f[2]=a):a=f[2];let S=a;e:{let e=v.media;switch(e.type){case"logo":{let a;f[3]!==v.label||f[4]!==e.logo?(a=(0,l.jsx)(D.default,{src:e.logo,alt:v.label,fill:!0,className:"object-contain",sizes:"32px"}),f[3]=v.label,f[4]=e.logo,f[5]=a):a=f[5],t=a;break e}case"emoji":{let a;f[6]!==e.emoji?(a=(0,l.jsx)("span",{className:"text-base",children:e.emoji}),f[6]=e.emoji,f[7]=a):a=f[7],t=a;break e}case"icon":{let a;f[8]!==e.Icon?(a=(0,l.jsx)(e.Icon,{size:18}),f[8]=e.Icon,f[9]=a):a=f[9],t=a;break e}default:throw new R.J(e)}}let A=t;f[10]!==v.id||f[11]!==k?(n=e=>k(e,v.id),f[10]=v.id,f[11]=k,f[12]=n):n=f[12];let M=v.id,j=v.id,N=v.href,_=I&&"bg-muted";f[13]!==_?(s=(0,m.cn)("flex gap-3 px-4 py-2 text-sm rounded",_),f[13]=_,f[14]=s):s=f[14],f[15]!==v||f[16]!==x?(i=()=>x(v),f[15]=v,f[16]=x,f[17]=i):i=f[17];let T=I?void 0:S;return f[18]!==A?(c=(0,l.jsx)("div",{className:"relative flex items-center justify-center w-5 h-5 m-1 flex-none overflow-hidden rounded",children:A}),f[18]=A,f[19]=c):c=f[19],f[20]!==v.label?(d=(0,l.jsx)("span",{className:"truncate font-medium",children:v.label}),f[20]=v.label,f[21]=d):d=f[21],f[22]!==I||f[23]!==v.subcategory?(u=v.subcategory&&(0,l.jsx)(C.E,{variant:"secondary",className:(0,m.cn)("text-[10px] px-1 py-0.5 rounded-full leading-none font-normal",I&&"border shadow-sm"),children:v.subcategory}),f[22]=I,f[23]=v.subcategory,f[24]=u):u=f[24],f[25]!==d||f[26]!==u?(h=(0,l.jsxs)("div",{className:"flex items-center gap-3 my-auto",children:[d,u]}),f[25]=d,f[26]=u,f[27]=h):h=f[27],f[28]!==v.description?(g=v.description&&(0,l.jsx)("div",{className:"text-xs text-muted-foreground
1/75 truncate",children:v.description}),f[28]=v.description,f[29]=g):g=f[29],f[30]!==h||f[31]!==g?(p=(0,l.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col gap-1",children:[h,g]}),f[30]=h,f[31]=g,f[32]=p):p=f[32],f[33]!==v.href||f[34]!==v.id||f[35]!==T||f[36]!==c||f[37]!==p||f[38]!==n||f[39]!==s||f[40]!==i?(b=(0,l.jsxs)(o.Link,{ref:n,id:M,href:N,className:s,onClick:i,onMouseMove:T,children:[c,p]},j),f[33]=v.href,f[34]=v.id,f[35]=T,f[36]=c,f[37]=p,f[38]=n,f[39]=s,f[40]=i,f[41]=b):b=f[41],b}function Y(e){let a,t,n,o=(0,r.c)(7),{symbol:s,label:i}=e;return o[0]!==s?(a=(0,l.jsx)("kbd",{className:"bg-muted text-muted-foreground pointer-events-none inline-flex h-5 items-center rounded border px-1 font-mono text-[10px] font-medium select-none",children:(0,l.jsx)("span",{children:s})}),o[0]=s,o[1]=a):a=o[1],o[2]!==i?(t=(0,l.jsx)("span",{children:i}),o[2]=i,o[3]=t):t=o[3],o[4]!==a||o[5]!==t?(n=(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[a,t]}),o[4]=a,o[5]=t,o[6]=n):n=o[6],n}function Z(e,a){return{groupedItems:new Map([["suggested",e]]),visuallyOrderedItems:e,idToIndexMap:new Map(e.map((e,a)=>[e.id,a])),totalCount:e.length,resultCount:a}}function J(e,a){var t,l,r,n;return e.tier-a.tier||Number(e.result.item.deprecated)-Number(a.result.item.deprecated)||(r=e.result.item,n=a.result.item,null==r.releaseDate?+(null!=n.releaseDate):null==n.releaseDate?-1:n.releaseDate.localeCompare(r.releaseDate))||(null!=(t=e.result.score)?t:0)-(null!=(l=a.result.score)?l:0)}function $(e){return e.trim().toLowerCase().replace(/[\s_-]+/g," ")}var q=t(63688),X=t(58872);function K(e){let a,t,n,s,i,c=(0,r.c)(16),{messages:d}=e,[g,p]=(0,u.useState)(!1),{data:b,isPending:f}=X.y.useSession(),{data:v}=X.y.useActiveOrganization();c[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{p(!0)},t=[],c[0]=a,c[1]=t):(a=c[0],t=c[1]),(0,u.useEffect)(a,t);let y=g?null==b?void 0:b.user:null,x=!g||f,w=(null==v?void 0:v.name)||(null==y?void 0:y.name)||(null==y?void 0:y.email)||"",k=y?"/orgs":"/login",I=x?d.loading:y?w:d.logIn,S=x||void 0,A=x?-1:void 0,M=x?"pointer-events-none animate-pulse motion-reduce:animate-none":!y&&"!rounded-lg w-fit !transition-[width,border-radius] ease-out motion-reduce:transition-none !duration-300";return c[2]!==M?(n=(0,m.cn)("flex-none h-9 w-9 !rounded-3xl flex items-center justify-center overflow-hidden",M),c[2]=M,c[3]=n):n=c[3],c[4]!==w||c[5]!==x||c[6]!==d||c[7]!==y?(s=!x&&(y?w.charAt(0):d.logIn),c[4]=w,c[5]=x,c[6]=d,c[7]=y,c[8]=s):s=c[8],c[9]!==k||c[10]!==I||c[11]!==S||c[12]!==A||c[13]!==n||c[14]!==s?(i=(0,l.jsx)(h.$,{variant:"secondary",size:"lg",asChild:!0,children:(0,l.jsx)(o.Link,{href:k,"aria-label":I,"aria-busy":S,tabIndex:A,className:n,children:s})}),c[9]=k,c[10]=I,c[11]=S,c[12]=A,c[13]=n,c[14]=s,c[15]=i):i=c[15],i}var Q=t(97369),ee=t(27757);function ea(e){let a,t,n,s,i,u,h=(0,r.c)(16),{className:g,messages:p}=e,{isProOrHigher:b,isPlusOrHigher:f,isLoading:v}=(0,Q.Z)(),y=(0,c.a8)(),x=(0,d.sf)(),w=!f;h[0]!==w?(a=w?(0,ee.vr)("plus"):"pro",h[0]=w,h[1]=a):a=h[1];let k=a;if(v||!w&&!(f&&!b))return null;h[2]!==g?(t=(0,m.cn)("flex items-center gap-2",g),h[2]=g,h[3]=t):t=h[3];let I="/pricing?".concat(new URLSearchParams({source:"nav",from:y}));h[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,m.cn)("inline-flex h-9 w-fit flex-none items-center justify-center whitespace-nowrap rounded-lg px-3 text-sm text-white transition-colors","bg-brand-purple-dark shadow-sm hover:bg-brand-purple-dark/90 active:bg-brand-purple-dark/75","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-purple-dark/50 focus-visible:ring-offset-2 focus-visible:ring-offset-background","disabled:pointer-events-none disabled:opacity-50"),h[4]=n):n=h[4],h[5]!==k||h[6]!==y||h[7]!==x?(s=()=>x.capture("aa_plans.nav_upgrade_clicked",{page:y,tier:k,surface:"nav"}),h[5]=k,h[6]=y,h[7]=x,h[8]=s):s=h[8];let S=w?p.premium:p.upgradeToPro;return h[9]!==I||h[10]!==s||h[11]!==S?(i=(0,l.jsx)(o.Link,{href:I,className:n,onClick:s,children:S}),h[9]=I,h[10]=s,h[11]=S,h[12]=i):i=h[12],h[13]!==t||h[14]!==i?(u=(0,l.jsx)("div",{className:t,children:i}),h[13]=t,h[14]=i,h[15]=u):u=h[15],u}function et(e){return"active"===e.dataset.state}function el(e){return{...e,opacity:0}
1}function er(e){return{...e,opacity:0}}var en=t(72931),eo=t(57474),es=t(98148);let ei=[{name:"X",href:j.Pt,Icon:en.vj,hoverColorClass:"hover:text-black"},{name:"LinkedIn",href:j.DX,Icon:eo.v18,hoverColorClass:"hover:text-[#0A66C2]"}],ec={name:"Rednote",href:j.cu,Icon:en.Y0,hoverColorClass:"hover:text-[#FF2442]"},ed={name:"YouTube",href:j.OE,Icon:en.aU,hoverColorClass:"hover:text-[#FF0033]"};function eu(e){let{configs:a,fuse:t,isSearchOpen:n,onSearchOpenChange:o,defaultItems:s,locale:i,messages:c}=e,{groupedItems:d,standaloneItems:h}=(0,u.useMemo)(()=>{let e=[],t=[];for(let l of a)l.grouped?e.push(l):t.push(l);return{groupedItems:e,standaloneItems:t}},[a]),g=function(){let e,a=(0,r.c)(1);a[0]===Symbol.for("react.memo_cache_sentinel")?(e={revalidateOnFocus:!1},a[0]=e):e=a[0];let{data:t,error:l}=(0,es.Ay)("/api/geo",eg,e);if(t||l)return(null==t?void 0:t.country)==="CN"?ec:ed}(),[p,m]=(0,u.useState)(""),[v,y]=(0,u.useState)(""),{indicatorStyle:x,handleMouseEnter:w,handleMouseLeave:k,setTabRef:I,transitionDurationMs:S}=function(e){let a,t,l,n,o,s,i,c,d,h,g,p,m=(0,r.c)(20);m[0]===Symbol.for("react.memo_cache_sentinel")?(a={left:0,width:0,opacity:0,animate:!1},m[0]=a):a=m[0];let[b,f]=(0,u.useState)(a);m[1]===Symbol.for("react.memo_cache_sentinel")?(t=new Map,m[1]=t):t=m[1];let v=(0,u.useRef)(t),y=(0,u.useRef)(null),x=(0,u.useRef)(null),w=(0,u.useRef)(!1);m[2]===Symbol.for("react.memo_cache_sentinel")?(l=e=>{var a,t;if(!e)return void f(er);let l="string"==typeof e?v.current.get(e):e;if(!l)return void f(el);let r=null==(a=l.offsetParent)?void 0:a.getBoundingClientRect(),n=l.getBoundingClientRect();f({left:n.left-(null!=(t=null==r?void 0:r.left)?t:0)+0,width:n.width-0,opacity:1,animate:w.current}),w.current=!0},m[2]=l):l=m[2];let k=l;m[3]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{let e=Array.from(v.current.values());if(0!==e.length)return x.current=new ResizeObserver(()=>{var a,t;let l=null!=(t=e.find(et))?t:y.current&&null!=(a=v.current.get(y.current))?a:null;l&&k(l)}),e.forEach(e=>{var a;return null==(a=x.current)?void 0:a.observe(e)}),()=>{var e;null==(e=x.current)||e.disconnect(),x.current=null}},o=[k],m[3]=n,m[4]=o):(n=m[3],o=m[4]),(0,u.useEffect)(n,o),m[5]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{y.current=e,k(e)},m[5]=s):s=m[5];let I=s;m[6]!==e?(i=()=>{k(e)},c=[e,k],m[6]=e,m[7]=i,m[8]=c):(i=m[7],c=m[8]),(0,u.useEffect)(i,c),m[9]!==e?(d=()=>{y.current=null,e&&k(e)},m[9]=e,m[10]=d):d=m[10];let S=d;m[11]===Symbol.for("react.memo_cache_sentinel")?(h=(e,a)=>{a?v.current.set(e,a):v.current.delete(e)},m[11]=h):h=m[11];let A=h;m[12]!==b.left||m[13]!==b.opacity||m[14]!==b.width?(g={left:b.left,width:b.
1width,opacity:b.opacity},m[12]=b.left,m[13]=b.opacity,m[14]=b.width,m[15]=g):g=m[15];let M=280*!!b.animate;return m[16]!==S||m[17]!==g||m[18]!==M?(p={indicatorStyle:g,handleMouseEnter:I,handleMouseLeave:S,setTabRef:A,transitionDurationMs:M},m[16]=S,m[17]=g,m[18]=M,m[19]=p):p=m[19],p}(p||v),A=(0,u.useCallback)(e=>{m(e),w(e)},[w]),M=(0,u.useCallback)(()=>{m(""),k()},[k]),j=(0,u.useCallback)((e,a)=>I(e,a),[I]);return(0,l.jsxs)(b,{onValueChange:y,delayDuration:300,className:"w-full dark max-w-none z-50 flex items-stretch justify-between",children:[(0,l.jsx)(_,{}),(0,l.jsx)(f,{className:"flex items-center gap-0",children:(0,l.jsxs)("div",{className:"flex items-center relative",children:[(0,l.jsx)(ep,{indicatorStyle:x,transitionDurationMs:S,className:"flex items-center",children:d.map(e=>(0,l.jsx)(ef,{root:e,isOpen:v===e.label,onMouseEnter:A,onMouseLeave:M,setTabRef:j},e.label))}),h.map(e=>(0,l.jsx)(ep,{indicatorStyle:x,transitionDurationMs:S,children:(0,l.jsx)(ef,{root:e,isOpen:v===e.label,onMouseEnter:A,onMouseLeave:M,setTabRef:j},e.label)},e.label))]})}),(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)(ea,{messages:c.actions}),(0,l.jsx)(K,{messages:c.actions}),(0,l.jsx)(U,{fuse:t,isOpen:n,onOpenChange:o,defaultItems:s,locale:i,messages:c.search}),(0,l.jsx)(eh,{geoSocialLink:g})]})]})}function eh(e){let{geoSocialLink:a}=e,t=a?[...ei,a]:ei,[r,n]=(0,u.useState)(!1),i=(0,u.useRef)(void 0),c=(0,u.useCallback)(()=>{clearTimeout(i.current),n(!0)},[]),d=(0,u.useCallback)(()=>{clearTimeout(i.current),i.current=setTimeout(()=>n(!1),120)},[]);return(0,l.jsxs)(A.AM,{open:r,onOpenChange:n,children:[(0,l.jsx)(A.Wv,{asChild:!0,children:(0,l.jsx)(h.$,{variant:"tertiary",size:"icon","aria-label":"Social links",onMouseEnter:c,onMouseLeave:d,className:"bg-neutral-100 hover:bg-neutral-200 text-neutral-500 h-9 w-9",children:(0,l.jsx)(s.A,{"aria-hidden":"true"})})}),(0,l.jsx)(A.hl,{align:"end",sideOffset:8,onMouseEnter:c,onMouseLeave:d,onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:"flex w-auto flex-col items-center gap-1 rounded-full border-0 bg-neutral-100 p-1 shadow-none",children:t.map(e=>(0,l.jsx)(o.Link,{href:e.href,target:"_blank","aria-label":e.name,className:(0,m.cn)("flex h-9 w-9 items-center justify-center rounded-full text-neutral-500 transition-colors hover:bg-neutral-200 [&_svg]:h-4 [&_svg]:w-4",e.hoverColorClass),children:(0,l.jsx)(e.Icon,{"aria-hidden":"true"})},e.name))})]})}async function eg(e){let a=await fetch(e);if(!a.ok)throw Error("Status ".concat(a.status));return a.json()}function ep(e){let a,t,n,o=(0,r.c)(11),{children:s,indicatorStyle:i,transitionDurationMs:c,className:d}=e;o[0]!==d?(a=(0,m.cn)("bg-neutral-100 rounded-[1.5rem] [clip-path:inset(0_round_1.5rem)]",d),o[0]=d,o[1]=a):a=o[1];let u="left ".concat(c,"ms ease-out, width ").concat(c,"ms ease-out, opacity ").concat(c,"ms ease-out");return o[2]!==i.left||o[3]!==i.opacity||o[4]!==i.width||o[5]!==u?(t=(0,l.jsx)("div",{className:"absolute top-0 bottom-0 rounded-3xl bg-black pointer-events-none -z-[1]",style:{left:i.left,width:i.width,opacity:i.opacity,transition:u},"aria-hidden":"true"}),o[2]=i.left,o[3]=i.opacity,o[4]=i.width,o[5]=u,o[6]=t):t=o[6],o[7]!==s||o[8]!==a||o[9]!==t?(n=(0,l.jsxs)("div",{className:a,children:[s,t]}),o[7]=s,o[8]=a,o[9]=t,o[10]=n):n=o[10],n}let em={keys:["label"],threshold:.3,ignoreLocation:!0,getFn:e=>ew(e.label)},eb="group/item bg-transparent hover:bg-transparent hover:text-white focus-visible:bg-black focus-visible:text-white data-[state=open]:text-white data-[state=open]:bg-transparent data-[state=open]:hover:bg-transparent";function ef(e){let{root:a,isOpen:t,onMouseEnter:r,onMouseLeave:n,setTabRef:s}=e,d=(0,c.rd)(),g="expandable"===a.type?a.secondaryItems.find(e=>"submenu"===e.type):void 0,[p,b]=(0,u.useState)(g),[f,I]=(0,u.useState)({raw:"",normalized:""}),[A,M]=(0,u.useState)(new Set),[j,N]=(0,u.useState)(!1),_=(0,u.useMemo)(()=>{if(!p)return[];let e=new Map;for(let a of p.tertiarySections)for(let t of a.items)t.category&&e.set(t.category.id,t.category);return Array.from(e.values())},[p]),T=(0,u.useMemo)(()=>(null==p?void 0:p.search)?p.tertiarySections.map(e=>({section:e,fuse:new q.A(e.items,em)})):[],[p]),E=(0,u.useMemo)(()=>
1{if(!p)return[];if(f.normalized){let e=12;return T.map(a=>{let{section:t,fuse:l}=a;if(e<=0)return{...t,items:[]};let r=l.search(f.normalized,{limit:e}).map(e=>{let{item:a}=e;return a});return e-=r.length,{...t,items:r}}).filter(e=>e.items.length>0)}return A.size>0?p.tertiarySections.map(e=>({...e,items:e.items.filter(e=>null!=e.category&&A.has(e.category.id))})).filter(e=>e.items.length>0):p.tertiarySections.filter(e=>e.items.length>0)},[p,f.normalized,T,A]),L=(0,u.useCallback)(()=>{I({raw:"",normalized:""}),N(!1),M(new Set)},[]),C=(0,u.useCallback)(()=>{r(a.label)},[r,a.label]),P=(0,u.useCallback)(e=>s(a.label,e),[s,a.label]),V=(0,u.useRef)(void 0),z=(0,u.useCallback)(()=>{clearTimeout(V.current)},[]),R=(0,u.useCallback)(e=>{clearTimeout(V.current);let a="submenu"===e.type?e:void 0;(null==p?void 0:p.label)!==e.label&&(V.current=setTimeout(()=>{b(a),L()},200*!!p))},[p,L]);(0,u.useEffect)(()=>{t||(clearTimeout(V.current),b(g),L())},[t,L,g]);let O=(0,u.useCallback)(e=>{I({raw:e.target.value,normalized:ew(e.target.value)}),M(new Set)},[]);return"single"===a.type?(0,l.jsx)(v,{className:"z-10","data-label":a.label,value:a.label,children:(0,l.jsx)(k,{asChild:!0,children:(0,l.jsx)(o.Link,{href:a.href,className:(0,m.cn)(y(),eb),onMouseEnter:C,onMouseLeave:n,ref:P,children:a.label})})}):(0,l.jsxs)(v,{className:"z-10","data-label":a.label,value:a.label,children:[(0,l.jsx)(x,{className:eb,onMouseEnter:C,onMouseLeave:n,ref:P,onClick:()=>a.href&&d.push(a.href),children:a.label}),(0,l.jsxs)(w,{className:(0,m.cn)("p-5",g&&"grid grid-cols-[auto_1fr]"),children:[(0,l.jsx)("ul",{className:(0,m.cn)(!g&&"grid grid-cols-[repeat(auto-fit,minmax(240px,1fr))] gap-x-8"),children:a.secondaryItems.map(e=>(0,l.jsx)(ev,{item:e,activeItemId:null==p?void 0:p.submenuId,onMouseEnter:R},e.label))}),p&&(0,l.jsxs)("div",{onMouseEnter:z,className:"min-w-0 max-h-[calc(100vh-200px)] overflow-y-auto light-scrollbar border-l pl-7 ml-2",children:[p.search&&(0,l.jsx)("div",{className:"mb-4",children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("input",{type:"text",value:f.raw,onChange:O,onFocus:()=>N(!0),onBlur:()=>N(!1),placeholder:p.search.placeholder,className:"peer w-full pl-6 pr-4 outline-none font-normal transition-colors h-9 bg-transparent border-transparent placeholder:text-neutral-500 border-b-neutral-200 hover:border-b-neutral-600 focus:border-transparent focus:border-b-black focus:outline-none focus:ring-0"},p.submenuId),(0,l.jsx)(i.A,{size:16,className:"pointer-events-none absolute top-1/2 -translate-y-1/2 text-neutral-500 peer-focus:text-foreground peer-hover:text-neutral-600"})]})}),(j||A.size>0)&&!f.normalized&&_.length>0&&(0,l.jsx)("div",{className:"flex flex-wrap gap-2 mb-4",children:_.map(e=>{let a=A.has(e.id);return(0,l.jsx)(h.$,{type:"button",variant:a?"secondary":"outlineSecondary",size:"externalSm",onMouseDown:e=>e.preventDefault(),className:a?"border border-black":void 0,onClick:()=>M(t=>{let l=new Set(t);return a?l.delete(e.id):l.add(e.id),l}),children:(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)(D.default,{src:e.logo,alt:e.label,width:16,height:16,className:"aspect-square"}),(0,l.jsx)("span",{className:"leading-none flex-1 truncate",children:e.label})]})},e.id)})}),p.search&&j&&!f.normalized&&0===A.size?null:p.search&&f.normalized&&0===E.length?(0,l.jsx)("p",{className:"text-xs text-center py-4 text-neutral-500",children:p.search.emptyState}):E.map((e,a)=>(0,l.jsxs)("div",{children:[a>0&&(0,l.jsx)(S.Separator,{className:"mt-4 mb-3 h-px bg-neutral-200"}),e.description&&!(p.search&&f.normalized)&&(0,l.jsx)("p",{className:"text-xs select-none mb-3 text-neutral-700",children:e.description}),(0,l.jsx)("ul",{className:"grid gap-x-8 items-start grid-cols-[repeat(auto-fill,minmax(260px,1fr))]",children:e.items.map(e=>(0,l.jsx)(ey,{item:e},e.label))})]},e.key))]})]})]})}function ev(e){var a,t,n;let s,i,c,d,u,h,g=(0,r.c)(18),{item:p,activeItemId:b,onMouseEnter:f}=e;g[0]!==p||g[1]!==f?(s=()=>f(p),g[0]=p,g[1]=f,g[2]=s):s=g[2];let v=s,y="submenu"===p.type&&b===p.submenuId&&"text-foreground";g[3]!==y?(i=(0,m.cn)("group w-full py-3 text-lg leading-tight font-medium text-neutral-600 no-underline flex items-center gap-4 outline-none select-none transition-colors hover:text-foreground focus:text-foreground cursor-pointer",y),g[3]=y,g[4]=i):i=g[4];let x=i;g[5]!==(null==(a=p.change)?void 0:a.type)?(c=(null==(t=p.change)?void 0:t.type)==="new"&&(0,l.jsx)("span",{className:"text-brand-purple-dark uppercase text-sm -ml-2",children:"New"}),g[5]=null==(n=p.change)?void 0:n.type,g[6]=c):c=g[6];let w=c,I="submenu"===p.type&&b===p.submenuId&&"opacity-100";g[7]!==I?(d=(0,m.cn)("h-1 w-1 bg-black flex-shrink-0 group-hover:opacity-100 opacity-0 transition-opacity ml-auto",I),g[7]=I,g[8]=d):d=g[8],g[9]!==d?(u=(0,l.jsx)("div",{className:d}),g[9]=d,g[10]=u):u=g[10];let S=u;return g[11]!==w||g[12]!==x||g[13]!==S||g[14]!==p.href||g[15]!==p.label||g[16]!==v?(h=(0,l.jsx)("li",{className:"min-w-[160px]",children:p.href?(0,l.jsx)(k,{asChild:!0,children:(0,l.jsxs)(o.Link,{href:p.href,className:x,onMouseEnter:v,children:[(0,l.jsx)("span",{className:"group-hover:underline underline-offset-4",children:p.label}),w,S]})}):(0,l.jsxs)("div",{className:x,onMouseEnter:v,children:[p.label,w,S]})}),g[11]=w,g[12]=x,g[13]=S,g[14]=p.href,g[15]=p.label,g[16]=v,g[17]=h):h=g[17],h}function ey(e){let a,t,s,i,c,u,h=(0,r.c)(20),{item:g}=e,p=(0,d.sf)(),b=g.trackEvent;h[0]!==p||h[1]!==b?(a=()=>{b&&p.capture(b)},h[0]=p,h[1]=b,h[2]=a):a=h[2];let f=a,v=g.href,y=g.highlighted&&"bg-neutral-700 text-white hover:bg-black hover:text-white";return h[3]!==y?(t=(0,m.cn)("flex items-start gap-2 text-sm p-2 h-full text-neutral-600 rounded-lg hover:text-foreground",y),h[3]=y,h[4]=t):t=h[4],h[5]!==g?(s=(0,l.jsx)(ex,{item:g}),h[5]=g,h[6]=s):s=h[6],h[7]!==g.change||h[8]!==g.changeVariant?(i=g.change&&(0,l.jsx)("span",{className:"ghost"===g.changeVariant?"".concat(M.vY[g.change.type].text," text-xs ml-1.5"):"".concat(M.vY[g.change.type].bg," text-white text-[8px] px-1 py-px rounded-full ml-1.5 align-top"),children:n.M[g.change.type]}),h[7]=g.change,h[8]=g.changeVariant,h[9]=i):i=h[9],h[10]!==g.label||h[11]!==g.suffix||h[12]!==i?(c=(0,l.jsxs)("span",{className:"font-normal",children:[g.label,g.suffix,i]}),h[10]=g.label,h[11]=g.suffix,h[12]=i,h[13]=c):c=h[13],h[14]!==g.href||h[15]!==f||h[16]!==t||h[17]!==s||h[18]!==c?(u=(0,l.jsx)("li",{children:(0,l.jsx)(k,{asChild:!0,children:(0,l.jsxs)(o.Link,{href:v,onClick:f,className:t,children:[s,c]})})}),h[14]=g.href,h[15]=f,h[16]=t,h[17]=s,h[18]=c,h[19]=u):u=h[19],u}function ex(e){let a=(0,r.c)(7),{item:t}=e;if(t.logo){let e;return a[0]!==t.label||a[1]!==t.logo?(e=(0,l.jsx)(D.default,{src:t.logo,alt:t.label,width:16,height:16,className:"overflow-hidden aspect-square object-contain rounded-sm mt-0.5 flex-none"}),a[0]=t.label,a[1]=t.logo,a[2]=e):e=a[2],e}if(t.Icon){let e;return a[3]!==t.Icon?(e=(0,l.jsx)(t.Icon,{className:"w-4 h-4 mt-0.5"}),a[3]=t.Icon,a[4]=e):e=a[4],e}if(t.emoji){let e;return a[5]!==t.emoji?(e=(0,l.jsx)("span",{className:"text-base w-4",children:t.emoji}),a[5]=t.emoji,a[6]=e):e=a[6],e}return null}function ew(e){return e.normalize("NFKD").replace(/[\u0300-\u036f]/g,"").replace(RegExp("[^\\p{L}\\p{N}]+","gu")," ").trim()}var ek=t(73830),eI=t(34772),eS=t(45031),eA=t(15728),eM=t(58595);function ej(e){let a,t,n,o,s,i,c,d,g,p,b,f,v,y,x,w,k,I,S,A,M=(0,r.c)(46),{config:j,fuse:N,isSearchOpen:T,onSearchOpenChange:E,defaultItems:L,locale:C,messages:P}=e;M[0]===Symbol.for("react.memo_cache_sentinel")?(a=[],M[0]=a):a=M[0];let V=(0,u.useRef)(a),z=(0,O.HM)({locale:C,messages:P}),[D,R]=(0,u.useState)(!1),[B,G]=(0,u.useState)();M[1]===Symbol.for("react.memo_cache_sentinel")?(t=[],M[1]=t):t=M[1];let[H,F]=(0,u.useState)(t),W=(0,eA.a)(),Y=-((H.length-1)*100);M[2]!==H.length?(n=()=>{requestAnimationFrame(()=>{let e=V.current[H.length-1];e&&G(e.clientHeight)})},o=[H.length],M[2]=H.length,M[3]=n,M[4]=o):(n=M[3],o=M[4]),(0,u.useEffect)(n,o),M[5]!==W?(s=()=>{W||R(!1)},i=[W],M[5]=W,M[6]=s,M[7]=i):(s=M[6],i=M[7]),(0,u.useEffect)(s,i);let Z=eM._s;M[8]===Symbol.for("react.memo_cache_sentinel")?(c=()=>F(["root"]),d=e=>{R(e),e&&F(["root"])},M[8]=c,M[9]=d):(c=M[8],d=M[9]),M[10]===Symbol.for("react.memo_cache_sentinel")?(g=(0,l.jsx)(_,{}),M[10]=g):g=M[10],M[11]!==P.actions?(p=(0,l.jsx)(ea,{messages:P.actions}),b=(0,l.jsx)(K,{messages:P.actions}),M[11]=P.actions,M[12]=p,M[13]=b):(p=M[12],b=M[13]),M[14]!==L||M[15]!==N||M[16]!==T||M[17]!==C||M[18]!==P.search||M[19]!==E?(f=(0,l.jsx)(U,{fuse:N,isOpen:T,onOpenChange:E,defaultItems:L,locale:C,messages:P.search}),M[14]=L,M[15]=N,M[16]=T,M[17]=C,M[18]=P.search,M[19]=E,M[20]=f):f=M[20],M[21]===Symbol.for("react.memo_cache_sentinel")?(v=(0,l.jsx)(eM.Uz,{asChild:!0,children:(0,l.jsx)(h.$,{variant:"tertiary",size:"icon",className:"bg-neutral-100 hover:bg-neutral-200 h-9 w-9",children:(0,l.jsx)(ek.A,{})})}),M[21]=v):v=M[21],M[22]!==p||M[23]!==b||M[24]!==f?(y=(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[g,(0,l.jsxs)("div",{className:"min-w-0 flex items-center gap-1",children:[p,b,f,v]})]}),M[22]=p,M[23]=b,M[24]=f,M[25]=y):y=M[25];let J=eM.zj,$="".concat(B,"px");M[26]!==$?(x={height:$},M[26]=$,M[27]=x):x=M[27];let q="translateX(".concat(Y,"%)");M[28]!==q?(w={transform:q},M[28]=q,M[29]=w):w=M[29];let X=H.map((e,a)=>{var t;let r=j[e];if(null==r)return null;let n=r.description;return(0,l.jsxs)("div",{id:e,className:"shrink-0 w-full max-h-[calc(90vh-8px)] flex flex-col",ref:e=>{V.current[a]=e},children:[(0,l.jsxs)(eM.BE,{className:(0,m.cn)("text-start pb-0 flex-none",!r.title&&!r.description&&"sr-only"),children:[(0,l.jsxs)(eM.gk,{className:"flex items-center gap-2 text-base",children:[a>0&&(0,l.jsx)(h.$,{variant:"ghost",size:"icon",className:"h-8 w-8 -my-2",onClick:()=>F(eN),children:(0,l.jsx)(eI.A,{className:"w-4 h-4"})}),r.title]}),(0,l.jsx)(eM.I6,{className:(0,m.cn)("ml-2",!n&&"sr-only"),children:null!=n?n:z("mobile.menuDescription",{title:null!=(t=r.title)?t:""})})]}),(0,l.jsx)("div",{className:"mt-4 pb-4 overflow-y-auto min-h-0",children:r.items.map(e=>(0,l.jsx)(eE,{item:e,setOpen:R,setStack:F},e.label))})]},e)});return M[30]!==w||M[31]!==X?(k=(0,l.jsx)("div",{className:"flex items-start",style:w,children:X}),M[30]=w,M[31]=X,M[32]=k):k=M[32],M[33]!==x||M[34]!==k?(I=(0,l.jsx)("div",{className:"transition-[height] duration-300 ease-in-out",style:x,children:k}),M[33]=x,M[34]=k,M[35]=I):I=M[35],M[36]!==J||M[37]!==I?(S=(0,l.jsx)(J,{className:"w-full h-auto rounded-t-lg border p-0",children:I}),M[36]=J,M[37]=I,M[38]=S):S=M[38],M[39]!==Z||M[40]!==D||M[41]!==y||M[42]!==S||M[43]!==c||M[44]!==d?(A=(0,l.jsxs)(Z,{open:D,onAnimationEnd:c,onOpenChange:d,children:[y,S]}),M[39]=Z,M[40]=D,M[41]=y,M[42]=S,M[43]=c,M[44]=d,M[45]=A):A=M[45],A}function eN(e){return e.length>1?e.slice(0,-1):e}let e_=(0,p.F)((0,m.cn)("w-full justify-start px-6 font-normal rounded-none"),{variants:{size:{sm:"text-sm sm:w-[50%]",md:"text-base h-12"}},defaultVariants:{size:"md"}}),eT=(0,p.F)("object-contain flex items-center justify-center",{variants:{size:{sm:"!w-4 !h-4 text-lg",md:(0,m.cn)("!w-5 !h-5 text-xl text-neutral-700")}},defaultVariants:{size:"md"}});function eE(e){let a,t,s,i,c,u,g=(0,r.c)(36),{item:p,setOpen:b,setStack:f}=e,v=(0,d.sf)();if("separator"===p.type){let e,a;return g[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,m.cn)(e_(),"text-muted-foreground text-sm flex items-center"),g[0]=e):e=g[0],g[1]!==p.label||g[2]!==e?(a=(0,l.jsx)("p",{className:e,children:p.label}),g[1]=p.label,g[2]=e,g[3]=a):a=g[3],a}
1g[4]!==p.Icon||g[5]!==p.highlighted||g[6]!==p.size||g[7]!==p.type?(a=p.Icon&&(0,l.jsx)(p.Icon,{className:(0,m.cn)(eT({size:"submenu"===p.type?"md":p.size}),p.highlighted&&"text-blue-700")}),g[4]=p.Icon,g[5]=p.highlighted,g[6]=p.size,g[7]=p.type,g[8]=a):a=g[8];let y=p.highlighted&&"font-medium bg-clip-text text-transparent bg-gradient-to-br from-blue-600 to-indigo-700";g[9]!==y?(t=(0,m.cn)("truncate",y),g[9]=y,g[10]=t):t=g[10],g[11]!==p.label||g[12]!==p.suffix||g[13]!==t?(s=(0,l.jsxs)("span",{className:t,children:[p.label,p.suffix]}),g[11]=p.label,g[12]=p.suffix,g[13]=t,g[14]=s):s=g[14],g[15]!==p.change||g[16]!==p.changeVariant?(i=p.change&&(0,l.jsx)("span",{className:"ghost"===p.changeVariant?"".concat(M.vY[p.change.type].text," text-xs flex-none"):"".concat(M.vY[p.change.type].bg," text-white text-[8px] px-1.5 py-1 rounded-full align-top flex-none leading-none"),children:n.M[p.change.type]}),g[15]=p.change,g[16]=p.changeVariant,g[17]=i):i=g[17],g[18]!==a||g[19]!==s||g[20]!==i?(c=(0,l.jsxs)(l.Fragment,{children:[a,s,i]}),g[18]=a,g[19]=s,g[20]=i,g[21]=c):c=g[21];let x=c;return g[22]!==p.Decorator||g[23]!==p.emoji||g[24]!==p.href||g[25]!==p.label||g[26]!==p.logo||g[27]!==p.menuId||g[28]!==p.size||g[29]!==p.trackEvent||g[30]!==p.type||g[31]!==x||g[32]!==v||g[33]!==b||g[34]!==f?(u="submenu"===p.type?(0,l.jsxs)(h.$,{variant:"ghost",className:e_({size:"md"}),onClick:()=>f(e=>[...e,p.menuId]),children:[x,(0,l.jsx)(eS.A,{size:16,className:"ml-auto"})]}):(0,l.jsx)(h.$,{variant:"ghost",className:(0,m.cn)(e_({size:p.size})),asChild:!0,children:(0,l.jsxs)(o.Link,{href:p.href,onClick:()=>{p.trackEvent&&v.capture(p.trackEvent),b(!1)},children:[p.logo&&(0,l.jsx)("div",{className:(0,m.cn)(eT({size:p.size}),"relative"),children:(0,l.jsx)(D.default,{src:p.logo,alt:p.label,fill:!0,className:"object-contain",sizes:"48px"})}),p.emoji&&(0,l.jsx)("span",{className:eT({size:p.size}),children:p.emoji}),x,p.Decorator&&(0,l.jsx)(p.Decorator,{className:"w-4 h-4 ml-auto"})]})}),g[22]=p.Decorator,g[23]=p.emoji,g[24]=p.href,g[25]=p.label,g[26]=p.logo,g[27]=p.menuId,g[28]=p.size,g[29]=p.trackEvent,g[30]=p.type,g[31]=x,g[32]=v,g[33]=b,g[34]=f,g[35]=u):u=g[35],u}var eL=t(93941),eC=t(34274),eP=t(66861),eV=t(79910),ez=t(16633),eD=t(18310),eR=t(58359),eO=t(69575),eU=t(14178),eB=t(20453),eG=t(71396),eH=t(39960),eF=t(75452),eW=t(33397),eY=t(35515),eZ=t(96203),eJ=t(8756),e$=t(5155),eq=t(41234),eX=t(60441),eK=t(53009),eQ=t(70123),e0=t(37239),e1=t(22448),e2=t(74858),e3=t(18174),e5=t(11499),e4=t(32080),e6=t(88054),e7=t(27126),e8=t(23195),e9=t(72838);let ae=eO.A,aa={category:"about",keywords:["about"]},at={category:"leaderboards",subcategory:"Leaderboard",keywords:["leaderboard"]};function al(e){let{locale:a,messages:t}=e,l=t.nav.config,r=(0,O.HM)({locale:a,messages:t.nav.config});return{languageModels:{label:l.languageModels.label,type:"submenu",menuId:"languageModels",href:"/models",branches:{models:{label:l.languageModels.models.label,type:"submenu",menuId:"models",href:"/models",defaultLeaves:[{label:l.languageModels.models.allModels,href:"/models",Icon:void 0,highlighted:!0},{label:l.languageModels.models.modelRecommender,href:"/models/recommend",Icon:eU.A,highlighted:!0}],search:{placeholder:l.languageModels.models.searchPlaceholder,emptyState:l.languageModels.models.emptyState},globalSearchMetadata:{category:"models",subcategory:"Language Models",keywords:["model","language","llm","ai","analysis"]}},modelsWithProviders:{label:l.languageModels.modelsWithProviders.label,type:"submenu",description:l.languageModels.modelsWithProviders.description,menuId:"modelsWithProviders",search:{placeholder:l.languageModels.modelsWithProviders.searchPlaceholder,emptyState:l.languageModels.modelsWithProviders.emptyState},globalSearchMetadata:{category:"models",subcategory:"Model Providers",keywords:["model","provider","compare","pricing"]}},providers:{label:l.languageModels.providers.label,type:"submenu",description:l.languageModels.providers.description,menuId:"providers",globalSearchMetadata:{category:"providers",subcategory:"API Providers",keywords:["provider","api","host","pricing"]}},openSourceModels:{label:l.languageModels.openSourceModels.label,type:"submenu",menuId:"openSourceModels",description:l.languageModels.openSourceModels.description,href:"/models/open-source",defaultLeaves:[{label:l.languageModels.openSourceModels.allModels,href:"/models/open-source",Icon:eB.A,highlighted:!0},{label:eL.H.largeModels,href:"/models/open-source/large",Icon:void 0,highlighted:!1},{label:eL.H.mediumModels,href:"/models/open-source/medium",Icon:void 0,highlighted:!1},{label:eL.H.smallModels,href:"/models/open-source/small",Icon:void 0,highlighted:!1},{label:eL.H.tinyModels,href:"/models/open-source/tiny",Icon:void 0,highlighted:!1}],globalSearchMetadata:{category:"models",subcategory:"Open Source",keywords:["open","source","model","free"]}},evaluations:{label:l.languageModels.evaluations.label,type:"submenu",menuId:"evaluations",href:"/evaluations",description:l.languageModels.evaluations.description,defaultLeaves:[{label:l.languageModels.evaluations.allEvaluations,href:"/evaluations",Icon:eB.A,highlighted:!0,logo:void 0,keywords:[],description:l.languageModels.evaluations.allEvaluationsDescription,change:void 0,deprecated:!1},...eP.$k.map(e=>
1{let{slug:a,name:l,logo:n,shortName:o,keywords:s,change:i,deprecated:c}=e;return{label:l,shortName:o,href:"/evaluations/".concat(a),logo:n,Icon:n?void 0:eG.A,highlighted:!1,keywords:[...null!=s?s:[],...(0,eV.S)({...e,messages:t.evaluations.categories})],description:r("languageModels.evaluations.evaluationItemDescription",{evaluationName:o}),change:i,deprecated:null!=c&&c}})],globalSearchMetadata:{category:"evaluations",keywords:["evals","benchmark","leaderboard","score"]}},capabilities:{label:l.languageModels.capabilities.label,type:"submenu",menuId:"capabilities",description:l.languageModels.capabilities.description,href:"/models/capabilities",globalSearchMetadata:{category:"capabilities",keywords:[]},intelligenceIndexLeaf:{label:eL.H.intelligenceIndex,href:"/evaluations/".concat(eP.dg),logo:eR.F,change:eC.bQ},defaultLeaves:Object.values(ez.M).map(e=>{let{slug:a,name:l,Icon:r,keywords:n,change:o}=e,s=l(t.capabilities.config);return{label:s,href:"/models/capabilities/".concat(a),name:s,keywords:[...n,...(0,eV.S)({...e,messages:t.evaluations.categories})],highlighted:!1,Icon:r,change:o}})},...e6.lH&&{cyber:{label:l.languageModels.cyber.label,type:"submenu",menuId:"cyber",change:eC.c4,cyberIndexLeaf:{label:(0,eP.Gm)(eP.$5).shortName,href:"/evaluations/".concat(eP.$5),logo:eR.F,change:(0,eP.Gm)(eP.$5).change},defaultLeaves:eP.hc.map(e=>{let{slug:a,name:l,logo:n,shortName:o,keywords:s,change:i,deprecated:c}=e;return{label:l,shortName:o,href:"/evaluations/".concat(a),logo:n,Icon:n?void 0:eG.A,highlighted:!1,keywords:[...null!=s?s:[],...(0,eV.S)({...e,messages:t.evaluations.categories})],description:r("languageModels.evaluations.evaluationItemDescription",{evaluationName:o}),change:i,deprecated:null!=c&&c}}),globalSearchMetadata:{category:"evaluations",subcategory:"Cyber Index",keywords:["cyber","cybersecurity","security","evals","benchmark","leaderboard","score"]}}},multilingualCapabilities:{label:l.languageModels.multilingualCapabilities.label,type:"submenu",menuId:"multilingualCapabilities",description:l.languageModels.multilingualCapabilities.description,href:"/models/multilingual",defaultLeaves:[{label:l.languageModels.multilingualCapabilities.multilingualAnalysis,href:"/models/multilingual",Icon:eH.A,emoji:void 0,highlighted:!0},...(0,e8.WP)(eD.KM).map(e=>{let[t,{slug:l,emoji:r}]=e;return{label:(0,e7.M)(a,t),Icon:void 0,emoji:r,href:(0,e9.p4)(l),highlighted:!1}})],globalSearchMetadata:{category:"languages",keywords:["multilingual","language","international"]}},tools:{label:l.languageModels.tools.label,type:"submenu",menuId:"tools",description:l.languageModels.tools.description,defaultLeaves:[{label:l.languageModels.tools.modelComparison,href:"/models/comparisons",change:M.$Z,Icon:eF.A,highlighted:!1,hideFromSearch:!0},{label:l.languageModels.tools.llmPriceCalculator,href:"/tools/llm-price-calculator",Icon:eW.A,highlighted:!1,hideFromSearch:!1},{label:l.languageModels.tools.caching,href:"/models/caching",Icon:eY.A,highlighted:!1,hideFromSearch:!1},{label:l.languageModels.tools.microevals,href:"/microevals",Icon:eU.A,highlighted:!1,hideFromSearch:!1}],globalSearchMetadata:{category:"tools",keywords:["tools","utilities","calculator","caching","pricing","compare","comparison"]}}}},agents:{label:l.agents.label,type:"submenu",menuId:"agents",href:"/agents/coding-agents",branches:{coding:{label:l.agents.coding,type:"link",href:"/agents/coding-agents",change:M.AV,globalSearchMetadata:{category:"agents",keywords:["coding","models","agents"]}},searchApi:{label:l.agents.searchApi,type:"link",href:"/agents/search-api",change:void 0,globalSearchMetadata:{category:"agents",keywords:["search","web search","retrieval"]}},chatbots:{label:l.agents.chatbots,type:"link",href:"/agents/chatbots",change:void 0,globalSearchMetadata:{category:"agents",keywords:[]}}}},trends:{label:l.trends,type:"link",href:"/trends",globalSearchMetadata:{category:"evaluations",keywords:["trend","ai","trending","insight"]}},speechImageAndVideo:{label:l.speechImageAndVideo.label,type:"submenu",menuId:"speechImageAndVideo",href:"/image/leaderboard/text-to-image",branches:{imageGeneration:{label:l.speechImageAndVideo.imageGeneration.label,type:"submenu",href:"/image/arena",menuId:"imageGeneration",description:l.speechImageAndVideo.imageGeneration.description,search:{placeholder:l.speechImageAndVideo.imageGeneration.searchPlaceholder,emptyState:l.speechImageAndVideo.imageGeneration.emptyState},defaultLeaves:[{label:l.speechImageAndVideo.imageGeneration.imageArena,href:"/image/arena",Icon:ae,highlighted:!1,trackEvent:void 0},{label:l.speechImageAndVideo.imageGeneration.textToImageLeaderboard,href:"/image/leaderboard/text-to-image",Icon:eZ.A,highlighted:!1,keywords:["tti"],trackEvent:void 0},{label:l.speechImageAndVideo.imageGeneration.imageEditingLeaderboard,href:"/image/leaderboard/editing",Icon:eZ.A,highlighted:!1,keywords:["image to image","iti"],trackEvent:void 0},{label:l.speechImageAndVideo.imageGeneration.imageLab,href:"/image/image-lab",Icon:eJ.A,highlighted:!1,trackEvent:"image_lab_nav_clicked"},{label:l.speechImageAndVideo.imageGeneration.compareModels,href:"/image/models",Icon:e$.A,highlighted:!1,trackEvent:void 0},{label:l.speechImageAndVideo.imageGeneration.compareProviders,href:"/image/providers",Icon:eq.A,highlighted:!1,trackEvent:void 0},{label:l.speechImageAndVideo.imageGeneration.methodology,href:"/image/methodology",Icon:eX.A,highlighted:!1,trackEvent:void 0}],globalSearchMetadata:{category:"imageGeneration",subcategory:"Text to Image",keywords:["image","generation","text to image","tti","image to image","iti"]}},speechToSpeech:{label:l.speechImageAndVideo.speechToSpeech.label,type:"submenu",menuId:"speechToSpeech",href:"/speech-to-speech",description:l.speechImageAndVideo.speechToSpeech.description,defaultLeaves:[{label:l.speechImageAndVideo.speechToSpeech.compareModelsAndProviders,href:"/speech-to-speech",Icon:e$.A,highlighted:!1,trackEvent:void 0},{label:l.speechImageAndVideo.speechToSpeech.speechAgentLeaderboard,href:"/speech-to-speech/arena",Icon:eZ.A,highlighted:!1,trackEvent:void 0},{label:l.speechImageAndVideo.speechToSpeech.arenaOverviewAndExamples,href:"/speech-to-speech/arena/overview",Icon:eX.A,highlighted:!1,trackEvent:void 0},{label:l.speechImageAndVideo.speechToSpeech.methodology,href:"/methodology/spee
1ch-to-speech-benchmarking",Icon:eX.A,highlighted:!1,trackEvent:void 0}],globalSearchMetadata:{category:"speech",keywords:["speech","speech to speech","sts","arena","voice","translation"]}},speechToText:{label:l.speechImageAndVideo.speechToText.label,type:"submenu",menuId:"speechToText",href:"/speech-to-text/non-streaming",description:l.speechImageAndVideo.speechToText.description,search:{placeholder:l.speechImageAndVideo.speechToText.searchPlaceholder,emptyState:l.speechImageAndVideo.speechToText.emptyState},defaultLeaves:[{label:l.speechImageAndVideo.speechToText.nonStreaming,href:"/speech-to-text/non-streaming",Icon:eK.A,highlighted:!1,change:void 0},{label:l.speechImageAndVideo.speechToText.streaming,href:"/speech-to-text/streaming",Icon:eQ.A,highlighted:!1,change:void 0},{label:l.speechImageAndVideo.speechToText.methodology,href:"/methodology/speech-to-text",Icon:eX.A,highlighted:!1,change:void 0}],globalSearchMetadata:{category:"speech",subcategory:"Speech to Text",keywords:["speech","transcription","speech to text","stt","streaming","realtime","real time"]}},textToSpeech:{label:l.speechImageAndVideo.textToSpeech.label,type:"submenu",menuId:"textToSpeech",href:"/text-to-speech/models",description:l.speechImageAndVideo.textToSpeech.description,search:{placeholder:l.speechImageAndVideo.textToSpeech.searchPlaceholder,emptyState:l.speechImageAndVideo.textToSpeech.emptyState},defaultLeaves:[{label:l.speechImageAndVideo.textToSpeech.textToSpeechLeaderboard,href:"/text-to-speech/arena",Icon:eZ.A,highlighted:!1},{label:l.speechImageAndVideo.textToSpeech.exploreVoices,href:"/text-to-speech/speech-explorer",Icon:e0.A,highlighted:!1,keywords:["media explorer"]},{label:l.speechImageAndVideo.textToSpeech.providerVoiceLeaderboard,href:"/text-to-speech/leaderboard/provider-voice",Icon:eZ.A,highlighted:!1,keywords:["tts"]},{label:l.speechImageAndVideo.textToSpeech.controlledVoiceLeaderboard,href:"/text-to-speech/leaderboard/controlled-voice",Icon:eZ.A,highlighted:!1,keywords:["tts","controlled voice"]},{label:l.speechImageAndVideo.textToSpeech.compareModels,href:"/text-to-speech/models",Icon:e$.A,highlighted:!1,change:M.GU,changeVariant:"ghost"},{label:l.speechImageAndVideo.textToSpeech.compareProviders,href:"/text-to-speech/providers",Icon:eq.A,highlighted:!1,change:M.GU,changeVariant:"ghost"},{label:l.speechImageAndVideo.textToSpeech.methodology,href:"/methodology/text-to-speech",Icon:eX.A,highlighted:!1}],globalSearchMetadata:{category:"speech",subcategory:"Text to Speech",keywords:["speech","voice","synthesis","text-to-speech","tts"]}},videoGeneration:{label:l.speechImageAndVideo.videoGeneration.label,type:"submenu",href:"/video/arena",menuId:"videoGeneration",description:l.speechImageAndVideo.videoGeneration.description,search:{placeholder:l.speechImageAndVideo.videoGeneration.searchPlaceholder,emptyState:l.speechImageAndVideo.videoGeneration.emptyState},defaultLeaves:[{label:l.speechImageAndVideo.videoGeneration.videoArena,href:"/video/arena",Icon:ae,highlighted:!1},{label:l.speechImageAndVideo.videoGeneration.textToVideoLeaderboard,href:"/video/leaderboard/text-to-vi
1deo",Icon:eZ.A,highlighted:!1,keywords:["ttv","t2v"],change:M.tJ,changeVariant:"ghost"},{label:l.speechImageAndVideo.videoGeneration.imageToVideoLeaderboard,href:"/video/leaderboard/image-to-video",Icon:eZ.A,highlighted:!1,keywords:["i2v"]},{label:l.speechImageAndVideo.videoGeneration.videoEditingLeaderboard,href:"/video/leaderboard/video-editing",Icon:eZ.A,highlighted:!1,keywords:["v2v"]},{label:l.speechImageAndVideo.videoGeneration.compareModels,href:"/video/models",Icon:e$.A,highlighted:!1},{label:l.speechImageAndVideo.videoGeneration.compareProviders,href:"/video/providers",Icon:eq.A,highlighted:!1},{label:l.speechImageAndVideo.videoGeneration.methodology,href:"/video/methodology",Icon:eX.A,highlighted:!1}],globalSearchMetadata:{category:"video",keywords:["video","media","text to video","ttv","t2v","image to video","i2v"]}},musicGeneration:{label:l.speechImageAndVideo.musicGeneration.label,type:"submenu",href:"/music/leaderboard/vocals",menuId:"musicGeneration",description:l.speechImageAndVideo.musicGeneration.description,defaultLeaves:[{label:l.speechImageAndVideo.musicGeneration.musicArena,href:"/music/arena",Icon:ae,highlighted:!1},{label:l.speechImageAndVideo.musicGeneration.vocalsLeaderboard,href:"/music/leaderboard/vocals",Icon:eZ.A,highlighted:!1},{label:l.speechImageAndVideo.musicGeneration.instrumentalLeaderboard,href:"/music/leaderboard/instrumental",Icon:eZ.A,highlighted:!1},{label:l.speechImageAndVideo.musicGeneration.methodology,href:"/music/methodology",Icon:eX.A,highlighted:!1}],globalSearchMetadata:{category:"music",keywords:["music","media","song","audio","instrumental","vocals"]}}}},inference:{label:l.inference.label,type:"link",href:"/hardware-inference-stack",globalSearchMetadata:{category:"inference",keywords:["inference","hardware","benchmark","performance","gpu","serverless","system"]}},leaderboards:{label:l.leaderboards.label,type:"submenu",menuId:"leaderboards",href:"/leaderboards/models",branches:{languageModels:{label:l.leaderboards.models,type:"submenu",menuId:"leaderboardsLanguageModels",description:l.leaderboards.modelsDescription,href:"/leaderboards/models",globalSearchMetadata:at},modelApiEndpoints:{label:l.leaderboards.modelApiEndpoints,type:"link",href:"/leaderboards/providers",globalSearchMetadata:at},textToImage:{label:l.leaderboards.textToImage,type:"link",href:"/image/leaderboard/text-to-image",globalSearchMetadata:at},imageEditing:{label:l.leaderboards.imageEditing,type:"link",href:"/image/leaderboard/editing",globalSearchMetadata:at},video:{label:l.leaderboards.textToVideo,type:"link",href:"/video/leaderboard/text-to-vi
1deo",globalSearchMetadata:at},imageToVideo:{label:l.leaderboards.imageToVideo,type:"link",href:"/video/leaderboard/image-to-video",globalSearchMetadata:at},videoEditing:{label:l.leaderboards.videoEditing,type:"link",href:"/video/leaderboard/video-editing",globalSearchMetadata:at},speechToText:{label:l.leaderboards.speechToText,type:"link",href:"/speech-to-text/non-streaming",globalSearchMetadata:at},textToSpeech:{label:l.leaderboards.textToSpeech,type:"link",href:"/text-to-speech/leaderboard/provider-voice",globalSearchMetadata:at},music:{label:l.leaderboards.music,type:"link",href:"/music/leaderboard/vocals",globalSearchMetadata:at}}},about:{label:l.about.label,type:"submenu",menuId:"about",href:"/about",branches:{aboutUs:{label:l.about.aboutUs,type:"link",href:"/about",change:void 0,globalSearchMetadata:aa},methodology:{label:l.about.methodology,type:"link",href:"/methodology",change:void 0,globalSearchMetadata:aa},articles:{label:l.about.articles,type:"link",href:"/articles",change:void 0,globalSearchMetadata:aa},changelog:{label:l.about.changelog,type:"link",href:"/changelog",change:void 0,globalSearchMetadata:aa},...e4.Ue&&{forGovernment:{label:l.about.forGovernment,type:"link",href:"/government",change:void 0,globalSearchMetadata:aa}},dataApi:{label:l.about.dataApi,type:"link",href:"/data-api",change:void 0,globalSearchMetadata:aa},brandKit:{label:l.about.brandKit,type:"link",href:"/brand-kit",change:void 0,globalSearchMetadata:aa},careers:{label:l.about.careers,type:"link",href:"/careers",change:void 0,globalSearchMetadata:aa},contact:{label:l.about.contact,type:"link",href:"/contact",change:void 0,globalSearchMetadata:aa},pricing:{label:l.about.pricing,type:"link",href:"/pricing",change:void 0,globalSearchMetadata:aa}}}}}var ar=t(58410);let an=["label","keywords","description","subcategory"],ao=["/leaderboards/models","/leaderboards/providers","/evaluations/".concat(eP.dg),"/evaluations","/models/recommend","/microevals","/image/arena","/video/arena","/text-to-speech/arena","/music/arena"];function as(e){let{modelsAndReleases:a,hosts:t,sttModelFamilies:r,imageModelFamilies:n,textToSpeechModelFamilies:o,videoModelFamilies:s,locale:i,messages:c}=e,d=(0,u.useMemo)(()=>{let e=function(e){let a=new Map;for(let t of e){let e=a.get(t.releaseSlug);e?e.push(t.slug):a.set(t.releaseSlug,[t.slug])}return a}(a.models);return a.releases.map(a=>{let t=e.get(a.slug);(0,ar.V)(null!=t,"Every listed release has at least one variant.");let l=t.includes(a.slug)?a.slug:t[0];return{...a,href:t.length>1?(0,e9.cB)(a.slug):(0,e9.Zr)(l),modelHostUrl:(0,e9.aN)(l)}})},[a]),h=(0,u.useMemo)(()=>d.map(e=>({label:e.name,size:"sm",type:"link",href:e.href,logo:e.creator.logo,deprecated:e.deprecated,modelHostUrl:e.modelHostUrl})),[d]),g=(0,u.useMemo)(()=>d.map(e=>({label:e.name,href:e.href,logo:e.creator.logo,deprecated:e.deprecated,modelHostUrl:e.modelHostUrl,category:{id:e.creator.slug,label:e.creator.name,logo:e.creator.logo}})),[d]),p=(0,u.useMemo)(()=>{let e=new Map(a.releases.map(e=>[e.slug,e]));return a.models.map(a=>{let t=e.get(a.releaseSlug);return(0,ar.V)(null!=t,"Every variant has its release listed."),{label:a.name,href:(0,e9.Zr)(a.slug),logo:t.creator.logo,modelHostUrl:(0,e9.aN)(a.slug),releaseDate:t.releaseDate,deprecated:t.deprecated}})},[a]),m=(0,u.useMemo)(()=>Array.from(new Map(a.releases.map(e=>{let{creator:a}=e;return[a.slug,a]})).values(),e=>({label:e.name,href:(0,e9.$y)(e.slug),logo:e.logo})),[a]),b=(0,u.useMemo)(()=>h.map(e=>({...e,href:e.modelHostUrl})),[h]),f=(0,u.useMemo)(()=>g.map(e=>({...e,href:e.modelHostUrl})),[g]),v=p.map(e=>({...e,href:e.modelHostUrl})),y=(0,u.useMemo)(()=>t.map(e=>({label:e.name,size:"sm",type:"link",href:(0,e9.UN)(e.slug),logo:e.logo})),[t]),x=(0,u.useMemo)(()=>t.map(e=>({label:e.name,href:(0,e9.UN)(e.slug),logo:e.logo})),[t]),w=(0,u.useMemo)(()=>t.map(e=>({label:e.name,href:(0,e9.UN)(e.slug),logo:e.logo})),[t]),k=(0,u.useMemo)(()=>n.map(e=>({label:e.name,size:"sm",type:"link",href:e.url,logo:e.creator.logo})),[n]),I=(0,u.useMemo)(()=>n.map(e=>({label:e.name,href:e.url,logo:e.creator.logo})),[n]),S=(0,u.useMemo)(()=>n.map(e=>({label:e.name,href:e.url,logo:e.creator.logo})),[n]),A=(0,u.useMemo)(()=>r.map(e=>({label:e.name,size:"sm",type:"link",href:"/speech-to-text/models/".concat(e.slug),logo:e.logo})),[r]),M=(0,u.useMemo)(()=>r.map(e=>({label:e.name,href:"/speech-to-text/models/".concat(e.slug),logo:e.logo})),[r]),j=(0,u.useMemo)(()=>r.map(e=>({label:e.name,href:"/speech-to-text/models/".concat(e.slug),logo:e.logo})),[r]),N=(0,u.useMemo)(()=>o.map(e=>({label:e.name,size:"sm",type:"link",href:e.url,logo:e.creator.logo})),[o]),_=(0,u.useMemo)(()=>o.map(e=>({label:e.name,href:e.url,logo:e.creator.logo})),[o]),T=(0,u.useMemo)(()=>o.map(e=>({label:e.name,href:e.url,logo:e.creator.logo})),[o]),E=(0,u.useMemo)(()=>s.map(e=>({label:e.name,size:"sm",type:"link",href:e.url,logo:e.creator.logo})),[s]),L=(0,u.useMemo)(()=>s.map(e=>({label:e.name,href:e.url,logo:e.creator.logo})),[s]),C=(0,u.useMemo)(()=>s.map(e=>({label:e.name,href:e.url,logo:e.creator.logo})),[s]),P=(0,u.useMemo)(()=>(function(e,a,t,l,r,n,o,s,i){let c=al({locale:s,messages:i});return{root:{items:[{label:i.nav.actions.logIn,type:"link",href:"/orgs",size:"md",Decorator:e5.A},{label:i.nav.actions.home,type:"link",href:"/",size:"md"},...Object.values(c).map(e=>({label:e.label,size:"md",..."submenu"===e.type?{type:"submenu",menuId:e.menuId,href:e.href}:e===c.inference?{type:"submenu",menuId:"inference",href:e.href}:{type:"link",href:e.href}}))]},languageModels:{title:c.languageModels.label,items:Object.values(c.languageModels.branches).map(e=>({label:e.label,type:"submenu",menuId:e.menuId,change:"change"in e?e.change:void 0}))},speechImageAndVideo:{title:c.speechImageAndVideo.label,items:Object.values(c.speechImageAndVideo.branches).map(e=>({label:e.label,type:"submenu",menuId:e.menuId}))},inference:{title:c.inference.label,items:[{label:i.nav.config.inference.hardwareInferenceStacks,type:"link",href:c.inference.href,size:"md"},{label:i.nav.config.inference.serverlessApis,type:"submenu",menuId:"modelsWithProviders"}]},leaderboards:{title:c.leaderboards.label,items:Object.values(c.leaderboards.branches).map(e=>({label:e.label,type:"link",href:e.href,size:"md"}))},agents:{title:c.agents.label,items:[...Object.values(c.agents.branches).map(e=>({label:e.label,type:"link",href:e.href,size:"md",change:e.change}))]},about:{title:c.about.label,items:Object.values(c.about.branches).map(e=>({label:e.label,type:"link",href:e.href,size:"md",change:e.change}))},models:{title:c.languageModels.branches.models.label,items:[...c.languageModels.branches.models.defaultLeaves.map(e=>({label:e.label,type:"link",href:e.href,size:"sm",Icon:e.Icon,highlighted:e.highlighted})),...e.filter(e=>!e.deprecated),{type:"separator",label:i.nav.sections.olderModels},...e.filter(e=>e.deprecated)]},modelsWithProviders:{title:c.languageModels.branches.modelsWithProviders.label,description:c.languageModels.branches.modelsWithProviders.description,items:[...a.filter(e=>!e.deprecated),{type:"separator",label:i.nav.sections.olderModels},...a.filter(e=>e.deprecated)]},providers:{title:c.languageModels.branches.providers.label,description:c.languageModels.branches.providers.description,items:t},openSourceModels:{title:c.languageModels.branches.openSourceModels.label,description:c.languageModels.branches.openSourceModels.description,items:c.languageModels.branches.openSourceModels.defaultLeaves.map(e=>({label:e.label,type:"link",href:e.href,size:"sm",Icon:e.Icon,highlighted:e.highlighted}))},evaluations:{title:c.languageModels.branches.evaluations.label,description:c.languageModels.branches.evaluations.description,items:[...c.languageModels.branches.evaluations.defaultLeaves.filter(e=>!e.deprecated).map(e=>({label:e.label,type:"link",href:e.href,size:"sm",highlighted:e.highlighted,change:e.change,logo:e.logo,Icon:e.Icon})),{type:"separator",label:i.nav.sections.olderEvaluations},...c.languageModels.branches.evaluations.defaultLeaves.filter(e=>e.deprecated).map(e=>({label:e.label,type:"link",href:e.href,size:"sm",highlighted:e.highlighted,change:e.change,logo:e.logo,Icon:e.Icon}))]}
1,capabilities:{title:c.languageModels.branches.capabilities.label,description:c.languageModels.branches.capabilities.description,items:[{...c.languageModels.branches.capabilities.intelligenceIndexLeaf,type:"link",size:"sm"},...c.languageModels.branches.capabilities.defaultLeaves.map(e=>({label:e.label,type:"link",href:e.href,size:"sm",Icon:e.Icon,highlighted:e.highlighted,change:e.change}))]},...c.languageModels.branches.cyber&&{cyber:{title:c.languageModels.branches.cyber.label,items:[{...c.languageModels.branches.cyber.cyberIndexLeaf,type:"link",size:"sm"},...c.languageModels.branches.cyber.defaultLeaves.map(e=>({label:e.label,type:"link",href:e.href,size:"sm",highlighted:e.highlighted,change:e.change,logo:e.logo,Icon:e.Icon}))]}},multilingualCapabilities:{title:c.languageModels.branches.multilingualCapabilities.label,description:c.languageModels.branches.multilingualCapabilities.description,items:c.languageModels.branches.multilingualCapabilities.defaultLeaves.map(e=>({label:e.label,type:"link",href:e.href,size:"sm",Icon:e.Icon,emoji:e.emoji,highlighted:e.highlighted}))},imageGeneration:{title:c.speechImageAndVideo.branches.imageGeneration.label,description:i.nav.sections.keyLinks,items:[...c.speechImageAndVideo.branches.imageGeneration.defaultLeaves.map(e=>({label:e.label,type:"link",href:e.href,size:"sm",Icon:e.Icon,highlighted:e.highlighted,trackEvent:e.trackEvent})),{type:"separator",label:c.speechImageAndVideo.branches.imageGeneration.description},...l]},speechToSpeech:{title:c.speechImageAndVideo.branches.speechToSpeech.label,description:c.speechImageAndVideo.branches.speechToSpeech.description,items:c.speechImageAndVideo.branches.speechToSpeech.defaultLeaves.map(e=>({label:e.label,type:"link",href:e.href,size:"sm",Icon:e.Icon,highlighted:e.highlighted,trackEvent:e.trackEvent}))},speechToText:{title:c.speechImageAndVideo.branches.speechToText.label,description:c.speechImageAndVideo.branches.speechToText.description,items:[{type:"separator",label:i.nav.sections.compareModels},...c.speechImageAndVideo.branches.speechToText.defaultLeaves.map(e=>({label:e.label,type:"link",href:e.href,size:"sm",Icon:e.Icon,highlighted:e.highlighted,change:e.change})),{type:"separator",label:i.nav.sections.providers},...r]},textToSpeech:{title:c.speechImageAndVideo.branches.textToSpeech.label,description:i.nav.sections.keyLinks,items:[...c.speechImageAndVideo.branches.textToSpeech.defaultLeaves.map(e=>({label:e.label,type:"link",href:e.href,size:"sm",Icon:e.Icon,highlighted:e.highlighted})),{type:"separator",label:c.speechImageAndVideo.branches.textToSpeech.description},...n]},videoGeneration:{title:c.speechImageAndVideo.branches.videoGeneration.label,description:i.nav.sections.keyLinks,items:[...c.speechImageAndVideo.branches.videoGeneration.defaultLeaves.map(e=>({label:e.label,type:"link",href:e.href,size:"sm",Icon:e.Icon,highlighted:e.highlighted,change:"change"in e?e.change:void 0,changeVariant:"changeVariant"in e?e.changeVariant:void 0})),{type:"separator",label:c.speechImageAndVideo.branches.videoGeneration.description},...o]},musicGeneration:{title:c.speechImageAndVideo.branches.musicGeneration.label,description:i.nav.sections.keyLinks,items:c.speechImageAndVideo.branches.musicGeneration.defaultLeaves.map(e=>({label:e.label,type:"link",href:e.href,size:"sm",Icon:e.Icon,highlighted:e.highlighted}))},tools:{title:c.languageModels.branches.tools.label,description:c.languageModels.branches.tools.description,items:c.languageModels.branches.tools.defaultLeaves.map(e=>({label:e.label,type:"link",href:e.href,size:"sm",Icon:e.Icon,highlighted:e.highlighted}))}}})(h,b,y,k,A,N,E,i,c),[h,b,y,k,A,N,E,i,c]),V=(0,u.useMemo)(()=>(function(e,a,t,l,r,n,o,s,i){let c=i.nav.config,d=al({locale:s,messages:i}),u=[{key:"modelsWithProviders",description:void 0,items:a.filter(e=>!e.deprecated)},{key:"olderModelsWithProviders",description:i.nav.sections.olderModels,items:a.filter(e=>e.deprecated)}];return[{label:d.languageModels.label,type:"expandable",menuId:d.languageModels.menuId,href:d.languageModels.href,grouped:!0,secondaryItems:[{type:"submenu",submenuId:d.languageModels.branches.models.menuId,label:d.languageModels.branches.models.label,href:d.languageModels.branches.models.href,search:d.languageModels.branches.models.search,tertiarySections:[{key:"models",items:[...d.languageModels.branches.models.defaultLeaves,...e.filter(e=>!e.deprecated)]},{key:"olderModels",description:i.nav.sections.olderModels,items:e.filter(e=>e.deprecated)}]},{type:"submenu",submenuId:d.languageModels.branches.modelsWithProviders.menuId,label:d.languageModels.branches.modelsWithProviders.label,search:d.languageModels.branches.modelsWithProviders.search,tertiarySections:u},{type:"submenu",submenuId:d.languageModels.branches.providers.menuId,label:d.languageModels.branches.providers.label,tertiarySections:[{key:"providers",description:d.languageModels.branches.providers.description,items:t}]},{type:"submenu",submenuId:d.languageModels.branches.openSourceModels.menuId,label:d.languageModels.branches.openSourceModels.label,href:d.languageModels.branches.openSourceModels.href,tertiarySections:[{key:"openSourceModels",description:d.languageModels.branches.openSourceModels.description,items:[...d.languageModels.branches.openSourceModels.defaultLeaves]}]},{type:"submenu",submenuId:d.languageModels.branches.evaluations.menuId,label:d.languageModels.branches.evaluations.label,href:d.languageModels.branches.evaluations.href,tertiarySections:[{key:"evaluations",description:d.languageModels.branches.evaluations.description,items:d.languageModels.branches.evaluations.defaultLeaves.filter(e=>!e.deprecated)},{key:"olderEvaluations",description:i.nav.sections.olderEvaluations,items:d.languageModels.branches.evaluations.defaultLeaves.filter(e=>e.deprecated)}]},{type:"submenu",submenuId:d.languageModels.branches.capabilities.menuId,label:d.languageModels.branches.capabilities.label,href:d.languageModels.branches.capabilities.href,tertiarySections:[{key:"intelligenceIndex",items:[d.languageModels.branches.capabilities.intelligenceIndexLeaf]},{key:"capabilities",items:[...d.languageModels.branches.capabilities.defaultLeaves]}]},...d.languageModels.branches.cyber?[{type:"submenu",submenuId:d.languageModels.branches.cyber.menuId,label:d.languageModels.branches.cyber.label,change:d.languageModels.branches.cyber.change,tertiarySections:[{key:"cyberIndex",items:[d.languageModels.branches.cyber.cyberIndexLeaf]},{key:"cyber",items:[...d.languageModels.branches.cyber.defaultLeaves]}]}]:[],{type:"submenu",submenuId:d.languageModels.branches.multilingualCapabilities.menuId,href:d.languageModels.branches.multilingualCapabilities.href,label:d.languageModels.branches.multilingualCapabilities.label,tertiarySections:[{key:"multilingualCapabilities",description:d.languageModels.branches.multilingualCapabilities.description,items:[...d.languageModels.branches.multilingualCapabilities.defaultLeaves]}]},{type:"submenu",submenuId:d.languageModels.branches.tools.menuId,label:d.languageModels.branches.tools.label,tertiarySections:[{key:"tools",description:d.languageModels.branches.tools.description,items:[...d.languageModels.branches.tools.defaultLeaves]}]}]}
1,{label:d.agents.label,type:"expandable",menuId:d.agents.menuId,href:d.agents.href,grouped:!0,secondaryItems:[{type:"link",label:d.agents.branches.coding.label,href:d.agents.branches.coding.href},{type:"link",label:d.agents.branches.searchApi.label,href:d.agents.branches.searchApi.href},{type:"link",label:d.agents.branches.chatbots.label,href:d.agents.branches.chatbots.href}]},{label:d.speechImageAndVideo.label,type:"expandable",menuId:d.speechImageAndVideo.menuId,href:d.speechImageAndVideo.href,grouped:!0,secondaryItems:[{type:"submenu",submenuId:d.speechImageAndVideo.branches.imageGeneration.menuId,label:d.speechImageAndVideo.branches.imageGeneration.label,href:d.speechImageAndVideo.branches.imageGeneration.href,search:d.speechImageAndVideo.branches.imageGeneration.search,tertiarySections:[{key:"textToImage",description:i.nav.sections.keyLinks,items:[...d.speechImageAndVideo.branches.imageGeneration.defaultLeaves]},{key:"imageModelFamilies",description:d.speechImageAndVideo.branches.imageGeneration.description,items:l}]},{type:"submenu",submenuId:d.speechImageAndVideo.branches.speechToSpeech.menuId,label:d.speechImageAndVideo.branches.speechToSpeech.label,href:d.speechImageAndVideo.branches.speechToSpeech.href,tertiarySections:[{key:"speechToSpeech",description:i.nav.sections.keyLinks,items:[...d.speechImageAndVideo.branches.speechToSpeech.defaultLeaves]}]},{type:"submenu",submenuId:d.speechImageAndVideo.branches.speechToText.menuId,label:d.speechImageAndVideo.branches.speechToText.label,href:d.speechImageAndVideo.branches.speechToText.href,search:d.speechImageAndVideo.branches.speechToText.search,tertiarySections:[{key:"speechToTextModels",description:i.nav.sections.compareModels,items:[...d.speechImageAndVideo.branches.speechToText.defaultLeaves]},{key:"speechToTextProviders",description:i.nav.sections.providers,items:r}]},{type:"submenu",submenuId:d.speechImageAndVideo.branches.textToSpeech.menuId,label:d.speechImageAndVideo.branches.textToSpeech.label,href:d.speechImageAndVideo.branches.textToSpeech.href,search:d.speechImageAndVideo.branches.textToSpeech.search,tertiarySections:[{key:"textToSpeech",description:i.nav.sections.keyLinks,items:[...d.speechImageAndVideo.branches.textToSpeech.defaultLeaves]},{key:"textToSpeechFamilies",description:d.speechImageAndVideo.branches.textToSpeech.description,items:n}]},{type:"submenu",submenuId:d.speechImageAndVideo.branches.videoGeneration.menuId,label:d.speechImageAndVideo.branches.videoGeneration.label,href:d.speechImageAndVideo.branches.videoGeneration.href,search:d.speechImageAndVideo.branches.videoGeneration.search,tertiarySections:[{key:"video",description:i.nav.sections.keyLinks,items:[...d.speechImageAndVideo.branches.videoGeneration.defaultLeaves]},{key:"videoModelFamilies",description:d.speechImageAndVideo.branches.videoGeneration.description,items:o}]},{type:"submenu",submenuId:d.speechImageAndVideo.branches.musicGeneration.menuId,label:d.speechImageAndVideo.branches.musicGeneration.label,href:d.speechImageAndVideo.branches.musicGeneration.href,tertiarySections:[{key:"music",description:i.nav.sections.keyLinks,items:[...d.speechImageAndVideo.branches.musicGeneration.defaultLeaves]}]}]},{label:d.inference.label,type:"expandable",menuId:"inference",href:d.inference.href,grouped:!0,secondaryItems:[{type:"submenu",submenuId:"hardwareInferenceStacks",label:c.inference.hardwareInferenceStacks,href:d.inference.href,tertiarySections:[{key:"computeScales",description:c.inference.chooseComputeScale,items:[{label:c.inference.datacenter,href:"/hardware-inference-stack/datacenter",Icon:eq.A},{label:c.inference.workstation,href:e4.fP?"/hardware-inference-stack/laptops-workstations":d.inference.href,Icon:e1.A,...!e4.fP&&{suffix:" \xb7 ".concat(c.inference.workstationEta)}},{label:c.inference.portableDevices,href:"/hardware-inference-stack/mobile-phones",Icon:e2.A}]}]},{type:"submenu",submenuId:"serverlessApis",label:c.inference.serverlessApis,search:d.languageModels.branches.modelsWithProviders.search,tertiarySections:u}]},{label:d.trends.label,type:"single",href:d.trends.href,grouped:!1}
1,{label:d.leaderboards.label,type:"expandable",menuId:d.leaderboards.menuId,href:d.leaderboards.href,grouped:!0,secondaryItems:[{type:"link",label:d.leaderboards.branches.languageModels.label,href:d.leaderboards.branches.languageModels.href},{type:"link",label:d.leaderboards.branches.modelApiEndpoints.label,href:d.leaderboards.branches.modelApiEndpoints.href},{type:"link",label:d.leaderboards.branches.textToImage.label,href:d.leaderboards.branches.textToImage.href},{type:"link",label:d.leaderboards.branches.imageEditing.label,href:d.leaderboards.branches.imageEditing.href},{type:"link",label:d.leaderboards.branches.video.label,href:d.leaderboards.branches.video.href},{type:"link",label:d.leaderboards.branches.imageToVideo.label,href:d.leaderboards.branches.imageToVideo.href},{type:"link",label:d.leaderboards.branches.videoEditing.label,href:d.leaderboards.branches.videoEditing.href},{type:"link",label:d.leaderboards.branches.speechToText.label,href:d.leaderboards.branches.speechToText.href},{type:"link",label:d.leaderboards.branches.textToSpeech.label,href:d.leaderboards.branches.textToSpeech.href},{type:"link",label:d.leaderboards.branches.music.label,href:d.leaderboards.branches.music.href}]},{label:d.about.label,type:"expandable",menuId:d.about.menuId,href:d.about.href,grouped:!0,secondaryItems:[{type:"link",label:d.about.branches.aboutUs.label,href:d.about.branches.aboutUs.href,change:d.about.branches.aboutUs.change},{type:"link",label:d.about.branches.methodology.label,href:d.about.branches.methodology.href},{type:"link",label:d.about.branches.articles.label,href:d.about.branches.articles.href},{type:"link",label:d.about.branches.changelog.label,href:d.about.branches.changelog.href},...d.about.branches.forGovernment?[{type:"link",label:d.about.branches.forGovernment.label,href:d.about.branches.forGovernment.href}]:[],{type:"link",label:d.about.branches.dataApi.label,href:d.about.branches.dataApi.href},{type:"link",label:d.about.branches.brandKit.label,href:d.about.branches.brandKit.href},{type:"link",label:d.about.branches.careers.label,href:d.about.branches.careers.href},{type:"link",label:d.about.branches.contact.label,href:d.about.branches.contact.href},{type:"link",label:d.about.branches.pricing.label,href:d.about.branches.pricing.href}]}]})(g,f,x,I,M,_,L,i,c),[g,f,x,I,M,_,L,i,c]),z=(0,u.useMemo)(()=>(function(e,a,t,l,r,n,o,s,i,c){let d=al({locale:i,messages:c}),u=new Map,h=(0,O.HM)({locale:i,messages:c.nav}),g=e=>{var a,t,l;let r=e.href;(!u.has(r)||e.priority)&&u.set(r,{id:r,label:e.label,href:e.href,category:e.globalSearchMetadata.category,subcategory:e.globalSearchMetadata.subcategory,media:null!=(a=e.media)?a:{type:"icon",Icon:eK.A},highlighted:e.highlighted,description:e.description,keywords:[...e.globalSearchMetadata.keywords],releaseDate:null!=(t=e.releaseDate)?t:null,deprecated:null!=(l=e.deprecated)&&l})};
1for(let i of Object.values(d)){if("link"===i.type){g({label:i.label,href:i.href,globalSearchMetadata:i.globalSearchMetadata,media:void 0,highlighted:!1,description:void 0});continue}switch(i.menuId){case"languageModels":{let{models:r,modelsWithProviders:n,providers:o,openSourceModels:s,evaluations:u,capabilities:p,cyber:m,multilingualCapabilities:b}=i.branches;for(let e of r.defaultLeaves)g({label:e.label,href:e.href,globalSearchMetadata:r.globalSearchMetadata,media:e.Icon?{type:"icon",Icon:e.Icon}:void 0,highlighted:e.highlighted,description:void 0});for(let a of e)g({label:a.label,href:a.href,globalSearchMetadata:r.globalSearchMetadata,media:a.logo?{type:"logo",logo:a.logo}:void 0,highlighted:!1,description:h("search.descriptions.performanceAndAnalysis",{modelName:a.label}),releaseDate:a.releaseDate,deprecated:a.deprecated});for(let e of a)g({label:e.label,href:e.href,globalSearchMetadata:{category:"models",subcategory:"Model Creators",keywords:["creator","lab","developer"]},media:e.logo?{type:"logo",logo:e.logo}:void 0,highlighted:!1,description:h("search.descriptions.creatorModels",{creatorName:e.label})});for(let e of t)g({label:e.label,href:e.href,globalSearchMetadata:n.globalSearchMetadata,media:e.logo?{type:"logo",logo:e.logo}:void 0,highlighted:!1,description:h("search.descriptions.compareProviders",{modelName:e.label}),releaseDate:e.releaseDate,deprecated:e.deprecated});for(let e of l)g({label:e.label,href:e.href,globalSearchMetadata:o.globalSearchMetadata,media:e.logo?{type:"logo",logo:e.logo}:void 0,highlighted:!1,description:h("search.descriptions.performanceAndPricing",{providerName:e.label})});for(let e of s.defaultLeaves)g({label:e.label,href:e.href,globalSearchMetadata:s.globalSearchMetadata,media:e.Icon?{type:"icon",Icon:e.Icon}:void 0,highlighted:e.highlighted,description:void 0});for(let e of u.defaultLeaves)g({label:e.label,href:e.href,globalSearchMetadata:{...u.globalSearchMetadata,keywords:[...u.globalSearchMetadata.keywords,...e.keywords]},media:e.logo?{type:"logo",logo:e.logo}:e.Icon?{type:"icon",Icon:e.Icon}:void 0,highlighted:e.highlighted,description:e.description});for(let e of p.defaultLeaves)g({label:e.label,href:e.href,globalSearchMetadata:{...d.languageModels.branches.capabilities.globalSearchMetadata,keywords:[...d.languageModels.branches.capabilities.globalSearchMetadata.keywords,...e.keywords]},media:{type:"icon",Icon:e.Icon},highlighted:e.highlighted,description:h("search.descriptions.compareCapabilities",{capabilityName:e.n
1ame})});if(m)for(let e of m.defaultLeaves)g({label:e.label,href:e.href,globalSearchMetadata:{...m.globalSearchMetadata,keywords:[...m.globalSearchMetadata.keywords,...e.keywords]},media:e.logo?{type:"logo",logo:e.logo}:e.Icon?{type:"icon",Icon:e.Icon}:void 0,highlighted:e.highlighted,description:e.description});for(let e of b.defaultLeaves)g({label:e.label,href:e.href,globalSearchMetadata:b.globalSearchMetadata,media:e.Icon?{type:"icon",Icon:e.Icon}:{type:"emoji",emoji:e.emoji},highlighted:e.highlighted,description:h("search.descriptions.compareLanguageSupport",{languageName:e.label})});for(let e of i.branches.tools.defaultLeaves)e.hideFromSearch||g({label:e.label,href:e.href,globalSearchMetadata:i.branches.tools.globalSearchMetadata,media:{type:"icon",Icon:e.Icon},highlighted:e.highlighted,description:void 0});g({label:c.nav.search.labels.compareModels,href:"/models/releases/comparisons",globalSearchMetadata:{...i.branches.tools.globalSearchMetadata,keywords:["compare","release comparison tool","llm","versus","vs"]},media:{type:"icon",Icon:e$.A},highlighted:!1,description:void 0});break}case"agents":for(let e of Object.values(i.branches))g({label:e.label,href:e.href,globalSearchMetadata:e.globalSearchMetadata,media:void 0,highlighted:!1,description:void 0});break;case"speechImageAndVideo":{for(let e of Object.values(i.branches))g({label:e.label,href:e.href,globalSearchMetadata:e.globalSearchMetadata,media:void 0,highlighted:!1,description:void 0});let{imageGeneration:e,speechToSpeech:a,speechToText:t,textToSpeech:l,videoGeneration:c,musicGeneration:d}=i.branches;for(let a of e.defaultLeaves)g({label:a.label,href:a.href,globalSearchMetadata:e.globalSearchMetadata,media:{type:"icon",Icon:a.Icon},highlighted:a.highlighted,description:void 0,priority:a.Icon===ae});for(let e of a.defaultLeaves)g({label:e.label,href:e.href,globalSearchMetadata:a.globalSearchMetadata,media:{type:"icon",Icon:e.Icon},highlighted:e.highlighted,description:void 0});for(let a of r)g({label:a.label,href:a.href,globalSearchMetadata:e.globalSearchMetadata,media:a.logo?{type:"logo",logo:a.logo}:void 0,highlighted:!1,description:h("search.descriptions.imageGenerationProviders",{imageGenerationFamilyName:a.label})});for(let e of t.defaultLeaves)g({label:e.label,href:e.href,globalSearchMetadata:t.globalSearchMetadata,media:{type:"icon",Icon:e.Icon},highlighted:e.highlighted,description:void 0});for(let e of n)g({label:e.label,href:e.href,globalSearchMetadata:t.globalSearchMetadata,media:e.logo?{type:"logo",logo:e.logo}:void 0,highlighted:!1,description:h("search.descriptions.speechRecognitionProviders",{speechRecognitionFamilyName:e.label})});for(let e of l.defaultLeaves)g({label:e.label,href:e.href,globalSearchMetadata:l.globalSearchMetadata,media:{type:"icon",Icon:e.Icon},highlighted:e.highlighted,description:void 0});for(let e of o)g({label:e.label,href:e.href,globalSearchMetadata:l.globalSearchMetadata,media:e.logo?{type:"logo",logo:e.logo}:void 0,highlighted:!1,description:h("search.descriptions.voiceSynthesisProviders",{voiceSynthesisFamilyName:e.label})});for(let e of c.defaultLeaves)g({label:e.label,href:e.href,globalSearchMetadata:c.globalSearchMetadata,media:{type:"icon",Icon:e.Icon},highlighted:e.highlighted,description:void 0,priority:e.Icon===ae});for(let e of s)g({label:e.label,href:e.href,globalSearchMetadata:c.globalSearchMetadata,media:e.logo?{type:"logo",logo:e.logo}:void 0,highlighted:!1,description:h("search.descriptions.videoGenerationProviders",{videoGenerationFamilyName:e.label})});for(let e of d.defaultLeaves)g({label:e.label,href:e.href,globalSearchMetadata:d.globalSearchMetadata,media:{type:"icon",Icon:e.Icon},highlighted:e.highlighted,description:void 0,priority:e.Icon===ae||e.href===d.href});break}case"leaderboards":for(let e of Object.values(i.branches))g({label:e.label,href:e.href,globalSearchMetadata:e.globalSearchMetadata,media:{type:"icon",Icon:e3.A},highlighted:!1,description:void 0});break;case"about":for(let e of(g({label:eL.H.endpointAccuracyIndex,href:"/methodology/endpoint-accuracy-index",globalSearchMetadata:{...aa,keywords:["endpoint accuracy","methodology"]},media:{type:"icon",Icon:eX.A},highlighted:!1,description:void 0}),Object.values(i.branches)))g({label:e.label,href:e.href,globalSearchMetadata:aa,media:{type:"icon",Icon:eX.A},highlighted:!1,description:void 0});break;default:throw new R.J(i)}}return Array.from(u.values())})(p,m,v,w,S,j,T,C,i,c),[p,m,v,w,S,j,T,C,i,c]),D=(0,u.useMemo)(()=>new q.A(z,{keys:an,threshold:.3,ignoreLocation:!0,includeScore:!0}),[z]),U=(0,u.useMemo)(()=>ao.map(e=>z.find(a=>a.id===e)).filter(e=>null!=e),[z]),[B,G]=(0,u.useState)(null);(0,u.useEffect)(()=>{let e=e=>{if(B)return;let a=document.activeElement,t=a&&("INPUT"===a.tagName||"TEXTAREA"===a.tagName||a.isContentEditable);if((e.metaKey||e.ctrlKey)&&"k"===e.key||"/"===e.key&&!t){e.preventDefault(),G(window.innerWidth>=1280?"desktop":"mobile");return}};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[B]);let H=(0,u.useCallback)(e=>{G(e?"mobile":null)},[]),F=(0,u.useCallback)(e=>{G(e?"desktop":null)},[]);return(0,l.jsxs)("div",{className:"z-50 w-full sticky top-6 -mb-9",children:[(0,l.jsx)("div",{className:"container xl:hidden",children:(0,l.jsx)(ej,{config:P,fuse:D,isSearchOpen:"mobile"===B,onSearchOpenChange:H,defaultItems:U,locale:i,messages:c.nav})}),(0,l.jsx)("div",{className:"container hidden xl:block",children:(0,l.jsx)(eu,{configs:V,fuse:D,isSearchOpen:"desktop"===B,onSearchOpenChange:F,defaultItems:U,locale:i,messages:c.nav})})]})}},93834:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>o});var l,r=t(96040);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var l in t)({}).hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e}).apply(null,arguments)}let o=function(e){return r.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),l||(l=r.createElement("path",{fill:"currentColor",d:"M13.982 16h1.996v-3.997h-3.992V16zM7.984 0 3.992 3.997H0v3.998h5.988L9.98 3.997h2.006V0zM7.984 7.995l-3.992 4.008H0V16h5.988l3.992-3.997h2.006V7.995zM15.978 7.995V3.997h-3.992v3.998h3.992"})))}},93941:(e,a,t)=>{"use strict";t.d(a,{H:()=>r});
1var l=t(33399);let r={aaBriefcaseElo:"AA-Briefcase Elo",aaOmniscienceAccuracy:"AA-Omniscience Accuracy",aaOmniscienceHallucinationRate:"AA-Omniscience Hallucination Rate",aaOmniscienceIndex:"AA-Omniscience Index",activeParametersBillionsLogScale:"Active Parameters (Billions, Log Scale)",agenticPerformanceTauVoiceScorePercentage:"Agentic Performance (\uD835\uDF0F-Voice) Score (%)",allPassRate:"All-pass Rate",artificialAnalysisCodingAgentIndex:"Artificial Analysis Coding Agent Index",artificialAnalysisIntelligenceIndex:"Artificial Analysis Intelligence Index",artificialAnalysisOpennessIndex:"Artificial Analysis Openness Index",artificialAnalysisWordErrorRateIndexPercentage:"Artificial Analysis Word Error Rate Index (%)",attemptRate:"Attempt Rate",automationBenchAverageViolationsPerTask:"AutomationBench-AA Average Violations per Task",automationBenchObjectivesCompleted:"AutomationBench-AA Objectives Completed",automationBenchObjectivesPerViolation:"AutomationBench-AA Objectives per Violation",automationBenchOutputTokensLogScale:"Output Tokens Used in AutomationBench-AA (Log Scale)",automationBenchScore:"AutomationBench-AA Score",automationBenchTasksCompleted:"AutomationBench-AA Tasks Completed",averageConversationAudioDurationMinutes:"Average Conversation Audio Duration (minutes)",averageCostPerTaskBigBenchAudioSubsetUsd:"Average Cost per Task (Big Bench Audio subset, USD)",averageTurnsPerTask:"Average Turns per Task",backchannelHandlingPercentage:"Backchannel Handling (%)",charactersPerSecond:"Characters Per Second",combinedCriteriaAndHallucinationsPerTaskScore:"Combined Criteria and Hallucination Score",computeProxyActiveParamsTokens:"Compute Proxy (Active Params \xd7 Tokens)",contextWindowTokens:"Context Window (Tokens)",conversationalDynamicsFullDuplexBenchSubsetScorePercentage:"Conversational Dynamics (Full Duplex Bench subset) Score (%)",costPerHourOfInputAudioBigBenchAudioSubsetUsd:"Cost per Hour of Input Audio (Big Bench Audio subset, USD)",costPerHourOfInputAudioUsd:"Cost per Hour of Input Audio (USD)",costPerIntelligenceIndexTaskUsd:"Cost per Intelligence Index Task (USD)",costPerTaskUsdLogScale:"Cost per Task (USD, Log Scale)",costToRunIntelligenceIndexUsd:"Cost to Run Intelligence Index (USD)",criterionPassRate:"Criterion Pass Rate",endToEndResponseTime:"End-to-End Response Time",endpointAccuracyIndex:"Endpoint Accuracy Index",featureScore:"Feature Score",gatedAllPassRate:"Gated All-pass Rate",gatedNearPassRate:"Gated Near-Pass Rate",gdpvalAaElo:t(66861).PB,generationTimeSeconds:"Generation Time (Seconds)",hallucinationsPerTask:"Hallucinations per Task",intelligenceIndex:"Intelligence Index",interruptionHandlingPercentage:"Interruption Handling (%)",largeModels:"Large Models (>".concat(l.S0.formatted,")"),latencyTimeToFirstToken:"Latency (Time to First Token)",materialHallucinationsPerTask:"Material Hallucinations per Task",mediumModels:"Medium Models (".concat(l.My.formatted,"-").concat(l.S0.formatted,")"),modelSizeBillionParameters:"Model Size (Billion Parameters)",monthlyPriceUsd:"Monthly Price (USD)",multilingualIndexAverage:"Multilingual Index: Average",outputSpeedOutputTokensPerSecond:"Output Speed (Output Tokens per Second)",outputTokensUsedInAaOmniscienceIndexLogScale:"Output Tokens Used in AA-Omniscience Index (Log Scale)",pauseHandlingPercentage:"Pause Handling (%)",price:"Price",priceLogScale:"Price (Log Scale)",pricePerHourOfInputAudioUsd:"Price per Hour of Input Audio (USD)",pricePerHourOfOutputAudioUsd:"Price per Hour of Output Audio (USD)",priceUsdPerMTokens:"Price (USD per M Tokens)",priceUsdPerMTokensLogScaleMoreExpensiveToCheaper:"Price (USD per M Tokens, Log Scale, More Expensive to Cheaper)",arenaPreferenceElo:"Arena Preference Elo",pronunciationRobustnessPercentPass:"Pronunciation Robustness (% Pass)",qualityElo:"Quality Elo",releaseDate:"Release Date",score:"Score",scorePercentage:"Score (%)",secondsToOutput500TokensIncludingReasoningModelThinkingTime:"Seconds to Output 500 Tokens (Including Reasoning Model 'Thinking' Time)",smallModels:"Small Models (".concat(l.XL.formatted,"-").concat(l.My.formatted,")"),speechReasoningBigBenchAudioScorePercentage:"Speech Reasoning (Big Bench Audio) Score (%)",speedFactor:"Speed Factor",timePerIntelligenceIndexTaskMinutes:"Time per Intelligence Index Task (Minutes)",timeToFirstAudioSeconds:"Time to First Audio (seconds)",tinyModels:"Tiny Models (≤".concat(l.XL.formatted,")"),totalCostUsd:"Total Cost (USD)",totalParametersBillionsLogScale:"Total Parameters (Billions, Log Scale)",totalTokens:"Total Tokens",turnTakingPercentage:"Turn Taking (%)",ungatedAllPassRate:"Ungated All-pass Rate"}},96276:(e,a,t)=>{"use strict";t.d(a,{LA:()=>o,Qc:()=>s,Rh:()=>g,Ub:()=>h,bZ:()=>d,d9:()=>c,hK:()=>i,i7:()=>l,qE:()=>u,t0:()=>n,wY:()=>r});let l=20,r=24,n=11,o=105,s=24,i=36,c=30,d="12.5%",u=320,h=200,g=.25},96790:(e,a,t)=>{"use strict";t.d(a,{Separator:()=>s});
1var l=t(58212),r=t(96040),n=t(91362),o=t(27724);let s=r.forwardRef((e,a)=>{let{className:t,orientation:r="horizontal",decorative:s=!0,...i}=e;return(0,l.jsx)(n.b,{ref:a,decorative:s,orientation:r,className:(0,o.cn)("shrink-0 bg-border","horizontal"===r?"h-[1px] w-full":"h-full w-[1px]",t),...i})});s.displayName=n.b.displayName},97369:(e,a,t)=>{"use strict";t.d(a,{Z:()=>i});var l=t(36772),r=t(98148),n=t(55314),o=t(58872),s=t(27757);function i(){var e,a;let t,i,d,u,h,g,p=(0,l.c)(22),m=(0,n.sf)(),{data:b,isPending:f}=o.y.useSession();p[0]!==m?(t={onError(e){m.captureException(e,{context:"useUsersHighestPlan"})}},p[0]=m,p[1]=t):t=p[1];let{data:v,error:y,isLoading:x,mutate:w}=(0,r.Ay)(null!=b?"/api/me/plan":null,c,t),k=!f&&null==b||null!=v||null!=y,I=null!=(e=null==v?void 0:v.plan)?e:"free",S=null!=(a=null==v?void 0:v.hasSeatOpportunities)&&a,A=s.NB[I];p[2]!==I||p[3]!==k?(i=k&&(0,s.yZ)({current:I,required:"plus"}),p[2]=I,p[3]=k,p[4]=i):i=p[4],p[5]!==I||p[6]!==k?(d=k&&(0,s.yZ)({current:I,required:"pro"}),p[5]=I,p[6]=k,p[7]=d):d=p[7];let M=f||x;return p[8]!==I||p[9]!==k?(u=e=>k&&(0,s.jI)(I,e),p[8]=I,p[9]=k,p[10]=u):u=p[10],p[11]!==w?(h=()=>w(),p[11]=w,p[12]=h):h=p[12],p[13]!==I||p[14]!==S||p[15]!==A.name||p[16]!==i||p[17]!==d||p[18]!==M||p[19]!==u||p[20]!==h?(g={currentPlan:I,planName:A.name,isPlusOrHigher:i,isProOrHigher:d,hasSeatOpportunities:S,isLoading:M,hasFeatureAccess:u,invalidate:h},p[13]=I,p[14]=S,p[15]=A.name,p[16]=i,p[17]=d,p[18]=M,p[19]=u,p[20]=h,p[21]=g):g=p[21],g}async function c(e){let a=await fetch(e);if(!a.ok)throw Error("Failed to fetch plan");return await a.json()}},98495:(e,a,t)=>{"use strict";t.d(a,{l:()=>n});var l=t(36772),r=t(96040);function n(e,a,t){let n,o,s,i,c,d=(0,l.c)(10),[u,h]=(0,r.useState)(e),[g,p]=(0,r.useState)(e),m=(0,r.useRef)(t);return d[0]!==t?(n=()=>{m.current=t},o=[t],d[0]=t,d[1]=n,d[2]=o):(n=d[1],o=d[2]),(0,r.useEffect)(n,o),d[3]!==a||d[4]!==u?(s=()=>{let e=setTimeout(()=>{p(u),m.current&&m.current(u)},a);return()=>{clearTimeout(e)}},i=[u,a],d[3]=a,d[4]=u,d[5]=s,d[6]=i):(s=d[5],i=d[6]),(0,r.useEffect)(s,i),d[7]!==g||d[8]!==u?(c={value:u,debouncedValue:g,setValue:h},d[7]=g,d[8]=u,d[9]=c):c=d[9],c}}},e=>{e.O(0,[70728,23332,47320,39780,67770,72450,36863,6197,86073,85716,71279,61082,83567,98148,66498,10375,6868,18176,66861,16633,4282,28037,28675,77358],()=>e(e.s=1041)),_N_E=e.O()}]);
2//# chunkId=01a0fa55-3ba7-7c11-8a55-0b768e1be569

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.