import{onBeforeUnmount as n}from"vue";function r(u=250){let o=null,t;n(()=>{clearTimeout(t)});function l(e){(e||o===null)&&(o=e),clearTimeout(t),t=setTimeout(()=>{o=null},u)}return[()=>o,l]}export{r as default};
