import{c as vt}from"./_commonjsHelpers.b8add541.js";import{c as yt}from"./_commonjs-dynamic-modules.30ae7933.js";function It(ct,wt){for(var _=0;_N[w]})}}}return Object.freeze(Object.defineProperty(ct,Symbol.toStringTag,{value:"Module"}))}var xt={exports:{}};/*! JSZip v3.10.0 - A JavaScript class for generating and reading zip files (c) 2009-2016 Stuart Knightley Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/main/LICENSE */(function(ct,wt){(function(_){ct.exports=_()})(function(){return function _(N,w,h){function o(g,y){if(!w[g]){if(!N[g]){var p=typeof yt=="function"&&yt;if(!y&&p)return p(g,!0);if(n)return n(g,!0);var b=new Error("Cannot find module '"+g+"'");throw b.code="MODULE_NOT_FOUND",b}var i=w[g]={exports:{}};N[g][0].call(i.exports,function(d){var e=N[g][1][d];return o(e||d)},i,i.exports,_,N,w,h)}return w[g].exports}for(var n=typeof yt=="function"&&yt,u=0;u>2,i=(3&g)<<4|y>>4,d=1>6:64,e=2>4,y=(15&b)<<4|(i=n.indexOf(u.charAt(e++)))>>2,p=(3&i)<<6|(d=n.indexOf(u.charAt(e++))),c[l++]=g,i!==64&&(c[l++]=y),d!==64&&(c[l++]=p);return c}},{"./support":30,"./utils":32}],2:[function(_,N,w){var h=_("./external"),o=_("./stream/DataWorker"),n=_("./stream/Crc32Probe"),u=_("./stream/DataLengthProbe");function g(y,p,b,i,d){this.compressedSize=y,this.uncompressedSize=p,this.crc32=b,this.compression=i,this.compressedContent=d}g.prototype={getContentWorker:function(){var y=new o(h.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),p=this;return y.on("end",function(){if(this.streamInfo.data_length!==p.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new o(h.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},g.createWorkerFrom=function(y,p,b){return y.pipe(new n).pipe(new u("uncompressedSize")).pipe(p.compressWorker(b)).pipe(new u("compressedSize")).withStreamInfo("compression",p)},N.exports=g},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(_,N,w){var h=_("./stream/GenericWorker");w.STORE={magic:"\0\0",compressWorker:function(o){return new h("STORE compression")},uncompressWorker:function(){return new h("STORE decompression")}},w.DEFLATE=_("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(_,N,w){var h=_("./utils"),o=function(){for(var n,u=[],g=0;g<256;g++){n=g;for(var y=0;y<8;y++)n=1&n?3988292384^n>>>1:n>>>1;u[g]=n}return u}();N.exports=function(n,u){return n!==void 0&&n.length?h.getTypeOf(n)!=="string"?function(g,y,p,b){var i=o,d=b+p;g^=-1;for(var e=b;e>>8^i[255&(g^y[e])];return-1^g}(0|u,n,n.length,0):function(g,y,p,b){var i=o,d=b+p;g^=-1;for(var e=b;e>>8^i[255&(g^y.charCodeAt(e))];return-1^g}(0|u,n,n.length,0):0}},{"./utils":32}],5:[function(_,N,w){w.base64=!1,w.binary=!1,w.dir=!1,w.createFolders=!0,w.date=null,w.compression=null,w.compressionOptions=null,w.comment=null,w.unixPermissions=null,w.dosPermissions=null},{}],6:[function(_,N,w){var h=null;h=typeof Promise<"u"?Promise:_("lie"),N.exports={Promise:h}},{lie:37}],7:[function(_,N,w){var h=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=_("pako"),n=_("./utils"),u=_("./stream/GenericWorker"),g=h?"uint8array":"array";function y(p,b){u.call(this,"FlateWorker/"+p),this._pako=null,this._pakoAction=p,this._pakoOptions=b,this.meta={}}w.magic="\b\0",n.inherits(y,u),y.prototype.processChunk=function(p){this.meta=p.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(g,p.data),!1)},y.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var p=this;this._pako.onData=function(b){p.push({data:b,meta:p.meta})}},w.compressWorker=function(p){return new y("Deflate",p)},w.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(_,N,w){function h(i,d){var e,l="";for(e=0;e>>=8;return l}function o(i,d,e,l,a,c){var v,S,x=i.file,D=i.compression,O=c!==g.utf8encode,L=n.transformTo("string",c(x.name)),I=n.transformTo("string",g.utf8encode(x.name)),M=x.comment,V=n.transformTo("string",c(M)),m=n.transformTo("string",g.utf8encode(M)),B=I.length!==x.name.length,r=m.length!==M.length,T="",J="",P="",$=x.dir,j=x.date,q={crc32:0,compressedSize:0,uncompressedSize:0};d&&!e||(q.crc32=i.crc32,q.compressedSize=i.compressedSize,q.uncompressedSize=i.uncompressedSize);var E=0;d&&(E|=8),O||!B&&!r||(E|=2048);var C=0,X=0;$&&(C|=16),a==="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)),v=j.getUTCHours(),v<<=6,v|=j.getUTCMinutes(),v<<=5,v|=j.getUTCSeconds()/2,S=j.getUTCFullYear()-1980,S<<=4,S|=j.getUTCMonth()+1,S<<=5,S|=j.getUTCDate(),B&&(J=h(1,1)+h(y(L),4)+I,T+="up"+h(J.length,2)+J),r&&(P=h(1,1)+h(y(V),4)+m,T+="uc"+h(P.length,2)+P);var G="";return G+=` \0`,G+=h(E,2),G+=D.magic,G+=h(v,2),G+=h(S,2),G+=h(q.crc32,4),G+=h(q.compressedSize,4),G+=h(q.uncompressedSize,4),G+=h(L.length,2),G+=h(T.length,2),{fileRecord:p.LOCAL_FILE_HEADER+G+L+T,dirRecord:p.CENTRAL_FILE_HEADER+h(X,2)+G+h(V.length,2)+"\0\0\0\0"+h(C,4)+h(l,4)+L+T+V}}var n=_("../utils"),u=_("../stream/GenericWorker"),g=_("../utf8"),y=_("../crc32"),p=_("../signature");function b(i,d,e,l){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=e,this.encodeFileName=l,this.streamFiles=i,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(b,u),b.prototype.push=function(i){var d=i.meta.percent||0,e=this.entriesCount,l=this._sources.length;this.accumulate?this.contentBuffer.push(i):(this.bytesWritten+=i.data.length,u.prototype.push.call(this,{data:i.data,meta:{currentFile:this.currentFile,percent:e?(d+100*(e-l-1))/e:100}}))},b.prototype.openedSource=function(i){this.currentSourceOffset=this.bytesWritten,this.currentFile=i.file.name;var d=this.streamFiles&&!i.file.dir;if(d){var e=o(i,d,!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 d=this.streamFiles&&!i.file.dir,e=o(i,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(e.dirRecord),d)this.push({data:function(l){return p.DATA_DESCRIPTOR+h(l.crc32,4)+h(l.compressedSize,4)+h(l.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,d=0;d=this.index;u--)g=(g<<8)+this.byteAt(u);return this.index+=n,g},readString:function(n){return h.transformTo("string",this.readData(n))},readData:function(n){},lastIndexOfSignature:function(n){},readAndCheckSignature:function(n){},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))}},N.exports=o},{"../utils":32}],19:[function(_,N,w){var h=_("./Uint8ArrayReader");function o(n){h.call(this,n)}_("../utils").inherits(o,h),o.prototype.readData=function(n){this.checkOffset(n);var u=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},N.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(_,N,w){var h=_("./DataReader");function o(n){h.call(this,n)}_("../utils").inherits(o,h),o.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},o.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},o.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},o.prototype.readData=function(n){this.checkOffset(n);var u=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},N.exports=o},{"../utils":32,"./DataReader":18}],21:[function(_,N,w){var h=_("./ArrayReader");function o(n){h.call(this,n)}_("../utils").inherits(o,h),o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,u},N.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(_,N,w){var h=_("../utils"),o=_("../support"),n=_("./ArrayReader"),u=_("./StringReader"),g=_("./NodeBufferReader"),y=_("./Uint8ArrayReader");N.exports=function(p){var b=h.getTypeOf(p);return h.checkSupport(b),b!=="string"||o.uint8array?b==="nodebuffer"?new g(p):o.uint8array?new y(h.transformTo("uint8array",p)):new n(h.transformTo("array",p)):new u(p)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(_,N,w){w.LOCAL_FILE_HEADER="PK",w.CENTRAL_FILE_HEADER="PK",w.CENTRAL_DIRECTORY_END="PK",w.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",w.ZIP64_CENTRAL_DIRECTORY_END="PK",w.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(_,N,w){var h=_("./GenericWorker"),o=_("../utils");function n(u){h.call(this,"ConvertWorker to "+u),this.destType=u}o.inherits(n,h),n.prototype.processChunk=function(u){this.push({data:o.transformTo(this.destType,u.data),meta:u.meta})},N.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(_,N,w){var h=_("./GenericWorker"),o=_("../crc32");function n(){h.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}_("../utils").inherits(n,h),n.prototype.processChunk=function(u){this.streamInfo.crc32=o(u.data,this.streamInfo.crc32||0),this.push(u)},N.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(_,N,w){var h=_("../utils"),o=_("./GenericWorker");function n(u){o.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}h.inherits(n,o),n.prototype.processChunk=function(u){if(u){var g=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=g+u.data.length}o.prototype.processChunk.call(this,u)},N.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(_,N,w){var h=_("../utils"),o=_("./GenericWorker");function n(u){o.call(this,"DataWorker");var g=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(y){g.dataIsReady=!0,g.data=y,g.max=y&&y.length||0,g.type=h.getTypeOf(y),g.isPaused||g._tickAndRepeat()},function(y){g.error(y)})}h.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,h.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(h.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,g=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,g);break;case"uint8array":u=this.data.subarray(this.index,g);break;case"array":case"nodebuffer":u=this.data.slice(this.index,g)}return this.index=g,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},N.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(_,N,w){function h(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}h.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,n){return this._listeners[o].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,n){if(this._listeners[o])for(var u=0;u "+o:o}},N.exports=h},{}],29:[function(_,N,w){var h=_("../utils"),o=_("./ConvertWorker"),n=_("./GenericWorker"),u=_("../base64"),g=_("../support"),y=_("../external"),p=null;if(g.nodestream)try{p=_("../nodejs/NodejsStreamOutputAdapter")}catch{}function b(d,e){return new y.Promise(function(l,a){var c=[],v=d._internalType,S=d._outputType,x=d._mimeType;d.on("data",function(D,O){c.push(D),e&&e(O)}).on("error",function(D){c=[],a(D)}).on("end",function(){try{var D=function(O,L,I){switch(O){case"blob":return h.newBlob(h.transformTo("arraybuffer",L),I);case"base64":return u.encode(L);default:return h.transformTo(O,L)}}(S,function(O,L){var I,M=0,V=null,m=0;for(I=0;I"u")w.blob=!1;else{var h=new ArrayBuffer(0);try{w.blob=new Blob([h],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(h),w.blob=o.getBlob("application/zip").size===0}catch{w.blob=!1}}}try{w.nodestream=!!_("readable-stream").Readable}catch{w.nodestream=!1}},{"readable-stream":16}],31:[function(_,N,w){for(var h=_("./utils"),o=_("./support"),n=_("./nodejsUtils"),u=_("./stream/GenericWorker"),g=new Array(256),y=0;y<256;y++)g[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;g[254]=g[254]=1;function p(){u.call(this,"utf-8 decode"),this.leftOver=null}function b(){u.call(this,"utf-8 encode")}w.utf8encode=function(i){return o.nodebuffer?n.newBufferFrom(i,"utf-8"):function(d){var e,l,a,c,v,S=d.length,x=0;for(c=0;c>>6:(l<65536?e[v++]=224|l>>>12:(e[v++]=240|l>>>18,e[v++]=128|l>>>12&63),e[v++]=128|l>>>6&63),e[v++]=128|63&l);return e}(i)},w.utf8decode=function(i){return o.nodebuffer?h.transformTo("nodebuffer",i).toString("utf-8"):function(d){var e,l,a,c,v=d.length,S=new Array(2*v);for(e=l=0;e>10&1023,S[l++]=56320|1023&a)}return S.length!==l&&(S.subarray?S=S.subarray(0,l):S.length=l),h.applyFromCharCode(S)}(i=h.transformTo(o.uint8array?"uint8array":"array",i))},h.inherits(p,u),p.prototype.processChunk=function(i){var d=h.transformTo(o.uint8array?"uint8array":"array",i.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var e=d;(d=new Uint8Array(e.length+this.leftOver.length)).set(this.leftOver,0),d.set(e,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var l=function(c,v){var S;for((v=v||c.length)>c.length&&(v=c.length),S=v-1;0<=S&&(192&c[S])==128;)S--;return S<0||S===0?v:S+g[c[S]]>v?S:v}(d),a=d;l!==d.length&&(o.uint8array?(a=d.subarray(0,l),this.leftOver=d.subarray(l,d.length)):(a=d.slice(0,l),this.leftOver=d.slice(l,d.length))),this.push({data:w.utf8decode(a),meta:i.meta})},p.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:w.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},w.Utf8DecodeWorker=p,h.inherits(b,u),b.prototype.processChunk=function(i){this.push({data:w.utf8encode(i.data),meta:i.meta})},w.Utf8EncodeWorker=b},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(_,N,w){var h=_("./support"),o=_("./base64"),n=_("./nodejsUtils"),u=_("./external");function g(e){return e}function y(e,l){for(var a=0;a>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(i){if(this.extraFields[1]){var d=h(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=d.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=d.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=d.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=d.readInt(4))}},readExtraFields:function(i){var d,e,l,a=i.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});i.index+4>>6:(i<65536?b[l++]=224|i>>>12:(b[l++]=240|i>>>18,b[l++]=128|i>>>12&63),b[l++]=128|i>>>6&63),b[l++]=128|63&i);return b},w.buf2binstring=function(p){return y(p,p.length)},w.binstring2buf=function(p){for(var b=new h.Buf8(p.length),i=0,d=b.length;i>10&1023,c[d++]=56320|1023&e)}return y(c,d)},w.utf8border=function(p,b){var i;for((b=b||p.length)>p.length&&(b=p.length),i=b-1;0<=i&&(192&p[i])==128;)i--;return i<0||i===0?b:i+u[p[i]]>b?i:b}},{"./common":41}],43:[function(_,N,w){N.exports=function(h,o,n,u){for(var g=65535&h|0,y=h>>>16&65535|0,p=0;n!==0;){for(n-=p=2e3>>1:o>>>1;n[u]=o}return n}();N.exports=function(o,n,u,g){var y=h,p=g+u;o^=-1;for(var b=g;b>>8^y[255&(o^n[b])];return-1^o}},{}],46:[function(_,N,w){var h,o=_("../utils/common"),n=_("./trees"),u=_("./adler32"),g=_("./crc32"),y=_("./messages"),p=0,b=4,i=0,d=-2,e=-1,l=4,a=2,c=8,v=9,S=286,x=30,D=19,O=2*S+1,L=15,I=3,M=258,V=M+I+1,m=42,B=113,r=1,T=2,J=3,P=4;function $(t,R){return t.msg=y[R],R}function j(t){return(t<<1)-(4t.avail_out&&(A=t.avail_out),A!==0&&(o.arraySet(t.output,R.pending_buf,R.pending_out,A,t.next_out),t.next_out+=A,R.pending_out+=A,t.total_out+=A,t.avail_out-=A,R.pending-=A,R.pending===0&&(R.pending_out=0))}function C(t,R){n._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,R),t.block_start=t.strstart,E(t.strm)}function X(t,R){t.pending_buf[t.pending++]=R}function G(t,R){t.pending_buf[t.pending++]=R>>>8&255,t.pending_buf[t.pending++]=255&R}function H(t,R){var A,f,s=t.max_chain_length,k=t.strstart,F=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+F-1],tt=Z[k+F];t.prev_length>=t.good_match&&(s>>=2),U>t.lookahead&&(U=t.lookahead);do if(Z[(A=R)+F]===tt&&Z[A+F-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]&&kz&&--s!=0);return F<=t.lookahead?F:t.lookahead}function nt(t){var R,A,f,s,k,F,U,z,Z,K,W=t.w_size;do{if(s=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,R=A=t.hash_size;f=t.head[--R],t.head[R]=W<=f?f-W:0,--A;);for(R=A=W;f=t.prev[--R],t.prev[R]=W<=f?f-W:0,--A;);s+=W}if(t.strm.avail_in===0)break;if(F=t.strm,U=t.window,z=t.strstart+t.lookahead,Z=s,K=void 0,K=F.avail_in,Z=I)for(k=t.strstart-t.insert,t.ins_h=t.window[k],t.ins_h=(t.ins_h<=I&&(t.ins_h=(t.ins_h<=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<=I&&(t.ins_h=(t.ins_h<=I&&t.match_length<=t.prev_length){for(s=t.strstart+t.lookahead-I,f=n._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-I),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=s&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(A=t.pending_buf_size-5);;){if(t.lookahead<=1){if(nt(t),t.lookahead===0&&R===p)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,R===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)],w.deflateInit=function(t,R){return ut(t,R,c,15,8,0)},w.deflateInit2=ut,w.deflateReset=lt,w.deflateResetKeep=it,w.deflateSetHeader=function(t,R){return t&&t.state?t.state.wrap!==2?d:(t.state.gzhead=R,i):d},w.deflate=function(t,R){var A,f,s,k;if(!t||!t.state||5>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=B);else{var F=c+(f.w_bits-8<<4)<<8;F|=(2<=f.strategy||f.level<2?0:f.level<6?1:f.level===6?2:3)<<6,f.strstart!==0&&(F|=32),F+=31-F%31,f.status=B,G(f,F),f.strstart!==0&&(G(f,t.adler>>>16),G(f,65535&t.adler)),t.adler=1}if(f.status===69)if(f.gzhead.extra){for(s=f.pending;f.gzindex<(65535&f.gzhead.extra.length)&&(f.pending!==f.pending_buf_size||(f.gzhead.hcrc&&f.pending>s&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),E(t),s=f.pending,f.pending!==f.pending_buf_size));)X(f,255&f.gzhead.extra[f.gzindex]),f.gzindex++;f.gzhead.hcrc&&f.pending>s&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),f.gzindex===f.gzhead.extra.length&&(f.gzindex=0,f.status=73)}else f.status=73;if(f.status===73)if(f.gzhead.name){s=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>s&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),E(t),s=f.pending,f.pending===f.pending_buf_size)){k=1;break}k=f.gzindexs&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),k===0&&(f.gzindex=0,f.status=91)}else f.status=91;if(f.status===91)if(f.gzhead.comment){s=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>s&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),E(t),s=f.pending,f.pending===f.pending_buf_size)){k=1;break}k=f.gzindexs&&(t.adler=g(t.adler,f.pending_buf,f.pending-s,s)),k===0&&(f.status=103)}else f.status=103;if(f.status===103&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&E(t),f.pending+2<=f.pending_buf_size&&(X(f,255&t.adler),X(f,t.adler>>8&255),t.adler=0,f.status=B)):f.status=B),f.pending!==0){if(E(t),t.avail_out===0)return f.last_flush=-1,i}else if(t.avail_in===0&&j(R)<=j(A)&&R!==b)return $(t,-5);if(f.status===666&&t.avail_in!==0)return $(t,-5);if(t.avail_in!==0||f.lookahead!==0||R!==p&&f.status!==666){var U=f.strategy===2?function(z,Z){for(var K;;){if(z.lookahead===0&&(nt(z),z.lookahead===0)){if(Z===p)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:T}(f,R):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===p)return r;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=I&&0z.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:T}(f,R):h[f.level].func(f,R);if(U!==J&&U!==P||(f.status=666),U===r||U===J)return t.avail_out===0&&(f.last_flush=-1),i;if(U===T&&(R===1?n._tr_align(f):R!==5&&(n._tr_stored_block(f,0,0,!1),R===3&&(q(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),E(t),t.avail_out===0))return f.last_flush=-1,i}return R!==b?i:f.wrap<=0?1:(f.wrap===2?(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=A.w_size&&(k===0&&(q(A.head),A.strstart=0,A.block_start=0,A.insert=0),Z=new o.Buf8(A.w_size),o.arraySet(Z,R,K-A.w_size,A.w_size,0),R=Z,K=A.w_size),F=t.avail_in,U=t.next_in,z=t.input,t.avail_in=K,t.next_in=0,t.input=R,nt(A);A.lookahead>=I;){for(f=A.strstart,s=A.lookahead-(I-1);A.ins_h=(A.ins_h<>>=I=L>>>24,v-=I,(I=L>>>16&255)===0)T[y++]=65535&L;else{if(!(16&I)){if((64&I)==0){L=S[(65535&L)+(c&(1<>>=I,v-=I),v<15&&(c+=r[u++]<>>=I=L>>>24,v-=I,!(16&(I=L>>>16&255))){if((64&I)==0){L=x[(65535&L)+(c&(1<>>=I,v-=I,(I=y-p)>3,c&=(1<<(v-=M<<3))-1,h.next_in=u,h.next_out=y,h.avail_in=u>>24&255)+(m>>>8&65280)+((65280&m)<<8)+((255&m)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new h.Buf16(320),this.work=new h.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(m){var B;return m&&m.state?(B=m.state,m.total_in=m.total_out=B.total=0,m.msg="",B.wrap&&(m.adler=1&B.wrap),B.mode=d,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new h.Buf32(e),B.distcode=B.distdyn=new h.Buf32(l),B.sane=1,B.back=-1,b):i}function S(m){var B;return m&&m.state?((B=m.state).wsize=0,B.whave=0,B.wnext=0,v(m)):i}function x(m,B){var r,T;return m&&m.state?(T=m.state,B<0?(r=0,B=-B):(r=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15=P.wsize?(h.arraySet(P.window,B,r-P.wsize,P.wsize,0),P.wnext=0,P.whave=P.wsize):(T<(J=P.wsize-P.wnext)&&(J=T),h.arraySet(P.window,B,r-T,J,P.wnext),(T-=J)?(h.arraySet(P.window,B,r-T,T,0),P.wnext=T,P.whave=P.wsize):(P.wnext+=J,P.wnext===P.wsize&&(P.wnext=0),P.whave>>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){m.msg="incorrect header check",r.mode=30;break}if((15&E)!=8){m.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){m.msg="invalid window size",r.mode=30;break}r.dmax=1<>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+=T[P++]<>>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+=T[P++]<>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+=T[P++]<>>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)),h.arraySet(r.head.extra,T,P,H,t)),512&r.flags&&(r.check=n(r.check,T,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=T[P+H++],r.head&&t&&r.length<65536&&(r.head.name+=String.fromCharCode(t)),t&&H>9&1,r.head.done=!0),m.adler=r.check=0,r.mode=12;break;case 10:for(;C<32;){if(j===0)break t;j--,E+=T[P++]<>>=7&C,C-=7&C,r.mode=27;break}for(;C<3;){if(j===0)break t;j--,E+=T[P++]<>>=1)){case 0:r.mode=14;break;case 1:if(M(r),r.mode=20,B!==6)break;E>>>=2,C-=2;break t;case 2:r.mode=17;break;case 3:m.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+=T[P++]<>>16^65535)){m.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&E,C=E=0,r.mode=15,B===6)break t;case 15:r.mode=16;case 16:if(H=r.length){if(j>>=5,C-=5,r.ndist=1+(31&E),E>>>=5,C-=5,r.ncode=4+(15&E),E>>>=4,C-=4,286>>=3,C-=3}for(;r.have<19;)r.lens[F[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,A={bits:r.lenbits},R=g(0,r.lens,0,19,r.lencode,0,r.work,A),r.lenbits=A.bits,R){m.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,st=65535&s,!((Q=s>>>24)<=C);){if(j===0)break t;j--,E+=T[P++]<>>=Q,C-=Q,r.lens[r.have++]=st;else{if(st===16){for(f=Q+2;C>>=Q,C-=Q,r.have===0){m.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(st===17){for(f=Q+3;C>>=Q)),E>>>=3,C-=3}else{for(f=Q+7;C>>=Q)),E>>>=7,C-=7}if(r.have+H>r.nlen+r.ndist){m.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){m.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,A={bits:r.lenbits},R=g(y,r.lens,0,r.nlen,r.lencode,0,r.work,A),r.lenbits=A.bits,R){m.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,A={bits:r.distbits},R=g(p,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,A),r.distbits=A.bits,R){m.msg="invalid distances set",r.mode=30;break}if(r.mode=20,B===6)break t;case 20:r.mode=21;case 21:if(6<=j&&258<=q){m.next_out=$,m.avail_out=q,m.next_in=P,m.avail_in=j,r.hold=E,r.bits=C,u(m,G),$=m.next_out,J=m.output,q=m.avail_out,P=m.next_in,T=m.input,j=m.avail_in,E=r.hold,C=r.bits,r.mode===12&&(r.back=-1);break}for(r.back=0;rt=(s=r.lencode[E&(1<>>16&255,st=65535&s,!((Q=s>>>24)<=C);){if(j===0)break t;j--,E+=T[P++]<>it)])>>>16&255,st=65535&s,!(it+(Q=s>>>24)<=C);){if(j===0)break t;j--,E+=T[P++]<>>=it,C-=it,r.back+=it}if(E>>>=Q,C-=Q,r.back+=Q,r.length=st,rt===0){r.mode=26;break}if(32&rt){r.back=-1,r.mode=12;break}if(64&rt){m.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>>=r.extra,C-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;rt=(s=r.distcode[E&(1<>>16&255,st=65535&s,!((Q=s>>>24)<=C);){if(j===0)break t;j--,E+=T[P++]<>it)])>>>16&255,st=65535&s,!(it+(Q=s>>>24)<=C);){if(j===0)break t;j--,E+=T[P++]<>>=it,C-=it,r.back+=it}if(E>>>=Q,C-=Q,r.back+=Q,64&rt){m.msg="invalid distance code",r.mode=30;break}r.offset=st,r.extra=15&rt,r.mode=24;case 24:if(r.extra){for(f=r.extra;C>>=r.extra,C-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){m.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){m.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(qO?(I=nt[ot+l[B]],C[X+l[B]]):(I=96,0),c=1<>$)+(v-=c)]=L<<24|I<<16|M|0,v!==0;);for(c=1<>=1;if(c!==0?(E&=c-1,E+=c):E=0,B++,--G[m]==0){if(m===T)break;m=p[b+l[B]]}if(J>>7)]}function X(s,k){s.pending_buf[s.pending++]=255&k,s.pending_buf[s.pending++]=k>>>8&255}function G(s,k,F){s.bi_valid>a-F?(s.bi_buf|=k<>a-s.bi_valid,s.bi_valid+=F-a):(s.bi_buf|=k<>>=1,F<<=1,0<--k;);return F>>>1}function ot(s,k,F){var U,z,Z=new Array(l+1),K=0;for(U=1;U<=l;U++)Z[U]=K=K+F[U-1]<<1;for(z=0;z<=k;z++){var W=s[2*z+1];W!==0&&(s[2*z]=nt(Z[W]++,W))}}function Q(s){var k;for(k=0;k>1;1<=F;F--)it(s,Z,F);for(z=Y;F=s.heap[1],s.heap[1]=s.heap[s.heap_len--],it(s,Z,1),U=s.heap[1],s.heap[--s.heap_max]=F,s.heap[--s.heap_max]=U,Z[2*z]=Z[2*F]+Z[2*U],s.depth[z]=(s.depth[F]>=s.depth[U]?s.depth[F]:s.depth[U])+1,Z[2*F+1]=Z[2*U+1]=z,s.heap[1]=z++,it(s,Z,1),2<=s.heap_len;);s.heap[--s.heap_max]=s.heap[1],function(tt,ht){var pt,ft,mt,at,gt,kt,dt=ht.dyn_tree,St=ht.max_code,Ct=ht.stat_desc.static_tree,Et=ht.stat_desc.has_stree,At=ht.stat_desc.extra_bits,zt=ht.stat_desc.extra_base,_t=ht.stat_desc.max_length,bt=0;for(at=0;at<=l;at++)tt.bl_count[at]=0;for(dt[2*tt.heap[tt.heap_max]+1]=0,pt=tt.heap_max+1;pt>=7;z>>=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>>3,(Z=s.static_len+3+7>>>3)<=z&&(z=Z)):z=Z=F+5,F+4<=z&&k!==-1?f(s,k,F,U):s.strategy===4||Z===z?(G(s,2+(U?1:0),3),lt(s,V,m)):(G(s,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>>8&255,s.pending_buf[s.d_buf+2*s.last_lit+1]=255&k,s.pending_buf[s.l_buf+s.last_lit]=255&F,s.last_lit++,k===0?s.dyn_ltree[2*F]++:(s.matches++,k--,s.dyn_ltree[2*(r[F]+p+1)]++,s.dyn_dtree[2*C(k)]++),s.last_lit===s.lit_bufsize-1},w._tr_align=function(s){G(s,2,3),H(s,v,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)}(s)}},{"../utils/common":41}],53:[function(_,N,w){N.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(_,N,w){(function(h){(function(o,n){if(!o.setImmediate){var u,g,y,p,b=1,i={},d=!1,e=o.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(o);l=l&&l.setTimeout?l:o,u={}.toString.call(o.process)==="[object process]"?function(S){process.nextTick(function(){c(S)})}:function(){if(o.postMessage&&!o.importScripts){var S=!0,x=o.onmessage;return o.onmessage=function(){S=!1},o.postMessage("","*"),o.onmessage=x,S}}()?(p="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",v,!1):o.attachEvent("onmessage",v),function(S){o.postMessage(p+S,"*")}):o.MessageChannel?((y=new MessageChannel).port1.onmessage=function(S){c(S.data)},function(S){y.port2.postMessage(S)}):e&&"onreadystatechange"in e.createElement("script")?(g=e.documentElement,function(S){var x=e.createElement("script");x.onreadystatechange=function(){c(S),x.onreadystatechange=null,g.removeChild(x),x=null},g.appendChild(x)}):function(S){setTimeout(c,0,S)},l.setImmediate=function(S){typeof S!="function"&&(S=new Function(""+S));for(var x=new Array(arguments.length-1),D=0;D"u"?h===void 0?this:h:self)}).call(this,typeof vt<"u"?vt:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(xt);const Ot=xt.exports,Tt=It({__proto__:null,default:Ot},[xt.exports]);export{Tt as j};