returnl==D.readyState?t.call(D):d==D.readyState?e=newb.EFILESYSTEMERROR("unknown error"):B.push(t),e},this.watch=function(t,e,n){if(a(t))throwError("Path must be a string without null bytes.");"function"==typeofe&&(n=e,e={}),e=e||{},n=n||s;varr=newy;returnr.start(t,!1,e.recursive),r.on("change",n),r},T.open(function(t){functionr(t){functionr(t){vare=T[t]();returne.flags=A,e.changes=[],e.guid=i(e),e.close=function(){vart=e.changes;u(t),t.length=0},e}D.provider={openReadWriteContext:function(){returnr("getReadWriteContext")},openReadOnlyContext:function(){returnr("getReadOnlyContext")}},D.readyState=t?d:l,n(),e(t,D)}if(t)returnr(t);varo=T.getReadWriteContext();o.guid=i(o),N?o.clear(function(t){returnt?r(t):(j.ensureRootDirectory(o,r),void0)}):j.ensureRootDirectory(o,r)})}varo=t("../../lib/nodash.js"),a=t("../path.js").isNull,s=t("../shared.js").nop,u=t("../constants.js"),c=u.FILE_SYSTEM_NAME,f=u.FS_FORMAT,l=u.FS_READY,h=u.FS_PENDING,d=u.FS_ERROR,p=u.FS_NODUPEIDCHECK,g=t("../providers/index.js"),m=t("../shell/shell.js"),v=t("../../lib/intercom.js"),y=t("../fs-watcher.js"),b=t("../errors.js"),E=t("../shared.js").guid,w=u.STDIN,O=u.STDOUT,I=u.STDERR,_=u.FIRST_DESCRIPTOR,j=t("./implementation.js");i.providers=g,["open","close","mknod","mkdir","rmdir","stat","fstat","link","unlink","read","readFile","write","writeFile","appendFile","exists","lseek","readdir","rename","readlink","symlink","lstat","truncate","ftruncate","utimes","futimes","setxattr","getxattr","fsetxattr","fgetxattr","removexattr","fremovexattr"].forEach(function(t){i.prototype[t]=function(){vare=this,r=Array.prototype.slice.call(arguments,0),i=r.length-1,o="function"!=typeofr[i],a=n(r[i]),s=e.queueOrRun(function(){functionn(){s.close(),a.apply(e,arguments)}vars=e.provider.openReadWriteContext();if(d===e.readyState){varu=newb.EFILESYSTEMERROR("filesystem unavailable, operation canceled");returna.call(e,u)}o?r.push(n):r[i]=n;varc=[e,s].concat(r);j[t].apply(null,c)});s&&a(s)}}),e.exports=i},{"../../lib/intercom.js":3,"../../lib/nodash.js":4,"../constants.js":15,"../errors.js":18,"../fs-watcher.js":21,"../path.js":25,"../providers/index.js":26,"../shared.js":30,"../shell/shell.js":32,"./implementation.js":19}],21:[function(t,e){functionn(){functiont(t){(n===t||s&&0===t.indexOf(e))&&a.trigger("change","change",t)}r.call(this);vare,n,a=this,s=!1;a.start=function(r,a,u){if(!n){if(i.isNull(r))throwError("Path must be a string without null bytes.");n=i.normalize(r),s=u===!0,s&&(e="/"===n?"/":n+"/");varc=o.getInstance();c.on("change",t)}},a.close=function(){vare=o.getInstance();e.off("change",t),a.removeAllListeners("change")}}varr=t("../lib/eventemitter.js"),i=t("./path.js"),o=t("../lib/intercom.js");n.prototype=newr,n.prototype.constructor=n,e.exports=n},{"../lib/eventemitter.js":2,"../lib/intercom.js":3,"./path.js":25}],22:[function(t,e){e.exports={FileSystem:t("./filesystem/interface.js"),Buffer:t("./buffer.js"),Path:t("./path.js"),Errors:t("./errors.js"),Shell:t("./shell/shell.js")}},{"./buffer.js":14,"./errors.js":18,"./filesystem/interface.js":20,"./path.js":25,"./shell/shell.js":32}],23:[function(t,e){functionn(t){vare=Date.now();this.id=t.id,this.mode=t.mode||i,this.size=t.size||0,this.atime=t.atime||e,this.ctime=t.ctime||e,this.mtime=t.mtime||e,this.flags=t.flags||[],this.xattrs=t.xattrs||{},this.nlinks=t.nlinks||0,this.version=t.version||0,this.blksize=void0,this.nblocks=1,this.data=t.data}functionr(t,e,n){t[e]?n(null):t.guid(function(r,i){t[e]=i,n(r)})}vari=t("./constants.js").MODE_FILE;n.create=function(t,e){r(t,"id",function(i){returni?(e(i),void0):(r(t,"data",function(r){returnr?(e(r),void0):(e(null,newn(t)),void0)}),void0)})},e.exports=n},{"./constants.js":15}],24:[function(t,e){functionn(t,e,n,r){this.path=t,this.id=e,this.flags=n,this.position=r}varr=t("./errors.js");n.prototype.getNode=function(t,e){functionn(t,n){returnt?e(t):n?(e(null,n),void0):e(newr.EBADF("file descriptor refers to unknown node",o))}vari=this.id,o=this.path;t.getObject(i,n)},e.exports=n},{"./errors.js":18}],25:[function(t,e,n){f