(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,446443,e=>{"use strict";var t=e.i(16043);let r=t.createContext({disabled:!1});e.s(["f",0,function(){return t.useContext(r)}])},442291,e=>{"use strict";e.s(["f",0,function(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}])},217524,e=>{"use strict";var t=e.i(651681);let r={name:"beaker",size:24,node:[["path",{d:"M4.5 3h15",key:"c7n0jr"}],["path",{d:"M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3",key:"m1uhx7"}],["path",{d:"M6 14h12",key:"4cwo0f"}]]};r.node;let i=(0,t.f)(r);e.s(["f",0,i],217524)},241696,726866,e=>{"use strict";var t=e.i(651681);let r={name:"blend",size:24,node:[["circle",{cx:"15",cy:"9",r:"7",key:"1i12rt"}],["circle",{cx:"9",cy:"15",r:"7",key:"19bs8k"}]]};r.node;let i=(0,t.f)(r);e.s(["f",0,i],241696);let n={name:"file-diff",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]]};n.node;let a=(0,t.f)(n);e.s(["f",0,a],726866)},29411,e=>{"use strict";var t=e.i(651681);let r={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};r.node;let i=(0,t.f)(r);e.s(["f",0,i],29411)},193854,e=>{"use strict";var t=e.i(651681);let r={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};r.node;let i=(0,t.f)(r);e.s(["f",0,i],193854)},803157,e=>{"use strict";var t=e.i(651681);let r={name:"code-xml",size:24,node:[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],aliases:["code-2"]};r.node;let i=(0,t.f)(r);e.s(["f",0,i],803157)},10460,e=>{"use strict";var t=e.i(651681);let r={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};r.node;let i=(0,t.f)(r);e.s(["f",0,i],10460)},258990,e=>{"use strict";var t=e.i(651681);let r={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};r.node;let i=(0,t.f)(r);e.s(["f",0,i],258990)},569019,e=>{"use strict";var t=e.i(651681);let r={name:"files",size:24,node:[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]]};r.node;let i=(0,t.f)(r);e.s(["f",0,i],569019)},275173,e=>{"use strict";var t=e.i(651681);let r={name:"image-plus",size:24,node:[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]};r.node;let i=(0,t.f)(r);e.s(["f",0,i],275173)},63135,e=>{"use strict";var t=e.i(651681);let r={name:"lightbulb",size:24,node:[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]};r.node;let i=(0,t.f)(r);e.s(["f",0,i],63135)},621591,e=>{"use strict";var t=e.i(651681);let r={name:"link-2",size:24,node:[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]};r.node;let i=(0,t.f)(r);e.s(["f",0,i],621591)},173155,e=>{"use strict";var t=e.i(651681);let r={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};r.node;let i=(0,t.f)(r);e.s(["f",0,i],173155)},121514,e=>{"use strict";var t=e.i(651681);let r={name:"route",size:24,node:[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]};r.node;let i=(0,t.f)(r);e.s(["f",0,i])},856883,e=>{"use strict";var t=e.i(121514);e.s(["f",()=>t.f])},750636,e=>{"use strict";var t=e.i(651681);let r={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};r.node;let i=(0,t.f)(r);e.s(["f",0,i],750636)},5122,e=>{"use strict";var t=e.i(651681);let r={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};r.node;let i=(0,t.f)(r);e.s(["f",0,i],5122)},454326,e=>{"use strict";var t=e.i(651681);let r={name:"workflow",size:24,node:[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]};r.node;let i=(0,t.f)(r);e.s(["f",0,i],454326)},336819,e=>{"use strict";var t=e.i(651681);let r={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};r.node;let i=(0,t.f)(r);e.s(["f",0,i],336819)},913743,9634,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(647204),n=e.i(16043),a=e.i(136562),s=e.i(535072);let l=()=>{if("u"0?e:void 0};var o=e.i(866969),c=e.i(67089);let d=null,u=new Map,h=null,m=0,p=(e,t)=>{let r=u.get(e);r&&(u.delete(e),clearTimeout(r.timeoutId),r.resolve(t))},f=()=>{let e,t=(0,r.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={highlight:g},t[0]=e):e=t[0],e};function g(t,r,n){return(({code:t,lang:r,theme:n})=>new Promise(a=>{let s=(()=>{if(h)return null;if(d)return d;let t=(0,i.$)(()=>e.r(405266)(Worker));return(0,i.V)(t)?((0,c.L)("Failed to initialize highlight worker",{message:"Failed to initialize highlight worker",error:t.error,metadata:{location:"highlight.singleton.ts"}}),h=t.error instanceof Error?t.error:Error(String(t.error)),d=null,null):((d=t.data).onmessage=e=>{let{id:t,lines:r,preStyle:i,error:n}=e.data;if(n){(0,c.L)("highlight worker processing error",{message:"highlight worker processing error",error:n,metadata:{location:"highlight.singleton.ts"}}),p(t,null);return}m=0,p(t,{lines:r??[],preStyle:i??""})},d.onerror=e=>{for(let t of((0,c.L)("highlight worker script error",{message:"highlight worker script error",error:e,metadata:{location:"highlight.singleton.ts"}}),(m+=1)>2&&(h=Error(e.message||"highlight worker script error")),d?.terminate(),d=null,u.keys()))p(t,null)},d)})();if(!s)return void a(null);let l=crypto.randomUUID(),o=setTimeout(()=>p(l,null),1e4);u.set(l,{resolve:a,timeoutId:o});let f=(0,i.$)(()=>s.postMessage({id:l,code:t,lang:r,theme:n}));(0,i.V)(f)&&p(l,null)}))({code:t,lang:r,theme:n})}e.s(["f",0,f],9634);let b=(0,n.memo)(e=>{let i,n=(0,r.c)(2),{html:a}=e;return n[0]!==a?(i=(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:a}}),n[0]=a,n[1]=i):i=n[1],i}),x=(0,n.memo)(e=>{let i,n=(0,r.c)(2),{text:a}=e,s=a||" ";return n[0]!==s?(i=(0,t.jsx)("div",{children:s}),n[0]=s,n[1]=i):i=n[1],i});e.s(["f",0,({code:e,lang:c,theme:d,roundedCorners:u=!0,border:h=!0,codeBackgroundClassName:m="bg-doc-surface",lineNumbers:p=!1,wrap:g=!1})=>{let[v,y]=(0,n.useState)([]),[k,w]=(0,n.useState)({}),[j,N]=(0,n.useState)(""),C=(0,n.useRef)(!1),_=(0,n.useRef)(null),R=(0,n.useRef)(0),{highlight:S}=f(),M=((e=500)=>{let t=(0,n.useMemo)(l,[]),r=(0,s.o)("(min-width: 768px)");return(0,n.useMemo)(()=>void 0!==t?t<2?4e3:t<4?2e3:e:r?e:2e3,[t,r,e])})(500),T=(0,n.useCallback)(e=>{var t;let r,i=(t=e.preStyle,r={},t&&t.split(";").forEach(e=>{let[t,i]=e.split(/:(.*)/s);t&&i&&(r[t.trim().replaceAll(/-(\w)/g,(e,t)=>t.toUpperCase())]=i.trim())}),r);i.backgroundColor="transparent",i.whiteSpace="pre",w(i)},[]);(0,n.useEffect)(()=>{let e=!1;return(0,i.$)(()=>S("",c,d)).then(t=>{e||!(0,i.V)(t)&&t.data&&T(t.data)}),()=>{e=!0}},[c,d,S,T]),(0,n.useEffect)(()=>{_.current={code:e,lang:c,theme:d},R.current=0},[e,c,d]);let O=(0,n.useCallback)(async()=>{if(C.current||!_.current)return;C.current=!0;let e=_.current;_.current=null;let t=await (0,i.$)(()=>S(e.code,e.lang,e.theme));(0,i.V)(t)||!t.data?(R.current+=1,R.current<=5&&(_.current??=e)):(R.current=0,T(t.data),y(t.data.lines),N(e.code)),C.current=!1},[S,T]);!function(e){let t,i,a=(0,r.c)(5),{run:s,intervalMs:l,jobKey:c}=e;a[0]!==s?(t=()=>{s()},a[0]=s,a[1]=t):t=a[1],a[2]!==c||a[3]!==s?(i=[c,s],a[2]=c,a[3]=s,a[4]=i):i=a[4],(0,n.useEffect)(t,i),(0,o.f)(s,l)}({run:(0,n.useCallback)(()=>{O()},[O]),intervalMs:M,jobKey:`${c}|${d}|${e}`});let A=(0,n.useMemo)(()=>j&&e.startsWith(j)?e.substring(j.length):e,[e,j]);(0,n.useEffect)(()=>{j&&!e.startsWith(j)&&y([])},[e,j]);let L=(0,n.useMemo)(()=>A.split("\n"),[A]);return(0,t.jsx)("pre",{className:(0,a.f)("highlights overflow-x-auto min-w-0",h&&"border border-border",u&&"rounded-lg"),style:k,children:(0,t.jsxs)("code",{className:(0,a.f)("p-4",g?"block whitespace-pre-wrap break-words":"inline-block min-w-full whitespace-pre",!p&&!g&&"md:whitespace-pre-wrap",p&&"[counter-reset:line] [&>div]:before:[counter-increment:line] [&>div]:before:content-[counter(line)] [&>div]:before:mr-3 [&>div]:before:inline-block [&>div]:before:w-7 [&>div]:before:text-right [&>div]:before:tabular-nums [&>div]:before:select-none [&>div]:before:text-faint",p&&g&&"[&>div]:pl-10 [&>div]:-indent-10",m),children:[v.map((e,r)=>(0,t.jsx)(b,{html:e},`h-${r}`)),L.slice(+!!j).map((e,r)=>(0,t.jsx)(x,{text:e},`r-${r}`))]})})}],913743)},117786,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(411252);e.s(["FAQAccordion",0,function(e){let n,a,s,l=(0,r.c)(10),{items:o,onItemExpand:c,multiple:d}=e;l[0]!==c?(n=(e,t)=>{"true"!==e.currentTarget.getAttribute("aria-expanded")&&c?.(t)},l[0]=c,l[1]=n):n=l[1];let u=n,h=void 0!==d&&d?"multiple":"single";if(l[2]!==u||l[3]!==o){let e;l[5]!==u?(e=(e,r)=>(0,t.jsxs)(i.AccordionItem,{value:`${r}`,children:[(0,t.jsx)(i.AccordionTrigger,{className:"gap-4 py-4 text-base hover:text-foreground",onClick:t=>u(t,e),children:e.question}),(0,t.jsx)(i.AccordionContent,{"data-testid":"faq-panel",className:"[&>div]:pb-4",hiddenUntilFound:!0,children:(0,t.jsx)("div",{className:"text-body leading-relaxed text-muted-foreground",children:e.answer})})]},r),l[5]=u,l[6]=e):e=l[6],a=o.map(e),l[2]=u,l[3]=o,l[4]=a}else a=l[4];return l[7]!==h||l[8]!==a?(s=(0,t.jsx)(i.Accordion,{type:h,collapsible:!0,children:a}),l[7]=h,l[8]=a,l[9]=s):s=l[9],s}])},678628,e=>{"use strict";e.s(["f",0,"(width < 40rem), (height <= 30rem)"])},46766,e=>{"use strict";var t=e.i(16043),r=e.i(678628);function i(e){let t=window.matchMedia(r.f);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}}function n(){return window.matchMedia(r.f).matches?48:56}function a(){return 56}e.s(["f",0,function(){return(0,t.useSyncExternalStore)(i,n,a)}])},312679,e=>{"use strict";var t=e.i(663456),r=e.i(16043),i=e.i(687186);function n(e){return e()}function a(){}function s(){return 0}e.s(["f",0,function(){let e,l,o=(0,t.c)(3),c=(0,r.useRef)(null);if(null===c.current){let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e={value:0,listeners:new Set},o[0]=e):e=o[0],c.current=e}o[1]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{let t=c.current;if(!t)return a;t.listeners.add(e);let r=(0,i.b)(),s=document.querySelector("#page-content");if(0===r.length||!s)return()=>t.listeners.delete(e);let l=()=>{let e=Number.parseFloat(getComputedStyle(s).getPropertyValue("--sticky-banner-top")),r=Number.isFinite(e)?e:0;r!==t.value&&(t.value=r,t.listeners.forEach(n))};l();let o="u"o?.observe(e));let d="u"{o?.disconnect(),d?.disconnect(),t.listeners.delete(e)}},o[1]=e):e=o[1];let d=e;o[2]===Symbol.for("react.memo_cache_sentinel")?(l=()=>c.current?.value??0,o[2]=l):l=o[2];let u=l;return(0,r.useSyncExternalStore)(d,u,s)}])},832850,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(354896),n=e.i(750636),a=e.i(16043),s=e.i(136562),l=e.i(512688),o=e.i(233452),c=e.i(139697),d=e.i(359544),u=e.i(848984),h=e.i(232458);let m=new Set(["ArrowDown","ArrowUp","End","Home","PageDown","PageUp"," ","Spacebar"]);function p({id:e,target:t,precedingElements:r,behavior:i,settleMs:n}){(0,h.m)(e);let a=(0,u.$)(),s="auto"===i||!f(t,a),l="auto"===i||!s,o="onscrollend"in window,c=null,d=null,b=l?"settled":"pending",x=!1,v=0,y=e=>{b=function(e,t){if("released"===e)return e;switch(t.type){case"scroll_started":return"pending"===e?"scrolling":e;case"target_landed":return"settled";case"released":return"released";default:return t}}(b,e)},k=()=>{y({type:"target_landed"}),"settled"===b&&(v=g(t,a))},w=(0,u.j)(),j=new Map,N=new ResizeObserver(()=>{if("released"===b)return;let e=!1;for(let t of r){let r=j.get(t),i=t.getBoundingClientRect().height;j.set(t,i),void 0!==r&&r!==i&&(e=!0)}e&&(x=!0,t.scrollIntoView({behavior:"auto",block:"start"}),window.requestAnimationFrame(()=>{x=!1,v=g(t,a)}))}),C=()=>{"released"!==b&&(y({type:"released"}),null!==c&&(window.clearTimeout(c),c=null),null!==d&&(window.clearTimeout(d),d=null),window.removeEventListener("scroll",R),window.removeEventListener("scrollend",S),window.removeEventListener("wheel",M),window.removeEventListener("touchmove",M),window.removeEventListener("keydown",T),document.removeEventListener("scrollend",S),a?.removeEventListener("scroll",R),a?.removeEventListener("scrollend",S),N.disconnect(),(0,h.l)(e))},_=()=>{null===c&&(c=window.setTimeout(C,n))},R=()=>{if("released"===b)return;if(!o){if("pending"===b){if((0,u.j)()===w)return;y({type:"scroll_started"}),_()}"scrolling"===b&&f(t,a)&&k()}let e=g(t,a),r=Math.abs(e-v)>24&&Math.abs(e)>Math.abs(v);"settled"===b&&!x&&r&&C()},S=()=>{"released"!==b&&(k(),_())},M=()=>{C()},T=e=>{m.has(e.key)&&C()};for(let e of r)j.set(e,e.getBoundingClientRect().height),N.observe(e);return window.addEventListener("scroll",R,{passive:!0}),o&&(window.addEventListener("scrollend",S),document.addEventListener("scrollend",S),a?.addEventListener("scrollend",S)),window.addEventListener("wheel",M,{passive:!0}),window.addEventListener("touchmove",M,{passive:!0}),window.addEventListener("keydown",T),a?.addEventListener("scroll",R,{passive:!0}),l&&_(),s?("smooth"===i&&(d=window.setTimeout(C,7500)),t.scrollIntoView({behavior:i,block:"start"}),"auto"===i&&k()):k(),"pending"===b&&window.requestAnimationFrame(()=>{"released"!==b&&f(t,a)&&(k(),_())}),C}function f(e,t){return 1>=Math.abs(g(e,t))}function g(e,t){let r=e.getBoundingClientRect(),i=t?.isConnected&&(0,u.b)(t)?t.getBoundingClientRect().top:0,n=r.top-i,a=Number.parseFloat(getComputedStyle(e).scrollMarginTop);return n-(Number.isNaN(a)?0:a)}var b=e.i(214530);let x={viewport:{desktopOnly:"lg:block",mobileOnly:"lg:hidden"},container:{desktopOnly:"@3xl:block",mobileOnly:"@3xl:hidden"}};function v(e){return{value:e.id,label:(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[(0,t.jsx)(e.icon,{"aria-hidden":!0,className:(0,s.f)("size-4 shrink-0",e.iconClassName)}),(0,t.jsx)("span",{className:"truncate",children:e.label}),(0,t.jsx)(N,{section:e})]})}}function y(e){return!e.mobileOnly}function k(e){return e.el}function w(e){let i,n,l,o,c,d,u,h,m=(0,r.c)(19),{sections:p,activeAnchor:f,onClick:g}=e,b=(0,a.useRef)(null);m[0]===Symbol.for("react.memo_cache_sentinel")?(i=new Map,m[0]=i):i=m[0];let x=(0,a.useRef)(i),[v,y]=(0,a.useState)(null);m[1]!==f?(n=()=>{let e=x.current.get(f);if(!e)return;let t=()=>{y({top:e.offsetTop,height:e.offsetHeight})};t();let r=new ResizeObserver(t);return r.observe(e),b.current&&r.observe(b.current),()=>r.disconnect()},l=[f],m[1]=f,m[2]=n,m[3]=l):(n=m[2],l=m[3]),(0,a.useEffect)(n,l),m[4]===Symbol.for("react.memo_cache_sentinel")?(o=e=>t=>{t?x.current.set(e,t):x.current.delete(e)},m[4]=o):o=m[4];let k=o;if(m[5]!==v?(c=v&&(0,t.jsx)("div",{"aria-hidden":!0,"data-allow-inline-style":!0,className:(0,s.f)("absolute inset-x-0 rounded-md bg-accent pointer-events-none","h-(--pill-height) translate-y-(--pill-top)","transition-[translate] duration-fast ease-in-out-strong motion-reduce:transition-none"),style:{"--pill-height":`${v.height}px`,"--pill-top":`${v.top}px`}}),m[5]=v,m[6]=c):c=m[6],m[7]!==f||m[8]!==g||m[9]!==p){let e;m[11]!==f||m[12]!==g?(e=e=>(0,t.jsx)(j,{section:e,isActive:f===e.id,onClick:g,registerRef:k(e.id)},e.id),m[11]=f,m[12]=g,m[13]=e):e=m[13],d=p.map(e),m[7]=f,m[8]=g,m[9]=p,m[10]=d}else d=m[10];return m[14]!==d?(u=(0,t.jsx)("div",{className:"relative flex flex-col gap-y-px",children:d}),m[14]=d,m[15]=u):u=m[15],m[16]!==c||m[17]!==u?(h=(0,t.jsxs)("div",{ref:b,className:"relative",children:[c,u]}),m[16]=c,m[17]=u,m[18]=h):h=m[18],h}function j(e){let i,n,a,l,o,c,d=(0,r.c)(21),{section:u,isActive:h,onClick:m,registerRef:p}=e,f=u.icon,g=`#${u.id}`;d[0]!==m||d[1]!==u.id?(i=e=>m(e,u.id),d[0]=m,d[1]=u.id,d[2]=i):i=d[2];let b=h?"page":void 0,x=h?"text-accent-foreground":"text-muted-foreground hover:text-accent-foreground hover:bg-card-hover";d[3]!==x?(n=(0,s.f)("relative flex items-center gap-2 px-2 py-1.5 rounded-md text-body font-medium cursor-pointer transition-colors no-underline",x),d[3]=x,d[4]=n):n=d[4];let v=!h&&u.iconClassName;return d[5]!==v?(a=(0,s.f)("size-4",v),d[5]=v,d[6]=a):a=d[6],d[7]!==f||d[8]!==a?(l=(0,t.jsx)(f,{className:a}),d[7]=f,d[8]=a,d[9]=l):l=d[9],d[10]!==u?(o=(0,t.jsx)(N,{section:u}),d[10]=u,d[11]=o):o=d[11],d[12]!==p||d[13]!==u.label||d[14]!==g||d[15]!==i||d[16]!==b||d[17]!==n||d[18]!==l||d[19]!==o?(c=(0,t.jsxs)("a",{ref:p,href:g,onClick:i,"aria-current":b,className:n,children:[l,u.label,o]}),d[12]=p,d[13]=u.label,d[14]=g,d[15]=i,d[16]=b,d[17]=n,d[18]=l,d[19]=o,d[20]=c):c=d[20],c}function N(e){let i,a,s,l=(0,r.c)(7),{section:c}=e;return l[0]!==c.badge?(i=void 0!==c.badge&&(0,t.jsx)(o.Badge,{variant:"secondary",size:"sm",className:"shrink-0",children:c.badge}),l[0]=c.badge,l[1]=i):i=l[1],l[2]!==c.newLabel?(a=void 0!==c.newLabel&&(0,t.jsx)(n.f,{role:"img","aria-label":c.newLabel,className:"size-3.5 shrink-0 text-primary"}),l[2]=c.newLabel,l[3]=a):a=l[3],l[4]!==i||l[5]!==a?(s=(0,t.jsxs)(t.Fragment,{children:[i,a]}),l[4]=i,l[5]=a,l[6]=s):s=l[6],s}function C(e){let t=[];for(let r of e){let e=document.getElementById(r.id);e&&e.getClientRects().length>0&&t.push({id:r.id,el:e})}return t}function _(e){let t=null,r=(0,u.$)(),i=()=>{null===t&&(t=window.requestAnimationFrame(()=>{t=null,e()}))};return window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i,{passive:!0}),r?.addEventListener("scroll",i,{passive:!0}),()=>{window.removeEventListener("scroll",i),window.removeEventListener("resize",i),r?.removeEventListener("scroll",i),null!==t&&window.cancelAnimationFrame(t)}}e.s(["f",0,function(e){let n,o,m,f,g,j,R,S,M,T,O,A,L,E,z,B,P,I,F,q,U,$,H=(0,r.c)(65),{sections:V,ariaLabel:W,desktopNavTopClass:D,desktopBreakpoint:G,mobileTocTopClass:Q,activationLinePx:K,onSectionView:X,onSectionSelect:J,desktopNavFooter:Y,mobileNavHeader:Z,children:ee}=e,et=void 0===G?"viewport":G,[er,ei]=(0,a.useState)(V[0]?.id??""),en=(0,a.useRef)(V[0]?.id??""),ea=(0,a.useRef)(null),es=(0,a.useRef)(!1),el=(0,l.f)(X),eo=(0,l.f)(K),ec=(0,a.useRef)(K);H[0]!==eo||H[1]!==el||H[2]!==V?(n=e=>{let{shouldUpdateHash:t}=e;if(null!==(0,h.k)())return;let r=C(V);if(0===r.length)return;let i=function(e,t){var r;let i,n=(r=t,i=(0,u.$)(),(0,u.b)(i)?i.getBoundingClientRect().top+r:r),a=function(e,t){let r,i,n=(r=(0,u.$)(),(i=(0,u.b)(r)?{scrollTop:r.scrollTop,scrollHeight:r.scrollHeight,clientHeight:r.clientHeight}:{scrollTop:window.scrollY,scrollHeight:document.documentElement.scrollHeight,clientHeight:window.innerHeight}).scrollHeight<=i.clientHeight?null:i);if(null===n)return null;let a=Math.max(0,n.scrollHeight-n.scrollTop-n.clientHeight),s=e.filter(({el:e})=>e.getBoundingClientRect().top-a>t).length;if(0===s||s>=e.length)return null;if(a<=2)return e.at(-1).id;if(a>=96*s)return null;let l=Math.ceil(a/96);return e[e.length-l].id}(e,n);if(null!==a)return a;let s=e[0].id;for(let{id:t,el:r}of e)if(r.getBoundingClientRect().top-n<=0)s=t;else break;return s}(r,eo.current),n=en.current!==i;if(t&&(n||es.current)&&(es.current=!0,(0,b.Z)(i)),n){if(t&&!(0,h.P)()){let e=V.findIndex(e=>e.id===i),t=V[e];t&&el.current?.(t,e)}en.current=i,ei(i)}},H[0]=eo,H[1]=el,H[2]=V,H[3]=n):n=H[3];let ed=n;H[4]!==K||H[5]!==ed?(o=()=>{ec.current!==K&&(ec.current=K,ed({shouldUpdateHash:!1}))},m=[K,ed],H[4]=K,H[5]=ed,H[6]=o,H[7]=m):(o=H[6],m=H[7]),(0,a.useEffect)(o,m),H[8]!==ed||H[9]!==V?(f=()=>{var e;let t,r,i,n=C(V);if(n.length>0&&!es.current){let e=window.location.hash.slice(1);(""===e||n.some(t=>t.id===e))&&(es.current=!0,ea.current=function({elements:e,activeAnchorRef:t,setActiveAnchor:r}){let i=window.location.hash.slice(1);if(!i)return;let n=e.find(e=>e.id===i);if(!n)return;t.current=n.id,r(n.id);let a=e.findIndex(e=>e.id===n.id);return p({id:n.id,target:n.el,precedingElements:e.slice(0,a).map(e=>e.el),behavior:"auto",settleMs:3e3})}({elements:n,activeAnchorRef:en,setActiveAnchor:ei})??null)}ed({shouldUpdateHash:!1});let a=()=>ed({shouldUpdateHash:!0}),s=_(a),l=(0,h.X)(a),o=(e=b.z,t=null,r=(0,u.$)(),i=()=>{null!==t&&window.clearTimeout(t),t=window.setTimeout(()=>{t=null,e()},120)},window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i,{passive:!0}),r?.addEventListener("scroll",i,{passive:!0}),()=>{null!==t&&window.clearTimeout(t),window.removeEventListener("scroll",i),window.removeEventListener("resize",i),r?.removeEventListener("scroll",i)});return()=>{ea.current?.(),ea.current=null,s(),l(),o()}},H[8]=ed,H[9]=V,H[10]=f):f=H[10],H[11]!==V?(g=[V],H[11]=V,H[12]=g):g=H[12],(0,a.useLayoutEffect)(f,g),H[13]!==V?(j=(e,t)=>{ea.current?.();let r=C(V),i=r.findIndex(t=>t.id===e);ea.current=p({id:e,target:t,precedingElements:-1===i?[]:r.slice(0,i).map(k),behavior:"smooth",settleMs:2500})},H[13]=V,H[14]=j):j=H[14];let eu=j;H[15]!==J||H[16]!==eu?(R=e=>{let t=document.querySelector(`#${e}`);t&&(ea.current?.(),ea.current=null,(0,h.m)(e),es.current=!0,en.current=e,ei(e),(0,b.e)(e),J?.(e),eu(e,t))},H[15]=J,H[16]=eu,H[17]=R):R=H[17];let eh=R;H[18]!==eh?(S=(e,t)=>{e.preventDefault(),eh(t)},H[18]=eh,H[19]=S):S=H[19];let em=S;H[20]!==er||H[21]!==V?(M=V.find(e=>e.id===er)??V[0],H[20]=er,H[21]=V,H[22]=M):M=H[22];let ep=M;H[23]!==V?(T=V.filter(y),H[23]=V,H[24]=T):T=H[24];let ef=T,eg=void 0!==ep,eb=(0,a.useRef)(null),ex=(0,a.useRef)(null);H[25]!==eg?(O=()=>{let e=eb.current,t=ex.current;if(!eg||null===e||null===t)return;let r=()=>{e.toggleAttribute("data-stuck",function({markerBottom:e,barTop:t}){return e{"use strict";function t(){return document.querySelector("#page-content")}function r(e){return null!==e&&"auto"===getComputedStyle(e).overflowY}e.s(["$",0,t,"j",0,function(){let e=t();return r(e)?e.scrollTop:window.scrollY},"Z",0,function(){let e=t();r(e)?e.scrollTo({top:0,behavior:"smooth"}):window.scrollTo({top:0,behavior:"smooth"})},"b",0,r])},232458,e=>{"use strict";var t=e.i(427150);function r(){let e=globalThis.__openrouterSectionNavScrollLock;if((0,t.f)(e))return e.hashPinCount??=0,e.recalcListeners??=new Set,e;let r={anchor:null,hashPinCount:0,recalcListeners:new Set};return globalThis.__openrouterSectionNavScrollLock=r,r}e.s(["k",0,function(){return r().anchor},"P",0,function(){return r().hashPinCount>0},"I",0,function(){r().hashPinCount+=1},"l",0,function(e){let t=r();t.anchor===e&&(t.anchor=null)},"E",0,function(){for(let e of r().recalcListeners)e()},"m",0,function(e){r().anchor=e},"X",0,function(e){let t=r().recalcListeners;return t.add(e),()=>{t.delete(e)}},"e",0,function(){let e=r();e.hashPinCount=Math.max(0,e.hashPinCount-1)}])},214530,e=>{"use strict";var t=e.i(848984),r=e.i(232458);function i(e){let t=`#${e}`;if(window.location.hash===t)return;let r=new URL(window.location.href);r.hash=e,window.history.replaceState(null,"",r)}e.s(["z",0,function(){(0,r.P)()||(0,t.j)()>2||function(){if(""===window.location.hash)return;let{pathname:e,search:t}=window.location;window.history.replaceState(null,"",`${e}${t}`)}()},"Z",0,function(e){(0,r.P)()||2>=(0,t.j)()||i(e)},"e",0,i])},246705,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(207298),n=e.i(288265),a=e.i(872635),s=e.i(354896),l=e.i(10460),o=e.i(961160),c=e.i(16043),d=e.i(136562),u=e.i(192668),h=e.i(199630),m=e.i(913743),p=e.i(139697),f=e.i(924360),g=e.i(988590);let b={javascript:"javascript",typescript:"typescript",tsx:"tsx",python:"python",shell:"shell",rust:"rust",go:"go",json:"json",html:"html",ruby:"ruby"},x={javascript:"javascript",typescript:"typescript",tsx:"tsx",python:"python",shell:"bash",rust:"rust",go:"go",json:"json",html:"html",ruby:"ruby"},v="code",y=new Map([["javascript","JavaScript"],["typescript","TypeScript"],["tsx","TSX"],["python","Python"],["shell","Shell"],["rust","Rust"],["go","Go"],["json","JSON"],["html","HTML"],["ruby","Ruby"]]);function k(e){let t=e.toLowerCase();return(0,g.q)(t,b)?t:void 0}var w=e.i(609623);let j={Block:"block",Line:"line"};function N(e){return"string"==typeof e.value}let C=(0,i.f)("overflow-auto bg-doc-surface font-mono text-body leading-relaxed text-foreground",{variants:{maxHeight:{sm:"max-h-80",md:"max-h-96",lg:"max-h-128",xl:"max-h-none"}},defaultVariants:{maxHeight:"md"}});e.s(["CodeBlock",0,e=>{var i,g;let b,_,R,S,M,T,O,A,L,E,z,B,P,I,F,q,U,$,H,V=(0,r.c)(69),W=(0,n.f)();V[0]!==W?(b=e=>{let t;return e===v?W("Code"):(void 0===(t=k(e))?void 0:y.get(t))??e},V[0]=W,V[1]=b):b=V[1];let D=b,{resolvedTheme:G}=(0,o.i)(),Q=!(0,h.f)(),{isCopied:K,copyToClipboard:X}=(0,u.f)(1200),[J,Y]=(0,c.useState)(0),Z=!0===e.collapsible,[ee,et]=(0,c.useState)(Z&&!0===e.defaultCollapsed),er=(0,c.useId)(),ei=($=(0,r.c)(2),H=(0,c.useRef)(null),$[0]===Symbol.for("react.memo_cache_sentinel")?(q=()=>{let e=H.current;if(!e)return;let t=function(){var t;let r,i;if(!e)return;let n=(r=(t=e).scrollLeft>2,i=t.scrollLeft+t.clientWidth{e.removeEventListener("scroll",t),r.disconnect()}},U=[],$[0]=q,$[1]=U):(q=$[0],U=$[1]),(0,c.useEffect)(q,U),H),{value:en}=e,ea=N(e)?e.title:void 0,es=N(e)?e.language:void 0,el=N(e)?e.rawLanguage:void 0;V[2]!==es||V[3]!==el||V[4]!==ea||V[5]!==en?(i={title:ea,language:es,rawLanguage:el},_="string"==typeof en?[{code:en,title:i.title??i.language??i.rawLanguage??v,language:i.language,rawLanguage:i.rawLanguage}]:Array.isArray(en)?en:Object.entries(en).map(([e,t])=>({rawLanguage:e,title:e,code:t??"",language:k(e)})),V[2]=es,V[3]=el,V[4]=ea,V[5]=en,V[6]=_):_=V[6];let eo=_,ec="light"===G?e.lightTheme??"github-light":e.darkTheme??"github-dark",ed=void 0!==eo[J]?J:0,eu=eo[ed]??eo[0];V[7]!==eu.code||V[8]!==e.dedent?(g=eu.code,R=e.dedent?(0,f.f)(g):g,V[7]=eu.code,V[8]=e.dedent,V[9]=R):R=V[9];let eh=R;V[10]!==eu?(S=function(e){if(e.language)return x[e.language];if(!e.rawLanguage)return"text";let t=k(e.rawLanguage);return t?x[t]:e.rawLanguage}(eu),V[10]=eu,V[11]=S):S=V[11];let em=S;V[12]!==eh||V[13]!==X||V[14]!==e?(M=()=>{X(eh,{shouldWaitForReset:!1}).then(t=>{t&&e.onCopy?.()})},V[12]=eh,V[13]=X,V[14]=e,V[15]=M):M=V[15];let ep=M;V[16]!==ep||V[17]!==K||V[18]!==W||V[19]!==e.hideCopy?(T=e.hideCopy?null:(0,t.jsx)(p.Button,{type:"button",variant:"ghost",size:"icon-sm",touchTarget:"below-sm","aria-label":K?W("Copied code"):W("Copy code"),onClick:ep,className:"shrink-0",children:(0,t.jsx)(w.f,{active:K,from:(0,t.jsx)(l.f,{className:"size-4"}),to:(0,t.jsx)(a.f,{className:"size-4"})})}),V[16]=ep,V[17]=K,V[18]=W,V[19]=e.hideCopy,V[20]=T):T=V[20];let ef=T;if(e.variant===j.Line){let r,i,n;return V[21]!==e.className?(r=(0,d.f)("flex items-center gap-2 rounded-lg border border-border bg-doc-surface pr-1 pl-4",e.className),V[21]=e.className,V[22]=r):r=V[22],V[23]!==eh||V[24]!==ei?(i=(0,t.jsx)("code",{ref:ei,"data-testid":"code-block",className:"min-w-0 flex-1 overflow-x-auto overscroll-x-contain bg-transparent py-3 font-mono text-body whitespace-pre text-foreground scrollbar-hide",children:eh}),V[23]=eh,V[24]=ei,V[25]=i):i=V[25],V[26]!==ef||V[27]!==r||V[28]!==i?(n=(0,t.jsxs)("div",{className:r,children:[i,ef]}),V[26]=ef,V[27]=r,V[28]=i,V[29]=n):n=V[29],n}let eg=eo.length>1;V[30]!==e.bodyClassName||V[31]!==e.maxHeight?(O=(0,d.f)(C({maxHeight:e.maxHeight}),e.bodyClassName),V[30]=e.bodyClassName,V[31]=e.maxHeight,V[32]=O):O=V[32];let eb=O;V[33]!==eh||V[34]!==em||V[35]!==eb||V[36]!==er||V[37]!==ec||V[38]!==Q?(A=Q?(0,t.jsx)("pre",{"data-testid":"code-block",id:er,className:eb,children:(0,t.jsx)("code",{className:"inline-block min-w-full whitespace-pre bg-transparent p-4 md:whitespace-pre-wrap",children:eh})}):(0,t.jsx)("div",{"data-testid":"code-block",id:er,className:eb,children:(0,t.jsx)(m.f,{code:eh,lang:em,theme:ec,roundedCorners:!1,border:!1,codeBackgroundClassName:"bg-transparent"})}),V[33]=eh,V[34]=em,V[35]=eb,V[36]=er,V[37]=ec,V[38]=Q,V[39]=A):A=V[39];let ex=A;V[40]!==e.className?(L=(0,d.f)("overflow-hidden rounded-lg border border-border bg-card",e.className),V[40]=e.className,V[41]=L):L=V[41];let ev=!ee&&"border-b border-border";V[42]!==e.tabClassName||V[43]!==ev?(E=(0,d.f)("flex h-9 items-center justify-between gap-2 px-3",ev,e.tabClassName),V[42]=e.tabClassName,V[43]=ev,V[44]=E):E=V[44],V[45]!==eu.title||V[46]!==er||V[47]!==W||V[48]!==ee||V[49]!==Z?(z=Z?(0,t.jsx)(p.Button,{type:"button",variant:"ghost",size:"icon-sm","aria-controls":er,"aria-expanded":!ee,"aria-label":ee?W("Show {title}",{title:eu.title}):W("Hide {title}",{title:eu.title}),onClick:()=>et(!ee),className:"shrink-0",children:(0,t.jsx)(s.f,{className:(0,d.f)("size-4 transition-transform",ee&&"-rotate-90")})}):null,V[45]=eu.title,V[46]=er,V[47]=W,V[48]=ee,V[49]=Z,V[50]=z):z=V[50],V[51]!==eu.title||V[52]!==eg||V[53]!==e||V[54]!==ed||V[55]!==eo||V[56]!==D?(B=eg?(0,t.jsx)("span",{className:"flex min-w-0 items-center gap-1 overflow-x-auto",children:eo.map((r,i)=>(0,t.jsx)(p.Button,{type:"button",variant:"ghost",size:"xs","aria-pressed":ed===i,onClick:()=>{Y(i),e.onTabChange?.(i)},tone:ed===i?void 0:"subdued",className:ed===i?"bg-accent text-accent-foreground":void 0,children:D(r.title)},r.title))}):(0,t.jsx)("span",{className:"truncate text-caption text-muted-foreground",children:D(eu.title)}),V[51]=eu.title,V[52]=eg,V[53]=e,V[54]=ed,V[55]=eo,V[56]=D,V[57]=B):B=V[57],V[58]!==z||V[59]!==B?(P=(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 items-center gap-1",children:[z,B]}),V[58]=z,V[59]=B,V[60]=P):P=V[60],V[61]!==ef||V[62]!==E||V[63]!==P?(I=(0,t.jsxs)("div",{className:E,children:[P,ef]}),V[61]=ef,V[62]=E,V[63]=P,V[64]=I):I=V[64];let ey=ee?null:ex;return V[65]!==I||V[66]!==ey||V[67]!==L?(F=(0,t.jsxs)("div",{className:L,children:[I,ey]}),V[65]=I,V[66]=ey,V[67]=L,V[68]=F):F=V[68],F},"CodeBlockVariant",0,j],246705)},548204,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(16043),n=e.i(815922),a=e.i(93836),s=e.i(741780),l=e.i(3758),o=e.i(420304),c=e.i(240070);let d={...o.l,...c.f},u=i.forwardRef(function(e,r){let{render:o,className:c,defaultOpen:u=!1,disabled:h=!1,onOpenChange:m,open:p,style:f,...g}=e,b=(0,n.f)(m),x=(0,s.f)({open:p,defaultOpen:u,onOpenChange:b,disabled:h}),v=i.useMemo(()=>({open:x.open,disabled:x.disabled,transitionStatus:x.transitionStatus}),[x.open,x.disabled,x.transitionStatus]),y=i.useMemo(()=>({...x,onOpenChange:b,state:v}),[x,b,v]),k=(0,a.a)("div",e,{state:v,ref:r,props:g,stateAttributesMapping:d});return(0,t.jsx)(l.p.Provider,{value:y,children:k})});var h=e.i(225421);let m={...o.J,...c.f},p=i.forwardRef(function(e,t){let{panelId:r,open:i,handleTrigger:n,state:s,disabled:o}=(0,l.$)(),{className:c,disabled:d=o,render:u,nativeButton:p=!0,style:f,...g}=e,{getButtonProps:b,buttonRef:x}=(0,h.f)({disabled:d,native:p});return(0,a.a)("button",e,{state:s,ref:[t,x],props:[{"aria-controls":i?r:void 0,"aria-expanded":i,onClick:n},g,b],stateAttributesMapping:m})});var f=e.i(533124),g=e.i(612308),b=e.i(22525);let x=i.forwardRef(function(e,t){let{className:r,hiddenUntilFound:i,keepMounted:n,render:s,id:o,style:c,...u}=e,{defaultPanelId:h,mounted:m,onOpenChange:p,open:x,setMounted:v,setPanelIdState:y,setOpen:k,state:w,transitionStatus:j}=(0,l.$)(),N=o||void 0,C=N??h;(0,f.f)(()=>(y(e=>N??(null===e?void 0:e)),()=>{y(e=>e===N?null:e)}),[N,y]);let{height:_,props:R,ref:S,shouldPreventOpenAnimation:M,shouldRender:T,transitionStatus:O,width:A}=(0,b.f)({externalRef:t,hiddenUntilFound:i??!1,id:C,keepMounted:n??!1,mounted:m,onOpenChange:p,open:x,setMounted:v,setOpen:k,transitionStatus:j}),L={...w,transitionStatus:O},E=(0,g.f)(c,L),z=(0,a.a)("div",{...e,style:void 0},{state:L,ref:S,props:[R,{style:{"--collapsible-panel-height":void 0===_?"auto":`${_}px`,"--collapsible-panel-width":void 0===A?"auto":`${A}px`}},u,E?{style:E}:void 0,M?{style:{animationName:"none"}}:void 0],stateAttributesMapping:d});return T?z:null});e.s(["Panel",0,x,"Root",0,u,"Trigger",0,p],772956);var v=e.i(772956),v=v,y=v,k=v,w=e.i(136562),j=e.i(159125);e.s(["Collapsible",0,function(e){let i,n,a=(0,r.c)(4);return a[0]!==e?({...i}=e,a[0]=e,a[1]=i):i=a[1],a[2]!==i?(n=(0,t.jsx)(v.Root,{"data-slot":"collapsible",...i}),a[2]=i,a[3]=n):n=a[3],n},"CollapsibleContent",0,function(e){let i,n,a,s,l=(0,r.c)(8);return l[0]!==e?({className:i,...n}=e,l[0]=e,l[1]=i,l[2]=n):(i=l[1],n=l[2]),l[3]!==i?(a=e=>(0,w.f)("h-(--collapsible-panel-height)",j.f,"function"==typeof i?i(e):i),l[3]=i,l[4]=a):a=l[4],l[5]!==n||l[6]!==a?(s=(0,t.jsx)(k.Panel,{"data-slot":"collapsible-content",className:a,...n}),l[5]=n,l[6]=a,l[7]=s):s=l[7],s},"CollapsibleTrigger",0,function(e){let i,n,a=(0,r.c)(4);return a[0]!==e?({...i}=e,a[0]=e,a[1]=i):i=a[1],a[2]!==i?(n=(0,t.jsx)(y.Trigger,{"data-slot":"collapsible-trigger",...i}),a[2]=i,a[3]=n):n=a[3],n}],548204)},359544,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(16043),n=e.i(547322),a=e.i(193461),s=e.i(217411),l=e.i(378318);e.s(["f",0,function(e){let o,c,d,u,h,m,p,f=(0,r.c)(28),{title:g,trigger:b,options:x,value:v,onValueChange:y,shouldApplyCurrentValue:k}=e,w=void 0!==k&&k,[j,N]=(0,i.useState)(!1),[C,_]=(0,i.useState)(v),R=(0,i.useRef)(null),S=(0,i.useRef)(!1),M=(0,i.useId)(),T=(0,i.useRef)(null);f[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>T.current?.querySelector('[role="radio"][data-checked]')??null,f[0]=o):o=f[0];let O=o,A=()=>{let e=R.current;return R.current=null,null!==e&&y(e),e},L=e=>{e&&_(A()??v),N(e)},E=e=>{R.current=e!==v||w?e:null,N(!1)},z=e=>{e||A()},B=s.j;f[1]!==b?(c=(0,t.jsx)(s.V,{render:b}),f[1]=b,f[2]=c):c=f[2];let P=s.U;f[3]!==g||f[4]!==M?(d=(0,t.jsx)(l.f,{title:g,titleId:M}),f[3]=g,f[4]=M,f[5]=d):d=f[5];let I=a.x,F=e=>{"string"==typeof e&&(_(e),S.current||E(e))},q=()=>{S.current=!1},U=e=>{S.current=e.key.startsWith("Arrow"),("Enter"===e.key||" "===e.key)&&(e.preventDefault(),E(C))},$=x.map((e,r)=>(0,t.jsx)(n.f,{value:e.value,label:e.label,accessibleLabel:e.accessibleLabel,labelId:`${M}-option-${r}`,isSelected:e.value===C,onSelect:()=>{_(e.value),E(e.value)}},e.value));return f[6]!==I||f[7]!==C||f[8]!==F||f[9]!==q||f[10]!==U||f[11]!==$||f[12]!==M?(u=(0,t.jsx)(I,{ref:T,"aria-labelledby":M,value:C,onValueChange:F,onKeyUpCapture:q,onKeyDownCapture:U,className:"gap-0 px-2",children:$}),f[6]=I,f[7]=C,f[8]=F,f[9]=q,f[10]=U,f[11]=$,f[12]=M,f[13]=u):u=f[13],f[14]!==d||f[15]!==u?(h=(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[d,u]}),f[14]=d,f[15]=u,f[16]=h):h=f[16],f[17]!==P||f[18]!==O||f[19]!==h?(m=(0,t.jsx)(P,{side:"bottom",showCloseButton:!1,keepMounted:!1,initialFocus:O,className:"px-0 pt-3",children:h}),f[17]=P,f[18]=O,f[19]=h,f[20]=m):m=f[20],f[21]!==B||f[22]!==L||f[23]!==z||f[24]!==j||f[25]!==m||f[26]!==c?(p=(0,t.jsxs)(B,{swipeDirection:"down",open:j,onOpenChange:L,onOpenChangeComplete:z,children:[c,m]}),f[21]=B,f[22]=L,f[23]=z,f[24]=j,f[25]=m,f[26]=c,f[27]=p):p=f[27],p}])},547322,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(872635),n=e.i(136562),a=e.i(193461);e.s(["f",0,function(e){let s,l,o,c,d,u,h=(0,r.c)(20),{value:m,label:p,accessibleLabel:f,labelId:g,isSelected:b,onSelect:x}=e,v=b&&"bg-selected-bg";h[0]!==v?(s=(0,n.f)("flex min-h-11 cursor-pointer items-center gap-3 rounded-xl px-2 text-body select-none","transition-colors duration-quick active:bg-card-hover has-focus-visible:shadow-focus",v),h[0]=v,h[1]=s):s=h[1];let y=void 0===f?g:void 0;return h[2]!==f||h[3]!==y||h[4]!==m?(l=(0,t.jsx)("span",{className:"sr-only",children:(0,t.jsx)(a.a,{value:m,"aria-label":f,"aria-labelledby":y})}),h[2]=f,h[3]=y,h[4]=m,h[5]=l):l=h[5],h[6]!==p||h[7]!==g?(o=(0,t.jsx)("span",{id:g,className:"min-w-0 flex-1 text-foreground",children:p}),h[6]=p,h[7]=g,h[8]=o):o=h[8],h[9]!==b?(c=b&&(0,t.jsx)(i.f,{"aria-hidden":!0}),h[9]=b,h[10]=c):c=h[10],h[11]!==c?(d=(0,t.jsx)("span",{className:"flex h-4 w-7 shrink-0 items-center justify-center text-primary",children:c}),h[11]=c,h[12]=d):d=h[12],h[13]!==x||h[14]!==s||h[15]!==l||h[16]!==o||h[17]!==d||h[18]!==m?(u=(0,t.jsxs)("div",{role:"presentation","data-option-value":m,onClick:x,className:s,children:[l,o,d]}),h[13]=x,h[14]=s,h[15]=l,h[16]=o,h[17]=d,h[18]=m,h[19]=u):u=h[19],u}])},193461,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(16043),n=e.i(82153),a=e.i(533124),s=e.i(367898),l=e.i(115370),o=e.i(132887),c=e.i(111407),d=e.i(240070),u=e.i(825086);let h={checked:e=>e?{"data-checked":""}:{"data-unchecked":""},...d.f,...u.s};var m=e.i(729253),p=e.i(811673),f=e.i(93836),g=e.i(225421),b=e.i(509208),x=e.i(604672),v=e.i(141436),y=e.i(176322),k=e.i(446443),w=e.i(76129),j=e.i(599096),N=e.i(461430);let C=i.createContext(void 0);var _=e.i(442291),R=e.i(107397);let S=i.createContext(void 0),M=i.forwardRef(function(e,r){let{render:d,className:u,disabled:R=!1,readOnly:M=!1,required:T=!1,"aria-labelledby":O,value:A,inputRef:L,nativeButton:E=!1,id:z,style:B,...P}=e,I=i.useContext(C),{disabled:F,readOnly:q,required:U,form:$,checkedValue:H,touched:V=!1,validation:W,name:D,setCheckedValue:G=l.x,setTouched:Q=l.x,registerInputRef:K=l.x}=I??{},{setTouched:X,setFilled:J,state:Y,disabled:Z}=(0,v.f)(),ee=(0,k.f)(),{labelId:et,getDescriptionProps:er}=(0,w.f)(),ei=Z||ee.disabled||F||R,en=q||M,ea=U||T,es=I?H===A:""===A,el=i.useRef(null),eo=(0,y.f)(ei,el),ec=i.useRef(null),ed=W?.registerInput,eu=i.useCallback(e=>ed?.(e,{controlRef:el,value:void 0}),[ed]),eh=(0,n.A)(L,ec,K,eu);(0,a.f)(()=>{ec.current?.checked&&J(!0)},[J]),(0,a.f)(()=>{if(ec.current){if(ei&&es)return void K(null);K(ec.current)}},[es,ei,K]);let em=(0,p.f)(),ep=(0,N.f)({id:z}),ef=E?void 0:ep,eg={role:"radio","aria-checked":es,"aria-labelledby":(0,j.f)(O,et,ec,!E,ef,P["aria-label"]),[b.f]:es?"":void 0,id:E?ep:em,onKeyDown(e){"Enter"===e.key&&e.preventDefault()},onClick(e){if(e.defaultPrevented||ei||en)return;e.preventDefault();let t=ec.current;t&&(0,m.f)(t,e)},onFocus(e){eo(!0),e.defaultPrevented||ei||en||!V||(ec.current?.click(),Q(!1))},onBlur(){I||eo(!1)}},{getButtonProps:eb,buttonRef:ex}=(0,g.f)({disabled:ei,native:E,composite:!1}),ev={type:"radio",ref:eh,form:$,id:ef,name:D,tabIndex:-1,style:D?s.L:s.p,"aria-hidden":!0,...void 0!==A?{value:(0,_.f)(A)}:l.w,disabled:ei,checked:es,required:ea,readOnly:en,onChange(e){if(e.nativeEvent.defaultPrevented||ei||en||void 0===A)return;let t=(0,o.j)(c.f.none,e.nativeEvent);G(A,t),t.isCanceled||X(!0)},onClick(e){e.stopPropagation()},onFocus(){el.current?.focus()}},ey=i.useMemo(()=>({...Y,required:ea,disabled:ei,readOnly:en,checked:es}),[Y,ei,en,es,ea]),ek=void 0!==I,ew=[r,el,ex],ej=[eg,P,eb,er,W?e=>W.getValidationProps(ei,e):l.w],eN=(0,f.a)("span",e,{enabled:!ek,state:ey,ref:ew,props:ej,stateAttributesMapping:h});return(0,t.jsxs)(S.Provider,{value:ey,children:[ek?(0,t.jsx)(x.f,{tag:"span",render:d,className:u,style:B,state:ey,refs:ew,props:ej,stateAttributesMapping:h}):eN,(0,t.jsx)("input",{...ev,suppressHydrationWarning:!0})]})});var T=e.i(692933),O=e.i(288646);let A=i.forwardRef(function(e,t){let{render:r,className:n,style:a,keepMounted:s=!1,...l}=e,o=function(){let e=i.useContext(S);if(void 0===e)throw Error((0,R.f)(52));return e}(),c=o.checked,{mounted:d,transitionStatus:u,setMounted:m}=(0,O.f)(c),p={...o,transitionStatus:u},g=i.useRef(null),b=(0,f.a)("span",e,{ref:[t,g],state:p,props:l,stateAttributesMapping:h});return((0,T.f)({batch:!0,enabled:!c,open:c,ref:g,onComplete(){c||m(!1)}}),s||d)?b:null});e.s(["Indicator",0,A,"Root",0,M],401506);var L=e.i(401506),L=L,E=L,z=e.i(389475),B=e.i(815922),P=e.i(393298),I=e.i(597233),F=e.i(587135),q=e.i(967090);Object.keys(u.t);let U=i.createContext(void 0);var $=e.i(621441),H=e.i(957854);let V=[I.B],W=i.forwardRef(function(e,r){let{render:s,className:l,disabled:o,readOnly:c,required:d,onValueChange:h,value:m,defaultValue:f,form:g,name:b,inputRef:x,id:y,style:k,...j}=e,{setTouched:N,setFocused:_,validationMode:S,name:M,disabled:T,state:O,validation:A,setDirty:L,setFilled:E,validityData:I}=(0,v.f)(),{labelId:W}=(0,w.f)(),{clearErrors:D,elementRef:G}=(0,$.f)(),Q=function(e=!1){let t=i.useContext(U);if(!t&&!e)throw Error((0,R.f)(86));return t}(!0),K=T||o,X=M??b,J=(0,p.f)(y),[Y,Z]=(0,z.f)({controlled:m,default:f,name:"RadioGroup",state:"value"}),[ee,et]=i.useState(!1),er=(0,B.f)((e,t)=>{h?.(e,t),t.isCanceled||Z(e)}),ei=A.getInputControl,en=i.useMemo(()=>({get current(){return ei()}}),[ei]),ea=i.useRef(null),es=i.useRef(null),el=(0,n.A)(ea,x),eo=i.useRef(el),ec=(0,B.f)(e=>{(ea.current!==e||eo.current!==el)&&(eo.current=el,el?.(e))});(0,a.f)(()=>{ec(ea.current)},[el,ec]);let ed=(0,B.f)(e=>{if(e){if(!e.disabled){es.current||(es.current=e);let t=ea.current;(e.checked||null==t||t.disabled)&&ec(e)}return()=>{es.current===e&&(es.current=null),ea.current===e&&ec(null)}}}),eu=(0,B.f)(()=>{let e=G.current;if(!e)return Y??null;for(let t of A.registeredInputs.keys())if(t.checked&&!t.matches(":disabled")&&(!e||t.form===e||null===t.form&&!t.hasAttribute("form")))return Y??null;return null});(0,q.f)(en,J,Y??null,eu,!K,b),(0,H.f)(Y,()=>{D(X),L(Y!==I.initialValue),E(null!=Y),A.change(Y);let e=es.current;null==Y&&e&&!e.disabled&&ec(e)});let eh=W??Q?.legendId,em={...O,disabled:K??!1,required:d??!1,readOnly:c??!1},ep=i.useMemo(()=>({checkedValue:Y,disabled:K,form:g,validation:A,name:X,readOnly:c,registerInputRef:ed,required:d,setCheckedValue:er,setTouched:et,touched:ee}),[Y,K,g,A,X,c,ed,d,er,et,ee]);return(0,t.jsx)(C.Provider,{value:ep,children:(0,t.jsx)(F.f,{render:s,className:l,style:k,state:em,props:[{id:y,role:"radiogroup","aria-required":d||void 0,"aria-disabled":K||void 0,"aria-readonly":c||void 0,"aria-labelledby":eh,onBlur(e){(0,P.I)(e.currentTarget,e.relatedTarget)||(et(!1),N(!0),_(!1),"onBlur"===S&&A.commit(Y))},onKeyDownCapture(e){e.key.startsWith("Arrow")&&et(!0)}},j,e=>A.getValidationProps(K??!1,e)],refs:[r],stateAttributesMapping:u.s,enableHomeAndEndKeys:!1,modifierKeys:V})})});var D=e.i(136562);e.s(["x",0,function(e){let i,n,a,s,l,o=(0,r.c)(10);return o[0]!==e?({className:i,ref:a,...n}=e,o[0]=e,o[1]=i,o[2]=n,o[3]=a):(i=o[1],n=o[2],a=o[3]),o[4]!==i?(s=(0,D.f)("grid gap-2",i),o[4]=i,o[5]=s):s=o[5],o[6]!==n||o[7]!==a||o[8]!==s?(l=(0,t.jsx)(W,{className:s,...n,ref:a}),o[6]=n,o[7]=a,o[8]=s,o[9]=l):l=o[9],l},"a",0,function(e){let i,n,a,s,l,o,c=(0,r.c)(11);return c[0]!==e?({className:i,ref:a,...n}=e,c[0]=e,c[1]=i,c[2]=n,c[3]=a):(i=c[1],n=c[2],a=c[3]),c[4]!==i?(s=(0,D.f)("flex shrink-0 items-center justify-center aspect-square h-4 w-4 rounded-full border border-foreground/30 bg-muted text-primary cursor-pointer hover:border-foreground/50 data-[checked]:border-primary ring-offset-background focus:outline-none focus-visible:border-focus-border focus-visible:shadow-focus data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",i),c[4]=i,c[5]=s):s=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(L.Indicator,{keepMounted:!0,className:"flex items-center justify-center transition-[scale,opacity] duration-quick ease-smooth-out motion-reduce:transition-opacity motion-reduce:data-[unchecked]:scale-100 data-[unchecked]:scale-(--scale-large) data-[unchecked]:opacity-0",children:(0,t.jsx)("span",{"aria-hidden":!0,className:"size-2 rounded-full bg-current forced-colors:bg-[CanvasText]"})}),c[6]=l):l=c[6],c[7]!==n||c[8]!==a||c[9]!==s?(o=(0,t.jsx)(E.Root,{ref:a,className:s,...n,children:l}),c[7]=n,c[8]=a,c[9]=s,c[10]=o):o=c[10],o}],193461)},378318,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(612927),n=e.i(199168),a=e.i(139697),s=e.i(217411);e.s(["f",0,function(e){let l,o,c,d,u,h,m=(0,r.c)(12),{title:p,titleId:f}=e,g=(0,n.o)();return m[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("div",{"aria-hidden":!0,className:"mx-auto h-1 w-10 rounded-full bg-foreground/20"}),m[0]=l):l=m[0],m[1]!==p||m[2]!==f?(o=(0,t.jsx)(s.L,{id:f,children:p}),m[1]=p,m[2]=f,m[3]=o):o=m[3],m[4]!==g?(c=g("Close"),m[4]=g,m[5]=c):c=m[5],m[6]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(i.X,{"aria-hidden":!0}),m[6]=d):d=m[6],m[7]!==c?(u=(0,t.jsx)(s.O,{render:(0,t.jsx)(a.Button,{variant:"ghost",size:"icon",shape:"pill",touchTarget:"below-sm","aria-label":c,children:d})}),m[7]=c,m[8]=u):u=m[8],m[9]!==o||m[10]!==u?(h=(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[l,(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 pr-2 pl-4",children:[o,u]})]}),m[9]=o,m[10]=u,m[11]=h):h=m[11],h}])},512688,e=>{"use strict";var t=e.i(663456),r=e.i(16043),i=e.i(143253);e.s(["f",0,function(e){let n,a,s=(0,t.c)(3),l=(0,r.useRef)(e);return s[0]!==e?(n=()=>{l.current=e},a=[e],s[0]=e,s[1]=n,s[2]=a):(n=s[1],a=s[2]),(0,i.f)(n,a),l}])},866969,e=>{"use strict";var t=e.i(663456),r=e.i(16043),i=e.i(143253);e.s(["f",0,function(e,n){let a,s,l,o,c=(0,t.c)(6),d=(0,r.useRef)(e);c[0]!==e?(a=()=>{d.current=e},s=[e],c[0]=e,c[1]=a,c[2]=s):(a=c[1],s=c[2]),(0,i.f)(a,s),c[3]!==n?(l=()=>{if(null===n)return;let e=setInterval(()=>{d.current()},n);return()=>{clearInterval(e)}},o=[n],c[3]=n,c[4]=l,c[5]=o):(l=c[4],o=c[5]),(0,r.useEffect)(l,o)}])},769715,e=>{e.q("/_next/static/immutable/media/highlight.worker.3-ioem5915ckg.ts")},405266,e=>{e.v(e.r(510914).f("static/immutable/chunks/turbopack-worker-38eq_8frvyaul.js",["static/immutable/chunks/0t_n-r81acfo9.js","static/immutable/chunks/418fptazfd3br.js","static/immutable/chunks/turbopack-0bzpzepyyv54r.js","static/immutable/chunks/turbopack-35u-62ruoxs7i.js"]))},924360,e=>{"use strict";let t=void 0!==Reflect.get(globalThis,"Bun"),r=new Map([[110,"\n"],[116," "],[114,"\r"],[118,"\v"],[98,"\b"],[102,"\f"],[48,"\0"]]),i=/\\u\{([\da-fA-F]{1,6})\}/g,n=/\\u([\da-fA-F]{4})/g,a=/\\u(?:\{([\da-fA-F]{1,6})\}|([\da-fA-F]{4}))/g,s=/\\\n[ \t]*/g,l=/\\`/g,o=/\\\$/g,c=/\\\{/g;function d(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function u(e,t){return String.fromCodePoint(Number.parseInt(t,16))}function h(e,t){return String.fromCharCode(Number.parseInt(t,16))}function m(e){return String.fromCodePoint(Number.parseInt(123===e.charCodeAt(2)?e.slice(3,-1):e.slice(2),16))}e.s(["f",0,function(e,...p){var f,g;let b="string"!=typeof e,x=(function(e){let t=function(e){let t,r=0;for(;;){var i;let n=r;for(;n=11&&i<=13:160===i||5760===i||i>=8192&&i<=8202||8232===i||8233===i||8239===i||8287===i||12288===i||65279===i);)n++;let a=n-r;a>0&&n{"use strict";let t={ChatCompletions:"chat-completions",Responses:"responses",AnthropicMessages:"anthropic-messages",Completions:"completions",Other:"other"},r=[{suffix:"/chat/completions",skin:t.ChatCompletions},{suffix:"/responses",skin:t.Responses},{suffix:"/messages",skin:t.AnthropicMessages},{suffix:"/completions",skin:t.Completions}];e.s(["$",0,r,"Q",0,t])},948913,e=>{"use strict";e.i(882844);var t=e.i(635157),r=e.i(898820);t.z.enum([r.Q.Responses,r.Q.ChatCompletions,r.Q.AnthropicMessages]),e.s(["m",0,"openrouter:","d",0,{OpenRouterAdvisor:"openrouter:advisor",OpenRouterApplyPatch:"openrouter:apply_patch",OpenRouterBash:"openrouter:bash",OpenRouterDatetime:"openrouter:datetime",OpenRouterFiles:"openrouter:files",OpenRouterFusion:"openrouter:fusion",OpenRouterImageGeneration:"openrouter:image_generation",OpenRouterMcp:"openrouter:mcp",OpenRouterSearchModels:"openrouter:experimental__search_models",OpenRouterShell:"openrouter:shell",OpenRouterSubagent:"openrouter:subagent",OpenRouterToolSearch:"openrouter:tool_search",OpenRouterWebFetch:"openrouter:web_fetch",OpenRouterWebSearch:"openrouter:web_search"},"N",0,{Provider:"provider",OpenRouter:"openrouter",Client:"client"}])},32959,e=>{"use strict";e.i(707060);var t=e.i(387086),r=e.i(189360);let i={Artifacts:"artifacts",Media:"media",Reasoning:"reasoning",Search:"search",Tools:"tools",Routers:"routers"},n=[{id:"routers",label:(0,t.b)("Routers"),description:(0,t.b)("Compare how model routers balance quality, cost and speed on each benchmark."),icon:i.Routers},{id:"media",label:(0,t.b)("Media"),description:(0,t.b)("Generated images, clips and speech, graded against the request and priced per output."),icon:i.Media},{id:"artifacts",label:(0,t.b)("Artifact generation"),pillLabel:(0,t.b)("Artifacts"),description:(0,t.b)("Text models take on unconventional tasks like creating drawings and playable games."),icon:i.Artifacts},{id:"reasoning",label:(0,t.b)("Reasoning"),icon:i.Reasoning},{id:"search",label:(0,t.b)("Search"),icon:i.Search},{id:"agents",label:(0,t.b)("Agents & tools"),pillLabel:(0,t.b)("Agents"),icon:i.Tools}],a=[{slug:"image",name:"Image",category:"media",blurb:(0,t.b)("Image prompts built to fail: depth, direction, counting, and text in the frame."),source:{kind:"arena",tab:"image"}},{slug:"video",name:"Video",category:"media",blurb:(0,t.b)("Six seconds of video, held to one duration and resolution across every model."),source:{kind:"arena",tab:"video"}},{slug:"speech",name:"Speech",category:"media",blurb:(0,t.b)("One sentence, every voice: did the words come back, and was direction performed?"),source:{kind:"arena",tab:"speech"}},{slug:"memes",name:"Memes",category:"media",blurb:(0,t.b)("Edit a meme as an image or animate it as a clip, graded on whether the brief landed."),source:{kind:"arena",tab:"memes"}},{slug:"sketch",name:"Sketch",category:"artifacts",blurb:(0,t.b)("Text models create drawings from prompts. The results are graded as images."),source:{kind:"arena",tab:"sketch"}},{slug:"games",name:"Games",category:"artifacts",blurb:(0,t.b)("Text models create playable games from a single brief in one attempt."),source:{kind:"arena",tab:"game"}},{slug:"gpqa-diamond",name:"GPQA Diamond",category:"reasoning",blurb:(0,t.b)("Graduate-level science questions that resist retrieval and reward careful reasoning."),source:{kind:"gpqa"}},{slug:"vgi-bench",name:"VGI-Bench",category:"reasoning",blurb:(0,t.b)("Multiple-choice questions about long videos: what was shown, said, or never happened."),source:{kind:"vgi"}},{slug:"browsecomp",name:"BrowseComp",category:"search",blurb:(0,t.b)("Hard-to-locate facts on the live web, scored on persistent multi-step research."),source:{kind:"search",suite:"search_browsecomp"}},{slug:"deepsearchqa",name:"DeepSearchQA",category:"search",blurb:(0,t.b)("Questions whose answers are lists, scored for exhaustive retrieval with no padding."),source:{kind:"search",suite:"search_dsqa"}},{slug:"hle",name:"HLE",category:"search",blurb:(0,t.b)("Humanity's Last Exam as a search benchmark: expert questions answered with live search."),source:{kind:"search",suite:"search_hle"}},{slug:"widesearch",name:"WideSearch",category:"search",blurb:(0,t.b)("Fill an entire table; answer-item accuracy scores partial matches."),source:{kind:"search",suite:"search_widesearch"}},{slug:"tau2-bench-airline",name:"τ²-Bench Airline",category:"agents",blurb:(0,t.b)("Multi-turn service agents making tool calls under strict policy constraints."),source:{kind:"tau2"}}];e.s(["n",0,i,"M",0,function(e){return"href"in e?e.href:"arena"===e.source.kind?(0,r.y)(e.source.tab):`/benchmarks/${e.slug}`},"r",0,function(){return n.flatMap(e=>a.filter(t=>t.category===e.id))}])},189360,e=>{"use strict";let t={image:"/benchmarks/media/images",video:"/benchmarks/media/videos",speech:"/benchmarks/media/speech",game:"/benchmarks/media/games",memes:"/benchmarks/media/memes",sketch:"/benchmarks/media/sketch"};function r(e){return t[e]}e.s(["y",0,r,"x",0,function(e,t){return`${r(e)}/${t}`}])},238440,e=>{"use strict";e.s(["v",0,"gap-2 px-4 bg-background shadow-none cursor-pointer text-foreground no-underline hover:no-underline","Q",0,"gap-2 px-4 shadow-none cursor-pointer"])},21218,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(702441),n=e.i(954217),a=e.i(960773);e.i(707060);var s=e.i(196991),l=e.i(919035),o=e.i(32959),c=e.i(684313),d=e.i(617729);e.s(["ServerToolBenchmarksSection",0,function(e){let u,h,m,p,f,g,b,x,v,y,k,w=(0,r.c)(24),{tool:j}=e,N=(0,a.Q)(),C=(0,l.f)();if(w[0]!==C||w[1]!==N||w[2]!==j){x=Symbol.for("react.early_return_sentinel");e:{let e=(0,c.k)(j);if(0===e.length){x=null;break e}p=c.E.Benchmarks,f="benchmarks-heading",g=d.D,w[11]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)(s.T,{children:(0,t.jsx)("h2",{id:"benchmarks-heading",className:"text-lg font-medium",children:"Benchmarks"})}),w[11]=b):b=w[11],u=i.N,m="mt-4 px-4",h=e.map(e=>(0,t.jsxs)("li",{className:"border-t border-border/50 py-4 text-sm first:border-t-0",children:[(0,t.jsx)(n.TextLink,{href:(0,o.M)(e),weight:"medium",onClick:()=>{N.capture("click_tool_page_benchmark",{tool_slug:j.slug,benchmark_slug:e.slug})},children:e.name}),(0,t.jsx)("p",{className:"mt-1 text-muted-foreground",children:C(e.blurb)})]},e.slug))}w[0]=C,w[1]=N,w[2]=j,w[3]=u,w[4]=h,w[5]=m,w[6]=p,w[7]=f,w[8]=g,w[9]=b,w[10]=x}else u=w[3],h=w[4],m=w[5],p=w[6],f=w[7],g=w[8],b=w[9],x=w[10];return x!==Symbol.for("react.early_return_sentinel")?x:(w[12]!==h?(v=(0,t.jsx)("ul",{children:h}),w[12]=h,w[13]=v):v=w[13],w[14]!==u||w[15]!==m||w[16]!==v?(y=(0,t.jsx)(u,{className:m,children:v}),w[14]=u,w[15]=m,w[16]=v,w[17]=y):y=w[17],w[18]!==p||w[19]!==f||w[20]!==g||w[21]!==b||w[22]!==y?(k=(0,t.jsxs)("section",{id:p,"aria-labelledby":f,className:g,children:[b,y]}),w[18]=p,w[19]=f,w[20]=g,w[21]=b,w[22]=y,w[23]=k):k=w[23],k)}])},22526,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(219037),n=e.i(339814),a=e.i(136562),s=e.i(233452),l=e.i(139697),o=e.i(702441),c=e.i(548204),d=e.i(261499),u=e.i(829622),h=e.i(954217),m=e.i(138257),p=e.i(948913);e.i(707060);var f=e.i(196991),g=e.i(288265),b=e.i(919035),x=e.i(788843),v=e.i(354896),y=e.i(258990),k=e.i(387086);let w={[p.d.OpenRouterWebSearch]:[{name:"OpenAI",website:"https://openai.com",pricingUrl:"https://openai.com/api/pricing",description:(0,k.b)("Built-in web search on GPT-4.1, GPT-5 and later, o3, and o4-mini."),via:["OpenAI","Azure"]},{name:"Anthropic",website:"https://anthropic.com",pricingUrl:"https://anthropic.com/pricing",description:(0,k.b)("Built-in web search on Claude 3.5 Haiku, Claude 3.7 Sonnet, and Claude 4 and later."),via:["Anthropic","Claude Platform on AWS","Amazon Bedrock","Google Vertex"]},{name:"Google",website:"https://ai.google.dev",pricingUrl:"https://ai.google.dev/pricing",description:(0,k.b)("Search grounding on Gemini 3 and later."),via:["Google AI Studio","Google Vertex"]},{name:"xAI",website:"https://x.ai",pricingUrl:"https://x.ai/api",description:(0,k.b)("Built-in web search and X search on Grok 4 and later."),via:["xAI"]}],[p.d.OpenRouterWebFetch]:[{name:"Anthropic",website:"https://anthropic.com",pricingUrl:"https://anthropic.com/pricing",description:(0,k.b)("Built-in web fetch on Claude Opus 4.7 and later and Claude Sonnet 5."),via:["Anthropic","Claude Platform on AWS","Amazon Bedrock"]}],[p.d.OpenRouterApplyPatch]:[{name:"OpenAI",website:"https://openai.com",pricingUrl:"https://openai.com/api/pricing",description:(0,k.b)("Built-in apply_patch on GPT-5 and later."),via:["OpenAI","Azure"]}]};var j=e.i(293747);function N(e,t){var r,i;return t.gt("{price} / {unit}",{price:(r=e.price,i=t.locale,(0,j.f)(r,{locale:i,preset:"model-price"})??String(r)),unit:e.unit})}var C=e.i(684313),_=e.i(495193),R=e.i(617729);let S="grid grid-cols-[minmax(0,1fr)_auto] items-start gap-x-4 gap-y-1.5 data-[expandable]:grid-cols-[minmax(0,1fr)_auto_1.5rem] sm:gap-x-5",M="col-span-full min-w-0",T="relative border-t border-border/50 px-4 py-3.5 text-sm first:border-t-0";function O(e){let i,n,a=(0,r.c)(6),{mark:s,name:l,badge:o}=e;return a[0]!==l?(i=(0,t.jsx)("h3",{className:"truncate text-sm font-medium",children:l}),a[0]=l,a[1]=i):i=a[1],a[2]!==o||a[3]!==s||a[4]!==i?(n=(0,t.jsxs)("div",{className:"flex min-h-6 min-w-0 items-center gap-2.5",children:[s,i,o]}),a[2]=o,a[3]=s,a[4]=i,a[5]=n):n=a[5],n}function A(e){let i,a,s,l,o,c=(0,r.c)(23),{modes:d,defaultMode:u,locale:h}=e,m=(0,g.f)();c[0]!==m?(i=m("(default)"),c[0]=m,c[1]=i):i=c[1];let p=i;if(c[2]!==u||c[3]!==p||c[4]!==m||c[5]!==h||c[6]!==d){let e;c[9]!==u||c[10]!==p?(e=e=>e===u?`${e} ${p}`:e,c[9]=u,c[10]=p,c[11]=e):e=c[11];let t=d.map(e),r=(0,n.g)(t,{locale:h,style:"comma"});s=(a=m("{modes} {count, plural, one {mode} other {modes}}",{modes:r,count:d.length})).split(r),c[2]=u,c[3]=p,c[4]=m,c[5]=h,c[6]=d,c[7]=a,c[8]=s}else a=c[7],s=c[8];let[f,b]=s;if(void 0===b)return a;if(c[12]!==u||c[13]!==p||c[14]!==d){let e;c[16]!==u||c[17]!==p?(e=(e,r)=>(0,t.jsxs)("span",{children:[r>0?", ":null,(0,t.jsx)("code",{className:"font-mono text-[0.9em]",children:e}),e===u?` ${p}`:null]},e),c[16]=u,c[17]=p,c[18]=e):e=c[18],l=d.map(e),c[12]=u,c[13]=p,c[14]=d,c[15]=l}else l=c[15];return c[19]!==b||c[20]!==f||c[21]!==l?(o=(0,t.jsxs)(t.Fragment,{children:[f,l,b]}),c[19]=b,c[20]=f,c[21]=l,c[22]=o):o=c[22],o}function L(e){let i,n=(0,r.c)(3),{engine:a}=e;if(null===a.website){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center rounded-sm bg-muted text-muted-foreground",children:(0,t.jsx)(y.f,{className:"size-3.5","aria-hidden":!0})}),n[0]=e):e=n[0],e}return n[1]!==a.website?(i=(0,t.jsx)(u.RemoteFavicon,{faviconFor:a.website,size:256,className:"size-5 shrink-0 rounded-sm"}),n[1]=a.website,n[2]=i):i=n[2],i}function E(e){let i=(0,r.c)(13),{label:n,locale:a}=e,s=(0,g.f)();switch(n.kind){case"modes":{let e;return i[0]!==n.defaultMode||i[1]!==n.modes||i[2]!==a?(e=(0,t.jsx)(A,{modes:n.modes,defaultMode:n.defaultMode,locale:a}),i[0]=n.defaultMode,i[1]=n.modes,i[2]=a,i[3]=e):e=i[3],e}case"extra-unit":{let e;if(void 0!==n.included){let e;return i[4]!==s||i[5]!==n.included||i[6]!==n.maxUnits||i[7]!==n.unit?(e=s("Each {unit} after the first {included} (up to {max} more)",{unit:n.unit,included:n.included,max:n.maxUnits}),i[4]=s,i[5]=n.included,i[6]=n.maxUnits,i[7]=n.unit,i[8]=e):e=i[8],e}return i[9]!==s||i[10]!==n.maxUnits||i[11]!==n.unit?(e=n.maxUnits>1?s("Each extra {unit} (up to {max})",{unit:n.unit,max:n.maxUnits}):s("Each extra {unit}",{unit:n.unit}),i[9]=s,i[10]=n.maxUnits,i[11]=n.unit,i[12]=e):e=i[12],e}default:return n}}function z(e){let n=(0,r.c)(8),{note:a,locale:s}=e,l=(0,g.f)();switch(a.kind){case"modes":{let e;return n[0]!==s||n[1]!==a.defaultMode||n[2]!==a.modes?(e=(0,t.jsx)(A,{modes:a.modes,defaultMode:a.defaultMode,locale:s}),n[0]=s,n[1]=a.defaultMode,n[2]=a.modes,n[3]=e):e=n[3],e}case"cold-start-minimum":{let e;return n[4]!==l||n[5]!==s||n[6]!==a.seconds?(e=l("{duration} minimum on requests that start a container",{duration:(0,i.f)(1e3*a.seconds,{locale:s,preset:"latency-seconds"})??""}),n[4]=l,n[5]=s,n[6]=a.seconds,n[7]=e):e=n[7],e}default:return a}}function B(e){let i=(0,r.c)(20),{pricing:n,locale:a}=e,s=(0,g.f)(),l=(0,b.f)();switch(n.kind){case _.N.Listed:{let e,r,l,o;return i[0]!==s||i[1]!==a||i[2]!==n?(e=N(n,{locale:a,gt:s}),i[0]=s,i[1]=a,i[2]=n,i[3]=e):e=i[3],i[4]!==e?(r=(0,t.jsx)("p",{className:"font-medium tabular-nums",children:e}),i[4]=e,i[5]=r):r=i[5],i[6]!==a||i[7]!==n.note?(l=void 0===n.note?null:(0,t.jsx)("p",{className:"text-2xs text-muted-foreground",children:(0,t.jsx)(z,{note:n.note,locale:a})}),i[6]=a,i[7]=n.note,i[8]=l):l=i[8],i[9]!==r||i[10]!==l?(o=(0,t.jsxs)(t.Fragment,{children:[r,l]}),i[9]=r,i[10]=l,i[11]=o):o=i[11],o}case _.N.Free:{let e;return i[12]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(f.T,{children:(0,t.jsx)("p",{className:"font-medium",children:"Free"})}),i[12]=e):e=i[12],e}case _.N.Provider:{let e;return i[13]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)(f.T,{children:[(0,t.jsx)("p",{className:"font-medium",children:"Provider pricing"}),(0,t.jsx)("p",{className:"text-2xs text-muted-foreground",children:"Billed by the model provider"})]}),i[13]=e):e=i[13],e}case _.N.Byok:{let e;return i[14]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)(f.T,{children:[(0,t.jsx)("p",{className:"font-medium",children:"Your own account"}),(0,t.jsx)("p",{className:"text-2xs text-muted-foreground",children:"No OpenRouter charge"})]}),i[14]=e):e=i[14],e}case _.N.ModelUsage:{let e,r;return i[15]!==l||i[16]!==n.label?(e=l(n.label),i[15]=l,i[16]=n.label,i[17]=e):e=i[17],i[18]!==e?(r=(0,t.jsx)("p",{className:"font-medium",children:e}),i[18]=e,i[19]=r):r=i[19],r}default:return n}}function P(e){let i,n,s,o,u,h,m,p,f,x,y,k=(0,r.c)(36),{engine:w,locale:j}=e,C=(0,g.f)(),R=(0,b.f)(),A=w.pricing.kind===_.N.Listed?w.pricing:void 0;k[0]!==A?.tiers?(i=A?.tiers??[],k[0]=A?.tiers,k[1]=i):i=k[1];let z=i,P=void 0!==A&&z.length>0,I=w.id??"default";k[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.f)(T,"transition-colors duration-quick ease-smooth-out","has-[button:hover]:bg-card-hover has-[button:focus-visible]:ring-2 has-[button:focus-visible]:ring-inset has-[button:focus-visible]:ring-ring"),k[2]=n):n=k[2];let F=P?"":void 0;return k[3]!==w?(s=(0,t.jsx)(L,{engine:w}),k[3]=w,k[4]=s):s=k[4],k[5]!==w.name||k[6]!==s?(o=(0,t.jsx)(O,{mark:s,name:w.name}),k[5]=w.name,k[6]=s,k[7]=o):o=k[7],k[8]!==w.pricing||k[9]!==j?(u=(0,t.jsx)("div",{className:"min-w-0 text-right",children:(0,t.jsx)(B,{pricing:w.pricing,locale:j})}),k[8]=w.pricing,k[9]=j,k[10]=u):u=k[10],k[11]!==w.name||k[12]!==P||k[13]!==C?(h=P?(0,t.jsx)("div",{className:"flex h-6 items-center justify-center",children:(0,t.jsx)(c.CollapsibleTrigger,{"aria-label":C("{name} pricing details",{name:w.name}),render:(0,t.jsx)(l.Button,{variant:"ghost-muted",size:"icon-xs"}),className:"group after:absolute after:inset-0",children:(0,t.jsx)(v.f,{className:(0,a.f)("size-4 group-data-[panel-open]:-scale-y-100",d.a),"aria-hidden":!0})})}):null,k[11]=w.name,k[12]=P,k[13]=C,k[14]=h):h=k[14],k[15]!==w.description||k[16]!==R?(m=void 0===w.description?null:(0,t.jsx)("p",{className:(0,a.f)(M,"text-muted-foreground"),children:R(w.description)}),k[15]=w.description,k[16]=R,k[17]=m):m=k[17],k[18]!==F||k[19]!==o||k[20]!==u||k[21]!==h||k[22]!==m?(p=(0,t.jsxs)("div",{className:S,"data-expandable":F,children:[o,u,h,m]}),k[18]=F,k[19]=o,k[20]=u,k[21]=h,k[22]=m,k[23]=p):p=k[23],k[24]!==P||k[25]!==C||k[26]!==A||k[27]!==j||k[28]!==z?(f=void 0!==A&&P?(0,t.jsx)(c.CollapsibleContent,{hiddenUntilFound:!0,children:(0,t.jsx)("dl",{className:"mt-4 flex flex-col gap-2 border-t border-border/50 pt-4",children:z.map(e=>{var r;return(0,t.jsxs)("div",{className:"flex flex-wrap justify-between gap-x-6 gap-y-1",children:[(0,t.jsx)("dt",{className:"text-muted-foreground",children:(0,t.jsx)(E,{label:e.label,locale:j})}),(0,t.jsx)("dd",{className:"tabular-nums",children:N({price:e.price,unit:"extra-unit"===e.label.kind?e.label.unit:A.unit},{locale:j,gt:C})})]},"modes"===(r=e.label).kind?r.modes.join(","):`extra-${r.unit}`)})})}):null,k[24]=P,k[25]=C,k[26]=A,k[27]=j,k[28]=z,k[29]=f):f=k[29],k[30]!==p||k[31]!==f?(x=(0,t.jsxs)(c.Collapsible,{children:[p,f]}),k[30]=p,k[31]=f,k[32]=x):x=k[32],k[33]!==x||k[34]!==I?(y=(0,t.jsx)("li",{"data-engine":I,className:n,children:x}),k[33]=x,k[34]=I,k[35]=y):y=k[35],y}function I(e){let i,a,l,o,c,d,m,p,v,y,k,w,j,N=(0,r.c)(31),{provider:C,locale:_}=e,R=(0,g.f)(),A=(0,b.f)(),L=C.name;return N[0]!==C.website?(i=(0,t.jsx)(u.RemoteFavicon,{faviconFor:C.website,size:256,className:"size-5 shrink-0 rounded-sm"}),N[0]=C.website,N[1]=i):i=N[1],N[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(s.Badge,{variant:"promo",size:"sm",children:(0,t.jsx)(f.T,{children:"Native"})}),N[2]=a):a=N[2],N[3]!==C.name||N[4]!==i?(l=(0,t.jsx)(O,{mark:i,name:C.name,badge:a}),N[3]=C.name,N[4]=i,N[5]=l):l=N[5],N[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(f.T,{children:"Provider pricing"}),c=(0,t.jsx)(x.f,{className:"size-3.5","aria-hidden":!0}),N[6]=o,N[7]=c):(o=N[6],c=N[7]),N[8]!==C.pricingUrl?(d=(0,t.jsx)("div",{className:"min-w-0 text-right",children:(0,t.jsxs)(h.TextLink,{href:C.pricingUrl,target:"_blank",rel:"noreferrer",weight:"medium",className:"inline-flex items-center gap-1 whitespace-nowrap",children:[o,c]})}),N[8]=C.pricingUrl,N[9]=d):d=N[9],N[10]!==A||N[11]!==C.description?(m=A(C.description),N[10]=A,N[11]=C.description,N[12]=m):m=N[12],N[13]!==m?(p=(0,t.jsx)("p",{className:"text-muted-foreground",children:m}),N[13]=m,N[14]=p):p=N[14],N[15]!==R||N[16]!==_||N[17]!==C.via?(v=R("Via {providers}",{providers:(0,n.g)(C.via,{locale:_,style:"comma"})}),N[15]=R,N[16]=_,N[17]=C.via,N[18]=v):v=N[18],N[19]!==v?(y=(0,t.jsx)("p",{className:"mt-1.5 text-2xs text-muted-foreground",children:v}),N[19]=v,N[20]=y):y=N[20],N[21]!==y||N[22]!==p?(k=(0,t.jsxs)("div",{className:M,children:[p,y]}),N[21]=y,N[22]=p,N[23]=k):k=N[23],N[24]!==k||N[25]!==l||N[26]!==d?(w=(0,t.jsxs)("div",{className:S,children:[l,d,k]}),N[24]=k,N[25]=l,N[26]=d,N[27]=w):w=N[27],N[28]!==C.name||N[29]!==w?(j=(0,t.jsx)("li",{"data-native-provider":L,className:T,children:w}),N[28]=C.name,N[29]=w,N[30]=j):j=N[30],j}function F(e){return e.execution!==p.N.Provider}e.s(["ServerToolEnginesSection",0,function(e){let i,n,a,s,l,c,d,u,h,p,g,x,v,y=(0,r.c)(49),{tool:k}=e,j=(0,m.useLocale)(),N=(0,b.f)();if(y[0]!==j||y[1]!==N||y[2]!==k.apiType||y[3]!==k.engines||y[4]!==k.providerRouting){let e,r=w[k.apiType]??[];if(y[14]!==j||y[15]!==N||y[16]!==k.engines||y[17]!==k.providerRouting){let e,r=k.engines.filter(F);l=C.E.Providers,c="providers-heading",d=R.D,y[26]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(f.T,{children:(0,t.jsx)("h2",{id:"providers-heading",className:"text-lg font-medium",children:"Providers and pricing"})}),y[26]=u):u=y[26],y[27]!==N||y[28]!==k.providerRouting?(h=void 0===k.providerRouting?null:(0,t.jsx)("p",{className:"mt-3 max-w-prose text-sm text-muted-foreground",children:N(k.providerRouting)}),y[27]=N,y[28]=k.providerRouting,y[29]=h):h=y[29],i=o.N,s="mt-5",y[30]!==j?(e=e=>(0,t.jsx)(P,{engine:e,locale:j},e.id??"default"),y[30]=j,y[31]=e):e=y[31],n=r.map(e),y[14]=j,y[15]=N,y[16]=k.engines,y[17]=k.providerRouting,y[18]=i,y[19]=n,y[20]=s,y[21]=l,y[22]=c,y[23]=d,y[24]=u,y[25]=h}else i=y[18],n=y[19],s=y[20],l=y[21],c=y[22],d=y[23],u=y[24],h=y[25];y[32]!==j?(e=e=>(0,t.jsx)(I,{provider:e,locale:j},e.name),y[32]=j,y[33]=e):e=y[33],a=r.map(e),y[0]=j,y[1]=N,y[2]=k.apiType,y[3]=k.engines,y[4]=k.providerRouting,y[5]=i,y[6]=n,y[7]=a,y[8]=s,y[9]=l,y[10]=c,y[11]=d,y[12]=u,y[13]=h}else i=y[5],n=y[6],a=y[7],s=y[8],l=y[9],c=y[10],d=y[11],u=y[12],h=y[13];return y[34]!==n||y[35]!==a?(p=(0,t.jsxs)("ul",{children:[n,a]}),y[34]=n,y[35]=a,y[36]=p):p=y[36],y[37]!==i||y[38]!==s||y[39]!==p?(g=(0,t.jsx)(i,{className:s,children:p}),y[37]=i,y[38]=s,y[39]=p,y[40]=g):g=y[40],y[41]===Symbol.for("react.memo_cache_sentinel")?(x=(0,t.jsx)(f.T,{children:(0,t.jsx)("p",{className:"mt-3 text-xs text-muted-foreground",children:"Standard model token costs apply to every request."})}),y[41]=x):x=y[41],y[42]!==g||y[43]!==l||y[44]!==c||y[45]!==d||y[46]!==u||y[47]!==h?(v=(0,t.jsxs)("section",{id:l,"aria-labelledby":c,className:d,children:[u,h,g,x]}),y[42]=g,y[43]=l,y[44]=c,y[45]=d,y[46]=u,y[47]=h,y[48]=v):v=y[48],v}],22526)},938269,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(136562),n=e.i(801127);e.i(707060);var a=e.i(196991),s=e.i(288265),l=e.i(919035),o=e.i(371244),c=e.i(238440);e.i(406201);var d=e.i(967605),u=e.i(892571),h=e.i(821442),m=e.i(510433),p=e.i(960773),f=e.i(387086),g=e.i(173155),b=e.i(495193),x=e.i(447131),v=e.i(155771),y=e.i(953545);let k=(0,f.b)("Try this tool");function w(e){let n,a,s,o,c,u,h,f=(0,r.c)(21),{tool:w,source:j,className:N}=e,C=(0,p.Q)(),_=(0,l.f)(),R=(0,y.f)(m.J.Chatroom),S=(0,v.f)();f[0]!==S||f[1]!==w?(n=(0,b.V)(S,w),f[0]=S,f[1]=w,f[2]=n):n=f[2];let M=n;return null===M?null:(f[3]!==N?(a=(0,i.f)("cursor-pointer gap-2",N),f[3]=N,f[4]=a):a=f[4],f[5]!==M?(s=(0,t.jsx)(d.Link,{href:M}),f[5]=M,f[6]=s):s=f[6],f[7]!==C||f[8]!==j||f[9]!==w.apiType||f[10]!==w.slug?(o=()=>{C.capture("click_tool_page_try_tool",{source:j,tool_slug:w.slug,tool_type:w.apiType})},f[7]=C,f[8]=j,f[9]=w.apiType,f[10]=w.slug,f[11]=o):o=f[11],f[12]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(g.f,{className:"size-4 shrink-0"}),f[12]=c):c=f[12],f[13]!==_?(u=_(k),f[13]=_,f[14]=u):u=f[14],f[15]!==R||f[16]!==a||f[17]!==s||f[18]!==o||f[19]!==u?(h=(0,t.jsxs)(x.f,{gate:R,size:"sm",className:a,render:s,onClick:o,children:[c,u]}),f[15]=R,f[16]=a,f[17]=s,f[18]=o,f[19]=u,f[20]=h):h=f[20],h)}function j(e){let s,l,u,h,m=(0,r.c)(7),{tool:p,className:f}=e,g=p.docsPath;return m[0]!==f?(s=(0,i.f)((0,n.i)({variant:"outline",size:"sm"}),c.v,f),m[0]=f,m[1]=s):s=m[1],m[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(o.f,{className:"size-4 shrink-0"}),u=(0,t.jsx)(a.T,{children:"Docs"}),m[2]=l,m[3]=u):(l=m[2],u=m[3]),m[4]!==s||m[5]!==p.docsPath?(h=(0,t.jsxs)(d.Link,{href:g,className:s,children:[l,u]}),m[4]=s,m[5]=p.docsPath,m[6]=h):h=m[6],h}e.s(["ServerToolPageHeader",0,function(e){let i,n,a,o,c,d,m,p,f,g,b,x,v,y=(0,r.c)(34),{tool:k}=e,N=u.f[k.apiType],C=(0,s.f)(),_=(0,l.f)();return y[0]!==N?(i=(0,t.jsx)("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-md bg-muted text-muted-foreground",children:(0,t.jsx)(N,{className:"size-4","aria-hidden":!0})}),y[0]=N,y[1]=i):i=y[1],y[2]!==k.name?(n=(0,t.jsx)("h1",{children:k.name}),y[2]=k.name,y[3]=n):n=y[3],y[4]!==k.status?(a=(0,t.jsx)(h.f,{status:k.status}),y[4]=k.status,y[5]=a):a=y[5],y[6]!==i||y[7]!==n||y[8]!==a?(o=(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5",children:[i,n,a]}),y[6]=i,y[7]=n,y[8]=a,y[9]=o):o=y[9],y[10]!==C?(c=C("Tool type for use in the API"),y[10]=C,y[11]=c):c=y[11],y[12]!==c||y[13]!==k.apiType?(d=(0,t.jsx)("p",{title:c,className:"font-mono text-xs text-muted-foreground",children:k.apiType}),y[12]=c,y[13]=k.apiType,y[14]=d):d=y[14],y[15]!==o||y[16]!==d?(m=(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[o,d]}),y[15]=o,y[16]=d,y[17]=m):m=y[17],y[18]!==k?(p=(0,t.jsxs)("div",{className:"hidden md:flex md:flex-col md:items-stretch lg:flex-row lg:items-center justify-end gap-2",children:[(0,t.jsx)(j,{tool:k}),(0,t.jsx)(w,{tool:k,source:"tool_page_header_desktop"})]}),y[18]=k,y[19]=p):p=y[19],y[20]!==m||y[21]!==p?(f=(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[m,p]}),y[20]=m,y[21]=p,y[22]=f):f=y[22],y[23]!==_||y[24]!==k.description?(g=_(k.description),y[23]=_,y[24]=k.description,y[25]=g):g=y[25],y[26]!==g?(b=(0,t.jsx)("p",{className:"max-w-prose text-sm leading-relaxed text-muted-foreground md:text-base",children:g}),y[26]=g,y[27]=b):b=y[27],y[28]!==k?(x=(0,t.jsxs)("div",{className:"flex gap-2 md:hidden",children:[(0,t.jsx)(j,{tool:k,className:"h-10 flex-1"}),(0,t.jsx)(w,{tool:k,source:"tool_page_header_mobile",className:"h-10 flex-1"})]}),y[28]=k,y[29]=x):x=y[29],y[30]!==b||y[31]!==x||y[32]!==f?(v=(0,t.jsxs)("header",{className:"flex flex-col gap-5",children:[f,b,x]}),y[30]=b,y[31]=x,y[32]=f,y[33]=v):v=y[33],v}],938269)},869398,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(46766),n=e.i(312679),a=e.i(832850),s=e.i(960773),l=e.i(199168),o=e.i(217524),c=e.i(404410),d=e.i(803157),u=e.i(258990),h=e.i(252830),m=e.i(856883);e.i(16043);var p=e.i(13457),f=e.i(684313),g=e.i(617729);let b={[f.E.HowItWorks]:m.f,[f.E.Providers]:u.f,[f.E.Usage]:d.f,[f.E.Benchmarks]:o.f,[f.E.Faq]:c.f,[f.E.Related]:h.f};e.s(["ServerToolSectionNav",0,function(e){let o,c,d,u,h=(0,r.c)(17),{toolSlug:m,sections:f,children:x}=e,v=(0,s.Q)(),y=(0,n.f)(),k=(0,i.f)(),w=(0,l.o)(),j=(0,l.M)();if(h[0]!==j||h[1]!==f){let e;h[3]!==j?(e=e=>({id:e.id,label:j(e.label),icon:b[e.id]}),h[3]=j,h[4]=e):e=h[4],o=f.map(e),h[0]=j,h[1]=f,h[2]=o}else o=h[2];let N=o,C=(0,p.f)("tool_page_section_view");h[5]!==v||h[6]!==m?(c=e=>{v.capture("click_tool_page_section",{tool_slug:m,section:e})},h[5]=v,h[6]=m,h[7]=c):c=h[7];let _=c;h[8]!==w?(d=w("Tool page sections"),h[8]=w,h[9]=d):d=h[9];let R=k+g.r+y;return h[10]!==x||h[11]!==_||h[12]!==C||h[13]!==N||h[14]!==d||h[15]!==R?(u=(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-[200px_1fr]",children:(0,t.jsx)(a.f,{sections:N,ariaLabel:d,desktopNavTopClass:g.h,mobileTocTopClass:g.x,activationLinePx:R,onSectionView:C,onSectionSelect:_,children:x})}),h[10]=x,h[11]=_,h[12]=C,h[13]=N,h[14]=d,h[15]=R,h[16]=u):u=h[16],u}])},661463,121171,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(136562),n=e.i(233452),a=e.i(702441),s=e.i(960773);e.i(707060);var l=e.i(919035);e.i(406201);var o=e.i(967605),c=e.i(387086),d=e.i(150444),u=e.i(275173),h=e.i(561146),m=e.i(454326),p=e.i(336819);let f={SearchWeb:"search-web",Code:"code",Orchestration:"orchestration",Media:"media",Utilities:"utilities"},g=Object.values(f),b=[{id:f.SearchWeb,label:(0,c.b)("Search & web"),icon:d.f},{id:f.Code,label:(0,c.b)("Code & execution"),icon:h.f},{id:f.Orchestration,label:(0,c.b)("Orchestration"),icon:m.f},{id:f.Media,label:(0,c.b)("Media"),icon:u.f},{id:f.Utilities,label:(0,c.b)("Utilities"),icon:p.f}];e.s(["G",0,b,"g",0,g],121171);var x=e.i(948913);let v={[x.d.OpenRouterWebSearch]:{text:"text-chart-1",bg:"bg-chart-1/12"},[x.d.OpenRouterWebFetch]:{text:"text-chart-6",bg:"bg-chart-6/12"},[x.d.OpenRouterImageGeneration]:{text:"text-modality-image",bg:"bg-modality-image/12"},[x.d.OpenRouterDatetime]:{text:"text-chart-14",bg:"bg-chart-14/12"},[x.d.OpenRouterShell]:{text:"text-chart-19",bg:"bg-chart-19/12"},[x.d.OpenRouterBash]:{text:"text-chart-11",bg:"bg-chart-11/12"},[x.d.OpenRouterApplyPatch]:{text:"text-chart-12",bg:"bg-chart-12/12"},[x.d.OpenRouterFusion]:{text:"text-chart-8",bg:"bg-chart-8/12"},[x.d.OpenRouterAdvisor]:{text:"text-chart-10",bg:"bg-chart-10/12"},[x.d.OpenRouterSubagent]:{text:"text-chart-15",bg:"bg-chart-15/12"},[x.d.OpenRouterToolSearch]:{text:"text-chart-2",bg:"bg-chart-2/12"},[x.d.OpenRouterSearchModels]:{text:"text-chart-5",bg:"bg-chart-5/12"},[x.d.OpenRouterFiles]:{text:"text-chart-9",bg:"bg-chart-9/12"},[x.d.OpenRouterMcp]:{text:"text-chart-13",bg:"bg-chart-13/12"}};var y=e.i(892571),k=e.i(495193),w=e.i(821442);e.s(["ServerToolCard",0,function(e){let c,d,u,h,m,p,f,g,x,j=(0,r.c)(55),{tool:N,clickEvent:C}=e,_=void 0===C?"click_tools_page_tool_card":C,R=(0,s.Q)(),S=(0,l.f)(),M=y.f[N.apiType],T=v[N.apiType];if(j[0]!==M||j[1]!==_||j[2]!==S||j[3]!==R||j[4]!==T.bg||j[5]!==T.text||j[6]!==N){let e,r,s,l,g,x,v,y,C;j[14]!==N.category?(e=e=>e.id===N.category,j[14]=N.category,j[15]=e):e=j[15];let O=b.find(e);f="flex",c=a.N,d=!0,u="group relative isolate flex w-full flex-col gap-3 p-4 has-[a:focus-visible]:ring-2 has-[a:focus-visible]:ring-ring",j[16]!==T.bg||j[17]!==T.text?(r=(0,i.f)("flex size-8 shrink-0 items-center justify-center rounded-md",T.bg,T.text),j[16]=T.bg,j[17]=T.text,j[18]=r):r=j[18],j[19]!==M?(s=(0,t.jsx)(M,{className:"size-5",strokeWidth:1.5,"aria-hidden":!0}),j[19]=M,j[20]=s):s=j[20],j[21]!==s||j[22]!==r?(l=(0,t.jsx)("span",{className:r,children:s}),j[21]=s,j[22]=r,j[23]=l):l=j[23],j[24]!==N?(g=(0,k.H)(N),j[24]=N,j[25]=g):g=j[25],j[26]!==_||j[27]!==R||j[28]!==N.apiType||j[29]!==N.slug?(x=()=>{R.capture(_,{tool_slug:N.slug,tool_type:N.apiType})},j[26]=_,j[27]=R,j[28]=N.apiType,j[29]=N.slug,j[30]=x):x=j[30],j[31]!==g||j[32]!==x||j[33]!==N.name?(v=(0,t.jsx)("h3",{className:"min-w-0 text-base font-medium",children:(0,t.jsx)(o.Link,{href:g,className:"text-foreground no-underline after:absolute after:inset-0 after:rounded-lg hover:no-underline focus-visible:outline-none",onClick:x,children:N.name})}),j[31]=g,j[32]=x,j[33]=N.name,j[34]=v):v=j[34],j[35]!==N.status?(y=(0,t.jsx)(w.f,{status:N.status}),j[35]=N.status,j[36]=y):y=j[36],j[37]!==v||j[38]!==y?(C=(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[v,y]}),j[37]=v,j[38]=y,j[39]=C):C=j[39],j[40]!==l||j[41]!==C?(h=(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[l,C]}),j[40]=l,j[41]=C,j[42]=h):h=j[42],j[43]!==N.tagline?(m=(0,t.jsx)("p",{className:"line-clamp-2 min-h-10 text-sm text-muted-foreground",children:N.tagline}),j[43]=N.tagline,j[44]=m):m=j[44],p=void 0===O?null:(0,t.jsx)("div",{className:"mt-auto flex pt-1",children:(0,t.jsx)(n.Badge,{variant:"muted",size:"md",className:"border-transparent bg-muted font-normal",children:S(O.label)})}),j[0]=M,j[1]=_,j[2]=S,j[3]=R,j[4]=T.bg,j[5]=T.text,j[6]=N,j[7]=c,j[8]=d,j[9]=u,j[10]=h,j[11]=m,j[12]=p,j[13]=f}else c=j[7],d=j[8],u=j[9],h=j[10],m=j[11],p=j[12],f=j[13];return j[45]!==c||j[46]!==d||j[47]!==u||j[48]!==h||j[49]!==m||j[50]!==p?(g=(0,t.jsxs)(c,{interactive:d,className:u,children:[h,m,p]}),j[45]=c,j[46]=d,j[47]=u,j[48]=h,j[49]=m,j[50]=p,j[51]=g):g=j[51],j[52]!==f||j[53]!==g?(x=(0,t.jsx)("li",{className:f,children:g}),j[52]=f,j[53]=g,j[54]=x):x=j[54],x}],661463)},861188,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(136562),n=e.i(246705);function a(e){let t=e.split("\n");for(;t[0]?.trim().length===0;)t.shift();for(;t.at(-1)?.trim().length===0;)t.pop();let r=t.filter(e=>e.trim().length>0);if(0===r.length)return"";let i=Math.min(...r.map(s));return t.map(e=>e.slice(Math.min(s(e),i))).join("\n").replaceAll(/^[ \t]+$/gm,"")}function s(e){return/^[ \t]*/.exec(e)?.[0].length??0}let l=(0,i.f)("text-xs","[&_pre]:max-h-72 [&_pre]:overflow-auto","[&_pre_code]:rounded-none [&_pre_code]:bg-doc-surface [&_pre_code]:font-mono","[&_pre_code]:text-xs [&_pre_code]:leading-normal","[&_pre_code]:whitespace-pre [&_pre_code]:break-normal","dark:[&_pre_code]:bg-doc-surface");function o(e){return{...e,code:a(e.code)}}e.s(["ApiCodeBlock",0,function(e){let s,c,d,u=(0,r.c)(15),{className:h,language:m,value:p,onCopy:f,onTabChange:g}=e;u[0]!==h?(s=(0,i.f)(l,h),u[0]=h,u[1]=s):s=u[1],u[2]!==f||u[3]!==s?(c={className:s,lightTheme:"one-light",darkTheme:"one-dark-pro",onCopy:f},u[2]=f,u[3]=s,u[4]=c):c=u[4];let b=c;if("string"!=typeof p){let e,r;return u[5]!==p?(e=p.map(o),u[5]=p,u[6]=e):e=u[6],u[7]!==g||u[8]!==b||u[9]!==e?(r=(0,t.jsx)(n.CodeBlock,{...b,value:e,onTabChange:g}),u[7]=g,u[8]=b,u[9]=e,u[10]=r):r=u[10],r}if(u[11]!==m||u[12]!==b||u[13]!==p){let e=a(p);d=(0,t.jsx)(n.CodeBlock,{...b,language:m,value:e,variant:e.includes("\n")?n.CodeBlockVariant.Block:n.CodeBlockVariant.Line}),u[11]=m,u[12]=b,u[13]=p,u[14]=d}else d=u[14];return d}],861188)},13457,e=>{"use strict";var t=e.i(663456);e.i(140570);var r=e.i(960773);e.i(16043),e.s(["f",0,function(e){let i,n=(0,t.c)(3),a=(0,r.Q)();return n[0]!==e||n[1]!==a?(i=(t,r)=>{Math.random()>=.1||a.capture(e,{section:t.id,section_label:t.label,section_index:r,source:"scroll_spy",sample_rate:.1})},n[0]=e,n[1]=a,n[2]=i):i=n[2],i}])},892571,821442,e=>{"use strict";var t=e.i(948913),r=e.i(241696),i=e.i(29411),n=e.i(193854),a=e.i(726866),s=e.i(569019),l=e.i(150444),o=e.i(275173),c=e.i(63135),d=e.i(621591),u=e.i(102803),h=e.i(452290),m=e.i(561146),p=e.i(5122),f=e.i(336819);let g={[t.d.OpenRouterWebSearch]:l.f,[t.d.OpenRouterWebFetch]:d.f,[t.d.OpenRouterImageGeneration]:o.f,[t.d.OpenRouterDatetime]:n.f,[t.d.OpenRouterShell]:m.f,[t.d.OpenRouterBash]:p.f,[t.d.OpenRouterApplyPatch]:a.f,[t.d.OpenRouterFusion]:r.f,[t.d.OpenRouterAdvisor]:c.f,[t.d.OpenRouterSubagent]:i.f,[t.d.OpenRouterToolSearch]:f.f,[t.d.OpenRouterSearchModels]:h.f,[t.d.OpenRouterFiles]:s.f,[t.d.OpenRouterMcp]:u.f};e.s(["f",0,g],892571);var b=e.i(659350),x=e.i(663456),v=e.i(233452);e.i(707060);var y=e.i(387086),k=e.i(919035);let w={beta:(0,y.b)("Beta"),experimental:(0,y.b)("Experimental")};e.s(["f",0,function(e){let t,r,i=(0,x.c)(5),{status:n}=e,a=(0,k.f)();if(void 0===n)return null;let s=w[n];return i[0]!==a||i[1]!==s?(t=a(s),i[0]=a,i[1]=s,i[2]=t):t=i[2],i[3]!==t?(r=(0,b.jsx)(v.Badge,{variant:"promo",size:"sm",children:t}),i[3]=t,i[4]=r):r=i[4],r}],821442)},684313,617729,e=>{"use strict";e.i(707060);var t=e.i(387086),r=e.i(32959);let i={HowItWorks:"how-it-works",Providers:"providers",Usage:"usage",Benchmarks:"benchmarks",Faq:"faq",Related:"related"};i.HowItWorks,(0,t.b)("How it works"),i.Providers,(0,t.b)("Providers and pricing"),i.Usage,(0,t.b)("Using this tool"),i.Benchmarks,(0,t.b)("Benchmarks"),i.Faq,(0,t.b)("Frequently asked questions"),i.Related,(0,t.b)("Related tools"),e.s(["E",0,i,"k",0,function(e){return(0,r.r)().filter(t=>t.category===e.benchmarkCategory)}],684313),e.s(["h",0,"top-[calc(var(--navbar-height)+24px+var(--sticky-banner-top,0px))]","x",0,"top-[calc(var(--navbar-height)+var(--sticky-banner-top,0px))]","r",0,85,"D",0,"scroll-mt-[calc(var(--navbar-height)+81px+var(--sticky-banner-top,0px))] lg:scroll-mt-[calc(var(--navbar-height)+24px+var(--sticky-banner-top,0px))]"],617729)},495193,e=>{"use strict";var t=e.i(898820);t.Q.ChatCompletions,t.Q.Responses,t.Q.AnthropicMessages,e.s(["N",0,{Listed:"listed",Free:"free",Provider:"provider",Byok:"byok",ModelUsage:"model-usage"},"V",0,function(e,t){return"chatroom"===t.availability.kind?`${e}?tool=${t.availability.toolId}`:null},"H",0,function(e){return`/tool/${e.slug}`}])},447131,e=>{"use strict";var t=e.i(659350),r=e.i(663456),i=e.i(136562),n=e.i(139697),a=e.i(751155),s=e.i(126324),l=e.i(231171),o=e.i(199168);e.s(["f",0,function(e){let c,d,u=(0,r.c)(30),{gate:h,blockedTriggerClassName:m,variant:p,size:f,density:g,className:b,render:x,onClick:v,"aria-label":y,children:k}=e,w=(0,o.M)();u[0]!==b?(c=(0,i.f)(b,"pointer-events-none opacity-50"),u[0]=b,u[1]=c):c=u[1],u[2]!==k||u[3]!==g||u[4]!==f||u[5]!==c||u[6]!==p?(d=(0,t.jsx)(n.Button,{variant:p,size:f,density:g,className:c,"aria-disabled":"true",tabIndex:-1,children:k}),u[2]=k,u[3]=g,u[4]=f,u[5]=c,u[6]=p,u[7]=d):d=u[7];let j=d;switch(h){case l.L.Allowed:{let e;return u[8]!==y||u[9]!==k||u[10]!==b||u[11]!==g||u[12]!==v||u[13]!==x||u[14]!==f||u[15]!==p?(e=(0,t.jsx)(n.Button,{variant:p,size:f,density:g,className:b,render:x,onClick:v,"aria-label":y,children:k}),u[8]=y,u[9]=k,u[10]=b,u[11]=g,u[12]=v,u[13]=x,u[14]=f,u[15]=p,u[16]=e):e=u[16],e}case l.L.Loading:return j;case l.L.Blocked:{let e,r,i,n,l;return u[17]!==w?(e=w(s.f),u[17]=w,u[18]=e):e=u[18],u[19]!==w?(r=w(s.f),u[19]=w,u[20]=r):r=u[20],u[21]!==r?(i=(0,t.jsx)("span",{className:"sr-only",children:r}),u[21]=r,u[22]=i):i=u[22],u[23]!==m||u[24]!==j||u[25]!==i?(n=(0,t.jsxs)(a.TooltipNonInteractiveTrigger,{className:m,children:[j,i]}),u[23]=m,u[24]=j,u[25]=i,u[26]=n):n=u[26],u[27]!==e||u[28]!==n?(l=(0,t.jsx)(a.Tooltip,{content:e,children:n}),u[27]=e,u[28]=n,u[29]=l):l=u[29],l}default:return h}}])},155771,e=>{"use strict";var t=e.i(663456),r=e.i(376885),i=e.i(128564),n=e.i(674896);e.s(["f",0,function(){let e,a,s=(0,t.c)(6),{isSignedIn:l}=(0,r.f)(),o=!0===l;s[0]!==o?(e={isEnabled:o},s[0]=o,s[1]=e):e=s[1];let{workspaces:c,activeWorkspaceId:d}=(0,i.Z)(e);if(s[2]!==d||s[3]!==l||s[4]!==c){let e=!0===l?c?.find(e=>e.id===d):void 0;a=void 0===e?`/${n.L.Chat}`:(0,n.$)(e.slug,n.L.Chat),s[2]=d,s[3]=l,s[4]=c,s[5]=a}else a=s[5];return a}])},510914,e=>{"use strict";e.s(["f",0,function(t,r){return(i,n)=>(function(t,r,i,n){let a="SharedWorker"===t.name,s=e.b,l=[i.map(t=>e.h("string"==typeof t?t:t.path,s)).reverse(),e.X,s],o=["NEXT_DEPLOYMENT_ID","NEXT_CLIENT_ASSET_SUFFIX"];for(let e=0;e