1 |
- !function(f){typeof module!='undefined'&&typeof exports=='object'?module.exports=f():typeof define!='undefined'&&define.amd?define(['fflate',f]):(typeof self!='undefined'?self:this).fflate=f()}(function(){var _e={};"use strict";var t=(typeof module!='undefined'&&typeof exports=='object'?function(_f){"use strict";var e=eval('require')("worker_threads"),r=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";_f.default=function(t,o,n,s,a){var u=!1,i=new e.Worker(t+r,{eval:!0}).on("error",(function(e){return a(e,null)})).on("message",(function(e){return a(null,e)})).on("exit",(function(e){e&&!u&&a(Error("Exited with code "+e),null)}));return i.postMessage(n,s),i.terminate=function(){return u=!0,e.Worker.prototype.terminate.call(i)},i};return _f}:function(_f){"use strict";var e={};_f.default=function(r,t,n,o,s){var u=e[t]||(e[t]=URL.createObjectURL(new Blob([r],{type:"text/javascript"}))),a=new Worker(u);return a.onerror=function(e){return s(e.error,null)},a.onmessage=function(e){return s(null,e.data)},a.postMessage(n,o),a};return _f})({}),n=Uint8Array,r=Uint16Array,e=Uint32Array,o=function(t,n){for(var r=0;r<32;++r)n[r]=(1<<t[r])-1;return n},i=new n([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),a=o(i,new n(32)),s=new n([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),f=o(s,new r(32)),u=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),l=function(t,n){for(var o=new r(31),i=0;i<31;++i)o[i]=n+=1<<t[i-1];var a=new e(o[30]);for(i=1;i<30;++i)for(var s=o[i];s<o[i+1];++s)a[s]=s-o[i]<<5|i;return[o,a]},c=l(i,2),h=c[0],p=c[1];h[28]=258,p[258]=28;for(var v=l(s,0),d=v[0],g=v[1],y=new r(32768),w=0;w<32768;++w){var x=(2863311530&w)>>>1|(1431655765&w)<<1;y[w]=((4278255360&(x=(4042322160&(x=(3435973836&x)>>>2|(858993459&x)<<2))>>>4|(252645135&x)<<4))>>>8|(16711935&x)<<8)>>>1}var m=function(t,n,e){for(var o=t.length,i=0,a=new r(n);i<o;++i)++a[t[i]-1];var s,f=new r(n);for(i=0;i<n;++i)f[i]=f[i-1]+a[i-1]<<1;if(e){s=new r(1<<n);var u=15-n;for(i=0;i<o;++i)if(t[i])for(var l=i<<4|t[i],c=n-t[i],h=f[t[i]-1]++<<c,p=h|(1<<c)-1;h<=p;++h)s[y[h]>>>u]=l}else for(s=new r(o),i=0;i<o;++i)s[i]=y[f[t[i]-1]++]>>>15-t[i];return s},b=new n(288);for(w=0;w<144;++w)b[w]=8;for(w=144;w<256;++w)b[w]=9;for(w=256;w<280;++w)b[w]=7;for(w=280;w<288;++w)b[w]=8;var z=new n(32);for(w=0;w<32;++w)z[w]=5;var A=m(b,9,0),S=m(b,9,1),M=m(z,5,0),k=m(z,5,1),C=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},D=function(t,n,r){var e=n>>>3;return(t[e]|t[e+1]<<8)>>>(7&n)&r},G=function(t,n){var r=n>>>3;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>>(7&n)},U=function(t){return(t>>>3)+(7&t&&1)},O=function(t,o,i){(null==o||o<0)&&(o=0),(null==i||i>t.length)&&(i=t.length);var a=new(t instanceof r?r:t instanceof e?e:n)(i-o);return a.set(t.subarray(o,i)),a},E=function(t,r,e){var o=!e||e.i;e||(e={});var l=t.length,c=!r||!o;r||(r=new n(3*l));var p=function(t){var e=r.length;if(t>e){var o=new n(Math.max(e<<1,t));o.set(r),r=o}},v=e.f||0,g=e.p||0,y=e.b||0,w=e.l,x=e.d,b=e.m,z=e.n;if(v&&!w)return r;var A=l<<3;do{if(!w){e.f=v=D(t,g,1);var M=D(t,g+1,3);if(g+=3,!M){var E=t[(K=U(g)+4)-4]|t[K-3]<<8,F=K+E;if(F>l){if(o)throw"unexpected EOF";break}c&&p(y+E),r.set(t.subarray(K,F),y),e.b=y+=E,e.p=g=F<<3;continue}if(1==M)w=S,x=k,b=9,z=5;else{if(2!=M)throw"invalid block type";var I=D(t,g,31)+257,Z=D(t,g+5,31)+1,T=D(t,g+10,15)+4,_=I+Z;g+=14;for(var j=new n(_),q=new n(19),H=0;H<T;++H)q[u[H]]=D(t,g+3*H,7);g+=3*T;var Y=C(q),B=(1<<Y)-1;if(!o&&g+_*(Y+7)>A)break;var J=m(q,Y,1);for(H=0;H<_;){var K,L=J[D(t,g,B)];if(g+=15&L,(K=L>>>4)<16)j[H++]=K;else{var N=0,P=0;for(16==K?(P=3+D(t,g,3),g+=2,N=j[H-1]):17==K?(P=3+D(t,g,7),g+=3):18==K&&(P=11+D(t,g,127),g+=7);P--;)j[H++]=N}}var Q=j.subarray(0,I),R=j.subarray(I);b=C(Q),z=C(R),w=m(Q,b,1),x=m(R,z,1)}if(g>A)throw"unexpected EOF"}c&&p(y+131072);for(var V=(1<<b)-1,W=(1<<z)-1,X=b+z+18;o||g+X<A;){var $=(N=w[G(t,g)&V])>>>4;if((g+=15&N)>A)throw"unexpected EOF";if(!N)throw"invalid length/literal";if($<256)r[y++]=$;else{if(256==$){w=null;break}var tt=$-254;$>264&&(tt=D(t,g,a[H=$-257])+h[H],g+=i[H]);var nt=x[G(t,g)&W],rt=nt>>>4;if(!nt)throw"invalid distance";if(g+=15&nt,R=d[rt],rt>3&&(R+=G(t,g)&f[rt],g+=s[rt]),g>A)throw"unexpected EOF";c&&p(y+131072);for(var et=y+tt;y<et;y+=4)r[y]=r[y-R],r[y+1]=r[y+1-R],r[y+2]=r[y+2-R],r[y+3]=r[y+3-R];y=et}}e.l=w,e.p=g,e.b=y,w&&(v=1,e.m=b,e.d=x,e.n=z)}while(!v);return y==r.length?r:O(r,0,y)},F=function(t,n,r){var e=n>>>3;t[e]|=r<<=7&n,t[e+1]|=r>>>8},I=function(t,n,r){var e=n>>>3;t[e]|=r<<=7&n,t[e+1]|=r>>>8,t[e+2]|=r>>>16},Z=function(t,e){for(var o=[],i=0;i<t.length;++i)t[i]&&o.push({s:i,f:t[i]});var a=o.length,s=o.slice();if(!a)return[new n(0),0];if(1==a){var f=new n(o[0].s+1);return f[o[0].s]=1,[f,1]}o.sort((function(t,n){return t.f-n.f})),o.push({s:-1,f:25001});var u=o[0],l=o[1],c=0,h=1,p=2;for(o[0]={s:-1,f:u.f+l.f,l:u,r:l};h!=a-1;)u=o[o[c].f<o[p].f?c++:p++],l=o[c!=h&&o[c].f<o[p].f?c++:p++],o[h++]={s:-1,f:u.f+l.f,l:u,r:l};var v=s[0].s;for(i=1;i<a;++i)s[i].s>v&&(v=s[i].s);var d=new r(v+1),g=T(o[h-1],d,0);if(g>e){i=0;var y=0,w=g-e,x=1<<w;for(s.sort((function(t,n){return d[n.s]-d[t.s]||t.f-n.f}));i<a;++i){var m=s[i].s;if(!(d[m]>e))break;y+=x-(1<<g-d[m]),d[m]=e}for(y>>>=w;y>0;){var b=s[i].s;d[b]<e?y-=1<<e-d[b]++-1:++i}for(;i>=0&&y;--i){var z=s[i].s;d[z]==e&&(--d[z],++y)}g=e}return[new n(d),g]},T=function(t,n,r){return-1==t.s?Math.max(T(t.l,n,r+1),T(t.r,n,r+1)):n[t.s]=r},_=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),o=0,i=t[0],a=1,s=function(t){e[o++]=t},f=1;f<=n;++f)if(t[f]==i&&f!=n)++a;else{if(!i&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=t[f]}return[e.subarray(0,o),n]},j=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},q=function(t,n,r){var e=r.length,o=U(n+2);t[o]=255&e,t[o+1]=e>>>8,t[o+2]=255^t[o],t[o+3]=255^t[o+1];for(var i=0;i<e;++i)t[o+i+4]=r[i];return o+4+e<<3},H=function(t,n,e,o,a,f,l,c,h,p,v){F(n,v++,e),++a[256];for(var d=Z(a,15),g=d[0],y=d[1],w=Z(f,15),x=w[0],S=w[1],k=_(g),C=k[0],D=k[1],G=_(x),U=G[0],O=G[1],E=new r(19),T=0;T<C.length;++T)E[31&C[T]]++;for(T=0;T<U.length;++T)E[31&U[T]]++;for(var H=Z(E,7),Y=H[0],B=H[1],J=19;J>4&&!Y[u[J-1]];--J);var K,L,N,P,Q=p+5<<3,R=j(a,b)+j(f,z)+l,V=j(a,g)+j(f,x)+l+14+3*J+j(E,Y)+(2*E[16]+3*E[17]+7*E[18]);if(Q<=R&&Q<=V)return q(n,v,t.subarray(h,h+p));if(F(n,v,1+(V<R)),v+=2,V<R){K=m(g,y,0),L=g,N=m(x,S,0),P=x;var W=m(Y,B,0);for(F(n,v,D-257),F(n,v+5,O-1),F(n,v+10,J-4),v+=14,T=0;T<J;++T)F(n,v+3*T,Y[u[T]]);v+=3*J;for(var X=[C,U],$=0;$<2;++$){var tt=X[$];for(T=0;T<tt.length;++T)F(n,v,W[nt=31&tt[T]]),v+=Y[nt],nt>15&&(F(n,v,tt[T]>>>5&127),v+=tt[T]>>>12)}}else K=A,L=b,N=M,P=z;for(T=0;T<c;++T)if(o[T]>255){var nt;I(n,v,K[257+(nt=o[T]>>>18&31)]),v+=L[nt+257],nt>7&&(F(n,v,o[T]>>>23&31),v+=i[nt]);var rt=31&o[T];I(n,v,N[rt]),v+=P[rt],rt>3&&(I(n,v,o[T]>>>5&8191),v+=s[rt])}else I(n,v,K[o[T]]),v+=L[o[T]];return I(n,v,K[256]),v+L[256]},Y=new e([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),B=new n(0),J=function(t,o,a,f,u,l){var c=t.length,h=new n(f+c+5*(1+Math.floor(c/7e3))+u),v=h.subarray(f,h.length-u),d=0;if(!o||c<8)for(var y=0;y<=c;y+=65535){var w=y+65535;w<c?d=q(v,d,t.subarray(y,w)):(v[y]=l,d=q(v,d,t.subarray(y,c)))}else{for(var x=Y[o-1],m=x>>>13,b=8191&x,z=(1<<a)-1,A=new r(32768),S=new r(z+1),M=Math.ceil(a/3),k=2*M,C=function(n){return(t[n]^t[n+1]<<M^t[n+2]<<k)&z},D=new e(25e3),G=new r(288),E=new r(32),F=0,I=0,Z=(y=0,0),T=0,_=0;y<c;++y){var j=C(y),J=32767&y,K=S[j];if(A[J]=K,S[j]=J,T<=y){var L=c-y;if((F>7e3||Z>24576)&&L>423){d=H(t,v,0,D,G,E,I,Z,_,y-_,d),Z=F=I=0,_=y;for(var N=0;N<286;++N)G[N]=0;for(N=0;N<30;++N)E[N]=0}var P=2,Q=0,R=b,V=J-K&32767;if(L>2&&j==C(y-V))for(var W=Math.min(m,L)-1,X=Math.min(32767,y),$=Math.min(258,L);V<=X&&--R&&J!=K;){if(t[y+P]==t[y+P-V]){for(var tt=0;tt<$&&t[y+tt]==t[y+tt-V];++tt);if(tt>P){if(P=tt,Q=V,tt>W)break;var nt=Math.min(V,tt-2),rt=0;for(N=0;N<nt;++N){var et=y-V+N+32768&32767,ot=et-A[et]+32768&32767;ot>rt&&(rt=ot,K=et)}}}V+=(J=K)-(K=A[J])+32768&32767}if(Q){D[Z++]=268435456|p[P]<<18|g[Q];var it=31&p[P],at=31&g[Q];I+=i[it]+s[at],++G[257+it],++E[at],T=y+P,++F}else D[Z++]=t[y],++G[t[y]]}}d=H(t,v,l,D,G,E,I,Z,_,y-_,d),l||(d=q(v,d,B))}return O(h,0,f+U(d)+u)},K=new e(256);for(w=0;w<256;++w){for(var L=w,N=9;--N;)L=(1&L&&3988292384)^L>>>1;K[w]=L}var P=function(){var t=4294967295;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=K[255&r^n[e]]^r>>>8;t=r},d:function(){return 4294967295^t}}},Q=function(){var t=1,n=0;return{p:function(r){for(var e=t,o=n,i=r.length,a=0;a!=i;){for(var s=Math.min(a+5552,i);a<s;++a)o+=e+=r[a];e%=65521,o%=65521}t=e,n=o},d:function(){return(255&t)<<24|t>>>8<<16|(255&n)<<8|n>>>8}}},R=function(t,n,r,e,o){return J(t,null==n.level?6:n.level,null==n.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+n.mem,r,e,!o)},V=function(t,n){var r={};for(var e in t)r[e]=t[e];for(var e in n)r[e]=n[e];return r},W=function(t,n,r){for(var e=t(),o=""+t,i=o.slice(o.indexOf("[")+1,o.lastIndexOf("]")).replace(/ /g,"").split(","),a=0;a<e.length;++a){var s=e[a],f=i[a];if("function"==typeof s){n+=";"+f+"=";var u=""+s;if(s.prototype)if(-1!=u.indexOf("[native code]"))n+=u.slice(9,u.indexOf("(",11));else for(var l in n+=u,s.prototype)n+=";"+f+".prototype."+l+"="+s.prototype[l];else n+=u}else r[f]=s}return[n,r]},X=function(t){for(var n in t.data[0])self[n]=t.data[0][n];onmessage=Function("return "+t.data[1])()},$=[],tt=function(t){var o=[];for(var i in t)(t[i]instanceof n||t[i]instanceof r||t[i]instanceof e)&&o.push((t[i]=new t[i].constructor(t[i])).buffer);return o},nt=function(n,r,e,o){var i;if(!$[e]){for(var a="",s={},f=n.length-1,u=0;u<f;++u)a=(i=W(n[u],a,s))[0],s=i[1];$[e]=W(n[f],a,s)}var l=V({},$[e][1]);return t.default($[e][0]+";onmessage="+X,e,[l,""+r],tt(l),o)},rt=function(){return[n,r,i,a,s,f,u,h,d,S,k,y,m,C,D,G,U,O,E,Ut,ft,ut]},et=function(){return[n,r,e,i,s,u,p,g,A,b,M,z,y,Y,B,m,F,I,Z,T,_,j,q,H,U,O,J,R,kt,ft]},ot=function(){return[gt,xt,dt,P,K]},it=function(){return[yt,wt]},at=function(){return[mt,dt,Q]},st=function(){return[bt]},ft=function(t){return postMessage(t,[t.buffer])},ut=function(t){return t&&t.size&&new n(t.size)},lt=function(t,r,e,o,i,a){var s=nt(e,o,i,(function(t,n){s.terminate(),a(t,n)}));return r.consume||(t=new n(t)),s.postMessage([t,r],[t.buffer]),function(){s.terminate()}},ct=function(t){return t.ondata=function(t,n){return postMessage([t,n],[t.buffer])},function(n){return t.push(n.data[0],n.data[1])}},ht=function(t,n,r,e,o){var i,a=nt(t,e,o,(function(t,r){t?(a.terminate(),n.ondata.call(n,t)):(r[1]&&a.terminate(),n.ondata.call(n,t,r[0],r[1]))}));a.postMessage(r),n.push=function(t,r){if(i)throw"stream finished";if(!n.ondata)throw"no stream handler";a.postMessage([t,i=r],[t.buffer])},n.terminate=function(){a.terminate()}},pt=function(t,n){return t[n]|t[n+1]<<8},vt=function(t,n){return t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24},dt=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},gt=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&dt(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},yt=function(t){if(31!=t[0]||139!=t[1]||8!=t[2])throw"invalid gzip data";var n=t[3],r=10;4&n&&(r+=t[10]|2+(t[11]<<8));for(var e=(n>>3&1)+(n>>4&1);e>0;e-=!t[r++]);return r+(2&n)},wt=function(t){var n=t.length;return t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24},xt=function(t){return 10+(t.filename&&t.filename.length+1||0)},mt=function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;t[0]=120,t[1]=e<<6|(e?32-2*e:1)},bt=function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"};function zt(t,n){return n||"function"!=typeof t||(n=t,t={}),this.ondata=n,t}var At=function(){function t(t,n){n||"function"!=typeof t||(n=t,t={}),this.ondata=n,this.o=t||{}}return t.prototype.p=function(t,n){this.ondata(R(t,this.o,0,0,!n),n)},t.prototype.push=function(t,n){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=n,this.p(t,n||!1)},t}();_e.Deflate=At;var St=function(t,n){ht([et,function(){return[ct,At]}],this,zt.call(this,t,n),(function(t){var n=new At(t.data);onmessage=ct(n)}),6)};function Mt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return lt(t,n,[et],(function(t){return ft(kt(t.data[0],t.data[1]))}),0,r)}function kt(t,n){return void 0===n&&(n={}),R(t,n,0,0)}_e.AsyncDeflate=St,_e.deflate=Mt,_e.deflateSync=kt;var Ct=function(){function t(t){this.s={},this.p=new n(0),this.ondata=t}return t.prototype.e=function(t){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var r=this.p.length,e=new n(r+t.length);e.set(this.p),e.set(t,r),this.p=e},t.prototype.c=function(t,n){this.d=this.s.i=n;var r=this.s.b,e=E(this.p,this.o,this.s);this.ondata(O(e,r,this.s.b),n||!1),this.o=O(e,this.s.b-32768),this.s.b=32768,this.p=O(this.p,this.s.p>>>3),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(t,n)},t}();_e.Inflate=Ct;var Dt=function(t){this.ondata=t,ht([rt,function(){return[ct,Ct]}],this,0,(function(){var t=new Ct;onmessage=ct(t)}),7)};function Gt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return lt(t,n,[rt],(function(t){return ft(Ut(t.data[0],ut(t.data[1])))}),1,r)}function Ut(t,n){return E(t,n)}_e.AsyncInflate=Dt,_e.inflate=Gt,_e.inflateSync=Ut;var Ot=function(){function t(t,n){this.c=P(),this.l=0,this.v=1,At.call(this,t,n)}return t.prototype.push=function(t,n){At.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t),this.l+=t.length;var r=R(t,this.o,this.v&&xt(this.o),n&&8,!n);this.v&&(gt(r,this.o),this.v=0),n&&(dt(r,r.length-8,this.c.d()),dt(r,r.length-4,this.l)),this.ondata(r,n)},t}();_e.Gzip=Ot,_e.Compress=Ot;var Et=function(t,n){ht([et,ot,function(){return[ct,At,Ot]}],this,zt.call(this,t,n),(function(t){var n=new Ot(t.data);onmessage=ct(n)}),8)};function Ft(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return lt(t,n,[et,ot,function(){return[It]}],(function(t){return ft(It(t.data[0],t.data[1]))}),2,r)}function It(t,n){void 0===n&&(n={});var r=P(),e=t.length;r.p(t);var o=R(t,n,xt(n),8),i=o.length;return gt(o,n),dt(o,i-8,r.d()),dt(o,i-4,e),o}_e.AsyncGzip=Et,_e.AsyncCompress=Et,_e.gzip=Ft,_e.compress=Ft,_e.gzipSync=It,_e.compressSync=It;var Zt=function(){function t(t){this.v=1,Ct.call(this,t)}return t.prototype.push=function(t,n){if(Ct.prototype.e.call(this,t),this.v){var r=yt(this.p);if(r>=this.p.length&&!n)return;this.p=this.p.subarray(r),this.v=0}if(n){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Ct.prototype.c.call(this,t,n)},t}();_e.Gunzip=Zt;var Tt=function(t){this.ondata=t,ht([rt,it,function(){return[ct,Ct,Zt]}],this,0,(function(){var t=new Zt;onmessage=ct(t)}),9)};function _t(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return lt(t,n,[rt,it,function(){return[jt]}],(function(t){return ft(jt(t.data[0]))}),3,r)}function jt(t,r){return E(t.subarray(yt(t),-8),r||new n(wt(t)))}_e.AsyncGunzip=Tt,_e.gunzip=_t,_e.gunzipSync=jt;var qt=function(){function t(t,n){this.c=Q(),this.v=1,At.call(this,t,n)}return t.prototype.push=function(t,n){At.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t);var r=R(t,this.o,this.v&&2,n&&4,!n);this.v&&(mt(r,this.o),this.v=0),n&&dt(r,r.length-4,this.c.d()),this.ondata(r,n)},t}();_e.Zlib=qt;var Ht=function(t,n){ht([et,at,function(){return[ct,At,qt]}],this,zt.call(this,t,n),(function(t){var n=new qt(t.data);onmessage=ct(n)}),10)};function Yt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return lt(t,n,[et,at,function(){return[Bt]}],(function(t){return ft(Bt(t.data[0],t.data[1]))}),4,r)}function Bt(t,n){void 0===n&&(n={});var r=Q();r.p(t);var e=R(t,n,2,4);return mt(e,n),dt(e,e.length-4,r.d()),e}_e.AsyncZlib=Ht,_e.zlib=Yt,_e.zlibSync=Bt;var Jt=function(){function t(t){this.v=1,Ct.call(this,t)}return t.prototype.push=function(t,n){if(Ct.prototype.e.call(this,t),this.v){if(this.p.length<2&&!n)return;this.p=this.p.subarray(2),this.v=0}if(n){if(this.p.length<8)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Ct.prototype.c.call(this,t,n)},t}();_e.Unzlib=Jt;var Kt=function(t){this.ondata=t,ht([rt,st,function(){return[ct,Ct,Jt]}],this,0,(function(){var t=new Jt;onmessage=ct(t)}),11)};function Lt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return lt(t,n,[rt,st,function(){return[Nt]}],(function(t){return ft(Nt(t.data[0],ut(t.data[1])))}),5,r)}function Nt(t,n){return E((bt(t),t.subarray(2,-4)),n)}_e.AsyncUnzlib=Kt,_e.unzlib=Lt,_e.unzlibSync=Nt;var Pt=function(){function t(t){this.G=Zt,this.I=Ct,this.Z=Jt,this.ondata=t}return t.prototype.push=function(t,r){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(t,r);else{if(this.p&&this.p.length){var e=new n(this.p.length+t.length);e.set(this.p),e.set(t,this.p.length)}else this.p=t;if(this.p.length>2){var o=this,i=function(){o.ondata.apply(o,arguments)};this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(i):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(i):new this.Z(i),this.s.push(this.p,r),this.p=null}}},t}();_e.Decompress=Pt;var Qt=function(){function t(t){this.G=Tt,this.I=Dt,this.Z=Kt,this.ondata=t}return t.prototype.push=function(t,n){Pt.prototype.push.call(this,t,n)},t}();function Rt(t,n,r){if(r||(r=n,n={}),"function"!=typeof r)throw"no callback";return 31==t[0]&&139==t[1]&&8==t[2]?_t(t,n,r):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?Gt(t,n,r):Lt(t,n,r)}function Vt(t,n){return 31==t[0]&&139==t[1]&&8==t[2]?jt(t,n):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?Ut(t,n):Nt(t,n)}_e.AsyncDecompress=Qt,_e.decompress=Rt,_e.decompressSync=Vt;var Wt=function(t,r,e,o){for(var i in t){var a=t[i],s=r+i;a instanceof n?e[s]=[a,o]:Array.isArray(a)?e[s]=[a[0],V(o,a[1])]:Wt(a,s+"/",e,o)}};function Xt(t,r){var e=t.length;if(!r&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(t);for(var o=new n(t.length+(t.length>>>1)),i=0,a=function(t){o[i++]=t},s=0;s<e;++s){if(i+5>o.length){var f=new n(i+8+(e-s<<1));f.set(o),o=f}var u=t.charCodeAt(s);u<128||r?a(u):u<2048?(a(192|u>>>6),a(128|63&u)):u>55295&&u<57344?(a(240|(u=65536+(1047552&u)|1023&t.charCodeAt(++s))>>>18),a(128|u>>>12&63),a(128|u>>>6&63),a(128|63&u)):(a(224|u>>>12),a(128|u>>>6&63),a(128|63&u))}return O(o,0,i)}function $t(t,n){var r="";if(!n&&"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(t);for(var e=0;e<t.length;){var o=t[e++];o<128||n?r+=String.fromCharCode(o):o<224?r+=String.fromCharCode((31&o)<<6|63&t[e++]):o<240?r+=String.fromCharCode((15&o)<<12|(63&t[e++])<<6|63&t[e++]):(o=((15&o)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,r+=String.fromCharCode(55296|o>>10,56320|1023&o))}return r}_e.strToU8=Xt,_e.strFromU8=$t;var tn=function(t,n){var r=pt(t,n+6),e=4&r,o=pt(t,n+8),i=e?null:vt(t,n+18),a=e?null:vt(t,n+22),s=pt(t,n+26),f=pt(t,n+28);return[i,o,a,$t(t.subarray(n+=30,n+=s),!(2048&r)),n+f]},nn=function(t,n,r,e,o,i,a,s,f,u){var l=i.length,c=e.length;dt(t,n,null!=f?33639248:67324752),n+=4,null!=f&&(t[n]=20,n+=2),t[n]=20,n+=2,t[n++]=8==u&&(1==s.level?6:s.level<6?4:9==s.level?2:0),t[n++]=a&&8,t[n]=u,n+=2;var h=new Date(s.mtime||Date.now()),p=h.getFullYear()-1980;if(p<0||p>119)throw"date not in range 1980-2099";dt(t,n,p<<25|h.getMonth()+1<<21|h.getDate()<<16|h.getHours()<<11|h.getMinutes()<<5|h.getSeconds()>>>1),dt(t,n+=4,r),dt(t,n+4,c),dt(t,n+8,o),dt(t,n+12,l),n+=16,null!=f&&(dt(t,n+=10,f),n+=4),t.set(i,n),n+=l,null==f&&t.set(e,n)},rn=function(t,n,r,e,o){dt(t,n,101010256),dt(t,n+8,r),dt(t,n+10,r),dt(t,n+12,e),dt(t,n+16,o)};function en(t,r,e){if(e||(e=r,r={}),"function"!=typeof e)throw"no callback";var o={};Wt(t,"",o,r);var i=Object.keys(o),a=i.length,s=0,f=0,u=a,l=Array(a),c=[],h=function(){for(var t=0;t<c.length;++t)c[t]()},p=function(){var t=new n(f+22),r=s,o=f-s;f=0;for(var i=0;i<u;++i){var a=l[i];nn(t,f,a.c,a.d,a.m,a.n,a.u,a.p,null,a.t),nn(t,s,a.c,a.d,a.m,a.n,a.u,a.p,f,a.t),s+=46+a.n.length,f+=30+a.n.length+a.d.length}rn(t,s,l.length,o,r),e(null,t)};a||p();for(var v=function(t){var n=i[t],u=o[n],v=u[0],d=u[1],g=P(),y=v.length;g.p(v);var w=Xt(n),x=w.length,m=0==d.level?0:8,b=function(r,o){if(r)h(),e(r,null);else{var i=o.length;l[t]={t:m,d:o,m:y,c:g.d(),u:n.length!=i,n:w,p:d},s+=30+x+i,f+=76+2*x+i,--a||p()}};if(w.length>65535&&b(Error("filename too long"),null),m)if(y<16e4)try{b(null,kt(v,r))}catch(t){b(t,null)}else c.push(Mt(v,r,b));else b(null,v)},d=0;d<u;++d)v(d);return h}function on(t,r){void 0===r&&(r={});var e={},o=[];Wt(t,"",e,r);var i=0,a=0;for(var s in e){var f=e[s],u=f[0],l=f[1],c=0==l.level?0:8,h=Xt(s),p=h.length;if(h.length>65535)throw"filename too long";var v=c?kt(u,l):u,d=v.length,g=P();g.p(u),o.push({t:c,d:v,m:u.length,c:g.d(),u:s.length!=p,n:h,o:i,p:l}),i+=30+p+d,a+=76+2*p+d}for(var y=new n(a+22),w=i,x=a-i,m=0;m<o.length;++m){var b=o[m];nn(y,b.o,b.c,b.d,b.m,b.n,b.u,b.p,null,b.t),nn(y,i,b.c,b.d,b.m,b.n,b.u,b.p,b.o,b.t),i+=46+b.n.length}return rn(y,i,o.length,x,w),y}function an(t,r){if("function"!=typeof r)throw"no callback";for(var e=[],o=function(){for(var t=0;t<e.length;++t)e[t]()},i={},a=t.length-22;101010256!=vt(t,a);--a)if(!a||t.length-a>65558)return void r(Error("invalid zip file"),null);var s=pt(t,a+8);s||r(null,{});for(var f=s,u=vt(t,a+16),l=function(e){var a=vt(t,u+42);u+=46+pt(t,u+28)+pt(t,u+30)+pt(t,u+32);var f=tn(t,a),l=f[0],c=f[1],h=f[2],p=f[3],v=f[4],d=function(t,n){t?(o(),r(t,null)):(i[p]=n,--s||r(null,i))};if(c){if(8!=c)throw"unknown compression type "+c;var g=t.subarray(v,l?v+l:t.length);if(l<32e4)try{d(null,Ut(g,null!=h&&new n(h)))}catch(t){d(t,null)}else Gt(g,{size:h},d)}else d(null,O(t,v,v+l))},c=0;c<f;++c)l();return o}function sn(t){for(var r={},e=t.length-22;101010256!=vt(t,e);--e)if(!e||t.length-e>65558)throw"invalid zip file";var o=pt(t,e+8);if(!o)return{};for(var i=vt(t,e+16),a=0;a<o;++a){var s=vt(t,i+42);i+=46+pt(t,i+28)+pt(t,i+30)+pt(t,i+32);var f=tn(t,s),u=f[0],l=f[1],c=f[2],h=f[3],p=f[4];if(l){if(8!=l)throw"unknown compression type "+l;r[h]=Ut(t.subarray(p,u?p+u:t.length),null!=c&&new n(c))}else r[h]=O(t,p,p+u)}return r}_e.zip=en,_e.zipSync=on,_e.unzip=an,_e.unzipSync=sn;return _e})
|