FileSaver.min.9c0487ba.js 97 KB

123456789101112
  1. import{U as ct}from"./index.76214426.js";function yt(pt){throw new Error('Could not dynamically require "'+pt+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var St={exports:{}};/*!
  2. JSZip v3.10.1 - A JavaScript class for generating and reading zip files
  3. <http://stuartk.com/jszip>
  4. (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
  5. Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
  6. JSZip uses the library pako released under the MIT license :
  7. https://github.com/nodeca/pako/blob/main/LICENSE
  8. */(function(pt,zt){(function(b){pt.exports=b()})(function(){return function b(U,k,l){function o(p,g){if(!k[p]){if(!U[p]){var _=typeof yt=="function"&&yt;if(!g&&_)return _(p,!0);if(i)return i(p,!0);var m=new Error("Cannot find module '"+p+"'");throw m.code="MODULE_NOT_FOUND",m}var n=k[p]={exports:{}};U[p][0].call(n.exports,function(d){var r=U[p][1][d];return o(r||d)},n,n.exports,b,U,k,l)}return k[p].exports}for(var i=typeof yt=="function"&&yt,h=0;h<l.length;h++)o(l[h]);return o}({1:[function(b,U,k){var l=b("./utils"),o=b("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";k.encode=function(h){for(var p,g,_,m,n,d,r,u=[],a=0,c=h.length,y=c,S=l.getTypeOf(h)!=="string";a<h.length;)y=c-a,_=S?(p=h[a++],g=a<c?h[a++]:0,a<c?h[a++]:0):(p=h.charCodeAt(a++),g=a<c?h.charCodeAt(a++):0,a<c?h.charCodeAt(a++):0),m=p>>2,n=(3&p)<<4|g>>4,d=1<y?(15&g)<<2|_>>6:64,r=2<y?63&_:64,u.push(i.charAt(m)+i.charAt(n)+i.charAt(d)+i.charAt(r));return u.join("")},k.decode=function(h){var p,g,_,m,n,d,r=0,u=0,a="data:";if(h.substr(0,a.length)===a)throw new Error("Invalid base64 input, it looks like a data url.");var c,y=3*(h=h.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(h.charAt(h.length-1)===i.charAt(64)&&y--,h.charAt(h.length-2)===i.charAt(64)&&y--,y%1!=0)throw new Error("Invalid base64 input, bad content length.");for(c=o.uint8array?new Uint8Array(0|y):new Array(0|y);r<h.length;)p=i.indexOf(h.charAt(r++))<<2|(m=i.indexOf(h.charAt(r++)))>>4,g=(15&m)<<4|(n=i.indexOf(h.charAt(r++)))>>2,_=(3&n)<<6|(d=i.indexOf(h.charAt(r++))),c[u++]=p,n!==64&&(c[u++]=g),d!==64&&(c[u++]=_);return c}},{"./support":30,"./utils":32}],2:[function(b,U,k){var l=b("./external"),o=b("./stream/DataWorker"),i=b("./stream/Crc32Probe"),h=b("./stream/DataLengthProbe");function p(g,_,m,n,d){this.compressedSize=g,this.uncompressedSize=_,this.crc32=m,this.compression=n,this.compressedContent=d}p.prototype={getContentWorker:function(){var g=new o(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")),_=this;return g.on("end",function(){if(this.streamInfo.data_length!==_.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),g},getCompressedWorker:function(){return new o(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},p.createWorkerFrom=function(g,_,m){return g.pipe(new i).pipe(new h("uncompressedSize")).pipe(_.compressWorker(m)).pipe(new h("compressedSize")).withStreamInfo("compression",_)},U.exports=p},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(b,U,k){var l=b("./stream/GenericWorker");k.STORE={magic:"\0\0",compressWorker:function(){return new l("STORE compression")},uncompressWorker:function(){return new l("STORE decompression")}},k.DEFLATE=b("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(b,U,k){var l=b("./utils"),o=function(){for(var i,h=[],p=0;p<256;p++){i=p;for(var g=0;g<8;g++)i=1&i?3988292384^i>>>1:i>>>1;h[p]=i}return h}();U.exports=function(i,h){return i!==void 0&&i.length?l.getTypeOf(i)!=="string"?function(p,g,_,m){var n=o,d=m+_;p^=-1;for(var r=m;r<d;r++)p=p>>>8^n[255&(p^g[r])];return-1^p}(0|h,i,i.length,0):function(p,g,_,m){var n=o,d=m+_;p^=-1;for(var r=m;r<d;r++)p=p>>>8^n[255&(p^g.charCodeAt(r))];return-1^p}(0|h,i,i.length,0):0}},{"./utils":32}],5:[function(b,U,k){k.base64=!1,k.binary=!1,k.dir=!1,k.createFolders=!0,k.date=null,k.compression=null,k.compressionOptions=null,k.comment=null,k.unixPermissions=null,k.dosPermissions=null},{}],6:[function(b,U,k){var l=null;l=typeof Promise<"u"?Promise:b("lie"),U.exports={Promise:l}},{lie:37}],7:[function(b,U,k){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=b("pako"),i=b("./utils"),h=b("./stream/GenericWorker"),p=l?"uint8array":"array";function g(_,m){h.call(this,"FlateWorker/"+_),this._pako=null,this._pakoAction=_,this._pakoOptions=m,this.meta={}}k.magic="\b\0",i.inherits(g,h),g.prototype.processChunk=function(_){this.meta=_.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(p,_.data),!1)},g.prototype.flush=function(){h.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},g.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this._pako=null},g.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var _=this;this._pako.onData=function(m){_.push({data:m,meta:_.meta})}},k.compressWorker=function(_){return new g("Deflate",_)},k.uncompressWorker=function(){return new g("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(b,U,k){function l(n,d){var r,u="";for(r=0;r<d;r++)u+=String.fromCharCode(255&n),n>>>=8;return u}function o(n,d,r,u,a,c){var y,S,x=n.file,D=n.compression,O=c!==p.utf8encode,P=i.transformTo("string",c(x.name)),I=i.transformTo("string",p.utf8encode(x.name)),M=x.comment,q=i.transformTo("string",c(M)),v=i.transformTo("string",p.utf8encode(M)),B=I.length!==x.name.length,e=v.length!==M.length,T="",J="",L="",$=x.dir,j=x.date,V={crc32:0,compressedSize:0,uncompressedSize:0};d&&!r||(V.crc32=n.crc32,V.compressedSize=n.compressedSize,V.uncompressedSize=n.uncompressedSize);var C=0;d&&(C|=8),O||!B&&!e||(C|=2048);var E=0,X=0;$&&(E|=16),a==="UNIX"?(X=798,E|=function(H,nt){var ot=H;return H||(ot=nt?16893:33204),(65535&ot)<<16}(x.unixPermissions,$)):(X=20,E|=function(H){return 63&(H||0)}(x.dosPermissions)),y=j.getUTCHours(),y<<=6,y|=j.getUTCMinutes(),y<<=5,y|=j.getUTCSeconds()/2,S=j.getUTCFullYear()-1980,S<<=4,S|=j.getUTCMonth()+1,S<<=5,S|=j.getUTCDate(),B&&(J=l(1,1)+l(g(P),4)+I,T+="up"+l(J.length,2)+J),e&&(L=l(1,1)+l(g(q),4)+v,T+="uc"+l(L.length,2)+L);var G="";return G+=`
  9. \0`,G+=l(C,2),G+=D.magic,G+=l(y,2),G+=l(S,2),G+=l(V.crc32,4),G+=l(V.compressedSize,4),G+=l(V.uncompressedSize,4),G+=l(P.length,2),G+=l(T.length,2),{fileRecord:_.LOCAL_FILE_HEADER+G+P+T,dirRecord:_.CENTRAL_FILE_HEADER+l(X,2)+G+l(q.length,2)+"\0\0\0\0"+l(E,4)+l(u,4)+P+T+q}}var i=b("../utils"),h=b("../stream/GenericWorker"),p=b("../utf8"),g=b("../crc32"),_=b("../signature");function m(n,d,r,u){h.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=r,this.encodeFileName=u,this.streamFiles=n,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(m,h),m.prototype.push=function(n){var d=n.meta.percent||0,r=this.entriesCount,u=this._sources.length;this.accumulate?this.contentBuffer.push(n):(this.bytesWritten+=n.data.length,h.prototype.push.call(this,{data:n.data,meta:{currentFile:this.currentFile,percent:r?(d+100*(r-u-1))/r:100}}))},m.prototype.openedSource=function(n){this.currentSourceOffset=this.bytesWritten,this.currentFile=n.file.name;var d=this.streamFiles&&!n.file.dir;if(d){var r=o(n,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},m.prototype.closedSource=function(n){this.accumulate=!1;var d=this.streamFiles&&!n.file.dir,r=o(n,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),d)this.push({data:function(u){return _.DATA_DESCRIPTOR+l(u.crc32,4)+l(u.compressedSize,4)+l(u.uncompressedSize,4)}(n),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},m.prototype.flush=function(){for(var n=this.bytesWritten,d=0;d<this.dirRecords.length;d++)this.push({data:this.dirRecords[d],meta:{percent:100}});var r=this.bytesWritten-n,u=function(a,c,y,S,x){var D=i.transformTo("string",x(S));return _.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(a,2)+l(a,2)+l(c,4)+l(y,4)+l(D.length,2)+D}(this.dirRecords.length,r,n,this.zipComment,this.encodeFileName);this.push({data:u,meta:{percent:100}})},m.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},m.prototype.registerPrevious=function(n){this._sources.push(n);var d=this;return n.on("data",function(r){d.processChunk(r)}),n.on("end",function(){d.closedSource(d.previous.streamInfo),d._sources.length?d.prepareNextSource():d.end()}),n.on("error",function(r){d.error(r)}),this},m.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},m.prototype.error=function(n){var d=this._sources;if(!h.prototype.error.call(this,n))return!1;for(var r=0;r<d.length;r++)try{d[r].error(n)}catch{}return!0},m.prototype.lock=function(){h.prototype.lock.call(this);for(var n=this._sources,d=0;d<n.length;d++)n[d].lock()},U.exports=m},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(b,U,k){var l=b("../compressions"),o=b("./ZipFileWorker");k.generateWorker=function(i,h,p){var g=new o(h.streamFiles,p,h.platform,h.encodeFileName),_=0;try{i.forEach(function(m,n){_++;var d=function(c,y){var S=c||y,x=l[S];if(!x)throw new Error(S+" is not a valid compression method !");return x}(n.options.compression,h.compression),r=n.options.compressionOptions||h.compressionOptions||{},u=n.dir,a=n.date;n._compressWorker(d,r).withStreamInfo("file",{name:m,dir:u,date:a,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(g)}),g.entriesCount=_}catch(m){g.error(m)}return g}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(b,U,k){function l(){if(!(this instanceof l))return new l;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 o=new l;for(var i in this)typeof this[i]!="function"&&(o[i]=this[i]);return o}}(l.prototype=b("./object")).loadAsync=b("./load"),l.support=b("./support"),l.defaults=b("./defaults"),l.version="3.10.1",l.loadAsync=function(o,i){return new l().loadAsync(o,i)},l.external=b("./external"),U.exports=l},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(b,U,k){var l=b("./utils"),o=b("./external"),i=b("./utf8"),h=b("./zipEntries"),p=b("./stream/Crc32Probe"),g=b("./nodejsUtils");function _(m){return new o.Promise(function(n,d){var r=m.decompressed.getContentWorker().pipe(new p);r.on("error",function(u){d(u)}).on("end",function(){r.streamInfo.crc32!==m.decompressed.crc32?d(new Error("Corrupted zip : CRC32 mismatch")):n()}).resume()})}U.exports=function(m,n){var d=this;return n=l.extend(n||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),g.isNode&&g.isStream(m)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):l.prepareContent("the loaded zip file",m,!0,n.optimizedBinaryString,n.base64).then(function(r){var u=new h(n);return u.load(r),u}).then(function(r){var u=[o.Promise.resolve(r)],a=r.files;if(n.checkCRC32)for(var c=0;c<a.length;c++)u.push(_(a[c]));return o.Promise.all(u)}).then(function(r){for(var u=r.shift(),a=u.files,c=0;c<a.length;c++){var y=a[c],S=y.fileNameStr,x=l.resolve(y.fileNameStr);d.file(x,y.decompressed,{binary:!0,optimizedBinaryString:!0,date:y.date,dir:y.dir,comment:y.fileCommentStr.length?y.fileCommentStr:null,unixPermissions:y.unixPermissions,dosPermissions:y.dosPermissions,createFolders:n.createFolders}),y.dir||(d.file(x).unsafeOriginalName=S)}return u.zipComment.length&&(d.comment=u.zipComment),d})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(b,U,k){var l=b("../utils"),o=b("../stream/GenericWorker");function i(h,p){o.call(this,"Nodejs stream input adapter for "+h),this._upstreamEnded=!1,this._bindStream(p)}l.inherits(i,o),i.prototype._bindStream=function(h){var p=this;(this._stream=h).pause(),h.on("data",function(g){p.push({data:g,meta:{percent:0}})}).on("error",function(g){p.isPaused?this.generatedError=g:p.error(g)}).on("end",function(){p.isPaused?p._upstreamEnded=!0:p.end()})},i.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},U.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(b,U,k){var l=b("readable-stream").Readable;function o(i,h,p){l.call(this,h),this._helper=i;var g=this;i.on("data",function(_,m){g.push(_)||g._helper.pause(),p&&p(m)}).on("error",function(_){g.emit("error",_)}).on("end",function(){g.push(null)})}b("../utils").inherits(o,l),o.prototype._read=function(){this._helper.resume()},U.exports=o},{"../utils":32,"readable-stream":16}],14:[function(b,U,k){U.exports={isNode:typeof Buffer<"u",newBufferFrom:function(l,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(l,o);if(typeof l=="number")throw new Error('The "data" argument must not be a number');return new Buffer(l,o)},allocBuffer:function(l){if(Buffer.alloc)return Buffer.alloc(l);var o=new Buffer(l);return o.fill(0),o},isBuffer:function(l){return Buffer.isBuffer(l)},isStream:function(l){return l&&typeof l.on=="function"&&typeof l.pause=="function"&&typeof l.resume=="function"}}},{}],15:[function(b,U,k){function l(x,D,O){var P,I=i.getTypeOf(D),M=i.extend(O||{},g);M.date=M.date||new Date,M.compression!==null&&(M.compression=M.compression.toUpperCase()),typeof M.unixPermissions=="string"&&(M.unixPermissions=parseInt(M.unixPermissions,8)),M.unixPermissions&&16384&M.unixPermissions&&(M.dir=!0),M.dosPermissions&&16&M.dosPermissions&&(M.dir=!0),M.dir&&(x=a(x)),M.createFolders&&(P=u(x))&&c.call(this,P,!0);var q=I==="string"&&M.binary===!1&&M.base64===!1;O&&O.binary!==void 0||(M.binary=!q),(D instanceof _&&D.uncompressedSize===0||M.dir||!D||D.length===0)&&(M.base64=!1,M.binary=!0,D="",M.compression="STORE",I="string");var v=null;v=D instanceof _||D instanceof h?D:d.isNode&&d.isStream(D)?new r(x,D):i.prepareContent(x,D,M.binary,M.optimizedBinaryString,M.base64);var B=new m(x,v,M);this.files[x]=B}var o=b("./utf8"),i=b("./utils"),h=b("./stream/GenericWorker"),p=b("./stream/StreamHelper"),g=b("./defaults"),_=b("./compressedObject"),m=b("./zipObject"),n=b("./generate"),d=b("./nodejsUtils"),r=b("./nodejs/NodejsStreamInputAdapter"),u=function(x){x.slice(-1)==="/"&&(x=x.substring(0,x.length-1));var D=x.lastIndexOf("/");return 0<D?x.substring(0,D):""},a=function(x){return x.slice(-1)!=="/"&&(x+="/"),x},c=function(x,D){return D=D!==void 0?D:g.createFolders,x=a(x),this.files[x]||l.call(this,x,null,{dir:!0,createFolders:D}),this.files[x]};function y(x){return Object.prototype.toString.call(x)==="[object RegExp]"}var S={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(x){var D,O,P;for(D in this.files)P=this.files[D],(O=D.slice(this.root.length,D.length))&&D.slice(0,this.root.length)===this.root&&x(O,P)},filter:function(x){var D=[];return this.forEach(function(O,P){x(O,P)&&D.push(P)}),D},file:function(x,D,O){if(arguments.length!==1)return x=this.root+x,l.call(this,x,D,O),this;if(y(x)){var P=x;return this.filter(function(M,q){return!q.dir&&P.test(M)})}var I=this.files[this.root+x];return I&&!I.dir?I:null},folder:function(x){if(!x)return this;if(y(x))return this.filter(function(I,M){return M.dir&&x.test(I)});var D=this.root+x,O=c.call(this,D),P=this.clone();return P.root=O.name,P},remove:function(x){x=this.root+x;var D=this.files[x];if(D||(x.slice(-1)!=="/"&&(x+="/"),D=this.files[x]),D&&!D.dir)delete this.files[x];else for(var O=this.filter(function(I,M){return M.name.slice(0,x.length)===x}),P=0;P<O.length;P++)delete this.files[O[P].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(x){var D,O={};try{if((O=i.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=O.type.toLowerCase(),O.compression=O.compression.toUpperCase(),O.type==="binarystring"&&(O.type="string"),!O.type)throw new Error("No output type specified.");i.checkSupport(O.type),O.platform!=="darwin"&&O.platform!=="freebsd"&&O.platform!=="linux"&&O.platform!=="sunos"||(O.platform="UNIX"),O.platform==="win32"&&(O.platform="DOS");var P=O.comment||this.comment||"";D=n.generateWorker(this,O,P)}catch(I){(D=new h("error")).error(I)}return new p(D,O.type||"string",O.mimeType)},generateAsync:function(x,D){return this.generateInternalStream(x).accumulate(D)},generateNodeStream:function(x,D){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(D)}};U.exports=S},{"./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(b,U,k){U.exports=b("stream")},{stream:void 0}],17:[function(b,U,k){var l=b("./DataReader");function o(i){l.call(this,i);for(var h=0;h<this.data.length;h++)i[h]=255&i[h]}b("../utils").inherits(o,l),o.prototype.byteAt=function(i){return this.data[this.zero+i]},o.prototype.lastIndexOfSignature=function(i){for(var h=i.charCodeAt(0),p=i.charCodeAt(1),g=i.charCodeAt(2),_=i.charCodeAt(3),m=this.length-4;0<=m;--m)if(this.data[m]===h&&this.data[m+1]===p&&this.data[m+2]===g&&this.data[m+3]===_)return m-this.zero;return-1},o.prototype.readAndCheckSignature=function(i){var h=i.charCodeAt(0),p=i.charCodeAt(1),g=i.charCodeAt(2),_=i.charCodeAt(3),m=this.readData(4);return h===m[0]&&p===m[1]&&g===m[2]&&_===m[3]},o.prototype.readData=function(i){if(this.checkOffset(i),i===0)return[];var h=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,h},U.exports=o},{"../utils":32,"./DataReader":18}],18:[function(b,U,k){var l=b("../utils");function o(i){this.data=i,this.length=i.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(i){this.checkIndex(this.index+i)},checkIndex:function(i){if(this.length<this.zero+i||i<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+i+"). Corrupted zip ?")},setIndex:function(i){this.checkIndex(i),this.index=i},skip:function(i){this.setIndex(this.index+i)},byteAt:function(){},readInt:function(i){var h,p=0;for(this.checkOffset(i),h=this.index+i-1;h>=this.index;h--)p=(p<<8)+this.byteAt(h);return this.index+=i,p},readString:function(i){return l.transformTo("string",this.readData(i))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var i=this.readInt(4);return new Date(Date.UTC(1980+(i>>25&127),(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(31&i)<<1))}},U.exports=o},{"../utils":32}],19:[function(b,U,k){var l=b("./Uint8ArrayReader");function o(i){l.call(this,i)}b("../utils").inherits(o,l),o.prototype.readData=function(i){this.checkOffset(i);var h=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,h},U.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(b,U,k){var l=b("./DataReader");function o(i){l.call(this,i)}b("../utils").inherits(o,l),o.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},o.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},o.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},o.prototype.readData=function(i){this.checkOffset(i);var h=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,h},U.exports=o},{"../utils":32,"./DataReader":18}],21:[function(b,U,k){var l=b("./ArrayReader");function o(i){l.call(this,i)}b("../utils").inherits(o,l),o.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var h=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,h},U.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(b,U,k){var l=b("../utils"),o=b("../support"),i=b("./ArrayReader"),h=b("./StringReader"),p=b("./NodeBufferReader"),g=b("./Uint8ArrayReader");U.exports=function(_){var m=l.getTypeOf(_);return l.checkSupport(m),m!=="string"||o.uint8array?m==="nodebuffer"?new p(_):o.uint8array?new g(l.transformTo("uint8array",_)):new i(l.transformTo("array",_)):new h(_)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(b,U,k){k.LOCAL_FILE_HEADER="PK",k.CENTRAL_FILE_HEADER="PK",k.CENTRAL_DIRECTORY_END="PK",k.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",k.ZIP64_CENTRAL_DIRECTORY_END="PK",k.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(b,U,k){var l=b("./GenericWorker"),o=b("../utils");function i(h){l.call(this,"ConvertWorker to "+h),this.destType=h}o.inherits(i,l),i.prototype.processChunk=function(h){this.push({data:o.transformTo(this.destType,h.data),meta:h.meta})},U.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(b,U,k){var l=b("./GenericWorker"),o=b("../crc32");function i(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}b("../utils").inherits(i,l),i.prototype.processChunk=function(h){this.streamInfo.crc32=o(h.data,this.streamInfo.crc32||0),this.push(h)},U.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(b,U,k){var l=b("../utils"),o=b("./GenericWorker");function i(h){o.call(this,"DataLengthProbe for "+h),this.propName=h,this.withStreamInfo(h,0)}l.inherits(i,o),i.prototype.processChunk=function(h){if(h){var p=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=p+h.data.length}o.prototype.processChunk.call(this,h)},U.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(b,U,k){var l=b("../utils"),o=b("./GenericWorker");function i(h){o.call(this,"DataWorker");var p=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,h.then(function(g){p.dataIsReady=!0,p.data=g,p.max=g&&g.length||0,p.type=l.getTypeOf(g),p.isPaused||p._tickAndRepeat()},function(g){p.error(g)})}l.inherits(i,o),i.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(l.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var h=null,p=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":h=this.data.substring(this.index,p);break;case"uint8array":h=this.data.subarray(this.index,p);break;case"array":case"nodebuffer":h=this.data.slice(this.index,p)}return this.index=p,this.push({data:h,meta:{percent:this.max?this.index/this.max*100:0}})},U.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(b,U,k){function l(o){this.name=o||"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}l.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,i){return this._listeners[o].push(i),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,i){if(this._listeners[o])for(var h=0;h<this._listeners[o].length;h++)this._listeners[o][h].call(this,i)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var i=this;return o.on("data",function(h){i.processChunk(h)}),o.on("end",function(){i.end()}),o.on("error",function(h){i.error(h)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,i){return this.extraStreamInfo[o]=i,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},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 o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},U.exports=l},{}],29:[function(b,U,k){var l=b("../utils"),o=b("./ConvertWorker"),i=b("./GenericWorker"),h=b("../base64"),p=b("../support"),g=b("../external"),_=null;if(p.nodestream)try{_=b("../nodejs/NodejsStreamOutputAdapter")}catch{}function m(d,r){return new g.Promise(function(u,a){var c=[],y=d._internalType,S=d._outputType,x=d._mimeType;d.on("data",function(D,O){c.push(D),r&&r(O)}).on("error",function(D){c=[],a(D)}).on("end",function(){try{var D=function(O,P,I){switch(O){case"blob":return l.newBlob(l.transformTo("arraybuffer",P),I);case"base64":return h.encode(P);default:return l.transformTo(O,P)}}(S,function(O,P){var I,M=0,q=null,v=0;for(I=0;I<P.length;I++)v+=P[I].length;switch(O){case"string":return P.join("");case"array":return Array.prototype.concat.apply([],P);case"uint8array":for(q=new Uint8Array(v),I=0;I<P.length;I++)q.set(P[I],M),M+=P[I].length;return q;case"nodebuffer":return Buffer.concat(P);default:throw new Error("concat : unsupported type '"+O+"'")}}(y,c),x);u(D)}catch(O){a(O)}c=[]}).resume()})}function n(d,r,u){var a=r;switch(r){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=r,this._mimeType=u,l.checkSupport(a),this._worker=d.pipe(new o(a)),d.lock()}catch(c){this._worker=new i("error"),this._worker.error(c)}}n.prototype={accumulate:function(d){return m(this,d)},on:function(d,r){var u=this;return d==="data"?this._worker.on(d,function(a){r.call(u,a.data,a.meta)}):this._worker.on(d,function(){l.delay(r,arguments,u)}),this},resume:function(){return l.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(d){if(l.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new _(this,{objectMode:this._outputType!=="nodebuffer"},d)}},U.exports=n},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(b,U,k){if(k.base64=!0,k.array=!0,k.string=!0,k.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",k.nodebuffer=typeof Buffer<"u",k.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")k.blob=!1;else{var l=new ArrayBuffer(0);try{k.blob=new Blob([l],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(l),k.blob=o.getBlob("application/zip").size===0}catch{k.blob=!1}}}try{k.nodestream=!!b("readable-stream").Readable}catch{k.nodestream=!1}},{"readable-stream":16}],31:[function(b,U,k){for(var l=b("./utils"),o=b("./support"),i=b("./nodejsUtils"),h=b("./stream/GenericWorker"),p=new Array(256),g=0;g<256;g++)p[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;p[254]=p[254]=1;function _(){h.call(this,"utf-8 decode"),this.leftOver=null}function m(){h.call(this,"utf-8 encode")}k.utf8encode=function(n){return o.nodebuffer?i.newBufferFrom(n,"utf-8"):function(d){var r,u,a,c,y,S=d.length,x=0;for(c=0;c<S;c++)(64512&(u=d.charCodeAt(c)))==55296&&c+1<S&&(64512&(a=d.charCodeAt(c+1)))==56320&&(u=65536+(u-55296<<10)+(a-56320),c++),x+=u<128?1:u<2048?2:u<65536?3:4;for(r=o.uint8array?new Uint8Array(x):new Array(x),c=y=0;y<x;c++)(64512&(u=d.charCodeAt(c)))==55296&&c+1<S&&(64512&(a=d.charCodeAt(c+1)))==56320&&(u=65536+(u-55296<<10)+(a-56320),c++),u<128?r[y++]=u:(u<2048?r[y++]=192|u>>>6:(u<65536?r[y++]=224|u>>>12:(r[y++]=240|u>>>18,r[y++]=128|u>>>12&63),r[y++]=128|u>>>6&63),r[y++]=128|63&u);return r}(n)},k.utf8decode=function(n){return o.nodebuffer?l.transformTo("nodebuffer",n).toString("utf-8"):function(d){var r,u,a,c,y=d.length,S=new Array(2*y);for(r=u=0;r<y;)if((a=d[r++])<128)S[u++]=a;else if(4<(c=p[a]))S[u++]=65533,r+=c-1;else{for(a&=c===2?31:c===3?15:7;1<c&&r<y;)a=a<<6|63&d[r++],c--;1<c?S[u++]=65533:a<65536?S[u++]=a:(a-=65536,S[u++]=55296|a>>10&1023,S[u++]=56320|1023&a)}return S.length!==u&&(S.subarray?S=S.subarray(0,u):S.length=u),l.applyFromCharCode(S)}(n=l.transformTo(o.uint8array?"uint8array":"array",n))},l.inherits(_,h),_.prototype.processChunk=function(n){var d=l.transformTo(o.uint8array?"uint8array":"array",n.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var r=d;(d=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),d.set(r,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var u=function(c,y){var S;for((y=y||c.length)>c.length&&(y=c.length),S=y-1;0<=S&&(192&c[S])==128;)S--;return S<0||S===0?y:S+p[c[S]]>y?S:y}(d),a=d;u!==d.length&&(o.uint8array?(a=d.subarray(0,u),this.leftOver=d.subarray(u,d.length)):(a=d.slice(0,u),this.leftOver=d.slice(u,d.length))),this.push({data:k.utf8decode(a),meta:n.meta})},_.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:k.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},k.Utf8DecodeWorker=_,l.inherits(m,h),m.prototype.processChunk=function(n){this.push({data:k.utf8encode(n.data),meta:n.meta})},k.Utf8EncodeWorker=m},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(b,U,k){var l=b("./support"),o=b("./base64"),i=b("./nodejsUtils"),h=b("./external");function p(r){return r}function g(r,u){for(var a=0;a<r.length;++a)u[a]=255&r.charCodeAt(a);return u}b("setimmediate"),k.newBlob=function(r,u){k.checkSupport("blob");try{return new Blob([r],{type:u})}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return a.append(r),a.getBlob(u)}catch{throw new Error("Bug : can't construct the Blob.")}}};var _={stringifyByChunk:function(r,u,a){var c=[],y=0,S=r.length;if(S<=a)return String.fromCharCode.apply(null,r);for(;y<S;)u==="array"||u==="nodebuffer"?c.push(String.fromCharCode.apply(null,r.slice(y,Math.min(y+a,S)))):c.push(String.fromCharCode.apply(null,r.subarray(y,Math.min(y+a,S)))),y+=a;return c.join("")},stringifyByChar:function(r){for(var u="",a=0;a<r.length;a++)u+=String.fromCharCode(r[a]);return u},applyCanBeUsed:{uint8array:function(){try{return l.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return l.nodebuffer&&String.fromCharCode.apply(null,i.allocBuffer(1)).length===1}catch{return!1}}()}};function m(r){var u=65536,a=k.getTypeOf(r),c=!0;if(a==="uint8array"?c=_.applyCanBeUsed.uint8array:a==="nodebuffer"&&(c=_.applyCanBeUsed.nodebuffer),c)for(;1<u;)try{return _.stringifyByChunk(r,a,u)}catch{u=Math.floor(u/2)}return _.stringifyByChar(r)}function n(r,u){for(var a=0;a<r.length;a++)u[a]=r[a];return u}k.applyFromCharCode=m;var d={};d.string={string:p,array:function(r){return g(r,new Array(r.length))},arraybuffer:function(r){return d.string.uint8array(r).buffer},uint8array:function(r){return g(r,new Uint8Array(r.length))},nodebuffer:function(r){return g(r,i.allocBuffer(r.length))}},d.array={string:m,array:p,arraybuffer:function(r){return new Uint8Array(r).buffer},uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return i.newBufferFrom(r)}},d.arraybuffer={string:function(r){return m(new Uint8Array(r))},array:function(r){return n(new Uint8Array(r),new Array(r.byteLength))},arraybuffer:p,uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return i.newBufferFrom(new Uint8Array(r))}},d.uint8array={string:m,array:function(r){return n(r,new Array(r.length))},arraybuffer:function(r){return r.buffer},uint8array:p,nodebuffer:function(r){return i.newBufferFrom(r)}},d.nodebuffer={string:m,array:function(r){return n(r,new Array(r.length))},arraybuffer:function(r){return d.nodebuffer.uint8array(r).buffer},uint8array:function(r){return n(r,new Uint8Array(r.length))},nodebuffer:p},k.transformTo=function(r,u){if(u=u||"",!r)return u;k.checkSupport(r);var a=k.getTypeOf(u);return d[a][r](u)},k.resolve=function(r){for(var u=r.split("/"),a=[],c=0;c<u.length;c++){var y=u[c];y==="."||y===""&&c!==0&&c!==u.length-1||(y===".."?a.pop():a.push(y))}return a.join("/")},k.getTypeOf=function(r){return typeof r=="string"?"string":Object.prototype.toString.call(r)==="[object Array]"?"array":l.nodebuffer&&i.isBuffer(r)?"nodebuffer":l.uint8array&&r instanceof Uint8Array?"uint8array":l.arraybuffer&&r instanceof ArrayBuffer?"arraybuffer":void 0},k.checkSupport=function(r){if(!l[r.toLowerCase()])throw new Error(r+" is not supported by this platform")},k.MAX_VALUE_16BITS=65535,k.MAX_VALUE_32BITS=-1,k.pretty=function(r){var u,a,c="";for(a=0;a<(r||"").length;a++)c+="\\x"+((u=r.charCodeAt(a))<16?"0":"")+u.toString(16).toUpperCase();return c},k.delay=function(r,u,a){setImmediate(function(){r.apply(a||null,u||[])})},k.inherits=function(r,u){function a(){}a.prototype=u.prototype,r.prototype=new a},k.extend=function(){var r,u,a={};for(r=0;r<arguments.length;r++)for(u in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],u)&&a[u]===void 0&&(a[u]=arguments[r][u]);return a},k.prepareContent=function(r,u,a,c,y){return h.Promise.resolve(u).then(function(S){return l.blob&&(S instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(S))!==-1)&&typeof FileReader<"u"?new h.Promise(function(x,D){var O=new FileReader;O.onload=function(P){x(P.target.result)},O.onerror=function(P){D(P.target.error)},O.readAsArrayBuffer(S)}):S}).then(function(S){var x=k.getTypeOf(S);return x?(x==="arraybuffer"?S=k.transformTo("uint8array",S):x==="string"&&(y?S=o.decode(S):a&&c!==!0&&(S=function(D){return g(D,l.uint8array?new Uint8Array(D.length):new Array(D.length))}(S))),S):h.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(b,U,k){var l=b("./reader/readerFor"),o=b("./utils"),i=b("./signature"),h=b("./zipEntry"),p=b("./support");function g(_){this.files=[],this.loadOptions=_}g.prototype={checkSignature:function(_){if(!this.reader.readAndCheckSignature(_)){this.reader.index-=4;var m=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(m)+", expected "+o.pretty(_)+")")}},isSignature:function(_,m){var n=this.reader.index;this.reader.setIndex(_);var d=this.reader.readString(4)===m;return this.reader.setIndex(n),d},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 _=this.reader.readData(this.zipCommentLength),m=p.uint8array?"uint8array":"array",n=o.transformTo(m,_);this.zipComment=this.loadOptions.decodeFileName(n)},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 _,m,n,d=this.zip64EndOfCentralSize-44;0<d;)_=this.reader.readInt(2),m=this.reader.readInt(4),n=this.reader.readData(m),this.zip64ExtensibleData[_]={id:_,length:m,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var _,m;for(_=0;_<this.files.length;_++)m=this.files[_],this.reader.setIndex(m.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),m.readLocalPart(this.reader),m.handleUTF8(),m.processAttributes()},readCentralDir:function(){var _;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(_=new h({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(_);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var _=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(_<0)throw this.isSignature(0,i.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(_);var m=_;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(_=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(_),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.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(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var d=m-n;if(0<d)this.isSignature(m,i.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw new Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(_){this.reader=l(_)},load:function(_){this.prepareReader(_),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},U.exports=g},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(b,U,k){var l=b("./reader/readerFor"),o=b("./utils"),i=b("./compressedObject"),h=b("./crc32"),p=b("./utf8"),g=b("./compressions"),_=b("./support");function m(n,d){this.options=n,this.loadOptions=d}m.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(n){var d,r;if(n.skip(22),this.fileNameLength=n.readInt(2),r=n.readInt(2),this.fileName=n.readData(this.fileNameLength),n.skip(r),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((d=function(u){for(var a in g)if(Object.prototype.hasOwnProperty.call(g,a)&&g[a].magic===u)return g[a];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,d,n.readData(this.compressedSize))},readCentralPart:function(n){this.versionMadeBy=n.readInt(2),n.skip(2),this.bitFlag=n.readInt(2),this.compressionMethod=n.readString(2),this.date=n.readDate(),this.crc32=n.readInt(4),this.compressedSize=n.readInt(4),this.uncompressedSize=n.readInt(4);var d=n.readInt(2);if(this.extraFieldsLength=n.readInt(2),this.fileCommentLength=n.readInt(2),this.diskNumberStart=n.readInt(2),this.internalFileAttributes=n.readInt(2),this.externalFileAttributes=n.readInt(4),this.localHeaderOffset=n.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");n.skip(d),this.readExtraFields(n),this.parseZIP64ExtraField(n),this.fileComment=n.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var n=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),n==0&&(this.dosPermissions=63&this.externalFileAttributes),n==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var n=l(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=n.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=n.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=n.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=n.readInt(4))}},readExtraFields:function(n){var d,r,u,a=n.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});n.index+4<a;)d=n.readInt(2),r=n.readInt(2),u=n.readData(r),this.extraFields[d]={id:d,length:r,value:u};n.setIndex(a)},handleUTF8:function(){var n=_.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=p.utf8decode(this.fileName),this.fileCommentStr=p.utf8decode(this.fileComment);else{var d=this.findExtraFieldUnicodePath();if(d!==null)this.fileNameStr=d;else{var r=o.transformTo(n,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var u=this.findExtraFieldUnicodeComment();if(u!==null)this.fileCommentStr=u;else{var a=o.transformTo(n,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var n=this.extraFields[28789];if(n){var d=l(n.value);return d.readInt(1)!==1||h(this.fileName)!==d.readInt(4)?null:p.utf8decode(d.readData(n.length-5))}return null},findExtraFieldUnicodeComment:function(){var n=this.extraFields[25461];if(n){var d=l(n.value);return d.readInt(1)!==1||h(this.fileComment)!==d.readInt(4)?null:p.utf8decode(d.readData(n.length-5))}return null}},U.exports=m},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(b,U,k){function l(d,r,u){this.name=d,this.dir=u.dir,this.date=u.date,this.comment=u.comment,this.unixPermissions=u.unixPermissions,this.dosPermissions=u.dosPermissions,this._data=r,this._dataBinary=u.binary,this.options={compression:u.compression,compressionOptions:u.compressionOptions}}var o=b("./stream/StreamHelper"),i=b("./stream/DataWorker"),h=b("./utf8"),p=b("./compressedObject"),g=b("./stream/GenericWorker");l.prototype={internalStream:function(d){var r=null,u="string";try{if(!d)throw new Error("No output type specified.");var a=(u=d.toLowerCase())==="string"||u==="text";u!=="binarystring"&&u!=="text"||(u="string"),r=this._decompressWorker();var c=!this._dataBinary;c&&!a&&(r=r.pipe(new h.Utf8EncodeWorker)),!c&&a&&(r=r.pipe(new h.Utf8DecodeWorker))}catch(y){(r=new g("error")).error(y)}return new o(r,u,"")},async:function(d,r){return this.internalStream(d).accumulate(r)},nodeStream:function(d,r){return this.internalStream(d||"nodebuffer").toNodejsStream(r)},_compressWorker:function(d,r){if(this._data instanceof p&&this._data.compression.magic===d.magic)return this._data.getCompressedWorker();var u=this._decompressWorker();return this._dataBinary||(u=u.pipe(new h.Utf8EncodeWorker)),p.createWorkerFrom(u,d,r)},_decompressWorker:function(){return this._data instanceof p?this._data.getContentWorker():this._data instanceof g?this._data:new i(this._data)}};for(var _=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],m=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},n=0;n<_.length;n++)l.prototype[_[n]]=m;U.exports=l},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(b,U,k){(function(l){var o,i,h=l.MutationObserver||l.WebKitMutationObserver;if(h){var p=0,g=new h(d),_=l.document.createTextNode("");g.observe(_,{characterData:!0}),o=function(){_.data=p=++p%2}}else if(l.setImmediate||l.MessageChannel===void 0)o="document"in l&&"onreadystatechange"in l.document.createElement("script")?function(){var r=l.document.createElement("script");r.onreadystatechange=function(){d(),r.onreadystatechange=null,r.parentNode.removeChild(r),r=null},l.document.documentElement.appendChild(r)}:function(){setTimeout(d,0)};else{var m=new l.MessageChannel;m.port1.onmessage=d,o=function(){m.port2.postMessage(0)}}var n=[];function d(){var r,u;i=!0;for(var a=n.length;a;){for(u=n,n=[],r=-1;++r<a;)u[r]();a=n.length}i=!1}U.exports=function(r){n.push(r)!==1||i||o()}}).call(this,typeof ct<"u"?ct:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(b,U,k){var l=b("immediate");function o(){}var i={},h=["REJECTED"],p=["FULFILLED"],g=["PENDING"];function _(a){if(typeof a!="function")throw new TypeError("resolver must be a function");this.state=g,this.queue=[],this.outcome=void 0,a!==o&&r(this,a)}function m(a,c,y){this.promise=a,typeof c=="function"&&(this.onFulfilled=c,this.callFulfilled=this.otherCallFulfilled),typeof y=="function"&&(this.onRejected=y,this.callRejected=this.otherCallRejected)}function n(a,c,y){l(function(){var S;try{S=c(y)}catch(x){return i.reject(a,x)}S===a?i.reject(a,new TypeError("Cannot resolve promise with itself")):i.resolve(a,S)})}function d(a){var c=a&&a.then;if(a&&(typeof a=="object"||typeof a=="function")&&typeof c=="function")return function(){c.apply(a,arguments)}}function r(a,c){var y=!1;function S(O){y||(y=!0,i.reject(a,O))}function x(O){y||(y=!0,i.resolve(a,O))}var D=u(function(){c(x,S)});D.status==="error"&&S(D.value)}function u(a,c){var y={};try{y.value=a(c),y.status="success"}catch(S){y.status="error",y.value=S}return y}(U.exports=_).prototype.finally=function(a){if(typeof a!="function")return this;var c=this.constructor;return this.then(function(y){return c.resolve(a()).then(function(){return y})},function(y){return c.resolve(a()).then(function(){throw y})})},_.prototype.catch=function(a){return this.then(null,a)},_.prototype.then=function(a,c){if(typeof a!="function"&&this.state===p||typeof c!="function"&&this.state===h)return this;var y=new this.constructor(o);return this.state!==g?n(y,this.state===p?a:c,this.outcome):this.queue.push(new m(y,a,c)),y},m.prototype.callFulfilled=function(a){i.resolve(this.promise,a)},m.prototype.otherCallFulfilled=function(a){n(this.promise,this.onFulfilled,a)},m.prototype.callRejected=function(a){i.reject(this.promise,a)},m.prototype.otherCallRejected=function(a){n(this.promise,this.onRejected,a)},i.resolve=function(a,c){var y=u(d,c);if(y.status==="error")return i.reject(a,y.value);var S=y.value;if(S)r(a,S);else{a.state=p,a.outcome=c;for(var x=-1,D=a.queue.length;++x<D;)a.queue[x].callFulfilled(c)}return a},i.reject=function(a,c){a.state=h,a.outcome=c;for(var y=-1,S=a.queue.length;++y<S;)a.queue[y].callRejected(c);return a},_.resolve=function(a){return a instanceof this?a:i.resolve(new this(o),a)},_.reject=function(a){var c=new this(o);return i.reject(c,a)},_.all=function(a){var c=this;if(Object.prototype.toString.call(a)!=="[object Array]")return this.reject(new TypeError("must be an array"));var y=a.length,S=!1;if(!y)return this.resolve([]);for(var x=new Array(y),D=0,O=-1,P=new this(o);++O<y;)I(a[O],O);return P;function I(M,q){c.resolve(M).then(function(v){x[q]=v,++D!==y||S||(S=!0,i.resolve(P,x))},function(v){S||(S=!0,i.reject(P,v))})}},_.race=function(a){var c=this;if(Object.prototype.toString.call(a)!=="[object Array]")return this.reject(new TypeError("must be an array"));var y=a.length,S=!1;if(!y)return this.resolve([]);for(var x=-1,D=new this(o);++x<y;)O=a[x],c.resolve(O).then(function(P){S||(S=!0,i.resolve(D,P))},function(P){S||(S=!0,i.reject(D,P))});var O;return D}},{immediate:36}],38:[function(b,U,k){var l={};(0,b("./lib/utils/common").assign)(l,b("./lib/deflate"),b("./lib/inflate"),b("./lib/zlib/constants")),U.exports=l},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(b,U,k){var l=b("./zlib/deflate"),o=b("./utils/common"),i=b("./utils/strings"),h=b("./zlib/messages"),p=b("./zlib/zstream"),g=Object.prototype.toString,_=0,m=-1,n=0,d=8;function r(a){if(!(this instanceof r))return new r(a);this.options=o.assign({level:m,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:n,to:""},a||{});var c=this.options;c.raw&&0<c.windowBits?c.windowBits=-c.windowBits:c.gzip&&0<c.windowBits&&c.windowBits<16&&(c.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p,this.strm.avail_out=0;var y=l.deflateInit2(this.strm,c.level,c.method,c.windowBits,c.memLevel,c.strategy);if(y!==_)throw new Error(h[y]);if(c.header&&l.deflateSetHeader(this.strm,c.header),c.dictionary){var S;if(S=typeof c.dictionary=="string"?i.string2buf(c.dictionary):g.call(c.dictionary)==="[object ArrayBuffer]"?new Uint8Array(c.dictionary):c.dictionary,(y=l.deflateSetDictionary(this.strm,S))!==_)throw new Error(h[y]);this._dict_set=!0}}function u(a,c){var y=new r(c);if(y.push(a,!0),y.err)throw y.msg||h[y.err];return y.result}r.prototype.push=function(a,c){var y,S,x=this.strm,D=this.options.chunkSize;if(this.ended)return!1;S=c===~~c?c:c===!0?4:0,typeof a=="string"?x.input=i.string2buf(a):g.call(a)==="[object ArrayBuffer]"?x.input=new Uint8Array(a):x.input=a,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new o.Buf8(D),x.next_out=0,x.avail_out=D),(y=l.deflate(x,S))!==1&&y!==_)return this.onEnd(y),!(this.ended=!0);x.avail_out!==0&&(x.avail_in!==0||S!==4&&S!==2)||(this.options.to==="string"?this.onData(i.buf2binstring(o.shrinkBuf(x.output,x.next_out))):this.onData(o.shrinkBuf(x.output,x.next_out)))}while((0<x.avail_in||x.avail_out===0)&&y!==1);return S===4?(y=l.deflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===_):S!==2||(this.onEnd(_),!(x.avail_out=0))},r.prototype.onData=function(a){this.chunks.push(a)},r.prototype.onEnd=function(a){a===_&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},k.Deflate=r,k.deflate=u,k.deflateRaw=function(a,c){return(c=c||{}).raw=!0,u(a,c)},k.gzip=function(a,c){return(c=c||{}).gzip=!0,u(a,c)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(b,U,k){var l=b("./zlib/inflate"),o=b("./utils/common"),i=b("./utils/strings"),h=b("./zlib/constants"),p=b("./zlib/messages"),g=b("./zlib/zstream"),_=b("./zlib/gzheader"),m=Object.prototype.toString;function n(r){if(!(this instanceof n))return new n(r);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},r||{});var u=this.options;u.raw&&0<=u.windowBits&&u.windowBits<16&&(u.windowBits=-u.windowBits,u.windowBits===0&&(u.windowBits=-15)),!(0<=u.windowBits&&u.windowBits<16)||r&&r.windowBits||(u.windowBits+=32),15<u.windowBits&&u.windowBits<48&&(15&u.windowBits)==0&&(u.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var a=l.inflateInit2(this.strm,u.windowBits);if(a!==h.Z_OK)throw new Error(p[a]);this.header=new _,l.inflateGetHeader(this.strm,this.header)}function d(r,u){var a=new n(u);if(a.push(r,!0),a.err)throw a.msg||p[a.err];return a.result}n.prototype.push=function(r,u){var a,c,y,S,x,D,O=this.strm,P=this.options.chunkSize,I=this.options.dictionary,M=!1;if(this.ended)return!1;c=u===~~u?u:u===!0?h.Z_FINISH:h.Z_NO_FLUSH,typeof r=="string"?O.input=i.binstring2buf(r):m.call(r)==="[object ArrayBuffer]"?O.input=new Uint8Array(r):O.input=r,O.next_in=0,O.avail_in=O.input.length;do{if(O.avail_out===0&&(O.output=new o.Buf8(P),O.next_out=0,O.avail_out=P),(a=l.inflate(O,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&I&&(D=typeof I=="string"?i.string2buf(I):m.call(I)==="[object ArrayBuffer]"?new Uint8Array(I):I,a=l.inflateSetDictionary(this.strm,D)),a===h.Z_BUF_ERROR&&M===!0&&(a=h.Z_OK,M=!1),a!==h.Z_STREAM_END&&a!==h.Z_OK)return this.onEnd(a),!(this.ended=!0);O.next_out&&(O.avail_out!==0&&a!==h.Z_STREAM_END&&(O.avail_in!==0||c!==h.Z_FINISH&&c!==h.Z_SYNC_FLUSH)||(this.options.to==="string"?(y=i.utf8border(O.output,O.next_out),S=O.next_out-y,x=i.buf2string(O.output,y),O.next_out=S,O.avail_out=P-S,S&&o.arraySet(O.output,O.output,y,S,0),this.onData(x)):this.onData(o.shrinkBuf(O.output,O.next_out)))),O.avail_in===0&&O.avail_out===0&&(M=!0)}while((0<O.avail_in||O.avail_out===0)&&a!==h.Z_STREAM_END);return a===h.Z_STREAM_END&&(c=h.Z_FINISH),c===h.Z_FINISH?(a=l.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===h.Z_OK):c!==h.Z_SYNC_FLUSH||(this.onEnd(h.Z_OK),!(O.avail_out=0))},n.prototype.onData=function(r){this.chunks.push(r)},n.prototype.onEnd=function(r){r===h.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg},k.Inflate=n,k.inflate=d,k.inflateRaw=function(r,u){return(u=u||{}).raw=!0,d(r,u)},k.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(b,U,k){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";k.assign=function(h){for(var p=Array.prototype.slice.call(arguments,1);p.length;){var g=p.shift();if(g){if(typeof g!="object")throw new TypeError(g+"must be non-object");for(var _ in g)g.hasOwnProperty(_)&&(h[_]=g[_])}}return h},k.shrinkBuf=function(h,p){return h.length===p?h:h.subarray?h.subarray(0,p):(h.length=p,h)};var o={arraySet:function(h,p,g,_,m){if(p.subarray&&h.subarray)h.set(p.subarray(g,g+_),m);else for(var n=0;n<_;n++)h[m+n]=p[g+n]},flattenChunks:function(h){var p,g,_,m,n,d;for(p=_=0,g=h.length;p<g;p++)_+=h[p].length;for(d=new Uint8Array(_),p=m=0,g=h.length;p<g;p++)n=h[p],d.set(n,m),m+=n.length;return d}},i={arraySet:function(h,p,g,_,m){for(var n=0;n<_;n++)h[m+n]=p[g+n]},flattenChunks:function(h){return[].concat.apply([],h)}};k.setTyped=function(h){h?(k.Buf8=Uint8Array,k.Buf16=Uint16Array,k.Buf32=Int32Array,k.assign(k,o)):(k.Buf8=Array,k.Buf16=Array,k.Buf32=Array,k.assign(k,i))},k.setTyped(l)},{}],42:[function(b,U,k){var l=b("./common"),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{i=!1}for(var h=new l.Buf8(256),p=0;p<256;p++)h[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;function g(_,m){if(m<65537&&(_.subarray&&i||!_.subarray&&o))return String.fromCharCode.apply(null,l.shrinkBuf(_,m));for(var n="",d=0;d<m;d++)n+=String.fromCharCode(_[d]);return n}h[254]=h[254]=1,k.string2buf=function(_){var m,n,d,r,u,a=_.length,c=0;for(r=0;r<a;r++)(64512&(n=_.charCodeAt(r)))==55296&&r+1<a&&(64512&(d=_.charCodeAt(r+1)))==56320&&(n=65536+(n-55296<<10)+(d-56320),r++),c+=n<128?1:n<2048?2:n<65536?3:4;for(m=new l.Buf8(c),r=u=0;u<c;r++)(64512&(n=_.charCodeAt(r)))==55296&&r+1<a&&(64512&(d=_.charCodeAt(r+1)))==56320&&(n=65536+(n-55296<<10)+(d-56320),r++),n<128?m[u++]=n:(n<2048?m[u++]=192|n>>>6:(n<65536?m[u++]=224|n>>>12:(m[u++]=240|n>>>18,m[u++]=128|n>>>12&63),m[u++]=128|n>>>6&63),m[u++]=128|63&n);return m},k.buf2binstring=function(_){return g(_,_.length)},k.binstring2buf=function(_){for(var m=new l.Buf8(_.length),n=0,d=m.length;n<d;n++)m[n]=_.charCodeAt(n);return m},k.buf2string=function(_,m){var n,d,r,u,a=m||_.length,c=new Array(2*a);for(n=d=0;n<a;)if((r=_[n++])<128)c[d++]=r;else if(4<(u=h[r]))c[d++]=65533,n+=u-1;else{for(r&=u===2?31:u===3?15:7;1<u&&n<a;)r=r<<6|63&_[n++],u--;1<u?c[d++]=65533:r<65536?c[d++]=r:(r-=65536,c[d++]=55296|r>>10&1023,c[d++]=56320|1023&r)}return g(c,d)},k.utf8border=function(_,m){var n;for((m=m||_.length)>_.length&&(m=_.length),n=m-1;0<=n&&(192&_[n])==128;)n--;return n<0||n===0?m:n+h[_[n]]>m?n:m}},{"./common":41}],43:[function(b,U,k){U.exports=function(l,o,i,h){for(var p=65535&l|0,g=l>>>16&65535|0,_=0;i!==0;){for(i-=_=2e3<i?2e3:i;g=g+(p=p+o[h++]|0)|0,--_;);p%=65521,g%=65521}return p|g<<16|0}},{}],44:[function(b,U,k){U.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(b,U,k){var l=function(){for(var o,i=[],h=0;h<256;h++){o=h;for(var p=0;p<8;p++)o=1&o?3988292384^o>>>1:o>>>1;i[h]=o}return i}();U.exports=function(o,i,h,p){var g=l,_=p+h;o^=-1;for(var m=p;m<_;m++)o=o>>>8^g[255&(o^i[m])];return-1^o}},{}],46:[function(b,U,k){var l,o=b("../utils/common"),i=b("./trees"),h=b("./adler32"),p=b("./crc32"),g=b("./messages"),_=0,m=4,n=0,d=-2,r=-1,u=4,a=2,c=8,y=9,S=286,x=30,D=19,O=2*S+1,P=15,I=3,M=258,q=M+I+1,v=42,B=113,e=1,T=2,J=3,L=4;function $(t,R){return t.msg=g[R],R}function j(t){return(t<<1)-(4<t?9:0)}function V(t){for(var R=t.length;0<=--R;)t[R]=0}function C(t){var R=t.state,A=R.pending;A>t.avail_out&&(A=t.avail_out),A!==0&&(o.arraySet(t.output,R.pending_buf,R.pending_out,A,t.next_out),t.next_out+=A,R.pending_out+=A,t.total_out+=A,t.avail_out-=A,R.pending-=A,R.pending===0&&(R.pending_out=0))}function E(t,R){i._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,R),t.block_start=t.strstart,C(t.strm)}function X(t,R){t.pending_buf[t.pending++]=R}function G(t,R){t.pending_buf[t.pending++]=R>>>8&255,t.pending_buf[t.pending++]=255&R}function H(t,R){var A,f,s=t.max_chain_length,w=t.strstart,F=t.prev_length,N=t.nice_match,z=t.strstart>t.w_size-q?t.strstart-(t.w_size-q):0,Z=t.window,K=t.w_mask,W=t.prev,Y=t.strstart+M,rt=Z[w+F-1],tt=Z[w+F];t.prev_length>=t.good_match&&(s>>=2),N>t.lookahead&&(N=t.lookahead);do if(Z[(A=R)+F]===tt&&Z[A+F-1]===rt&&Z[A]===Z[w]&&Z[++A]===Z[w+1]){w+=2,A++;do;while(Z[++w]===Z[++A]&&Z[++w]===Z[++A]&&Z[++w]===Z[++A]&&Z[++w]===Z[++A]&&Z[++w]===Z[++A]&&Z[++w]===Z[++A]&&Z[++w]===Z[++A]&&Z[++w]===Z[++A]&&w<Y);if(f=M-(Y-w),w=Y-M,F<f){if(t.match_start=R,N<=(F=f))break;rt=Z[w+F-1],tt=Z[w+F]}}while((R=W[R&K])>z&&--s!=0);return F<=t.lookahead?F:t.lookahead}function nt(t){var R,A,f,s,w,F,N,z,Z,K,W=t.w_size;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=W+(W-q)){for(o.arraySet(t.window,t.window,W,W,0),t.match_start-=W,t.strstart-=W,t.block_start-=W,R=A=t.hash_size;f=t.head[--R],t.head[R]=W<=f?f-W:0,--A;);for(R=A=W;f=t.prev[--R],t.prev[R]=W<=f?f-W:0,--A;);s+=W}if(t.strm.avail_in===0)break;if(F=t.strm,N=t.window,z=t.strstart+t.lookahead,Z=s,K=void 0,K=F.avail_in,Z<K&&(K=Z),A=K===0?0:(F.avail_in-=K,o.arraySet(N,F.input,F.next_in,K,z),F.state.wrap===1?F.adler=h(F.adler,N,K,z):F.state.wrap===2&&(F.adler=p(F.adler,N,K,z)),F.next_in+=K,F.total_in+=K,K),t.lookahead+=A,t.lookahead+t.insert>=I)for(w=t.strstart-t.insert,t.ins_h=t.window[w],t.ins_h=(t.ins_h<<t.hash_shift^t.window[w+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[w+I-1])&t.hash_mask,t.prev[w&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=w,w++,t.insert--,!(t.lookahead+t.insert<I)););}while(t.lookahead<q&&t.strm.avail_in!==0)}function ot(t,R){for(var A,f;;){if(t.lookahead<q){if(nt(t),t.lookahead<q&&R===_)return e;if(t.lookahead===0)break}if(A=0,t.lookahead>=I&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+I-1])&t.hash_mask,A=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),A!==0&&t.strstart-A<=t.w_size-q&&(t.match_length=H(t,A)),t.match_length>=I)if(f=i._tr_tally(t,t.strstart-t.match_start,t.match_length-I),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=I){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+I-1])&t.hash_mask,A=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,--t.match_length!=0;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else f=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(f&&(E(t,!1),t.strm.avail_out===0))return e}return t.insert=t.strstart<I-1?t.strstart:I-1,R===m?(E(t,!0),t.strm.avail_out===0?J:L):t.last_lit&&(E(t,!1),t.strm.avail_out===0)?e:T}function Q(t,R){for(var A,f,s;;){if(t.lookahead<q){if(nt(t),t.lookahead<q&&R===_)return e;if(t.lookahead===0)break}if(A=0,t.lookahead>=I&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+I-1])&t.hash_mask,A=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=I-1,A!==0&&t.prev_length<t.max_lazy_match&&t.strstart-A<=t.w_size-q&&(t.match_length=H(t,A),t.match_length<=5&&(t.strategy===1||t.match_length===I&&4096<t.strstart-t.match_start)&&(t.match_length=I-1)),t.prev_length>=I&&t.match_length<=t.prev_length){for(s=t.strstart+t.lookahead-I,f=i._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-I),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=s&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+I-1])&t.hash_mask,A=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),--t.prev_length!=0;);if(t.match_available=0,t.match_length=I-1,t.strstart++,f&&(E(t,!1),t.strm.avail_out===0))return e}else if(t.match_available){if((f=i._tr_tally(t,0,t.window[t.strstart-1]))&&E(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return e}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(f=i._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<I-1?t.strstart:I-1,R===m?(E(t,!0),t.strm.avail_out===0?J:L):t.last_lit&&(E(t,!1),t.strm.avail_out===0)?e:T}function et(t,R,A,f,s){this.good_length=t,this.max_lazy=R,this.nice_length=A,this.max_chain=f,this.func=s}function st(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=c,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*O),this.dyn_dtree=new o.Buf16(2*(2*x+1)),this.bl_tree=new o.Buf16(2*(2*D+1)),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(P+1),this.heap=new o.Buf16(2*S+1),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*S+1),V(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 it(t){var R;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=a,(R=t.state).pending=0,R.pending_out=0,R.wrap<0&&(R.wrap=-R.wrap),R.status=R.wrap?v:B,t.adler=R.wrap===2?0:1,R.last_flush=_,i._tr_init(R),n):$(t,d)}function lt(t){var R=it(t);return R===n&&function(A){A.window_size=2*A.w_size,V(A.head),A.max_lazy_match=l[A.level].max_lazy,A.good_match=l[A.level].good_length,A.nice_match=l[A.level].nice_length,A.max_chain_length=l[A.level].max_chain,A.strstart=0,A.block_start=0,A.lookahead=0,A.insert=0,A.match_length=A.prev_length=I-1,A.match_available=0,A.ins_h=0}(t.state),R}function ut(t,R,A,f,s,w){if(!t)return d;var F=1;if(R===r&&(R=6),f<0?(F=0,f=-f):15<f&&(F=2,f-=16),s<1||y<s||A!==c||f<8||15<f||R<0||9<R||w<0||u<w)return $(t,d);f===8&&(f=9);var N=new st;return(t.state=N).strm=t,N.wrap=F,N.gzhead=null,N.w_bits=f,N.w_size=1<<N.w_bits,N.w_mask=N.w_size-1,N.hash_bits=s+7,N.hash_size=1<<N.hash_bits,N.hash_mask=N.hash_size-1,N.hash_shift=~~((N.hash_bits+I-1)/I),N.window=new o.Buf8(2*N.w_size),N.head=new o.Buf16(N.hash_size),N.prev=new o.Buf16(N.w_size),N.lit_bufsize=1<<s+6,N.pending_buf_size=4*N.lit_bufsize,N.pending_buf=new o.Buf8(N.pending_buf_size),N.d_buf=1*N.lit_bufsize,N.l_buf=3*N.lit_bufsize,N.level=R,N.strategy=w,N.method=A,lt(t)}l=[new et(0,0,0,0,function(t,R){var A=65535;for(A>t.pending_buf_size-5&&(A=t.pending_buf_size-5);;){if(t.lookahead<=1){if(nt(t),t.lookahead===0&&R===_)return e;if(t.lookahead===0)break}t.strstart+=t.lookahead,t.lookahead=0;var f=t.block_start+A;if((t.strstart===0||t.strstart>=f)&&(t.lookahead=t.strstart-f,t.strstart=f,E(t,!1),t.strm.avail_out===0)||t.strstart-t.block_start>=t.w_size-q&&(E(t,!1),t.strm.avail_out===0))return e}return t.insert=0,R===m?(E(t,!0),t.strm.avail_out===0?J:L):(t.strstart>t.block_start&&(E(t,!1),t.strm.avail_out),e)}),new et(4,4,8,4,ot),new et(4,5,16,8,ot),new et(4,6,32,32,ot),new et(4,4,16,16,Q),new et(8,16,32,32,Q),new et(8,16,128,128,Q),new et(8,32,128,256,Q),new et(32,128,258,1024,Q),new et(32,258,258,4096,Q)],k.deflateInit=function(t,R){return ut(t,R,c,15,8,0)},k.deflateInit2=ut,k.deflateReset=lt,k.deflateResetKeep=it,k.deflateSetHeader=function(t,R){return t&&t.state?t.state.wrap!==2?d:(t.state.gzhead=R,n):d},k.deflate=function(t,R){var A,f,s,w;if(!t||!t.state||5<R||R<0)return t?$(t,d):d;if(f=t.state,!t.output||!t.input&&t.avail_in!==0||f.status===666&&R!==m)return $(t,t.avail_out===0?-5:d);if(f.strm=t,A=f.last_flush,f.last_flush=R,f.status===v)if(f.wrap===2)t.adler=0,X(f,31),X(f,139),X(f,8),f.gzhead?(X(f,(f.gzhead.text?1:0)+(f.gzhead.hcrc?2:0)+(f.gzhead.extra?4:0)+(f.gzhead.name?8:0)+(f.gzhead.comment?16:0)),X(f,255&f.gzhead.time),X(f,f.gzhead.time>>8&255),X(f,f.gzhead.time>>16&255),X(f,f.gzhead.time>>24&255),X(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),X(f,255&f.gzhead.os),f.gzhead.extra&&f.gzhead.extra.length&&(X(f,255&f.gzhead.extra.length),X(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(t.adler=p(t.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=69):(X(f,0),X(f,0),X(f,0),X(f,0),X(f,0),X(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),X(f,3),f.status=B);else{var F=c+(f.w_bits-8<<4)<<8;F|=(2<=f.strategy||f.level<2?0:f.level<6?1:f.level===6?2:3)<<6,f.strstart!==0&&(F|=32),F+=31-F%31,f.status=B,G(f,F),f.strstart!==0&&(G(f,t.adler>>>16),G(f,65535&t.adler)),t.adler=1}if(f.status===69)if(f.gzhead.extra){for(s=f.pending;f.gzindex<(65535&f.gzhead.extra.length)&&(f.pending!==f.pending_buf_size||(f.gzhead.hcrc&&f.pending>s&&(t.adler=p(t.adler,f.pending_buf,f.pending-s,s)),C(t),s=f.pending,f.pending!==f.pending_buf_size));)X(f,255&f.gzhead.extra[f.gzindex]),f.gzindex++;f.gzhead.hcrc&&f.pending>s&&(t.adler=p(t.adler,f.pending_buf,f.pending-s,s)),f.gzindex===f.gzhead.extra.length&&(f.gzindex=0,f.status=73)}else f.status=73;if(f.status===73)if(f.gzhead.name){s=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>s&&(t.adler=p(t.adler,f.pending_buf,f.pending-s,s)),C(t),s=f.pending,f.pending===f.pending_buf_size)){w=1;break}w=f.gzindex<f.gzhead.name.length?255&f.gzhead.name.charCodeAt(f.gzindex++):0,X(f,w)}while(w!==0);f.gzhead.hcrc&&f.pending>s&&(t.adler=p(t.adler,f.pending_buf,f.pending-s,s)),w===0&&(f.gzindex=0,f.status=91)}else f.status=91;if(f.status===91)if(f.gzhead.comment){s=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>s&&(t.adler=p(t.adler,f.pending_buf,f.pending-s,s)),C(t),s=f.pending,f.pending===f.pending_buf_size)){w=1;break}w=f.gzindex<f.gzhead.comment.length?255&f.gzhead.comment.charCodeAt(f.gzindex++):0,X(f,w)}while(w!==0);f.gzhead.hcrc&&f.pending>s&&(t.adler=p(t.adler,f.pending_buf,f.pending-s,s)),w===0&&(f.status=103)}else f.status=103;if(f.status===103&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&C(t),f.pending+2<=f.pending_buf_size&&(X(f,255&t.adler),X(f,t.adler>>8&255),t.adler=0,f.status=B)):f.status=B),f.pending!==0){if(C(t),t.avail_out===0)return f.last_flush=-1,n}else if(t.avail_in===0&&j(R)<=j(A)&&R!==m)return $(t,-5);if(f.status===666&&t.avail_in!==0)return $(t,-5);if(t.avail_in!==0||f.lookahead!==0||R!==_&&f.status!==666){var N=f.strategy===2?function(z,Z){for(var K;;){if(z.lookahead===0&&(nt(z),z.lookahead===0)){if(Z===_)return e;break}if(z.match_length=0,K=i._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,K&&(E(z,!1),z.strm.avail_out===0))return e}return z.insert=0,Z===m?(E(z,!0),z.strm.avail_out===0?J:L):z.last_lit&&(E(z,!1),z.strm.avail_out===0)?e:T}(f,R):f.strategy===3?function(z,Z){for(var K,W,Y,rt,tt=z.window;;){if(z.lookahead<=M){if(nt(z),z.lookahead<=M&&Z===_)return e;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=I&&0<z.strstart&&(W=tt[Y=z.strstart-1])===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]){rt=z.strstart+M;do;while(W===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]&&Y<rt);z.match_length=M-(rt-Y),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=I?(K=i._tr_tally(z,1,z.match_length-I),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(K=i._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),K&&(E(z,!1),z.strm.avail_out===0))return e}return z.insert=0,Z===m?(E(z,!0),z.strm.avail_out===0?J:L):z.last_lit&&(E(z,!1),z.strm.avail_out===0)?e:T}(f,R):l[f.level].func(f,R);if(N!==J&&N!==L||(f.status=666),N===e||N===J)return t.avail_out===0&&(f.last_flush=-1),n;if(N===T&&(R===1?i._tr_align(f):R!==5&&(i._tr_stored_block(f,0,0,!1),R===3&&(V(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),C(t),t.avail_out===0))return f.last_flush=-1,n}return R!==m?n:f.wrap<=0?1:(f.wrap===2?(X(f,255&t.adler),X(f,t.adler>>8&255),X(f,t.adler>>16&255),X(f,t.adler>>24&255),X(f,255&t.total_in),X(f,t.total_in>>8&255),X(f,t.total_in>>16&255),X(f,t.total_in>>24&255)):(G(f,t.adler>>>16),G(f,65535&t.adler)),C(t),0<f.wrap&&(f.wrap=-f.wrap),f.pending!==0?n:1)},k.deflateEnd=function(t){var R;return t&&t.state?(R=t.state.status)!==v&&R!==69&&R!==73&&R!==91&&R!==103&&R!==B&&R!==666?$(t,d):(t.state=null,R===B?$(t,-3):n):d},k.deflateSetDictionary=function(t,R){var A,f,s,w,F,N,z,Z,K=R.length;if(!t||!t.state||(w=(A=t.state).wrap)===2||w===1&&A.status!==v||A.lookahead)return d;for(w===1&&(t.adler=h(t.adler,R,K,0)),A.wrap=0,K>=A.w_size&&(w===0&&(V(A.head),A.strstart=0,A.block_start=0,A.insert=0),Z=new o.Buf8(A.w_size),o.arraySet(Z,R,K-A.w_size,A.w_size,0),R=Z,K=A.w_size),F=t.avail_in,N=t.next_in,z=t.input,t.avail_in=K,t.next_in=0,t.input=R,nt(A);A.lookahead>=I;){for(f=A.strstart,s=A.lookahead-(I-1);A.ins_h=(A.ins_h<<A.hash_shift^A.window[f+I-1])&A.hash_mask,A.prev[f&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=f,f++,--s;);A.strstart=f,A.lookahead=I-1,nt(A)}return A.strstart+=A.lookahead,A.block_start=A.strstart,A.insert=A.lookahead,A.lookahead=0,A.match_length=A.prev_length=I-1,A.match_available=0,t.next_in=N,t.input=z,t.avail_in=F,A.wrap=w,n},k.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(b,U,k){U.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(b,U,k){U.exports=function(l,o){var i,h,p,g,_,m,n,d,r,u,a,c,y,S,x,D,O,P,I,M,q,v,B,e,T;i=l.state,h=l.next_in,e=l.input,p=h+(l.avail_in-5),g=l.next_out,T=l.output,_=g-(o-l.avail_out),m=g+(l.avail_out-257),n=i.dmax,d=i.wsize,r=i.whave,u=i.wnext,a=i.window,c=i.hold,y=i.bits,S=i.lencode,x=i.distcode,D=(1<<i.lenbits)-1,O=(1<<i.distbits)-1;t:do{y<15&&(c+=e[h++]<<y,y+=8,c+=e[h++]<<y,y+=8),P=S[c&D];e:for(;;){if(c>>>=I=P>>>24,y-=I,(I=P>>>16&255)===0)T[g++]=65535&P;else{if(!(16&I)){if((64&I)==0){P=S[(65535&P)+(c&(1<<I)-1)];continue e}if(32&I){i.mode=12;break t}l.msg="invalid literal/length code",i.mode=30;break t}M=65535&P,(I&=15)&&(y<I&&(c+=e[h++]<<y,y+=8),M+=c&(1<<I)-1,c>>>=I,y-=I),y<15&&(c+=e[h++]<<y,y+=8,c+=e[h++]<<y,y+=8),P=x[c&O];r:for(;;){if(c>>>=I=P>>>24,y-=I,!(16&(I=P>>>16&255))){if((64&I)==0){P=x[(65535&P)+(c&(1<<I)-1)];continue r}l.msg="invalid distance code",i.mode=30;break t}if(q=65535&P,y<(I&=15)&&(c+=e[h++]<<y,(y+=8)<I&&(c+=e[h++]<<y,y+=8)),n<(q+=c&(1<<I)-1)){l.msg="invalid distance too far back",i.mode=30;break t}if(c>>>=I,y-=I,(I=g-_)<q){if(r<(I=q-I)&&i.sane){l.msg="invalid distance too far back",i.mode=30;break t}if(B=a,(v=0)===u){if(v+=d-I,I<M){for(M-=I;T[g++]=a[v++],--I;);v=g-q,B=T}}else if(u<I){if(v+=d+u-I,(I-=u)<M){for(M-=I;T[g++]=a[v++],--I;);if(v=0,u<M){for(M-=I=u;T[g++]=a[v++],--I;);v=g-q,B=T}}}else if(v+=u-I,I<M){for(M-=I;T[g++]=a[v++],--I;);v=g-q,B=T}for(;2<M;)T[g++]=B[v++],T[g++]=B[v++],T[g++]=B[v++],M-=3;M&&(T[g++]=B[v++],1<M&&(T[g++]=B[v++]))}else{for(v=g-q;T[g++]=T[v++],T[g++]=T[v++],T[g++]=T[v++],2<(M-=3););M&&(T[g++]=T[v++],1<M&&(T[g++]=T[v++]))}break}}break}}while(h<p&&g<m);h-=M=y>>3,c&=(1<<(y-=M<<3))-1,l.next_in=h,l.next_out=g,l.avail_in=h<p?p-h+5:5-(h-p),l.avail_out=g<m?m-g+257:257-(g-m),i.hold=c,i.bits=y}},{}],49:[function(b,U,k){var l=b("../utils/common"),o=b("./adler32"),i=b("./crc32"),h=b("./inffast"),p=b("./inftrees"),g=1,_=2,m=0,n=-2,d=1,r=852,u=592;function a(v){return(v>>>24&255)+(v>>>8&65280)+((65280&v)<<8)+((255&v)<<24)}function c(){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 l.Buf16(320),this.work=new l.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function y(v){var B;return v&&v.state?(B=v.state,v.total_in=v.total_out=B.total=0,v.msg="",B.wrap&&(v.adler=1&B.wrap),B.mode=d,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new l.Buf32(r),B.distcode=B.distdyn=new l.Buf32(u),B.sane=1,B.back=-1,m):n}function S(v){var B;return v&&v.state?((B=v.state).wsize=0,B.whave=0,B.wnext=0,y(v)):n}function x(v,B){var e,T;return v&&v.state?(T=v.state,B<0?(e=0,B=-B):(e=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?n:(T.window!==null&&T.wbits!==B&&(T.window=null),T.wrap=e,T.wbits=B,S(v))):n}function D(v,B){var e,T;return v?(T=new c,(v.state=T).window=null,(e=x(v,B))!==m&&(v.state=null),e):n}var O,P,I=!0;function M(v){if(I){var B;for(O=new l.Buf32(512),P=new l.Buf32(32),B=0;B<144;)v.lens[B++]=8;for(;B<256;)v.lens[B++]=9;for(;B<280;)v.lens[B++]=7;for(;B<288;)v.lens[B++]=8;for(p(g,v.lens,0,288,O,0,v.work,{bits:9}),B=0;B<32;)v.lens[B++]=5;p(_,v.lens,0,32,P,0,v.work,{bits:5}),I=!1}v.lencode=O,v.lenbits=9,v.distcode=P,v.distbits=5}function q(v,B,e,T){var J,L=v.state;return L.window===null&&(L.wsize=1<<L.wbits,L.wnext=0,L.whave=0,L.window=new l.Buf8(L.wsize)),T>=L.wsize?(l.arraySet(L.window,B,e-L.wsize,L.wsize,0),L.wnext=0,L.whave=L.wsize):(T<(J=L.wsize-L.wnext)&&(J=T),l.arraySet(L.window,B,e-T,J,L.wnext),(T-=J)?(l.arraySet(L.window,B,e-T,T,0),L.wnext=T,L.whave=L.wsize):(L.wnext+=J,L.wnext===L.wsize&&(L.wnext=0),L.whave<L.wsize&&(L.whave+=J))),0}k.inflateReset=S,k.inflateReset2=x,k.inflateResetKeep=y,k.inflateInit=function(v){return D(v,15)},k.inflateInit2=D,k.inflate=function(v,B){var e,T,J,L,$,j,V,C,E,X,G,H,nt,ot,Q,et,st,it,lt,ut,t,R,A,f,s=0,w=new l.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!v||!v.state||!v.output||!v.input&&v.avail_in!==0)return n;(e=v.state).mode===12&&(e.mode=13),$=v.next_out,J=v.output,V=v.avail_out,L=v.next_in,T=v.input,j=v.avail_in,C=e.hold,E=e.bits,X=j,G=V,R=m;t:for(;;)switch(e.mode){case d:if(e.wrap===0){e.mode=13;break}for(;E<16;){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}if(2&e.wrap&&C===35615){w[e.check=0]=255&C,w[1]=C>>>8&255,e.check=i(e.check,w,2,0),E=C=0,e.mode=2;break}if(e.flags=0,e.head&&(e.head.done=!1),!(1&e.wrap)||(((255&C)<<8)+(C>>8))%31){v.msg="incorrect header check",e.mode=30;break}if((15&C)!=8){v.msg="unknown compression method",e.mode=30;break}if(E-=4,t=8+(15&(C>>>=4)),e.wbits===0)e.wbits=t;else if(t>e.wbits){v.msg="invalid window size",e.mode=30;break}e.dmax=1<<t,v.adler=e.check=1,e.mode=512&C?10:12,E=C=0;break;case 2:for(;E<16;){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}if(e.flags=C,(255&e.flags)!=8){v.msg="unknown compression method",e.mode=30;break}if(57344&e.flags){v.msg="unknown header flags set",e.mode=30;break}e.head&&(e.head.text=C>>8&1),512&e.flags&&(w[0]=255&C,w[1]=C>>>8&255,e.check=i(e.check,w,2,0)),E=C=0,e.mode=3;case 3:for(;E<32;){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}e.head&&(e.head.time=C),512&e.flags&&(w[0]=255&C,w[1]=C>>>8&255,w[2]=C>>>16&255,w[3]=C>>>24&255,e.check=i(e.check,w,4,0)),E=C=0,e.mode=4;case 4:for(;E<16;){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}e.head&&(e.head.xflags=255&C,e.head.os=C>>8),512&e.flags&&(w[0]=255&C,w[1]=C>>>8&255,e.check=i(e.check,w,2,0)),E=C=0,e.mode=5;case 5:if(1024&e.flags){for(;E<16;){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}e.length=C,e.head&&(e.head.extra_len=C),512&e.flags&&(w[0]=255&C,w[1]=C>>>8&255,e.check=i(e.check,w,2,0)),E=C=0}else e.head&&(e.head.extra=null);e.mode=6;case 6:if(1024&e.flags&&(j<(H=e.length)&&(H=j),H&&(e.head&&(t=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Array(e.head.extra_len)),l.arraySet(e.head.extra,T,L,H,t)),512&e.flags&&(e.check=i(e.check,T,H,L)),j-=H,L+=H,e.length-=H),e.length))break t;e.length=0,e.mode=7;case 7:if(2048&e.flags){if(j===0)break t;for(H=0;t=T[L+H++],e.head&&t&&e.length<65536&&(e.head.name+=String.fromCharCode(t)),t&&H<j;);if(512&e.flags&&(e.check=i(e.check,T,H,L)),j-=H,L+=H,t)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=8;case 8:if(4096&e.flags){if(j===0)break t;for(H=0;t=T[L+H++],e.head&&t&&e.length<65536&&(e.head.comment+=String.fromCharCode(t)),t&&H<j;);if(512&e.flags&&(e.check=i(e.check,T,H,L)),j-=H,L+=H,t)break t}else e.head&&(e.head.comment=null);e.mode=9;case 9:if(512&e.flags){for(;E<16;){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}if(C!==(65535&e.check)){v.msg="header crc mismatch",e.mode=30;break}E=C=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),v.adler=e.check=0,e.mode=12;break;case 10:for(;E<32;){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}v.adler=e.check=a(C),E=C=0,e.mode=11;case 11:if(e.havedict===0)return v.next_out=$,v.avail_out=V,v.next_in=L,v.avail_in=j,e.hold=C,e.bits=E,2;v.adler=e.check=1,e.mode=12;case 12:if(B===5||B===6)break t;case 13:if(e.last){C>>>=7&E,E-=7&E,e.mode=27;break}for(;E<3;){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}switch(e.last=1&C,E-=1,3&(C>>>=1)){case 0:e.mode=14;break;case 1:if(M(e),e.mode=20,B!==6)break;C>>>=2,E-=2;break t;case 2:e.mode=17;break;case 3:v.msg="invalid block type",e.mode=30}C>>>=2,E-=2;break;case 14:for(C>>>=7&E,E-=7&E;E<32;){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}if((65535&C)!=(C>>>16^65535)){v.msg="invalid stored block lengths",e.mode=30;break}if(e.length=65535&C,E=C=0,e.mode=15,B===6)break t;case 15:e.mode=16;case 16:if(H=e.length){if(j<H&&(H=j),V<H&&(H=V),H===0)break t;l.arraySet(J,T,L,H,$),j-=H,L+=H,V-=H,$+=H,e.length-=H;break}e.mode=12;break;case 17:for(;E<14;){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}if(e.nlen=257+(31&C),C>>>=5,E-=5,e.ndist=1+(31&C),C>>>=5,E-=5,e.ncode=4+(15&C),C>>>=4,E-=4,286<e.nlen||30<e.ndist){v.msg="too many length or distance symbols",e.mode=30;break}e.have=0,e.mode=18;case 18:for(;e.have<e.ncode;){for(;E<3;){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}e.lens[F[e.have++]]=7&C,C>>>=3,E-=3}for(;e.have<19;)e.lens[F[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,A={bits:e.lenbits},R=p(0,e.lens,0,19,e.lencode,0,e.work,A),e.lenbits=A.bits,R){v.msg="invalid code lengths set",e.mode=30;break}e.have=0,e.mode=19;case 19:for(;e.have<e.nlen+e.ndist;){for(;et=(s=e.lencode[C&(1<<e.lenbits)-1])>>>16&255,st=65535&s,!((Q=s>>>24)<=E);){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}if(st<16)C>>>=Q,E-=Q,e.lens[e.have++]=st;else{if(st===16){for(f=Q+2;E<f;){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}if(C>>>=Q,E-=Q,e.have===0){v.msg="invalid bit length repeat",e.mode=30;break}t=e.lens[e.have-1],H=3+(3&C),C>>>=2,E-=2}else if(st===17){for(f=Q+3;E<f;){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}E-=Q,t=0,H=3+(7&(C>>>=Q)),C>>>=3,E-=3}else{for(f=Q+7;E<f;){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}E-=Q,t=0,H=11+(127&(C>>>=Q)),C>>>=7,E-=7}if(e.have+H>e.nlen+e.ndist){v.msg="invalid bit length repeat",e.mode=30;break}for(;H--;)e.lens[e.have++]=t}}if(e.mode===30)break;if(e.lens[256]===0){v.msg="invalid code -- missing end-of-block",e.mode=30;break}if(e.lenbits=9,A={bits:e.lenbits},R=p(g,e.lens,0,e.nlen,e.lencode,0,e.work,A),e.lenbits=A.bits,R){v.msg="invalid literal/lengths set",e.mode=30;break}if(e.distbits=6,e.distcode=e.distdyn,A={bits:e.distbits},R=p(_,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,A),e.distbits=A.bits,R){v.msg="invalid distances set",e.mode=30;break}if(e.mode=20,B===6)break t;case 20:e.mode=21;case 21:if(6<=j&&258<=V){v.next_out=$,v.avail_out=V,v.next_in=L,v.avail_in=j,e.hold=C,e.bits=E,h(v,G),$=v.next_out,J=v.output,V=v.avail_out,L=v.next_in,T=v.input,j=v.avail_in,C=e.hold,E=e.bits,e.mode===12&&(e.back=-1);break}for(e.back=0;et=(s=e.lencode[C&(1<<e.lenbits)-1])>>>16&255,st=65535&s,!((Q=s>>>24)<=E);){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}if(et&&(240&et)==0){for(it=Q,lt=et,ut=st;et=(s=e.lencode[ut+((C&(1<<it+lt)-1)>>it)])>>>16&255,st=65535&s,!(it+(Q=s>>>24)<=E);){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}C>>>=it,E-=it,e.back+=it}if(C>>>=Q,E-=Q,e.back+=Q,e.length=st,et===0){e.mode=26;break}if(32&et){e.back=-1,e.mode=12;break}if(64&et){v.msg="invalid literal/length code",e.mode=30;break}e.extra=15&et,e.mode=22;case 22:if(e.extra){for(f=e.extra;E<f;){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}e.length+=C&(1<<e.extra)-1,C>>>=e.extra,E-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=23;case 23:for(;et=(s=e.distcode[C&(1<<e.distbits)-1])>>>16&255,st=65535&s,!((Q=s>>>24)<=E);){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}if((240&et)==0){for(it=Q,lt=et,ut=st;et=(s=e.distcode[ut+((C&(1<<it+lt)-1)>>it)])>>>16&255,st=65535&s,!(it+(Q=s>>>24)<=E);){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}C>>>=it,E-=it,e.back+=it}if(C>>>=Q,E-=Q,e.back+=Q,64&et){v.msg="invalid distance code",e.mode=30;break}e.offset=st,e.extra=15&et,e.mode=24;case 24:if(e.extra){for(f=e.extra;E<f;){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}e.offset+=C&(1<<e.extra)-1,C>>>=e.extra,E-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){v.msg="invalid distance too far back",e.mode=30;break}e.mode=25;case 25:if(V===0)break t;if(H=G-V,e.offset>H){if((H=e.offset-H)>e.whave&&e.sane){v.msg="invalid distance too far back",e.mode=30;break}nt=H>e.wnext?(H-=e.wnext,e.wsize-H):e.wnext-H,H>e.length&&(H=e.length),ot=e.window}else ot=J,nt=$-e.offset,H=e.length;for(V<H&&(H=V),V-=H,e.length-=H;J[$++]=ot[nt++],--H;);e.length===0&&(e.mode=21);break;case 26:if(V===0)break t;J[$++]=e.length,V--,e.mode=21;break;case 27:if(e.wrap){for(;E<32;){if(j===0)break t;j--,C|=T[L++]<<E,E+=8}if(G-=V,v.total_out+=G,e.total+=G,G&&(v.adler=e.check=e.flags?i(e.check,J,G,$-G):o(e.check,J,G,$-G)),G=V,(e.flags?C:a(C))!==e.check){v.msg="incorrect data check",e.mode=30;break}E=C=0}e.mode=28;case 28:if(e.wrap&&e.flags){for(;E<32;){if(j===0)break t;j--,C+=T[L++]<<E,E+=8}if(C!==(4294967295&e.total)){v.msg="incorrect length check",e.mode=30;break}E=C=0}e.mode=29;case 29:R=1;break t;case 30:R=-3;break t;case 31:return-4;case 32:default:return n}return v.next_out=$,v.avail_out=V,v.next_in=L,v.avail_in=j,e.hold=C,e.bits=E,(e.wsize||G!==v.avail_out&&e.mode<30&&(e.mode<27||B!==4))&&q(v,v.output,v.next_out,G-v.avail_out)?(e.mode=31,-4):(X-=v.avail_in,G-=v.avail_out,v.total_in+=X,v.total_out+=G,e.total+=G,e.wrap&&G&&(v.adler=e.check=e.flags?i(e.check,J,G,v.next_out-G):o(e.check,J,G,v.next_out-G)),v.data_type=e.bits+(e.last?64:0)+(e.mode===12?128:0)+(e.mode===20||e.mode===15?256:0),(X==0&&G===0||B===4)&&R===m&&(R=-5),R)},k.inflateEnd=function(v){if(!v||!v.state)return n;var B=v.state;return B.window&&(B.window=null),v.state=null,m},k.inflateGetHeader=function(v,B){var e;return v&&v.state?(2&(e=v.state).wrap)==0?n:((e.head=B).done=!1,m):n},k.inflateSetDictionary=function(v,B){var e,T=B.length;return v&&v.state?(e=v.state).wrap!==0&&e.mode!==11?n:e.mode===11&&o(1,B,T,0)!==e.check?-3:q(v,B,T,T)?(e.mode=31,-4):(e.havedict=1,m):n},k.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(b,U,k){var l=b("../utils/common"),o=[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],i=[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],h=[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];U.exports=function(g,_,m,n,d,r,u,a){var c,y,S,x,D,O,P,I,M,q=a.bits,v=0,B=0,e=0,T=0,J=0,L=0,$=0,j=0,V=0,C=0,E=null,X=0,G=new l.Buf16(16),H=new l.Buf16(16),nt=null,ot=0;for(v=0;v<=15;v++)G[v]=0;for(B=0;B<n;B++)G[_[m+B]]++;for(J=q,T=15;1<=T&&G[T]===0;T--);if(T<J&&(J=T),T===0)return d[r++]=20971520,d[r++]=20971520,a.bits=1,0;for(e=1;e<T&&G[e]===0;e++);for(J<e&&(J=e),v=j=1;v<=15;v++)if(j<<=1,(j-=G[v])<0)return-1;if(0<j&&(g===0||T!==1))return-1;for(H[1]=0,v=1;v<15;v++)H[v+1]=H[v]+G[v];for(B=0;B<n;B++)_[m+B]!==0&&(u[H[_[m+B]]++]=B);if(O=g===0?(E=nt=u,19):g===1?(E=o,X-=257,nt=i,ot-=257,256):(E=h,nt=p,-1),v=e,D=r,$=B=C=0,S=-1,x=(V=1<<(L=J))-1,g===1&&852<V||g===2&&592<V)return 1;for(;;){for(P=v-$,M=u[B]<O?(I=0,u[B]):u[B]>O?(I=nt[ot+u[B]],E[X+u[B]]):(I=96,0),c=1<<v-$,e=y=1<<L;d[D+(C>>$)+(y-=c)]=P<<24|I<<16|M|0,y!==0;);for(c=1<<v-1;C&c;)c>>=1;if(c!==0?(C&=c-1,C+=c):C=0,B++,--G[v]==0){if(v===T)break;v=_[m+u[B]]}if(J<v&&(C&x)!==S){for($===0&&($=J),D+=e,j=1<<(L=v-$);L+$<T&&!((j-=G[L+$])<=0);)L++,j<<=1;if(V+=1<<L,g===1&&852<V||g===2&&592<V)return 1;d[S=C&x]=J<<24|L<<16|D-r|0}}return C!==0&&(d[D+C]=v-$<<24|64<<16|0),a.bits=J,0}},{"../utils/common":41}],51:[function(b,U,k){U.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(b,U,k){var l=b("../utils/common"),o=0,i=1;function h(s){for(var w=s.length;0<=--w;)s[w]=0}var p=0,g=29,_=256,m=_+1+g,n=30,d=19,r=2*m+1,u=15,a=16,c=7,y=256,S=16,x=17,D=18,O=[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],P=[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],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],q=new Array(2*(m+2));h(q);var v=new Array(2*n);h(v);var B=new Array(512);h(B);var e=new Array(256);h(e);var T=new Array(g);h(T);var J,L,$,j=new Array(n);function V(s,w,F,N,z){this.static_tree=s,this.extra_bits=w,this.extra_base=F,this.elems=N,this.max_length=z,this.has_stree=s&&s.length}function C(s,w){this.dyn_tree=s,this.max_code=0,this.stat_desc=w}function E(s){return s<256?B[s]:B[256+(s>>>7)]}function X(s,w){s.pending_buf[s.pending++]=255&w,s.pending_buf[s.pending++]=w>>>8&255}function G(s,w,F){s.bi_valid>a-F?(s.bi_buf|=w<<s.bi_valid&65535,X(s,s.bi_buf),s.bi_buf=w>>a-s.bi_valid,s.bi_valid+=F-a):(s.bi_buf|=w<<s.bi_valid&65535,s.bi_valid+=F)}function H(s,w,F){G(s,F[2*w],F[2*w+1])}function nt(s,w){for(var F=0;F|=1&s,s>>>=1,F<<=1,0<--w;);return F>>>1}function ot(s,w,F){var N,z,Z=new Array(u+1),K=0;for(N=1;N<=u;N++)Z[N]=K=K+F[N-1]<<1;for(z=0;z<=w;z++){var W=s[2*z+1];W!==0&&(s[2*z]=nt(Z[W]++,W))}}function Q(s){var w;for(w=0;w<m;w++)s.dyn_ltree[2*w]=0;for(w=0;w<n;w++)s.dyn_dtree[2*w]=0;for(w=0;w<d;w++)s.bl_tree[2*w]=0;s.dyn_ltree[2*y]=1,s.opt_len=s.static_len=0,s.last_lit=s.matches=0}function et(s){8<s.bi_valid?X(s,s.bi_buf):0<s.bi_valid&&(s.pending_buf[s.pending++]=s.bi_buf),s.bi_buf=0,s.bi_valid=0}function st(s,w,F,N){var z=2*w,Z=2*F;return s[z]<s[Z]||s[z]===s[Z]&&N[w]<=N[F]}function it(s,w,F){for(var N=s.heap[F],z=F<<1;z<=s.heap_len&&(z<s.heap_len&&st(w,s.heap[z+1],s.heap[z],s.depth)&&z++,!st(w,N,s.heap[z],s.depth));)s.heap[F]=s.heap[z],F=z,z<<=1;s.heap[F]=N}function lt(s,w,F){var N,z,Z,K,W=0;if(s.last_lit!==0)for(;N=s.pending_buf[s.d_buf+2*W]<<8|s.pending_buf[s.d_buf+2*W+1],z=s.pending_buf[s.l_buf+W],W++,N===0?H(s,z,w):(H(s,(Z=e[z])+_+1,w),(K=O[Z])!==0&&G(s,z-=T[Z],K),H(s,Z=E(--N),F),(K=P[Z])!==0&&G(s,N-=j[Z],K)),W<s.last_lit;);H(s,y,w)}function ut(s,w){var F,N,z,Z=w.dyn_tree,K=w.stat_desc.static_tree,W=w.stat_desc.has_stree,Y=w.stat_desc.elems,rt=-1;for(s.heap_len=0,s.heap_max=r,F=0;F<Y;F++)Z[2*F]!==0?(s.heap[++s.heap_len]=rt=F,s.depth[F]=0):Z[2*F+1]=0;for(;s.heap_len<2;)Z[2*(z=s.heap[++s.heap_len]=rt<2?++rt:0)]=1,s.depth[z]=0,s.opt_len--,W&&(s.static_len-=K[2*z+1]);for(w.max_code=rt,F=s.heap_len>>1;1<=F;F--)it(s,Z,F);for(z=Y;F=s.heap[1],s.heap[1]=s.heap[s.heap_len--],it(s,Z,1),N=s.heap[1],s.heap[--s.heap_max]=F,s.heap[--s.heap_max]=N,Z[2*z]=Z[2*F]+Z[2*N],s.depth[z]=(s.depth[F]>=s.depth[N]?s.depth[F]:s.depth[N])+1,Z[2*F+1]=Z[2*N+1]=z,s.heap[1]=z++,it(s,Z,1),2<=s.heap_len;);s.heap[--s.heap_max]=s.heap[1],function(tt,ht){var mt,ft,_t,at,vt,wt,dt=ht.dyn_tree,kt=ht.max_code,Et=ht.stat_desc.static_tree,Ct=ht.stat_desc.has_stree,At=ht.stat_desc.extra_bits,xt=ht.stat_desc.extra_base,gt=ht.stat_desc.max_length,bt=0;for(at=0;at<=u;at++)tt.bl_count[at]=0;for(dt[2*tt.heap[tt.heap_max]+1]=0,mt=tt.heap_max+1;mt<r;mt++)gt<(at=dt[2*dt[2*(ft=tt.heap[mt])+1]+1]+1)&&(at=gt,bt++),dt[2*ft+1]=at,kt<ft||(tt.bl_count[at]++,vt=0,xt<=ft&&(vt=At[ft-xt]),wt=dt[2*ft],tt.opt_len+=wt*(at+vt),Ct&&(tt.static_len+=wt*(Et[2*ft+1]+vt)));if(bt!==0){do{for(at=gt-1;tt.bl_count[at]===0;)at--;tt.bl_count[at]--,tt.bl_count[at+1]+=2,tt.bl_count[gt]--,bt-=2}while(0<bt);for(at=gt;at!==0;at--)for(ft=tt.bl_count[at];ft!==0;)kt<(_t=tt.heap[--mt])||(dt[2*_t+1]!==at&&(tt.opt_len+=(at-dt[2*_t+1])*dt[2*_t],dt[2*_t+1]=at),ft--)}}(s,w),ot(Z,rt,s.bl_count)}function t(s,w,F){var N,z,Z=-1,K=w[1],W=0,Y=7,rt=4;for(K===0&&(Y=138,rt=3),w[2*(F+1)+1]=65535,N=0;N<=F;N++)z=K,K=w[2*(N+1)+1],++W<Y&&z===K||(W<rt?s.bl_tree[2*z]+=W:z!==0?(z!==Z&&s.bl_tree[2*z]++,s.bl_tree[2*S]++):W<=10?s.bl_tree[2*x]++:s.bl_tree[2*D]++,Z=z,rt=(W=0)===K?(Y=138,3):z===K?(Y=6,3):(Y=7,4))}function R(s,w,F){var N,z,Z=-1,K=w[1],W=0,Y=7,rt=4;for(K===0&&(Y=138,rt=3),N=0;N<=F;N++)if(z=K,K=w[2*(N+1)+1],!(++W<Y&&z===K)){if(W<rt)for(;H(s,z,s.bl_tree),--W!=0;);else z!==0?(z!==Z&&(H(s,z,s.bl_tree),W--),H(s,S,s.bl_tree),G(s,W-3,2)):W<=10?(H(s,x,s.bl_tree),G(s,W-3,3)):(H(s,D,s.bl_tree),G(s,W-11,7));Z=z,rt=(W=0)===K?(Y=138,3):z===K?(Y=6,3):(Y=7,4)}}h(j);var A=!1;function f(s,w,F,N){G(s,(p<<1)+(N?1:0),3),function(z,Z,K,W){et(z),W&&(X(z,K),X(z,~K)),l.arraySet(z.pending_buf,z.window,Z,K,z.pending),z.pending+=K}(s,w,F,!0)}k._tr_init=function(s){A||(function(){var w,F,N,z,Z,K=new Array(u+1);for(z=N=0;z<g-1;z++)for(T[z]=N,w=0;w<1<<O[z];w++)e[N++]=z;for(e[N-1]=z,z=Z=0;z<16;z++)for(j[z]=Z,w=0;w<1<<P[z];w++)B[Z++]=z;for(Z>>=7;z<n;z++)for(j[z]=Z<<7,w=0;w<1<<P[z]-7;w++)B[256+Z++]=z;for(F=0;F<=u;F++)K[F]=0;for(w=0;w<=143;)q[2*w+1]=8,w++,K[8]++;for(;w<=255;)q[2*w+1]=9,w++,K[9]++;for(;w<=279;)q[2*w+1]=7,w++,K[7]++;for(;w<=287;)q[2*w+1]=8,w++,K[8]++;for(ot(q,m+1,K),w=0;w<n;w++)v[2*w+1]=5,v[2*w]=nt(w,5);J=new V(q,O,_+1,m,u),L=new V(v,P,0,n,u),$=new V(new Array(0),I,0,d,c)}(),A=!0),s.l_desc=new C(s.dyn_ltree,J),s.d_desc=new C(s.dyn_dtree,L),s.bl_desc=new C(s.bl_tree,$),s.bi_buf=0,s.bi_valid=0,Q(s)},k._tr_stored_block=f,k._tr_flush_block=function(s,w,F,N){var z,Z,K=0;0<s.level?(s.strm.data_type===2&&(s.strm.data_type=function(W){var Y,rt=4093624447;for(Y=0;Y<=31;Y++,rt>>>=1)if(1&rt&&W.dyn_ltree[2*Y]!==0)return o;if(W.dyn_ltree[18]!==0||W.dyn_ltree[20]!==0||W.dyn_ltree[26]!==0)return i;for(Y=32;Y<_;Y++)if(W.dyn_ltree[2*Y]!==0)return i;return o}(s)),ut(s,s.l_desc),ut(s,s.d_desc),K=function(W){var Y;for(t(W,W.dyn_ltree,W.l_desc.max_code),t(W,W.dyn_dtree,W.d_desc.max_code),ut(W,W.bl_desc),Y=d-1;3<=Y&&W.bl_tree[2*M[Y]+1]===0;Y--);return W.opt_len+=3*(Y+1)+5+5+4,Y}(s),z=s.opt_len+3+7>>>3,(Z=s.static_len+3+7>>>3)<=z&&(z=Z)):z=Z=F+5,F+4<=z&&w!==-1?f(s,w,F,N):s.strategy===4||Z===z?(G(s,2+(N?1:0),3),lt(s,q,v)):(G(s,4+(N?1:0),3),function(W,Y,rt,tt){var ht;for(G(W,Y-257,5),G(W,rt-1,5),G(W,tt-4,4),ht=0;ht<tt;ht++)G(W,W.bl_tree[2*M[ht]+1],3);R(W,W.dyn_ltree,Y-1),R(W,W.dyn_dtree,rt-1)}(s,s.l_desc.max_code+1,s.d_desc.max_code+1,K+1),lt(s,s.dyn_ltree,s.dyn_dtree)),Q(s),N&&et(s)},k._tr_tally=function(s,w,F){return s.pending_buf[s.d_buf+2*s.last_lit]=w>>>8&255,s.pending_buf[s.d_buf+2*s.last_lit+1]=255&w,s.pending_buf[s.l_buf+s.last_lit]=255&F,s.last_lit++,w===0?s.dyn_ltree[2*F]++:(s.matches++,w--,s.dyn_ltree[2*(e[F]+_+1)]++,s.dyn_dtree[2*E(w)]++),s.last_lit===s.lit_bufsize-1},k._tr_align=function(s){G(s,2,3),H(s,y,q),function(w){w.bi_valid===16?(X(w,w.bi_buf),w.bi_buf=0,w.bi_valid=0):8<=w.bi_valid&&(w.pending_buf[w.pending++]=255&w.bi_buf,w.bi_buf>>=8,w.bi_valid-=8)}(s)}},{"../utils/common":41}],53:[function(b,U,k){U.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(b,U,k){(function(l){(function(o,i){if(!o.setImmediate){var h,p,g,_,m=1,n={},d=!1,r=o.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(o);u=u&&u.setTimeout?u:o,h={}.toString.call(o.process)==="[object process]"?function(S){process.nextTick(function(){c(S)})}:function(){if(o.postMessage&&!o.importScripts){var S=!0,x=o.onmessage;return o.onmessage=function(){S=!1},o.postMessage("","*"),o.onmessage=x,S}}()?(_="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",y,!1):o.attachEvent("onmessage",y),function(S){o.postMessage(_+S,"*")}):o.MessageChannel?((g=new MessageChannel).port1.onmessage=function(S){c(S.data)},function(S){g.port2.postMessage(S)}):r&&"onreadystatechange"in r.createElement("script")?(p=r.documentElement,function(S){var x=r.createElement("script");x.onreadystatechange=function(){c(S),x.onreadystatechange=null,p.removeChild(x),x=null},p.appendChild(x)}):function(S){setTimeout(c,0,S)},u.setImmediate=function(S){typeof S!="function"&&(S=new Function(""+S));for(var x=new Array(arguments.length-1),D=0;D<x.length;D++)x[D]=arguments[D+1];var O={callback:S,args:x};return n[m]=O,h(m),m++},u.clearImmediate=a}function a(S){delete n[S]}function c(S){if(d)setTimeout(c,0,S);else{var x=n[S];if(x){d=!0;try{(function(D){var O=D.callback,P=D.args;switch(P.length){case 0:O();break;case 1:O(P[0]);break;case 2:O(P[0],P[1]);break;case 3:O(P[0],P[1],P[2]);break;default:O.apply(i,P)}})(x)}finally{a(S),d=!1}}}}function y(S){S.source===o&&typeof S.data=="string"&&S.data.indexOf(_)===0&&c(+S.data.slice(_.length))}})(typeof self>"u"?l===void 0?this:l:self)}).call(this,typeof ct<"u"?ct:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(St);const Bt=St.exports;var It={exports:{}};(function(pt,zt){(function(b,U){U()})(ct,function(){function b(p,g){return typeof g>"u"?g={autoBom:!1}:typeof g!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),g={autoBom:!g}),g.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(p.type)?new Blob(["\uFEFF",p],{type:p.type}):p}function U(p,g,_){var m=new XMLHttpRequest;m.open("GET",p),m.responseType="blob",m.onload=function(){h(m.response,g,_)},m.onerror=function(){console.error("could not download file")},m.send()}function k(p){var g=new XMLHttpRequest;g.open("HEAD",p,!1);try{g.send()}catch{}return 200<=g.status&&299>=g.status}function l(p){try{p.dispatchEvent(new MouseEvent("click"))}catch{var g=document.createEvent("MouseEvents");g.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),p.dispatchEvent(g)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof ct=="object"&&ct.global===ct?ct:void 0,i=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(p,g,_){var m=o.URL||o.webkitURL,n=document.createElement("a");g=g||p.name||"download",n.download=g,n.rel="noopener",typeof p=="string"?(n.href=p,n.origin===location.origin?l(n):k(n.href)?U(p,g,_):l(n,n.target="_blank")):(n.href=m.createObjectURL(p),setTimeout(function(){m.revokeObjectURL(n.href)},4e4),setTimeout(function(){l(n)},0))}:"msSaveOrOpenBlob"in navigator?function(p,g,_){if(g=g||p.name||"download",typeof p!="string")navigator.msSaveOrOpenBlob(b(p,_),g);else if(k(p))U(p,g,_);else{var m=document.createElement("a");m.href=p,m.target="_blank",setTimeout(function(){l(m)})}}:function(p,g,_,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof p=="string")return U(p,g,_);var n=p.type==="application/octet-stream",d=/constructor/i.test(o.HTMLElement)||o.safari,r=/CriOS\/[\d]+/.test(navigator.userAgent);if((r||n&&d||i)&&typeof FileReader<"u"){var u=new FileReader;u.onloadend=function(){var y=u.result;y=r?y:y.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=y:location=y,m=null},u.readAsDataURL(p)}else{var a=o.URL||o.webkitURL,c=a.createObjectURL(p);m?m.location=c:location.href=c,m=null,setTimeout(function(){a.revokeObjectURL(c)},4e4)}});o.saveAs=h.saveAs=h,pt.exports=h})})(It);export{It as F,Bt as J};