System.register([],(function(e,r){"use strict";return{execute:function(){e("t",(e=>(e.forEach((r=>{r.children=e.filter((e=>e.parentId===r.id&&(e.root=!1,!0))),r.children.length<=0&&(r.leaf=!0)})),e.filter((e=>!1!==e.root)))));const r=(e,d,i)=>{d.forEach((d=>{const n={...d,depth:i};e.push(n),n.children&&(r(e,n.children,i+1),n.children=void 0)}))},d=(e("f",(e=>{const d=new Array;return r(d,e,0),d})),e("b",((e,r)=>{for(let i=0,n=e.length;i<n;i+=1){let n;if(e[i].children&&(n=d(e[i].children,r),n))return n;if(n=e.find(r),n)return n}}))),i=(e,r,d)=>(e.forEach((e=>{(d||e.id===r)&&(e.disabled=!0),i(e.children,r,e.disabled)})),e),n=(e("d",((e,r)=>r?i(e,r,!1):e)),(e,r)=>(e.forEach((e=>{r.includes(e.id)||(e.disabled=!0),n(e.children,r)})),e)),l=(e("a",((e,r)=>r?n(e,r):e)),e("c",((e,r)=>{let d=!0;return e.forEach((e=>{e.children&&e.children.length>0||r.includes(e.key)||r.includes("*")?d=!1:e.disabled=!0,e.children&&(e.disabled=l(e.children,r))})),d})))}}}));
