import{o as e}from"./rolldown-runtime.C0FnF6B9.js";import{r as t}from"./emotion-is-prop-valid.esm.CuYlOKOk.js";import{ct as n,y as r}from"./Tooltip.CcubhKj6.js";var i=e(t(),1),a={border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`};function o(e={}){let{style:t,isFocusable:n}=e,[o,s]=(0,i.useState)(!1),{focusWithinProps:c}=r({isDisabled:!n,onFocusWithinChange:e=>s(e)}),l=(0,i.useMemo)(()=>o?t:t?{...a,...t}:a,[o]);return{visuallyHiddenProps:{...c,style:l}}}function s(e){let{children:t,elementType:r=`div`,isFocusable:a,style:s,...c}=e,{visuallyHiddenProps:l}=o(e);return i.createElement(r,n(c,l),t)}export{o as n,s as t};