=0?b:-1,m-b,t),b=m,e.flush_pending()}function dt(){let t,n,i,r;do{if(r=c-k-m,0===r&&0===m&&0===k)r=a;else if(-1==r)r--;else if(m>=a+a-262){l.set(l.subarray(a,a+a),0),v-=a,m-=a,b-=a,t=_,i=t;do{n=65535&f[--i],f[i]=n>=a?n-a:0}while(0!=--t);t=a,i=t;do{n=65535&d[--i],d[i]=n>=a?n-a:0}while(0!=--t);r+=a}if(0===e.avail_in)return;t=e.read_buf(l,m+k,r),k+=t,k>=3&&(u=255&l[m],u=(u<a-262?m-(a-262):0;let f=I;const u=o,_=m+258;let h=l[r+s-1],w=l[r+s];A>=z&&(i>>=2),f>k&&(f=k);do{if(e=t,l[e+s]==w&&l[e+s-1]==h&&l[e]==l[r]&&l[++e]==l[r+1]){r+=2,e++;do{}while(l[++r]==l[++e]&&l[++r]==l[++e]&&l[++r]==l[++e]&&l[++r]==l[++e]&&l[++r]==l[++e]&&l[++r]==l[++e]&&l[++r]==l[++e]&&l[++r]==l[++e]&&r<_);if(n=258-(_-r),r=_-258,n>s){if(v=t,s=n,n>=f)break;h=l[r+s-1],w=l[r+s]}}}while((t=65535&d[t&u])>c&&0!=--i);return s<=k?s:k}function ut(e){return e.total_in=e.total_out=0,e.msg=null,t.pending=0,t.pending_out=0,n=113,r=0,T.dyn_tree=D,T.stat_desc=H.static_l_desc,M.dyn_tree=F,M.stat_desc=H.static_d_desc,O.dyn_tree=C,O.stat_desc=H.static_bl_desc,Z=0,Y=0,G=8,X(),function(){c=2*a,f[_-1]=0;for(let t=0;t<_-1;t++)f[t]=0;U=P[R].max_lazy,z=P[R].good_length,I=P[R].nice_length,E=P[R].max_chain,m=0,b=0,k=0,g=A=2,y=0,u=0}(),0}t.depth=[],t.bl_count=[],t.heap=[],D=[],F=[],C=[],t.pqdownheap=function(e,n){const i=t.heap,r=i[n];let a=n<<1;for(;a<=t.heap_len&&(a9||8!=c||r<9||r>15||n<0||n>9||b<0||b>2?-2:(e.dstate=t,s=r,a=1<9||n<0||n>2?-2:(P[R].func!=P[e].func&&0!==t.total_in&&(i=t.deflate(1)),R!=e&&(R=e,U=P[R].max_lazy,z=P[R].good_length,I=P[R].nice_length,E=P[R].max_chain),S=n,i)},t.deflateSetDictionary=function(t,e,i){let r,s=i,c=0;if(!e||42!=n)return-2;if(s<3)return 0;for(s>a-262&&(s=a-262,c=i-s),l.set(e.subarray(c,c+s),0),m=s,b=s,u=255&l[0],u=(u<4||h<0)return-2;if(!c.next_out||!c.next_in&&0!==c.avail_in||666==n&&4!=h)return c.msg=N[4],-2;if(0===c.avail_out)return c.msg=N[7],-5;var C;if(e=c,D=r,r=h,42==n&&(z=8+(s-8<<4)<<8,I=(R-1&255)>>1,I>3&&(I=3),z|=I<<6,0!==m&&(z|=32),z+=31-z%31,n=113,Q((C=z)>>8&255),Q(255&C)),0!==t.pending){if(e.flush_pending(),0===e.avail_out)return r=-1,0}else if(0===e.avail_in&&h<=D&&4!=h)return e.msg=N[7],-5;if(666==n&&0!==e.avail_in)return c.msg=N[7],-5;if(0!==e.avail_in||0!==k||0!=h&&666!=n){switch(F=-1,P[R].func){case 0:F=function(t){let n,r=65535;for(r>i-5&&(r=i-5);;){if(k<=1){if(dt(),0===k&&0==t)return 0;if(0===k)break}if(m+=k,k=0,n=b+r,(0===m||m>=n)&&(k=m-n,m=n,ct(!1),0===e.avail_out))return 0;if(m-b>=a-262&&(ct(!1),0===e.avail_out))return 0}return ct(4==t),0===e.avail_out?4==t?2:0:4==t?3:1}(h);break;case 1:F=function(t){let n,i=0;for(;;){if(k<262){if(dt(),k<262&&0==t)return 0;if(0===k)break}if(k>=3&&(u=(u<
=3)if(n=rt(m-v,g-3),k-=g,g<=U&&k>=3){g--;do{m++,u=(u<
=3&&(u=(u<
4096)&&(g=2)),A>=3&&g<=A){i=m+k-3,n=rt(m-1-x,A-3),k-=A-1,A-=2;do{++m<=i&&(u=(u<
0&&e.next_in_index!=o&&(r(e.next_in_index),o=e.next_in_index)}while(e.avail_in>0||0===e.avail_out);return s=new Uint8Array(c),d.forEach((function(t){s.set(t,l),l+=t.length})),s}},this.flush=function(){let t,r,a=0,s=0;const o=[];do{if(e.next_out_index=0,e.avail_out=n,t=e.deflate(4),1!=t&&0!=t)throw new Error("deflating: "+e.msg);n-e.avail_out>0&&o.push(i.slice(0,e.next_out_index)),s+=e.next_out_index}while(e.avail_in>0||0===e.avail_out);return e.deflateEnd(),r=new Uint8Array(s),o.forEach((function(t){r.set(t,a),a+=t.length})),r}}q.prototype={deflateInit:function(t,e){const n=this;return n.dstate=new V,e||(e=15),n.dstate.deflateInit(n,t,e)},deflate:function(t){const e=this;return e.dstate?e.dstate.deflate(e,t):-2},deflateEnd:function(){const t=this;if(!t.dstate)return-2;const e=t.dstate.deflateEnd();return t.dstate=null,e},deflateParams:function(t,e){const n=this;return n.dstate?n.dstate.deflateParams(n,t,e):-2},deflateSetDictionary:function(t,e){const n=this;return n.dstate?n.dstate.deflateSetDictionary(n,t,e):-2},read_buf:function(t,e,n){const i=this;let r=i.avail_in;return r>n&&(r=n),0===r?0:(i.avail_in-=r,t.set(i.next_in.subarray(i.next_in_index,i.next_in_index+r),e),i.next_in_index+=r,i.total_in+=r,r)},flush_pending:function(){const t=this;let e=t.dstate.pending;e>t.avail_out&&(e=t.avail_out),0!==e&&(t.next_out.set(t.dstate.pending_buf.subarray(t.dstate.pending_out,t.dstate.pending_out+e),t.next_out_index),t.next_out_index+=e,t.dstate.pending_out+=e,t.total_out+=e,t.avail_out-=e,t.dstate.pending-=e,0===t.dstate.pending&&(t.dstate.pending_out=0))}};const G=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],Z=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],Y=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],X=[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],J=[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,112,112],Q=[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,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];function tt(){let t,e,n,i,r,a;function s(t,e,s,o,l,c,d,f,u,_,h){let w,p,b,g,x,y,m,v,k,A,E,U,R,S,z;A=0,x=s;do{n[t[e+A]]++,A++,x--}while(0!==x);if(n[0]==s)return d[0]=-1,f[0]=0,0;for(v=f[0],y=1;y<=15&&0===n[y];y++);for(m=y,vx&&(v=x),f[0]=v,S=1<U+v;){if(g++,U+=v,z=b-U,z=z>v?v:z,(p=1<<(y=m-U))>w+1&&(p-=w+1,R=m,y1440)return-3;r[g]=E=_[0],_[0]+=z,0!==g?(a[g]=x,i[0]=y,i[1]=v,y=x>>>U-v,i[2]=E-r[g-1]-y,u.set(i,3*(r[g-1]+y))):d[0]=E}for(i[1]=m-U,A>=s?i[0]=192:h[A]>>U;y>>=1)x^=y;for(x^=y,k=(1<257?(-3==_?u.msg="oversubscribed distance tree":-5==_?(u.msg="incomplete distance tree",_=-3):-4!=_&&(u.msg="empty distance tree with lengths",_=-3),_):0)}}function et(){const t=this;let e,n,i,r,a=0,s=0,o=0,l=0,c=0,d=0,f=0,u=0,_=0,h=0;function w(t,e,n,i,r,a,s,o){let l,c,d,f,u,_,h,w,p,b,g,x,y,m,v,k;h=o.next_in_index,w=o.avail_in,u=s.bitb,_=s.bitk,p=s.write,b=p>=c[k+1],_-=c[k+1],0!=(16&f)){for(f&=15,y=c[k+2]+(u&G[f]),u>>=f,_-=f;_<15;)w--,u|=(255&o.read_byte(h++))<<_,_+=8;for(l=u&x,c=r,d=a,k=3*(d+l),f=c[k];;){if(u>>=c[k+1],_-=c[k+1],0!=(16&f)){for(f&=15;_>=f,_-=f,b-=y,p>=m)v=p-m,p-v>0&&2>p-v?(s.window[p++]=s.window[v++],s.window[p++]=s.window[v++],y-=2):(s.window.set(s.window.subarray(v,v+2),p),p+=2,v+=2,y-=2);else{v=p-m;do{v+=s.end}while(v<0);if(f=s.end-v,y>f){if(y-=f,p-v>0&&f>p-v)do{s.window[p++]=s.window[v++]}while(0!=--f);else s.window.set(s.window.subarray(v,v+f),p),p+=f,v+=f,f=0;v=0}}if(p-v>0&&y>p-v)do{s.window[p++]=s.window[v++]}while(0!=--y);else s.window.set(s.window.subarray(v,v+y),p),p+=y,v+=y,y=0;break}if(0!=(64&f))return o.msg="invalid distance code",y=o.avail_in-w,y=_>>3>3:y,w+=y,h-=y,_-=y<<3,s.bitb=u,s.bitk=_,o.avail_in=w,o.total_in+=h-o.next_in_index,o.next_in_index=h,s.write=p,-3;l+=c[k+2],l+=u&G[f],k=3*(d+l),f=c[k]}break}if(0!=(64&f))return 0!=(32&f)?(y=o.avail_in-w,y=_>>3>3:y,w+=y,h-=y,_-=y<<3,s.bitb=u,s.bitk=_,o.avail_in=w,o.total_in+=h-o.next_in_index,o.next_in_index=h,s.write=p,1):(o.msg="invalid literal/length code",y=o.avail_in-w,y=_>>3>3:y,w+=y,h-=y,_-=y<<3,s.bitb=u,s.bitk=_,o.avail_in=w,o.total_in+=h-o.next_in_index,o.next_in_index=h,s.write=p,-3);if(l+=c[k+2],l+=u&G[f],k=3*(d+l),0===(f=c[k])){u>>=c[k+1],_-=c[k+1],s.window[p++]=c[k+2],b--;break}}else u>>=c[k+1],_-=c[k+1],s.window[p++]=c[k+2],b--}while(b>=258&&w>=10);return y=o.avail_in-w,y=_>>3>3:y,w+=y,h-=y,_-=y<<3,s.bitb=u,s.bitk=_,o.avail_in=w,o.total_in+=h-o.next_in_index,o.next_in_index=h,s.write=p,0}t.init=function(t,a,s,o,l,c){e=0,f=t,u=a,i=s,_=o,r=l,h=c,n=null},t.proc=function(t,p,b){let g,x,y,m,v,k,A,E=0,U=0,R=0;for(R=p.next_in_index,m=p.avail_in,E=t.bitb,U=t.bitk,v=t.write,k=v=258&&m>=10&&(t.bitb=E,t.bitk=U,p.avail_in=m,p.total_in+=R-p.next_in_index,p.next_in_index=R,t.write=v,b=w(f,u,i,_,r,h,t,p),R=p.next_in_index,m=p.avail_in,E=t.bitb,U=t.bitk,v=t.write,k=v>>=n[x+1],U-=n[x+1],y=n[x],0===y){l=n[x+2],e=6;break}if(0!=(16&y)){c=15&y,a=n[x+2],e=2;break}if(0==(64&y)){o=y,s=x/3+n[x+2];break}if(0!=(32&y)){e=7;break}return e=9,p.msg="invalid literal/length code",b=-3,t.bitb=E,t.bitk=U,p.avail_in=m,p.total_in+=R-p.next_in_index,p.next_in_index=R,t.write=v,t.inflate_flush(p,b);case 2:for(g=c;U>=g,U-=g,o=u,n=r,s=h,e=3;case 3:for(g=o;U>=n[x+1],U-=n[x+1],y=n[x],0!=(16&y)){c=15&y,d=n[x+2],e=4;break}if(0==(64&y)){o=y,s=x/3+n[x+2];break}return e=9,p.msg="invalid distance code",b=-3,t.bitb=E,t.bitk=U,p.avail_in=m,p.total_in+=R-p.next_in_index,p.next_in_index=R,t.write=v,t.inflate_flush(p,b);case 4:for(g=c;U>=g,U-=g,e=5;case 5:for(A=v-d;A<0;)A+=t.end;for(;0!==a;){if(0===k&&(v==t.end&&0!==t.read&&(v=0,k=v7&&(U-=8,m++,R--),t.write=v,b=t.inflate_flush(p,b),v=t.write,k=vt.avail_out&&(i=t.avail_out),0!==i&&-5==e&&(e=0),t.avail_out-=i,t.total_out+=i,t.next_out.set(n.window.subarray(a,a+i),r),r+=i,a+=i,a==n.end&&(a=0,n.write==n.end&&(n.write=0),i=n.write-a,i>t.avail_out&&(i=t.avail_out),0!==i&&-5==e&&(e=0),t.avail_out-=i,t.total_out+=i,t.next_out.set(n.window.subarray(a,a+i),r),r+=i,a+=i),t.next_out_index=r,n.read=a,e},n.proc=function(t,e){let h,w,p,b,g,x,y,m;for(b=t.next_in_index,g=t.avail_in,w=n.bitb,p=n.bitk,x=n.write,y=x>>1){case 0:w>>>=3,p-=3,h=7&p,w>>>=h,p-=h,r=1;break;case 1:v=[],k=[],A=[[]],E=[[]],tt.inflate_trees_fixed(v,k,A,E),d.init(v[0],k[0],A[0],0,E[0],0),w>>>=3,p-=3,r=6;break;case 2:w>>>=3,p-=3,r=3;break;case 3:return w>>>=3,p-=3,r=9,t.msg="invalid block type",e=-3,n.bitb=w,n.bitk=p,t.avail_in=g,t.total_in+=b-t.next_in_index,t.next_in_index=b,n.write=x,n.inflate_flush(t,e)}break;case 1:for(;p<32;){if(0===g)return n.bitb=w,n.bitk=p,t.avail_in=g,t.total_in+=b-t.next_in_index,t.next_in_index=b,n.write=x,n.inflate_flush(t,e);e=0,g--,w|=(255&t.read_byte(b++))<>>16&65535)!=(65535&w))return r=9,t.msg="invalid stored block lengths",e=-3,n.bitb=w,n.bitk=p,t.avail_in=g,t.total_in+=b-t.next_in_index,t.next_in_index=b,n.write=x,n.inflate_flush(t,e);a=65535&w,w=p=0,r=0!==a?2:0!==f?7:0;break;case 2:if(0===g)return n.bitb=w,n.bitk=p,t.avail_in=g,t.total_in+=b-t.next_in_index,t.next_in_index=b,n.write=x,n.inflate_flush(t,e);if(0===y&&(x==n.end&&0!==n.read&&(x=0,y=xg&&(h=g),h>y&&(h=y),n.window.set(t.read_buf(b,h),x),b+=h,g-=h,x+=h,y-=h,0!=(a-=h))break;r=0!==f?7:0;break;case 3:for(;p<14;){if(0===g)return n.bitb=w,n.bitk=p,t.avail_in=g,t.total_in+=b-t.next_in_index,t.next_in_index=b,n.write=x,n.inflate_flush(t,e);e=0,g--,w|=(255&t.read_byte(b++))<29||(h>>5&31)>29)return r=9,t.msg="too many length or distance symbols",e=-3,n.bitb=w,n.bitk=p,t.avail_in=g,t.total_in+=b-t.next_in_index,t.next_in_index=b,n.write=x,n.inflate_flush(t,e);if(h=258+(31&h)+(h>>5&31),!i||i.length>>=14,p-=14,o=0,r=4;case 4:for(;o<4+(s>>>10);){for(;p<3;){if(0===g)return n.bitb=w,n.bitk=p,t.avail_in=g,t.total_in+=b-t.next_in_index,t.next_in_index=b,n.write=x,n.inflate_flush(t,e);e=0,g--,w|=(255&t.read_byte(b++))<>>=3,p-=3}for(;o<19;)i[nt[o++]]=0;if(l[0]=7,h=_.inflate_trees_bits(i,l,c,u,t),0!=h)return-3==(e=h)&&(i=null,r=9),n.bitb=w,n.bitk=p,t.avail_in=g,t.total_in+=b-t.next_in_index,t.next_in_index=b,n.write=x,n.inflate_flush(t,e);o=0,r=5;case 5:for(;h=s,!(o>=258+(31&h)+(h>>5&31));){let a,d;for(h=l[0];p>>=h,p-=h,i[o++]=d;else{for(m=18==d?7:d-14,a=18==d?11:3;p>>=h,p-=h,a+=w&G[m],w>>>=m,p-=m,m=o,h=s,m+a>258+(31&h)+(h>>5&31)||16==d&&m<1)return i=null,r=9,t.msg="invalid bit length repeat",e=-3,n.bitb=w,n.bitk=p,t.avail_in=g,t.total_in+=b-t.next_in_index,t.next_in_index=b,n.write=x,n.inflate_flush(t,e);d=16==d?i[m-1]:0;do{i[m++]=d}while(0!=--a);o=m}}if(c[0]=-1,U=[],R=[],S=[],z=[],U[0]=9,R[0]=6,h=s,h=_.inflate_trees_dynamic(257+(31&h),1+(h>>5&31),i,U,R,S,z,u,t),0!=h)return-3==h&&(i=null,r=9),e=h,n.bitb=w,n.bitk=p,t.avail_in=g,t.total_in+=b-t.next_in_index,t.next_in_index=b,n.write=x,n.inflate_flush(t,e);d.init(U[0],R[0],u,S[0],u,z[0]),r=6;case 6:if(n.bitb=w,n.bitk=p,t.avail_in=g,t.total_in+=b-t.next_in_index,t.next_in_index=b,n.write=x,1!=(e=d.proc(n,t,e)))return n.inflate_flush(t,e);if(e=0,d.free(t),b=t.next_in_index,g=t.avail_in,w=n.bitb,p=n.bitk,x=n.write,y=x15?(t.inflateEnd(n),-2):(t.wbits=i,n.istate.blocks=new it(n,1<>4)>r.wbits){r.mode=13,t.msg="invalid window size",r.marker=5;break}r.mode=1;case 1:if(0===t.avail_in)return n;if(n=e,t.avail_in--,t.total_in++,i=255&t.read_byte(t.next_in_index++),((r.method<<8)+i)%31!=0){r.mode=13,t.msg="incorrect header check",r.marker=5;break}if(0==(32&i)){r.mode=7;break}r.mode=2;case 2:if(0===t.avail_in)return n;n=e,t.avail_in--,t.total_in++,r.need=(255&t.read_byte(t.next_in_index++))<<24&4278190080,r.mode=3;case 3:if(0===t.avail_in)return n;n=e,t.avail_in--,t.total_in++,r.need+=(255&t.read_byte(t.next_in_index++))<<16&16711680,r.mode=4;case 4:if(0===t.avail_in)return n;n=e,t.avail_in--,t.total_in++,r.need+=(255&t.read_byte(t.next_in_index++))<<8&65280,r.mode=5;case 5:return 0===t.avail_in?n:(n=e,t.avail_in--,t.total_in++,r.need+=255&t.read_byte(t.next_in_index++),r.mode=6,2);case 6:return r.mode=13,t.msg="need dictionary",r.marker=0,-2;case 7:if(n=r.blocks.proc(t,n),-3==n){r.mode=13,r.marker=0;break}if(0==n&&(n=e),1!=n)return n;n=e,r.blocks.reset(t,r.was),r.mode=12;case 12:return 1;case 13:return-3;default:return-2}},t.inflateSetDictionary=function(t,e,n){let i=0,r=n;if(!t||!t.istate||6!=t.istate.mode)return-2;const a=t.istate;return r>=1<0&&t.next_in_index!=c&&(a(t.next_in_index),c=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return l=new Uint8Array(f),s.forEach((function(t){l.set(t,d),d+=t.length})),l}},this.flush=function(){t.inflateEnd()}}st.prototype={inflateInit:function(t){const e=this;return e.istate=new at,t||(t=15),e.istate.inflateInit(e,t)},inflate:function(t){const e=this;return e.istate?e.istate.inflate(e,t):-2},inflateEnd:function(){const t=this;if(!t.istate)return-2;const e=t.istate.inflateEnd(t);return t.istate=null,e},inflateSync:function(){const t=this;return t.istate?t.istate.inflateSync(t):-2},inflateSetDictionary:function(t,e){const n=this;return n.istate?n.istate.inflateSetDictionary(n,t,e):-2},read_byte:function(t){return this.next_in[t]},read_buf:function(t,e){return this.next_in.subarray(t,t+e)}},self.initCodec=()=>{self.Deflate=K,self.Inflate=ot}}).toString(),e=URL.createObjectURL(new Blob(["("+t+")()"],{type:"text/javascript"}));P({workerScripts:{inflate:[e],deflate:[e]}})}})(),P({Deflate:function(t){const e=new g,n=131072,i=new Uint8Array(n);let r=t?t.level:-1;void 0===r&&(r=-1),e.deflateInit(r),e.next_out=i,this.append=function(t,r){let a,s,o=0,l=0,c=0;const d=[];if(t.length){e.next_in_index=0,e.next_in=t,e.avail_in=t.length;do{if(e.next_out_index=0,e.avail_out=n,a=e.deflate(0),0!=a)throw new Error("deflating: "+e.msg);e.next_out_index&&(e.next_out_index==n?d.push(new Uint8Array(i)):d.push(i.slice(0,e.next_out_index))),c+=e.next_out_index,r&&e.next_in_index>0&&e.next_in_index!=o&&(r(e.next_in_index),o=e.next_in_index)}while(e.avail_in>0||0===e.avail_out);return s=new Uint8Array(c),d.forEach((function(t){s.set(t,l),l+=t.length})),s}},this.flush=function(){let t,r,a=0,s=0;const o=[];do{if(e.next_out_index=0,e.avail_out=n,t=e.deflate(4),1!=t&&0!=t)throw new Error("deflating: "+e.msg);n-e.avail_out>0&&o.push(i.slice(0,e.next_out_index)),s+=e.next_out_index}while(e.avail_in>0||0===e.avail_out);return e.deflateEnd(),r=new Uint8Array(s),o.forEach((function(t){r.set(t,a),a+=t.length})),r}},Inflate:function(){const t=new B,e=131072,n=new Uint8Array(e);let i=!1;t.inflateInit(),t.next_out=n,this.append=function(r,a){const s=[];let o,l,c=0,d=0,f=0;if(0!==r.length){t.next_in_index=0,t.next_in=r,t.avail_in=r.length;do{if(t.next_out_index=0,t.avail_out=e,0!==t.avail_in||i||(t.next_in_index=0,i=!0),o=t.inflate(0),i&&o===m){if(0!==t.avail_in)throw new Error("inflating: bad input")}else if(0!==o&&1!==o)throw new Error("inflating: "+t.msg);if((i||1===o)&&t.avail_in===r.length)throw new Error("inflating: bad input");t.next_out_index&&(t.next_out_index===e?s.push(new Uint8Array(n)):s.push(n.slice(0,t.next_out_index))),f+=t.next_out_index,a&&t.next_in_index>0&&t.next_in_index!=c&&(a(t.next_in_index),c=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return l=new Uint8Array(f),s.forEach((function(t){l.set(t,d),d+=t.length})),l}},this.flush=function(){t.inflateEnd()}}}),t.BlobReader=rt,t.BlobWriter=at,t.Data64URIReader=class extends nt{constructor(t){super(),this.dataURI=t;let e=t.length;for(;"="==t.charAt(e-1);)e--;this.dataStart=t.indexOf(",")+1,this.size=Math.floor(.75*(e-this.dataStart))}async readUint8Array(t,e){const n=new Uint8Array(e),i=4*Math.floor(t/3),r=atob(this.dataURI.substring(i+this.dataStart,4*Math.ceil((t+e)/3)+this.dataStart)),a=t-3*Math.floor(i/4);for(let t=a;t2?this.data+=btoa(n):this.pending=n}getData(){return this.data+btoa(this.pending)}},t.ERR_ABORT=j,t.ERR_BAD_FORMAT=ze,t.ERR_CENTRAL_DIRECTORY_NOT_FOUND=Ce,t.ERR_DUPLICATED_NAME=tn,t.ERR_ENCRYPTED=Oe,t.ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND=Fe,t.ERR_EOCDR_NOT_FOUND=Ie,t.ERR_EOCDR_ZIP64_NOT_FOUND=De,t.ERR_EXTRAFIELD_ZIP64_NOT_FOUND=Me,t.ERR_HTTP_RANGE=Z,t.ERR_INVALID_COMMENT=en,t.ERR_INVALID_DATE=sn,t.ERR_INVALID_ENCRYPTION_STRENGTH=on,t.ERR_INVALID_ENTRY_COMMENT=nn,t.ERR_INVALID_ENTRY_NAME=rn,t.ERR_INVALID_EXTRAFIELD_DATA=cn,t.ERR_INVALID_EXTRAFIELD_TYPE=ln,t.ERR_INVALID_PASSWORD=Ot,t.ERR_INVALID_SIGNATURE=we,t.ERR_INVALID_VERSION=an,t.ERR_LOCAL_FILE_HEADER_NOT_FOUND=Te,t.ERR_UNSUPPORTED_COMPRESSION=We,t.ERR_UNSUPPORTED_ENCRYPTION=Be,t.HttpRangeReader=class extends ut{constructor(t,e={}){e.useRangeHeader=!0,super(t,e)}},t.HttpReader=ut,t.Reader=nt,t.TextReader=class extends nt{constructor(t){super(),this.blobReader=new rt(new Blob([t],{type:Y}))}async init(){super.init(),this.blobReader.init(),this.size=this.blobReader.size}async readUint8Array(t,e){return this.blobReader.readUint8Array(t,e)}},t.TextWriter=class extends it{constructor(t){super(),this.encoding=t,this.blob=new Blob([],{type:Y})}async writeUint8Array(t){super.writeUint8Array(t),this.blob=new Blob([this.blob,t.buffer],{type:Y})}getData(){const t=new FileReader;return new Promise(((e,n)=>{t.onload=t=>e(t.target.result),t.onerror=n,t.readAsText(this.blob,this.encoding)}))}},t.Uint8ArrayReader=class extends nt{constructor(t){super(),this.array=t,this.size=t.length}async readUint8Array(t,e){return this.array.slice(t,t+e)}},t.Uint8ArrayWriter=class extends it{constructor(){super(),this.array=new Uint8Array(0)}async writeUint8Array(t){super.writeUint8Array(t);const e=this.array;this.array=new Uint8Array(e.length+t.length),this.array.set(e),this.array.set(t,e.length)}getData(){return this.array}},t.Writer=it,t.ZipReader=class{constructor(t,e={}){Object.assign(this,{reader:t,options:e,config:L()})}async getEntries(t={}){const e=this,n=e.reader;if(n.initialized||await n.init(),n.size<22)throw new Error(ze);const i=await async function(t,e,n,i,r){const a=new Uint8Array(4);!function(t,e,n){t.setUint32(e,n,!0)}(Qe(a),0,e);const s=i+r;return await o(i)||await o(Math.min(s,n));async function o(e){const r=n-e,s=await $e(t,r,e);for(let t=s.length-i;t>=0;t--)if(s[t]==a[0]&&s[t+1]==a[1]&&s[t+2]==a[2]&&s[t+3]==a[3])return{offset:r+t,buffer:s.slice(t,t+i).buffer}}}(n,xt,n.size,22,1048560);if(!i)throw new Error(Ie);const r=Qe(i);let a=Xe(r,12),s=Xe(r,16),o=Ye(r,8),l=0;if(s==ht||o==wt){const t=Qe(await $e(n,i.offset-20,20));if(Xe(t,0)!=mt)throw new Error(De);s=Je(t,8);let e=await $e(n,s,56),r=Qe(e);const c=i.offset-20-56;if(Xe(r,0)!=yt&&s!=c){const t=s;s=c,l=s-t,e=await $e(n,s,56),r=Qe(e)}if(Xe(r,0)!=yt)throw new Error(Fe);o=Je(r,24),a=Xe(t,4),s-=Je(r,40)}if(s<0||s>=n.size)throw new Error(ze);let c=0,d=await $e(n,s,n.size-s),f=Qe(d);const u=i.offset-a;if(Xe(f,c)!=gt&&s!=u){const t=s;s=u,l=s-t,d=await $e(n,s,n.size-s),f=Qe(d)}if(s<0||s>=n.size)throw new Error(ze);const _=[];for(let i=0;ii.getData(t,e),_.push(h),c=u}return _}async close(){}},t.ZipWriter=class{constructor(t,e={}){Object.assign(this,{writer:t,options:e,config:L(),files:new Map,offset:t.size,pendingOutputSize:0})}async add(t="",e,n={}){const i=this;if(t=t.trim(),n.directory&&!t.endsWith(At)?t+=At:n.directory=t.endsWith(At),i.files.has(t))throw new Error(tn);const r=(new TextEncoder).encode(t);if(r.length>wt)throw new Error(rn);const a=n.comment||"",s=(new TextEncoder).encode(a);if(s.length>wt)throw new Error(nn);const o=i.options.version||n.version||0;if(o>wt)throw new Error(an);const l=n.lastModDate||new Date;if(lEt)throw new Error(sn);const c=fn(i,n,"password"),d=fn(i,n,"encryptionStrength")||3,f=fn(i,n,"zipCrypto");if(void 0!==c&&void 0!==d&&(d<1||d>3))throw new Error(on);e&&!e.initialized&&await e.init();let u=new Uint8Array(0);const _=n.extraField;if(_){let t=0,e=0;_.forEach((e=>t+=4+e.length)),u=new Uint8Array(t),_.forEach(((t,n)=>{if(n>wt)throw new Error(ln);if(t.length>wt)throw new Error(cn);pn(u,new Uint16Array([n]),e),pn(u,new Uint16Array([t.length]),e+2),pn(u,t,e+4),e+=4+t.length}))}const h=e?Math.floor(1.05*e.size):0;i.pendingOutputSize+=h,await Promise.resolve();const w=n.zip64||i.options.zip64||i.offset>=ht||h>=ht||i.offset+i.pendingOutputSize>=ht,p=fn(i,n,"level"),b=fn(i,n,"useWebWorkers"),g=fn(i,n,"bufferedWrite");let x=fn(i,n,"keepOrder"),y=fn(i,n,"dataDescriptor");const m=fn(i,n,"signal");void 0===y&&(y=!0),void 0===x&&(x=!0);const v=await async function(t,e,n,i){const r=t.files,a=t.writer;let s,o;r.set(e,null);try{let l,c,d;try{i.keepOrder&&(l=t.lockPreviousFile,t.lockPreviousFile=new Promise((t=>o=t))),i.bufferedWrite||t.lockWrite||!i.dataDescriptor?(c=new at,c.init()):(t.lockWrite=new Promise((t=>s=t)),a.initialized||await a.init(),c=a),d=await async function(t,e,n,i){const{rawFilename:r,lastModDate:a,password:s,level:o,zip64:l,zipCrypto:c,dataDescriptor:d,directory:f,version:u,rawComment:_,rawExtraField:h,useWebWorkers:w,onprogress:p,signal:b,encryptionStrength:g}=i,x=Boolean(s&&s.length),y=0!==o&&!f;let m;if(x&&!c){m=new Uint8Array(dn.length+2);const t=bn(m);_n(t,0,vt),pn(m,dn,2),un(t,8,g)}else m=new Uint8Array(0);const v={version:u||20,zip64:l,directory:Boolean(f),filenameUTF8:!0,rawFilename:r,commentUTF8:!0,rawComment:_,rawExtraFieldZip64:l?new Uint8Array(28):new Uint8Array(0),rawExtraFieldAES:m,rawExtraField:h};let k=kt;d&&(k|=8);let A=0;y&&(A=8);l&&(v.version=v.version>45?v.version:45);x&&(k|=1,c||(v.version=v.version>51?v.version:51,A=99,y&&(v.rawExtraFieldAES[9]=8)));const E=v.headerArray=new Uint8Array(26),U=bn(E);_n(U,0,v.version),_n(U,2,k),_n(U,4,A);const R=new Uint32Array(1),S=bn(R);_n(S,0,(a.getHours()<<6|a.getMinutes())<<5|a.getSeconds()/2),_n(S,2,(a.getFullYear()-1980<<4|a.getMonth()+1)<<5|a.getDate());const z=R[0];hn(U,6,z),_n(U,22,r.length),_n(U,24,0),_n(U,24,m.length+v.rawExtraField.length);const I=new Uint8Array(30+r.length+m.length+v.rawExtraField.length);let D;hn(bn(I),0,pt),pn(I,E,4),pn(I,r,30),pn(I,m,30+r.length),pn(I,v.rawExtraField,30+r.length+m.length);let F=0,C=0;if(t){F=t.size;const i=await Ee(n.Deflate,{codecType:_e,level:o,password:s,encryptionStrength:g,zipCrypto:x&&c,passwordVerification:x&&c&&z>>8&255,signed:!0,compressed:y,encrypted:x,useWebWorkers:w},n);await e.writeUint8Array(I),D=await V(i,t,e,0,F,n,{onprogress:p,signal:b}),C=D.length}else await e.writeUint8Array(I);let T,M=new Uint8Array(0);d&&(M=new Uint8Array(l?24:16),T=bn(M),hn(T,0,bt));if(t){const t=D.signature;if(x&&!c||void 0===t||(hn(U,10,t),v.signature=t,d&&hn(T,4,t)),l){const t=bn(v.rawExtraFieldZip64);_n(t,0,1),_n(t,2,24),hn(U,14,ht),wn(t,12,BigInt(C)),hn(U,18,ht),wn(t,4,BigInt(F)),d&&(wn(T,8,BigInt(C)),wn(T,16,BigInt(F)))}else hn(U,14,C),hn(U,18,F),d&&(hn(T,8,C),hn(T,12,F))}d&&await e.writeUint8Array(M);const O=I.length+C+M.length;return Object.assign(v,{compressedSize:C,uncompressedSize:F,lastModDate:a,rawLastModDate:z,encrypted:x,length:O}),v}(n,c,t.config,i)}catch(t){throw r.delete(e),t}if(r.set(e,d),c!=a){const e=c.getData(),n=new FileReader,r=new Promise(((t,i)=>{n.onload=e=>t(e.target.result),n.onerror=i,n.readAsArrayBuffer(e)})),[s]=await Promise.all([r,t.lockWrite,l]);if(!i.dataDescriptor){const t=new DataView(s);d.encrypted&&!i.zipCrypto||hn(t,14,d.signature),d.zip64?(hn(t,18,ht),hn(t,22,ht)):(hn(t,18,d.compressedSize),hn(t,22,d.uncompressedSize))}await a.writeUint8Array(new Uint8Array(s))}if(d.offset=t.offset,d.zip64){wn(bn(d.rawExtraFieldZip64),20,BigInt(d.offset))}return t.offset+=d.length,d}finally{o&&o(),s&&s()}}(i,t,e,Object.assign({},n,{rawFilename:r,rawComment:s,version:o,lastModDate:l,rawExtraField:u,zip64:w,password:c,level:p,useWebWorkers:b,encryptionStrength:d,zipCrypto:f,bufferedWrite:g,keepOrder:x,dataDescriptor:y,signal:m}));return i.pendingOutputSize-=h,Object.assign(v,{name:t,comment:a,extraField:_}),new Se(v)}async close(t=new Uint8Array(0)){const e=this,n=e.writer,i=e.files;let r=0,a=0,s=e.offset,o=i.size;for(const[,t]of i)a+=46+t.rawFilename.length+t.rawComment.length+t.rawExtraFieldZip64.length+t.rawExtraFieldAES.length+t.rawExtraField.length;const l=e.options.zip64||s>=ht||a>=ht||o>=wt,c=new Uint8Array(a+(l?98:22)),d=bn(c);if(t.length){if(!(t.length<=wt))throw new Error(en);_n(d,r+20,t.length)}for(const[,t]of i){const{rawFilename:e,rawExtraFieldZip64:n,rawExtraFieldAES:i,rawExtraField:a,rawComment:s,version:o,headerArray:l,directory:f,zip64:u}=t,_=n.length+i.length+a.length;hn(d,r,gt),_n(d,r+4,o),pn(c,l,r+6),_n(d,r+30,_),_n(d,r+32,s.length),f&&un(d,r+38,16),hn(d,r+42,u?ht:t.offset),pn(c,e,r+46),pn(c,n,r+46+e.length),pn(c,i,r+46+e.length+n.length),pn(c,a,46+e.length+n.length+i.length),pn(c,s,r+46+e.length+_),r+=46+e.length+_+s.length}return l&&(hn(d,r,yt),wn(d,r+4,BigInt(44)),_n(d,r+12,45),_n(d,r+14,45),wn(d,r+24,BigInt(o)),wn(d,r+32,BigInt(o)),wn(d,r+40,BigInt(a)),wn(d,r+48,BigInt(s)),hn(d,r+56,mt),wn(d,r+64,BigInt(s)+BigInt(a)),hn(d,r+72,1),o=wt,s=ht,a=ht,r+=76),hn(d,r,xt),_n(d,r+8,o),_n(d,r+10,o),hn(d,r+12,a),hn(d,r+16,s),await n.writeUint8Array(c),t.length&&await n.writeUint8Array(t),n.getData()}},t.configure=P,t.getMimeType=function(){return"application/octet-stream"},t.initShimAsyncCodec=(t,e={},n)=>({Deflate:N(t.Deflate,e.deflate,n),Inflate:N(t.Inflate,e.inflate,n)}),Object.defineProperty(t,"__esModule",{value:!0})}));