import{r as s,ab as a,ac as o}from"./index-n-59FgrC.js";const r=e=>{s.useEffect(()=>(window.addEventListener("beforeunload",e),()=>{e(),window.removeEventListener("beforeunload",e)}),[e])},n=()=>{const e=a();r(()=>{e(o())})};export{n as u};
