try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`c272232f-1c61-41e0-94c7-fffc1534b3f4`,e._sentryDebugIdIdentifier=`sentry-dbid-c272232f-1c61-41e0-94c7-fffc1534b3f4`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,hi as n,ln as r,mi as i,ng as a,pi as o}from"./entry.client-mpghtlrl.js";import{K as s}from"./xds-react-components-ihgca01z.js";import{n as c}from"./gamepad-nav-virtual-lh6mhh03.js";import{a as l}from"./guideRouterEnvironmentHooks-h2xlfina.js";var u=t(),d=a(),f=e(o(),1);function p(e){let t=l(),r=i(e),a=n(e);return t?r:a}var m=e=>{let t=(0,u.c)(12),n,r,i,a;if(t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({isScrollable:n,scrollOffsets:r,children:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a),n){let e;return t[5]!==r||t[6]!==i||t[7]!==a?(e=(0,d.jsx)(c,{scrollOffsets:r,...i,children:a}),t[5]=r,t[6]=i,t[7]=a,t[8]=e):e=t[8],e}else{let e;return t[9]!==i||t[10]!==a?(e=(0,d.jsx)(`div`,{...i,children:a}),t[9]=i,t[10]=a,t[11]=e):e=t[11],e}},h=e=>{let t=(0,u.c)(33),{id:n,header:i,children:a,footer:o,className:c,contentClassName:h,scrollContainerClassName:g,scrollOffsets:_}=e;s(`${n}-outer`),s(n);let v=l(),y;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(y={default:!0,XS_10:!1,XSL_10:!1},t[0]=y):y=t[0];let{data:b}=p(y),x=v?!1:b,S=v?!0:!b,C=`${n}-outer`,w;t[1]===c?w=t[2]:(w=(0,f.default)(`flex flex-col overflow-y-auto sbar`,`[--scrollbar-track-margin-bottom:var(--V1EI)]`,`-mt-template-overlays-guide-padding-internal-top`,`pt-template-overlays-guide-padding-internal-top`,`h-[calc(100%_+_var(--V1EG))]`,`xs-10:mt-0 xs-10:h-full xs-10:overflow-visible xs-10:pt-0`,`xsl-10:mt-0 xsl-10:h-full xsl-10:overflow-visible xsl-10:pt-0`,`[--scrollbar-track-margin-top:calc(var(--V1EI)_+_var(--V1EG))]`,c),t[1]=c,t[2]=w);let T;t[3]===i?T=t[4]:(T=i&&(0,d.jsx)(`div`,{className:`px-template-overlays-guide-padding-internal-left-&-right pt-template-overlays-guide-padding-internal-top flex flex-col gap-layout-vertical-related-content-in-a-section-tight`,children:i}),t[3]=i,t[4]=T);let E=!i&&`pt-template-overlays-guide-padding-internal-top`,D=i?`[--scrollbar-track-margin-top:0px]`:`[--scrollbar-track-margin-top:var(--V1EI)]`,O=o?`[--scrollbar-track-margin-bottom:0px]`:`[--scrollbar-track-margin-bottom:var(--V1EI)]`,k;t[5]!==E||t[6]!==D||t[7]!==O||t[8]!==g?(k=(0,f.default)(`relative flex shrink-0 flex-col`,`xs-10:min-h-0 xs-10:flex-1 xs-10:shrink`,`xsl-10:min-h-0 xsl-10:flex-1 xsl-10:shrink`,`px-template-overlays-guide-padding-internal-left-&-right`,`pb-template-overlays-guide-padding-internal-top`,E,`xs-10:pt-template-overlays-guide-padding-internal-top`,`xsl-10:pt-template-overlays-guide-padding-internal-top`,`xs-10:overflow-y-auto xs-10:sbar`,`xsl-10:overflow-y-auto xsl-10:sbar`,D,O,g),t[5]=E,t[6]=D,t[7]=O,t[8]=g,t[9]=k):k=t[9];let A;t[10]===h?A=t[11]:(A=(0,f.default)(`flex flex-col [--scrollbar-track-margin-bottom:0px] [--scrollbar-track-margin-top:0px]`,h),t[10]=h,t[11]=A);let j;t[12]===a?j=t[13]:(j=(0,d.jsx)(r,{children:a}),t[12]=a,t[13]=j);let M;t[14]!==A||t[15]!==j?(M=(0,d.jsx)(`div`,{className:A,children:j}),t[14]=A,t[15]=j,t[16]=M):M=t[16];let N;t[17]!==S||t[18]!==_||t[19]!==n||t[20]!==k||t[21]!==M?(N=(0,d.jsx)(m,{isScrollable:S,scrollOffsets:_,id:n,className:k,children:M}),t[17]=S,t[18]=_,t[19]=n,t[20]=k,t[21]=M,t[22]=N):N=t[22];let P;t[23]===o?P=t[24]:(P=o&&(0,d.jsx)(`div`,{className:`px-template-overlays-guide-padding-internal-left-&-right`,children:o}),t[23]=o,t[24]=P);let F;return t[25]!==x||t[26]!==_||t[27]!==C||t[28]!==w||t[29]!==T||t[30]!==N||t[31]!==P?(F=(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(m,{isScrollable:x,scrollOffsets:_,id:C,className:w,children:[T,N,P]})}),t[25]=x,t[26]=_,t[27]=C,t[28]=w,t[29]=T,t[30]=N,t[31]=P,t[32]=F):F=t[32],F};export{p as n,h as t};