-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jszip.mjs
23 lines (19 loc) · 97 KB
/
jszip.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* esm.sh - esbuild bundle([email protected]) es2022 production */
import __Process$ from "./node_process.js";
import { Buffer as __Buffer$ } from "./buffer.mjs";
var __global$ = globalThis || (typeof window !== "undefined" ? window : self);
var __setImmediate$ = (cb, ...args) => setTimeout(cb, 0, ...args);
var Ft=Object.create;var xt=Object.defineProperty;var Nt=Object.getOwnPropertyDescriptor;var Ut=Object.getOwnPropertyNames;var Pt=Object.getPrototypeOf,Lt=Object.prototype.hasOwnProperty;var bt=(p=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(p,{get:(O,v)=>(typeof require<"u"?require:O)[v]}):p)(function(p){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+p+'" is not supported')});var jt=(p,O)=>()=>(O||p((O={exports:{}}).exports,O),O.exports),Zt=(p,O)=>{for(var v in O)xt(p,v,{get:O[v],enumerable:!0})},kt=(p,O,v,l)=>{if(O&&typeof O=="object"||typeof O=="function")for(let o of Ut(O))!Lt.call(p,o)&&o!==v&&xt(p,o,{get:()=>O[o],enumerable:!(l=Nt(O,o))||l.enumerable});return p},pt=(p,O,v)=>(kt(p,O,"default"),v&&kt(v,O,"default")),At=(p,O,v)=>(v=p!=null?Ft(Pt(p)):{},kt(O||!p||!p.__esModule?xt(v,"default",{value:p,enumerable:!0}):v,p));var zt=jt((It,St)=>{(function(p){typeof It=="object"&&typeof St<"u"?St.exports=p():typeof define=="function"&&define.amd?define([],p):(typeof window<"u"?window:typeof __global$<"u"?__global$:typeof self<"u"?self:this).JSZip=p()})(function(){return function p(O,v,l){function o(g,w){if(!v[g]){if(!O[g]){var m=typeof bt=="function"&&bt;if(!w&&m)return m(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=v[g]={exports:{}};O[g][0].call(i.exports,function(c){var e=O[g][1][c];return o(e||c)},i,i.exports,p,O,v,l)}return v[g].exports}for(var n=typeof bt=="function"&&bt,h=0;h<l.length;h++)o(l[h]);return o}({1:[function(p,O,v){"use strict";var l=p("./utils"),o=p("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";v.encode=function(h){for(var g,w,m,b,i,c,e,u=[],s=0,d=h.length,y=d,S=l.getTypeOf(h)!=="string";s<h.length;)y=d-s,m=S?(g=h[s++],w=s<d?h[s++]:0,s<d?h[s++]:0):(g=h.charCodeAt(s++),w=s<d?h.charCodeAt(s++):0,s<d?h.charCodeAt(s++):0),b=g>>2,i=(3&g)<<4|w>>4,c=1<y?(15&w)<<2|m>>6:64,e=2<y?63&m:64,u.push(n.charAt(b)+n.charAt(i)+n.charAt(c)+n.charAt(e));return u.join("")},v.decode=function(h){var g,w,m,b,i,c,e=0,u=0,s="data:";if(h.substr(0,s.length)===s)throw new Error("Invalid base64 input, it looks like a data url.");var d,y=3*(h=h.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(h.charAt(h.length-1)===n.charAt(64)&&y--,h.charAt(h.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);e<h.length;)g=n.indexOf(h.charAt(e++))<<2|(b=n.indexOf(h.charAt(e++)))>>4,w=(15&b)<<4|(i=n.indexOf(h.charAt(e++)))>>2,m=(3&i)<<6|(c=n.indexOf(h.charAt(e++))),d[u++]=g,i!==64&&(d[u++]=w),c!==64&&(d[u++]=m);return d}},{"./support":30,"./utils":32}],2:[function(p,O,v){"use strict";var l=p("./external"),o=p("./stream/DataWorker"),n=p("./stream/Crc32Probe"),h=p("./stream/DataLengthProbe");function g(w,m,b,i,c){this.compressedSize=w,this.uncompressedSize=m,this.crc32=b,this.compression=i,this.compressedContent=c}g.prototype={getContentWorker:function(){var w=new o(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")),m=this;return w.on("end",function(){if(this.streamInfo.data_length!==m.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),w},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(w,m,b){return w.pipe(new n).pipe(new h("uncompressedSize")).pipe(m.compressWorker(b)).pipe(new h("compressedSize")).withStreamInfo("compression",m)},O.exports=g},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(p,O,v){"use strict";var l=p("./stream/GenericWorker");v.STORE={magic:"\0\0",compressWorker:function(){return new l("STORE compression")},uncompressWorker:function(){return new l("STORE decompression")}},v.DEFLATE=p("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(p,O,v){"use strict";var l=p("./utils"),o=function(){for(var n,h=[],g=0;g<256;g++){n=g;for(var w=0;w<8;w++)n=1&n?3988292384^n>>>1:n>>>1;h[g]=n}return h}();O.exports=function(n,h){return n!==void 0&&n.length?l.getTypeOf(n)!=="string"?function(g,w,m,b){var i=o,c=b+m;g^=-1;for(var e=b;e<c;e++)g=g>>>8^i[255&(g^w[e])];return-1^g}(0|h,n,n.length,0):function(g,w,m,b){var i=o,c=b+m;g^=-1;for(var e=b;e<c;e++)g=g>>>8^i[255&(g^w.charCodeAt(e))];return-1^g}(0|h,n,n.length,0):0}},{"./utils":32}],5:[function(p,O,v){"use strict";v.base64=!1,v.binary=!1,v.dir=!1,v.createFolders=!0,v.date=null,v.compression=null,v.compressionOptions=null,v.comment=null,v.unixPermissions=null,v.dosPermissions=null},{}],6:[function(p,O,v){"use strict";var l=null;l=typeof Promise<"u"?Promise:p("lie"),O.exports={Promise:l}},{lie:37}],7:[function(p,O,v){"use strict";var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=p("pako"),n=p("./utils"),h=p("./stream/GenericWorker"),g=l?"uint8array":"array";function w(m,b){h.call(this,"FlateWorker/"+m),this._pako=null,this._pakoAction=m,this._pakoOptions=b,this.meta={}}v.magic="\b\0",n.inherits(w,h),w.prototype.processChunk=function(m){this.meta=m.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(g,m.data),!1)},w.prototype.flush=function(){h.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},w.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this._pako=null},w.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var m=this;this._pako.onData=function(b){m.push({data:b,meta:m.meta})}},v.compressWorker=function(m){return new w("Deflate",m)},v.uncompressWorker=function(){return new w("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(p,O,v){"use strict";function l(i,c){var e,u="";for(e=0;e<c;e++)u+=String.fromCharCode(255&i),i>>>=8;return u}function o(i,c,e,u,s,d){var y,S,x=i.file,F=i.compression,B=d!==g.utf8encode,L=n.transformTo("string",d(x.name)),I=n.transformTo("string",g.utf8encode(x.name)),M=x.comment,V=n.transformTo("string",d(M)),_=n.transformTo("string",g.utf8encode(M)),R=I.length!==x.name.length,r=_.length!==M.length,D="",J="",P="",$=x.dir,j=x.date,q={crc32:0,compressedSize:0,uncompressedSize:0};c&&!e||(q.crc32=i.crc32,q.compressedSize=i.compressedSize,q.uncompressedSize=i.uncompressedSize);var E=0;c&&(E|=8),B||!R&&!r||(E|=2048);var C=0,X=0;$&&(C|=16),s==="UNIX"?(X=798,C|=function(H,nt){var ot=H;return H||(ot=nt?16893:33204),(65535&ot)<<16}(x.unixPermissions,$)):(X=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(),R&&(J=l(1,1)+l(w(L),4)+I,D+="up"+l(J.length,2)+J),r&&(P=l(1,1)+l(w(V),4)+_,D+="uc"+l(P.length,2)+P);var G="";return G+=`
\0`,G+=l(E,2),G+=F.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(D.length,2),{fileRecord:m.LOCAL_FILE_HEADER+G+L+D,dirRecord:m.CENTRAL_FILE_HEADER+l(X,2)+G+l(V.length,2)+"\0\0\0\0"+l(C,4)+l(u,4)+L+D+V}}var n=p("../utils"),h=p("../stream/GenericWorker"),g=p("../utf8"),w=p("../crc32"),m=p("../signature");function b(i,c,e,u){h.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=c,this.zipPlatform=e,this.encodeFileName=u,this.streamFiles=i,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(b,h),b.prototype.push=function(i){var c=i.meta.percent||0,e=this.entriesCount,u=this._sources.length;this.accumulate?this.contentBuffer.push(i):(this.bytesWritten+=i.data.length,h.prototype.push.call(this,{data:i.data,meta:{currentFile:this.currentFile,percent:e?(c+100*(e-u-1))/e: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 e=o(i,c,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:e.fileRecord,meta:{percent:0}})}else this.accumulate=!0},b.prototype.closedSource=function(i){this.accumulate=!1;var c=this.streamFiles&&!i.file.dir,e=o(i,c,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(e.dirRecord),c)this.push({data:function(u){return m.DATA_DESCRIPTOR+l(u.crc32,4)+l(u.compressedSize,4)+l(u.uncompressedSize,4)}(i),meta:{percent:100}});else for(this.push({data:e.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 e=this.bytesWritten-i,u=function(s,d,y,S,x){var F=n.transformTo("string",x(S));return m.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(s,2)+l(s,2)+l(d,4)+l(y,4)+l(F.length,2)+F}(this.dirRecords.length,e,i,this.zipComment,this.encodeFileName);this.push({data:u,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(e){c.processChunk(e)}),i.on("end",function(){c.closedSource(c.previous.streamInfo),c._sources.length?c.prepareNextSource():c.end()}),i.on("error",function(e){c.error(e)}),this},b.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},b.prototype.error=function(i){var c=this._sources;if(!h.prototype.error.call(this,i))return!1;for(var e=0;e<c.length;e++)try{c[e].error(i)}catch{}return!0},b.prototype.lock=function(){h.prototype.lock.call(this);for(var i=this._sources,c=0;c<i.length;c++)i[c].lock()},O.exports=b},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(p,O,v){"use strict";var l=p("../compressions"),o=p("./ZipFileWorker");v.generateWorker=function(n,h,g){var w=new o(h.streamFiles,g,h.platform,h.encodeFileName),m=0;try{n.forEach(function(b,i){m++;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,h.compression),e=i.options.compressionOptions||h.compressionOptions||{},u=i.dir,s=i.date;i._compressWorker(c,e).withStreamInfo("file",{name:b,dir:u,date:s,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(w)}),w.entriesCount=m}catch(b){w.error(b)}return w}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(p,O,v){"use strict";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=p("./object")).loadAsync=p("./load"),l.support=p("./support"),l.defaults=p("./defaults"),l.version="3.10.1",l.loadAsync=function(o,n){return new l().loadAsync(o,n)},l.external=p("./external"),O.exports=l},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(p,O,v){"use strict";var l=p("./utils"),o=p("./external"),n=p("./utf8"),h=p("./zipEntries"),g=p("./stream/Crc32Probe"),w=p("./nodejsUtils");function m(b){return new o.Promise(function(i,c){var e=b.decompressed.getContentWorker().pipe(new g);e.on("error",function(u){c(u)}).on("end",function(){e.streamInfo.crc32!==b.decompressed.crc32?c(new Error("Corrupted zip : CRC32 mismatch")):i()}).resume()})}O.exports=function(b,i){var c=this;return i=l.extend(i||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),w.isNode&&w.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(e){var u=new h(i);return u.load(e),u}).then(function(e){var u=[o.Promise.resolve(e)],s=e.files;if(i.checkCRC32)for(var d=0;d<s.length;d++)u.push(m(s[d]));return o.Promise.all(u)}).then(function(e){for(var u=e.shift(),s=u.files,d=0;d<s.length;d++){var y=s[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 u.zipComment.length&&(c.comment=u.zipComment),c})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(p,O,v){"use strict";var l=p("../utils"),o=p("../stream/GenericWorker");function n(h,g){o.call(this,"Nodejs stream input adapter for "+h),this._upstreamEnded=!1,this._bindStream(g)}l.inherits(n,o),n.prototype._bindStream=function(h){var g=this;(this._stream=h).pause(),h.on("data",function(w){g.push({data:w,meta:{percent:0}})}).on("error",function(w){g.isPaused?this.generatedError=w:g.error(w)}).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)},O.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(p,O,v){"use strict";var l=p("readable-stream").Readable;function o(n,h,g){l.call(this,h),this._helper=n;var w=this;n.on("data",function(m,b){w.push(m)||w._helper.pause(),g&&g(b)}).on("error",function(m){w.emit("error",m)}).on("end",function(){w.push(null)})}p("../utils").inherits(o,l),o.prototype._read=function(){this._helper.resume()},O.exports=o},{"../utils":32,"readable-stream":16}],14:[function(p,O,v){"use strict";O.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(p,O,v){"use strict";function l(x,F,B){var L,I=n.getTypeOf(F),M=n.extend(B||{},w);M.date=M.date||new Date,M.compression!==null&&(M.compression=M.compression.toUpperCase()),typeof M.unixPermissions=="string"&&(M.unixPermissions=parseInt(M.unixPermissions,8)),M.unixPermissions&&16384&M.unixPermissions&&(M.dir=!0),M.dosPermissions&&16&M.dosPermissions&&(M.dir=!0),M.dir&&(x=s(x)),M.createFolders&&(L=u(x))&&d.call(this,L,!0);var V=I==="string"&&M.binary===!1&&M.base64===!1;B&&B.binary!==void 0||(M.binary=!V),(F instanceof m&&F.uncompressedSize===0||M.dir||!F||F.length===0)&&(M.base64=!1,M.binary=!0,F="",M.compression="STORE",I="string");var _=null;_=F instanceof m||F instanceof h?F:c.isNode&&c.isStream(F)?new e(x,F):n.prepareContent(x,F,M.binary,M.optimizedBinaryString,M.base64);var R=new b(x,_,M);this.files[x]=R}var o=p("./utf8"),n=p("./utils"),h=p("./stream/GenericWorker"),g=p("./stream/StreamHelper"),w=p("./defaults"),m=p("./compressedObject"),b=p("./zipObject"),i=p("./generate"),c=p("./nodejsUtils"),e=p("./nodejs/NodejsStreamInputAdapter"),u=function(x){x.slice(-1)==="/"&&(x=x.substring(0,x.length-1));var F=x.lastIndexOf("/");return 0<F?x.substring(0,F):""},s=function(x){return x.slice(-1)!=="/"&&(x+="/"),x},d=function(x,F){return F=F!==void 0?F:w.createFolders,x=s(x),this.files[x]||l.call(this,x,null,{dir:!0,createFolders:F}),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 F,B,L;for(F in this.files)L=this.files[F],(B=F.slice(this.root.length,F.length))&&F.slice(0,this.root.length)===this.root&&x(B,L)},filter:function(x){var F=[];return this.forEach(function(B,L){x(B,L)&&F.push(L)}),F},file:function(x,F,B){if(arguments.length!==1)return x=this.root+x,l.call(this,x,F,B),this;if(y(x)){var L=x;return this.filter(function(M,V){return!V.dir&&L.test(M)})}var I=this.files[this.root+x];return I&&!I.dir?I:null},folder:function(x){if(!x)return this;if(y(x))return this.filter(function(I,M){return M.dir&&x.test(I)});var F=this.root+x,B=d.call(this,F),L=this.clone();return L.root=B.name,L},remove:function(x){x=this.root+x;var F=this.files[x];if(F||(x.slice(-1)!=="/"&&(x+="/"),F=this.files[x]),F&&!F.dir)delete this.files[x];else for(var B=this.filter(function(I,M){return M.name.slice(0,x.length)===x}),L=0;L<B.length;L++)delete this.files[B[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 F,B={};try{if((B=n.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=B.type.toLowerCase(),B.compression=B.compression.toUpperCase(),B.type==="binarystring"&&(B.type="string"),!B.type)throw new Error("No output type specified.");n.checkSupport(B.type),B.platform!=="darwin"&&B.platform!=="freebsd"&&B.platform!=="linux"&&B.platform!=="sunos"||(B.platform="UNIX"),B.platform==="win32"&&(B.platform="DOS");var L=B.comment||this.comment||"";F=i.generateWorker(this,B,L)}catch(I){(F=new h("error")).error(I)}return new g(F,B.type||"string",B.mimeType)},generateAsync:function(x,F){return this.generateInternalStream(x).accumulate(F)},generateNodeStream:function(x,F){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(F)}};O.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(p,O,v){"use strict";O.exports=p("stream")},{stream:void 0}],17:[function(p,O,v){"use strict";var l=p("./DataReader");function o(n){l.call(this,n);for(var h=0;h<this.data.length;h++)n[h]=255&n[h]}p("../utils").inherits(o,l),o.prototype.byteAt=function(n){return this.data[this.zero+n]},o.prototype.lastIndexOfSignature=function(n){for(var h=n.charCodeAt(0),g=n.charCodeAt(1),w=n.charCodeAt(2),m=n.charCodeAt(3),b=this.length-4;0<=b;--b)if(this.data[b]===h&&this.data[b+1]===g&&this.data[b+2]===w&&this.data[b+3]===m)return b-this.zero;return-1},o.prototype.readAndCheckSignature=function(n){var h=n.charCodeAt(0),g=n.charCodeAt(1),w=n.charCodeAt(2),m=n.charCodeAt(3),b=this.readData(4);return h===b[0]&&g===b[1]&&w===b[2]&&m===b[3]},o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},O.exports=o},{"../utils":32,"./DataReader":18}],18:[function(p,O,v){"use strict";var l=p("../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 h,g=0;for(this.checkOffset(n),h=this.index+n-1;h>=this.index;h--)g=(g<<8)+this.byteAt(h);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))}},O.exports=o},{"../utils":32}],19:[function(p,O,v){"use strict";var l=p("./Uint8ArrayReader");function o(n){l.call(this,n)}p("../utils").inherits(o,l),o.prototype.readData=function(n){this.checkOffset(n);var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},O.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(p,O,v){"use strict";var l=p("./DataReader");function o(n){l.call(this,n)}p("../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 h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},O.exports=o},{"../utils":32,"./DataReader":18}],21:[function(p,O,v){"use strict";var l=p("./ArrayReader");function o(n){l.call(this,n)}p("../utils").inherits(o,l),o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var h=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},O.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(p,O,v){"use strict";var l=p("../utils"),o=p("../support"),n=p("./ArrayReader"),h=p("./StringReader"),g=p("./NodeBufferReader"),w=p("./Uint8ArrayReader");O.exports=function(m){var b=l.getTypeOf(m);return l.checkSupport(b),b!=="string"||o.uint8array?b==="nodebuffer"?new g(m):o.uint8array?new w(l.transformTo("uint8array",m)):new n(l.transformTo("array",m)):new h(m)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(p,O,v){"use strict";v.LOCAL_FILE_HEADER="PK",v.CENTRAL_FILE_HEADER="PK",v.CENTRAL_DIRECTORY_END="PK",v.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",v.ZIP64_CENTRAL_DIRECTORY_END="PK",v.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(p,O,v){"use strict";var l=p("./GenericWorker"),o=p("../utils");function n(h){l.call(this,"ConvertWorker to "+h),this.destType=h}o.inherits(n,l),n.prototype.processChunk=function(h){this.push({data:o.transformTo(this.destType,h.data),meta:h.meta})},O.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(p,O,v){"use strict";var l=p("./GenericWorker"),o=p("../crc32");function n(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}p("../utils").inherits(n,l),n.prototype.processChunk=function(h){this.streamInfo.crc32=o(h.data,this.streamInfo.crc32||0),this.push(h)},O.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(p,O,v){"use strict";var l=p("../utils"),o=p("./GenericWorker");function n(h){o.call(this,"DataLengthProbe for "+h),this.propName=h,this.withStreamInfo(h,0)}l.inherits(n,o),n.prototype.processChunk=function(h){if(h){var g=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=g+h.data.length}o.prototype.processChunk.call(this,h)},O.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(p,O,v){"use strict";var l=p("../utils"),o=p("./GenericWorker");function n(h){o.call(this,"DataWorker");var g=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,h.then(function(w){g.dataIsReady=!0,g.data=w,g.max=w&&w.length||0,g.type=l.getTypeOf(w),g.isPaused||g._tickAndRepeat()},function(w){g.error(w)})}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 h=null,g=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":h=this.data.substring(this.index,g);break;case"uint8array":h=this.data.subarray(this.index,g);break;case"array":case"nodebuffer":h=this.data.slice(this.index,g)}return this.index=g,this.push({data:h,meta:{percent:this.max?this.index/this.max*100:0}})},O.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(p,O,v){"use strict";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 h=0;h<this._listeners[o].length;h++)this._listeners[o][h].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(h){n.processChunk(h)}),o.on("end",function(){n.end()}),o.on("error",function(h){n.error(h)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,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}},O.exports=l},{}],29:[function(p,O,v){"use strict";var l=p("../utils"),o=p("./ConvertWorker"),n=p("./GenericWorker"),h=p("../base64"),g=p("../support"),w=p("../external"),m=null;if(g.nodestream)try{m=p("../nodejs/NodejsStreamOutputAdapter")}catch{}function b(c,e){return new w.Promise(function(u,s){var d=[],y=c._internalType,S=c._outputType,x=c._mimeType;c.on("data",function(F,B){d.push(F),e&&e(B)}).on("error",function(F){d=[],s(F)}).on("end",function(){try{var F=function(B,L,I){switch(B){case"blob":return l.newBlob(l.transformTo("arraybuffer",L),I);case"base64":return h.encode(L);default:return l.transformTo(B,L)}}(S,function(B,L){var I,M=0,V=null,_=0;for(I=0;I<L.length;I++)_+=L[I].length;switch(B){case"string":return L.join("");case"array":return Array.prototype.concat.apply([],L);case"uint8array":for(V=new Uint8Array(_),I=0;I<L.length;I++)V.set(L[I],M),M+=L[I].length;return V;case"nodebuffer":return __Buffer$.concat(L);default:throw new Error("concat : unsupported type '"+B+"'")}}(y,d),x);u(F)}catch(B){s(B)}d=[]}).resume()})}function i(c,e,u){var s=e;switch(e){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=e,this._mimeType=u,l.checkSupport(s),this._worker=c.pipe(new o(s)),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,e){var u=this;return c==="data"?this._worker.on(c,function(s){e.call(u,s.data,s.meta)}):this._worker.on(c,function(){l.delay(e,arguments,u)}),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 m(this,{objectMode:this._outputType!=="nodebuffer"},c)}},O.exports=i},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(p,O,v){"use strict";if(v.base64=!0,v.array=!0,v.string=!0,v.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",v.nodebuffer=typeof __Buffer$<"u",v.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")v.blob=!1;else{var l=new ArrayBuffer(0);try{v.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),v.blob=o.getBlob("application/zip").size===0}catch{v.blob=!1}}}try{v.nodestream=!!p("readable-stream").Readable}catch{v.nodestream=!1}},{"readable-stream":16}],31:[function(p,O,v){"use strict";for(var l=p("./utils"),o=p("./support"),n=p("./nodejsUtils"),h=p("./stream/GenericWorker"),g=new Array(256),w=0;w<256;w++)g[w]=252<=w?6:248<=w?5:240<=w?4:224<=w?3:192<=w?2:1;g[254]=g[254]=1;function m(){h.call(this,"utf-8 decode"),this.leftOver=null}function b(){h.call(this,"utf-8 encode")}v.utf8encode=function(i){return o.nodebuffer?n.newBufferFrom(i,"utf-8"):function(c){var e,u,s,d,y,S=c.length,x=0;for(d=0;d<S;d++)(64512&(u=c.charCodeAt(d)))==55296&&d+1<S&&(64512&(s=c.charCodeAt(d+1)))==56320&&(u=65536+(u-55296<<10)+(s-56320),d++),x+=u<128?1:u<2048?2:u<65536?3:4;for(e=o.uint8array?new Uint8Array(x):new Array(x),d=y=0;y<x;d++)(64512&(u=c.charCodeAt(d)))==55296&&d+1<S&&(64512&(s=c.charCodeAt(d+1)))==56320&&(u=65536+(u-55296<<10)+(s-56320),d++),u<128?e[y++]=u:(u<2048?e[y++]=192|u>>>6:(u<65536?e[y++]=224|u>>>12:(e[y++]=240|u>>>18,e[y++]=128|u>>>12&63),e[y++]=128|u>>>6&63),e[y++]=128|63&u);return e}(i)},v.utf8decode=function(i){return o.nodebuffer?l.transformTo("nodebuffer",i).toString("utf-8"):function(c){var e,u,s,d,y=c.length,S=new Array(2*y);for(e=u=0;e<y;)if((s=c[e++])<128)S[u++]=s;else if(4<(d=g[s]))S[u++]=65533,e+=d-1;else{for(s&=d===2?31:d===3?15:7;1<d&&e<y;)s=s<<6|63&c[e++],d--;1<d?S[u++]=65533:s<65536?S[u++]=s:(s-=65536,S[u++]=55296|s>>10&1023,S[u++]=56320|1023&s)}return S.length!==u&&(S.subarray?S=S.subarray(0,u):S.length=u),l.applyFromCharCode(S)}(i=l.transformTo(o.uint8array?"uint8array":"array",i))},l.inherits(m,h),m.prototype.processChunk=function(i){var c=l.transformTo(o.uint8array?"uint8array":"array",i.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var e=c;(c=new Uint8Array(e.length+this.leftOver.length)).set(this.leftOver,0),c.set(e,this.leftOver.length)}else c=this.leftOver.concat(c);this.leftOver=null}var u=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),s=c;u!==c.length&&(o.uint8array?(s=c.subarray(0,u),this.leftOver=c.subarray(u,c.length)):(s=c.slice(0,u),this.leftOver=c.slice(u,c.length))),this.push({data:v.utf8decode(s),meta:i.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:v.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},v.Utf8DecodeWorker=m,l.inherits(b,h),b.prototype.processChunk=function(i){this.push({data:v.utf8encode(i.data),meta:i.meta})},v.Utf8EncodeWorker=b},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(p,O,v){"use strict";var l=p("./support"),o=p("./base64"),n=p("./nodejsUtils"),h=p("./external");function g(e){return e}function w(e,u){for(var s=0;s<e.length;++s)u[s]=255&e.charCodeAt(s);return u}p("setimmediate"),v.newBlob=function(e,u){v.checkSupport("blob");try{return new Blob([e],{type:u})}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return s.append(e),s.getBlob(u)}catch{throw new Error("Bug : can't construct the Blob.")}}};var m={stringifyByChunk:function(e,u,s){var d=[],y=0,S=e.length;if(S<=s)return String.fromCharCode.apply(null,e);for(;y<S;)u==="array"||u==="nodebuffer"?d.push(String.fromCharCode.apply(null,e.slice(y,Math.min(y+s,S)))):d.push(String.fromCharCode.apply(null,e.subarray(y,Math.min(y+s,S)))),y+=s;return d.join("")},stringifyByChar:function(e){for(var u="",s=0;s<e.length;s++)u+=String.fromCharCode(e[s]);return u},applyCanBeUsed:{uint8array:function(){try{return l.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return l.nodebuffer&&String.fromCharCode.apply(null,n.allocBuffer(1)).length===1}catch{return!1}}()}};function b(e){var u=65536,s=v.getTypeOf(e),d=!0;if(s==="uint8array"?d=m.applyCanBeUsed.uint8array:s==="nodebuffer"&&(d=m.applyCanBeUsed.nodebuffer),d)for(;1<u;)try{return m.stringifyByChunk(e,s,u)}catch{u=Math.floor(u/2)}return m.stringifyByChar(e)}function i(e,u){for(var s=0;s<e.length;s++)u[s]=e[s];return u}v.applyFromCharCode=b;var c={};c.string={string:g,array:function(e){return w(e,new Array(e.length))},arraybuffer:function(e){return c.string.uint8array(e).buffer},uint8array:function(e){return w(e,new Uint8Array(e.length))},nodebuffer:function(e){return w(e,n.allocBuffer(e.length))}},c.array={string:b,array:g,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return n.newBufferFrom(e)}},c.arraybuffer={string:function(e){return b(new Uint8Array(e))},array:function(e){return i(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:g,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return n.newBufferFrom(new Uint8Array(e))}},c.uint8array={string:b,array:function(e){return i(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:g,nodebuffer:function(e){return n.newBufferFrom(e)}},c.nodebuffer={string:b,array:function(e){return i(e,new Array(e.length))},arraybuffer:function(e){return c.nodebuffer.uint8array(e).buffer},uint8array:function(e){return i(e,new Uint8Array(e.length))},nodebuffer:g},v.transformTo=function(e,u){if(u=u||"",!e)return u;v.checkSupport(e);var s=v.getTypeOf(u);return c[s][e](u)},v.resolve=function(e){for(var u=e.split("/"),s=[],d=0;d<u.length;d++){var y=u[d];y==="."||y===""&&d!==0&&d!==u.length-1||(y===".."?s.pop():s.push(y))}return s.join("/")},v.getTypeOf=function(e){return typeof e=="string"?"string":Object.prototype.toString.call(e)==="[object Array]"?"array":l.nodebuffer&&n.isBuffer(e)?"nodebuffer":l.uint8array&&e instanceof Uint8Array?"uint8array":l.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},v.checkSupport=function(e){if(!l[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},v.MAX_VALUE_16BITS=65535,v.MAX_VALUE_32BITS=-1,v.pretty=function(e){var u,s,d="";for(s=0;s<(e||"").length;s++)d+="\\x"+((u=e.charCodeAt(s))<16?"0":"")+u.toString(16).toUpperCase();return d},v.delay=function(e,u,s){__setImmediate$(function(){e.apply(s||null,u||[])})},v.inherits=function(e,u){function s(){}s.prototype=u.prototype,e.prototype=new s},v.extend=function(){var e,u,s={};for(e=0;e<arguments.length;e++)for(u in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],u)&&s[u]===void 0&&(s[u]=arguments[e][u]);return s},v.prepareContent=function(e,u,s,d,y){return h.Promise.resolve(u).then(function(S){return l.blob&&(S instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(S))!==-1)&&typeof FileReader<"u"?new h.Promise(function(x,F){var B=new FileReader;B.onload=function(L){x(L.target.result)},B.onerror=function(L){F(L.target.error)},B.readAsArrayBuffer(S)}):S}).then(function(S){var x=v.getTypeOf(S);return x?(x==="arraybuffer"?S=v.transformTo("uint8array",S):x==="string"&&(y?S=o.decode(S):s&&d!==!0&&(S=function(F){return w(F,l.uint8array?new Uint8Array(F.length):new Array(F.length))}(S))),S):h.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(p,O,v){"use strict";var l=p("./reader/readerFor"),o=p("./utils"),n=p("./signature"),h=p("./zipEntry"),g=p("./support");function w(m){this.files=[],this.loadOptions=m}w.prototype={checkSignature:function(m){if(!this.reader.readAndCheckSignature(m)){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(m)+")")}},isSignature:function(m,b){var i=this.reader.index;this.reader.setIndex(m);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 m=this.reader.readData(this.zipCommentLength),b=g.uint8array?"uint8array":"array",i=o.transformTo(b,m);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 m,b,i,c=this.zip64EndOfCentralSize-44;0<c;)m=this.reader.readInt(2),b=this.reader.readInt(4),i=this.reader.readData(b),this.zip64ExtensibleData[m]={id:m,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 m,b;for(m=0;m<this.files.length;m++)b=this.files[m],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8(),b.processAttributes()},readCentralDir:function(){var m;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(m=new h({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(m);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 m=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(m<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(m);var b=m;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,(m=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(m),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(m){this.reader=l(m)},load:function(m){this.prepareReader(m),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},O.exports=w},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(p,O,v){"use strict";var l=p("./reader/readerFor"),o=p("./utils"),n=p("./compressedObject"),h=p("./crc32"),g=p("./utf8"),w=p("./compressions"),m=p("./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,e;if(i.skip(22),this.fileNameLength=i.readInt(2),e=i.readInt(2),this.fileName=i.readData(this.fileNameLength),i.skip(e),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(u){for(var s in w)if(Object.prototype.hasOwnProperty.call(w,s)&&w[s].magic===u)return w[s];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,e,u,s=i.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});i.index+4<s;)c=i.readInt(2),e=i.readInt(2),u=i.readData(e),this.extraFields[c]={id:c,length:e,value:u};i.setIndex(s)},handleUTF8:function(){var i=m.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 e=o.transformTo(i,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(e)}var u=this.findExtraFieldUnicodeComment();if(u!==null)this.fileCommentStr=u;else{var s=o.transformTo(i,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var i=this.extraFields[28789];if(i){var c=l(i.value);return c.readInt(1)!==1||h(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||h(this.fileComment)!==c.readInt(4)?null:g.utf8decode(c.readData(i.length-5))}return null}},O.exports=b},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(p,O,v){"use strict";function l(c,e,u){this.name=c,this.dir=u.dir,this.date=u.date,this.comment=u.comment,this.unixPermissions=u.unixPermissions,this.dosPermissions=u.dosPermissions,this._data=e,this._dataBinary=u.binary,this.options={compression:u.compression,compressionOptions:u.compressionOptions}}var o=p("./stream/StreamHelper"),n=p("./stream/DataWorker"),h=p("./utf8"),g=p("./compressedObject"),w=p("./stream/GenericWorker");l.prototype={internalStream:function(c){var e=null,u="string";try{if(!c)throw new Error("No output type specified.");var s=(u=c.toLowerCase())==="string"||u==="text";u!=="binarystring"&&u!=="text"||(u="string"),e=this._decompressWorker();var d=!this._dataBinary;d&&!s&&(e=e.pipe(new h.Utf8EncodeWorker)),!d&&s&&(e=e.pipe(new h.Utf8DecodeWorker))}catch(y){(e=new w("error")).error(y)}return new o(e,u,"")},async:function(c,e){return this.internalStream(c).accumulate(e)},nodeStream:function(c,e){return this.internalStream(c||"nodebuffer").toNodejsStream(e)},_compressWorker:function(c,e){if(this._data instanceof g&&this._data.compression.magic===c.magic)return this._data.getCompressedWorker();var u=this._decompressWorker();return this._dataBinary||(u=u.pipe(new h.Utf8EncodeWorker)),g.createWorkerFrom(u,c,e)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof w?this._data:new n(this._data)}};for(var m=["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<m.length;i++)l.prototype[m[i]]=b;O.exports=l},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(p,O,v){(function(l){"use strict";var o,n,h=l.MutationObserver||l.WebKitMutationObserver;if(h){var g=0,w=new h(c),m=l.document.createTextNode("");w.observe(m,{characterData:!0}),o=function(){m.data=g=++g%2}}else if(l.setImmediate||l.MessageChannel===void 0)o="document"in l&&"onreadystatechange"in l.document.createElement("script")?function(){var e=l.document.createElement("script");e.onreadystatechange=function(){c(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},l.document.documentElement.appendChild(e)}: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 e,u;n=!0;for(var s=i.length;s;){for(u=i,i=[],e=-1;++e<s;)u[e]();s=i.length}n=!1}O.exports=function(e){i.push(e)!==1||n||o()}}).call(this,typeof __global$<"u"?__global$:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(p,O,v){"use strict";var l=p("immediate");function o(){}var n={},h=["REJECTED"],g=["FULFILLED"],w=["PENDING"];function m(s){if(typeof s!="function")throw new TypeError("resolver must be a function");this.state=w,this.queue=[],this.outcome=void 0,s!==o&&e(this,s)}function b(s,d,y){this.promise=s,typeof d=="function"&&(this.onFulfilled=d,this.callFulfilled=this.otherCallFulfilled),typeof y=="function"&&(this.onRejected=y,this.callRejected=this.otherCallRejected)}function i(s,d,y){l(function(){var S;try{S=d(y)}catch(x){return n.reject(s,x)}S===s?n.reject(s,new TypeError("Cannot resolve promise with itself")):n.resolve(s,S)})}function c(s){var d=s&&s.then;if(s&&(typeof s=="object"||typeof s=="function")&&typeof d=="function")return function(){d.apply(s,arguments)}}function e(s,d){var y=!1;function S(B){y||(y=!0,n.reject(s,B))}function x(B){y||(y=!0,n.resolve(s,B))}var F=u(function(){d(x,S)});F.status==="error"&&S(F.value)}function u(s,d){var y={};try{y.value=s(d),y.status="success"}catch(S){y.status="error",y.value=S}return y}(O.exports=m).prototype.finally=function(s){if(typeof s!="function")return this;var d=this.constructor;return this.then(function(y){return d.resolve(s()).then(function(){return y})},function(y){return d.resolve(s()).then(function(){throw y})})},m.prototype.catch=function(s){return this.then(null,s)},m.prototype.then=function(s,d){if(typeof s!="function"&&this.state===g||typeof d!="function"&&this.state===h)return this;var y=new this.constructor(o);return this.state!==w?i(y,this.state===g?s:d,this.outcome):this.queue.push(new b(y,s,d)),y},b.prototype.callFulfilled=function(s){n.resolve(this.promise,s)},b.prototype.otherCallFulfilled=function(s){i(this.promise,this.onFulfilled,s)},b.prototype.callRejected=function(s){n.reject(this.promise,s)},b.prototype.otherCallRejected=function(s){i(this.promise,this.onRejected,s)},n.resolve=function(s,d){var y=u(c,d);if(y.status==="error")return n.reject(s,y.value);var S=y.value;if(S)e(s,S);else{s.state=g,s.outcome=d;for(var x=-1,F=s.queue.length;++x<F;)s.queue[x].callFulfilled(d)}return s},n.reject=function(s,d){s.state=h,s.outcome=d;for(var y=-1,S=s.queue.length;++y<S;)s.queue[y].callRejected(d);return s},m.resolve=function(s){return s instanceof this?s:n.resolve(new this(o),s)},m.reject=function(s){var d=new this(o);return n.reject(d,s)},m.all=function(s){var d=this;if(Object.prototype.toString.call(s)!=="[object Array]")return this.reject(new TypeError("must be an array"));var y=s.length,S=!1;if(!y)return this.resolve([]);for(var x=new Array(y),F=0,B=-1,L=new this(o);++B<y;)I(s[B],B);return L;function I(M,V){d.resolve(M).then(function(_){x[V]=_,++F!==y||S||(S=!0,n.resolve(L,x))},function(_){S||(S=!0,n.reject(L,_))})}},m.race=function(s){var d=this;if(Object.prototype.toString.call(s)!=="[object Array]")return this.reject(new TypeError("must be an array"));var y=s.length,S=!1;if(!y)return this.resolve([]);for(var x=-1,F=new this(o);++x<y;)B=s[x],d.resolve(B).then(function(L){S||(S=!0,n.resolve(F,L))},function(L){S||(S=!0,n.reject(F,L))});var B;return F}},{immediate:36}],38:[function(p,O,v){"use strict";var l={};(0,p("./lib/utils/common").assign)(l,p("./lib/deflate"),p("./lib/inflate"),p("./lib/zlib/constants")),O.exports=l},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(p,O,v){"use strict";var l=p("./zlib/deflate"),o=p("./utils/common"),n=p("./utils/strings"),h=p("./zlib/messages"),g=p("./zlib/zstream"),w=Object.prototype.toString,m=0,b=-1,i=0,c=8;function e(s){if(!(this instanceof e))return new e(s);this.options=o.assign({level:b,method:c,chunkSize:16384,windowBits:15,memLevel:8,strategy:i,to:""},s||{});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!==m)throw new Error(h[y]);if(d.header&&l.deflateSetHeader(this.strm,d.header),d.dictionary){var S;if(S=typeof d.dictionary=="string"?n.string2buf(d.dictionary):w.call(d.dictionary)==="[object ArrayBuffer]"?new Uint8Array(d.dictionary):d.dictionary,(y=l.deflateSetDictionary(this.strm,S))!==m)throw new Error(h[y]);this._dict_set=!0}}function u(s,d){var y=new e(d);if(y.push(s,!0),y.err)throw y.msg||h[y.err];return y.result}e.prototype.push=function(s,d){var y,S,x=this.strm,F=this.options.chunkSize;if(this.ended)return!1;S=d===~~d?d:d===!0?4:0,typeof s=="string"?x.input=n.string2buf(s):w.call(s)==="[object ArrayBuffer]"?x.input=new Uint8Array(s):x.input=s,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new o.Buf8(F),x.next_out=0,x.avail_out=F),(y=l.deflate(x,S))!==1&&y!==m)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===m):S!==2||(this.onEnd(m),!(x.avail_out=0))},e.prototype.onData=function(s){this.chunks.push(s)},e.prototype.onEnd=function(s){s===m&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=s,this.msg=this.strm.msg},v.Deflate=e,v.deflate=u,v.deflateRaw=function(s,d){return(d=d||{}).raw=!0,u(s,d)},v.gzip=function(s,d){return(d=d||{}).gzip=!0,u(s,d)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(p,O,v){"use strict";var l=p("./zlib/inflate"),o=p("./utils/common"),n=p("./utils/strings"),h=p("./zlib/constants"),g=p("./zlib/messages"),w=p("./zlib/zstream"),m=p("./zlib/gzheader"),b=Object.prototype.toString;function i(e){if(!(this instanceof i))return new i(e);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var u=this.options;u.raw&&0<=u.windowBits&&u.windowBits<16&&(u.windowBits=-u.windowBits,u.windowBits===0&&(u.windowBits=-15)),!(0<=u.windowBits&&u.windowBits<16)||e&&e.windowBits||(u.windowBits+=32),15<u.windowBits&&u.windowBits<48&&!(15&u.windowBits)&&(u.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new w,this.strm.avail_out=0;var s=l.inflateInit2(this.strm,u.windowBits);if(s!==h.Z_OK)throw new Error(g[s]);this.header=new m,l.inflateGetHeader(this.strm,this.header)}function c(e,u){var s=new i(u);if(s.push(e,!0),s.err)throw s.msg||g[s.err];return s.result}i.prototype.push=function(e,u){var s,d,y,S,x,F,B=this.strm,L=this.options.chunkSize,I=this.options.dictionary,M=!1;if(this.ended)return!1;d=u===~~u?u:u===!0?h.Z_FINISH:h.Z_NO_FLUSH,typeof e=="string"?B.input=n.binstring2buf(e):b.call(e)==="[object ArrayBuffer]"?B.input=new Uint8Array(e):B.input=e,B.next_in=0,B.avail_in=B.input.length;do{if(B.avail_out===0&&(B.output=new o.Buf8(L),B.next_out=0,B.avail_out=L),(s=l.inflate(B,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&I&&(F=typeof I=="string"?n.string2buf(I):b.call(I)==="[object ArrayBuffer]"?new Uint8Array(I):I,s=l.inflateSetDictionary(this.strm,F)),s===h.Z_BUF_ERROR&&M===!0&&(s=h.Z_OK,M=!1),s!==h.Z_STREAM_END&&s!==h.Z_OK)return this.onEnd(s),!(this.ended=!0);B.next_out&&(B.avail_out!==0&&s!==h.Z_STREAM_END&&(B.avail_in!==0||d!==h.Z_FINISH&&d!==h.Z_SYNC_FLUSH)||(this.options.to==="string"?(y=n.utf8border(B.output,B.next_out),S=B.next_out-y,x=n.buf2string(B.output,y),B.next_out=S,B.avail_out=L-S,S&&o.arraySet(B.output,B.output,y,S,0),this.onData(x)):this.onData(o.shrinkBuf(B.output,B.next_out)))),B.avail_in===0&&B.avail_out===0&&(M=!0)}while((0<B.avail_in||B.avail_out===0)&&s!==h.Z_STREAM_END);return s===h.Z_STREAM_END&&(d=h.Z_FINISH),d===h.Z_FINISH?(s=l.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===h.Z_OK):d!==h.Z_SYNC_FLUSH||(this.onEnd(h.Z_OK),!(B.avail_out=0))},i.prototype.onData=function(e){this.chunks.push(e)},i.prototype.onEnd=function(e){e===h.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},v.Inflate=i,v.inflate=c,v.inflateRaw=function(e,u){return(u=u||{}).raw=!0,c(e,u)},v.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(p,O,v){"use strict";var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";v.assign=function(h){for(var g=Array.prototype.slice.call(arguments,1);g.length;){var w=g.shift();if(w){if(typeof w!="object")throw new TypeError(w+"must be non-object");for(var m in w)w.hasOwnProperty(m)&&(h[m]=w[m])}}return h},v.shrinkBuf=function(h,g){return h.length===g?h:h.subarray?h.subarray(0,g):(h.length=g,h)};var o={arraySet:function(h,g,w,m,b){if(g.subarray&&h.subarray)h.set(g.subarray(w,w+m),b);else for(var i=0;i<m;i++)h[b+i]=g[w+i]},flattenChunks:function(h){var g,w,m,b,i,c;for(g=m=0,w=h.length;g<w;g++)m+=h[g].length;for(c=new Uint8Array(m),g=b=0,w=h.length;g<w;g++)i=h[g],c.set(i,b),b+=i.length;return c}},n={arraySet:function(h,g,w,m,b){for(var i=0;i<m;i++)h[b+i]=g[w+i]},flattenChunks:function(h){return[].concat.apply([],h)}};v.setTyped=function(h){h?(v.Buf8=Uint8Array,v.Buf16=Uint16Array,v.Buf32=Int32Array,v.assign(v,o)):(v.Buf8=Array,v.Buf16=Array,v.Buf32=Array,v.assign(v,n))},v.setTyped(l)},{}],42:[function(p,O,v){"use strict";var l=p("./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 h=new l.Buf8(256),g=0;g<256;g++)h[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;function w(m,b){if(b<65537&&(m.subarray&&n||!m.subarray&&o))return String.fromCharCode.apply(null,l.shrinkBuf(m,b));for(var i="",c=0;c<b;c++)i+=String.fromCharCode(m[c]);return i}h[254]=h[254]=1,v.string2buf=function(m){var b,i,c,e,u,s=m.length,d=0;for(e=0;e<s;e++)(64512&(i=m.charCodeAt(e)))==55296&&e+1<s&&(64512&(c=m.charCodeAt(e+1)))==56320&&(i=65536+(i-55296<<10)+(c-56320),e++),d+=i<128?1:i<2048?2:i<65536?3:4;for(b=new l.Buf8(d),e=u=0;u<d;e++)(64512&(i=m.charCodeAt(e)))==55296&&e+1<s&&(64512&(c=m.charCodeAt(e+1)))==56320&&(i=65536+(i-55296<<10)+(c-56320),e++),i<128?b[u++]=i:(i<2048?b[u++]=192|i>>>6:(i<65536?b[u++]=224|i>>>12:(b[u++]=240|i>>>18,b[u++]=128|i>>>12&63),b[u++]=128|i>>>6&63),b[u++]=128|63&i);return b},v.buf2binstring=function(m){return w(m,m.length)},v.binstring2buf=function(m){for(var b=new l.Buf8(m.length),i=0,c=b.length;i<c;i++)b[i]=m.charCodeAt(i);return b},v.buf2string=function(m,b){var i,c,e,u,s=b||m.length,d=new Array(2*s);for(i=c=0;i<s;)if((e=m[i++])<128)d[c++]=e;else if(4<(u=h[e]))d[c++]=65533,i+=u-1;else{for(e&=u===2?31:u===3?15:7;1<u&&i<s;)e=e<<6|63&m[i++],u--;1<u?d[c++]=65533:e<65536?d[c++]=e:(e-=65536,d[c++]=55296|e>>10&1023,d[c++]=56320|1023&e)}return w(d,c)},v.utf8border=function(m,b){var i;for((b=b||m.length)>m.length&&(b=m.length),i=b-1;0<=i&&(192&m[i])==128;)i--;return i<0||i===0?b:i+h[m[i]]>b?i:b}},{"./common":41}],43:[function(p,O,v){"use strict";O.exports=function(l,o,n,h){for(var g=65535&l|0,w=l>>>16&65535|0,m=0;n!==0;){for(n-=m=2e3<n?2e3:n;w=w+(g=g+o[h++]|0)|0,--m;);g%=65521,w%=65521}return g|w<<16|0}},{}],44:[function(p,O,v){"use strict";O.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(p,O,v){"use strict";var l=function(){for(var o,n=[],h=0;h<256;h++){o=h;for(var g=0;g<8;g++)o=1&o?3988292384^o>>>1:o>>>1;n[h]=o}return n}();O.exports=function(o,n,h,g){var w=l,m=g+h;o^=-1;for(var b=g;b<m;b++)o=o>>>8^w[255&(o^n[b])];return-1^o}},{}],46:[function(p,O,v){"use strict";var l,o=p("../utils/common"),n=p("./trees"),h=p("./adler32"),g=p("./crc32"),w=p("./messages"),m=0,b=4,i=0,c=-2,e=-1,u=4,s=2,d=8,y=9,S=286,x=30,F=19,B=2*S+1,L=15,I=3,M=258,V=M+I+1,_=42,R=113,r=1,D=2,J=3,P=4;function $(t,T){return t.msg=w[T],T}function j(t){return(t<<1)-(4<t?9:0)}function q(t){for(var T=t.length;0<=--T;)t[T]=0}function E(t){var T=t.state,A=T.pending;A>t.avail_out&&(A=t.avail_out),A!==0&&(o.arraySet(t.output,T.pending_buf,T.pending_out,A,t.next_out),t.next_out+=A,T.pending_out+=A,t.total_out+=A,t.avail_out-=A,T.pending-=A,T.pending===0&&(T.pending_out=0))}function C(t,T){n._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,T),t.block_start=t.strstart,E(t.strm)}function X(t,T){t.pending_buf[t.pending++]=T}function G(t,T){t.pending_buf[t.pending++]=T>>>8&255,t.pending_buf[t.pending++]=255&T}function H(t,T){var A,f,a=t.max_chain_length,k=t.strstart,N=t.prev_length,U=t.nice_match,z=t.strstart>t.w_size-V?t.strstart-(t.w_size-V):0,Z=t.window,K=t.w_mask,W=t.prev,Y=t.strstart+M,et=Z[k+N-1],tt=Z[k+N];t.prev_length>=t.good_match&&(a>>=2),U>t.lookahead&&(U=t.lookahead);do if(Z[(A=T)+N]===tt&&Z[A+N-1]===et&&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<Y);if(f=M-(Y-k),k=Y-M,N<f){if(t.match_start=T,U<=(N=f))break;et=Z[k+N-1],tt=Z[k+N]}}while((T=W[T&K])>z&&--a!=0);return N<=t.lookahead?N:t.lookahead}function nt(t){var T,A,f,a,k,N,U,z,Z,K,W=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=W+(W-V)){for(o.arraySet(t.window,t.window,W,W,0),t.match_start-=W,t.strstart-=W,t.block_start-=W,T=A=t.hash_size;f=t.head[--T],t.head[T]=W<=f?f-W:0,--A;);for(T=A=W;f=t.prev[--T],t.prev[T]=W<=f?f-W:0,--A;);a+=W}if(t.strm.avail_in===0)break;if(N=t.strm,U=t.window,z=t.strstart+t.lookahead,Z=a,K=void 0,K=N.avail_in,Z<K&&(K=Z),A=K===0?0:(N.avail_in-=K,o.arraySet(U,N.input,N.next_in,K,z),N.state.wrap===1?N.adler=h(N.adler,U,K,z):N.state.wrap===2&&(N.adler=g(N.adler,U,K,z)),N.next_in+=K,N.total_in+=K,K),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<V&&t.strm.avail_in!==0)}function ot(t,T){for(var A,f;;){if(t.lookahead<V){if(nt(t),t.lookahead<V&&T===m)return r;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-V&&(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 r}return t.insert=t.strstart<I-1?t.strstart:I-1,T===b?(C(t,!0),t.strm.avail_out===0?J:P):t.last_lit&&(C(t,!1),t.strm.avail_out===0)?r:D}function Q(t,T){for(var A,f,a;;){if(t.lookahead<V){if(nt(t),t.lookahead<V&&T===m)return r;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-V&&(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(a=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<=a&&(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 r}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 r}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,T===b?(C(t,!0),t.strm.avail_out===0?J:P):t.last_lit&&(C(t,!1),t.strm.avail_out===0)?r:D}function rt(t,T,A,f,a){this.good_length=t,this.max_lazy=T,this.nice_length=A,this.max_chain=f,this.func=a}function at(){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*B),this.dyn_dtree=new o.Buf16(2*(2*x+1)),this.bl_tree=new o.Buf16(2*(2*F+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 T;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=s,(T=t.state).pending=0,T.pending_out=0,T.wrap<0&&(T.wrap=-T.wrap),T.status=T.wrap?_:R,t.adler=T.wrap===2?0:1,T.last_flush=m,n._tr_init(T),i):$(t,c)}function lt(t){var T=it(t);return T===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),T}function ut(t,T,A,f,a,k){if(!t)return c;var N=1;if(T===e&&(T=6),f<0?(N=0,f=-f):15<f&&(N=2,f-=16),a<1||y<a||A!==d||f<8||15<f||T<0||9<T||k<0||u<k)return $(t,c);f===8&&(f=9);var U=new at;return(t.state=U).strm=t,U.wrap=N,U.gzhead=null,U.w_bits=f,U.w_size=1<<U.w_bits,U.w_mask=U.w_size-1,U.hash_bits=a+7,U.hash_size=1<<U.hash_bits,U.hash_mask=U.hash_size-1,U.hash_shift=~~((U.hash_bits+I-1)/I),U.window=new o.Buf8(2*U.w_size),U.head=new o.Buf16(U.hash_size),U.prev=new o.Buf16(U.w_size),U.lit_bufsize=1<<a+6,U.pending_buf_size=4*U.lit_bufsize,U.pending_buf=new o.Buf8(U.pending_buf_size),U.d_buf=1*U.lit_bufsize,U.l_buf=3*U.lit_bufsize,U.level=T,U.strategy=k,U.method=A,lt(t)}l=[new rt(0,0,0,0,function(t,T){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&&T===m)return r;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-V&&(C(t,!1),t.strm.avail_out===0))return r}return t.insert=0,T===b?(C(t,!0),t.strm.avail_out===0?J:P):(t.strstart>t.block_start&&(C(t,!1),t.strm.avail_out),r)}),new rt(4,4,8,4,ot),new rt(4,5,16,8,ot),new rt(4,6,32,32,ot),new rt(4,4,16,16,Q),new rt(8,16,32,32,Q),new rt(8,16,128,128,Q),new rt(8,32,128,256,Q),new rt(32,128,258,1024,Q),new rt(32,258,258,4096,Q)],v.deflateInit=function(t,T){return ut(t,T,d,15,8,0)},v.deflateInit2=ut,v.deflateReset=lt,v.deflateResetKeep=it,v.deflateSetHeader=function(t,T){return t&&t.state?t.state.wrap!==2?c:(t.state.gzhead=T,i):c},v.deflate=function(t,T){var A,f,a,k;if(!t||!t.state||5<T||T<0)return t?$(t,c):c;if(f=t.state,!t.output||!t.input&&t.avail_in!==0||f.status===666&&T!==b)return $(t,t.avail_out===0?-5:c);if(f.strm=t,A=f.last_flush,f.last_flush=T,f.status===_)if(f.wrap===2)t.adler=0,X(f,31),X(f,139),X(f,8),f.gzhead?(X(f,(f.gzhead.text?1:0)+(f.gzhead.hcrc?2:0)+(f.gzhead.extra?4:0)+(f.gzhead.name?8:0)+(f.gzhead.comment?16:0)),X(f,255&f.gzhead.time),X(f,f.gzhead.time>>8&255),X(f,f.gzhead.time>>16&255),X(f,f.gzhead.time>>24&255),X(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),X(f,255&f.gzhead.os),f.gzhead.extra&&f.gzhead.extra.length&&(X(f,255&f.gzhead.extra.length),X(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(t.adler=g(t.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=69):(X(f,0),X(f,0),X(f,0),X(f,0),X(f,0),X(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),X(f,3),f.status=R);else{var N=d+(f.w_bits-8<<4)<<8;N|=(2<=f.strategy||f.level<2?0:f.level<6?1:f.level===6?2:3)<<6,f.strstart!==0&&(N|=32),N+=31-N%31,f.status=R,G(f,N),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(a=f.pending;f.gzindex<(65535&f.gzhead.extra.length)&&(f.pending!==f.pending_buf_size||(f.gzhead.hcrc&&f.pending>a&&(t.adler=g(t.adler,f.pending_buf,f.pending-a,a)),E(t),a=f.pending,f.pending!==f.pending_buf_size));)X(f,255&f.gzhead.extra[f.gzindex]),f.gzindex++;f.gzhead.hcrc&&f.pending>a&&(t.adler=g(t.adler,f.pending_buf,f.pending-a,a)),f.gzindex===f.gzhead.extra.length&&(f.gzindex=0,f.status=73)}else f.status=73;if(f.status===73)if(f.gzhead.name){a=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>a&&(t.adler=g(t.adler,f.pending_buf,f.pending-a,a)),E(t),a=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,X(f,k)}while(k!==0);f.gzhead.hcrc&&f.pending>a&&(t.adler=g(t.adler,f.pending_buf,f.pending-a,a)),k===0&&(f.gzindex=0,f.status=91)}else f.status=91;if(f.status===91)if(f.gzhead.comment){a=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>a&&(t.adler=g(t.adler,f.pending_buf,f.pending-a,a)),E(t),a=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,X(f,k)}while(k!==0);f.gzhead.hcrc&&f.pending>a&&(t.adler=g(t.adler,f.pending_buf,f.pending-a,a)),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&&(X(f,255&t.adler),X(f,t.adler>>8&255),t.adler=0,f.status=R)):f.status=R),f.pending!==0){if(E(t),t.avail_out===0)return f.last_flush=-1,i}else if(t.avail_in===0&&j(T)<=j(A)&&T!==b)return $(t,-5);if(f.status===666&&t.avail_in!==0)return $(t,-5);if(t.avail_in!==0||f.lookahead!==0||T!==m&&f.status!==666){var U=f.strategy===2?function(z,Z){for(var K;;){if(z.lookahead===0&&(nt(z),z.lookahead===0)){if(Z===m)return r;break}if(z.match_length=0,K=n._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,K&&(C(z,!1),z.strm.avail_out===0))return r}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)?r:D}(f,T):f.strategy===3?function(z,Z){for(var K,W,Y,et,tt=z.window;;){if(z.lookahead<=M){if(nt(z),z.lookahead<=M&&Z===m)return r;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=I&&0<z.strstart&&(W=tt[Y=z.strstart-1])===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]){et=z.strstart+M;do;while(W===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]&&W===tt[++Y]&&Y<et);z.match_length=M-(et-Y),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=I?(K=n._tr_tally(z,1,z.match_length-I),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(K=n._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),K&&(C(z,!1),z.strm.avail_out===0))return r}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)?r:D}(f,T):l[f.level].func(f,T);if(U!==J&&U!==P||(f.status=666),U===r||U===J)return t.avail_out===0&&(f.last_flush=-1),i;if(U===D&&(T===1?n._tr_align(f):T!==5&&(n._tr_stored_block(f,0,0,!1),T===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 T!==b?i:f.wrap<=0?1:(f.wrap===2?(X(f,255&t.adler),X(f,t.adler>>8&255),X(f,t.adler>>16&255),X(f,t.adler>>24&255),X(f,255&t.total_in),X(f,t.total_in>>8&255),X(f,t.total_in>>16&255),X(f,t.total_in>>24&255)):(G(f,t.adler>>>16),G(f,65535&t.adler)),E(t),0<f.wrap&&(f.wrap=-f.wrap),f.pending!==0?i:1)},v.deflateEnd=function(t){var T;return t&&t.state?(T=t.state.status)!==_&&T!==69&&T!==73&&T!==91&&T!==103&&T!==R&&T!==666?$(t,c):(t.state=null,T===R?$(t,-3):i):c},v.deflateSetDictionary=function(t,T){var A,f,a,k,N,U,z,Z,K=T.length;if(!t||!t.state||(k=(A=t.state).wrap)===2||k===1&&A.status!==_||A.lookahead)return c;for(k===1&&(t.adler=h(t.adler,T,K,0)),A.wrap=0,K>=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,T,K-A.w_size,A.w_size,0),T=Z,K=A.w_size),N=t.avail_in,U=t.next_in,z=t.input,t.avail_in=K,t.next_in=0,t.input=T,nt(A);A.lookahead>=I;){for(f=A.strstart,a=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++,--a;);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=U,t.input=z,t.avail_in=N,A.wrap=k,i},v.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(p,O,v){"use strict";O.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(p,O,v){"use strict";O.exports=function(l,o){var n,h,g,w,m,b,i,c,e,u,s,d,y,S,x,F,B,L,I,M,V,_,R,r,D;n=l.state,h=l.next_in,r=l.input,g=h+(l.avail_in-5),w=l.next_out,D=l.output,m=w-(o-l.avail_out),b=w+(l.avail_out-257),i=n.dmax,c=n.wsize,e=n.whave,u=n.wnext,s=n.window,d=n.hold,y=n.bits,S=n.lencode,x=n.distcode,F=(1<<n.lenbits)-1,B=(1<<n.distbits)-1;t:do{y<15&&(d+=r[h++]<<y,y+=8,d+=r[h++]<<y,y+=8),L=S[d&F];r:for(;;){if(d>>>=I=L>>>24,y-=I,(I=L>>>16&255)===0)D[w++]=65535&L;else{if(!(16&I)){if(!(64&I)){L=S[(65535&L)+(d&(1<<I)-1)];continue r}if(32&I){n.mode=12;break t}l.msg="invalid literal/length code",n.mode=30;break t}M=65535&L,(I&=15)&&(y<I&&(d+=r[h++]<<y,y+=8),M+=d&(1<<I)-1,d>>>=I,y-=I),y<15&&(d+=r[h++]<<y,y+=8,d+=r[h++]<<y,y+=8),L=x[d&B];e: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 e}l.msg="invalid distance code",n.mode=30;break t}if(V=65535&L,y<(I&=15)&&(d+=r[h++]<<y,(y+=8)<I&&(d+=r[h++]<<y,y+=8)),i<(V+=d&(1<<I)-1)){l.msg="invalid distance too far back",n.mode=30;break t}if(d>>>=I,y-=I,(I=w-m)<V){if(e<(I=V-I)&&n.sane){l.msg="invalid distance too far back",n.mode=30;break t}if(R=s,(_=0)===u){if(_+=c-I,I<M){for(M-=I;D[w++]=s[_++],--I;);_=w-V,R=D}}else if(u<I){if(_+=c+u-I,(I-=u)<M){for(M-=I;D[w++]=s[_++],--I;);if(_=0,u<M){for(M-=I=u;D[w++]=s[_++],--I;);_=w-V,R=D}}}else if(_+=u-I,I<M){for(M-=I;D[w++]=s[_++],--I;);_=w-V,R=D}for(;2<M;)D[w++]=R[_++],D[w++]=R[_++],D[w++]=R[_++],M-=3;M&&(D[w++]=R[_++],1<M&&(D[w++]=R[_++]))}else{for(_=w-V;D[w++]=D[_++],D[w++]=D[_++],D[w++]=D[_++],2<(M-=3););M&&(D[w++]=D[_++],1<M&&(D[w++]=D[_++]))}break}}break}}while(h<g&&w<b);h-=M=y>>3,d&=(1<<(y-=M<<3))-1,l.next_in=h,l.next_out=w,l.avail_in=h<g?g-h+5:5-(h-g),l.avail_out=w<b?b-w+257:257-(w-b),n.hold=d,n.bits=y}},{}],49:[function(p,O,v){"use strict";var l=p("../utils/common"),o=p("./adler32"),n=p("./crc32"),h=p("./inffast"),g=p("./inftrees"),w=1,m=2,b=0,i=-2,c=1,e=852,u=592;function s(_){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 R;return _&&_.state?(R=_.state,_.total_in=_.total_out=R.total=0,_.msg="",R.wrap&&(_.adler=1&R.wrap),R.mode=c,R.last=0,R.havedict=0,R.dmax=32768,R.head=null,R.hold=0,R.bits=0,R.lencode=R.lendyn=new l.Buf32(e),R.distcode=R.distdyn=new l.Buf32(u),R.sane=1,R.back=-1,b):i}function S(_){var R;return _&&_.state?((R=_.state).wsize=0,R.whave=0,R.wnext=0,y(_)):i}function x(_,R){var r,D;return _&&_.state?(D=_.state,R<0?(r=0,R=-R):(r=1+(R>>4),R<48&&(R&=15)),R&&(R<8||15<R)?i:(D.window!==null&&D.wbits!==R&&(D.window=null),D.wrap=r,D.wbits=R,S(_))):i}function F(_,R){var r,D;return _?(D=new d,(_.state=D).window=null,(r=x(_,R))!==b&&(_.state=null),r):i}var B,L,I=!0;function M(_){if(I){var R;for(B=new l.Buf32(512),L=new l.Buf32(32),R=0;R<144;)_.lens[R++]=8;for(;R<256;)_.lens[R++]=9;for(;R<280;)_.lens[R++]=7;for(;R<288;)_.lens[R++]=8;for(g(w,_.lens,0,288,B,0,_.work,{bits:9}),R=0;R<32;)_.lens[R++]=5;g(m,_.lens,0,32,L,0,_.work,{bits:5}),I=!1}_.lencode=B,_.lenbits=9,_.distcode=L,_.distbits=5}function V(_,R,r,D){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)),D>=P.wsize?(l.arraySet(P.window,R,r-P.wsize,P.wsize,0),P.wnext=0,P.whave=P.wsize):(D<(J=P.wsize-P.wnext)&&(J=D),l.arraySet(P.window,R,r-D,J,P.wnext),(D-=J)?(l.arraySet(P.window,R,r-D,D,0),P.wnext=D,P.whave=P.wsize):(P.wnext+=J,P.wnext===P.wsize&&(P.wnext=0),P.whave<P.wsize&&(P.whave+=J))),0}v.inflateReset=S,v.inflateReset2=x,v.inflateResetKeep=y,v.inflateInit=function(_){return F(_,15)},v.inflateInit2=F,v.inflate=function(_,R){var r,D,J,P,$,j,q,E,C,X,G,H,nt,ot,Q,rt,at,it,lt,ut,t,T,A,f,a=0,k=new l.Buf8(4),N=[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;(r=_.state).mode===12&&(r.mode=13),$=_.next_out,J=_.output,q=_.avail_out,P=_.next_in,D=_.input,j=_.avail_in,E=r.hold,C=r.bits,X=j,G=q,T=b;t:for(;;)switch(r.mode){case c:if(r.wrap===0){r.mode=13;break}for(;C<16;){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}if(2&r.wrap&&E===35615){k[r.check=0]=255&E,k[1]=E>>>8&255,r.check=n(r.check,k,2,0),C=E=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&E)<<8)+(E>>8))%31){_.msg="incorrect header check",r.mode=30;break}if((15&E)!=8){_.msg="unknown compression method",r.mode=30;break}if(C-=4,t=8+(15&(E>>>=4)),r.wbits===0)r.wbits=t;else if(t>r.wbits){_.msg="invalid window size",r.mode=30;break}r.dmax=1<<t,_.adler=r.check=1,r.mode=512&E?10:12,C=E=0;break;case 2:for(;C<16;){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}if(r.flags=E,(255&r.flags)!=8){_.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){_.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=E>>8&1),512&r.flags&&(k[0]=255&E,k[1]=E>>>8&255,r.check=n(r.check,k,2,0)),C=E=0,r.mode=3;case 3:for(;C<32;){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}r.head&&(r.head.time=E),512&r.flags&&(k[0]=255&E,k[1]=E>>>8&255,k[2]=E>>>16&255,k[3]=E>>>24&255,r.check=n(r.check,k,4,0)),C=E=0,r.mode=4;case 4:for(;C<16;){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}r.head&&(r.head.xflags=255&E,r.head.os=E>>8),512&r.flags&&(k[0]=255&E,k[1]=E>>>8&255,r.check=n(r.check,k,2,0)),C=E=0,r.mode=5;case 5:if(1024&r.flags){for(;C<16;){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}r.length=E,r.head&&(r.head.extra_len=E),512&r.flags&&(k[0]=255&E,k[1]=E>>>8&255,r.check=n(r.check,k,2,0)),C=E=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(j<(H=r.length)&&(H=j),H&&(r.head&&(t=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),l.arraySet(r.head.extra,D,P,H,t)),512&r.flags&&(r.check=n(r.check,D,H,P)),j-=H,P+=H,r.length-=H),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(j===0)break t;for(H=0;t=D[P+H++],r.head&&t&&r.length<65536&&(r.head.name+=String.fromCharCode(t)),t&&H<j;);if(512&r.flags&&(r.check=n(r.check,D,H,P)),j-=H,P+=H,t)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(j===0)break t;for(H=0;t=D[P+H++],r.head&&t&&r.length<65536&&(r.head.comment+=String.fromCharCode(t)),t&&H<j;);if(512&r.flags&&(r.check=n(r.check,D,H,P)),j-=H,P+=H,t)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;C<16;){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}if(E!==(65535&r.check)){_.msg="header crc mismatch",r.mode=30;break}C=E=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),_.adler=r.check=0,r.mode=12;break;case 10:for(;C<32;){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}_.adler=r.check=s(E),C=E=0,r.mode=11;case 11:if(r.havedict===0)return _.next_out=$,_.avail_out=q,_.next_in=P,_.avail_in=j,r.hold=E,r.bits=C,2;_.adler=r.check=1,r.mode=12;case 12:if(R===5||R===6)break t;case 13:if(r.last){E>>>=7&C,C-=7&C,r.mode=27;break}for(;C<3;){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}switch(r.last=1&E,C-=1,3&(E>>>=1)){case 0:r.mode=14;break;case 1:if(M(r),r.mode=20,R!==6)break;E>>>=2,C-=2;break t;case 2:r.mode=17;break;case 3:_.msg="invalid block type",r.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+=D[P++]<<C,C+=8}if((65535&E)!=(E>>>16^65535)){_.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&E,C=E=0,r.mode=15,R===6)break t;case 15:r.mode=16;case 16:if(H=r.length){if(j<H&&(H=j),q<H&&(H=q),H===0)break t;l.arraySet(J,D,P,H,$),j-=H,P+=H,q-=H,$+=H,r.length-=H;break}r.mode=12;break;case 17:for(;C<14;){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}if(r.nlen=257+(31&E),E>>>=5,C-=5,r.ndist=1+(31&E),E>>>=5,C-=5,r.ncode=4+(15&E),E>>>=4,C-=4,286<r.nlen||30<r.ndist){_.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;C<3;){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}r.lens[N[r.have++]]=7&E,E>>>=3,C-=3}for(;r.have<19;)r.lens[N[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,A={bits:r.lenbits},T=g(0,r.lens,0,19,r.lencode,0,r.work,A),r.lenbits=A.bits,T){_.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;rt=(a=r.lencode[E&(1<<r.lenbits)-1])>>>16&255,at=65535&a,!((Q=a>>>24)<=C);){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}if(at<16)E>>>=Q,C-=Q,r.lens[r.have++]=at;else{if(at===16){for(f=Q+2;C<f;){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}if(E>>>=Q,C-=Q,r.have===0){_.msg="invalid bit length repeat",r.mode=30;break}t=r.lens[r.have-1],H=3+(3&E),E>>>=2,C-=2}else if(at===17){for(f=Q+3;C<f;){if(j===0)break t;j--,E+=D[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+=D[P++]<<C,C+=8}C-=Q,t=0,H=11+(127&(E>>>=Q)),E>>>=7,C-=7}if(r.have+H>r.nlen+r.ndist){_.msg="invalid bit length repeat",r.mode=30;break}for(;H--;)r.lens[r.have++]=t}}if(r.mode===30)break;if(r.lens[256]===0){_.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,A={bits:r.lenbits},T=g(w,r.lens,0,r.nlen,r.lencode,0,r.work,A),r.lenbits=A.bits,T){_.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,A={bits:r.distbits},T=g(m,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,A),r.distbits=A.bits,T){_.msg="invalid distances set",r.mode=30;break}if(r.mode=20,R===6)break t;case 20:r.mode=21;case 21:if(6<=j&&258<=q){_.next_out=$,_.avail_out=q,_.next_in=P,_.avail_in=j,r.hold=E,r.bits=C,h(_,G),$=_.next_out,J=_.output,q=_.avail_out,P=_.next_in,D=_.input,j=_.avail_in,E=r.hold,C=r.bits,r.mode===12&&(r.back=-1);break}for(r.back=0;rt=(a=r.lencode[E&(1<<r.lenbits)-1])>>>16&255,at=65535&a,!((Q=a>>>24)<=C);){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}if(rt&&!(240&rt)){for(it=Q,lt=rt,ut=at;rt=(a=r.lencode[ut+((E&(1<<it+lt)-1)>>it)])>>>16&255,at=65535&a,!(it+(Q=a>>>24)<=C);){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}E>>>=it,C-=it,r.back+=it}if(E>>>=Q,C-=Q,r.back+=Q,r.length=at,rt===0){r.mode=26;break}if(32&rt){r.back=-1,r.mode=12;break}if(64&rt){_.msg="invalid literal/length code",r.mode=30;break}r.extra=15&rt,r.mode=22;case 22:if(r.extra){for(f=r.extra;C<f;){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}r.length+=E&(1<<r.extra)-1,E>>>=r.extra,C-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;rt=(a=r.distcode[E&(1<<r.distbits)-1])>>>16&255,at=65535&a,!((Q=a>>>24)<=C);){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}if(!(240&rt)){for(it=Q,lt=rt,ut=at;rt=(a=r.distcode[ut+((E&(1<<it+lt)-1)>>it)])>>>16&255,at=65535&a,!(it+(Q=a>>>24)<=C);){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}E>>>=it,C-=it,r.back+=it}if(E>>>=Q,C-=Q,r.back+=Q,64&rt){_.msg="invalid distance code",r.mode=30;break}r.offset=at,r.extra=15&rt,r.mode=24;case 24:if(r.extra){for(f=r.extra;C<f;){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}r.offset+=E&(1<<r.extra)-1,E>>>=r.extra,C-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){_.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(q===0)break t;if(H=G-q,r.offset>H){if((H=r.offset-H)>r.whave&&r.sane){_.msg="invalid distance too far back",r.mode=30;break}nt=H>r.wnext?(H-=r.wnext,r.wsize-H):r.wnext-H,H>r.length&&(H=r.length),ot=r.window}else ot=J,nt=$-r.offset,H=r.length;for(q<H&&(H=q),q-=H,r.length-=H;J[$++]=ot[nt++],--H;);r.length===0&&(r.mode=21);break;case 26:if(q===0)break t;J[$++]=r.length,q--,r.mode=21;break;case 27:if(r.wrap){for(;C<32;){if(j===0)break t;j--,E|=D[P++]<<C,C+=8}if(G-=q,_.total_out+=G,r.total+=G,G&&(_.adler=r.check=r.flags?n(r.check,J,G,$-G):o(r.check,J,G,$-G)),G=q,(r.flags?E:s(E))!==r.check){_.msg="incorrect data check",r.mode=30;break}C=E=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;C<32;){if(j===0)break t;j--,E+=D[P++]<<C,C+=8}if(E!==(4294967295&r.total)){_.msg="incorrect length check",r.mode=30;break}C=E=0}r.mode=29;case 29:T=1;break t;case 30:T=-3;break t;case 31:return-4;case 32:default:return i}return _.next_out=$,_.avail_out=q,_.next_in=P,_.avail_in=j,r.hold=E,r.bits=C,(r.wsize||G!==_.avail_out&&r.mode<30&&(r.mode<27||R!==4))&&V(_,_.output,_.next_out,G-_.avail_out)?(r.mode=31,-4):(X-=_.avail_in,G-=_.avail_out,_.total_in+=X,_.total_out+=G,r.total+=G,r.wrap&&G&&(_.adler=r.check=r.flags?n(r.check,J,G,_.next_out-G):o(r.check,J,G,_.next_out-G)),_.data_type=r.bits+(r.last?64:0)+(r.mode===12?128:0)+(r.mode===20||r.mode===15?256:0),(X==0&&G===0||R===4)&&T===b&&(T=-5),T)},v.inflateEnd=function(_){if(!_||!_.state)return i;var R=_.state;return R.window&&(R.window=null),_.state=null,b},v.inflateGetHeader=function(_,R){var r;return _&&_.state&&2&(r=_.state).wrap?((r.head=R).done=!1,b):i},v.inflateSetDictionary=function(_,R){var r,D=R.length;return _&&_.state?(r=_.state).wrap!==0&&r.mode!==11?i:r.mode===11&&o(1,R,D,0)!==r.check?-3:V(_,R,D,D)?(r.mode=31,-4):(r.havedict=1,b):i},v.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(p,O,v){"use strict";var l=p("../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],h=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],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];O.exports=function(w,m,b,i,c,e,u,s){var d,y,S,x,F,B,L,I,M,V=s.bits,_=0,R=0,r=0,D=0,J=0,P=0,$=0,j=0,q=0,E=0,C=null,X=0,G=new l.Buf16(16),H=new l.Buf16(16),nt=null,ot=0;for(_=0;_<=15;_++)G[_]=0;for(R=0;R<i;R++)G[m[b+R]]++;for(J=V,D=15;1<=D&&G[D]===0;D--);if(D<J&&(J=D),D===0)return c[e++]=20971520,c[e++]=20971520,s.bits=1,0;for(r=1;r<D&&G[r]===0;r++);for(J<r&&(J=r),_=j=1;_<=15;_++)if(j<<=1,(j-=G[_])<0)return-1;if(0<j&&(w===0||D!==1))return-1;for(H[1]=0,_=1;_<15;_++)H[_+1]=H[_]+G[_];for(R=0;R<i;R++)m[b+R]!==0&&(u[H[m[b+R]]++]=R);if(B=w===0?(C=nt=u,19):w===1?(C=o,X-=257,nt=n,ot-=257,256):(C=h,nt=g,-1),_=r,F=e,$=R=E=0,S=-1,x=(q=1<<(P=J))-1,w===1&&852<q||w===2&&592<q)return 1;for(;;){for(L=_-$,M=u[R]<B?(I=0,u[R]):u[R]>B?(I=nt[ot+u[R]],C[X+u[R]]):(I=96,0),d=1<<_-$,r=y=1<<P;c[F+(E>>$)+(y-=d)]=L<<24|I<<16|M|0,y!==0;);for(d=1<<_-1;E&d;)d>>=1;if(d!==0?(E&=d-1,E+=d):E=0,R++,--G[_]==0){if(_===D)break;_=m[b+u[R]]}if(J<_&&(E&x)!==S){for($===0&&($=J),F+=r,j=1<<(P=_-$);P+$<D&&!((j-=G[P+$])<=0);)P++,j<<=1;if(q+=1<<P,w===1&&852<q||w===2&&592<q)return 1;c[S=E&x]=J<<24|P<<16|F-e|0}}return E!==0&&(c[F+E]=_-$<<24|64<<16|0),s.bits=J,0}},{"../utils/common":41}],51:[function(p,O,v){"use strict";O.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(p,O,v){"use strict";var l=p("../utils/common"),o=0,n=1;function h(a){for(var k=a.length;0<=--k;)a[k]=0}var g=0,w=29,m=256,b=m+1+w,i=30,c=19,e=2*b+1,u=15,s=16,d=7,y=256,S=16,x=17,F=18,B=[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],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],V=new Array(2*(b+2));h(V);var _=new Array(2*i);h(_);var R=new Array(512);h(R);var r=new Array(256);h(r);var D=new Array(w);h(D);var J,P,$,j=new Array(i);function q(a,k,N,U,z){this.static_tree=a,this.extra_bits=k,this.extra_base=N,this.elems=U,this.max_length=z,this.has_stree=a&&a.length}function E(a,k){this.dyn_tree=a,this.max_code=0,this.stat_desc=k}function C(a){return a<256?R[a]:R[256+(a>>>7)]}function X(a,k){a.pending_buf[a.pending++]=255&k,a.pending_buf[a.pending++]=k>>>8&255}function G(a,k,N){a.bi_valid>s-N?(a.bi_buf|=k<<a.bi_valid&65535,X(a,a.bi_buf),a.bi_buf=k>>s-a.bi_valid,a.bi_valid+=N-s):(a.bi_buf|=k<<a.bi_valid&65535,a.bi_valid+=N)}function H(a,k,N){G(a,N[2*k],N[2*k+1])}function nt(a,k){for(var N=0;N|=1&a,a>>>=1,N<<=1,0<--k;);return N>>>1}function ot(a,k,N){var U,z,Z=new Array(u+1),K=0;for(U=1;U<=u;U++)Z[U]=K=K+N[U-1]<<1;for(z=0;z<=k;z++){var W=a[2*z+1];W!==0&&(a[2*z]=nt(Z[W]++,W))}}function Q(a){var k;for(k=0;k<b;k++)a.dyn_ltree[2*k]=0;for(k=0;k<i;k++)a.dyn_dtree[2*k]=0;for(k=0;k<c;k++)a.bl_tree[2*k]=0;a.dyn_ltree[2*y]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function rt(a){8<a.bi_valid?X(a,a.bi_buf):0<a.bi_valid&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function at(a,k,N,U){var z=2*k,Z=2*N;return a[z]<a[Z]||a[z]===a[Z]&&U[k]<=U[N]}function it(a,k,N){for(var U=a.heap[N],z=N<<1;z<=a.heap_len&&(z<a.heap_len&&at(k,a.heap[z+1],a.heap[z],a.depth)&&z++,!at(k,U,a.heap[z],a.depth));)a.heap[N]=a.heap[z],N=z,z<<=1;a.heap[N]=U}function lt(a,k,N){var U,z,Z,K,W=0;if(a.last_lit!==0)for(;U=a.pending_buf[a.d_buf+2*W]<<8|a.pending_buf[a.d_buf+2*W+1],z=a.pending_buf[a.l_buf+W],W++,U===0?H(a,z,k):(H(a,(Z=r[z])+m+1,k),(K=B[Z])!==0&&G(a,z-=D[Z],K),H(a,Z=C(--U),N),(K=L[Z])!==0&&G(a,U-=j[Z],K)),W<a.last_lit;);H(a,y,k)}function ut(a,k){var N,U,z,Z=k.dyn_tree,K=k.stat_desc.static_tree,W=k.stat_desc.has_stree,Y=k.stat_desc.elems,et=-1;for(a.heap_len=0,a.heap_max=e,N=0;N<Y;N++)Z[2*N]!==0?(a.heap[++a.heap_len]=et=N,a.depth[N]=0):Z[2*N+1]=0;for(;a.heap_len<2;)Z[2*(z=a.heap[++a.heap_len]=et<2?++et:0)]=1,a.depth[z]=0,a.opt_len--,W&&(a.static_len-=K[2*z+1]);for(k.max_code=et,N=a.heap_len>>1;1<=N;N--)it(a,Z,N);for(z=Y;N=a.heap[1],a.heap[1]=a.heap[a.heap_len--],it(a,Z,1),U=a.heap[1],a.heap[--a.heap_max]=N,a.heap[--a.heap_max]=U,Z[2*z]=Z[2*N]+Z[2*U],a.depth[z]=(a.depth[N]>=a.depth[U]?a.depth[N]:a.depth[U])+1,Z[2*N+1]=Z[2*U+1]=z,a.heap[1]=z++,it(a,Z,1),2<=a.heap_len;);a.heap[--a.heap_max]=a.heap[1],function(tt,ht){var mt,ft,_t,st,vt,wt,ct=ht.dyn_tree,Ct=ht.max_code,Rt=ht.stat_desc.static_tree,Tt=ht.stat_desc.has_stree,Dt=ht.stat_desc.extra_bits,Et=ht.stat_desc.extra_base,gt=ht.stat_desc.max_length,yt=0;for(st=0;st<=u;st++)tt.bl_count[st]=0;for(ct[2*tt.heap[tt.heap_max]+1]=0,mt=tt.heap_max+1;mt<e;mt++)gt<(st=ct[2*ct[2*(ft=tt.heap[mt])+1]+1]+1)&&(st=gt,yt++),ct[2*ft+1]=st,Ct<ft||(tt.bl_count[st]++,vt=0,Et<=ft&&(vt=Dt[ft-Et]),wt=ct[2*ft],tt.opt_len+=wt*(st+vt),Tt&&(tt.static_len+=wt*(Rt[2*ft+1]+vt)));if(yt!==0){do{for(st=gt-1;tt.bl_count[st]===0;)st--;tt.bl_count[st]--,tt.bl_count[st+1]+=2,tt.bl_count[gt]--,yt-=2}while(0<yt);for(st=gt;st!==0;st--)for(ft=tt.bl_count[st];ft!==0;)Ct<(_t=tt.heap[--mt])||(ct[2*_t+1]!==st&&(tt.opt_len+=(st-ct[2*_t+1])*ct[2*_t],ct[2*_t+1]=st),ft--)}}(a,k),ot(Z,et,a.bl_count)}function t(a,k,N){var U,z,Z=-1,K=k[1],W=0,Y=7,et=4;for(K===0&&(Y=138,et=3),k[2*(N+1)+1]=65535,U=0;U<=N;U++)z=K,K=k[2*(U+1)+1],++W<Y&&z===K||(W<et?a.bl_tree[2*z]+=W:z!==0?(z!==Z&&a.bl_tree[2*z]++,a.bl_tree[2*S]++):W<=10?a.bl_tree[2*x]++:a.bl_tree[2*F]++,Z=z,et=(W=0)===K?(Y=138,3):z===K?(Y=6,3):(Y=7,4))}function T(a,k,N){var U,z,Z=-1,K=k[1],W=0,Y=7,et=4;for(K===0&&(Y=138,et=3),U=0;U<=N;U++)if(z=K,K=k[2*(U+1)+1],!(++W<Y&&z===K)){if(W<et)for(;H(a,z,a.bl_tree),--W!=0;);else z!==0?(z!==Z&&(H(a,z,a.bl_tree),W--),H(a,S,a.bl_tree),G(a,W-3,2)):W<=10?(H(a,x,a.bl_tree),G(a,W-3,3)):(H(a,F,a.bl_tree),G(a,W-11,7));Z=z,et=(W=0)===K?(Y=138,3):z===K?(Y=6,3):(Y=7,4)}}h(j);var A=!1;function f(a,k,N,U){G(a,(g<<1)+(U?1:0),3),function(z,Z,K,W){rt(z),W&&(X(z,K),X(z,~K)),l.arraySet(z.pending_buf,z.window,Z,K,z.pending),z.pending+=K}(a,k,N,!0)}v._tr_init=function(a){A||(function(){var k,N,U,z,Z,K=new Array(u+1);for(z=U=0;z<w-1;z++)for(D[z]=U,k=0;k<1<<B[z];k++)r[U++]=z;for(r[U-1]=z,z=Z=0;z<16;z++)for(j[z]=Z,k=0;k<1<<L[z];k++)R[Z++]=z;for(Z>>=7;z<i;z++)for(j[z]=Z<<7,k=0;k<1<<L[z]-7;k++)R[256+Z++]=z;for(N=0;N<=u;N++)K[N]=0;for(k=0;k<=143;)V[2*k+1]=8,k++,K[8]++;for(;k<=255;)V[2*k+1]=9,k++,K[9]++;for(;k<=279;)V[2*k+1]=7,k++,K[7]++;for(;k<=287;)V[2*k+1]=8,k++,K[8]++;for(ot(V,b+1,K),k=0;k<i;k++)_[2*k+1]=5,_[2*k]=nt(k,5);J=new q(V,B,m+1,b,u),P=new q(_,L,0,i,u),$=new q(new Array(0),I,0,c,d)}(),A=!0),a.l_desc=new E(a.dyn_ltree,J),a.d_desc=new E(a.dyn_dtree,P),a.bl_desc=new E(a.bl_tree,$),a.bi_buf=0,a.bi_valid=0,Q(a)},v._tr_stored_block=f,v._tr_flush_block=function(a,k,N,U){var z,Z,K=0;0<a.level?(a.strm.data_type===2&&(a.strm.data_type=function(W){var Y,et=4093624447;for(Y=0;Y<=31;Y++,et>>>=1)if(1&et&&W.dyn_ltree[2*Y]!==0)return o;if(W.dyn_ltree[18]!==0||W.dyn_ltree[20]!==0||W.dyn_ltree[26]!==0)return n;for(Y=32;Y<m;Y++)if(W.dyn_ltree[2*Y]!==0)return n;return o}(a)),ut(a,a.l_desc),ut(a,a.d_desc),K=function(W){var Y;for(t(W,W.dyn_ltree,W.l_desc.max_code),t(W,W.dyn_dtree,W.d_desc.max_code),ut(W,W.bl_desc),Y=c-1;3<=Y&&W.bl_tree[2*M[Y]+1]===0;Y--);return W.opt_len+=3*(Y+1)+5+5+4,Y}(a),z=a.opt_len+3+7>>>3,(Z=a.static_len+3+7>>>3)<=z&&(z=Z)):z=Z=N+5,N+4<=z&&k!==-1?f(a,k,N,U):a.strategy===4||Z===z?(G(a,2+(U?1:0),3),lt(a,V,_)):(G(a,4+(U?1:0),3),function(W,Y,et,tt){var ht;for(G(W,Y-257,5),G(W,et-1,5),G(W,tt-4,4),ht=0;ht<tt;ht++)G(W,W.bl_tree[2*M[ht]+1],3);T(W,W.dyn_ltree,Y-1),T(W,W.dyn_dtree,et-1)}(a,a.l_desc.max_code+1,a.d_desc.max_code+1,K+1),lt(a,a.dyn_ltree,a.dyn_dtree)),Q(a),U&&rt(a)},v._tr_tally=function(a,k,N){return a.pending_buf[a.d_buf+2*a.last_lit]=k>>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&k,a.pending_buf[a.l_buf+a.last_lit]=255&N,a.last_lit++,k===0?a.dyn_ltree[2*N]++:(a.matches++,k--,a.dyn_ltree[2*(r[N]+m+1)]++,a.dyn_dtree[2*C(k)]++),a.last_lit===a.lit_bufsize-1},v._tr_align=function(a){G(a,2,3),H(a,y,V),function(k){k.bi_valid===16?(X(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)}(a)}},{"../utils/common":41}],53:[function(p,O,v){"use strict";O.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(p,O,v){(function(l){(function(o,n){"use strict";if(!o.setImmediate){var h,g,w,m,b=1,i={},c=!1,e=o.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(o);u=u&&u.setTimeout?u:o,h={}.toString.call(o.process)==="[object process]"?function(S){__Process$.nextTick(function(){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}}()?(m="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",y,!1):o.attachEvent("onmessage",y),function(S){o.postMessage(m+S,"*")}):o.MessageChannel?((w=new MessageChannel).port1.onmessage=function(S){d(S.data)},function(S){w.port2.postMessage(S)}):e&&"onreadystatechange"in e.createElement("script")?(g=e.documentElement,function(S){var x=e.createElement("script");x.onreadystatechange=function(){d(S),x.onreadystatechange=null,g.removeChild(x),x=null},g.appendChild(x)}):function(S){setTimeout(d,0,S)},u.setImmediate=function(S){typeof S!="function"&&(S=new Function(""+S));for(var x=new Array(arguments.length-1),F=0;F<x.length;F++)x[F]=arguments[F+1];var B={callback:S,args:x};return i[b]=B,h(b),b++},u.clearImmediate=s}function s(S){delete i[S]}function d(S){if(c)setTimeout(d,0,S);else{var x=i[S];if(x){c=!0;try{(function(F){var B=F.callback,L=F.args;switch(L.length){case 0:B();break;case 1:B(L[0]);break;case 2:B(L[0],L[1]);break;case 3:B(L[0],L[1],L[2]);break;default:B.apply(n,L)}})(x)}finally{s(S),c=!1}}}}function y(S){S.source===o&&typeof S.data=="string"&&S.data.indexOf(m)===0&&d(+S.data.slice(m.length))}})(typeof self>"u"?l===void 0?this:l:self)}).call(this,typeof __global$<"u"?__global$:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})});var dt={};Zt(dt,{default:()=>Vt,defaults:()=>Ht,external:()=>Yt,loadAsync:()=>Kt,prototype:()=>Wt,support:()=>Mt,version:()=>Gt});var Bt=At(zt());pt(dt,At(zt()));var{prototype:Wt,support:Mt,defaults:Ht,version:Gt,loadAsync:Kt,external:Yt}=Bt,{default:Ot,...Xt}=Bt,Vt=Ot!==void 0?Ot:Xt;export{Vt as default,Ht as defaults,Yt as external,Kt as loadAsync,Wt as prototype,Mt as support,Gt as version};
/*! Bundled license information:
jszip/dist/jszip.min.js:
(*!
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
*)
*/
//# sourceMappingURL=jszip.mjs.map