"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("tslib"),e=function(r,n){if(!r)return null;if(r.id===n)return r;if(r.children)for(var i=0,t=r.children;i<t.length;i++){var d=t[i],u=e(d,n);if(u)return u}return null},n=function(e,i,t){if(void 0===t&&(t=[]),!e)return null;var d=r.__spreadArray(r.__spreadArray([],t,!0),[e.id],!1);if(e.id===i)return d;if(e.children)for(var u=0,l=e.children;u<l.length;u++){var f=l[u],a=n(f,i,d);if(a)return a}return null};exports.findNodeById=e,exports.findNodePathById=n;
//# sourceMappingURL=treeUtils.js.map
