parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c1?n-1:0),f=1;f1)for(var n=1;n=0;n--){var o=r[n];"."===o?r.splice(n,1):".."===o?(r.splice(n,1),e++):e&&(r.splice(n,1),e--)}if(t)for(;e--;e)r.unshift("..");return r}function e(r){"string"!=typeof r&&(r+="");var t,e=0,n=-1,o=!0;for(t=r.length-1;t>=0;--t)if(47===r.charCodeAt(t)){if(!o){e=t+1;break}}else-1===n&&(o=!1,n=t+1);return-1===n?"":r.slice(e,n)}function n(r,t){if(r.filter)return r.filter(t);for(var e=[],n=0;n=-1&&!o;s--){var i=s>=0?arguments[s]:r.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(e=i+"/"+e,o="/"===i.charAt(0))}return(o?"/":"")+(e=t(n(e.split("/"),function(r){return!!r}),!o).join("/"))||"."},exports.normalize=function(r){var e=exports.isAbsolute(r),s="/"===o(r,-1);return(r=t(n(r.split("/"),function(r){return!!r}),!e).join("/"))||e||(r="."),r&&s&&(r+="/"),(e?"/":"")+r},exports.isAbsolute=function(r){return"/"===r.charAt(0)},exports.join=function(){var r=Array.prototype.slice.call(arguments,0);return exports.normalize(n(r,function(r,t){if("string"!=typeof r)throw new TypeError("Arguments to path.join must be strings");return r}).join("/"))},exports.relative=function(r,t){function e(r){for(var t=0;t=0&&""===r[e];e--);return t>e?[]:r.slice(t,e-t+1)}r=exports.resolve(r).substr(1),t=exports.resolve(t).substr(1);for(var n=e(r.split("/")),o=e(t.split("/")),s=Math.min(n.length,o.length),i=s,u=0;u=1;--s)if(47===(t=r.charCodeAt(s))){if(!o){n=s;break}}else o=!1;return-1===n?e?"/":".":e&&1===n?"/":r.slice(0,n)},exports.basename=function(r,t){var n=e(r);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},exports.extname=function(r){"string"!=typeof r&&(r+="");for(var t=-1,e=0,n=-1,o=!0,s=0,i=r.length-1;i>=0;--i){var u=r.charCodeAt(i);if(47!==u)-1===n&&(o=!1,n=i+1),46===u?-1===t?t=i:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){e=i+1;break}}return-1===t||-1===n||0===s||1===s&&t===n-1&&t===e+1?"":r.slice(t,n)};var o="b"==="ab".substr(-1)?function(r,t,e){return r.substr(t,e)}:function(r,t,e){return t<0&&(t=r.length+t),r.substr(t,e)}; },{"process":"pBGv"}],"UzoP":[function(require,module,exports) { var process = require("process"); var e=require("process");e.cwd=function(){return"/"};var r=require("path"),n=Object.create(r);n.basename=function(e,n){var i=r.basename(e,n);return""===i?"/":i},n.normalize=function(e){return"/"===(e=r.normalize(e))?e:n.removeTrailing(e)},n.isNull=function(e){return-1!==(""+e).indexOf("\0")},n.addTrailing=function(e){return e.replace(/\/*$/,"/")},n.removeTrailing=function(e){return""===(e=e.replace(/\/*$/,""))?"/":e},module.exports=n; },{"path":"UUq2","process":"pBGv"}],"iJA9":[function(require,module,exports) { var _="READ",E="WRITE",O="CREATE",R="EXCLUSIVE",I="TRUNCATE",S="APPEND",T="CREATE",N="REPLACE";module.exports={FILE_SYSTEM_NAME:"local",FILE_STORE_NAME:"files",IDB_RO:"readonly",IDB_RW:"readwrite",WSQL_VERSION:"1",WSQL_SIZE:5242880,WSQL_DESC:"FileSystem Storage",NODE_TYPE_FILE:"FILE",NODE_TYPE_DIRECTORY:"DIRECTORY",NODE_TYPE_SYMBOLIC_LINK:"SYMLINK",NODE_TYPE_META:"META",DEFAULT_DIR_PERMISSIONS:493,DEFAULT_FILE_PERMISSIONS:420,FULL_READ_WRITE_EXEC_PERMISSIONS:511,READ_WRITE_PERMISSIONS:438,SYMLOOP_MAX:10,BINARY_MIME_TYPE:"application/octet-stream",JSON_MIME_TYPE:"application/json",ROOT_DIRECTORY_NAME:"/",FS_FORMAT:"FORMAT",FS_NOCTIME:"NOCTIME",FS_NOMTIME:"NOMTIME",FS_NODUPEIDCHECK:"FS_NODUPEIDCHECK",O_READ:_,O_WRITE:E,O_CREATE:O,O_EXCLUSIVE:R,O_TRUNCATE:I,O_APPEND:S,O_FLAGS:{r:[_],"r+":[_,E],w:[E,O,I],"w+":[E,_,O,I],wx:[E,O,R,I],"wx+":[E,_,O,R,I],a:[E,O,S],"a+":[E,_,O,S],ax:[E,O,R,S],"ax+":[E,_,O,R,S]},XATTR_CREATE:T,XATTR_REPLACE:N,FS_READY:"READY",FS_PENDING:"PENDING",FS_ERROR:"ERROR",SUPER_NODE_ID:"00000000-0000-0000-0000-000000000000",STDIN:0,STDOUT:1,STDERR:2,FIRST_DESCRIPTOR:3,ENVIRONMENT:{TMP:"/tmp",PATH:""},fsConstants:{O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_DSYNC:4194304,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_COPYFILE_EXCL:1,COPYFILE_EXCL:1}}; },{}],"yh9p":[function(require,module,exports) { "use strict";exports.byteLength=u,exports.toByteArray=i,exports.fromByteArray=d;for(var r=[],t=[],e="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");return-1===e&&(e=t),[e,e===t?0:4-e%4]}function u(r){var t=h(r),e=t[0],n=t[1];return 3*(e+n)/4-n}function c(r,t,e){return 3*(t+e)/4-e}function i(r){var n,o,a=h(r),u=a[0],i=a[1],f=new e(c(r,u,i)),A=0,d=i>0?u-4:u;for(o=0;o>16&255,f[A++]=n>>8&255,f[A++]=255&n;return 2===i&&(n=t[r.charCodeAt(o)]<<2|t[r.charCodeAt(o+1)]>>4,f[A++]=255&n),1===i&&(n=t[r.charCodeAt(o)]<<10|t[r.charCodeAt(o+1)]<<4|t[r.charCodeAt(o+2)]>>2,f[A++]=n>>8&255,f[A++]=255&n),f}function f(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function A(r,t,e){for(var n,o=[],a=t;au?u:h+16383));return 1===o?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),a.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63; },{}],"JgNJ":[function(require,module,exports) { exports.read=function(a,o,t,r,h){var M,p,w=8*h-r-1,f=(1<>1,i=-7,N=t?h-1:0,n=t?-1:1,s=a[o+N];for(N+=n,M=s&(1<<-i)-1,s>>=-i,i+=w;i>0;M=256*M+a[o+N],N+=n,i-=8);for(p=M&(1<<-i)-1,M>>=-i,i+=r;i>0;p=256*p+a[o+N],N+=n,i-=8);if(0===M)M=1-e;else{if(M===f)return p?NaN:1/0*(s?-1:1);p+=Math.pow(2,r),M-=e}return(s?-1:1)*p*Math.pow(2,M-r)},exports.write=function(a,o,t,r,h,M){var p,w,f,e=8*M-h-1,i=(1<>1,n=23===h?Math.pow(2,-24)-Math.pow(2,-77):0,s=r?0:M-1,u=r?1:-1,l=o<0||0===o&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(w=isNaN(o)?1:0,p=i):(p=Math.floor(Math.log(o)/Math.LN2),o*(f=Math.pow(2,-p))<1&&(p--,f*=2),(o+=p+N>=1?n/f:n*Math.pow(2,1-N))*f>=2&&(p++,f/=2),p+N>=i?(w=0,p=i):p+N>=1?(w=(o*f-1)*Math.pow(2,h),p+=N):(w=o*Math.pow(2,N-1)*Math.pow(2,h),p=0));h>=8;a[t+s]=255&w,s+=u,w/=256,h-=8);for(p=p<0;a[t+s]=255&p,s+=u,p/=256,e-=8);a[t+s-u]|=128*l}; },{}],"REa7":[function(require,module,exports) { var r={}.toString;module.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}; },{}],"dskh":[function(require,module,exports) { var global = arguments[3]; var t=arguments[3],r=require("base64-js"),e=require("ieee754"),n=require("isarray");function i(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(r){return!1}}function o(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,r){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function d(t){return+t!=t&&(t=0),f.alloc(+t)}function v(t,r){if(f.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return $(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return K(t).length;default:if(n)return $(t).length;r=(""+r).toLowerCase(),n=!0}}function E(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,r,e);case"utf8":case"utf-8":return Y(this,r,e);case"ascii":return L(this,r,e);case"latin1":case"binary":return D(this,r,e);case"base64":return S(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function R(t,r,e,n,i){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof r&&(r=f.from(r,n)),f.isBuffer(r))return 0===r.length?-1:_(t,r,e,n,i);if("number"==typeof r)return r&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):_(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,r,e,n,i){var o,u=1,f=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;u=2,f/=2,s/=2,e/=2}function h(t,r){return 1===u?t[r]:t.readUInt16BE(r*u)}if(i){var a=-1;for(o=e;of&&(e=f-s),o=e;o>=0;o--){for(var c=!0,l=0;li&&(n=i):n=i;var o=r.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var u=0;u239?4:h>223?3:h>191?2:1;if(i+c<=e)switch(c){case 1:h<128&&(a=h);break;case 2:128==(192&(o=t[i+1]))&&(s=(31&h)<<6|63&o)>127&&(a=s);break;case 3:o=t[i+1],u=t[i+2],128==(192&o)&&128==(192&u)&&(s=(15&h)<<12|(63&o)<<6|63&u)>2047&&(s<55296||s>57343)&&(a=s);break;case 4:o=t[i+1],u=t[i+2],f=t[i+3],128==(192&o)&&128==(192&u)&&128==(192&f)&&(s=(15&h)<<18|(63&o)<<12|(63&u)<<6|63&f)>65535&&s<1114112&&(a=s)}null===a?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=c}return O(n)}exports.Buffer=f,exports.SlowBuffer=d,exports.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:i(),exports.kMaxLength=o(),f.poolSize=8192,f._augment=function(t){return t.__proto__=f.prototype,t},f.from=function(t,r,e){return s(null,t,r,e)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(t,r,e){return a(null,t,r,e)},f.allocUnsafe=function(t){return c(null,t)},f.allocUnsafeSlow=function(t){return c(null,t)},f.isBuffer=function(t){return!(null==t||!t._isBuffer)},f.compare=function(t,r){if(!f.isBuffer(t)||!f.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var e=t.length,n=r.length,i=0,o=Math.min(e,n);i0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},f.prototype.compare=function(t,r,e,n,i){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),r<0||e>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&r>=e)return 0;if(n>=i)return-1;if(r>=e)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),u=(e>>>=0)-(r>>>=0),s=Math.min(o,u),h=this.slice(n,i),a=t.slice(r,e),c=0;ci)&&(e=i),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return A(this,t,r,e);case"utf8":case"utf-8":return m(this,t,r,e);case"ascii":return P(this,t,r,e);case"latin1":case"binary":return T(this,t,r,e);case"base64":return B(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,r,e);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function O(t){var r=t.length;if(r<=I)return String.fromCharCode.apply(String,t);for(var e="",n=0;nn)&&(e=n);for(var i="",o=r;oe)throw new RangeError("Trying to access beyond buffer length")}function k(t,r,e,n,i,o){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||rt.length)throw new RangeError("Index out of range")}function N(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-e,2);i>>8*(n?i:1-i)}function z(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-e,4);i>>8*(n?i:3-i)&255}function F(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function j(t,r,n,i,o){return o||F(t,r,n,4,3.4028234663852886e38,-3.4028234663852886e38),e.write(t,r,n,i,23,4),n+4}function q(t,r,n,i,o){return o||F(t,r,n,8,1.7976931348623157e308,-1.7976931348623157e308),e.write(t,r,n,i,52,8),n+8}f.prototype.slice=function(t,r){var e,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(r=void 0===r?n:~~r)<0?(r+=n)<0&&(r=0):r>n&&(r=n),r0&&(i*=256);)n+=this[t+--r]*i;return n},f.prototype.readUInt8=function(t,r){return r||M(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,r){return r||M(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,r){return r||M(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,r){return r||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},f.prototype.readUInt32BE=function(t,r){return r||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=this[t],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*r)),n},f.prototype.readIntBE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=r,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*r)),o},f.prototype.readInt8=function(t,r){return r||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},f.prototype.readInt16LE=function(t,r){r||M(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},f.prototype.readInt16BE=function(t,r){r||M(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},f.prototype.readInt32LE=function(t,r){return r||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,r){return r||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,r){return r||M(t,4,this.length),e.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,r){return r||M(t,4,this.length),e.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,r){return r||M(t,8,this.length),e.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,r){return r||M(t,8,this.length),e.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||k(this,t,r,e,Math.pow(2,8*e)-1,0);var i=1,o=0;for(this[r]=255&t;++o=0&&(o*=256);)this[r+i]=t/o&255;return r+e},f.prototype.writeUInt8=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,1,255,0),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},f.prototype.writeUInt16LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):N(this,t,r,!0),r+2},f.prototype.writeUInt16BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):N(this,t,r,!1),r+2},f.prototype.writeUInt32LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):z(this,t,r,!0),r+4},f.prototype.writeUInt32BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):z(this,t,r,!1),r+4},f.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r|=0,!n){var i=Math.pow(2,8*e-1);k(this,t,r,e,i-1,-i)}var o=0,u=1,f=0;for(this[r]=255&t;++o>0)-f&255;return r+e},f.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r|=0,!n){var i=Math.pow(2,8*e-1);k(this,t,r,e,i-1,-i)}var o=e-1,u=1,f=0;for(this[r+o]=255&t;--o>=0&&(u*=256);)t<0&&0===f&&0!==this[r+o+1]&&(f=1),this[r+o]=(t/u>>0)-f&255;return r+e},f.prototype.writeInt8=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,1,127,-128),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},f.prototype.writeInt16LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):N(this,t,r,!0),r+2},f.prototype.writeInt16BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):N(this,t,r,!1),r+2},f.prototype.writeInt32LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):z(this,t,r,!0),r+4},f.prototype.writeInt32BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):z(this,t,r,!1),r+4},f.prototype.writeFloatLE=function(t,r,e){return j(this,t,r,!0,e)},f.prototype.writeFloatBE=function(t,r,e){return j(this,t,r,!1,e)},f.prototype.writeDoubleLE=function(t,r,e){return q(this,t,r,!0,e)},f.prototype.writeDoubleBE=function(t,r,e){return q(this,t,r,!1,e)},f.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r=0;--i)t[i+r]=this[i+e];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=r;o55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function G(t){for(var r=[],e=0;e>8,i=e%256,o.push(i),o.push(n);return o}function K(t){return r.toByteArray(X(t))}function Q(t,r,e,n){for(var i=0;i=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function W(t){return t!=t} },{"base64-js":"yh9p","ieee754":"JgNJ","isarray":"REa7","buffer":"dskh"}],"QO4x":[function(require,module,exports) { var Buffer = require("buffer").Buffer; var global = arguments[3]; var t=require("buffer").Buffer,e=arguments[3],r=require("../constants.js").FILE_SYSTEM_NAME,n=require("../constants.js").FILE_STORE_NAME,o=require("../constants.js").IDB_RW,u=require("../constants.js").IDB_RO;function c(t,e){this.db=t,this.mode=e}function i(t){this.name=t||r,this.db=null}c.prototype._getObjectStore=function(){if(this.objectStore)return this.objectStore;var t=this.db.transaction(n,this.mode);return this.objectStore=t.objectStore(n),this.objectStore},c.prototype.clear=function(t){try{var e=this._getObjectStore().clear();e.onsuccess=function(){t()},e.onerror=function(e){e.preventDefault(),t(e.error)}}catch(r){t(r)}},c.prototype._get=function(t,e){try{var r=this._getObjectStore().get(t);r.onsuccess=function(t){var r=t.target.result;e(null,r)},r.onerror=function(t){t.preventDefault(),e(t.error)}}catch(n){e(n)}},c.prototype.getObject=function(t,e){this._get(t,e)},c.prototype.getBuffer=function(e,r){this._get(e,function(e,n){if(e)return r(e);r(null,t.from(n))})},c.prototype._put=function(t,e,r){try{var n=this._getObjectStore().put(e,t);n.onsuccess=function(t){var e=t.target.result;r(null,e)},n.onerror=function(t){t.preventDefault(),r(t.error)}}catch(o){r(o)}},c.prototype.putObject=function(t,e,r){this._put(t,e,r)},c.prototype.putBuffer=function(t,e,r){var n=e.buffer;this._put(t,n,r)},c.prototype.delete=function(t,e){try{var r=this._getObjectStore().delete(t);r.onsuccess=function(t){var r=t.target.result;e(null,r)},r.onerror=function(t){t.preventDefault(),e(t.error)}}catch(n){e(n)}},i.isSupported=function(){return!!(e.indexedDB||e.mozIndexedDB||e.webkitIndexedDB||e.msIndexedDB)},i.prototype.open=function(t){var r=this;if(r.db)return t();try{var o=(e.indexedDB||e.mozIndexedDB||e.webkitIndexedDB||e.msIndexedDB).open(r.name);o.onupgradeneeded=function(t){var e=t.target.result;e.objectStoreNames.contains(n)&&e.deleteObjectStore(n),e.createObjectStore(n)},o.onsuccess=function(e){r.db=e.target.result,t()},o.onerror=function(e){e.preventDefault(),t(e.error)}}catch(u){t(u)}},i.prototype.getReadOnlyContext=function(){return new c(this.db,u)},i.prototype.getReadWriteContext=function(){return new c(this.db,o)},module.exports=i; },{"../constants.js":"iJA9","buffer":"dskh"}],"u4Zs":[function(require,module,exports) { var process = require("process"); var define; var e,t=require("process");!function(){var n={};void 0!==t&&t.nextTick?(n.nextTick=t.nextTick,"undefined"!=typeof setImmediate?n.setImmediate=function(e){setImmediate(e)}:n.setImmediate=n.nextTick):"function"==typeof setImmediate?(n.nextTick=function(e){setImmediate(e)},n.setImmediate=n.nextTick):(n.nextTick=function(e){setTimeout(e,0)},n.setImmediate=n.nextTick),n.eachSeries=function(e,t,n){if(n=n||function(){},!e.length)return n();var i=0;!function o(){t(e[i],function(t){t?(n(t),n=function(){}):(i+=1)>=e.length?n():o()})}()},n.forEachSeries=n.eachSeries,void 0!==e&&e.amd?e([],function(){return n}):"undefined"!=typeof module&&module.exports?module.exports=n:root.async=n}(); },{"process":"pBGv"}],"OWym":[function(require,module,exports) { var t=require("../constants.js").FILE_SYSTEM_NAME,e=require("../../lib/async.js").setImmediate,o=function(){var t={};return function(e){return Object.prototype.hasOwnProperty.call(t,e)||(t[e]={}),t[e]}}();function n(t,e){this.readOnly=e,this.objectStore=t}function r(e){this.name=e||t}n.prototype.clear=function(t){if(this.readOnly)e(function(){t("[MemoryContext] Error: write operation on read only context")});else{var o=this.objectStore;Object.keys(o).forEach(function(t){delete o[t]}),e(t)}},n.prototype.getObject=n.prototype.getBuffer=function(t,o){var n=this;e(function(){o(null,n.objectStore[t])})},n.prototype.putObject=n.prototype.putBuffer=function(t,o,n){this.readOnly?e(function(){n("[MemoryContext] Error: write operation on read only context")}):(this.objectStore[t]=o,e(n))},n.prototype.delete=function(t,o){this.readOnly?e(function(){o("[MemoryContext] Error: write operation on read only context")}):(delete this.objectStore[t],e(o))},r.isSupported=function(){return!0},r.prototype.open=function(t){this.db=o(this.name),e(t)},r.prototype.getReadOnlyContext=function(){return new n(this.db,!0)},r.prototype.getReadWriteContext=function(){return new n(this.db,!1)},module.exports=r; },{"../constants.js":"iJA9","../../lib/async.js":"u4Zs"}],"AiW7":[function(require,module,exports) { var e=require("./indexeddb.js"),r=require("./memory.js");module.exports={IndexedDB:e,Default:e,Memory:r}; },{"./indexeddb.js":"QO4x","./memory.js":"OWym"}],"p8GN":[function(require,module,exports) { var t={};["3:EACCES:permission denied","9:EBADF:bad file descriptor","10:EBUSY:resource busy or locked","18:EINVAL:invalid argument","27:ENOTDIR:not a directory","28:EISDIR:illegal operation on a directory","34:ENOENT:no such file or directory","47:EEXIST:file already exists","50:EPERM:operation not permitted","51:ELOOP:too many symbolic links encountered","53:ENOTEMPTY:directory not empty","55:EIO:i/o error","1000:ENOTMOUNTED:not mounted","1001:EFILESYSTEMERROR:missing super node, use 'FORMAT' flag to format filesystem.","1002:ENOATTR:attribute does not exist"].forEach(function(e){var o=+(e=e.split(":"))[0],r=e[1],i=e[2];function s(t,e){Error.call(this),this.name=r,this.code=r,this.errno=o,this.message=t||i,e&&(this.path=e),this.stack=new Error(this.message).stack}s.prototype=Object.create(Error.prototype),s.prototype.constructor=s,s.prototype.toString=function(){var t=this.path?", '"+this.path+"'":"";return this.name+": "+this.message+t},t[r]=t[o]=s}),module.exports=t; },{}],"QMiB":[function(require,module,exports) { "use strict";var t=require("../constants.js").ENVIRONMENT;module.exports=function(n){(n=n||{}).TMP=n.TMP||t.TMP,n.PATH=n.PATH||t.PATH,this.get=function(t){return n[t]},this.set=function(t,s){n[t]=s}}; },{"../constants.js":"iJA9"}],"bQx9":[function(require,module,exports) { module.exports=function(t,o){for(var a=[],e=0;e=0&&c>0){for(r=[],o=t.length;p>=0&&!l;)p==s?(r.push(p),s=t.indexOf(e,p+1)):1==r.length?l=[r.pop(),c]:((i=r.pop())=0?s:c;r.length&&(l=[o,f])}return l}module.exports=e,e.range=t; },{}],"dwXQ":[function(require,module,exports) { var t=require("concat-map"),r=require("balanced-match");module.exports=f;var n="\0SLASH"+Math.random()+"\0",e="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",a="\0PERIOD"+Math.random()+"\0";function s(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function p(t){return t.split("\\\\").join(n).split("\\{").join(e).split("\\}").join(i).split("\\,").join(o).split("\\.").join(a)}function u(t){return t.split(n).join("\\").split(e).join("{").split(i).join("}").split(o).join(",").split(a).join(".")}function l(t){if(!t)return[""];var n=[],e=r("{","}",t);if(!e)return t.split(",");var i=e.pre,o=e.body,a=e.post,s=i.split(",");s[s.length-1]+="{"+o+"}";var p=l(a);return a.length&&(s[s.length-1]+=p.shift(),s.push.apply(s,p)),n.push.apply(n,s),n}function f(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),m(p(t),!0).map(u)):[]}function h(t){return t}function d(t){return"{"+t+"}"}function c(t){return/^-?0\d/.test(t)}function v(t,r){return t<=r}function g(t,r){return t>=r}function m(n,e){var o=[],a=r("{","}",n);if(!a||/\$$/.test(a.pre))return[n];var p,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body),h=u||f,b=a.body.indexOf(",")>=0;if(!h&&!b)return a.post.match(/,.*\}/)?m(n=a.pre+"{"+a.body+i+a.post):[n];if(h)p=a.body.split(/\.\./);else if(1===(p=l(a.body)).length&&1===(p=m(p[0],!1).map(d)).length)return(M=a.post.length?m(a.post,!1):[""]).map(function(t){return a.pre+p[0]+t});var j,y=a.pre,M=a.post.length?m(a.post,!1):[""];if(h){var A=s(p[0]),C=s(p[1]),O=Math.max(p[0].length,p[1].length),S=3==p.length?Math.abs(s(p[2])):1,$=v;C0){var z=new Array(q+1).join("0");I=E<0?"-"+z+I.slice(1):z+I}}j.push(I)}}else j=t(p,function(t){return m(t,!1)});for(var L=0;L65536)throw new TypeError("pattern is too long");var a=this.options;if(!a.noglobstar&&"**"===t)return e;if(""===t)return"";var o,c="",u=!!a.nocase,p=!1,f=[],g=[],l=!1,d=-1,b=-1,m="."===t.charAt(0)?"":a.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",y=this;function w(){if(o){switch(o){case"*":c+=s,u=!0;break;case"?":c+=i,u=!0;break;default:c+="\\"+o}y.debug("clearStateChar %j %j",o,c),o=!1}}for(var x,j=0,k=t.length;j-1;L--){var q=g[L],B=c.slice(0,q.reStart),M=c.slice(q.reStart,q.reEnd-8),N=c.slice(q.reEnd-8,q.reEnd),_=c.slice(q.reEnd);N+=_;var G=B.split("(").length-1,P=_;for(j=0;j=0&&!(i=e[s]);s--);for(s=0;s>> no match, partial?",t,f,n,g),f!==o))}if("string"==typeof u?(c=i.nocase?p.toLowerCase()===u.toLowerCase():p===u,this.debug("string match",u,p,c)):(c=p.match(u),this.debug("pattern match",u,p,c)),!c)return!1}if(s===o&&a===h)return!0;if(s===o)return r;if(a===h)return s===o-1&&""===t[s];throw new Error("wtf?")}; },{"path":"UUq2","brace-expansion":"dwXQ"}],"D1Ra":[function(require,module,exports) { var n=require("es6-promisify"),t=n.promisify,e=require("../path.js"),i=require("../errors.js"),r=require("./environment.js"),o=require("../../lib/async.js"),u=require("minimatch");function c(n,o){var u=this,c=new r((o=o||{}).env),f="/";Object.defineProperty(this,"fs",{get:function(){return n},enumerable:!0}),Object.defineProperty(this,"env",{get:function(){return c},enumerable:!0}),this.cd=function(t,r){t=e.resolve(f,t),n.stat(t,function(n,e){n?r(new i.ENOTDIR(null,t)):"DIRECTORY"===e.type?(f=t,r()):r(new i.ENOTDIR(null,t))})},this.pwd=function(){return f},this.promises={},["cd","exec","touch","cat","ls","rm","tempDir","mkdirp","find"].forEach(function(n){u.promises[n]=t(u[n].bind(u))})}c.prototype.exec=function(n,t,i){var r=this.fs;"function"==typeof t&&(i=t,t=[]),t=t||[],i=i||function(){},n=e.resolve(this.pwd(),n),r.readFile(n,"utf8",function(n,e){if(n)i(n);else try{new Function("fs","args","callback",e)(r,t,i)}catch(o){i(o)}})},c.prototype.touch=function(n,t,i){var r=this.fs;"function"==typeof t&&(i=t,t={}),t=t||{},i=i||function(){},n=e.resolve(this.pwd(),n),r.stat(n,function(e){e?!0===t.updateOnly?i():function(n){r.writeFile(n,"",i)}(n):function(n){var e=Date.now(),o=t.date||e,u=t.date||e;r.utimes(n,o,u,i)}(n)})},c.prototype.cat=function(n,t){var r=this,u=r.fs,c="";t=t||function(){},n?(n="string"==typeof n?[n]:n,o.eachSeries(n,function(n,t){var i=e.resolve(r.pwd(),n);u.readFile(i,"utf8",function(n,e){n?t(n):(c+=e+"\n",t())})},function(n){n?t(n):t(null,c.replace(/\n$/,""))})):t(new i.EINVAL("Missing files argument"))},c.prototype.ls=function(n,t,r){var u=this,c=u.fs;"function"==typeof t&&(r=t,t={}),t=t||{},r=r||function(){},n?function n(i,r){var f=e.resolve(u.pwd(),i),s=[];c.readdir(f,function(i,u){i?r(i):o.eachSeries(u,function(i,r){i=e.join(f,i),c.stat(i,function(i,o){if(i)r(i);else{var u=o;t.recursive&&"DIRECTORY"===o.type?n(e.join(f,u.name),function(n,t){n?r(n):(u.contents=t,s.push(u),r())}):(s.push(u),r())}})},function(n){r(n,s)})})}(n,r):r(new i.EINVAL("Missing dir argument"))},c.prototype.rm=function(n,t,r){var u=this,c=u.fs;"function"==typeof t&&(r=t,t={}),t=t||{},r=r||function(){},n?function n(r,f){r=e.resolve(u.pwd(),r),c.stat(r,function(u,s){u?f(u):"FILE"!==s.type?c.readdir(r,function(u,s){u?f(u):0!==s.length?t.recursive?(s=s.map(function(n){return e.join(r,n)}),o.eachSeries(s,n,function(n){n?f(n):c.rmdir(r,f)})):f(new i.ENOTEMPTY(null,r)):c.rmdir(r,f)}):c.unlink(r,f)})}(n,r):r(new i.EINVAL("Missing path argument"))},c.prototype.tempDir=function(n){var t=this.fs,e=this.env.get("TMP");n=n||function(){},t.mkdir(e,function(){n(null,e)})},c.prototype.mkdirp=function(n,t){var r=this.fs;t=t||function(){},n?"/"!==(n=e.resolve(this.pwd(),n))?function n(t,o){r.stat(t,function(u,c){if(c){if(c.isDirectory())return void o();if(c.isFile())return void o(new i.ENOTDIR(null,t))}else{if(u&&"ENOENT"!==u.code)return void o(u);var f=e.dirname(t);"/"===f?r.mkdir(t,function(n){n&&"EEXIST"!==n.code?o(n):o()}):n(f,function(n){if(n)return o(n);r.mkdir(t,function(n){n&&"EEXIST"!==n.code?o(n):o()})})}})}(n,t):t():t(new i.EINVAL("Missing path argument"))},c.prototype.find=function(n,t,r){var c=this,f=c.fs;"function"==typeof t&&(r=t,t={}),r=r||function(){};var s=(t=t||{}).exec||function(n,t){t()},a=[];function p(n,i){var r=e.removeTrailing(n);!t.regex||t.regex.test(r)?t.name&&!u(e.basename(r),t.name)||t.path&&!u(e.dirname(r),t.path)?i():function(n,t){s(n,function(e){e?t(e):(a.push(n),t())})}(n,i):i()}function d(n,t){n=e.resolve(c.pwd(),n),f.readdir(n,function(i,r){i?"ENOTDIR"===i.code?p(n,t):t(i):p(e.addTrailing(n),function(i){i?t(i):(r=r.map(function(t){return e.join(n,t)}),o.eachSeries(r,d,function(n){t(n,a)}))})})}n?f.stat(n,function(t,e){t?r(t):e.isDirectory()?d(n,r):r(new i.ENOTDIR(null,n))}):r(new i.EINVAL("Missing path argument"))},module.exports=c; },{"es6-promisify":"c0Ea","../path.js":"UzoP","../errors.js":"p8GN","./environment.js":"QMiB","../../lib/async.js":"u4Zs","minimatch":"NtKi"}],"J4Qg":[function(require,module,exports) { function t(t,r){for(var o=r.length-1;o>=0;o--)r[o]===t&&r.splice(o,1);return r}var r=function(){};r.createInterface=function(r){var o={on:function(t,o){void 0===this[r]&&(this[r]={}),this[r].hasOwnProperty(t)||(this[r][t]=[]),this[r][t].push(o)},off:function(o,e){void 0!==this[r]&&this[r].hasOwnProperty(o)&&t(e,this[r][o])},trigger:function(t){if(void 0!==this[r]&&this[r].hasOwnProperty(t))for(var o=Array.prototype.slice.call(arguments,1),e=0;et&&(n=o,e.apply(this,arguments))}}function i(t,n){if(void 0!==t&&t||(t={}),"object"===e(n))for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o]);return t}var a=function(t){return void 0===t||void 0===t.localStorage?{getItem:function(){},setItem:function(){},removeItem:function(){}}:t.localStorage}(t);function s(){var e=this,n=Date.now();this.origin=o(),this.lastMessage=n,this.receivedIDs={},this.previousValues={};var r=function(){e._onStorageEvent.apply(e,arguments)};"undefined"!=typeof document&&(document.attachEvent?document.attachEvent("onstorage",r):t.addEventListener("storage",r,!1))}s.prototype._transaction=function(t){var e=1e3,n=20,o=this,r=!1,i=!1,s=null;function c(){if(!r){var u=Date.now(),f=0|a.getItem(p);if(f&&u-f=0;o--)t[o].timestamp0&&a.setItem(c,JSON.stringify(t))})}),s.prototype._cleanup_once=r(100,function(){var t=this;t._transaction(function(){Date.now();var e,n,o=0;try{n=JSON.parse(a.getItem(u)||"{}")}catch(r){n={}}for(e in n)t._once_expired(e,n)&&(delete n[e],o++);o>0&&a.setItem(u,JSON.stringify(n))})}),s.prototype._once_expired=function(t,n){if(!n)return!0;if(!n.hasOwnProperty(t))return!0;if("object"!==e(n[t]))return!0;var o=n[t].ttl||m,r=Date.now();return n[t].timestampg?n(new j.ELOOP(null,t)):(d=p.data,d=i(d),a=o(d),u=r(d),m===u?e.getObject(E,f):P(e,a,w)):n(null,p)}m===u?e.getObject(E,f):P(e,a,w)}function x(e,t,n,i,o,r,u){var a=n.xattrs;r===I&&Object.prototype.hasOwnProperty.call(a,i)?u(new j.EEXIST("attribute already exists",t)):r!==h||Object.prototype.hasOwnProperty.call(a,i)?(a[i]=o,e.putObject(n.id,n,function(i){i?u(i):S(e,t,n,{ctime:Date.now()},u)})):u(new j.ENOATTR(null,t))}function k(e,t){var n,i,o;function r(o){o?t(o):F.create({guid:e.guid,id:n.rnode,type:l},function(n,o){n?t(n):((i=o).nlinks+=1,e.putObject(i.id,i,u))})}function u(n){n?t(n):(o={},e.putObject(i.data,o,t))}e.getObject(E,function(i,o){!i&&o?t():!i||i instanceof j.ENOENT?_.create({guid:e.guid},function(i,o){i?t(i):(n=o,e.putObject(n.id,n,r))}):t(i)})}function C(e,t,n){t=i(t);var u,a,c,f,s=r(t),p=o(t);function d(t,i){t?n(t):(c=i,e.getObject(c.data,m))}function m(t,i){t?n(t):(f=i,F.create({guid:e.guid,type:l},function(t,i){t?n(t):((u=i).nlinks+=1,e.putObject(u.id,u,E))}))}function E(t){t?n(t):(a={},e.putObject(u.data,a,w))}function g(t){if(t)n(t);else{var i=Date.now();S(e,p,c,{mtime:i,ctime:i},n)}}function w(t){t?n(t):(f[s]=new T(u.id,l),e.putObject(c.data,f,g))}P(e,t,function(i,o){!i&&o?n(new j.EEXIST(null,t)):!i||i instanceof j.ENOENT?P(e,p,d):n(i)})}function X(e,t,n,o){var r=c.fsConstants,u=r.F_OK,a=r.R_OK,f=r.W_OK,l=r.X_OK,s=r.S_IXUSR,p=r.S_IXGRP,d=r.S_IXOTH;P(e,t=i(t),function(e,i){if(e)return o(e);if(n===u)return o(null);var r=Ve(i.mode,o);return r?n&(a|f)?o(null):n&l&&r&(s|p|d)?o(null):void o(new j.EACCES("permission denied",t)):void 0})}function M(e,t,n){t=i(t);var u,a,c,f,s=r(t),p=o(t);function d(i,o){i?n(i):m===s?n(new j.EBUSY(null,t)):Object.prototype.hasOwnProperty.call(o,s)?(u=(f=o)[s].id,e.getObject(u,E)):n(new j.ENOENT(null,t))}function E(i,o){i?n(i):o.type!==l?n(new j.ENOTDIR(null,t)):(u=o,e.getObject(u.data,g))}function g(i,o){i?n(i):(a=o,Object.keys(a).length>0?n(new j.ENOTEMPTY(null,t)):(delete f[s],e.putObject(c.data,f,w)))}function w(t){if(t)n(t);else{var i=Date.now();S(e,p,c,{mtime:i,ctime:i},O)}}function O(t){t?n(t):e.delete(u.id,b)}function b(t){t?n(t):e.delete(u.data,n)}P(e,p,function(t,i){t?n(t):(c=i,e.getObject(c.data,d))})}function q(t,n,u,a,c){"function"==typeof a&&(c=a,a=null),n=i(n);var p,d,E,w,v,N=r(n),I=o(n),h=0;function A(e,i){e?c(e):i.type!==l?c(new j.ENOENT(null,n)):(p=i,t.getObject(p.data,D))}function D(e,i){e?c(e):(d=i,Object.prototype.hasOwnProperty.call(d,N)?u.includes(y)?c(new j.EEXIST("O_CREATE and O_EXCLUSIVE are set, and the named file exists",n)):(E=d[N]).type===l&&u.includes(O)?c(new j.EISDIR("the named file is a directory and O_WRITE is set",n)):t.getObject(E.id,L):u.includes(b)?F.create({guid:t.guid,type:f},function(e,n){e?c(e):((w=n).nlinks+=1,a&&(w.mode=a),t.putObject(w.id,w,_))}):c(new j.ENOENT("O_CREATE is not set and the named file does not exist",n)))}function L(e,a){if(e)c(e);else{var f=a;f.type===s?++h>g?c(new j.ELOOP(null,n)):function(e){e=i(e),I=o(e),N=r(e),m===N&&(u.includes(O)?c(new j.EISDIR("the named file is a directory and O_WRITE is set",n)):P(t,n,R));P(t,I,A)}(f.data):R(void 0,f)}}function R(e,t){e?c(e):c(null,w=t)}function _(n){n?c(n):(v=e.alloc(0),t.putBuffer(w.data,v,B))}function V(e){if(e)c(e);else{var n=Date.now();S(t,I,p,{mtime:n,ctime:n},x)}}function B(e){e?c(e):(d[N]=new T(w.id,f),t.putObject(p.data,d,V))}function x(e){e?c(e):c(null,w)}m===N?u.includes(O)?c(new j.EISDIR("the named file is a directory and O_WRITE is set",n)):P(t,n,R):P(t,I,A)}function z(t,n,i,o,r,u){var a;function c(e){e?u(e):u(null,r)}function f(e){if(e)u(e);else{var i=Date.now();S(t,n.path,a,{mtime:i,ctime:i},c)}}function l(e){e?u(e):t.putObject(a.id,a,f)}t.getObject(n.id,function(c,f){if(c)u(c);else{a=f;var s=e.alloc(r);i.copy(s,0,o,o+r),n.position=r,a.size=r,a.version+=1,t.putBuffer(a.data,s,l)}})}function Y(t,n,i,o,r,u,a){var c,f;function l(e){e?a(e):a(null,r)}function s(e){if(e)a(e);else{var i=Date.now();S(t,n.path,c,{mtime:i,ctime:i},l)}}function p(e){e?a(e):t.putObject(c.id,c,s)}function d(l,s){if(l)a(l);else{if(!(f=s))return a(new j.EIO("Expected Buffer"));var d=null!=u?u:n.position,m=Math.max(f.length,d+r),E=e.alloc(m);f&&f.copy(E),i.copy(E,d,o,o+r),void 0===u&&(n.position+=r),c.size=m,c.version+=1,t.putBuffer(c.data,E,p)}}t.getObject(n.id,function(e,n){e?a(e):(c=n,t.getBuffer(c.data,d))})}function K(e,t,n,i,o,r,u){var a,c;function f(e,a){if(e)u(e);else{if(!(c=a))return u(new j.EIO("Expected Buffer"));var f=null!=r?r:t.position;o=f+o>n.length?o-f:o,c.copy(n,i,f,f+o),void 0===r&&(t.position+=o),u(null,o)}}e.getObject(t.id,function(n,i){n?u(n):i.type===l?u(new j.EISDIR("the named file is a directory",t.path)):(a=i,e.getBuffer(a.data,f))})}function U(e,t,n){P(e,t=i(t),n)}function W(e,t,n){t.getNode(e,n)}function G(e,t,n){t=i(t);var u,a,c=r(t),f=o(t);function l(e,t){if(e)return n(e);F.create(t,n)}function s(i,o){i?n(i):(a=o,Object.prototype.hasOwnProperty.call(a,c)?e.getObject(a[c].id,l):n(new j.ENOENT("a component of the path does not name an existing file",t)))}m===c?P(e,t,n):P(e,f,function(t,i){t?n(t):(u=i,e.getObject(u.data,s))})}function H(e,t,n,u){t=i(t);var a=r(t),c=o(t);n=i(n);var f,s,p,d,m,E,g=r(n),w=o(n),O=Date.now();function b(t){t?u(t):S(e,n,E,{ctime:O},u)}function y(t,n){t?u(t):((E=n).nlinks+=1,e.putObject(E.id,E,b))}function v(t){t?u(t):e.getObject(m,y)}function N(t,n){t?u(t):(d=n,Object.prototype.hasOwnProperty.call(d,g)?u(new j.EEXIST("newpath resolves to an existing file",g)):(d[g]=s[a],m=d[g].id,e.putObject(p.data,d,v)))}function I(t,n){t?u(t):(p=n,e.getObject(p.data,N))}function h(t,n){t?u(t):(s=n,Object.prototype.hasOwnProperty.call(s,a)?s[a].type===l?u(new j.EPERM("oldpath refers to a directory")):P(e,w,I):u(new j.ENOENT("a component of either path prefix does not exist",a)))}P(e,c,function(t,n){t?u(t):(f=n,e.getObject(f.data,h))})}function $(e,t,n){t=i(t);var u,a,c,f=r(t),s=o(t);function p(t){t?n(t):(delete a[f],e.putObject(u.data,a,function(t){if(t)n(t);else{var i=Date.now();S(e,s,u,{mtime:i,ctime:i},n)}}))}function d(t){t?n(t):e.delete(c.data,p)}function m(i,o){i?n(i):o.type===l?n(new j.EPERM("unlink not permitted on directories",f)):function(i,o){i?n(i):((c=o).nlinks-=1,c.nlinks<1?e.delete(c.id,d):e.putObject(c.id,c,function(i){i?n(i):S(e,t,c,{ctime:Date.now()},p)}))}(null,o)}function E(t,i){t?n(t):(a=i,Object.prototype.hasOwnProperty.call(a,f)?e.getObject(a[f].id,m):n(new j.ENOENT("a component of the path does not name an existing file",f)))}P(e,s,function(t,i){t?n(t):(u=i,e.getObject(u.data,E))})}function J(e,t,n){var o,r;function u(e,t){if(e)n(e);else{r=t;var i=Object.keys(r);n(null,i)}}t=i(t),P(e,t,function(i,r){i?n(i):r.type!==l?n(new j.ENOTDIR(null,t)):(o=r,e.getObject(o.data,u))})}function Q(e,t,a,c){a=i(a);var f,l,p,d=r(a),E=o(a);function g(i,o){i?c(i):(l=o,Object.prototype.hasOwnProperty.call(l,d)?c(new j.EEXIST(null,d)):F.create({guid:e.guid,type:s},function(i,o){i?c(i):((p=o).nlinks+=1,u(t)||(p.symlink_relpath=t,t=n.resolve(E,t)),p.size=t.length,p.data=t,e.putObject(p.id,p,O))}))}function w(t){if(t)c(t);else{var n=Date.now();S(e,E,f,{mtime:n,ctime:n},c)}}function O(t){t?c(t):(l[d]=new T(p.id,s),e.putObject(f.data,l,w))}m===d?c(new j.EEXIST(null,d)):P(e,E,function(t,n){t?c(t):(f=n,e.getObject(f.data,g))})}function Z(e,t,n){t=i(t);var u,a,c=r(t),f=o(t);function l(t,i){t?n(t):(a=i,Object.prototype.hasOwnProperty.call(a,c)?e.getObject(a[c].id,p):n(new j.ENOENT("a component of the path does not name an existing file",c)))}function p(e,i){if(e)n(e);else if(i.type!==s)n(new j.EINVAL("path not a symbolic link",t));else{var o=i.symlink_relpath?i.symlink_relpath:i.data;n(null,o)}}P(e,f,function(t,i){t?n(t):(u=i,e.getObject(u.data,l))})}function ee(t,n,o,r){var u;function a(n,i){if(n)r(n);else{if(!i)return r(new j.EIO("Expected Buffer"));var a=e.alloc(o);i&&i.copy(a),t.putBuffer(u.data,a,f)}}function c(e){if(e)r(e);else{var i=Date.now();S(t,n,u,{mtime:i,ctime:i},r)}}function f(e){e?r(e):(u.size=o,u.version+=1,t.putObject(u.id,u,c))}n=i(n),o<0?r(new j.EINVAL("length cannot be negative")):P(t,n,function(e,i){e?r(e):i.type===l?r(new j.EISDIR(null,n)):(u=i,t.getBuffer(u.data,a))})}function te(t,n,i,o){var r;function u(n,u){if(n)o(n);else{var a;if(!u)return o(new j.EIO("Expected Buffer"));a=u?u.slice(0,i):e.alloc(i),t.putBuffer(r.data,a,c)}}function a(e){if(e)o(e);else{var i=Date.now();S(t,n.path,r,{mtime:i,ctime:i},o)}}function c(e){e?o(e):(r.size=i,r.version+=1,t.putObject(r.id,r,a))}i<0?o(new j.EINVAL("length cannot be negative")):n.getNode(t,function(e,n){e?o(e):n.type===l?o(new j.EISDIR):(r=n,t.getBuffer(r.data,u))})}function ne(e,t,n,o,r){t=i(t),"number"!=typeof n||"number"!=typeof o?r(new j.EINVAL("atime and mtime must be number",t)):n<0||o<0?r(new j.EINVAL("atime and mtime must be positive integers",t)):P(e,t,function(i,u){i?r(i):S(e,t,u,{atime:n,ctime:o,mtime:o},r)})}function ie(e,t,n,i,o){"number"!=typeof n||"number"!=typeof i?o(new j.EINVAL("atime and mtime must be a number")):n<0||i<0?o(new j.EINVAL("atime and mtime must be positive integers")):t.getNode(e,function(r,u){r?o(r):S(e,t.path,u,{atime:n,ctime:i,mtime:i},o)})}function oe(e,t,n,o,r,u){t=i(t),"string"!=typeof n?u(new j.EINVAL("attribute name must be a string",t)):n?null!==r&&r!==I&&r!==h?u(new j.EINVAL("invalid flag, must be null, XATTR_CREATE or XATTR_REPLACE",t)):P(e,t,function(i,a){if(i)return u(i);x(e,t,a,n,o,r,u)}):u(new j.EINVAL("attribute name cannot be an empty string",t))}function re(e,t,n,i,o,r){"string"!=typeof n?r(new j.EINVAL("attribute name must be a string")):n?null!==o&&o!==I&&o!==h?r(new j.EINVAL("invalid flag, must be null, XATTR_CREATE or XATTR_REPLACE")):t.getNode(e,function(u,a){if(u)return r(u);x(e,t.path,a,n,i,o,r)}):r(new j.EINVAL("attribute name cannot be an empty string"))}function ue(e,t,n,o){t=i(t),"string"!=typeof n?o(new j.EINVAL("attribute name must be a string",t)):n?P(e,t,function(e,i){if(e)return o(e);var r=i.xattrs;Object.prototype.hasOwnProperty.call(r,n)?o(null,r[n]):o(new j.ENOATTR(null,t))}):o(new j.EINVAL("attribute name cannot be an empty string",t))}function ae(e,t,n,i){"string"!=typeof n?i(new j.EINVAL):n?t.getNode(e,function(e,t){if(e)return i(e);var o=t.xattrs;Object.prototype.hasOwnProperty.call(o,n)?i(null,o[n]):i(new j.ENOATTR)}):i(new j.EINVAL("attribute name cannot be an empty string"))}function ce(e,t,n,o){t=i(t),"string"!=typeof n?o(new j.EINVAL("attribute name must be a string",t)):n?P(e,t,function(i,r){if(i)return o(i);var u=r.xattrs;Object.prototype.hasOwnProperty.call(u,n)?(delete u[n],e.putObject(r.id,r,function(n){n?o(n):S(e,t,r,{ctime:Date.now()},o)})):o(new j.ENOATTR(null,t))}):o(new j.EINVAL("attribute name cannot be an empty string",t))}function fe(e,t,n,i){"string"!=typeof n?i(new j.EINVAL("attribute name must be a string")):n?t.getNode(e,function(o,r){if(o)return i(o);var u=r.xattrs;Object.prototype.hasOwnProperty.call(u,n)?(delete u[n],e.putObject(r.id,r,function(n){n?i(n):S(e,t.path,r,{ctime:Date.now()},i)})):i(new j.ENOATTR)}):i(new j.EINVAL("attribute name cannot be an empty string"))}function le(e){return Object.prototype.hasOwnProperty.call(N,e)?N[e]:null}function se(e,t,n){return e?"function"==typeof e?e={encoding:t,flag:n}:"string"==typeof e&&(e={encoding:e,flag:n}):e={encoding:t,flag:n},e}function pe(e,t,n,i,o){if(arguments.length<5?(o=arguments[arguments.length-1],i=420):i=Ve(i,d,o),!(n=le(n)))return o(new j.EINVAL("flags is not valid"),t);q(e,t,n,i,function(e,i){if(e)o(e);else{var r;r=n.includes(v)?i.size:0;var u=new R(t,i.id,n,r),a=L.allocDescriptor(u);o(null,a)}})}function de(e,t,n){L.getOpenFileDescription(t)?(L.releaseDescriptor(t),n(null)):n(new j.EBADF)}function me(e,t,n,i){B(e,t,n,i)}function Ee(e,t,n,i){if(arguments.length<4)i=n,n=d;else if(!(n=Ve(n,d,i)))return;C(e,t,i)}function ge(e,t,n,i){"function"==typeof n&&(i=n,n=c.fsConstants.F_OK),X(e,t,n|=c.fsConstants.F_OK,i)}function we(e,t,n,i){if(i=arguments[arguments.length-1],!t)return i(new Error("filename prefix is required"));var o=t+"-"+a.randomChars(6);C(e,o,function(e){i(e,o)})}function Oe(e,t,n){M(e,t,n)}function be(e,t,n){U(e,t,function(i,o){if(i)n(i);else{var r=new V(t,o,e.name);n(null,r)}})}function ye(e,t,n){var i=L.getOpenFileDescription(t);i?W(e,i,function(t,o){if(t)n(t);else{var r=new V(i.path,o,e.name);n(null,r)}}):n(new j.EBADF)}function ve(e,t,n,i){H(e,t,n,i)}function Ne(e,t,n){$(e,t,n)}function Ie(e,t,n,i,o,r,u){i=void 0===i?0:i,o=void 0===o?n.length-i:o,u=arguments[arguments.length-1];var a=L.getOpenFileDescription(t);a?a.flags.includes(w)?K(e,a,n,i,o,r,function(e,t){u(e,t||0,n)}):u(new j.EBADF("descriptor does not permit reading")):u(new j.EBADF)}function he(e,t,n){Re(t,n)===t&&(L.getOpenFileDescription(t)?n():n(new j.EBADF))}function Ae(t,n,i,o){o=arguments[arguments.length-1];var r=le((i=se(i,null,"r")).flag||"r");if(!r)return o(new j.EINVAL("flags is not valid",n));q(t,n,r,function(u,a){if(u)return o(u);var c=new R(n,a.id,r,0),f=L.allocDescriptor(c);function l(){L.releaseDescriptor(f)}W(t,c,function(r,u){if(r)return l(),o(r);var a=new V(c.path,u,t.name);if(a.isDirectory())return l(),o(new j.EISDIR("illegal operation on directory",n));var f=a.size,s=e.alloc(f);K(t,c,s,0,f,0,function(e){if(l(),e)return o(e);var t;t="utf8"===i.encoding?s.toString("utf8"):s,o(null,t)})})})}function De(e,t,n,i,o,r,u){u=arguments[arguments.length-1],i=void 0===i?0:i,o=void 0===o?n.length-i:o;var a=L.getOpenFileDescription(t);a?a.flags.includes(O)?n.length-i>>0}function Ve(e,t,n){return"function"==typeof t&&(n=t,t=void 0),Fe(e)?e&d:"number"==typeof e?(Number.isInteger(e),n(new j.EINVAL("mode not a valid an integer value",e)),!1):"string"==typeof e?_e.test(e)?parseInt(e,8)&d:(n(new j.EINVAL("mode not a valid octal string",e)),!1):void 0!==t?t:(n(new j.EINVAL("mode not valid",e)),!1)}function Se(e,t,n,o){t=i(t),"number"!=typeof n?o(new j.EINVAL("mode must be number",t)):P(e,t,function(i,r){i?o(i):(r.mode=n,S(e,t,r,{mtime:Date.now()},o))})}function Be(e,t,n,i){"number"!=typeof n?i(new j.EINVAL("mode must be a number")):t.getNode(e,function(o,r){o?i(o):(r.mode=n,S(e,t.path,r,{mtime:Date.now()},i))})}function Pe(e,t,n,o,r){t=i(t),P(e,t,function(i,u){i?r(i):(u.uid=n,u.gid=o,S(e,t,u,{mtime:Date.now()},r))})}function xe(e,t,n,i,o){t.getNode(e,function(r,u){r?o(r):(u.uid=n,u.gid=i,S(e,t.path,u,{mtime:Date.now()},o))})}function ke(e,t,n,i){ue(e,t,n,i)}function Ce(e,t,n,i){var o=L.getOpenFileDescription(t);o?ae(e,o,n,i):i(new j.EBADF)}function Xe(e,t,n,i,o,r){"function"==typeof o&&(r=o,o=null),oe(e,t,n,i,o,r)}function Me(e,t,n,i,o,r){"function"==typeof o&&(r=o,o=null);var u=L.getOpenFileDescription(t);u?u.flags.includes(O)?re(e,u,n,i,o,r):r(new j.EBADF("descriptor does not permit writing")):r(new j.EBADF)}function qe(e,t,n,i){ce(e,t,n,i)}function ze(e,t,n,i){var o=L.getOpenFileDescription(t);o?o.flags.includes(O)?fe(e,o,n,i):i(new j.EBADF("descriptor does not permit writing")):i(new j.EBADF)}function Ye(e,t,n,i,o){var r=L.getOpenFileDescription(t);r||o(new j.EBADF),"SET"===i?n<0?o(new j.EINVAL("resulting file offset would be negative")):(r.position=n,o(null,r.position)):"CUR"===i?r.position+n<0?o(new j.EINVAL("resulting file offset would be negative")):(r.position+=n,o(null,r.position)):"END"===i?W(e,r,function(e,t){e?o(e):t.size+n<0?o(new j.EINVAL("resulting file offset would be negative")):(r.position=t.size+n,o(null,r.position))}):o(new j.EINVAL("whence argument is not a proper value"))}function Ke(e,t,n){J(e,t,n)}function Ue(e){return"number"==typeof e?e:"object"===t(e)&&"function"==typeof e.getTime?e.getTime():void 0}function We(e,t,n,i,o){var r=Date.now();ne(e,t,n=Ue(n||r),i=Ue(i||r),o)}function Ge(e,t,n,i,o){var r=Date.now();n=Ue(n||r),i=Ue(i||r);var u=L.getOpenFileDescription(t);u?u.flags.includes(O)?ie(e,u,n,i,o):o(new j.EBADF("descriptor does not permit writing")):o(new j.EBADF)}function He(e,t,n,i){(n=Ve(n,i))&&Se(e,t,n,i)}function $e(e,t,n,i){if(n=Ve(n,i)){var o=L.getOpenFileDescription(t);o?o.flags.includes(O)?Be(e,o,n,i):i(new j.EBADF("descriptor does not permit writing")):i(new j.EBADF)}}function Je(e,t,n,i,o){return Fe(n)?Fe(i)?void Pe(e,t,n,i,o):o(new j.EINVAL("gid must be a valid integer",i)):o(new j.EINVAL("uid must be a valid integer",n))}function Qe(e,t,n,i,o){if(!Fe(n))return o(new j.EINVAL("uid must be a valid integer",n));if(!Fe(i))return o(new j.EINVAL("gid must be a valid integer",i));var r=L.getOpenFileDescription(t);r?r.flags.includes(O)?xe(e,r,n,i,o):o(new j.EBADF("descriptor does not permit writing")):o(new j.EBADF)}function Ze(e,t,o,r){t=i(t),o=i(o);var u,a,c,f,s=n.dirname(t),p=n.dirname(t),d=n.basename(t),m=n.basename(o),E=Date.now();function g(t,n){t?r(t):S(e,o,n,{ctime:E},r)}function w(t){t?r(t):e.getObject(f[m].id,g)}function O(t){t?r(t):(u.id===c.id&&(a=f),delete a[d],e.putObject(u.data,a,w))}function b(t){t?r(t):(f[m]=a[d],e.putObject(c.data,f,O))}function y(t,n){t?r(t):(f=n,Object.prototype.hasOwnProperty.call(f,m)?M(e,o,b):b())}function v(t,n){t?r(t):(c=n,e.getObject(c.data,y))}function N(t,n){t?r(t):(a=n,P(e,p,v))}function I(t,n){t?r(t):(u=n,e.getObject(n.data,N))}function h(n){n?r(n):$(e,t,r)}P(e,t,function(n,i){n?r(n):i.type===l?P(e,s,I):H(e,t,o,h)})}function et(e,t,n,i,o){Q(e,t,n,o=arguments[arguments.length-1])}function tt(e,t,n){Z(e,t,n)}function nt(e,t,n){G(e,t,function(i,o){if(i)n(i);else{var r=new V(t,o,e.name);n(null,r)}})}function it(e,t,n,i){Re(n=n||0,i=arguments[arguments.length-1])===n&&ee(e,t,n,i)}function ot(e,t,n,i){i=arguments[arguments.length-1],n=n||0;var o=L.getOpenFileDescription(t);if(o)if(o.flags.includes(O)){if(Re(n,i)!==n)return;te(e,o,n,i)}else i(new j.EBADF("descriptor does not permit writing"));else i(new j.EBADF)}module.exports={appendFile:Te,access:ge,chown:Je,chmod:He,close:de,ensureRootDirectory:k,exists:Le,fchown:Qe,fchmod:$e,fgetxattr:Ce,fremovexattr:ze,fsetxattr:Me,fstat:ye,fsync:he,ftruncate:ot,futimes:Ge,getxattr:ke,link:ve,lseek:Ye,lstat:nt,mkdir:Ee,mkdtemp:we,mknod:me,open:pe,readdir:Ke,read:Ie,readFile:Ae,readlink:tt,removexattr:qe,rename:Ze,rmdir:Oe,setxattr:Xe,stat:be,symlink:et,truncate:it,unlink:Ne,utimes:We,writeFile:je,write:De}; },{"../path.js":"UzoP","../shared.js":"zBMa","../constants.js":"iJA9","../errors.js":"p8GN","../directory-entry.js":"ZECt","../open-files.js":"osLK","../open-file-description.js":"XWaV","../super-node.js":"JEp0","../node.js":"KKNo","../stats.js":"dsCT","buffer":"dskh"}],"GMi4":[function(require,module,exports) { var Buffer = require("buffer").Buffer; var e=require("buffer").Buffer,r=require("es6-promisify"),t=r.promisify,n=require("../path.js"),a=require("../providers/index.js"),s=require("../shell/shell.js"),o=require("../../lib/intercom.js"),i=require("../fs-watcher.js"),u=require("../errors.js"),m=require("../shared.js"),c=m.nop,f=m.guid,l=require("../constants.js"),h=l.fsConstants,p=l.FILE_SYSTEM_NAME,d=l.FS_FORMAT,g=l.FS_READY,b=l.FS_PENDING,A=l.FS_ERROR,P=l.FS_NODUPEIDCHECK,v=l.STDIN,y=l.STDOUT,E=l.STDERR,R=require("./implementation.js");function w(e){return"function"==typeof e?e:function(e){if(e)throw e}}function S(e){e&&console.error("Filer error: ",e)}function O(e){if(!(e&&e.protocol&&e.pathname))return e;if("file:"!==e.protocol)throw new u.EINVAL("only file: URLs are supported for paths",e);for(var r=e.pathname,t=0;t