import{__exports as t}from"../../../../_virtual/stream2.mjs";import e from"../../../../_virtual/_node_stream.mjs";import{__require as r}from"../../../@nodelib/fs.stat/out/index.mjs";import{__require as s}from"../../../@nodelib/fs.walk/out/index.mjs";import{__require as a}from"./reader.mjs";var i;function n(){if(i)return t;i=1,Object.defineProperty(t,"__esModule",{value:!0});const n=e,o=r(),u=s(),_=a();class l extends _.default{constructor(){super(...arguments),this._walkStream=u.walkStream,this._stat=o.stat}dynamic(t,e){return this._walkStream(t,e)}static(t,e){const r=t.map(this._getFullEntryPath,this),s=new n.PassThrough({objectMode:!0});s._write=(a,i,n)=>this._getEntry(r[a],t[a],e).then(t=>{null!==t&&e.entryFilter(t)&&s.push(t),a===r.length-1&&s.end(),n()}).catch(n);for(let t=0;t<r.length;t++)s.write(t);return s}_getEntry(t,e,r){return this._getStat(t).then(t=>this._makeEntry(t,e)).catch(t=>{if(r.errorFilter(t))return null;throw t})}_getStat(t){return new Promise((e,r)=>{this._stat(t,this._fsStatSettings,(t,s)=>null===t?e(s):r(t))})}}return t.default=l,t}export{n as __require};