-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathImageSequenceAnimation.bundle.min.js
15 lines (12 loc) · 105 KB
/
ImageSequenceAnimation.bundle.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*!
ImageSequenceAnimation v1.2.4
*/
/*!
JSZip v3.10.1 - 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/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/
!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).JSZip=e()}(function(){return function n(i,a,s){function o(t,e){if(!a[t]){if(!i[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}r=a[t]={exports:{}};i[t][0].call(r.exports,function(e){return o(i[t][1][e]||e)},r,r.exports,n,i,a,s)}return a[t].exports}for(var h="function"==typeof require&&require,e=0;e<s.length;e++)o(s[e]);return o}({1:[function(e,t,r){var d=e("./utils"),u=e("./support"),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,n,i,a,s,o=[],h=0,l=e.length,u="string"!==d.getTypeOf(e);h<e.length;)s=l-h,n=u?(t=e[h++],r=h<l?e[h++]:0,h<l?e[h++]:0):(t=e.charCodeAt(h++),r=h<l?e.charCodeAt(h++):0,h<l?e.charCodeAt(h++):0),i=(3&t)<<4|r>>4,a=1<s?(15&r)<<2|n>>6:64,s=2<s?63&n:64,o.push(f.charAt(t>>2)+f.charAt(i)+f.charAt(a)+f.charAt(s));return o.join("")},r.decode=function(e){var t,r,n,i,a,s=0,o=0,h="data:";if(e.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var l,h=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===f.charAt(64)&&h--,e.charAt(e.length-2)===f.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(l=new(u.uint8array?Uint8Array:Array)(0|h);s<e.length;)t=f.indexOf(e.charAt(s++))<<2|(i=f.indexOf(e.charAt(s++)))>>4,r=(15&i)<<4|(i=f.indexOf(e.charAt(s++)))>>2,n=(3&i)<<6|(a=f.indexOf(e.charAt(s++))),l[o++]=t,64!==i&&(l[o++]=r),64!==a&&(l[o++]=n);return l}},{"./support":30,"./utils":32}],2:[function(e,t,r){var n=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),s=e("./stream/DataLengthProbe");function o(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}o.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,t,r){return e.pipe(new a).pipe(new s("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},t.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){var n=e("./utils"),s=(()=>{for(var e=[],t=0;t<256;t++){for(var r=t,n=0;n<8;n++)r=1&r?3988292384^r>>>1:r>>>1;e[t]=r}return e})();t.exports=function(e,t){return void 0!==e&&e.length?("string"!==n.getTypeOf(e)?(e,t,r)=>{var n=s,i=0+r;e^=-1;for(var a=0;a<i;a++)e=e>>>8^n[255&(e^t[a])];return-1^e}:(e,t,r)=>{var n=s,i=0+r;e^=-1;for(var a=0;a<i;a++)e=e>>>8^n[255&(e^t.charCodeAt(a))];return-1^e})(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){e="undefined"!=typeof Promise?Promise:e("lie");t.exports={Promise:e}},{lie:37}],7:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),s=e("./stream/GenericWorker"),o=n?"uint8array":"array";function h(e,t){s.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",a.inherits(h,s),h.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(o,e.data),!1)},h.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},r.compressWorker=function(e){return new h("Deflate",e)},r.uncompressWorker=function(){return new h("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){function v(e,t){for(var r="",n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function n(e,t,r,n,i,a){var s=e.file,o=e.compression,h=a!==w.utf8encode,l=b.transformTo("string",a(s.name)),u=b.transformTo("string",w.utf8encode(s.name)),d=s.comment,a=b.transformTo("string",a(d)),f=b.transformTo("string",w.utf8encode(d)),c=u.length!==s.name.length,d=f.length!==d.length,p="",m=s.dir,_=s.date,g={crc32:0,compressedSize:0,uncompressedSize:0},r=(t&&!r||(g.crc32=e.crc32,g.compressedSize=e.compressedSize,g.uncompressedSize=e.uncompressedSize),0),e=(t&&(r|=8),h||!c&&!d||(r|=2048),0),t=0,_=(m&&(e|=16),"UNIX"===i?(t=798,e|=(65535&((h=s.unixPermissions)?h:m?16893:33204))<<16):(t=20,e|=63&(s.dosPermissions||0)),i=_.getUTCHours(),i=(i=((i<<=6)|_.getUTCMinutes())<<5)|_.getUTCSeconds()/2,h=_.getUTCFullYear()-1980,h=(h=((h<<=4)|_.getUTCMonth()+1)<<5)|_.getUTCDate(),c&&(m=v(1,1)+v(y(l),4)+u,p+="up"+v(m.length,2)+m),d&&(s=v(1,1)+v(y(a),4)+f,p+="uc"+v(s.length,2)+s),""),_=(_=(_=(_=(_=(_=(_=(_=(_=(_+="\n\0")+v(r,2))+o.magic)+v(i,2))+v(h,2))+v(g.crc32,4))+v(g.compressedSize,4))+v(g.uncompressedSize,4))+v(l.length,2))+v(p.length,2);return{fileRecord:k.LOCAL_FILE_HEADER+_+l+p,dirRecord:k.CENTRAL_FILE_HEADER+v(t,2)+_+v(a.length,2)+"\0\0\0\0"+v(e,4)+v(n,4)+l+p+a}}var b=e("../utils"),i=e("../stream/GenericWorker"),w=e("../utf8"),y=e("../crc32"),k=e("../signature");function a(e,t,r,n){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}b.inherits(a,i),a.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},a.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;t?(e=n(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName),this.push({data:e.fileRecord,meta:{percent:0}})):this.accumulate=!0},a.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=n(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:(t=e,k.DATA_DESCRIPTOR+v(t.crc32,4)+v(t.compressedSize,4)+v(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},a.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,r=((e,t,r,n,i)=>(i=b.transformTo("string",i(n)),k.CENTRAL_DIRECTORY_END+"\0\0\0\0"+v(e,2)+v(e,2)+v(t,4)+v(r,4)+v(i.length,2)+i))(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},a.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},a.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},a.prototype.error=function(e){var t=this._sources;if(!i.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},a.prototype.lock=function(){i.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=a},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){var l=e("../compressions"),n=e("./ZipFileWorker");r.generateWorker=function(e,s,t){var o=new n(s.streamFiles,t,s.platform,s.encodeFileName),h=0;try{e.forEach(function(e,t){h++;var r=((e,t)=>{if(t=l[e=e||t])return t;throw new Error(e+" is not a valid compression method !")})(t.options.compression,s.compression),n=t.options.compressionOptions||s.compressionOptions||{},i=t.dir,a=t.date;t._compressWorker(r,n).withStreamInfo("file",{name:e,dir:i,date:a,comment:t.comment||"",unixPermissions:t.unixPermissions,dosPermissions:t.dosPermissions}).pipe(o)}),o.entriesCount=h}catch(e){o.error(e)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e,t=new n;for(e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.10.1",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){var h=e("./utils"),i=e("./external"),n=e("./utf8"),a=e("./zipEntries"),l=e("./stream/Crc32Probe"),u=e("./nodejsUtils");t.exports=function(e,s){var o=this;return s=h.extend(s||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),u.isNode&&u.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):h.prepareContent("the loaded zip file",e,!0,s.optimizedBinaryString,s.base64).then(function(e){var t=new a(s);return t.load(e),t}).then(function(e){var t=[i.Promise.resolve(e)],r=e.files;if(s.checkCRC32)for(var n=0;n<r.length;n++)t.push((n=>new i.Promise(function(e,t){var r=n.decompressed.getContentWorker().pipe(new l);r.on("error",function(e){t(e)}).on("end",function(){r.streamInfo.crc32!==n.decompressed.crc32?t(new Error("Corrupted zip : CRC32 mismatch")):e()}).resume()}))(r[n]));return i.Promise.all(t)}).then(function(e){for(var e=e.shift(),t=e.files,r=0;r<t.length;r++){var n=t[r],i=n.fileNameStr,a=h.resolve(n.fileNameStr);o.file(a,n.decompressed,{binary:!0,optimizedBinaryString:!0,date:n.date,dir:n.dir,comment:n.fileCommentStr.length?n.fileCommentStr:null,unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions,createFolders:s.createFolders}),n.dir||(o.file(a).unsafeOriginalName=i)}return e.zipComment.length&&(o.comment=e.zipComment),o})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){var n=e("../utils"),i=e("../stream/GenericWorker");function a(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){var i=e("readable-stream").Readable;function n(e,t,r){i.call(this,t),this._helper=e;var n=this;e.on("data",function(e,t){n.push(e)||n._helper.pause(),r&&r(t)}).on("error",function(e){n.emit("error",e)}).on("end",function(){n.push(null)})}e("../utils").inherits(n,i),n.prototype._read=function(){this._helper.resume()},t.exports=n},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){return Buffer.alloc?Buffer.alloc(e):((e=new Buffer(e)).fill(0),e)},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){function i(e,t,r){var n=h.getTypeOf(t),i=h.extend(r||{},d),a=(i.date=i.date||new Date,null!==i.compression&&(i.compression=i.compression.toUpperCase()),"string"==typeof i.unixPermissions&&(i.unixPermissions=parseInt(i.unixPermissions,8)),i.unixPermissions&&16384&i.unixPermissions&&(i.dir=!0),i.dosPermissions&&16&i.dosPermissions&&(i.dir=!0),i.dir&&(e=g(e)),i.createFolders&&(a=s(e))&&o.call(this,a,!0),"string"===n&&!1===i.binary&&!1===i.base64),n=(r&&void 0!==r.binary||(i.binary=!a),(t instanceof f&&0===t.uncompressedSize||i.dir||!t||0===t.length)&&(i.base64=!1,i.binary=!0,t="",i.compression="STORE"),t instanceof f||t instanceof l?t:m.isNode&&m.isStream(t)?new _(e,t):h.prepareContent(e,t,i.binary,i.optimizedBinaryString,i.base64)),r=new c(e,n,i);this.files[e]=r}function s(e){var t=(e="/"===e.slice(-1)?e.substring(0,e.length-1):e).lastIndexOf("/");return 0<t?e.substring(0,t):""}function o(e,t){return t=void 0!==t?t:d.createFolders,e=g(e),this.files[e]||i.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]}var a=e("./utf8"),h=e("./utils"),l=e("./stream/GenericWorker"),u=e("./stream/StreamHelper"),d=e("./defaults"),f=e("./compressedObject"),c=e("./zipObject"),p=e("./generate"),m=e("./nodejsUtils"),_=e("./nodejs/NodejsStreamInputAdapter"),g=function(e){return"/"!==e.slice(-1)&&(e+="/"),e};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}t.exports={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(r){var n=[];return this.forEach(function(e,t){r(e,t)&&n.push(t)}),n},file:function(e,t,r){var n;return 1!==arguments.length?(e=this.root+e,i.call(this,e,t,r),this):v(e)?(n=e,this.filter(function(e,t){return!t.dir&&n.test(e)})):(t=this.files[this.root+e])&&!t.dir?t:null},folder:function(r){var e,t;return r?v(r)?this.filter(function(e,t){return t.dir&&r.test(e)}):(e=this.root+r,e=o.call(this,e),(t=this.clone()).root=e.name,t):this},remove:function(r){r=this.root+r;var e=this.files[r];if(e||("/"!==r.slice(-1)&&(r+="/"),e=this.files[r]),e&&!e.dir)delete this.files[r];else for(var t=this.filter(function(e,t){return t.name.slice(0,r.length)===r}),n=0;n<t.length;n++)delete this.files[t[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t={};try{if((t=h.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=t.type.toLowerCase(),t.compression=t.compression.toUpperCase(),"binarystring"===t.type&&(t.type="string"),!t.type)throw new Error("No output type specified.");h.checkSupport(t.type),"darwin"!==t.platform&&"freebsd"!==t.platform&&"linux"!==t.platform&&"sunos"!==t.platform||(t.platform="UNIX"),"win32"===t.platform&&(t.platform="DOS");var r=t.comment||this.comment||"",n=p.generateWorker(this,t,r)}catch(e){(n=new l("error")).error(e)}return new u(n,t.type||"string",t.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,r){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),e=e.charCodeAt(3),i=this.readData(4);return t===i[0]&&r===i[1]&&n===i[2]&&e===i[3]},i.prototype.readData=function(e){var t;return this.checkOffset(e),0===e?[]:(t=this.data.slice(this.zero+this.index,this.zero+this.index+e),this.index+=e,t)},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){var n=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){var t;return this.checkOffset(e),0===e?new Uint8Array(0):(t=this.data.subarray(this.zero+this.index,this.zero+this.index+e),this.index+=e,t)},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){var n=e("../utils"),i=e("../support"),a=e("./ArrayReader"),s=e("./StringReader"),o=e("./NodeBufferReader"),h=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new o(e):i.uint8array?new h(n.transformTo("uint8array",e)):new a(n.transformTo("array",e)):new s(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){var n=e("./GenericWorker"),i=e("../utils");function a(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,n),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){var n=e("./GenericWorker"),i=e("../crc32");function a(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,n),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(a,i),a.prototype.processChunk=function(e){var t;e&&(t=this.streamInfo[this.propName]||0,this.streamInfo[this.propName]=t+e.data.length),i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}n.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished)||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0)},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){var e;return!(!this.isPaused||this.isFinished||(e=this.isPaused=!1,this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),e))},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){var h=e("../utils"),i=e("./ConvertWorker"),a=e("./GenericWorker"),l=e("../base64"),n=e("../support"),s=e("../external"),o=null;if(n.nodestream)try{o=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function u(e,o){return new s.Promise(function(t,r){var n=[],i=e._internalType,a=e._outputType,s=e._mimeType;e.on("data",function(e,t){n.push(e),o&&o(t)}).on("error",function(e){n=[],r(e)}).on("end",function(){try{var e=((e,t,r)=>{switch(e){case"blob":return h.newBlob(h.transformTo("arraybuffer",t),r);case"base64":return l.encode(t);default:return h.transformTo(e,t)}})(a,((e,t)=>{for(var r=0,n=null,i=0,a=0;a<t.length;a++)i+=t[a].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(n=new Uint8Array(i),a=0;a<t.length;a++)n.set(t[a],r),r+=t[a].length;return n;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}})(i,n),s);t(e)}catch(e){r(e)}n=[]}).resume()})}function d(e,t,r){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=t,this._mimeType=r,h.checkSupport(n),this._worker=e.pipe(new i(n)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}d.prototype={accumulate:function(e){return u(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,function(e){t.call(r,e.data,e.meta)}):this._worker.on(e,function(){h.delay(t,arguments,r)}),this},resume:function(){return h.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(h.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new o(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(n),r.blob=0===i.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,i){for(var h=e("./utils"),l=e("./support"),u=e("./nodejsUtils"),r=e("./stream/GenericWorker"),d=new Array(256),n=0;n<256;n++)d[n]=252<=n?6:248<=n?5:240<=n?4:224<=n?3:192<=n?2:1;function a(){r.call(this,"utf-8 decode"),this.leftOver=null}function s(){r.call(this,"utf-8 encode")}d[254]=d[254]=1,i.utf8encode=function(e){if(l.nodebuffer)return u.newBufferFrom(e,"utf-8");for(var t,r,n,i,a=e,s=a.length,o=0,h=0;h<s;h++)55296==(64512&(r=a.charCodeAt(h)))&&h+1<s&&56320==(64512&(n=a.charCodeAt(h+1)))&&(r=65536+(r-55296<<10)+(n-56320),h++),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new(l.uint8array?Uint8Array:Array)(o),h=i=0;i<o;h++)55296==(64512&(r=a.charCodeAt(h)))&&h+1<s&&56320==(64512&(n=a.charCodeAt(h+1)))&&(r=65536+(r-55296<<10)+(n-56320),h++),r<128?t[i++]=r:(r<2048?t[i++]=192|r>>>6:(r<65536?t[i++]=224|r>>>12:(t[i++]=240|r>>>18,t[i++]=128|r>>>12&63),t[i++]=128|r>>>6&63),t[i++]=128|63&r);return t},i.utf8decode=function(e){if(l.nodebuffer)return h.transformTo("nodebuffer",e).toString("utf-8");for(var t,r,n,i=e=h.transformTo(l.uint8array?"uint8array":"array",e),a=i.length,s=new Array(2*a),o=t=0;o<a;)if((r=i[o++])<128)s[t++]=r;else if(4<(n=d[r]))s[t++]=65533,o+=n-1;else{for(r&=2===n?31:3===n?15:7;1<n&&o<a;)r=r<<6|63&i[o++],n--;1<n?s[t++]=65533:r<65536?s[t++]=r:(r-=65536,s[t++]=55296|r>>10&1023,s[t++]=56320|1023&r)}return s.length!==t&&(s.subarray?s=s.subarray(0,t):s.length=t),h.applyFromCharCode(s)},h.inherits(a,r),a.prototype.processChunk=function(e){var t=h.transformTo(l.uint8array?"uint8array":"array",e.data),r=(this.leftOver&&this.leftOver.length&&(l.uint8array?(r=t,(t=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),t.set(r,this.leftOver.length)):t=this.leftOver.concat(t),this.leftOver=null),((e,t)=>{for(var r=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=r&&128==(192&e[r]);)r--;return!(r<0)&&0!==r&&r+d[e[r]]>t?r:t})(t)),n=t;r!==t.length&&(l.uint8array?(n=t.subarray(0,r),this.leftOver=t.subarray(r,t.length)):(n=t.slice(0,r),this.leftOver=t.slice(r,t.length))),this.push({data:i.utf8decode(n),meta:e.meta})},a.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=a,h.inherits(s,r),s.prototype.processChunk=function(e){this.push({data:i.utf8encode(e.data),meta:e.meta})},i.Utf8EncodeWorker=s},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,s){var o=e("./support"),h=e("./base64"),r=e("./nodejsUtils"),l=e("./external");function n(e){return e}function u(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),s.newBlob=function(t,r){s.checkSupport("blob");try{return new Blob([t],{type:r})}catch(e){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(t),n.getBlob(r)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var i={stringifyByChunk:function(e,t,r){var n=[],i=0,a=e.length;if(a<=r)return String.fromCharCode.apply(null,e);for(;i<a;)n.push("array"===t||"nodebuffer"===t?String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,a))):String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,a)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:(()=>{try{return o.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}})(),nodebuffer:(()=>{try{return o.nodebuffer&&1===String.fromCharCode.apply(null,r.allocBuffer(1)).length}catch(e){return!1}})()}};function a(e){var t=65536,r=s.getTypeOf(e),n=!0;if("uint8array"===r?n=i.applyCanBeUsed.uint8array:"nodebuffer"===r&&(n=i.applyCanBeUsed.nodebuffer),n)for(;1<t;)try{return i.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return i.stringifyByChar(e)}function d(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}s.applyFromCharCode=a;var f={};f.string={string:n,array:function(e){return u(e,new Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return u(e,new Uint8Array(e.length))},nodebuffer:function(e){return u(e,r.allocBuffer(e.length))}},f.array={string:a,array:n,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return r.newBufferFrom(e)}},f.arraybuffer={string:function(e){return a(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:n,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return r.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:a,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:n,nodebuffer:function(e){return r.newBufferFrom(e)}},f.nodebuffer={string:a,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:n},s.transformTo=function(e,t){if(t=t||"",!e)return t;s.checkSupport(e);var r=s.getTypeOf(t);return f[r][e](t)},s.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var i=t[n];"."===i||""===i&&0!==n&&n!==t.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},s.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":o.nodebuffer&&r.isBuffer(e)?"nodebuffer":o.uint8array&&e instanceof Uint8Array?"uint8array":o.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},s.checkSupport=function(e){if(!o[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},s.MAX_VALUE_16BITS=65535,s.MAX_VALUE_32BITS=-1,s.pretty=function(e){for(var t,r="",n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},s.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})},s.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},s.extend=function(){for(var e,t={},r=0;r<arguments.length;r++)for(e in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],e)&&void 0===t[e]&&(t[e]=arguments[r][e]);return t},s.prepareContent=function(r,e,n,i,a){return l.Promise.resolve(e).then(function(n){return o.blob&&(n instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(n)))&&"undefined"!=typeof FileReader?new l.Promise(function(t,r){var e=new FileReader;e.onload=function(e){t(e.target.result)},e.onerror=function(e){r(e.target.error)},e.readAsArrayBuffer(n)}):n}).then(function(e){var t=s.getTypeOf(e);return t?("arraybuffer"===t?e=s.transformTo("uint8array",e):"string"===t&&(a?e=h.decode(e):n&&!0!==i&&(e=u(t=e,new(o.uint8array?Uint8Array:Array)(t.length)))),e):l.Promise.reject(new Error("Can't read the data of '"+r+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),a=e("./signature"),s=e("./zipEntry"),o=e("./support");function h(e){this.files=[],this.loadOptions=e}h.prototype={checkSignature:function(e){var t;if(!this.reader.readAndCheckSignature(e))throw this.reader.index-=4,t=this.reader.readString(4),new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")},isSignature:function(e,t){var r=this.reader.index,e=(this.reader.setIndex(e),this.reader.readString(4)===t);return this.reader.setIndex(r),e},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=o.uint8array?"uint8array":"array",t=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(t)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){for(var e,t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}e=this.centralDirOffset+this.centralDirSize,e=t-(e=this.zip64?e+20+(12+this.zip64EndOfCentralSize):e);if(0<e)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=e);else if(e<0)throw new Error("Corrupted zip: missing "+Math.abs(e)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=h},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),a=e("./compressedObject"),s=e("./crc32"),o=e("./utf8"),h=e("./compressions"),l=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t;if(e.skip(22),this.fileNameLength=e.readInt(2),t=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(t),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=(e=>{for(var t in h)if(Object.prototype.hasOwnProperty.call(h,t)&&h[t].magic===e)return h[t];return null})(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){var e;this.extraFields[1]&&(e=n(this.extraFields[1].value),this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS)&&(this.diskNumberStart=e.readInt(4))},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(i)},handleUTF8:function(){var e,t=l.uint8array?"uint8array":"array";this.useUTF8()?(this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment)):(null!==(e=this.findExtraFieldUnicodePath())?this.fileNameStr=e:(e=i.transformTo(t,this.fileName),this.fileNameStr=this.loadOptions.decodeFileName(e)),null!==(e=this.findExtraFieldUnicodeComment())?this.fileCommentStr=e:(e=i.transformTo(t,this.fileComment),this.fileCommentStr=this.loadOptions.decodeFileName(e)))},findExtraFieldUnicodePath:function(){var e,t=this.extraFields[28789];return!t||1!==(e=n(t.value)).readInt(1)||s(this.fileName)!==e.readInt(4)?null:o.utf8decode(e.readData(t.length-5))},findExtraFieldUnicodeComment:function(){var e,t=this.extraFields[25461];return!t||1!==(e=n(t.value)).readInt(1)||s(this.fileComment)!==e.readInt(4)?null:o.utf8decode(e.readData(t.length-5))}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){function n(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var a=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),s=e("./utf8"),o=e("./compressedObject"),h=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r,i=("binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker(),!this._dataBinary);i&&!n&&(t=t.pipe(new s.Utf8EncodeWorker)),!i&&n&&(t=t.pipe(new s.Utf8DecodeWorker))}catch(e){(t=new h("error")).error(e)}return new a(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){var r;return this._data instanceof o&&this._data.compression.magic===e.magic?this._data.getCompressedWorker():(r=this._decompressWorker(),this._dataBinary||(r=r.pipe(new s.Utf8EncodeWorker)),o.createWorkerFrom(r,e,t))},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof h?this._data:new i(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<l.length;d++)n.prototype[l[d]]=u;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,l,t){!function(t){var n,e,r,i,a=t.MutationObserver||t.WebKitMutationObserver,s=a?(e=0,a=new a(h),r=t.document.createTextNode(""),a.observe(r,{characterData:!0}),function(){r.data=e=++e%2}):t.setImmediate||void 0===t.MessageChannel?"document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){h(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(h,0)}:((i=new t.MessageChannel).port1.onmessage=h,function(){i.port2.postMessage(0)}),o=[];function h(){var e,t;n=!0;for(var r=o.length;r;){for(t=o,o=[],e=-1;++e<r;)t[e]();r=o.length}n=!1}l.exports=function(e){1!==o.push(e)||n||s()}}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){var i=e("immediate");function h(){}var l={},a=["REJECTED"],s=["FULFILLED"],n=["PENDING"];function o(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=n,this.queue=[],this.outcome=void 0,e!==h&&c(this,e)}function u(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(t,r,n){i(function(){var e;try{e=r(n)}catch(e){return l.reject(t,e)}e===t?l.reject(t,new TypeError("Cannot resolve promise with itself")):l.resolve(t,e)})}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function c(t,e){var r=!1;function n(e){r||(r=!0,l.reject(t,e))}function i(e){r||(r=!0,l.resolve(t,e))}var a=p(function(){e(i,n)});"error"===a.status&&n(a.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}(t.exports=o).prototype.finally=function(t){var r;return"function"!=typeof t?this:(r=this.constructor,this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}))},o.prototype.catch=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var r;return"function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a?this:(r=new this.constructor(h),this.state!==n?d(r,this.state===s?e:t,this.outcome):this.queue.push(new u(r,e,t)),r)},u.prototype.callFulfilled=function(e){l.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){l.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},l.resolve=function(e,t){var r=p(f,t);if("error"===r.status)return l.reject(e,r.value);r=r.value;if(r)c(e,r);else{e.state=s,e.outcome=t;for(var n=-1,i=e.queue.length;++n<i;)e.queue[n].callFulfilled(t)}return e},l.reject=function(e,t){e.state=a,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},o.resolve=function(e){return e instanceof this?e:l.resolve(new this(h),e)},o.reject=function(e){var t=new this(h);return l.reject(t,e)},o.all=function(e){var r=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,i=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,t=-1,o=new this(h);++t<n;)((e,t)=>{r.resolve(e).then(function(e){a[t]=e,++s!==n||i||(i=!0,l.resolve(o,a))},function(e){i||(i=!0,l.reject(o,e))})})(e[t],t);return o},o.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,r=!1;if(!t)return this.resolve([]);for(var n,i=-1,a=new this(h);++i<t;)n=e[i],this.resolve(n).then(function(e){r||(r=!0,l.resolve(a,e))},function(e){r||(r=!0,l.reject(a,e))});return a}},{immediate:36}],38:[function(e,t,r){var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){var s=e("./zlib/deflate"),o=e("./utils/common"),h=e("./utils/strings"),n=e("./zlib/messages"),i=e("./zlib/zstream"),l=Object.prototype.toString;function a(e){if(!(this instanceof a))return new a(e);this.options=o.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var e=this.options,t=(e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0,s.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy));if(0!==t)throw new Error(n[t]);if(e.header&&s.deflateSetHeader(this.strm,e.header),e.dictionary){e="string"==typeof e.dictionary?h.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary;if(0!==(t=s.deflateSetDictionary(this.strm,e)))throw new Error(n[t]);this._dict_set=!0}}function u(e,t){t=new a(t);if(t.push(e,!0),t.err)throw t.msg||n[t.err];return t.result}a.prototype.push=function(e,t){var r,n,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;n=t===~~t?t:!0===t?4:0,"string"==typeof e?i.input=h.string2buf(e):"[object ArrayBuffer]"===l.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new o.Buf8(a),i.next_out=0,i.avail_out=a),1!==(r=s.deflate(i,n))&&0!==r)return this.onEnd(r),!(this.ended=!0)}while(0!==i.avail_out&&(0!==i.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(h.buf2binstring(o.shrinkBuf(i.output,i.next_out))):this.onData(o.shrinkBuf(i.output,i.next_out))),(0<i.avail_in||0===i.avail_out)&&1!==r);return 4===n?(r=s.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),!(i.avail_out=0))},a.prototype.onData=function(e){this.chunks.push(e)},a.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=a,r.deflate=u,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,u(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){var d=e("./zlib/inflate"),f=e("./utils/common"),c=e("./utils/strings"),p=e("./zlib/constants"),n=e("./zlib/messages"),i=e("./zlib/zstream"),a=e("./zlib/gzheader"),m=Object.prototype.toString;function s(e){if(!(this instanceof s))return new s(e);this.options=f.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options,e=(t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits)&&(t.windowBits=-15),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0,d.inflateInit2(this.strm,t.windowBits));if(e!==p.Z_OK)throw new Error(n[e]);this.header=new a,d.inflateGetHeader(this.strm,this.header)}function o(e,t){t=new s(t);if(t.push(e,!0),t.err)throw t.msg||n[t.err];return t.result}s.prototype.push=function(e,t){var r,n,i,a,s,o=this.strm,h=this.options.chunkSize,l=this.options.dictionary,u=!1;if(this.ended)return!1;n=t===~~t?t:!0===t?p.Z_FINISH:p.Z_NO_FLUSH,"string"==typeof e?o.input=c.binstring2buf(e):"[object ArrayBuffer]"===m.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new f.Buf8(h),o.next_out=0,o.avail_out=h),(r=d.inflate(o,p.Z_NO_FLUSH))===p.Z_NEED_DICT&&l&&(s="string"==typeof l?c.string2buf(l):"[object ArrayBuffer]"===m.call(l)?new Uint8Array(l):l,r=d.inflateSetDictionary(this.strm,s)),r===p.Z_BUF_ERROR&&!0===u&&(r=p.Z_OK,u=!1),r!==p.Z_STREAM_END&&r!==p.Z_OK)return this.onEnd(r),!(this.ended=!0)}while(!o.next_out||0!==o.avail_out&&r!==p.Z_STREAM_END&&(0!==o.avail_in||n!==p.Z_FINISH&&n!==p.Z_SYNC_FLUSH)||("string"===this.options.to?(s=c.utf8border(o.output,o.next_out),i=o.next_out-s,a=c.buf2string(o.output,s),o.next_out=i,o.avail_out=h-i,i&&f.arraySet(o.output,o.output,s,i,0),this.onData(a)):this.onData(f.shrinkBuf(o.output,o.next_out))),0===o.avail_in&&0===o.avail_out&&(u=!0),(0<o.avail_in||0===o.avail_out)&&r!==p.Z_STREAM_END);return(n=r===p.Z_STREAM_END?p.Z_FINISH:n)===p.Z_FINISH?(r=d.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===p.Z_OK):n!==p.Z_SYNC_FLUSH||(this.onEnd(p.Z_OK),!(o.avail_out=0))},s.prototype.onData=function(e){this.chunks.push(e)},s.prototype.onEnd=function(e){e===p.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=f.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=s,r.inflate=o,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,o(e,t)},r.ungzip=o},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array,i=(r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)},{arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){for(var t,r,n,i,a=t=0,s=e.length;a<s;a++)t+=e[a].length;for(i=new Uint8Array(t),a=r=0,s=e.length;a<s;a++)n=e[a],i.set(n,r),r+=n.length;return i}}),a={arraySet:function(e,t,r,n,i){for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,a))},r.setTyped(n)},{}],42:[function(e,t,r){var h=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var l=new h.Buf8(256),n=0;n<256;n++)l[n]=252<=n?6:248<=n?5:240<=n?4:224<=n?3:192<=n?2:1;function u(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,h.shrinkBuf(e,t));for(var r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r}l[254]=l[254]=1,r.string2buf=function(e){for(var t,r,n,i,a=e.length,s=0,o=0;o<a;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new h.Buf8(s),o=i=0;i<s;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),r<128?t[i++]=r:(r<2048?t[i++]=192|r>>>6:(r<65536?t[i++]=224|r>>>12:(t[i++]=240|r>>>18,t[i++]=128|r>>>12&63),t[i++]=128|r>>>6&63),t[i++]=128|63&r);return t},r.buf2binstring=function(e){return u(e,e.length)},r.binstring2buf=function(e){for(var t=new h.Buf8(e.length),r=0,n=t.length;r<n;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){for(var r,n,i,a=t||e.length,s=new Array(2*a),o=r=0;o<a;)if((n=e[o++])<128)s[r++]=n;else if(4<(i=l[n]))s[r++]=65533,o+=i-1;else{for(n&=2===i?31:3===i?15:7;1<i&&o<a;)n=n<<6|63&e[o++],i--;1<i?s[r++]=65533:n<65536?s[r++]=n:(n-=65536,s[r++]=55296|n>>10&1023,s[r++]=56320|1023&n)}return u(s,r)},r.utf8border=function(e,t){for(var r=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=r&&128==(192&e[r]);)r--;return!(r<0)&&0!==r&&r+l[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){t.exports=function(e,t,r,n){for(var i=65535&e|0,a=e>>>16&65535|0,s=0;0!==r;){for(r-=s=2e3<r?2e3:r;a=a+(i=i+t[n++]|0)|0,--s;);i%=65521,a%=65521}return i|a<<16|0}},{}],44:[function(e,t,r){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,r){var o=(()=>{for(var e=[],t=0;t<256;t++){for(var r=t,n=0;n<8;n++)r=1&r?3988292384^r>>>1:r>>>1;e[t]=r}return e})();t.exports=function(e,t,r,n){var i=o,a=n+r;e^=-1;for(var s=n;s<a;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}},{}],46:[function(e,F,t){var o,d=e("../utils/common"),h=e("./trees"),f=e("./adler32"),c=e("./crc32"),r=e("./messages"),l=0,u=0,p=-2,n=2,m=8,i=286,a=30,s=19,N=2*i+1,P=15,_=3,g=258,v=g+_+1,b=42,w=113;function y(e,t){return e.msg=r[t],t}function k(e){return(e<<1)-(4<e?9:0)}function x(e){for(var t=e.length;0<=--t;)e[t]=0}function E(e){var t=e.state,r=t.pending;0!==(r=e.avail_out<r?e.avail_out:r)&&(d.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending)&&(t.pending_out=0)}function S(e,t){h._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,E(e.strm)}function C(e,t){e.pending_buf[e.pending++]=t}function z(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function A(e,t){var r,n,i=e.max_chain_length,a=e.strstart,s=e.prev_length,o=e.nice_match,h=e.w_size-v<e.strstart?e.strstart-(e.w_size-v):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+g,c=l[a+s-1],p=l[a+s];e.good_match<=e.prev_length&&(i>>=2),e.lookahead<o&&(o=e.lookahead);do{if(l[(r=t)+s]===p&&l[r+s-1]===c&&l[r]===l[a]&&l[++r]===l[a+1]){for(a+=2,r++;l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&l[++a]===l[++r]&&a<f;);if(n=g-(f-a),a=f-g,s<n){if(e.match_start=t,o<=(s=n))break;c=l[a+s-1],p=l[a+s]}}}while((t=d[t&u])>h&&0!=--i);return s<=e.lookahead?s:e.lookahead}function I(e){var t,r,n,i,a,s,o,h,l,u=e.w_size;do{if(h=e.window_size-e.lookahead-e.strstart,u+(u-v)<=e.strstart){for(d.arraySet(e.window,e.window,u,u,0),e.match_start-=u,e.strstart-=u,e.block_start-=u,t=r=e.hash_size;n=e.head[--t],e.head[t]=u<=n?n-u:0,--r;);for(t=r=u;n=e.prev[--t],e.prev[t]=u<=n?n-u:0,--r;);h+=u}if(0===e.strm.avail_in)break;if(s=e.window,o=e.strstart+e.lookahead,l=void 0,r=0===(l=(h=h)<(l=(a=e.strm).avail_in)?h:l)?0:(a.avail_in-=l,d.arraySet(s,a.input,a.next_in,l,o),1===a.state.wrap?a.adler=f(a.adler,s,l,o):2===a.state.wrap&&(a.adler=c(a.adler,s,l,o)),a.next_in+=l,a.total_in+=l,l),e.lookahead+=r,_<=e.lookahead+e.insert)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+_-1])&e.hash_mask,e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<_)););}while(e.lookahead<v&&0!==e.strm.avail_in)}function O(e,t){for(var r,n;;){if(e.lookahead<v){if(I(e),e.lookahead<v&&t===l)return 1;if(0===e.lookahead)break}if(r=0,_<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-v&&(e.match_length=A(e,r)),_<=e.match_length)if(n=h._tr_tally(e,e.strstart-e.match_start,e.match_length-_),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=_){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=h._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(S(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<_-1?e.strstart:_-1,4===t?(S(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(S(e,!1),0===e.strm.avail_out)?1:2}function B(e,t){for(var r,n,i;;){if(e.lookahead<v){if(I(e),e.lookahead<v&&t===l)return 1;if(0===e.lookahead)break}if(r=0,_<=e.lookahead&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=_-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-v&&(e.match_length=A(e,r),e.match_length<=5)&&(1===e.strategy||e.match_length===_&&4096<e.strstart-e.match_start)&&(e.match_length=_-1),_<=e.prev_length&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-_,n=h._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-_),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=_-1,e.strstart++,n&&(S(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=h._tr_tally(e,0,e.window[e.strstart-1]))&&S(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=h._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<_-1?e.strstart:_-1,4===t?(S(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(S(e,!1),0===e.strm.avail_out)?1:2}function T(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function U(){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=m,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 d.Buf16(2*N),this.dyn_dtree=new d.Buf16(2*(2*a+1)),this.bl_tree=new d.Buf16(2*(2*s+1)),x(this.dyn_ltree),x(this.dyn_dtree),x(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new d.Buf16(P+1),this.heap=new d.Buf16(2*i+1),x(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new d.Buf16(2*i+1),x(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 L(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=n,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?b:w,e.adler=2===t.wrap?0:1,t.last_flush=l,h._tr_init(t),u):y(e,p)}function D(e){var t=L(e);return t===u&&((e=e.state).window_size=2*e.w_size,x(e.head),e.max_lazy_match=o[e.level].max_lazy,e.good_match=o[e.level].good_length,e.nice_match=o[e.level].nice_length,e.max_chain_length=o[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=_-1,e.match_available=0,e.ins_h=0),t}function R(e,t,r,n,i,a){if(!e)return p;var s=1;if(-1===t&&(t=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),i<1||9<i||r!==m||n<8||15<n||t<0||9<t||a<0||4<a)return y(e,p);8===n&&(n=9);var o=new U;return(e.state=o).strm=e,o.wrap=s,o.gzhead=null,o.w_bits=n,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=i+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+_-1)/_),o.window=new d.Buf8(2*o.w_size),o.head=new d.Buf16(o.hash_size),o.prev=new d.Buf16(o.w_size),o.lit_bufsize=1<<i+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new d.Buf8(o.pending_buf_size),o.d_buf=+o.lit_bufsize,o.l_buf=3*o.lit_bufsize,o.level=t,o.strategy=a,o.method=r,D(e)}o=[new T(0,0,0,0,function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(I(e),0===e.lookahead&&t===l)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,S(e,!1),0===e.strm.avail_out))return 1;if(e.w_size-v<=e.strstart-e.block_start&&(S(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(S(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(S(e,!1),e.strm.avail_out),1)}),new T(4,4,8,4,O),new T(4,5,16,8,O),new T(4,6,32,32,O),new T(4,4,16,16,B),new T(8,16,32,32,B),new T(8,16,128,128,B),new T(8,32,128,256,B),new T(32,128,258,1024,B),new T(32,258,258,4096,B)],t.deflateInit=function(e,t){return R(e,t,m,15,8,0)},t.deflateInit2=R,t.deflateReset=D,t.deflateResetKeep=L,t.deflateSetHeader=function(e,t){return!e||!e.state||2!==e.state.wrap?p:(e.state.gzhead=t,u)},t.deflate=function(e,t){var r,n,i,a;if(!e||!e.state||5<t||t<0)return e?y(e,p):p;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||666===n.status&&4!==t)return y(e,0===e.avail_out?-5:p);if(n.strm=e,r=n.last_flush,n.last_flush=t,n.status===b&&(2===n.wrap?(e.adler=0,C(n,31),C(n,139),C(n,8),n.gzhead?(C(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),C(n,255&n.gzhead.time),C(n,n.gzhead.time>>8&255),C(n,n.gzhead.time>>16&255),C(n,n.gzhead.time>>24&255),C(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),C(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(C(n,255&n.gzhead.extra.length),C(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=c(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(C(n,0),C(n,0),C(n,0),C(n,0),C(n,0),C(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),C(n,3),n.status=w)):(s=m+(n.w_bits-8<<4)<<8,s|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(s|=32),s+=31-s%31,n.status=w,z(n,s),0!==n.strstart&&(z(n,e.adler>>>16),z(n,65535&e.adler)),e.adler=1)),69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(e.adler=c(e.adler,n.pending_buf,n.pending-i,i)),E(e),i=n.pending,n.pending!==n.pending_buf_size));)C(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=c(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=c(e.adler,n.pending_buf,n.pending-i,i)),E(e),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}}while(a=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,C(n,a),0!==a);n.gzhead.hcrc&&n.pending>i&&(e.adler=c(e.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=c(e.adler,n.pending_buf,n.pending-i,i)),E(e),i=n.pending,n.pending===n.pending_buf_size)){a=1;break}}while(a=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,C(n,a),0!==a);n.gzhead.hcrc&&n.pending>i&&(e.adler=c(e.adler,n.pending_buf,n.pending-i,i)),0===a&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&E(e),n.pending+2<=n.pending_buf_size&&(C(n,255&e.adler),C(n,e.adler>>8&255),e.adler=0,n.status=w)):n.status=w),0!==n.pending){if(E(e),0===e.avail_out)return n.last_flush=-1,u}else if(0===e.avail_in&&k(t)<=k(r)&&4!==t)return y(e,-5);if(666===n.status&&0!==e.avail_in)return y(e,-5);if(0!==e.avail_in||0!==n.lookahead||t!==l&&666!==n.status){var s=2===n.strategy?((e,t)=>{for(var r;;){if(0===e.lookahead&&(I(e),0===e.lookahead)){if(t===l)return 1;break}if(e.match_length=0,r=h._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(S(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(S(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(S(e,!1),0===e.strm.avail_out)?1:2})(n,t):3===n.strategy?((e,t)=>{for(var r,n,i,a,s=e.window;;){if(e.lookahead<=g){if(I(e),e.lookahead<=g&&t===l)return 1;if(0===e.lookahead)break}if(e.match_length=0,_<=e.lookahead&&0<e.strstart&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){for(a=e.strstart+g;n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a;);e.match_length=g-(a-i),e.lookahead<e.match_length&&(e.match_length=e.lookahead)}if(_<=e.match_length?(r=h._tr_tally(e,1,e.match_length-_),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=h._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(S(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(S(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(S(e,!1),0===e.strm.avail_out)?1:2})(n,t):o[n.level].func(n,t);if(3!==s&&4!==s||(n.status=666),1===s||3===s)return 0===e.avail_out&&(n.last_flush=-1),u;if(2===s&&(1===t?h._tr_align(n):5!==t&&(h._tr_stored_block(n,0,0,!1),3===t)&&(x(n.head),0===n.lookahead)&&(n.strstart=0,n.block_start=0,n.insert=0),E(e),0===e.avail_out))return n.last_flush=-1,u}return 4!==t||!(n.wrap<=0)&&(2===n.wrap?(C(n,255&e.adler),C(n,e.adler>>8&255),C(n,e.adler>>16&255),C(n,e.adler>>24&255),C(n,255&e.total_in),C(n,e.total_in>>8&255),C(n,e.total_in>>16&255),C(n,e.total_in>>24&255)):(z(n,e.adler>>>16),z(n,65535&e.adler)),E(e),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending)?u:1},t.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==b&&69!==t&&73!==t&&91!==t&&103!==t&&t!==w&&666!==t?y(e,p):(e.state=null,t===w?y(e,-3):u):p},t.deflateSetDictionary=function(e,t){var r,n,i,a,s,o,h,l=t.length;if(!e||!e.state)return p;if(2===(a=(r=e.state).wrap)||1===a&&r.status!==b||r.lookahead)return p;for(1===a&&(e.adler=f(e.adler,t,l,0)),r.wrap=0,r.w_size<=l&&(0===a&&(x(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new d.Buf8(r.w_size),d.arraySet(h,t,l-r.w_size,r.w_size,0),t=h,l=r.w_size),h=e.avail_in,s=e.next_in,o=e.input,e.avail_in=l,e.next_in=0,e.input=t,I(r);r.lookahead>=_;){for(n=r.strstart,i=r.lookahead-(_-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+_-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--i;);r.strstart=n,r.lookahead=_-1,I(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=_-1,r.match_available=0,e.next_in=s,e.input=o,e.avail_in=h,r.wrap=a,u},t.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,r){t.exports=function(e,t){var r,n,i,a,s,o,h=e.state,l=e.next_in,u=e.input,d=l+(e.avail_in-5),f=e.next_out,c=e.output,p=f-(t-e.avail_out),m=f+(e.avail_out-257),_=h.dmax,g=h.wsize,v=h.whave,b=h.wnext,w=h.window,y=h.hold,k=h.bits,x=h.lencode,E=h.distcode,S=(1<<h.lenbits)-1,C=(1<<h.distbits)-1;e:do{for(k<15&&(y+=u[l++]<<k,k+=8,y+=u[l++]<<k,k+=8),r=x[y&S];;){if(y>>>=n=r>>>24,k-=n,0==(n=r>>>16&255))c[f++]=65535&r;else{if(!(16&n)){if(0==(64&n)){r=x[(65535&r)+(y&(1<<n)-1)];continue}if(32&n){h.mode=12;break e}e.msg="invalid literal/length code",h.mode=30;break e}for(i=65535&r,(n&=15)&&(k<n&&(y+=u[l++]<<k,k+=8),i+=y&(1<<n)-1,y>>>=n,k-=n),k<15&&(y+=u[l++]<<k,k+=8,y+=u[l++]<<k,k+=8),r=E[y&C];;){if(y>>>=n=r>>>24,k-=n,!(16&(n=r>>>16&255))){if(0==(64&n)){r=E[(65535&r)+(y&(1<<n)-1)];continue}e.msg="invalid distance code",h.mode=30;break e}if(a=65535&r,k<(n&=15)&&(y+=u[l++]<<k,(k+=8)<n)&&(y+=u[l++]<<k,k+=8),_<(a+=y&(1<<n)-1)){e.msg="invalid distance too far back",h.mode=30;break e}if(y>>>=n,k-=n,(n=f-p)<a){if(v<(n=a-n)&&h.sane){e.msg="invalid distance too far back",h.mode=30;break e}if(o=w,(s=0)===b){if(s+=g-n,n<i){for(i-=n;c[f++]=w[s++],--n;);s=f-a,o=c}}else if(b<n){if(s+=g+b-n,(n-=b)<i){for(i-=n;c[f++]=w[s++],--n;);if(s=0,b<i){for(i-=n=b;c[f++]=w[s++],--n;);s=f-a,o=c}}}else if(s+=b-n,n<i){for(i-=n;c[f++]=w[s++],--n;);s=f-a,o=c}for(;2<i;)c[f++]=o[s++],c[f++]=o[s++],c[f++]=o[s++],i-=3;i&&(c[f++]=o[s++],1<i)&&(c[f++]=o[s++])}else{for(s=f-a;c[f++]=c[s++],c[f++]=c[s++],c[f++]=c[s++],2<(i-=3););i&&(c[f++]=c[s++],1<i)&&(c[f++]=c[s++])}break}}break}}while(l<d&&f<m);l-=i=k>>3,y&=(1<<(k-=i<<3))-1,e.next_in=l,e.next_out=f,e.avail_in=l<d?d-l+5:5-(l-d),e.avail_out=f<m?m-f+257:257-(f-m),h.hold=y,h.bits=k}},{}],49:[function(e,t,r){var B=e("../utils/common"),T=e("./adler32"),L=e("./crc32"),D=e("./inffast"),R=e("./inftrees"),F=0,N=-2,P=1,n=852,i=592;function U(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function a(){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 B.Buf16(320),this.work=new B.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function s(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=P,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new B.Buf32(n),t.distcode=t.distdyn=new B.Buf32(i),t.sane=1,t.back=-1,F):N}function o(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,s(e)):N}function h(e,t){var r,n;return!e||!e.state||(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t))?N:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,o(e))}function l(e,t){var r;return e?(r=new a,(e.state=r).window=null,(r=h(e,t))!==F&&(e.state=null),r):N}var j,Z,W=!0;function M(e,t,r,n){var i,e=e.state;return null===e.window&&(e.wsize=1<<e.wbits,e.wnext=0,e.whave=0,e.window=new B.Buf8(e.wsize)),e.wsize<=n?(B.arraySet(e.window,t,r-e.wsize,e.wsize,0),e.wnext=0,e.whave=e.wsize):(n<(i=e.wsize-e.wnext)&&(i=n),B.arraySet(e.window,t,r-n,i,e.wnext),(n-=i)?(B.arraySet(e.window,t,r-n,n,0),e.wnext=n,e.whave=e.wsize):(e.wnext+=i,e.wnext===e.wsize&&(e.wnext=0),e.whave<e.wsize&&(e.whave+=i))),0}r.inflateReset=o,r.inflateReset2=h,r.inflateResetKeep=s,r.inflateInit=function(e){return l(e,15)},r.inflateInit2=l,r.inflate=function(e,t){var r,n,i,a,s,o,h,l,u,d,f,c,p,m,_,g,v,b,w,y,k,x,E,S,C=0,z=new B.Buf8(4),A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return N;12===(r=e.state).mode&&(r.mode=13),s=e.next_out,i=e.output,a=e.next_in,n=e.input,l=r.hold,u=r.bits,d=o=e.avail_in,f=h=e.avail_out,x=F;e:for(;;)switch(r.mode){case P:if(0===r.wrap)r.mode=13;else{for(;u<16;){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}if(2&r.wrap&&35615===l)z[r.check=0]=255&l,z[1]=l>>>8&255,r.check=L(r.check,z,2,0),u=l=0,r.mode=2;else if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&l)<<8)+(l>>8))%31)e.msg="incorrect header check",r.mode=30;else if(8!=(15&l))e.msg="unknown compression method",r.mode=30;else{if(u-=4,k=8+(15&(l>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<k,e.adler=r.check=1,r.mode=512&l?10:12,u=l=0}}break;case 2:for(;u<16;){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}if(r.flags=l,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=l>>8&1),512&r.flags&&(z[0]=255&l,z[1]=l>>>8&255,r.check=L(r.check,z,2,0)),u=l=0,r.mode=3;case 3:for(;u<32;){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}r.head&&(r.head.time=l),512&r.flags&&(z[0]=255&l,z[1]=l>>>8&255,z[2]=l>>>16&255,z[3]=l>>>24&255,r.check=L(r.check,z,4,0)),u=l=0,r.mode=4;case 4:for(;u<16;){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}r.head&&(r.head.xflags=255&l,r.head.os=l>>8),512&r.flags&&(z[0]=255&l,z[1]=l>>>8&255,r.check=L(r.check,z,2,0)),u=l=0,r.mode=5;case 5:if(1024&r.flags){for(;u<16;){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}r.length=l,r.head&&(r.head.extra_len=l),512&r.flags&&(z[0]=255&l,z[1]=l>>>8&255,r.check=L(r.check,z,2,0)),u=l=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((c=o<(c=r.length)?o:c)&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),B.arraySet(r.head.extra,n,a,c,k)),512&r.flags&&(r.check=L(r.check,n,c,a)),o-=c,a+=c,r.length-=c),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===o)break e;for(c=0;k=n[a+c++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k)),k&&c<o;);if(512&r.flags&&(r.check=L(r.check,n,c,a)),o-=c,a+=c,k)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===o)break e;for(c=0;k=n[a+c++],r.head&&k&&r.length<65536&&(r.head.comment+=String.fromCharCode(k)),k&&c<o;);if(512&r.flags&&(r.check=L(r.check,n,c,a)),o-=c,a+=c,k)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;u<16;){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}if(l!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}u=l=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;u<32;){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}e.adler=r.check=U(l),u=l=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=s,e.avail_out=h,e.next_in=a,e.avail_in=o,r.hold=l,r.bits=u,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last)l>>>=7&u,u-=7&u,r.mode=27;else{for(;u<3;){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}switch(r.last=1&l,--u,3&(l>>>=1)){case 0:r.mode=14;break;case 1:I=O=void 0;var I,O=r;if(W){for(j=new B.Buf32(512),Z=new B.Buf32(32),I=0;I<144;)O.lens[I++]=8;for(;I<256;)O.lens[I++]=9;for(;I<280;)O.lens[I++]=7;for(;I<288;)O.lens[I++]=8;for(R(1,O.lens,0,288,j,0,O.work,{bits:9}),I=0;I<32;)O.lens[I++]=5;R(2,O.lens,0,32,Z,0,O.work,{bits:5}),W=!1}if(O.lencode=j,O.lenbits=9,O.distcode=Z,O.distbits=5,r.mode=20,6!==t)break;l>>>=2,u-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}l>>>=2,u-=2}break;case 14:for(l>>>=7&u,u-=7&u;u<32;){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}if((65535&l)!=(l>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&l,u=l=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(c=r.length){if(0===(c=h<(c=o<c?o:c)?h:c))break e;B.arraySet(i,n,a,c,s),o-=c,a+=c,h-=c,s+=c,r.length-=c}else r.mode=12;break;case 17:for(;u<14;){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}if(r.nlen=257+(31&l),l>>>=5,u-=5,r.ndist=1+(31&l),l>>>=5,u-=5,r.ncode=4+(15&l),l>>>=4,u-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;u<3;){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}r.lens[A[r.have++]]=7&l,l>>>=3,u-=3}for(;r.have<19;)r.lens[A[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,E={bits:r.lenbits},x=R(0,r.lens,0,19,r.lencode,0,r.work,E),r.lenbits=E.bits,x){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;g=(C=r.lencode[l&(1<<r.lenbits)-1])>>>16&255,v=65535&C,!((_=C>>>24)<=u);){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}if(v<16)l>>>=_,u-=_,r.lens[r.have++]=v;else{if(16===v){for(S=_+2;u<S;){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}if(l>>>=_,u-=_,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}k=r.lens[r.have-1],c=3+(3&l),l>>>=2,u-=2}else if(17===v){for(S=_+3;u<S;){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}k=0,c=3+(7&(l>>>=_)),l>>>=3,u=u-_-3}else{for(S=_+7;u<S;){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}k=0,c=11+(127&(l>>>=_)),l>>>=7,u=u-_-7}if(r.have+c>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;c--;)r.lens[r.have++]=k}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,E={bits:r.lenbits},x=R(1,r.lens,0,r.nlen,r.lencode,0,r.work,E),r.lenbits=E.bits,x){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,E={bits:r.distbits},x=R(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,E),r.distbits=E.bits,x){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=o&&258<=h){e.next_out=s,e.avail_out=h,e.next_in=a,e.avail_in=o,r.hold=l,r.bits=u,D(e,f),s=e.next_out,i=e.output,h=e.avail_out,a=e.next_in,n=e.input,o=e.avail_in,l=r.hold,u=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;g=(C=r.lencode[l&(1<<r.lenbits)-1])>>>16&255,v=65535&C,!((_=C>>>24)<=u);){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}if(g&&0==(240&g)){for(b=_,w=g,y=v;g=(C=r.lencode[y+((l&(1<<b+w)-1)>>b)])>>>16&255,v=65535&C,!(b+(_=C>>>24)<=u);){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}l>>>=b,u-=b,r.back+=b}if(l>>>=_,u-=_,r.back+=_,r.length=v,0===g){r.mode=26;break}if(32&g){r.back=-1,r.mode=12;break}if(64&g){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&g,r.mode=22;case 22:if(r.extra){for(S=r.extra;u<S;){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}r.length+=l&(1<<r.extra)-1,l>>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;g=(C=r.distcode[l&(1<<r.distbits)-1])>>>16&255,v=65535&C,!((_=C>>>24)<=u);){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}if(0==(240&g)){for(b=_,w=g,y=v;g=(C=r.distcode[y+((l&(1<<b+w)-1)>>b)])>>>16&255,v=65535&C,!(b+(_=C>>>24)<=u);){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}l>>>=b,u-=b,r.back+=b}if(l>>>=_,u-=_,r.back+=_,64&g){e.msg="invalid distance code",r.mode=30;break}r.offset=v,r.extra=15&g,r.mode=24;case 24:if(r.extra){for(S=r.extra;u<S;){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}r.offset+=l&(1<<r.extra)-1,l>>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===h)break e;if(r.offset>(c=f-h)){if((c=r.offset-c)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}p=c>r.wnext?(c-=r.wnext,r.wsize-c):r.wnext-c,c>r.length&&(c=r.length),m=r.window}else m=i,p=s-r.offset,c=r.length;for(h-=c=h<c?h:c,r.length-=c;i[s++]=m[p++],--c;);0===r.length&&(r.mode=21);break;case 26:if(0===h)break e;i[s++]=r.length,h--,r.mode=21;break;case 27:if(r.wrap){for(;u<32;){if(0===o)break e;o--,l|=n[a++]<<u,u+=8}if(f-=h,e.total_out+=f,r.total+=f,f&&(e.adler=r.check=(r.flags?L:T)(r.check,i,f,s-f)),f=h,(r.flags?l:U(l))!==r.check){e.msg="incorrect data check",r.mode=30;break}u=l=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;u<32;){if(0===o)break e;o--,l+=n[a++]<<u,u+=8}if(l!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}u=l=0}r.mode=29;case 29:x=1;break e;case 30:x=-3;break e;case 31:return-4;default:return N}return e.next_out=s,e.avail_out=h,e.next_in=a,e.avail_in=o,r.hold=l,r.bits=u,(r.wsize||f!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&M(e,e.output,e.next_out,f-e.avail_out)?(r.mode=31,-4):(d-=e.avail_in,f-=e.avail_out,e.total_in+=d,e.total_out+=f,r.total+=f,r.wrap&&f&&(e.adler=r.check=(r.flags?L:T)(r.check,i,f,e.next_out-f)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),x=(0==d&&0===f||4===t)&&x===F?-5:x)},r.inflateEnd=function(e){var t;return e&&e.state?((t=e.state).window&&(t.window=null),e.state=null,F):N},r.inflateGetHeader=function(e,t){return!e||!e.state||0==(2&(e=e.state).wrap)?N:((e.head=t).done=!1,F)},r.inflateSetDictionary=function(e,t){var r,n=t.length;return!e||!e.state||0!==(r=e.state).wrap&&11!==r.mode?N:11===r.mode&&T(1,t,n,0)!==r.check?-3:M(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,F)},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){var D=e("../utils/common"),R=[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],F=[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],N=[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],P=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,r,n,i,a,s,o){for(var h,l,u,d,f,c,p,m,_,g=o.bits,v=0,b=0,w=0,y=0,k=0,x=0,E=0,S=0,C=0,z=0,A=null,I=0,O=new D.Buf16(16),B=new D.Buf16(16),T=null,L=0,v=0;v<=15;v++)O[v]=0;for(b=0;b<n;b++)O[t[r+b]]++;for(k=g,y=15;1<=y&&0===O[y];y--);if(y<k&&(k=y),0===y)i[a++]=20971520,i[a++]=20971520,o.bits=1;else{for(w=1;w<y&&0===O[w];w++);for(k<w&&(k=w),v=S=1;v<=15;v++)if((S=(S<<1)-O[v])<0)return-1;if(0<S&&(0===e||1!==y))return-1;for(B[1]=0,v=1;v<15;v++)B[v+1]=B[v]+O[v];for(b=0;b<n;b++)0!==t[r+b]&&(s[B[t[r+b]]++]=b);if(c=0===e?(A=T=s,19):1===e?(A=R,I-=257,T=F,L-=257,256):(A=N,T=P,-1),v=w,f=a,E=b=z=0,u=-1,d=(C=1<<(x=k))-1,1===e&&852<C||2===e&&592<C)return 1;for(;;){for(_=s[b]<c?(m=0,s[b]):s[b]>c?(m=T[L+s[b]],A[I+s[b]]):(m=96,0),h=1<<(p=v-E),w=l=1<<x;i[f+(z>>E)+(l-=h)]=p<<24|m<<16|_|0,0!==l;);for(h=1<<v-1;z&h;)h>>=1;if(0!==h?z=(z&h-1)+h:z=0,b++,0==--O[v]){if(v===y)break;v=t[r+s[b]]}if(k<v&&(z&d)!==u){for(f+=w,S=1<<(x=v-(E=0===E?k:E));x+E<y&&!((S-=O[x+E])<=0);)x++,S<<=1;if(C+=1<<x,1===e&&852<C||2===e&&592<C)return 1;i[u=z&d]=k<<24|x<<16|f-a|0}}0!==z&&(i[f+z]=v-E<<24|64<<16|0),o.bits=k}return 0}},{"../utils/common":41}],51:[function(e,t,r){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,F,t){var i=e("../utils/common");function r(e){for(var t=e.length;0<=--t;)e[t]=0}var n=16,h=[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],l=[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],o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],d=new Array(576),f=(r(d),new Array(60)),c=(r(f),new Array(512)),p=(r(c),new Array(256)),m=(r(p),new Array(29));r(m);var _,g,v,b=new Array(30);function w(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function y(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function k(e){return e<256?c[e]:c[256+(e>>>7)]}function a(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function x(e,t,r){e.bi_valid>n-r?(e.bi_buf|=t<<e.bi_valid&65535,a(e,e.bi_buf),e.bi_buf=t>>n-e.bi_valid,e.bi_valid+=r-n):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function E(e,t,r){x(e,r[2*t],r[2*t+1])}function S(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function C(e,t,r){for(var n,i=new Array(16),a=0,s=1;s<=15;s++)i[s]=a=a+r[s-1]<<1;for(n=0;n<=t;n++){var o=e[2*n+1];0!==o&&(e[2*n]=S(i[o]++,o))}}function z(e){for(var t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function A(e){8<e.bi_valid?a(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function s(e,t,r,n){var i=2*t,a=2*r;return e[i]<e[a]||e[i]===e[a]&&n[t]<=n[r]}function I(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&s(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!s(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function O(e,t,r){var n,i,a,s,o=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*o]<<8|e.pending_buf[e.d_buf+2*o+1],i=e.pending_buf[e.l_buf+o],o++,0==n?E(e,i,t):(E(e,(a=p[i])+256+1,t),0!==(s=h[a])&&x(e,i-=m[a],s),E(e,a=k(--n),r),0!==(s=l[a])&&x(e,n-=b[a],s)),o<e.last_lit;);E(e,256,t)}function B(e,t){var r,n,i,a=t.dyn_tree,s=t.stat_desc.static_tree,o=t.stat_desc.has_stree,h=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<h;r++)0!==a[2*r]?(e.heap[++e.heap_len]=l=r,e.depth[r]=0):a[2*r+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,o&&(e.static_len-=s[2*i+1]);for(t.max_code=l,r=e.heap_len>>1;1<=r;r--)I(e,a,r);for(i=h;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],I(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*i]=a[2*r]+a[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=i,e.heap[1]=i++,I(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1];for(var u,d,f,c,p,m=e,_=t.dyn_tree,g=t.max_code,v=t.stat_desc.static_tree,b=t.stat_desc.has_stree,w=t.stat_desc.extra_bits,y=t.stat_desc.extra_base,k=t.stat_desc.max_length,x=0,E=0;E<=15;E++)m.bl_count[E]=0;for(_[2*m.heap[m.heap_max]+1]=0,u=m.heap_max+1;u<573;u++)k<(E=_[2*_[2*(d=m.heap[u])+1]+1]+1)&&(E=k,x++),_[2*d+1]=E,g<d||(m.bl_count[E]++,c=0,y<=d&&(c=w[d-y]),p=_[2*d],m.opt_len+=p*(E+c),b&&(m.static_len+=p*(v[2*d+1]+c)));if(0!==x){do{for(E=k-1;0===m.bl_count[E];)E--}while(m.bl_count[E]--,m.bl_count[E+1]+=2,m.bl_count[k]--,0<(x-=2));for(E=k;0!==E;E--)for(d=m.bl_count[E];0!==d;)g<(f=m.heap[--u])||(_[2*f+1]!==E&&(m.opt_len+=(E-_[2*f+1])*_[2*f],_[2*f+1]=E),d--)}C(a,l,e.bl_count)}function T(e,t,r){var n,i,a=-1,s=t[1],o=0,h=7,l=4;for(0===s&&(h=138,l=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=s,s=t[2*(n+1)+1],++o<h&&i===s||(o<l?e.bl_tree[2*i]+=o:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):o<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=i,l=(o=0)===s?(h=138,3):i===s?(h=6,3):(h=7,4))}function L(e,t,r){var n,i,a=-1,s=t[1],o=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=r;n++)if(i=s,s=t[2*(n+1)+1],!(++o<h&&i===s)){if(o<l)for(;E(e,i,e.bl_tree),0!=--o;);else 0!==i?(i!==a&&(E(e,i,e.bl_tree),o--),E(e,16,e.bl_tree),x(e,o-3,2)):o<=10?(E(e,17,e.bl_tree),x(e,o-3,3)):(E(e,18,e.bl_tree),x(e,o-11,7));a=i,l=(o=0)===s?(h=138,3):i===s?(h=6,3):(h=7,4)}}r(b);var D=!1;function R(e,t,r,n){x(e,0+(n?1:0),3),n=t,t=r,A(r=e),a(r,t),a(r,~t),i.arraySet(r.pending_buf,r.window,n,t,r.pending),r.pending+=t}t._tr_init=function(e){if(!D){for(var t,r,n,i,a=new Array(16),s=n=0;s<28;s++)for(m[s]=n,t=0;t<1<<h[s];t++)p[n++]=s;for(p[n-1]=s,s=i=0;s<16;s++)for(b[s]=i,t=0;t<1<<l[s];t++)c[i++]=s;for(i>>=7;s<30;s++)for(b[s]=i<<7,t=0;t<1<<l[s]-7;t++)c[256+i++]=s;for(r=0;r<=15;r++)a[r]=0;for(t=0;t<=143;)d[2*t+1]=8,t++,a[8]++;for(;t<=255;)d[2*t+1]=9,t++,a[9]++;for(;t<=279;)d[2*t+1]=7,t++,a[7]++;for(;t<=287;)d[2*t+1]=8,t++,a[8]++;for(C(d,287,a),t=0;t<30;t++)f[2*t+1]=5,f[2*t]=S(t,5);_=new w(d,h,257,286,15),g=new w(f,l,0,30,15),v=new w(new Array(0),o,0,19,7),D=!0}e.l_desc=new y(e.dyn_ltree,_),e.d_desc=new y(e.dyn_dtree,g),e.bl_desc=new y(e.bl_tree,v),e.bi_buf=0,e.bi_valid=0,z(e)},t._tr_stored_block=R,t._tr_flush_block=function(e,t,r,n){var i,a,s,o=0;if(0<e.level?(2===e.strm.data_type&&(e.strm.data_type=(e=>{for(var t=4093624447,r=0;r<=31;r++,t>>>=1)if(1&t&&0!==e.dyn_ltree[2*r])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(r=32;r<256;r++)if(0!==e.dyn_ltree[2*r])return 1;return 0})(e)),B(e,e.l_desc),B(e,e.d_desc),o=(e=>{var t;for(T(e,e.dyn_ltree,e.l_desc.max_code),T(e,e.dyn_dtree,e.d_desc.max_code),B(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*u[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),(a=e.static_len+3+7>>>3)<=(i=e.opt_len+3+7>>>3)&&(i=a)):i=a=r+5,r+4<=i&&-1!==t)R(e,t,r,n);else if(4===e.strategy||a===i)x(e,2+(n?1:0),3),O(e,d,f);else{x(e,4+(n?1:0),3);var h=e,l=(t=e.l_desc.max_code+1,r=e.d_desc.max_code+1,o+1);for(x(h,t-257,5),x(h,r-1,5),x(h,l-4,4),s=0;s<l;s++)x(h,h.bl_tree[2*u[s]+1],3);L(h,h.dyn_ltree,t-1),L(h,h.dyn_dtree,r-1),O(e,e.dyn_ltree,e.dyn_dtree)}z(e),n&&A(e)},t._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(p[r]+256+1)]++,e.dyn_dtree[2*k(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){x(e,2,3),E(e,256,d),16===(e=e).bi_valid?(a(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,r){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){!function(e){function i(e){delete u[e]}function a(e){if(d)setTimeout(a,0,e);else{var t=u[e];if(t){d=!0;try{var r=t.callback,n=t.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(s,n)}}finally{i(e),d=!1}}}}function t(e){e.source===r&&"string"==typeof e.data&&0===e.data.indexOf(h)&&a(+e.data.slice(h.length))}var r,s,n,o,h,l,u,d,f,c;(r="undefined"==typeof self?void 0===e?this:e:self).setImmediate||(l=1,d=!(u={}),f=r.document,e=(e=Object.getPrototypeOf&&Object.getPrototypeOf(r))&&e.setTimeout?e:r,c="[object process]"==={}.toString.call(r.process)?function(e){process.nextTick(function(){a(e)})}:(()=>{var e,t;if(r.postMessage&&!r.importScripts)return e=!0,t=r.onmessage,r.onmessage=function(){e=!1},r.postMessage("","*"),r.onmessage=t,e})()?(h="setImmediate$"+Math.random()+"$",r.addEventListener?r.addEventListener("message",t,!1):r.attachEvent("onmessage",t),function(e){r.postMessage(h+e,"*")}):r.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){a(e.data)},function(e){o.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(n=f.documentElement,function(e){var t=f.createElement("script");t.onreadystatechange=function(){a(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(a,0,e)},e.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];return u[l]={callback:e,args:t},c(l),l++},e.clearImmediate=i)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)});var ImageSequenceAnimationLibrary=(()=>{function a(e){for(var t,r=/([A-Za-z0-9]+)=(\d+)/g,n=[];null!==(t=r.exec(e));){if(3!==t.length)throw new Error("No valid numbers in the "+e+" filename found.");n.push({name:t[1],value:t[2]})}return n}function r(e,t){for(var r=0;r<e.length;++r)e[r](t)}function i(e,t,r,n,i){this.name=e,this.min=t,this.max=r,this.step=n,this.numbDigits=0,this.onChangeListeners=[],this.setDefault(void 0===i?this.min:i);t=(this.min+(this.numbValues()-1)*this.step).toFixed((e=this.max,Math.floor(e)!==e&&e.toString().split(".")[1].length||0));if(t!==String(this.max))throw new Error("The value range (min: "+this.min+", max: "+this.max+", step: "+this.step+") does not fit. It is not possible to reach the maximum from the minimum with the given step size. With the current setting, there are only "+this.numbValues()+" steps reaching "+t+" instead of "+this.max+".")}function n(e){this.animation=e;e=this.animation.div.getElementsByTagName("canvas");if(1!==e.length)throw new Error("The div #"+this.divID+" must contain exactly one canvas element.");this.canvas=e[0],this.ctx=this.canvas.getContext("2d"),this.animation.addLoadingFinishedListener(l.bind(this))}function l(e){var t;!1!==(e=void 0===e?this.animation.getImage():e)&&void 0!==e&&(t=0,e.width!==this.canvas.width&&(t=this.ctx.globalAlpha,this.canvas.width=e.width,this.ctx.globalAlpha=t),e.height!==this.canvas.height&&(t=this.ctx.globalAlpha,this.canvas.height=e.height,this.ctx.globalAlpha=t),this.ctx.drawImage(e,0,0,this.canvas.width,this.canvas.height))}function e(e,t){if(void 0===e)throw new Error("The parameter divID is missing but required.");if(this.divID=e.startsWith("#")?e.substr(1):e,this.div=document.getElementById(this.divID),null===this.div)throw new Error("Could not find a div with the id "+this.divID+".");this.loadingFinishedListeners=[],this.elementLoadedListeners=[],this.parameters={},this.parameterNames=[],this.loadedElements=0,this.data={},this.startedLoading=!1,this.view=new(void 0===t?n:t)(this)}function s(e,t){void 0!==t?this.data[t]=e:this.data[u.call(this)]=e}function o(){return Object.keys(this.data).length}function h(){this.loadedElements++,r(this.elementLoadedListeners),t.call(this)&&r(this.loadingFinishedListeners)}function u(){for(var e="",t=0;t<this.parameterNames.length;++t){var r=this.parameterNames[t];e+=r+"="+this.parameters[r].getImgId()}return e}function t(){return this.loadedElements===this.totalElements()}function d(){var e="data-zip_src";if(this.div.hasAttribute(e))return this.div.getAttribute(e);throw new Error("The div "+this.divID+" does not have an attribute "+e+". This is required and should point to the zip archive containing the data.")}return i.prototype.setDefault=function(e){this.defaultValue=e,this.setCurrent(this.defaultValue)},i.prototype.setCurrent=function(e){if(e<this.min||e>this.max)throw new Error("The value "+e+" is out of range.");var t=this.current;this.current=e,t!==this.current&&r(this.onChangeListeners,this.current)},i.prototype.numbValues=function(){return Math.round((this.max-this.min)/this.step)+1},i.prototype.getImgId=function(){var e,t,r=Math.round((this.current-this.min)*(1/this.step));return(r<0||""===this.current)&&(this.setCurrent(this.min),r=0),r>=this.numbValues()&&(this.setCurrent(this.max),r=this.numbValues()-1),r=r,e=this.numbDigits,t=t||"0",(r+="").length>=e?r:new Array(e-r.length+1).join(t)+r},i.prototype.addOnChangeListener=function(e){this.onChangeListeners.push(e.bind(this))},n.prototype.parameterChanged=function(){l.call(this)},e.prototype.getImage=function(){if(this.data.hasOwnProperty(u.call(this)))return this.data[u.call(this)];throw new Error("The zip archive does not contain an image with the name "+u.call(this)+". Make sure you set the control elements in the same order as defined in the zip archive.")},e.prototype.addControl=function(e){e.init(this);var t=e.getParameters();Array.isArray(t)||(console.warn("The getParameters() method should return an array of parameters."),t=[t]);for(var r=0;r<t.length;++r){var n=t[r];n instanceof i||console.warn("The parameters should be ParameterAnimation objects. Got:\n"+JSON.stringify(n)),n.addOnChangeListener(function(){this.view.parameterChanged()}.bind(this)),this.parameters[n.name]=n,this.parameterNames.push(n.name)}},e.prototype.addLoadingFinishedListener=function(e){this.loadingFinishedListeners.push(e.bind(this))},e.prototype.addElementLoadedListener=function(e){this.elementLoadedListeners.push(e.bind(this))},e.prototype.totalElements=function(){for(var e=1,t=0;t<this.parameterNames.length;++t){var r=this.parameterNames[t];e*=this.parameters[r].numbValues()}return e},e.prototype.isLoading=function(){return 0<this.loadedElements&&!t.call(this)},e.prototype.loadFromZip=function(r){if(void 0===r&&(r=d.call(this)),this.isLoading())throw new Error("Cannot load the file "+r+" because the loading process already started.");this.startedLoading=!0;var n=this,e=new XMLHttpRequest;e.open("GET",r),e.responseType="arraybuffer",e.onload=function(){if(200!==this.status)throw new Error("Could not load the zip archive "+r+" (status code: "+this.status+").");JSZip.loadAsync(this.response).then(function(e){e.folder("").forEach(function(t,e){t.endsWith(".png")?(mime="image/png",e.async("uint8array").then(function(e){e=new Blob([e],{type:mime});!function(e,t){var r=new Image,n=this,t=(r.onload=function(){h.call(n)},a(t)),i="";t.forEach(function(e){if(void 0===n.parameters[e.name])throw new Error("The parameter "+e.name+" is part of the filenames, but no corresponding control element is set.");i+=e.name+"="+e.value,0===o.call(n)&&(n.parameters[e.name].numbDigits=e.value.length)}),s.call(this,r,i),r.src=e}.call(n,URL.createObjectURL(e),t)})):t.endsWith(".json")?(mime="application/json",e.async("string").then(function(e){!function(e,t){var t=a(t),r="",n=this;t.forEach(function(e){if(void 0===n.parameters[e.name])throw new Error("The parameter "+e.name+" is part of the filenames, but no corresponding control element is set.");r+=e.name+"="+e.value,0===o.call(n)&&(n.parameters[e.name].numbDigits=e.value.length)}),s.call(this,e,r),h.call(this)}.call(n,JSON.parse(e),t)})):console.warn("The zip archive "+r+" contains the file "+t+" which is unsupported. The file is ignored.")})})},e.send()},e.prototype.loadFromZipLazy=function(e,s){if(void 0===e&&(e=".png"),void 0===s&&(s=d.call(this)),this.isLoading())throw new Error("Cannot load the file "+s+" because the loading process already started.");var e=s.replace(/\.[^.]+$/,e),o=this,h=new Image;h.src=e,h.onload=function(){function e(){i(a,.5)}function t(){i(a,1)}function r(){i("Loading...",1),o.removeMouseListeners(),o.loadFromZip(s)}var n=!1;function i(e,t){var r=o.view.canvas,n=o.view.ctx;n.save(),n.clearRect(0,0,r.width,r.height),n.globalAlpha=.3,l.call(o.view,h),n.restore(),n.save(),n.textAlign="center",n.font="50px Georgia",n.globalAlpha=t,n.fillText(e,r.width/2,r.height/2),n.restore()}o.removeMouseListeners=function(){n&&(o.view.canvas.removeEventListener("mouseup",r),o.view.canvas.removeEventListener("mousemove",e),o.view.canvas.removeEventListener("mouseout",t),n=!1)},o.addElementLoadedListener(function(){n&&o.removeMouseListeners(),i("Loading... ("+Math.round(this.loadedElements/o.totalElements()*100)+" %)",1)});var a="Click to load";i(a,1),n=!0,o.view.canvas.addEventListener("mouseup",r),o.view.canvas.addEventListener("mousemove",e),o.view.canvas.addEventListener("mouseout",t)}},e.prototype.syncAnimations=function(n,e,t){if(e.length!==t.length)throw new Error("Both list of names (parameter names from the other animation object, own parameter names) must have the same length.");var i=this;i.addElementLoadedListener(function(){n.startedLoading||n.canvas.dispatchEvent(new Event("mouseup"))}),n.addElementLoadedListener(function(){i.startedLoading||i.view.canvas.dispatchEvent(new Event("mouseup"))});for(var r=0;r<e.length;++r){if(!n.parameters.hasOwnProperty(e[r]))throw new Error("The parameters of the other animation object do not have a parameter named "+e[r]+".");if(!i.parameters.hasOwnProperty(t[r]))throw new Error("The parameters of the own animation object do not have a parameter named "+e[r]+".");((t,r)=>{n.parameters[t].addOnChangeListener(function(e){i.parameters[r].setCurrent(e)}),i.parameters[r].addOnChangeListener(function(e){n.parameters[t].setCurrent(e)})})(e[r],t[r])}},{ImageSequenceAnimation:e,ParameterAnimation:i}})(),ImageSequenceAnimation=ImageSequenceAnimationLibrary.ImageSequenceAnimation,ParameterAnimation=ImageSequenceAnimationLibrary.ParameterAnimation;function HTMLSlider(i){var a=new ParameterAnimation(i.name,i.min,i.max,i.step,i.default);this.init=function(e){var t=document.querySelector("#"+e.divID+" input[type='range'][name='"+i.name+"']"),r=document.querySelector("#"+e.divID+" input[type='number'][name='"+i.name+"']"),n=(t.addEventListener("input",function(){a.setCurrent(this.value)}),r.addEventListener("input",function(){a.setCurrent(this.value)}),Math.abs(a.max)>Math.abs(a.min)?Math.abs(a.max):Math.abs(a.min));1!==a.step&&(n*=20);r.style.width=(n=n,Math.ceil(Math.log10(n+1))+2+"em"),t.min=a.min,t.max=a.max,t.step=a.step,t.value=a.defaultValue,r.min=a.min,r.max=a.max,r.step=a.step,r.value=a.defaultValue,t.disabled=!0,r.disabled=!0,a.addOnChangeListener(function(e){t.value=e,r.value=e}),e.addLoadingFinishedListener(function(){t.disabled=!1,r.disabled=!1})},this.getParameters=function(){return[a]}}function HTMLCheckbox(n){this.init=function(e){var t=document.querySelector("#"+e.divID+" input[type='checkbox'][name='"+n.name+"']"),r=(this.parameter=new ParameterAnimation(n.name,0,1,1,t.checked),this);t.addEventListener("change",function(){r.parameter.setCurrent(this.checked)}),t.checked=this.parameter.current,t.disabled=!0,e.addLoadingFinishedListener(function(){t.disabled=!1}),this.parameter.addOnChangeListener(function(e){t.checked=e})},this.getParameters=function(){return[this.parameter]}}function HTMLSelection(h){this.init=function(e){for(var t=document.querySelector("#"+e.divID+" select[name='"+h.name+"']"),r=t.options.length-1,n=0,i=!1,a=0;a<t.options.length;++a){var s=parseInt(t.options[a].value);if(s<0||r<s)throw new Error("The value "+s+" for the option "+t.options[a].label+" is not a valid index.");t.options[a].selected&&(i?console.warn("The selection "+t.name+" has at least two options with an default value. Only the first default value ("+n+") is used."):(n=a,i=!0))}this.parameter=new ParameterAnimation(h.name,0,r,1,n);var o=this;t.addEventListener("change",function(){o.parameter.setCurrent(parseInt(this.value))}),t.value=this.parameter.defaultValue,t.disabled=!0,e.addLoadingFinishedListener(function(){t.disabled=!1}),this.parameter.addOnChangeListener(function(e){t.value=e})},this.getParameters=function(){return[this.parameter]}}function CanvasLocator(e,t,r,n,i,a){function s(e,t){var r,n;!1===d||!1===f||(t=t,r=(n=e).getBoundingClientRect(),(t={x:Math.floor((t.clientX-r.left)/(r.right-r.left)*n.width),y:Math.floor((t.clientY-r.top)/(r.bottom-r.top)*n.height)}).x<a.left)||t.x>e.width-a.right-1||t.y<a.top||t.y>e.height-a.bottom-1||(r=(t.x-a.left)/(e.width-l-1)*(o.max-o.min)+o.min,n=(e.height-u-1-(t.y-a.top))/(e.height-u-1)*(h.max-h.min)+h.min,o.setCurrent(r),h.setCurrent(n))}var o=new ParameterAnimation(e.xName,t.xMin,r.xMax,n.xStep,i.xDefault),h=new ParameterAnimation(e.yName,t.yMin,r.yMax,n.yStep,i.yDefault),l=a.left+a.right,u=a.top+a.bottom,d=!1,f=!1;this.init=function(r){r.addLoadingFinishedListener(function(){var e,t;t=!(f=d=!0),(e=r).view.canvas.addEventListener("mousedown",function(e){s(this,e),t=!0}),e.view.canvas.addEventListener("mouseup",function(){t=!1}),e.view.canvas.addEventListener("mousemove",function(e){t&&s(this,e)})})},this.getParameters=function(){return[o,h]}}