8?gt(p,p.bi_buf):p.bi_valid>0&&(p.pending_buf[p.pending++]=p.bi_buf),p.bi_buf=0,p.bi_valid=0}function Vt(p,M,B,H){he(p),gt(p,B),gt(p,~B),f.arraySet(p.pending_buf,p.window,M,B,p.pending),p.pending+=B}function Mt(p,M,B,H){var k=M*2,z=B*2;return p[k]>1;h>=1;h--)_t(p,B,h);i=z;do h=p.heap[1],p.heap[1]=p.heap[p.heap_len--],_t(p,B,1),U=p.heap[1],p.heap[--p.heap_max]=h,p.heap[--p.heap_max]=U,B[i*2]=B[h*2]+B[U*2],p.depth[i]=(p.depth[h]>=p.depth[U]?p.depth[h]:p.depth[U])+1,B[h*2+1]=B[U*2+1]=i,p.heap[1]=i++,_t(p,B,1);while(p.heap_len>=2);p.heap[--p.heap_max]=p.heap[1],Ut(p,M),Bt(B,q,p.bl_count)}function de(p,M,B){var H,k=-1,z,h=M[0*2+1],U=0,q=7,i=4;for(h===0&&(q=138,i=3),M[(B+1)*2+1]=65535,H=0;H<=B;H++)z=h,h=M[(H+1)*2+1],!(++U=3&&p.bl_tree[et[M]*2+1]===0;M--);return p.opt_len+=3*(M+1)+5+5+4,M}function ue(p,M,B,H){var k;for(dt(p,M-257,5),dt(p,B-1,5),dt(p,H-4,4),k=0;k>>=1)if(M&1&&p.dyn_ltree[B*2]!==0)return c;if(p.dyn_ltree[18]!==0||p.dyn_ltree[20]!==0||p.dyn_ltree[26]!==0)return n;for(B=32;B0?(p.strm.data_type===m&&(p.strm.data_type=ne(p)),jt(p,p.l_desc),jt(p,p.d_desc),h=Zt(p),k=p.opt_len+3+7>>>3,z=p.static_len+3+7>>>3,z<=k&&(k=z)):k=z=B+5,B+4<=k&&M!==-1?se(p,M,B,H):p.strategy===a||z===k?(dt(p,(y<<1)+(H?1:0),3),rt(p,Z,Q)):(dt(p,(v<<1)+(H?1:0),3),ue(p,p.l_desc.max_code+1,p.d_desc.max_code+1,h+1),rt(p,p.dyn_ltree,p.dyn_dtree)),Nt(p),H&&he(p)}function pe(p,M,B){return p.pending_buf[p.d_buf+p.last_lit*2]=M>>>8&255,p.pending_buf[p.d_buf+p.last_lit*2+1]=M&255,p.pending_buf[p.l_buf+p.last_lit]=B&255,p.last_lit++,M===0?p.dyn_ltree[B*2]++:(p.matches++,M--,p.dyn_ltree[(ht[B]+d+1)*2]++,p.dyn_dtree[Ct(M)*2]++),p.last_lit===p.lit_bufsize-1}s._tr_init=_e,s._tr_stored_block=se,s._tr_flush_block=Gt,s._tr_tally=pe,s._tr_align=Pt},{"../utils/common":41}],53:[function(e,r,s){function f(){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}r.exports=f},{}],54:[function(e,r,s){(function(f){(function(a,c){if(a.setImmediate)return;var n=1,m={},o=!1,_=a.document,y;function v(S){typeof S!="function"&&(S=new Function(""+S));for(var N=new Array(arguments.length-1),D=0;D"u"?typeof f>"u"?this:f:self)}).call(this,typeof Ie<"u"?Ie:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}(Ae)),Ae.exports}var Je=Ge(),$e=Ke(Je);class Qe{load(t,e){fetch(t).then(function(r){return r.status===200||r.status===0?Promise.resolve(r.blob()):Promise.reject(new Error(r.statusText))}).then($e.loadAsync).then(async function(r){let s=null;const f={};for(let c in r.files){r.files[c];const n=c.split(".").pop();if(n==="ssfb"){if(s!==null){e(null,null,null,new Error("already exist ssfb file"));return}s=c}else if(n==="png"){const m=c.split(".").slice(0,-1).join(".");f[m]=await r.file(c).async("uint8array")}}let a=await r.file(s).async("uint8array");e(s,a,f,null)},function(s){e(null,null,null,s)})}}class qe{static createAnimePackMap(t){const e=t.fbObj.animePacksLength(),r={};for(let s=0;s{e.setupForLoadComplete(r)})}loadSspkg(t){const e=this;new Qe().load(t,(s,f,a,c)=>{if(c!==null)return;let n=new Re(s,f,a,()=>{e.setupForLoadComplete(n)})})}setupForLoadComplete(t){this.projectData=t,this.animePackMap=qe.createAnimePackMap(this.projectData),this.onComplete!==null&&this.onComplete()}loadAnimation(t,e){let r=!1;this.textureContainer==null&&(r=!0,this.textureContainer=new He(this));const s=this.animePackMap[t],f=s.animePack,c=s.animationMap[e];this.currentAnimation=c,this.currentAnimePack=f,this.textureContainer.Setup(t,e);const n=c.labelDataLength();for(let m=0;m>2,E=(o&3)<<4|_>>4,F=x>1?(_&15)<<2|y>>6:64,l=x>2?y&63:64,m.push(c.charAt(v)+c.charAt(E)+c.charAt(F)+c.charAt(l));return m.join("")},s.decode=function(n){var m,o,_,y,v,E,F,l=0,d=0,b="data:";if(n.substr(0,b.length)===b)throw new Error("Invalid base64 input, it looks like a data url.");n=n.replace(/[^A-Za-z0-9+/=]/g,"");var x=n.length*3/4;if(n.charAt(n.length-1)===c.charAt(64)&&x--,n.charAt(n.length-2)===c.charAt(64)&&x--,x%1!==0)throw new Error("Invalid base64 input, bad content length.");var P;for(a.uint8array?P=new Uint8Array(x|0):P=new Array(x|0);l>4,o=(v&15)<<4|E>>2,_=(E&3)<<6|F,P[d++]=m,E!==64&&(P[d++]=o),F!==64&&(P[d++]=_);return P}},{"./support":30,"./utils":32}],2:[function(e,r,s){var f=e("./external"),a=e("./stream/DataWorker"),c=e("./stream/Crc32Probe"),n=e("./stream/DataLengthProbe");function m(o,_,y,v,E){this.compressedSize=o,this.uncompressedSize=_,this.crc32=y,this.compression=v,this.compressedContent=E}m.prototype={getContentWorker:function(){var o=new a(f.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new n("data_length")),_=this;return o.on("end",function(){if(this.streamInfo.data_length!==_.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),o},getCompressedWorker:function(){return new a(f.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},m.createWorkerFrom=function(o,_,y){return o.pipe(new c).pipe(new n("uncompressedSize")).pipe(_.compressWorker(y)).pipe(new n("compressedSize")).withStreamInfo("compression",_)},r.exports=m},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,r,s){var f=e("./stream/GenericWorker");s.STORE={magic:"\0\0",compressWorker:function(){return new f("STORE compression")},uncompressWorker:function(){return new f("STORE decompression")}},s.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,r,s){var f=e("./utils");function a(){for(var o,_=[],y=0;y<256;y++){o=y;for(var v=0;v<8;v++)o=o&1?3988292384^o>>>1:o>>>1;_[y]=o}return _}var c=a();function n(o,_,y,v){var E=c,F=v+y;o=o^-1;for(var l=v;l>>8^E[(o^_[l])&255];return o^-1}function m(o,_,y,v){var E=c,F=v+y;o=o^-1;for(var l=v;l>>8^E[(o^_.charCodeAt(l))&255];return o^-1}r.exports=function(_,y){if(typeof _>"u"||!_.length)return 0;var v=f.getTypeOf(_)!=="string";return v?n(y|0,_,_.length,0):m(y|0,_,_.length,0)}},{"./utils":32}],5:[function(e,r,s){s.base64=!1,s.binary=!1,s.dir=!1,s.createFolders=!0,s.date=null,s.compression=null,s.compressionOptions=null,s.comment=null,s.unixPermissions=null,s.dosPermissions=null},{}],6:[function(e,r,s){var f=null;typeof Promise<"u"?f=Promise:f=e("lie"),r.exports={Promise:f}},{lie:37}],7:[function(e,r,s){var f=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=e("pako"),c=e("./utils"),n=e("./stream/GenericWorker"),m=f?"uint8array":"array";s.magic="\b\0";function o(_,y){n.call(this,"FlateWorker/"+_),this._pako=null,this._pakoAction=_,this._pakoOptions=y,this.meta={}}c.inherits(o,n),o.prototype.processChunk=function(_){this.meta=_.meta,this._pako===null&&this._createPako(),this._pako.push(c.transformTo(m,_.data),!1)},o.prototype.flush=function(){n.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},o.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this._pako=null},o.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var _=this;this._pako.onData=function(y){_.push({data:y,meta:_.meta})}},s.compressWorker=function(_){return new o("Deflate",_)},s.uncompressWorker=function(){return new o("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,r,s){var f=e("../utils"),a=e("../stream/GenericWorker"),c=e("../utf8"),n=e("../crc32"),m=e("../signature"),o=function(d,b){var x="",P;for(P=0;P>>8;return x},_=function(d,b){var x=d;return d||(x=b?16893:33204),(x&65535)<<16},y=function(d){return(d||0)&63},v=function(d,b,x,P,g,I){var C=d.file,S=d.compression,N=I!==c.utf8encode,D=f.transformTo("string",I(C.name)),V=f.transformTo("string",c.utf8encode(C.name)),R=C.comment,j=f.transformTo("string",I(R)),$=f.transformTo("string",c.utf8encode(R)),G=V.length!==C.name.length,et=$.length!==R.length,W,Z,Q="",at="",ht="",K=C.dir,ot=C.date,nt={crc32:0,compressedSize:0,uncompressedSize:0};(!b||x)&&(nt.crc32=d.crc32,nt.compressedSize=d.compressedSize,nt.uncompressedSize=d.uncompressedSize);var kt=0;b&&(kt|=8),!N&&(G||et)&&(kt|=2048);var Ft=0,vt=0;K&&(Ft|=16),g==="UNIX"?(vt=798,Ft|=_(C.unixPermissions,K)):(vt=20,Ft|=y(C.dosPermissions)),W=ot.getUTCHours(),W=W<<6,W=W|ot.getUTCMinutes(),W=W<<5,W=W|ot.getUTCSeconds()/2,Z=ot.getUTCFullYear()-1980,Z=Z<<4,Z=Z|ot.getUTCMonth()+1,Z=Z<<5,Z=Z|ot.getUTCDate(),G&&(at=o(1,1)+o(n(D),4)+V,Q+="up"+o(at.length,2)+at),et&&(ht=o(1,1)+o(n(j),4)+$,Q+="uc"+o(ht.length,2)+ht);var st="";st+=`
+\0`,st+=o(kt,2),st+=S.magic,st+=o(W,2),st+=o(Z,2),st+=o(nt.crc32,4),st+=o(nt.compressedSize,4),st+=o(nt.uncompressedSize,4),st+=o(D.length,2),st+=o(Q.length,2);var Ct=m.LOCAL_FILE_HEADER+st+D+Q,gt=m.CENTRAL_FILE_HEADER+o(vt,2)+st+o(j.length,2)+"\0\0\0\0"+o(Ft,4)+o(P,4)+D+Q+j;return{fileRecord:Ct,dirRecord:gt}},E=function(d,b,x,P,g){var I="",C=f.transformTo("string",g(P));return I=m.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(d,2)+o(d,2)+o(b,4)+o(x,4)+o(C.length,2)+C,I},F=function(d){var b="";return b=m.DATA_DESCRIPTOR+o(d.crc32,4)+o(d.compressedSize,4)+o(d.uncompressedSize,4),b};function l(d,b,x,P){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=b,this.zipPlatform=x,this.encodeFileName=P,this.streamFiles=d,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}f.inherits(l,a),l.prototype.push=function(d){var b=d.meta.percent||0,x=this.entriesCount,P=this._sources.length;this.accumulate?this.contentBuffer.push(d):(this.bytesWritten+=d.data.length,a.prototype.push.call(this,{data:d.data,meta:{currentFile:this.currentFile,percent:x?(b+100*(x-P-1))/x:100}}))},l.prototype.openedSource=function(d){this.currentSourceOffset=this.bytesWritten,this.currentFile=d.file.name;var b=this.streamFiles&&!d.file.dir;if(b){var x=v(d,b,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:x.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(d){this.accumulate=!1;var b=this.streamFiles&&!d.file.dir,x=v(d,b,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(x.dirRecord),b)this.push({data:F(d),meta:{percent:100}});else for(this.push({data:x.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var d=this.bytesWritten,b=0;b"u")&&(D.binary=!V);var R=I instanceof o&&I.uncompressedSize===0;(R||D.dir||!I||I.length===0)&&(D.base64=!1,D.binary=!0,I="",D.compression="STORE",S="string");var j=null;I instanceof o||I instanceof c?j=I:v.isNode&&v.isStream(I)?j=new E(g,I):j=a.prepareContent(g,I,D.binary,D.optimizedBinaryString,D.base64);var $=new _(g,j,D);this.files[g]=$},l=function(g){g.slice(-1)==="/"&&(g=g.substring(0,g.length-1));var I=g.lastIndexOf("/");return I>0?g.substring(0,I):""},d=function(g){return g.slice(-1)!=="/"&&(g+="/"),g},b=function(g,I){return I=typeof I<"u"?I:m.createFolders,g=d(g),this.files[g]||F.call(this,g,null,{dir:!0,createFolders:I}),this.files[g]};function x(g){return Object.prototype.toString.call(g)==="[object RegExp]"}var P={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(g){var I,C,S;for(I in this.files)S=this.files[I],C=I.slice(this.root.length,I.length),C&&I.slice(0,this.root.length)===this.root&&g(C,S)},filter:function(g){var I=[];return this.forEach(function(C,S){g(C,S)&&I.push(S)}),I},file:function(g,I,C){if(arguments.length===1)if(x(g)){var S=g;return this.filter(function(D,V){return!V.dir&&S.test(D)})}else{var N=this.files[this.root+g];return N&&!N.dir?N:null}else g=this.root+g,F.call(this,g,I,C);return this},folder:function(g){if(!g)return this;if(x(g))return this.filter(function(N,D){return D.dir&&g.test(N)});var I=this.root+g,C=b.call(this,I),S=this.clone();return S.root=C.name,S},remove:function(g){g=this.root+g;var I=this.files[g];if(I||(g.slice(-1)!=="/"&&(g+="/"),I=this.files[g]),I&&!I.dir)delete this.files[g];else for(var C=this.filter(function(N,D){return D.name.slice(0,g.length)===g}),S=0;S=0;--v)if(this.data[v]===m&&this.data[v+1]===o&&this.data[v+2]===_&&this.data[v+3]===y)return v-this.zero;return-1},c.prototype.readAndCheckSignature=function(n){var m=n.charCodeAt(0),o=n.charCodeAt(1),_=n.charCodeAt(2),y=n.charCodeAt(3),v=this.readData(4);return m===v[0]&&o===v[1]&&_===v[2]&&y===v[3]},c.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var m=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=c},{"../utils":32,"./DataReader":18}],18:[function(e,r,s){var f=e("../utils");function a(c){this.data=c,this.length=c.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(c){this.checkIndex(this.index+c)},checkIndex:function(c){if(this.length=this.index;m--)n=(n<<8)+this.byteAt(m);return this.index+=c,n},readString:function(c){return f.transformTo("string",this.readData(c))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var c=this.readInt(4);return new Date(Date.UTC((c>>25&127)+1980,(c>>21&15)-1,c>>16&31,c>>11&31,c>>5&63,(c&31)<<1))}},r.exports=a},{"../utils":32}],19:[function(e,r,s){var f=e("./Uint8ArrayReader"),a=e("../utils");function c(n){f.call(this,n)}a.inherits(c,f),c.prototype.readData=function(n){this.checkOffset(n);var m=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=c},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,r,s){var f=e("./DataReader"),a=e("../utils");function c(n){f.call(this,n)}a.inherits(c,f),c.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},c.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},c.prototype.readAndCheckSignature=function(n){var m=this.readData(4);return n===m},c.prototype.readData=function(n){this.checkOffset(n);var m=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=c},{"../utils":32,"./DataReader":18}],21:[function(e,r,s){var f=e("./ArrayReader"),a=e("../utils");function c(n){f.call(this,n)}a.inherits(c,f),c.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var m=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,m},r.exports=c},{"../utils":32,"./ArrayReader":17}],22:[function(e,r,s){var f=e("../utils"),a=e("../support"),c=e("./ArrayReader"),n=e("./StringReader"),m=e("./NodeBufferReader"),o=e("./Uint8ArrayReader");r.exports=function(_){var y=f.getTypeOf(_);return f.checkSupport(y),y==="string"&&!a.uint8array?new n(_):y==="nodebuffer"?new m(_):a.uint8array?new o(f.transformTo("uint8array",_)):new c(f.transformTo("array",_))}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,r,s){s.LOCAL_FILE_HEADER="PK",s.CENTRAL_FILE_HEADER="PK",s.CENTRAL_DIRECTORY_END="PK",s.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",s.ZIP64_CENTRAL_DIRECTORY_END="PK",s.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,r,s){var f=e("./GenericWorker"),a=e("../utils");function c(n){f.call(this,"ConvertWorker to "+n),this.destType=n}a.inherits(c,f),c.prototype.processChunk=function(n){this.push({data:a.transformTo(this.destType,n.data),meta:n.meta})},r.exports=c},{"../utils":32,"./GenericWorker":28}],25:[function(e,r,s){var f=e("./GenericWorker"),a=e("../crc32"),c=e("../utils");function n(){f.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}c.inherits(n,f),n.prototype.processChunk=function(m){this.streamInfo.crc32=a(m.data,this.streamInfo.crc32||0),this.push(m)},r.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,r,s){var f=e("../utils"),a=e("./GenericWorker");function c(n){a.call(this,"DataLengthProbe for "+n),this.propName=n,this.withStreamInfo(n,0)}f.inherits(c,a),c.prototype.processChunk=function(n){if(n){var m=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=m+n.data.length}a.prototype.processChunk.call(this,n)},r.exports=c},{"../utils":32,"./GenericWorker":28}],27:[function(e,r,s){var f=e("../utils"),a=e("./GenericWorker"),c=16*1024;function n(m){a.call(this,"DataWorker");var o=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,m.then(function(_){o.dataIsReady=!0,o.data=_,o.max=_&&_.length||0,o.type=f.getTypeOf(_),o.isPaused||o._tickAndRepeat()},function(_){o.error(_)})}f.inherits(n,a),n.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return a.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,f.delay(this._tickAndRepeat,[],this)),!0):!1},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(f.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var m=c,o=null,_=Math.min(this.max,this.index+m);if(this.index>=this.max)return this.end();switch(this.type){case"string":o=this.data.substring(this.index,_);break;case"uint8array":o=this.data.subarray(this.index,_);break;case"array":case"nodebuffer":o=this.data.slice(this.index,_);break}return this.index=_,this.push({data:o,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(e,r,s){function f(a){this.name=a||"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}f.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return this.isFinished?!1:(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,c){return this._listeners[a].push(c),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,c){if(this._listeners[a])for(var n=0;n "+a:a}},r.exports=f},{}],29:[function(e,r,s){var f=e("../utils"),a=e("./ConvertWorker"),c=e("./GenericWorker"),n=e("../base64"),m=e("../support"),o=e("../external"),_=null;if(m.nodestream)try{_=e("../nodejs/NodejsStreamOutputAdapter")}catch{}function y(l,d,b){switch(l){case"blob":return f.newBlob(f.transformTo("arraybuffer",d),b);case"base64":return n.encode(d);default:return f.transformTo(l,d)}}function v(l,d){var b,x=0,P=null,g=0;for(b=0;b"u")s.blob=!1;else{var f=new ArrayBuffer(0);try{s.blob=new Blob([f],{type:"application/zip"}).size===0}catch{try{var a=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,c=new a;c.append(f),s.blob=c.getBlob("application/zip").size===0}catch{s.blob=!1}}}try{s.nodestream=!!e("readable-stream").Readable}catch{s.nodestream=!1}},{"readable-stream":16}],31:[function(e,r,s){for(var f=e("./utils"),a=e("./support"),c=e("./nodejsUtils"),n=e("./stream/GenericWorker"),m=new Array(256),o=0;o<256;o++)m[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;m[254]=m[254]=1;var _=function(l){var d,b,x,P,g,I=l.length,C=0;for(P=0;P>>6,d[g++]=128|b&63):b<65536?(d[g++]=224|b>>>12,d[g++]=128|b>>>6&63,d[g++]=128|b&63):(d[g++]=240|b>>>18,d[g++]=128|b>>>12&63,d[g++]=128|b>>>6&63,d[g++]=128|b&63);return d},y=function(l,d){var b;for(d=d||l.length,d>l.length&&(d=l.length),b=d-1;b>=0&&(l[b]&192)===128;)b--;return b<0||b===0?d:b+m[l[b]]>d?b:d},v=function(l){var d,b,x,P,g=l.length,I=new Array(g*2);for(b=0,d=0;d4){I[b++]=65533,d+=P-1;continue}for(x&=P===2?31:P===3?15:7;P>1&&d1){I[b++]=65533;continue}x<65536?I[b++]=x:(x-=65536,I[b++]=55296|x>>10&1023,I[b++]=56320|x&1023)}return I.length!==b&&(I.subarray?I=I.subarray(0,b):I.length=b),f.applyFromCharCode(I)};s.utf8encode=function(d){return a.nodebuffer?c.newBufferFrom(d,"utf-8"):_(d)},s.utf8decode=function(d){return a.nodebuffer?f.transformTo("nodebuffer",d).toString("utf-8"):(d=f.transformTo(a.uint8array?"uint8array":"array",d),v(d))};function E(){n.call(this,"utf-8 decode"),this.leftOver=null}f.inherits(E,n),E.prototype.processChunk=function(l){var d=f.transformTo(a.uint8array?"uint8array":"array",l.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var b=d;d=new Uint8Array(b.length+this.leftOver.length),d.set(this.leftOver,0),d.set(b,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var x=y(d),P=d;x!==d.length&&(a.uint8array?(P=d.subarray(0,x),this.leftOver=d.subarray(x,d.length)):(P=d.slice(0,x),this.leftOver=d.slice(x,d.length))),this.push({data:s.utf8decode(P),meta:l.meta})},E.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=E;function F(){n.call(this,"utf-8 encode")}f.inherits(F,n),F.prototype.processChunk=function(l){this.push({data:s.utf8encode(l.data),meta:l.meta})},s.Utf8EncodeWorker=F},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,r,s){var f=e("./support"),a=e("./base64"),c=e("./nodejsUtils"),n=e("./external");e("setimmediate");function m(l){var d=null;return f.uint8array?d=new Uint8Array(l.length):d=new Array(l.length),_(l,d)}s.newBlob=function(l,d){s.checkSupport("blob");try{return new Blob([l],{type:d})}catch{try{var b=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,x=new b;return x.append(l),x.getBlob(d)}catch{throw new Error("Bug : can't construct the Blob.")}}};function o(l){return l}function _(l,d){for(var b=0;b1;)try{return y.stringifyByChunk(l,b,d)}catch{d=Math.floor(d/2)}return y.stringifyByChar(l)}s.applyFromCharCode=v;function E(l,d){for(var b=0;b"u"&&(l[b]=arguments[d][b]);return l},s.prepareContent=function(l,d,b,x,P){var g=n.Promise.resolve(d).then(function(I){var C=f.blob&&(I instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(I))!==-1);return C&&typeof FileReader<"u"?new n.Promise(function(S,N){var D=new FileReader;D.onload=function(V){S(V.target.result)},D.onerror=function(V){N(V.target.error)},D.readAsArrayBuffer(I)}):I});return g.then(function(I){var C=s.getTypeOf(I);return C?(C==="arraybuffer"?I=s.transformTo("uint8array",I):C==="string"&&(P?I=a.decode(I):b&&x!==!0&&(I=m(I))),I):n.Promise.reject(new Error("Can't read the data of '"+l+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,r,s){var f=e("./reader/readerFor"),a=e("./utils"),c=e("./signature"),n=e("./zipEntry"),m=e("./support");function o(_){this.files=[],this.loadOptions=_}o.prototype={checkSignature:function(_){if(!this.reader.readAndCheckSignature(_)){this.reader.index-=4;var y=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(y)+", expected "+a.pretty(_)+")")}},isSignature:function(_,y){var v=this.reader.index;this.reader.setIndex(_);var E=this.reader.readString(4),F=E===y;return this.reader.setIndex(v),F},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var _=this.reader.readData(this.zipCommentLength),y=m.uint8array?"uint8array":"array",v=a.transformTo(y,_);this.zipComment=this.loadOptions.decodeFileName(v)},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 _=this.zip64EndOfCentralSize-44,y=0,v,E,F;y<_;)v=this.reader.readInt(2),E=this.reader.readInt(4),F=this.reader.readData(E),this.zip64ExtensibleData[v]={id:v,length:E,value:F}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var _,y;for(_=0;_0)this.isSignature(v,c.CENTRAL_FILE_HEADER)||(this.reader.zero=F);else if(F<0)throw new Error("Corrupted zip: missing "+Math.abs(F)+" bytes.")},prepareReader:function(_){this.reader=f(_)},load:function(_){this.prepareReader(_),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=o},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,r,s){var f=e("./reader/readerFor"),a=e("./utils"),c=e("./compressedObject"),n=e("./crc32"),m=e("./utf8"),o=e("./compressions"),_=e("./support"),y=0,v=3,E=function(l){for(var d in o)if(Object.prototype.hasOwnProperty.call(o,d)&&o[d].magic===l)return o[d];return null};function F(l,d){this.options=l,this.loadOptions=d}F.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(l){var d,b;if(l.skip(22),this.fileNameLength=l.readInt(2),b=l.readInt(2),this.fileName=l.readData(this.fileNameLength),l.skip(b),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(d=E(this.compressionMethod),d===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new c(this.compressedSize,this.uncompressedSize,this.crc32,d,l.readData(this.compressedSize))},readCentralPart:function(l){this.versionMadeBy=l.readInt(2),l.skip(2),this.bitFlag=l.readInt(2),this.compressionMethod=l.readString(2),this.date=l.readDate(),this.crc32=l.readInt(4),this.compressedSize=l.readInt(4),this.uncompressedSize=l.readInt(4);var d=l.readInt(2);if(this.extraFieldsLength=l.readInt(2),this.fileCommentLength=l.readInt(2),this.diskNumberStart=l.readInt(2),this.internalFileAttributes=l.readInt(2),this.externalFileAttributes=l.readInt(4),this.localHeaderOffset=l.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");l.skip(d),this.readExtraFields(l),this.parseZIP64ExtraField(l),this.fileComment=l.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var l=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),l===y&&(this.dosPermissions=this.externalFileAttributes&63),l===v&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var l=f(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=l.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=l.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=l.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=l.readInt(4))}},readExtraFields:function(l){var d=l.index+this.extraFieldsLength,b,x,P;for(this.extraFields||(this.extraFields={});l.index+40?S.windowBits=-S.windowBits:S.gzip&&S.windowBits>0&&S.windowBits<16&&(S.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m,this.strm.avail_out=0;var N=f.deflateInit2(this.strm,S.level,S.method,S.windowBits,S.memLevel,S.strategy);if(N!==v)throw new Error(n[N]);if(S.header&&f.deflateSetHeader(this.strm,S.header),S.dictionary){var D;if(typeof S.dictionary=="string"?D=c.string2buf(S.dictionary):o.call(S.dictionary)==="[object ArrayBuffer]"?D=new Uint8Array(S.dictionary):D=S.dictionary,N=f.deflateSetDictionary(this.strm,D),N!==v)throw new Error(n[N]);this._dict_set=!0}}x.prototype.push=function(C,S){var N=this.strm,D=this.options.chunkSize,V,R;if(this.ended)return!1;R=S===~~S?S:S===!0?y:_,typeof C=="string"?N.input=c.string2buf(C):o.call(C)==="[object ArrayBuffer]"?N.input=new Uint8Array(C):N.input=C,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new a.Buf8(D),N.next_out=0,N.avail_out=D),V=f.deflate(N,R),V!==E&&V!==v)return this.onEnd(V),this.ended=!0,!1;(N.avail_out===0||N.avail_in===0&&(R===y||R===F))&&(this.options.to==="string"?this.onData(c.buf2binstring(a.shrinkBuf(N.output,N.next_out))):this.onData(a.shrinkBuf(N.output,N.next_out)))}while((N.avail_in>0||N.avail_out===0)&&V!==E);return R===y?(V=f.deflateEnd(this.strm),this.onEnd(V),this.ended=!0,V===v):(R===F&&(this.onEnd(v),N.avail_out=0),!0)},x.prototype.onData=function(C){this.chunks.push(C)},x.prototype.onEnd=function(C){C===v&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=C,this.msg=this.strm.msg};function P(C,S){var N=new x(S);if(N.push(C,!0),N.err)throw N.msg||n[N.err];return N.result}function g(C,S){return S=S||{},S.raw=!0,P(C,S)}function I(C,S){return S=S||{},S.gzip=!0,P(C,S)}s.Deflate=x,s.deflate=P,s.deflateRaw=g,s.gzip=I},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,r,s){var f=e("./zlib/inflate"),a=e("./utils/common"),c=e("./utils/strings"),n=e("./zlib/constants"),m=e("./zlib/messages"),o=e("./zlib/zstream"),_=e("./zlib/gzheader"),y=Object.prototype.toString;function v(l){if(!(this instanceof v))return new v(l);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},l||{});var d=this.options;d.raw&&d.windowBits>=0&&d.windowBits<16&&(d.windowBits=-d.windowBits,d.windowBits===0&&(d.windowBits=-15)),d.windowBits>=0&&d.windowBits<16&&!(l&&l.windowBits)&&(d.windowBits+=32),d.windowBits>15&&d.windowBits<48&&(d.windowBits&15)===0&&(d.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var b=f.inflateInit2(this.strm,d.windowBits);if(b!==n.Z_OK)throw new Error(m[b]);this.header=new _,f.inflateGetHeader(this.strm,this.header)}v.prototype.push=function(l,d){var b=this.strm,x=this.options.chunkSize,P=this.options.dictionary,g,I,C,S,N,D,V=!1;if(this.ended)return!1;I=d===~~d?d:d===!0?n.Z_FINISH:n.Z_NO_FLUSH,typeof l=="string"?b.input=c.binstring2buf(l):y.call(l)==="[object ArrayBuffer]"?b.input=new Uint8Array(l):b.input=l,b.next_in=0,b.avail_in=b.input.length;do{if(b.avail_out===0&&(b.output=new a.Buf8(x),b.next_out=0,b.avail_out=x),g=f.inflate(b,n.Z_NO_FLUSH),g===n.Z_NEED_DICT&&P&&(typeof P=="string"?D=c.string2buf(P):y.call(P)==="[object ArrayBuffer]"?D=new Uint8Array(P):D=P,g=f.inflateSetDictionary(this.strm,D)),g===n.Z_BUF_ERROR&&V===!0&&(g=n.Z_OK,V=!1),g!==n.Z_STREAM_END&&g!==n.Z_OK)return this.onEnd(g),this.ended=!0,!1;b.next_out&&(b.avail_out===0||g===n.Z_STREAM_END||b.avail_in===0&&(I===n.Z_FINISH||I===n.Z_SYNC_FLUSH))&&(this.options.to==="string"?(C=c.utf8border(b.output,b.next_out),S=b.next_out-C,N=c.buf2string(b.output,C),b.next_out=S,b.avail_out=x-S,S&&a.arraySet(b.output,b.output,C,S,0),this.onData(N)):this.onData(a.shrinkBuf(b.output,b.next_out))),b.avail_in===0&&b.avail_out===0&&(V=!0)}while((b.avail_in>0||b.avail_out===0)&&g!==n.Z_STREAM_END);return g===n.Z_STREAM_END&&(I=n.Z_FINISH),I===n.Z_FINISH?(g=f.inflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===n.Z_OK):(I===n.Z_SYNC_FLUSH&&(this.onEnd(n.Z_OK),b.avail_out=0),!0)},v.prototype.onData=function(l){this.chunks.push(l)},v.prototype.onEnd=function(l){l===n.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=l,this.msg=this.strm.msg};function E(l,d){var b=new v(d);if(b.push(l,!0),b.err)throw b.msg||m[b.err];return b.result}function F(l,d){return d=d||{},d.raw=!0,E(l,d)}s.Inflate=v,s.inflate=E,s.inflateRaw=F,s.ungzip=E},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,r,s){var f=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";s.assign=function(n){for(var m=Array.prototype.slice.call(arguments,1);m.length;){var o=m.shift();if(o){if(typeof o!="object")throw new TypeError(o+"must be non-object");for(var _ in o)o.hasOwnProperty(_)&&(n[_]=o[_])}}return n},s.shrinkBuf=function(n,m){return n.length===m?n:n.subarray?n.subarray(0,m):(n.length=m,n)};var a={arraySet:function(n,m,o,_,y){if(m.subarray&&n.subarray){n.set(m.subarray(o,o+_),y);return}for(var v=0;v<_;v++)n[y+v]=m[o+v]},flattenChunks:function(n){var m,o,_,y,v,E;for(_=0,m=0,o=n.length;m=252?6:m>=248?5:m>=240?4:m>=224?3:m>=192?2:1;n[254]=n[254]=1,s.string2buf=function(_){var y,v,E,F,l,d=_.length,b=0;for(F=0;F>>6,y[l++]=128|v&63):v<65536?(y[l++]=224|v>>>12,y[l++]=128|v>>>6&63,y[l++]=128|v&63):(y[l++]=240|v>>>18,y[l++]=128|v>>>12&63,y[l++]=128|v>>>6&63,y[l++]=128|v&63);return y};function o(_,y){if(y<65537&&(_.subarray&&c||!_.subarray&&a))return String.fromCharCode.apply(null,f.shrinkBuf(_,y));for(var v="",E=0;E4){b[E++]=65533,v+=l-1;continue}for(F&=l===2?31:l===3?15:7;l>1&&v1){b[E++]=65533;continue}F<65536?b[E++]=F:(F-=65536,b[E++]=55296|F>>10&1023,b[E++]=56320|F&1023)}return o(b,E)},s.utf8border=function(_,y){var v;for(y=y||_.length,y>_.length&&(y=_.length),v=y-1;v>=0&&(_[v]&192)===128;)v--;return v<0||v===0?y:v+n[_[v]]>y?v:y}},{"./common":41}],43:[function(e,r,s){function f(a,c,n,m){for(var o=a&65535|0,_=a>>>16&65535|0,y=0;n!==0;){y=n>2e3?2e3:n,n-=y;do o=o+c[m++]|0,_=_+o|0;while(--y);o%=65521,_%=65521}return o|_<<16|0}r.exports=f},{}],44:[function(e,r,s){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,r,s){function f(){for(var n,m=[],o=0;o<256;o++){n=o;for(var _=0;_<8;_++)n=n&1?3988292384^n>>>1:n>>>1;m[o]=n}return m}var a=f();function c(n,m,o,_){var y=a,v=_+o;n^=-1;for(var E=_;E>>8^y[(n^m[E])&255];return n^-1}r.exports=c},{}],46:[function(e,r,s){var f=e("../utils/common"),a=e("./trees"),c=e("./adler32"),n=e("./crc32"),m=e("./messages"),o=0,_=1,y=3,v=4,E=5,F=0,l=1,d=-2,b=-3,x=-5,P=-1,g=1,I=2,C=3,S=4,N=0,D=2,V=8,R=9,j=15,$=8,G=29,et=256,W=et+1+G,Z=30,Q=19,at=2*W+1,ht=15,K=3,ot=258,nt=ot+K+1,kt=32,Ft=42,vt=69,st=73,Ct=91,gt=103,dt=113,bt=666,ct=1,At=2,Mt=3,Ut=4,ut=3;function Nt(i,A){return i.msg=m[A],A}function he(i){return(i<<1)-(i>4?9:0)}function Vt(i){for(var A=i.length;--A>=0;)i[A]=0}function Bt(i){var A=i.state,T=A.pending;T>i.avail_out&&(T=i.avail_out),T!==0&&(f.arraySet(i.output,A.pending_buf,A.pending_out,T,i.next_out),i.next_out+=T,A.pending_out+=T,i.total_out+=T,i.avail_out-=T,A.pending-=T,A.pending===0&&(A.pending_out=0))}function _t(i,A){a._tr_flush_block(i,i.block_start>=0?i.block_start:-1,i.strstart-i.block_start,A),i.block_start=i.strstart,Bt(i.strm)}function rt(i,A){i.pending_buf[i.pending++]=A}function jt(i,A){i.pending_buf[i.pending++]=A>>>8&255,i.pending_buf[i.pending++]=A&255}function de(i,A,T,u){var w=i.avail_in;return w>u&&(w=u),w===0?0:(i.avail_in-=w,f.arraySet(A,i.input,i.next_in,w,T),i.state.wrap===1?i.adler=c(i.adler,A,w,T):i.state.wrap===2&&(i.adler=n(i.adler,A,w,T)),i.next_in+=w,i.total_in+=w,w)}function ae(i,A){var T=i.max_chain_length,u=i.strstart,w,O,J=i.prev_length,Y=i.nice_match,X=i.strstart>i.w_size-nt?i.strstart-(i.w_size-nt):0,ft=i.window,qt=i.w_mask,mt=i.prev,lt=i.strstart+ot,xt=ft[u+J-1],Tt=ft[u+J];i.prev_length>=i.good_match&&(T>>=2),Y>i.lookahead&&(Y=i.lookahead);do if(w=A,!(ft[w+J]!==Tt||ft[w+J-1]!==xt||ft[w]!==ft[u]||ft[++w]!==ft[u+1])){u+=2,w++;do;while(ft[++u]===ft[++w]&&ft[++u]===ft[++w]&&ft[++u]===ft[++w]&&ft[++u]===ft[++w]&&ft[++u]===ft[++w]&&ft[++u]===ft[++w]&&ft[++u]===ft[++w]&&ft[++u]===ft[++w]&&uJ){if(i.match_start=A,J=O,O>=Y)break;xt=ft[u+J-1],Tt=ft[u+J]}}while((A=mt[A&qt])>X&&--T!==0);return J<=i.lookahead?J:i.lookahead}function Zt(i){var A=i.w_size,T,u,w,O,J;do{if(O=i.window_size-i.lookahead-i.strstart,i.strstart>=A+(A-nt)){f.arraySet(i.window,i.window,A,A,0),i.match_start-=A,i.strstart-=A,i.block_start-=A,u=i.hash_size,T=u;do w=i.head[--T],i.head[T]=w>=A?w-A:0;while(--u);u=A,T=u;do w=i.prev[--T],i.prev[T]=w>=A?w-A:0;while(--u);O+=A}if(i.strm.avail_in===0)break;if(u=de(i.strm,i.window,i.strstart+i.lookahead,O),i.lookahead+=u,i.lookahead+i.insert>=K)for(J=i.strstart-i.insert,i.ins_h=i.window[J],i.ins_h=(i.ins_h<i.pending_buf_size-5&&(T=i.pending_buf_size-5);;){if(i.lookahead<=1){if(Zt(i),i.lookahead===0&&A===o)return ct;if(i.lookahead===0)break}i.strstart+=i.lookahead,i.lookahead=0;var u=i.block_start+T;if((i.strstart===0||i.strstart>=u)&&(i.lookahead=i.strstart-u,i.strstart=u,_t(i,!1),i.strm.avail_out===0)||i.strstart-i.block_start>=i.w_size-nt&&(_t(i,!1),i.strm.avail_out===0))return ct}return i.insert=0,A===v?(_t(i,!0),i.strm.avail_out===0?Mt:Ut):(i.strstart>i.block_start&&(_t(i,!1),i.strm.avail_out===0),ct)}function ne(i,A){for(var T,u;;){if(i.lookahead=K&&(i.ins_h=(i.ins_h<=K)if(u=a._tr_tally(i,i.strstart-i.match_start,i.match_length-K),i.lookahead-=i.match_length,i.match_length<=i.max_lazy_match&&i.lookahead>=K){i.match_length--;do i.strstart++,i.ins_h=(i.ins_h<=K&&(i.ins_h=(i.ins_h<4096)&&(i.match_length=K-1)),i.prev_length>=K&&i.match_length<=i.prev_length){w=i.strstart+i.lookahead-K,u=a._tr_tally(i,i.strstart-1-i.prev_match,i.prev_length-K),i.lookahead-=i.prev_length-1,i.prev_length-=2;do++i.strstart<=w&&(i.ins_h=(i.ins_h<=K&&i.strstart>0&&(w=i.strstart-1,u=J[w],u===J[++w]&&u===J[++w]&&u===J[++w])){O=i.strstart+ot;do;while(u===J[++w]&&u===J[++w]&&u===J[++w]&&u===J[++w]&&u===J[++w]&&u===J[++w]&&u===J[++w]&&u===J[++w]&&wi.lookahead&&(i.match_length=i.lookahead)}if(i.match_length>=K?(T=a._tr_tally(i,1,i.match_length-K),i.lookahead-=i.match_length,i.strstart+=i.match_length,i.match_length=0):(T=a._tr_tally(i,0,i.window[i.strstart]),i.lookahead--,i.strstart++),T&&(_t(i,!1),i.strm.avail_out===0))return ct}return i.insert=0,A===v?(_t(i,!0),i.strm.avail_out===0?Mt:Ut):i.last_lit&&(_t(i,!1),i.strm.avail_out===0)?ct:At}function se(i,A){for(var T;;){if(i.lookahead===0&&(Zt(i),i.lookahead===0)){if(A===o)return ct;break}if(i.match_length=0,T=a._tr_tally(i,0,i.window[i.strstart]),i.lookahead--,i.strstart++,T&&(_t(i,!1),i.strm.avail_out===0))return ct}return i.insert=0,A===v?(_t(i,!0),i.strm.avail_out===0?Mt:Ut):i.last_lit&&(_t(i,!1),i.strm.avail_out===0)?ct:At}function Pt(i,A,T,u,w){this.good_length=i,this.max_lazy=A,this.nice_length=T,this.max_chain=u,this.func=w}var Gt;Gt=[new Pt(0,0,0,0,ue),new Pt(4,4,8,4,ne),new Pt(4,5,16,8,ne),new Pt(4,6,32,32,ne),new Pt(4,4,16,16,Wt),new Pt(8,16,32,32,Wt),new Pt(8,16,128,128,Wt),new Pt(8,32,128,256,Wt),new Pt(32,128,258,1024,Wt),new Pt(32,258,258,4096,Wt)];function pe(i){i.window_size=2*i.w_size,Vt(i.head),i.max_lazy_match=Gt[i.level].max_lazy,i.good_match=Gt[i.level].good_length,i.nice_match=Gt[i.level].nice_length,i.max_chain_length=Gt[i.level].max_chain,i.strstart=0,i.block_start=0,i.lookahead=0,i.insert=0,i.match_length=i.prev_length=K-1,i.match_available=0,i.ins_h=0}function p(){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=V,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 f.Buf16(at*2),this.dyn_dtree=new f.Buf16((2*Z+1)*2),this.bl_tree=new f.Buf16((2*Q+1)*2),Vt(this.dyn_ltree),Vt(this.dyn_dtree),Vt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new f.Buf16(ht+1),this.heap=new f.Buf16(2*W+1),Vt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new f.Buf16(2*W+1),Vt(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 B(i){var A;return!i||!i.state?Nt(i,d):(i.total_in=i.total_out=0,i.data_type=D,A=i.state,A.pending=0,A.pending_out=0,A.wrap<0&&(A.wrap=-A.wrap),A.status=A.wrap?Ft:dt,i.adler=A.wrap===2?0:1,A.last_flush=o,a._tr_init(A),F)}function U(i){var A=B(i);return A===F&&pe(i.state),A}function H(i,A){return!i||!i.state||i.state.wrap!==2?d:(i.state.gzhead=A,F)}function k(i,A,T,u,w,O){if(!i)return d;var J=1;if(A===P&&(A=6),u<0?(J=0,u=-u):u>15&&(J=2,u-=16),w<1||w>R||T!==V||u<8||u>15||A<0||A>9||O<0||O>S)return Nt(i,d);u===8&&(u=9);var Y=new p;return i.state=Y,Y.strm=i,Y.wrap=J,Y.gzhead=null,Y.w_bits=u,Y.w_size=1<E||A<0)return i?Nt(i,d):d;if(u=i.state,!i.output||!i.input&&i.avail_in!==0||u.status===bt&&A!==v)return Nt(i,i.avail_out===0?x:d);if(u.strm=i,T=u.last_flush,u.last_flush=A,u.status===Ft)if(u.wrap===2)i.adler=0,rt(u,31),rt(u,139),rt(u,8),u.gzhead?(rt(u,(u.gzhead.text?1:0)+(u.gzhead.hcrc?2:0)+(u.gzhead.extra?4:0)+(u.gzhead.name?8:0)+(u.gzhead.comment?16:0)),rt(u,u.gzhead.time&255),rt(u,u.gzhead.time>>8&255),rt(u,u.gzhead.time>>16&255),rt(u,u.gzhead.time>>24&255),rt(u,u.level===9?2:u.strategy>=I||u.level<2?4:0),rt(u,u.gzhead.os&255),u.gzhead.extra&&u.gzhead.extra.length&&(rt(u,u.gzhead.extra.length&255),rt(u,u.gzhead.extra.length>>8&255)),u.gzhead.hcrc&&(i.adler=n(i.adler,u.pending_buf,u.pending,0)),u.gzindex=0,u.status=vt):(rt(u,0),rt(u,0),rt(u,0),rt(u,0),rt(u,0),rt(u,u.level===9?2:u.strategy>=I||u.level<2?4:0),rt(u,ut),u.status=dt);else{var J=V+(u.w_bits-8<<4)<<8,Y=-1;u.strategy>=I||u.level<2?Y=0:u.level<6?Y=1:u.level===6?Y=2:Y=3,J|=Y<<6,u.strstart!==0&&(J|=kt),J+=31-J%31,u.status=dt,jt(u,J),u.strstart!==0&&(jt(u,i.adler>>>16),jt(u,i.adler&65535)),i.adler=1}if(u.status===vt)if(u.gzhead.extra){for(w=u.pending;u.gzindex<(u.gzhead.extra.length&65535)&&!(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>w&&(i.adler=n(i.adler,u.pending_buf,u.pending-w,w)),Bt(i),w=u.pending,u.pending===u.pending_buf_size));)rt(u,u.gzhead.extra[u.gzindex]&255),u.gzindex++;u.gzhead.hcrc&&u.pending>w&&(i.adler=n(i.adler,u.pending_buf,u.pending-w,w)),u.gzindex===u.gzhead.extra.length&&(u.gzindex=0,u.status=st)}else u.status=st;if(u.status===st)if(u.gzhead.name){w=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>w&&(i.adler=n(i.adler,u.pending_buf,u.pending-w,w)),Bt(i),w=u.pending,u.pending===u.pending_buf_size)){O=1;break}u.gzindexw&&(i.adler=n(i.adler,u.pending_buf,u.pending-w,w)),O===0&&(u.gzindex=0,u.status=Ct)}else u.status=Ct;if(u.status===Ct)if(u.gzhead.comment){w=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>w&&(i.adler=n(i.adler,u.pending_buf,u.pending-w,w)),Bt(i),w=u.pending,u.pending===u.pending_buf_size)){O=1;break}u.gzindexw&&(i.adler=n(i.adler,u.pending_buf,u.pending-w,w)),O===0&&(u.status=gt)}else u.status=gt;if(u.status===gt&&(u.gzhead.hcrc?(u.pending+2>u.pending_buf_size&&Bt(i),u.pending+2<=u.pending_buf_size&&(rt(u,i.adler&255),rt(u,i.adler>>8&255),i.adler=0,u.status=dt)):u.status=dt),u.pending!==0){if(Bt(i),i.avail_out===0)return u.last_flush=-1,F}else if(i.avail_in===0&&he(A)<=he(T)&&A!==v)return Nt(i,x);if(u.status===bt&&i.avail_in!==0)return Nt(i,x);if(i.avail_in!==0||u.lookahead!==0||A!==o&&u.status!==bt){var X=u.strategy===I?se(u,A):u.strategy===C?_e(u,A):Gt[u.level].func(u,A);if((X===Mt||X===Ut)&&(u.status=bt),X===ct||X===Mt)return i.avail_out===0&&(u.last_flush=-1),F;if(X===At&&(A===_?a._tr_align(u):A!==E&&(a._tr_stored_block(u,0,0,!1),A===y&&(Vt(u.head),u.lookahead===0&&(u.strstart=0,u.block_start=0,u.insert=0))),Bt(i),i.avail_out===0))return u.last_flush=-1,F}return A!==v?F:u.wrap<=0?l:(u.wrap===2?(rt(u,i.adler&255),rt(u,i.adler>>8&255),rt(u,i.adler>>16&255),rt(u,i.adler>>24&255),rt(u,i.total_in&255),rt(u,i.total_in>>8&255),rt(u,i.total_in>>16&255),rt(u,i.total_in>>24&255)):(jt(u,i.adler>>>16),jt(u,i.adler&65535)),Bt(i),u.wrap>0&&(u.wrap=-u.wrap),u.pending!==0?F:l)}function M(i){var A;return!i||!i.state?d:(A=i.state.status,A!==Ft&&A!==vt&&A!==st&&A!==Ct&&A!==gt&&A!==dt&&A!==bt?Nt(i,d):(i.state=null,A===dt?Nt(i,b):F))}function q(i,A){var T=A.length,u,w,O,J,Y,X,ft,qt;if(!i||!i.state||(u=i.state,J=u.wrap,J===2||J===1&&u.status!==Ft||u.lookahead))return d;for(J===1&&(i.adler=c(i.adler,A,T,0)),u.wrap=0,T>=u.w_size&&(J===0&&(Vt(u.head),u.strstart=0,u.block_start=0,u.insert=0),qt=new f.Buf8(u.w_size),f.arraySet(qt,A,T-u.w_size,u.w_size,0),A=qt,T=u.w_size),Y=i.avail_in,X=i.next_in,ft=i.input,i.avail_in=T,i.next_in=0,i.input=A,Zt(u);u.lookahead>=K;){w=u.strstart,O=u.lookahead-(K-1);do u.ins_h=(u.ins_h<>>24,g>>>=R,I-=R,R=V>>>16&255,R===0)Z[v++]=V&65535;else if(R&16){j=V&65535,R&=15,R&&(I>>=R,I-=R),I<15&&(g+=W[_++]<>>24,g>>>=R,I-=R,R=V>>>16&255,R&16){if($=V&65535,R&=15,Il){n.msg="invalid distance too far back",o.mode=f;break t}if(g>>>=R,I-=R,R=v-E,$>R){if(R=$-R,R>b&&o.sane){n.msg="invalid distance too far back",o.mode=f;break t}if(G=0,et=P,x===0){if(G+=d-R,R2;)Z[v++]=et[G++],Z[v++]=et[G++],Z[v++]=et[G++],j-=3;j&&(Z[v++]=et[G++],j>1&&(Z[v++]=et[G++]))}else{G=v-$;do Z[v++]=Z[G++],Z[v++]=Z[G++],Z[v++]=Z[G++],j-=3;while(j>2);j&&(Z[v++]=Z[G++],j>1&&(Z[v++]=Z[G++]))}}else if((R&64)===0){V=S[(V&65535)+(g&(1<>3,_-=j,I-=j<<3,g&=(1<>>24&255)+(k>>>8&65280)+((k&65280)<<8)+((k&255)<<24)}function de(){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 f.Buf16(320),this.work=new f.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ae(k){var z;return!k||!k.state?x:(z=k.state,k.total_in=k.total_out=z.total=0,k.msg="",z.wrap&&(k.adler=z.wrap&1),z.mode=S,z.last=0,z.havedict=0,z.dmax=32768,z.head=null,z.hold=0,z.bits=0,z.lencode=z.lendyn=new f.Buf32(Vt),z.distcode=z.distdyn=new f.Buf32(Bt),z.sane=1,z.back=-1,l)}function Zt(k){var z;return!k||!k.state?x:(z=k.state,z.wsize=0,z.whave=0,z.wnext=0,ae(k))}function ue(k,z){var h,M;return!k||!k.state||(M=k.state,z<0?(h=0,z=-z):(h=(z>>4)+1,z<48&&(z&=15)),z&&(z<8||z>15))?x:(M.window!==null&&M.wbits!==z&&(M.window=null),M.wrap=h,M.wbits=z,Zt(k))}function ne(k,z){var h,M;return k?(M=new de,k.state=M,M.window=null,h=ue(k,z),h!==l&&(k.state=null),h):x}function Wt(k){return ne(k,rt)}var _e=!0,se,Pt;function Gt(k){if(_e){var z;for(se=new f.Buf32(512),Pt=new f.Buf32(32),z=0;z<144;)k.lens[z++]=8;for(;z<256;)k.lens[z++]=9;for(;z<280;)k.lens[z++]=7;for(;z<288;)k.lens[z++]=8;for(m(_,k.lens,0,288,se,0,k.work,{bits:9}),z=0;z<32;)k.lens[z++]=5;m(y,k.lens,0,32,Pt,0,k.work,{bits:5}),_e=!1}k.lencode=se,k.lenbits=9,k.distcode=Pt,k.distbits=5}function pe(k,z,h,M){var q,i=k.state;return i.window===null&&(i.wsize=1<=i.wsize?(f.arraySet(i.window,z,h-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):(q=i.wsize-i.wnext,q>M&&(q=M),f.arraySet(i.window,z,h-M,q,i.wnext),M-=q,M?(f.arraySet(i.window,z,h-M,M,0),i.wnext=M,i.whave=i.wsize):(i.wnext+=q,i.wnext===i.wsize&&(i.wnext=0),i.whave>>8&255,h.check=c(h.check,Et,2,0),w=0,O=0,h.mode=N;break}if(h.flags=0,h.head&&(h.head.done=!1),!(h.wrap&1)||(((w&255)<<8)+(w>>8))%31){k.msg="incorrect header check",h.mode=ut;break}if((w&15)!==C){k.msg="unknown compression method",h.mode=ut;break}if(w>>>=4,O-=4,yt=(w&15)+8,h.wbits===0)h.wbits=yt;else if(yt>h.wbits){k.msg="invalid window size",h.mode=ut;break}h.dmax=1<>8&1),h.flags&512&&(Et[0]=w&255,Et[1]=w>>>8&255,h.check=c(h.check,Et,2,0)),w=0,O=0,h.mode=D;case D:for(;O<32;){if(T===0)break t;T--,w+=M[i++]<>>8&255,Et[2]=w>>>16&255,Et[3]=w>>>24&255,h.check=c(h.check,Et,4,0)),w=0,O=0,h.mode=V;case V:for(;O<16;){if(T===0)break t;T--,w+=M[i++]<>8),h.flags&512&&(Et[0]=w&255,Et[1]=w>>>8&255,h.check=c(h.check,Et,2,0)),w=0,O=0,h.mode=R;case R:if(h.flags&1024){for(;O<16;){if(T===0)break t;T--,w+=M[i++]<>>8&255,h.check=c(h.check,Et,2,0)),w=0,O=0}else h.head&&(h.head.extra=null);h.mode=j;case j:if(h.flags&1024&&(X=h.length,X>T&&(X=T),X&&(h.head&&(yt=h.head.extra_len-h.length,h.head.extra||(h.head.extra=new Array(h.head.extra_len)),f.arraySet(h.head.extra,M,i,X,yt)),h.flags&512&&(h.check=c(h.check,M,X,i)),T-=X,i+=X,h.length-=X),h.length))break t;h.length=0,h.mode=$;case $:if(h.flags&2048){if(T===0)break t;X=0;do yt=M[i+X++],h.head&&yt&&h.length<65536&&(h.head.name+=String.fromCharCode(yt));while(yt&&X>9&1,h.head.done=!0),k.adler=h.check=0,h.mode=Q;break;case W:for(;O<32;){if(T===0)break t;T--,w+=M[i++]<>>=O&7,O-=O&7,h.mode=At;break}for(;O<3;){if(T===0)break t;T--,w+=M[i++]<>>=1,O-=1,w&3){case 0:h.mode=ht;break;case 1:if(Gt(h),h.mode=vt,z===F){w>>>=2,O-=2;break t}break;case 2:h.mode=nt;break;case 3:k.msg="invalid block type",h.mode=ut}w>>>=2,O-=2;break;case ht:for(w>>>=O&7,O-=O&7;O<32;){if(T===0)break t;T--,w+=M[i++]<>>16^65535)){k.msg="invalid stored block lengths",h.mode=ut;break}if(h.length=w&65535,w=0,O=0,h.mode=K,z===F)break t;case K:h.mode=ot;case ot:if(X=h.length,X){if(X>T&&(X=T),X>u&&(X=u),X===0)break t;f.arraySet(q,M,i,X,A),T-=X,i+=X,u-=X,A+=X,h.length-=X;break}h.mode=Q;break;case nt:for(;O<14;){if(T===0)break t;T--,w+=M[i++]<>>=5,O-=5,h.ndist=(w&31)+1,w>>>=5,O-=5,h.ncode=(w&15)+4,w>>>=4,O-=4,h.nlen>286||h.ndist>30){k.msg="too many length or distance symbols",h.mode=ut;break}h.have=0,h.mode=kt;case kt:for(;h.have>>=3,O-=3}for(;h.have<19;)h.lens[Me[h.have++]]=0;if(h.lencode=h.lendyn,h.lenbits=7,te={bits:h.lenbits},Yt=m(o,h.lens,0,19,h.lencode,0,h.work,te),h.lenbits=te.bits,Yt){k.msg="invalid code lengths set",h.mode=ut;break}h.have=0,h.mode=Ft;case Ft:for(;h.have>>24,xt=mt>>>16&255,Tt=mt&65535,!(lt<=O);){if(T===0)break t;T--,w+=M[i++]<>>=lt,O-=lt,h.lens[h.have++]=Tt;else{if(Tt===16){for(Jt=lt+2;O>>=lt,O-=lt,h.have===0){k.msg="invalid bit length repeat",h.mode=ut;break}yt=h.lens[h.have-1],X=3+(w&3),w>>>=2,O-=2}else if(Tt===17){for(Jt=lt+3;O>>=lt,O-=lt,yt=0,X=3+(w&7),w>>>=3,O-=3}else{for(Jt=lt+7;O