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