define(["./RuntimeError-346a3079","./when-4bbc8319","./createTaskProcessorWorker"],function(k,i,e){"use strict";function u(e,t){if(u.passThroughDataForTesting)return t;var i=e.byteLength;if(0===i||i%4!=0)throw new k.RuntimeError("The length of key must be greater than 0 and a multiple of 4.");var r=new DataView(t),n=r.getUint32(0,!0);if(1953029805===n||2917034100===n)return t;for(var a,o=new DataView(e),s=0,f=t.byteLength,l=f-f%8,d=i,h=8;s>>16&65535|0,o=0;0!==i;){for(i-=o=2e3>>1:i>>>1;e[t]=i}return e}();var R=function(e,t,i,r){var n=s,a=r+i;e^=-1;for(var o=r;o>>8^n[255&(e^t[o])];return-1^e},C=30,I=12,V=15,P=852,O=592,M=0,j=1,H=2,N=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],L=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Y=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],F=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],z=function(e,t,i,r,n,a,o,s){for(var f,l,d,h,u,c,w,b,m,g=s.bits,v=0,k=0,p=0,y=0,_=0,x=0,B=0,E=0,A=0,T=0,U=null,S=0,R=new D.Buf16(V+1),C=new D.Buf16(V+1),I=null,z=0,v=0;v<=V;v++)R[v]=0;for(k=0;kc?(b=I[z+o[k]],U[S+o[k]]):(b=96,0),f=1<<(w=v-B),p=l=1<>B)+(l-=f)]=w<<24|b<<16|m|0,0!==l;);for(f=1<>=1;if(0!==f?(T&=f-1,T+=f):T=0,k++,0==--R[v]){if(v===y)break;v=t[i+o[k]]}if(_>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function o(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new D.Buf16(320),this.work=new D.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function f(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=W,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new D.Buf32(n),t.distcode=t.distdyn=new D.Buf32(a),t.sane=1,t.back=-1,Q):q}function l(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,f(e)):q}function d(e,t){var i,r;return e&&e.state?(r=e.state,t<0?(i=0,t=-t):(i=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=n.wsize?(D.arraySet(n.window,t,i-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):(r<(e=n.wsize-n.wnext)&&(e=r),D.arraySet(n.window,t,i-r,e,n.wnext),(r-=e)?(D.arraySet(n.window,t,i-r,r,0),n.wnext=r,n.whave=n.wsize):(n.wnext+=e,n.wnext===n.wsize&&(n.wnext=0),n.whave>>8&255,i.check=R(i.check,T,2,0),d=l=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&l)<<8)+(l>>8))%31){e.msg="incorrect header check",i.mode=30;break}if(8!=(15&l)){e.msg="unknown compression method",i.mode=30;break}if(d-=4,_=8+(15&(l>>>=4)),0===i.wbits)i.wbits=_;else if(_>i.wbits){e.msg="invalid window size",i.mode=30;break}i.dmax=1<<_,e.adler=i.check=1,i.mode=512&l?10:12,d=l=0;break;case 2:for(;d<16;){if(0===s)break e;s--,l+=r[a++]<>8&1),512&i.flags&&(T[0]=255&l,T[1]=l>>>8&255,i.check=R(i.check,T,2,0)),d=l=0,i.mode=3;case 3:for(;d<32;){if(0===s)break e;s--,l+=r[a++]<>>8&255,T[2]=l>>>16&255,T[3]=l>>>24&255,i.check=R(i.check,T,4,0)),d=l=0,i.mode=4;case 4:for(;d<16;){if(0===s)break e;s--,l+=r[a++]<>8),512&i.flags&&(T[0]=255&l,T[1]=l>>>8&255,i.check=R(i.check,T,2,0)),d=l=0,i.mode=5;case 5:if(1024&i.flags){for(;d<16;){if(0===s)break e;s--,l+=r[a++]<>>8&255,i.check=R(i.check,T,2,0)),d=l=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&((c=s<(c=i.length)?s:c)&&(i.head&&(_=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),D.arraySet(i.head.extra,r,a,c,_)),512&i.flags&&(i.check=R(i.check,r,c,a)),s-=c,a+=c,i.length-=c),i.length))break e;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===s)break e;for(c=0;_=r[a+c++],i.head&&_&&i.length<65536&&(i.head.name+=String.fromCharCode(_)),_&&c>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=12;break;case 10:for(;d<32;){if(0===s)break e;s--,l+=r[a++]<>>=7&d,d-=7&d,i.mode=27;break}for(;d<3;){if(0===s)break e;s--,l+=r[a++]<>>=1)){case 0:i.mode=14;break;case 1:if(!function(e){if($){var t;for(X=new D.Buf32(512),Z=new D.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(z(G,e.lens,0,288,X,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;z(K,e.lens,0,32,Z,0,e.work,{bits:5}),$=!1}e.lencode=X,e.lenbits=9,e.distcode=Z,e.distbits=5}(i),i.mode=20,6!==t)break;l>>>=2,d-=2;break e;case 2:i.mode=17;break;case 3:e.msg="invalid block type",i.mode=30}l>>>=2,d-=2;break;case 14:for(l>>>=7&d,d-=7&d;d<32;){if(0===s)break e;s--,l+=r[a++]<>>16^65535)){e.msg="invalid stored block lengths",i.mode=30;break}if(i.length=65535&l,d=l=0,i.mode=15,6===t)break e;case 15:i.mode=16;case 16:if(c=i.length){if(0===(c=f<(c=s>>=5,d-=5,i.ndist=1+(31&l),l>>>=5,d-=5,i.ncode=4+(15&l),l>>>=4,d-=4,286>>=3,d-=3}for(;i.have<19;)i.lens[U[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,B={bits:i.lenbits},x=z(0,i.lens,0,19,i.lencode,0,i.work,B),i.lenbits=B.bits,x){e.msg="invalid code lengths set",i.mode=30;break}i.have=0,i.mode=19;case 19:for(;i.have>>16&255,v=65535&A,!((m=A>>>24)<=d);){if(0===s)break e;s--,l+=r[a++]<>>=m,d-=m,i.lens[i.have++]=v;else{if(16===v){for(E=m+2;d>>=m,d-=m,0===i.have){e.msg="invalid bit length repeat",i.mode=30;break}_=i.lens[i.have-1],c=3+(3&l),l>>>=2,d-=2}else if(17===v){for(E=m+3;d>>=m)),l>>>=3,d-=3}else{for(E=m+7;d>>=m)),l>>>=7,d-=7}if(i.have+c>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=30;break}for(;c--;)i.lens[i.have++]=_}}if(30===i.mode)break;if(0===i.lens[256]){e.msg="invalid code -- missing end-of-block",i.mode=30;break}if(i.lenbits=9,B={bits:i.lenbits},x=z(G,i.lens,0,i.nlen,i.lencode,0,i.work,B),i.lenbits=B.bits,x){e.msg="invalid literal/lengths set",i.mode=30;break}if(i.distbits=6,i.distcode=i.distdyn,B={bits:i.distbits},x=z(K,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,B),i.distbits=B.bits,x){e.msg="invalid distances set",i.mode=30;break}if(i.mode=20,6===t)break e;case 20:i.mode=21;case 21:if(6<=s&&258<=f){e.next_out=o,e.avail_out=f,e.next_in=a,e.avail_in=s,i.hold=l,i.bits=d,function(e,t){var i,r,n,a,o,s,f=e.state,l=e.next_in,d=e.input,h=l+(e.avail_in-5),u=e.next_out,c=e.output,w=u-(t-e.avail_out),b=u+(e.avail_out-257),m=f.dmax,g=f.wsize,v=f.whave,k=f.wnext,p=f.window,y=f.hold,_=f.bits,x=f.lencode,B=f.distcode,E=(1<>>=r=i>>>24,_-=r,0===(r=i>>>16&255))c[u++]=65535&i;else{if(!(16&r)){if(0==(64&r)){i=x[(65535&i)+(y&(1<>>=r,_-=r),_<15&&(y+=d[l++]<<_,_+=8,y+=d[l++]<<_,_+=8),i=B[y&A];r:for(;;){if(y>>>=r=i>>>24,_-=r,!(16&(r=i>>>16&255))){if(0==(64&r)){i=B[(65535&i)+(y&(1<>>=r,_-=r,(r=u-w)>3)<<3))-1,e.next_in=l-=n,e.next_out=u,e.avail_in=l>>16&255,v=65535&A,!((m=A>>>24)<=d);){if(0===s)break e;s--,l+=r[a++]<>k)])>>>16&255,v=65535&A,!(k+(m=A>>>24)<=d);){if(0===s)break e;s--,l+=r[a++]<>>=k,d-=k,i.back+=k}if(l>>>=m,d-=m,i.back+=m,i.length=v,0===g){i.mode=26;break}if(32&g){i.back=-1,i.mode=12;break}if(64&g){e.msg="invalid literal/length code",i.mode=30;break}i.extra=15&g,i.mode=22;case 22:if(i.extra){for(E=i.extra;d>>=i.extra,d-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;g=(A=i.distcode[l&(1<>>16&255,v=65535&A,!((m=A>>>24)<=d);){if(0===s)break e;s--,l+=r[a++]<>k)])>>>16&255,v=65535&A,!(k+(m=A>>>24)<=d);){if(0===s)break e;s--,l+=r[a++]<>>=k,d-=k,i.back+=k}if(l>>>=m,d-=m,i.back+=m,64&g){e.msg="invalid distance code",i.mode=30;break}i.offset=v,i.extra=15&g,i.mode=24;case 24:if(i.extra){for(E=i.extra;d>>=i.extra,d-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=30;break}i.mode=25;case 25:if(0===f)break e;if(i.offset>(c=u-f)){if((c=i.offset-c)>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=30;break}w=c>i.wnext?(c-=i.wnext,i.wsize-c):i.wnext-c,c>i.length&&(c=i.length),b=i.window}else b=n,w=o-i.offset,c=i.length;for(f-=c=f>>6:(i<65536?t[n++]=224|i>>>12:(t[n++]=240|i>>>18,t[n++]=128|i>>>12&63),t[n++]=128|i>>>6&63),t[n++]=128|63&i);return t},_=function(e){for(var t=new D.Buf8(e.length),i=0,r=t.length;i>10&1023,a[o++]=56320|1023&i)}return v(a,o)},B=function(e,t){for(var i=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=i&&128==(192&e[i]);)i--;return!(i<0)&&0!==i&&i+m[e[i]]>t?i:t},E=0,A=2,T=4,U=0,te=1,ie=2,re=-5,ne={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};var ae=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};var oe=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},se=Object.prototype.toString;function fe(e){if(!(this instanceof fe))return new fe(e);this.options=D.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15