(self.webpackChunkdemo_source=self.webpackChunkdemo_source||[]).push([[168],{168:(s,e,r)=>{"use strict";r.d(e,{NodeFS:()=>c});var t=r(209),o=r(430),i=r(641),n=r(349);(0,o.j)();var c=class extends t.e{constructor(s){super(s),this.rootDir=n.resolve(s),i.existsSync(n.join(this.rootDir))||i.mkdirSync(this.rootDir)}async init(s,e){return this.pg=s,{emscriptenOpts:{...e,preRun:[...e.preRun||[],s=>{let e=s.FS.filesystems.NODEFS;s.FS.mkdir(t.d),s.FS.mount(e,{root:this.rootDir},t.d)}]}}}async closeFs(){this.pg.Module.FS.quit()}}},349:()=>{},641:()=>{}}]);