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]=`f18054cf-b1ca-401f-a2a0-cc1db4a341fd`,e._sentryDebugIdIdentifier=`sentry-dbid-f18054cf-b1ca-401f-a2a0-cc1db4a341fd`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,Cr as n,jg as r,ng as i}from"./entry.client-mpghtlrl.js";import{o as a,s as o}from"./accelerators-mediz1dj.js";var s=t(),c=e(r(),1),l=i(),u=e=>{let t=(0,s.c)(32),r,i,u,d,f,p,m,h;t[0]===e?(r=t[1],i=t[2],u=t[3],d=t[4],f=t[5],p=t[6],m=t[7],h=t[8]):({onPress:f,onPointerDown:p,onCreate:r,onFocusChange:i,asChild:u,className:m,children:d,...h}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=u,t[4]=d,t[5]=f,t[6]=p,t[7]=m,t[8]=h);let[g,_]=(0,c.useState)(!1),v,y;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(y={type:`keyboard`,key:`x`,modifiers:[]},t[9]=y):y=t[9];let b;t[10]===r?b=t[11]:(b={trigger:y,action:()=>{r?.()},sound:`invoke`,isHidden:!0},t[10]=r,t[11]=b),v=b;let x=v,S,C;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(C={type:`gamepad`,button:`x`},t[12]=C):C=t[12];let w;t[13]===r?w=t[14]:(w={trigger:C,action:()=>{r?.()},sound:`invoke`,label:`Open in New Widget`},t[13]=r,t[14]=w),S=w;let T=S,E=g&&!!r;o(x,E),a(T,E);let D;t[15]===i?D=t[16]:(D=e=>{_(e),i?.(e)},t[15]=i,t[16]=D);let O=D;if(u){let e,n;if(t[17]!==d||t[18]!==f||t[19]!==O||t[20]!==p||t[21]!==m||t[22]!==h){n=Symbol.for(`react.early_return_sentinel`);bb0:{let t=c.Children.only(d);if(!(0,c.isValidElement)(t)){n=null;break bb0}let r=t.props,i=r.onPress?e=>{f?.(e),r.onPress(e)}:f,a=r.onFocusChange?e=>{O(e),r.onFocusChange(e)}:O,o=p&&r.onPointerDown?e=>{p(e),r.onPointerDown(e)}:p??r.onPointerDown,s=[r.className,m].filter(Boolean).join(` `)||void 0;e=(0,c.cloneElement)(t,{...h,className:s,onPress:i,onPointerDown:o,onFocusChange:a})}t[17]=d,t[18]=f,t[19]=O,t[20]=p,t[21]=m,t[22]=h,t[23]=e,t[24]=n}else e=t[23],n=t[24];return n===Symbol.for(`react.early_return_sentinel`)?e:n}let k;return t[25]!==m||t[26]!==f||t[27]!==p||t[28]!==O||t[29]!==h||t[30]!==d?(k=(0,l.jsx)(n,{as:`button`,className:m,onPress:f,onPointerDown:p,onFocusChange:O,...h,children:d}),t[25]=m,t[26]=f,t[27]=p,t[28]=O,t[29]=h,t[30]=d,t[31]=k):k=t[31],k};export{u as t};