import{b as v}from"./Button.BVfR1y85.js";const b=(s,i,t)=>{let e;if(v){const{ResizeObserver:o}=window;if(s&&o){const n=new o(r=>{t?window.requestAnimationFrame(()=>{Array.isArray(r)&&r.length>0}):Array.isArray(r)&&r.length>0&&i()});n.observe(s),e=()=>n.unobserve(s)}else window.addEventListener("resize",i),e=()=>window.removeEventListener("resize",i)}return()=>{e&&e()}};export{b as g};
