const e=require("../../_util/raf.js");let t=require("vue");function n(n,r,i,a){let o=new Map,s=new Map,c=(0,t.ref)(Symbol(`update`));(0,t.watch)(n,()=>{c.value=Symbol(`update`)});let l;function u(){e.default.cancel(l)}function d(){u(),l=e.default(()=>{o.forEach((e,t)=>{if(e&&e.offsetParent){let{offsetHeight:n}=e;s.get(t)!==n&&(c.value=Symbol(`update`),s.set(t,e.offsetHeight))}})})}function f(e,t){let n=r(e),s=o.get(n);t?(o.set(n,t.$el||t),d()):o.delete(n),!s!=!t&&(t?i?.(e):a?.(e))}return(0,t.onUnmounted)(()=>{u()}),[f,d,s,c]}exports.default=n;