import{computed as l}from"vue";function i(r,u,n,o,c,p){const s=[];s.push({record:r,indent:u,index:p});const a=c(r),e=o?.has(a);if(r&&Array.isArray(r[n])&&e)for(let t=0;t<r[n].length;t+=1){const f=i(r[n][t],u+1,n,o,c,t);s.push(...f)}return s}function v(r,u,n,o){return l(()=>{const p=u.value,s=n.value,a=r.value;if(s?.size){const e=[];for(let t=0;t<a?.length;t+=1){const f=a[t];e.push(...i(f,0,p,s,o.value,t))}return e}return a?.map((e,t)=>({record:e,indent:0,index:t}))})}export{v as default};
