import{aT as t,fh as d,w as h}from"./app-BgLa5dit.js";const u=e=>Array(Array.isArray(e)?e.length:0).fill(!1);function y(e,A,c=!0){const[a,s]=t.useState(u(e));t.useEffect(()=>{s(u(e))},[...A]),t.useEffect(()=>{if(!c)return;const f=[];return e&&e.forEach((r,n)=>{const o=l=>{l!==a[n]&&s(h.cloneAndReplaceAtIdx(a,n,l))};f.push(d.fetch(r,o))}),()=>f.forEach(r=>r())},[a,c])}export{y as u};
//# sourceMappingURL=D8tPNSYf.chunk.js.map
