const t=t=>{const n=t.offsetHeight;isNaN(n)||(t.dataset.vegaReflow=n.toString())};function n(t,n,e){let o=0;const s=()=>{n.removeEventListener("transitionend",s),e&&clearTimeout(o),t()};n.addEventListener("transitionend",s),o=e?setTimeout(s,e):0}export{n as e,t as r}