!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]="01a09e9c-68c3-7f70-ad05-5f598e395999")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,678915,e=>{"use strict";let r=(0,e.i(202913).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,r],678915)},191379,e=>{"use strict";let r=(0,e.i(202913).default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);e.s(["ArrowUpRight",0,r],191379)},222584,e=>{"use strict";let r=(0,e.i(202913).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,r])},379497,e=>{"use strict";var r=e.i(222584);e.s(["ChevronRight",()=>r.default])},697900,e=>{"use strict";let r=(0,e.i(202913).default)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);e.s(["DollarSign",0,r],697900)},956506,e=>{"use strict";var r=e.i(222666),t=e.i(505962),a=e.i(452473);let i=(0,e.i(207298).cva)("overflow-hidden rounded-lg border border-border bg-card text-card-foreground",{variants:{variant:{default:"",secondary:"",flat:"border-border/70",ghost:"border-none"}},defaultVariants:{variant:"default"}});e.s(["Card",0,function(e){let n,l,o,s,c,u,d=(0,t.c)(12);return d[0]!==e?({className:n,variant:s,ref:o,...l}=e,d[0]=e,d[1]=n,d[2]=l,d[3]=o,d[4]=s):(n=d[1],l=d[2],o=d[3],s=d[4]),d[5]!==n||d[6]!==s?(c=(0,a.cn)(i({variant:s}),n),d[5]=n,d[6]=s,d[7]=c):c=d[7],d[8]!==l||d[9]!==o||d[10]!==c?(u=(0,r.jsx)("div",{ref:o,className:c,...l}),d[8]=l,d[9]=o,d[10]=c,d[11]=u):u=d[11],u},"CardContent",0,function(e){let i,n,l,o,s,c=(0,t.c)(10);return c[0]!==e?({className:i,ref:l,...n}=e,c[0]=e,c[1]=i,c[2]=n,c[3]=l):(i=c[1],n=c[2],l=c[3]),c[4]!==i?(o=(0,a.cn)("p-6 pt-0",i),c[4]=i,c[5]=o):o=c[5],c[6]!==n||c[7]!==l||c[8]!==o?(s=(0,r.jsx)("div",{ref:l,className:o,...n}),c[6]=n,c[7]=l,c[8]=o,c[9]=s):s=c[9],s},"CardDescription",0,function(e){let i,n,l,o,s,c=(0,t.c)(10);return c[0]!==e?({className:i,ref:l,...n}=e,c[0]=e,c[1]=i,c[2]=n,c[3]=l):(i=c[1],n=c[2],l=c[3]),c[4]!==i?(o=(0,a.cn)("text-xs text-muted-foreground",i),c[4]=i,c[5]=o):o=c[5],c[6]!==n||c[7]!==l||c[8]!==o?(s=(0,r.jsx)("div",{ref:l,className:o,...n}),c[6]=n,c[7]=l,c[8]=o,c[9]=s):s=c[9],s},"CardFooter",0,function(e){let i,n,l,o,s,c=(0,t.c)(10);return c[0]!==e?({className:i,ref:l,...n}=e,c[0]=e,c[1]=i,c[2]=n,c[3]=l):(i=c[1],n=c[2],l=c[3]),c[4]!==i?(o=(0,a.cn)("flex items-center p-6 pt-0",i),c[4]=i,c[5]=o):o=c[5],c[6]!==n||c[7]!==l||c[8]!==o?(s=(0,r.jsx)("div",{ref:l,className:o,...n}),c[6]=n,c[7]=l,c[8]=o,c[9]=s):s=c[9],s},"CardHeader",0,function(e){let i,n,l,o,s,c=(0,t.c)(10);return c[0]!==e?({className:i,ref:l,...n}=e,c[0]=e,c[1]=i,c[2]=n,c[3]=l):(i=c[1],n=c[2],l=c[3]),c[4]!==i?(o=(0,a.cn)("flex flex-col gap-y-1.5 p-6",i),c[4]=i,c[5]=o):o=c[5],c[6]!==n||c[7]!==l||c[8]!==o?(s=(0,r.jsx)("div",{ref:l,className:o,...n}),c[6]=n,c[7]=l,c[8]=o,c[9]=s):s=c[9],s},"CardTitle",0,function(e){let i,n,l,o,s,c=(0,t.c)(10);return c[0]!==e?({className:i,ref:l,...n}=e,c[0]=e,c[1]=i,c[2]=n,c[3]=l):(i=c[1],n=c[2],l=c[3]),c[4]!==i?(o=(0,a.cn)("text-base font-semibold leading-snug",i),c[4]=i,c[5]=o):o=c[5],c[6]!==n||c[7]!==l||c[8]!==o?(s=(0,r.jsx)("div",{ref:l,className:o,...n}),c[6]=n,c[7]=l,c[8]=o,c[9]=s):s=c[9],s},"cardVariants",0,i])},712621,e=>{"use strict";var r=e.i(222666),t=e.i(505962),a=e.i(452473),i=e.i(191379),n=e.i(379684);e.s(["ExternalLink",0,function(e){let l,o,s,c,u,d,g,m,v,h,p,f=(0,t.c)(24);f[0]!==e?({children:l,className:o,icon:s,iconPosition:u,showExternalIcon:d,...c}=e,f[0]=e,f[1]=l,f[2]=o,f[3]=s,f[4]=c,f[5]=u,f[6]=d):(l=f[1],o=f[2],s=f[3],c=f[4],u=f[5],d=f[6]);let U=void 0===u?"end":u,w=void 0!==d&&d;f[7]!==s||f[8]!==w?(g=s??(w?(0,r.jsx)(i.ArrowUpRight,{className:"inline size-3 align-[-1px]"}):null),f[7]=s,f[8]=w,f[9]=g):g=f[9];let N=g;return f[10]!==o?(m=(0,a.cn)(n.LINK_CLASSES,"text-xs cursor-pointer",o),f[10]=o,f[11]=m):m=f[11],f[12]!==U||f[13]!==N?(v="start"===U&&N&&(0,r.jsx)("span",{className:"mr-0.5 inline-flex",children:N}),f[12]=U,f[13]=N,f[14]=v):v=f[14],f[15]!==U||f[16]!==N?(h="end"===U&&N&&(0,r.jsx)("span",{className:"ml-0.5 inline-flex",children:N}),f[15]=U,f[16]=N,f[17]=h):h=f[17],f[18]!==l||f[19]!==c||f[20]!==m||f[21]!==v||f[22]!==h?(p=(0,r.jsxs)("a",{className:m,...c,children:[v,l,h]}),f[18]=l,f[19]=c,f[20]=m,f[21]=v,f[22]=h,f[23]=p):p=f[23],p}])},557225,630056,e=>{"use strict";var r=e.i(222666),t=e.i(505962),a=e.i(452473),i=e.i(188363),n=e.i(687421),l=e.i(678998);function o(e){return e.toLowerCase()}let s=new Map([[o(n.ProviderName.OpenAI),{url:(0,l.getLocalIconUri)("OpenAI.svg"),className:"dark:invert"}],[o(n.ProviderName.Perplexity),{url:(0,l.getLocalIconUri)("Perplexity.png")}],[o(n.ProviderName.Poolside),{url:(0,l.getLocalIconUri)("poolside-logomark-solid-color.svg")}],[o(n.ProviderName.Perceptron),{url:(0,l.getFaviconUrl)("https://www.perceptron.inc")}],["voyageai",{url:(0,l.getFaviconUrl)("https://www.voyageai.com")}],[o(n.ProviderName.GoogleAIStudio),{url:(0,l.getLocalIconUri)("GoogleAIStudio.svg")}],[o(n.ProviderName.Anthropic),{url:(0,l.getLocalIconUri)("Anthropic.svg")}],[o(n.ProviderName.ClaudeOnAws),{url:(0,l.getLocalIconUri)("Anthropic.svg")}],[o(n.ProviderName.Cohere),{url:(0,l.getLocalIconUri)("Cohere.png")}],[o(n.ProviderName.Deepgram),{url:(0,l.getLocalIconUri)("Deepgram.svg"),className:"dark:invert"}],[o(n.ProviderName.DeepSeek),{url:(0,l.getLocalIconUri)("DeepSeek.png")}],[o(n.ProviderName.Together),{url:(0,l.getFaviconUrl)("https://www.together.ai/")}],[o(n.ProviderName.Infermatic),{url:(0,l.getFaviconUrl)("https://infermatic.ai/")}],[o(n.ProviderName.HuggingFace),{url:(0,l.getFaviconUrl)("https://huggingface.co/")}],[o(n.ProviderName.AI21),{url:(0,l.getFaviconUrl)("https://ai21.com/")}],[o(n.ProviderName.Featherless),{url:(0,l.getFaviconUrl)("https://featherless.ai/")}],[o(n.ProviderName.Reflection),{url:(0,l.getFaviconUrl)("https://railway.app/")}],[o(n.ProviderName.Inflection),{url:(0,l.getFaviconUrl)("https://inflection.ai/")}],[o(n.ProviderName.Minimax),{url:(0,l.getFaviconUrl)("https://minimaxi.com/")}],[o(n.ProviderName.Liquid),{url:(0,l.getFaviconUrl)("https://www.liquid.ai/"),className:"dark:invert"}],[o(n.ProviderName.Inception),{url:(0,l.getLocalIconUri)("Inception.svg"),className:"dark:invert"}],[o(n.ProviderName.Relace),{url:(0,l.getFaviconUrl)("https://www.relace.ai")}],[o(n.ProviderName.Sourceful),{url:(0,l.getFaviconUrl)("https://www.sourceful.com/")}],[o(n.ProviderName.BytePlus),{url:(0,l.getFaviconUrl)("https://www.byteplus.com")}],[o(n.ProviderName.Xiaomi),{url:(0,l.getFaviconUrl)("https://www.mi.com")}],["arcee-ai",{url:(0,l.getFaviconUrl)("https://www.arcee.ai")}],["fish-audio",{url:(0,l.getFaviconUrl)("https://fish.audio/")}],["z-ai",{url:(0,l.getFaviconUrl)("https://z.ai/"),className:"dark:invert"}],["moonshotai",{url:(0,l.getLocalIconUri)("MoonshotAI.png")}],["morph",{url:(0,l.getFaviconUrl)("https://morphllm.com")}],["qwen",{url:(0,l.getLocalIconUri)("Qwen.png")}],["google",{url:(0,l.getLocalIconUri)("GoogleGemini.svg")}],["microsoft",{url:(0,l.getLocalIconUri)("Microsoft.svg")}],["nousresearch",{url:(0,l.getFaviconUrl)("https://nousresearch.com/")}],["nvidia",{url:(0,l.getFaviconUrl)("https://nvidia.com/")}],["meta-llama",{url:(0,l.getLocalIconUri)("Meta.png")}],["meta",{url:(0,l.getLocalIconUri)("Meta.png")}],["databricks",{url:(0,l.getFaviconUrl)("https://databricks.com/")}],["openrouter",{url:(0,l.getLocalIconUri)("openrouter-glyph-light.svg"),darkUrl:(0,l.getLocalIconUri)("openrouter-glyph-dark.svg")}],["mistralai",{url:(0,l.getLocalIconUri)("Mistral.png")}],["x-ai",{url:(0,l.getFaviconUrl)("https://x.ai/")}],["amazon",{url:(0,l.getFaviconUrl)("https://nova.amazon.com/")}],["aion-labs",{url:(0,l.getFaviconUrl)("https://www.aionlabs.ai/")}],["allenai",{url:(0,l.getFaviconUrl)("https://allenai.org/")}],["switchpoint",{url:(0,l.getFaviconUrl)("https://switchpoint.dev/")}],["thedrummer",{url:(0,l.getLocalIconUri)("TheDrummer.png")}],["deepcogito",{url:(0,l.getFaviconUrl)("https://www.deepcogito.com/")}],["baidu",{url:(0,l.getFaviconUrl)("https://www.baidu.com/")}],["kwaipilot",{url:(0,l.getLocalIconUri)("Kwaipilot.png")}],["kwaivgi",{url:(0,l.getLocalIconUri)("KlingAI.png")}],["black-forest-labs",{url:(0,l.getFaviconUrl)("https://bfl.ai")}],["prime-intellect",{url:(0,l.getFaviconUrl)("https://www.primeintellect.ai/")}],["primeintellect",{url:(0,l.getFaviconUrl)("https://www.primeintellect.ai/")}],["essentialai",{url:(0,l.getFaviconUrl)("https://www.essential.ai/")}],["bytedance-seed",{url:(0,l.getFaviconUrl)("https://seed.bytedance.com/")}],[o(n.ProviderName.Seed),{url:(0,l.getFaviconUrl)("https://seed.bytedance.com/")}],["writer",{url:(0,l.getFaviconUrl)("https://writer.com/"),className:"dark:invert"}],["stepfun",{url:(0,l.getFaviconUrl)("https://platform.stepfun.ai/")}],["stepfun-ai",{url:(0,l.getFaviconUrl)("https://platform.stepfun.ai/")}],[o(n.ProviderName.Recraft),{url:(0,l.getLocalIconUri)("Recraft.svg"),className:"dark:invert"}],["bytedance",{url:(0,l.getFaviconUrl)("https://seed.bytedance.com/")}],["alibaba",{url:(0,l.getFaviconUrl)("https://www.alibabacloud.com")}],["inclusionai",{url:(0,l.getFaviconUrl)("https://www.inclusion-ai.org/")}],["tencent",{url:(0,l.getLocalIconUri)("Tencent.png")}],["ibm-granite",{url:(0,l.getLocalIconUri)("IBMGranite.svg"),className:"dark:invert"}],["nex-agi",{url:(0,l.getLocalIconUri)("NexAGI.svg"),className:"dark:invert"}],["thinkingmachines",{url:(0,l.getFaviconUrl)("https://thinkingmachines.ai/")}],["sakana",{url:(0,l.getFaviconUrl)("https://sakana.ai")}],[o(n.ProviderName.HeyGen),{url:(0,l.getFaviconUrl)("https://heygen.com")}],["zyphra",{url:(0,l.getLocalIconUri)("Zyphra.svg"),className:"dark:invert"}],["sesame",{url:(0,l.getFaviconUrl)("https://www.sesame.com")}],["canopylabs",{url:(0,l.getFaviconUrl)("https://canopylabs.ai"),className:"dark:invert"}],["hexgrad",{url:(0,l.getLocalIconUri)("Hexgrad.png")}],[o(n.ProviderName.Krea),{url:(0,l.getFaviconUrl)("https://www.krea.ai")}],[o(n.ProviderName.Runway),{url:(0,l.getFaviconUrl)("https://runwayml.com")}],[o(n.ProviderName.Upstage),{url:(0,l.getFaviconUrl)("https://www.upstage.ai/")}],["stealth",{url:(0,l.getLocalIconUri)("Stealth.svg"),className:"invert-0 dark:invert"}]]),c=new Map([["microsoft/mai-",{url:(0,l.getLocalIconUri)("MAI.png")}]]),u=/^\/(?![/\\])/u,d=/^data:image\//iu;function g(e,r){var t;let a=s.get(e.toLowerCase());return r&&(!r.startsWith("data:")||d.test(r))?(t=a?.className,u.test(r)||d.test(r)?{url:r}:r.startsWith("//")?{url:(0,l.getFaviconUrl)(`https:${r}`)}:r.startsWith("http")?{url:(0,l.getFaviconUrl)(r)}:{url:(0,l.getLocalIconUri)(r),className:t}):a??{url:l.HUGGING_FACE_FAVICON_URL}}function m({permaslug:e,author:r,iconUri:t}){let a=e.toLowerCase().replace(/^~/,"");for(let[e,r]of c)if(a.startsWith(e))return r;return g(r,t)}e.s(["getAuthorIconInfo",0,g,"getModelAuthorIconInfo",0,m],630056);var v=e.i(837556);e.s(["AuthorIcon",0,function(e){let n,l,o,s,c,u,d,h=(0,t.c)(25),{author:p,permaslug:f,iconUri:U,className:w,frame:N,frameRingClassName:x,bare:F}=e,b=void 0!==N&&N,k=void 0!==F&&F;if(h[0]!==p||h[1]!==k||h[2]!==w||h[3]!==b||h[4]!==x||h[5]!==U||h[6]!==f){c=Symbol.for("react.early_return_sentinel");e:{if(l=void 0===f?g(p,U):m({permaslug:f,author:p,iconUri:U}),k){let e;h[12]!==w?(e=(0,a.cn)("flex size-6 shrink-0 items-center justify-center","[&_img]:object-contain",w),h[12]=w,h[13]=e):e=h[13],c=(0,r.jsx)("div",{className:e,children:(0,r.jsx)(i.RemoteFavicon,{className:(0,a.cn)("size-full overflow-hidden",l?.className),faviconFor:p,imgSrc:l.url,imgSrcDark:l.darkUrl,size:256})});break e}if(b){c=(0,r.jsx)(v.IconFrame,{className:w,ringClassName:x,children:(0,r.jsx)(i.RemoteFavicon,{className:(0,a.cn)("size-full",l?.className),faviconFor:p,imgSrc:l.url,imgSrcDark:l.darkUrl,size:256})});break e}h[14]!==w?(s=(0,a.cn)("flex items-center justify-center","size-6 shrink-0 rounded-full border","bg-background p-1",w),h[14]=w,h[15]=s):s=h[15],n=i.RemoteFavicon,o=(0,a.cn)("overflow-hidden rounded-full",l?.className)}h[0]=p,h[1]=k,h[2]=w,h[3]=b,h[4]=x,h[5]=U,h[6]=f,h[7]=n,h[8]=l,h[9]=o,h[10]=s,h[11]=c}else n=h[7],l=h[8],o=h[9],s=h[10],c=h[11];return c!==Symbol.for("react.early_return_sentinel")?c:(h[16]!==n||h[17]!==p||h[18]!==l.darkUrl||h[19]!==l.url||h[20]!==o?(u=(0,r.jsx)(n,{className:o,faviconFor:p,imgSrc:l.url,imgSrcDark:l.darkUrl,size:256}),h[16]=n,h[17]=p,h[18]=l.darkUrl,h[19]=l.url,h[20]=o,h[21]=u):u=h[21],h[22]!==s||h[23]!==u?(d=(0,r.jsx)("div",{className:s,children:u}),h[22]=s,h[23]=u,h[24]=d):d=h[24],d)}],557225)},837556,e=>{"use strict";var r=e.i(222666),t=e.i(505962),a=e.i(452473);e.s(["IconFrame",0,function(e){let i,n,l,o,s,c,u=(0,t.c)(15),{children:d,className:g,variant:m,decorative:v,ringClassName:h}=e,p=void 0!==v&&v||void 0;u[0]!==g?(i=(0,a.cn)("relative flex shrink-0 items-center justify-center","box-content p-px","overflow-hidden rounded-sm bg-background","size-6",g),u[0]=g,u[1]=i):i=u[1],u[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.cn)("absolute inset-px flex items-center justify-center","[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:object-contain","[&_img]:rounded-sm"),u[2]=n):n=u[2],u[3]!==d?(l=(0,r.jsx)("div",{className:n,children:d}),u[3]=d,u[4]=l):l=u[4];let f="app"===(void 0===m?"default":m)&&"dark:inset-px dark:ring-white";return u[5]!==h||u[6]!==f?(o=(0,a.cn)("pointer-events-none absolute inset-0 rounded-[inherit] ring-1 ring-inset ring-border/60",f,h),u[5]=h,u[6]=f,u[7]=o):o=u[7],u[8]!==o?(s=(0,r.jsx)("div",{"aria-hidden":!0,className:o}),u[8]=o,u[9]=s):s=u[9],u[10]!==p||u[11]!==i||u[12]!==l||u[13]!==s?(c=(0,r.jsxs)("div",{"aria-hidden":p,className:i,children:[l,s]}),u[10]=p,u[11]=i,u[12]=l,u[13]=s,u[14]=c):c=u[14],c}])},668832,e=>{"use strict";var r=e.i(222666),t=e.i(505962),a=e.i(452473),i=e.i(207298);let n=(0,i.cva)("rounded-full bg-current",{variants:{size:{default:"size-2",sm:"size-1",xs:"size-[0.1875rem]"}},defaultVariants:{size:"default"}}),l=(0,i.cva)("inline-flex items-center",{variants:{size:{default:"gap-2 leading-7",sm:"gap-1 leading-5",xs:"gap-[0.1875rem] leading-3"}},defaultVariants:{size:"default"}}),o=e=>{let i,l,o=(0,t.c)(5),{className:s,size:c}=e,u=void 0===s?"":s;return o[0]!==u||o[1]!==c?(i=(0,a.cn)(n({size:c}),u),o[0]=u,o[1]=c,o[2]=i):i=o[2],o[3]!==i?(l=(0,r.jsx)("span",{className:i}),o[3]=i,o[4]=l):l=o[4],l};e.s(["LoadingDots",0,e=>{let i,n,s,c,u,d,g,m,v,h=(0,t.c)(25);h[0]!==e?(i=void 0===e?{}:e,h[0]=e,h[1]=i):i=h[1];let{className:p,size:f,hasNoAnimation:U}=i,w=void 0===p?"":p,N=void 0===f?"default":f,x=void 0!==U&&U;h[2]!==w||h[3]!==N?(n=(0,a.cn)(l({size:N}),w),h[2]=w,h[3]=N,h[4]=n):n=h[4];let F=x?"animate-none":"animate-scale-pulse";h[5]!==F?(s=(0,a.cn)(F),h[5]=F,h[6]=s):s=h[6],h[7]!==N||h[8]!==s?(c=(0,r.jsx)(o,{size:N,className:s}),h[7]=N,h[8]=s,h[9]=c):c=h[9];let b=x?"animate-none":"animate-scale-pulse";h[10]!==b?(u=(0,a.cn)(b,"delay-150"),h[10]=b,h[11]=u):u=h[11],h[12]!==N||h[13]!==u?(d=(0,r.jsx)(o,{size:N,className:u}),h[12]=N,h[13]=u,h[14]=d):d=h[14];let k=x?"animate-none":"animate-scale-pulse";return h[15]!==k?(g=(0,a.cn)(k,"delay-300"),h[15]=k,h[16]=g):g=h[16],h[17]!==N||h[18]!==g?(m=(0,r.jsx)(o,{size:N,className:g}),h[17]=N,h[18]=g,h[19]=m):m=h[19],h[20]!==d||h[21]!==m||h[22]!==n||h[23]!==c?(v=(0,r.jsxs)("span",{className:n,children:[c,d,m]}),h[20]=d,h[21]=m,h[22]=n,h[23]=c,h[24]=v):v=h[24],v}])},188363,e=>{"use strict";var r=e.i(222666),t=e.i(505962),a=e.i(948992),i=e.i(678998),n=e.i(270401);let l=/\.(png|jpe?g|ico|svg|webp|gif|bmp)$/i;e.s(["RemoteFavicon",0,function(e){let o,s,c,u,d,g,m,v,h,p,f,U,w=(0,t.c)(51),[N,x]=(0,n.useState)(null),[F,b]=(0,n.useState)(null),[k,I]=(0,n.useState)(!1),[y,S]=(0,n.useState)(!1),L=e.size||256,j=e.hasCuratedFaviconUrl??!1;w[0]!==k||w[1]!==y||w[2]!==e.faviconFor||w[3]!==e.imgSrc||w[4]!==L||w[5]!==j?(o=function({faviconFor:e,size:r,didCuratedIconFail:t,didSiteIconFail:a,hasCuratedFaviconUrl:n,imgSrc:o}){if(o)return{source:"given",src:o};if(n&&(e=>{try{let{pathname:r}=new URL(e);return l.test(r)}catch{return!1}})(e)&&!t)return{source:"curated",src:(0,i.getCdnImageUrl)(e)};let s=a?(0,i.getParentSiteUrl)(e):null;return null!==s?{source:"parent-site",src:(0,i.getFaviconUrl)(s,r)}:{source:"site",src:(0,i.getFaviconUrl)(e,r)}}({faviconFor:e.faviconFor,size:L,didCuratedIconFail:k,didSiteIconFail:y,hasCuratedFaviconUrl:j,imgSrc:e.imgSrc}),w[0]=k,w[1]=y,w[2]=e.faviconFor,w[3]=e.imgSrc,w[4]=L,w[5]=j,w[6]=o):o=w[6];let{source:P,src:z}=o;w[7]!==e.faviconFor||w[8]!==L||w[9]!==P?(s=r=>{"site"!==P||L<=16||r>16||null!==(0,i.getParentSiteUrl)(e.faviconFor)&&S(!0)},w[7]=e.faviconFor,w[8]=L,w[9]=P,w[10]=s):s=w[10];let C=s;w[11]!==e.faviconFor||w[12]!==P?(c=r=>{switch(P){case"curated":if((0,i.isOpenRouterHostedUrl)(e.faviconFor))return void x(r);I(!0);return;case"site":if(null===(0,i.getParentSiteUrl)(e.faviconFor))return void x(r);S(!0);return;case"given":case"parent-site":return void x(r);default:x(r)}},w[11]=e.faviconFor,w[12]=P,w[13]=c):c=w[13];let A=c;w[14]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{x(null)},w[14]=u):u=w[14],w[15]!==z?(d=[z],w[15]=z,w[16]=d):d=w[16],(0,n.useEffect)(u,d),w[17]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{I(!1),S(!1)},w[17]=g):g=w[17],w[18]!==e.faviconFor||w[19]!==e.imgSrc||w[20]!==L?(m=[e.faviconFor,e.imgSrc,L],w[18]=e.faviconFor,w[19]=e.imgSrc,w[20]=L,w[21]=m):m=w[21],(0,n.useEffect)(g,m),w[22]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{b(null)},w[22]=v):v=w[22],w[23]!==e.imgSrcDark?(h=[e.imgSrcDark],w[23]=e.imgSrcDark,w[24]=h):h=w[24],(0,n.useEffect)(v,h);let _=`Favicon for ${e.faviconFor}`;w[25]!==L||w[26]!==_?(p={width:L,height:L,alt:_,className:"h-full w-full object-cover"},w[25]=L,w[26]=_,w[27]=p):p=w[27];let R=p;if(e.imgSrcDark){let t,i,n;return w[28]!==N||w[29]!==R||w[30]!==A||w[31]!==C||w[32]!==z?(t=(0,r.jsx)("span",{className:"block h-full w-full shrink-0 dark:hidden",children:N?(0,r.jsx)("span",{className:"bg-muted",children:(0,r.jsx)(a.GlobeAltIcon,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,r.jsx)("img",{...R,src:z,onError:e=>A(e.toString()),onLoad:e=>C(e.currentTarget.naturalWidth)})}),w[28]=N,w[29]=R,w[30]=A,w[31]=C,w[32]=z,w[33]=t):t=w[33],w[34]!==F||w[35]!==R||w[36]!==e.imgSrcDark?(i=(0,r.jsx)("span",{className:"hidden h-full w-full shrink-0 dark:block",children:F?(0,r.jsx)("span",{className:"bg-muted",children:(0,r.jsx)(a.GlobeAltIcon,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,r.jsx)("img",{...R,src:e.imgSrcDark,onError:e=>b(e.toString())})}),w[34]=F,w[35]=R,w[36]=e.imgSrcDark,w[37]=i):i=w[37],w[38]!==e.className||w[39]!==t||w[40]!==i?(n=(0,r.jsxs)("div",{className:e.className,children:[t,i]}),w[38]=e.className,w[39]=t,w[40]=i,w[41]=n):n=w[41],n}return w[42]!==N||w[43]!==R||w[44]!==A||w[45]!==C||w[46]!==z?(f=N?(0,r.jsx)("span",{className:"bg-muted",children:(0,r.jsx)(a.GlobeAltIcon,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,r.jsx)("picture",{className:"h-full w-full shrink-0",children:(0,r.jsx)("img",{...R,src:z,loading:"lazy",decoding:"async",onError:e=>A(e.toString()),onLoad:e=>C(e.currentTarget.naturalWidth)})}),w[42]=N,w[43]=R,w[44]=A,w[45]=C,w[46]=z,w[47]=f):f=w[47],w[48]!==e.className||w[49]!==f?(U=(0,r.jsx)("div",{className:e.className,children:f}),w[48]=e.className,w[49]=f,w[50]=U):U=w[50],U}])},379684,e=>{"use strict";var r=e.i(222666),t=e.i(505962),a=e.i(734293),i=e.i(452473),n=e.i(654847),l=e.i(191379),o=e.i(551365),s=e.i(971531),c=e.i(639580),u=e.i(664288);let d="text-foreground underline underline-offset-2 decoration-current/40 hover:text-accent-foreground hover:decoration-current transition-colors";e.s(["LINK_CLASSES",0,d,"TextLink",0,function(e){let g,m,v,h,p,f,U,w,N,x,F,b,k,I,y,S,L,j,P,z,C,A,_=(0,t.c)(71);_[0]!==e?({render:w,children:g,className:m,icon:v,iconPosition:N,showExternalIcon:x,prefetch:F,onFocus:h,onMouseEnter:p,onTouchStart:f,...U}=e,_[0]=e,_[1]=g,_[2]=m,_[3]=v,_[4]=h,_[5]=p,_[6]=f,_[7]=U,_[8]=w,_[9]=N,_[10]=x,_[11]=F):(g=_[1],m=_[2],v=_[3],h=_[4],p=_[5],f=_[6],U=_[7],w=_[8],N=_[9],x=_[10],F=_[11]);let R=void 0===N?"end":N,D=void 0!==x&&x,E=void 0===F?"hover":F,G=(0,c.useLocalizedHref)(U.href);_[12]!==G?(b=(0,n.getHrefString)(G),_[12]=G,_[13]=b):b=_[13],_[14]!==E||_[15]!==b?(k={prefetch:E,href:b},_[14]=E,_[15]=b,_[16]=k):k=_[16],_[17]!==h||_[18]!==p||_[19]!==f?(I={onFocus:h,onMouseEnter:p,onTouchStart:f},_[17]=h,_[18]=p,_[19]=f,_[20]=I):I=_[20];let M=(0,s.useLinkPrefetch)(k,I);_[21]!==m?(y=(0,i.cn)(d,"text-xs cursor-pointer",m),_[21]=m,_[22]=y):y=_[22];let H=y;_[23]!==v||_[24]!==D?(S=v??(D?(0,r.jsx)(l.ArrowUpRight,{className:"inline size-3 align-[-1px]"}):null),_[23]=v,_[24]=D,_[25]=S):S=_[25];let T=S;_[26]!==R||_[27]!==T?(L="start"===R&&T?(0,r.jsx)("span",{className:"mr-0.5 inline-flex",children:T}):null,_[26]=R,_[27]=T,_[28]=L):L=_[28];let $=L;_[29]!==R||_[30]!==T?(j="end"===R&&T?(0,r.jsx)("span",{className:"ml-0.5 inline-flex",children:T}):null,_[29]=R,_[30]=T,_[31]=j):j=_[31];let O=j,V=(0,n.isCrossZoneHref)(G);_[32]!==g||_[33]!==w?(P=w?(0,u.getChildContent)(w):g,_[32]=g,_[33]=w,_[34]=P):P=_[34];let W=P;_[35]!==W||_[36]!==O||_[37]!==G||_[38]!==h||_[39]!==p||_[40]!==f||_[41]!==U||_[42]!==w||_[43]!==H||_[44]!==$?(z=w?{className:H,children:(0,r.jsxs)(r.Fragment,{children:[$,W,O]}),...U,onFocus:h,onMouseEnter:p,onTouchStart:f,href:G}:{},_[35]=W,_[36]=O,_[37]=G,_[38]=h,_[39]=p,_[40]=f,_[41]=U,_[42]=w,_[43]=H,_[44]=$,_[45]=z):z=_[45],_[46]!==w||_[47]!==z?(C={render:w,defaultTagName:"a",props:z},_[46]=w,_[47]=z,_[48]=C):C=_[48];let q=(0,a.useRender)(C);if(w){if(V)throw Error(`TextLink: cross-zone href "${(0,n.getHrefString)(G)}" cannot be combined with the render prop. Use a plain element instead.`);return q}if(V){let e,t,a;if(_[49]!==U){let{href:r,replace:t,scroll:a,shallow:i,passHref:n,legacyBehavior:l,locale:o,onNavigate:s,...c}=U;e=c,_[49]=U,_[50]=e}else e=_[50];return _[51]!==G?(t=(0,n.getHrefString)(G),_[51]=G,_[52]=t):t=_[52],_[53]!==e||_[54]!==g||_[55]!==O||_[56]!==h||_[57]!==p||_[58]!==f||_[59]!==H||_[60]!==$||_[61]!==t?(a=(0,r.jsxs)("a",{href:t,className:H,onFocus:h,onMouseEnter:p,onTouchStart:f,...e,children:[$,g,O]}),_[53]=e,_[54]=g,_[55]=O,_[56]=h,_[57]=p,_[58]=f,_[59]=H,_[60]=$,_[61]=t,_[62]=a):a=_[62],a}return _[63]!==g||_[64]!==O||_[65]!==G||_[66]!==M||_[67]!==U||_[68]!==H||_[69]!==$?(A=(0,r.jsxs)(o.default,{className:H,...U,...M,href:G,children:[$,g,O]}),_[63]=g,_[64]=O,_[65]=G,_[66]=M,_[67]=U,_[68]=H,_[69]=$,_[70]=A):A=_[70],A}])},664288,e=>{"use strict";e.s(["getChildContent",0,function(e){let{props:r}=e;if("object"==typeof r&&null!==r&&"children"in r)return r.children}])},678998,e=>{"use strict";e.i(687421);let r=(e,r=256)=>`https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=${e}&size=${r}`,t=new Set(["ac","co","com","edu","go","gob","gov","ltd","me","ne","net","nom","or","org","plc","sch"]),a=new Set(["amazonaws.com","azurewebsites.net","cloudfront.net","firebaseapp.com","fly.dev","github.io","gitlab.io","herokuapp.com","ngrok.app","ngrok.io","netlify.app","onrender.com","pages.dev","run.app","vercel.app","web.app","workers.dev"]),i=e=>{try{let r=new URL(e).hostname.toLowerCase().replace(/\.$/,"");return"openrouter.ai"===r||r.endsWith(".openrouter.ai")}catch{return!1}},n=r("https://huggingface.co/");e.s(["HUGGING_FACE_FAVICON_URL",0,n,"getCdnImageUrl",0,e=>i(e)?e:`/api/frontend/v1/image-proxy?url=${encodeURIComponent(e)}`,"getFaviconUrl",0,r,"getLocalIconUri",0,e=>`/images/icons/${e}`,"getParentSiteUrl",0,e=>{let r=(e=>{let r=/^[a-z][a-z\d+\-.]*:\/\//iu.test(e)?e:`https://${e}`;try{return new URL(r).hostname.toLowerCase().replace(/\.$/u,"")}catch{return null}})(e);if(null===r)return null;let i=r.split(".").slice(1);if(i.length<2||2===i.length&&2===(i[1]??"").length&&t.has(i[0]??""))return null;let n=i.join(".");return[...a].some(e=>n===e||n.endsWith(`.${e}`))?null:`https://${n}`},"isOpenRouterHostedUrl",0,i])}]); //# sourceMappingURL=2exo6pz6kgfmg.js.map //# chunkId=01a09e9c-68c3-7f70-ad05-5f598e395999