if(!A){for(s=0;285>=s;)y[s++]=0;for(s=0;29>=s;)E[s++]=0}for(y[256]=1,i=0,o=e.length;o>i;++i){for(s=u=0,a=3;a>s&&i+s!==o;++s)u=u<<8|e[i+s];if(d[u]===w&&(d[u]=[]),f=d[u],!(m-->0)){for(;f.length>0&&i-f[0]>32768;)f.shift();if(i+3>=o){for(h&&r(h,-1),s=0,a=o-i;a>s;++s)p=e[i+s],g[v++]=p,++y[p];break}f.length>0?(l=c(e,i,f),h?h.length<l.length?(p=e[i-1],g[v++]=p,++y[p],r(l,0)):r(h,-1):_>l.length?h=l:r(l,0)):h?r(h,-1):(p=e[i],g[v++]=p,++y[p])}f.push(i)}returng[v++]=256,y[256]++,n.L=y,n.K=E,A?g.subarray(0,v):g}functionc(t,n,e){varr,i,o,a,c,u,f=0,l=t.length;a=0,u=e.length;t:for(;u>a;a++){if(r=e[u-a-1],o=3,f>3){for(c=f;c>3;c--)if(t[r+c-1]!==t[n+c-1])continuet;o=f}for(;258>o&&l>n+o&&t[r+o]===t[n+o];)++o;if(o>f&&(i=r,f=o),258===o)break}returnnews(f,n-i)}functionu(t,n){vare,i,o,s,a,c=t.length,u=newr(572),l=new(A?Uint8Array:Array)(c);if(!A)for(s=0;c>s;s++)l[s]=0;for(s=0;c>s;++s)t[s]>0&&u.push(s,t[s]);if(e=Array(u.length/2),i=new(A?Uint32Array:Array)(u.length/2),1===e.length)returnl[u.pop().index]=1,l;for(s=0,a=u.length/2;a>s;++s)e[s]=u.pop(),i[s]=e[s].value;for(o=f(i,i.length,n),s=0,a=e.length;a>s;++s)l[e[s].index]=o[s];returnl}functionf(t,n,e){functionr(t){vare=p[t][d[t]];e===n?(r(t+1),r(t+1)):--l[e],++d[t]}vari,o,s,a,c,u=new(A?Uint16Array:Array)(e),f=new(A?Uint8Array:Array)(e),l=new(A?Uint8Array:Array)(n),h=Array(e),p=Array(e),d=Array(e),g=(1<<e)-n,v=1<<e-1;for(u[e-1]=n,o=0;e>o;++o)v>g?f[o]=0:(f[o]=1,g-=v),g<<=1,u[e-2-o]=(0|u[e-1-o]/2)+n;for(u[0]=f[0],h[0]=Array(u[0]),p[0]=Array(u[0]),o=1;e>o;++o)u[o]>2*u[o-1]+f[o]&&(u[o]=2*u[o-1]+f[o]),h[o]=Array(u[o]),p[o]=Array(u[o]);for(i=0;n>i;++i)l[i]=e;for(s=0;u[e-1]>s;++s)h[e-1][s]=t[s],p[e-1][s]=s;for(i=0;e>i;++i)d[i]=0;for(1===f[e-1]&&(--l[0],++d[e-1]),o=e-2;o>=0;--o){for(a=i=0,c=d[o+1],s=0;u[o]>s;s++)a=h[o+1][c]+h[o+1][c+1],a>t[i]?(h[o][s]=a,p[o][s]=n,c+=2):(h[o][s]=t[i],p[o][s]=i,++i);d[o]=0,1===f[o]&&r(o)}returnl}functionl(t){varn,e,r,i,o=new(A?Uint16Array:Array)(t.length),s=[],a=[],c=0;for(n=0,e=t.length;e>n;n++)s[t[n]]=(0|s[t[n]])+1;for(n=1,e=16;e>=n;n++)a[n]=c,c+=0|s[n],c<<=1;for(n=0,e=t.length;e>n;n++)for(c=a[t[n]],a[t[n]]+=1,r=o[n]=0,i=t[n];i>r;r++)o[n]=o[n]<<1|1&c,c>>>=1;returno}functionh(n,e){switch(this.l=[],this.m=32768,this.e=this.g=this.c=this.q=0,this.input=A?newUint8Array(n):n,this.s=!1,this.n=F,this.B=!1,(e||!(e={}))&&(e.index&&(this.c=e.index),e.bufferSize&&(this.m=e.bufferSize),e.bufferType&&(this.n=e.bufferType),e.resize&&(this.B=e.resize)),this.n){caseL:this.b=32768,this.a=new(A?Uint8Array:Array)(32768+this.m+258);break;caseF:this.b=0,this.a=new(A?Uint8Array:Array)(this.m),this.f=this.J,this.t=this.H,this.o=this.I;break;default:t(Error("invalid inflate mode"))}}functionp(n,e){for(varr,i=n.g,o=n.e,s=n.input,a=n.c;e>o;)r=s[a++],r===w&&t(Error("input buffer is broken")),i|=r<<o,o+=8;returnr=i&(1<<e)-1,n.g=i>>>e,n.e=o-e,n.c=a,r}functiond(t,n){for(vare,r,i,o=t.g,s=t.e,a=t.input,c=t.c,u=n[0],f=n[1];f>s&&(e=a[c++],e!==w);)o|=e<<s,s+=8;returnr=u[o&(1<<f)-1],i=r>>>16,t.g=o>>i,t.e=s-i,t.c=c,65535&r}functiong(t){functionn(t,n,e){varr,i,o,s;for(s=0;t>s;)switch(r=d(this,n)){case16:for(o=3+p(this,2);o--;)e[s++]=i;break;case17:for(o=3+p(this,3);o--;)e[s++]=0;i=0;break;case18:for(o=11+p(this,7);o--;)e[s++]=0;i=0;break;default:i=e[s++]=r}returne}vare,r,o,s,a=p(t,5)+257,c=p(t,5)+1,u=p(t,4)+4,f=new(A?Uint8Array:Array)(V.length);for(s=0;u>s;++s)f[V[s]]=p(t,3);e=i(f),r=new(A?Uint8Array:Array)(a),o=new(A?Uint8Array:Array)(c),t.o(i(n.call(t,a,e,r)),i(n.call(t,c,e,o)))}functionv(t){if("string"==typeoft){varn,e,r=t.split("");for(n=0,e=r.length;e>n;n++)r[n]=(255&r[n].charCodeAt(0))>>>0;t=r}for(vari,o=1,s=0,a=t.length,c=0;a>0;){i=a>1024?1024:a,a-=i;doo+=t[c++],s+=o;while(--i);o%=65521,s%=65521}return(s<<16|o)>>>0}functionm(n,e){varr,i;switch(this.input=n,this.c=0,(e||!(e={}))&&(e.index&&(this.c=e.index),e.verify&&(this.M=e.verify)),r=n[this.c++],i=n[this.c++],15&r){casern:this.method=rn;break;default:t(Error("unsupported compression method"))}0!==((r<<8)+i)%31&&t(Error("invalid fcheck flag:"+((r<<8)+i)%31)),32&i&&t(Error("fdict flag is not supported")),
}functiona(n,e){n?o(n):(E=e,E.nlinks+=1,t.put(E.id,E,s))}functionc(n){n?o(n):t.get(y[w].id,a)}functionu(n,e){n?o(n):(y=e,fn(y).has(w)?o(newCn.EEXIST("newpath resolves to an existing file")):(y[w]=v[p],t.put(m.data,y,c)))}functionf(n,e){n?o(n):(m=e,t.get(m.data,u))}functionl(n,e){n?o(n):(v=e,fn(v).has(p)?r(t,b,f):o(newCn.ENOENT("a component of either path prefix does not exist")))}functionh(n,e){n?o(n):(g=e,t.get(g.data,l))}n=ln(n);varp=pn(n),d=hn(n);i=ln(i);varg,v,m,y,E,w=pn(i),b=hn(i);r(t,d,h)}functionv(t,n,i){functiono(n){n?i(n):(deletel[p],t.put(f.data,l,function(){varn=Date.now();e(t,d,f,{mtime:n,ctime:n},i)}))}functions(n){n?i(n):t.delete(h.data,o)}functiona(r,a){r?i(r):(h=a,h.nlinks-=1,1>h.nlinks?t.delete(h.id,s):t.put(h.id,h,function(){e(t,n,h,{ctime:Date.now()},o)}))}functionc(n,e){n?i(n):(l=e,fn(l).has(p)?t.get(l[p].id,a):i(newCn.ENOENT("a component of the path does not name an existing file")))}functionu(n,e){n?i(n):(f=e,t.get(f.data,c))}n=ln(n);varf,l,h,p=pn(n),d=hn(n);r(t,d,u)}functionm(t,n,e){functioni(t,n){if(t)e(t);else{a=n;varr=Object.keys(a);e(null,r)}}functiono(n,r){n?e(n):(s=r,t.get(s.data,i))}n=ln(n),pn(n);vars,a;r(t,n,o)}functiony(t,n,i,o){functions(n,e){n?o(n):(l=e,t.get(l.data,a))}functiona(t,n){t?o(t):(h=n,fn(h).has(d)?o(newCn.EEXIST):c())}functionc(){p=newFn(void0,yn),p.nlinks+=1,p.size=n.length,p.data=n,t.put(p.id,p,f)}functionu(n){if(n)o(n);else{varr=Date.now();e(t,g,l,{mtime:r,ctime:r},o)}}functionf(n){n?o(n):(h[d]=newMn(p.id,yn),t.put(l.data,h,u))}i=ln(i);varl,h,p,d=pn(i),g=hn(i);wn==d?o(newCn.EEXIST):r(t,g,s)}functionE(t,n,e){functioni(n,r){n?e(n):(a=r,t.get(a.data,o))}functiono(n,r){n?e(n):(c=r,fn(c).has(u)?t.get(c[u].id,s):e(newCn.ENOENT("a component of the path does not name an existing file")))}functions(t,n){t?e(t):n.mode!=yn?e(newCn.EINVAL("path not a symbolic link")):e(null,n.data)}n=ln(n);vara,c,u=pn(n),f=hn(n);r(t,f,i)}functionw(t,n,i,o){functions(n,e){n?o(n):e.mode==mn?o(newCn.EISDIR):(f=e,t.get(f.data,a))}functiona(n,e){if(n)o(n);else{varr=newUint8Array(i);e&&r.set(e.subarray(0,i)),t.put(f.data,r,u)}}functionc(r){if(r)o(r);else{vari=Date.now();e(t,n,f,{mtime:i,ctime:i},o)}}functionu(n){n?o(n):(f.size=i,f.version+=1,t.put(f.id,f,c))}n=ln(n);varf;0>i?o(newCn.EINVAL("length cannot be negative")):r(t,n,s)}functionb(t,n,r,i){functiono(n,e){n?i(n):e.mode==mn?i(newCn.EISDIR):(u=e,t.get(u.data,s))}functions(n,e){if(n)i(n);else{varo=newUint8Array(r);e&&o.set(e.subarray(0,r)),t.put(u.data,o,c)}}functiona(r){if(r)i(r);else{varo=Date.now();e(t,n.path,u,{mtime:o,ctime:o},i)}}functionc(n){n?i(n):(u.size=r,u.version+=1,t.put(u.id,u,a))}varu;0>r?i(newCn.EINVAL("length cannot be negative")):t.get(n.id,o)}function_(t,n,i,o,s){functiona(r,a){r?s(r):e(t,n,a,{atime:i,ctime:o,mtime:o},s)}n=ln(n),"number"!=typeofi||"number"!=typeofo?s(newCn.EINVAL("atime and mtime must be number")):0>i||0>o?s(newCn.EINVAL("atime and mtime must be positive integers")):r(t,n,a)}functionA(t,n,r,i,o){functions(s,a){s?o(s):e(t,n.path,a,{atime:r,ctime:i,mtime:i},o)}"number"!=typeofr||"number"!=typeofi?o(newCn.EINVAL("atime and mtime must be a number")):0>r||0>i?o(newCn.EINVAL("atime and mtime must be positive integers")):t.get(n.id,s)}functionx(t,n,e,r,o,s){n=ln(n),"string"!=typeofe?s(newCn.EINVAL("attribute name must be a string")):e?null!==o&&o!==Tn&&o!==Nn?s(newCn.EINVAL("invalid flag, must be null, XATTR_CREATE or XATTR_REPLACE")):i(t,n,e,r,o,s):s(newCn.EINVAL("attribute name cannot be an empty string"))}functionO(t,n,e,r,o,s){"string"!=typeofe?s(newCn.EINVAL("attribute name must be a string")):e?null!==o&&o!==Tn&&o!==Nn?s(newCn.EINVAL("invalid flag, must be null, XATTR_CREATE or XATTR_REPLACE")):i(t,n,e,r,o,s):s(newCn.EINVAL("attribute name cannot be an empty string"))}functionk(t,n,e,i){functiono(t,n){n?n.xattrs[e]:null,t?i(t):n.xattrs.hasOwnProperty(e)?i(null,n.xattrs[e]):i(newCn.ENOATTR)}n=ln(n),"string"!=typeofe?i(newCn.EINVAL("attribute name must be a string")):e?r(t,n,o):i(newCn.EINVAL("attributenamecannotbeanempty