/*! JSZip - A Javascript class for generating and reading zip files (c) 2009-2014 Stuart Knightley Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown. JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/master/LICENSE */ !function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.JSZip=a():"undefined"!=typeof global?global.JSZip=a():"undefined"!=typeof self&&(self.JSZip=a())}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g>2,g=(3&b)<<4|c>>4,h=(15&c)<<2|e>>6,i=63&e,isNaN(c)?h=i=64:isNaN(e)&&(i=64),j=j+d.charAt(f)+d.charAt(g)+d.charAt(h)+d.charAt(i);return j},c.decode=function(a){var b,c,e,f,g,h,i,j="",k=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");k>4,c=(15&g)<<4|h>>2,e=(3&h)<<6|i,j+=String.fromCharCode(b),64!=h&&(j+=String.fromCharCode(c)),64!=i&&(j+=String.fromCharCode(e));return j}},{}],2:[function(a,b){"use strict";function c(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}c.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},b.exports=c},{}],3:[function(a,b,c){"use strict";c.STORE={magic:"\x00\x00",compress:function(a){return a},uncompress:function(a){return a},compressInputType:null,uncompressInputType:null},c.DEFLATE=a("./flate")},{"./flate":6}],4:[function(a,b){"use strict";function c(){this.data=null,this.length=0,this.index=0}var d=a("./utils");c.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.lengtha)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var b,c=0;for(this.checkOffset(a),b=this.index+a-1;b>=this.index;b--)c=(c<<8)+this.byteAt(b);return this.index+=a,c},readString:function(a){return d.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date((a>>25&127)+1980,(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1)}},b.exports=c},{"./utils":14}],5:[function(a,b,c){"use strict";c.base64=!1,c.binary=!1,c.dir=!1,c.date=null,c.compression=null},{}],6:[function(a,b,c){"use strict";var d="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,e=a("pako");c.uncompressInputType=d?"uint8array":"array",c.compressInputType=d?"uint8array":"array",c.magic="\b\x00",c.compress=function(a){return e.deflateRaw(a)},c.uncompress=function(a){return e.inflateRaw(a)}},{pako:19}],7:[function(a,b){"use strict";function c(a,b){return this instanceof c?(this.files={},this.root="",a&&this.load(a,b),void(this.clone=function(){var a=new c;for(var b in this)"function"!=typeof this[b]&&(a[b]=this[b]);return a})):new c(a,b)}c.prototype=a("./object"),c.prototype.load=a("./load"),c.support=a("./support"),c.defaults=a("./defaults"),c.utils=a("./utils"),c.base64=a("./base64"),c.compressions=a("./compressions"),b.exports=c},{"./base64":1,"./compressions":3,"./defaults":5,"./load":8,"./object":9,"./support":12,"./utils":14}],8:[function(a,b){"use strict";var c=a("./base64"),d=a("./zipEntries");b.exports=function(a,b){var e,f,g,h;for(b=b||{},b.base64&&(a=c.decode(a)),f=new d(a,b),e=f.files,g=0;gc;c++)d+=String.fromCharCode(255&a),a>>>=8;return d},r=function(){var a,b,c={};for(a=0;a0?a.substring(0,b):""},v=function(a){return"/"!=a.slice(-1)&&(a+="/"),this.files[a]||t.call(this,a,null,{dir:!0}),this.files[a]},w=function(a,b){var c,d=new k;return a._data instanceof k?(d.uncompressedSize=a._data.uncompressedSize,d.crc32=a._data.crc32,0===d.uncompressedSize||a.options.dir?(b=j.STORE,d.compressedContent="",d.crc32=0):a._data.compressionMethod===b.magic?d.compressedContent=a._data.getCompressedContent():(c=a._data.getContent(),d.compressedContent=b.compress(f.transformTo(b.compressInputType,c)))):(c=n(a),(!c||0===c.length||a.options.dir)&&(b=j.STORE,c=""),d.uncompressedSize=c.length,d.crc32=this.crc32(c),d.compressedContent=b.compress(f.transformTo(b.compressInputType,c))),d.compressedSize=d.compressedContent.length,d.compressionMethod=b.magic,d},x=function(a,b,c,d){var e,f,h=(c.compressedContent,this.utf8encode(b.name)),i=h!==b.name,j=b.options,k="",l="";e=j.date.getHours(),e<<=6,e|=j.date.getMinutes(),e<<=5,e|=j.date.getSeconds()/2,f=j.date.getFullYear()-1980,f<<=4,f|=j.date.getMonth()+1,f<<=5,f|=j.date.getDate(),i&&(l=q(1,1)+q(this.crc32(h),4)+h,k+="up"+q(l.length,2)+l);var m="";m+="\n\x00",m+=i?"\x00\b":"\x00\x00",m+=c.compressionMethod,m+=q(e,2),m+=q(f,2),m+=q(c.crc32,4),m+=q(c.compressedSize,4),m+=q(c.uncompressedSize,4),m+=q(h.length,2),m+=q(k.length,2);var n=g.LOCAL_FILE_HEADER+m+h+k,o=g.CENTRAL_FILE_HEADER+"\x00"+m+"\x00\x00\x00\x00\x00\x00"+(b.options.dir===!0?"\x00\x00\x00":"\x00\x00\x00\x00")+q(d,4)+h+k;return{fileRecord:n,dirRecord:o,compressedObject:c}},y=function(){this.data=[]};y.prototype={append:function(a){a=f.transformTo("string",a),this.data.push(a)},finalize:function(){return this.data.join("")}};var z=function(a){this.data=new Uint8Array(a),this.index=0};z.prototype={append:function(a){0!==a.length&&(a=f.transformTo("uint8array",a),this.data.set(a,this.index),this.index+=a.length)},finalize:function(){return this.data}};var A={load:function(){throw new Error("Load method is not defined. Is the file jszip-load.js included ?")},filter:function(a){var b,c,d,e,f=[];for(b in this.files)this.files.hasOwnProperty(b)&&(d=this.files[b],e=new p(d.name,d._data,r(d.options)),c=b.slice(this.root.length,b.length),b.slice(0,this.root.length)===this.root&&a(c,e)&&f.push(e));return f},file:function(a,b,c){if(1===arguments.length){if(f.isRegExp(a)){var d=a;return this.filter(function(a,b){return!b.options.dir&&d.test(a)})}return this.filter(function(b,c){return!c.options.dir&&b===a})[0]||null}return a=this.root+a,t.call(this,a,b,c),this},folder:function(a){if(!a)return this;if(f.isRegExp(a))return this.filter(function(b,c){return c.options.dir&&a.test(b)});var b=this.root+a,c=v.call(this,b),d=this.clone();return d.root=c.name,d},remove:function(a){a=this.root+a;var b=this.files[a];if(b||("/"!=a.slice(-1)&&(a+="/"),b=this.files[a]),b)if(b.options.dir)for(var c=this.filter(function(b,c){return c.name.slice(0,a.length)===a}),d=0;di;i++)h=c?a[i]:a.charCodeAt(i),g=255&(b^h),e=d[g],b=b>>>8^e;return-1^b},utf8encode:function(a){if(c){var b=c.encode(a);return f.transformTo("string",b)}if(e.nodebuffer)return f.transformTo("string",l(a,"utf-8"));for(var d=[],g=0,h=0;hi?d[g++]=String.fromCharCode(i):i>127&&2048>i?(d[g++]=String.fromCharCode(i>>6|192),d[g++]=String.fromCharCode(63&i|128)):(d[g++]=String.fromCharCode(i>>12|224),d[g++]=String.fromCharCode(i>>6&63|128),d[g++]=String.fromCharCode(63&i|128))}return d.join("")},utf8decode:function(a){var b=[],c=0,g=f.getTypeOf(a),h="string"!==g,i=0,j=0,k=0,l=0;if(d)return d.decode(f.transformTo("uint8array",a));if(e.nodebuffer)return f.transformTo("nodebuffer",a).toString("utf-8");for(;ij?(b[c++]=String.fromCharCode(j),i++):j>191&&224>j?(k=h?a[i+1]:a.charCodeAt(i+1),b[c++]=String.fromCharCode((31&j)<<6|63&k),i+=2):(k=h?a[i+1]:a.charCodeAt(i+1),l=h?a[i+2]:a.charCodeAt(i+2),b[c++]=String.fromCharCode((15&j)<<12|(63&k)<<6|63&l),i+=3);return b.join("")}};b.exports=A},{"./base64":1,"./compressedObject":2,"./compressions":3,"./defaults":5,"./nodeBuffer":17,"./signature":10,"./support":12,"./utils":14}],10:[function(a,b,c){"use strict";c.LOCAL_FILE_HEADER="PK",c.CENTRAL_FILE_HEADER="PK",c.CENTRAL_DIRECTORY_END="PK",c.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",c.ZIP64_CENTRAL_DIRECTORY_END="PK",c.DATA_DESCRIPTOR="PK\b"},{}],11:[function(a,b){"use strict";function c(a,b){this.data=a,b||(this.data=e.string2binary(this.data)),this.length=this.data.length,this.index=0}var d=a("./dataReader"),e=a("./utils");c.prototype=new d,c.prototype.byteAt=function(a){return this.data.charCodeAt(a)},c.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)},c.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.index,this.index+a);return this.index+=a,b},b.exports=c},{"./dataReader":4,"./utils":14}],12:[function(a,b,c){var d=a("__browserify_process");if(c.base64=!0,c.array=!0,c.string=!0,c.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,c.nodebuffer=!d.browser,c.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)c.blob=!1;else{var e=new ArrayBuffer(0);try{c.blob=0===new Blob([e],{type:"application/zip"}).size}catch(f){try{var g=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,h=new g;h.append(e),c.blob=0===h.getBlob("application/zip").size}catch(f){c.blob=!1}}}},{__browserify_process:18}],13:[function(a,b){"use strict";function c(a){a&&(this.data=a,this.length=this.data.length,this.index=0)}var d=a("./dataReader");c.prototype=new d,c.prototype.byteAt=function(a){return this.data[a]},c.prototype.lastIndexOfSignature=function(a){for(var b=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),e=a.charCodeAt(3),f=this.length-4;f>=0;--f)if(this.data[f]===b&&this.data[f+1]===c&&this.data[f+2]===d&&this.data[f+3]===e)return f;return-1},c.prototype.readData=function(a){this.checkOffset(a);var b=this.data.subarray(this.index,this.index+a);return this.index+=a,b},b.exports=c},{"./dataReader":4}],14:[function(a,b,c){"use strict";function d(a){return a}function e(a,b){for(var c=0;cg&&b>1;)try{d.push("array"===f||"nodebuffer"===f?String.fromCharCode.apply(null,a.slice(g,Math.min(g+b,e))):String.fromCharCode.apply(null,a.subarray(g,Math.min(g+b,e)))),g+=b}catch(i){b=Math.floor(b/2)}return d.join("")}function g(a,b){for(var c=0;cb?"0":"")+b.toString(16).toUpperCase();return d},c.findCompression=function(a){for(var b in i)if(i.hasOwnProperty(b)&&i[b].magic===a)return i[b];return null},c.isRegExp=function(a){return"[object RegExp]"===Object.prototype.toString.call(a)}},{"./compressions":3,"./nodeBuffer":17,"./support":12}],15:[function(a,b){"use strict";function c(a,b){this.files=[],this.loadOptions=b,a&&this.load(a)}var d=a("./stringReader"),e=a("./nodeBufferReader"),f=a("./uint8ArrayReader"),g=a("./utils"),h=a("./signature"),i=a("./zipEntry"),j=a("./support");c.prototype={checkSignature:function(a){var b=this.reader.readString(4);if(b!==a)throw new Error("Corrupted zip or bug : unexpected signature ("+g.pretty(b)+", expected "+g.pretty(a)+")")},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),this.zipComment=this.reader.readString(this.zipCommentLength)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),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 a,b,c,d=this.zip64EndOfCentralSize-44,e=0;d>e;)a=this.reader.readInt(2),b=this.reader.readInt(4),c=this.reader.readString(b),this.zip64ExtensibleData[a]={id:a,length:b,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var a,b;for(a=0;a0)){var d=c.shift();d()}},!0),function(a){c.push(a),window.postMessage("process-tick","*")}}return function(a){setTimeout(a,0)}}(),c.title="browser",c.browser=!0,c.env={},c.argv=[],c.binding=function(){throw new Error("process.binding is not supported")},c.cwd=function(){return"/"},c.chdir=function(){throw new Error("process.chdir is not supported")}},{}],19:[function(a,b){"use strict";var c=a("./lib/zlib/utils").assign,d=a("./lib/deflate"),e=a("./lib/inflate"),f=a("./lib/zlib/constants"),g={};c(g,d,e,f),b.exports=g},{"./lib/deflate":20,"./lib/inflate":21,"./lib/zlib/constants":23,"./lib/zlib/utils":31}],20:[function(a,b,c){"use strict";function d(a,b){var c=new r(b);if(c.push(a,!0),c.err)throw c.msg;return c.result}function e(a,b){return b=b||{},b.raw=!0,d(a,b)}function f(a,b){return b=b||{},b.gzip=!0,d(a,b)}var g=a("./zlib/deflate.js"),h=a("./zlib/utils"),i=a("./zlib/messages"),j=a("./zlib/zstream"),k=0,l=4,m=0,n=1,o=-1,p=0,q=8,r=function(a){this.options=h.assign({level:o,method:q,chunkSize:16384,windowBits:15,memLevel:8,strategy:p},a||{});var b=this.options;b.raw&&b.windowBits>0?b.windowBits=-b.windowBits:b.gzip&&b.windowBits>0&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new j;var c=g.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(c!==m)throw new Error(i[c])};r.prototype.push=function(a,b){var c,d,e=this.strm,f=this.options.chunkSize;if(this.ended)return!1;d=b===~~b?b:b===!0?l:k,e.next_in=a,e.next_in_index=0,e.avail_in=e.next_in.length,e.next_out=new h.Buf8(f);do{if(e.avail_out=this.options.chunkSize,e.next_out_index=0,c=g.deflate(e,d),c!==n&&c!==m)return this.onEnd(c),this.ended=!0,!1;e.next_out_index&&(this.onData(h.shrinkBuf(e.next_out,e.next_out_index)),(e.avail_in>0||0===e.avail_out)&&(e.next_out=new h.Buf8(this.options.chunkSize)))}while(e.avail_in>0||0===e.avail_out);return d===l?(c=g.deflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===m):!0},r.prototype.onData=function(a){this.chunks.push(a)},r.prototype.onEnd=function(a){a===m&&(this.result=h.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},c.Deflate=r,c.deflate=d,c.deflateRaw=e,c.gzip=f},{"./zlib/deflate.js":25,"./zlib/messages":29,"./zlib/utils":31,"./zlib/zstream":32}],21:[function(a,b,c){"use strict";function d(a,b){var c=new k(b);if(c.push(a,!0),c.err)throw c.msg;return c.result}function e(a,b){return b=b||{},b.raw=!0,d(a,b)}var f=a("./zlib/inflate.js"),g=a("./zlib/utils"),h=a("./zlib/constants"),i=a("./zlib/messages"),j=a("./zlib/zstream"),k=function(a){this.options=g.assign({chunkSize:16384,windowBits:0},a||{});var b=this.options;b.raw&&b.windowBits>=0&&b.windowBits<16&&(b.windowBits=-b.windowBits,0===b.windowBits&&(b.windowBits=-15)),!(b.windowBits>=0&&b.windowBits<16)||a&&a.windowBits||(b.windowBits+=32),b.windowBits>15&&b.windowBits<48&&0===(15&b.windowBits)&&(b.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new j;var c=f.inflateInit2(this.strm,b.windowBits);if(c!==h.Z_OK)throw new Error(i[c])};k.prototype.push=function(a,b){var c,d,e=this.strm,i=this.options.chunkSize;if(this.ended)return!1;d=h.Z_NO_FLUSH,e.next_in=a,e.next_in_index=0,e.avail_in=e.next_in.length,e.next_out=new g.Buf8(i);do{if(e.avail_out=this.options.chunkSize,e.next_out_index=0,c=f.inflate(e,d),c!==h.Z_STREAM_END&&c!==h.Z_OK)return this.onEnd(c),this.ended=!0,!1;e.next_out_index&&(this.onData(g.shrinkBuf(e.next_out,e.next_out_index)),(e.avail_in>0||0===e.avail_out)&&(e.next_out=new g.Buf8(this.options.chunkSize)))}while(e.avail_in>0||0===e.avail_out);return d=b===~~b?b:b===!0?h.Z_FINISH:h.Z_NO_FLUSH,d===h.Z_FINISH?(c=f.inflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===h.Z_OK):!0},k.prototype.onData=function(a){this.chunks.push(a)},k.prototype.onEnd=function(a){a===h.Z_OK&&(this.result=g.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},c.Inflate=k,c.inflate=d,c.inflateRaw=e},{"./zlib/constants":23,"./zlib/inflate.js":27,"./zlib/messages":29,"./zlib/utils":31,"./zlib/zstream":32}],22:[function(a,b){"use strict"; function c(a,b,c,d){for(var e=65535&a|0,f=a>>>16&65535|0,g=0;0!==c;){g=c>2e3?2e3:c,c-=g;do e=e+b[d++]|0,f=f+e|0;while(--g);e%=65521,f%=65521}return e|f<<16|0}b.exports=c},{}],23:[function(a,b){b.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}},{}],24:[function(a,b){"use strict";function c(){for(var a,b=[],c=0;256>c;c++){a=c;for(var d=0;8>d;d++)a=1&a?3988292384^a>>>1:a>>>1;b[c]=a}return b}function d(a,b,c,d){var f=e,g=d+c;a=-1^a;for(var h=d;g>h;h++)a=a>>>8^f[255&(a^b[h])];return-1^a}var e=c();b.exports=d},{}],25:[function(a,b,c){"use strict";function d(a,b){return a.msg=F[b],b}function e(a){return(a<<1)-(a>4?9:0)}function f(a){for(var b=a.length;--b;)a[b]=0}function g(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out),0!==c&&(B.arraySet(a.next_out,b.pending_buf,b.pending_out,c,a.next_out_index),a.next_out_index+=c,b.pending_out+=c,a.total_out+=c,a.avail_out-=c,b.pending-=c,0===b.pending&&(b.pending_out=0))}function h(a,b){C._tr_flush_block(a,a.block_start>=0?a.block_start:-1,a.strstart-a.block_start,b),a.block_start=a.strstart,g(a.strm)}function i(a,b){a.pending_buf[a.pending++]=b}function j(a,b){a.pending_buf[a.pending++]=b>>>8&255,a.pending_buf[a.pending++]=255&b}function k(a,b,c,d){var e=a.avail_in;return e>d&&(e=d),0===e?0:(a.avail_in-=e,B.arraySet(b,a.next_in,a.next_in_index,e,c),1===a.state.wrap?a.adler=D(a.adler,b,e,c):2===a.state.wrap&&(a.adler=E(a.adler,b,e,c)),a.next_in_index+=e,a.total_in+=e,e)}function l(a,b){var c,d,e=a.max_chain_length,f=a.strstart,g=a.prev_length,h=a.nice_match,i=a.strstart>a.w_size-ib?a.strstart-(a.w_size-ib):0,j=a.window,k=a.w_mask,l=a.prev,m=a.strstart+hb,n=j[f+g-1],o=j[f+g];a.prev_length>=a.good_match&&(e>>=2),h>a.lookahead&&(h=a.lookahead);do if(c=b,j[c+g]===o&&j[c+g-1]===n&&j[c]===j[f]&&j[++c]===j[f+1]){f+=2,c++;do;while(j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&m>f);if(d=hb-(m-f),f=m-hb,d>g){if(a.match_start=b,g=d,d>=h)break;n=j[f+g-1],o=j[f+g]}}while((b=l[b&k])>i&&0!==--e);return g<=a.lookahead?g:a.lookahead}function m(a){var b,c,d,e,f,g=a.w_size;do{if(e=a.window_size-a.lookahead-a.strstart,a.strstart>=g+(g-ib)){B.arraySet(a.window,a.window,g,g,0),a.match_start-=g,a.strstart-=g,a.block_start-=g,c=a.hash_size,b=c;do d=a.head[--b],a.head[b]=d>=g?d-g:0;while(--c);c=g,b=c;do d=a.prev[--b],a.prev[b]=d>=g?d-g:0;while(--c);e+=g}if(0===a.strm.avail_in)break;if(c=k(a.strm,a.window,a.strstart+a.lookahead,e),a.lookahead+=c,a.lookahead+a.insert>=gb)for(f=a.strstart-a.insert,a.ins_h=a.window[f],a.ins_h=(a.ins_h<a.pending_buf_size-5&&(c=a.pending_buf_size-5);;){if(a.lookahead<=1){if(m(a),0===a.lookahead&&b===G)return rb;if(0===a.lookahead)break}a.strstart+=a.lookahead,a.lookahead=0;var d=a.block_start+c;if((0===a.strstart||a.strstart>=d)&&(a.lookahead=a.strstart-d,a.strstart=d,h(a,!1),0===a.strm.avail_out))return rb;if(a.strstart-a.block_start>=a.w_size-ib&&(h(a,!1),0===a.strm.avail_out))return rb}return a.insert=0,b===J?(h(a,!0),0===a.strm.avail_out?tb:ub):a.strstart>a.block_start&&(h(a,!1),0===a.strm.avail_out)?rb:rb}function o(a,b){for(var c,d;;){if(a.lookahead=gb&&(a.ins_h=(a.ins_h<=gb)if(d=C._tr_tally(a,a.strstart-a.match_start,a.match_length-gb),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=gb){a.match_length--;do a.strstart++,a.ins_h=(a.ins_h<=gb&&(a.ins_h=(a.ins_h<4096)&&(a.match_length=gb-1)),a.prev_length>=gb&&a.match_length<=a.prev_length){e=a.strstart+a.lookahead-gb,d=C._tr_tally(a,a.strstart-1-a.prev_match,a.prev_length-gb),a.lookahead-=a.prev_length-1,a.prev_length-=2;do++a.strstart<=e&&(a.ins_h=(a.ins_h<=gb&&a.strstart>0&&(e=a.strstart-1,d=g[e],d===g[++e]&&d===g[++e]&&d===g[++e])){f=a.strstart+hb;do;while(d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&d===g[++e]&&f>e);a.match_length=hb-(f-e),a.match_length>a.lookahead&&(a.match_length=a.lookahead)}if(a.match_length>=gb?(c=C._tr_tally(a,1,a.match_length-gb),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(c=C._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++),c&&(h(a,!1),0===a.strm.avail_out))return rb}return a.insert=0,b===J?(h(a,!0),0===a.strm.avail_out?tb:ub):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?rb:sb}function r(a,b){for(var c;;){if(0===a.lookahead&&(m(a),0===a.lookahead)){if(b===G)return rb;break}if(a.match_length=0,c=C._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++,c&&(h(a,!1),0===a.strm.avail_out))return rb}return a.insert=0,b===J?(h(a,!0),0===a.strm.avail_out?tb:ub):a.last_lit&&(h(a,!1),0===a.strm.avail_out)?rb:sb}function s(a){a.window_size=2*a.w_size,f(a.head),a.max_lazy_match=A[a.level].max_lazy,a.good_match=A[a.level].good_length,a.nice_match=A[a.level].nice_length,a.max_chain_length=A[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=gb-1,a.match_available=0,a.ins_h=0}function t(){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=X,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 B.Buf16(2*eb),this.dyn_dtree=new B.Buf16(2*(2*cb+1)),this.bl_tree=new B.Buf16(2*(2*db+1)),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new B.Buf16(fb+1),this.heap=new B.Buf16(2*bb+1),f(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new B.Buf16(2*bb+1),f(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,this.high_water=0}function u(a){var b;return a&&a.state?(a.total_in=a.total_out=0,a.data_type=W,b=a.state,b.pending=0,b.pending_out=0,b.wrap<0&&(b.wrap=-b.wrap),b.status=b.wrap?kb:pb,a.adler=2===b.wrap?0:1,b.last_flush=G,C._tr_init(b),L):d(a,N)}function v(a){var b=u(a);return b===L&&s(a.state),b}function w(a,b,c,e,f,g){if(!a)return d(a,N);var h=1;if(b===Q&&(b=6),0>e?(h=0,e=-e):e>15&&(h=2,e-=16),1>f||f>Y||c!==X||8>e||e>15||0>b||b>9||0>g||g>U)return d(a,N);8===e&&(e=9);var i=new t;return a.state=i,i.strm=a,i.wrap=h,i.gzhead=null,i.w_bits=e,i.w_size=1<>1,i.l_buf=3*i.lit_bufsize,i.level=b,i.strategy=g,i.method=c,v(a)}function x(a,b){return w(a,b,X,Z,$,V)}function y(a,b){var c,h;if(!a||!a.state||b>K||0>b)return d(a,N);if(h=a.state,!a.next_out||!a.next_in&&0!==a.avail_in||h.status===qb&&b!==J)return d(a,0===a.avail_out?P:N);if(h.strm=a,c=h.last_flush,h.last_flush=b,h.status===kb)if(2===h.wrap){if(a.adler=0,i(h,31),i(h,139),i(h,8),h.gzhead)throw new Error("Custom GZIP headers not supported");i(h,0),i(h,0),i(h,0),i(h,0),i(h,0),i(h,9===h.level?2:h.strategy>=S||h.level<2?4:0),i(h,vb),h.status=pb}else{var k=X+(h.w_bits-8<<4)<<8,l=-1;l=h.strategy>=S||h.level<2?0:h.level<6?1:6===h.level?2:3,k|=l<<6,0!==h.strstart&&(k|=jb),k+=31-k%31,h.status=pb,j(h,k),0!==h.strstart&&(j(h,a.adler>>>16),j(h,65535&a.adler)),a.adler=1}if(0!==h.pending){if(g(a),0===a.avail_out)return h.last_flush=-1,L}else if(0===a.avail_in&&e(b)<=e(c)&&b!==J)return d(a,P);if(h.status===qb&&0!==a.avail_in)return d(a,P);if(0!==a.avail_in||0!==h.lookahead||b!==G&&h.status!==qb){var m=h.strategy===S?r(h,b):h.strategy===T?q(h,b):A[h.level].func(h,b);if((m===tb||m===ub)&&(h.status=qb),m===rb||m===tb)return 0===a.avail_out&&(h.last_flush=-1),L;if(m===sb&&(b===H?C._tr_align(h):b!==K&&(C._tr_stored_block(h,0,0,!1),b===I&&(f(h.head),0===h.lookahead&&(h.strstart=0,h.block_start=0,h.insert=0))),g(a),0===a.avail_out))return h.last_flush=-1,L}return b!==J?L:h.wrap<=0?M:(2===h.wrap?(i(h,255&a.adler),i(h,a.adler>>8&255),i(h,a.adler>>16&255),i(h,a.adler>>24&255),i(h,255&a.total_in),i(h,a.total_in>>8&255),i(h,a.total_in>>16&255),i(h,a.total_in>>24&255)):(j(h,a.adler>>>16),j(h,65535&a.adler)),g(a),h.wrap>0&&(h.wrap=-h.wrap),0!==h.pending?L:M)}function z(a){var b=a.state.status;return b!==kb&&b!==lb&&b!==mb&&b!==nb&&b!==ob&&b!==pb&&b!==qb?d(a,N):(a.state=null,b===pb?d(a,O):L)}var A,B=a("./utils"),C=a("./trees"),D=a("./adler32"),E=a("./crc32"),F=a("./messages"),G=0,H=1,I=3,J=4,K=5,L=0,M=1,N=-2,O=-3,P=-5,Q=-1,R=1,S=2,T=3,U=4,V=0,W=2,X=8,Y=9,Z=15,$=8,_=29,ab=256,bb=ab+1+_,cb=30,db=19,eb=2*bb+1,fb=15,gb=3,hb=258,ib=hb+gb+1,jb=32,kb=42,lb=69,mb=73,nb=91,ob=103,pb=113,qb=666,rb=1,sb=2,tb=3,ub=4,vb=3,wb=function(a,b,c,d,e){this.good_length=a,this.max_lazy=b,this.nice_length=c,this.max_chain=d,this.func=e};A=[new wb(0,0,0,0,n),new wb(4,4,8,4,o),new wb(4,5,16,8,o),new wb(4,6,32,32,o),new wb(4,4,16,16,p),new wb(8,16,32,32,p),new wb(8,16,128,128,p),new wb(8,32,128,256,p),new wb(32,128,258,1024,p),new wb(32,258,258,4096,p)],c.deflateInit=x,c.deflateInit2=w,c.deflateReset=v,c.deflate=y,c.deflateEnd=z,c.deflateInfo="pako deflate (from Nodeca project)"},{"./adler32":22,"./crc32":24,"./messages":29,"./trees":30,"./utils":31}],26:[function(a,b){"use strict";var c=30,d=12;b.exports=function(a,b){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C;e=a.state,f=a.next_in_index,B=a.next_in,g=f+(a.avail_in-5),h=a.next_out_index,C=a.next_out,i=h-(b-a.avail_out),j=h+(a.avail_out-257),k=e.dmax,l=e.wsize,m=e.whave,n=e.wnext,o=e.window,p=e.hold,q=e.bits,r=e.lencode,s=e.distcode,t=(1<q&&(p+=B[f++]<>>24,p>>>=w,q-=w,w=v>>>16&255,0===w)C[h++]=65535&v;else{if(!(16&w)){if(0===(64&w)){v=r[(65535&v)+(p&(1<q&&(p+=B[f++]<>>=w,q-=w),15>q&&(p+=B[f++]<>>24,p>>>=w,q-=w,w=v>>>16&255,!(16&w)){if(0===(64&w)){v=s[(65535&v)+(p&(1<q&&(p+=B[f++]<q&&(p+=B[f++]<k){a.msg="invalid distance too far back",e.mode=c;break a}if(p>>>=w,q-=w,w=h-i,y>w){if(w=y-w,w>m&&e.sane){a.msg="invalid distance too far back",e.mode=c;break a}if(z=0,A=o,0===n){if(z+=l-w,x>w){x-=w;do C[h++]=o[z++];while(--w);z=h-y,A=C}}else if(w>n){if(z+=l+n-w,w-=n,x>w){x-=w;do C[h++]=o[z++];while(--w);if(z=0,x>n){w=n,x-=w;do C[h++]=o[z++];while(--w);z=h-y,A=C}}}else if(z+=n-w,x>w){x-=w;do C[h++]=o[z++];while(--w);z=h-y,A=C}for(;x>2;)C[h++]=A[z++],C[h++]=A[z++],C[h++]=A[z++],x-=3;x&&(C[h++]=A[z++],x>1&&(C[h++]=A[z++]))}else{z=h-y;do C[h++]=C[z++],C[h++]=C[z++],C[h++]=C[z++],x-=3;while(x>2);x&&(C[h++]=C[z++],x>1&&(C[h++]=C[z++]))}break}}break}}while(g>f&&j>h);x=q>>3,f-=x,q-=x<<3,p&=(1<f?5+(g-f):5-(f-g),a.avail_out=j>h?257+(j-h):257-(h-j),e.hold=p,e.bits=q}},{}],27:[function(a,b,c){"use strict";function d(a){return(a>>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<24)}function e(){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.next_index=0,this.lens=new s.Buf16(320),this.work=new s.Buf16(288),this.codes=new s.Buf32(rb),this.sane=0,this.back=0,this.was=0}function f(a,b,c,d,e,f,g,h){this.type=a,this.lens=b,this.lens_index=c,this.codes=d,this.table=e,this.table_index=f,this.bits=g,this.work=h}function g(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=b.total=0,b.wrap&&(a.adler=1&b.wrap),b.mode=L,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=new s.Buf32(rb),b.distcode=new s.Buf32(rb),b.sane=1,b.back=-1,D):G}function h(a){var b;return a&&a.state?(b=a.state,b.wsize=0,b.whave=0,b.wnext=0,g(a)):G}function i(a,b){var c,d;return a&&a.state?(d=a.state,0>b?(c=0,b=-b):(c=(b>>4)+1,48>b&&(b&=15)),b&&(8>b||b>15)?G:(null!==d.window&&d.wbits!==b&&(d.window=null),d.wrap=c,d.wbits=b,h(a))):G}function j(a,b){var c,d;return a?(d=new e,a.state=d,d.window=null,c=i(a,b),c!==D&&(a.state=null),c):G}function k(a){return j(a,tb)}function l(a,b,c){var d;return a&&a.state?(d=a.state,0>b?(d.hold=0,d.bits=0,D):b>16||d.bits+b>32?G:(c&=(1<b;)a.lens[b++]=8;for(;256>b;)a.lens[b++]=9;for(;280>b;)a.lens[b++]=7;for(;288>b;)a.lens[b++]=8;for(c=9,w(new f(y,a.lens,0,288,q,0,c,a.work)),b=0;32>b;)a.lens[b++]=5;c=5,w(new f(z,a.lens,0,32,r,0,c,a.work)),ub=!1}a.lencode=q,a.lenbits=9,a.distcode=r,a.distbits=5}function n(a,b,c,d){var e,f=a.state;return null===f.window&&(f.wsize=1<=f.wsize?(s.arraySet(f.window,b,c-f.wsize,f.wsize,0),f.wnext=0,f.whave=f.wsize):(e=f.wsize-f.wnext,e>d&&(e=d),s.arraySet(f.window,b,c-d,e,f.wnext),d-=e,d?(s.arraySet(f.window,b,c-d,d,0),f.wnext=d,f.whave=f.wsize):(f.wnext+=e,f.wnext===f.wsize&&(f.wnext=0),f.whaveo;){if(0===j)break a;j--,l+=e[h++]<>>8&255,c.check=u(c.check,Cb,2,0),l=0,o=0,c.mode=M;break}if(c.flags=0,c.head&&(c.head.done=-1),!(1&c.wrap)||(((255&l)<<8)+(l>>8))%31){a.msg="incorrect header check",c.mode=mb;break}if((15&l)!==K){a.msg="unknown compression method",c.mode=mb;break}if(l>>>=4,o-=4,xb=(15&l)+8,0===c.wbits)c.wbits=xb;else if(xb>c.wbits){a.msg="invalid window size",c.mode=mb;break}c.dmax=1<o;){if(0===j)break a;j--,l+=e[h++]<>8&1),512&c.flags&&(Cb[0]=255&l,Cb[1]=l>>>8&255,c.check=u(c.check,Cb,2,0)),l=0,o=0,c.mode=N;case N:for(;32>o;){if(0===j)break a;j--,l+=e[h++]<>>8&255,Cb[2]=l>>>16&255,Cb[3]=l>>>24&255,c.check=u(c.check,Cb,4,0)),l=0,o=0,c.mode=O;case O:for(;16>o;){if(0===j)break a;j--,l+=e[h++]<>8),512&c.flags&&(Cb[0]=255&l,Cb[1]=l>>>8&255,c.check=u(c.check,Cb,2,0)),l=0,o=0,c.mode=P;case P:if(1024&c.flags){for(;16>o;){if(0===j)break a;j--,l+=e[h++]<>>8&255,c.check=u(c.check,Cb,2,0)),l=0,o=0}else c.head&&(c.head.extra=null);c.mode=Q;case Q:if(1024&c.flags){if(r=c.length,r>j&&(r=j),r){if(c.head&&c.head.extra)throw xb=c.head.extra_len-c.length,"Review & implement right";512&c.flags&&(c.check=u(c.check,e,r,h)),j-=r,h+=r,c.length-=r}if(c.length)break a}c.length=0,c.mode=R;case R:if(2048&c.flags){if(0===j)break a;r=0;do xb=e[h+r++],c.head&&c.head.name&&c.lengthr);if(512&c.flags&&(c.check=u(c.check,e,r,h)),j-=r,h+=r,xb)break a}else c.head&&(c.head.name=null);c.length=0,c.mode=S;case S:if(4096&c.flags){if(0===j)break a;r=0;do xb=e[h+r++],c.head&&c.head.comment&&c.lengthr);if(512&c.flags&&(c.check=u(c.check,e,r,h)),j-=r,h+=r,xb)break a}else c.head&&(c.head.comment=null);c.mode=T;case T:if(512&c.flags){for(;16>o;){if(0===j)break a;j--,l+=e[h++]<>9&1,c.head.done=1),a.adler=c.check=0,c.mode=W;break;case U:for(;32>o;){if(0===j)break a;j--,l+=e[h++]<>>=7&o,o-=7&o,c.mode=jb;break}for(;3>o;){if(0===j)break a;j--,l+=e[h++]<>>=1,o-=1,3&l){case 0:c.mode=Y;break;case 1:if(m(c),c.mode=cb,b===C){l>>>=2,o-=2;break a}break;case 2:c.mode=_;break;case 3:a.msg="invalid block type",c.mode=mb}l>>>=2,o-=2;break;case Y:for(l>>>=7&o,o-=7&o;32>o;){if(0===j)break a;j--,l+=e[h++]<>>16^65535)){a.msg="invalid stored block lengths",c.mode=mb;break}if(c.length=65535&l,l=0,o=0,c.mode=Z,b===C)break a;case Z:c.mode=$;case $:if(r=c.length){if(r>j&&(r=j),r>k&&(r=k),0===r)break a;s.arraySet(g,e,h,r,i),j-=r,h+=r,k-=r,i+=r,c.length-=r;break}c.mode=W;break;case _:for(;14>o;){if(0===j)break a;j--,l+=e[h++]<>>=5,o-=5,c.ndist=(31&l)+1,l>>>=5,o-=5,c.ncode=(15&l)+4,l>>>=4,o-=4,c.nlen>286||c.ndist>30){a.msg="too many length or distance symbols",c.mode=mb;break}c.have=0,c.mode=ab;case ab:for(;c.haveo;){if(0===j)break a;j--,l+=e[h++]<>>=3,o-=3}for(;c.have<19;)c.lens[Db[c.have++]]=0;if(s.arraySet(c.lencode,c.codes,0,c.codes.length,0),c.lenbits=7,zb=new f(x,c.lens,0,19,c.lencode,0,c.lenbits,c.work),yb=w(zb),c.lenbits=zb.bits,yb){a.msg="invalid code lengths set",c.mode=mb;break}c.have=0,c.mode=bb;case bb:for(;c.have>>24,sb=Bb>>>16&255,tb=65535&Bb,!(o>=rb);){if(0===j)break a;j--,l+=e[h++]<tb)l>>>=rb,o-=rb,c.lens[c.have++]=tb;else{if(16===tb){for(Ab=rb+2;Ab>o;){if(0===j)break a;j--,l+=e[h++]<>>=rb,o-=rb,0===c.have){a.msg="invalid bit length repeat",c.mode=mb;break}xb=c.lens[c.have-1],r=3+(3&l),l>>>=2,o-=2}else if(17===tb){for(Ab=rb+3;Ab>o;){if(0===j)break a;j--,l+=e[h++]<>>=rb,o-=rb,xb=0,r=3+(7&l),l>>>=3,o-=3}else{for(Ab=rb+7;Ab>o;){if(0===j)break a;j--,l+=e[h++]<>>=rb,o-=rb,xb=0,r=11+(127&l),l>>>=7,o-=7}if(c.have+r>c.nlen+c.ndist){a.msg="invalid bit length repeat",c.mode=mb;break}for(;r--;)c.lens[c.have++]=xb}}if(c.mode===mb)break;if(0===c.lens[256]){a.msg="invalid code -- missing end-of-block",c.mode=mb;break}if(s.arraySet(c.lencode,c.codes,0,c.codes.length,0),c.lenbits=9,zb=new f(y,c.lens,0,c.nlen,c.lencode,0,c.lenbits,c.work),yb=w(zb),c.lenbits=zb.bits,yb){a.msg="invalid literal/lengths set",c.mode=mb;break}if(c.distbits=6,s.arraySet(c.distcode,c.codes,0,c.codes.length,0),zb=new f(z,c.lens,c.nlen,c.ndist,c.distcode,0,c.distbits,c.work),yb=w(zb),c.distbits=zb.bits,yb){a.msg="invalid distances set",c.mode=mb;break}if(c.mode=cb,b===C)break a;case cb:c.mode=db;case db:if(j>=6&&k>=258){a.next_out_index=i,a.avail_out=k,a.next_in_index=h,a.avail_in=j,c.hold=l,c.bits=o,v(a,q),i=a.next_out_index,g=a.next_out,k=a.avail_out,h=a.next_in_index,e=a.next_in,j=a.avail_in,l=c.hold,o=c.bits,c.mode===W&&(c.back=-1);break}for(c.back=0;Bb=c.lencode[l&(1<>>24,sb=Bb>>>16&255,tb=65535&Bb,!(o>=rb);){if(0===j)break a;j--,l+=e[h++]<>ub)],rb=Bb>>>24,sb=Bb>>>16&255,tb=65535&Bb,!(o>=ub+rb);){if(0===j)break a;j--,l+=e[h++]<>>=ub,o-=ub,c.back+=ub}if(l>>>=rb,o-=rb,c.back+=rb,c.length=tb,0===sb){c.mode=ib;break}if(32&sb){c.back=-1,c.mode=W;break}if(64&sb){a.msg="invalid literal/length code",c.mode=mb;break}c.extra=15&sb,c.mode=eb;case eb:if(c.extra){for(Ab=c.extra;Ab>o;){if(0===j)break a;j--,l+=e[h++]<>>=c.extra,o-=c.extra,c.back+=c.extra}c.was=c.length,c.mode=fb;case fb:for(;Bb=c.distcode[l&(1<>>24,sb=Bb>>>16&255,tb=65535&Bb,!(o>=rb);){if(0===j)break a;j--,l+=e[h++]<>ub)],rb=Bb>>>24,sb=Bb>>>16&255,tb=65535&Bb,!(o>=ub+rb);){if(0===j)break a;j--,l+=e[h++]<>>=ub,o-=ub,c.back+=ub}if(l>>>=rb,o-=rb,c.back+=rb,64&sb){a.msg="invalid distance code",c.mode=mb;break}c.offset=tb,c.extra=15&sb,c.mode=gb;case gb:if(c.extra){for(Ab=c.extra;Ab>o;){if(0===j)break a;j--,l+=e[h++]<>>=c.extra,o-=c.extra,c.back+=c.extra}if(c.offset>c.dmax){a.msg="invalid distance too far back",c.mode=mb;break}c.mode=hb;case hb:if(0===k)break a;if(r=q-k,c.offset>r){if(r=c.offset-r,r>c.whave&&c.sane){a.msg="invalid distance too far back",c.mode=mb;break}r>c.wnext?(r-=c.wnext,pb=c.wsize-r):pb=c.wnext-r,r>c.length&&(r=c.length),qb=c.window}else qb=g,pb=i-c.offset,r=c.length;r>k&&(r=k),k-=r,c.length-=r;do g[i++]=qb[pb++];while(--r);0===c.length&&(c.mode=db);break;case ib:if(0===k)break a;g[i++]=c.length,k--,c.mode=db;break;case jb:if(c.wrap){for(;32>o;){if(0===j)break a;j--,l|=e[h++]<o;){if(0===j)break a;j--,l+=e[h++]<=B;B++)N[B]=0;for(C=0;x>C;C++)N[w[a.lens_index+C]]++;for(F=z,E=d;E>=1&&0===N[E];E--);if(F>E&&(F=E),0===E)return y[a.table_index++]=20971520,y[a.table_index++]=20971520,a.bits=1,0;for(D=1;E>D&&0===N[D];D++);for(D>F&&(F=D),I=1,B=1;d>=B;B++)if(I<<=1,I-=N[B],0>I)return-1;if(I>0&&(v===g||1!==E))return-1;for(O[1]=0,B=1;d>B;B++)O[B+1]=O[B]+N[B];for(C=0;x>C;C++)0!==w[a.lens_index+C]&&(A[O[w[a.lens_index+C]]++]=C);switch(v){case g:L=P=A,r=19;break;case h:L=j,M-=257,P=k,Q-=257,r=256;break;default:L=l,P=m,r=-1}if(K=0,C=0,B=D,q=a.table_index,G=F,H=0,o=-1,J=1<e||v===i&&J>f)return 1;for(var R=0;;){R++,s=B-H,A[C]r?(t=P[Q+A[C]],u=L[M+A[C]]):(t=96,u=0),b=1<>H)+n]=s<<24|t<<16|u|0;while(0!==n);for(b=1<>=1;if(0!==b?(K&=b-1,K+=b):K=0,C++,0===--N[B]){if(B===E)break;B=w[a.lens_index+A[C]]}if(B>F&&(K&p)!==o){for(0===H&&(H=F),q+=D,G=B-H,I=1<G+H&&(I-=N[G+H],!(0>=I));)G++,I<<=1;if(J+=1<e||v===i&&J>f)return 1;o=K&p,y[o]=F<<24|G<<16|q-a.table_index}}return 0!==K&&(y[q+K]=B-H<<24|64<<16|0),a.table_index+=J,a.bits=F,0}},{"./utils":31}],29:[function(a,b){"use strict";b.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"}},{}],30:[function(a,b,c){"use strict";function d(a){for(var b=a.length;--b;)a[b]=0}function e(a){return 256>a?gb[a]:gb[256+(a>>>7)]}function f(a,b){a.pending_buf[a.pending++]=255&b,a.pending_buf[a.pending++]=b>>>8&255}function g(a,b,c){a.bi_valid>V-c?(a.bi_buf|=b<>V-a.bi_valid,a.bi_valid+=c-V):(a.bi_buf|=b<>>=1,c<<=1;while(--b>0);return c>>>1}function j(a){16===a.bi_valid?(f(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a.bi_valid>=8&&(a.pending_buf[a.pending++]=255&a.bi_buf,a.bi_buf>>=8,a.bi_valid-=8)}function k(a,b){var c,d,e,f,g,h,i=b.dyn_tree,j=b.max_code,k=b.stat_desc.static_tree,l=b.stat_desc.has_stree,m=b.stat_desc.extra_bits,n=b.stat_desc.extra_base,o=b.stat_desc.max_length,p=0;for(f=0;U>=f;f++)a.bl_count[f]=0;for(i[2*a.heap[a.heap_max]+1]=0,c=a.heap_max+1;T>c;c++)d=a.heap[c],f=i[2*i[2*d+1]+1]+1,f>o&&(f=o,p++),i[2*d+1]=f,d>j||(a.bl_count[f]++,g=0,d>=n&&(g=m[d-n]),h=i[2*d],a.opt_len+=h*(f+g),l&&(a.static_len+=h*(k[2*d+1]+g)));if(0!==p){do{for(f=o-1;0===a.bl_count[f];)f--;a.bl_count[f]--,a.bl_count[f+1]+=2,a.bl_count[o]--,p-=2}while(p>0);for(f=o;0!==f;f--)for(d=a.bl_count[f];0!==d;)e=a.heap[--c],e>j||(i[2*e+1]!==f&&(a.opt_len+=(f-i[2*e+1])*i[2*e],i[2*e+1]=f),d--)}}function l(a,b,c){var d,e,f=new Array(U+1),g=0;for(d=1;U>=d;d++)f[d]=g=g+c[d-1]<<1;for(e=0;b>=e;e++){var h=a[2*e+1];0!==h&&(a[2*e]=i(f[h]++,h))}}function m(){var a,b,c,d,e,f=new Array(U+1);for(c=0,d=0;O-1>d;d++)for(ib[d]=c,a=0;a<1<<_[d];a++)hb[c++]=d;for(hb[c-1]=d,e=0,d=0;16>d;d++)for(jb[d]=e,a=0;a<1<>=7;R>d;d++)for(jb[d]=e<<7,a=0;a<1<=b;b++)f[b]=0;for(a=0;143>=a;)eb[2*a+1]=8,a++,f[8]++;for(;255>=a;)eb[2*a+1]=9,a++,f[9]++;for(;279>=a;)eb[2*a+1]=7,a++,f[7]++;for(;287>=a;)eb[2*a+1]=8,a++,f[8]++;for(l(eb,Q+1,f),a=0;R>a;a++)fb[2*a+1]=5,fb[2*a]=i(a,5);kb=new nb(eb,_,P+1,Q,U),lb=new nb(fb,ab,0,R,U),mb=new nb(new Array(0),bb,0,S,W)}function n(a){var b;for(b=0;Q>b;b++)a.dyn_ltree[2*b]=0;for(b=0;R>b;b++)a.dyn_dtree[2*b]=0;for(b=0;S>b;b++)a.bl_tree[2*b]=0;a.dyn_ltree[2*X]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function o(a){a.bi_valid>8?f(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function p(a,b,c,d){o(a),d&&(f(a,c),f(a,~c)),E.arraySet(a.pending_buf,a.window,b,c,a.pending),a.pending+=c}function q(a,b,c,d){var e=2*b,f=2*c;return a[e]c;c++)0!==f[2*c]?(a.heap[++a.heap_len]=j=c,a.depth[c]=0):f[2*c+1]=0;for(;a.heap_len<2;)e=a.heap[++a.heap_len]=2>j?++j:0,f[2*e]=1,a.depth[e]=0,a.opt_len--,h&&(a.static_len-=g[2*e+1]);for(b.max_code=j,c=a.heap_len>>1;c>=1;c--)r(a,f,c);e=i;do c=a.heap[1],a.heap[1]=a.heap[a.heap_len--],r(a,f,1),d=a.heap[1],a.heap[--a.heap_max]=c,a.heap[--a.heap_max]=d,f[2*e]=f[2*c]+f[2*d],a.depth[e]=(a.depth[c]>=a.depth[d]?a.depth[c]:a.depth[d])+1,f[2*c+1]=f[2*d+1]=e,a.heap[1]=e++,r(a,f,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],k(a,b),l(f,j,a.bl_count)}function u(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),b[2*(c+1)+1]=65535,d=0;c>=d;d++)e=g,g=b[2*(d+1)+1],++hh?a.bl_tree[2*e]+=h:0!==e?(e!==f&&a.bl_tree[2*e]++,a.bl_tree[2*Y]++):10>=h?a.bl_tree[2*Z]++:a.bl_tree[2*$]++,h=0,f=e,0===g?(i=138,j=3):e===g?(i=6,j=3):(i=7,j=4)) }function v(a,b,c){var d,e,f=-1,i=b[1],j=0,k=7,l=4;for(0===i&&(k=138,l=3),d=0;c>=d;d++)if(e=i,i=b[2*(d+1)+1],!(++jj){do h(a,e,a.bl_tree);while(0!==--j)}else 0!==e?(e!==f&&(h(a,e,a.bl_tree),j--),h(a,Y,a.bl_tree),g(a,j-3,2)):10>=j?(h(a,Z,a.bl_tree),g(a,j-3,3)):(h(a,$,a.bl_tree),g(a,j-11,7));j=0,f=e,0===i?(k=138,l=3):e===i?(k=6,l=3):(k=7,l=4)}}function w(a){var b;for(u(a,a.dyn_ltree,a.l_desc.max_code),u(a,a.dyn_dtree,a.d_desc.max_code),t(a,a.bl_desc),b=S-1;b>=3&&0===a.bl_tree[2*cb[b]+1];b--);return a.opt_len+=3*(b+1)+5+5+4,b}function x(a,b,c,d){var e;for(g(a,b-257,5),g(a,c-1,5),g(a,d-4,4),e=0;d>e;e++)g(a,a.bl_tree[2*cb[e]+1],3);v(a,a.dyn_ltree,b-1),v(a,a.dyn_dtree,c-1)}function y(a){var b,c=4093624447;for(b=0;31>=b;b++,c>>>=1)if(1&c&&0!==a.dyn_ltree[2*b])return G;if(0!==a.dyn_ltree[18]||0!==a.dyn_ltree[20]||0!==a.dyn_ltree[26])return H;for(b=32;P>b;b++)if(0!==a.dyn_ltree[2*b])return H;return G}function z(a){pb||(m(),pb=!0),a.l_desc=new ob(a.dyn_ltree,kb),a.d_desc=new ob(a.dyn_dtree,lb),a.bl_desc=new ob(a.bl_tree,mb),a.bi_buf=0,a.bi_valid=0,n(a)}function A(a,b,c,d){g(a,(J<<1)+(d?1:0),3),p(a,b,c,!0)}function B(a){g(a,K<<1,3),h(a,X,eb),j(a)}function C(a,b,c,d){var e,f,h=0;a.level>0?(a.strm.data_type===I&&(a.strm.data_type=y(a)),t(a,a.l_desc),t(a,a.d_desc),h=w(a),e=a.opt_len+3+7>>>3,f=a.static_len+3+7>>>3,e>=f&&(e=f)):e=f=c+5,e>=c+4&&-1!==b?A(a,b,c,d):a.strategy===F||f===e?(g(a,(K<<1)+(d?1:0),3),s(a,eb,fb)):(g(a,(L<<1)+(d?1:0),3),x(a,a.l_desc.max_code+1,a.d_desc.max_code+1,h+1),s(a,a.dyn_ltree,a.dyn_dtree)),n(a),d&&o(a)}function D(a,b,c){return a.pending_buf[a.d_buf+2*a.last_lit]=b>>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&b,a.pending_buf[a.l_buf+a.last_lit]=255&c,a.last_lit++,0===b?a.dyn_ltree[2*c]++:(a.matches++,b--,a.dyn_ltree[2*(hb[c]+P+1)]++,a.dyn_dtree[2*e(b)]++),a.last_lit===a.lit_bufsize-1}var E=a("./utils"),F=4,G=0,H=1,I=2,J=0,K=1,L=2,M=3,N=258,O=29,P=256,Q=P+1+O,R=30,S=19,T=2*Q+1,U=15,V=16,W=7,X=256,Y=16,Z=17,$=18,_=[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],ab=[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],bb=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],cb=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],db=512,eb=new Array(2*(Q+2));d(eb);var fb=new Array(2*R);d(fb);var gb=new Array(db);d(gb);var hb=new Array(N-M+1);d(hb);var ib=new Array(O);d(ib);var jb=new Array(R);d(jb);var kb,lb,mb,nb=function(a,b,c,d,e){this.static_tree=a,this.extra_bits=b,this.extra_base=c,this.elems=d,this.max_length=e,this.has_stree=a&&a.length},ob=function(a,b){this.dyn_tree=a,this.max_code=0,this.stat_desc=b},pb=!1;c._tr_init=z,c._tr_stored_block=A,c._tr_flush_block=C,c._tr_tally=D,c._tr_align=B},{"./utils":31}],31:[function(a,b,c){"use strict";var d="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;c.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!=typeof c)throw new TypeError(c+"must be non-object");for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])}}return a},c.shrinkBuf=function(a,b){return a.length===b?a:a.subarray?a.subarray(0,b):(a.length=b,a)};var e={arraySet:function(a,b,c,d,e){if(b.subarray)return void a.set(b.subarray(c,c+d),e);for(var f=0;d>f;f++)a[e+f]=b[c+f]},flattenChunks:function(a){var b,c,d,e,f,g;for(d=0,b=0,c=a.length;c>b;b++)d+=a[b].length;for(g=new Uint8Array(d),e=0,b=0,c=a.length;c>b;b++)f=a[b],g.set(f,e),e+=f.length;return g}},f={arraySet:function(a,b,c,d,e){for(var f=0;d>f;f++)a[e+f]=b[c+f]},flattenChunks:function(a){return[].concat.apply([],a)}};c.setTyped=function(a){a?(c.Buf8=Uint8Array,c.Buf16=Uint16Array,c.Buf32=Int32Array,c.assign(c,e)):(c.Buf8=Array,c.Buf16=Array,c.Buf32=Array,c.assign(c,f))},c.setTyped(d)},{}],32:[function(a,b){"use strict";function c(){this.next_in=null,this.next_in_index=0,this.avail_in=0,this.total_in=0,this.next_out=null,this.next_out_index=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}b.exports=c},{}]},{},[7])(7)});