import{ref as r,shallowRef as v,watchEffect as u}from"vue";function p(f){const o=r(0),s=v();return u(()=>{const t=new Map;let l=0;const n=f.value||{};for(const c in n)if(Object.prototype.hasOwnProperty.call(n,c)){const i=n[c],{level:a}=i;let e=t.get(a);e||(e=new Set,t.set(a,e)),e.add(i),l=Math.max(l,a)}o.value=l,s.value=t}),{maxLevel:o,levelEntities:s}}export{p as default};
