import e from"../../../_util/raf.mjs";import{onMounted as t,reactive as n,ref as r}from"vue";function i(i){let a=r(null),o=n({...i}),s=r([]);return t(()=>{a.value&&e.cancel(a.value)}),[o,t=>{a.value===null&&(s.value=[],a.value=e(()=>{let e;s.value.forEach(t=>{e={...e,...t}}),Object.assign(o,e),a.value=null})),s.value.push(t)}]}export{i as default};