| 12345678910 |
- "use strict";var LZMA=LZMA||{};"object"==typeof module&&(module.exports=LZMA),LZMA.OutWindow=function(){this._windowSize=0},LZMA.OutWindow.prototype.create=function(e){this._buffer&&this._windowSize===e||(this._buffer=[]),this._windowSize=e,this._pos=0,this._streamPos=0},LZMA.OutWindow.prototype.flush=function(){var e=this._pos-this._streamPos;if(0!==e){for(;e--;)this._stream.writeByte(this._buffer[this._streamPos++]);this._pos>=this._windowSize&&(this._pos=0),this._streamPos=this._pos}},LZMA.OutWindow.prototype.releaseStream=function(){this.flush(),this._stream=null},LZMA.OutWindow.prototype.setStream=function(e){this.releaseStream(),this._stream=e},LZMA.OutWindow.prototype.init=function(e){e||(this._streamPos=0,this._pos=0)},LZMA.OutWindow.prototype.copyBlock=function(e,t){var r=this._pos-e-1;for(r<0&&(r+=this._windowSize);t--;)r>=this._windowSize&&(r=0),this._buffer[this._pos++]=this._buffer[r++],this._pos>=this._windowSize&&this.flush()},LZMA.OutWindow.prototype.putByte=function(e){this._buffer[this._pos++]=e,this._pos>=this._windowSize&&this.flush()},LZMA.OutWindow.prototype.getByte=function(e){var t=this._pos-e-1;return t<0&&(t+=this._windowSize),this._buffer[t]},LZMA.RangeDecoder=function(){},LZMA.RangeDecoder.prototype.setStream=function(e){this._stream=e},LZMA.RangeDecoder.prototype.releaseStream=function(){this._stream=null},LZMA.RangeDecoder.prototype.init=function(){var e=5;for(this._code=0,this._range=-1;e--;)this._code=this._code<<8|this._stream.readByte()},LZMA.RangeDecoder.prototype.decodeDirectBits=function(e){for(var t,r=0,i=e;i--;)this._range>>>=1,t=this._code-this._range>>>31,this._code-=this._range&t-1,r=r<<1|1-t,0==(4278190080&this._range)&&(this._code=this._code<<8|this._stream.readByte(),this._range<<=8);return r},LZMA.RangeDecoder.prototype.decodeBit=function(e,t){var r=e[t],i=(this._range>>>11)*r;return(2147483648^this._code)<(2147483648^i)?(this._range=i,e[t]+=2048-r>>>5,0==(4278190080&this._range)&&(this._code=this._code<<8|this._stream.readByte(),this._range<<=8),0):(this._range-=i,this._code-=i,e[t]-=r>>>5,0==(4278190080&this._range)&&(this._code=this._code<<8|this._stream.readByte(),this._range<<=8),1)},LZMA.initBitModels=function(e,t){for(;t--;)e[t]=1024},LZMA.BitTreeDecoder=function(e){this._models=[],this._numBitLevels=e},LZMA.BitTreeDecoder.prototype.init=function(){LZMA.initBitModels(this._models,1<<this._numBitLevels)},LZMA.BitTreeDecoder.prototype.decode=function(e){for(var t=1,r=this._numBitLevels;r--;)t=t<<1|e.decodeBit(this._models,t);return t-(1<<this._numBitLevels)},LZMA.BitTreeDecoder.prototype.reverseDecode=function(e){for(var t,r=1,i=0,n=0;n<this._numBitLevels;++n)r=r<<1|(t=e.decodeBit(this._models,r)),i|=t<<n;return i},LZMA.reverseDecode2=function(e,t,r,i){for(var n,a=1,s=0,o=0;o<i;++o)a=a<<1|(n=r.decodeBit(e,t+a)),s|=n<<o;return s},LZMA.LenDecoder=function(){this._choice=[],this._lowCoder=[],this._midCoder=[],this._highCoder=new LZMA.BitTreeDecoder(8),this._numPosStates=0},LZMA.LenDecoder.prototype.create=function(e){for(;this._numPosStates<e;++this._numPosStates)this._lowCoder[this._numPosStates]=new LZMA.BitTreeDecoder(3),this._midCoder[this._numPosStates]=new LZMA.BitTreeDecoder(3)},LZMA.LenDecoder.prototype.init=function(){var e=this._numPosStates;for(LZMA.initBitModels(this._choice,2);e--;)this._lowCoder[e].init(),this._midCoder[e].init();this._highCoder.init()},LZMA.LenDecoder.prototype.decode=function(e,t){return 0===e.decodeBit(this._choice,0)?this._lowCoder[t].decode(e):0===e.decodeBit(this._choice,1)?8+this._midCoder[t].decode(e):16+this._highCoder.decode(e)},LZMA.Decoder2=function(){this._decoders=[]},LZMA.Decoder2.prototype.init=function(){LZMA.initBitModels(this._decoders,768)},LZMA.Decoder2.prototype.decodeNormal=function(e){var t=1;do{t=t<<1|e.decodeBit(this._decoders,t)}while(t<256);return 255&t},LZMA.Decoder2.prototype.decodeWithMatchByte=function(e,t){var r,i,n=1;do{if(r=t>>7&1,t<<=1,n=n<<1|(i=e.decodeBit(this._decoders,(1+r<<8)+n)),r!==i){for(;n<256;)n=n<<1|e.decodeBit(this._decoders,n);break}}while(n<256);return 255&n},LZMA.LiteralDecoder=function(){},LZMA.LiteralDecoder.prototype.create=function(e,t){var r;if(!this._coders||this._numPrevBits!==t||this._numPosBits!==e)for(this._numPosBits=e,this._posMask=(1<<e)-1,this._numPrevBits=t,this._coders=[],r=1<<this._numPrevBits+this._numPosBits;r--;)this._coders[r]=new LZMA.Decoder2},LZMA.LiteralDecoder.prototype.init=function(){for(var e=1<<this._numPrevBits+this._numPosBits;e--;)this._coders[e].init()},LZMA.LiteralDecoder.prototype.getDecoder=function(e,t){return this._coders[((e&this._posMask)<<this._numPrevBits)+((255&t)>>>8-this._numPrevBits)]},LZMA.Decoder=function(){this._outWindow=new LZMA.OutWindow,this._rangeDecoder=new LZMA.RangeDecoder,this._isMatchDecoders=[],this._isRepDecoders=[],this._isRepG0Decoders=[],this._isRepG1Decoders=[],this._isRepG2Decoders=[],this._isRep0LongDecoders=[],this._posSlotDecoder=[],this._posDecoders=[],this._posAlignDecoder=new LZMA.BitTreeDecoder(4),this._lenDecoder=new LZMA.LenDecoder,this._repLenDecoder=new LZMA.LenDecoder,this._literalDecoder=new LZMA.LiteralDecoder,this._dictionarySize=-1,this._dictionarySizeCheck=-1,this._posSlotDecoder[0]=new LZMA.BitTreeDecoder(6),this._posSlotDecoder[1]=new LZMA.BitTreeDecoder(6),this._posSlotDecoder[2]=new LZMA.BitTreeDecoder(6),this._posSlotDecoder[3]=new LZMA.BitTreeDecoder(6)},LZMA.Decoder.prototype.setDictionarySize=function(e){return!(e<0)&&(this._dictionarySize!==e&&(this._dictionarySize=e,this._dictionarySizeCheck=Math.max(this._dictionarySize,1),this._outWindow.create(Math.max(this._dictionarySizeCheck,4096))),!0)},LZMA.Decoder.prototype.setLcLpPb=function(e,t,r){var i=1<<r;return!(e>8||t>4||r>4)&&(this._literalDecoder.create(t,e),this._lenDecoder.create(i),this._repLenDecoder.create(i),this._posStateMask=i-1,!0)},LZMA.Decoder.prototype.init=function(){var e=4;for(this._outWindow.init(!1),LZMA.initBitModels(this._isMatchDecoders,192),LZMA.initBitModels(this._isRep0LongDecoders,192),LZMA.initBitModels(this._isRepDecoders,12),LZMA.initBitModels(this._isRepG0Decoders,12),LZMA.initBitModels(this._isRepG1Decoders,12),LZMA.initBitModels(this._isRepG2Decoders,12),LZMA.initBitModels(this._posDecoders,114),this._literalDecoder.init();e--;)this._posSlotDecoder[e].init();this._lenDecoder.init(),this._repLenDecoder.init(),this._posAlignDecoder.init(),this._rangeDecoder.init()},LZMA.Decoder.prototype.decode=function(e,t,r){var i,n,a,s,o,h,l=0,f=0,d=0,u=0,c=0,p=0,_=0;for(this._rangeDecoder.setStream(e),this._outWindow.setStream(t),this.init();r<0||p<r;)if(i=p&this._posStateMask,0===this._rangeDecoder.decodeBit(this._isMatchDecoders,(l<<4)+i))n=this._literalDecoder.getDecoder(p++,_),_=l>=7?n.decodeWithMatchByte(this._rangeDecoder,this._outWindow.getByte(f)):n.decodeNormal(this._rangeDecoder),this._outWindow.putByte(_),l=l<4?0:l-(l<10?3:6);else{if(1===this._rangeDecoder.decodeBit(this._isRepDecoders,l))a=0,0===this._rangeDecoder.decodeBit(this._isRepG0Decoders,l)?0===this._rangeDecoder.decodeBit(this._isRep0LongDecoders,(l<<4)+i)&&(l=l<7?9:11,a=1):(0===this._rangeDecoder.decodeBit(this._isRepG1Decoders,l)?s=d:(0===this._rangeDecoder.decodeBit(this._isRepG2Decoders,l)?s=u:(s=c,c=u),u=d),d=f,f=s),0===a&&(a=2+this._repLenDecoder.decode(this._rangeDecoder,i),l=l<7?8:11);else if(c=u,u=d,d=f,a=2+this._lenDecoder.decode(this._rangeDecoder,i),l=l<7?7:10,(o=this._posSlotDecoder[a<=5?a-2:3].decode(this._rangeDecoder))>=4){if(f=(2|1&o)<<(h=(o>>1)-1),o<14)f+=LZMA.reverseDecode2(this._posDecoders,f-o-1,this._rangeDecoder,h);else if(f+=this._rangeDecoder.decodeDirectBits(h-4)<<4,(f+=this._posAlignDecoder.reverseDecode(this._rangeDecoder))<0){if(-1===f)break;return!1}}else f=o;if(f>=p||f>=this._dictionarySizeCheck)return!1;this._outWindow.copyBlock(f,a),p+=a,_=this._outWindow.getByte(0)}return this._outWindow.flush(),this._outWindow.releaseStream(),this._rangeDecoder.releaseStream(),!0},LZMA.Decoder.prototype.setDecoderProperties=function(e){var t,r,i,n,a;return!(e.size<5)&&(r=(t=e.readByte())%9,i=(t=~~(t/9))%5,n=~~(t/5),!!this.setLcLpPb(r,i,n)&&(a=e.readByte(),a|=e.readByte()<<8,a|=e.readByte()<<16,a+=16777216*e.readByte(),this.setDictionarySize(a)))},LZMA.decompress=function(e,t,r,i){var n=new LZMA.Decoder;if(!n.setDecoderProperties(e))throw"Incorrect stream properties";if(!n.decode(t,r,i))throw"Error in data stream";return!0};var CTM=CTM||{};"object"==typeof module&&(module.exports=CTM),CTM.CompressionMethod={RAW:5718354,MG1:3229517,MG2:3295053},CTM.Flags={NORMALS:1},CTM.File=function(e){this.load(e)},CTM.File.prototype.load=function(e){this.header=new CTM.FileHeader(e),this.body=new CTM.FileBody(this.header),this.getReader().read(e,this.body)},CTM.File.prototype.getReader=function(){var e;switch(this.header.compressionMethod){case CTM.CompressionMethod.RAW:e=new CTM.ReaderRAW;break;case CTM.CompressionMethod.MG1:e=new CTM.ReaderMG1;break;case CTM.CompressionMethod.MG2:e=new CTM.ReaderMG2}return e},CTM.FileHeader=function(e){e.readInt32(),this.fileFormat=e.readInt32(),this.compressionMethod=e.readInt32(),this.vertexCount=e.readInt32(),this.triangleCount=e.readInt32(),this.uvMapCount=e.readInt32(),this.attrMapCount=e.readInt32(),this.flags=e.readInt32(),this.comment=e.readString()},CTM.FileHeader.prototype.hasNormals=function(){return this.flags&CTM.Flags.NORMALS},CTM.FileBody=function(e){var t=3*e.triangleCount,r=3*e.vertexCount,i=e.hasNormals()?3*e.vertexCount:0,n=2*e.vertexCount,a=4*e.vertexCount,s=0,o=new ArrayBuffer(4*(t+r+i+n*e.uvMapCount+a*e.attrMapCount));if(this.indices=new Uint32Array(o,0,t),this.vertices=new Float32Array(o,4*t,r),e.hasNormals()&&(this.normals=new Float32Array(o,4*(t+r),i)),e.uvMapCount)for(this.uvMaps=[],s=0;s<e.uvMapCount;++s)this.uvMaps[s]={uv:new Float32Array(o,4*(t+r+i+s*n),n)};if(e.attrMapCount)for(this.attrMaps=[],s=0;s<e.attrMapCount;++s)this.attrMaps[s]={attr:new Float32Array(o,4*(t+r+i+n*e.uvMapCount+s*a),a)}},CTM.FileMG2Header=function(e){e.readInt32(),this.vertexPrecision=e.readFloat32(),this.normalPrecision=e.readFloat32(),this.lowerBoundx=e.readFloat32(),this.lowerBoundy=e.readFloat32(),this.lowerBoundz=e.readFloat32(),this.higherBoundx=e.readFloat32(),this.higherBoundy=e.readFloat32(),this.higherBoundz=e.readFloat32(),this.divx=e.readInt32(),this.divy=e.readInt32(),this.divz=e.readInt32(),this.sizex=(this.higherBoundx-this.lowerBoundx)/this.divx,this.sizey=(this.higherBoundy-this.lowerBoundy)/this.divy,this.sizez=(this.higherBoundz-this.lowerBoundz)/this.divz},CTM.ReaderRAW=function(){},CTM.ReaderRAW.prototype.read=function(e,t){this.readIndices(e,t.indices),this.readVertices(e,t.vertices),t.normals&&this.readNormals(e,t.normals),t.uvMaps&&this.readUVMaps(e,t.uvMaps),t.attrMaps&&this.readAttrMaps(e,t.attrMaps)},CTM.ReaderRAW.prototype.readIndices=function(e,t){e.readInt32(),e.readArrayInt32(t)},CTM.ReaderRAW.prototype.readVertices=function(e,t){e.readInt32(),e.readArrayFloat32(t)},CTM.ReaderRAW.prototype.readNormals=function(e,t){e.readInt32(),e.readArrayFloat32(t)},CTM.ReaderRAW.prototype.readUVMaps=function(e,t){for(var r=0;r<t.length;++r)e.readInt32(),t[r].name=e.readString(),t[r].filename=e.readString(),e.readArrayFloat32(t[r].uv)},CTM.ReaderRAW.prototype.readAttrMaps=function(e,t){for(var r=0;r<t.length;++r)e.readInt32(),t[r].name=e.readString(),e.readArrayFloat32(t[r].attr)},CTM.ReaderMG1=function(){},CTM.ReaderMG1.prototype.read=function(e,t){this.readIndices(e,t.indices),this.readVertices(e,t.vertices),t.normals&&this.readNormals(e,t.normals),t.uvMaps&&this.readUVMaps(e,t.uvMaps),t.attrMaps&&this.readAttrMaps(e,t.attrMaps)},CTM.ReaderMG1.prototype.readIndices=function(e,t){e.readInt32(),e.readInt32();var r=new CTM.InterleavedStream(t,3);LZMA.decompress(e,e,r,r.data.length),CTM.restoreIndices(t,t.length)},CTM.ReaderMG1.prototype.readVertices=function(e,t){e.readInt32(),e.readInt32();var r=new CTM.InterleavedStream(t,1);LZMA.decompress(e,e,r,r.data.length)},CTM.ReaderMG1.prototype.readNormals=function(e,t){e.readInt32(),e.readInt32();var r=new CTM.InterleavedStream(t,3);LZMA.decompress(e,e,r,r.data.length)},CTM.ReaderMG1.prototype.readUVMaps=function(e,t){for(var r=0;r<t.length;++r){e.readInt32(),t[r].name=e.readString(),t[r].filename=e.readString(),e.readInt32();var i=new CTM.InterleavedStream(t[r].uv,2);LZMA.decompress(e,e,i,i.data.length)}},CTM.ReaderMG1.prototype.readAttrMaps=function(e,t){for(var r=0;r<t.length;++r){e.readInt32(),t[r].name=e.readString(),e.readInt32();var i=new CTM.InterleavedStream(t[r].attr,4);LZMA.decompress(e,e,i,i.data.length)}},CTM.ReaderMG2=function(){},CTM.ReaderMG2.prototype.read=function(e,t){this.MG2Header=new CTM.FileMG2Header(e),this.readVertices(e,t.vertices),this.readIndices(e,t.indices),t.normals&&this.readNormals(e,t),t.uvMaps&&this.readUVMaps(e,t.uvMaps),t.attrMaps&&this.readAttrMaps(e,t.attrMaps)},CTM.ReaderMG2.prototype.readVertices=function(e,t){e.readInt32(),e.readInt32();var r=new CTM.InterleavedStream(t,3);LZMA.decompress(e,e,r,r.data.length);var i=this.readGridIndices(e,t);CTM.restoreVertices(t,this.MG2Header,i,this.MG2Header.vertexPrecision)},CTM.ReaderMG2.prototype.readGridIndices=function(e,t){e.readInt32(),e.readInt32();var r=new Uint32Array(t.length/3),i=new CTM.InterleavedStream(r,1);return LZMA.decompress(e,e,i,i.data.length),CTM.restoreGridIndices(r,r.length),r},CTM.ReaderMG2.prototype.readIndices=function(e,t){e.readInt32(),e.readInt32();var r=new CTM.InterleavedStream(t,3);LZMA.decompress(e,e,r,r.data.length),CTM.restoreIndices(t,t.length)},CTM.ReaderMG2.prototype.readNormals=function(e,t){e.readInt32(),e.readInt32();var r=new CTM.InterleavedStream(t.normals,3);LZMA.decompress(e,e,r,r.data.length);var i=CTM.calcSmoothNormals(t.indices,t.vertices);CTM.restoreNormals(t.normals,i,this.MG2Header.normalPrecision)},CTM.ReaderMG2.prototype.readUVMaps=function(e,t){for(var r=0;r<t.length;++r){e.readInt32(),t[r].name=e.readString(),t[r].filename=e.readString();var i=e.readFloat32();e.readInt32();var n=new CTM.InterleavedStream(t[r].uv,2);LZMA.decompress(e,e,n,n.data.length),CTM.restoreMap(t[r].uv,2,i)}},CTM.ReaderMG2.prototype.readAttrMaps=function(e,t){for(var r=0;r<t.length;++r){e.readInt32(),t[r].name=e.readString();var i=e.readFloat32();e.readInt32();var n=new CTM.InterleavedStream(t[r].attr,4);LZMA.decompress(e,e,n,n.data.length),CTM.restoreMap(t[r].attr,4,i)}},CTM.restoreIndices=function(e,t){var r=3;for(t>0&&(e[2]+=e[0],e[1]+=e[0]);r<t;r+=3)e[r]+=e[r-3],e[r]===e[r-3]?e[r+1]+=e[r-2]:e[r+1]+=e[r],e[r+2]+=e[r]},CTM.restoreIndices2=function(e,t,r){var i=3;for(r>0&&(e[t+2]+=e[t+0],e[t+1]+=e[t+0]);i<r;i+=3)e[t+i]+=e[t+i-3],e[t+i]===e[t+i-3]?e[t+i+1]+=e[t+i-2]:e[t+i+1]+=e[t+i],e[t+i+2]+=e[t+i]},CTM.restoreGridIndices=function(e,t){for(var r=1;r<t;++r)e[r]+=e[r-1]},CTM.restoreVertices=function(e,t,r,i){for(var n,a,s,o,h,l=new Uint32Array(e.buffer,e.byteOffset,e.length),f=t.divx,d=f*t.divy,u=2147483647,c=0,p=0,_=0,m=r.length;p<m;_+=3)s=n=r[p++],s-=~~((h=~~(s/d))*d),s-=~~((o=~~(s/f))*f),a=l[_],n===u&&(a+=c),e[_]=t.lowerBoundx+s*t.sizex+i*a,e[_+1]=t.lowerBoundy+o*t.sizey+i*l[_+1],e[_+2]=t.lowerBoundz+h*t.sizez+i*l[_+2],u=n,c=a},CTM.restoreNormals=function(e,t,r){for(var i,n,a,s,o,h,l,f,d,u,c=new Uint32Array(e.buffer,e.byteOffset,e.length),p=0,_=e.length,m=1.5707963267948966;p<_;p+=3)i=c[p]*r,0===(n=c[p+1])?(e[p]=t[p]*i,e[p+1]=t[p+1]*i,e[p+2]=t[p+2]*i):(a=n<=4?(c[p+2]-2)*m:(4*c[p+2]/n-2)*m,n*=r*m,o=(s=i*Math.sin(n))*Math.cos(a),h=s*Math.sin(a),l=i*Math.cos(n),d=t[p+1],f=t[p]-t[p+2],(u=Math.sqrt(2*d*d+f*f))>1e-20&&(f/=u,d/=u),e[p]=t[p]*l+(t[p+1]*d-t[p+2]*f)*h-d*o,e[p+1]=t[p+1]*l-(t[p+2]+t[p])*d*h+f*o,e[p+2]=t[p+2]*l+(t[p]*f+t[p+1]*d)*h+d*o)},CTM.restoreMap=function(e,t,r){for(var i,n,a,s=new Uint32Array(e.buffer,e.byteOffset,e.length),o=0,h=e.length;o<t;++o)for(i=0,a=o;a<h;a+=t)i+=1&(n=s[a])?-(n+1>>1):n>>1,e[a]=i*r},CTM.calcSmoothNormals=function(e,t){var r,i,n,a,s,o,h,l,f,d,u,c,p,_,m,g=new Float32Array(t.length);for(_=0,m=e.length;_<m;)r=3*e[_++],i=3*e[_++],n=3*e[_++],h=t[i]-t[r],d=t[n]-t[r],l=t[i+1]-t[r+1],u=t[n+1]-t[r+1],f=t[i+2]-t[r+2],a=l*(c=t[n+2]-t[r+2])-f*u,s=f*d-h*c,o=h*u-l*d,(p=Math.sqrt(a*a+s*s+o*o))>1e-10&&(a/=p,s/=p,o/=p),g[r]+=a,g[r+1]+=s,g[r+2]+=o,g[i]+=a,g[i+1]+=s,g[i+2]+=o,g[n]+=a,g[n+1]+=s,g[n+2]+=o;for(_=0,m=g.length;_<m;_+=3)(p=Math.sqrt(g[_]*g[_]+g[_+1]*g[_+1]+g[_+2]*g[_+2]))>1e-10&&(g[_]/=p,g[_+1]/=p,g[_+2]/=p);return g},CTM.isLittleEndian=function(){var e=new ArrayBuffer(2),t=new Uint8Array(e),r=new Uint16Array(e);return t[0]=1,1===r[0]}(),CTM.InterleavedStream=function(e,t){this.data=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),this.offset=CTM.isLittleEndian?3:0,this.count=4*t,this.len=this.data.length},CTM.InterleavedStream.prototype.writeByte=function(e){this.data[this.offset]=e,this.offset+=this.count,this.offset>=this.len&&(this.offset-=this.len-4,this.offset>=this.count&&(this.offset-=this.count+(CTM.isLittleEndian?1:-1)))},CTM.BIMStream=function(e,t,r){this.data=e,this.offset=t,this.count=r,this.len=this.data.length},CTM.BIMStream.prototype.writeByte=function(e){this.data[this.offset]=e,this.offset+=this.count,this.offset>=this.len&&(this.offset=0)},CTM.Stream=function(e){this.data=e,this.offset=0},CTM.Stream.prototype.TWO_POW_MINUS23=Math.pow(2,-23),CTM.Stream.prototype.TWO_POW_MINUS126=Math.pow(2,-126),CTM.Stream.prototype.readByte=function(){return 255&this.data[this.offset++]},CTM.Stream.prototype.readTexture=function(){for(var e=this.readByte(),t=[],r=0;r<8;r++){var i=4*r;e&Math.pow(2,r)?(t[i]=0,t[i+1]=0,t[i+2]=0,t[i+3]=255):(t[i]=255,t[i+1]=255,t[i+2]=255,t[i+3]=0)}return t},CTM.Stream.prototype.readInt32=function(){var e=this.readByte();return e|=this.readByte()<<8,(e|=this.readByte()<<16)|this.readByte()<<24},CTM.Stream.prototype.readInt16=function(){return this.readByte()|this.readByte()<<8},CTM.Stream.prototype.readFloat32=function(){var e=this.readByte();e+=this.readByte()<<8;var t=this.readByte(),r=this.readByte();e+=(127&t)<<16;var i=(127&r)<<1|(128&t)>>>7,n=128&r?-1:1;return 255===i?0!==e?NaN:n*(1/0):i>0?n*(1+e*this.TWO_POW_MINUS23)*Math.pow(2,i-127):0!==e?n*e*this.TWO_POW_MINUS126:0*n},CTM.Stream.prototype.readString=function(){var e=this.readInt32();return this.offset+=e,String.fromCharCode.apply(null,this.data.subarray(this.offset-e,this.offset))},CTM.Stream.prototype.readArrayInt32=function(e){for(var t=0,r=e.length;t<r;)e[t++]=this.readInt32();return e},CTM.Stream.prototype.readArrayFloat32=function(e){for(var t=0,r=e.length;t<r;)e[t++]=this.readFloat32();return e},function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pako=e()}((function(){return function e(t,r,i){function n(s,o){if(!r[s]){if(!t[s]){var h="function"==typeof require&&require;if(!o&&h)return h(s,!0);if(a)return a(s,!0);throw(h=Error("Cannot find module '"+s+"'")).code="MODULE_NOT_FOUND",h}h=r[s]={exports:{}},t[s][0].call(h.exports,(function(e){var r=t[s][1][e];return n(r||e)}),h,h.exports,e,t,r,i)}return r[s].exports}for(var a="function"==typeof require&&require,s=0;s<i.length;s++)n(i[s]);return n}({1:[function(e,t,r){function i(e){if(!(this instanceof i))return new i(e);(e=this.options=s.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{})).raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&16>e.windowBits&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var t=a.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==t)throw Error(h[t]);if(e.header&&a.deflateSetHeader(this.strm,e.header),e.dictionary){if(e="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===f.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(t=a.deflateSetDictionary(this.strm,e)))throw Error(h[t]);this._dict_set=!0}}function n(e,t){var r=new i(t);if(r.push(e,!0),r.err)throw r.msg||h[r.err];return r.result}var a=e("./zlib/deflate"),s=e("./utils/common"),o=e("./utils/strings"),h=e("./zlib/messages"),l=e("./zlib/zstream"),f=Object.prototype.toString;i.prototype.push=function(e,t){var r,i,n=this.strm,h=this.options.chunkSize;if(this.ended)return!1;i=t===~~t?t:!0===t?4:0,"string"==typeof e?n.input=o.string2buf(e):"[object ArrayBuffer]"===f.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;do{if(0===n.avail_out&&(n.output=new s.Buf8(h),n.next_out=0,n.avail_out=h),1!==(r=a.deflate(n,i))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==n.avail_out&&(0!==n.avail_in||4!==i&&2!==i)||("string"===this.options.to?this.onData(o.buf2binstring(s.shrinkBuf(n.output,n.next_out))):this.onData(s.shrinkBuf(n.output,n.next_out)))}while((0<n.avail_in||0===n.avail_out)&&1!==r);return 4===i?(r=a.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):(2===i&&(this.onEnd(0),n.avail_out=0),!0)},i.prototype.onData=function(e){this.chunks.push(e)},i.prototype.onEnd=function(e){0===e&&(this.result="string"===this.options.to?this.chunks.join(""):s.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=i,r.deflate=n,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,n(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,n(e,t)}},{"./utils/common":3,"./utils/strings":4,"./zlib/deflate":8,"./zlib/messages":13,"./zlib/zstream":15}],2:[function(e,t,r){function i(e){if(!(this instanceof i))return new i(e);var t=this.options=s.assign({chunkSize:16384,windowBits:0,to:""},e||{});if(t.raw&&0<=t.windowBits&&16>t.windowBits&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&16>t.windowBits)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&48>t.windowBits&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0,(e=a.inflateInit2(this.strm,t.windowBits))!==h.Z_OK)throw Error(l[e]);this.header=new d,a.inflateGetHeader(this.strm,this.header)}function n(e,t){var r=new i(t);if(r.push(e,!0),r.err)throw r.msg||l[r.err];return r.result}var a=e("./zlib/inflate"),s=e("./utils/common"),o=e("./utils/strings"),h=e("./zlib/constants"),l=e("./zlib/messages"),f=e("./zlib/zstream"),d=e("./zlib/gzheader"),u=Object.prototype.toString;i.prototype.push=function(e,t){var r,i,n,l,f,d=this.strm,c=this.options.chunkSize,p=this.options.dictionary,_=!1;if(this.ended)return!1;i=t===~~t?t:!0===t?h.Z_FINISH:h.Z_NO_FLUSH,"string"==typeof e?d.input=o.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?d.input=new Uint8Array(e):d.input=e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new s.Buf8(c),d.next_out=0,d.avail_out=c),(r=a.inflate(d,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&p&&(r="string"==typeof p?o.string2buf(p):"[object ArrayBuffer]"===u.call(p)?new Uint8Array(p):p,r=a.inflateSetDictionary(this.strm,r)),r===h.Z_BUF_ERROR&&!0===_&&(r=h.Z_OK,_=!1),r!==h.Z_STREAM_END&&r!==h.Z_OK)return this.onEnd(r),this.ended=!0,!1;!d.next_out||0!==d.avail_out&&r!==h.Z_STREAM_END&&(0!==d.avail_in||i!==h.Z_FINISH&&i!==h.Z_SYNC_FLUSH)||("string"===this.options.to?(n=o.utf8border(d.output,d.next_out),l=d.next_out-n,f=o.buf2string(d.output,n),d.next_out=l,d.avail_out=c-l,l&&s.arraySet(d.output,d.output,n,l,0),this.onData(f)):this.onData(s.shrinkBuf(d.output,d.next_out))),0===d.avail_in&&0===d.avail_out&&(_=!0)}while((0<d.avail_in||0===d.avail_out)&&r!==h.Z_STREAM_END);return r===h.Z_STREAM_END&&(i=h.Z_FINISH),i===h.Z_FINISH?(r=a.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===h.Z_OK):(i===h.Z_SYNC_FLUSH&&(this.onEnd(h.Z_OK),d.avail_out=0),!0)},i.prototype.onData=function(e){this.chunks.push(e)},i.prototype.onEnd=function(e){e===h.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):s.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=i,r.inflate=n,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,n(e,t)},r.ungzip=n},{"./utils/common":3,"./utils/strings":4,"./zlib/constants":6,"./zlib/gzheader":9,"./zlib/inflate":11,"./zlib/messages":13,"./zlib/zstream":15}],3:[function(e,t,r){e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array,r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,i,n){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+i),n);else for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){var t,r,i,n,a;for(t=i=0,r=e.length;t<r;t++)i+=e[t].length;for(a=new Uint8Array(i),t=i=0,r=e.length;t<r;t++)n=e[t],a.set(n,i),i+=n.length;return a}},n={arraySet:function(e,t,r,i,n){for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,n))},r.setTyped(e)},{}],4:[function(e,t,r){function i(e,t){if(65537>t&&(e.subarray&&s||!e.subarray&&a))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}var n=e("./common"),a=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(e){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){s=!1}var o=new n.Buf8(256);for(e=0;256>e;e++)o[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;o[254]=o[254]=1,r.string2buf=function(e){var t,r,i,a,s,o=e.length,h=0;for(a=0;a<o;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<o&&(56320==(64512&(i=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++)),h+=128>r?1:2048>r?2:65536>r?3:4;for(t=new n.Buf8(h),a=s=0;s<h;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<o&&(56320==(64512&(i=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++)),128>r?t[s++]=r:(2048>r?t[s++]=192|r>>>6:(65536>r?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t},r.buf2binstring=function(e){return i(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,a,s,h=t||e.length,l=Array(2*h);for(r=n=0;r<h;)if(128>(a=e[r++]))l[n++]=a;else if(4<(s=o[a]))l[n++]=65533,r+=s-1;else{for(a&=2===s?31:3===s?15:7;1<s&&r<h;)a=a<<6|63&e[r++],s--;1<s?l[n++]=65533:65536>a?l[n++]=a:(a-=65536,l[n++]=55296|a>>10&1023,l[n++]=56320|1023&a)}return i(l,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return 0>r||0===r?t:r+o[e[r]]>t?r:t}},{"./common":3}],5:[function(e,t,r){t.exports=function(e,t,r,i){var n,a=65535&e|0;for(e=e>>>16&65535|0;0!==r;){r-=n=2e3<r?2e3:r;do{e=e+(a=a+t[i++]|0)|0}while(--n);a%=65521,e%=65521}return a|e<<16|0}},{}],6:[function(e,t,r){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],7:[function(e,t,r){var i=function(){for(var e,t=[],r=0;256>r;r++){e=r;for(var i=0;8>i;i++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,n){for(r=n+r,e^=-1;n<r;n++)e=e>>>8^i[255&(e^t[n])];return-1^e}},{}],8:[function(e,t,r){function i(e,t){return e.msg=A[t],t}function n(e){for(var t=e.length;0<=--t;)e[t]=0}function a(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(y.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function s(e,t){v._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,a(e.strm)}function o(e,t){e.pending_buf[e.pending++]=t}function h(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function l(e,t){var r,i=e.max_chain_length,n=e.strstart,a=e.prev_length,s=e.nice_match,o=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,h=e.window,l=e.w_mask,f=e.prev,d=e.strstart+258,u=h[n+a-1],c=h[n+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(h[(r=t)+a]===c&&h[r+a-1]===u&&h[r]===h[n]&&h[++r]===h[n+1]){for(n+=2,r++;h[++n]===h[++r]&&h[++n]===h[++r]&&h[++n]===h[++r]&&h[++n]===h[++r]&&h[++n]===h[++r]&&h[++n]===h[++r]&&h[++n]===h[++r]&&h[++n]===h[++r]&&n<d;);if(r=258-(d-n),n=d-258,r>a){if(e.match_start=t,a=r,r>=s)break;u=h[n+a-1],c=h[n+a]}}}while((t=f[t&l])>o&&0!=--i);return a<=e.lookahead?a:e.lookahead}function f(e){var t,r,i,n,a=e.w_size;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=a+(a-262)){y.arraySet(e.window,e.window,a,a,0),e.match_start-=a,e.strstart-=a,e.block_start-=a,t=r=e.hash_size;do{i=e.head[--t],e.head[t]=i>=a?i-a:0}while(--r);t=r=a;do{i=e.prev[--t],e.prev[t]=i>=a?i-a:0}while(--r);n+=a}if(0===e.strm.avail_in)break;t=e.strm,r=e.window,i=e.strstart+e.lookahead;var s=t.avail_in;if(s>n&&(s=n),0===s?r=0:(t.avail_in-=s,y.arraySet(r,t.input,t.next_in,s,i),1===t.state.wrap?t.adler=w(t.adler,r,s,i):2===t.state.wrap&&(t.adler=k(t.adler,r,s,i)),t.next_in+=s,t.total_in+=s,r=s),e.lookahead+=r,3<=e.lookahead+e.insert)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=(e.ins_h<<e.hash_shift^e.window[n+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[n+3-1])&e.hash_mask,e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(3>e.lookahead+e.insert)););}while(262>e.lookahead&&0!==e.strm.avail_in)}function d(e,t){for(var r;;){if(262>e.lookahead){if(f(e),262>e.lookahead&&0===t)return 1;if(0===e.lookahead)break}if(r=0,3<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-262&&(e.match_length=l(e,r)),3<=e.match_length)if(r=v._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&3<=e.lookahead){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=v._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(s(e,!1),0===e.strm.avail_out))return 1}return e.insert=2>e.strstart?e.strstart:2,4===t?(s(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?1:2}function u(e,t){for(var r,i;;){if(262>e.lookahead){if(f(e),262>e.lookahead&&0===t)return 1;if(0===e.lookahead)break}if(r=0,3<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-262&&(e.match_length=l(e,r),5>=e.match_length&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2)),3<=e.prev_length&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=v._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(s(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=v._tr_tally(e,0,e.window[e.strstart-1]))&&s(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(v._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=2>e.strstart?e.strstart:2,4===t?(s(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?1:2}function c(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n}function p(){this.strm=null,this.status=0,this.pending_buf=null,this.wrap=this.pending=this.pending_out=this.pending_buf_size=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_mask=this.w_bits=this.w_size=0,this.window=null,this.window_size=0,this.head=this.prev=null,this.nice_match=this.good_match=this.strategy=this.level=this.max_lazy_match=this.max_chain_length=this.prev_length=this.lookahead=this.match_start=this.strstart=this.match_available=this.prev_match=this.match_length=this.block_start=this.hash_shift=this.hash_mask=this.hash_bits=this.hash_size=this.ins_h=0,this.dyn_ltree=new y.Buf16(1146),this.dyn_dtree=new y.Buf16(122),this.bl_tree=new y.Buf16(78),n(this.dyn_ltree),n(this.dyn_dtree),n(this.bl_tree),this.bl_desc=this.d_desc=this.l_desc=null,this.bl_count=new y.Buf16(16),this.heap=new y.Buf16(573),n(this.heap),this.heap_max=this.heap_len=0,this.depth=new y.Buf16(573),n(this.depth),this.bi_valid=this.bi_buf=this.insert=this.matches=this.static_len=this.opt_len=this.d_buf=this.last_lit=this.lit_bufsize=this.l_buf=0}function _(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,0>t.wrap&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,v._tr_init(t),0):i(e,-2)}function m(e){var t=_(e);return 0===t&&((e=e.state).window_size=2*e.w_size,n(e.head),e.max_lazy_match=b[e.level].max_lazy,e.good_match=b[e.level].good_length,e.nice_match=b[e.level].nice_length,e.max_chain_length=b[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),t}function g(e,t,r,n,a,s){if(!e)return-2;var o=1;if(-1===t&&(t=6),0>n?(o=0,n=-n):15<n&&(o=2,n-=16),1>a||9<a||8!==r||8>n||15<n||0>t||9<t||0>s||4<s)return i(e,-2);8===n&&(n=9);var h=new p;return e.state=h,h.strm=e,h.wrap=o,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=a+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new y.Buf8(2*h.w_size),h.head=new y.Buf16(h.hash_size),h.prev=new y.Buf16(h.w_size),h.lit_bufsize=1<<a+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new y.Buf8(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=t,h.strategy=s,h.method=r,m(e)}var b,y=e("../utils/common"),v=e("./trees"),w=e("./adler32"),k=e("./crc32"),A=e("./messages");b=[new c(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(1>=e.lookahead){if(f(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,s(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(s(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(s(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&s(e,!1),1)})),new c(4,4,8,4,d),new c(4,5,16,8,d),new c(4,6,32,32,d),new c(4,4,16,16,u),new c(8,16,32,32,u),new c(8,16,128,128,u),new c(8,32,128,256,u),new c(32,128,258,1024,u),new c(32,258,258,4096,u)],r.deflateInit=function(e,t){return g(e,t,8,15,8,0)},r.deflateInit2=g,r.deflateReset=m,r.deflateResetKeep=_,r.deflateSetHeader=function(e,t){return e&&e.state&&2===e.state.wrap?(e.state.gzhead=t,0):-2},r.deflate=function(e,t){var r,l,d,u;if(!e||!e.state||5<t||0>t)return e?i(e,-2):-2;if(l=e.state,!e.output||!e.input&&0!==e.avail_in||666===l.status&&4!==t)return i(e,0===e.avail_out?-5:-2);if(l.strm=e,r=l.last_flush,l.last_flush=t,42===l.status&&(2===l.wrap?(e.adler=0,o(l,31),o(l,139),o(l,8),l.gzhead?(o(l,(l.gzhead.text?1:0)+(l.gzhead.hcrc?2:0)+(l.gzhead.extra?4:0)+(l.gzhead.name?8:0)+(l.gzhead.comment?16:0)),o(l,255&l.gzhead.time),o(l,l.gzhead.time>>8&255),o(l,l.gzhead.time>>16&255),o(l,l.gzhead.time>>24&255),o(l,9===l.level?2:2<=l.strategy||2>l.level?4:0),o(l,255&l.gzhead.os),l.gzhead.extra&&l.gzhead.extra.length&&(o(l,255&l.gzhead.extra.length),o(l,l.gzhead.extra.length>>8&255)),l.gzhead.hcrc&&(e.adler=k(e.adler,l.pending_buf,l.pending,0)),l.gzindex=0,l.status=69):(o(l,0),o(l,0),o(l,0),o(l,0),o(l,0),o(l,9===l.level?2:2<=l.strategy||2>l.level?4:0),o(l,3),l.status=113)):(d=8+(l.w_bits-8<<4)<<8,d|=(2<=l.strategy||2>l.level?0:6>l.level?1:6===l.level?2:3)<<6,0!==l.strstart&&(d|=32),l.status=113,h(l,d+(31-d%31)),0!==l.strstart&&(h(l,e.adler>>>16),h(l,65535&e.adler)),e.adler=1)),69===l.status)if(l.gzhead.extra){for(d=l.pending;l.gzindex<(65535&l.gzhead.extra.length)&&(l.pending!==l.pending_buf_size||(l.gzhead.hcrc&&l.pending>d&&(e.adler=k(e.adler,l.pending_buf,l.pending-d,d)),a(e),d=l.pending,l.pending!==l.pending_buf_size));)o(l,255&l.gzhead.extra[l.gzindex]),l.gzindex++;l.gzhead.hcrc&&l.pending>d&&(e.adler=k(e.adler,l.pending_buf,l.pending-d,d)),l.gzindex===l.gzhead.extra.length&&(l.gzindex=0,l.status=73)}else l.status=73;if(73===l.status)if(l.gzhead.name){d=l.pending;do{if(l.pending===l.pending_buf_size&&(l.gzhead.hcrc&&l.pending>d&&(e.adler=k(e.adler,l.pending_buf,l.pending-d,d)),a(e),d=l.pending,l.pending===l.pending_buf_size)){u=1;break}u=l.gzindex<l.gzhead.name.length?255&l.gzhead.name.charCodeAt(l.gzindex++):0,o(l,u)}while(0!==u);l.gzhead.hcrc&&l.pending>d&&(e.adler=k(e.adler,l.pending_buf,l.pending-d,d)),0===u&&(l.gzindex=0,l.status=91)}else l.status=91;if(91===l.status)if(l.gzhead.comment){d=l.pending;do{if(l.pending===l.pending_buf_size&&(l.gzhead.hcrc&&l.pending>d&&(e.adler=k(e.adler,l.pending_buf,l.pending-d,d)),a(e),d=l.pending,l.pending===l.pending_buf_size)){u=1;break}u=l.gzindex<l.gzhead.comment.length?255&l.gzhead.comment.charCodeAt(l.gzindex++):0,o(l,u)}while(0!==u);l.gzhead.hcrc&&l.pending>d&&(e.adler=k(e.adler,l.pending_buf,l.pending-d,d)),0===u&&(l.status=103)}else l.status=103;if(103===l.status&&(l.gzhead.hcrc?(l.pending+2>l.pending_buf_size&&a(e),l.pending+2<=l.pending_buf_size&&(o(l,255&e.adler),o(l,e.adler>>8&255),e.adler=0,l.status=113)):l.status=113),0!==l.pending){if(a(e),0===e.avail_out)return l.last_flush=-1,0}else if(0===e.avail_in&&(t<<1)-(4<t?9:0)<=(r<<1)-(4<r?9:0)&&4!==t)return i(e,-5);if(666===l.status&&0!==e.avail_in)return i(e,-5);if(0!==e.avail_in||0!==l.lookahead||0!==t&&666!==l.status){if(r=2===l.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(f(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=v._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(s(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(s(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?1:2}(l,t):3===l.strategy?function(e,t){for(var r,i,n,a=e.window;;){if(258>=e.lookahead){if(f(e),258>=e.lookahead&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,3<=e.lookahead&&0<e.strstart&&(r=a[i=e.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){for(n=e.strstart+258;r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<n;);e.match_length=258-(n-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(3<=e.match_length?(r=v._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=v._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(s(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(s(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?1:2}(l,t):b[l.level].func(l,t),3!==r&&4!==r||(l.status=666),1===r||3===r)return 0===e.avail_out&&(l.last_flush=-1),0;if(2===r&&(1===t?v._tr_align(l):5!==t&&(v._tr_stored_block(l,0,0,!1),3===t&&(n(l.head),0===l.lookahead&&(l.strstart=0,l.block_start=0,l.insert=0))),a(e),0===e.avail_out))return l.last_flush=-1,0}return 4!==t?0:0>=l.wrap?1:(2===l.wrap?(o(l,255&e.adler),o(l,e.adler>>8&255),o(l,e.adler>>16&255),o(l,e.adler>>24&255),o(l,255&e.total_in),o(l,e.total_in>>8&255),o(l,e.total_in>>16&255),o(l,e.total_in>>24&255)):(h(l,e.adler>>>16),h(l,65535&e.adler)),a(e),0<l.wrap&&(l.wrap=-l.wrap),0!==l.pending?0:1)},r.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?i(e,-2):(e.state=null,113===t?i(e,-3):0):-2},r.deflateSetDictionary=function(e,t){var r,i,a,s,o,h,l=t.length;if(!e||!e.state)return-2;if(2===(a=(r=e.state).wrap)||1===a&&42!==r.status||r.lookahead)return-2;for(1===a&&(e.adler=w(e.adler,t,l,0)),r.wrap=0,l>=r.w_size&&(0===a&&(n(r.head),r.strstart=0,r.block_start=0,r.insert=0),s=new y.Buf8(r.w_size),y.arraySet(s,t,l-r.w_size,r.w_size,0),t=s,l=r.w_size),s=e.avail_in,o=e.next_in,h=e.input,e.avail_in=l,e.next_in=0,e.input=t,f(r);3<=r.lookahead;){l=r.strstart,i=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[l+3-1])&r.hash_mask,r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++}while(--i);r.strstart=l,r.lookahead=2,f(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=o,e.input=h,e.avail_in=s,r.wrap=a,0},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":3,"./adler32":5,"./crc32":7,"./messages":13,"./trees":14}],9:[function(e,t,r){t.exports=function(){this.os=this.xflags=this.time=this.text=0,this.extra=null,this.extra_len=0,this.comment=this.name="",this.hcrc=0,this.done=!1}},{}],10:[function(e,t,r){t.exports=function(e,t){var r,i,n,a,s,o,h,l,f,d,u,c,p,_,m,g,b,y,v,w,k,A,x,S;r=e.state,i=e.next_in,x=e.input,n=i+(e.avail_in-5),a=e.next_out,S=e.output,s=a-(t-e.avail_out),o=a+(e.avail_out-257),h=r.dmax,l=r.wsize,f=r.whave,d=r.wnext,u=r.window,c=r.hold,p=r.bits,_=r.lencode,m=r.distcode,g=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;e:do{t:for(15>p&&(c+=x[i++]<<p,p+=8,c+=x[i++]<<p,p+=8),y=_[c&g];;){if(c>>>=v=y>>>24,p-=v,0===(v=y>>>16&255))S[a++]=65535&y;else{if(!(16&v)){if(0==(64&v)){y=_[(65535&y)+(c&(1<<v)-1)];continue t}32&v?r.mode=12:(e.msg="invalid literal/length code",r.mode=30);break e}w=65535&y,(v&=15)&&(p<v&&(c+=x[i++]<<p,p+=8),w+=c&(1<<v)-1,c>>>=v,p-=v),15>p&&(c+=x[i++]<<p,p+=8,c+=x[i++]<<p,p+=8),y=m[c&b];r:for(;;){if(c>>>=v=y>>>24,p-=v,!(16&(v=y>>>16&255))){if(0==(64&v)){y=m[(65535&y)+(c&(1<<v)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(y&=65535,p<(v&=15)&&(c+=x[i++]<<p,(p+=8)<v&&(c+=x[i++]<<p,p+=8)),(y+=c&(1<<v)-1)>h){e.msg="invalid distance too far back",r.mode=30;break e}if(c>>>=v,p-=v,y>(v=a-s)){if((v=y-v)>f&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(k=0,A=u,0===d){if(k+=l-v,v<w){w-=v;do{S[a++]=u[k++]}while(--v);k=a-y,A=S}}else if(d<v){if(k+=l+d-v,(v-=d)<w){w-=v;do{S[a++]=u[k++]}while(--v);if(k=0,d<w){w-=v=d;do{S[a++]=u[k++]}while(--v);k=a-y,A=S}}}else if(k+=d-v,v<w){w-=v;do{S[a++]=u[k++]}while(--v);k=a-y,A=S}for(;2<w;)S[a++]=A[k++],S[a++]=A[k++],S[a++]=A[k++],w-=3;w&&(S[a++]=A[k++],1<w&&(S[a++]=A[k++]))}else{k=a-y;do{S[a++]=S[k++],S[a++]=S[k++],S[a++]=S[k++],w-=3}while(2<w);w&&(S[a++]=S[k++],1<w&&(S[a++]=S[k++]))}break}}break}}while(i<n&&a<o);i-=w=p>>3,p-=w<<3,e.next_in=i,e.next_out=a,e.avail_in=i<n?n-i+5:5-(i-n),e.avail_out=a<o?o-a+257:257-(a-o),r.hold=c&(1<<p)-1,r.bits=p}},{}],11:[function(e,t,r){function i(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function n(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.total=this.check=this.dmax=this.flags=0,this.head=null,this.wnext=this.whave=this.wsize=this.wbits=0,this.window=null,this.extra=this.offset=this.length=this.bits=this.hold=0,this.distcode=this.lencode=null,this.have=this.ndist=this.nlen=this.ncode=this.distbits=this.lenbits=0,this.next=null,this.lens=new u.Buf16(320),this.work=new u.Buf16(288),this.distdyn=this.lendyn=null,this.was=this.back=this.sane=0}function a(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=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new u.Buf32(852),t.distcode=t.distdyn=new u.Buf32(592),t.sane=1,t.back=-1,0):-2}function s(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,a(e)):-2}function o(e,t){var r,i;return e&&e.state?(i=e.state,0>t?(r=0,t=-t):(r=1+(t>>4),48>t&&(t&=15)),t&&(8>t||15<t)?-2:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,s(e))):-2}function h(e,t){var r;return e?(r=new n,e.state=r,r.window=null,0!==(r=o(e,t))&&(e.state=null),r):-2}function l(e,t,r,i){var n=e.state;return null===n.window&&(n.wsize=1<<n.wbits,n.wnext=0,n.whave=0,n.window=new u.Buf8(n.wsize)),i>=n.wsize?(u.arraySet(n.window,t,r-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):((e=n.wsize-n.wnext)>i&&(e=i),u.arraySet(n.window,t,r-i,e,n.wnext),(i-=e)?(u.arraySet(n.window,t,r-i,i,0),n.wnext=i,n.whave=n.wsize):(n.wnext+=e,n.wnext===n.wsize&&(n.wnext=0),n.whave<n.wsize&&(n.whave+=e))),0}var f,d,u=e("../utils/common"),c=e("./adler32"),p=e("./crc32"),_=e("./inffast"),m=e("./inftrees"),g=!0;r.inflateReset=s,r.inflateReset2=o,r.inflateResetKeep=a,r.inflateInit=function(e){return h(e,15)},r.inflateInit2=h,r.inflate=function(e,t){var r,n,a,s,o,h,b,y,v,w,k,A,x,S,M,C,z,B,D=new u.Buf8(4),I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(r=e.state).mode&&(r.mode=13),o=e.next_out,a=e.output,b=e.avail_out,s=e.next_in,n=e.input,h=e.avail_in,y=r.hold,v=r.bits,w=h,k=b,B=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;16>v;){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}if(2&r.wrap&&35615===y){r.check=0,D[0]=255&y,D[1]=y>>>8&255,r.check=p(r.check,D,2,0),v=y=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&y)<<8)+(y>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&y)){e.msg="unknown compression method",r.mode=30;break}if(v-=4,x=8+(15&(y>>>=4)),0===r.wbits)r.wbits=x;else if(x>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<x,e.adler=r.check=1,r.mode=512&y?10:12,v=y=0;break;case 2:for(;16>v;){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}if(r.flags=y,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=y>>8&1),512&r.flags&&(D[0]=255&y,D[1]=y>>>8&255,r.check=p(r.check,D,2,0)),v=y=0,r.mode=3;case 3:for(;32>v;){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}r.head&&(r.head.time=y),512&r.flags&&(D[0]=255&y,D[1]=y>>>8&255,D[2]=y>>>16&255,D[3]=y>>>24&255,r.check=p(r.check,D,4,0)),v=y=0,r.mode=4;case 4:for(;16>v;){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}r.head&&(r.head.xflags=255&y,r.head.os=y>>8),512&r.flags&&(D[0]=255&y,D[1]=y>>>8&255,r.check=p(r.check,D,2,0)),v=y=0,r.mode=5;case 5:if(1024&r.flags){for(;16>v;){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}r.length=y,r.head&&(r.head.extra_len=y),512&r.flags&&(D[0]=255&y,D[1]=y>>>8&255,r.check=p(r.check,D,2,0)),v=y=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((A=r.length)>h&&(A=h),A&&(r.head&&(x=r.head.extra_len-r.length,r.head.extra||(r.head.extra=Array(r.head.extra_len)),u.arraySet(r.head.extra,n,s,A,x)),512&r.flags&&(r.check=p(r.check,n,A,s)),h-=A,s+=A,r.length-=A),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===h)break e;A=0;do{x=n[s+A++],r.head&&x&&65536>r.length&&(r.head.name+=String.fromCharCode(x))}while(x&&A<h);if(512&r.flags&&(r.check=p(r.check,n,A,s)),h-=A,s+=A,x)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===h)break e;A=0;do{x=n[s+A++],r.head&&x&&65536>r.length&&(r.head.comment+=String.fromCharCode(x))}while(x&&A<h);if(512&r.flags&&(r.check=p(r.check,n,A,s)),h-=A,s+=A,x)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;16>v;){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}if(y!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}v=y=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;32>v;){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}e.adler=r.check=i(y),v=y=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=o,e.avail_out=b,e.next_in=s,e.avail_in=h,r.hold=y,r.bits=v,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){y>>>=7&v,v-=7&v,r.mode=27;break}for(;3>v;){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}switch(r.last=1&y,--v,3&(y>>>=1)){case 0:r.mode=14;break;case 1:if(A=r,g){for(f=new u.Buf32(512),d=new u.Buf32(32),x=0;144>x;)A.lens[x++]=8;for(;256>x;)A.lens[x++]=9;for(;280>x;)A.lens[x++]=7;for(;288>x;)A.lens[x++]=8;for(m(1,A.lens,0,288,f,0,A.work,{bits:9}),x=0;32>x;)A.lens[x++]=5;m(2,A.lens,0,32,d,0,A.work,{bits:5}),g=!1}if(A.lencode=f,A.lenbits=9,A.distcode=d,A.distbits=5,r.mode=20,6===t){y>>>=2,v-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}y>>>=2,v-=2;break;case 14:for(y>>>=7&v,v-=7&v;32>v;){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}if((65535&y)!=(y>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&y,v=y=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(A=r.length){if(A>h&&(A=h),A>b&&(A=b),0===A)break e;u.arraySet(a,n,s,A,o),h-=A,s+=A,b-=A,o+=A,r.length-=A;break}r.mode=12;break;case 17:for(;14>v;){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}if(r.nlen=257+(31&y),y>>>=5,v-=5,r.ndist=1+(31&y),y>>>=5,v-=5,r.ncode=4+(15&y),y>>>=4,v-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;3>v;){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}r.lens[I[r.have++]]=7&y,y>>>=3,v-=3}for(;19>r.have;)r.lens[I[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,A={bits:r.lenbits},B=m(0,r.lens,0,19,r.lencode,0,r.work,A),r.lenbits=A.bits,B){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;A=(M=r.lencode[y&(1<<r.lenbits)-1])>>>24,M&=65535,!(A<=v);){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}if(16>M)y>>>=A,v-=A,r.lens[r.have++]=M;else{if(16===M){for(x=A+2;v<x;){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}if(y>>>=A,v-=A,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}x=r.lens[r.have-1],A=3+(3&y),y>>>=2,v-=2}else if(17===M){for(x=A+3;v<x;){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}v-=A,x=0,A=3+(7&(y>>>=A)),y>>>=3,v-=3}else{for(x=A+7;v<x;){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}v-=A,x=0,A=11+(127&(y>>>=A)),y>>>=7,v-=7}if(r.have+A>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;A--;)r.lens[r.have++]=x}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,A={bits:r.lenbits},B=m(1,r.lens,0,r.nlen,r.lencode,0,r.work,A),r.lenbits=A.bits,B){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,A={bits:r.distbits},B=m(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,A),r.distbits=A.bits,B){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=h&&258<=b){e.next_out=o,e.avail_out=b,e.next_in=s,e.avail_in=h,r.hold=y,r.bits=v,_(e,k),o=e.next_out,a=e.output,b=e.avail_out,s=e.next_in,n=e.input,h=e.avail_in,y=r.hold,v=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;A=(M=r.lencode[y&(1<<r.lenbits)-1])>>>24,x=M>>>16&255,M&=65535,!(A<=v);){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}if(x&&0==(240&x)){for(S=A,C=x,z=M;A=(M=r.lencode[z+((y&(1<<S+C)-1)>>S)])>>>24,x=M>>>16&255,M&=65535,!(S+A<=v);){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}y>>>=S,v-=S,r.back+=S}if(y>>>=A,v-=A,r.back+=A,r.length=M,0===x){r.mode=26;break}if(32&x){r.back=-1,r.mode=12;break}if(64&x){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&x,r.mode=22;case 22:if(r.extra){for(x=r.extra;v<x;){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}r.length+=y&(1<<r.extra)-1,y>>>=r.extra,v-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;A=(M=r.distcode[y&(1<<r.distbits)-1])>>>24,x=M>>>16&255,M&=65535,!(A<=v);){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}if(0==(240&x)){for(S=A,C=x,z=M;A=(M=r.distcode[z+((y&(1<<S+C)-1)>>S)])>>>24,x=M>>>16&255,M&=65535,!(S+A<=v);){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}y>>>=S,v-=S,r.back+=S}if(y>>>=A,v-=A,r.back+=A,64&x){e.msg="invalid distance code",r.mode=30;break}r.offset=M,r.extra=15&x,r.mode=24;case 24:if(r.extra){for(x=r.extra;v<x;){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}r.offset+=y&(1<<r.extra)-1,y>>>=r.extra,v-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===b)break e;if(A=k-b,r.offset>A){if((A=r.offset-A)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}A>r.wnext?(A-=r.wnext,x=r.wsize-A):x=r.wnext-A,A>r.length&&(A=r.length),S=r.window}else S=a,x=o-r.offset,A=r.length;A>b&&(A=b),b-=A,r.length-=A;do{a[o++]=S[x++]}while(--A);0===r.length&&(r.mode=21);break;case 26:if(0===b)break e;a[o++]=r.length,b--,r.mode=21;break;case 27:if(r.wrap){for(;32>v;){if(0===h)break e;h--,y|=n[s++]<<v,v+=8}if(k-=b,e.total_out+=k,r.total+=k,k&&(e.adler=r.check=r.flags?p(r.check,a,k,o-k):c(r.check,a,k,o-k)),k=b,(r.flags?y:i(y))!==r.check){e.msg="incorrect data check",r.mode=30;break}v=y=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;32>v;){if(0===h)break e;h--,y+=n[s++]<<v,v+=8}if(y!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}v=y=0}r.mode=29;case 29:B=1;break e;case 30:B=-3;break e;case 31:return-4;default:return-2}return e.next_out=o,e.avail_out=b,e.next_in=s,e.avail_in=h,r.hold=y,r.bits=v,(r.wsize||k!==e.avail_out&&30>r.mode&&(27>r.mode||4!==t))&&l(e,e.output,e.next_out,k-e.avail_out)?(r.mode=31,-4):(w-=e.avail_in,k-=e.avail_out,e.total_in+=w,e.total_out+=k,r.total+=k,r.wrap&&k&&(e.adler=r.check=r.flags?p(r.check,a,k,e.next_out-k):c(r.check,a,k,e.next_out-k)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===w&&0===k||4===t)&&0===B&&(B=-5),B)},r.inflateEnd=function(e){if(!e||!e.state)return-2;var t=e.state;return t.window&&(t.window=null),e.state=null,0},r.inflateGetHeader=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?-2:(r.head=t,t.done=!1,0):-2},r.inflateSetDictionary=function(e,t){var r,i=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?-2:11===r.mode&&c(1,t,i,0)!==r.check?-3:(l(e,t,i,i),r.havedict=1,0):-2},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":3,"./adler32":5,"./crc32":7,"./inffast":10,"./inftrees":12}],12:[function(e,t,r){var i=e("../utils/common"),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],a=[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],s=[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],o=[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];t.exports=function(e,t,r,h,l,f,d,u){var c,p,_,m,g,b,y,v,w,k,A,x,S,M,C=u.bits,z=0,B=new i.Buf16(16);g=new i.Buf16(16);var D,I,E,T,U=0;for(c=0;15>=c;c++)B[c]=0;for(p=0;p<h;p++)B[t[r+p]]++;for(m=C,_=15;1<=_&&0===B[_];_--);if(m>_&&(m=_),0===_)return l[f++]=20971520,l[f++]=20971520,u.bits=1,0;for(C=1;C<_&&0===B[C];C++);for(m<C&&(m=C),c=b=1;15>=c;c++)if(b<<=1,0>(b-=B[c]))return-1;if(0<b&&(0===e||1!==_))return-1;for(g[1]=0,c=1;15>c;c++)g[c+1]=g[c]+B[c];for(p=0;p<h;p++)0!==t[r+p]&&(d[g[t[r+p]]++]=p);if(0===e?(S=D=d,M=19):1===e?(S=n,z-=257,D=a,U-=257,M=256):(S=s,D=o,M=-1),p=v=0,c=C,x=f,h=m,g=0,k=-1,A=(y=1<<m)-1,1===e&&852<y||2===e&&592<y)return 1;for(;;){I=c-g,d[p]<M?(E=0,T=d[p]):d[p]>M?(E=D[U+d[p]],T=S[z+d[p]]):(E=96,T=0),b=1<<c-g,C=w=1<<h;do{l[x+(v>>g)+(w-=b)]=I<<24|E<<16|T|0}while(0!==w);for(b=1<<c-1;v&b;)b>>=1;if(0!==b?(v&=b-1,v+=b):v=0,p++,0==--B[c]){if(c===_)break;c=t[r+d[p]]}if(c>m&&(v&A)!==k){for(0===g&&(g=m),x+=C,b=1<<(h=c-g);h+g<_&&!(0>=(b-=B[h+g]));)h++,b<<=1;if(y+=1<<h,1===e&&852<y||2===e&&592<y)return 1;l[k=v&A]=m<<24|h<<16|x-f|0}}return 0!==v&&(l[x+v]=c-g<<24|4194304),u.bits=m,0}},{"../utils/common":3}],13:[function(e,t,r){t.exports={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"}},{}],14:[function(e,t,r){function i(e){for(var t=e.length;0<=--t;)e[t]=0}function n(e,t,r,i,n){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=e&&e.length}function a(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function s(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function o(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,s(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function h(e,t,r){o(e,r[2*t],r[2*t+1])}function l(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(0<--t);return r>>>1}function f(e,t,r){var i,n=Array(16),a=0;for(i=1;15>=i;i++)n[i]=a=a+r[i-1]<<1;for(r=0;r<=t;r++)0!==(a=e[2*r+1])&&(e[2*r]=l(n[a]++,a))}function d(e){var t;for(t=0;286>t;t++)e.dyn_ltree[2*t]=0;for(t=0;30>t;t++)e.dyn_dtree[2*t]=0;for(t=0;19>t;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function u(e){8<e.bi_valid?s(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function c(e,t,r,i){var n=2*t,a=2*r;return e[n]<e[a]||e[n]===e[a]&&i[t]<=i[r]}function p(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&c(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!c(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i}function _(e,t,r){var i,n,a,s,l=0;if(0!==e.last_lit)do{i=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],n=e.pending_buf[e.l_buf+l],l++,0===i?h(e,n,t):(h(e,(a=z[n])+256+1,t),0!==(s=w[a])&&o(e,n-=B[a],s),h(e,a=256>--i?C[i]:C[256+(i>>>7)],r),0!==(s=k[a])&&o(e,i-=D[a],s))}while(l<e.last_lit);h(e,256,t)}function m(e,t){var r,i,n=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,o=t.stat_desc.elems,h=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<o;r++)0!==n[2*r]?(e.heap[++e.heap_len]=h=r,e.depth[r]=0):n[2*r+1]=0;for(;2>e.heap_len;)n[2*(i=e.heap[++e.heap_len]=2>h?++h:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=h,r=e.heap_len>>1;1<=r;r--)p(e,n,r);i=o;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],p(e,n,1),a=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=a,n[2*i]=n[2*r]+n[2*a],e.depth[i]=(e.depth[r]>=e.depth[a]?e.depth[r]:e.depth[a])+1,n[2*r+1]=n[2*a+1]=i,e.heap[1]=i++,p(e,n,1)}while(2<=e.heap_len);e.heap[--e.heap_max]=e.heap[1],r=t.dyn_tree,i=t.max_code;var l,d,u=t.stat_desc.static_tree,c=t.stat_desc.has_stree,_=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,b=0;for(o=0;15>=o;o++)e.bl_count[o]=0;for(r[2*e.heap[e.heap_max]+1]=0,a=e.heap_max+1;573>a;a++)(o=r[2*r[2*(s=e.heap[a])+1]+1]+1)>g&&(o=g,b++),r[2*s+1]=o,s>i||(e.bl_count[o]++,l=0,s>=m&&(l=_[s-m]),d=r[2*s],e.opt_len+=d*(o+l),c&&(e.static_len+=d*(u[2*s+1]+l)));if(0!==b){do{for(o=g-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[g]--,b-=2}while(0<b);for(o=g;0!==o;o--)for(s=e.bl_count[o];0!==s;)(u=e.heap[--a])>i||(r[2*u+1]!==o&&(e.opt_len+=(o-r[2*u+1])*r[2*u],r[2*u+1]=o),s--)}f(n,h,e.bl_count)}function g(e,t,r){var i,n,a=-1,s=t[1],o=0,h=7,l=4;for(0===s&&(h=138,l=3),t[2*(r+1)+1]=65535,i=0;i<=r;i++)n=s,s=t[2*(i+1)+1],++o<h&&n===s||(o<l?e.bl_tree[2*n]+=o:0!==n?(n!==a&&e.bl_tree[2*n]++,e.bl_tree[32]++):10>=o?e.bl_tree[34]++:e.bl_tree[36]++,o=0,a=n,0===s?(h=138,l=3):n===s?(h=6,l=3):(h=7,l=4))}function b(e,t,r){var i,n,a=-1,s=t[1],l=0,f=7,d=4;for(0===s&&(f=138,d=3),i=0;i<=r;i++)if(n=s,s=t[2*(i+1)+1],!(++l<f&&n===s)){if(l<d)do{h(e,n,e.bl_tree)}while(0!=--l);else 0!==n?(n!==a&&(h(e,n,e.bl_tree),l--),h(e,16,e.bl_tree),o(e,l-3,2)):10>=l?(h(e,17,e.bl_tree),o(e,l-3,3)):(h(e,18,e.bl_tree),o(e,l-11,7));l=0,a=n,0===s?(f=138,d=3):n===s?(f=6,d=3):(f=7,d=4)}}function y(e,t,r,i){o(e,0+(i?1:0),3),u(e),s(e,r),s(e,~r),v.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}var v=e("../utils/common"),w=[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],k=[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],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=Array(576);i(S);var M=Array(60);i(M);var C=Array(512);i(C);var z=Array(256);i(z);var B=Array(29);i(B);var D=Array(30);i(D);var I,E,T,U=!1;r._tr_init=function(e){if(!U){var t,r,i,s=Array(16);for(i=r=0;28>i;i++)for(B[i]=r,t=0;t<1<<w[i];t++)z[r++]=i;for(z[r-1]=i,i=r=0;16>i;i++)for(D[i]=r,t=0;t<1<<k[i];t++)C[r++]=i;for(r>>=7;30>i;i++)for(D[i]=r<<7,t=0;t<1<<k[i]-7;t++)C[256+r++]=i;for(t=0;15>=t;t++)s[t]=0;for(t=0;143>=t;)S[2*t+1]=8,t++,s[8]++;for(;255>=t;)S[2*t+1]=9,t++,s[9]++;for(;279>=t;)S[2*t+1]=7,t++,s[7]++;for(;287>=t;)S[2*t+1]=8,t++,s[8]++;for(f(S,287,s),t=0;30>t;t++)M[2*t+1]=5,M[2*t]=l(t,5);I=new n(S,w,257,286,15),E=new n(M,k,0,30,15),T=new n([],A,0,19,7),U=!0}e.l_desc=new a(e.dyn_ltree,I),e.d_desc=new a(e.dyn_dtree,E),e.bl_desc=new a(e.bl_tree,T),e.bi_buf=0,e.bi_valid=0,d(e)},r._tr_stored_block=y,r._tr_flush_block=function(e,t,r,i){var n,a,s=0;if(0<e.level){for(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;31>=t;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;256>t;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),m(e,e.l_desc),m(e,e.d_desc),g(e,e.dyn_ltree,e.l_desc.max_code),g(e,e.dyn_dtree,e.d_desc.max_code),m(e,e.bl_desc),s=18;3<=s&&0===e.bl_tree[2*x[s]+1];s--);e.opt_len+=3*(s+1)+14,n=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=n&&(n=a)}else n=a=r+5;if(r+4<=n&&-1!==t)y(e,t,r,i);else if(4===e.strategy||a===n)o(e,2+(i?1:0),3),_(e,S,M);else{for(o(e,4+(i?1:0),3),t=e.l_desc.max_code+1,r=e.d_desc.max_code+1,s+=1,o(e,t-257,5),o(e,r-1,5),o(e,s-4,4),n=0;n<s;n++)o(e,e.bl_tree[2*x[n]+1],3);b(e,e.dyn_ltree,t-1),b(e,e.dyn_dtree,r-1),_(e,e.dyn_ltree,e.dyn_dtree)}d(e),i&&u(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(z[r]+256+1)]++,e.dyn_dtree[2*(256>t?C[t]:C[256+(t>>>7)])]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){o(e,2,3),h(e,256,S),16===e.bi_valid?(s(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":3}],15:[function(e,t,r){t.exports=function(){this.input=null,this.total_in=this.avail_in=this.next_in=0,this.output=null,this.total_out=this.avail_out=this.next_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/":[function(e,t,r){var i={};(0,e("./lib/utils/common").assign)(i,e("./lib/deflate"),e("./lib/inflate"),e=e("./lib/zlib/constants")),t.exports=i},{"./lib/deflate":1,"./lib/inflate":2,"./lib/utils/common":3,"./lib/zlib/constants":6}]},{},[])("/")})),
- /** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */function(){var e=void 0,t=!0,r=this;function i(t,i){var n,a=t.split("."),s=r;!(a[0]in s)&&s.execScript&&s.execScript("var "+a[0]);for(;a.length&&(n=a.shift());)a.length||i===e?s=s[n]?s[n]:s[n]={}:s[n]=i}var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function a(e){var t,r,i,a,s,o,h,l,f,d,u=e.length,c=0,p=Number.POSITIVE_INFINITY;for(l=0;l<u;++l)e[l]>c&&(c=e[l]),e[l]<p&&(p=e[l]);for(t=1<<c,r=new(n?Uint32Array:Array)(t),i=1,a=0,s=2;i<=c;){for(l=0;l<u;++l)if(e[l]===i){for(o=0,h=a,f=0;f<i;++f)o=o<<1|1&h,h>>=1;for(d=i<<16|l,f=o;f<t;f+=s)r[f]=d;++a}++i,a<<=1,s<<=1}return[r,c,p]}function s(t,r,i){this.u=[],this.i=i||32768,this.v=0,this.a=r===e?0:r,this.d=this.e=0,this.input=n?new Uint8Array(t):t,this.b=new(n?Uint8Array:Array)(this.i),this.c=0,this.t=this.l=!1,this.f=0,this.status=o}var o=0;s.prototype.j=function(r,i){var s=!1;for(r!==e&&(this.input=r),i!==e&&(this.a=i);!s;)switch(this.status){case o:case 1:var h,l=e;if(this.status=1,z(this),0>(l=M(this,3)))B(this),h=-1;else{switch(1&l&&(this.l=t),l>>>=1){case 0:this.h=0;break;case 1:this.h=1;break;case 2:this.h=2;break;default:throw Error("unknown BTYPE: "+l)}this.status=2,h=e}0>h&&(s=t);break;case 2:case 3:switch(this.h){case 0:var f,u=e,c=this.input,p=this.a;if(this.status=3,p+4>=c.length)f=-1;else{if((u=c[p++]|c[p++]<<8)===~(c[p++]|c[p++]<<8))throw Error("invalid uncompressed block header: length verify");this.d=this.e=0,this.a=p,this.m=u,this.status=4,f=e}0>f&&(s=t);break;case 1:this.status=3,this.k=A,this.n=S,this.status=4;break;case 2:var _;e:{var m,g,b,y=new(n?Uint8Array:Array)(d.length),v=e;if(this.status=3,z(this),m=M(this,5)+257,g=M(this,5)+1,b=M(this,4)+4,0>m||0>g||0>b)B(this),_=-1;else{try{var w,k=e,x=e,E=0,T=e,U=e,R=e;for(R=0;R<b;++R){if(0>(k=M(this,3)))throw Error("not enough input");y[d[R]]=k}for(v=a(y),U=new(n?Uint8Array:Array)(m+g),R=0,w=m+g;R<w;){if(0>(x=C(this,v)))throw Error("not enough input");switch(x){case 16:if(0>(k=M(this,2)))throw Error("not enough input");for(T=3+k;T--;)U[R++]=E;break;case 17:if(0>(k=M(this,3)))throw Error("not enough input");for(T=3+k;T--;)U[R++]=0;E=0;break;case 18:if(0>(k=M(this,7)))throw Error("not enough input");for(T=11+k;T--;)U[R++]=0;E=0;break;default:E=U[R++]=x}}new(n?Uint8Array:Array)(m),new(n?Uint8Array:Array)(g),this.k=a(n?U.subarray(0,m):U.slice(0,m)),this.n=a(n?U.subarray(m):U.slice(m))}catch(e){B(this),_=-1;break e}this.status=4,_=0}}0>_&&(s=t)}break;case 4:case 5:switch(this.h){case 0:var L;e:{var O=this.input,F=this.a,Z=this.b,P=this.c,N=this.m;for(this.status=5;N--;){if(P===Z.length&&(Z=I(this,{o:2})),F>=O.length){this.a=F,this.c=P,this.m=N+1,L=-1;break e}Z[P++]=O[F++]}0>N&&(this.status=6),this.a=F,this.c=P,L=0}0>L&&(s=t);break;case 1:case 2:0>D(this)&&(s=t)}break;case 6:this.l?s=t:this.status=o}var j,W,G=this.c;return j=this.t?n?new Uint8Array(this.b.subarray(this.f,G)):this.b.slice(this.f,G):n?this.b.subarray(this.f,G):this.b.slice(this.f,G),this.f=G,G>32768+this.i&&(this.c=this.f=32768,n?(W=this.b,this.b=new Uint8Array(this.i+32768),this.b.set(W.subarray(G-32768,G))):this.b=this.b.slice(G-32768)),j};var h,l,f=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],d=n?new Uint16Array(f):f,u=[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,258,258],c=n?new Uint16Array(u):u,p=[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],_=n?new Uint8Array(p):p,m=[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],g=n?new Uint16Array(m):m,b=[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],y=n?new Uint8Array(b):b,v=new(n?Uint8Array:Array)(288);for(h=0,l=v.length;h<l;++h)v[h]=143>=h?8:255>=h?9:279>=h?7:8;var w,k,A=a(v),x=new(n?Uint8Array:Array)(30);for(w=0,k=x.length;w<k;++w)x[w]=5;var S=a(x);function M(e,t){for(var r,i=e.e,n=e.d,a=e.input,s=e.a;n<t;){if(a.length<=s)return-1;i|=(r=a[s++])<<n,n+=8}return r=i&(1<<t)-1,e.e=i>>>t,e.d=n-t,e.a=s,r}function C(e,t){for(var r,i,n=e.e,a=e.d,s=e.input,o=e.a,h=t[0],l=t[1];a<l;){if(s.length<=o)return-1;n|=s[o++]<<a,a+=8}if((i=(r=h[n&(1<<l)-1])>>>16)>a)throw Error("invalid code length: "+i);return e.e=n>>i,e.d=a-i,e.a=o,65535&r}function z(e){e.s=e.a,e.r=e.d,e.q=e.e}function B(e){e.a=e.s,e.d=e.r,e.e=e.q}function D(e){var t,r,i,n,a,s=e.b,o=e.c,h=e.k,l=e.n,f=s.length;for(e.status=5;;){if(z(e),0>(t=C(e,h)))return e.c=o,B(e),-1;if(256===t)break;if(256>t)o===f&&(f=(s=I(e)).length),s[o++]=t;else{if(n=c[r=t-257],0<_[r]){if(0>(a=M(e,_[r])))return e.c=o,B(e),-1;n+=a}if(0>(t=C(e,l)))return e.c=o,B(e),-1;if(i=g[t],0<y[t]){if(0>(a=M(e,y[t])))return e.c=o,B(e),-1;i+=a}for(o+n>=f&&(f=(s=I(e)).length);n--;)s[o]=s[o++-i];if(e.a===e.input.length)return e.c=o,-1}}for(;8<=e.d;)e.d-=8,e.a--;e.c=o,e.status=6}function I(e,t){var r,i,a,s=e.input.length/e.a+1|0,o=e.input,h=e.b;return t&&("number"==typeof t.o&&(s=t.o),"number"==typeof t.p&&(s+=t.p)),2>s?i=(a=(o.length-e.a)/e.k[2]/2*258|0)<h.length?h.length+a:h.length<<1:i=h.length*s,n?(r=new Uint8Array(i)).set(h):r=h,e.b=r,e.b}function E(t){this.input=t===e?new(n?Uint8Array:Array):t,this.a=0,this.g=new s(this.input,this.a),this.b=this.g.b}E.prototype.j=function(t){var r,i;if(t!==e)if(n){var a=new Uint8Array(this.input.length+t.length);a.set(this.input,0),a.set(t,this.input.length),this.input=a}else this.input=this.input.concat(t);if(i=this.method===e){var s,o=this.a,h=this.input,l=h[o++],f=h[o++];if(l===e||f===e)s=-1;else{if(8!=(15&l))throw Error("unsupported compression method");if(this.method=8,0!=((l<<8)+f)%31)throw Error("invalid fcheck flag:"+((l<<8)+f)%31);if(32&f)throw Error("fdict flag is not supported");this.a=o,s=e}i=0>s}return i?new(n?Uint8Array:Array):(r=this.g.j(this.input,this.a),0!==this.g.a&&(this.input=n?this.input.subarray(this.g.a):this.input.slice(this.g.a),this.a=0),r)},i("Zlib.InflateStream",E),i("Zlib.InflateStream.prototype.decompress",E.prototype.j)}.call(this),
- /** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
- function(){var e=void 0,t=!0,r=this;function i(t,i){var n,a=t.split("."),s=r;!(a[0]in s)&&s.execScript&&s.execScript("var "+a[0]);for(;a.length&&(n=a.shift());)a.length||i===e?s=s[n]?s[n]:s[n]={}:s[n]=i}var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function a(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(n?Uint8Array:Array)?e:new(n?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&s(this)}function s(e){var t,r=e.buffer,i=r.length,a=new(n?Uint8Array:Array)(i<<1);if(n)a.set(r);else for(t=0;t<i;++t)a[t]=r[t];return e.buffer=a}a.prototype.b=function(e,t,r){var i,n=this.buffer,a=this.index,o=this.e,h=n[a];if(r&&1<t&&(e=8<t?(u[255&e]<<24|u[e>>>8&255]<<16|u[e>>>16&255]<<8|u[e>>>24&255])>>32-t:u[e]>>8-t),8>t+o)h=h<<t|e,o+=t;else for(i=0;i<t;++i)h=h<<1|e>>t-i-1&1,8==++o&&(o=0,n[a++]=u[h],h=0,a===n.length&&(n=s(this)));n[a]=h,this.buffer=n,this.e=o,this.index=a},a.prototype.finish=function(){var e,t=this.buffer,r=this.index;return 0<this.e&&(t[r]<<=8-this.e,t[r]=u[t[r]],r++),n?e=t.subarray(0,r):(t.length=r,e=t),e};var o,h=new(n?Uint8Array:Array)(256);for(o=0;256>o;++o){for(var l=d=o,f=7,d=d>>>1;d;d>>>=1)l<<=1,l|=1&d,--f;h[o]=(l<<f&255)>>>0}var u=h;function c(e){this.buffer=new(n?Uint16Array:Array)(2*e),this.length=0}function p(e,t){this.d=m,this.i=0,this.input=n&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.i=t.lazy),"number"==typeof t.compressionType&&(this.d=t.compressionType),t.outputBuffer&&(this.a=n&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex&&(this.c=t.outputIndex)),this.a||(this.a=new(n?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,t){var r,i,n,a=this.buffer;for(r=this.length,a[this.length++]=t,a[this.length++]=e;0<r&&(i=this.getParent(r),a[r]>a[i]);)n=a[r],a[r]=a[i],a[i]=n,n=a[r+1],a[r+1]=a[i+1],a[i+1]=n,r=i;return this.length},c.prototype.pop=function(){var e,t,r,i,n,a=this.buffer;for(t=a[0],e=a[1],this.length-=2,a[0]=a[this.length],a[1]=a[this.length+1],n=0;!((i=2*n+2)>=this.length)&&(i+2<this.length&&a[i+2]>a[i]&&(i+=2),a[i]>a[n]);)r=a[n],a[n]=a[i],a[i]=r,r=a[n+1],a[n+1]=a[i+1],a[i+1]=r,n=i;return{index:e,value:t,length:this.length}};var _,m=2,g={NONE:0,h:1,g:m,n:3},b=[];for(_=0;288>_;_++)switch(t){case 143>=_:b.push([_+48,8]);break;case 255>=_:b.push([_-144+400,9]);break;case 279>=_:b.push([_-256+0,7]);break;case 287>=_:b.push([_-280+192,8]);break;default:throw"invalid literal: "+_}function y(e,t){this.length=e,this.k=t}p.prototype.f=function(){var r,i,s,o,h=this.input;switch(this.d){case 0:for(s=0,o=h.length;s<o;){var l,f,d,u=i=n?h.subarray(s,s+65535):h.slice(s,s+65535),c=(s+=i.length)===o,p=e,_=e,g=this.a,y=this.c;if(n){for(g=new Uint8Array(this.a.buffer);g.length<=y+u.length+5;)g=new Uint8Array(g.length<<1);g.set(this.a)}if(l=c?1:0,g[y++]=0|l,d=65536+~(f=u.length)&65535,g[y++]=255&f,g[y++]=f>>>8&255,g[y++]=255&d,g[y++]=d>>>8&255,n)g.set(u,y),y+=u.length,g=g.subarray(0,y);else{for(p=0,_=u.length;p<_;++p)g[y++]=u[p];g.length=y}this.c=y,this.a=g}break;case 1:var v=new a(n?new Uint8Array(this.a.buffer):this.a,this.c);v.b(1,1,t),v.b(1,2,t);var w,A,M,C=k(this,h);for(w=0,A=C.length;w<A;w++)if(M=C[w],a.prototype.b.apply(v,b[M]),256<M)v.b(C[++w],C[++w],t),v.b(C[++w],5),v.b(C[++w],C[++w],t);else if(256===M)break;this.a=v.finish(),this.c=this.a.length;break;case m:var z,B,D,I,E,T,U,R,L,O,F,Z,P,N,j,W=new a(n?new Uint8Array(this.a.buffer):this.a,this.c),G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=Array(19);for(z=m,W.b(1,1,t),W.b(z,2,t),B=k(this,h),U=S(T=x(this.m,15)),L=S(R=x(this.l,7)),D=286;257<D&&0===T[D-1];D--);for(I=30;1<I&&0===R[I-1];I--);var q,K,V,Y,J,X,$=D,Q=I,ee=new(n?Uint32Array:Array)($+Q),te=new(n?Uint32Array:Array)(316),re=new(n?Uint8Array:Array)(19);for(q=K=0;q<$;q++)ee[K++]=T[q];for(q=0;q<Q;q++)ee[K++]=R[q];if(!n)for(q=0,Y=re.length;q<Y;++q)re[q]=0;for(q=J=0,Y=ee.length;q<Y;q+=K){for(K=1;q+K<Y&&ee[q+K]===ee[q];++K);if(V=K,0===ee[q])if(3>V)for(;0<V--;)te[J++]=0,re[0]++;else for(;0<V;)(X=138>V?V:138)>V-3&&X<V&&(X=V-3),10>=X?(te[J++]=17,te[J++]=X-3,re[17]++):(te[J++]=18,te[J++]=X-11,re[18]++),V-=X;else if(te[J++]=ee[q],re[ee[q]]++,3>--V)for(;0<V--;)te[J++]=ee[q],re[ee[q]]++;else for(;0<V;)(X=6>V?V:6)>V-3&&X<V&&(X=V-3),te[J++]=16,te[J++]=X-3,re[16]++,V-=X}for(r=n?te.subarray(0,J):te.slice(0,J),O=x(re,7),N=0;19>N;N++)H[N]=O[G[N]];for(E=19;4<E&&0===H[E-1];E--);for(F=S(O),W.b(D-257,5,t),W.b(I-1,5,t),W.b(E-4,4,t),N=0;N<E;N++)W.b(H[N],3,t);for(N=0,j=r.length;N<j;N++)if(Z=r[N],W.b(F[Z],O[Z],t),16<=Z){switch(N++,Z){case 16:P=2;break;case 17:P=3;break;case 18:P=7;break;default:throw"invalid code: "+Z}W.b(r[N],P,t)}var ie,ne,ae,se,oe,he,le,fe,de=[U,T],ue=[L,R];for(oe=de[0],he=de[1],le=ue[0],fe=ue[1],ie=0,ne=B.length;ie<ne;++ie)if(ae=B[ie],W.b(oe[ae],he[ae],t),256<ae)W.b(B[++ie],B[++ie],t),se=B[++ie],W.b(le[se],fe[se],t),W.b(B[++ie],B[++ie],t);else if(256===ae)break;this.a=W.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var v=function(){function e(e){switch(t){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case 12>=e:return[265,e-11,1];case 14>=e:return[266,e-13,1];case 16>=e:return[267,e-15,1];case 18>=e:return[268,e-17,1];case 22>=e:return[269,e-19,2];case 26>=e:return[270,e-23,2];case 30>=e:return[271,e-27,2];case 34>=e:return[272,e-31,2];case 42>=e:return[273,e-35,3];case 50>=e:return[274,e-43,3];case 58>=e:return[275,e-51,3];case 66>=e:return[276,e-59,3];case 82>=e:return[277,e-67,4];case 98>=e:return[278,e-83,4];case 114>=e:return[279,e-99,4];case 130>=e:return[280,e-115,4];case 162>=e:return[281,e-131,5];case 194>=e:return[282,e-163,5];case 226>=e:return[283,e-195,5];case 257>=e:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}var r,i,n=[];for(r=3;258>=r;r++)i=e(r),n[r]=i[2]<<24|i[1]<<16|i[0];return n}(),w=n?new Uint32Array(v):v;function k(r,i){function a(e,r){var i,n,a,s,o=e.k,h=[],l=0;switch(i=w[e.length],h[l++]=65535&i,h[l++]=i>>16&255,h[l++]=i>>24,t){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case 6>=o:n=[4,o-5,1];break;case 8>=o:n=[5,o-7,1];break;case 12>=o:n=[6,o-9,2];break;case 16>=o:n=[7,o-13,2];break;case 24>=o:n=[8,o-17,3];break;case 32>=o:n=[9,o-25,3];break;case 48>=o:n=[10,o-33,4];break;case 64>=o:n=[11,o-49,4];break;case 96>=o:n=[12,o-65,5];break;case 128>=o:n=[13,o-97,5];break;case 192>=o:n=[14,o-129,6];break;case 256>=o:n=[15,o-193,6];break;case 384>=o:n=[16,o-257,7];break;case 512>=o:n=[17,o-385,7];break;case 768>=o:n=[18,o-513,8];break;case 1024>=o:n=[19,o-769,8];break;case 1536>=o:n=[20,o-1025,9];break;case 2048>=o:n=[21,o-1537,9];break;case 3072>=o:n=[22,o-2049,10];break;case 4096>=o:n=[23,o-3073,10];break;case 6144>=o:n=[24,o-4097,11];break;case 8192>=o:n=[25,o-6145,11];break;case 12288>=o:n=[26,o-8193,12];break;case 16384>=o:n=[27,o-12289,12];break;case 24576>=o:n=[28,o-16385,13];break;case 32768>=o:n=[29,o-24577,13];break;default:throw"invalid distance"}for(i=n,h[l++]=i[0],h[l++]=i[1],h[l++]=i[2],a=0,s=h.length;a<s;++a)m[g++]=h[a];y[h[0]]++,v[h[3]]++,b=e.length+r-1,c=null}var s,o,h,l,f,d,u,c,p,_={},m=n?new Uint16Array(2*i.length):[],g=0,b=0,y=new(n?Uint32Array:Array)(286),v=new(n?Uint32Array:Array)(30),k=r.i;if(!n){for(h=0;285>=h;)y[h++]=0;for(h=0;29>=h;)v[h++]=0}for(y[256]=1,s=0,o=i.length;s<o;++s){for(h=f=0,l=3;h<l&&s+h!==o;++h)f=f<<8|i[s+h];if(_[f]===e&&(_[f]=[]),d=_[f],!(0<b--)){for(;0<d.length&&32768<s-d[0];)d.shift();if(s+3>=o){for(c&&a(c,-1),h=0,l=o-s;h<l;++h)p=i[s+h],m[g++]=p,++y[p];break}0<d.length?(u=A(i,s,d),c?c.length<u.length?(p=i[s-1],m[g++]=p,++y[p],a(u,0)):a(c,-1):u.length<k?c=u:a(u,0)):c?a(c,-1):(p=i[s],m[g++]=p,++y[p])}d.push(s)}return m[g++]=256,y[256]++,r.m=y,r.l=v,n?m.subarray(0,g):m}function A(e,t,r){var i,n,a,s,o,h,l=0,f=e.length;s=0,h=r.length;e:for(;s<h;s++){if(i=r[h-s-1],a=3,3<l){for(o=l;3<o;o--)if(e[i+o-1]!==e[t+o-1])continue e;a=l}for(;258>a&&t+a<f&&e[i+a]===e[t+a];)++a;if(a>l&&(n=i,l=a),258===a)break}return new y(l,t-n)}function x(e,t){var r,i,a,s,o,h=e.length,l=new c(572),f=new(n?Uint8Array:Array)(h);if(!n)for(s=0;s<h;s++)f[s]=0;for(s=0;s<h;++s)0<e[s]&&l.push(s,e[s]);if(r=Array(l.length/2),i=new(n?Uint32Array:Array)(l.length/2),1===r.length)return f[l.pop().index]=1,f;for(s=0,o=l.length/2;s<o;++s)r[s]=l.pop(),i[s]=r[s].value;for(a=function(e,t,r){function i(e){var r=p[e][_[e]];r===t?(i(e+1),i(e+1)):--u[r],++_[e]}var a,s,o,h,l,f=new(n?Uint16Array:Array)(r),d=new(n?Uint8Array:Array)(r),u=new(n?Uint8Array:Array)(t),c=Array(r),p=Array(r),_=Array(r),m=(1<<r)-t,g=1<<r-1;for(f[r-1]=t,s=0;s<r;++s)m<g?d[s]=0:(d[s]=1,m-=g),m<<=1,f[r-2-s]=(f[r-1-s]/2|0)+t;for(f[0]=d[0],c[0]=Array(f[0]),p[0]=Array(f[0]),s=1;s<r;++s)f[s]>2*f[s-1]+d[s]&&(f[s]=2*f[s-1]+d[s]),c[s]=Array(f[s]),p[s]=Array(f[s]);for(a=0;a<t;++a)u[a]=r;for(o=0;o<f[r-1];++o)c[r-1][o]=e[o],p[r-1][o]=o;for(a=0;a<r;++a)_[a]=0;for(1===d[r-1]&&(--u[0],++_[r-1]),s=r-2;0<=s;--s){for(h=a=0,l=_[s+1],o=0;o<f[s];o++)(h=c[s+1][l]+c[s+1][l+1])>e[a]?(c[s][o]=h,p[s][o]=t,l+=2):(c[s][o]=e[a],p[s][o]=a,++a);_[s]=0,1===d[s]&&i(s)}return u}(i,i.length,t),s=0,o=r.length;s<o;++s)f[r[s].index]=a[s];return f}function S(e){var t,r,i,a,s=new(n?Uint16Array:Array)(e.length),o=[],h=[],l=0;for(t=0,r=e.length;t<r;t++)o[e[t]]=1+(0|o[e[t]]);for(t=1,r=16;t<=r;t++)h[t]=l,l+=0|o[t],l<<=1;for(t=0,r=e.length;t<r;t++)for(l=h[e[t]],h[e[t]]+=1,i=s[t]=0,a=e[t];i<a;i++)s[t]=s[t]<<1|1&l,l>>>=1;return s}function M(e,t){this.input=e,this.a=new(n?Uint8Array:Array)(32768),this.d=C.g;var r,i={};for(r in!t&&(t={})||"number"!=typeof t.compressionType||(this.d=t.compressionType),t)i[r]=t[r];i.outputBuffer=this.a,this.j=new p(this.input,i)}var C=g;M.prototype.f=function(){var e,t,r,i,a,s=0;switch(a=this.a,e=Math.LOG2E*Math.log(32768)-8<<4|8,a[s++]=e,this.d){case C.NONE:r=0;break;case C.h:r=1;break;case C.g:r=2;break;default:throw Error("unsupported compression type")}t=r<<6|0,a[s++]=t|31-(256*e+t)%31;var o=this.input;if("string"==typeof o){var h,l,f=o.split("");for(h=0,l=f.length;h<l;h++)f[h]=(255&f[h].charCodeAt(0))>>>0;o=f}for(var d,u=1,c=0,p=o.length,_=0;0<p;){p-=d=1024<p?1024:p;do{c+=u+=o[_++]}while(--d);u%=65521,c%=65521}return i=(c<<16|u)>>>0,this.j.c=s,s=(a=this.j.f()).length,n&&((a=new Uint8Array(a.buffer)).length<=s+4&&(this.a=new Uint8Array(a.length+4),this.a.set(a),a=this.a),a=a.subarray(0,s+4)),a[s++]=i>>24&255,a[s++]=i>>16&255,a[s++]=i>>8&255,a[s++]=255&i,a},i("Zlib.Deflate",M),i("Zlib.Deflate.compress",(function(e,t){return new M(e,t).f()})),i("Zlib.Deflate.prototype.compress",M.prototype.f);var z,B,D,I,E={NONE:C.NONE,FIXED:C.h,DYNAMIC:C.g};if(Object.keys)z=Object.keys(E);else for(B in z=[],D=0,E)z[D++]=B;for(D=0,I=z.length;D<I;++D)i("Zlib.Deflate.CompressionType."+(B=z[D]),E[B])}.call(this),
- /** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
- function(){var e=void 0,t=!0,r=this;function i(t,i){var n,a=t.split("."),s=r;!(a[0]in s)&&s.execScript&&s.execScript("var "+a[0]);for(;a.length&&(n=a.shift());)a.length||i===e?s=s[n]?s[n]:s[n]={}:s[n]=i}var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function a(e,t){if(this.index="number"==typeof t?t:0,this.d=0,this.buffer=e instanceof(n?Uint8Array:Array)?e:new(n?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&s(this)}function s(e){var t,r=e.buffer,i=r.length,a=new(n?Uint8Array:Array)(i<<1);if(n)a.set(r);else for(t=0;t<i;++t)a[t]=r[t];return e.buffer=a}a.prototype.a=function(e,t,r){var i,n=this.buffer,a=this.index,o=this.d,h=n[a];if(r&&1<t&&(e=8<t?(u[255&e]<<24|u[e>>>8&255]<<16|u[e>>>16&255]<<8|u[e>>>24&255])>>32-t:u[e]>>8-t),8>t+o)h=h<<t|e,o+=t;else for(i=0;i<t;++i)h=h<<1|e>>t-i-1&1,8==++o&&(o=0,n[a++]=u[h],h=0,a===n.length&&(n=s(this)));n[a]=h,this.buffer=n,this.d=o,this.index=a},a.prototype.finish=function(){var e,t=this.buffer,r=this.index;return 0<this.d&&(t[r]<<=8-this.d,t[r]=u[t[r]],r++),n?e=t.subarray(0,r):(t.length=r,e=t),e};var o,h=new(n?Uint8Array:Array)(256);for(o=0;256>o;++o){for(var l=d=o,f=7,d=d>>>1;d;d>>>=1)l<<=1,l|=1&d,--f;h[o]=(l<<f&255)>>>0}var u=h;function c(e){this.buffer=new(n?Uint16Array:Array)(2*e),this.length=0}function p(e,t){this.e=m,this.f=0,this.input=n&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.f=t.lazy),"number"==typeof t.compressionType&&(this.e=t.compressionType),t.outputBuffer&&(this.b=n&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex&&(this.c=t.outputIndex)),this.b||(this.b=new(n?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,t){var r,i,n,a=this.buffer;for(r=this.length,a[this.length++]=t,a[this.length++]=e;0<r&&(i=this.getParent(r),a[r]>a[i]);)n=a[r],a[r]=a[i],a[i]=n,n=a[r+1],a[r+1]=a[i+1],a[i+1]=n,r=i;return this.length},c.prototype.pop=function(){var e,t,r,i,n,a=this.buffer;for(t=a[0],e=a[1],this.length-=2,a[0]=a[this.length],a[1]=a[this.length+1],n=0;!((i=2*n+2)>=this.length)&&(i+2<this.length&&a[i+2]>a[i]&&(i+=2),a[i]>a[n]);)r=a[n],a[n]=a[i],a[i]=r,r=a[n+1],a[n+1]=a[i+1],a[i+1]=r,n=i;return{index:e,value:t,length:this.length}};var _,m=2,g=[];for(_=0;288>_;_++)switch(t){case 143>=_:g.push([_+48,8]);break;case 255>=_:g.push([_-144+400,9]);break;case 279>=_:g.push([_-256+0,7]);break;case 287>=_:g.push([_-280+192,8]);break;default:throw"invalid literal: "+_}function b(e,t){this.length=e,this.g=t}p.prototype.h=function(){var r,i,s,o,h=this.input;switch(this.e){case 0:for(s=0,o=h.length;s<o;){var l,f,d,u=i=n?h.subarray(s,s+65535):h.slice(s,s+65535),c=(s+=i.length)===o,p=e,_=e,b=this.b,y=this.c;if(n){for(b=new Uint8Array(this.b.buffer);b.length<=y+u.length+5;)b=new Uint8Array(b.length<<1);b.set(this.b)}if(l=c?1:0,b[y++]=0|l,d=65536+~(f=u.length)&65535,b[y++]=255&f,b[y++]=f>>>8&255,b[y++]=255&d,b[y++]=d>>>8&255,n)b.set(u,y),y+=u.length,b=b.subarray(0,y);else{for(p=0,_=u.length;p<_;++p)b[y++]=u[p];b.length=y}this.c=y,this.b=b}break;case 1:var v=new a(n?new Uint8Array(this.b.buffer):this.b,this.c);v.a(1,1,t),v.a(1,2,t);var k,S,M,C=w(this,h);for(k=0,S=C.length;k<S;k++)if(M=C[k],a.prototype.a.apply(v,g[M]),256<M)v.a(C[++k],C[++k],t),v.a(C[++k],5),v.a(C[++k],C[++k],t);else if(256===M)break;this.b=v.finish(),this.c=this.b.length;break;case m:var z,B,D,I,E,T,U,R,L,O,F,Z,P,N,j,W=new a(n?new Uint8Array(this.b.buffer):this.b,this.c),G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=Array(19);for(z=m,W.a(1,1,t),W.a(z,2,t),B=w(this,h),U=x(T=A(this.j,15)),L=x(R=A(this.i,7)),D=286;257<D&&0===T[D-1];D--);for(I=30;1<I&&0===R[I-1];I--);var q,K,V,Y,J,X,$=D,Q=I,ee=new(n?Uint32Array:Array)($+Q),te=new(n?Uint32Array:Array)(316),re=new(n?Uint8Array:Array)(19);for(q=K=0;q<$;q++)ee[K++]=T[q];for(q=0;q<Q;q++)ee[K++]=R[q];if(!n)for(q=0,Y=re.length;q<Y;++q)re[q]=0;for(q=J=0,Y=ee.length;q<Y;q+=K){for(K=1;q+K<Y&&ee[q+K]===ee[q];++K);if(V=K,0===ee[q])if(3>V)for(;0<V--;)te[J++]=0,re[0]++;else for(;0<V;)(X=138>V?V:138)>V-3&&X<V&&(X=V-3),10>=X?(te[J++]=17,te[J++]=X-3,re[17]++):(te[J++]=18,te[J++]=X-11,re[18]++),V-=X;else if(te[J++]=ee[q],re[ee[q]]++,3>--V)for(;0<V--;)te[J++]=ee[q],re[ee[q]]++;else for(;0<V;)(X=6>V?V:6)>V-3&&X<V&&(X=V-3),te[J++]=16,te[J++]=X-3,re[16]++,V-=X}for(r=n?te.subarray(0,J):te.slice(0,J),O=A(re,7),N=0;19>N;N++)H[N]=O[G[N]];for(E=19;4<E&&0===H[E-1];E--);for(F=x(O),W.a(D-257,5,t),W.a(I-1,5,t),W.a(E-4,4,t),N=0;N<E;N++)W.a(H[N],3,t);for(N=0,j=r.length;N<j;N++)if(Z=r[N],W.a(F[Z],O[Z],t),16<=Z){switch(N++,Z){case 16:P=2;break;case 17:P=3;break;case 18:P=7;break;default:throw"invalid code: "+Z}W.a(r[N],P,t)}var ie,ne,ae,se,oe,he,le,fe,de=[U,T],ue=[L,R];for(oe=de[0],he=de[1],le=ue[0],fe=ue[1],ie=0,ne=B.length;ie<ne;++ie)if(ae=B[ie],W.a(oe[ae],he[ae],t),256<ae)W.a(B[++ie],B[++ie],t),se=B[++ie],W.a(le[se],fe[se],t),W.a(B[++ie],B[++ie],t);else if(256===ae)break;this.b=W.finish(),this.c=this.b.length;break;default:throw"invalid compression type"}return this.b};var y=function(){function e(e){switch(t){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case 12>=e:return[265,e-11,1];case 14>=e:return[266,e-13,1];case 16>=e:return[267,e-15,1];case 18>=e:return[268,e-17,1];case 22>=e:return[269,e-19,2];case 26>=e:return[270,e-23,2];case 30>=e:return[271,e-27,2];case 34>=e:return[272,e-31,2];case 42>=e:return[273,e-35,3];case 50>=e:return[274,e-43,3];case 58>=e:return[275,e-51,3];case 66>=e:return[276,e-59,3];case 82>=e:return[277,e-67,4];case 98>=e:return[278,e-83,4];case 114>=e:return[279,e-99,4];case 130>=e:return[280,e-115,4];case 162>=e:return[281,e-131,5];case 194>=e:return[282,e-163,5];case 226>=e:return[283,e-195,5];case 257>=e:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}var r,i,n=[];for(r=3;258>=r;r++)i=e(r),n[r]=i[2]<<24|i[1]<<16|i[0];return n}(),v=n?new Uint32Array(y):y;function w(r,i){function a(e,r){var i,n,a,s,o=e.g,h=[],l=0;switch(i=v[e.length],h[l++]=65535&i,h[l++]=i>>16&255,h[l++]=i>>24,t){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case 6>=o:n=[4,o-5,1];break;case 8>=o:n=[5,o-7,1];break;case 12>=o:n=[6,o-9,2];break;case 16>=o:n=[7,o-13,2];break;case 24>=o:n=[8,o-17,3];break;case 32>=o:n=[9,o-25,3];break;case 48>=o:n=[10,o-33,4];break;case 64>=o:n=[11,o-49,4];break;case 96>=o:n=[12,o-65,5];break;case 128>=o:n=[13,o-97,5];break;case 192>=o:n=[14,o-129,6];break;case 256>=o:n=[15,o-193,6];break;case 384>=o:n=[16,o-257,7];break;case 512>=o:n=[17,o-385,7];break;case 768>=o:n=[18,o-513,8];break;case 1024>=o:n=[19,o-769,8];break;case 1536>=o:n=[20,o-1025,9];break;case 2048>=o:n=[21,o-1537,9];break;case 3072>=o:n=[22,o-2049,10];break;case 4096>=o:n=[23,o-3073,10];break;case 6144>=o:n=[24,o-4097,11];break;case 8192>=o:n=[25,o-6145,11];break;case 12288>=o:n=[26,o-8193,12];break;case 16384>=o:n=[27,o-12289,12];break;case 24576>=o:n=[28,o-16385,13];break;case 32768>=o:n=[29,o-24577,13];break;default:throw"invalid distance"}for(i=n,h[l++]=i[0],h[l++]=i[1],h[l++]=i[2],a=0,s=h.length;a<s;++a)m[g++]=h[a];y[h[0]]++,w[h[3]]++,b=e.length+r-1,c=null}var s,o,h,l,f,d,u,c,p,_={},m=n?new Uint16Array(2*i.length):[],g=0,b=0,y=new(n?Uint32Array:Array)(286),w=new(n?Uint32Array:Array)(30),A=r.f;if(!n){for(h=0;285>=h;)y[h++]=0;for(h=0;29>=h;)w[h++]=0}for(y[256]=1,s=0,o=i.length;s<o;++s){for(h=f=0,l=3;h<l&&s+h!==o;++h)f=f<<8|i[s+h];if(_[f]===e&&(_[f]=[]),d=_[f],!(0<b--)){for(;0<d.length&&32768<s-d[0];)d.shift();if(s+3>=o){for(c&&a(c,-1),h=0,l=o-s;h<l;++h)p=i[s+h],m[g++]=p,++y[p];break}0<d.length?(u=k(i,s,d),c?c.length<u.length?(p=i[s-1],m[g++]=p,++y[p],a(u,0)):a(c,-1):u.length<A?c=u:a(u,0)):c?a(c,-1):(p=i[s],m[g++]=p,++y[p])}d.push(s)}return m[g++]=256,y[256]++,r.j=y,r.i=w,n?m.subarray(0,g):m}function k(e,t,r){var i,n,a,s,o,h,l=0,f=e.length;s=0,h=r.length;e:for(;s<h;s++){if(i=r[h-s-1],a=3,3<l){for(o=l;3<o;o--)if(e[i+o-1]!==e[t+o-1])continue e;a=l}for(;258>a&&t+a<f&&e[i+a]===e[t+a];)++a;if(a>l&&(n=i,l=a),258===a)break}return new b(l,t-n)}function A(e,t){var r,i,a,s,o,h=e.length,l=new c(572),f=new(n?Uint8Array:Array)(h);if(!n)for(s=0;s<h;s++)f[s]=0;for(s=0;s<h;++s)0<e[s]&&l.push(s,e[s]);if(r=Array(l.length/2),i=new(n?Uint32Array:Array)(l.length/2),1===r.length)return f[l.pop().index]=1,f;for(s=0,o=l.length/2;s<o;++s)r[s]=l.pop(),i[s]=r[s].value;for(a=function(e,t,r){function i(e){var r=p[e][_[e]];r===t?(i(e+1),i(e+1)):--u[r],++_[e]}var a,s,o,h,l,f=new(n?Uint16Array:Array)(r),d=new(n?Uint8Array:Array)(r),u=new(n?Uint8Array:Array)(t),c=Array(r),p=Array(r),_=Array(r),m=(1<<r)-t,g=1<<r-1;for(f[r-1]=t,s=0;s<r;++s)m<g?d[s]=0:(d[s]=1,m-=g),m<<=1,f[r-2-s]=(f[r-1-s]/2|0)+t;for(f[0]=d[0],c[0]=Array(f[0]),p[0]=Array(f[0]),s=1;s<r;++s)f[s]>2*f[s-1]+d[s]&&(f[s]=2*f[s-1]+d[s]),c[s]=Array(f[s]),p[s]=Array(f[s]);for(a=0;a<t;++a)u[a]=r;for(o=0;o<f[r-1];++o)c[r-1][o]=e[o],p[r-1][o]=o;for(a=0;a<r;++a)_[a]=0;for(1===d[r-1]&&(--u[0],++_[r-1]),s=r-2;0<=s;--s){for(h=a=0,l=_[s+1],o=0;o<f[s];o++)(h=c[s+1][l]+c[s+1][l+1])>e[a]?(c[s][o]=h,p[s][o]=t,l+=2):(c[s][o]=e[a],p[s][o]=a,++a);_[s]=0,1===d[s]&&i(s)}return u}(i,i.length,t),s=0,o=r.length;s<o;++s)f[r[s].index]=a[s];return f}function x(e){var t,r,i,a,s=new(n?Uint16Array:Array)(e.length),o=[],h=[],l=0;for(t=0,r=e.length;t<r;t++)o[e[t]]=1+(0|o[e[t]]);for(t=1,r=16;t<=r;t++)h[t]=l,l+=0|o[t],l<<=1;for(t=0,r=e.length;t<r;t++)for(l=h[e[t]],h[e[t]]+=1,i=s[t]=0,a=e[t];i<a;i++)s[t]=s[t]<<1|1&l,l>>>=1;return s}i("Zlib.RawDeflate",p),i("Zlib.RawDeflate.prototype.compress",p.prototype.h);var S,M,C,z,B={NONE:0,FIXED:1,DYNAMIC:m};if(Object.keys)S=Object.keys(B);else for(M in S=[],C=0,B)S[C++]=M;for(C=0,z=S.length;C<z;++C)i("Zlib.RawDeflate.CompressionType."+(M=S[C]),B[M])}.call(this),
- /** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
- function(){var e=void 0,t=this;function r(r,i){var n,a=r.split("."),s=t;!(a[0]in s)&&s.execScript&&s.execScript("var "+a[0]);for(;a.length&&(n=a.shift());)a.length||i===e?s=s[n]?s[n]:s[n]={}:s[n]=i}var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;function n(e){var t,r,n,a,s,o,h,l,f,d,u=e.length,c=0,p=Number.POSITIVE_INFINITY;for(l=0;l<u;++l)e[l]>c&&(c=e[l]),e[l]<p&&(p=e[l]);for(t=1<<c,r=new(i?Uint32Array:Array)(t),n=1,a=0,s=2;n<=c;){for(l=0;l<u;++l)if(e[l]===n){for(o=0,h=a,f=0;f<n;++f)o=o<<1|1&h,h>>=1;for(d=n<<16|l,f=o;f<t;f+=s)r[f]=d;++a}++n,a<<=1,s<<=1}return[r,c,p]}function a(e,t){switch(this.g=[],this.h=32768,this.c=this.f=this.d=this.k=0,this.input=i?new Uint8Array(e):e,this.l=!1,this.i=o,this.p=!1,!t&&(t={})||(t.index&&(this.d=t.index),t.bufferSize&&(this.h=t.bufferSize),t.bufferType&&(this.i=t.bufferType),t.resize&&(this.p=t.resize)),this.i){case s:this.a=32768,this.b=new(i?Uint8Array:Array)(32768+this.h+258);break;case o:this.a=0,this.b=new(i?Uint8Array:Array)(this.h),this.e=this.u,this.m=this.r,this.j=this.s;break;default:throw Error("invalid inflate mode")}}var s=0,o=1;a.prototype.t=function(){for(;!this.l;){var t=M(this,3);switch(1&t&&(this.l=!0),t>>>=1){case 0:var r=this.input,a=this.d,h=this.b,l=this.a,f=r.length,u=e,c=h.length,p=e;if(this.c=this.f=0,a+1>=f)throw Error("invalid uncompressed block header: LEN");if(u=r[a++]|r[a++]<<8,a+1>=f)throw Error("invalid uncompressed block header: NLEN");if(u===~(r[a++]|r[a++]<<8))throw Error("invalid uncompressed block header: length verify");if(a+u>r.length)throw Error("input buffer is broken");switch(this.i){case s:for(;l+u>h.length;){if(u-=p=c-l,i)h.set(r.subarray(a,a+p),l),l+=p,a+=p;else for(;p--;)h[l++]=r[a++];this.a=l,h=this.e(),l=this.a}break;case o:for(;l+u>h.length;)h=this.e({o:2});break;default:throw Error("invalid inflate mode")}if(i)h.set(r.subarray(a,a+u),l),l+=u,a+=u;else for(;u--;)h[l++]=r[a++];this.d=a,this.a=l,this.b=h;break;case 1:this.j(A,S);break;case 2:var _,m,g,b,y=M(this,5)+257,v=M(this,5)+1,w=M(this,4)+4,k=new(i?Uint8Array:Array)(d.length),x=e,z=e,B=e,D=e,I=e;for(I=0;I<w;++I)k[d[I]]=M(this,3);if(!i)for(I=w,w=k.length;I<w;++I)k[d[I]]=0;for(_=n(k),x=new(i?Uint8Array:Array)(y+v),I=0,b=y+v;I<b;)switch(z=C(this,_),z){case 16:for(D=3+M(this,2);D--;)x[I++]=B;break;case 17:for(D=3+M(this,3);D--;)x[I++]=0;B=0;break;case 18:for(D=11+M(this,7);D--;)x[I++]=0;B=0;break;default:B=x[I++]=z}m=n(i?x.subarray(0,y):x.slice(0,y)),g=n(i?x.subarray(y):x.slice(y)),this.j(m,g);break;default:throw Error("unknown BTYPE: "+t)}}return this.m()};var h,l,f=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],d=i?new Uint16Array(f):f,u=[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,258,258],c=i?new Uint16Array(u):u,p=[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],_=i?new Uint8Array(p):p,m=[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],g=i?new Uint16Array(m):m,b=[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],y=i?new Uint8Array(b):b,v=new(i?Uint8Array:Array)(288);for(h=0,l=v.length;h<l;++h)v[h]=143>=h?8:255>=h?9:279>=h?7:8;var w,k,A=n(v),x=new(i?Uint8Array:Array)(30);for(w=0,k=x.length;w<k;++w)x[w]=5;var S=n(x);function M(e,t){for(var r,i=e.f,n=e.c,a=e.input,s=e.d,o=a.length;n<t;){if(s>=o)throw Error("input buffer is broken");i|=a[s++]<<n,n+=8}return r=i&(1<<t)-1,e.f=i>>>t,e.c=n-t,e.d=s,r}function C(e,t){for(var r,i,n=e.f,a=e.c,s=e.input,o=e.d,h=s.length,l=t[0],f=t[1];a<f&&!(o>=h);)n|=s[o++]<<a,a+=8;if((i=(r=l[n&(1<<f)-1])>>>16)>a)throw Error("invalid code length: "+i);return e.f=n>>i,e.c=a-i,e.d=o,65535&r}a.prototype.j=function(e,t){var r=this.b,i=this.a;this.n=e;for(var n,a,s,o,h=r.length-258;256!==(n=C(this,e));)if(256>n)i>=h&&(this.a=i,r=this.e(),i=this.a),r[i++]=n;else for(o=c[a=n-257],0<_[a]&&(o+=M(this,_[a])),n=C(this,t),s=g[n],0<y[n]&&(s+=M(this,y[n])),i>=h&&(this.a=i,r=this.e(),i=this.a);o--;)r[i]=r[i++-s];for(;8<=this.c;)this.c-=8,this.d--;this.a=i},a.prototype.s=function(e,t){var r=this.b,i=this.a;this.n=e;for(var n,a,s,o,h=r.length;256!==(n=C(this,e));)if(256>n)i>=h&&(h=(r=this.e()).length),r[i++]=n;else for(o=c[a=n-257],0<_[a]&&(o+=M(this,_[a])),n=C(this,t),s=g[n],0<y[n]&&(s+=M(this,y[n])),i+o>h&&(h=(r=this.e()).length);o--;)r[i]=r[i++-s];for(;8<=this.c;)this.c-=8,this.d--;this.a=i},a.prototype.e=function(){var e,t,r=new(i?Uint8Array:Array)(this.a-32768),n=this.a-32768,a=this.b;if(i)r.set(a.subarray(32768,r.length));else for(e=0,t=r.length;e<t;++e)r[e]=a[e+32768];if(this.g.push(r),this.k+=r.length,i)a.set(a.subarray(n,n+32768));else for(e=0;32768>e;++e)a[e]=a[n+e];return this.a=32768,a},a.prototype.u=function(e){var t,r,n,a=this.input.length/this.d+1|0,s=this.input,o=this.b;return e&&("number"==typeof e.o&&(a=e.o),"number"==typeof e.q&&(a+=e.q)),2>a?r=(n=(s.length-this.d)/this.n[2]/2*258|0)<o.length?o.length+n:o.length<<1:r=o.length*a,i?(t=new Uint8Array(r)).set(o):t=o,this.b=t},a.prototype.m=function(){var e,t,r,n,a,s=0,o=this.b,h=this.g,l=new(i?Uint8Array:Array)(this.k+(this.a-32768));if(0===h.length)return i?this.b.subarray(32768,this.a):this.b.slice(32768,this.a);for(t=0,r=h.length;t<r;++t)for(n=0,a=(e=h[t]).length;n<a;++n)l[s++]=e[n];for(t=32768,r=this.a;t<r;++t)l[s++]=o[t];return this.g=[],this.buffer=l},a.prototype.r=function(){var e,t=this.a;return i?this.p?(e=new Uint8Array(t)).set(this.b.subarray(0,t)):e=this.b.subarray(0,t):(this.b.length>t&&(this.b.length=t),e=this.b),this.buffer=e},r("Zlib.RawInflate",a),r("Zlib.RawInflate.prototype.decompress",a.prototype.t);var z,B,D,I,E={ADAPTIVE:o,BLOCK:s};if(Object.keys)z=Object.keys(E);else for(B in z=[],D=0,E)z[D++]=B;for(D=0,I=z.length;D<I;++D)r("Zlib.RawInflate.BufferType."+(B=z[D]),E[B])}.call(this),
- /** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
- function(){function l(e){throw e}var r=void 0,t,aa=this;function v(e,t){var i,n=e.split("."),a=aa;!(n[0]in a)&&a.execScript&&a.execScript("var "+n[0]);for(;n.length&&(i=n.shift());)n.length||t===r?a=a[i]?a[i]:a[i]={}:a[i]=t}var y="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array&&"undefined"!=typeof DataView;new(y?Uint8Array:Array)(256);var ca=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],C=y?new Uint32Array(ca):ca,a,G;if(aa.Uint8Array!==r)try{eval("String.fromCharCode.apply(null, new Uint8Array([0]));")}catch(e){String.fromCharCode.apply=(a=String.fromCharCode.apply,function(e,t){return a.call(String.fromCharCode,e,Array.prototype.slice.call(t))})}function D(e){var t,r,i,n,a,s,o,h,l,f,d=e.length,u=0,c=Number.POSITIVE_INFINITY;for(h=0;h<d;++h)e[h]>u&&(u=e[h]),e[h]<c&&(c=e[h]);for(t=1<<u,r=new(y?Uint32Array:Array)(t),i=1,n=0,a=2;i<=u;){for(h=0;h<d;++h)if(e[h]===i){for(s=0,o=n,l=0;l<i;++l)s=s<<1|1&o,o>>=1;for(f=i<<16|h,l=s;l<t;l+=a)r[l]=f;++n}++i,n<<=1,a<<=1}return[r,u,c]}for(G=0;288>G;G++)switch(!0){case 143>=G:case 255>=G:case 279>=G:case 287>=G:break;default:l("invalid literal: "+G)}function I(e,t){switch(this.l=[],this.m=32768,this.d=this.f=this.c=this.t=0,this.input=y?new Uint8Array(e):e,this.u=!1,this.n=J,this.K=!1,!t&&(t={})||(t.index&&(this.c=t.index),t.bufferSize&&(this.m=t.bufferSize),t.bufferType&&(this.n=t.bufferType),t.resize&&(this.K=t.resize)),this.n){case ga:this.a=32768,this.b=new(y?Uint8Array:Array)(32768+this.m+258);break;case J:this.a=0,this.b=new(y?Uint8Array:Array)(this.m),this.e=this.W,this.B=this.R,this.q=this.V;break;default:l(Error("invalid inflate mode"))}}!function(){function e(e){switch(!0){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case 12>=e:return[265,e-11,1];case 14>=e:return[266,e-13,1];case 16>=e:return[267,e-15,1];case 18>=e:return[268,e-17,1];case 22>=e:return[269,e-19,2];case 26>=e:return[270,e-23,2];case 30>=e:return[271,e-27,2];case 34>=e:return[272,e-31,2];case 42>=e:return[273,e-35,3];case 50>=e:return[274,e-43,3];case 58>=e:return[275,e-51,3];case 66>=e:return[276,e-59,3];case 82>=e:return[277,e-67,4];case 98>=e:return[278,e-83,4];case 114>=e:return[279,e-99,4];case 130>=e:return[280,e-115,4];case 162>=e:return[281,e-131,5];case 194>=e:return[282,e-163,5];case 226>=e:return[283,e-195,5];case 257>=e:return[284,e-227,5];case 258===e:return[285,e-258,0];default:l("invalid length: "+e)}}var t,r,i=[];for(t=3;258>=t;t++)r=e(t),i[t]=r[2]<<24|r[1]<<16|r[0]}();var ga=0,J=1;I.prototype.r=function(){for(;!this.u;){var e=K(this,3);switch(1&e&&(this.u=!0),e>>>=1){case 0:var t=this.input,i=this.c,n=this.b,a=this.a,s=t.length,o=r,h=n.length,f=r;switch(this.d=this.f=0,i+1>=s&&l(Error("invalid uncompressed block header: LEN")),o=t[i++]|t[i++]<<8,i+1>=s&&l(Error("invalid uncompressed block header: NLEN")),o===~(t[i++]|t[i++]<<8)&&l(Error("invalid uncompressed block header: length verify")),i+o>t.length&&l(Error("input buffer is broken")),this.n){case ga:for(;a+o>n.length;){if(o-=f=h-a,y)n.set(t.subarray(i,i+f),a),a+=f,i+=f;else for(;f--;)n[a++]=t[i++];this.a=a,n=this.e(),a=this.a}break;case J:for(;a+o>n.length;)n=this.e({H:2});break;default:l(Error("invalid inflate mode"))}if(y)n.set(t.subarray(i,i+o),a),a+=o,i+=o;else for(;o--;)n[a++]=t[i++];this.c=i,this.a=a,this.b=n;break;case 1:this.q(ha,ia);break;case 2:var d,u,c,p,_=K(this,5)+257,m=K(this,5)+1,g=K(this,4)+4,b=new(y?Uint8Array:Array)(L.length),v=r,w=r,k=r,A=r,x=r;for(x=0;x<g;++x)b[L[x]]=K(this,3);if(!y)for(x=g,g=b.length;x<g;++x)b[L[x]]=0;for(d=D(b),v=new(y?Uint8Array:Array)(_+m),x=0,p=_+m;x<p;)switch(w=M(this,d),w){case 16:for(A=3+K(this,2);A--;)v[x++]=k;break;case 17:for(A=3+K(this,3);A--;)v[x++]=0;k=0;break;case 18:for(A=11+K(this,7);A--;)v[x++]=0;k=0;break;default:k=v[x++]=w}u=D(y?v.subarray(0,_):v.slice(0,_)),c=D(y?v.subarray(_):v.slice(_)),this.q(u,c);break;default:l(Error("unknown BTYPE: "+e))}}return this.B()};var ja=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],L=y?new Uint16Array(ja):ja,ka=[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,258,258],la=y?new Uint16Array(ka):ka,ma=[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],N=y?new Uint8Array(ma):ma,na=[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],oa=y?new Uint16Array(na):na,pa=[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],P=y?new Uint8Array(pa):pa,Q=new(y?Uint8Array:Array)(288),R,qa;for(R=0,qa=Q.length;R<qa;++R)Q[R]=143>=R?8:255>=R?9:279>=R?7:8;var ha=D(Q),S=new(y?Uint8Array:Array)(30),T,ra;for(T=0,ra=S.length;T<ra;++T)S[T]=5;var ia=D(S);function K(e,t){for(var r,i=e.f,n=e.d,a=e.input,s=e.c,o=a.length;n<t;)s>=o&&l(Error("input buffer is broken")),i|=a[s++]<<n,n+=8;return r=i&(1<<t)-1,e.f=i>>>t,e.d=n-t,e.c=s,r}function M(e,t){for(var r,i,n=e.f,a=e.d,s=e.input,o=e.c,h=s.length,f=t[0],d=t[1];a<d&&!(o>=h);)n|=s[o++]<<a,a+=8;return(i=(r=f[n&(1<<d)-1])>>>16)>a&&l(Error("invalid code length: "+i)),e.f=n>>i,e.d=a-i,e.c=o,65535&r}function U(e){e=e||{},this.files=[],this.v=e.comment}function V(e,t){t=t||{},this.input=y&&e instanceof Array?new Uint8Array(e):e,this.c=0,this.ba=t.verify||!1,this.j=t.password}t=I.prototype,t.q=function(e,t){var r=this.b,i=this.a;this.C=e;for(var n,a,s,o,h=r.length-258;256!==(n=M(this,e));)if(256>n)i>=h&&(this.a=i,r=this.e(),i=this.a),r[i++]=n;else for(o=la[a=n-257],0<N[a]&&(o+=K(this,N[a])),n=M(this,t),s=oa[n],0<P[n]&&(s+=K(this,P[n])),i>=h&&(this.a=i,r=this.e(),i=this.a);o--;)r[i]=r[i++-s];for(;8<=this.d;)this.d-=8,this.c--;this.a=i},t.V=function(e,t){var r=this.b,i=this.a;this.C=e;for(var n,a,s,o,h=r.length;256!==(n=M(this,e));)if(256>n)i>=h&&(h=(r=this.e()).length),r[i++]=n;else for(o=la[a=n-257],0<N[a]&&(o+=K(this,N[a])),n=M(this,t),s=oa[n],0<P[n]&&(s+=K(this,P[n])),i+o>h&&(h=(r=this.e()).length);o--;)r[i]=r[i++-s];for(;8<=this.d;)this.d-=8,this.c--;this.a=i},t.e=function(){var e,t,r=new(y?Uint8Array:Array)(this.a-32768),i=this.a-32768,n=this.b;if(y)r.set(n.subarray(32768,r.length));else for(e=0,t=r.length;e<t;++e)r[e]=n[e+32768];if(this.l.push(r),this.t+=r.length,y)n.set(n.subarray(i,i+32768));else for(e=0;32768>e;++e)n[e]=n[i+e];return this.a=32768,n},t.W=function(e){var t,r,i,n=this.input.length/this.c+1|0,a=this.input,s=this.b;return e&&("number"==typeof e.H&&(n=e.H),"number"==typeof e.P&&(n+=e.P)),2>n?r=(i=(a.length-this.c)/this.C[2]/2*258|0)<s.length?s.length+i:s.length<<1:r=s.length*n,y?(t=new Uint8Array(r)).set(s):t=s,this.b=t},t.B=function(){var e,t,r,i,n,a=0,s=this.b,o=this.l,h=new(y?Uint8Array:Array)(this.t+(this.a-32768));if(0===o.length)return y?this.b.subarray(32768,this.a):this.b.slice(32768,this.a);for(t=0,r=o.length;t<r;++t)for(i=0,n=(e=o[t]).length;i<n;++i)h[a++]=e[i];for(t=32768,r=this.a;t<r;++t)h[a++]=s[t];return this.l=[],this.buffer=h},t.R=function(){var e,t=this.a;return y?this.K?(e=new Uint8Array(t)).set(this.b.subarray(0,t)):e=this.b.subarray(0,t):(this.b.length>t&&(this.b.length=t),e=this.b),this.buffer=e},U.prototype.L=function(e){this.j=e},U.prototype.s=function(e){var t=65535&e[2]|2;return t*(1^t)>>8&255},U.prototype.k=function(e,t){e[0]=(C[255&(e[0]^t)]^e[0]>>>8)>>>0,e[1]=1+(6681*(20173*(e[1]+(255&e[0]))>>>0)>>>0)>>>0,e[2]=(C[255&(e[2]^e[1]>>>24)]^e[2]>>>8)>>>0},U.prototype.T=function(e){var t,r,i=[305419896,591751049,878082192];for(y&&(i=new Uint32Array(i)),t=0,r=e.length;t<r;++t)this.k(i,255&e[t]);return i};var sa={O:0,M:8},W=[80,75,1,2],Y=[80,75,3,4],Z=[80,75,5,6];function ta(e,t){this.input=e,this.offset=t}function ua(e,t){this.input=e,this.offset=t}ta.prototype.parse=function(){var e=this.input,t=this.offset;(e[t++]!==W[0]||e[t++]!==W[1]||e[t++]!==W[2]||e[t++]!==W[3])&&l(Error("invalid file header signature")),this.version=e[t++],this.ia=e[t++],this.Z=e[t++]|e[t++]<<8,this.I=e[t++]|e[t++]<<8,this.A=e[t++]|e[t++]<<8,this.time=e[t++]|e[t++]<<8,this.U=e[t++]|e[t++]<<8,this.p=(e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24)>>>0,this.z=(e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24)>>>0,this.J=(e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24)>>>0,this.h=e[t++]|e[t++]<<8,this.g=e[t++]|e[t++]<<8,this.F=e[t++]|e[t++]<<8,this.ea=e[t++]|e[t++]<<8,this.ga=e[t++]|e[t++]<<8,this.fa=e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24,this.$=(e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24)>>>0,this.filename=String.fromCharCode.apply(null,y?e.subarray(t,t+=this.h):e.slice(t,t+=this.h)),this.X=y?e.subarray(t,t+=this.g):e.slice(t,t+=this.g),this.v=y?e.subarray(t,t+this.F):e.slice(t,t+this.F),this.length=t-this.offset};var va={N:1,ca:8,da:2048};function $(e){var t,i,n,a,s=[],o={};if(!e.i){if(e.o===r){var h,f=e.input;if(!e.D)e:{var d,u=e.input;for(d=u.length-12;0<d;--d)if(u[d]===Z[0]&&u[d+1]===Z[1]&&u[d+2]===Z[2]&&u[d+3]===Z[3]){e.D=d;break e}l(Error("End of Central Directory Record not found"))}h=e.D,(f[h++]!==Z[0]||f[h++]!==Z[1]||f[h++]!==Z[2]||f[h++]!==Z[3])&&l(Error("invalid signature")),e.ha=f[h++]|f[h++]<<8,e.ja=f[h++]|f[h++]<<8,e.ka=f[h++]|f[h++]<<8,e.aa=f[h++]|f[h++]<<8,e.Q=(f[h++]|f[h++]<<8|f[h++]<<16|f[h++]<<24)>>>0,e.o=(f[h++]|f[h++]<<8|f[h++]<<16|f[h++]<<24)>>>0,e.w=f[h++]|f[h++]<<8,e.v=y?f.subarray(h,h+e.w):f.slice(h,h+e.w)}for(t=e.o,n=0,a=e.aa;n<a;++n)(i=new ta(e.input,t)).parse(),t+=i.length,s[n]=i,o[i.filename]=n;e.Q<t-e.o&&l(Error("invalid file header size")),e.i=s,e.G=o}}function wa(e,t,r){return r^=e.s(t),e.k(t,r),r}ua.prototype.parse=function(){var e=this.input,t=this.offset;(e[t++]!==Y[0]||e[t++]!==Y[1]||e[t++]!==Y[2]||e[t++]!==Y[3])&&l(Error("invalid local file header signature")),this.Z=e[t++]|e[t++]<<8,this.I=e[t++]|e[t++]<<8,this.A=e[t++]|e[t++]<<8,this.time=e[t++]|e[t++]<<8,this.U=e[t++]|e[t++]<<8,this.p=(e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24)>>>0,this.z=(e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24)>>>0,this.J=(e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24)>>>0,this.h=e[t++]|e[t++]<<8,this.g=e[t++]|e[t++]<<8,this.filename=String.fromCharCode.apply(null,y?e.subarray(t,t+=this.h):e.slice(t,t+=this.h)),this.X=y?e.subarray(t,t+=this.g):e.slice(t,t+=this.g),this.length=t-this.offset},t=V.prototype,t.Y=function(){var e,t,r,i=[];for(this.i||$(this),e=0,t=(r=this.i).length;e<t;++e)i[e]=r[e].filename;return i},t.r=function(e,t){var i,n;this.G||$(this),(i=this.G[e])===r&&l(Error(e+" not found")),n=t||{};var a,s,o,h,f,d,u,c,p=this.input,_=this.i;if(_||$(this),_[i]===r&&l(Error("wrong index")),s=_[i].$,(a=new ua(this.input,s)).parse(),s+=a.length,o=a.z,0!=(a.I&va.N)){for(!n.password&&!this.j&&l(Error("please set password")),d=this.S(n.password||this.j),u=s,c=s+12;u<c;++u)wa(this,d,p[u]);for(u=s+=12,c=s+(o-=12);u<c;++u)p[u]=wa(this,d,p[u])}switch(a.A){case sa.O:h=y?this.input.subarray(s,s+o):this.input.slice(s,s+o);break;case sa.M:h=new I(this.input,{index:s,bufferSize:a.J}).r();break;default:l(Error("unknown compression type"))}if(this.ba){var m,g=r,b="number"==typeof g?g:g=0,v=h.length;for(m=-1,b=7&v;b--;++g)m=m>>>8^C[255&(m^h[g])];for(b=v>>3;b--;g+=8)m=(m=(m=(m=(m=(m=(m=(m=m>>>8^C[255&(m^h[g])])>>>8^C[255&(m^h[g+1])])>>>8^C[255&(m^h[g+2])])>>>8^C[255&(m^h[g+3])])>>>8^C[255&(m^h[g+4])])>>>8^C[255&(m^h[g+5])])>>>8^C[255&(m^h[g+6])])>>>8^C[255&(m^h[g+7])];f=(4294967295^m)>>>0,a.p!==f&&l(Error("wrong crc: file=0x"+a.p.toString(16)+", data=0x"+f.toString(16)))}return h},t.L=function(e){this.j=e},t.k=U.prototype.k,t.S=U.prototype.T,t.s=U.prototype.s,v("Zlib.Unzip",V),v("Zlib.Unzip.prototype.decompress",V.prototype.r),v("Zlib.Unzip.prototype.getFilenames",V.prototype.Y),v("Zlib.Unzip.prototype.setPassword",V.prototype.L)}.call(this),function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).JSZip=e()}((function(){return function e(t,r,i){function n(s,o){if(!r[s]){if(!t[s]){var h="function"==typeof require&&require;if(!o&&h)return h(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var f=r[s]={exports:{}};t[s][0].call(f.exports,(function(e){return n(t[s][1][e]||e)}),f,f.exports,e,t,r,i)}return r[s].exports}for(var a="function"==typeof require&&require,s=0;s<i.length;s++)n(i[s]);return n}({1:[function(e,t,r){var i=e("./utils"),n=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,n,s,o,h,l,f=[],d=0,u=e.length,c=u,p="string"!==i.getTypeOf(e);d<e.length;)c=u-d,n=p?(t=e[d++],r=d<u?e[d++]:0,d<u?e[d++]:0):(t=e.charCodeAt(d++),r=d<u?e.charCodeAt(d++):0,d<u?e.charCodeAt(d++):0),s=t>>2,o=(3&t)<<4|r>>4,h=1<c?(15&r)<<2|n>>6:64,l=2<c?63&n:64,f.push(a.charAt(s)+a.charAt(o)+a.charAt(h)+a.charAt(l));return f.join("")},r.decode=function(e){var t,r,i,s,o,h,l=0,f=0,d="data:";if(e.substr(0,5)===d)throw new Error("Invalid base64 input, it looks like a data url.");var u,c=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&c--,e.charAt(e.length-2)===a.charAt(64)&&c--,c%1!=0)throw new Error("Invalid base64 input, bad content length.");for(u=n.uint8array?new Uint8Array(0|c):new Array(0|c);l<e.length;)t=a.indexOf(e.charAt(l++))<<2|(s=a.indexOf(e.charAt(l++)))>>4,r=(15&s)<<4|(o=a.indexOf(e.charAt(l++)))>>2,i=(3&o)<<6|(h=a.indexOf(e.charAt(l++))),u[f++]=t,64!==o&&(u[f++]=r),64!==h&&(u[f++]=i);return u}},{"./support":30,"./utils":32}],2:[function(e,t,r){var i=e("./external"),n=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),s=e("./stream/DataLengthProbe");function o(e,t,r,i,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=n}o.prototype={getContentWorker:function(){var e=new n(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new n(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,t,r){return e.pipe(new a).pipe(new s("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},t.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){var i=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){var i=e("./utils"),n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==i.getTypeOf(e)?function(e,t,r,i){var a=n,s=0+r;e^=-1;for(var o=0;o<s;o++)e=e>>>8^a[255&(e^t[o])];return-1^e}(0|t,e,e.length):function(e,t,r,i){var a=n,s=0+r;e^=-1;for(var o=0;o<s;o++)e=e>>>8^a[255&(e^t.charCodeAt(o))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){var i;i="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:i}},{lie:37}],7:[function(e,t,r){var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,n=e("pako"),a=e("./utils"),s=e("./stream/GenericWorker"),o=i?"uint8array":"array";function h(e,t){s.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",a.inherits(h,s),h.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(o,e.data),!1)},h.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new h("Deflate",e)},r.uncompressWorker=function(){return new h("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){function i(e,t){var r,i="";for(r=0;r<t;r++)i+=String.fromCharCode(255&e),e>>>=8;return i}function n(e,t,r,n,s,f){var d,u,c=e.file,p=e.compression,_=f!==o.utf8encode,m=a.transformTo("string",f(c.name)),g=a.transformTo("string",o.utf8encode(c.name)),b=c.comment,y=a.transformTo("string",f(b)),v=a.transformTo("string",o.utf8encode(b)),w=g.length!==c.name.length,k=v.length!==b.length,A="",x="",S="",M=c.dir,C=c.date,z={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(z.crc32=e.crc32,z.compressedSize=e.compressedSize,z.uncompressedSize=e.uncompressedSize);var B=0;t&&(B|=8),_||!w&&!k||(B|=2048);var D=0,I=0;M&&(D|=16),"UNIX"===s?(I=798,D|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(c.unixPermissions,M)):(I=20,D|=function(e){return 63&(e||0)}(c.dosPermissions)),d=C.getUTCHours(),d<<=6,d|=C.getUTCMinutes(),d<<=5,d|=C.getUTCSeconds()/2,u=C.getUTCFullYear()-1980,u<<=4,u|=C.getUTCMonth()+1,u<<=5,u|=C.getUTCDate(),w&&(x=i(1,1)+i(h(m),4)+g,A+="up"+i(x.length,2)+x),k&&(S=i(1,1)+i(h(y),4)+v,A+="uc"+i(S.length,2)+S);var E="";return E+="\n\0",E+=i(B,2),E+=p.magic,E+=i(d,2),E+=i(u,2),E+=i(z.crc32,4),E+=i(z.compressedSize,4),E+=i(z.uncompressedSize,4),E+=i(m.length,2),E+=i(A.length,2),{fileRecord:l.LOCAL_FILE_HEADER+E+m+A,dirRecord:l.CENTRAL_FILE_HEADER+i(I,2)+E+i(y.length,2)+"\0\0\0\0"+i(D,4)+i(n,4)+m+A+y}}var a=e("../utils"),s=e("../stream/GenericWorker"),o=e("../utf8"),h=e("../crc32"),l=e("../signature");function f(e,t,r,i){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(f,s),f.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,s.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}}))},f.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=n(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=n(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return l.DATA_DESCRIPTOR+i(e.crc32,4)+i(e.compressedSize,4)+i(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,n=function(e,t,r,n,s){var o=a.transformTo("string",s(n));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(e,2)+i(e,2)+i(t,4)+i(r,4)+i(o.length,2)+o}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},f.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(e){var t=this._sources;if(!s.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},f.prototype.lock=function(){s.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){var i=e("../compressions"),n=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var a=new n(t.streamFiles,r,t.platform,t.encodeFileName),s=0;try{e.forEach((function(e,r){s++;var n=function(e,t){var r=e||t,n=i[r];if(!n)throw new Error(r+" is not a valid compression method !");return n}(r.options.compression,t.compression),o=r.options.compressionOptions||t.compressionOptions||{},h=r.dir,l=r.date;r._compressWorker(n,o).withStreamInfo("file",{name:e,dir:h,date:l,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(a)})),a.entriesCount=s}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new i;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(i.prototype=e("./object")).loadAsync=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.version="3.10.1",i.loadAsync=function(e,t){return(new i).loadAsync(e,t)},i.external=e("./external"),t.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){var i=e("./utils"),n=e("./external"),a=e("./utf8"),s=e("./zipEntries"),o=e("./stream/Crc32Probe"),h=e("./nodejsUtils");function l(e){return new n.Promise((function(t,r){var i=e.decompressed.getContentWorker().pipe(new o);i.on("error",(function(e){r(e)})).on("end",(function(){i.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var r=this;return t=i.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),h.isNode&&h.isStream(e)?n.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var r=new s(t);return r.load(e),r})).then((function(e){var r=[n.Promise.resolve(e)],i=e.files;if(t.checkCRC32)for(var a=0;a<i.length;a++)r.push(l(i[a]));return n.Promise.all(r)})).then((function(e){for(var n=e.shift(),a=n.files,s=0;s<a.length;s++){var o=a[s],h=o.fileNameStr,l=i.resolve(o.fileNameStr);r.file(l,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:t.createFolders}),o.dir||(r.file(l).unsafeOriginalName=h)}return n.zipComment.length&&(r.comment=n.zipComment),r}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){var i=e("../utils"),n=e("../stream/GenericWorker");function a(e,t){n.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}i.inherits(a,n),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},a.prototype.pause=function(){return!!n.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){var i=e("readable-stream").Readable;function n(e,t,r){i.call(this,t),this._helper=e;var n=this;e.on("data",(function(e,t){n.push(e)||n._helper.pause(),r&&r(t)})).on("error",(function(e){n.emit("error",e)})).on("end",(function(){n.push(null)}))}e("../utils").inherits(n,i),n.prototype._read=function(){this._helper.resume()},t.exports=n},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){function i(e,t,r){var i,n=a.getTypeOf(t),o=a.extend(r||{},h);o.date=o.date||new Date,null!==o.compression&&(o.compression=o.compression.toUpperCase()),"string"==typeof o.unixPermissions&&(o.unixPermissions=parseInt(o.unixPermissions,8)),o.unixPermissions&&16384&o.unixPermissions&&(o.dir=!0),o.dosPermissions&&16&o.dosPermissions&&(o.dir=!0),o.dir&&(e=_(e)),o.createFolders&&(i=p(e))&&m.call(this,i,!0);var d="string"===n&&!1===o.binary&&!1===o.base64;r&&void 0!==r.binary||(o.binary=!d),(t instanceof l&&0===t.uncompressedSize||o.dir||!t||0===t.length)&&(o.base64=!1,o.binary=!0,t="",o.compression="STORE",n="string");var g;g=t instanceof l||t instanceof s?t:u.isNode&&u.isStream(t)?new c(e,t):a.prepareContent(e,t,o.binary,o.optimizedBinaryString,o.base64);var b=new f(e,g,o);this.files[e]=b}var n=e("./utf8"),a=e("./utils"),s=e("./stream/GenericWorker"),o=e("./stream/StreamHelper"),h=e("./defaults"),l=e("./compressedObject"),f=e("./zipObject"),d=e("./generate"),u=e("./nodejsUtils"),c=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},_=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:h.createFolders,e=_(e),this.files[e]||i.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function g(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,i;for(t in this.files)i=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,i)},filter:function(e){var t=[];return this.forEach((function(r,i){e(r,i)&&t.push(i)})),t},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,i.call(this,e,t,r),this;if(g(e)){var n=e;return this.filter((function(e,t){return!t.dir&&n.test(e)}))}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(g(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=m.call(this,t),i=this.clone();return i.root=r.name,i},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),i=0;i<r.length;i++)delete this.files[r[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:n.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");a.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var i=r.comment||this.comment||"";t=d.generateWorker(this,r,i)}catch(e){(t=new s("error")).error(e)}return new o(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=b},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,r){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){var i=e("./DataReader");function n(e){i.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(n,i),n.prototype.byteAt=function(e){return this.data[this.zero+e]},n.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===i&&this.data[a+3]===n)return a-this.zero;return-1},n.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&i===a[2]&&n===a[3]},n.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){var i=e("../utils");function n(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}n.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return i.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=n},{"../utils":32}],19:[function(e,t,r){var i=e("./Uint8ArrayReader");function n(e){i.call(this,e)}e("../utils").inherits(n,i),n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){var i=e("./DataReader");function n(e){i.call(this,e)}e("../utils").inherits(n,i),n.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},n.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},n.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){var i=e("./ArrayReader");function n(e){i.call(this,e)}e("../utils").inherits(n,i),n.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){var i=e("../utils"),n=e("../support"),a=e("./ArrayReader"),s=e("./StringReader"),o=e("./NodeBufferReader"),h=e("./Uint8ArrayReader");t.exports=function(e){var t=i.getTypeOf(e);return i.checkSupport(t),"string"!==t||n.uint8array?"nodebuffer"===t?new o(e):n.uint8array?new h(i.transformTo("uint8array",e)):new a(i.transformTo("array",e)):new s(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){var i=e("./GenericWorker"),n=e("../utils");function a(e){i.call(this,"ConvertWorker to "+e),this.destType=e}n.inherits(a,i),a.prototype.processChunk=function(e){this.push({data:n.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){var i=e("./GenericWorker"),n=e("../crc32");function a(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,i),a.prototype.processChunk=function(e){this.streamInfo.crc32=n(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){var i=e("../utils"),n=e("./GenericWorker");function a(e){n.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}i.inherits(a,n),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}n.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){var i=e("../utils"),n=e("./GenericWorker");function a(e){n.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=i.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}i.inherits(a,n),a.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){function i(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=i},{}],29:[function(e,t,r){var i=e("../utils"),n=e("./ConvertWorker"),a=e("./GenericWorker"),s=e("../base64"),o=e("../support"),h=e("../external"),l=null;if(o.nodestream)try{l=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function f(e,t,r){var s=t;switch(t){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=t,this._mimeType=r,i.checkSupport(s),this._worker=e.pipe(new n(s)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}f.prototype={accumulate:function(e){return function(e,t){return new h.Promise((function(r,n){var a=[],o=e._internalType,h=e._outputType,l=e._mimeType;e.on("data",(function(e,r){a.push(e),t&&t(r)})).on("error",(function(e){a=[],n(e)})).on("end",(function(){try{var e=function(e,t,r){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),r);case"base64":return s.encode(t);default:return i.transformTo(e,t)}}(h,function(e,t){var r,i=0,n=null,a=0;for(r=0;r<t.length;r++)a+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(n=new Uint8Array(a),r=0;r<t.length;r++)n.set(t[r],i),i+=t[r].length;return n;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(o,a),l);r(e)}catch(e){n(e)}a=[]})).resume()}))}(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,(function(e){t.call(r,e.data,e.meta)})):this._worker.on(e,(function(){i.delay(t,arguments,r)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var i=new ArrayBuffer(0);try{r.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);n.append(i),r.blob=0===n.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){for(var i=e("./utils"),n=e("./support"),a=e("./nodejsUtils"),s=e("./stream/GenericWorker"),o=new Array(256),h=0;h<256;h++)o[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;function l(){s.call(this,"utf-8 decode"),this.leftOver=null}function f(){s.call(this,"utf-8 encode")}o[254]=o[254]=1,r.utf8encode=function(e){return n.nodebuffer?a.newBufferFrom(e,"utf-8"):function(e){var t,r,i,a,s,o=e.length,h=0;for(a=0;a<o;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<o&&56320==(64512&(i=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),h+=r<128?1:r<2048?2:r<65536?3:4;for(t=n.uint8array?new Uint8Array(h):new Array(h),a=s=0;s<h;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<o&&56320==(64512&(i=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),r<128?t[s++]=r:(r<2048?t[s++]=192|r>>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t}(e)},r.utf8decode=function(e){return n.nodebuffer?i.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,n,a,s=e.length,h=new Array(2*s);for(t=r=0;t<s;)if((n=e[t++])<128)h[r++]=n;else if(4<(a=o[n]))h[r++]=65533,t+=a-1;else{for(n&=2===a?31:3===a?15:7;1<a&&t<s;)n=n<<6|63&e[t++],a--;1<a?h[r++]=65533:n<65536?h[r++]=n:(n-=65536,h[r++]=55296|n>>10&1023,h[r++]=56320|1023&n)}return h.length!==r&&(h.subarray?h=h.subarray(0,r):h.length=r),i.applyFromCharCode(h)}(e=i.transformTo(n.uint8array?"uint8array":"array",e))},i.inherits(l,s),l.prototype.processChunk=function(e){var t=i.transformTo(n.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var s=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+o[e[r]]>t?r:t}(t),h=t;s!==t.length&&(n.uint8array?(h=t.subarray(0,s),this.leftOver=t.subarray(s,t.length)):(h=t.slice(0,s),this.leftOver=t.slice(s,t.length))),this.push({data:r.utf8decode(h),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=l,i.inherits(f,s),f.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=f},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){var i=e("./support"),n=e("./base64"),a=e("./nodejsUtils"),s=e("./external");function o(e){return e}function h(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(e,t){r.checkSupport("blob");try{return new Blob([e],{type:t})}catch(r){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(e),i.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(e,t,r){var i=[],n=0,a=e.length;if(a<=r)return String.fromCharCode.apply(null,e);for(;n<a;)"array"===t||"nodebuffer"===t?i.push(String.fromCharCode.apply(null,e.slice(n,Math.min(n+r,a)))):i.push(String.fromCharCode.apply(null,e.subarray(n,Math.min(n+r,a)))),n+=r;return i.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(e){return!1}}()}};function f(e){var t=65536,i=r.getTypeOf(e),n=!0;if("uint8array"===i?n=l.applyCanBeUsed.uint8array:"nodebuffer"===i&&(n=l.applyCanBeUsed.nodebuffer),n)for(;1<t;)try{return l.stringifyByChunk(e,i,t)}catch(e){t=Math.floor(t/2)}return l.stringifyByChar(e)}function d(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=f;var u={};u.string={string:o,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return u.string.uint8array(e).buffer},uint8array:function(e){return h(e,new Uint8Array(e.length))},nodebuffer:function(e){return h(e,a.allocBuffer(e.length))}},u.array={string:f,array:o,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},u.arraybuffer={string:function(e){return f(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:o,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},u.uint8array={string:f,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:o,nodebuffer:function(e){return a.newBufferFrom(e)}},u.nodebuffer={string:f,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return u.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:o},r.transformTo=function(e,t){if(t=t||"",!e)return t;r.checkSupport(e);var i=r.getTypeOf(t);return u[i][e](t)},r.resolve=function(e){for(var t=e.split("/"),r=[],i=0;i<t.length;i++){var n=t[i];"."===n||""===n&&0!==i&&i!==t.length-1||(".."===n?r.pop():r.push(n))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":i.nodebuffer&&a.isBuffer(e)?"nodebuffer":i.uint8array&&e instanceof Uint8Array?"uint8array":i.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!i[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,i="";for(r=0;r<(e||"").length;r++)i+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return i},r.delay=function(e,t,r){setImmediate((function(){e.apply(r||null,t||[])}))},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,a,o,l){return s.Promise.resolve(t).then((function(e){return i.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new s.Promise((function(t,r){var i=new FileReader;i.onload=function(e){t(e.target.result)},i.onerror=function(e){r(e.target.error)},i.readAsArrayBuffer(e)})):e})).then((function(t){var f=r.getTypeOf(t);return f?("arraybuffer"===f?t=r.transformTo("uint8array",t):"string"===f&&(l?t=n.decode(t):a&&!0!==o&&(t=function(e){return h(e,i.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):s.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){var i=e("./reader/readerFor"),n=e("./utils"),a=e("./signature"),s=e("./zipEntry"),o=e("./support");function h(e){this.files=[],this.loadOptions=e}h.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+n.pretty(t)+", expected "+n.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4)===t;return this.reader.setIndex(r),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=o.uint8array?"uint8array":"array",r=n.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,i=this.zip64EndOfCentralSize-44;0<i;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===n.MAX_VALUE_16BITS||this.diskWithCentralDirStart===n.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===n.MAX_VALUE_16BITS||this.centralDirRecords===n.MAX_VALUE_16BITS||this.centralDirSize===n.MAX_VALUE_32BITS||this.centralDirOffset===n.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var i=t-r;if(0<i)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=i(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=h},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){var i=e("./reader/readerFor"),n=e("./utils"),a=e("./compressedObject"),s=e("./crc32"),o=e("./utf8"),h=e("./compressions"),l=e("./support");function f(e,t){this.options=e,this.loadOptions=t}f.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in h)if(Object.prototype.hasOwnProperty.call(h,t)&&h[t].magic===e)return h[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+n.pretty(this.compressionMethod)+" unknown (inner file : "+n.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=i(this.extraFields[1].value);this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,i,n=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<n;)t=e.readInt(2),r=e.readInt(2),i=e.readData(r),this.extraFields[t]={id:t,length:r,value:i};e.setIndex(n)},handleUTF8:function(){var e=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=n.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var a=n.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=i(e.value);return 1!==t.readInt(1)||s(this.fileName)!==t.readInt(4)?null:o.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=i(e.value);return 1!==t.readInt(1)||s(this.fileComment)!==t.readInt(4)?null:o.utf8decode(t.readData(e.length-5))}return null}},t.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){function i(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var n=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),s=e("./utf8"),o=e("./compressedObject"),h=e("./stream/GenericWorker");i.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var i="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!i&&(t=t.pipe(new s.Utf8EncodeWorker)),!a&&i&&(t=t.pipe(new s.Utf8DecodeWorker))}catch(e){(t=new h("error")).error(e)}return new n(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof o&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new s.Utf8EncodeWorker)),o.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof h?this._data:new a(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<l.length;d++)i.prototype[l[d]]=f;t.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){var r,i,n=e.MutationObserver||e.WebKitMutationObserver;if(n){var a=0,s=new n(f),o=e.document.createTextNode("");s.observe(o,{characterData:!0}),r=function(){o.data=a=++a%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){f(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(f,0)};else{var h=new e.MessageChannel;h.port1.onmessage=f,r=function(){h.port2.postMessage(0)}}var l=[];function f(){var e,t;i=!0;for(var r=l.length;r;){for(t=l,l=[],e=-1;++e<r;)t[e]();r=l.length}i=!1}t.exports=function(e){1!==l.push(e)||i||r()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){var i=e("immediate");function n(){}var a={},s=["REJECTED"],o=["FULFILLED"],h=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=h,this.queue=[],this.outcome=void 0,e!==n&&c(this,e)}function f(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(e,t,r){i((function(){var i;try{i=t(r)}catch(i){return a.reject(e,i)}i===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,i)}))}function u(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function c(e,t){var r=!1;function i(t){r||(r=!0,a.reject(e,t))}function n(t){r||(r=!0,a.resolve(e,t))}var s=p((function(){t(n,i)}));"error"===s.status&&i(s.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}(t.exports=l).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===s)return this;var r=new this.constructor(n);return this.state!==h?d(r,this.state===o?e:t,this.outcome):this.queue.push(new f(r,e,t)),r},f.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},f.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},f.prototype.callRejected=function(e){a.reject(this.promise,e)},f.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var r=p(u,t);if("error"===r.status)return a.reject(e,r.value);var i=r.value;if(i)c(e,i);else{e.state=o,e.outcome=t;for(var n=-1,s=e.queue.length;++n<s;)e.queue[n].callFulfilled(t)}return e},a.reject=function(e,t){e.state=s,e.outcome=t;for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:a.resolve(new this(n),e)},l.reject=function(e){var t=new this(n);return a.reject(t,e)},l.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,i=!1;if(!r)return this.resolve([]);for(var s=new Array(r),o=0,h=-1,l=new this(n);++h<r;)f(e[h],h);return l;function f(e,n){t.resolve(e).then((function(e){s[n]=e,++o!==r||i||(i=!0,a.resolve(l,s))}),(function(e){i||(i=!0,a.reject(l,e))}))}},l.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,r=!1;if(!t)return this.resolve([]);for(var i,s=-1,o=new this(n);++s<t;)i=e[s],this.resolve(i).then((function(e){r||(r=!0,a.resolve(o,e))}),(function(e){r||(r=!0,a.reject(o,e))}));return o}},{immediate:36}],38:[function(e,t,r){var i={};(0,e("./lib/utils/common").assign)(i,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){var i=e("./zlib/deflate"),n=e("./utils/common"),a=e("./utils/strings"),s=e("./zlib/messages"),o=e("./zlib/zstream"),h=Object.prototype.toString,l=0,f=-1,d=0,u=8;function c(e){if(!(this instanceof c))return new c(e);this.options=n.assign({level:f,method:u,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var r=i.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==l)throw new Error(s[r]);if(t.header&&i.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===h.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=i.deflateSetDictionary(this.strm,p))!==l)throw new Error(s[r]);this._dict_set=!0}}function p(e,t){var r=new c(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}c.prototype.push=function(e,t){var r,s,o=this.strm,f=this.options.chunkSize;if(this.ended)return!1;s=t===~~t?t:!0===t?4:0,"string"==typeof e?o.input=a.string2buf(e):"[object ArrayBuffer]"===h.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new n.Buf8(f),o.next_out=0,o.avail_out=f),1!==(r=i.deflate(o,s))&&r!==l)return this.onEnd(r),!(this.ended=!0);0!==o.avail_out&&(0!==o.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(a.buf2binstring(n.shrinkBuf(o.output,o.next_out))):this.onData(n.shrinkBuf(o.output,o.next_out)))}while((0<o.avail_in||0===o.avail_out)&&1!==r);return 4===s?(r=i.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===l):2!==s||(this.onEnd(l),!(o.avail_out=0))},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){e===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=c,r.deflate=p,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){var i=e("./zlib/inflate"),n=e("./utils/common"),a=e("./utils/strings"),s=e("./zlib/constants"),o=e("./zlib/messages"),h=e("./zlib/zstream"),l=e("./zlib/gzheader"),f=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=n.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<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var r=i.inflateInit2(this.strm,t.windowBits);if(r!==s.Z_OK)throw new Error(o[r]);this.header=new l,i.inflateGetHeader(this.strm,this.header)}function u(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||o[r.err];return r.result}d.prototype.push=function(e,t){var r,o,h,l,d,u,c=this.strm,p=this.options.chunkSize,_=this.options.dictionary,m=!1;if(this.ended)return!1;o=t===~~t?t:!0===t?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof e?c.input=a.binstring2buf(e):"[object ArrayBuffer]"===f.call(e)?c.input=new Uint8Array(e):c.input=e,c.next_in=0,c.avail_in=c.input.length;do{if(0===c.avail_out&&(c.output=new n.Buf8(p),c.next_out=0,c.avail_out=p),(r=i.inflate(c,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&_&&(u="string"==typeof _?a.string2buf(_):"[object ArrayBuffer]"===f.call(_)?new Uint8Array(_):_,r=i.inflateSetDictionary(this.strm,u)),r===s.Z_BUF_ERROR&&!0===m&&(r=s.Z_OK,m=!1),r!==s.Z_STREAM_END&&r!==s.Z_OK)return this.onEnd(r),!(this.ended=!0);c.next_out&&(0!==c.avail_out&&r!==s.Z_STREAM_END&&(0!==c.avail_in||o!==s.Z_FINISH&&o!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(h=a.utf8border(c.output,c.next_out),l=c.next_out-h,d=a.buf2string(c.output,h),c.next_out=l,c.avail_out=p-l,l&&n.arraySet(c.output,c.output,h,l,0),this.onData(d)):this.onData(n.shrinkBuf(c.output,c.next_out)))),0===c.avail_in&&0===c.avail_out&&(m=!0)}while((0<c.avail_in||0===c.avail_out)&&r!==s.Z_STREAM_END);return r===s.Z_STREAM_END&&(o=s.Z_FINISH),o===s.Z_FINISH?(r=i.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===s.Z_OK):o!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(c.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=d,r.inflate=u,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},r.ungzip=u},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var n={arraySet:function(e,t,r,i,n){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+i),n);else for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){var t,r,i,n,a,s;for(t=i=0,r=e.length;t<r;t++)i+=e[t].length;for(s=new Uint8Array(i),t=n=0,r=e.length;t<r;t++)a=e[t],s.set(a,n),n+=a.length;return s}},a={arraySet:function(e,t,r,i,n){for(var a=0;a<i;a++)e[n+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,n)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,a))},r.setTyped(i)},{}],42:[function(e,t,r){var i=e("./common"),n=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){n=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var s=new i.Buf8(256),o=0;o<256;o++)s[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function h(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&n))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var r="",s=0;s<t;s++)r+=String.fromCharCode(e[s]);return r}s[254]=s[254]=1,r.string2buf=function(e){var t,r,n,a,s,o=e.length,h=0;for(a=0;a<o;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<o&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),h+=r<128?1:r<2048?2:r<65536?3:4;for(t=new i.Buf8(h),a=s=0;s<h;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<o&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),r<128?t[s++]=r:(r<2048?t[s++]=192|r>>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t},r.buf2binstring=function(e){return h(e,e.length)},r.binstring2buf=function(e){for(var t=new i.Buf8(e.length),r=0,n=t.length;r<n;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,i,n,a,o=t||e.length,l=new Array(2*o);for(r=i=0;r<o;)if((n=e[r++])<128)l[i++]=n;else if(4<(a=s[n]))l[i++]=65533,r+=a-1;else{for(n&=2===a?31:3===a?15:7;1<a&&r<o;)n=n<<6|63&e[r++],a--;1<a?l[i++]=65533:n<65536?l[i++]=n:(n-=65536,l[i++]=55296|n>>10&1023,l[i++]=56320|1023&n)}return h(l,i)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){t.exports=function(e,t,r,i){for(var n=65535&e|0,a=e>>>16&65535|0,s=0;0!==r;){for(r-=s=2e3<r?2e3:r;a=a+(n=n+t[i++]|0)|0,--s;);n%=65521,a%=65521}return n|a<<16|0}},{}],44:[function(e,t,r){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,r){var i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,n){var a=i,s=n+r;e^=-1;for(var o=n;o<s;o++)e=e>>>8^a[255&(e^t[o])];return-1^e}},{}],46:[function(e,t,r){var i,n=e("../utils/common"),a=e("./trees"),s=e("./adler32"),o=e("./crc32"),h=e("./messages"),l=0,f=0,d=-2,u=2,c=8,p=286,_=30,m=19,g=2*p+1,b=15,y=3,v=258,w=v+y+1,k=42,A=113;function x(e,t){return e.msg=h[t],t}function S(e){return(e<<1)-(4<e?9:0)}function M(e){for(var t=e.length;0<=--t;)e[t]=0}function C(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(n.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function z(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,C(e.strm)}function B(e,t){e.pending_buf[e.pending++]=t}function D(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function I(e,t){var r,i,n=e.max_chain_length,a=e.strstart,s=e.prev_length,o=e.nice_match,h=e.strstart>e.w_size-w?e.strstart-(e.w_size-w):0,l=e.window,f=e.w_mask,d=e.prev,u=e.strstart+v,c=l[a+s-1],p=l[a+s];e.prev_length>=e.good_match&&(n>>=2),o>e.lookahead&&(o=e.lookahead);do{if(l[(r=t)+s]===p&&l[r+s-1]===c&&l[r]===l[a]&&l[++r]===l[a+1]){a+=2,r++;do{}while(l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&a<u);if(i=v-(u-a),a=u-v,s<i){if(e.match_start=t,o<=(s=i))break;c=l[a+s-1],p=l[a+s]}}}while((t=d[t&f])>h&&0!=--n);return s<=e.lookahead?s:e.lookahead}function E(e){var t,r,i,a,h,l,f,d,u,c,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-w)){for(n.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;i=e.head[--t],e.head[t]=p<=i?i-p:0,--r;);for(t=r=p;i=e.prev[--t],e.prev[t]=p<=i?i-p:0,--r;);a+=p}if(0===e.strm.avail_in)break;if(l=e.strm,f=e.window,d=e.strstart+e.lookahead,c=void 0,(u=a)<(c=l.avail_in)&&(c=u),r=0===c?0:(l.avail_in-=c,n.arraySet(f,l.input,l.next_in,c,d),1===l.state.wrap?l.adler=s(l.adler,f,c,d):2===l.state.wrap&&(l.adler=o(l.adler,f,c,d)),l.next_in+=c,l.total_in+=c,c),e.lookahead+=r,e.lookahead+e.insert>=y)for(h=e.strstart-e.insert,e.ins_h=e.window[h],e.ins_h=(e.ins_h<<e.hash_shift^e.window[h+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[h+y-1])&e.hash_mask,e.prev[h&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=h,h++,e.insert--,!(e.lookahead+e.insert<y)););}while(e.lookahead<w&&0!==e.strm.avail_in)}function T(e,t){for(var r,i;;){if(e.lookahead<w){if(E(e),e.lookahead<w&&t===l)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=y&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+y-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-w&&(e.match_length=I(e,r)),e.match_length>=y)if(i=a._tr_tally(e,e.strstart-e.match_start,e.match_length-y),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=y){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+y-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(z(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<y-1?e.strstart:y-1,4===t?(z(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?1:2}function U(e,t){for(var r,i,n;;){if(e.lookahead<w){if(E(e),e.lookahead<w&&t===l)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=y&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+y-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=y-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-w&&(e.match_length=I(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===y&&4096<e.strstart-e.match_start)&&(e.match_length=y-1)),e.prev_length>=y&&e.match_length<=e.prev_length){for(n=e.strstart+e.lookahead-y,i=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-y),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+y-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=y-1,e.strstart++,i&&(z(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((i=a._tr_tally(e,0,e.window[e.strstart-1]))&&z(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<y-1?e.strstart:y-1,4===t?(z(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?1:2}function R(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n}function L(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=c,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new n.Buf16(2*g),this.dyn_dtree=new n.Buf16(2*(2*_+1)),this.bl_tree=new n.Buf16(2*(2*m+1)),M(this.dyn_ltree),M(this.dyn_dtree),M(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new n.Buf16(b+1),this.heap=new n.Buf16(2*p+1),M(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new n.Buf16(2*p+1),M(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function O(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=u,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?k:A,e.adler=2===t.wrap?0:1,t.last_flush=l,a._tr_init(t),f):x(e,d)}function F(e){var t=O(e);return t===f&&function(e){e.window_size=2*e.w_size,M(e.head),e.max_lazy_match=i[e.level].max_lazy,e.good_match=i[e.level].good_length,e.nice_match=i[e.level].nice_length,e.max_chain_length=i[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=y-1,e.match_available=0,e.ins_h=0}(e.state),t}function Z(e,t,r,i,a,s){if(!e)return d;var o=1;if(-1===t&&(t=6),i<0?(o=0,i=-i):15<i&&(o=2,i-=16),a<1||9<a||r!==c||i<8||15<i||t<0||9<t||s<0||4<s)return x(e,d);8===i&&(i=9);var h=new L;return(e.state=h).strm=e,h.wrap=o,h.gzhead=null,h.w_bits=i,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=a+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+y-1)/y),h.window=new n.Buf8(2*h.w_size),h.head=new n.Buf16(h.hash_size),h.prev=new n.Buf16(h.w_size),h.lit_bufsize=1<<a+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new n.Buf8(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=t,h.strategy=s,h.method=r,F(e)}i=[new R(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(E(e),0===e.lookahead&&t===l)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((0===e.strstart||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,z(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-w&&(z(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(z(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(z(e,!1),e.strm.avail_out),1)})),new R(4,4,8,4,T),new R(4,5,16,8,T),new R(4,6,32,32,T),new R(4,4,16,16,U),new R(8,16,32,32,U),new R(8,16,128,128,U),new R(8,32,128,256,U),new R(32,128,258,1024,U),new R(32,258,258,4096,U)],r.deflateInit=function(e,t){return Z(e,t,c,15,8,0)},r.deflateInit2=Z,r.deflateReset=F,r.deflateResetKeep=O,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,f):d},r.deflate=function(e,t){var r,n,s,h;if(!e||!e.state||5<t||t<0)return e?x(e,d):d;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||666===n.status&&4!==t)return x(e,0===e.avail_out?-5:d);if(n.strm=e,r=n.last_flush,n.last_flush=t,n.status===k)if(2===n.wrap)e.adler=0,B(n,31),B(n,139),B(n,8),n.gzhead?(B(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),B(n,255&n.gzhead.time),B(n,n.gzhead.time>>8&255),B(n,n.gzhead.time>>16&255),B(n,n.gzhead.time>>24&255),B(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),B(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(B(n,255&n.gzhead.extra.length),B(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=o(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(B(n,0),B(n,0),B(n,0),B(n,0),B(n,0),B(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),B(n,3),n.status=A);else{var u=c+(n.w_bits-8<<4)<<8;u|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(u|=32),u+=31-u%31,n.status=A,D(n,u),0!==n.strstart&&(D(n,e.adler>>>16),D(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(s=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>s&&(e.adler=o(e.adler,n.pending_buf,n.pending-s,s)),C(e),s=n.pending,n.pending!==n.pending_buf_size));)B(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>s&&(e.adler=o(e.adler,n.pending_buf,n.pending-s,s)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){s=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>s&&(e.adler=o(e.adler,n.pending_buf,n.pending-s,s)),C(e),s=n.pending,n.pending===n.pending_buf_size)){h=1;break}h=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,B(n,h)}while(0!==h);n.gzhead.hcrc&&n.pending>s&&(e.adler=o(e.adler,n.pending_buf,n.pending-s,s)),0===h&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){s=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>s&&(e.adler=o(e.adler,n.pending_buf,n.pending-s,s)),C(e),s=n.pending,n.pending===n.pending_buf_size)){h=1;break}h=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,B(n,h)}while(0!==h);n.gzhead.hcrc&&n.pending>s&&(e.adler=o(e.adler,n.pending_buf,n.pending-s,s)),0===h&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&C(e),n.pending+2<=n.pending_buf_size&&(B(n,255&e.adler),B(n,e.adler>>8&255),e.adler=0,n.status=A)):n.status=A),0!==n.pending){if(C(e),0===e.avail_out)return n.last_flush=-1,f}else if(0===e.avail_in&&S(t)<=S(r)&&4!==t)return x(e,-5);if(666===n.status&&0!==e.avail_in)return x(e,-5);if(0!==e.avail_in||0!==n.lookahead||t!==l&&666!==n.status){var p=2===n.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(E(e),0===e.lookahead)){if(t===l)return 1;break}if(e.match_length=0,r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(z(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(z(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?1:2}(n,t):3===n.strategy?function(e,t){for(var r,i,n,s,o=e.window;;){if(e.lookahead<=v){if(E(e),e.lookahead<=v&&t===l)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=y&&0<e.strstart&&(i=o[n=e.strstart-1])===o[++n]&&i===o[++n]&&i===o[++n]){s=e.strstart+v;do{}while(i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&n<s);e.match_length=v-(s-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=y?(r=a._tr_tally(e,1,e.match_length-y),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(z(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(z(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(z(e,!1),0===e.strm.avail_out)?1:2}(n,t):i[n.level].func(n,t);if(3!==p&&4!==p||(n.status=666),1===p||3===p)return 0===e.avail_out&&(n.last_flush=-1),f;if(2===p&&(1===t?a._tr_align(n):5!==t&&(a._tr_stored_block(n,0,0,!1),3===t&&(M(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),C(e),0===e.avail_out))return n.last_flush=-1,f}return 4!==t?f:n.wrap<=0?1:(2===n.wrap?(B(n,255&e.adler),B(n,e.adler>>8&255),B(n,e.adler>>16&255),B(n,e.adler>>24&255),B(n,255&e.total_in),B(n,e.total_in>>8&255),B(n,e.total_in>>16&255),B(n,e.total_in>>24&255)):(D(n,e.adler>>>16),D(n,65535&e.adler)),C(e),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending?f:1)},r.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==k&&69!==t&&73!==t&&91!==t&&103!==t&&t!==A&&666!==t?x(e,d):(e.state=null,t===A?x(e,-3):f):d},r.deflateSetDictionary=function(e,t){var r,i,a,o,h,l,u,c,p=t.length;if(!e||!e.state)return d;if(2===(o=(r=e.state).wrap)||1===o&&r.status!==k||r.lookahead)return d;for(1===o&&(e.adler=s(e.adler,t,p,0)),r.wrap=0,p>=r.w_size&&(0===o&&(M(r.head),r.strstart=0,r.block_start=0,r.insert=0),c=new n.Buf8(r.w_size),n.arraySet(c,t,p-r.w_size,r.w_size,0),t=c,p=r.w_size),h=e.avail_in,l=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,E(r);r.lookahead>=y;){for(i=r.strstart,a=r.lookahead-(y-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[i+y-1])&r.hash_mask,r.prev[i&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=i,i++,--a;);r.strstart=i,r.lookahead=y-1,E(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=y-1,r.match_available=0,e.next_in=l,e.input=u,e.avail_in=h,r.wrap=o,f},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){t.exports=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}},{}],48:[function(e,t,r){t.exports=function(e,t){var r,i,n,a,s,o,h,l,f,d,u,c,p,_,m,g,b,y,v,w,k,A,x,S,M;r=e.state,i=e.next_in,S=e.input,n=i+(e.avail_in-5),a=e.next_out,M=e.output,s=a-(t-e.avail_out),o=a+(e.avail_out-257),h=r.dmax,l=r.wsize,f=r.whave,d=r.wnext,u=r.window,c=r.hold,p=r.bits,_=r.lencode,m=r.distcode,g=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;e:do{p<15&&(c+=S[i++]<<p,p+=8,c+=S[i++]<<p,p+=8),y=_[c&g];t:for(;;){if(c>>>=v=y>>>24,p-=v,0==(v=y>>>16&255))M[a++]=65535&y;else{if(!(16&v)){if(0==(64&v)){y=_[(65535&y)+(c&(1<<v)-1)];continue t}if(32&v){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}w=65535&y,(v&=15)&&(p<v&&(c+=S[i++]<<p,p+=8),w+=c&(1<<v)-1,c>>>=v,p-=v),p<15&&(c+=S[i++]<<p,p+=8,c+=S[i++]<<p,p+=8),y=m[c&b];r:for(;;){if(c>>>=v=y>>>24,p-=v,!(16&(v=y>>>16&255))){if(0==(64&v)){y=m[(65535&y)+(c&(1<<v)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(k=65535&y,p<(v&=15)&&(c+=S[i++]<<p,(p+=8)<v&&(c+=S[i++]<<p,p+=8)),h<(k+=c&(1<<v)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(c>>>=v,p-=v,(v=a-s)<k){if(f<(v=k-v)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(x=u,(A=0)===d){if(A+=l-v,v<w){for(w-=v;M[a++]=u[A++],--v;);A=a-k,x=M}}else if(d<v){if(A+=l+d-v,(v-=d)<w){for(w-=v;M[a++]=u[A++],--v;);if(A=0,d<w){for(w-=v=d;M[a++]=u[A++],--v;);A=a-k,x=M}}}else if(A+=d-v,v<w){for(w-=v;M[a++]=u[A++],--v;);A=a-k,x=M}for(;2<w;)M[a++]=x[A++],M[a++]=x[A++],M[a++]=x[A++],w-=3;w&&(M[a++]=x[A++],1<w&&(M[a++]=x[A++]))}else{for(A=a-k;M[a++]=M[A++],M[a++]=M[A++],M[a++]=M[A++],2<(w-=3););w&&(M[a++]=M[A++],1<w&&(M[a++]=M[A++]))}break}}break}}while(i<n&&a<o);i-=w=p>>3,c&=(1<<(p-=w<<3))-1,e.next_in=i,e.next_out=a,e.avail_in=i<n?n-i+5:5-(i-n),e.avail_out=a<o?o-a+257:257-(a-o),r.hold=c,r.bits=p}},{}],49:[function(e,t,r){var i=e("../utils/common"),n=e("./adler32"),a=e("./crc32"),s=e("./inffast"),o=e("./inftrees"),h=0,l=-2,f=1,d=852,u=592;function c(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function p(){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 i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function _(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=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new i.Buf32(d),t.distcode=t.distdyn=new i.Buf32(u),t.sane=1,t.back=-1,h):l}function m(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,_(e)):l}function g(e,t){var r,i;return e&&e.state?(i=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?l:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,m(e))):l}function b(e,t){var r,i;return e?(i=new p,(e.state=i).window=null,(r=g(e,t))!==h&&(e.state=null),r):l}var y,v,w=!0;function k(e){if(w){var t;for(y=new i.Buf32(512),v=new i.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(o(1,e.lens,0,288,y,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;o(2,e.lens,0,32,v,0,e.work,{bits:5}),w=!1}e.lencode=y,e.lenbits=9,e.distcode=v,e.distbits=5}function A(e,t,r,n){var a,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new i.Buf8(s.wsize)),n>=s.wsize?(i.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(n<(a=s.wsize-s.wnext)&&(a=n),i.arraySet(s.window,t,r-n,a,s.wnext),(n-=a)?(i.arraySet(s.window,t,r-n,n,0),s.wnext=n,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=a))),0}r.inflateReset=m,r.inflateReset2=g,r.inflateResetKeep=_,r.inflateInit=function(e){return b(e,15)},r.inflateInit2=b,r.inflate=function(e,t){var r,d,u,p,_,m,g,b,y,v,w,x,S,M,C,z,B,D,I,E,T,U,R,L,O=0,F=new i.Buf8(4),Z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return l;12===(r=e.state).mode&&(r.mode=13),_=e.next_out,u=e.output,g=e.avail_out,p=e.next_in,d=e.input,m=e.avail_in,b=r.hold,y=r.bits,v=m,w=g,U=h;e:for(;;)switch(r.mode){case f:if(0===r.wrap){r.mode=13;break}for(;y<16;){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}if(2&r.wrap&&35615===b){F[r.check=0]=255&b,F[1]=b>>>8&255,r.check=a(r.check,F,2,0),y=b=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&b)){e.msg="unknown compression method",r.mode=30;break}if(y-=4,T=8+(15&(b>>>=4)),0===r.wbits)r.wbits=T;else if(T>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<T,e.adler=r.check=1,r.mode=512&b?10:12,y=b=0;break;case 2:for(;y<16;){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}if(r.flags=b,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=b>>8&1),512&r.flags&&(F[0]=255&b,F[1]=b>>>8&255,r.check=a(r.check,F,2,0)),y=b=0,r.mode=3;case 3:for(;y<32;){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}r.head&&(r.head.time=b),512&r.flags&&(F[0]=255&b,F[1]=b>>>8&255,F[2]=b>>>16&255,F[3]=b>>>24&255,r.check=a(r.check,F,4,0)),y=b=0,r.mode=4;case 4:for(;y<16;){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}r.head&&(r.head.xflags=255&b,r.head.os=b>>8),512&r.flags&&(F[0]=255&b,F[1]=b>>>8&255,r.check=a(r.check,F,2,0)),y=b=0,r.mode=5;case 5:if(1024&r.flags){for(;y<16;){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}r.length=b,r.head&&(r.head.extra_len=b),512&r.flags&&(F[0]=255&b,F[1]=b>>>8&255,r.check=a(r.check,F,2,0)),y=b=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(m<(x=r.length)&&(x=m),x&&(r.head&&(T=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),i.arraySet(r.head.extra,d,p,x,T)),512&r.flags&&(r.check=a(r.check,d,x,p)),m-=x,p+=x,r.length-=x),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===m)break e;for(x=0;T=d[p+x++],r.head&&T&&r.length<65536&&(r.head.name+=String.fromCharCode(T)),T&&x<m;);if(512&r.flags&&(r.check=a(r.check,d,x,p)),m-=x,p+=x,T)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===m)break e;for(x=0;T=d[p+x++],r.head&&T&&r.length<65536&&(r.head.comment+=String.fromCharCode(T)),T&&x<m;);if(512&r.flags&&(r.check=a(r.check,d,x,p)),m-=x,p+=x,T)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;y<16;){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}if(b!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}y=b=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;y<32;){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}e.adler=r.check=c(b),y=b=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=_,e.avail_out=g,e.next_in=p,e.avail_in=m,r.hold=b,r.bits=y,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){b>>>=7&y,y-=7&y,r.mode=27;break}for(;y<3;){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}switch(r.last=1&b,y-=1,3&(b>>>=1)){case 0:r.mode=14;break;case 1:if(k(r),r.mode=20,6!==t)break;b>>>=2,y-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}b>>>=2,y-=2;break;case 14:for(b>>>=7&y,y-=7&y;y<32;){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}if((65535&b)!=(b>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&b,y=b=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(x=r.length){if(m<x&&(x=m),g<x&&(x=g),0===x)break e;i.arraySet(u,d,p,x,_),m-=x,p+=x,g-=x,_+=x,r.length-=x;break}r.mode=12;break;case 17:for(;y<14;){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}if(r.nlen=257+(31&b),b>>>=5,y-=5,r.ndist=1+(31&b),b>>>=5,y-=5,r.ncode=4+(15&b),b>>>=4,y-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;y<3;){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}r.lens[Z[r.have++]]=7&b,b>>>=3,y-=3}for(;r.have<19;)r.lens[Z[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,R={bits:r.lenbits},U=o(0,r.lens,0,19,r.lencode,0,r.work,R),r.lenbits=R.bits,U){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;z=(O=r.lencode[b&(1<<r.lenbits)-1])>>>16&255,B=65535&O,!((C=O>>>24)<=y);){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}if(B<16)b>>>=C,y-=C,r.lens[r.have++]=B;else{if(16===B){for(L=C+2;y<L;){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}if(b>>>=C,y-=C,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}T=r.lens[r.have-1],x=3+(3&b),b>>>=2,y-=2}else if(17===B){for(L=C+3;y<L;){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}y-=C,T=0,x=3+(7&(b>>>=C)),b>>>=3,y-=3}else{for(L=C+7;y<L;){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}y-=C,T=0,x=11+(127&(b>>>=C)),b>>>=7,y-=7}if(r.have+x>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;x--;)r.lens[r.have++]=T}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,R={bits:r.lenbits},U=o(1,r.lens,0,r.nlen,r.lencode,0,r.work,R),r.lenbits=R.bits,U){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,R={bits:r.distbits},U=o(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,R),r.distbits=R.bits,U){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=m&&258<=g){e.next_out=_,e.avail_out=g,e.next_in=p,e.avail_in=m,r.hold=b,r.bits=y,s(e,w),_=e.next_out,u=e.output,g=e.avail_out,p=e.next_in,d=e.input,m=e.avail_in,b=r.hold,y=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;z=(O=r.lencode[b&(1<<r.lenbits)-1])>>>16&255,B=65535&O,!((C=O>>>24)<=y);){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}if(z&&0==(240&z)){for(D=C,I=z,E=B;z=(O=r.lencode[E+((b&(1<<D+I)-1)>>D)])>>>16&255,B=65535&O,!(D+(C=O>>>24)<=y);){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}b>>>=D,y-=D,r.back+=D}if(b>>>=C,y-=C,r.back+=C,r.length=B,0===z){r.mode=26;break}if(32&z){r.back=-1,r.mode=12;break}if(64&z){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&z,r.mode=22;case 22:if(r.extra){for(L=r.extra;y<L;){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}r.length+=b&(1<<r.extra)-1,b>>>=r.extra,y-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;z=(O=r.distcode[b&(1<<r.distbits)-1])>>>16&255,B=65535&O,!((C=O>>>24)<=y);){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}if(0==(240&z)){for(D=C,I=z,E=B;z=(O=r.distcode[E+((b&(1<<D+I)-1)>>D)])>>>16&255,B=65535&O,!(D+(C=O>>>24)<=y);){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}b>>>=D,y-=D,r.back+=D}if(b>>>=C,y-=C,r.back+=C,64&z){e.msg="invalid distance code",r.mode=30;break}r.offset=B,r.extra=15&z,r.mode=24;case 24:if(r.extra){for(L=r.extra;y<L;){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}r.offset+=b&(1<<r.extra)-1,b>>>=r.extra,y-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===g)break e;if(x=w-g,r.offset>x){if((x=r.offset-x)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}S=x>r.wnext?(x-=r.wnext,r.wsize-x):r.wnext-x,x>r.length&&(x=r.length),M=r.window}else M=u,S=_-r.offset,x=r.length;for(g<x&&(x=g),g-=x,r.length-=x;u[_++]=M[S++],--x;);0===r.length&&(r.mode=21);break;case 26:if(0===g)break e;u[_++]=r.length,g--,r.mode=21;break;case 27:if(r.wrap){for(;y<32;){if(0===m)break e;m--,b|=d[p++]<<y,y+=8}if(w-=g,e.total_out+=w,r.total+=w,w&&(e.adler=r.check=r.flags?a(r.check,u,w,_-w):n(r.check,u,w,_-w)),w=g,(r.flags?b:c(b))!==r.check){e.msg="incorrect data check",r.mode=30;break}y=b=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;y<32;){if(0===m)break e;m--,b+=d[p++]<<y,y+=8}if(b!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}y=b=0}r.mode=29;case 29:U=1;break e;case 30:U=-3;break e;case 31:return-4;default:return l}return e.next_out=_,e.avail_out=g,e.next_in=p,e.avail_in=m,r.hold=b,r.bits=y,(r.wsize||w!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&A(e,e.output,e.next_out,w-e.avail_out)?(r.mode=31,-4):(v-=e.avail_in,w-=e.avail_out,e.total_in+=v,e.total_out+=w,r.total+=w,r.wrap&&w&&(e.adler=r.check=r.flags?a(r.check,u,w,e.next_out-w):n(r.check,u,w,e.next_out-w)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==v&&0===w||4===t)&&U===h&&(U=-5),U)},r.inflateEnd=function(e){if(!e||!e.state)return l;var t=e.state;return t.window&&(t.window=null),e.state=null,h},r.inflateGetHeader=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?l:((r.head=t).done=!1,h):l},r.inflateSetDictionary=function(e,t){var r,i=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?l:11===r.mode&&n(1,t,i,0)!==r.check?-3:A(e,t,i,i)?(r.mode=31,-4):(r.havedict=1,h):l},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){var i=e("../utils/common"),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],a=[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],s=[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],o=[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];t.exports=function(e,t,r,h,l,f,d,u){var c,p,_,m,g,b,y,v,w,k=u.bits,A=0,x=0,S=0,M=0,C=0,z=0,B=0,D=0,I=0,E=0,T=null,U=0,R=new i.Buf16(16),L=new i.Buf16(16),O=null,F=0;for(A=0;A<=15;A++)R[A]=0;for(x=0;x<h;x++)R[t[r+x]]++;for(C=k,M=15;1<=M&&0===R[M];M--);if(M<C&&(C=M),0===M)return l[f++]=20971520,l[f++]=20971520,u.bits=1,0;for(S=1;S<M&&0===R[S];S++);for(C<S&&(C=S),A=D=1;A<=15;A++)if(D<<=1,(D-=R[A])<0)return-1;if(0<D&&(0===e||1!==M))return-1;for(L[1]=0,A=1;A<15;A++)L[A+1]=L[A]+R[A];for(x=0;x<h;x++)0!==t[r+x]&&(d[L[t[r+x]]++]=x);if(b=0===e?(T=O=d,19):1===e?(T=n,U-=257,O=a,F-=257,256):(T=s,O=o,-1),A=S,g=f,B=x=E=0,_=-1,m=(I=1<<(z=C))-1,1===e&&852<I||2===e&&592<I)return 1;for(;;){for(y=A-B,w=d[x]<b?(v=0,d[x]):d[x]>b?(v=O[F+d[x]],T[U+d[x]]):(v=96,0),c=1<<A-B,S=p=1<<z;l[g+(E>>B)+(p-=c)]=y<<24|v<<16|w|0,0!==p;);for(c=1<<A-1;E&c;)c>>=1;if(0!==c?(E&=c-1,E+=c):E=0,x++,0==--R[A]){if(A===M)break;A=t[r+d[x]]}if(C<A&&(E&m)!==_){for(0===B&&(B=C),g+=S,D=1<<(z=A-B);z+B<M&&!((D-=R[z+B])<=0);)z++,D<<=1;if(I+=1<<z,1===e&&852<I||2===e&&592<I)return 1;l[_=E&m]=C<<24|z<<16|g-f|0}}return 0!==E&&(l[g+E]=A-B<<24|64<<16|0),u.bits=C,0}},{"../utils/common":41}],51:[function(e,t,r){t.exports={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"}},{}],52:[function(e,t,r){var i=e("../utils/common");function n(e){for(var t=e.length;0<=--t;)e[t]=0}var a=256,s=286,o=30,h=15,l=16,f=[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],d=[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],u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],c=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=new Array(576);n(p);var _=new Array(60);n(_);var m=new Array(512);n(m);var g=new Array(256);n(g);var b=new Array(29);n(b);var y,v,w,k=new Array(o);function A(e,t,r,i,n){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=e&&e.length}function x(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function S(e){return e<256?m[e]:m[256+(e>>>7)]}function M(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function C(e,t,r){e.bi_valid>l-r?(e.bi_buf|=t<<e.bi_valid&65535,M(e,e.bi_buf),e.bi_buf=t>>l-e.bi_valid,e.bi_valid+=r-l):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function z(e,t,r){C(e,r[2*t],r[2*t+1])}function B(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function D(e,t,r){var i,n,a=new Array(h+1),s=0;for(i=1;i<=h;i++)a[i]=s=s+r[i-1]<<1;for(n=0;n<=t;n++){var o=e[2*n+1];0!==o&&(e[2*n]=B(a[o]++,o))}}function I(e){var t;for(t=0;t<s;t++)e.dyn_ltree[2*t]=0;for(t=0;t<o;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function E(e){8<e.bi_valid?M(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function T(e,t,r,i){var n=2*t,a=2*r;return e[n]<e[a]||e[n]===e[a]&&i[t]<=i[r]}function U(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&T(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!T(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i}function R(e,t,r){var i,n,s,o,h=0;if(0!==e.last_lit)for(;i=e.pending_buf[e.d_buf+2*h]<<8|e.pending_buf[e.d_buf+2*h+1],n=e.pending_buf[e.l_buf+h],h++,0===i?z(e,n,t):(z(e,(s=g[n])+a+1,t),0!==(o=f[s])&&C(e,n-=b[s],o),z(e,s=S(--i),r),0!==(o=d[s])&&C(e,i-=k[s],o)),h<e.last_lit;);z(e,256,t)}function L(e,t){var r,i,n,a=t.dyn_tree,s=t.stat_desc.static_tree,o=t.stat_desc.has_stree,l=t.stat_desc.elems,f=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<l;r++)0!==a[2*r]?(e.heap[++e.heap_len]=f=r,e.depth[r]=0):a[2*r+1]=0;for(;e.heap_len<2;)a[2*(n=e.heap[++e.heap_len]=f<2?++f:0)]=1,e.depth[n]=0,e.opt_len--,o&&(e.static_len-=s[2*n+1]);for(t.max_code=f,r=e.heap_len>>1;1<=r;r--)U(e,a,r);for(n=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],U(e,a,1),i=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=i,a[2*n]=a[2*r]+a[2*i],e.depth[n]=(e.depth[r]>=e.depth[i]?e.depth[r]:e.depth[i])+1,a[2*r+1]=a[2*i+1]=n,e.heap[1]=n++,U(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,i,n,a,s,o,l=t.dyn_tree,f=t.max_code,d=t.stat_desc.static_tree,u=t.stat_desc.has_stree,c=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,_=t.stat_desc.max_length,m=0;for(a=0;a<=h;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)_<(a=l[2*l[2*(i=e.heap[r])+1]+1]+1)&&(a=_,m++),l[2*i+1]=a,f<i||(e.bl_count[a]++,s=0,p<=i&&(s=c[i-p]),o=l[2*i],e.opt_len+=o*(a+s),u&&(e.static_len+=o*(d[2*i+1]+s)));if(0!==m){do{for(a=_-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[_]--,m-=2}while(0<m);for(a=_;0!==a;a--)for(i=e.bl_count[a];0!==i;)f<(n=e.heap[--r])||(l[2*n+1]!==a&&(e.opt_len+=(a-l[2*n+1])*l[2*n],l[2*n+1]=a),i--)}}(e,t),D(a,f,e.bl_count)}function O(e,t,r){var i,n,a=-1,s=t[1],o=0,h=7,l=4;for(0===s&&(h=138,l=3),t[2*(r+1)+1]=65535,i=0;i<=r;i++)n=s,s=t[2*(i+1)+1],++o<h&&n===s||(o<l?e.bl_tree[2*n]+=o:0!==n?(n!==a&&e.bl_tree[2*n]++,e.bl_tree[32]++):o<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=n,l=(o=0)===s?(h=138,3):n===s?(h=6,3):(h=7,4))}function F(e,t,r){var i,n,a=-1,s=t[1],o=0,h=7,l=4;for(0===s&&(h=138,l=3),i=0;i<=r;i++)if(n=s,s=t[2*(i+1)+1],!(++o<h&&n===s)){if(o<l)for(;z(e,n,e.bl_tree),0!=--o;);else 0!==n?(n!==a&&(z(e,n,e.bl_tree),o--),z(e,16,e.bl_tree),C(e,o-3,2)):o<=10?(z(e,17,e.bl_tree),C(e,o-3,3)):(z(e,18,e.bl_tree),C(e,o-11,7));a=n,l=(o=0)===s?(h=138,3):n===s?(h=6,3):(h=7,4)}}n(k);var Z=!1;function P(e,t,r,n){C(e,0+(n?1:0),3),function(e,t,r,n){E(e),M(e,r),M(e,~r),i.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r)}r._tr_init=function(e){Z||(function(){var e,t,r,i,n,a=new Array(h+1);for(i=r=0;i<28;i++)for(b[i]=r,e=0;e<1<<f[i];e++)g[r++]=i;for(g[r-1]=i,i=n=0;i<16;i++)for(k[i]=n,e=0;e<1<<d[i];e++)m[n++]=i;for(n>>=7;i<o;i++)for(k[i]=n<<7,e=0;e<1<<d[i]-7;e++)m[256+n++]=i;for(t=0;t<=h;t++)a[t]=0;for(e=0;e<=143;)p[2*e+1]=8,e++,a[8]++;for(;e<=255;)p[2*e+1]=9,e++,a[9]++;for(;e<=279;)p[2*e+1]=7,e++,a[7]++;for(;e<=287;)p[2*e+1]=8,e++,a[8]++;for(D(p,287,a),e=0;e<o;e++)_[2*e+1]=5,_[2*e]=B(e,5);y=new A(p,f,257,s,h),v=new A(_,d,0,o,h),w=new A(new Array(0),u,0,19,7)}(),Z=!0),e.l_desc=new x(e.dyn_ltree,y),e.d_desc=new x(e.dyn_dtree,v),e.bl_desc=new x(e.bl_tree,w),e.bi_buf=0,e.bi_valid=0,I(e)},r._tr_stored_block=P,r._tr_flush_block=function(e,t,r,i){var n,s,o=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<a;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),L(e,e.l_desc),L(e,e.d_desc),o=function(e){var t;for(O(e,e.dyn_ltree,e.l_desc.max_code),O(e,e.dyn_dtree,e.d_desc.max_code),L(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*c[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),n=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=n&&(n=s)):n=s=r+5,r+4<=n&&-1!==t?P(e,t,r,i):4===e.strategy||s===n?(C(e,2+(i?1:0),3),R(e,p,_)):(C(e,4+(i?1:0),3),function(e,t,r,i){var n;for(C(e,t-257,5),C(e,r-1,5),C(e,i-4,4),n=0;n<i;n++)C(e,e.bl_tree[2*c[n]+1],3);F(e,e.dyn_ltree,t-1),F(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),R(e,e.dyn_ltree,e.dyn_dtree)),I(e),i&&E(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(g[r]+a+1)]++,e.dyn_dtree[2*S(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){C(e,2,3),z(e,256,p),function(e){16===e.bi_valid?(M(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){t.exports=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}},{}],54:[function(e,t,r){(function(e){!function(e,t){if(!e.setImmediate){var r,i,n,a,s=1,o={},h=!1,l=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,r="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick((function(){u(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(a="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",c,!1):e.attachEvent("onmessage",c),function(t){e.postMessage(a+t,"*")}):e.MessageChannel?((n=new MessageChannel).port1.onmessage=function(e){u(e.data)},function(e){n.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(i=l.documentElement,function(e){var t=l.createElement("script");t.onreadystatechange=function(){u(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):function(e){setTimeout(u,0,e)},f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var n={callback:e,args:t};return o[s]=n,r(s),s++},f.clearImmediate=d}function d(e){delete o[e]}function u(e){if(h)setTimeout(u,0,e);else{var r=o[e];if(r){h=!0;try{!function(e){var r=e.callback,i=e.args;switch(i.length){case 0:r();break;case 1:r(i[0]);break;case 2:r(i[0],i[1]);break;case 3:r(i[0],i[1],i[2]);break;default:r.apply(t,i)}}(r)}finally{d(e),h=!1}}}}function c(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&u(+t.data.slice(a.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}));var extractUrlBase=function(e){var t=e.split(/['/','\\']+/);if(1===t.length)return"./";t.pop();var r="";if(t.length>0&&("http:"==t[0]||"https:"==t[0]||"ftp:"==t[0])){r=t[0]+"//";for(var i=1;i<t.length;i++)r+=t[i]+"/"}else r=t.join("/")+"/";return r},ModelRequests=new Map,checkUri=function(e){return".."==e.substr(0,2)||"."==e.substr(0,1)?"../"+e:"/storage"==e.substr(0,8)?"file://"+e:e},decodeText=function(e){if("undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);for(var t="",r=0,i=e.length;r<i;r++)t+=String.fromCharCode(e[r]);return decodeURIComponent(escape(t))},collectRefModelPath=function e(t,r,i,n){if(t)for(var a=0;a<t.length;++a){if(t[a].referenceModel){var s=t[a].configName||"0",o=t[a].referenceModel,h=r+o;if(n){var l=n.get(o);if(l){var f=l.trim().split(/['/','\\']+/);if(f[0].toLowerCase().includes("http"))h=l;else{for(var d=r.substring(0,r.length-1).trim().split(/['/','\\']+/),u=0;u<f.length;u++)".."==f[u]?d.pop():f[u]&&d.push(f[u]);for(var c="",p=0;p<d.length;p++)0==p&&(d[p].toLowerCase().includes("http")||d[p].toLowerCase().includes("file"))?c+=d[p]+"//":p==d.length-1?c+=d[p]:c+=d[p]+"/";h=c}t[a].hasIndexJson=!0}}t[a].referenceModel=h,i.push({path:h,configName:s})}t[a].children&&e(t[a].children,r,i)}};function loadUrl(e,t){if("file"!=e.substring(0,4)){var r=new Headers;if(t)for(var i in t)r.append(i,t[i]);return fetch(e,{headers:r}).then((function(e){if(!e.ok)throw new Error("Network response was not OK");return e.arrayBuffer()}))}return new Promise((function(r,i){var n=new XMLHttpRequest;if(n.open("GET",e),t)for(var a in t)n.setRequestHeader(a,t[a]);n.onload=function(){this.status>=200&&this.status<300||0===this.status?r(n.response):i(Error(n.statusText))},n.onerror=function(){i(Error("Network response was not OK"))},n.crossOrigin="anonymous",n.responseType="arraybuffer",n.send()}))}var handleTTFFile=function(e,t){if(t&&0!==t.byteLength){var r=new Uint8Array(t),i=new ArrayBuffer(e.ttflength),n=new CTM.Stream(r);n.readInt32();var a=new Uint8Array(i),s=new CTM.BIMStream(a,0,1);LZMA.decompress(n,n,s,s.data.length);var o=new CTM.Stream(s.data),h=new Float32Array(e.ttflength/4);o.readArrayFloat32(h),e.ttfData=h,e.ttfDataState=1}else e.ttfDataState=-1},handleTextureFile=function(e,t){if(t&&0!==t.byteLength){var r=new Uint8Array(t),i=new ArrayBuffer(e.texturelength),n=new CTM.Stream(r);n.readInt32();var a=new Uint8Array(i),s=new CTM.BIMStream(a,0,1);LZMA.decompress(n,n,s,s.data.length),e.uvData=s.data,e.uvDataState=1}else e.uvDataState=-1},handleShxFile=function(e,t){if(t&&0!==t.byteLength){var r=new Uint8Array(t),i=new ArrayBuffer(e.shxlength),n=new CTM.Stream(r);n.readInt32();var a=new Uint8Array(i),s=new CTM.BIMStream(a,0,1);LZMA.decompress(n,n,s,s.data.length);var o=new CTM.Stream(s.data),h=new Float32Array(e.shxlength/4);o.readArrayFloat32(h),e.shxData=h,e.shxDataState=1}else e.shxDataState=-1},parseModelContent=function(e,t,r,i){var n;try{var a=/\\"/g,s=e.replace(a,"");a=/\\(?!\u[0-9a-fA-F]{4})/g,s=s.replace(a,"-"),n=JSON.parse(s)}catch(t){n=JSON.parse(e)}if(n.objectIdType=t.objectIdType,n.materialIdType=t.materialIdType,n.geomIdType=t.geomIdType,n.instanceIdType=t.instanceIdType,t.modelContent=n,t.modelContentState=1,n.uv&&n.texturefile){n.uvDataState=0;var o=r+n.texturefile;globalModelStreamProxy.isUseful()?globalModelStreamProxy.fetch("arraybuffer",o).then((function(e){handleTextureFile(n,e)})):loadUrl(checkUri(o),i).then((function(e){handleTextureFile(n,e)}))}if(n.ttffile&&null!=n.ttflength&&n.ttflength>0){n.ttfDataState=0;var h=r+n.ttffile;globalModelStreamProxy.isUseful()?globalModelStreamProxy.fetch("arraybuffer",h).then((function(e){handleTTFFile(n,e)})):loadUrl(checkUri(h),i).then((function(e){handleTTFFile(n,e)}))}if(n.shxfile&&null!=n.shxlength&&n.shxlength>0){n.shxDataState=0;var l=r+n.shxfile;globalModelStreamProxy.isUseful()?globalModelStreamProxy.fetch("arraybuffer",l).then((function(e){handleShxFile(n,e)})):loadUrl(checkUri(l),i).then((function(e){handleShxFile(n,e)}))}},handleConfigurations=function(e,t,r,i){for(var n=0;n<t.length;++n){var a=t[n].path+"/Configurations.json";globalModelStreamProxy.fetch("arraybuffer",a).then((function(e){var n=JSON.parse(decodeText(e));r.push(n),r.length==t.length&&self.postMessage({operate:"requestRefModel",weight:i.data.weight,refModelPathes:t,modelId:i.data.modelId,keepSourceFile:i.data.keepSourceFile,refModelConfigurations:r})}))}},requestRefModel=function(e,t,r){if(t.length>0){e.hasRefModel=!0;var i=[];globalModelStreamProxy.isUseful()?handleConfigurations(e,t,i,r):self.postMessage({operate:"requestRefModel",weight:r.data.weight,refModelPathes:t,modelId:r.data.modelId,keepSourceFile:r.data.keepSourceFile,refModelConfigurations:i})}},handleIndexJson=function(e,t,r,i,n){var a=JSON.parse(decodeText(t));if(!a)throw new Error("parse index.json failed");for(var s=new Map,o=0;o<a.length;o++)s.set(a[o].id,a[o].path);collectRefModelPath(e.modelContent.object.children,r,i,s),requestRefModel(e,i,n),e.indeJsonState=1},handleBundleFile=function(e,t,r,i,n,a){a&&(e.bundleSourceData=n);for(var s=new Uint8Array(n),o=new Zlib.Unzip(s),h=o.getFilenames(),l=0,f=h.length;l<f;++l){var d=o.decompress(h[l]);if("Configurations.json"===h[l]);else if("modelContent.js"===h[l]){var u=decodeText(d);parseModelContent(u,e,i,t)}else if("bvh.bin"===h[l])e.bvhData=d;else if("productData.json"===h[l]){var c=decodeText(d);e.productData=JSON.parse(c)}else"pmiContent.js"===h[l]&&(e.pmiContent=JSON.parse(decodeText(d)))}for(var p=i.split(/['/','\\']+/),_="",m=0,g=p.length-3;m<g;++m)0===m&&(p[m].toLowerCase().includes("http")||p[m].toLowerCase().includes("file"))?_+=p[m]+"//":_+=p[m]+"/";var b=[];if(e.hasReferenceModel){e.indeJsonState=0;var y=i.substring(0,i.length-2)+"Index.json";globalModelStreamProxy.isUseful()?globalModelStreamProxy.fetch("arraybuffer",y).then((function(t){handleIndexJson(e,t,_,b,r)})).catch((function(t){console.log("load ref model : ",t),collectRefModelPath(e.modelContent.object.children,_,b),requestRefModel(e,b,r),e.indeJsonState=1})):loadUrl(checkUri(y),t).then((function(t){handleIndexJson(e,t,_,b,r)})).catch((function(t){console.log("load ref model : ",t),collectRefModelPath(e.modelContent.object.children,_,b),requestRefModel(e,b,r),e.indeJsonState=1}))}else collectRefModelPath(e.modelContent.object.children,_,b),requestRefModel(e,b,r)},handleModelContentFile=function(e,t,r,i,n){if(t&&0!==t.byteLength){var a=pako.inflate(t,{to:"string"});n&&(e.modelContentSourceData=t),parseModelContent(a,e,r,i)}else e.modelContentState=-1},handleBvhFile=function(e,t,r,i){if(t&&0!==t.byteLength){var n=new Uint8Array(t),a=new ArrayBuffer(e.bvhBufferLength),s=new CTM.Stream(n);s.readInt32();var o=new Uint8Array(a),h=new CTM.BIMStream(o,0,1);LZMA.decompress(s,s,h,h.data.length),e.bvhData=h.data,e.bvhDataState=1,i&&(e.bvhSourceData=t)}else e.bvhDataState=-1},handlePmiContent=function(e,t,r){if(t&&0!==t.byteLength){var i=pako.inflate(t,{to:"string"}),n=JSON.parse(i);e.pmiContent=n,e.pmiContentState=1,r&&(e.pmiContentSourceData=t)}else e.pmiContentState=-1},handleaMorphFile=function(e,t,r){if(t&&0!==t.byteLength){var i=new Uint8Array(t),n=new ArrayBuffer(morphLen),a=new CTM.Stream(i);a.readInt32();var s=new Uint8Array(n),o=new CTM.BIMStream(s,0,1);LZMA.decompress(a,a,o,o.data.length),e.animationMorphData=o.data,e.animationState=1,r&&(e.animationMorphSourceData=t)}},handleaAnimationFile=function(e,t,r,i,n){if(t&&0!==t.byteLength){var a=pako.inflate(t,{to:"string"}),s=JSON.parse(a);if(e.animationFileData=s,s.deformationShapes&&s.deformationShapes.bufferLength>0){var o=r+s.deformationShapes.deformationsBin;parseInt(s.deformationShapes.bufferLength),globalModelStreamProxy.isUseful()?globalModelStreamProxy.fetch("arraybuffer",o).then((function(t){handleaMorphFile(e,t,i)})).catch((function(t){e.animationState=1,console.log(t)})):loadUrl(checkUri(o),n).then((function(t){handleaMorphFile(e,t,i)})).catch((function(t){e.animationState=1,console.log(t)}))}else e.animationState=1;i&&(e.animationFileSourceData=t)}else e.animationState=-1},handleModelData=function(e,t,r,i,n){var a=extractUrlBase(e.data.url),s=JSON.parse(t);if(s.bundleFile){var o=a+s.bundleFile;globalModelStreamProxy.isUseful()?globalModelStreamProxy.fetch("arraybuffer",o).then((function(t){handleBundleFile(s,r,e,a,t,i)})):loadUrl(checkUri(o),r).then((function(t){handleBundleFile(s,r,e,a,t,i)}))}else{if(s.modelContentFile){s.modelContentState=0;var h=a+s.modelContentFile;globalModelStreamProxy.isUseful()?globalModelStreamProxy.fetch("arraybuffer",h).then((function(e){handleModelContentFile(s,e,a,r,i)})).catch((function(e){ModelRequests.get(n).state="failed",s.modelContentState=-1,console.log(e)})):loadUrl(checkUri(h),r).then((function(e){handleModelContentFile(s,e,a,r,i)})).catch((function(e){ModelRequests.get(n).state="failed",s.modelContentState=-1,console.log(e)}))}if(s.bvh){s.bvhDataState=0;var l=a+s.bvh;globalModelStreamProxy.isUseful()?globalModelStreamProxy.fetch("arraybuffer",l).then((function(e){handleBvhFile(s,e,a,i)})).catch((function(e){ModelRequests.get(n).state="failed",s.bvhDataState=-1,console.log(e)})):loadUrl(checkUri(l),r).then((function(e){handleBvhFile(s,e,a,i)})).catch((function(e){ModelRequests.get(n).state="failed",s.bvhDataState=-1,console.log(e)}))}if(s.pmiContentFile){s.pmiContentState=0;var f=a+s.pmiContentFile;globalModelStreamProxy.isUseful()?globalModelStreamProxy.fetch("arraybuffer",f).then((function(e){handlePmiContent(s,e,i)})).catch((function(e){ModelRequests.get(n).state="failed",s.pmiContentState=-1,console.log(e)})):loadUrl(checkUri(f),r).then((function(e){handlePmiContent(s,e,i)})).catch((function(e){ModelRequests.get(n).state="failed",s.pmiContentState=-1,console.log(e)}))}if(s.animationFile){s.animationState=0;var d=a+s.animationFile;globalModelStreamProxy.isUseful()?globalModelStreamProxy.fetch("arraybuffer",d).then((function(e){handleaAnimationFile(s,e,a,i,r)})).catch((function(e){ModelRequests.get(n).state="failed",s.animationState=-1,console.log(e)})):loadUrl(checkUri(d),r).then((function(e){handleaAnimationFile(s,e,a,i,r)})).catch((function(e){ModelRequests.get(n).state="failed",s.animationState=-1,console.log(e)}))}s.propertyfile&&globalModelStreamProxy.isUseful()&&globalModelStreamProxy.addPropertyFile(a+s.propertyfile)}s.modelSourceData=t,ModelRequests.get(e.data.url).jsonMain=s},loadModelData=function(e){ModelRequests.set(e.data.url,{modelId:e.data.modelId,state:"loading",keepSourceFile:e.data.keepSourceFile});var t=e.data.keepSourceFile,r=e.data.gobalReqHeader,i=e.data.url;if(globalModelStreamProxy.isUseful())globalModelStreamProxy.fetch("string",e.data.url).then((function(n){try{handleModelData(e,n,r,t,i)}catch(e){ModelRequests.get(i).state="failed"}}));else{var n=new XMLHttpRequest;if(n.requestURL=e.data.url,n.open("GET",checkUri(e.data.url)),r)for(var a in r)n.setRequestHeader(a,r[a]);n.timeout=12e5,n.onload=function(){if(this.status>=200&&this.status<300||"/storage"==i.substr(0,8)&&0==this.status)try{handleModelData(e,this.response,r,t,i)}catch(e){ModelRequests.get(i).state="failed"}else ModelRequests.get(i).state="failed"},n.onerror=function(){ModelRequests.get(i).state="failed"},n.ontimeout=function(){ModelRequests.get(i).state="failed"},n.send()}},handleChunkBuffer=function(e,t){var r=new Uint8Array(t);if(e.data.isDraco)e.data.chunkData=r;else{var i=new ArrayBuffer(e.data.bufferlenth),n=new CTM.Stream(r);n.readInt32();var a=new Uint8Array(i),s=new CTM.BIMStream(a,0,1);LZMA.decompress(n,n,s,s.data.length),e.data.chunkData=s.data}e.data.keepSourceFile&&(e.data.chunkSourceData=t),e.data.state="successed",self.postMessage(e.data)},loadChunkBuffer=function(e){var t=e.data.url,r=e.data.gobalReqHeader;globalModelStreamProxy.isUseful()?globalModelStreamProxy.fetch("arraybuffer",t).then((function(t){handleChunkBuffer(e,t)})).catch((function(t){e.data.state="failed",self.postMessage(e.data),console.log(t)})):loadUrl(checkUri(t),r).then((function(t){if(!t||0===t.byteLength)return e.data.state="failed",void self.postMessage(e.data);handleChunkBuffer(e,t)})).catch((function(t){e.data.state="failed",self.postMessage(e.data),console.log(t)}))},handleBrepData=function(e,t){e.data.state="successed",e.data.keepSourceFile&&(e.data.brepSourceData=t),e.data.brepData=pako.inflate(t),self.postMessage(e.data)},loadBrepData=function(e){var t=e.data.url,r=e.data.gobalReqHeader;globalModelStreamProxy.isUseful()?globalModelStreamProxy.fetch("arraybuffer",t).then((function(t){handleBrepData(e,t)})).catch((function(t){e.data.state="failed",self.postMessage(e.data),console.log(t)})):loadUrl(checkUri(t),r).then((function(t){handleBrepData(e,t)})).catch((function(t){e.data.state="failed",self.postMessage(e.data),console.log(t)}))},getModelData=function(e){var t=ModelRequests.get(e.data.url);return"failed"===t.state?{state:"failed"}:"loading"===t.state?!t.jsonMain||!t.jsonMain.modelContent||1!==t.jsonMain.modelContentState||void 0!==t.jsonMain.bvhDataState&&1!==t.jsonMain.bvhDataState||void 0!==t.jsonMain.pmiContentState&&1!==t.jsonMain.pmiContentState||void 0!==t.jsonMain.modelContent.uvDataState&&1!==t.jsonMain.modelContent.uvDataState||void 0!==t.jsonMain.modelContent.shxDataState&&1!==t.jsonMain.modelContent.shxDataState||void 0!==t.jsonMain.modelContent.ttfDataState&&1!==t.jsonMain.modelContent.ttfDataState||void 0!==t.jsonMain.animationState&&1!==t.jsonMain.animationState||void 0!==t.jsonMain.indeJsonState&&1!==t.jsonMain.indeJsonState?{state:"loading"}:(t.state="successed",ModelRequests.delete(e.data.url),ModelRequests.set(e.data.url,{state:"handled"}),t):"handled"===t.state?{state:"handled"}:void 0},handlePropertyfile=function(e){e.data.state="successed",e.data.keepSourceFile&&(e.data.PropertySourceData=buffer),self.postMessage(e.data)},loadPropertyfile=function(e){var t=e.data.url,r=e.data.gobalReqHeader;globalModelStreamProxy.isUseful()?globalModelStreamProxy.fetch("arraybuffer",t).then((function(t){handlePropertyfile(e)})).catch((function(t){e.data.state="failed",self.postMessage(e.data),console.log(t)})):loadUrl(checkUri(t),r).then((function(t){handlePropertyfile(e)})).catch((function(t){e.data.state="failed",self.postMessage(e.data),console.log(t)}))},ModelStreamProxy=function(){function e(){this.TAG="ModelStreamProxy",this._requestURL="",this._relativePath="",this._unzip=null,this._binaryData=new Map,this._propertys=new Set,this._state="waiting"}var t=e.prototype;return t.init=function(e){var t=this;if(e.data.zip)JSZip.loadAsync(e.data.zip).then((function(r){t.zip=r,t.decompress(e)}));else if(e.data.url){var r=e.data.gobalReqHeader,i=new XMLHttpRequest;if(i.responseType="arraybuffer",r)for(var n in r)i.setRequestHeader(n,r[n]);i.onload=function(){if(i.status>=200&&i.status<300){var r=i.response;(new JSZip).loadAsync(r,{base64:!1}).then((function(r){t.zip=r,t.decompress(e)})).catch((function(e){console.error(this.TAG+"解压失败:",e)}))}else console.error(this.TAG+"请求失败 with status "+i.status)},i.onerror=function(){},i.ontimeout=function(){},i.open("GET",checkUri(e.data.url),!0),i.send()}t._state="success"},t.clear=function(){this._requestURL="",this._relativePath="",this._unzip=null,this._binaryData.clear(),this._propertys.clear(),this._state="waiting"},t.fetch=function(e,t){var r=this,i=r.zip;t=t.replace(/^\.\/|^\//,"");var n=r._binaryData.get(t);return new Promise((function(a,s){if(n&&n.returnType===e)return a(n.content);var o=i.files[t];o?!0===o.dir&&s(r.TAG+"decompress a folder is wrong"):s(r.TAG+"decompress has not been find"),i.file(t).async(e).then((function(i){r._binaryData.set(t,{returnType:e,content:i}),a(i)}))}))},t.decompress=function(e){var t=this,r=t.zip,i=0;Object.keys(r.files).forEach((function(e){!1===r.files[e].dir&&i++})),Object.keys(r.files).forEach((function(n){var a=r.files[n];if(!1===a.dir){var s=a.name,o="js"==s.substr(s.length-2,2)?"string":"arraybuffer";r.file(s).async(o).then((function(r){t._binaryData.set(s,{returnType:o,content:r}),0==--i&&(e.data.state="successed",self.postMessage(e.data),t.zip=null)}))}}))},t.addPropertyFile=function(e){this._propertys.add(e)},t.isUseful=function(){return"success"===this._state},e}(),globalModelStreamProxy=new ModelStreamProxy,loadModelZip=function(e){globalModelStreamProxy.clear(),globalModelStreamProxy.init(e)},loadModelPropertys=function(e){globalModelStreamProxy.isUseful()?(e.data.propertys={},globalModelStreamProxy._propertys.forEach((function(t){var r=globalModelStreamProxy._binaryData.get(t);e.data.propertys[t]=r})),e.data.state="successed"):e.data.state="failed",self.postMessage(e.data)};self.onmessage=function(e){if("loadModelData"===e.data.operate)loadModelData(e);else if("loadBrepData"===e.data.operate)loadBrepData(e);else if("loadChunkBuffer"===e.data.operate)loadChunkBuffer(e);else if("getModelData"===e.data.operate){var t=getModelData(e);"handled"!==t.state&&self.postMessage({operate:"getModelData",url:e.data.url,res:t})}else"propertyfile"===e.data.operate?loadPropertyfile(e):"loadModelZip"===e.data.operate?loadModelZip(e):"loadModelPropertys"===e.data.operate&&loadModelPropertys(e)};
|