13 lines
100 KiB
JavaScript
13 lines
100 KiB
JavaScript
/*!
|
||
|
||
JSZip v3.1.5 - A JavaScript class for generating and reading zip files
|
||
<http://stuartk.com/jszip>
|
||
|
||
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
||
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(c){if(typeof exports=="object"&&typeof module!="undefined")module.exports=c();else if(typeof define=="function"&&define.amd)define([],c);else{var O;O=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this,O.JSZip=c()}})(function(){return function c(O,v,i){function f(p,a){if(!v[p]){if(!O[p]){var o=typeof require=="function"&&require;if(!a&&o)return o(p,!0);if(d)return d(p,!0);var g=new Error("Cannot find module '"+p+"'");throw g.code="MODULE_NOT_FOUND",g}var b=v[p]={exports:{}};O[p][0].call(b.exports,function(I){var B=O[p][1][I];return f(B||I)},b,b.exports,c,O,v,i)}return v[p].exports}for(var d=typeof require=="function"&&require,s=0;s<i.length;s++)f(i[s]);return f}({1:[function(c,O,v){"use strict";var i=c("./utils"),f=c("./support"),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";v.encode=function(s){for(var p,a,o,g,b,I,B,l=[],t=0,u=s.length,w=u,C=i.getTypeOf(s)!=="string";t<s.length;)w=u-t,C?(p=s[t++],a=t<u?s[t++]:0,o=t<u?s[t++]:0):(p=s.charCodeAt(t++),a=t<u?s.charCodeAt(t++):0,o=t<u?s.charCodeAt(t++):0),g=p>>2,b=(3&p)<<4|a>>4,I=w>1?(15&a)<<2|o>>6:64,B=w>2?63&o:64,l.push(d.charAt(g)+d.charAt(b)+d.charAt(I)+d.charAt(B));return l.join("")},v.decode=function(s){var p,a,o,g,b,I,B,l=0,t=0,u="data:";if(s.substr(0,u.length)===u)throw new Error("Invalid base64 input, it looks like a data url.");s=s.replace(/[^A-Za-z0-9\+\/\=]/g,"");var w=3*s.length/4;if(s.charAt(s.length-1)===d.charAt(64)&&w--,s.charAt(s.length-2)===d.charAt(64)&&w--,w%1!=0)throw new Error("Invalid base64 input, bad content length.");var C;for(C=f.uint8array?new Uint8Array(0|w):new Array(0|w);l<s.length;)g=d.indexOf(s.charAt(l++)),b=d.indexOf(s.charAt(l++)),I=d.indexOf(s.charAt(l++)),B=d.indexOf(s.charAt(l++)),p=g<<2|b>>4,a=(15&b)<<4|I>>2,o=(3&I)<<6|B,C[t++]=p,I!==64&&(C[t++]=a),B!==64&&(C[t++]=o);return C}},{"./support":30,"./utils":32}],2:[function(c,O,v){"use strict";function i(a,o,g,b,I){this.compressedSize=a,this.uncompressedSize=o,this.crc32=g,this.compression=b,this.compressedContent=I}var f=c("./external"),d=c("./stream/DataWorker"),s=c("./stream/DataLengthProbe"),p=c("./stream/Crc32Probe"),s=c("./stream/DataLengthProbe");i.prototype={getContentWorker:function(){var a=new d(f.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),o=this;return a.on("end",function(){if(this.streamInfo.data_length!==o.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),a},getCompressedWorker:function(){return new d(f.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},i.createWorkerFrom=function(a,o,g){return a.pipe(new p).pipe(new s("uncompressedSize")).pipe(o.compressWorker(g)).pipe(new s("compressedSize")).withStreamInfo("compression",o)},O.exports=i},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(c,O,v){"use strict";var i=c("./stream/GenericWorker");v.STORE={magic:"\0\0",compressWorker:function(f){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},v.DEFLATE=c("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(c,O,v){"use strict";function i(){for(var a,o=[],g=0;g<256;g++){a=g;for(var b=0;b<8;b++)a=1&a?3988292384^a>>>1:a>>>1;o[g]=a}return o}function f(a,o,g,b){var I=p,B=b+g;a^=-1;for(var l=b;l<B;l++)a=a>>>8^I[255&(a^o[l])];return a^-1}function d(a,o,g,b){var I=p,B=b+g;a^=-1;for(var l=b;l<B;l++)a=a>>>8^I[255&(a^o.charCodeAt(l))];return a^-1}var s=c("./utils"),p=i();O.exports=function(a,o){if(typeof a=="undefined"||!a.length)return 0;var g=s.getTypeOf(a)!=="string";return g?f(0|o,a,a.length,0):d(0|o,a,a.length,0)}},{"./utils":32}],5:[function(c,O,v){"use strict";v.base64=!1,v.binary=!1,v.dir=!1,v.createFolders=!0,v.date=null,v.compression=null,v.compressionOptions=null,v.comment=null,v.unixPermissions=null,v.dosPermissions=null},{}],6:[function(c,O,v){"use strict";var i=null;i=typeof Promise!="undefined"?Promise:c("lie"),O.exports={Promise:i}},{lie:58}],7:[function(c,O,v){"use strict";function i(o,g){p.call(this,"FlateWorker/"+o),this._pako=null,this._pakoAction=o,this._pakoOptions=g,this.meta={}}var f=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",d=c("pako"),s=c("./utils"),p=c("./stream/GenericWorker"),a=f?"uint8array":"array";v.magic="\b\0",s.inherits(i,p),i.prototype.processChunk=function(o){this.meta=o.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(a,o.data),!1)},i.prototype.flush=function(){p.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},i.prototype.cleanUp=function(){p.prototype.cleanUp.call(this),this._pako=null},i.prototype._createPako=function(){this._pako=new d[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var o=this;this._pako.onData=function(g){o.push({data:g,meta:o.meta})}},v.compressWorker=function(o){return new i("Deflate",o)},v.uncompressWorker=function(){return new i("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:59}],8:[function(c,O,v){"use strict";function i(t,u,w,C){d.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=u,this.zipPlatform=w,this.encodeFileName=C,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}var f=c("../utils"),d=c("../stream/GenericWorker"),s=c("../utf8"),p=c("../crc32"),a=c("../signature"),o=function(t,u){var w,C="";for(w=0;w<u;w++)C+=String.fromCharCode(255&t),t>>>=8;return C},g=function(t,u){var w=t;return t||(w=u?16893:33204),(65535&w)<<16},b=function(t,u){return 63&(t||0)},I=function(t,u,w,C,_,S){var E,z,P=t.file,F=t.compression,D=S!==s.utf8encode,W=f.transformTo("string",S(P.name)),X=f.transformTo("string",s.utf8encode(P.name)),K=P.comment,Q=f.transformTo("string",S(K)),V=f.transformTo("string",s.utf8encode(K)),H=X.length!==P.name.length,q=V.length!==K.length,J="",ue="",ie="",he=P.dir,oe=P.date,te={crc32:0,compressedSize:0,uncompressedSize:0};u&&!w||(te.crc32=t.crc32,te.compressedSize=t.compressedSize,te.uncompressedSize=t.uncompressedSize);var fe=0;u&&(fe|=8),D||!H&&!q||(fe|=2048);var se=0,le=0;he&&(se|=16),_==="UNIX"?(le=798,se|=g(P.unixPermissions,he)):(le=20,se|=b(P.dosPermissions,he)),E=oe.getUTCHours(),E<<=6,E|=oe.getUTCMinutes(),E<<=5,E|=oe.getUTCSeconds()/2,z=oe.getUTCFullYear()-1980,z<<=4,z|=oe.getUTCMonth()+1,z<<=5,z|=oe.getUTCDate(),H&&(ue=o(1,1)+o(p(W),4)+X,J+="up"+o(ue.length,2)+ue),q&&(ie=o(1,1)+o(p(Q),4)+V,J+="uc"+o(ie.length,2)+ie);var $="";$+=`
|
||
\0`,$+=o(fe,2),$+=F.magic,$+=o(E,2),$+=o(z,2),$+=o(te.crc32,4),$+=o(te.compressedSize,4),$+=o(te.uncompressedSize,4),$+=o(W.length,2),$+=o(J.length,2);var ke=a.LOCAL_FILE_HEADER+$+W+J,ae=a.CENTRAL_FILE_HEADER+o(le,2)+$+o(Q.length,2)+"\0\0\0\0"+o(se,4)+o(C,4)+W+J+Q;return{fileRecord:ke,dirRecord:ae}},B=function(t,u,w,C,_){var S="",E=f.transformTo("string",_(C));return S=a.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(t,2)+o(t,2)+o(u,4)+o(w,4)+o(E.length,2)+E},l=function(t){var u="";return u=a.DATA_DESCRIPTOR+o(t.crc32,4)+o(t.compressedSize,4)+o(t.uncompressedSize,4)};f.inherits(i,d),i.prototype.push=function(t){var u=t.meta.percent||0,w=this.entriesCount,C=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,d.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:w?(u+100*(w-C-1))/w:100}}))},i.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var u=this.streamFiles&&!t.file.dir;if(u){var w=I(t,u,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:w.fileRecord,meta:{percent:0}})}else this.accumulate=!0},i.prototype.closedSource=function(t){this.accumulate=!1;var u=this.streamFiles&&!t.file.dir,w=I(t,u,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(w.dirRecord),u)this.push({data:l(t),meta:{percent:100}});else for(this.push({data:w.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},i.prototype.flush=function(){for(var t=this.bytesWritten,u=0;u<this.dirRecords.length;u++)this.push({data:this.dirRecords[u],meta:{percent:100}});var w=this.bytesWritten-t,C=B(this.dirRecords.length,w,t,this.zipComment,this.encodeFileName);this.push({data:C,meta:{percent:100}})},i.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},i.prototype.registerPrevious=function(t){this._sources.push(t);var u=this;return t.on("data",function(w){u.processChunk(w)}),t.on("end",function(){u.closedSource(u.previous.streamInfo),u._sources.length?u.prepareNextSource():u.end()}),t.on("error",function(w){u.error(w)}),this},i.prototype.resume=function(){return!!d.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},i.prototype.error=function(t){var u=this._sources;if(!d.prototype.error.call(this,t))return!1;for(var w=0;w<u.length;w++)try{u[w].error(t)}catch(C){}return!0},i.prototype.lock=function(){d.prototype.lock.call(this);for(var t=this._sources,u=0;u<t.length;u++)t[u].lock()},O.exports=i},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(c,O,v){"use strict";var i=c("../compressions"),f=c("./ZipFileWorker"),d=function(s,p){var a=s||p,o=i[a];if(!o)throw new Error(a+" is not a valid compression method !");return o};v.generateWorker=function(s,p,a){var o=new f(p.streamFiles,a,p.platform,p.encodeFileName),g=0;try{s.forEach(function(b,I){g++;var B=d(I.options.compression,p.compression),l=I.options.compressionOptions||p.compressionOptions||{},t=I.dir,u=I.date;I._compressWorker(B,l).withStreamInfo("file",{name:b,dir:t,date:u,comment:I.comment||"",unixPermissions:I.unixPermissions,dosPermissions:I.dosPermissions}).pipe(o)}),o.entriesCount=g}catch(b){o.error(b)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(c,O,v){"use strict";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={},this.comment=null,this.root="",this.clone=function(){var f=new i;for(var d in this)typeof this[d]!="function"&&(f[d]=this[d]);return f}}i.prototype=c("./object"),i.prototype.loadAsync=c("./load"),i.support=c("./support"),i.defaults=c("./defaults"),i.version="3.1.5",i.loadAsync=function(f,d){return new i().loadAsync(f,d)},i.external=c("./external"),O.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(c,O,v){"use strict";function i(g){return new d.Promise(function(b,I){var B=g.decompressed.getContentWorker().pipe(new a);B.on("error",function(l){I(l)}).on("end",function(){B.streamInfo.crc32!==g.decompressed.crc32?I(new Error("Corrupted zip : CRC32 mismatch")):b()}).resume()})}var f=c("./utils"),d=c("./external"),s=c("./utf8"),f=c("./utils"),p=c("./zipEntries"),a=c("./stream/Crc32Probe"),o=c("./nodejsUtils");O.exports=function(g,b){var I=this;return b=f.extend(b||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),o.isNode&&o.isStream(g)?d.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):f.prepareContent("the loaded zip file",g,!0,b.optimizedBinaryString,b.base64).then(function(B){var l=new p(b);return l.load(B),l}).then(function(B){var l=[d.Promise.resolve(B)],t=B.files;if(b.checkCRC32)for(var u=0;u<t.length;u++)l.push(i(t[u]));return d.Promise.all(l)}).then(function(B){for(var l=B.shift(),t=l.files,u=0;u<t.length;u++){var w=t[u];I.file(w.fileNameStr,w.decompressed,{binary:!0,optimizedBinaryString:!0,date:w.date,dir:w.dir,comment:w.fileCommentStr.length?w.fileCommentStr:null,unixPermissions:w.unixPermissions,dosPermissions:w.dosPermissions,createFolders:b.createFolders})}return l.zipComment.length&&(I.comment=l.zipComment),I})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(c,O,v){"use strict";function i(s,p){d.call(this,"Nodejs stream input adapter for "+s),this._upstreamEnded=!1,this._bindStream(p)}var f=c("../utils"),d=c("../stream/GenericWorker");f.inherits(i,d),i.prototype._bindStream=function(s){var p=this;this._stream=s,s.pause(),s.on("data",function(a){p.push({data:a,meta:{percent:0}})}).on("error",function(a){p.isPaused?this.generatedError=a:p.error(a)}).on("end",function(){p.isPaused?p._upstreamEnded=!0:p.end()})},i.prototype.pause=function(){return!!d.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!d.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},O.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(c,O,v){"use strict";function i(s,p,a){f.call(this,p),this._helper=s;var o=this;s.on("data",function(g,b){o.push(g)||o._helper.pause(),a&&a(b)}).on("error",function(g){o.emit("error",g)}).on("end",function(){o.push(null)})}var f=c("readable-stream").Readable,d=c("../utils");d.inherits(i,f),i.prototype._read=function(){this._helper.resume()},O.exports=i},{"../utils":32,"readable-stream":16}],14:[function(c,O,v){"use strict";O.exports={isNode:typeof Buffer!="undefined",newBufferFrom:function(i,f){return new Buffer(i,f)},allocBuffer:function(i){return Buffer.alloc?Buffer.alloc(i):new Buffer(i)},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(c,O,v){"use strict";function i(_){return Object.prototype.toString.call(_)==="[object RegExp]"}var f=c("./utf8"),d=c("./utils"),s=c("./stream/GenericWorker"),p=c("./stream/StreamHelper"),a=c("./defaults"),o=c("./compressedObject"),g=c("./zipObject"),b=c("./generate"),I=c("./nodejsUtils"),B=c("./nodejs/NodejsStreamInputAdapter"),l=function(_,S,E){var z,P=d.getTypeOf(S),F=d.extend(E||{},a);F.date=F.date||new Date,F.compression!==null&&(F.compression=F.compression.toUpperCase()),typeof F.unixPermissions=="string"&&(F.unixPermissions=parseInt(F.unixPermissions,8)),F.unixPermissions&&16384&F.unixPermissions&&(F.dir=!0),F.dosPermissions&&16&F.dosPermissions&&(F.dir=!0),F.dir&&(_=u(_)),F.createFolders&&(z=t(_))&&w.call(this,z,!0);var D=P==="string"&&F.binary===!1&&F.base64===!1;E&&typeof E.binary!="undefined"||(F.binary=!D);var W=S instanceof o&&S.uncompressedSize===0;(W||F.dir||!S||S.length===0)&&(F.base64=!1,F.binary=!0,S="",F.compression="STORE",P="string");var X=null;X=S instanceof o||S instanceof s?S:I.isNode&&I.isStream(S)?new B(_,S):d.prepareContent(_,S,F.binary,F.optimizedBinaryString,F.base64);var K=new g(_,X,F);this.files[_]=K},t=function(_){_.slice(-1)==="/"&&(_=_.substring(0,_.length-1));var S=_.lastIndexOf("/");return S>0?_.substring(0,S):""},u=function(_){return _.slice(-1)!=="/"&&(_+="/"),_},w=function(_,S){return S=typeof S!="undefined"?S:a.createFolders,_=u(_),this.files[_]||l.call(this,_,null,{dir:!0,createFolders:S}),this.files[_]},C={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(_){var S,E,z;for(S in this.files)this.files.hasOwnProperty(S)&&(z=this.files[S],E=S.slice(this.root.length,S.length),E&&S.slice(0,this.root.length)===this.root&&_(E,z))},filter:function(_){var S=[];return this.forEach(function(E,z){_(E,z)&&S.push(z)}),S},file:function(_,S,E){if(arguments.length===1){if(i(_)){var z=_;return this.filter(function(F,D){return!D.dir&&z.test(F)})}var P=this.files[this.root+_];return P&&!P.dir?P:null}return _=this.root+_,l.call(this,_,S,E),this},folder:function(_){if(!_)return this;if(i(_))return this.filter(function(P,F){return F.dir&&_.test(P)});var S=this.root+_,E=w.call(this,S),z=this.clone();return z.root=E.name,z},remove:function(_){_=this.root+_;var S=this.files[_];if(S||(_.slice(-1)!=="/"&&(_+="/"),S=this.files[_]),S&&!S.dir)delete this.files[_];else for(var E=this.filter(function(P,F){return F.name.slice(0,_.length)===_}),z=0;z<E.length;z++)delete this.files[E[z].name];return this},generate:function(_){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(_){var S,E={};try{if(E=d.extend(_||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:f.utf8encode}),E.type=E.type.toLowerCase(),E.compression=E.compression.toUpperCase(),E.type==="binarystring"&&(E.type="string"),!E.type)throw new Error("No output type specified.");d.checkSupport(E.type),E.platform!=="darwin"&&E.platform!=="freebsd"&&E.platform!=="linux"&&E.platform!=="sunos"||(E.platform="UNIX"),E.platform==="win32"&&(E.platform="DOS");var z=E.comment||this.comment||"";S=b.generateWorker(this,E,z)}catch(P){S=new s("error"),S.error(P)}return new p(S,E.type||"string",E.mimeType)},generateAsync:function(_,S){return this.generateInternalStream(_).accumulate(S)},generateNodeStream:function(_,S){return _=_||{},_.type||(_.type="nodebuffer"),this.generateInternalStream(_).toNodejsStream(S)}};O.exports=C},{"./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(c,O,v){O.exports=c("stream")},{stream:void 0}],17:[function(c,O,v){"use strict";function i(s){f.call(this,s);for(var p=0;p<this.data.length;p++)s[p]=255&s[p]}var f=c("./DataReader"),d=c("../utils");d.inherits(i,f),i.prototype.byteAt=function(s){return this.data[this.zero+s]},i.prototype.lastIndexOfSignature=function(s){for(var p=s.charCodeAt(0),a=s.charCodeAt(1),o=s.charCodeAt(2),g=s.charCodeAt(3),b=this.length-4;b>=0;--b)if(this.data[b]===p&&this.data[b+1]===a&&this.data[b+2]===o&&this.data[b+3]===g)return b-this.zero;return-1},i.prototype.readAndCheckSignature=function(s){var p=s.charCodeAt(0),a=s.charCodeAt(1),o=s.charCodeAt(2),g=s.charCodeAt(3),b=this.readData(4);return p===b[0]&&a===b[1]&&o===b[2]&&g===b[3]},i.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var p=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,p},O.exports=i},{"../utils":32,"./DataReader":18}],18:[function(c,O,v){"use strict";function i(d){this.data=d,this.length=d.length,this.index=0,this.zero=0}var f=c("../utils");i.prototype={checkOffset:function(d){this.checkIndex(this.index+d)},checkIndex:function(d){if(this.length<this.zero+d||d<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+d+"). Corrupted zip ?")},setIndex:function(d){this.checkIndex(d),this.index=d},skip:function(d){this.setIndex(this.index+d)},byteAt:function(d){},readInt:function(d){var s,p=0;for(this.checkOffset(d),s=this.index+d-1;s>=this.index;s--)p=(p<<8)+this.byteAt(s);return this.index+=d,p},readString:function(d){return f.transformTo("string",this.readData(d))},readData:function(d){},lastIndexOfSignature:function(d){},readAndCheckSignature:function(d){},readDate:function(){var d=this.readInt(4);return new Date(Date.UTC((d>>25&127)+1980,(d>>21&15)-1,d>>16&31,d>>11&31,d>>5&63,(31&d)<<1))}},O.exports=i},{"../utils":32}],19:[function(c,O,v){"use strict";function i(s){f.call(this,s)}var f=c("./Uint8ArrayReader"),d=c("../utils");d.inherits(i,f),i.prototype.readData=function(s){this.checkOffset(s);var p=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,p},O.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(c,O,v){"use strict";function i(s){f.call(this,s)}var f=c("./DataReader"),d=c("../utils");d.inherits(i,f),i.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},i.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},i.prototype.readAndCheckSignature=function(s){var p=this.readData(4);return s===p},i.prototype.readData=function(s){this.checkOffset(s);var p=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,p},O.exports=i},{"../utils":32,"./DataReader":18}],21:[function(c,O,v){"use strict";function i(s){f.call(this,s)}var f=c("./ArrayReader"),d=c("../utils");d.inherits(i,f),i.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var p=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,p},O.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(c,O,v){"use strict";var i=c("../utils"),f=c("../support"),d=c("./ArrayReader"),s=c("./StringReader"),p=c("./NodeBufferReader"),a=c("./Uint8ArrayReader");O.exports=function(o){var g=i.getTypeOf(o);return i.checkSupport(g),g!=="string"||f.uint8array?g==="nodebuffer"?new p(o):f.uint8array?new a(i.transformTo("uint8array",o)):new d(i.transformTo("array",o)):new s(o)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(c,O,v){"use strict";v.LOCAL_FILE_HEADER="PK",v.CENTRAL_FILE_HEADER="PK",v.CENTRAL_DIRECTORY_END="PK",v.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",v.ZIP64_CENTRAL_DIRECTORY_END="PK",v.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(c,O,v){"use strict";function i(s){f.call(this,"ConvertWorker to "+s),this.destType=s}var f=c("./GenericWorker"),d=c("../utils");d.inherits(i,f),i.prototype.processChunk=function(s){this.push({data:d.transformTo(this.destType,s.data),meta:s.meta})},O.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(c,O,v){"use strict";function i(){f.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}var f=c("./GenericWorker"),d=c("../crc32"),s=c("../utils");s.inherits(i,f),i.prototype.processChunk=function(p){this.streamInfo.crc32=d(p.data,this.streamInfo.crc32||0),this.push(p)},O.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(c,O,v){"use strict";function i(s){d.call(this,"DataLengthProbe for "+s),this.propName=s,this.withStreamInfo(s,0)}var f=c("../utils"),d=c("./GenericWorker");f.inherits(i,d),i.prototype.processChunk=function(s){if(s){var p=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=p+s.data.length}d.prototype.processChunk.call(this,s)},O.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(c,O,v){"use strict";function i(p){d.call(this,"DataWorker");var a=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,p.then(function(o){a.dataIsReady=!0,a.data=o,a.max=o&&o.length||0,a.type=f.getTypeOf(o),a.isPaused||a._tickAndRepeat()},function(o){a.error(o)})}var f=c("../utils"),d=c("./GenericWorker"),s=16384;f.inherits(i,d),i.prototype.cleanUp=function(){d.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!d.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,f.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(f.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var p=s,a=null,o=Math.min(this.max,this.index+p);if(this.index>=this.max)return this.end();switch(this.type){case"string":a=this.data.substring(this.index,o);break;case"uint8array":a=this.data.subarray(this.index,o);break;case"array":case"nodebuffer":a=this.data.slice(this.index,o)}return this.index=o,this.push({data:a,meta:{percent:this.max?this.index/this.max*100:0}})},O.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(c,O,v){"use strict";function i(f){this.name=f||"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(f){this.emit("data",f)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(f){this.emit("error",f)}return!0},error:function(f){return!this.isFinished&&(this.isPaused?this.generatedError=f:(this.isFinished=!0,this.emit("error",f),this.previous&&this.previous.error(f),this.cleanUp()),!0)},on:function(f,d){return this._listeners[f].push(d),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(f,d){if(this._listeners[f])for(var s=0;s<this._listeners[f].length;s++)this._listeners[f][s].call(this,d)},pipe:function(f){return f.registerPrevious(this)},registerPrevious:function(f){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=f.streamInfo,this.mergeStreamInfo(),this.previous=f;var d=this;return f.on("data",function(s){d.processChunk(s)}),f.on("end",function(){d.end()}),f.on("error",function(s){d.error(s)}),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;this.isPaused=!1;var f=!1;return this.generatedError&&(this.error(this.generatedError),f=!0),this.previous&&this.previous.resume(),!f},flush:function(){},processChunk:function(f){this.push(f)},withStreamInfo:function(f,d){return this.extraStreamInfo[f]=d,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var f in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(f)&&(this.streamInfo[f]=this.extraStreamInfo[f])},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 f="Worker "+this.name;return this.previous?this.previous+" -> "+f:f}},O.exports=i},{}],29:[function(c,O,v){"use strict";function i(l,t,u){switch(l){case"blob":return p.newBlob(p.transformTo("arraybuffer",t),u);case"base64":return g.encode(t);default:return p.transformTo(l,t)}}function f(l,t){var u,w=0,C=null,_=0;for(u=0;u<t.length;u++)_+=t[u].length;switch(l){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(C=new Uint8Array(_),u=0;u<t.length;u++)C.set(t[u],w),w+=t[u].length;return C;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+l+"'")}}function d(l,t){return new I.Promise(function(u,w){var C=[],_=l._internalType,S=l._outputType,E=l._mimeType;l.on("data",function(z,P){C.push(z),t&&t(P)}).on("error",function(z){C=[],w(z)}).on("end",function(){try{var z=i(S,f(_,C),E);u(z)}catch(P){w(P)}C=[]}).resume()})}function s(l,t,u){var w=t;switch(t){case"blob":case"arraybuffer":w="uint8array";break;case"base64":w="string"}try{this._internalType=w,this._outputType=t,this._mimeType=u,p.checkSupport(w),this._worker=l.pipe(new a(w)),l.lock()}catch(C){this._worker=new o("error"),this._worker.error(C)}}var p=c("../utils"),a=c("./ConvertWorker"),o=c("./GenericWorker"),g=c("../base64"),b=c("../support"),I=c("../external"),B=null;if(b.nodestream)try{B=c("../nodejs/NodejsStreamOutputAdapter")}catch(l){}s.prototype={accumulate:function(l){return d(this,l)},on:function(l,t){var u=this;return l==="data"?this._worker.on(l,function(w){t.call(u,w.data,w.meta)}):this._worker.on(l,function(){p.delay(t,arguments,u)}),this},resume:function(){return p.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(l){if(p.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new B(this,{objectMode:this._outputType!=="nodebuffer"},l)}},O.exports=s},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(c,O,v){"use strict";if(v.base64=!0,v.array=!0,v.string=!0,v.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",v.nodebuffer=typeof Buffer!="undefined",v.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")v.blob=!1;else{var i=new ArrayBuffer(0);try{v.blob=new Blob([i],{type:"application/zip"}).size===0}catch(s){try{var f=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,d=new f;d.append(i),v.blob=d.getBlob("application/zip").size===0}catch(p){v.blob=!1}}}try{v.nodestream=!!c("readable-stream").Readable}catch(s){v.nodestream=!1}},{"readable-stream":16}],31:[function(c,O,v){"use strict";function i(){a.call(this,"utf-8 decode"),this.leftOver=null}function f(){a.call(this,"utf-8 encode")}for(var d=c("./utils"),s=c("./support"),p=c("./nodejsUtils"),a=c("./stream/GenericWorker"),o=new Array(256),g=0;g<256;g++)o[g]=g>=252?6:g>=248?5:g>=240?4:g>=224?3:g>=192?2:1;o[254]=o[254]=1;var b=function(l){var t,u,w,C,_,S=l.length,E=0;for(C=0;C<S;C++)u=l.charCodeAt(C),(64512&u)==55296&&C+1<S&&(w=l.charCodeAt(C+1),(64512&w)==56320&&(u=65536+(u-55296<<10)+(w-56320),C++)),E+=u<128?1:u<2048?2:u<65536?3:4;for(t=s.uint8array?new Uint8Array(E):new Array(E),_=0,C=0;_<E;C++)u=l.charCodeAt(C),(64512&u)==55296&&C+1<S&&(w=l.charCodeAt(C+1),(64512&w)==56320&&(u=65536+(u-55296<<10)+(w-56320),C++)),u<128?t[_++]=u:u<2048?(t[_++]=192|u>>>6,t[_++]=128|63&u):u<65536?(t[_++]=224|u>>>12,t[_++]=128|u>>>6&63,t[_++]=128|63&u):(t[_++]=240|u>>>18,t[_++]=128|u>>>12&63,t[_++]=128|u>>>6&63,t[_++]=128|63&u);return t},I=function(l,t){var u;for(t=t||l.length,t>l.length&&(t=l.length),u=t-1;u>=0&&(192&l[u])==128;)u--;return u<0||u===0?t:u+o[l[u]]>t?u:t},B=function(l){var t,u,w,C,_=l.length,S=new Array(2*_);for(u=0,t=0;t<_;)if(w=l[t++],w<128)S[u++]=w;else if(C=o[w],C>4)S[u++]=65533,t+=C-1;else{for(w&=C===2?31:C===3?15:7;C>1&&t<_;)w=w<<6|63&l[t++],C--;C>1?S[u++]=65533:w<65536?S[u++]=w:(w-=65536,S[u++]=55296|w>>10&1023,S[u++]=56320|1023&w)}return S.length!==u&&(S.subarray?S=S.subarray(0,u):S.length=u),d.applyFromCharCode(S)};v.utf8encode=function(l){return s.nodebuffer?p.newBufferFrom(l,"utf-8"):b(l)},v.utf8decode=function(l){return s.nodebuffer?d.transformTo("nodebuffer",l).toString("utf-8"):(l=d.transformTo(s.uint8array?"uint8array":"array",l),B(l))},d.inherits(i,a),i.prototype.processChunk=function(l){var t=d.transformTo(s.uint8array?"uint8array":"array",l.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var u=t;t=new Uint8Array(u.length+this.leftOver.length),t.set(this.leftOver,0),t.set(u,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var w=I(t),C=t;w!==t.length&&(s.uint8array?(C=t.subarray(0,w),this.leftOver=t.subarray(w,t.length)):(C=t.slice(0,w),this.leftOver=t.slice(w,t.length))),this.push({data:v.utf8decode(C),meta:l.meta})},i.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:v.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},v.Utf8DecodeWorker=i,d.inherits(f,a),f.prototype.processChunk=function(l){this.push({data:v.utf8encode(l.data),meta:l.meta})},v.Utf8EncodeWorker=f},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(c,O,v){"use strict";function i(t){var u=null;return u=a.uint8array?new Uint8Array(t.length):new Array(t.length),d(t,u)}function f(t){return t}function d(t,u){for(var w=0;w<t.length;++w)u[w]=255&t.charCodeAt(w);return u}function s(t){var u=65536,w=v.getTypeOf(t),C=!0;if(w==="uint8array"?C=B.applyCanBeUsed.uint8array:w==="nodebuffer"&&(C=B.applyCanBeUsed.nodebuffer),C)for(;u>1;)try{return B.stringifyByChunk(t,w,u)}catch(_){u=Math.floor(u/2)}return B.stringifyByChar(t)}function p(t,u){for(var w=0;w<t.length;w++)u[w]=t[w];return u}var a=c("./support"),o=c("./base64"),g=c("./nodejsUtils"),b=c("core-js/library/fn/set-immediate"),I=c("./external");v.newBlob=function(t,u){v.checkSupport("blob");try{return new Blob([t],{type:u})}catch(_){try{var w=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,C=new w;return C.append(t),C.getBlob(u)}catch(S){throw new Error("Bug : can't construct the Blob.")}}};var B={stringifyByChunk:function(t,u,w){var C=[],_=0,S=t.length;if(S<=w)return String.fromCharCode.apply(null,t);for(;_<S;)u==="array"||u==="nodebuffer"?C.push(String.fromCharCode.apply(null,t.slice(_,Math.min(_+w,S)))):C.push(String.fromCharCode.apply(null,t.subarray(_,Math.min(_+w,S)))),_+=w;return C.join("")},stringifyByChar:function(t){for(var u="",w=0;w<t.length;w++)u+=String.fromCharCode(t[w]);return u},applyCanBeUsed:{uint8array:function(){try{return a.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(t){return!1}}(),nodebuffer:function(){try{return a.nodebuffer&&String.fromCharCode.apply(null,g.allocBuffer(1)).length===1}catch(t){return!1}}()}};v.applyFromCharCode=s;var l={};l.string={string:f,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return l.string.uint8array(t).buffer},uint8array:function(t){return d(t,new Uint8Array(t.length))},nodebuffer:function(t){return d(t,g.allocBuffer(t.length))}},l.array={string:s,array:f,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return g.newBufferFrom(t)}},l.arraybuffer={string:function(t){return s(new Uint8Array(t))},array:function(t){return p(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:f,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return g.newBufferFrom(new Uint8Array(t))}},l.uint8array={string:s,array:function(t){return p(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:f,nodebuffer:function(t){return g.newBufferFrom(t)}},l.nodebuffer={string:s,array:function(t){return p(t,new Array(t.length))},arraybuffer:function(t){return l.nodebuffer.uint8array(t).buffer},uint8array:function(t){return p(t,new Uint8Array(t.length))},nodebuffer:f},v.transformTo=function(t,u){if(u||(u=""),!t)return u;v.checkSupport(t);var w=v.getTypeOf(u),C=l[w][t](u);return C},v.getTypeOf=function(t){return typeof t=="string"?"string":Object.prototype.toString.call(t)==="[object Array]"?"array":a.nodebuffer&&g.isBuffer(t)?"nodebuffer":a.uint8array&&t instanceof Uint8Array?"uint8array":a.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},v.checkSupport=function(t){var u=a[t.toLowerCase()];if(!u)throw new Error(t+" is not supported by this platform")},v.MAX_VALUE_16BITS=65535,v.MAX_VALUE_32BITS=-1,v.pretty=function(t){var u,w,C="";for(w=0;w<(t||"").length;w++)u=t.charCodeAt(w),C+="\\x"+(u<16?"0":"")+u.toString(16).toUpperCase();return C},v.delay=function(t,u,w){b(function(){t.apply(w||null,u||[])})},v.inherits=function(t,u){var w=function(){};w.prototype=u.prototype,t.prototype=new w},v.extend=function(){var t,u,w={};for(t=0;t<arguments.length;t++)for(u in arguments[t])arguments[t].hasOwnProperty(u)&&typeof w[u]=="undefined"&&(w[u]=arguments[t][u]);return w},v.prepareContent=function(t,u,w,C,_){var S=I.Promise.resolve(u).then(function(E){var z=a.blob&&(E instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(E))!==-1);return z&&typeof FileReader!="undefined"?new I.Promise(function(P,F){var D=new FileReader;D.onload=function(W){P(W.target.result)},D.onerror=function(W){F(W.target.error)},D.readAsArrayBuffer(E)}):E});return S.then(function(E){var z=v.getTypeOf(E);return z?(z==="arraybuffer"?E=v.transformTo("uint8array",E):z==="string"&&(_?E=o.decode(E):w&&C!==!0&&(E=i(E))),E):I.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"core-js/library/fn/set-immediate":36}],33:[function(c,O,v){"use strict";function i(o){this.files=[],this.loadOptions=o}var f=c("./reader/readerFor"),d=c("./utils"),s=c("./signature"),p=c("./zipEntry"),a=(c("./utf8"),c("./support"));i.prototype={checkSignature:function(o){if(!this.reader.readAndCheckSignature(o)){this.reader.index-=4;var g=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+d.pretty(g)+", expected "+d.pretty(o)+")")}},isSignature:function(o,g){var b=this.reader.index;this.reader.setIndex(o);var I=this.reader.readString(4),B=I===g;return this.reader.setIndex(b),B},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 o=this.reader.readData(this.zipCommentLength),g=a.uint8array?"uint8array":"array",b=d.transformTo(g,o);this.zipComment=this.loadOptions.decodeFileName(b)},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 o,g,b,I=this.zip64EndOfCentralSize-44,B=0;B<I;)o=this.reader.readInt(2),g=this.reader.readInt(4),b=this.reader.readData(g),this.zip64ExtensibleData[o]={id:o,length:g,value:b}},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 o,g;for(o=0;o<this.files.length;o++)g=this.files[o],this.reader.setIndex(g.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),g.readLocalPart(this.reader),g.handleUTF8(),g.processAttributes()},readCentralDir:function(){var o;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)o=new p({zip64:this.zip64},this.loadOptions),o.readCentralPart(this.reader),this.files.push(o);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var o=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(o<0){var g=!this.isSignature(0,s.LOCAL_FILE_HEADER);throw g?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"):new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(o);var b=o;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===d.MAX_VALUE_16BITS||this.diskWithCentralDirStart===d.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===d.MAX_VALUE_16BITS||this.centralDirRecords===d.MAX_VALUE_16BITS||this.centralDirSize===d.MAX_VALUE_32BITS||this.centralDirOffset===d.MAX_VALUE_32BITS){if(this.zip64=!0,o=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),o<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(o),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.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(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var I=this.centralDirOffset+this.centralDirSize;this.zip64&&(I+=20,I+=12+this.zip64EndOfCentralSize);var B=b-I;if(B>0)this.isSignature(b,s.CENTRAL_FILE_HEADER)||(this.reader.zero=B);else if(B<0)throw new Error("Corrupted zip: missing "+Math.abs(B)+" bytes.")},prepareReader:function(o){this.reader=f(o)},load:function(o){this.prepareReader(o),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},O.exports=i},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(c,O,v){"use strict";function i(l,t){this.options=l,this.loadOptions=t}var f=c("./reader/readerFor"),d=c("./utils"),s=c("./compressedObject"),p=c("./crc32"),a=c("./utf8"),o=c("./compressions"),g=c("./support"),b=0,I=3,B=function(l){for(var t in o)if(o.hasOwnProperty(t)&&o[t].magic===l)return o[t];return null};i.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(l){var t,u;if(l.skip(22),this.fileNameLength=l.readInt(2),u=l.readInt(2),this.fileName=l.readData(this.fileNameLength),l.skip(u),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=B(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+d.pretty(this.compressionMethod)+" unknown (inner file : "+d.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,t,l.readData(this.compressedSize))},readCentralPart:function(l){this.versionMadeBy=l.readInt(2),l.skip(2),this.bitFlag=l.readInt(2),this.compressionMethod=l.readString(2),this.date=l.readDate(),this.crc32=l.readInt(4),this.compressedSize=l.readInt(4),this.uncompressedSize=l.readInt(4);var t=l.readInt(2);if(this.extraFieldsLength=l.readInt(2),this.fileCommentLength=l.readInt(2),this.diskNumberStart=l.readInt(2),this.internalFileAttributes=l.readInt(2),this.externalFileAttributes=l.readInt(4),this.localHeaderOffset=l.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");l.skip(t),this.readExtraFields(l),this.parseZIP64ExtraField(l),this.fileComment=l.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var l=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),l===b&&(this.dosPermissions=63&this.externalFileAttributes),l===I&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(l){if(this.extraFields[1]){var t=f(this.extraFields[1].value);this.uncompressedSize===d.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===d.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===d.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===d.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(l){var t,u,w,C=l.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});l.index<C;)t=l.readInt(2),u=l.readInt(2),w=l.readData(u),this.extraFields[t]={id:t,length:u,value:w}},handleUTF8:function(){var l=g.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var u=d.transformTo(l,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(u)}var w=this.findExtraFieldUnicodeComment();if(w!==null)this.fileCommentStr=w;else{var C=d.transformTo(l,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(C)}}},findExtraFieldUnicodePath:function(){var l=this.extraFields[28789];if(l){var t=f(l.value);return t.readInt(1)!==1||p(this.fileName)!==t.readInt(4)?null:a.utf8decode(t.readData(l.length-5))}return null},findExtraFieldUnicodeComment:function(){var l=this.extraFields[25461];if(l){var t=f(l.value);return t.readInt(1)!==1||p(this.fileComment)!==t.readInt(4)?null:a.utf8decode(t.readData(l.length-5))}return null}},O.exports=i},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(c,O,v){"use strict";var i=c("./stream/StreamHelper"),f=c("./stream/DataWorker"),d=c("./utf8"),s=c("./compressedObject"),p=c("./stream/GenericWorker"),a=function(I,B,l){this.name=I,this.dir=l.dir,this.date=l.date,this.comment=l.comment,this.unixPermissions=l.unixPermissions,this.dosPermissions=l.dosPermissions,this._data=B,this._dataBinary=l.binary,this.options={compression:l.compression,compressionOptions:l.compressionOptions}};a.prototype={internalStream:function(I){var B=null,l="string";try{if(!I)throw new Error("No output type specified.");l=I.toLowerCase();var t=l==="string"||l==="text";l!=="binarystring"&&l!=="text"||(l="string"),B=this._decompressWorker();var u=!this._dataBinary;u&&!t&&(B=B.pipe(new d.Utf8EncodeWorker)),!u&&t&&(B=B.pipe(new d.Utf8DecodeWorker))}catch(w){B=new p("error"),B.error(w)}return new i(B,l,"")},async:function(I,B){return this.internalStream(I).accumulate(B)},nodeStream:function(I,B){return this.internalStream(I||"nodebuffer").toNodejsStream(B)},_compressWorker:function(I,B){if(this._data instanceof s&&this._data.compression.magic===I.magic)return this._data.getCompressedWorker();var l=this._decompressWorker();return this._dataBinary||(l=l.pipe(new d.Utf8EncodeWorker)),s.createWorkerFrom(l,I,B)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof p?this._data:new f(this._data)}};for(var o=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],g=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},b=0;b<o.length;b++)a.prototype[o[b]]=g;O.exports=a},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(c,O,v){c("../modules/web.immediate"),O.exports=c("../modules/_core").setImmediate},{"../modules/_core":40,"../modules/web.immediate":56}],37:[function(c,O,v){O.exports=function(i){if(typeof i!="function")throw TypeError(i+" is not a function!");return i}},{}],38:[function(c,O,v){var i=c("./_is-object");O.exports=function(f){if(!i(f))throw TypeError(f+" is not an object!");return f}},{"./_is-object":51}],39:[function(c,O,v){var i={}.toString;O.exports=function(f){return i.call(f).slice(8,-1)}},{}],40:[function(c,O,v){var i=O.exports={version:"2.3.0"};typeof __e=="number"&&(__e=i)},{}],41:[function(c,O,v){var i=c("./_a-function");O.exports=function(f,d,s){if(i(f),d===void 0)return f;switch(s){case 1:return function(p){return f.call(d,p)};case 2:return function(p,a){return f.call(d,p,a)};case 3:return function(p,a,o){return f.call(d,p,a,o)}}return function(){return f.apply(d,arguments)}}},{"./_a-function":37}],42:[function(c,O,v){O.exports=!c("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":45}],43:[function(c,O,v){var i=c("./_is-object"),f=c("./_global").document,d=i(f)&&i(f.createElement);O.exports=function(s){return d?f.createElement(s):{}}},{"./_global":46,"./_is-object":51}],44:[function(c,O,v){var i=c("./_global"),f=c("./_core"),d=c("./_ctx"),s=c("./_hide"),p="prototype",a=function(o,g,b){var I,B,l,t=o&a.F,u=o&a.G,w=o&a.S,C=o&a.P,_=o&a.B,S=o&a.W,E=u?f:f[g]||(f[g]={}),z=E[p],P=u?i:w?i[g]:(i[g]||{})[p];u&&(b=g);for(I in b)B=!t&&P&&P[I]!==void 0,B&&I in E||(l=B?P[I]:b[I],E[I]=u&&typeof P[I]!="function"?b[I]:_&&B?d(l,i):S&&P[I]==l?function(F){var D=function(W,X,K){if(this instanceof F){switch(arguments.length){case 0:return new F;case 1:return new F(W);case 2:return new F(W,X)}return new F(W,X,K)}return F.apply(this,arguments)};return D[p]=F[p],D}(l):C&&typeof l=="function"?d(Function.call,l):l,C&&((E.virtual||(E.virtual={}))[I]=l,o&a.R&&z&&!z[I]&&s(z,I,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,O.exports=a},{"./_core":40,"./_ctx":41,"./_global":46,"./_hide":47}],45:[function(c,O,v){O.exports=function(i){try{return!!i()}catch(f){return!0}}},{}],46:[function(c,O,v){var i=O.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=i)},{}],47:[function(c,O,v){var i=c("./_object-dp"),f=c("./_property-desc");O.exports=c("./_descriptors")?function(d,s,p){return i.f(d,s,f(1,p))}:function(d,s,p){return d[s]=p,d}},{"./_descriptors":42,"./_object-dp":52,"./_property-desc":53}],48:[function(c,O,v){O.exports=c("./_global").document&&document.documentElement},{"./_global":46}],49:[function(c,O,v){O.exports=!c("./_descriptors")&&!c("./_fails")(function(){return Object.defineProperty(c("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":42,"./_dom-create":43,"./_fails":45}],50:[function(c,O,v){O.exports=function(i,f,d){var s=d===void 0;switch(f.length){case 0:return s?i():i.call(d);case 1:return s?i(f[0]):i.call(d,f[0]);case 2:return s?i(f[0],f[1]):i.call(d,f[0],f[1]);case 3:return s?i(f[0],f[1],f[2]):i.call(d,f[0],f[1],f[2]);case 4:return s?i(f[0],f[1],f[2],f[3]):i.call(d,f[0],f[1],f[2],f[3])}return i.apply(d,f)}},{}],51:[function(c,O,v){O.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},{}],52:[function(c,O,v){var i=c("./_an-object"),f=c("./_ie8-dom-define"),d=c("./_to-primitive"),s=Object.defineProperty;v.f=c("./_descriptors")?Object.defineProperty:function(p,a,o){if(i(p),a=d(a,!0),i(o),f)try{return s(p,a,o)}catch(g){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(p[a]=o.value),p}},{"./_an-object":38,"./_descriptors":42,"./_ie8-dom-define":49,"./_to-primitive":55}],53:[function(c,O,v){O.exports=function(i,f){return{enumerable:!(1&i),configurable:!(2&i),writable:!(4&i),value:f}}},{}],54:[function(c,O,v){var i,f,d,s=c("./_ctx"),p=c("./_invoke"),a=c("./_html"),o=c("./_dom-create"),g=c("./_global"),b=g.process,I=g.setImmediate,B=g.clearImmediate,l=g.MessageChannel,t=0,u={},w="onreadystatechange",C=function(){var S=+this;if(u.hasOwnProperty(S)){var E=u[S];delete u[S],E()}},_=function(S){C.call(S.data)};I&&B||(I=function(S){for(var E=[],z=1;arguments.length>z;)E.push(arguments[z++]);return u[++t]=function(){p(typeof S=="function"?S:Function(S),E)},i(t),t},B=function(S){delete u[S]},c("./_cof")(b)=="process"?i=function(S){b.nextTick(s(C,S,1))}:l?(f=new l,d=f.port2,f.port1.onmessage=_,i=s(d.postMessage,d,1)):g.addEventListener&&typeof postMessage=="function"&&!g.importScripts?(i=function(S){g.postMessage(S+"","*")},g.addEventListener("message",_,!1)):i=w in o("script")?function(S){a.appendChild(o("script"))[w]=function(){a.removeChild(this),C.call(S)}}:function(S){setTimeout(s(C,S,1),0)}),O.exports={set:I,clear:B}},{"./_cof":39,"./_ctx":41,"./_dom-create":43,"./_global":46,"./_html":48,"./_invoke":50}],55:[function(c,O,v){var i=c("./_is-object");O.exports=function(f,d){if(!i(f))return f;var s,p;if(d&&typeof(s=f.toString)=="function"&&!i(p=s.call(f))||typeof(s=f.valueOf)=="function"&&!i(p=s.call(f))||!d&&typeof(s=f.toString)=="function"&&!i(p=s.call(f)))return p;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":51}],56:[function(c,O,v){var i=c("./_export"),f=c("./_task");i(i.G+i.B,{setImmediate:f.set,clearImmediate:f.clear})},{"./_export":44,"./_task":54}],57:[function(c,O,v){(function(i){"use strict";function f(){I=!0;for(var l,t,u=B.length;u;){for(t=B,B=[],l=-1;++l<u;)t[l]();u=B.length}I=!1}function d(l){B.push(l)!==1||I||s()}var s,p=i.MutationObserver||i.WebKitMutationObserver;if(p){var a=0,o=new p(f),g=i.document.createTextNode("");o.observe(g,{characterData:!0}),s=function(){g.data=a=++a%2}}else if(i.setImmediate||typeof i.MessageChannel=="undefined")s="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var l=i.document.createElement("script");l.onreadystatechange=function(){f(),l.onreadystatechange=null,l.parentNode.removeChild(l),l=null},i.document.documentElement.appendChild(l)}:function(){setTimeout(f,0)};else{var b=new i.MessageChannel;b.port1.onmessage=f,s=function(){b.port2.postMessage(0)}}var I,B=[];O.exports=d}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],58:[function(c,O,v){"use strict";function i(){}function f(_){if(typeof _!="function")throw new TypeError("resolver must be a function");this.state=C,this.queue=[],this.outcome=void 0,_!==i&&a(this,_)}function d(_,S,E){this.promise=_,typeof S=="function"&&(this.onFulfilled=S,this.callFulfilled=this.otherCallFulfilled),typeof E=="function"&&(this.onRejected=E,this.callRejected=this.otherCallRejected)}function s(_,S,E){l(function(){var z;try{z=S(E)}catch(P){return t.reject(_,P)}z===_?t.reject(_,new TypeError("Cannot resolve promise with itself")):t.resolve(_,z)})}function p(_){var S=_&&_.then;if(_&&(typeof _=="object"||typeof _=="function")&&typeof S=="function")return function(){S.apply(_,arguments)}}function a(_,S){function E(W){F||(F=!0,t.reject(_,W))}function z(W){F||(F=!0,t.resolve(_,W))}function P(){S(z,E)}var F=!1,D=o(P);D.status==="error"&&E(D.value)}function o(_,S){var E={};try{E.value=_(S),E.status="success"}catch(z){E.status="error",E.value=z}return E}function g(_){return _ instanceof this?_:t.resolve(new this(i),_)}function b(_){var S=new this(i);return t.reject(S,_)}function I(_){function S(K,Q){function V(H){F[Q]=H,++D!==z||P||(P=!0,t.resolve(X,F))}E.resolve(K).then(V,function(H){P||(P=!0,t.reject(X,H))})}var E=this;if(Object.prototype.toString.call(_)!=="[object Array]")return this.reject(new TypeError("must be an array"));var z=_.length,P=!1;if(!z)return this.resolve([]);for(var F=new Array(z),D=0,W=-1,X=new this(i);++W<z;)S(_[W],W);return X}function B(_){function S(W){E.resolve(W).then(function(X){P||(P=!0,t.resolve(D,X))},function(X){P||(P=!0,t.reject(D,X))})}var E=this;if(Object.prototype.toString.call(_)!=="[object Array]")return this.reject(new TypeError("must be an array"));var z=_.length,P=!1;if(!z)return this.resolve([]);for(var F=-1,D=new this(i);++F<z;)S(_[F]);return D}var l=c("immediate"),t={},u=["REJECTED"],w=["FULFILLED"],C=["PENDING"];O.exports=f,f.prototype.catch=function(_){return this.then(null,_)},f.prototype.then=function(_,S){if(typeof _!="function"&&this.state===w||typeof S!="function"&&this.state===u)return this;var E=new this.constructor(i);if(this.state!==C){var z=this.state===w?_:S;s(E,z,this.outcome)}else this.queue.push(new d(E,_,S));return E},d.prototype.callFulfilled=function(_){t.resolve(this.promise,_)},d.prototype.otherCallFulfilled=function(_){s(this.promise,this.onFulfilled,_)},d.prototype.callRejected=function(_){t.reject(this.promise,_)},d.prototype.otherCallRejected=function(_){s(this.promise,this.onRejected,_)},t.resolve=function(_,S){var E=o(p,S);if(E.status==="error")return t.reject(_,E.value);var z=E.value;if(z)a(_,z);else{_.state=w,_.outcome=S;for(var P=-1,F=_.queue.length;++P<F;)_.queue[P].callFulfilled(S)}return _},t.reject=function(_,S){_.state=u,_.outcome=S;for(var E=-1,z=_.queue.length;++E<z;)_.queue[E].callRejected(S);return _},f.resolve=g,f.reject=b,f.all=I,f.race=B},{immediate:57}],59:[function(c,O,v){"use strict";var i=c("./lib/utils/common").assign,f=c("./lib/deflate"),d=c("./lib/inflate"),s=c("./lib/zlib/constants"),p={};i(p,f,d,s),O.exports=p},{"./lib/deflate":60,"./lib/inflate":61,"./lib/utils/common":62,"./lib/zlib/constants":65}],60:[function(c,O,v){"use strict";function i(E){if(!(this instanceof i))return new i(E);this.options=a.assign({level:C,method:S,chunkSize:16384,windowBits:15,memLevel:8,strategy:_,to:""},E||{});var z=this.options;z.raw&&z.windowBits>0?z.windowBits=-z.windowBits:z.gzip&&z.windowBits>0&&z.windowBits<16&&(z.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new b,this.strm.avail_out=0;var P=p.deflateInit2(this.strm,z.level,z.method,z.windowBits,z.memLevel,z.strategy);if(P!==t)throw new Error(g[P]);if(z.header&&p.deflateSetHeader(this.strm,z.header),z.dictionary){var F;if(F=typeof z.dictionary=="string"?o.string2buf(z.dictionary):I.call(z.dictionary)==="[object ArrayBuffer]"?new Uint8Array(z.dictionary):z.dictionary,P=p.deflateSetDictionary(this.strm,F),P!==t)throw new Error(g[P]);this._dict_set=!0}}function f(E,z){var P=new i(z);if(P.push(E,!0),P.err)throw P.msg||g[P.err];return P.result}function d(E,z){return z=z||{},z.raw=!0,f(E,z)}function s(E,z){return z=z||{},z.gzip=!0,f(E,z)}var p=c("./zlib/deflate"),a=c("./utils/common"),o=c("./utils/strings"),g=c("./zlib/messages"),b=c("./zlib/zstream"),I=Object.prototype.toString,B=0,l=4,t=0,u=1,w=2,C=-1,_=0,S=8;i.prototype.push=function(E,z){var P,F,D=this.strm,W=this.options.chunkSize;if(this.ended)return!1;F=z===~~z?z:z===!0?l:B,typeof E=="string"?D.input=o.string2buf(E):I.call(E)==="[object ArrayBuffer]"?D.input=new Uint8Array(E):D.input=E,D.next_in=0,D.avail_in=D.input.length;do{if(D.avail_out===0&&(D.output=new a.Buf8(W),D.next_out=0,D.avail_out=W),P=p.deflate(D,F),P!==u&&P!==t)return this.onEnd(P),this.ended=!0,!1;D.avail_out!==0&&(D.avail_in!==0||F!==l&&F!==w)||(this.options.to==="string"?this.onData(o.buf2binstring(a.shrinkBuf(D.output,D.next_out))):this.onData(a.shrinkBuf(D.output,D.next_out)))}while((D.avail_in>0||D.avail_out===0)&&P!==u);return F===l?(P=p.deflateEnd(this.strm),this.onEnd(P),this.ended=!0,P===t):F!==w||(this.onEnd(t),D.avail_out=0,!0)},i.prototype.onData=function(E){this.chunks.push(E)},i.prototype.onEnd=function(E){E===t&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=E,this.msg=this.strm.msg},v.Deflate=i,v.deflate=f,v.deflateRaw=d,v.gzip=s},{"./utils/common":62,"./utils/strings":63,"./zlib/deflate":67,"./zlib/messages":72,"./zlib/zstream":74}],61:[function(c,O,v){"use strict";function i(l){if(!(this instanceof i))return new i(l);this.options=p.assign({chunkSize:16384,windowBits:0,to:""},l||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||l&&l.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits)==0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new b,this.strm.avail_out=0;var u=s.inflateInit2(this.strm,t.windowBits);if(u!==o.Z_OK)throw new Error(g[u]);this.header=new I,s.inflateGetHeader(this.strm,this.header)}function f(l,t){var u=new i(t);if(u.push(l,!0),u.err)throw u.msg||g[u.err];return u.result}function d(l,t){return t=t||{},t.raw=!0,f(l,t)}var s=c("./zlib/inflate"),p=c("./utils/common"),a=c("./utils/strings"),o=c("./zlib/constants"),g=c("./zlib/messages"),b=c("./zlib/zstream"),I=c("./zlib/gzheader"),B=Object.prototype.toString;i.prototype.push=function(l,t){var u,w,C,_,S,E,z=this.strm,P=this.options.chunkSize,F=this.options.dictionary,D=!1;if(this.ended)return!1;w=t===~~t?t:t===!0?o.Z_FINISH:o.Z_NO_FLUSH,typeof l=="string"?z.input=a.binstring2buf(l):B.call(l)==="[object ArrayBuffer]"?z.input=new Uint8Array(l):z.input=l,z.next_in=0,z.avail_in=z.input.length;do{if(z.avail_out===0&&(z.output=new p.Buf8(P),z.next_out=0,z.avail_out=P),u=s.inflate(z,o.Z_NO_FLUSH),u===o.Z_NEED_DICT&&F&&(E=typeof F=="string"?a.string2buf(F):B.call(F)==="[object ArrayBuffer]"?new Uint8Array(F):F,u=s.inflateSetDictionary(this.strm,E)),u===o.Z_BUF_ERROR&&D===!0&&(u=o.Z_OK,D=!1),u!==o.Z_STREAM_END&&u!==o.Z_OK)return this.onEnd(u),this.ended=!0,!1;z.next_out&&(z.avail_out!==0&&u!==o.Z_STREAM_END&&(z.avail_in!==0||w!==o.Z_FINISH&&w!==o.Z_SYNC_FLUSH)||(this.options.to==="string"?(C=a.utf8border(z.output,z.next_out),_=z.next_out-C,S=a.buf2string(z.output,C),z.next_out=_,z.avail_out=P-_,_&&p.arraySet(z.output,z.output,C,_,0),this.onData(S)):this.onData(p.shrinkBuf(z.output,z.next_out)))),z.avail_in===0&&z.avail_out===0&&(D=!0)}while((z.avail_in>0||z.avail_out===0)&&u!==o.Z_STREAM_END);return u===o.Z_STREAM_END&&(w=o.Z_FINISH),w===o.Z_FINISH?(u=s.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,u===o.Z_OK):w!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),z.avail_out=0,!0)},i.prototype.onData=function(l){this.chunks.push(l)},i.prototype.onEnd=function(l){l===o.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=p.flattenChunks(this.chunks)),this.chunks=[],this.err=l,this.msg=this.strm.msg},v.Inflate=i,v.inflate=f,v.inflateRaw=d,v.ungzip=f},{"./utils/common":62,"./utils/strings":63,"./zlib/constants":65,"./zlib/gzheader":68,"./zlib/inflate":70,"./zlib/messages":72,"./zlib/zstream":74}],62:[function(c,O,v){"use strict";var i=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";v.assign=function(s){for(var p=Array.prototype.slice.call(arguments,1);p.length;){var a=p.shift();if(a){if(typeof a!="object")throw new TypeError(a+"must be non-object");for(var o in a)a.hasOwnProperty(o)&&(s[o]=a[o])}}return s},v.shrinkBuf=function(s,p){return s.length===p?s:s.subarray?s.subarray(0,p):(s.length=p,s)};var f={arraySet:function(s,p,a,o,g){if(p.subarray&&s.subarray)return void s.set(p.subarray(a,a+o),g);for(var b=0;b<o;b++)s[g+b]=p[a+b]},flattenChunks:function(s){var p,a,o,g,b,I;for(o=0,p=0,a=s.length;p<a;p++)o+=s[p].length;for(I=new Uint8Array(o),g=0,p=0,a=s.length;p<a;p++)b=s[p],I.set(b,g),g+=b.length;return I}},d={arraySet:function(s,p,a,o,g){for(var b=0;b<o;b++)s[g+b]=p[a+b]},flattenChunks:function(s){return[].concat.apply([],s)}};v.setTyped=function(s){s?(v.Buf8=Uint8Array,v.Buf16=Uint16Array,v.Buf32=Int32Array,v.assign(v,f)):(v.Buf8=Array,v.Buf16=Array,v.Buf32=Array,v.assign(v,d))},v.setTyped(i)},{}],63:[function(c,O,v){"use strict";function i(o,g){if(g<65537&&(o.subarray&&s||!o.subarray&&d))return String.fromCharCode.apply(null,f.shrinkBuf(o,g));for(var b="",I=0;I<g;I++)b+=String.fromCharCode(o[I]);return b}var f=c("./common"),d=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(o){d=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(o){s=!1}for(var p=new f.Buf8(256),a=0;a<256;a++)p[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;p[254]=p[254]=1,v.string2buf=function(o){var g,b,I,B,l,t=o.length,u=0;for(B=0;B<t;B++)b=o.charCodeAt(B),(64512&b)==55296&&B+1<t&&(I=o.charCodeAt(B+1),(64512&I)==56320&&(b=65536+(b-55296<<10)+(I-56320),B++)),u+=b<128?1:b<2048?2:b<65536?3:4;for(g=new f.Buf8(u),l=0,B=0;l<u;B++)b=o.charCodeAt(B),(64512&b)==55296&&B+1<t&&(I=o.charCodeAt(B+1),(64512&I)==56320&&(b=65536+(b-55296<<10)+(I-56320),B++)),b<128?g[l++]=b:b<2048?(g[l++]=192|b>>>6,g[l++]=128|63&b):b<65536?(g[l++]=224|b>>>12,g[l++]=128|b>>>6&63,g[l++]=128|63&b):(g[l++]=240|b>>>18,g[l++]=128|b>>>12&63,g[l++]=128|b>>>6&63,g[l++]=128|63&b);return g},v.buf2binstring=function(o){return i(o,o.length)},v.binstring2buf=function(o){for(var g=new f.Buf8(o.length),b=0,I=g.length;b<I;b++)g[b]=o.charCodeAt(b);return g},v.buf2string=function(o,g){var b,I,B,l,t=g||o.length,u=new Array(2*t);for(I=0,b=0;b<t;)if(B=o[b++],B<128)u[I++]=B;else if(l=p[B],l>4)u[I++]=65533,b+=l-1;else{for(B&=l===2?31:l===3?15:7;l>1&&b<t;)B=B<<6|63&o[b++],l--;l>1?u[I++]=65533:B<65536?u[I++]=B:(B-=65536,u[I++]=55296|B>>10&1023,u[I++]=56320|1023&B)}return i(u,I)},v.utf8border=function(o,g){var b;for(g=g||o.length,g>o.length&&(g=o.length),b=g-1;b>=0&&(192&o[b])==128;)b--;return b<0||b===0?g:b+p[o[b]]>g?b:g}},{"./common":62}],64:[function(c,O,v){"use strict";function i(f,d,s,p){for(var a=65535&f|0,o=f>>>16&65535|0,g=0;s!==0;){g=s>2e3?2e3:s,s-=g;do a=a+d[p++]|0,o=o+a|0;while(--g);a%=65521,o%=65521}return a|o<<16|0}O.exports=i},{}],65:[function(c,O,v){"use strict";O.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}},{}],66:[function(c,O,v){"use strict";function i(){for(var s,p=[],a=0;a<256;a++){s=a;for(var o=0;o<8;o++)s=1&s?3988292384^s>>>1:s>>>1;p[a]=s}return p}function f(s,p,a,o){var g=d,b=o+a;s^=-1;for(var I=o;I<b;I++)s=s>>>8^g[255&(s^p[I])];return s^-1}var d=i();O.exports=f},{}],67:[function(c,O,v){"use strict";function i(e,R){return e.msg=ue[R],R}function f(e){return(e<<1)-(e>4?9:0)}function d(e){for(var R=e.length;--R>=0;)e[R]=0}function s(e){var R=e.state,k=R.pending;k>e.avail_out&&(k=e.avail_out),k!==0&&(V.arraySet(e.output,R.pending_buf,R.pending_out,k,e.next_out),e.next_out+=k,R.pending_out+=k,e.total_out+=k,e.avail_out-=k,R.pending-=k,R.pending===0&&(R.pending_out=0))}function p(e,R){H._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,R),e.block_start=e.strstart,s(e.strm)}function a(e,R){e.pending_buf[e.pending++]=R}function o(e,R){e.pending_buf[e.pending++]=R>>>8&255,e.pending_buf[e.pending++]=255&R}function g(e,R,k,h){var y=e.avail_in;return y>h&&(y=h),y===0?0:(e.avail_in-=y,V.arraySet(R,e.input,e.next_in,y,k),e.state.wrap===1?e.adler=q(e.adler,R,y,k):e.state.wrap===2&&(e.adler=J(e.adler,R,y,k)),e.next_in+=y,e.total_in+=y,y)}function b(e,R){var k,h,y=e.max_chain_length,x=e.strstart,M=e.prev_length,L=e.nice_match,Z=e.strstart>e.w_size-_e?e.strstart-(e.w_size-_e):0,ee=e.window,Ie=e.w_mask,re=e.prev,de=e.strstart+xe,we=ee[x+M-1],ge=ee[x+M];e.prev_length>=e.good_match&&(y>>=2),L>e.lookahead&&(L=e.lookahead);do if(k=R,ee[k+M]===ge&&ee[k+M-1]===we&&ee[k]===ee[x]&&ee[++k]===ee[x+1]){x+=2,k++;do;while(ee[++x]===ee[++k]&&ee[++x]===ee[++k]&&ee[++x]===ee[++k]&&ee[++x]===ee[++k]&&ee[++x]===ee[++k]&&ee[++x]===ee[++k]&&ee[++x]===ee[++k]&&ee[++x]===ee[++k]&&x<de);if(h=xe-(de-x),x=de-xe,h>M){if(e.match_start=R,M=h,h>=L)break;we=ee[x+M-1],ge=ee[x+M]}}while((R=re[R&Ie])>Z&&--y!=0);return M<=e.lookahead?M:e.lookahead}function I(e){var R,k,h,y,x,M=e.w_size;do{if(y=e.window_size-e.lookahead-e.strstart,e.strstart>=M+(M-_e)){V.arraySet(e.window,e.window,M,M,0),e.match_start-=M,e.strstart-=M,e.block_start-=M,k=e.hash_size,R=k;do h=e.head[--R],e.head[R]=h>=M?h-M:0;while(--k);k=M,R=k;do h=e.prev[--R],e.prev[R]=h>=M?h-M:0;while(--k);y+=M}if(e.strm.avail_in===0)break;if(k=g(e.strm,e.window,e.strstart+e.lookahead,y),e.lookahead+=k,e.lookahead+e.insert>=Y)for(x=e.strstart-e.insert,e.ins_h=e.window[x],e.ins_h=(e.ins_h<<e.hash_shift^e.window[x+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[x+Y-1])&e.hash_mask,e.prev[x&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=x,x++,e.insert--,!(e.lookahead+e.insert<Y)););}while(e.lookahead<_e&&e.strm.avail_in!==0)}function B(e,R){var k=65535;for(k>e.pending_buf_size-5&&(k=e.pending_buf_size-5);;){if(e.lookahead<=1){if(I(e),e.lookahead===0&&R===ie)return m;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var h=e.block_start+k;if((e.strstart===0||e.strstart>=h)&&(e.lookahead=e.strstart-h,e.strstart=h,p(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-_e&&(p(e,!1),e.strm.avail_out===0))return m}return e.insert=0,R===te?(p(e,!0),e.strm.avail_out===0?r:N):(e.strstart>e.block_start&&(p(e,!1),e.strm.avail_out===0),m)}function l(e,R){for(var k,h;;){if(e.lookahead<_e){if(I(e),e.lookahead<_e&&R===ie)return m;if(e.lookahead===0)break}if(k=0,e.lookahead>=Y&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Y-1])&e.hash_mask,k=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),k!==0&&e.strstart-k<=e.w_size-_e&&(e.match_length=b(e,k)),e.match_length>=Y)if(h=H._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){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Y-1])&e.hash_mask,k=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!=0);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 h=H._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(h&&(p(e,!1),e.strm.avail_out===0))return m}return e.insert=e.strstart<Y-1?e.strstart:Y-1,R===te?(p(e,!0),e.strm.avail_out===0?r:N):e.last_lit&&(p(e,!1),e.strm.avail_out===0)?m:A}function t(e,R){for(var k,h,y;;){if(e.lookahead<_e){if(I(e),e.lookahead<_e&&R===ie)return m;if(e.lookahead===0)break}if(k=0,e.lookahead>=Y&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Y-1])&e.hash_mask,k=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,k!==0&&e.prev_length<e.max_lazy_match&&e.strstart-k<=e.w_size-_e&&(e.match_length=b(e,k),e.match_length<=5&&(e.strategy===ze||e.match_length===Y&&e.strstart-e.match_start>4096)&&(e.match_length=Y-1)),e.prev_length>=Y&&e.match_length<=e.prev_length){y=e.strstart+e.lookahead-Y,h=H._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-Y),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=y&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+Y-1])&e.hash_mask,k=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!=0);if(e.match_available=0,e.match_length=Y-1,e.strstart++,h&&(p(e,!1),e.strm.avail_out===0))return m}else if(e.match_available){if(h=H._tr_tally(e,0,e.window[e.strstart-1]),h&&p(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return m}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(h=H._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<Y-1?e.strstart:Y-1,R===te?(p(e,!0),e.strm.avail_out===0?r:N):e.last_lit&&(p(e,!1),e.strm.avail_out===0)?m:A}function u(e,R){for(var k,h,y,x,M=e.window;;){if(e.lookahead<=xe){if(I(e),e.lookahead<=xe&&R===ie)return m;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=Y&&e.strstart>0&&(y=e.strstart-1,h=M[y],h===M[++y]&&h===M[++y]&&h===M[++y])){x=e.strstart+xe;do;while(h===M[++y]&&h===M[++y]&&h===M[++y]&&h===M[++y]&&h===M[++y]&&h===M[++y]&&h===M[++y]&&h===M[++y]&&y<x);e.match_length=xe-(x-y),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=Y?(k=H._tr_tally(e,1,e.match_length-Y),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(k=H._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),k&&(p(e,!1),e.strm.avail_out===0))return m}return e.insert=0,R===te?(p(e,!0),e.strm.avail_out===0?r:N):e.last_lit&&(p(e,!1),e.strm.avail_out===0)?m:A}function w(e,R){for(var k;;){if(e.lookahead===0&&(I(e),e.lookahead===0)){if(R===ie)return m;break}if(e.match_length=0,k=H._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,k&&(p(e,!1),e.strm.avail_out===0))return m}return e.insert=0,R===te?(p(e,!0),e.strm.avail_out===0?r:N):e.last_lit&&(p(e,!1),e.strm.avail_out===0)?m:A}function C(e,R,k,h,y){this.good_length=e,this.max_lazy=R,this.nice_length=k,this.max_chain=h,this.func=y}function _(e){e.window_size=2*e.w_size,d(e.head),e.max_lazy_match=Q[e.level].max_lazy,e.good_match=Q[e.level].good_length,e.nice_match=Q[e.level].nice_length,e.max_chain_length=Q[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}function S(){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=Oe,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 V.Buf16(2*Be),this.dyn_dtree=new V.Buf16(2*(2*Ge+1)),this.bl_tree=new V.Buf16(2*(2*Se+1)),d(this.dyn_ltree),d(this.dyn_dtree),d(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new V.Buf16(Re+1),this.heap=new V.Buf16(2*Ne+1),d(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new V.Buf16(2*Ne+1),d(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 E(e){var R;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=Fe,R=e.state,R.pending=0,R.pending_out=0,R.wrap<0&&(R.wrap=-R.wrap),R.status=R.wrap?Ae:U,e.adler=R.wrap===2?0:1,R.last_flush=ie,H._tr_init(R),se):i(e,$)}function z(e){var R=E(e);return R===se&&_(e.state),R}function P(e,R){return e&&e.state?e.state.wrap!==2?$:(e.state.gzhead=R,se):$}function F(e,R,k,h,y,x){if(!e)return $;var M=1;if(R===ye&&(R=6),h<0?(M=0,h=-h):h>15&&(M=2,h-=16),y<1||y>We||k!==Oe||h<8||h>15||R<0||R>9||x<0||x>De)return i(e,$);h===8&&(h=9);var L=new S;return e.state=L,L.strm=e,L.wrap=M,L.gzhead=null,L.w_bits=h,L.w_size=1<<L.w_bits,L.w_mask=L.w_size-1,L.hash_bits=y+7,L.hash_size=1<<L.hash_bits,L.hash_mask=L.hash_size-1,L.hash_shift=~~((L.hash_bits+Y-1)/Y),L.window=new V.Buf8(2*L.w_size),L.head=new V.Buf16(L.hash_size),L.prev=new V.Buf16(L.w_size),L.lit_bufsize=1<<y+6,L.pending_buf_size=4*L.lit_bufsize,L.pending_buf=new V.Buf8(L.pending_buf_size),L.d_buf=1*L.lit_bufsize,L.l_buf=3*L.lit_bufsize,L.level=R,L.strategy=x,L.method=k,z(e)}function D(e,R){return F(e,R,Oe,Me,je,He)}function W(e,R){var k,h,y,x;if(!e||!e.state||R>fe||R<0)return e?i(e,$):$;if(h=e.state,!e.output||!e.input&&e.avail_in!==0||h.status===j&&R!==te)return i(e,e.avail_out===0?ae:$);if(h.strm=e,k=h.last_flush,h.last_flush=R,h.status===Ae)if(h.wrap===2)e.adler=0,a(h,31),a(h,139),a(h,8),h.gzhead?(a(h,(h.gzhead.text?1:0)+(h.gzhead.hcrc?2:0)+(h.gzhead.extra?4:0)+(h.gzhead.name?8:0)+(h.gzhead.comment?16:0)),a(h,255&h.gzhead.time),a(h,h.gzhead.time>>8&255),a(h,h.gzhead.time>>16&255),a(h,h.gzhead.time>>24&255),a(h,h.level===9?2:h.strategy>=be||h.level<2?4:0),a(h,255&h.gzhead.os),h.gzhead.extra&&h.gzhead.extra.length&&(a(h,255&h.gzhead.extra.length),a(h,h.gzhead.extra.length>>8&255)),h.gzhead.hcrc&&(e.adler=J(e.adler,h.pending_buf,h.pending,0)),h.gzindex=0,h.status=Ze):(a(h,0),a(h,0),a(h,0),a(h,0),a(h,0),a(h,h.level===9?2:h.strategy>=be||h.level<2?4:0),a(h,G),h.status=U);else{var M=Oe+(h.w_bits-8<<4)<<8,L=-1;L=h.strategy>=be||h.level<2?0:h.level<6?1:h.level===6?2:3,M|=L<<6,h.strstart!==0&&(M|=ne),M+=31-M%31,h.status=U,o(h,M),h.strstart!==0&&(o(h,e.adler>>>16),o(h,65535&e.adler)),e.adler=1}if(h.status===Ze)if(h.gzhead.extra){for(y=h.pending;h.gzindex<(65535&h.gzhead.extra.length)&&(h.pending!==h.pending_buf_size||(h.gzhead.hcrc&&h.pending>y&&(e.adler=J(e.adler,h.pending_buf,h.pending-y,y)),s(e),y=h.pending,h.pending!==h.pending_buf_size));)a(h,255&h.gzhead.extra[h.gzindex]),h.gzindex++;h.gzhead.hcrc&&h.pending>y&&(e.adler=J(e.adler,h.pending_buf,h.pending-y,y)),h.gzindex===h.gzhead.extra.length&&(h.gzindex=0,h.status=Pe)}else h.status=Pe;if(h.status===Pe)if(h.gzhead.name){y=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>y&&(e.adler=J(e.adler,h.pending_buf,h.pending-y,y)),s(e),y=h.pending,h.pending===h.pending_buf_size)){x=1;break}x=h.gzindex<h.gzhead.name.length?255&h.gzhead.name.charCodeAt(h.gzindex++):0,a(h,x)}while(x!==0);h.gzhead.hcrc&&h.pending>y&&(e.adler=J(e.adler,h.pending_buf,h.pending-y,y)),x===0&&(h.gzindex=0,h.status=n)}else h.status=n;if(h.status===n)if(h.gzhead.comment){y=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>y&&(e.adler=J(e.adler,h.pending_buf,h.pending-y,y)),s(e),y=h.pending,h.pending===h.pending_buf_size)){x=1;break}x=h.gzindex<h.gzhead.comment.length?255&h.gzhead.comment.charCodeAt(h.gzindex++):0,a(h,x)}while(x!==0);h.gzhead.hcrc&&h.pending>y&&(e.adler=J(e.adler,h.pending_buf,h.pending-y,y)),x===0&&(h.status=T)}else h.status=T;if(h.status===T&&(h.gzhead.hcrc?(h.pending+2>h.pending_buf_size&&s(e),h.pending+2<=h.pending_buf_size&&(a(h,255&e.adler),a(h,e.adler>>8&255),e.adler=0,h.status=U)):h.status=U),h.pending!==0){if(s(e),e.avail_out===0)return h.last_flush=-1,se}else if(e.avail_in===0&&f(R)<=f(k)&&R!==te)return i(e,ae);if(h.status===j&&e.avail_in!==0)return i(e,ae);if(e.avail_in!==0||h.lookahead!==0||R!==ie&&h.status!==j){var Z=h.strategy===be?w(h,R):h.strategy===me?u(h,R):Q[h.level].func(h,R);if(Z!==r&&Z!==N||(h.status=j),Z===m||Z===r)return e.avail_out===0&&(h.last_flush=-1),se;if(Z===A&&(R===he?H._tr_align(h):R!==fe&&(H._tr_stored_block(h,0,0,!1),R===oe&&(d(h.head),h.lookahead===0&&(h.strstart=0,h.block_start=0,h.insert=0))),s(e),e.avail_out===0))return h.last_flush=-1,se}return R!==te?se:h.wrap<=0?le:(h.wrap===2?(a(h,255&e.adler),a(h,e.adler>>8&255),a(h,e.adler>>16&255),a(h,e.adler>>24&255),a(h,255&e.total_in),a(h,e.total_in>>8&255),a(h,e.total_in>>16&255),a(h,e.total_in>>24&255)):(o(h,e.adler>>>16),o(h,65535&e.adler)),s(e),h.wrap>0&&(h.wrap=-h.wrap),h.pending!==0?se:le)}function X(e){var R;return e&&e.state?(R=e.state.status,R!==Ae&&R!==Ze&&R!==Pe&&R!==n&&R!==T&&R!==U&&R!==j?i(e,$):(e.state=null,R===U?i(e,ke):se)):$}function K(e,R){var k,h,y,x,M,L,Z,ee,Ie=R.length;if(!e||!e.state||(k=e.state,x=k.wrap,x===2||x===1&&k.status!==Ae||k.lookahead))return $;for(x===1&&(e.adler=q(e.adler,R,Ie,0)),k.wrap=0,Ie>=k.w_size&&(x===0&&(d(k.head),k.strstart=0,k.block_start=0,k.insert=0),ee=new V.Buf8(k.w_size),V.arraySet(ee,R,Ie-k.w_size,k.w_size,0),R=ee,Ie=k.w_size),M=e.avail_in,L=e.next_in,Z=e.input,e.avail_in=Ie,e.next_in=0,e.input=R,I(k);k.lookahead>=Y;){h=k.strstart,y=k.lookahead-(Y-1);do k.ins_h=(k.ins_h<<k.hash_shift^k.window[h+Y-1])&k.hash_mask,k.prev[h&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=h,h++;while(--y);k.strstart=h,k.lookahead=Y-1,I(k)}return k.strstart+=k.lookahead,k.block_start=k.strstart,k.insert=k.lookahead,k.lookahead=0,k.match_length=k.prev_length=Y-1,k.match_available=0,e.next_in=L,e.input=Z,e.avail_in=M,k.wrap=x,se}var Q,V=c("../utils/common"),H=c("./trees"),q=c("./adler32"),J=c("./crc32"),ue=c("./messages"),ie=0,he=1,oe=3,te=4,fe=5,se=0,le=1,$=-2,ke=-3,ae=-5,ye=-1,ze=1,be=2,me=3,De=4,He=0,Fe=2,Oe=8,We=9,Me=15,je=8,Ee=29,Le=256,Ne=Le+1+Ee,Ge=30,Se=19,Be=2*Ne+1,Re=15,Y=3,xe=258,_e=xe+Y+1,ne=32,Ae=42,Ze=69,Pe=73,n=91,T=103,U=113,j=666,m=1,A=2,r=3,N=4,G=3;Q=[new C(0,0,0,0,B),new C(4,4,8,4,l),new C(4,5,16,8,l),new C(4,6,32,32,l),new C(4,4,16,16,t),new C(8,16,32,32,t),new C(8,16,128,128,t),new C(8,32,128,256,t),new C(32,128,258,1024,t),new C(32,258,258,4096,t)],v.deflateInit=D,v.deflateInit2=F,v.deflateReset=z,v.deflateResetKeep=E,v.deflateSetHeader=P,v.deflate=W,v.deflateEnd=X,v.deflateSetDictionary=K,v.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":62,"./adler32":64,"./crc32":66,"./messages":72,"./trees":73}],68:[function(c,O,v){"use strict";function i(){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}O.exports=i},{}],69:[function(c,O,v){"use strict";var i=30,f=12;O.exports=function(d,s){var p,a,o,g,b,I,B,l,t,u,w,C,_,S,E,z,P,F,D,W,X,K,Q,V,H;p=d.state,a=d.next_in,V=d.input,o=a+(d.avail_in-5),g=d.next_out,H=d.output,b=g-(s-d.avail_out),I=g+(d.avail_out-257),B=p.dmax,l=p.wsize,t=p.whave,u=p.wnext,w=p.window,C=p.hold,_=p.bits,S=p.lencode,E=p.distcode,z=(1<<p.lenbits)-1,P=(1<<p.distbits)-1;e:do{_<15&&(C+=V[a++]<<_,_+=8,C+=V[a++]<<_,_+=8),F=S[C&z];t:for(;;){if(D=F>>>24,C>>>=D,_-=D,D=F>>>16&255,D===0)H[g++]=65535&F;else{if(!(16&D)){if((64&D)==0){F=S[(65535&F)+(C&(1<<D)-1)];continue t}if(32&D){p.mode=f;break e}d.msg="invalid literal/length code",p.mode=i;break e}W=65535&F,D&=15,D&&(_<D&&(C+=V[a++]<<_,_+=8),W+=C&(1<<D)-1,C>>>=D,_-=D),_<15&&(C+=V[a++]<<_,_+=8,C+=V[a++]<<_,_+=8),F=E[C&P];r:for(;;){if(D=F>>>24,C>>>=D,_-=D,D=F>>>16&255,!(16&D)){if((64&D)==0){F=E[(65535&F)+(C&(1<<D)-1)];continue r}d.msg="invalid distance code",p.mode=i;break e}if(X=65535&F,D&=15,_<D&&(C+=V[a++]<<_,_+=8,_<D&&(C+=V[a++]<<_,_+=8)),X+=C&(1<<D)-1,X>B){d.msg="invalid distance too far back",p.mode=i;break e}if(C>>>=D,_-=D,D=g-b,X>D){if(D=X-D,D>t&&p.sane){d.msg="invalid distance too far back",p.mode=i;break e}if(K=0,Q=w,u===0){if(K+=l-D,D<W){W-=D;do H[g++]=w[K++];while(--D);K=g-X,Q=H}}else if(u<D){if(K+=l+u-D,D-=u,D<W){W-=D;do H[g++]=w[K++];while(--D);if(K=0,u<W){D=u,W-=D;do H[g++]=w[K++];while(--D);K=g-X,Q=H}}}else if(K+=u-D,D<W){W-=D;do H[g++]=w[K++];while(--D);K=g-X,Q=H}for(;W>2;)H[g++]=Q[K++],H[g++]=Q[K++],H[g++]=Q[K++],W-=3;W&&(H[g++]=Q[K++],W>1&&(H[g++]=Q[K++]))}else{K=g-X;do H[g++]=H[K++],H[g++]=H[K++],H[g++]=H[K++],W-=3;while(W>2);W&&(H[g++]=H[K++],W>1&&(H[g++]=H[K++]))}break}}break}}while(a<o&&g<I);W=_>>3,a-=W,_-=W<<3,C&=(1<<_)-1,d.next_in=a,d.next_out=g,d.avail_in=a<o?5+(o-a):5-(a-o),d.avail_out=g<I?257+(I-g):257-(g-I),p.hold=C,p.bits=_}},{}],70:[function(c,O,v){"use strict";function i(m){return(m>>>24&255)+(m>>>8&65280)+((65280&m)<<8)+((255&m)<<24)}function f(){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 C.Buf16(320),this.work=new C.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(m){var A;return m&&m.state?(A=m.state,m.total_in=m.total_out=A.total=0,m.msg="",A.wrap&&(m.adler=1&A.wrap),A.mode=oe,A.last=0,A.havedict=0,A.dmax=32768,A.head=null,A.hold=0,A.bits=0,A.lencode=A.lendyn=new C.Buf32(Pe),A.distcode=A.distdyn=new C.Buf32(n),A.sane=1,A.back=-1,Q):q}function s(m){var A;return m&&m.state?(A=m.state,A.wsize=0,A.whave=0,A.wnext=0,d(m)):q}function p(m,A){var r,N;return m&&m.state?(N=m.state,A<0?(r=0,A=-A):(r=(A>>4)+1,A<48&&(A&=15)),A&&(A<8||A>15)?q:(N.window!==null&&N.wbits!==A&&(N.window=null),N.wrap=r,N.wbits=A,s(m))):q}function a(m,A){var r,N;return m?(N=new f,m.state=N,N.window=null,r=p(m,A),r!==Q&&(m.state=null),r):q}function o(m){return a(m,U)}function g(m){if(j){var A;for(u=new C.Buf32(512),w=new C.Buf32(32),A=0;A<144;)m.lens[A++]=8;for(;A<256;)m.lens[A++]=9;for(;A<280;)m.lens[A++]=7;for(;A<288;)m.lens[A++]=8;for(z(F,m.lens,0,288,u,0,m.work,{bits:9}),A=0;A<32;)m.lens[A++]=5;z(D,m.lens,0,32,w,0,m.work,{bits:5}),j=!1}m.lencode=u,m.lenbits=9,m.distcode=w,m.distbits=5}function b(m,A,r,N){var G,e=m.state;return e.window===null&&(e.wsize=1<<e.wbits,e.wnext=0,e.whave=0,e.window=new C.Buf8(e.wsize)),N>=e.wsize?(C.arraySet(e.window,A,r-e.wsize,e.wsize,0),e.wnext=0,e.whave=e.wsize):(G=e.wsize-e.wnext,G>N&&(G=N),C.arraySet(e.window,A,r-N,G,e.wnext),N-=G,N?(C.arraySet(e.window,A,r-N,N,0),e.wnext=N,e.whave=e.wsize):(e.wnext+=G,e.wnext===e.wsize&&(e.wnext=0),e.whave<e.wsize&&(e.whave+=G))),0}function I(m,A){var r,N,G,e,R,k,h,y,x,M,L,Z,ee,Ie,re,de,we,ge,Ke,qe,ce,Ce,Ue,Te,pe=0,ve=new C.Buf8(4),Ye=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!m||!m.state||!m.output||!m.input&&m.avail_in!==0)return q;r=m.state,r.mode===me&&(r.mode=De),R=m.next_out,G=m.output,h=m.avail_out,e=m.next_in,N=m.input,k=m.avail_in,y=r.hold,x=r.bits,M=k,L=h,Ce=Q;e:for(;;)switch(r.mode){case oe:if(r.wrap===0){r.mode=De;break}for(;x<16;){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}if(2&r.wrap&&y===35615){r.check=0,ve[0]=255&y,ve[1]=y>>>8&255,r.check=S(r.check,ve,2,0),y=0,x=0,r.mode=te;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&y)<<8)+(y>>8))%31){m.msg="incorrect header check",r.mode=ne;break}if((15&y)!==he){m.msg="unknown compression method",r.mode=ne;break}if(y>>>=4,x-=4,ce=(15&y)+8,r.wbits===0)r.wbits=ce;else if(ce>r.wbits){m.msg="invalid window size",r.mode=ne;break}r.dmax=1<<ce,m.adler=r.check=1,r.mode=512&y?ze:me,y=0,x=0;break;case te:for(;x<16;){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}if(r.flags=y,(255&r.flags)!==he){m.msg="unknown compression method",r.mode=ne;break}if(57344&r.flags){m.msg="unknown header flags set",r.mode=ne;break}r.head&&(r.head.text=y>>8&1),512&r.flags&&(ve[0]=255&y,ve[1]=y>>>8&255,r.check=S(r.check,ve,2,0)),y=0,x=0,r.mode=fe;case fe:for(;x<32;){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}r.head&&(r.head.time=y),512&r.flags&&(ve[0]=255&y,ve[1]=y>>>8&255,ve[2]=y>>>16&255,ve[3]=y>>>24&255,r.check=S(r.check,ve,4,0)),y=0,x=0,r.mode=se;case se:for(;x<16;){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}r.head&&(r.head.xflags=255&y,r.head.os=y>>8),512&r.flags&&(ve[0]=255&y,ve[1]=y>>>8&255,r.check=S(r.check,ve,2,0)),y=0,x=0,r.mode=le;case le:if(1024&r.flags){for(;x<16;){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}r.length=y,r.head&&(r.head.extra_len=y),512&r.flags&&(ve[0]=255&y,ve[1]=y>>>8&255,r.check=S(r.check,ve,2,0)),y=0,x=0}else r.head&&(r.head.extra=null);r.mode=$;case $:if(1024&r.flags&&(Z=r.length,Z>k&&(Z=k),Z&&(r.head&&(ce=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),C.arraySet(r.head.extra,N,e,Z,ce)),512&r.flags&&(r.check=S(r.check,N,Z,e)),k-=Z,e+=Z,r.length-=Z),r.length))break e;r.length=0,r.mode=ke;case ke:if(2048&r.flags){if(k===0)break e;Z=0;do ce=N[e+Z++],r.head&&ce&&r.length<65536&&(r.head.name+=String.fromCharCode(ce));while(ce&&Z<k);if(512&r.flags&&(r.check=S(r.check,N,Z,e)),k-=Z,e+=Z,ce)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=ae;case ae:if(4096&r.flags){if(k===0)break e;Z=0;do ce=N[e+Z++],r.head&&ce&&r.length<65536&&(r.head.comment+=String.fromCharCode(ce));while(ce&&Z<k);if(512&r.flags&&(r.check=S(r.check,N,Z,e)),k-=Z,e+=Z,ce)break e}else r.head&&(r.head.comment=null);r.mode=ye;case ye:if(512&r.flags){for(;x<16;){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}if(y!==(65535&r.check)){m.msg="header crc mismatch",r.mode=ne;break}y=0,x=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),m.adler=r.check=0,r.mode=me;break;case ze:for(;x<32;){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}m.adler=r.check=i(y),y=0,x=0,r.mode=be;case be:if(r.havedict===0)return m.next_out=R,m.avail_out=h,m.next_in=e,m.avail_in=k,r.hold=y,r.bits=x,H;m.adler=r.check=1,r.mode=me;case me:if(A===X||A===K)break e;case De:if(r.last){y>>>=7&x,x-=7&x,r.mode=Y;break}for(;x<3;){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}switch(r.last=1&y,y>>>=1,x-=1,3&y){case 0:r.mode=He;break;case 1:if(g(r),r.mode=Ee,A===K){y>>>=2,x-=2;break e}break;case 2:r.mode=We;break;case 3:m.msg="invalid block type",r.mode=ne}y>>>=2,x-=2;break;case He:for(y>>>=7&x,x-=7&x;x<32;){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}if((65535&y)!=(y>>>16^65535)){m.msg="invalid stored block lengths",r.mode=ne;break}if(r.length=65535&y,y=0,x=0,r.mode=Fe,A===K)break e;case Fe:r.mode=Oe;case Oe:if(Z=r.length){if(Z>k&&(Z=k),Z>h&&(Z=h),Z===0)break e;C.arraySet(G,N,e,Z,R),k-=Z,e+=Z,h-=Z,R+=Z,r.length-=Z;break}r.mode=me;break;case We:for(;x<14;){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}if(r.nlen=(31&y)+257,y>>>=5,x-=5,r.ndist=(31&y)+1,y>>>=5,x-=5,r.ncode=(15&y)+4,y>>>=4,x-=4,r.nlen>286||r.ndist>30){m.msg="too many length or distance symbols",r.mode=ne;break}r.have=0,r.mode=Me;case Me:for(;r.have<r.ncode;){for(;x<3;){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}r.lens[Ye[r.have++]]=7&y,y>>>=3,x-=3}for(;r.have<19;)r.lens[Ye[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,Ue={bits:r.lenbits},Ce=z(P,r.lens,0,19,r.lencode,0,r.work,Ue),r.lenbits=Ue.bits,Ce){m.msg="invalid code lengths set",r.mode=ne;break}r.have=0,r.mode=je;case je:for(;r.have<r.nlen+r.ndist;){for(;pe=r.lencode[y&(1<<r.lenbits)-1],re=pe>>>24,de=pe>>>16&255,we=65535&pe,!(re<=x);){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}if(we<16)y>>>=re,x-=re,r.lens[r.have++]=we;else{if(we===16){for(Te=re+2;x<Te;){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}if(y>>>=re,x-=re,r.have===0){m.msg="invalid bit length repeat",r.mode=ne;break}ce=r.lens[r.have-1],Z=3+(3&y),y>>>=2,x-=2}else if(we===17){for(Te=re+3;x<Te;){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}y>>>=re,x-=re,ce=0,Z=3+(7&y),y>>>=3,x-=3}else{for(Te=re+7;x<Te;){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}y>>>=re,x-=re,ce=0,Z=11+(127&y),y>>>=7,x-=7}if(r.have+Z>r.nlen+r.ndist){m.msg="invalid bit length repeat",r.mode=ne;break}for(;Z--;)r.lens[r.have++]=ce}}if(r.mode===ne)break;if(r.lens[256]===0){m.msg="invalid code -- missing end-of-block",r.mode=ne;break}if(r.lenbits=9,Ue={bits:r.lenbits},Ce=z(F,r.lens,0,r.nlen,r.lencode,0,r.work,Ue),r.lenbits=Ue.bits,Ce){m.msg="invalid literal/lengths set",r.mode=ne;break}if(r.distbits=6,r.distcode=r.distdyn,Ue={bits:r.distbits},Ce=z(D,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,Ue),r.distbits=Ue.bits,Ce){m.msg="invalid distances set",r.mode=ne;break}if(r.mode=Ee,A===K)break e;case Ee:r.mode=Le;case Le:if(k>=6&&h>=258){m.next_out=R,m.avail_out=h,m.next_in=e,m.avail_in=k,r.hold=y,r.bits=x,E(m,L),R=m.next_out,G=m.output,h=m.avail_out,e=m.next_in,N=m.input,k=m.avail_in,y=r.hold,x=r.bits,r.mode===me&&(r.back=-1);break}for(r.back=0;pe=r.lencode[y&(1<<r.lenbits)-1],re=pe>>>24,de=pe>>>16&255,we=65535&pe,!(re<=x);){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}if(de&&(240&de)==0){for(ge=re,Ke=de,qe=we;pe=r.lencode[qe+((y&(1<<ge+Ke)-1)>>ge)],re=pe>>>24,de=pe>>>16&255,we=65535&pe,!(ge+re<=x);){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}y>>>=ge,x-=ge,r.back+=ge}if(y>>>=re,x-=re,r.back+=re,r.length=we,de===0){r.mode=Re;break}if(32&de){r.back=-1,r.mode=me;break}if(64&de){m.msg="invalid literal/length code",r.mode=ne;break}r.extra=15&de,r.mode=Ne;case Ne:if(r.extra){for(Te=r.extra;x<Te;){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}r.length+=y&(1<<r.extra)-1,y>>>=r.extra,x-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=Ge;case Ge:for(;pe=r.distcode[y&(1<<r.distbits)-1],re=pe>>>24,de=pe>>>16&255,we=65535&pe,!(re<=x);){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}if((240&de)==0){for(ge=re,Ke=de,qe=we;pe=r.distcode[qe+((y&(1<<ge+Ke)-1)>>ge)],re=pe>>>24,de=pe>>>16&255,we=65535&pe,!(ge+re<=x);){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}y>>>=ge,x-=ge,r.back+=ge}if(y>>>=re,x-=re,r.back+=re,64&de){m.msg="invalid distance code",r.mode=ne;break}r.offset=we,r.extra=15&de,r.mode=Se;case Se:if(r.extra){for(Te=r.extra;x<Te;){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}r.offset+=y&(1<<r.extra)-1,y>>>=r.extra,x-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){m.msg="invalid distance too far back",r.mode=ne;break}r.mode=Be;case Be:if(h===0)break e;if(Z=L-h,r.offset>Z){if(Z=r.offset-Z,Z>r.whave&&r.sane){m.msg="invalid distance too far back",r.mode=ne;break}Z>r.wnext?(Z-=r.wnext,ee=r.wsize-Z):ee=r.wnext-Z,Z>r.length&&(Z=r.length),Ie=r.window}else Ie=G,ee=R-r.offset,Z=r.length;Z>h&&(Z=h),h-=Z,r.length-=Z;do G[R++]=Ie[ee++];while(--Z);r.length===0&&(r.mode=Le);break;case Re:if(h===0)break e;G[R++]=r.length,h--,r.mode=Le;break;case Y:if(r.wrap){for(;x<32;){if(k===0)break e;k--,y|=N[e++]<<x,x+=8}if(L-=h,m.total_out+=L,r.total+=L,L&&(m.adler=r.check=r.flags?S(r.check,G,L,R-L):_(r.check,G,L,R-L)),L=h,(r.flags?y:i(y))!==r.check){m.msg="incorrect data check",r.mode=ne;break}y=0,x=0}r.mode=xe;case xe:if(r.wrap&&r.flags){for(;x<32;){if(k===0)break e;k--,y+=N[e++]<<x,x+=8}if(y!==(4294967295&r.total)){m.msg="incorrect length check",r.mode=ne;break}y=0,x=0}r.mode=_e;case _e:Ce=V;break e;case ne:Ce=J;break e;case Ae:return ue;case Ze:default:return q}return m.next_out=R,m.avail_out=h,m.next_in=e,m.avail_in=k,r.hold=y,r.bits=x,(r.wsize||L!==m.avail_out&&r.mode<ne&&(r.mode<Y||A!==W))&&b(m,m.output,m.next_out,L-m.avail_out)?(r.mode=Ae,ue):(M-=m.avail_in,L-=m.avail_out,m.total_in+=M,m.total_out+=L,r.total+=L,r.wrap&&L&&(m.adler=r.check=r.flags?S(r.check,G,L,m.next_out-L):_(r.check,G,L,m.next_out-L)),m.data_type=r.bits+(r.last?64:0)+(r.mode===me?128:0)+(r.mode===Ee||r.mode===Fe?256:0),(M===0&&L===0||A===W)&&Ce===Q&&(Ce=ie),Ce)}function B(m){if(!m||!m.state)return q;var A=m.state;return A.window&&(A.window=null),m.state=null,Q}function l(m,A){var r;return m&&m.state?(r=m.state,(2&r.wrap)==0?q:(r.head=A,A.done=!1,Q)):q}function t(m,A){var r,N,G,e=A.length;return m&&m.state?(r=m.state,r.wrap!==0&&r.mode!==be?q:r.mode===be&&(N=1,N=_(N,A,e,0),N!==r.check)?J:(G=b(m,A,e,e))?(r.mode=Ae,ue):(r.havedict=1,Q)):q}var u,w,C=c("../utils/common"),_=c("./adler32"),S=c("./crc32"),E=c("./inffast"),z=c("./inftrees"),P=0,F=1,D=2,W=4,X=5,K=6,Q=0,V=1,H=2,q=-2,J=-3,ue=-4,ie=-5,he=8,oe=1,te=2,fe=3,se=4,le=5,$=6,ke=7,ae=8,ye=9,ze=10,be=11,me=12,De=13,He=14,Fe=15,Oe=16,We=17,Me=18,je=19,Ee=20,Le=21,Ne=22,Ge=23,Se=24,Be=25,Re=26,Y=27,xe=28,_e=29,ne=30,Ae=31,Ze=32,Pe=852,n=592,T=15,U=T,j=!0;v.inflateReset=s,v.inflateReset2=p,v.inflateResetKeep=d,v.inflateInit=o,v.inflateInit2=a,v.inflate=I,v.inflateEnd=B,v.inflateGetHeader=l,v.inflateSetDictionary=t,v.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":62,"./adler32":64,"./crc32":66,"./inffast":69,"./inftrees":71}],71:[function(c,O,v){"use strict";var i=c("../utils/common"),f=15,d=852,s=592,p=0,a=1,o=2,g=[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],b=[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],I=[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],B=[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];O.exports=function(l,t,u,w,C,_,S,E){var z,P,F,D,W,X,K,Q,V,H=E.bits,q=0,J=0,ue=0,ie=0,he=0,oe=0,te=0,fe=0,se=0,le=0,$=null,ke=0,ae=new i.Buf16(f+1),ye=new i.Buf16(f+1),ze=null,be=0;for(q=0;q<=f;q++)ae[q]=0;for(J=0;J<w;J++)ae[t[u+J]]++;for(he=H,ie=f;ie>=1&&ae[ie]===0;ie--);if(he>ie&&(he=ie),ie===0)return C[_++]=20971520,C[_++]=20971520,E.bits=1,0;for(ue=1;ue<ie&&ae[ue]===0;ue++);for(he<ue&&(he=ue),fe=1,q=1;q<=f;q++)if(fe<<=1,fe-=ae[q],fe<0)return-1;if(fe>0&&(l===p||ie!==1))return-1;for(ye[1]=0,q=1;q<f;q++)ye[q+1]=ye[q]+ae[q];for(J=0;J<w;J++)t[u+J]!==0&&(S[ye[t[u+J]]++]=J);if(l===p?($=ze=S,X=19):l===a?($=g,ke-=257,ze=b,be-=257,X=256):($=I,ze=B,X=-1),le=0,J=0,q=ue,W=_,oe=he,te=0,F=-1,se=1<<he,D=se-1,l===a&&se>d||l===o&&se>s)return 1;for(;;){K=q-te,S[J]<X?(Q=0,V=S[J]):S[J]>X?(Q=ze[be+S[J]],V=$[ke+S[J]]):(Q=96,V=0),z=1<<q-te,P=1<<oe,ue=P;do P-=z,C[W+(le>>te)+P]=K<<24|Q<<16|V|0;while(P!==0);for(z=1<<q-1;le&z;)z>>=1;if(z!==0?(le&=z-1,le+=z):le=0,J++,--ae[q]==0){if(q===ie)break;q=t[u+S[J]]}if(q>he&&(le&D)!==F){for(te===0&&(te=he),W+=ue,oe=q-te,fe=1<<oe;oe+te<ie&&(fe-=ae[oe+te],!(fe<=0));)oe++,fe<<=1;if(se+=1<<oe,l===a&&se>d||l===o&&se>s)return 1;F=le&D,C[F]=he<<24|oe<<16|W-_|0}}return le!==0&&(C[W+le]=q-te<<24|64<<16|0),E.bits=he,0}},{"../utils/common":62}],72:[function(c,O,v){"use strict";O.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"}},{}],73:[function(c,O,v){"use strict";function i(n){for(var T=n.length;--T>=0;)n[T]=0}function f(n,T,U,j,m){this.static_tree=n,this.extra_bits=T,this.extra_base=U,this.elems=j,this.max_length=m,this.has_stree=n&&n.length}function d(n,T){this.dyn_tree=n,this.max_code=0,this.stat_desc=T}function s(n){return n<256?Re[n]:Re[256+(n>>>7)]}function p(n,T){n.pending_buf[n.pending++]=255&T,n.pending_buf[n.pending++]=T>>>8&255}function a(n,T,U){n.bi_valid>De-U?(n.bi_buf|=T<<n.bi_valid&65535,p(n,n.bi_buf),n.bi_buf=T>>De-n.bi_valid,n.bi_valid+=U-De):(n.bi_buf|=T<<n.bi_valid&65535,n.bi_valid+=U)}function o(n,T,U){a(n,U[2*T],U[2*T+1])}function g(n,T){var U=0;do U|=1&n,n>>>=1,U<<=1;while(--T>0);return U>>>1}function b(n){n.bi_valid===16?(p(n,n.bi_buf),n.bi_buf=0,n.bi_valid=0):n.bi_valid>=8&&(n.pending_buf[n.pending++]=255&n.bi_buf,n.bi_buf>>=8,n.bi_valid-=8)}function I(n,T){var U,j,m,A,r,N,G=T.dyn_tree,e=T.max_code,R=T.stat_desc.static_tree,k=T.stat_desc.has_stree,h=T.stat_desc.extra_bits,y=T.stat_desc.extra_base,x=T.stat_desc.max_length,M=0;for(A=0;A<=me;A++)n.bl_count[A]=0;for(G[2*n.heap[n.heap_max]+1]=0,U=n.heap_max+1;U<be;U++)j=n.heap[U],A=G[2*G[2*j+1]+1]+1,A>x&&(A=x,M++),G[2*j+1]=A,j>e||(n.bl_count[A]++,r=0,j>=y&&(r=h[j-y]),N=G[2*j],n.opt_len+=N*(A+r),k&&(n.static_len+=N*(R[2*j+1]+r)));if(M!==0){do{for(A=x-1;n.bl_count[A]===0;)A--;n.bl_count[A]--,n.bl_count[A+1]+=2,n.bl_count[x]--,M-=2}while(M>0);for(A=x;A!==0;A--)for(j=n.bl_count[A];j!==0;)m=n.heap[--U],m>e||(G[2*m+1]!==A&&(n.opt_len+=(A-G[2*m+1])*G[2*m],G[2*m+1]=A),j--)}}function B(n,T,U){var j,m,A=new Array(me+1),r=0;for(j=1;j<=me;j++)A[j]=r=r+U[j-1]<<1;for(m=0;m<=T;m++){var N=n[2*m+1];N!==0&&(n[2*m]=g(A[N]++,N))}}function l(){var n,T,U,j,m,A=new Array(me+1);for(U=0,j=0;j<$-1;j++)for(xe[j]=U,n=0;n<1<<je[j];n++)Y[U++]=j;for(Y[U-1]=j,m=0,j=0;j<16;j++)for(_e[j]=m,n=0;n<1<<Ee[j];n++)Re[m++]=j;for(m>>=7;j<ye;j++)for(_e[j]=m<<7,n=0;n<1<<Ee[j]-7;n++)Re[256+m++]=j;for(T=0;T<=me;T++)A[T]=0;for(n=0;n<=143;)Se[2*n+1]=8,n++,A[8]++;for(;n<=255;)Se[2*n+1]=9,n++,A[9]++;for(;n<=279;)Se[2*n+1]=7,n++,A[7]++;for(;n<=287;)Se[2*n+1]=8,n++,A[8]++;for(B(Se,ae+1,A),n=0;n<ye;n++)Be[2*n+1]=5,Be[2*n]=g(n,5);ne=new f(Se,je,ke+1,ae,me),Ae=new f(Be,Ee,0,ye,me),Ze=new f(new Array(0),Le,0,ze,He)}function t(n){var T;for(T=0;T<ae;T++)n.dyn_ltree[2*T]=0;for(T=0;T<ye;T++)n.dyn_dtree[2*T]=0;for(T=0;T<ze;T++)n.bl_tree[2*T]=0;n.dyn_ltree[2*Fe]=1,n.opt_len=n.static_len=0,n.last_lit=n.matches=0}function u(n){n.bi_valid>8?p(n,n.bi_buf):n.bi_valid>0&&(n.pending_buf[n.pending++]=n.bi_buf),n.bi_buf=0,n.bi_valid=0}function w(n,T,U,j){u(n),j&&(p(n,U),p(n,~U)),q.arraySet(n.pending_buf,n.window,T,U,n.pending),n.pending+=U}function C(n,T,U,j){var m=2*T,A=2*U;return n[m]<n[A]||n[m]===n[A]&&j[T]<=j[U]}function _(n,T,U){for(var j=n.heap[U],m=U<<1;m<=n.heap_len&&(m<n.heap_len&&C(T,n.heap[m+1],n.heap[m],n.depth)&&m++,!C(T,j,n.heap[m],n.depth));)n.heap[U]=n.heap[m],U=m,m<<=1;n.heap[U]=j}function S(n,T,U){var j,m,A,r,N=0;if(n.last_lit!==0)do j=n.pending_buf[n.d_buf+2*N]<<8|n.pending_buf[n.d_buf+2*N+1],m=n.pending_buf[n.l_buf+N],N++,j===0?o(n,m,T):(A=Y[m],o(n,A+ke+1,T),r=je[A],r!==0&&(m-=xe[A],a(n,m,r)),j--,A=s(j),o(n,A,U),r=Ee[A],r!==0&&(j-=_e[A],a(n,j,r)));while(N<n.last_lit);o(n,Fe,T)}function E(n,T){var U,j,m,A=T.dyn_tree,r=T.stat_desc.static_tree,N=T.stat_desc.has_stree,G=T.stat_desc.elems,e=-1;for(n.heap_len=0,n.heap_max=be,U=0;U<G;U++)A[2*U]!==0?(n.heap[++n.heap_len]=e=U,n.depth[U]=0):A[2*U+1]=0;for(;n.heap_len<2;)m=n.heap[++n.heap_len]=e<2?++e:0,A[2*m]=1,n.depth[m]=0,n.opt_len--,N&&(n.static_len-=r[2*m+1]);for(T.max_code=e,U=n.heap_len>>1;U>=1;U--)_(n,A,U);m=G;do U=n.heap[1],n.heap[1]=n.heap[n.heap_len--],_(n,A,1),j=n.heap[1],n.heap[--n.heap_max]=U,n.heap[--n.heap_max]=j,A[2*m]=A[2*U]+A[2*j],n.depth[m]=(n.depth[U]>=n.depth[j]?n.depth[U]:n.depth[j])+1,A[2*U+1]=A[2*j+1]=m,n.heap[1]=m++,_(n,A,1);while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],I(n,T),B(A,e,n.bl_count)}function z(n,T,U){var j,m,A=-1,r=T[1],N=0,G=7,e=4;for(r===0&&(G=138,e=3),T[2*(U+1)+1]=65535,j=0;j<=U;j++)m=r,r=T[2*(j+1)+1],++N<G&&m===r||(N<e?n.bl_tree[2*m]+=N:m!==0?(m!==A&&n.bl_tree[2*m]++,n.bl_tree[2*Oe]++):N<=10?n.bl_tree[2*We]++:n.bl_tree[2*Me]++,N=0,A=m,r===0?(G=138,e=3):m===r?(G=6,e=3):(G=7,e=4))}function P(n,T,U){var j,m,A=-1,r=T[1],N=0,G=7,e=4;for(r===0&&(G=138,e=3),j=0;j<=U;j++)if(m=r,r=T[2*(j+1)+1],!(++N<G&&m===r)){if(N<e)do o(n,m,n.bl_tree);while(--N!=0);else m!==0?(m!==A&&(o(n,m,n.bl_tree),N--),o(n,Oe,n.bl_tree),a(n,N-3,2)):N<=10?(o(n,We,n.bl_tree),a(n,N-3,3)):(o(n,Me,n.bl_tree),a(n,N-11,7));N=0,A=m,r===0?(G=138,e=3):m===r?(G=6,e=3):(G=7,e=4)}}function F(n){var T;for(z(n,n.dyn_ltree,n.l_desc.max_code),z(n,n.dyn_dtree,n.d_desc.max_code),E(n,n.bl_desc),T=ze-1;T>=3&&n.bl_tree[2*Ne[T]+1]===0;T--);return n.opt_len+=3*(T+1)+5+5+4,T}function D(n,T,U,j){var m;for(a(n,T-257,5),a(n,U-1,5),a(n,j-4,4),m=0;m<j;m++)a(n,n.bl_tree[2*Ne[m]+1],3);P(n,n.dyn_ltree,T-1),P(n,n.dyn_dtree,U-1)}function W(n){var T,U=4093624447;for(T=0;T<=31;T++,U>>>=1)if(1&U&&n.dyn_ltree[2*T]!==0)return ue;if(n.dyn_ltree[18]!==0||n.dyn_ltree[20]!==0||n.dyn_ltree[26]!==0)return ie;for(T=32;T<ke;T++)if(n.dyn_ltree[2*T]!==0)return ie;return ue}function X(n){Pe||(l(),Pe=!0),n.l_desc=new d(n.dyn_ltree,ne),n.d_desc=new d(n.dyn_dtree,Ae),n.bl_desc=new d(n.bl_tree,Ze),n.bi_buf=0,n.bi_valid=0,t(n)}function K(n,T,U,j){a(n,(oe<<1)+(j?1:0),3),w(n,T,U,!0)}function Q(n){a(n,te<<1,3),o(n,Fe,Se),b(n)}function V(n,T,U,j){var m,A,r=0;n.level>0?(n.strm.data_type===he&&(n.strm.data_type=W(n)),E(n,n.l_desc),E(n,n.d_desc),r=F(n),m=n.opt_len+3+7>>>3,A=n.static_len+3+7>>>3,A<=m&&(m=A)):m=A=U+5,U+4<=m&&T!==-1?K(n,T,U,j):n.strategy===J||A===m?(a(n,(te<<1)+(j?1:0),3),S(n,Se,Be)):(a(n,(fe<<1)+(j?1:0),3),D(n,n.l_desc.max_code+1,n.d_desc.max_code+1,r+1),S(n,n.dyn_ltree,n.dyn_dtree)),t(n),j&&u(n)}function H(n,T,U){return n.pending_buf[n.d_buf+2*n.last_lit]=T>>>8&255,n.pending_buf[n.d_buf+2*n.last_lit+1]=255&T,n.pending_buf[n.l_buf+n.last_lit]=255&U,n.last_lit++,T===0?n.dyn_ltree[2*U]++:(n.matches++,T--,n.dyn_ltree[2*(Y[U]+ke+1)]++,n.dyn_dtree[2*s(T)]++),n.last_lit===n.lit_bufsize-1}var q=c("../utils/common"),J=4,ue=0,ie=1,he=2,oe=0,te=1,fe=2,se=3,le=258,$=29,ke=256,ae=ke+1+$,ye=30,ze=19,be=2*ae+1,me=15,De=16,He=7,Fe=256,Oe=16,We=17,Me=18,je=[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],Ee=[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],Le=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ne=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ge=512,Se=new Array(2*(ae+2));i(Se);var Be=new Array(2*ye);i(Be);var Re=new Array(Ge);i(Re);var Y=new Array(le-se+1);i(Y);var xe=new Array($);i(xe);var _e=new Array(ye);i(_e);var ne,Ae,Ze,Pe=!1;v._tr_init=X,v._tr_stored_block=K,v._tr_flush_block=V,v._tr_tally=H,v._tr_align=Q},{"../utils/common":62}],74:[function(c,O,v){"use strict";function i(){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}O.exports=i},{}]},{},[10])(10)});
|