function o(t=[],n=[]){const d=t.length,s=n.length;if(Math.abs(d-s)!==1)return{add:!1,key:null};function r(a,e){const c=new Map;a.forEach(f=>{c.set(f,!0)});const i=e.filter(f=>!c.has(f));return i.length===1?i[0]:null}return d<s?{add:!0,key:r(t,n)}:{add:!1,key:r(n,t)}}function u(t,n,d){const s=t.findIndex(e=>e.key===d),r=t[s+1],a=n.findIndex(e=>e.key===d);if(r){const e=n.findIndex(c=>c.key===r.key);return n.slice(a+1,e)}return n.slice(a+1)}export{o as findExpandedKeys,u as getExpandRange};
