import{c as kt,g as Ft,L as Ut,E as Ot}from"./logger.js";import{r as mt,j as _t,C as Nt,e as Pt,A as Lt,B as jt,ay as Zt,aX as Wt,ap as zt,b as Mt}from"./utils.js";import{l as Ht,L as Gt}from"./zh_CN.js";function xt(lt){throw new Error('Could not dynamically require "'+lt+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Bt={exports:{}};/*!

JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>

(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.

JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/(function(lt,ft){(function(m){lt.exports=m()})(function(){return function m(F,w,l){function o(g,v){if(!w[g]){if(!F[g]){var p=typeof xt=="function"&&xt;if(!v&&p)return p(g,!0);if(n)return n(g,!0);var b=new Error("Cannot find module '"+g+"'");throw b.code="MODULE_NOT_FOUND",b}var i=w[g]={exports:{}};F[g][0].call(i.exports,function(c){var r=F[g][1][c];return o(r||c)},i,i.exports,m,F,w,l)}return w[g].exports}for(var n=typeof xt=="function"&&xt,u=0;u<l.length;u++)o(l[u]);return o}({1:[function(m,F,w){var l=m("./utils"),o=m("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";w.encode=function(u){for(var g,v,p,b,i,c,r,h=[],a=0,d=u.length,y=d,S=l.getTypeOf(u)!=="string";a<u.length;)y=d-a,p=S?(g=u[a++],v=a<d?u[a++]:0,a<d?u[a++]:0):(g=u.charCodeAt(a++),v=a<d?u.charCodeAt(a++):0,a<d?u.charCodeAt(a++):0),b=g>>2,i=(3&g)<<4|v>>4,c=1<y?(15&v)<<2|p>>6:64,r=2<y?63&p:64,h.push(n.charAt(b)+n.charAt(i)+n.charAt(c)+n.charAt(r));return h.join("")},w.decode=function(u){var g,v,p,b,i,c,r=0,h=0,a="data:";if(u.substr(0,a.length)===a)throw new Error("Invalid base64 input, it looks like a data url.");var d,y=3*(u=u.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(u.charAt(u.length-1)===n.charAt(64)&&y--,u.charAt(u.length-2)===n.charAt(64)&&y--,y%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=o.uint8array?new Uint8Array(0|y):new Array(0|y);r<u.length;)g=n.indexOf(u.charAt(r++))<<2|(b=n.indexOf(u.charAt(r++)))>>4,v=(15&b)<<4|(i=n.indexOf(u.charAt(r++)))>>2,p=(3&i)<<6|(c=n.indexOf(u.charAt(r++))),d[h++]=g,i!==64&&(d[h++]=v),c!==64&&(d[h++]=p);return d}},{"./support":30,"./utils":32}],2:[function(m,F,w){var l=m("./external"),o=m("./stream/DataWorker"),n=m("./stream/Crc32Probe"),u=m("./stream/DataLengthProbe");function g(v,p,b,i,c){this.compressedSize=v,this.uncompressedSize=p,this.crc32=b,this.compression=i,this.compressedContent=c}g.prototype={getContentWorker:function(){var v=new o(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),p=this;return v.on("end",function(){if(this.streamInfo.data_length!==p.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),v},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)}},g.createWorkerFrom=function(v,p,b){return v.pipe(new n).pipe(new u("uncompressedSize")).pipe(p.compressWorker(b)).pipe(new u("compressedSize")).withStreamInfo("compression",p)},F.exports=g},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(m,F,w){var l=m("./stream/GenericWorker");w.STORE={magic:"\0\0",compressWorker:function(){return new l("STORE compression")},uncompressWorker:function(){return new l("STORE decompression")}},w.DEFLATE=m("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(m,F,w){var l=m("./utils"),o=function(){for(var n,u=[],g=0;g<256;g++){n=g;for(var v=0;v<8;v++)n=1&n?3988292384^n>>>1:n>>>1;u[g]=n}return u}();F.exports=function(n,u){return n!==void 0&&n.length?l.getTypeOf(n)!=="string"?function(g,v,p,b){var i=o,c=b+p;g^=-1;for(var r=b;r<c;r++)g=g>>>8^i[255&(g^v[r])];return-1^g}(0|u,n,n.length,0):function(g,v,p,b){var i=o,c=b+p;g^=-1;for(var r=b;r<c;r++)g=g>>>8^i[255&(g^v.charCodeAt(r))];return-1^g}(0|u,n,n.length,0):0}},{"./utils":32}],5:[function(m,F,w){w.base64=!1,w.binary=!1,w.dir=!1,w.createFolders=!0,w.date=null,w.compression=null,w.compressionOptions=null,w.comment=null,w.unixPermissions=null,w.dosPermissions=null},{}],6:[function(m,F,w){var l=null;l=typeof Promise<"u"?Promise:m("lie"),F.exports={Promise:l}},{lie:37}],7:[function(m,F,w){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=m("pako"),n=m("./utils"),u=m("./stream/GenericWorker"),g=l?"uint8array":"array";function v(p,b){u.call(this,"FlateWorker/"+p),this._pako=null,this._pakoAction=p,this._pakoOptions=b,this.meta={}}w.magic="\b\0",n.inherits(v,u),v.prototype.processChunk=function(p){this.meta=p.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(g,p.data),!1)},v.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},v.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},v.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var p=this;this._pako.onData=function(b){p.push({data:b,meta:p.meta})}},w.compressWorker=function(p){return new v("Deflate",p)},w.uncompressWorker=function(){return new v("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(m,F,w){function l(i,c){var r,h="";for(r=0;r<c;r++)h+=String.fromCharCode(255&i),i>>>=8;return h}function o(i,c,r,h,a,d){var y,S,x=i.file,D=i.compression,O=d!==g.utf8encode,L=n.transformTo("string",d(x.name)),I=n.transformTo("string",g.utf8encode(x.name)),W=x.comment,X=n.transformTo("string",d(W)),_=n.transformTo("string",g.utf8encode(W)),B=I.length!==x.name.length,e=_.length!==W.length,T="",J="",P="",$=x.dir,j=x.date,q={crc32:0,compressedSize:0,uncompressedSize:0};c&&!r||(q.crc32=i.crc32,q.compressedSize=i.compressedSize,q.uncompressedSize=i.uncompressedSize);var E=0;c&&(E|=8),O||!B&&!e||(E|=2048);var C=0,Y=0;$&&(C|=16),a==="UNIX"?(Y=798,C|=function(H,nt){var ot=H;return H||(ot=nt?16893:33204),(65535&ot)<<16}(x.unixPermissions,$)):(Y=20,C|=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(v(L),4)+I,T+="up"+l(J.length,2)+J),e&&(P=l(1,1)+l(v(X),4)+_,T+="uc"+l(P.length,2)+P);var G="";return G+=`
\0`,G+=l(E,2),G+=D.magic,G+=l(y,2),G+=l(S,2),G+=l(q.crc32,4),G+=l(q.compressedSize,4),G+=l(q.uncompressedSize,4),G+=l(L.length,2),G+=l(T.length,2),{fileRecord:p.LOCAL_FILE_HEADER+G+L+T,dirRecord:p.CENTRAL_FILE_HEADER+l(Y,2)+G+l(X.length,2)+"\0\0\0\0"+l(C,4)+l(h,4)+L+T+X}}var n=m("../utils"),u=m("../stream/GenericWorker"),g=m("../utf8"),v=m("../crc32"),p=m("../signature");function b(i,c,r,h){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=c,this.zipPlatform=r,this.encodeFileName=h,this.streamFiles=i,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(b,u),b.prototype.push=function(i){var c=i.meta.percent||0,r=this.entriesCount,h=this._sources.length;this.accumulate?this.contentBuffer.push(i):(this.bytesWritten+=i.data.length,u.prototype.push.call(this,{data:i.data,meta:{currentFile:this.currentFile,percent:r?(c+100*(r-h-1))/r:100}}))},b.prototype.openedSource=function(i){this.currentSourceOffset=this.bytesWritten,this.currentFile=i.file.name;var c=this.streamFiles&&!i.file.dir;if(c){var r=o(i,c,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},b.prototype.closedSource=function(i){this.accumulate=!1;var c=this.streamFiles&&!i.file.dir,r=o(i,c,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),c)this.push({data:function(h){return p.DATA_DESCRIPTOR+l(h.crc32,4)+l(h.compressedSize,4)+l(h.uncompressedSize,4)}(i),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},b.prototype.flush=function(){for(var i=this.bytesWritten,c=0;c<this.dirRecords.length;c++)this.push({data:this.dirRecords[c],meta:{percent:100}});var r=this.bytesWritten-i,h=function(a,d,y,S,x){var D=n.transformTo("string",x(S));return p.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(a,2)+l(a,2)+l(d,4)+l(y,4)+l(D.length,2)+D}(this.dirRecords.length,r,i,this.zipComment,this.encodeFileName);this.push({data:h,meta:{percent:100}})},b.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},b.prototype.registerPrevious=function(i){this._sources.push(i);var c=this;return i.on("data",function(r){c.processChunk(r)}),i.on("end",function(){c.closedSource(c.previous.streamInfo),c._sources.length?c.prepareNextSource():c.end()}),i.on("error",function(r){c.error(r)}),this},b.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},b.prototype.error=function(i){var c=this._sources;if(!u.prototype.error.call(this,i))return!1;for(var r=0;r<c.length;r++)try{c[r].error(i)}catch{}return!0},b.prototype.lock=function(){u.prototype.lock.call(this);for(var i=this._sources,c=0;c<i.length;c++)i[c].lock()},F.exports=b},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(m,F,w){var l=m("../compressions"),o=m("./ZipFileWorker");w.generateWorker=function(n,u,g){var v=new o(u.streamFiles,g,u.platform,u.encodeFileName),p=0;try{n.forEach(function(b,i){p++;var c=function(d,y){var S=d||y,x=l[S];if(!x)throw new Error(S+" is not a valid compression method !");return x}(i.options.compression,u.compression),r=i.options.compressionOptions||u.compressionOptions||{},h=i.dir,a=i.date;i._compressWorker(c,r).withStreamInfo("file",{name:b,dir:h,date:a,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(v)}),v.entriesCount=p}catch(b){v.error(b)}return v}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(m,F,w){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 n in this)typeof this[n]!="function"&&(o[n]=this[n]);return o}}(l.prototype=m("./object")).loadAsync=m("./load"),l.support=m("./support"),l.defaults=m("./defaults"),l.version="3.10.1",l.loadAsync=function(o,n){return new l().loadAsync(o,n)},l.external=m("./external"),F.exports=l},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(m,F,w){var l=m("./utils"),o=m("./external"),n=m("./utf8"),u=m("./zipEntries"),g=m("./stream/Crc32Probe"),v=m("./nodejsUtils");function p(b){return new o.Promise(function(i,c){var r=b.decompressed.getContentWorker().pipe(new g);r.on("error",function(h){c(h)}).on("end",function(){r.streamInfo.crc32!==b.decompressed.crc32?c(new Error("Corrupted zip : CRC32 mismatch")):i()}).resume()})}F.exports=function(b,i){var c=this;return i=l.extend(i||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),v.isNode&&v.isStream(b)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):l.prepareContent("the loaded zip file",b,!0,i.optimizedBinaryString,i.base64).then(function(r){var h=new u(i);return h.load(r),h}).then(function(r){var h=[o.Promise.resolve(r)],a=r.files;if(i.checkCRC32)for(var d=0;d<a.length;d++)h.push(p(a[d]));return o.Promise.all(h)}).then(function(r){for(var h=r.shift(),a=h.files,d=0;d<a.length;d++){var y=a[d],S=y.fileNameStr,x=l.resolve(y.fileNameStr);c.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:i.createFolders}),y.dir||(c.file(x).unsafeOriginalName=S)}return h.zipComment.length&&(c.comment=h.zipComment),c})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(m,F,w){var l=m("../utils"),o=m("../stream/GenericWorker");function n(u,g){o.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(g)}l.inherits(n,o),n.prototype._bindStream=function(u){var g=this;(this._stream=u).pause(),u.on("data",function(v){g.push({data:v,meta:{percent:0}})}).on("error",function(v){g.isPaused?this.generatedError=v:g.error(v)}).on("end",function(){g.isPaused?g._upstreamEnded=!0:g.end()})},n.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},F.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(m,F,w){var l=m("readable-stream").Readable;function o(n,u,g){l.call(this,u),this._helper=n;var v=this;n.on("data",function(p,b){v.push(p)||v._helper.pause(),g&&g(b)}).on("error",function(p){v.emit("error",p)}).on("end",function(){v.push(null)})}m("../utils").inherits(o,l),o.prototype._read=function(){this._helper.resume()},F.exports=o},{"../utils":32,"readable-stream":16}],14:[function(m,F,w){F.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(m,F,w){function l(x,D,O){var L,I=n.getTypeOf(D),W=n.extend(O||{},v);W.date=W.date||new Date,W.compression!==null&&(W.compression=W.compression.toUpperCase()),typeof W.unixPermissions=="string"&&(W.unixPermissions=parseInt(W.unixPermissions,8)),W.unixPermissions&&16384&W.unixPermissions&&(W.dir=!0),W.dosPermissions&&16&W.dosPermissions&&(W.dir=!0),W.dir&&(x=a(x)),W.createFolders&&(L=h(x))&&d.call(this,L,!0);var X=I==="string"&&W.binary===!1&&W.base64===!1;O&&O.binary!==void 0||(W.binary=!X),(D instanceof p&&D.uncompressedSize===0||W.dir||!D||D.length===0)&&(W.base64=!1,W.binary=!0,D="",W.compression="STORE",I="string");var _=null;_=D instanceof p||D instanceof u?D:c.isNode&&c.isStream(D)?new r(x,D):n.prepareContent(x,D,W.binary,W.optimizedBinaryString,W.base64);var B=new b(x,_,W);this.files[x]=B}var o=m("./utf8"),n=m("./utils"),u=m("./stream/GenericWorker"),g=m("./stream/StreamHelper"),v=m("./defaults"),p=m("./compressedObject"),b=m("./zipObject"),i=m("./generate"),c=m("./nodejsUtils"),r=m("./nodejs/NodejsStreamInputAdapter"),h=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},d=function(x,D){return D=D!==void 0?D:v.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,L;for(D in this.files)L=this.files[D],(O=D.slice(this.root.length,D.length))&&D.slice(0,this.root.length)===this.root&&x(O,L)},filter:function(x){var D=[];return this.forEach(function(O,L){x(O,L)&&D.push(L)}),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 L=x;return this.filter(function(W,X){return!X.dir&&L.test(W)})}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,W){return W.dir&&x.test(I)});var D=this.root+x,O=d.call(this,D),L=this.clone();return L.root=O.name,L},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,W){return W.name.slice(0,x.length)===x}),L=0;L<O.length;L++)delete this.files[O[L].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=n.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.");n.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 L=O.comment||this.comment||"";D=i.generateWorker(this,O,L)}catch(I){(D=new u("error")).error(I)}return new g(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)}};F.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(m,F,w){F.exports=m("stream")},{stream:void 0}],17:[function(m,F,w){var l=m("./DataReader");function o(n){l.call(this,n);for(var u=0;u<this.data.length;u++)n[u]=255&n[u]}m("../utils").inherits(o,l),o.prototype.byteAt=function(n){return this.data[this.zero+n]},o.prototype.lastIndexOfSignature=function(n){for(var u=n.charCodeAt(0),g=n.charCodeAt(1),v=n.charCodeAt(2),p=n.charCodeAt(3),b=this.length-4;0<=b;--b)if(this.data[b]===u&&this.data[b+1]===g&&this.data[b+2]===v&&this.data[b+3]===p)return b-this.zero;return-1},o.prototype.readAndCheckSignature=function(n){var u=n.charCodeAt(0),g=n.charCodeAt(1),v=n.charCodeAt(2),p=n.charCodeAt(3),b=this.readData(4);return u===b[0]&&g===b[1]&&v===b[2]&&p===b[3]},o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},F.exports=o},{"../utils":32,"./DataReader":18}],18:[function(m,F,w){var l=m("../utils");function o(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(n){this.checkIndex(this.index+n)},checkIndex:function(n){if(this.length<this.zero+n||n<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+n+"). Corrupted zip ?")},setIndex:function(n){this.checkIndex(n),this.index=n},skip:function(n){this.setIndex(this.index+n)},byteAt:function(){},readInt:function(n){var u,g=0;for(this.checkOffset(n),u=this.index+n-1;u>=this.index;u--)g=(g<<8)+this.byteAt(u);return this.index+=n,g},readString:function(n){return l.transformTo("string",this.readData(n))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}},F.exports=o},{"../utils":32}],19:[function(m,F,w){var l=m("./Uint8ArrayReader");function o(n){l.call(this,n)}m("../utils").inherits(o,l),o.prototype.readData=function(n){this.checkOffset(n);var u=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},F.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(m,F,w){var l=m("./DataReader");function o(n){l.call(this,n)}m("../utils").inherits(o,l),o.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},o.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},o.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},o.prototype.readData=function(n){this.checkOffset(n);var u=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},F.exports=o},{"../utils":32,"./DataReader":18}],21:[function(m,F,w){var l=m("./ArrayReader");function o(n){l.call(this,n)}m("../utils").inherits(o,l),o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},F.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(m,F,w){var l=m("../utils"),o=m("../support"),n=m("./ArrayReader"),u=m("./StringReader"),g=m("./NodeBufferReader"),v=m("./Uint8ArrayReader");F.exports=function(p){var b=l.getTypeOf(p);return l.checkSupport(b),b!=="string"||o.uint8array?b==="nodebuffer"?new g(p):o.uint8array?new v(l.transformTo("uint8array",p)):new n(l.transformTo("array",p)):new u(p)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(m,F,w){w.LOCAL_FILE_HEADER="PK",w.CENTRAL_FILE_HEADER="PK",w.CENTRAL_DIRECTORY_END="PK",w.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",w.ZIP64_CENTRAL_DIRECTORY_END="PK",w.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(m,F,w){var l=m("./GenericWorker"),o=m("../utils");function n(u){l.call(this,"ConvertWorker to "+u),this.destType=u}o.inherits(n,l),n.prototype.processChunk=function(u){this.push({data:o.transformTo(this.destType,u.data),meta:u.meta})},F.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(m,F,w){var l=m("./GenericWorker"),o=m("../crc32");function n(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}m("../utils").inherits(n,l),n.prototype.processChunk=function(u){this.streamInfo.crc32=o(u.data,this.streamInfo.crc32||0),this.push(u)},F.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(m,F,w){var l=m("../utils"),o=m("./GenericWorker");function n(u){o.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}l.inherits(n,o),n.prototype.processChunk=function(u){if(u){var g=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=g+u.data.length}o.prototype.processChunk.call(this,u)},F.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(m,F,w){var l=m("../utils"),o=m("./GenericWorker");function n(u){o.call(this,"DataWorker");var g=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(v){g.dataIsReady=!0,g.data=v,g.max=v&&v.length||0,g.type=l.getTypeOf(v),g.isPaused||g._tickAndRepeat()},function(v){g.error(v)})}l.inherits(n,o),n.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(l.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,g=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,g);break;case"uint8array":u=this.data.subarray(this.index,g);break;case"array":case"nodebuffer":u=this.data.slice(this.index,g)}return this.index=g,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},F.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(m,F,w){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,n){return this._listeners[o].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,n){if(this._listeners[o])for(var u=0;u<this._listeners[o].length;u++)this._listeners[o][u].call(this,n)},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 n=this;return o.on("data",function(u){n.processChunk(u)}),o.on("end",function(){n.end()}),o.on("error",function(u){n.error(u)}),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,n){return this.extraStreamInfo[o]=n,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}},F.exports=l},{}],29:[function(m,F,w){var l=m("../utils"),o=m("./ConvertWorker"),n=m("./GenericWorker"),u=m("../base64"),g=m("../support"),v=m("../external"),p=null;if(g.nodestream)try{p=m("../nodejs/NodejsStreamOutputAdapter")}catch{}function b(c,r){return new v.Promise(function(h,a){var d=[],y=c._internalType,S=c._outputType,x=c._mimeType;c.on("data",function(D,O){d.push(D),r&&r(O)}).on("error",function(D){d=[],a(D)}).on("end",function(){try{var D=function(O,L,I){switch(O){case"blob":return l.newBlob(l.transformTo("arraybuffer",L),I);case"base64":return u.encode(L);default:return l.transformTo(O,L)}}(S,function(O,L){var I,W=0,X=null,_=0;for(I=0;I<L.length;I++)_+=L[I].length;switch(O){case"string":return L.join("");case"array":return Array.prototype.concat.apply([],L);case"uint8array":for(X=new Uint8Array(_),I=0;I<L.length;I++)X.set(L[I],W),W+=L[I].length;return X;case"nodebuffer":return Buffer.concat(L);default:throw new Error("concat : unsupported type '"+O+"'")}}(y,d),x);h(D)}catch(O){a(O)}d=[]}).resume()})}function i(c,r,h){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=h,l.checkSupport(a),this._worker=c.pipe(new o(a)),c.lock()}catch(d){this._worker=new n("error"),this._worker.error(d)}}i.prototype={accumulate:function(c){return b(this,c)},on:function(c,r){var h=this;return c==="data"?this._worker.on(c,function(a){r.call(h,a.data,a.meta)}):this._worker.on(c,function(){l.delay(r,arguments,h)}),this},resume:function(){return l.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(c){if(l.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new p(this,{objectMode:this._outputType!=="nodebuffer"},c)}},F.exports=i},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(m,F,w){if(w.base64=!0,w.array=!0,w.string=!0,w.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",w.nodebuffer=typeof Buffer<"u",w.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")w.blob=!1;else{var l=new ArrayBuffer(0);try{w.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),w.blob=o.getBlob("application/zip").size===0}catch{w.blob=!1}}}try{w.nodestream=!!m("readable-stream").Readable}catch{w.nodestream=!1}},{"readable-stream":16}],31:[function(m,F,w){for(var l=m("./utils"),o=m("./support"),n=m("./nodejsUtils"),u=m("./stream/GenericWorker"),g=new Array(256),v=0;v<256;v++)g[v]=252<=v?6:248<=v?5:240<=v?4:224<=v?3:192<=v?2:1;g[254]=g[254]=1;function p(){u.call(this,"utf-8 decode"),this.leftOver=null}function b(){u.call(this,"utf-8 encode")}w.utf8encode=function(i){return o.nodebuffer?n.newBufferFrom(i,"utf-8"):function(c){var r,h,a,d,y,S=c.length,x=0;for(d=0;d<S;d++)(64512&(h=c.charCodeAt(d)))==55296&&d+1<S&&(64512&(a=c.charCodeAt(d+1)))==56320&&(h=65536+(h-55296<<10)+(a-56320),d++),x+=h<128?1:h<2048?2:h<65536?3:4;for(r=o.uint8array?new Uint8Array(x):new Array(x),d=y=0;y<x;d++)(64512&(h=c.charCodeAt(d)))==55296&&d+1<S&&(64512&(a=c.charCodeAt(d+1)))==56320&&(h=65536+(h-55296<<10)+(a-56320),d++),h<128?r[y++]=h:(h<2048?r[y++]=192|h>>>6:(h<65536?r[y++]=224|h>>>12:(r[y++]=240|h>>>18,r[y++]=128|h>>>12&63),r[y++]=128|h>>>6&63),r[y++]=128|63&h);return r}(i)},w.utf8decode=function(i){return o.nodebuffer?l.transformTo("nodebuffer",i).toString("utf-8"):function(c){var r,h,a,d,y=c.length,S=new Array(2*y);for(r=h=0;r<y;)if((a=c[r++])<128)S[h++]=a;else if(4<(d=g[a]))S[h++]=65533,r+=d-1;else{for(a&=d===2?31:d===3?15:7;1<d&&r<y;)a=a<<6|63&c[r++],d--;1<d?S[h++]=65533:a<65536?S[h++]=a:(a-=65536,S[h++]=55296|a>>10&1023,S[h++]=56320|1023&a)}return S.length!==h&&(S.subarray?S=S.subarray(0,h):S.length=h),l.applyFromCharCode(S)}(i=l.transformTo(o.uint8array?"uint8array":"array",i))},l.inherits(p,u),p.prototype.processChunk=function(i){var c=l.transformTo(o.uint8array?"uint8array":"array",i.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var r=c;(c=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),c.set(r,this.leftOver.length)}else c=this.leftOver.concat(c);this.leftOver=null}var h=function(d,y){var S;for((y=y||d.length)>d.length&&(y=d.length),S=y-1;0<=S&&(192&d[S])==128;)S--;return S<0||S===0?y:S+g[d[S]]>y?S:y}(c),a=c;h!==c.length&&(o.uint8array?(a=c.subarray(0,h),this.leftOver=c.subarray(h,c.length)):(a=c.slice(0,h),this.leftOver=c.slice(h,c.length))),this.push({data:w.utf8decode(a),meta:i.meta})},p.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:w.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},w.Utf8DecodeWorker=p,l.inherits(b,u),b.prototype.processChunk=function(i){this.push({data:w.utf8encode(i.data),meta:i.meta})},w.Utf8EncodeWorker=b},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(m,F,w){var l=m("./support"),o=m("./base64"),n=m("./nodejsUtils"),u=m("./external");function g(r){return r}function v(r,h){for(var a=0;a<r.length;++a)h[a]=255&r.charCodeAt(a);return h}m("setimmediate"),w.newBlob=function(r,h){w.checkSupport("blob");try{return new Blob([r],{type:h})}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return a.append(r),a.getBlob(h)}catch{throw new Error("Bug : can't construct the Blob.")}}};var p={stringifyByChunk:function(r,h,a){var d=[],y=0,S=r.length;if(S<=a)return String.fromCharCode.apply(null,r);for(;y<S;)h==="array"||h==="nodebuffer"?d.push(String.fromCharCode.apply(null,r.slice(y,Math.min(y+a,S)))):d.push(String.fromCharCode.apply(null,r.subarray(y,Math.min(y+a,S)))),y+=a;return d.join("")},stringifyByChar:function(r){for(var h="",a=0;a<r.length;a++)h+=String.fromCharCode(r[a]);return h},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,n.allocBuffer(1)).length===1}catch{return!1}}()}};function b(r){var h=65536,a=w.getTypeOf(r),d=!0;if(a==="uint8array"?d=p.applyCanBeUsed.uint8array:a==="nodebuffer"&&(d=p.applyCanBeUsed.nodebuffer),d)for(;1<h;)try{return p.stringifyByChunk(r,a,h)}catch{h=Math.floor(h/2)}return p.stringifyByChar(r)}function i(r,h){for(var a=0;a<r.length;a++)h[a]=r[a];return h}w.applyFromCharCode=b;var c={};c.string={string:g,array:function(r){return v(r,new Array(r.length))},arraybuffer:function(r){return c.string.uint8array(r).buffer},uint8array:function(r){return v(r,new Uint8Array(r.length))},nodebuffer:function(r){return v(r,n.allocBuffer(r.length))}},c.array={string:b,array:g,arraybuffer:function(r){return new Uint8Array(r).buffer},uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return n.newBufferFrom(r)}},c.arraybuffer={string:function(r){return b(new Uint8Array(r))},array:function(r){return i(new Uint8Array(r),new Array(r.byteLength))},arraybuffer:g,uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return n.newBufferFrom(new Uint8Array(r))}},c.uint8array={string:b,array:function(r){return i(r,new Array(r.length))},arraybuffer:function(r){return r.buffer},uint8array:g,nodebuffer:function(r){return n.newBufferFrom(r)}},c.nodebuffer={string:b,array:function(r){return i(r,new Array(r.length))},arraybuffer:function(r){return c.nodebuffer.uint8array(r).buffer},uint8array:function(r){return i(r,new Uint8Array(r.length))},nodebuffer:g},w.transformTo=function(r,h){if(h=h||"",!r)return h;w.checkSupport(r);var a=w.getTypeOf(h);return c[a][r](h)},w.resolve=function(r){for(var h=r.split("/"),a=[],d=0;d<h.length;d++){var y=h[d];y==="."||y===""&&d!==0&&d!==h.length-1||(y===".."?a.pop():a.push(y))}return a.join("/")},w.getTypeOf=function(r){return typeof r=="string"?"string":Object.prototype.toString.call(r)==="[object Array]"?"array":l.nodebuffer&&n.isBuffer(r)?"nodebuffer":l.uint8array&&r instanceof Uint8Array?"uint8array":l.arraybuffer&&r instanceof ArrayBuffer?"arraybuffer":void 0},w.checkSupport=function(r){if(!l[r.toLowerCase()])throw new Error(r+" is not supported by this platform")},w.MAX_VALUE_16BITS=65535,w.MAX_VALUE_32BITS=-1,w.pretty=function(r){var h,a,d="";for(a=0;a<(r||"").length;a++)d+="\\x"+((h=r.charCodeAt(a))<16?"0":"")+h.toString(16).toUpperCase();return d},w.delay=function(r,h,a){setImmediate(function(){r.apply(a||null,h||[])})},w.inherits=function(r,h){function a(){}a.prototype=h.prototype,r.prototype=new a},w.extend=function(){var r,h,a={};for(r=0;r<arguments.length;r++)for(h in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],h)&&a[h]===void 0&&(a[h]=arguments[r][h]);return a},w.prepareContent=function(r,h,a,d,y){return u.Promise.resolve(h).then(function(S){return l.blob&&(S instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(S))!==-1)&&typeof FileReader<"u"?new u.Promise(function(x,D){var O=new FileReader;O.onload=function(L){x(L.target.result)},O.onerror=function(L){D(L.target.error)},O.readAsArrayBuffer(S)}):S}).then(function(S){var x=w.getTypeOf(S);return x?(x==="arraybuffer"?S=w.transformTo("uint8array",S):x==="string"&&(y?S=o.decode(S):a&&d!==!0&&(S=function(D){return v(D,l.uint8array?new Uint8Array(D.length):new Array(D.length))}(S))),S):u.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(m,F,w){var l=m("./reader/readerFor"),o=m("./utils"),n=m("./signature"),u=m("./zipEntry"),g=m("./support");function v(p){this.files=[],this.loadOptions=p}v.prototype={checkSignature:function(p){if(!this.reader.readAndCheckSignature(p)){this.reader.index-=4;var b=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(b)+", expected "+o.pretty(p)+")")}},isSignature:function(p,b){var i=this.reader.index;this.reader.setIndex(p);var c=this.reader.readString(4)===b;return this.reader.setIndex(i),c},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 p=this.reader.readData(this.zipCommentLength),b=g.uint8array?"uint8array":"array",i=o.transformTo(b,p);this.zipComment=this.loadOptions.decodeFileName(i)},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 p,b,i,c=this.zip64EndOfCentralSize-44;0<c;)p=this.reader.readInt(2),b=this.reader.readInt(4),i=this.reader.readData(b),this.zip64ExtensibleData[p]={id:p,length:b,value:i}},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 p,b;for(p=0;p<this.files.length;p++)b=this.files[p],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8(),b.processAttributes()},readCentralDir:function(){var p;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(p=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(p);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 p=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(p<0)throw this.isSignature(0,n.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(p);var b=p;if(this.checkSignature(n.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,(p=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(p),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.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(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var c=b-i;if(0<c)this.isSignature(b,n.CENTRAL_FILE_HEADER)||(this.reader.zero=c);else if(c<0)throw new Error("Corrupted zip: missing "+Math.abs(c)+" bytes.")},prepareReader:function(p){this.reader=l(p)},load:function(p){this.prepareReader(p),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},F.exports=v},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(m,F,w){var l=m("./reader/readerFor"),o=m("./utils"),n=m("./compressedObject"),u=m("./crc32"),g=m("./utf8"),v=m("./compressions"),p=m("./support");function b(i,c){this.options=i,this.loadOptions=c}b.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(i){var c,r;if(i.skip(22),this.fileNameLength=i.readInt(2),r=i.readInt(2),this.fileName=i.readData(this.fileNameLength),i.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((c=function(h){for(var a in v)if(Object.prototype.hasOwnProperty.call(v,a)&&v[a].magic===h)return v[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 n(this.compressedSize,this.uncompressedSize,this.crc32,c,i.readData(this.compressedSize))},readCentralPart:function(i){this.versionMadeBy=i.readInt(2),i.skip(2),this.bitFlag=i.readInt(2),this.compressionMethod=i.readString(2),this.date=i.readDate(),this.crc32=i.readInt(4),this.compressedSize=i.readInt(4),this.uncompressedSize=i.readInt(4);var c=i.readInt(2);if(this.extraFieldsLength=i.readInt(2),this.fileCommentLength=i.readInt(2),this.diskNumberStart=i.readInt(2),this.internalFileAttributes=i.readInt(2),this.externalFileAttributes=i.readInt(4),this.localHeaderOffset=i.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");i.skip(c),this.readExtraFields(i),this.parseZIP64ExtraField(i),this.fileComment=i.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var i=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),i==0&&(this.dosPermissions=63&this.externalFileAttributes),i==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var i=l(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=i.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=i.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=i.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=i.readInt(4))}},readExtraFields:function(i){var c,r,h,a=i.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});i.index+4<a;)c=i.readInt(2),r=i.readInt(2),h=i.readData(r),this.extraFields[c]={id:c,length:r,value:h};i.setIndex(a)},handleUTF8:function(){var i=p.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=g.utf8decode(this.fileName),this.fileCommentStr=g.utf8decode(this.fileComment);else{var c=this.findExtraFieldUnicodePath();if(c!==null)this.fileNameStr=c;else{var r=o.transformTo(i,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var h=this.findExtraFieldUnicodeComment();if(h!==null)this.fileCommentStr=h;else{var a=o.transformTo(i,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var i=this.extraFields[28789];if(i){var c=l(i.value);return c.readInt(1)!==1||u(this.fileName)!==c.readInt(4)?null:g.utf8decode(c.readData(i.length-5))}return null},findExtraFieldUnicodeComment:function(){var i=this.extraFields[25461];if(i){var c=l(i.value);return c.readInt(1)!==1||u(this.fileComment)!==c.readInt(4)?null:g.utf8decode(c.readData(i.length-5))}return null}},F.exports=b},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(m,F,w){function l(c,r,h){this.name=c,this.dir=h.dir,this.date=h.date,this.comment=h.comment,this.unixPermissions=h.unixPermissions,this.dosPermissions=h.dosPermissions,this._data=r,this._dataBinary=h.binary,this.options={compression:h.compression,compressionOptions:h.compressionOptions}}var o=m("./stream/StreamHelper"),n=m("./stream/DataWorker"),u=m("./utf8"),g=m("./compressedObject"),v=m("./stream/GenericWorker");l.prototype={internalStream:function(c){var r=null,h="string";try{if(!c)throw new Error("No output type specified.");var a=(h=c.toLowerCase())==="string"||h==="text";h!=="binarystring"&&h!=="text"||(h="string"),r=this._decompressWorker();var d=!this._dataBinary;d&&!a&&(r=r.pipe(new u.Utf8EncodeWorker)),!d&&a&&(r=r.pipe(new u.Utf8DecodeWorker))}catch(y){(r=new v("error")).error(y)}return new o(r,h,"")},async:function(c,r){return this.internalStream(c).accumulate(r)},nodeStream:function(c,r){return this.internalStream(c||"nodebuffer").toNodejsStream(r)},_compressWorker:function(c,r){if(this._data instanceof g&&this._data.compression.magic===c.magic)return this._data.getCompressedWorker();var h=this._decompressWorker();return this._dataBinary||(h=h.pipe(new u.Utf8EncodeWorker)),g.createWorkerFrom(h,c,r)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof v?this._data:new n(this._data)}};for(var p=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],b=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},i=0;i<p.length;i++)l.prototype[p[i]]=b;F.exports=l},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(m,F,w){(function(l){var o,n,u=l.MutationObserver||l.WebKitMutationObserver;if(u){var g=0,v=new u(c),p=l.document.createTextNode("");v.observe(p,{characterData:!0}),o=function(){p.data=g=++g%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(){c(),r.onreadystatechange=null,r.parentNode.removeChild(r),r=null},l.document.documentElement.appendChild(r)}:function(){setTimeout(c,0)};else{var b=new l.MessageChannel;b.port1.onmessage=c,o=function(){b.port2.postMessage(0)}}var i=[];function c(){var r,h;n=!0;for(var a=i.length;a;){for(h=i,i=[],r=-1;++r<a;)h[r]();a=i.length}n=!1}F.exports=function(r){i.push(r)!==1||n||o()}}).call(this,typeof kt<"u"?kt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(m,F,w){var l=m("immediate");function o(){}var n={},u=["REJECTED"],g=["FULFILLED"],v=["PENDING"];function p(a){if(typeof a!="function")throw new TypeError("resolver must be a function");this.state=v,this.queue=[],this.outcome=void 0,a!==o&&r(this,a)}function b(a,d,y){this.promise=a,typeof d=="function"&&(this.onFulfilled=d,this.callFulfilled=this.otherCallFulfilled),typeof y=="function"&&(this.onRejected=y,this.callRejected=this.otherCallRejected)}function i(a,d,y){l(function(){var S;try{S=d(y)}catch(x){return n.reject(a,x)}S===a?n.reject(a,new TypeError("Cannot resolve promise with itself")):n.resolve(a,S)})}function c(a){var d=a&&a.then;if(a&&(typeof a=="object"||typeof a=="function")&&typeof d=="function")return function(){d.apply(a,arguments)}}function r(a,d){var y=!1;function S(O){y||(y=!0,n.reject(a,O))}function x(O){y||(y=!0,n.resolve(a,O))}var D=h(function(){d(x,S)});D.status==="error"&&S(D.value)}function h(a,d){var y={};try{y.value=a(d),y.status="success"}catch(S){y.status="error",y.value=S}return y}(F.exports=p).prototype.finally=function(a){if(typeof a!="function")return this;var d=this.constructor;return this.then(function(y){return d.resolve(a()).then(function(){return y})},function(y){return d.resolve(a()).then(function(){throw y})})},p.prototype.catch=function(a){return this.then(null,a)},p.prototype.then=function(a,d){if(typeof a!="function"&&this.state===g||typeof d!="function"&&this.state===u)return this;var y=new this.constructor(o);return this.state!==v?i(y,this.state===g?a:d,this.outcome):this.queue.push(new b(y,a,d)),y},b.prototype.callFulfilled=function(a){n.resolve(this.promise,a)},b.prototype.otherCallFulfilled=function(a){i(this.promise,this.onFulfilled,a)},b.prototype.callRejected=function(a){n.reject(this.promise,a)},b.prototype.otherCallRejected=function(a){i(this.promise,this.onRejected,a)},n.resolve=function(a,d){var y=h(c,d);if(y.status==="error")return n.reject(a,y.value);var S=y.value;if(S)r(a,S);else{a.state=g,a.outcome=d;for(var x=-1,D=a.queue.length;++x<D;)a.queue[x].callFulfilled(d)}return a},n.reject=function(a,d){a.state=u,a.outcome=d;for(var y=-1,S=a.queue.length;++y<S;)a.queue[y].callRejected(d);return a},p.resolve=function(a){return a instanceof this?a:n.resolve(new this(o),a)},p.reject=function(a){var d=new this(o);return n.reject(d,a)},p.all=function(a){var d=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,L=new this(o);++O<y;)I(a[O],O);return L;function I(W,X){d.resolve(W).then(function(_){x[X]=_,++D!==y||S||(S=!0,n.resolve(L,x))},function(_){S||(S=!0,n.reject(L,_))})}},p.race=function(a){var d=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],d.resolve(O).then(function(L){S||(S=!0,n.resolve(D,L))},function(L){S||(S=!0,n.reject(D,L))});var O;return D}},{immediate:36}],38:[function(m,F,w){var l={};(0,m("./lib/utils/common").assign)(l,m("./lib/deflate"),m("./lib/inflate"),m("./lib/zlib/constants")),F.exports=l},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(m,F,w){var l=m("./zlib/deflate"),o=m("./utils/common"),n=m("./utils/strings"),u=m("./zlib/messages"),g=m("./zlib/zstream"),v=Object.prototype.toString,p=0,b=-1,i=0,c=8;function r(a){if(!(this instanceof r))return new r(a);this.options=o.assign({level:b,method:c,chunkSize:16384,windowBits:15,memLevel:8,strategy:i,to:""},a||{});var d=this.options;d.raw&&0<d.windowBits?d.windowBits=-d.windowBits:d.gzip&&0<d.windowBits&&d.windowBits<16&&(d.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var y=l.deflateInit2(this.strm,d.level,d.method,d.windowBits,d.memLevel,d.strategy);if(y!==p)throw new Error(u[y]);if(d.header&&l.deflateSetHeader(this.strm,d.header),d.dictionary){var S;if(S=typeof d.dictionary=="string"?n.string2buf(d.dictionary):v.call(d.dictionary)==="[object ArrayBuffer]"?new Uint8Array(d.dictionary):d.dictionary,(y=l.deflateSetDictionary(this.strm,S))!==p)throw new Error(u[y]);this._dict_set=!0}}function h(a,d){var y=new r(d);if(y.push(a,!0),y.err)throw y.msg||u[y.err];return y.result}r.prototype.push=function(a,d){var y,S,x=this.strm,D=this.options.chunkSize;if(this.ended)return!1;S=d===~~d?d:d===!0?4:0,typeof a=="string"?x.input=n.string2buf(a):v.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!==p)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(n.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===p):S!==2||(this.onEnd(p),!(x.avail_out=0))},r.prototype.onData=function(a){this.chunks.push(a)},r.prototype.onEnd=function(a){a===p&&(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},w.Deflate=r,w.deflate=h,w.deflateRaw=function(a,d){return(d=d||{}).raw=!0,h(a,d)},w.gzip=function(a,d){return(d=d||{}).gzip=!0,h(a,d)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(m,F,w){var l=m("./zlib/inflate"),o=m("./utils/common"),n=m("./utils/strings"),u=m("./zlib/constants"),g=m("./zlib/messages"),v=m("./zlib/zstream"),p=m("./zlib/gzheader"),b=Object.prototype.toString;function i(r){if(!(this instanceof i))return new i(r);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},r||{});var h=this.options;h.raw&&0<=h.windowBits&&h.windowBits<16&&(h.windowBits=-h.windowBits,h.windowBits===0&&(h.windowBits=-15)),!(0<=h.windowBits&&h.windowBits<16)||r&&r.windowBits||(h.windowBits+=32),15<h.windowBits&&h.windowBits<48&&!(15&h.windowBits)&&(h.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new v,this.strm.avail_out=0;var a=l.inflateInit2(this.strm,h.windowBits);if(a!==u.Z_OK)throw new Error(g[a]);this.header=new p,l.inflateGetHeader(this.strm,this.header)}function c(r,h){var a=new i(h);if(a.push(r,!0),a.err)throw a.msg||g[a.err];return a.result}i.prototype.push=function(r,h){var a,d,y,S,x,D,O=this.strm,L=this.options.chunkSize,I=this.options.dictionary,W=!1;if(this.ended)return!1;d=h===~~h?h:h===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof r=="string"?O.input=n.binstring2buf(r):b.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(L),O.next_out=0,O.avail_out=L),(a=l.inflate(O,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&I&&(D=typeof I=="string"?n.string2buf(I):b.call(I)==="[object ArrayBuffer]"?new Uint8Array(I):I,a=l.inflateSetDictionary(this.strm,D)),a===u.Z_BUF_ERROR&&W===!0&&(a=u.Z_OK,W=!1),a!==u.Z_STREAM_END&&a!==u.Z_OK)return this.onEnd(a),!(this.ended=!0);O.next_out&&(O.avail_out!==0&&a!==u.Z_STREAM_END&&(O.avail_in!==0||d!==u.Z_FINISH&&d!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(y=n.utf8border(O.output,O.next_out),S=O.next_out-y,x=n.buf2string(O.output,y),O.next_out=S,O.avail_out=L-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&&(W=!0)}while((0<O.avail_in||O.avail_out===0)&&a!==u.Z_STREAM_END);return a===u.Z_STREAM_END&&(d=u.Z_FINISH),d===u.Z_FINISH?(a=l.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===u.Z_OK):d!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(O.avail_out=0))},i.prototype.onData=function(r){this.chunks.push(r)},i.prototype.onEnd=function(r){r===u.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},w.Inflate=i,w.inflate=c,w.inflateRaw=function(r,h){return(h=h||{}).raw=!0,c(r,h)},w.ungzip=c},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(m,F,w){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";w.assign=function(u){for(var g=Array.prototype.slice.call(arguments,1);g.length;){var v=g.shift();if(v){if(typeof v!="object")throw new TypeError(v+"must be non-object");for(var p in v)v.hasOwnProperty(p)&&(u[p]=v[p])}}return u},w.shrinkBuf=function(u,g){return u.length===g?u:u.subarray?u.subarray(0,g):(u.length=g,u)};var o={arraySet:function(u,g,v,p,b){if(g.subarray&&u.subarray)u.set(g.subarray(v,v+p),b);else for(var i=0;i<p;i++)u[b+i]=g[v+i]},flattenChunks:function(u){var g,v,p,b,i,c;for(g=p=0,v=u.length;g<v;g++)p+=u[g].length;for(c=new Uint8Array(p),g=b=0,v=u.length;g<v;g++)i=u[g],c.set(i,b),b+=i.length;return c}},n={arraySet:function(u,g,v,p,b){for(var i=0;i<p;i++)u[b+i]=g[v+i]},flattenChunks:function(u){return[].concat.apply([],u)}};w.setTyped=function(u){u?(w.Buf8=Uint8Array,w.Buf16=Uint16Array,w.Buf32=Int32Array,w.assign(w,o)):(w.Buf8=Array,w.Buf16=Array,w.Buf32=Array,w.assign(w,n))},w.setTyped(l)},{}],42:[function(m,F,w){var l=m("./common"),o=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var u=new l.Buf8(256),g=0;g<256;g++)u[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;function v(p,b){if(b<65537&&(p.subarray&&n||!p.subarray&&o))return String.fromCharCode.apply(null,l.shrinkBuf(p,b));for(var i="",c=0;c<b;c++)i+=String.fromCharCode(p[c]);return i}u[254]=u[254]=1,w.string2buf=function(p){var b,i,c,r,h,a=p.length,d=0;for(r=0;r<a;r++)(64512&(i=p.charCodeAt(r)))==55296&&r+1<a&&(64512&(c=p.charCodeAt(r+1)))==56320&&(i=65536+(i-55296<<10)+(c-56320),r++),d+=i<128?1:i<2048?2:i<65536?3:4;for(b=new l.Buf8(d),r=h=0;h<d;r++)(64512&(i=p.charCodeAt(r)))==55296&&r+1<a&&(64512&(c=p.charCodeAt(r+1)))==56320&&(i=65536+(i-55296<<10)+(c-56320),r++),i<128?b[h++]=i:(i<2048?b[h++]=192|i>>>6:(i<65536?b[h++]=224|i>>>12:(b[h++]=240|i>>>18,b[h++]=128|i>>>12&63),b[h++]=128|i>>>6&63),b[h++]=128|63&i);return b},w.buf2binstring=function(p){return v(p,p.length)},w.binstring2buf=function(p){for(var b=new l.Buf8(p.length),i=0,c=b.length;i<c;i++)b[i]=p.charCodeAt(i);return b},w.buf2string=function(p,b){var i,c,r,h,a=b||p.length,d=new Array(2*a);for(i=c=0;i<a;)if((r=p[i++])<128)d[c++]=r;else if(4<(h=u[r]))d[c++]=65533,i+=h-1;else{for(r&=h===2?31:h===3?15:7;1<h&&i<a;)r=r<<6|63&p[i++],h--;1<h?d[c++]=65533:r<65536?d[c++]=r:(r-=65536,d[c++]=55296|r>>10&1023,d[c++]=56320|1023&r)}return v(d,c)},w.utf8border=function(p,b){var i;for((b=b||p.length)>p.length&&(b=p.length),i=b-1;0<=i&&(192&p[i])==128;)i--;return i<0||i===0?b:i+u[p[i]]>b?i:b}},{"./common":41}],43:[function(m,F,w){F.exports=function(l,o,n,u){for(var g=65535&l|0,v=l>>>16&65535|0,p=0;n!==0;){for(n-=p=2e3<n?2e3:n;v=v+(g=g+o[u++]|0)|0,--p;);g%=65521,v%=65521}return g|v<<16|0}},{}],44:[function(m,F,w){F.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(m,F,w){var l=function(){for(var o,n=[],u=0;u<256;u++){o=u;for(var g=0;g<8;g++)o=1&o?3988292384^o>>>1:o>>>1;n[u]=o}return n}();F.exports=function(o,n,u,g){var v=l,p=g+u;o^=-1;for(var b=g;b<p;b++)o=o>>>8^v[255&(o^n[b])];return-1^o}},{}],46:[function(m,F,w){var l,o=m("../utils/common"),n=m("./trees"),u=m("./adler32"),g=m("./crc32"),v=m("./messages"),p=0,b=4,i=0,c=-2,r=-1,h=4,a=2,d=8,y=9,S=286,x=30,D=19,O=2*S+1,L=15,I=3,W=258,X=W+I+1,_=42,B=113,e=1,T=2,J=3,P=4;function $(t,R){return t.msg=v[R],R}function j(t){return(t<<1)-(4<t?9:0)}function q(t){for(var R=t.length;0<=--R;)t[R]=0}function E(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 C(t,R){n._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,R),t.block_start=t.strstart,E(t.strm)}function Y(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,k=t.strstart,U=t.prev_length,N=t.nice_match,z=t.strstart>t.w_size-X?t.strstart-(t.w_size-X):0,Z=t.window,V=t.w_mask,M=t.prev,K=t.strstart+W,rt=Z[k+U-1],tt=Z[k+U];t.prev_length>=t.good_match&&(s>>=2),N>t.lookahead&&(N=t.lookahead);do if(Z[(A=R)+U]===tt&&Z[A+U-1]===rt&&Z[A]===Z[k]&&Z[++A]===Z[k+1]){k+=2,A++;do;while(Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&Z[++k]===Z[++A]&&k<K);if(f=W-(K-k),k=K-W,U<f){if(t.match_start=R,N<=(U=f))break;rt=Z[k+U-1],tt=Z[k+U]}}while((R=M[R&V])>z&&--s!=0);return U<=t.lookahead?U:t.lookahead}function nt(t){var R,A,f,s,k,U,N,z,Z,V,M=t.w_size;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=M+(M-X)){for(o.arraySet(t.window,t.window,M,M,0),t.match_start-=M,t.strstart-=M,t.block_start-=M,R=A=t.hash_size;f=t.head[--R],t.head[R]=M<=f?f-M:0,--A;);for(R=A=M;f=t.prev[--R],t.prev[R]=M<=f?f-M:0,--A;);s+=M}if(t.strm.avail_in===0)break;if(U=t.strm,N=t.window,z=t.strstart+t.lookahead,Z=s,V=void 0,V=U.avail_in,Z<V&&(V=Z),A=V===0?0:(U.avail_in-=V,o.arraySet(N,U.input,U.next_in,V,z),U.state.wrap===1?U.adler=u(U.adler,N,V,z):U.state.wrap===2&&(U.adler=g(U.adler,N,V,z)),U.next_in+=V,U.total_in+=V,V),t.lookahead+=A,t.lookahead+t.insert>=I)for(k=t.strstart-t.insert,t.ins_h=t.window[k],t.ins_h=(t.ins_h<<t.hash_shift^t.window[k+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[k+I-1])&t.hash_mask,t.prev[k&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=k,k++,t.insert--,!(t.lookahead+t.insert<I)););}while(t.lookahead<X&&t.strm.avail_in!==0)}function ot(t,R){for(var A,f;;){if(t.lookahead<X){if(nt(t),t.lookahead<X&&R===p)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-X&&(t.match_length=H(t,A)),t.match_length>=I)if(f=n._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=n._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(f&&(C(t,!1),t.strm.avail_out===0))return e}return t.insert=t.strstart<I-1?t.strstart:I-1,R===b?(C(t,!0),t.strm.avail_out===0?J:P):t.last_lit&&(C(t,!1),t.strm.avail_out===0)?e:T}function Q(t,R){for(var A,f,s;;){if(t.lookahead<X){if(nt(t),t.lookahead<X&&R===p)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-X&&(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=n._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&&(C(t,!1),t.strm.avail_out===0))return e}else if(t.match_available){if((f=n._tr_tally(t,0,t.window[t.strstart-1]))&&C(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=n._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<I-1?t.strstart:I-1,R===b?(C(t,!0),t.strm.avail_out===0?J:P):t.last_lit&&(C(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=d,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)),q(this.dyn_ltree),q(this.dyn_dtree),q(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(L+1),this.heap=new o.Buf16(2*S+1),q(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*S+1),q(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?_:B,t.adler=R.wrap===2?0:1,R.last_flush=p,n._tr_init(R),i):$(t,c)}function ct(t){var R=it(t);return R===i&&function(A){A.window_size=2*A.w_size,q(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 ht(t,R,A,f,s,k){if(!t)return c;var U=1;if(R===r&&(R=6),f<0?(U=0,f=-f):15<f&&(U=2,f-=16),s<1||y<s||A!==d||f<8||15<f||R<0||9<R||k<0||h<k)return $(t,c);f===8&&(f=9);var N=new st;return(t.state=N).strm=t,N.wrap=U,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=k,N.method=A,ct(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===p)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,C(t,!1),t.strm.avail_out===0)||t.strstart-t.block_start>=t.w_size-X&&(C(t,!1),t.strm.avail_out===0))return e}return t.insert=0,R===b?(C(t,!0),t.strm.avail_out===0?J:P):(t.strstart>t.block_start&&(C(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)],w.deflateInit=function(t,R){return ht(t,R,d,15,8,0)},w.deflateInit2=ht,w.deflateReset=ct,w.deflateResetKeep=it,w.deflateSetHeader=function(t,R){return t&&t.state?t.state.wrap!==2?c:(t.state.gzhead=R,i):c},w.deflate=function(t,R){var A,f,s,k;if(!t||!t.state||5<R||R<0)return t?$(t,c):c;if(f=t.state,!t.output||!t.input&&t.avail_in!==0||f.status===666&&R!==b)return $(t,t.avail_out===0?-5:c);if(f.strm=t,A=f.last_flush,f.last_flush=R,f.status===_)if(f.wrap===2)t.adler=0,Y(f,31),Y(f,139),Y(f,8),f.gzhead?(Y(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)),Y(f,255&f.gzhead.time),Y(f,f.gzhead.time>>8&255),Y(f,f.gzhead.time>>16&255),Y(f,f.gzhead.time>>24&255),Y(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),Y(f,255&f.gzhead.os),f.gzhead.extra&&f.gzhead.extra.length&&(Y(f,255&f.gzhead.extra.length),Y(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(t.adler=g(t.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=69):(Y(f,0),Y(f,0),Y(f,0),Y(f,0),Y(f,0),Y(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),Y(f,3),f.status=B);else{var U=d+(f.w_bits-8<<4)<<8;U|=(2<=f.strategy||f.level<2?0:f.level<6?1:f.level===6?2:3)<<6,f.strstart!==0&&(U|=32),U+=31-U%31,f.status=B,G(f,U),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=g(t.adler,f.pending_buf,f.pending-s,s)),E(t),s=f.pending,f.pending!==f.pending_buf_size));)Y(f,255&f.gzhead.extra[f.gzindex]),f.gzindex++;f.gzhead.hcrc&&f.pending>s&&(t.adler=g(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=g(t.adler,f.pending_buf,f.pending-s,s)),E(t),s=f.pending,f.pending===f.pending_buf_size)){k=1;break}k=f.gzindex<f.gzhead.name.length?255&f.gzhead.name.charCodeAt(f.gzindex++):0,Y(f,k)}while(k!==0);f.gzhead.hcrc&&f.pending>s&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),k===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=g(t.adler,f.pending_buf,f.pending-s,s)),E(t),s=f.pending,f.pending===f.pending_buf_size)){k=1;break}k=f.gzindex<f.gzhead.comment.length?255&f.gzhead.comment.charCodeAt(f.gzindex++):0,Y(f,k)}while(k!==0);f.gzhead.hcrc&&f.pending>s&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),k===0&&(f.status=103)}else f.status=103;if(f.status===103&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&E(t),f.pending+2<=f.pending_buf_size&&(Y(f,255&t.adler),Y(f,t.adler>>8&255),t.adler=0,f.status=B)):f.status=B),f.pending!==0){if(E(t),t.avail_out===0)return f.last_flush=-1,i}else if(t.avail_in===0&&j(R)<=j(A)&&R!==b)return $(t,-5);if(f.status===666&&t.avail_in!==0)return $(t,-5);if(t.avail_in!==0||f.lookahead!==0||R!==p&&f.status!==666){var N=f.strategy===2?function(z,Z){for(var V;;){if(z.lookahead===0&&(nt(z),z.lookahead===0)){if(Z===p)return e;break}if(z.match_length=0,V=n._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,V&&(C(z,!1),z.strm.avail_out===0))return e}return z.insert=0,Z===b?(C(z,!0),z.strm.avail_out===0?J:P):z.last_lit&&(C(z,!1),z.strm.avail_out===0)?e:T}(f,R):f.strategy===3?function(z,Z){for(var V,M,K,rt,tt=z.window;;){if(z.lookahead<=W){if(nt(z),z.lookahead<=W&&Z===p)return e;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=I&&0<z.strstart&&(M=tt[K=z.strstart-1])===tt[++K]&&M===tt[++K]&&M===tt[++K]){rt=z.strstart+W;do;while(M===tt[++K]&&M===tt[++K]&&M===tt[++K]&&M===tt[++K]&&M===tt[++K]&&M===tt[++K]&&M===tt[++K]&&M===tt[++K]&&K<rt);z.match_length=W-(rt-K),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=I?(V=n._tr_tally(z,1,z.match_length-I),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(V=n._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),V&&(C(z,!1),z.strm.avail_out===0))return e}return z.insert=0,Z===b?(C(z,!0),z.strm.avail_out===0?J:P):z.last_lit&&(C(z,!1),z.strm.avail_out===0)?e:T}(f,R):l[f.level].func(f,R);if(N!==J&&N!==P||(f.status=666),N===e||N===J)return t.avail_out===0&&(f.last_flush=-1),i;if(N===T&&(R===1?n._tr_align(f):R!==5&&(n._tr_stored_block(f,0,0,!1),R===3&&(q(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),E(t),t.avail_out===0))return f.last_flush=-1,i}return R!==b?i:f.wrap<=0?1:(f.wrap===2?(Y(f,255&t.adler),Y(f,t.adler>>8&255),Y(f,t.adler>>16&255),Y(f,t.adler>>24&255),Y(f,255&t.total_in),Y(f,t.total_in>>8&255),Y(f,t.total_in>>16&255),Y(f,t.total_in>>24&255)):(G(f,t.adler>>>16),G(f,65535&t.adler)),E(t),0<f.wrap&&(f.wrap=-f.wrap),f.pending!==0?i:1)},w.deflateEnd=function(t){var R;return t&&t.state?(R=t.state.status)!==_&&R!==69&&R!==73&&R!==91&&R!==103&&R!==B&&R!==666?$(t,c):(t.state=null,R===B?$(t,-3):i):c},w.deflateSetDictionary=function(t,R){var A,f,s,k,U,N,z,Z,V=R.length;if(!t||!t.state||(k=(A=t.state).wrap)===2||k===1&&A.status!==_||A.lookahead)return c;for(k===1&&(t.adler=u(t.adler,R,V,0)),A.wrap=0,V>=A.w_size&&(k===0&&(q(A.head),A.strstart=0,A.block_start=0,A.insert=0),Z=new o.Buf8(A.w_size),o.arraySet(Z,R,V-A.w_size,A.w_size,0),R=Z,V=A.w_size),U=t.avail_in,N=t.next_in,z=t.input,t.avail_in=V,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=U,A.wrap=k,i},w.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(m,F,w){F.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(m,F,w){F.exports=function(l,o){var n,u,g,v,p,b,i,c,r,h,a,d,y,S,x,D,O,L,I,W,X,_,B,e,T;n=l.state,u=l.next_in,e=l.input,g=u+(l.avail_in-5),v=l.next_out,T=l.output,p=v-(o-l.avail_out),b=v+(l.avail_out-257),i=n.dmax,c=n.wsize,r=n.whave,h=n.wnext,a=n.window,d=n.hold,y=n.bits,S=n.lencode,x=n.distcode,D=(1<<n.lenbits)-1,O=(1<<n.distbits)-1;t:do{y<15&&(d+=e[u++]<<y,y+=8,d+=e[u++]<<y,y+=8),L=S[d&D];e:for(;;){if(d>>>=I=L>>>24,y-=I,(I=L>>>16&255)===0)T[v++]=65535&L;else{if(!(16&I)){if(!(64&I)){L=S[(65535&L)+(d&(1<<I)-1)];continue e}if(32&I){n.mode=12;break t}l.msg="invalid literal/length code",n.mode=30;break t}W=65535&L,(I&=15)&&(y<I&&(d+=e[u++]<<y,y+=8),W+=d&(1<<I)-1,d>>>=I,y-=I),y<15&&(d+=e[u++]<<y,y+=8,d+=e[u++]<<y,y+=8),L=x[d&O];r:for(;;){if(d>>>=I=L>>>24,y-=I,!(16&(I=L>>>16&255))){if(!(64&I)){L=x[(65535&L)+(d&(1<<I)-1)];continue r}l.msg="invalid distance code",n.mode=30;break t}if(X=65535&L,y<(I&=15)&&(d+=e[u++]<<y,(y+=8)<I&&(d+=e[u++]<<y,y+=8)),i<(X+=d&(1<<I)-1)){l.msg="invalid distance too far back",n.mode=30;break t}if(d>>>=I,y-=I,(I=v-p)<X){if(r<(I=X-I)&&n.sane){l.msg="invalid distance too far back",n.mode=30;break t}if(B=a,(_=0)===h){if(_+=c-I,I<W){for(W-=I;T[v++]=a[_++],--I;);_=v-X,B=T}}else if(h<I){if(_+=c+h-I,(I-=h)<W){for(W-=I;T[v++]=a[_++],--I;);if(_=0,h<W){for(W-=I=h;T[v++]=a[_++],--I;);_=v-X,B=T}}}else if(_+=h-I,I<W){for(W-=I;T[v++]=a[_++],--I;);_=v-X,B=T}for(;2<W;)T[v++]=B[_++],T[v++]=B[_++],T[v++]=B[_++],W-=3;W&&(T[v++]=B[_++],1<W&&(T[v++]=B[_++]))}else{for(_=v-X;T[v++]=T[_++],T[v++]=T[_++],T[v++]=T[_++],2<(W-=3););W&&(T[v++]=T[_++],1<W&&(T[v++]=T[_++]))}break}}break}}while(u<g&&v<b);u-=W=y>>3,d&=(1<<(y-=W<<3))-1,l.next_in=u,l.next_out=v,l.avail_in=u<g?g-u+5:5-(u-g),l.avail_out=v<b?b-v+257:257-(v-b),n.hold=d,n.bits=y}},{}],49:[function(m,F,w){var l=m("../utils/common"),o=m("./adler32"),n=m("./crc32"),u=m("./inffast"),g=m("./inftrees"),v=1,p=2,b=0,i=-2,c=1,r=852,h=592;function a(_){return(_>>>24&255)+(_>>>8&65280)+((65280&_)<<8)+((255&_)<<24)}function d(){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(_){var B;return _&&_.state?(B=_.state,_.total_in=_.total_out=B.total=0,_.msg="",B.wrap&&(_.adler=1&B.wrap),B.mode=c,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(h),B.sane=1,B.back=-1,b):i}function S(_){var B;return _&&_.state?((B=_.state).wsize=0,B.whave=0,B.wnext=0,y(_)):i}function x(_,B){var e,T;return _&&_.state?(T=_.state,B<0?(e=0,B=-B):(e=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?i:(T.window!==null&&T.wbits!==B&&(T.window=null),T.wrap=e,T.wbits=B,S(_))):i}function D(_,B){var e,T;return _?(T=new d,(_.state=T).window=null,(e=x(_,B))!==b&&(_.state=null),e):i}var O,L,I=!0;function W(_){if(I){var B;for(O=new l.Buf32(512),L=new l.Buf32(32),B=0;B<144;)_.lens[B++]=8;for(;B<256;)_.lens[B++]=9;for(;B<280;)_.lens[B++]=7;for(;B<288;)_.lens[B++]=8;for(g(v,_.lens,0,288,O,0,_.work,{bits:9}),B=0;B<32;)_.lens[B++]=5;g(p,_.lens,0,32,L,0,_.work,{bits:5}),I=!1}_.lencode=O,_.lenbits=9,_.distcode=L,_.distbits=5}function X(_,B,e,T){var J,P=_.state;return P.window===null&&(P.wsize=1<<P.wbits,P.wnext=0,P.whave=0,P.window=new l.Buf8(P.wsize)),T>=P.wsize?(l.arraySet(P.window,B,e-P.wsize,P.wsize,0),P.wnext=0,P.whave=P.wsize):(T<(J=P.wsize-P.wnext)&&(J=T),l.arraySet(P.window,B,e-T,J,P.wnext),(T-=J)?(l.arraySet(P.window,B,e-T,T,0),P.wnext=T,P.whave=P.wsize):(P.wnext+=J,P.wnext===P.wsize&&(P.wnext=0),P.whave<P.wsize&&(P.whave+=J))),0}w.inflateReset=S,w.inflateReset2=x,w.inflateResetKeep=y,w.inflateInit=function(_){return D(_,15)},w.inflateInit2=D,w.inflate=function(_,B){var e,T,J,P,$,j,q,E,C,Y,G,H,nt,ot,Q,et,st,it,ct,ht,t,R,A,f,s=0,k=new l.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!_||!_.state||!_.output||!_.input&&_.avail_in!==0)return i;(e=_.state).mode===12&&(e.mode=13),$=_.next_out,J=_.output,q=_.avail_out,P=_.next_in,T=_.input,j=_.avail_in,E=e.hold,C=e.bits,Y=j,G=q,R=b;t:for(;;)switch(e.mode){case c:if(e.wrap===0){e.mode=13;break}for(;C<16;){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}if(2&e.wrap&&E===35615){k[e.check=0]=255&E,k[1]=E>>>8&255,e.check=n(e.check,k,2,0),C=E=0,e.mode=2;break}if(e.flags=0,e.head&&(e.head.done=!1),!(1&e.wrap)||(((255&E)<<8)+(E>>8))%31){_.msg="incorrect header check",e.mode=30;break}if((15&E)!=8){_.msg="unknown compression method",e.mode=30;break}if(C-=4,t=8+(15&(E>>>=4)),e.wbits===0)e.wbits=t;else if(t>e.wbits){_.msg="invalid window size",e.mode=30;break}e.dmax=1<<t,_.adler=e.check=1,e.mode=512&E?10:12,C=E=0;break;case 2:for(;C<16;){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}if(e.flags=E,(255&e.flags)!=8){_.msg="unknown compression method",e.mode=30;break}if(57344&e.flags){_.msg="unknown header flags set",e.mode=30;break}e.head&&(e.head.text=E>>8&1),512&e.flags&&(k[0]=255&E,k[1]=E>>>8&255,e.check=n(e.check,k,2,0)),C=E=0,e.mode=3;case 3:for(;C<32;){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}e.head&&(e.head.time=E),512&e.flags&&(k[0]=255&E,k[1]=E>>>8&255,k[2]=E>>>16&255,k[3]=E>>>24&255,e.check=n(e.check,k,4,0)),C=E=0,e.mode=4;case 4:for(;C<16;){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}e.head&&(e.head.xflags=255&E,e.head.os=E>>8),512&e.flags&&(k[0]=255&E,k[1]=E>>>8&255,e.check=n(e.check,k,2,0)),C=E=0,e.mode=5;case 5:if(1024&e.flags){for(;C<16;){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}e.length=E,e.head&&(e.head.extra_len=E),512&e.flags&&(k[0]=255&E,k[1]=E>>>8&255,e.check=n(e.check,k,2,0)),C=E=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,P,H,t)),512&e.flags&&(e.check=n(e.check,T,H,P)),j-=H,P+=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[P+H++],e.head&&t&&e.length<65536&&(e.head.name+=String.fromCharCode(t)),t&&H<j;);if(512&e.flags&&(e.check=n(e.check,T,H,P)),j-=H,P+=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[P+H++],e.head&&t&&e.length<65536&&(e.head.comment+=String.fromCharCode(t)),t&&H<j;);if(512&e.flags&&(e.check=n(e.check,T,H,P)),j-=H,P+=H,t)break t}else e.head&&(e.head.comment=null);e.mode=9;case 9:if(512&e.flags){for(;C<16;){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}if(E!==(65535&e.check)){_.msg="header crc mismatch",e.mode=30;break}C=E=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),_.adler=e.check=0,e.mode=12;break;case 10:for(;C<32;){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}_.adler=e.check=a(E),C=E=0,e.mode=11;case 11:if(e.havedict===0)return _.next_out=$,_.avail_out=q,_.next_in=P,_.avail_in=j,e.hold=E,e.bits=C,2;_.adler=e.check=1,e.mode=12;case 12:if(B===5||B===6)break t;case 13:if(e.last){E>>>=7&C,C-=7&C,e.mode=27;break}for(;C<3;){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}switch(e.last=1&E,C-=1,3&(E>>>=1)){case 0:e.mode=14;break;case 1:if(W(e),e.mode=20,B!==6)break;E>>>=2,C-=2;break t;case 2:e.mode=17;break;case 3:_.msg="invalid block type",e.mode=30}E>>>=2,C-=2;break;case 14:for(E>>>=7&C,C-=7&C;C<32;){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}if((65535&E)!=(E>>>16^65535)){_.msg="invalid stored block lengths",e.mode=30;break}if(e.length=65535&E,C=E=0,e.mode=15,B===6)break t;case 15:e.mode=16;case 16:if(H=e.length){if(j<H&&(H=j),q<H&&(H=q),H===0)break t;l.arraySet(J,T,P,H,$),j-=H,P+=H,q-=H,$+=H,e.length-=H;break}e.mode=12;break;case 17:for(;C<14;){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}if(e.nlen=257+(31&E),E>>>=5,C-=5,e.ndist=1+(31&E),E>>>=5,C-=5,e.ncode=4+(15&E),E>>>=4,C-=4,286<e.nlen||30<e.ndist){_.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(;C<3;){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}e.lens[U[e.have++]]=7&E,E>>>=3,C-=3}for(;e.have<19;)e.lens[U[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,A={bits:e.lenbits},R=g(0,e.lens,0,19,e.lencode,0,e.work,A),e.lenbits=A.bits,R){_.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[E&(1<<e.lenbits)-1])>>>16&255,st=65535&s,!((Q=s>>>24)<=C);){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}if(st<16)E>>>=Q,C-=Q,e.lens[e.have++]=st;else{if(st===16){for(f=Q+2;C<f;){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}if(E>>>=Q,C-=Q,e.have===0){_.msg="invalid bit length repeat",e.mode=30;break}t=e.lens[e.have-1],H=3+(3&E),E>>>=2,C-=2}else if(st===17){for(f=Q+3;C<f;){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}C-=Q,t=0,H=3+(7&(E>>>=Q)),E>>>=3,C-=3}else{for(f=Q+7;C<f;){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}C-=Q,t=0,H=11+(127&(E>>>=Q)),E>>>=7,C-=7}if(e.have+H>e.nlen+e.ndist){_.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){_.msg="invalid code -- missing end-of-block",e.mode=30;break}if(e.lenbits=9,A={bits:e.lenbits},R=g(v,e.lens,0,e.nlen,e.lencode,0,e.work,A),e.lenbits=A.bits,R){_.msg="invalid literal/lengths set",e.mode=30;break}if(e.distbits=6,e.distcode=e.distdyn,A={bits:e.distbits},R=g(p,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,A),e.distbits=A.bits,R){_.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<=q){_.next_out=$,_.avail_out=q,_.next_in=P,_.avail_in=j,e.hold=E,e.bits=C,u(_,G),$=_.next_out,J=_.output,q=_.avail_out,P=_.next_in,T=_.input,j=_.avail_in,E=e.hold,C=e.bits,e.mode===12&&(e.back=-1);break}for(e.back=0;et=(s=e.lencode[E&(1<<e.lenbits)-1])>>>16&255,st=65535&s,!((Q=s>>>24)<=C);){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}if(et&&!(240&et)){for(it=Q,ct=et,ht=st;et=(s=e.lencode[ht+((E&(1<<it+ct)-1)>>it)])>>>16&255,st=65535&s,!(it+(Q=s>>>24)<=C);){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}E>>>=it,C-=it,e.back+=it}if(E>>>=Q,C-=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){_.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;C<f;){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}e.length+=E&(1<<e.extra)-1,E>>>=e.extra,C-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=23;case 23:for(;et=(s=e.distcode[E&(1<<e.distbits)-1])>>>16&255,st=65535&s,!((Q=s>>>24)<=C);){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}if(!(240&et)){for(it=Q,ct=et,ht=st;et=(s=e.distcode[ht+((E&(1<<it+ct)-1)>>it)])>>>16&255,st=65535&s,!(it+(Q=s>>>24)<=C);){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}E>>>=it,C-=it,e.back+=it}if(E>>>=Q,C-=Q,e.back+=Q,64&et){_.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;C<f;){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}e.offset+=E&(1<<e.extra)-1,E>>>=e.extra,C-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){_.msg="invalid distance too far back",e.mode=30;break}e.mode=25;case 25:if(q===0)break t;if(H=G-q,e.offset>H){if((H=e.offset-H)>e.whave&&e.sane){_.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(q<H&&(H=q),q-=H,e.length-=H;J[$++]=ot[nt++],--H;);e.length===0&&(e.mode=21);break;case 26:if(q===0)break t;J[$++]=e.length,q--,e.mode=21;break;case 27:if(e.wrap){for(;C<32;){if(j===0)break t;j--,E|=T[P++]<<C,C+=8}if(G-=q,_.total_out+=G,e.total+=G,G&&(_.adler=e.check=e.flags?n(e.check,J,G,$-G):o(e.check,J,G,$-G)),G=q,(e.flags?E:a(E))!==e.check){_.msg="incorrect data check",e.mode=30;break}C=E=0}e.mode=28;case 28:if(e.wrap&&e.flags){for(;C<32;){if(j===0)break t;j--,E+=T[P++]<<C,C+=8}if(E!==(4294967295&e.total)){_.msg="incorrect length check",e.mode=30;break}C=E=0}e.mode=29;case 29:R=1;break t;case 30:R=-3;break t;case 31:return-4;case 32:default:return i}return _.next_out=$,_.avail_out=q,_.next_in=P,_.avail_in=j,e.hold=E,e.bits=C,(e.wsize||G!==_.avail_out&&e.mode<30&&(e.mode<27||B!==4))&&X(_,_.output,_.next_out,G-_.avail_out)?(e.mode=31,-4):(Y-=_.avail_in,G-=_.avail_out,_.total_in+=Y,_.total_out+=G,e.total+=G,e.wrap&&G&&(_.adler=e.check=e.flags?n(e.check,J,G,_.next_out-G):o(e.check,J,G,_.next_out-G)),_.data_type=e.bits+(e.last?64:0)+(e.mode===12?128:0)+(e.mode===20||e.mode===15?256:0),(Y==0&&G===0||B===4)&&R===b&&(R=-5),R)},w.inflateEnd=function(_){if(!_||!_.state)return i;var B=_.state;return B.window&&(B.window=null),_.state=null,b},w.inflateGetHeader=function(_,B){var e;return _&&_.state&&2&(e=_.state).wrap?((e.head=B).done=!1,b):i},w.inflateSetDictionary=function(_,B){var e,T=B.length;return _&&_.state?(e=_.state).wrap!==0&&e.mode!==11?i:e.mode===11&&o(1,B,T,0)!==e.check?-3:X(_,B,T,T)?(e.mode=31,-4):(e.havedict=1,b):i},w.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(m,F,w){var l=m("../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],n=[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],u=[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],g=[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];F.exports=function(v,p,b,i,c,r,h,a){var d,y,S,x,D,O,L,I,W,X=a.bits,_=0,B=0,e=0,T=0,J=0,P=0,$=0,j=0,q=0,E=0,C=null,Y=0,G=new l.Buf16(16),H=new l.Buf16(16),nt=null,ot=0;for(_=0;_<=15;_++)G[_]=0;for(B=0;B<i;B++)G[p[b+B]]++;for(J=X,T=15;1<=T&&G[T]===0;T--);if(T<J&&(J=T),T===0)return c[r++]=20971520,c[r++]=20971520,a.bits=1,0;for(e=1;e<T&&G[e]===0;e++);for(J<e&&(J=e),_=j=1;_<=15;_++)if(j<<=1,(j-=G[_])<0)return-1;if(0<j&&(v===0||T!==1))return-1;for(H[1]=0,_=1;_<15;_++)H[_+1]=H[_]+G[_];for(B=0;B<i;B++)p[b+B]!==0&&(h[H[p[b+B]]++]=B);if(O=v===0?(C=nt=h,19):v===1?(C=o,Y-=257,nt=n,ot-=257,256):(C=u,nt=g,-1),_=e,D=r,$=B=E=0,S=-1,x=(q=1<<(P=J))-1,v===1&&852<q||v===2&&592<q)return 1;for(;;){for(L=_-$,W=h[B]<O?(I=0,h[B]):h[B]>O?(I=nt[ot+h[B]],C[Y+h[B]]):(I=96,0),d=1<<_-$,e=y=1<<P;c[D+(E>>$)+(y-=d)]=L<<24|I<<16|W|0,y!==0;);for(d=1<<_-1;E&d;)d>>=1;if(d!==0?(E&=d-1,E+=d):E=0,B++,--G[_]==0){if(_===T)break;_=p[b+h[B]]}if(J<_&&(E&x)!==S){for($===0&&($=J),D+=e,j=1<<(P=_-$);P+$<T&&!((j-=G[P+$])<=0);)P++,j<<=1;if(q+=1<<P,v===1&&852<q||v===2&&592<q)return 1;c[S=E&x]=J<<24|P<<16|D-r|0}}return E!==0&&(c[D+E]=_-$<<24|64<<16|0),a.bits=J,0}},{"../utils/common":41}],51:[function(m,F,w){F.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(m,F,w){var l=m("../utils/common"),o=0,n=1;function u(s){for(var k=s.length;0<=--k;)s[k]=0}var g=0,v=29,p=256,b=p+1+v,i=30,c=19,r=2*b+1,h=15,a=16,d=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],L=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],X=new Array(2*(b+2));u(X);var _=new Array(2*i);u(_);var B=new Array(512);u(B);var e=new Array(256);u(e);var T=new Array(v);u(T);var J,P,$,j=new Array(i);function q(s,k,U,N,z){this.static_tree=s,this.extra_bits=k,this.extra_base=U,this.elems=N,this.max_length=z,this.has_stree=s&&s.length}function E(s,k){this.dyn_tree=s,this.max_code=0,this.stat_desc=k}function C(s){return s<256?B[s]:B[256+(s>>>7)]}function Y(s,k){s.pending_buf[s.pending++]=255&k,s.pending_buf[s.pending++]=k>>>8&255}function G(s,k,U){s.bi_valid>a-U?(s.bi_buf|=k<<s.bi_valid&65535,Y(s,s.bi_buf),s.bi_buf=k>>a-s.bi_valid,s.bi_valid+=U-a):(s.bi_buf|=k<<s.bi_valid&65535,s.bi_valid+=U)}function H(s,k,U){G(s,U[2*k],U[2*k+1])}function nt(s,k){for(var U=0;U|=1&s,s>>>=1,U<<=1,0<--k;);return U>>>1}function ot(s,k,U){var N,z,Z=new Array(h+1),V=0;for(N=1;N<=h;N++)Z[N]=V=V+U[N-1]<<1;for(z=0;z<=k;z++){var M=s[2*z+1];M!==0&&(s[2*z]=nt(Z[M]++,M))}}function Q(s){var k;for(k=0;k<b;k++)s.dyn_ltree[2*k]=0;for(k=0;k<i;k++)s.dyn_dtree[2*k]=0;for(k=0;k<c;k++)s.bl_tree[2*k]=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?Y(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,k,U,N){var z=2*k,Z=2*U;return s[z]<s[Z]||s[z]===s[Z]&&N[k]<=N[U]}function it(s,k,U){for(var N=s.heap[U],z=U<<1;z<=s.heap_len&&(z<s.heap_len&&st(k,s.heap[z+1],s.heap[z],s.depth)&&z++,!st(k,N,s.heap[z],s.depth));)s.heap[U]=s.heap[z],U=z,z<<=1;s.heap[U]=N}function ct(s,k,U){var N,z,Z,V,M=0;if(s.last_lit!==0)for(;N=s.pending_buf[s.d_buf+2*M]<<8|s.pending_buf[s.d_buf+2*M+1],z=s.pending_buf[s.l_buf+M],M++,N===0?H(s,z,k):(H(s,(Z=e[z])+p+1,k),(V=O[Z])!==0&&G(s,z-=T[Z],V),H(s,Z=C(--N),U),(V=L[Z])!==0&&G(s,N-=j[Z],V)),M<s.last_lit;);H(s,y,k)}function ht(s,k){var U,N,z,Z=k.dyn_tree,V=k.stat_desc.static_tree,M=k.stat_desc.has_stree,K=k.stat_desc.elems,rt=-1;for(s.heap_len=0,s.heap_max=r,U=0;U<K;U++)Z[2*U]!==0?(s.heap[++s.heap_len]=rt=U,s.depth[U]=0):Z[2*U+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--,M&&(s.static_len-=V[2*z+1]);for(k.max_code=rt,U=s.heap_len>>1;1<=U;U--)it(s,Z,U);for(z=K;U=s.heap[1],s.heap[1]=s.heap[s.heap_len--],it(s,Z,1),N=s.heap[1],s.heap[--s.heap_max]=U,s.heap[--s.heap_max]=N,Z[2*z]=Z[2*U]+Z[2*N],s.depth[z]=(s.depth[U]>=s.depth[N]?s.depth[U]:s.depth[N])+1,Z[2*U+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,ut){var gt,dt,bt,at,yt,St,pt=ut.dyn_tree,At=ut.max_code,Rt=ut.stat_desc.static_tree,Tt=ut.stat_desc.has_stree,Dt=ut.stat_desc.extra_bits,It=ut.stat_desc.extra_base,vt=ut.stat_desc.max_length,wt=0;for(at=0;at<=h;at++)tt.bl_count[at]=0;for(pt[2*tt.heap[tt.heap_max]+1]=0,gt=tt.heap_max+1;gt<r;gt++)vt<(at=pt[2*pt[2*(dt=tt.heap[gt])+1]+1]+1)&&(at=vt,wt++),pt[2*dt+1]=at,At<dt||(tt.bl_count[at]++,yt=0,It<=dt&&(yt=Dt[dt-It]),St=pt[2*dt],tt.opt_len+=St*(at+yt),Tt&&(tt.static_len+=St*(Rt[2*dt+1]+yt)));if(wt!==0){do{for(at=vt-1;tt.bl_count[at]===0;)at--;tt.bl_count[at]--,tt.bl_count[at+1]+=2,tt.bl_count[vt]--,wt-=2}while(0<wt);for(at=vt;at!==0;at--)for(dt=tt.bl_count[at];dt!==0;)At<(bt=tt.heap[--gt])||(pt[2*bt+1]!==at&&(tt.opt_len+=(at-pt[2*bt+1])*pt[2*bt],pt[2*bt+1]=at),dt--)}}(s,k),ot(Z,rt,s.bl_count)}function t(s,k,U){var N,z,Z=-1,V=k[1],M=0,K=7,rt=4;for(V===0&&(K=138,rt=3),k[2*(U+1)+1]=65535,N=0;N<=U;N++)z=V,V=k[2*(N+1)+1],++M<K&&z===V||(M<rt?s.bl_tree[2*z]+=M:z!==0?(z!==Z&&s.bl_tree[2*z]++,s.bl_tree[2*S]++):M<=10?s.bl_tree[2*x]++:s.bl_tree[2*D]++,Z=z,rt=(M=0)===V?(K=138,3):z===V?(K=6,3):(K=7,4))}function R(s,k,U){var N,z,Z=-1,V=k[1],M=0,K=7,rt=4;for(V===0&&(K=138,rt=3),N=0;N<=U;N++)if(z=V,V=k[2*(N+1)+1],!(++M<K&&z===V)){if(M<rt)for(;H(s,z,s.bl_tree),--M!=0;);else z!==0?(z!==Z&&(H(s,z,s.bl_tree),M--),H(s,S,s.bl_tree),G(s,M-3,2)):M<=10?(H(s,x,s.bl_tree),G(s,M-3,3)):(H(s,D,s.bl_tree),G(s,M-11,7));Z=z,rt=(M=0)===V?(K=138,3):z===V?(K=6,3):(K=7,4)}}u(j);var A=!1;function f(s,k,U,N){G(s,(g<<1)+(N?1:0),3),function(z,Z,V,M){et(z),Y(z,V),Y(z,~V),l.arraySet(z.pending_buf,z.window,Z,V,z.pending),z.pending+=V}(s,k,U)}w._tr_init=function(s){A||(function(){var k,U,N,z,Z,V=new Array(h+1);for(z=N=0;z<v-1;z++)for(T[z]=N,k=0;k<1<<O[z];k++)e[N++]=z;for(e[N-1]=z,z=Z=0;z<16;z++)for(j[z]=Z,k=0;k<1<<L[z];k++)B[Z++]=z;for(Z>>=7;z<i;z++)for(j[z]=Z<<7,k=0;k<1<<L[z]-7;k++)B[256+Z++]=z;for(U=0;U<=h;U++)V[U]=0;for(k=0;k<=143;)X[2*k+1]=8,k++,V[8]++;for(;k<=255;)X[2*k+1]=9,k++,V[9]++;for(;k<=279;)X[2*k+1]=7,k++,V[7]++;for(;k<=287;)X[2*k+1]=8,k++,V[8]++;for(ot(X,b+1,V),k=0;k<i;k++)_[2*k+1]=5,_[2*k]=nt(k,5);J=new q(X,O,p+1,b,h),P=new q(_,L,0,i,h),$=new q(new Array(0),I,0,c,d)}(),A=!0),s.l_desc=new E(s.dyn_ltree,J),s.d_desc=new E(s.dyn_dtree,P),s.bl_desc=new E(s.bl_tree,$),s.bi_buf=0,s.bi_valid=0,Q(s)},w._tr_stored_block=f,w._tr_flush_block=function(s,k,U,N){var z,Z,V=0;0<s.level?(s.strm.data_type===2&&(s.strm.data_type=function(M){var K,rt=4093624447;for(K=0;K<=31;K++,rt>>>=1)if(1&rt&&M.dyn_ltree[2*K]!==0)return o;if(M.dyn_ltree[18]!==0||M.dyn_ltree[20]!==0||M.dyn_ltree[26]!==0)return n;for(K=32;K<p;K++)if(M.dyn_ltree[2*K]!==0)return n;return o}(s)),ht(s,s.l_desc),ht(s,s.d_desc),V=function(M){var K;for(t(M,M.dyn_ltree,M.l_desc.max_code),t(M,M.dyn_dtree,M.d_desc.max_code),ht(M,M.bl_desc),K=c-1;3<=K&&M.bl_tree[2*W[K]+1]===0;K--);return M.opt_len+=3*(K+1)+5+5+4,K}(s),z=s.opt_len+3+7>>>3,(Z=s.static_len+3+7>>>3)<=z&&(z=Z)):z=Z=U+5,U+4<=z&&k!==-1?f(s,k,U,N):s.strategy===4||Z===z?(G(s,2+(N?1:0),3),ct(s,X,_)):(G(s,4+(N?1:0),3),function(M,K,rt,tt){var ut;for(G(M,K-257,5),G(M,rt-1,5),G(M,tt-4,4),ut=0;ut<tt;ut++)G(M,M.bl_tree[2*W[ut]+1],3);R(M,M.dyn_ltree,K-1),R(M,M.dyn_dtree,rt-1)}(s,s.l_desc.max_code+1,s.d_desc.max_code+1,V+1),ct(s,s.dyn_ltree,s.dyn_dtree)),Q(s),N&&et(s)},w._tr_tally=function(s,k,U){return s.pending_buf[s.d_buf+2*s.last_lit]=k>>>8&255,s.pending_buf[s.d_buf+2*s.last_lit+1]=255&k,s.pending_buf[s.l_buf+s.last_lit]=255&U,s.last_lit++,k===0?s.dyn_ltree[2*U]++:(s.matches++,k--,s.dyn_ltree[2*(e[U]+p+1)]++,s.dyn_dtree[2*C(k)]++),s.last_lit===s.lit_bufsize-1},w._tr_align=function(s){G(s,2,3),H(s,y,X),function(k){k.bi_valid===16?(Y(k,k.bi_buf),k.bi_buf=0,k.bi_valid=0):8<=k.bi_valid&&(k.pending_buf[k.pending++]=255&k.bi_buf,k.bi_buf>>=8,k.bi_valid-=8)}(s)}},{"../utils/common":41}],53:[function(m,F,w){F.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(m,F,w){(function(l){(function(o,n){if(!o.setImmediate){var u,g,v,p,b=1,i={},c=!1,r=o.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(o);h=h&&h.setTimeout?h:o,u={}.toString.call(o.process)==="[object process]"?function(S){process.nextTick(function(){d(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}}()?(p="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",y,!1):o.attachEvent("onmessage",y),function(S){o.postMessage(p+S,"*")}):o.MessageChannel?((v=new MessageChannel).port1.onmessage=function(S){d(S.data)},function(S){v.port2.postMessage(S)}):r&&"onreadystatechange"in r.createElement("script")?(g=r.documentElement,function(S){var x=r.createElement("script");x.onreadystatechange=function(){d(S),x.onreadystatechange=null,g.removeChild(x),x=null},g.appendChild(x)}):function(S){setTimeout(d,0,S)},h.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 i[b]=O,u(b),b++},h.clearImmediate=a}function a(S){delete i[S]}function d(S){if(c)setTimeout(d,0,S);else{var x=i[S];if(x){c=!0;try{(function(D){var O=D.callback,L=D.args;switch(L.length){case 0:O();break;case 1:O(L[0]);break;case 2:O(L[0],L[1]);break;case 3:O(L[0],L[1],L[2]);break;default:O.apply(n,L)}})(x)}finally{a(S),c=!1}}}}function y(S){S.source===o&&typeof S.data=="string"&&S.data.indexOf(p)===0&&d(+S.data.slice(p.length))}})(typeof self>"u"?l===void 0?this:l:self)}).call(this,typeof kt<"u"?kt:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Bt);var Vt=Bt.exports;const Kt=Ft(Vt),Ct=new Ut("UpdateVersion"),Et=async(lt,ft)=>{const m=ft.shift();if(m){const F=await lt.getDirectoryHandle(m,{create:!0});return Et(F,ft)}else return lt},Yt=async(lt,ft=!0)=>{if(!lt)return;const m=await window.showDirectoryPicker({mode:"readwrite"}),F=await Kt.loadAsync(lt),w=Object.values(F.files);for await(let l of w){const o=l.name.split("/").filter(n=>n);if(ft&&o.shift(),l.dir)await Et(m,o);else{const n=o.pop(),g=await(await Et(m,o)).getFileHandle(n,{create:!0}),v=await l.async("blob"),p=await g.createWritable();await p.write(v),await p.close()}}await Xt(),zt.success("更新成功，2s 后将自动重新加载扩展"),setTimeout(()=>{chrome.runtime.reload()},2e3)},Xt=async()=>{},qt=lt=>{const[ft,m]=mt.useState(),[F,w]=mt.useState(""),[l,o]=mt.useState(""),n=chrome.runtime.getManifest().version,[u,g]=mt.useState(""),v=mt.useCallback(async()=>{var i;let p;try{const c=await Zt();if(!c)throw new Error("获取扩展配置信息失败");w(c.version),o(c.changelogUrl);const r=((i=c.buildSelfSchemaList.find(h=>h.key===Wt))==null?void 0:i.schemaUrl)||"";g(r),p=c.updateUrl}catch(c){Ct.error("获取扩展配置信息失败",c),zt.error("获取扩展配置信息失败");return}let b;try{b=await fetch(p).then(c=>c.blob()),m(b)}catch(c){Ct.error("下载安装包失败",c),zt.error("下载安装包失败");return}},[]);return mt.useEffect(()=>{v()},[]),{zipFileBlob:ft,latestVersion:F,currentVersion:n,changelogUrl:l,updateVersionSchemaUrl:u}},Jt=()=>{const[lt,ft]=mt.useState(!1),{zipFileBlob:m,updateVersionSchemaUrl:F}=qt(!1),w=mt.useCallback(async()=>{if(m){ft(!0);try{await Yt(m)}catch(l){Ct.error("更新失败",l)}finally{ft(!1)}}},[m]);return _t.jsx(Nt,{locale:Ht,theme:{token:{colorPrimary:Pt}},children:_t.jsx(Lt,{children:_t.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",height:"100vh"},className:"inset-0 size-full bg-white bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:16px_16px]",children:[_t.jsxs(jt,{type:"primary",size:"large",loading:!m||lt,onClick:w,style:{marginTop:20},disabled:!m,children:["选择",Ot,"扩展所在文件夹（即加载来源、加载位置）进行更新"]}),F&&_t.jsx(Gt,{remoteSchemaUrl:F,style:{marginTop:20,flexGrow:1,width:"100%"}})]})})})};document.title=`${Ot}更新提示，请选择扩展所在文件夹（即加载来源、加载位置）进行更新`;Mt.createRoot(document.getElementById("root")).render(_t.jsx(Jt,{}));
