import{shallowRef as e,watch as t}from"vue";function n(n,r,i){let a=e({});t([n,r,i],()=>{let e=new Map,t=i.value,o=r.value;function s(n){n.forEach((n,r)=>{let i=t(n,r);e.set(i,n),n&&typeof n==`object`&&o in n&&s(n[o]||[])})}s(n.value),a.value={kvMap:e}},{deep:!0,immediate:!0});function o(e){return a.value.kvMap.get(e)}return[o]}export{n as default};