import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";function r(e){let t=(0,i.useRef)(e);return(0,i.useEffect)(()=>{t.current=e},[e]),(0,i.useCallback)(((...e)=>t.current?.(...e)),[])}var i,a=t((()=>{i=e(n(),1)}));export{r as n,a as t};