!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]="01a08eb6-2fc6-7e03-8d81-81b888d28c2c")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,387445,e=>{"use strict";let t=(0,e.i(202913).default)("blocks",[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2",key:"1ah6g2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1",key:"88lufb"}]]);e.s(["Blocks",0,t],387445)},579852,e=>{"use strict";let t=(0,e.i(202913).default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);e.s(["BarChart3",0,t],579852)},301797,e=>{"use strict";let t=(0,e.i(202913).default)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Clock",0,t],301797)},460546,e=>{"use strict";let t=(0,e.i(202913).default)("code-xml",[["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"}]]);e.s(["Code2",0,t],460546)},969949,e=>{"use strict";let t=(0,e.i(202913).default)("file-text",[["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:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",0,t],969949)},600531,e=>{"use strict";let t=(0,e.i(202913).default)("images",[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]]);e.s(["Images",0,t],600531)},258338,e=>{"use strict";var t=e.i(693207);e.s(["Layers",()=>t.default])},141810,e=>{"use strict";let t=(0,e.i(202913).default)("paintbrush",[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",key:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]]);e.s(["Paintbrush",0,t],141810)},784050,e=>{"use strict";let t=(0,e.i(202913).default)("receipt",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]]);e.s(["Receipt",0,t],784050)},132736,e=>{"use strict";let t=(0,e.i(202913).default)("wrench",[["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"}]]);e.s(["Wrench",0,t],132736)},500394,256608,e=>{"use strict";var t=e.i(222666),n=e.i(505962),r=e.i(452473),i=e.i(682566),o=e.i(99074),l=e.i(270401),a=e.i(995958),s=e.i(135992);let c=new Set(["ArrowDown","ArrowUp","End","Home","PageDown","PageUp"," ","Spacebar"]);function u({id:e,target:t,precedingElements:n,behavior:r,settleMs:i}){(0,s.setProgrammaticScrollAnchor)(e);let o=(0,a.getPageScrollContainer)(),l="auto"===r||!d(t,o),m="auto"===r||!l,f="onscrollend"in window,p=null,g=null,v=!0,w=m,k=!1,b=m&&!l?h(t,o):0,y=(0,a.getPageScrollTop)(),x=new Map,S=new ResizeObserver(()=>{if(!v)return;let e=!1;for(let t of n){let n=x.get(t),r=t.getBoundingClientRect().height;x.set(t,r),void 0!==n&&n!==r&&(e=!0)}e&&(k=!0,t.scrollIntoView({behavior:"auto",block:"start"}),window.requestAnimationFrame(()=>{k=!1,b=h(t,o)}))}),C=()=>{v&&(v=!1,null!==p&&(window.clearTimeout(p),p=null),null!==g&&(window.clearTimeout(g),g=null),window.removeEventListener("scroll",R),window.removeEventListener("scrollend",N),window.removeEventListener("wheel",E),window.removeEventListener("touchmove",E),window.removeEventListener("keydown",L),document.removeEventListener("scrollend",N),o?.removeEventListener("scroll",R),o?.removeEventListener("scrollend",N),S.disconnect(),(0,s.releaseProgrammaticScrollIf)(e))},T=()=>{null===p&&(p=window.setTimeout(C,i))},R=()=>{if(!v)return;if(!m&&!f){if((0,a.getPageScrollTop)()===y)return;m=!0,T(),d(t,o)&&(w=!0,b=h(t,o))}let e=h(t,o),n=Math.abs(e-b)>24&&Math.abs(e)>Math.abs(b);w&&!k&&n&&C()},N=()=>{v&&(m=!0,w=!0,b=h(t,o),T())},E=()=>{C()},L=e=>{c.has(e.key)&&C()};for(let e of n)x.set(e,e.getBoundingClientRect().height),S.observe(e);return window.addEventListener("scroll",R,{passive:!0}),f&&(window.addEventListener("scrollend",N),document.addEventListener("scrollend",N),o?.addEventListener("scrollend",N)),window.addEventListener("wheel",E,{passive:!0}),window.addEventListener("touchmove",E,{passive:!0}),window.addEventListener("keydown",L),o?.addEventListener("scroll",R,{passive:!0}),m&&T(),l&&("smooth"===r&&(g=window.setTimeout(C,7500)),t.scrollIntoView({behavior:r,block:"start"}),"auto"===r&&(b=h(t,o))),m||window.requestAnimationFrame(()=>{v&&d(t,o)&&(m=!0,T())}),C}function d(e,t){return 1>=Math.abs(h(e,t))}function h(e,t){let n=e.getBoundingClientRect(),r=t?.isConnected&&(0,a.usesContainerScroll)(t)?t.getBoundingClientRect().top:0,i=n.top-r,o=Number.parseFloat(getComputedStyle(e).scrollMarginTop);return i-(Number.isNaN(o)?0:o)}var m=e.i(477328);function f(e){let r,i,o,a,s,c,u,d,h=(0,n.c)(19),{sections:m,activeAnchor:f,onClick:g}=e,v=(0,l.useRef)(null);h[0]===Symbol.for("react.memo_cache_sentinel")?(r=new Map,h[0]=r):r=h[0];let w=(0,l.useRef)(r),[k,b]=(0,l.useState)(null);h[1]!==f?(i=()=>{let e=w.current.get(f);if(!e)return;let t=()=>{b({top:e.offsetTop,height:e.offsetHeight})};t();let n=new ResizeObserver(t);return n.observe(e),v.current&&n.observe(v.current),()=>n.disconnect()},o=[f],h[1]=f,h[2]=i,h[3]=o):(i=h[2],o=h[3]),(0,l.useEffect)(i,o),h[4]===Symbol.for("react.memo_cache_sentinel")?(a=e=>t=>{t?w.current.set(e,t):w.current.delete(e)},h[4]=a):a=h[4];let y=a;if(h[5]!==k?(s=k&&(0,t.jsx)("div",{"aria-hidden":!0,className:"absolute inset-x-0 rounded-md bg-accent transition-[transform,height] duration-300 ease-out pointer-events-none",style:{height:k.height,transform:`translateY(${k.top}px)`}}),h[5]=k,h[6]=s):s=h[6],h[7]!==f||h[8]!==g||h[9]!==m){let e;h[11]!==f||h[12]!==g?(e=e=>(0,t.jsx)(p,{section:e,isActive:f===e.id,onClick:g,registerRef:y(e.id)},e.id),h[11]=f,h[12]=g,h[13]=e):e=h[13],c=m.map(e),h[7]=f,h[8]=g,h[9]=m,h[10]=c}else c=h[10];return h[14]!==c?(u=(0,t.jsx)("div",{className:"relative flex flex-col gap-y-px",children:c}),h[14]=c,h[15]=u):u=h[15],h[16]!==s||h[17]!==u?(d=(0,t.jsxs)("div",{ref:v,className:"relative",children:[s,u]}),h[16]=s,h[17]=u,h[18]=d):d=h[18],d}function p(e){let i,o,l,a,s,c=(0,n.c)(18),{section:u,isActive:d,onClick:h,registerRef:m}=e,f=u.icon,p=`#${u.id}`;c[0]!==h||c[1]!==u.id?(i=e=>h(e,u.id),c[0]=h,c[1]=u.id,c[2]=i):i=c[2];let g=d?"page":void 0,v=d?"text-accent-foreground":"text-muted-foreground hover:text-accent-foreground hover:bg-card-hover";c[3]!==v?(o=(0,r.cn)("relative flex items-center gap-2 px-2 py-1.5 rounded-md text-body font-medium cursor-pointer transition-colors no-underline",v),c[3]=v,c[4]=o):o=c[4];let w=!d&&u.iconClassName;return c[5]!==w?(l=(0,r.cn)("size-4",w),c[5]=w,c[6]=l):l=c[6],c[7]!==f||c[8]!==l?(a=(0,t.jsx)(f,{className:l}),c[7]=f,c[8]=l,c[9]=a):a=c[9],c[10]!==m||c[11]!==u.label||c[12]!==p||c[13]!==i||c[14]!==g||c[15]!==o||c[16]!==a?(s=(0,t.jsxs)("a",{ref:m,href:p,onClick:i,"aria-current":g,className:o,children:[a,u.label]}),c[10]=m,c[11]=u.label,c[12]=p,c[13]=i,c[14]=g,c[15]=o,c[16]=a,c[17]=s):s=c[17],s}function g(e){let t=[];for(let n of e){let e=document.getElementById(n.id);e&&e.getClientRects().length>0&&t.push({id:n.id,el:e})}return t}e.s(["SectionNav",0,function({sections:e,ariaLabel:n,desktopNavTopClass:c,mobileTocTopClass:d,activationLinePx:h,onSectionView:p,onSectionSelect:v,desktopNavFooter:w,mobileNavHeader:k,children:b}){let[y,x]=(0,l.useState)(e[0]?.id??""),S=(0,l.useRef)(e[0]?.id??""),C=(0,l.useRef)(null),T=(0,l.useRef)(null),R=(0,l.useRef)(null),N=(0,l.useRef)(!1),E=(0,l.useRef)(p),L=(0,l.useRef)(h),P=(0,l.useRef)(h);E.current=p,L.current=h;let I=(0,l.useCallback)(({shouldUpdateHash:t})=>{if(null!==(0,s.getProgrammaticScrollAnchor)())return;let n=g(e);if(0===n.length)return;let r=function(e,t){var n;let r,i=(n=t,r=(0,a.getPageScrollContainer)(),(0,a.usesContainerScroll)(r)?r.getBoundingClientRect().top+n:n),o=function(e,t){let n,r,i=(n=(0,a.getPageScrollContainer)(),(r=(0,a.usesContainerScroll)(n)?{scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,clientHeight:n.clientHeight}:{scrollTop:window.scrollY,scrollHeight:document.documentElement.scrollHeight,clientHeight:window.innerHeight}).scrollHeight<=r.clientHeight?null:r);if(null===i)return null;let o=Math.max(0,i.scrollHeight-i.scrollTop-i.clientHeight),l=e.filter(({el:e})=>e.getBoundingClientRect().top-o>t).length;if(0===l||l>=e.length)return null;if(o<=2)return e.at(-1).id;if(o>=96*l)return null;let s=Math.ceil(o/96);return e[e.length-s].id}(e,i);if(null!==o)return o;let l=e[0].id;for(let{id:t,el:n}of e)if(n.getBoundingClientRect().top-i<=0)l=t;else break;return l}(n,L.current),i=S.current!==r;if(t&&(i||N.current)&&(N.current=!0,(0,m.syncUrlHash)(r)),i){if(t&&!(0,s.isHashPinned)()){let t=e.findIndex(e=>e.id===r),n=e[t];n&&E.current?.(n,t)}S.current=r,x(r)}},[e]);(0,l.useEffect)(()=>{P.current!==h&&(P.current=h,I({shouldUpdateHash:!1}))},[h,I]),(0,l.useLayoutEffect)(()=>{var t,n;let r,i,o,l,c,d,h=g(e);if(h.length>0&&!N.current){let e=window.location.hash.slice(1);(""===e||h.some(t=>t.id===e))&&(N.current=!0,C.current=function({elements:e,activeAnchorRef:t,setActiveAnchor:n}){let r=window.location.hash.slice(1);if(!r)return;let i=e.find(e=>e.id===r);if(!i)return;t.current=i.id,n(i.id);let o=e.findIndex(e=>e.id===i.id);return u({id:i.id,target:i.el,precedingElements:e.slice(0,o).map(e=>e.el),behavior:"auto",settleMs:3e3})}({elements:h,activeAnchorRef:S,setActiveAnchor:x})??null)}I({shouldUpdateHash:!1});let f=()=>I({shouldUpdateHash:!0}),p=(t=f,r=null,i=(0,a.getPageScrollContainer)(),o=()=>{null===r&&(r=window.requestAnimationFrame(()=>{r=null,t()}))},window.addEventListener("scroll",o,{passive:!0}),window.addEventListener("resize",o,{passive:!0}),i?.addEventListener("scroll",o,{passive:!0}),()=>{window.removeEventListener("scroll",o),window.removeEventListener("resize",o),i?.removeEventListener("scroll",o),null!==r&&window.cancelAnimationFrame(r)}),v=(0,s.subscribeToRecalcRequest)(f),w=(n=m.clearUrlHashAtTop,l=null,c=(0,a.getPageScrollContainer)(),d=()=>{null!==l&&window.clearTimeout(l),l=window.setTimeout(()=>{l=null,n()},120)},window.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d,{passive:!0}),c?.addEventListener("scroll",d,{passive:!0}),()=>{null!==l&&window.clearTimeout(l),window.removeEventListener("scroll",d),window.removeEventListener("resize",d),c?.removeEventListener("scroll",d)});return()=>{C.current?.(),C.current=null,null!==R.current&&(window.clearTimeout(R.current),R.current=null);let e=T.current;e&&(0,s.releaseProgrammaticScrollIf)(e.id),T.current=null,p(),v(),w()}},[e]);let _=(0,l.useCallback)((t,n)=>{C.current?.();let r=g(e),i=r.findIndex(e=>e.id===t);C.current=u({id:t,target:n,precedingElements:-1===i?[]:r.slice(0,i).map(e=>e.el),behavior:"smooth",settleMs:2500})},[e]),j=(0,l.useCallback)((e,t=!0)=>{let n=document.querySelector(`#${e}`);return n?(C.current?.(),C.current=null,(0,s.setProgrammaticScrollAnchor)(e),N.current=!0,S.current=e,x(e),(0,m.updateUrlHash)(e),v?.(e),t&&_(e,n),n):null},[v,_]),M=e.find(e=>e.id===y)??e[0],A=e.filter(e=>!e.mobileOnly);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("aside",{className:"hidden lg:block",children:(0,t.jsxs)("nav",{"aria-label":n,className:(0,r.cn)("sticky flex flex-col gap-y-px",c),children:[(0,t.jsx)(f,{sections:A,activeAnchor:y,onClick:(e,t)=>{e.preventDefault(),j(t)}}),w]})}),(0,t.jsxs)("div",{className:"min-w-0",children:[k&&(0,t.jsx)("div",{className:"lg:hidden mb-2",children:k}),M&&(0,t.jsx)("div",{className:(0,r.cn)("lg:hidden -mx-4 px-4 sticky z-30 bg-background py-2 mb-6",d),children:(0,t.jsxs)(i.DropdownMenu,{onOpenChangeComplete:e=>{if(e)return;let t=T.current;t&&(e=>{let t=T.current;if(!t||t.id!==e)return;T.current=null,null!==R.current&&(window.clearTimeout(R.current),R.current=null);let n=document.querySelector(`#${e}`);n?_(e,n):(0,s.releaseProgrammaticScrollIf)(e)})(t.id)},children:[(0,t.jsxs)(i.DropdownMenuTrigger,{className:"flex items-center justify-between gap-2 w-full min-h-11 px-3 py-2.5 rounded-md bg-muted text-overline cursor-pointer outline-none",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2 min-w-0",children:[(0,t.jsx)(M.icon,{className:(0,r.cn)("w-4 h-4 shrink-0",M.iconClassName)}),(0,t.jsx)("span",{className:"font-medium text-foreground truncate",children:M.label})]}),(0,t.jsx)(o.ChevronDown,{className:"w-4 h-4 text-faint shrink-0"})]}),(0,t.jsx)(i.DropdownMenuContent,{align:"start",className:"w-[var(--anchor-width)]",children:e.map(e=>(0,t.jsxs)(i.DropdownMenuItem,{onClick:()=>{var t;j(e.id,!1)&&(t=e.id,null!==R.current&&window.clearTimeout(R.current),T.current={id:t},R.current=window.setTimeout(()=>{R.current=null;let e=T.current;if(!e||e.id!==t)return;T.current=null;let n=document.querySelector(`#${t}`);n?_(t,n):(0,s.releaseProgrammaticScrollIf)(t)},2e3))},className:(0,r.cn)("text-overline cursor-pointer gap-2 py-2.5",y===e.id&&"bg-accent text-accent-foreground"),children:[(0,t.jsx)(e.icon,{className:(0,r.cn)("w-4 h-4",y!==e.id&&e.iconClassName)}),e.label]},e.id))})]})}),b]})]})}],500394);var v=e.i(323866);function w(e){return e()}function k(){}function b(){return 0}e.s(["useStickyBannerTopOffset",0,function(){let e,t,r=(0,n.c)(3),i=(0,l.useRef)(null);if(null===i.current){let e;r[0]===Symbol.for("react.memo_cache_sentinel")?(e={value:0,listeners:new Set},r[0]=e):e=r[0],i.current=e}r[1]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{let t=i.current;if(!t)return k;t.listeners.add(e);let n=document.querySelector(`#${v.MAINTENANCE_BANNER_PORTAL_ID}`),r=document.querySelector("#page-content");if(!n||!r)return()=>t.listeners.delete(e);let o=()=>{let e=Number.parseFloat(getComputedStyle(r).getPropertyValue("--sticky-banner-top")),n=Number.isFinite(e)?e:0;n!==t.value&&(t.value=n,t.listeners.forEach(w))};o();let l="u"{l?.disconnect(),a?.disconnect(),t.listeners.delete(e)}},r[1]=e):e=r[1];let o=e;r[2]===Symbol.for("react.memo_cache_sentinel")?(t=()=>i.current?.value??0,r[2]=t):t=r[2];let a=t;return(0,l.useSyncExternalStore)(o,a,b)}],256608)},995958,e=>{"use strict";function t(){return document.querySelector("#page-content")}function n(e){return null!==e&&"auto"===getComputedStyle(e).overflowY}e.s(["getPageScrollContainer",0,t,"getPageScrollTop",0,function(){let e=t();return n(e)?e.scrollTop:window.scrollY},"scrollPageToTop",0,function(){let e=t();n(e)?e.scrollTo({top:0,behavior:"smooth"}):window.scrollTo({top:0,behavior:"smooth"})},"usesContainerScroll",0,n])},135992,e=>{"use strict";var t=e.i(586404);function n(){let e=globalThis.__openrouterSectionNavScrollLock;if((0,t.isDefinedAndNotNull)(e))return e.hashPinCount??=0,e.recalcListeners??=new Set,e;let n={anchor:null,hashPinCount:0,recalcListeners:new Set};return globalThis.__openrouterSectionNavScrollLock=n,n}e.s(["getProgrammaticScrollAnchor",0,function(){return n().anchor},"isHashPinned",0,function(){return n().hashPinCount>0},"pinHash",0,function(){n().hashPinCount+=1},"releaseProgrammaticScrollIf",0,function(e){let t=n();t.anchor===e&&(t.anchor=null)},"requestSectionNavRecalc",0,function(){for(let e of n().recalcListeners)e()},"setProgrammaticScrollAnchor",0,function(e){n().anchor=e},"subscribeToRecalcRequest",0,function(e){let t=n().recalcListeners;return t.add(e),()=>{t.delete(e)}},"unpinHash",0,function(){let e=n();e.hashPinCount=Math.max(0,e.hashPinCount-1)}])},477328,e=>{"use strict";var t=e.i(995958),n=e.i(135992);function r(e){let t=`#${e}`;if(window.location.hash===t)return;let n=new URL(window.location.href);n.hash=e,window.history.replaceState(null,"",n)}e.s(["clearUrlHashAtTop",0,function(){(0,n.isHashPinned)()||(0,t.getPageScrollTop)()>2||function(){if(""===window.location.hash)return;let{pathname:e,search:t}=window.location;window.history.replaceState(null,"",`${e}${t}`)}()},"syncUrlHash",0,function(e){(0,n.isHashPinned)()||2>=(0,t.getPageScrollTop)()||r(e)},"updateUrlHash",0,r])},268333,e=>{"use strict";var t=e.i(222666),n=e.i(505962),r=e.i(452473),i=e.i(270401),o=e.i(956302);let l=[38,64,29,55,72,41,60,34,78,47,53,69,31,58,44,75,37,66,49,82,35,57,73,40,62,46,80,33,54,70,43,61,36,76,51,68,39,59,84,45,63,32,71,48,56,79,42,65,52,74,30,67];function a(e){let i,o,l,a,s=(0,n.c)(14),{height:c,rects:u,animate:d,forecastPatternId:h}=e,m=d?"animate-pulse":void 0;s[0]!==m?(i=(0,r.cn)("h-full w-full text-muted",m),s[0]=m,s[1]=i):i=s[1];let f=`0 0 400 ${c}`;if(s[2]!==h?(o=h&&(0,t.jsx)("defs",{children:(0,t.jsxs)("pattern",{id:h,height:"6",patternTransform:"rotate(45)",patternUnits:"userSpaceOnUse",width:"6",children:[(0,t.jsx)("rect",{fill:"currentColor",height:"6",width:"6"}),(0,t.jsx)("rect",{fill:"white",fillOpacity:"0.16",height:"6",width:"3"})]})}),s[2]=h,s[3]=o):o=s[3],s[4]!==h||s[5]!==u){let e;s[7]!==h?(e=e=>(0,t.jsx)("rect",{fill:e.forecast&&h?`url(#${h})`:"currentColor",height:e.height,opacity:e.opacity??1,rx:1,width:e.width,x:e.x,y:e.y},e.key),s[7]=h,s[8]=e):e=s[8],l=u.map(e),s[4]=h,s[5]=u,s[6]=l}else l=s[6];return s[9]!==i||s[10]!==f||s[11]!==o||s[12]!==l?(a=(0,t.jsxs)("svg",{"aria-hidden":!0,className:i,preserveAspectRatio:"none",viewBox:f,children:[o,l]}),s[9]=i,s[10]=f,s[11]=o,s[12]=l,s[13]=a):a=s[13],a}e.s(["StackedBarChartSkeleton",0,function(e){let s,c,u,d,h,m=(0,n.c)(28),{height:f,barCount:p,segmentCount:g,showForecastBar:v,animate:w,decorative:k,className:b,"data-testid":y}=e,x=void 0===f?o.RECHART_DEFAULT_HEIGHT:f,S=void 0===p?52:p,C=void 0===g?5:g,T=void 0===v||v,R=void 0===w||w,N=void 0===y?"stacked-bar-chart-skeleton":y,E=(0,i.useId)();m[0]!==S||m[1]!==x||m[2]!==C||m[3]!==T?(s=function({height:e,barCount:t,segmentCount:n,showForecastBar:r}){let i=(400-(t-1))/t;return Array.from({length:t},(e,t)=>t).flatMap(o=>{let a=l[o%l.length]??50,s=a/100*e,c=n>1?function({totalPercent:e,segmentCount:t,barIndex:n}){let r=Array.from({length:t},(e,t)=>12+(7*n+13*t)%22),i=r.reduce((e,t)=>e+t,0);return r.map(t=>t/i*e)}({totalPercent:a,segmentCount:n,barIndex:o}):[a],u=c.map((e,t)=>c.slice(0,t).reduce((e,t)=>e+t,0));return c.flatMap((n,l)=>{let a=n/100*e;if(a<=0)return[];let c=r&&o===t-1,d=(u[l]??0)/100*e;return[{forecast:c,height:a,key:`bar-${o}-segment-${l}`,opacity:c?.58:.48,width:i,x:o*(i+1),y:e-s+d}]})})}({height:x,barCount:S,segmentCount:C,showForecastBar:T}),m[0]=S,m[1]=x,m[2]=C,m[3]=T,m[4]=s):s=m[4];let L=s,P=T?E:void 0;m[5]!==R||m[6]!==x||m[7]!==L||m[8]!==P?(c=(0,t.jsx)(a,{animate:R,forecastPatternId:P,height:x,rects:L}),m[5]=R,m[6]=x,m[7]=L,m[8]=P,m[9]=c):c=m[9];let I=c;if(void 0!==k&&k){let e,n,i;return m[10]!==b?(e=(0,r.cn)("w-full",b),m[10]=b,m[11]=e):e=m[11],m[12]!==x?(n={height:x},m[12]=x,m[13]=n):n=m[13],m[14]!==I||m[15]!==N||m[16]!==e||m[17]!==n?(i=(0,t.jsx)("div",{"aria-hidden":!0,className:e,"data-testid":N,style:n,children:I}),m[14]=I,m[15]=N,m[16]=e,m[17]=n,m[18]=i):i=m[18],i}return m[19]!==b?(u=(0,r.cn)("w-full",b),m[19]=b,m[20]=u):u=m[20],m[21]!==x?(d={height:x},m[21]=x,m[22]=d):d=m[22],m[23]!==I||m[24]!==N||m[25]!==u||m[26]!==d?(h=(0,t.jsx)("div",{"aria-label":"Loading chart",className:u,"data-testid":N,role:"status",style:d,children:I}),m[23]=I,m[24]=N,m[25]=u,m[26]=d,m[27]=h):h=m[27],h}])},719379,e=>{"use strict";var t=e.i(222666),n=e.i(505962),r=e.i(452473),i=e.i(191379);e.i(406201);var o=e.i(806024);e.s(["BenchmarkEntryCard",0,function(e){let l,a,s,c,u,d,h,m=(0,n.c)(18),{description:f,href:p,icon:g,iconClassName:v,onSelect:w,title:k}=e;return m[0]!==v?(l=(0,r.cn)("size-4 shrink-0 transition-colors group-hover:text-accent-foreground",v),m[0]=v,m[1]=l):l=m[1],m[2]!==g||m[3]!==l?(a=(0,t.jsx)(g,{className:l}),m[2]=g,m[3]=l,m[4]=a):a=m[4],m[5]!==k?(s=(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate text-body font-medium transition-colors group-hover:text-accent-foreground",children:k}),m[5]=k,m[6]=s):s=m[6],m[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(i.ArrowUpRight,{className:"size-3.5 shrink-0 text-muted-foreground/50 transition-colors group-hover:text-accent-foreground"}),m[7]=c):c=m[7],m[8]!==a||m[9]!==s?(u=(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[a,s,c]}),m[8]=a,m[9]=s,m[10]=u):u=m[10],m[11]!==f?(d=f&&(0,t.jsx)("p",{className:"mt-1 text-body leading-snug text-muted-foreground",children:f}),m[11]=f,m[12]=d):d=m[12],m[13]!==p||m[14]!==w||m[15]!==u||m[16]!==d?(h=(0,t.jsxs)(o.Link,{href:p,onClick:w,className:"group flex min-w-0 flex-col rounded-lg border border-border bg-card px-3 py-2.5 no-underline transition-colors hover:bg-card-hover focus-visible:border-focus-border focus-visible:shadow-focus focus-visible:outline-none",children:[u,d]}),m[13]=p,m[14]=w,m[15]=u,m[16]=d,m[17]=h):h=m[17],h}])},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"};e.s(["mediaBenchmarkBasePath",0,function(e){return t[e]}])},759145,e=>{"use strict";var t=e.i(222666),n=e.i(505962),r=e.i(553215),i=e.i(379684),o=e.i(252358);e.s(["RankingsLicenseNotice",0,function(){let e,l,a,s,c=(0,n.c)(9),u=(0,o.usePosthogClient)();c[0]!==u?(e=e=>{u.capture(r.PostHogEvent.ClickRankingsLicenseLink,{link:e})},c[0]=u,c[1]=e):e=c[1];let d=e;return c[2]!==d?(l=(0,t.jsx)(i.TextLink,{href:"https://creativecommons.org/licenses/by/4.0/",onClick:()=>{d("cc_by_4")},children:"CC BY 4.0"}),c[2]=d,c[3]=l):l=c[3],c[4]!==d?(a=(0,t.jsx)(i.TextLink,{href:"/docs/cookbook/administration/data-api",onClick:()=>{d("data_api_docs")},children:"Data API docs"}),c[4]=d,c[5]=a):a=c[5],c[6]!==l||c[7]!==a?(s=(0,t.jsxs)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:["Rankings data by OpenRouter is licensed under"," ",l,". Reuse and republish it with attribution. The"," ",a," ","cover the citation format and JSON access to these datasets."]}),c[6]=l,c[7]=a,c[8]=s):s=c[8],s}])},191870,e=>{"use strict";var t=e.i(222666),n=e.i(505962),r=e.i(553215),i=e.i(500394),o=e.i(252358),l=e.i(586404),a=e.i(579852),s=e.i(202913);let c=(0,s.default)("beaker",[["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"}]]);var u=e.i(387445),d=e.i(301797),h=e.i(460546),m=e.i(969949),f=e.i(213648),p=e.i(600531),g=e.i(258338);let v=(0,s.default)("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);var w=e.i(141810),k=e.i(784050),b=e.i(210041),y=e.i(132736),x=e.i(435480);e.i(270401);var S=e.i(913767),C=e.i(719379),T=e.i(189360);let R={image:{icon:p.Images,description:"Compare generation quality across media models"},video:{icon:S.Video,description:"Compare generation quality across video models"}};function N(e){let r,i,o=(0,n.c)(8),{isCompact:l,modality:a,onSelect:s,title:c}=e,u=void 0===c?"Media":c,{icon:d,description:h}=R[a],m=void 0!==l&&l?void 0:h;return o[0]!==a?(r=(0,T.mediaBenchmarkBasePath)(a),o[0]=a,o[1]=r):r=o[1],o[2]!==d||o[3]!==s||o[4]!==m||o[5]!==r||o[6]!==u?(i=(0,t.jsx)(C.BenchmarkEntryCard,{description:m,href:r,icon:d,iconClassName:"text-chart-4",onSelect:s,title:u}),o[2]=d,o[3]=s,o[4]=m,o[5]=r,o[6]=u,o[7]=i):i=o[7],i}var E=e.i(13457),L=e.i(256608),P=e.i(619179),I=e.i(45455);let _={[P.RankingsSectionIcon.Apps]:u.Blocks,[P.RankingsSectionIcon.BarChart]:a.BarChart3,[P.RankingsSectionIcon.Benchmarks]:c,[P.RankingsSectionIcon.Clock]:d.Clock,[P.RankingsSectionIcon.Code]:h.Code2,[P.RankingsSectionIcon.Documents]:m.FileText,[P.RankingsSectionIcon.Globe]:f.Globe,[P.RankingsSectionIcon.Images]:p.Images,[P.RankingsSectionIcon.Layers]:g.Layers,[P.RankingsSectionIcon.LineChart]:v,[P.RankingsSectionIcon.Paintbrush]:w.Paintbrush,[P.RankingsSectionIcon.Receipt]:k.Receipt,[P.RankingsSectionIcon.Tools]:y.Wrench,[P.RankingsSectionIcon.Trophy]:b.Trophy,[P.RankingsSectionIcon.Zap]:x.Zap};function j(e){return{...e,icon:_[e.icon]}}e.s(["RankingsSectionNav",0,function(e){let a,s,c,u,d,h,m=(0,n.c)(18),{sections:f,mediaBenchmarksModality:p,children:g}=e;m[0]!==f?(a=f.map(j),m[0]=f,m[1]=a):a=m[1];let v=a,w=(0,o.usePosthogClient)(),k=(0,L.useStickyBannerTopOffset)(),b=(0,E.useSectionViewTracking)(r.PostHogEvent.RankingsSectionView);m[2]!==w?(s=e=>{w.capture(r.PostHogEvent.ClickRankingsSectionNav,{section:e,source:"section_nav"})},m[2]=w,m[3]=s):s=m[3];let y=s;m[4]!==w?(c=(e,t)=>{w.capture(r.PostHogEvent.ClickRankingsMediaBenchmarks,{source:e,modality:t})},m[4]=w,m[5]=c):c=m[5];let x=c,S=200+k;return m[6]!==x||m[7]!==p?(u=(0,l.isDefinedAndNotNull)(p)?(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(N,{modality:p,onSelect:()=>x("desktop",p),title:"Benchmarks"})}):void 0,m[6]=x,m[7]=p,m[8]=u):u=m[8],m[9]!==g?(d=(0,t.jsx)("section",{className:"flex min-w-0 flex-col gap-16",children:g}),m[9]=g,m[10]=d):d=m[10],m[11]!==y||m[12]!==b||m[13]!==v||m[14]!==S||m[15]!==u||m[16]!==d?(h=(0,t.jsx)(i.SectionNav,{sections:v,ariaLabel:"Rankings page sections",desktopNavTopClass:I.RANKINGS_DESKTOP_NAV_STICKY_TOP_CLASS,mobileTocTopClass:I.RANKINGS_MOBILE_TOC_STICKY_TOP_CLASS,activationLinePx:S,onSectionView:b,onSectionSelect:y,desktopNavFooter:u,children:d}),m[11]=y,m[12]=b,m[13]=v,m[14]=S,m[15]=u,m[16]=d,m[17]=h):h=m[17],h}],191870)},619179,e=>{"use strict";var t=e.i(503953);let n={Apps:"apps",BarChart:"bar-chart",Benchmarks:"benchmarks",Clock:"clock",Code:"code",Documents:"documents",Globe:"globe",Images:"images",Layers:"layers",LineChart:"line-chart",Paintbrush:"paintbrush",Receipt:"receipt",Tools:"tools",Trophy:"trophy",Zap:"zap"};n.BarChart,n.Trophy,n.Layers,n.Receipt,n.LineChart,n.Benchmarks,n.Zap,n.Globe,n.Code,n.Documents,n.Tools,n.Images,n.Apps,n.Paintbrush,n.Documents,t.STT_TRANSCRIPT_CHARACTERS_METRIC.chartTitle,n.Documents,t.VIDEO_OUTPUT_SECONDS_METRIC.chartTitle,n.Clock,e.s(["LEADERBOARD_TABLE_SECTION_ID",0,"leaderboard-table","RankingsSectionIcon",0,n,"SESSION_COST_SECTION_ID",0,"session-cost"],619179)},13457,e=>{"use strict";var t=e.i(505962);e.i(553215);var n=e.i(252358);e.i(270401),e.s(["useSectionViewTracking",0,function(e){let r,i=(0,t.c)(3),o=(0,n.usePosthogClient)();return i[0]!==e||i[1]!==o?(r=(t,n)=>{Math.random()>=.1||o.capture(e,{section:t.id,section_label:t.label,section_index:n,source:"scroll_spy",sample_rate:.1})},i[0]=e,i[1]=o,i[2]=r):r=i[2],r}])}]); //# sourceMappingURL=0j5i5tg8_nlcf.js.map //# chunkId=01a08eb6-2fc6-7e03-8d81-81b888d28c2c