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]=`c2914ed7-7ffe-4086-9b0b-9f19968492d7`,e._sentryDebugIdIdentifier=`sentry-dbid-c2914ed7-7ffe-4086-9b0b-9f19968492d7`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,I as n,Q as r,jg as i,ng as a,or as o,pi as s,xm as c}from"./entry.client-mpghtlrl.js";var l=e(i(),1),u=(0,l.createContext)(void 0);u.displayName=`ShellUIContext`;var d=()=>{let e=(0,l.useContext)(u);if(!e)throw Error(`This context can only be used by components inside <ShellUIProvider>...</ShellUIProvider>`);return e},f=t(),p=e(s(),1),m=a(),h=`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 0C14.8637 0 17.4918 1.00471 19.5547 2.67871C17.3441 5.15417 16 8.42001 16 12C16 15.5797 17.3444 18.8449 19.5547 21.3203C17.4917 22.9945 14.8639 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0Z" fill="white"/></svg>`,g=`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 0C9.13628 0 6.50817 1.00471 4.44531 2.67871C6.6559 5.15417 8 8.42001 8 12C8 15.5797 6.65558 18.8449 4.44531 21.3203C6.50833 22.9945 9.13606 24 12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0Z" fill="white"/></svg>`,_=e=>{let t=(0,f.c)(17),i,a,s,c,l,u;t[0]===e?(i=t[1],a=t[2],s=t[3],c=t[4],l=t[5],u=t[6]):({xuids:s,maxVisible:i,gamerpicImageConstraints:c,className:l,stackOrder:a,...u}=e,t[0]=e,t[1]=i,t[2]=a,t[3]=s,t[4]=c,t[5]=l,t[6]=u);let d=i===void 0?6:i,_=a===void 0?`back-to-front`:a,v=o()===`rtl`,y=s.slice(0,d),b=Math.max(0,s.length-d),x=r(c),S=_===`back-to-front`&&v||_===`front-to-back`&&!v?g:h,C;t[7]===l?C=t[8]:(C=(0,p.default)(`flex`,l),t[7]=l,t[8]=C);let w=y.map((e,t)=>{let r=t===y.length-1&&b===0,i=t===0,a=_===`back-to-front`?t+1:y.length-t;return(0,m.jsx)(n,{xuid:e,kind:`visual`,gamerpicImageConstraints:c,className:(0,p.default)(!i&&`-ms-[calc(var(--width)/6+1px)]`),style:{zIndex:a,position:`relative`,...(_===`back-to-front`&&!r||_===`front-to-back`&&!i)&&{maskImage:`url("data:image/svg+xml,${encodeURIComponent(S)}")`,maskSize:`100% 100%`,maskRepeat:`no-repeat`}}},e)}),T;t[9]!==b||t[10]!==x?(T=b>0&&(0,m.jsxs)(`div`,{className:(0,p.default)(x.className,`-ms-[calc(var(--width)/6+1px)] flex items-center justify-center`,`rounded-pill bg-item-sub-container-background-container-rest text-noninteractive-content-secondary-content type-caption`),style:x.style,children:[`+`,b]}),t[9]=b,t[10]=x,t[11]=T):T=t[11];let E;return t[12]!==C||t[13]!==u||t[14]!==w||t[15]!==T?(E=(0,m.jsxs)(`div`,{className:C,...u,children:[w,T]}),t[12]=C,t[13]=u,t[14]=w,t[15]=T,t[16]=E):E=t[16],E};function v(e){return t=>{try{let n=t.context.get(c);n&&e({...t,context:n})}catch{}return null}}export{d as i,_ as n,u as r,v as t};