import{__exports as e}from"../../../../_virtual/stream.mjs";import r from"../../../../_virtual/_node_stream.mjs";import{__require as t}from"../readers/stream.mjs";import{__require as s}from"./provider.mjs";var a;function o(){if(a)return e;a=1,Object.defineProperty(e,"__esModule",{value:!0});const o=r,i=t(),n=s();class d extends n.default{constructor(){super(...arguments),this._reader=new i.default(this._settings)}read(e){const r=this._getRootDirectory(e),t=this._getReaderOptions(e),s=this.api(r,e,t),a=new o.Readable({objectMode:!0,read:()=>{}});return s.once("error",e=>a.emit("error",e)).on("data",e=>a.emit("data",t.transform(e))).once("end",()=>a.emit("end")),a.once("close",()=>s.destroy()),a}api(e,r,t){return r.dynamic?this._reader.dynamic(e,t):this._reader.static(r.patterns,t)}}return e.default=d,e}export{o as __require};