import{n as e}from"./chunk-B3K2TuZy.js";import{h as t,s as n,t as r}from"./chunk-VBDAOXYI-LNemVAg_.js";import{t as i}from"./__vite-browser-external-BoCRxrQD.js";var a=e(i(),1);t();var o=class extends n{constructor(e){super(e),this.rootDir=a.resolve(e),a.existsSync(a.join(this.rootDir))||a.mkdirSync(this.rootDir)}async init(e,t){return this.pg=e,{emscriptenOpts:{...t,preRun:[...t.preRun||[],e=>{let t=e.FS.filesystems.NODEFS;e.FS.mkdir(r),e.FS.mount(t,{root:this.rootDir},r)}]}}}async closeFs(){this.pg.Module.FS.quit()}};export{o as NodeFS};
//# sourceMappingURL=nodefs-CPU43X7R.js.map