import {J,c as tS,fX as XT}from'./main-WUGO6e7n.js';function h(r,c,o="id"){if(c!==null){let p=new Map(c.map(a=>[a[o],a]));r=r.filter(a=>p.has(a[o])),p.forEach(a=>{r.some(e=>e[o]===a[o])||r.push(a);});}return r}function n(r){return r==null?[]:Array.isArray(r)?r:[r]}var u=J(()=>{});var y,i=J(()=>{u();tS();y=(()=>{class r{transform(o){return n(o)}static{this.\u0275fac=function(p){return new(p||r)};}static{this.\u0275pipe=XT({name:"toArray",type:r,pure:!0});}}return r})();});export{h,i,n,u,y};