import{__exports as t}from"../../../../_virtual/provider.mjs";import e from"../../../../_virtual/_node_path.mjs";import{__require as s}from"./filters/deep.mjs";import{__require as r}from"./filters/entry.mjs";import{__require as i}from"./filters/error.mjs";import{__require as o}from"./transformers/entry.mjs";var n;function a(){if(n)return t;n=1,Object.defineProperty(t,"__esModule",{value:!0});const a=e,_=s(),h=r(),l=i(),c=o();return t.default=class{constructor(t){this._settings=t,this.errorFilter=new l.default(this._settings),this.entryFilter=new h.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new _.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new c.default(this._settings)}_getRootDirectory(t){return a.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){const e="."===t.base?"":t.base;return{basePath:e,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}},t}export{a as __require};