1import{Y as R,_ as h}from"./1Kt5sLDq.js";import{i as w}from"./BxGwLCZu.js";import{H as C,a5 as x,h as H,U as M,a6 as W,B,G as U}from"./D83MwGH5.js";const y=C({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(i,v){let{slots:l}=v;const n=x({width:0,height:0,offsetHeight:0,offsetWidth:0});let c=null,s=null;const r=()=>{s&&(s.disconnect(),s=null)},b=e=>{const{onResize:t}=i,o=e[0].target,{width:p,height:O}=o.getBoundingClientRect(),{offsetWidth:d,offsetHeight:f}=o,g=Math.floor(p),m=Math.floor(O);if(n.width!==g||n.height!==m||n.offsetWidth!==d||n.offsetHeight!==f){const u={width:g,height:m,offsetWidth:d,offsetHeight:f};h(n,u),t&&Promise.resolve().then(()=>{t(h(h({},u),{offsetWidth:d,offsetHeight:f}),o)})}},z=U(),a=()=>{const{disabled:e}=i;if(e){r();return}const t=R(z);t!==c&&(r(),c=t),!s&&t&&(s=new w(b),s.observe(t))};return H(()=>{a()}),M(()=>{a()}),W(()=>{r()}),B(()=>i.disabled,()=>{a()},{flush:"post"}),()=>{var e;return(e=l.default)===null||e===void 0?void 0:e.call(l)[0]}}});export{y as R};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.