"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function f(s,t,e){function r(c){const i=c[t.key],n=c[t.children];e(i,c)!==!1&&f(n||[],t,e)}s.forEach(r)}function l({treeData:s,expandedKeys:t,startKey:e,endKey:r,fieldNames:c={title:"title",key:"key",children:"children"}}){const i=[];let n=0;if(e&&e===r)return[e];if(!e||!r)return[];function u(o){return o===e||o===r}return f(s,c,o=>{if(n===2)return!1;if(u(o)){if(i.push(o),n===0)n=1;else if(n===1)return n=2,!1}else n===1&&i.push(o);return t.includes(o)}),i}function h(s,t,e){const r=[...t],c=[];return f(s,e,(i,n)=>{const u=r.indexOf(i);return u!==-1&&(c.push(n),r.splice(u,1)),!!r.length}),c}exports.calcRangeKeys=l;exports.convertDirectoryKeysToNodes=h;
