!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]="01a08fa9-62fb-78d1-9dea-321af6cb46c5")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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)},207258,e=>{"use strict";let t=(0,e.i(202913).default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",0,t])},524275,e=>{"use strict";var t=e.i(207258);e.s(["HelpCircle",()=>t.default])},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)},55658,e=>{"use strict";let t=(0,e.i(202913).default)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);e.s(["TrendingUp",0,t],55658)},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)},179019,e=>{"use strict";var t=e.i(270401),n=e.i(214857),r=e.i(745578),l=t,i=e.i(470733),o=e.i(108184),a=e.i(211260),c=e.i(282545);function s(){return(s=Object.assign.bind()).apply(null,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class m extends l.PureComponent{renderIcon(e,t){var{inactiveColor:n}=this.props,r=32/6,i=32/3,o=e.inactive?n:e.color,c=null!=t?t:e.type;if("none"===c)return null;if("plainline"===c)return l.createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:16,x2:32,y2:16,className:"recharts-legend-icon"});if("line"===c)return l.createElement("path",{strokeWidth:4,fill:"none",stroke:o,d:"M0,".concat(16,"h").concat(i,"\n A").concat(r,",").concat(r,",0,1,1,").concat(2*i,",").concat(16,"\n H").concat(32,"M").concat(2*i,",").concat(16,"\n A").concat(r,",").concat(r,",0,1,1,").concat(i,",").concat(16),className:"recharts-legend-icon"});if("rect"===c)return l.createElement("path",{stroke:"none",fill:o,d:"M0,".concat(4,"h").concat(32,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(l.isValidElement(e.legendIcon)){var s=function(e){for(var t=1;t{var f=e.formatter||r,p=(0,i.clsx)({"recharts-legend-item":!0,["legend-item-".concat(n)]:!0,inactive:e.inactive});if("none"===e.type)return null;var g=e.inactive?a:e.color,v=f?f(e.value,e,n):e.value;return l.createElement("li",s({className:p,style:m,key:"legend-item-".concat(n)},(0,c.adaptEventsOfChild)(this.props,e,n)),l.createElement(o.Surface,{width:t,height:t,viewBox:d,style:h,"aria-label":"".concat(v," legend icon")},this.renderIcon(e,u)),l.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},v))})}render(){var{payload:e,layout:t,align:n}=this.props;return e&&e.length?l.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===t?n:"left"}},this.renderItems()):null}}d(m,"displayName","Legend"),d(m,"defaultProps",{align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"});var h=e.i(320012),f=e.i(329643),p=e.i(557059),g=e.i(425025),v=e.i(305651),b=e.i(48378),x=e.i(293848),w=["contextPayload"];function y(){return(y=Object.assign.bind()).apply(null,arguments)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e){for(var t=1;t{n((0,x.setLegendSettings)(e))},[n,e]),null}function E(e){var n=(0,p.useAppDispatch)();return(0,t.useEffect)(()=>(n((0,x.setLegendSize)(e)),()=>{n((0,x.setLegendSize)({width:0,height:0}))}),[n,e]),null}function T(e){var l=(0,p.useAppSelector)(g.selectLegendPayload),i=(0,r.useLegendPortal)(),o=(0,b.useMargin)(),{width:a,height:c,wrapperStyle:s,portal:u}=e,[d,m]=(0,v.useElementOffset)([l]),h=(0,b.useChartWidth)(),f=(0,b.useChartHeight)();if(null==h||null==f)return null;var x=h-(o.left||0)-(o.right||0),w=O.getWidthOrHeight(e.layout,c,a,x),j=u?s:S(S({position:"absolute",width:(null==w?void 0:w.width)||a||"auto",height:(null==w?void 0:w.height)||c||"auto"},function(e,t,n,r,l,i){var o,a,{layout:c,align:s,verticalAlign:u}=t;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(o="center"===s&&"vertical"===c?{left:((r||0)-i.width)/2}:"right"===s?{right:n&&n.right||0}:{left:n&&n.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(a="middle"===u?{top:((l||0)-i.height)/2}:"bottom"===u?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),S(S({},o),a)}(s,e,o,h,f,d)),s),P=null!=u?u:i;if(null==P)return null;var N=t.createElement("div",{className:"recharts-legend-wrapper",style:j,ref:m},t.createElement(C,{layout:e.layout,align:e.align,verticalAlign:e.verticalAlign,itemSorter:e.itemSorter}),t.createElement(E,{width:d.width,height:d.height}),t.createElement(k,y({},e,w,{margin:o,chartWidth:h,chartHeight:f,contextPayload:l})));return(0,n.createPortal)(N,P)}class O extends t.PureComponent{static getWidthOrHeight(e,t,n,r){return"vertical"===e&&(0,h.isNumber)(t)?{height:t}:"horizontal"===e?{width:n||r}:null}render(){return t.createElement(T,this.props)}}P(O,"displayName","Legend"),P(O,"defaultProps",{align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"}),e.s(["Legend",0,O],179019)},500394,256608,e=>{"use strict";var t=e.i(222666),n=e.i(505962),r=e.i(452473),l=e.i(682566),i=e.i(99074),o=e.i(270401),a=e.i(995958),c=e.i(135992);let s=new Set(["ArrowDown","ArrowUp","End","Home","PageDown","PageUp"," ","Spacebar"]);function u({id:e,target:t,precedingElements:n,behavior:r,settleMs:l}){(0,c.setProgrammaticScrollAnchor)(e);let i=(0,a.getPageScrollContainer)(),o="auto"===r||!d(t,i),h="auto"===r||!o,f="onscrollend"in window,p=null,g=null,v=!0,b=h,x=!1,w=h&&!o?m(t,i):0,y=(0,a.getPageScrollTop)(),j=new Map,S=new ResizeObserver(()=>{if(!v)return;let e=!1;for(let t of n){let n=j.get(t),r=t.getBoundingClientRect().height;j.set(t,r),void 0!==n&&n!==r&&(e=!0)}e&&(x=!0,t.scrollIntoView({behavior:"auto",block:"start"}),window.requestAnimationFrame(()=>{x=!1,w=m(t,i)}))}),P=()=>{v&&(v=!1,null!==p&&(window.clearTimeout(p),p=null),null!==g&&(window.clearTimeout(g),g=null),window.removeEventListener("scroll",k),window.removeEventListener("scrollend",C),window.removeEventListener("wheel",E),window.removeEventListener("touchmove",E),window.removeEventListener("keydown",T),document.removeEventListener("scrollend",C),i?.removeEventListener("scroll",k),i?.removeEventListener("scrollend",C),S.disconnect(),(0,c.releaseProgrammaticScrollIf)(e))},N=()=>{null===p&&(p=window.setTimeout(P,l))},k=()=>{if(!v)return;if(!h&&!f){if((0,a.getPageScrollTop)()===y)return;h=!0,N(),d(t,i)&&(b=!0,w=m(t,i))}let e=m(t,i),n=Math.abs(e-w)>24&&Math.abs(e)>Math.abs(w);b&&!x&&n&&P()},C=()=>{v&&(h=!0,b=!0,w=m(t,i),N())},E=()=>{P()},T=e=>{s.has(e.key)&&P()};for(let e of n)j.set(e,e.getBoundingClientRect().height),S.observe(e);return window.addEventListener("scroll",k,{passive:!0}),f&&(window.addEventListener("scrollend",C),document.addEventListener("scrollend",C),i?.addEventListener("scrollend",C)),window.addEventListener("wheel",E,{passive:!0}),window.addEventListener("touchmove",E,{passive:!0}),window.addEventListener("keydown",T),i?.addEventListener("scroll",k,{passive:!0}),h&&N(),o&&("smooth"===r&&(g=window.setTimeout(P,7500)),t.scrollIntoView({behavior:r,block:"start"}),"auto"===r&&(w=m(t,i))),h||window.requestAnimationFrame(()=>{v&&d(t,i)&&(h=!0,N())}),P}function d(e,t){return 1>=Math.abs(m(e,t))}function m(e,t){let n=e.getBoundingClientRect(),r=t?.isConnected&&(0,a.usesContainerScroll)(t)?t.getBoundingClientRect().top:0,l=n.top-r,i=Number.parseFloat(getComputedStyle(e).scrollMarginTop);return l-(Number.isNaN(i)?0:i)}var h=e.i(477328);function f(e){let r,l,i,a,c,s,u,d,m=(0,n.c)(19),{sections:h,activeAnchor:f,onClick:g}=e,v=(0,o.useRef)(null);m[0]===Symbol.for("react.memo_cache_sentinel")?(r=new Map,m[0]=r):r=m[0];let b=(0,o.useRef)(r),[x,w]=(0,o.useState)(null);m[1]!==f?(l=()=>{let e=b.current.get(f);if(!e)return;let t=()=>{w({top:e.offsetTop,height:e.offsetHeight})};t();let n=new ResizeObserver(t);return n.observe(e),v.current&&n.observe(v.current),()=>n.disconnect()},i=[f],m[1]=f,m[2]=l,m[3]=i):(l=m[2],i=m[3]),(0,o.useEffect)(l,i),m[4]===Symbol.for("react.memo_cache_sentinel")?(a=e=>t=>{t?b.current.set(e,t):b.current.delete(e)},m[4]=a):a=m[4];let y=a;if(m[5]!==x?(c=x&&(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:x.height,transform:`translateY(${x.top}px)`}}),m[5]=x,m[6]=c):c=m[6],m[7]!==f||m[8]!==g||m[9]!==h){let e;m[11]!==f||m[12]!==g?(e=e=>(0,t.jsx)(p,{section:e,isActive:f===e.id,onClick:g,registerRef:y(e.id)},e.id),m[11]=f,m[12]=g,m[13]=e):e=m[13],s=h.map(e),m[7]=f,m[8]=g,m[9]=h,m[10]=s}else s=m[10];return m[14]!==s?(u=(0,t.jsx)("div",{className:"relative flex flex-col gap-y-px",children:s}),m[14]=s,m[15]=u):u=m[15],m[16]!==c||m[17]!==u?(d=(0,t.jsxs)("div",{ref:v,className:"relative",children:[c,u]}),m[16]=c,m[17]=u,m[18]=d):d=m[18],d}function p(e){let l,i,o,a,c,s=(0,n.c)(18),{section:u,isActive:d,onClick:m,registerRef:h}=e,f=u.icon,p=`#${u.id}`;s[0]!==m||s[1]!==u.id?(l=e=>m(e,u.id),s[0]=m,s[1]=u.id,s[2]=l):l=s[2];let g=d?"page":void 0,v=d?"text-accent-foreground":"text-muted-foreground hover:text-accent-foreground hover:bg-card-hover";s[3]!==v?(i=(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),s[3]=v,s[4]=i):i=s[4];let b=!d&&u.iconClassName;return s[5]!==b?(o=(0,r.cn)("size-4",b),s[5]=b,s[6]=o):o=s[6],s[7]!==f||s[8]!==o?(a=(0,t.jsx)(f,{className:o}),s[7]=f,s[8]=o,s[9]=a):a=s[9],s[10]!==h||s[11]!==u.label||s[12]!==p||s[13]!==l||s[14]!==g||s[15]!==i||s[16]!==a?(c=(0,t.jsxs)("a",{ref:h,href:p,onClick:l,"aria-current":g,className:i,children:[a,u.label]}),s[10]=h,s[11]=u.label,s[12]=p,s[13]=l,s[14]=g,s[15]=i,s[16]=a,s[17]=c):c=s[17],c}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:s,mobileTocTopClass:d,activationLinePx:m,onSectionView:p,onSectionSelect:v,desktopNavFooter:b,mobileNavHeader:x,children:w}){let[y,j]=(0,o.useState)(e[0]?.id??""),S=(0,o.useRef)(e[0]?.id??""),P=(0,o.useRef)(null),N=(0,o.useRef)(null),k=(0,o.useRef)(null),C=(0,o.useRef)(!1),E=(0,o.useRef)(p),T=(0,o.useRef)(m),O=(0,o.useRef)(m);E.current=p,T.current=m;let _=(0,o.useCallback)(({shouldUpdateHash:t})=>{if(null!==(0,c.getProgrammaticScrollAnchor)())return;let n=g(e);if(0===n.length)return;let r=function(e,t){var n;let r,l=(n=t,r=(0,a.getPageScrollContainer)(),(0,a.usesContainerScroll)(r)?r.getBoundingClientRect().top+n:n),i=function(e,t){let n,r,l=(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===l)return null;let i=Math.max(0,l.scrollHeight-l.scrollTop-l.clientHeight),o=e.filter(({el:e})=>e.getBoundingClientRect().top-i>t).length;if(0===o||o>=e.length)return null;if(i<=2)return e.at(-1).id;if(i>=96*o)return null;let c=Math.ceil(i/96);return e[e.length-c].id}(e,l);if(null!==i)return i;let o=e[0].id;for(let{id:t,el:n}of e)if(n.getBoundingClientRect().top-l<=0)o=t;else break;return o}(n,T.current),l=S.current!==r;if(t&&(l||C.current)&&(C.current=!0,(0,h.syncUrlHash)(r)),l){if(t&&!(0,c.isHashPinned)()){let t=e.findIndex(e=>e.id===r),n=e[t];n&&E.current?.(n,t)}S.current=r,j(r)}},[e]);(0,o.useEffect)(()=>{O.current!==m&&(O.current=m,_({shouldUpdateHash:!1}))},[m,_]),(0,o.useLayoutEffect)(()=>{var t,n;let r,l,i,o,s,d,m=g(e);if(m.length>0&&!C.current){let e=window.location.hash.slice(1);(""===e||m.some(t=>t.id===e))&&(C.current=!0,P.current=function({elements:e,activeAnchorRef:t,setActiveAnchor:n}){let r=window.location.hash.slice(1);if(!r)return;let l=e.find(e=>e.id===r);if(!l)return;t.current=l.id,n(l.id);let i=e.findIndex(e=>e.id===l.id);return u({id:l.id,target:l.el,precedingElements:e.slice(0,i).map(e=>e.el),behavior:"auto",settleMs:3e3})}({elements:m,activeAnchorRef:S,setActiveAnchor:j})??null)}_({shouldUpdateHash:!1});let f=()=>_({shouldUpdateHash:!0}),p=(t=f,r=null,l=(0,a.getPageScrollContainer)(),i=()=>{null===r&&(r=window.requestAnimationFrame(()=>{r=null,t()}))},window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i,{passive:!0}),l?.addEventListener("scroll",i,{passive:!0}),()=>{window.removeEventListener("scroll",i),window.removeEventListener("resize",i),l?.removeEventListener("scroll",i),null!==r&&window.cancelAnimationFrame(r)}),v=(0,c.subscribeToRecalcRequest)(f),b=(n=h.clearUrlHashAtTop,o=null,s=(0,a.getPageScrollContainer)(),d=()=>{null!==o&&window.clearTimeout(o),o=window.setTimeout(()=>{o=null,n()},120)},window.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d,{passive:!0}),s?.addEventListener("scroll",d,{passive:!0}),()=>{null!==o&&window.clearTimeout(o),window.removeEventListener("scroll",d),window.removeEventListener("resize",d),s?.removeEventListener("scroll",d)});return()=>{P.current?.(),P.current=null,null!==k.current&&(window.clearTimeout(k.current),k.current=null);let e=N.current;e&&(0,c.releaseProgrammaticScrollIf)(e.id),N.current=null,p(),v(),b()}},[e]);let L=(0,o.useCallback)((t,n)=>{P.current?.();let r=g(e),l=r.findIndex(e=>e.id===t);P.current=u({id:t,target:n,precedingElements:-1===l?[]:r.slice(0,l).map(e=>e.el),behavior:"smooth",settleMs:2500})},[e]),M=(0,o.useCallback)((e,t=!0)=>{let n=document.querySelector(`#${e}`);return n?(P.current?.(),P.current=null,(0,c.setProgrammaticScrollAnchor)(e),C.current=!0,S.current=e,j(e),(0,h.updateUrlHash)(e),v?.(e),t&&L(e,n),n):null},[v,L]),A=e.find(e=>e.id===y)??e[0],R=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",s),children:[(0,t.jsx)(f,{sections:R,activeAnchor:y,onClick:(e,t)=>{e.preventDefault(),M(t)}}),b]})}),(0,t.jsxs)("div",{className:"min-w-0",children:[x&&(0,t.jsx)("div",{className:"lg:hidden mb-2",children:x}),A&&(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)(l.DropdownMenu,{onOpenChangeComplete:e=>{if(e)return;let t=N.current;t&&(e=>{let t=N.current;if(!t||t.id!==e)return;N.current=null,null!==k.current&&(window.clearTimeout(k.current),k.current=null);let n=document.querySelector(`#${e}`);n?L(e,n):(0,c.releaseProgrammaticScrollIf)(e)})(t.id)},children:[(0,t.jsxs)(l.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)(A.icon,{className:(0,r.cn)("w-4 h-4 shrink-0",A.iconClassName)}),(0,t.jsx)("span",{className:"font-medium text-foreground truncate",children:A.label})]}),(0,t.jsx)(i.ChevronDown,{className:"w-4 h-4 text-faint shrink-0"})]}),(0,t.jsx)(l.DropdownMenuContent,{align:"start",className:"w-[var(--anchor-width)]",children:e.map(e=>(0,t.jsxs)(l.DropdownMenuItem,{onClick:()=>{var t;M(e.id,!1)&&(t=e.id,null!==k.current&&window.clearTimeout(k.current),N.current={id:t},k.current=window.setTimeout(()=>{k.current=null;let e=N.current;if(!e||e.id!==t)return;N.current=null;let n=document.querySelector(`#${t}`);n?L(t,n):(0,c.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))})]})}),w]})]})}],500394);var v=e.i(323866);function b(e){return e()}function x(){}function w(){return 0}e.s(["useStickyBannerTopOffset",0,function(){let e,t,r=(0,n.c)(3),l=(0,o.useRef)(null);if(null===l.current){let e;r[0]===Symbol.for("react.memo_cache_sentinel")?(e={value:0,listeners:new Set},r[0]=e):e=r[0],l.current=e}r[1]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{let t=l.current;if(!t)return x;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 i=()=>{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(b))};i();let o="u"{o?.disconnect(),a?.disconnect(),t.listeners.delete(e)}},r[1]=e):e=r[1];let i=e;r[2]===Symbol.for("react.memo_cache_sentinel")?(t=()=>l.current?.value??0,r[2]=t):t=r[2];let a=t;return(0,o.useSyncExternalStore)(i,a,w)}],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])},265716,e=>{"use strict";e.s(["compareNullableNumbers",0,function(e,t,n){return null===e&&null===t?0:null===e?1:null===t?-1:"ascending"===n?e-t:t-e}])},625438,e=>{"use strict";var t=e.i(222666),n=e.i(505962),r=e.i(452473),l=e.i(617353),i=e.i(970654),o=e.i(956506),a=e.i(126154),c=e.i(414539);function s(e){return(0,t.jsx)(c.TabsContent,{value:e.id,children:(0,t.jsx)(m,{example:e})},e.id)}function u(e){return(0,t.jsx)(c.TabsTrigger,{value:e.id,children:(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(d,{reward:e.verdict.reward}),e.tabLabel]})},e.id)}function d(e){let l,i,o=(0,n.c)(4),{reward:a}=e,c=1===a?"bg-chart-1":"bg-destructive";return o[0]!==c?(l=(0,r.cn)("size-1.5 rounded-full",c),o[0]=c,o[1]=l):l=o[1],o[2]!==l?(i=(0,t.jsx)("span",{className:l}),o[2]=l,o[3]=i):i=o[3],i}function m(e){let r,i,c,s,u,d,m,g,b,x,w,y,j,S,P=(0,n.c)(34),{example:N}=e;return P[0]!==N.verdict.reward?(r=(0,t.jsx)(f,{reward:N.verdict.reward}),P[0]=N.verdict.reward,P[1]=r):r=P[1],P[2]!==N.title?(i=(0,t.jsx)("h3",{className:"text-sm font-medium text-foreground",children:N.title}),P[2]=N.title,P[3]=i):i=P[3],P[4]!==r||P[5]!==i?(c=(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[r,i]}),P[4]=r,P[5]=i,P[6]=c):c=P[6],P[7]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(a.DotSeparator,{}),P[7]=s):s=P[7],P[8]!==N.agentModel||P[9]!==N.taskId?(u=(0,t.jsxs)("p",{className:"text-2xs font-medium uppercase tracking-widest text-muted-foreground",children:["Task ",N.taskId," ",s," agent: ",N.agentModel]}),P[8]=N.agentModel,P[9]=N.taskId,P[10]=u):u=P[10],P[11]!==N.userGoal?(d=(0,t.jsx)("p",{className:"text-muted-foreground",children:N.userGoal}),P[11]=N.userGoal,P[12]=d):d=P[12],P[13]!==N.checks?(m=N.checks.map(h),P[13]=N.checks,P[14]=m):m=P[14],P[15]!==m?(g=(0,t.jsx)("ul",{className:"flex list-disc flex-col gap-1 pl-4 text-xs text-muted-foreground",children:m}),P[15]=m,P[16]=g):g=P[16],P[17]!==N.verdict?(b=(0,t.jsx)(p,{verdict:N.verdict}),P[17]=N.verdict,P[18]=b):b=P[18],P[19]!==N.analysis?(x=(0,t.jsx)("p",{className:"text-muted-foreground",children:N.analysis}),P[19]=N.analysis,P[20]=x):x=P[20],P[21]!==x||P[22]!==u||P[23]!==d||P[24]!==g||P[25]!==b?(w=(0,t.jsxs)("div",{className:"flex flex-col gap-2 text-sm",children:[u,d,g,b,x]}),P[21]=x,P[22]=u,P[23]=d,P[24]=g,P[25]=b,P[26]=w):w=P[26],P[27]===Symbol.for("react.memo_cache_sentinel")?(y=(0,t.jsx)(l.AccordionTrigger,{className:"text-muted-foreground hover:text-foreground",children:"Transcript"}),P[27]=y):y=P[27],P[28]!==N.turns?(j=(0,t.jsx)(l.Accordion,{collapsible:!0,type:"single",children:(0,t.jsxs)(l.AccordionItem,{className:"border-b-0 border-t border-border",value:"transcript",children:[y,(0,t.jsx)(l.AccordionContent,{children:(0,t.jsx)(v,{turns:N.turns})})]})}),P[28]=N.turns,P[29]=j):j=P[29],P[30]!==w||P[31]!==j||P[32]!==c?(S=(0,t.jsxs)(o.Card,{className:"mt-4 flex flex-col gap-4 p-5",children:[c,w,j]}),P[30]=w,P[31]=j,P[32]=c,P[33]=S):S=P[33],S}function h(e){return(0,t.jsx)("li",{children:e},e)}function f(e){let r,l=(0,n.c)(3),{reward:o}=e,a=1===o?"default":"destructive";return l[0]!==o||l[1]!==a?(r=(0,t.jsxs)(i.Badge,{variant:a,children:["reward = ",o]}),l[0]=o,l[1]=a,l[2]=r):r=l[2],r}function p(e){let r,l,i,o,a=(0,n.c)(10),{verdict:c}=e;return a[0]!==c.dbMatch?(r=(0,t.jsx)(g,{didPass:c.dbMatch,label:"db"}),a[0]=c.dbMatch,a[1]=r):r=a[1],a[2]!==c.communicateMet?(l=(0,t.jsx)(g,{didPass:c.communicateMet,label:"communicate"}),a[2]=c.communicateMet,a[3]=l):l=a[3],a[4]!==c.termination?(i=(0,t.jsx)("span",{className:"rounded-full bg-muted px-2 py-0.5 font-mono text-muted-foreground",children:c.termination}),a[4]=c.termination,a[5]=i):i=a[5],a[6]!==r||a[7]!==l||a[8]!==i?(o=(0,t.jsxs)("div",{className:"flex flex-wrap gap-1.5 text-xs",children:[r,l,i]}),a[6]=r,a[7]=l,a[8]=i,a[9]=o):o=a[9],o}function g(e){let l,i,o=(0,n.c)(6),{label:a,didPass:c}=e,s=c?"bg-chart-1/15 text-chart-1":"bg-destructive/10 text-destructive";o[0]!==s?(l=(0,r.cn)("rounded-full px-2 py-0.5 font-mono",s),o[0]=s,o[1]=l):l=o[1];let u=c?"✓":"✗";return o[2]!==a||o[3]!==l||o[4]!==u?(i=(0,t.jsxs)("span",{className:l,children:[a," ",u]}),o[2]=a,o[3]=l,o[4]=u,o[5]=i):i=o[5],i}function v(e){let r,l,i,o=(0,n.c)(6),{turns:a}=e;if(o[0]!==a)r="flex flex-col gap-2",l=a.map((e,t)=>({key:`${e.role}-${t}`,turn:e})).map(b),o[0]=a,o[1]=r,o[2]=l;else r=o[1],l=o[2];return o[3]!==r||o[4]!==l?(i=(0,t.jsx)("ol",{className:r,children:l}),o[3]=r,o[4]=l,o[5]=i):i=o[5],i}function b(e){let{key:n,turn:r}=e;return(0,t.jsx)(x,{turn:r},n)}function x(e){let l,i,o,a,c,s,u=(0,n.c)(20),{turn:d}=e;if("gap"===d.role){let e;return u[0]!==d.text?(e=(0,t.jsxs)("li",{className:"py-1 text-center text-xs italic text-muted-foreground",children:["… ",d.text," …"]}),u[0]=d.text,u[1]=e):e=u[1],e}u[2]!==d.role?(l=(0,t.jsx)("span",{className:"font-mono text-2xs uppercase tracking-widest text-muted-foreground",children:d.role}),u[2]=d.role,u[3]=l):l=u[3];let m="agent"===d.role&&"bg-chart-1/10",h="user"===d.role&&"bg-muted",f="tool"===d.role&&"bg-muted/50";return u[4]!==m||u[5]!==h||u[6]!==f?(i=(0,r.cn)("flex flex-col gap-1.5 rounded-md px-3 py-2",m,h,f),u[4]=m,u[5]=h,u[6]=f,u[7]=i):i=u[7],u[8]!==d.role||u[9]!==d.text?(o=void 0!==d.text&&(0,t.jsx)("p",{className:(0,r.cn)("whitespace-pre-wrap","tool"===d.role&&"font-mono break-all"),children:d.text}),u[8]=d.role,u[9]=d.text,u[10]=o):o=u[10],u[11]!==d.toolCalls?(a=d.toolCalls?.map(w),u[11]=d.toolCalls,u[12]=a):a=u[12],u[13]!==i||u[14]!==o||u[15]!==a?(c=(0,t.jsxs)("div",{className:i,children:[o,a]}),u[13]=i,u[14]=o,u[15]=a,u[16]=c):c=u[16],u[17]!==l||u[18]!==c?(s=(0,t.jsxs)("li",{className:"flex flex-col gap-1 text-xs",children:[l,c]}),u[17]=l,u[18]=c,u[19]=s):s=u[19],s}function w(e){return(0,t.jsxs)("p",{className:"font-mono break-all text-muted-foreground",children:["→ ",e.name,"(",e.args,")"]},`${e.name}-${e.args}`)}e.s(["Tau2RolloutExamples",0,function(e){let r,l,i,o,a=(0,n.c)(10),{examples:d}=e,m=d[0],h=m?.id;return a[0]!==d?(r=d.map(u),a[0]=d,a[1]=r):r=a[1],a[2]!==r?(l=(0,t.jsx)(c.TabsList,{className:"w-full justify-start overflow-x-auto",children:r}),a[2]=r,a[3]=l):l=a[3],a[4]!==d?(i=d.map(s),a[4]=d,a[5]=i):i=a[5],a[6]!==h||a[7]!==l||a[8]!==i?(o=(0,t.jsxs)(c.Tabs,{defaultValue:h,variant:"secondary",children:[l,i]}),a[6]=h,a[7]=l,a[8]=i,a[9]=o):o=a[9],o}])},315461,e=>{"use strict";var t=e.i(222666),n=e.i(505962),r=e.i(820540),l=e.i(579852),i=e.i(460546),o=e.i(155325),a=e.i(524275),c=e.i(306390),s=e.i(351435),u=e.i(55658),d=e.i(210041),m=e.i(132736),h=e.i(983330);let f=[{id:"comparison",label:"Model comparison",icon:l.BarChart3},{id:"cost-efficiency",label:"Cost efficiency",icon:u.TrendingUp},{id:"tool-calls",label:"Tool-call reliability",icon:m.Wrench},{id:"leaderboard",label:"Leaderboard",icon:d.Trophy}],p=[{id:"why-we-run-it",label:"Why we run it",icon:s.Target},{id:"score-limits",label:"What scores tell you",icon:r.AlertTriangle},{id:"scoring",label:"How tasks are scored",icon:c.ListChecks},{id:"methodology",label:"Methodology",icon:o.FlaskConical},{id:"api-access",label:"API access",icon:i.Code2},{id:"faq",label:"FAQ",icon:a.HelpCircle}];e.s(["Tau2SectionNav",0,function(e){let r,l=(0,n.c)(3),{hasData:i,children:o}=e;return l[0]!==o||l[1]!==i?(r=(0,t.jsx)(h.BenchmarkSectionNav,{dataSections:f,staticSections:p,hasData:i,children:o}),l[0]=o,l[1]=i,l[2]=r):r=l[2],r}],315461)},397778,e=>{"use strict";var t=e.i(222666),n=e.i(505962),r=e.i(956506),l=e.i(20629),i=e.i(779100),o=e.i(370066),a=e.i(61291);e.i(270401);var c=e.i(307425),s=e.i(5353),u=e.i(4696),d=e.i(179019),m=e.i(537457),h=e.i(487154),f=e.i(429088),p=e.i(287172),g=e.i(460867);let v=[{key:"unknownNamePercent",label:"Unknown tool name"},{key:"schemaMismatchPercent",label:"Schema mismatch"},{key:"invalidJsonPercent",label:"Invalid JSON"}];function b(e){return e.label}function x(e){let r,l,i,o=(0,n.c)(10),{payload:a,x:c,y:s}=e,u=a?.value;if(void 0===u||void 0===c||void 0===s)return null;o[0]!==u?(r=u.length>18?`${u.slice(0,17).trimEnd()}\u2026`:u,o[0]=u,o[1]=r):r=o[1];let d=r,m=`rotate(-45 ${c} ${s})`;o[2]!==m||o[3]!==d||o[4]!==c||o[5]!==s?(l=(0,t.jsx)("text",{fill:"hsl(var(--muted-foreground))",fontSize:9,textAnchor:"end",transform:m,x:c,y:s,children:d}),o[2]=m,o[3]=d,o[4]=c,o[5]=s,o[6]=l):l=o[6];let h=l,f=a?.payload?.modelSlug;return o[7]!==f||o[8]!==h?(i=f?(0,t.jsx)("a",{href:`/${f}`,children:h}):h,o[7]=f,o[8]=h,o[9]=i):i=o[9],i}function w(e){return Math.max(e.unknownNamePercent,e.schemaMismatchPercent,e.invalidJsonPercent)}function y(e){let r,l,c,s,u,d,m,h,f,p=(0,n.c)(26),{active:v,payload:b}=e,x=(0,i.useLocale)(),w=b?.[0]?.payload;return v&&w?(p[0]!==w.unknownNamePercent||p[1]!==x?(r=(0,a.formatPercentPoints)(w.unknownNamePercent,{locale:x,preset:"native-fixed-2"})??"—",p[0]=w.unknownNamePercent,p[1]=x,p[2]=r):r=p[2],p[3]!==r?(l=(0,t.jsxs)("span",{children:["Unknown tool name:"," ",r]}),p[3]=r,p[4]=l):l=p[4],p[5]!==w.schemaMismatchPercent||p[6]!==x?(c=(0,a.formatPercentPoints)(w.schemaMismatchPercent,{locale:x,preset:"native-fixed-2"})??"—",p[5]=w.schemaMismatchPercent,p[6]=x,p[7]=c):c=p[7],p[8]!==c?(s=(0,t.jsxs)("span",{children:["Schema mismatch:"," ",c]}),p[8]=c,p[9]=s):s=p[9],p[10]!==w.invalidJsonPercent||p[11]!==x?(u=(0,a.formatPercentPoints)(w.invalidJsonPercent,{locale:x,preset:"native-fixed-2"})??"—",p[10]=w.invalidJsonPercent,p[11]=x,p[12]=u):u=p[12],p[13]!==u?(d=(0,t.jsxs)("span",{children:["Invalid JSON:"," ",u]}),p[13]=u,p[14]=d):d=p[14],p[15]!==w.toolCallRequests||p[16]!==x?(m=(0,o.formatNumber)(w.toolCallRequests,{locale:x,preset:"integer"})??"—",p[15]=w.toolCallRequests,p[16]=x,p[17]=m):m=p[17],p[18]!==m?(h=(0,t.jsxs)("span",{children:[m," ","tool-calling requests"]}),p[18]=m,p[19]=h):h=p[19],p[20]!==w.label||p[21]!==l||p[22]!==s||p[23]!==d||p[24]!==h?(f=(0,t.jsxs)(g.BenchmarkChartTooltip,{bodyClassName:"flex flex-col gap-0.5",label:w.label,children:[l,s,d,h]}),p[20]=w.label,p[21]=l,p[22]=s,p[23]=d,p[24]=h,p[25]=f):f=p[25],f):null}function j(e,t){return(0,a.formatPercentPoints)(e,{locale:t,preset:"native-fixed-1"})??"—"}e.s(["Tau2ToolCallChart",0,function(e){var o;let a,g,S,P,N,k,C,E,T,O,_,L,M,A,R=(0,n.c)(18),{models:H,stats:z}=e,q=(0,i.useLocale)();R[0]!==H||R[1]!==z?(o=H,a=new Map(z.map(e=>[e.model_permaslug,e])),g=o.flatMap(e=>{let t=a.get(e.modelPermaslug);if(void 0===t||0===t.requests_with_tool_calls)return[];let n=t.requests_with_tool_calls;return[{id:e.modelPermaslug,invalidJsonPercent:t.requests_with_tool_call_invalid_json/n*100,label:e.modelName,modelSlug:e.modelSlug,schemaMismatchPercent:t.requests_with_tool_call_schema_mismatch/n*100,toolCallRequests:n,unknownNamePercent:t.requests_with_tool_call_unknown_name/n*100}]}).toSorted((e,t)=>w(t)-w(e)).slice(0,20),R[0]=H,R[1]=z,R[2]=g):g=R[2];let I=g;R[3]===Symbol.for("react.memo_cache_sentinel")?(S=(0,l.createStableColorMapping)(v.map(b)),R[3]=S):S=R[3];let D=S;return 0===I.length?null:(R[4]===Symbol.for("react.memo_cache_sentinel")?(P=(0,t.jsx)(r.CardTitle,{children:"Tool-call errors"}),N=(0,t.jsx)(r.CardDescription,{className:"mt-1",children:"Share of this benchmark's own requests where the model called a tool that doesn't exist, passed arguments that don't match the tool's schema, or emitted arguments that aren't valid JSON."}),R[4]=P,R[5]=N):(P=R[4],N=R[5]),R[6]===Symbol.for("react.memo_cache_sentinel")?(k={bottom:48,left:0,right:8,top:8},C=(0,t.jsx)(u.CartesianGrid,{stroke:"hsl(var(--border))",strokeDasharray:"2 4",vertical:!1}),R[6]=k,R[7]=C):(k=R[6],C=R[7]),R[8]===Symbol.for("react.memo_cache_sentinel")?(E=(0,t.jsx)(f.XAxis,{angle:-45,dataKey:"label",height:56,interval:0,stroke:"hsl(var(--muted-foreground))",textAnchor:"end",tick:(0,t.jsx)(x,{})}),R[8]=E):E=R[8],R[9]===Symbol.for("react.memo_cache_sentinel")?(T={fontSize:11},R[9]=T):T=R[9],R[10]!==q?(O=(0,t.jsx)(p.YAxis,{stroke:"hsl(var(--muted-foreground))",tick:T,tickFormatter:e=>j(e,q),width:56}),R[10]=q,R[11]=O):O=R[11],R[12]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsx)(h.Tooltip,{content:(0,t.jsx)(y,{}),cursor:{fill:"hsl(var(--muted))"}}),R[12]=_):_=R[12],R[13]===Symbol.for("react.memo_cache_sentinel")?(L=(0,t.jsx)(d.Legend,{iconSize:8,verticalAlign:"top",wrapperStyle:{fontSize:11,paddingBottom:8}}),M=v.map(e=>(0,t.jsx)(c.Bar,{dataKey:e.key,fill:D.get(e.label)??"hsl(var(--muted-foreground))",isAnimationActive:!1,name:e.label},e.key)),R[13]=L,R[14]=M):(L=R[13],M=R[14]),R[15]!==I||R[16]!==O?(A=(0,t.jsxs)(r.Card,{className:"p-4",children:[P,N,(0,t.jsx)("div",{className:"mt-4 h-[30rem]",children:(0,t.jsx)(m.ResponsiveContainer,{height:"100%",width:"100%",children:(0,t.jsxs)(s.BarChart,{data:I,margin:k,children:[C,E,O,_,L,M]})})})]}),R[15]=I,R[16]=O,R[17]=A):A=R[17],A)},"ToolCallTooltip",0,y,"formatToolCallTick",0,j])},378039,e=>{"use strict";var t=e.i(222666),n=e.i(505962),r=e.i(665155),l=e.i(270401);e.s(["FAQAccordion",0,function(e){let i,o,a,c=(0,n.c)(13),{items:s,onItemExpand:u}=e,[d,m]=(0,l.useState)(null);c[0]!==s||c[1]!==u||c[2]!==d?(i=e=>{let t=d!==e;if(m(t?e:null),t){let t=s[e];t&&u?.(t)}},c[0]=s,c[1]=u,c[2]=d,c[3]=i):i=c[3];let h=i;if(c[4]!==s||c[5]!==d||c[6]!==h){let e;c[8]!==d||c[9]!==h?(e=(e,n)=>(0,t.jsxs)("div",{className:"border-b border-border last:border-0",children:[(0,t.jsxs)("button",{type:"button",className:"flex w-full items-center justify-between py-4 text-left transition-colors hover:text-foreground focus-visible:border-focus-border focus-visible:shadow-focus focus-visible:outline-none",onClick:()=>h(n),"aria-expanded":d===n,children:[(0,t.jsx)("span",{className:"text-base font-medium",children:e.question}),(0,t.jsx)(r.ChevronDownIcon,{className:`ml-4 size-4 shrink-0 text-muted-foreground transition-transform duration-200 ${d===n?"rotate-180":""}`,"aria-hidden":"true"})]}),(0,t.jsx)("div",{className:`grid transition-all duration-200 ease-in-out ${d===n?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"}`,children:(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsx)("div",{className:"pb-4 text-body text-muted-foreground leading-relaxed",children:e.answer})})})]},e.question),c[8]=d,c[9]=h,c[10]=e):e=c[10],o=s.map(e),c[4]=s,c[5]=d,c[6]=h,c[7]=o}else o=c[7];return c[11]!==o?(a=(0,t.jsx)("div",{children:o}),c[11]=o,c[12]=a):a=c[12],a}])}]); //# sourceMappingURL=1zveu1-ojxs1g.js.map //# chunkId=01a08fa9-62fb-78d1-9dea-321af6cb46c5