import{s as u}from"./chunk-DZLz74EQ.js";import{t as f}from"./react-BcIddLXZ.js";var e=u(f()),a=typeof window<"u"?e.useInsertionEffect||e.useLayoutEffect:()=>{};function o(r){let n=e.useRef(c);a(()=>{n.current=r},[r]);let t=e.useRef(null);return t.current||(t.current=function(){return n.current.apply(this,arguments)}),t.current}function c(){throw Error("INVALID_USEEVENT_INVOCATION: the callback from useEvent cannot be invoked before the component has mounted.")}var s=o;export{s as n,o as t};
