forked from gildas-lormeau/zip.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.min.js
1 lines (1 loc) · 167 KB
/
index.min.js
1
const e=15,t=573,n=-2;function r(e){return i(e.map((([e,t])=>Array(e).fill(t,0,e))))}function i(e){return e.reduce(((e,t)=>e.concat(Array.isArray(t)?i(t):t)),[])}const s=[0,1,2,3].concat(...r([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function a(){const n=this;function r(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}n.build_tree=i=>{const s=n.dyn_tree,a=n.stat_desc.static_tree,o=n.stat_desc.elems;let c,l,d,f=-1;for(i.heap_len=0,i.heap_max=t,c=0;o>c;c++)0!==s[2*c]?(i.heap[++i.heap_len]=f=c,i.depth[c]=0):s[2*c+1]=0;for(;2>i.heap_len;)d=i.heap[++i.heap_len]=2>f?++f:0,s[2*d]=1,i.depth[d]=0,i.opt_len--,a&&(i.static_len-=a[2*d+1]);for(n.max_code=f,c=Math.floor(i.heap_len/2);c>=1;c--)i.pqdownheap(s,c);d=o;do{c=i.heap[1],i.heap[1]=i.heap[i.heap_len--],i.pqdownheap(s,1),l=i.heap[1],i.heap[--i.heap_max]=c,i.heap[--i.heap_max]=l,s[2*d]=s[2*c]+s[2*l],i.depth[d]=Math.max(i.depth[c],i.depth[l])+1,s[2*c+1]=s[2*l+1]=d,i.heap[1]=d++,i.pqdownheap(s,1)}while(i.heap_len>=2);i.heap[--i.heap_max]=i.heap[1],(r=>{const i=n.dyn_tree,s=n.stat_desc.static_tree,a=n.stat_desc.extra_bits,o=n.stat_desc.extra_base,c=n.stat_desc.max_length;let l,d,f,u,p,m,h=0;for(u=0;e>=u;u++)r.bl_count[u]=0;for(i[2*r.heap[r.heap_max]+1]=0,l=r.heap_max+1;t>l;l++)d=r.heap[l],u=i[2*i[2*d+1]+1]+1,u>c&&(u=c,h++),i[2*d+1]=u,d>n.max_code||(r.bl_count[u]++,p=0,o>d||(p=a[d-o]),m=i[2*d],r.opt_len+=m*(u+p),s&&(r.static_len+=m*(s[2*d+1]+p)));if(0!==h){do{for(u=c-1;0===r.bl_count[u];)u--;r.bl_count[u]--,r.bl_count[u+1]+=2,r.bl_count[c]--,h-=2}while(h>0);for(u=c;0!==u;u--)for(d=r.bl_count[u];0!==d;)f=r.heap[--l],f>n.max_code||(i[2*f+1]!=u&&(r.opt_len+=(u-i[2*f+1])*i[2*f],i[2*f+1]=u),d--)}})(i),((t,n,i)=>{const s=[];let a,o,c,l=0;for(a=1;e>=a;a++)s[a]=l=l+i[a-1]<<1;for(o=0;n>=o;o++)c=t[2*o+1],0!==c&&(t[2*o]=r(s[c]++,c))})(s,n.max_code,i.bl_count)}}function o(e,t,n,r,i){const s=this;s.static_tree=e,s.extra_bits=t,s.extra_base=n,s.elems=r,s.max_length=i}a._length_code=[0,1,2,3,4,5,6,7].concat(...r([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),a.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],a.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],a.d_code=e=>256>e?s[e]:s[256+(e>>>7)],a.extra_lbits=[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],a.extra_dbits=[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],a.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],a.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const c=r([[144,8],[112,9],[24,7],[8,8]]);o.static_ltree=i([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,c[t]])));const l=r([[30,5]]);function d(e,t,n,r,i){const s=this;s.good_length=e,s.max_lazy=t,s.nice_length=n,s.max_chain=r,s.func=i}o.static_dtree=i([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,l[t]]))),o.static_l_desc=new o(o.static_ltree,a.extra_lbits,257,286,e),o.static_d_desc=new o(o.static_dtree,a.extra_dbits,0,30,e),o.static_bl_desc=new o(null,a.extra_blbits,0,19,7);const f=[new d(0,0,0,0,0),new d(4,4,8,4,1),new d(4,5,16,8,1),new d(4,6,32,32,1),new d(4,4,16,16,2),new d(8,16,32,32,2),new d(8,16,128,128,2),new d(8,32,128,256,2),new d(32,128,258,1024,2),new d(32,258,258,4096,2)],u=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],p=113,m=666,h=262;function w(e,t,n,r){const i=e[2*t],s=e[2*n];return s>i||i==s&&r[t]<=r[n]}function g(){const e=this;let t,r,i,s,c,l,d,g,x,b,v,y,_,k,z,S,A,j,D,C,F,U,E,T,q,R,O,W,I,M,P,B,L;const N=new a,G=new a,H=new a;let V,Z,K,X,Q,Y;function J(){let t;for(t=0;286>t;t++)P[2*t]=0;for(t=0;30>t;t++)B[2*t]=0;for(t=0;19>t;t++)L[2*t]=0;P[512]=1,e.opt_len=e.static_len=0,Z=K=0}function $(e,t){let n,r=-1,i=e[1],s=0,a=7,o=4;0===i&&(a=138,o=3),e[2*(t+1)+1]=65535;for(let c=0;t>=c;c++)n=i,i=e[2*(c+1)+1],++s<a&&n==i||(o>s?L[2*n]+=s:0!==n?(n!=r&&L[2*n]++,L[32]++):s>10?L[36]++:L[34]++,s=0,r=n,0===i?(a=138,o=3):n==i?(a=6,o=3):(a=7,o=4))}function ee(t){e.pending_buf[e.pending++]=t}function te(e){ee(255&e),ee(e>>>8&255)}function ne(e,t){let n;const r=t;Y>16-r?(n=e,Q|=n<<Y&65535,te(Q),Q=n>>>16-Y,Y+=r-16):(Q|=e<<Y&65535,Y+=r)}function re(e,t){const n=2*e;ne(65535&t[n],65535&t[n+1])}function ie(e,t){let n,r,i=-1,s=e[1],a=0,o=7,c=4;for(0===s&&(o=138,c=3),n=0;t>=n;n++)if(r=s,s=e[2*(n+1)+1],++a>=o||r!=s){if(c>a)do{re(r,L)}while(0!=--a);else 0!==r?(r!=i&&(re(r,L),a--),re(16,L),ne(a-3,2)):a>10?(re(18,L),ne(a-11,7)):(re(17,L),ne(a-3,3));a=0,i=r,0===s?(o=138,c=3):r==s?(o=6,c=3):(o=7,c=4)}}function se(){16==Y?(te(Q),Q=0,Y=0):8>Y||(ee(255&Q),Q>>>=8,Y-=8)}function ae(t,n){let r,i,s;if(e.dist_buf[Z]=t,e.lc_buf[Z]=255&n,Z++,0===t?P[2*n]++:(K++,t--,P[2*(a._length_code[n]+256+1)]++,B[2*a.d_code(t)]++),!(8191&Z)&&O>2){for(r=8*Z,i=F-A,s=0;30>s;s++)r+=B[2*s]*(5+a.extra_dbits[s]);if(r>>>=3,Math.floor(Z/2)>K&&Math.floor(i/2)>r)return!0}return Z==V-1}function oe(t,n){let r,i,s,o,c=0;if(0!==Z)do{r=e.dist_buf[c],i=e.lc_buf[c],c++,0===r?re(i,t):(s=a._length_code[i],re(s+256+1,t),o=a.extra_lbits[s],0!==o&&(i-=a.base_length[s],ne(i,o)),r--,s=a.d_code(r),re(s,n),o=a.extra_dbits[s],0!==o&&(r-=a.base_dist[s],ne(r,o)))}while(Z>c);re(256,t),X=t[513]}function ce(){Y>8?te(Q):Y>0&&ee(255&Q),Q=0,Y=0}function le(t,n,r){ne(0+(r?1:0),3),((t,n)=>{ce(),X=8,te(n),te(~n),e.pending_buf.set(g.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function de(n){((t,n,r)=>{let i,s,c=0;O>0?(N.build_tree(e),G.build_tree(e),c=(()=>{let t;for($(P,N.max_code),$(B,G.max_code),H.build_tree(e),t=18;t>=3&&0===L[2*a.bl_order[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(),i=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s>i||(i=s)):i=s=n+5,n+4>i||-1==t?s==i?(ne(2+(r?1:0),3),oe(o.static_ltree,o.static_dtree)):(ne(4+(r?1:0),3),((e,t,n)=>{let r;for(ne(e-257,5),ne(t-1,5),ne(n-4,4),r=0;n>r;r++)ne(L[2*a.bl_order[r]+1],3);ie(P,e-1),ie(B,t-1)})(N.max_code+1,G.max_code+1,c+1),oe(P,B)):le(t,n,r),J(),r&&ce()})(0>A?-1:A,F-A,n),A=F,t.flush_pending()}function fe(){let e,n,r,i;do{if(i=x-E-F,0===i&&0===F&&0===E)i=c;else if(-1==i)i--;else if(F>=c+c-h){g.set(g.subarray(c,c+c),0),U-=c,F-=c,A-=c,e=_,r=e;do{n=65535&v[--r],v[r]=c>n?0:n-c}while(0!=--e);e=c,r=e;do{n=65535&b[--r],b[r]=c>n?0:n-c}while(0!=--e);i+=c}if(0===t.avail_in)return;e=t.read_buf(g,F+E,i),E+=e,3>E||(y=255&g[F],y=(y<<S^255&g[F+1])&z)}while(h>E&&0!==t.avail_in)}function ue(e){let t,n,r=q,i=F,s=T;const a=F>c-h?F-(c-h):0;let o=M;const l=d,f=F+258;let u=g[i+s-1],p=g[i+s];I>T||(r>>=2),o>E&&(o=E);do{if(t=e,g[t+s]==p&&g[t+s-1]==u&&g[t]==g[i]&&g[++t]==g[i+1]){i+=2,t++;do{}while(g[++i]==g[++t]&&g[++i]==g[++t]&&g[++i]==g[++t]&&g[++i]==g[++t]&&g[++i]==g[++t]&&g[++i]==g[++t]&&g[++i]==g[++t]&&g[++i]==g[++t]&&f>i);if(n=258-(f-i),i=f-258,n>s){if(U=e,s=n,n>=o)break;u=g[i+s-1],p=g[i+s]}}}while((e=65535&b[e&l])>a&&0!=--r);return s>E?E:s}e.depth=[],e.bl_count=[],e.heap=[],P=[],B=[],L=[],e.pqdownheap=(t,n)=>{const r=e.heap,i=r[n];let s=n<<1;for(;s<=e.heap_len&&(s<e.heap_len&&w(t,r[s+1],r[s],e.depth)&&s++,!w(t,i,r[s],e.depth));)r[n]=r[s],n=s,s<<=1;r[n]=i},e.deflateInit=(t,a,u,m,h,w)=>(m||(m=8),h||(h=8),w||(w=0),t.msg=null,-1==a&&(a=6),1>h||h>9||8!=m||9>u||u>15||0>a||a>9||0>w||w>2?n:(t.dstate=e,l=u,c=1<<l,d=c-1,k=h+7,_=1<<k,z=_-1,S=Math.floor((k+3-1)/3),g=new Uint8Array(2*c),b=[],v=[],V=1<<h+6,e.pending_buf=new Uint8Array(4*V),i=4*V,e.dist_buf=new Uint16Array(V),e.lc_buf=new Uint8Array(V),O=a,W=w,(t=>(t.total_in=t.total_out=0,t.msg=null,e.pending=0,e.pending_out=0,r=p,s=0,N.dyn_tree=P,N.stat_desc=o.static_l_desc,G.dyn_tree=B,G.stat_desc=o.static_d_desc,H.dyn_tree=L,H.stat_desc=o.static_bl_desc,Q=0,Y=0,X=8,J(),(()=>{x=2*c,v[_-1]=0;for(let e=0;_-1>e;e++)v[e]=0;R=f[O].max_lazy,I=f[O].good_length,M=f[O].nice_length,q=f[O].max_chain,F=0,A=0,E=0,j=T=2,C=0,y=0})(),0))(t))),e.deflateEnd=()=>42!=r&&r!=p&&r!=m?n:(e.lc_buf=null,e.dist_buf=null,e.pending_buf=null,v=null,b=null,g=null,e.dstate=null,r==p?-3:0),e.deflateParams=(e,t,r)=>{let i=0;return-1==t&&(t=6),0>t||t>9||0>r||r>2?n:(f[O].func!=f[t].func&&0!==e.total_in&&(i=e.deflate(1)),O!=t&&(O=t,R=f[O].max_lazy,I=f[O].good_length,M=f[O].nice_length,q=f[O].max_chain),W=r,i)},e.deflateSetDictionary=(e,t,i)=>{let s,a=i,o=0;if(!t||42!=r)return n;if(3>a)return 0;for(a>c-h&&(a=c-h,o=i-a),g.set(t.subarray(o,o+a),0),F=a,A=a,y=255&g[0],y=(y<<S^255&g[1])&z,s=0;a-3>=s;s++)y=(y<<S^255&g[s+2])&z,b[s&d]=v[y],v[y]=s;return 0},e.deflate=(a,w)=>{let x,k,q,I,M;if(w>4||0>w)return n;if(!a.next_out||!a.next_in&&0!==a.avail_in||r==m&&4!=w)return a.msg=u[4],n;if(0===a.avail_out)return a.msg=u[7],-5;var P;if(t=a,I=s,s=w,42==r&&(k=8+(l-8<<4)<<8,q=(O-1&255)>>1,q>3&&(q=3),k|=q<<6,0!==F&&(k|=32),k+=31-k%31,r=p,ee((P=k)>>8&255),ee(255&P)),0!==e.pending){if(t.flush_pending(),0===t.avail_out)return s=-1,0}else if(0===t.avail_in&&I>=w&&4!=w)return t.msg=u[7],-5;if(r==m&&0!==t.avail_in)return a.msg=u[7],-5;if(0!==t.avail_in||0!==E||0!=w&&r!=m){switch(M=-1,f[O].func){case 0:M=(e=>{let n,r=65535;for(r>i-5&&(r=i-5);;){if(1>=E){if(fe(),0===E&&0==e)return 0;if(0===E)break}if(F+=E,E=0,n=A+r,(0===F||F>=n)&&(E=F-n,F=n,de(!1),0===t.avail_out))return 0;if(F-A>=c-h&&(de(!1),0===t.avail_out))return 0}return de(4==e),0===t.avail_out?4==e?2:0:4==e?3:1})(w);break;case 1:M=(e=>{let n,r=0;for(;;){if(h>E){if(fe(),h>E&&0==e)return 0;if(0===E)break}if(3>E||(y=(y<<S^255&g[F+2])&z,r=65535&v[y],b[F&d]=v[y],v[y]=F),0===r||(F-r&65535)>c-h||2!=W&&(j=ue(r)),3>j)n=ae(0,255&g[F]),E--,F++;else if(n=ae(F-U,j-3),E-=j,j>R||3>E)F+=j,j=0,y=255&g[F],y=(y<<S^255&g[F+1])&z;else{j--;do{F++,y=(y<<S^255&g[F+2])&z,r=65535&v[y],b[F&d]=v[y],v[y]=F}while(0!=--j);F++}if(n&&(de(!1),0===t.avail_out))return 0}return de(4==e),0===t.avail_out?4==e?2:0:4==e?3:1})(w);break;case 2:M=(e=>{let n,r,i=0;for(;;){if(h>E){if(fe(),h>E&&0==e)return 0;if(0===E)break}if(3>E||(y=(y<<S^255&g[F+2])&z,i=65535&v[y],b[F&d]=v[y],v[y]=F),T=j,D=U,j=2,0!==i&&R>T&&c-h>=(F-i&65535)&&(2!=W&&(j=ue(i)),5>=j&&(1==W||3==j&&F-U>4096)&&(j=2)),3>T||j>T)if(0!==C){if(n=ae(0,255&g[F-1]),n&&de(!1),F++,E--,0===t.avail_out)return 0}else C=1,F++,E--;else{r=F+E-3,n=ae(F-1-D,T-3),E-=T-1,T-=2;do{++F>r||(y=(y<<S^255&g[F+2])&z,i=65535&v[y],b[F&d]=v[y],v[y]=F)}while(0!=--T);if(C=0,j=2,F++,n&&(de(!1),0===t.avail_out))return 0}}return 0!==C&&(n=ae(0,255&g[F-1]),C=0),de(4==e),0===t.avail_out?4==e?2:0:4==e?3:1})(w)}if(2!=M&&3!=M||(r=m),0==M||2==M)return 0===t.avail_out&&(s=-1),0;if(1==M){if(1==w)ne(2,3),re(256,o.static_ltree),se(),9>1+X+10-Y&&(ne(2,3),re(256,o.static_ltree),se()),X=7;else if(le(0,0,!1),3==w)for(x=0;_>x;x++)v[x]=0;if(t.flush_pending(),0===t.avail_out)return s=-1,0}}return 4!=w?0:1}}function x(){const e=this;e.next_in_index=0,e.next_out_index=0,e.avail_in=0,e.total_in=0,e.avail_out=0,e.total_out=0}x.prototype={deflateInit(t,n){const r=this;return r.dstate=new g,n||(n=e),r.dstate.deflateInit(r,t,n)},deflate(e){const t=this;return t.dstate?t.dstate.deflate(t,e):n},deflateEnd(){const e=this;if(!e.dstate)return n;const t=e.dstate.deflateEnd();return e.dstate=null,t},deflateParams(e,t){const r=this;return r.dstate?r.dstate.deflateParams(r,e,t):n},deflateSetDictionary(e,t){const r=this;return r.dstate?r.dstate.deflateSetDictionary(r,e,t):n},read_buf(e,t,n){const r=this;let i=r.avail_in;return i>n&&(i=n),0===i?0:(r.avail_in-=i,e.set(r.next_in.subarray(r.next_in_index,r.next_in_index+i),t),r.next_in_index+=i,r.total_in+=i,i)},flush_pending(){const e=this;let t=e.dstate.pending;t>e.avail_out&&(t=e.avail_out),0!==t&&(e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out,e.dstate.pending_out+t),e.next_out_index),e.next_out_index+=t,e.dstate.pending_out+=t,e.total_out+=t,e.avail_out-=t,e.dstate.pending-=t,0===e.dstate.pending&&(e.dstate.pending_out=0))}};const b=0,v=1,y=-2,_=-3,k=-4,z=-5,S=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],A=1440,j=[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],D=[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],C=[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],F=[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],U=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],E=[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],T=15;function q(){let e,t,n,r,i,s;function a(e,t,a,o,c,l,d,f,u,p,m){let h,w,g,x,v,y,k,S,j,D,C,F,U,E,q;D=0,v=a;do{n[e[t+D]]++,D++,v--}while(0!==v);if(n[0]==a)return d[0]=-1,f[0]=0,b;for(S=f[0],y=1;T>=y&&0===n[y];y++);for(k=y,y>S&&(S=y),v=T;0!==v&&0===n[v];v--);for(g=v,S>v&&(S=v),f[0]=S,E=1<<y;v>y;y++,E<<=1)if(0>(E-=n[y]))return _;if(0>(E-=n[v]))return _;for(n[v]+=E,s[1]=y=0,D=1,U=2;0!=--v;)s[U]=y+=n[D],U++,D++;v=0,D=0;do{0!==(y=e[t+D])&&(m[s[y]++]=v),D++}while(++v<a);for(a=s[g],s[0]=v=0,D=0,x=-1,F=-S,i[0]=0,C=0,q=0;g>=k;k++)for(h=n[k];0!=h--;){for(;k>F+S;){if(x++,F+=S,q=g-F,q=q>S?S:q,(w=1<<(y=k-F))>h+1&&(w-=h+1,U=k,q>y))for(;++y<q&&(w<<=1)>n[++U];)w-=n[U];if(q=1<<y,p[0]+q>A)return _;i[x]=C=p[0],p[0]+=q,0!==x?(s[x]=v,r[0]=y,r[1]=S,y=v>>>F-S,r[2]=C-i[x-1]-y,u.set(r,3*(i[x-1]+y))):d[0]=C}for(r[1]=k-F,a>D?m[D]<o?(r[0]=256>m[D]?0:96,r[2]=m[D++]):(r[0]=l[m[D]-o]+16+64,r[2]=c[m[D++]-o]):r[0]=192,w=1<<k-F,y=v>>>F;q>y;y+=w)u.set(r,3*(C+y));for(y=1<<k-1;v&y;y>>>=1)v^=y;for(v^=y,j=(1<<F)-1;(v&j)!=s[x];)x--,F-=S,j=(1<<F)-1}return 0!==E&&1!=g?z:b}function o(a){let o;for(e||(e=[],t=[],n=new Int32Array(T+1),r=[],i=new Int32Array(T),s=new Int32Array(T+1)),t.length<a&&(t=[]),o=0;a>o;o++)t[o]=0;for(o=0;T+1>o;o++)n[o]=0;for(o=0;3>o;o++)r[o]=0;i.set(n.subarray(0,T),0),s.set(n.subarray(0,T+1),0)}this.inflate_trees_bits=(n,r,i,s,c)=>{let l;return o(19),e[0]=0,l=a(n,0,19,19,null,null,i,r,s,e,t),l==_?c.msg="oversubscribed dynamic bit lengths tree":l!=z&&0!==r[0]||(c.msg="incomplete dynamic bit lengths tree",l=_),l},this.inflate_trees_dynamic=(n,r,i,s,c,l,d,f,u)=>{let p;return o(288),e[0]=0,p=a(i,0,n,257,C,F,l,s,f,e,t),p!=b||0===s[0]?(p==_?u.msg="oversubscribed literal/length tree":p!=k&&(u.msg="incomplete literal/length tree",p=_),p):(o(288),p=a(i,n,r,0,U,E,d,c,f,e,t),p!=b||0===c[0]&&n>257?(p==_?u.msg="oversubscribed distance tree":p==z?(u.msg="incomplete distance tree",p=_):p!=k&&(u.msg="empty distance tree with lengths",p=_),p):b)}}q.inflate_trees_fixed=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=j,r[0]=D,b);const R=0,O=1,W=2,I=3,M=4,P=5,B=6,L=7,N=8,G=9;function H(){const e=this;let t,n,r,i,s=0,a=0,o=0,c=0,l=0,d=0,f=0,u=0,p=0,m=0;function h(e,t,n,r,i,s,a,o){let c,l,d,f,u,p,m,h,w,g,x,y,k,z,A,j;m=o.next_in_index,h=o.avail_in,u=a.bitb,p=a.bitk,w=a.write,g=w<a.read?a.read-w-1:a.end-w,x=S[e],y=S[t];do{for(;20>p;)h--,u|=(255&o.read_byte(m++))<<p,p+=8;if(c=u&x,l=n,d=r,j=3*(d+c),0!==(f=l[j]))for(;;){if(u>>=l[j+1],p-=l[j+1],16&f){for(f&=15,k=l[j+2]+(u&S[f]),u>>=f,p-=f;15>p;)h--,u|=(255&o.read_byte(m++))<<p,p+=8;for(c=u&y,l=i,d=s,j=3*(d+c),f=l[j];;){if(u>>=l[j+1],p-=l[j+1],16&f){for(f&=15;f>p;)h--,u|=(255&o.read_byte(m++))<<p,p+=8;if(z=l[j+2]+(u&S[f]),u>>=f,p-=f,g-=k,z>w){A=w-z;do{A+=a.end}while(0>A);if(f=a.end-A,k>f){if(k-=f,w-A>0&&f>w-A)do{a.win[w++]=a.win[A++]}while(0!=--f);else a.win.set(a.win.subarray(A,A+f),w),w+=f,A+=f,f=0;A=0}}else A=w-z,w-A>0&&2>w-A?(a.win[w++]=a.win[A++],a.win[w++]=a.win[A++],k-=2):(a.win.set(a.win.subarray(A,A+2),w),w+=2,A+=2,k-=2);if(w-A>0&&k>w-A)do{a.win[w++]=a.win[A++]}while(0!=--k);else a.win.set(a.win.subarray(A,A+k),w),w+=k,A+=k,k=0;break}if(64&f)return o.msg="invalid distance code",k=o.avail_in-h,k=k>p>>3?p>>3:k,h+=k,m-=k,p-=k<<3,a.bitb=u,a.bitk=p,o.avail_in=h,o.total_in+=m-o.next_in_index,o.next_in_index=m,a.write=w,_;c+=l[j+2],c+=u&S[f],j=3*(d+c),f=l[j]}break}if(64&f)return 32&f?(k=o.avail_in-h,k=k>p>>3?p>>3:k,h+=k,m-=k,p-=k<<3,a.bitb=u,a.bitk=p,o.avail_in=h,o.total_in+=m-o.next_in_index,o.next_in_index=m,a.write=w,v):(o.msg="invalid literal/length code",k=o.avail_in-h,k=k>p>>3?p>>3:k,h+=k,m-=k,p-=k<<3,a.bitb=u,a.bitk=p,o.avail_in=h,o.total_in+=m-o.next_in_index,o.next_in_index=m,a.write=w,_);if(c+=l[j+2],c+=u&S[f],j=3*(d+c),0===(f=l[j])){u>>=l[j+1],p-=l[j+1],a.win[w++]=l[j+2],g--;break}}else u>>=l[j+1],p-=l[j+1],a.win[w++]=l[j+2],g--}while(g>=258&&h>=10);return k=o.avail_in-h,k=k>p>>3?p>>3:k,h+=k,m-=k,p-=k<<3,a.bitb=u,a.bitk=p,o.avail_in=h,o.total_in+=m-o.next_in_index,o.next_in_index=m,a.write=w,b}e.init=(e,s,a,o,c,l)=>{t=R,f=e,u=s,r=a,p=o,i=c,m=l,n=null},e.proc=(e,w,g)=>{let x,k,z,A,j,D,C,F=0,U=0,E=0;for(E=w.next_in_index,A=w.avail_in,F=e.bitb,U=e.bitk,j=e.write,D=j<e.read?e.read-j-1:e.end-j;;)switch(t){case R:if(D>=258&&A>=10&&(e.bitb=F,e.bitk=U,w.avail_in=A,w.total_in+=E-w.next_in_index,w.next_in_index=E,e.write=j,g=h(f,u,r,p,i,m,e,w),E=w.next_in_index,A=w.avail_in,F=e.bitb,U=e.bitk,j=e.write,D=j<e.read?e.read-j-1:e.end-j,g!=b)){t=g==v?L:G;break}o=f,n=r,a=p,t=O;case O:for(x=o;x>U;){if(0===A)return e.bitb=F,e.bitk=U,w.avail_in=A,w.total_in+=E-w.next_in_index,w.next_in_index=E,e.write=j,e.inflate_flush(w,g);g=b,A--,F|=(255&w.read_byte(E++))<<U,U+=8}if(k=3*(a+(F&S[x])),F>>>=n[k+1],U-=n[k+1],z=n[k],0===z){c=n[k+2],t=B;break}if(16&z){l=15&z,s=n[k+2],t=W;break}if(!(64&z)){o=z,a=k/3+n[k+2];break}if(32&z){t=L;break}return t=G,w.msg="invalid literal/length code",g=_,e.bitb=F,e.bitk=U,w.avail_in=A,w.total_in+=E-w.next_in_index,w.next_in_index=E,e.write=j,e.inflate_flush(w,g);case W:for(x=l;x>U;){if(0===A)return e.bitb=F,e.bitk=U,w.avail_in=A,w.total_in+=E-w.next_in_index,w.next_in_index=E,e.write=j,e.inflate_flush(w,g);g=b,A--,F|=(255&w.read_byte(E++))<<U,U+=8}s+=F&S[x],F>>=x,U-=x,o=u,n=i,a=m,t=I;case I:for(x=o;x>U;){if(0===A)return e.bitb=F,e.bitk=U,w.avail_in=A,w.total_in+=E-w.next_in_index,w.next_in_index=E,e.write=j,e.inflate_flush(w,g);g=b,A--,F|=(255&w.read_byte(E++))<<U,U+=8}if(k=3*(a+(F&S[x])),F>>=n[k+1],U-=n[k+1],z=n[k],16&z){l=15&z,d=n[k+2],t=M;break}if(!(64&z)){o=z,a=k/3+n[k+2];break}return t=G,w.msg="invalid distance code",g=_,e.bitb=F,e.bitk=U,w.avail_in=A,w.total_in+=E-w.next_in_index,w.next_in_index=E,e.write=j,e.inflate_flush(w,g);case M:for(x=l;x>U;){if(0===A)return e.bitb=F,e.bitk=U,w.avail_in=A,w.total_in+=E-w.next_in_index,w.next_in_index=E,e.write=j,e.inflate_flush(w,g);g=b,A--,F|=(255&w.read_byte(E++))<<U,U+=8}d+=F&S[x],F>>=x,U-=x,t=P;case P:for(C=j-d;0>C;)C+=e.end;for(;0!==s;){if(0===D&&(j==e.end&&0!==e.read&&(j=0,D=j<e.read?e.read-j-1:e.end-j),0===D&&(e.write=j,g=e.inflate_flush(w,g),j=e.write,D=j<e.read?e.read-j-1:e.end-j,j==e.end&&0!==e.read&&(j=0,D=j<e.read?e.read-j-1:e.end-j),0===D)))return e.bitb=F,e.bitk=U,w.avail_in=A,w.total_in+=E-w.next_in_index,w.next_in_index=E,e.write=j,e.inflate_flush(w,g);e.win[j++]=e.win[C++],D--,C==e.end&&(C=0),s--}t=R;break;case B:if(0===D&&(j==e.end&&0!==e.read&&(j=0,D=j<e.read?e.read-j-1:e.end-j),0===D&&(e.write=j,g=e.inflate_flush(w,g),j=e.write,D=j<e.read?e.read-j-1:e.end-j,j==e.end&&0!==e.read&&(j=0,D=j<e.read?e.read-j-1:e.end-j),0===D)))return e.bitb=F,e.bitk=U,w.avail_in=A,w.total_in+=E-w.next_in_index,w.next_in_index=E,e.write=j,e.inflate_flush(w,g);g=b,e.win[j++]=c,D--,t=R;break;case L:if(U>7&&(U-=8,A++,E--),e.write=j,g=e.inflate_flush(w,g),j=e.write,D=j<e.read?e.read-j-1:e.end-j,e.read!=e.write)return e.bitb=F,e.bitk=U,w.avail_in=A,w.total_in+=E-w.next_in_index,w.next_in_index=E,e.write=j,e.inflate_flush(w,g);t=N;case N:return g=v,e.bitb=F,e.bitk=U,w.avail_in=A,w.total_in+=E-w.next_in_index,w.next_in_index=E,e.write=j,e.inflate_flush(w,g);case G:return g=_,e.bitb=F,e.bitk=U,w.avail_in=A,w.total_in+=E-w.next_in_index,w.next_in_index=E,e.write=j,e.inflate_flush(w,g);default:return g=y,e.bitb=F,e.bitk=U,w.avail_in=A,w.total_in+=E-w.next_in_index,w.next_in_index=E,e.write=j,e.inflate_flush(w,g)}},e.free=()=>{}}const V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Z=0,K=1,X=2,Q=3,Y=4,J=5,$=6,ee=7,te=8,ne=9;function re(e,t){const n=this;let r,i=Z,s=0,a=0,o=0;const c=[0],l=[0],d=new H;let f=0,u=new Int32Array(3*A);const p=new q;n.bitk=0,n.bitb=0,n.win=new Uint8Array(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),i==$&&d.free(e),i=Z,n.bitk=0,n.bitb=0,n.read=n.write=0},n.reset(e,null),n.inflate_flush=(e,t)=>{let r,i,s;return i=e.next_out_index,s=n.read,r=(s>n.write?n.end:n.write)-s,r>e.avail_out&&(r=e.avail_out),0!==r&&t==z&&(t=b),e.avail_out-=r,e.total_out+=r,e.next_out.set(n.win.subarray(s,s+r),i),i+=r,s+=r,s==n.end&&(s=0,n.write==n.end&&(n.write=0),r=n.write-s,r>e.avail_out&&(r=e.avail_out),0!==r&&t==z&&(t=b),e.avail_out-=r,e.total_out+=r,e.next_out.set(n.win.subarray(s,s+r),i),i+=r,s+=r),e.next_out_index=i,n.read=s,t},n.proc=(e,t)=>{let m,h,w,g,x,k,z,A;for(g=e.next_in_index,x=e.avail_in,h=n.bitb,w=n.bitk,k=n.write,z=k<n.read?n.read-k-1:n.end-k;;){let j,D,C,F,U,E,T,R;switch(i){case Z:for(;3>w;){if(0===x)return n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,n.inflate_flush(e,t);t=b,x--,h|=(255&e.read_byte(g++))<<w,w+=8}switch(m=7&h,f=1&m,m>>>1){case 0:h>>>=3,w-=3,m=7&w,h>>>=m,w-=m,i=K;break;case 1:j=[],D=[],C=[[]],F=[[]],q.inflate_trees_fixed(j,D,C,F),d.init(j[0],D[0],C[0],0,F[0],0),h>>>=3,w-=3,i=$;break;case 2:h>>>=3,w-=3,i=Q;break;case 3:return h>>>=3,w-=3,i=ne,e.msg="invalid block type",t=_,n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,n.inflate_flush(e,t)}break;case K:for(;32>w;){if(0===x)return n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,n.inflate_flush(e,t);t=b,x--,h|=(255&e.read_byte(g++))<<w,w+=8}if((~h>>>16&65535)!=(65535&h))return i=ne,e.msg="invalid stored block lengths",t=_,n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,n.inflate_flush(e,t);s=65535&h,h=w=0,i=0!==s?X:0!==f?ee:Z;break;case X:if(0===x)return n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,n.inflate_flush(e,t);if(0===z&&(k==n.end&&0!==n.read&&(k=0,z=k<n.read?n.read-k-1:n.end-k),0===z&&(n.write=k,t=n.inflate_flush(e,t),k=n.write,z=k<n.read?n.read-k-1:n.end-k,k==n.end&&0!==n.read&&(k=0,z=k<n.read?n.read-k-1:n.end-k),0===z)))return n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,n.inflate_flush(e,t);if(t=b,m=s,m>x&&(m=x),m>z&&(m=z),n.win.set(e.read_buf(g,m),k),g+=m,x-=m,k+=m,z-=m,0!=(s-=m))break;i=0!==f?ee:Z;break;case Q:for(;14>w;){if(0===x)return n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,n.inflate_flush(e,t);t=b,x--,h|=(255&e.read_byte(g++))<<w,w+=8}if(a=m=16383&h,(31&m)>29||(m>>5&31)>29)return i=ne,e.msg="too many length or distance symbols",t=_,n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,n.inflate_flush(e,t);if(m=258+(31&m)+(m>>5&31),!r||r.length<m)r=[];else for(A=0;m>A;A++)r[A]=0;h>>>=14,w-=14,o=0,i=Y;case Y:for(;4+(a>>>10)>o;){for(;3>w;){if(0===x)return n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,n.inflate_flush(e,t);t=b,x--,h|=(255&e.read_byte(g++))<<w,w+=8}r[V[o++]]=7&h,h>>>=3,w-=3}for(;19>o;)r[V[o++]]=0;if(c[0]=7,m=p.inflate_trees_bits(r,c,l,u,e),m!=b)return(t=m)==_&&(r=null,i=ne),n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,n.inflate_flush(e,t);o=0,i=J;case J:for(;m=a,258+(31&m)+(m>>5&31)>o;){let s,d;for(m=c[0];m>w;){if(0===x)return n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,n.inflate_flush(e,t);t=b,x--,h|=(255&e.read_byte(g++))<<w,w+=8}if(m=u[3*(l[0]+(h&S[m]))+1],d=u[3*(l[0]+(h&S[m]))+2],16>d)h>>>=m,w-=m,r[o++]=d;else{for(A=18==d?7:d-14,s=18==d?11:3;m+A>w;){if(0===x)return n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,n.inflate_flush(e,t);t=b,x--,h|=(255&e.read_byte(g++))<<w,w+=8}if(h>>>=m,w-=m,s+=h&S[A],h>>>=A,w-=A,A=o,m=a,A+s>258+(31&m)+(m>>5&31)||16==d&&1>A)return r=null,i=ne,e.msg="invalid bit length repeat",t=_,n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,n.inflate_flush(e,t);d=16==d?r[A-1]:0;do{r[A++]=d}while(0!=--s);o=A}}if(l[0]=-1,U=[],E=[],T=[],R=[],U[0]=9,E[0]=6,m=a,m=p.inflate_trees_dynamic(257+(31&m),1+(m>>5&31),r,U,E,T,R,u,e),m!=b)return m==_&&(r=null,i=ne),t=m,n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,n.inflate_flush(e,t);d.init(U[0],E[0],u,T[0],u,R[0]),i=$;case $:if(n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,(t=d.proc(n,e,t))!=v)return n.inflate_flush(e,t);if(t=b,d.free(e),g=e.next_in_index,x=e.avail_in,h=n.bitb,w=n.bitk,k=n.write,z=k<n.read?n.read-k-1:n.end-k,0===f){i=Z;break}i=ee;case ee:if(n.write=k,t=n.inflate_flush(e,t),k=n.write,z=k<n.read?n.read-k-1:n.end-k,n.read!=n.write)return n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,n.inflate_flush(e,t);i=te;case te:return t=v,n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,n.inflate_flush(e,t);case ne:return t=_,n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,n.inflate_flush(e,t);default:return t=y,n.bitb=h,n.bitk=w,e.avail_in=x,e.total_in+=g-e.next_in_index,e.next_in_index=g,n.write=k,n.inflate_flush(e,t)}}},n.free=e=>{n.reset(e,null),n.win=null,u=null},n.set_dictionary=(e,t,r)=>{n.win.set(e.subarray(t,t+r),0),n.read=n.write=r},n.sync_point=()=>i==K?1:0}const ie=13,se=[0,0,255,255];function ae(){const e=this;function t(e){return e&&e.istate?(e.total_in=e.total_out=0,e.msg=null,e.istate.mode=7,e.istate.blocks.reset(e,null),b):y}e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0,e.inflateEnd=t=>(e.blocks&&e.blocks.free(t),e.blocks=null,b),e.inflateInit=(n,r)=>(n.msg=null,e.blocks=null,8>r||r>15?(e.inflateEnd(n),y):(e.wbits=r,n.istate.blocks=new re(n,1<<r),t(n),b)),e.inflate=(e,t)=>{let n,r;if(!e||!e.istate||!e.next_in)return y;const i=e.istate;for(t=4==t?z:b,n=z;;)switch(i.mode){case 0:if(0===e.avail_in)return n;if(n=t,e.avail_in--,e.total_in++,8!=(15&(i.method=e.read_byte(e.next_in_index++)))){i.mode=ie,e.msg="unknown compression method",i.marker=5;break}if(8+(i.method>>4)>i.wbits){i.mode=ie,e.msg="invalid win size",i.marker=5;break}i.mode=1;case 1:if(0===e.avail_in)return n;if(n=t,e.avail_in--,e.total_in++,r=255&e.read_byte(e.next_in_index++),((i.method<<8)+r)%31!=0){i.mode=ie,e.msg="incorrect header check",i.marker=5;break}if(!(32&r)){i.mode=7;break}i.mode=2;case 2:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,i.need=(255&e.read_byte(e.next_in_index++))<<24&4278190080,i.mode=3;case 3:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,i.need+=(255&e.read_byte(e.next_in_index++))<<16&16711680,i.mode=4;case 4:if(0===e.avail_in)return n;n=t,e.avail_in--,e.total_in++,i.need+=(255&e.read_byte(e.next_in_index++))<<8&65280,i.mode=5;case 5:return 0===e.avail_in?n:(n=t,e.avail_in--,e.total_in++,i.need+=255&e.read_byte(e.next_in_index++),i.mode=6,2);case 6:return i.mode=ie,e.msg="need dictionary",i.marker=0,y;case 7:if(n=i.blocks.proc(e,n),n==_){i.mode=ie,i.marker=0;break}if(n==b&&(n=t),n!=v)return n;n=t,i.blocks.reset(e,i.was),i.mode=12;case 12:return e.avail_in=0,v;case ie:return _;default:return y}},e.inflateSetDictionary=(e,t,n)=>{let r=0,i=n;if(!e||!e.istate||6!=e.istate.mode)return y;const s=e.istate;return i<1<<s.wbits||(i=(1<<s.wbits)-1,r=n-i),s.blocks.set_dictionary(t,r,i),s.mode=7,b},e.inflateSync=e=>{let n,r,i,s,a;if(!e||!e.istate)return y;const o=e.istate;if(o.mode!=ie&&(o.mode=ie,o.marker=0),0===(n=e.avail_in))return z;for(r=e.next_in_index,i=o.marker;0!==n&&4>i;)e.read_byte(r)==se[i]?i++:i=0!==e.read_byte(r)?0:4-i,r++,n--;return e.total_in+=r-e.next_in_index,e.next_in_index=r,e.avail_in=n,o.marker=i,4!=i?_:(s=e.total_in,a=e.total_out,t(e),e.total_in=s,e.total_out=a,o.mode=7,b)},e.inflateSyncPoint=e=>e&&e.istate&&e.istate.blocks?e.istate.blocks.sync_point():y}function oe(){}oe.prototype={inflateInit(e){const t=this;return t.istate=new ae,e||(e=15),t.istate.inflateInit(t,e)},inflate(e){const t=this;return t.istate?t.istate.inflate(t,e):y},inflateEnd(){const e=this;if(!e.istate)return y;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync(){const e=this;return e.istate?e.istate.inflateSync(e):y},inflateSetDictionary(e,t){const n=this;return n.istate?n.istate.inflateSetDictionary(n,e,t):y},read_byte(e){return this.next_in[e]},read_buf(e,t){return this.next_in.subarray(e,e+t)}};const ce=4294967295,le=65535,de=67324752,fe=134695760,ue=fe,pe=33639248,me=101010256,he=101075792,we=117853008,ge=22,xe=21589,be=2048,ve="/",ye=new Date(2107,11,31),_e=new Date(1980,0,1),ke=void 0,ze="undefined",Se="function";class Ae{constructor(e){return class extends TransformStream{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}let je=2;try{typeof navigator!=ze&&navigator.hardwareConcurrency&&(je=navigator.hardwareConcurrency)}catch(e){}const De={chunkSize:524288,maxWorkers:je,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:ke,CompressionStreamNative:typeof CompressionStream!=ze&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=ze&&DecompressionStream},Ce=Object.assign({},De);function Fe(){return Ce}function Ue(e){return Math.max(e.chunkSize,64)}function Ee(e){const{baseURL:t,chunkSize:n,maxWorkers:r,terminateWorkerTimeout:i,useCompressionStream:s,useWebWorkers:a,Deflate:o,Inflate:c,CompressionStream:l,DecompressionStream:d,workerScripts:f}=e;if(Te("baseURL",t),Te("chunkSize",n),Te("maxWorkers",r),Te("terminateWorkerTimeout",i),Te("useCompressionStream",s),Te("useWebWorkers",a),o&&(Ce.CompressionStream=new Ae(o)),c&&(Ce.DecompressionStream=new Ae(c)),Te("CompressionStream",l),Te("DecompressionStream",d),f!==ke){const{deflate:e,inflate:t}=f;if((e||t)&&(Ce.workerScripts||(Ce.workerScripts={})),e){if(!Array.isArray(e))throw Error("workerScripts.deflate must be an array");Ce.workerScripts.deflate=e}if(t){if(!Array.isArray(t))throw Error("workerScripts.inflate must be an array");Ce.workerScripts.inflate=t}}}function Te(e,t){t!==ke&&(Ce[e]=t)}const qe={application:{"andrew-inset":"ez",annodex:"anx","atom+xml":"atom","atomcat+xml":"atomcat","atomserv+xml":"atomsrv",bbolin:"lin","cu-seeme":"cu","davmount+xml":"davmount",dsptype:"tsp",ecmascript:["es","ecma"],futuresplash:"spl",hta:"hta","java-archive":"jar","java-serialized-object":"ser","java-vm":"class",m3g:"m3g","mac-binhex40":"hqx",mathematica:["nb","ma","mb"],msaccess:"mdb",msword:["doc","dot","wiz"],mxf:"mxf",oda:"oda",ogg:"ogx",pdf:"pdf","pgp-keys":"key","pgp-signature":["asc","sig"],"pics-rules":"prf",postscript:["ps","ai","eps","epsi","epsf","eps2","eps3"],rar:"rar","rdf+xml":"rdf","rss+xml":"rss",rtf:"rtf","xhtml+xml":["xhtml","xht"],xml:["xml","xsl","xsd","xpdl"],"xspf+xml":"xspf",zip:"zip","vnd.android.package-archive":"apk","vnd.cinderella":"cdy","vnd.google-earth.kml+xml":"kml","vnd.google-earth.kmz":"kmz","vnd.mozilla.xul+xml":"xul","vnd.ms-excel":["xls","xlb","xlt","xlm","xla","xlc","xlw"],"vnd.ms-pki.seccat":"cat","vnd.ms-pki.stl":"stl","vnd.ms-powerpoint":["ppt","pps","pot","ppa","pwz"],"vnd.oasis.opendocument.chart":"odc","vnd.oasis.opendocument.database":"odb","vnd.oasis.opendocument.formula":"odf","vnd.oasis.opendocument.graphics":"odg","vnd.oasis.opendocument.graphics-template":"otg","vnd.oasis.opendocument.image":"odi","vnd.oasis.opendocument.presentation":"odp","vnd.oasis.opendocument.presentation-template":"otp","vnd.oasis.opendocument.spreadsheet":"ods","vnd.oasis.opendocument.spreadsheet-template":"ots","vnd.oasis.opendocument.text":"odt","vnd.oasis.opendocument.text-master":["odm","otm"],"vnd.oasis.opendocument.text-template":"ott","vnd.oasis.opendocument.text-web":"oth","vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","vnd.openxmlformats-officedocument.presentationml.slideshow":"ppsx","vnd.openxmlformats-officedocument.presentationml.template":"potx","vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx","vnd.smaf":"mmf","vnd.stardivision.calc":"sdc","vnd.stardivision.chart":"sds","vnd.stardivision.draw":"sda","vnd.stardivision.impress":"sdd","vnd.stardivision.math":["sdf","smf"],"vnd.stardivision.writer":["sdw","vor"],"vnd.stardivision.writer-global":"sgl","vnd.sun.xml.calc":"sxc","vnd.sun.xml.calc.template":"stc","vnd.sun.xml.draw":"sxd","vnd.sun.xml.draw.template":"std","vnd.sun.xml.impress":"sxi","vnd.sun.xml.impress.template":"sti","vnd.sun.xml.math":"sxm","vnd.sun.xml.writer":"sxw","vnd.sun.xml.writer.global":"sxg","vnd.sun.xml.writer.template":"stw","vnd.symbian.install":["sis","sisx"],"vnd.visio":["vsd","vst","vss","vsw","vsdx","vssx","vstx","vssm","vstm"],"vnd.wap.wbxml":"wbxml","vnd.wap.wmlc":"wmlc","vnd.wap.wmlscriptc":"wmlsc","vnd.wordperfect":"wpd","vnd.wordperfect5.1":"wp5","x-123":"wk","x-7z-compressed":"7z","x-abiword":"abw","x-apple-diskimage":"dmg","x-bcpio":"bcpio","x-bittorrent":"torrent","x-cbr":["cbr","cba","cbt","cb7"],"x-cbz":"cbz","x-cdf":["cdf","cda"],"x-cdlink":"vcd","x-chess-pgn":"pgn","x-cpio":"cpio","x-csh":"csh","x-director":["dir","dxr","cst","cct","cxt","w3d","fgd","swa"],"x-dms":"dms","x-doom":"wad","x-dvi":"dvi","x-httpd-eruby":"rhtml","x-font":"pcf.Z","x-freemind":"mm","x-gnumeric":"gnumeric","x-go-sgf":"sgf","x-graphing-calculator":"gcf","x-gtar":["gtar","taz"],"x-hdf":"hdf","x-httpd-php":["phtml","pht","php"],"x-httpd-php-source":"phps","x-httpd-php3":"php3","x-httpd-php3-preprocessed":"php3p","x-httpd-php4":"php4","x-httpd-php5":"php5","x-ica":"ica","x-info":"info","x-internet-signup":["ins","isp"],"x-iphone":"iii","x-iso9660-image":"iso","x-java-jnlp-file":"jnlp","x-jmol":"jmz","x-killustrator":"kil","x-latex":"latex","x-lyx":"lyx","x-lzx":"lzx","x-maker":["frm","fb","fbdoc"],"x-ms-wmd":"wmd","x-msdos-program":["com","exe","bat","dll"],"x-netcdf":["nc"],"x-ns-proxy-autoconfig":["pac","dat"],"x-nwc":"nwc","x-object":"o","x-oz-application":"oza","x-pkcs7-certreqresp":"p7r","x-python-code":["pyc","pyo"],"x-qgis":["qgs","shp","shx"],"x-quicktimeplayer":"qtl","x-redhat-package-manager":["rpm","rpa"],"x-ruby":"rb","x-sh":"sh","x-shar":"shar","x-shockwave-flash":["swf","swfl"],"x-silverlight":"scr","x-stuffit":"sit","x-sv4cpio":"sv4cpio","x-sv4crc":"sv4crc","x-tar":"tar","x-tex-gf":"gf","x-tex-pk":"pk","x-texinfo":["texinfo","texi"],"x-trash":["~","%","bak","old","sik"],"x-ustar":"ustar","x-wais-source":"src","x-wingz":"wz","x-x509-ca-cert":["crt","der","cer"],"x-xcf":"xcf","x-xfig":"fig","x-xpinstall":"xpi",applixware:"aw","atomsvc+xml":"atomsvc","ccxml+xml":"ccxml","cdmi-capability":"cdmia","cdmi-container":"cdmic","cdmi-domain":"cdmid","cdmi-object":"cdmio","cdmi-queue":"cdmiq","docbook+xml":"dbk","dssc+der":"dssc","dssc+xml":"xdssc","emma+xml":"emma","epub+zip":"epub",exi:"exi","font-tdpfr":"pfr","gml+xml":"gml","gpx+xml":"gpx",gxf:"gxf",hyperstudio:"stk","inkml+xml":["ink","inkml"],ipfix:"ipfix","jsonml+json":"jsonml","lost+xml":"lostxml","mads+xml":"mads",marc:"mrc","marcxml+xml":"mrcx","mathml+xml":["mathml","mml"],mbox:"mbox","mediaservercontrol+xml":"mscml","metalink+xml":"metalink","metalink4+xml":"meta4","mets+xml":"mets","mods+xml":"mods",mp21:["m21","mp21"],mp4:"mp4s","oebps-package+xml":"opf","omdoc+xml":"omdoc",onenote:["onetoc","onetoc2","onetmp","onepkg"],oxps:"oxps","patch-ops-error+xml":"xer","pgp-encrypted":"pgp",pkcs10:"p10","pkcs7-mime":["p7m","p7c"],"pkcs7-signature":"p7s",pkcs8:"p8","pkix-attr-cert":"ac","pkix-crl":"crl","pkix-pkipath":"pkipath",pkixcmp:"pki","pls+xml":"pls","prs.cww":"cww","pskc+xml":"pskcxml","reginfo+xml":"rif","relax-ng-compact-syntax":"rnc","resource-lists+xml":"rl","resource-lists-diff+xml":"rld","rls-services+xml":"rs","rpki-ghostbusters":"gbr","rpki-manifest":"mft","rpki-roa":"roa","rsd+xml":"rsd","sbml+xml":"sbml","scvp-cv-request":"scq","scvp-cv-response":"scs","scvp-vp-request":"spq","scvp-vp-response":"spp",sdp:"sdp","set-payment-initiation":"setpay","set-registration-initiation":"setreg","shf+xml":"shf","sparql-query":"rq","sparql-results+xml":"srx",srgs:"gram","srgs+xml":"grxml","sru+xml":"sru","ssdl+xml":"ssdl","ssml+xml":"ssml","tei+xml":["tei","teicorpus"],"thraud+xml":"tfi","timestamped-data":"tsd","vnd.3gpp.pic-bw-large":"plb","vnd.3gpp.pic-bw-small":"psb","vnd.3gpp.pic-bw-var":"pvb","vnd.3gpp2.tcap":"tcap","vnd.3m.post-it-notes":"pwn","vnd.accpac.simply.aso":"aso","vnd.accpac.simply.imp":"imp","vnd.acucobol":"acu","vnd.acucorp":["atc","acutc"],"vnd.adobe.air-application-installer-package+zip":"air","vnd.adobe.formscentral.fcdt":"fcdt","vnd.adobe.fxp":["fxp","fxpl"],"vnd.adobe.xdp+xml":"xdp","vnd.adobe.xfdf":"xfdf","vnd.ahead.space":"ahead","vnd.airzip.filesecure.azf":"azf","vnd.airzip.filesecure.azs":"azs","vnd.amazon.ebook":"azw","vnd.americandynamics.acc":"acc","vnd.amiga.ami":"ami","vnd.anser-web-certificate-issue-initiation":"cii","vnd.anser-web-funds-transfer-initiation":"fti","vnd.antix.game-component":"atx","vnd.apple.installer+xml":"mpkg","vnd.apple.mpegurl":"m3u8","vnd.aristanetworks.swi":"swi","vnd.astraea-software.iota":"iota","vnd.audiograph":"aep","vnd.blueice.multipass":"mpm","vnd.bmi":"bmi","vnd.businessobjects":"rep","vnd.chemdraw+xml":"cdxml","vnd.chipnuts.karaoke-mmd":"mmd","vnd.claymore":"cla","vnd.cloanto.rp9":"rp9","vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"vnd.cluetrust.cartomobile-config":"c11amc","vnd.cluetrust.cartomobile-config-pkg":"c11amz","vnd.commonspace":"csp","vnd.contact.cmsg":"cdbcmsg","vnd.cosmocaller":"cmc","vnd.crick.clicker":"clkx","vnd.crick.clicker.keyboard":"clkk","vnd.crick.clicker.palette":"clkp","vnd.crick.clicker.template":"clkt","vnd.crick.clicker.wordbank":"clkw","vnd.criticaltools.wbs+xml":"wbs","vnd.ctc-posml":"pml","vnd.cups-ppd":"ppd","vnd.curl.car":"car","vnd.curl.pcurl":"pcurl","vnd.dart":"dart","vnd.data-vision.rdz":"rdz","vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"vnd.dece.ttml+xml":["uvt","uvvt"],"vnd.dece.unspecified":["uvx","uvvx"],"vnd.dece.zip":["uvz","uvvz"],"vnd.denovo.fcselayout-link":"fe_launch","vnd.dna":"dna","vnd.dolby.mlp":"mlp","vnd.dpgraph":"dpg","vnd.dreamfactory":"dfac","vnd.ds-keypoint":"kpxx","vnd.dvb.ait":"ait","vnd.dvb.service":"svc","vnd.dynageo":"geo","vnd.ecowin.chart":"mag","vnd.enliven":"nml","vnd.epson.esf":"esf","vnd.epson.msf":"msf","vnd.epson.quickanime":"qam","vnd.epson.salt":"slt","vnd.epson.ssf":"ssf","vnd.eszigno3+xml":["es3","et3"],"vnd.ezpix-album":"ez2","vnd.ezpix-package":"ez3","vnd.fdf":"fdf","vnd.fdsn.mseed":"mseed","vnd.fdsn.seed":["seed","dataless"],"vnd.flographit":"gph","vnd.fluxtime.clip":"ftc","vnd.framemaker":["fm","frame","maker","book"],"vnd.frogans.fnc":"fnc","vnd.frogans.ltf":"ltf","vnd.fsc.weblaunch":"fsc","vnd.fujitsu.oasys":"oas","vnd.fujitsu.oasys2":"oa2","vnd.fujitsu.oasys3":"oa3","vnd.fujitsu.oasysgp":"fg5","vnd.fujitsu.oasysprs":"bh2","vnd.fujixerox.ddd":"ddd","vnd.fujixerox.docuworks":"xdw","vnd.fujixerox.docuworks.binder":"xbd","vnd.fuzzysheet":"fzs","vnd.genomatix.tuxedo":"txd","vnd.geogebra.file":"ggb","vnd.geogebra.tool":"ggt","vnd.geometry-explorer":["gex","gre"],"vnd.geonext":"gxt","vnd.geoplan":"g2w","vnd.geospace":"g3w","vnd.gmx":"gmx","vnd.grafeq":["gqf","gqs"],"vnd.groove-account":"gac","vnd.groove-help":"ghf","vnd.groove-identity-message":"gim","vnd.groove-injector":"grv","vnd.groove-tool-message":"gtm","vnd.groove-tool-template":"tpl","vnd.groove-vcard":"vcg","vnd.hal+xml":"hal","vnd.handheld-entertainment+xml":"zmm","vnd.hbci":"hbci","vnd.hhe.lesson-player":"les","vnd.hp-hpgl":"hpgl","vnd.hp-hpid":"hpid","vnd.hp-hps":"hps","vnd.hp-jlyt":"jlt","vnd.hp-pcl":"pcl","vnd.hp-pclxl":"pclxl","vnd.hydrostatix.sof-data":"sfd-hdstx","vnd.ibm.minipay":"mpy","vnd.ibm.modcap":["afp","listafp","list3820"],"vnd.ibm.rights-management":"irm","vnd.ibm.secure-container":"sc","vnd.iccprofile":["icc","icm"],"vnd.igloader":"igl","vnd.immervision-ivp":"ivp","vnd.immervision-ivu":"ivu","vnd.insors.igm":"igm","vnd.intercon.formnet":["xpw","xpx"],"vnd.intergeo":"i2g","vnd.intu.qbo":"qbo","vnd.intu.qfx":"qfx","vnd.ipunplugged.rcprofile":"rcprofile","vnd.irepository.package+xml":"irp","vnd.is-xpr":"xpr","vnd.isac.fcs":"fcs","vnd.jam":"jam","vnd.jcp.javame.midlet-rms":"rms","vnd.jisp":"jisp","vnd.joost.joda-archive":"joda","vnd.kahootz":["ktz","ktr"],"vnd.kde.karbon":"karbon","vnd.kde.kchart":"chrt","vnd.kde.kformula":"kfo","vnd.kde.kivio":"flw","vnd.kde.kontour":"kon","vnd.kde.kpresenter":["kpr","kpt"],"vnd.kde.kspread":"ksp","vnd.kde.kword":["kwd","kwt"],"vnd.kenameaapp":"htke","vnd.kidspiration":"kia","vnd.kinar":["kne","knp"],"vnd.koan":["skp","skd","skt","skm"],"vnd.kodak-descriptor":"sse","vnd.las.las+xml":"lasxml","vnd.llamagraphics.life-balance.desktop":"lbd","vnd.llamagraphics.life-balance.exchange+xml":"lbe","vnd.lotus-1-2-3":"123","vnd.lotus-approach":"apr","vnd.lotus-freelance":"pre","vnd.lotus-notes":"nsf","vnd.lotus-organizer":"org","vnd.lotus-screencam":"scm","vnd.lotus-wordpro":"lwp","vnd.macports.portpkg":"portpkg","vnd.mcd":"mcd","vnd.medcalcdata":"mc1","vnd.mediastation.cdkey":"cdkey","vnd.mfer":"mwf","vnd.mfmp":"mfm","vnd.micrografx.flo":"flo","vnd.micrografx.igx":"igx","vnd.mif":"mif","vnd.mobius.daf":"daf","vnd.mobius.dis":"dis","vnd.mobius.mbk":"mbk","vnd.mobius.mqy":"mqy","vnd.mobius.msl":"msl","vnd.mobius.plc":"plc","vnd.mobius.txf":"txf","vnd.mophun.application":"mpn","vnd.mophun.certificate":"mpc","vnd.ms-artgalry":"cil","vnd.ms-cab-compressed":"cab","vnd.ms-excel.addin.macroenabled.12":"xlam","vnd.ms-excel.sheet.binary.macroenabled.12":"xlsb","vnd.ms-excel.sheet.macroenabled.12":"xlsm","vnd.ms-excel.template.macroenabled.12":"xltm","vnd.ms-fontobject":"eot","vnd.ms-htmlhelp":"chm","vnd.ms-ims":"ims","vnd.ms-lrm":"lrm","vnd.ms-officetheme":"thmx","vnd.ms-powerpoint.addin.macroenabled.12":"ppam","vnd.ms-powerpoint.presentation.macroenabled.12":"pptm","vnd.ms-powerpoint.slide.macroenabled.12":"sldm","vnd.ms-powerpoint.slideshow.macroenabled.12":"ppsm","vnd.ms-powerpoint.template.macroenabled.12":"potm","vnd.ms-project":["mpp","mpt"],"vnd.ms-word.document.macroenabled.12":"docm","vnd.ms-word.template.macroenabled.12":"dotm","vnd.ms-works":["wps","wks","wcm","wdb"],"vnd.ms-wpl":"wpl","vnd.ms-xpsdocument":"xps","vnd.mseq":"mseq","vnd.musician":"mus","vnd.muvee.style":"msty","vnd.mynfc":"taglet","vnd.neurolanguage.nlu":"nlu","vnd.nitf":["ntf","nitf"],"vnd.noblenet-directory":"nnd","vnd.noblenet-sealer":"nns","vnd.noblenet-web":"nnw","vnd.nokia.n-gage.data":"ngdat","vnd.nokia.n-gage.symbian.install":"n-gage","vnd.nokia.radio-preset":"rpst","vnd.nokia.radio-presets":"rpss","vnd.novadigm.edm":"edm","vnd.novadigm.edx":"edx","vnd.novadigm.ext":"ext","vnd.oasis.opendocument.chart-template":"otc","vnd.oasis.opendocument.formula-template":"odft","vnd.oasis.opendocument.image-template":"oti","vnd.olpc-sugar":"xo","vnd.oma.dd2+xml":"dd2","vnd.openofficeorg.extension":"oxt","vnd.openxmlformats-officedocument.presentationml.slide":"sldx","vnd.osgeo.mapguide.package":"mgp","vnd.osgi.dp":"dp","vnd.osgi.subsystem":"esa","vnd.palm":["pdb","pqa","oprc"],"vnd.pawaafile":"paw","vnd.pg.format":"str","vnd.pg.osasli":"ei6","vnd.picsel":"efif","vnd.pmi.widget":"wg","vnd.pocketlearn":"plf","vnd.powerbuilder6":"pbd","vnd.previewsystems.box":"box","vnd.proteus.magazine":"mgz","vnd.publishare-delta-tree":"qps","vnd.pvi.ptid1":"ptid","vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"vnd.realvnc.bed":"bed","vnd.recordare.musicxml":"mxl","vnd.recordare.musicxml+xml":"musicxml","vnd.rig.cryptonote":"cryptonote","vnd.rn-realmedia":"rm","vnd.rn-realmedia-vbr":"rmvb","vnd.route66.link66+xml":"link66","vnd.sailingtracker.track":"st","vnd.seemail":"see","vnd.sema":"sema","vnd.semd":"semd","vnd.semf":"semf","vnd.shana.informed.formdata":"ifm","vnd.shana.informed.formtemplate":"itp","vnd.shana.informed.interchange":"iif","vnd.shana.informed.package":"ipk","vnd.simtech-mindmapper":["twd","twds"],"vnd.smart.teacher":"teacher","vnd.solent.sdkm+xml":["sdkm","sdkd"],"vnd.spotfire.dxp":"dxp","vnd.spotfire.sfs":"sfs","vnd.stepmania.package":"smzip","vnd.stepmania.stepchart":"sm","vnd.sus-calendar":["sus","susp"],"vnd.svd":"svd","vnd.syncml+xml":"xsm","vnd.syncml.dm+wbxml":"bdm","vnd.syncml.dm+xml":"xdm","vnd.tao.intent-module-archive":"tao","vnd.tcpdump.pcap":["pcap","cap","dmp"],"vnd.tmobile-livetv":"tmo","vnd.trid.tpt":"tpt","vnd.triscape.mxs":"mxs","vnd.trueapp":"tra","vnd.ufdl":["ufd","ufdl"],"vnd.uiq.theme":"utz","vnd.umajin":"umj","vnd.unity":"unityweb","vnd.uoml+xml":"uoml","vnd.vcx":"vcx","vnd.visionary":"vis","vnd.vsf":"vsf","vnd.webturbo":"wtb","vnd.wolfram.player":"nbp","vnd.wqd":"wqd","vnd.wt.stf":"stf","vnd.xara":"xar","vnd.xfdl":"xfdl","vnd.yamaha.hv-dic":"hvd","vnd.yamaha.hv-script":"hvs","vnd.yamaha.hv-voice":"hvp","vnd.yamaha.openscoreformat":"osf","vnd.yamaha.openscoreformat.osfpvg+xml":"osfpvg","vnd.yamaha.smaf-audio":"saf","vnd.yamaha.smaf-phrase":"spf","vnd.yellowriver-custom-menu":"cmp","vnd.zul":["zir","zirz"],"vnd.zzazz.deck+xml":"zaz","voicexml+xml":"vxml",widget:"wgt",winhlp:"hlp","wsdl+xml":"wsdl","wspolicy+xml":"wspolicy","x-ace-compressed":"ace","x-authorware-bin":["aab","x32","u32","vox"],"x-authorware-map":"aam","x-authorware-seg":"aas","x-blorb":["blb","blorb"],"x-bzip":"bz","x-bzip2":["bz2","boz"],"x-cfs-compressed":"cfs","x-chat":"chat","x-conference":"nsc","x-dgc-compressed":"dgc","x-dtbncx+xml":"ncx","x-dtbook+xml":"dtb","x-dtbresource+xml":"res","x-eva":"eva","x-font-bdf":"bdf","x-font-ghostscript":"gsf","x-font-linux-psf":"psf","x-font-pcf":"pcf","x-font-snf":"snf","x-font-ttf":["ttf","ttc"],"x-font-type1":["pfa","pfb","pfm","afm"],"x-freearc":"arc","x-gca-compressed":"gca","x-glulx":"ulx","x-gramps-xml":"gramps","x-install-instructions":"install","x-lzh-compressed":["lzh","lha"],"x-mie":"mie","x-mobipocket-ebook":["prc","mobi"],"x-ms-application":"application","x-ms-shortcut":"lnk","x-ms-xbap":"xbap","x-msbinder":"obd","x-mscardfile":"crd","x-msclip":"clp","application/x-ms-installer":"msi","x-msmediaview":["mvb","m13","m14"],"x-msmetafile":["wmf","wmz","emf","emz"],"x-msmoney":"mny","x-mspublisher":"pub","x-msschedule":"scd","x-msterminal":"trm","x-mswrite":"wri","x-nzb":"nzb","x-pkcs12":["p12","pfx"],"x-pkcs7-certificates":["p7b","spc"],"x-research-info-systems":"ris","x-silverlight-app":"xap","x-sql":"sql","x-stuffitx":"sitx","x-subrip":"srt","x-t3vm-image":"t3","x-tex-tfm":"tfm","x-tgif":"obj","x-xliff+xml":"xlf","x-xz":"xz","x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"xaml+xml":"xaml","xcap-diff+xml":"xdf","xenc+xml":"xenc","xml-dtd":"dtd","xop+xml":"xop","xproc+xml":"xpl","xslt+xml":"xslt","xv+xml":["mxml","xhvml","xvml","xvm"],yang:"yang","yin+xml":"yin",envoy:"evy",fractals:"fif","internet-property-stream":"acx",olescript:"axs","vnd.ms-outlook":"msg","vnd.ms-pkicertstore":"sst","x-compress":"z","x-perfmon":["pma","pmc","pmr","pmw"],"ynd.ms-pkipko":"pko",gzip:["gz","tgz"],"smil+xml":["smi","smil"],"vnd.debian.binary-package":["deb","udeb"],"vnd.hzn-3d-crossword":"x3d","vnd.sqlite3":["db","sqlite","sqlite3","db-wal","sqlite-wal","db-shm","sqlite-shm"],"vnd.wap.sic":"sic","vnd.wap.slc":"slc","x-krita":["kra","krz"],"x-perl":["pm","pl"],yaml:["yaml","yml"]},audio:{amr:"amr","amr-wb":"awb",annodex:"axa",basic:["au","snd"],flac:"flac",midi:["mid","midi","kar","rmi"],mpeg:["mpga","mpega","mp3","m4a","mp2a","m2a","m3a"],mpegurl:"m3u",ogg:["oga","ogg","spx"],"prs.sid":"sid","x-aiff":"aifc","x-gsm":"gsm","x-ms-wma":"wma","x-ms-wax":"wax","x-pn-realaudio":"ram","x-realaudio":"ra","x-sd2":"sd2",adpcm:"adp",mp4:"mp4a",s3m:"s3m",silk:"sil","vnd.dece.audio":["uva","uvva"],"vnd.digital-winds":"eol","vnd.dra":"dra","vnd.dts":"dts","vnd.dts.hd":"dtshd","vnd.lucent.voice":"lvp","vnd.ms-playready.media.pya":"pya","vnd.nuera.ecelp4800":"ecelp4800","vnd.nuera.ecelp7470":"ecelp7470","vnd.nuera.ecelp9600":"ecelp9600","vnd.rip":"rip",webm:"weba","x-caf":"caf","x-matroska":"mka","x-pn-realaudio-plugin":"rmp",xm:"xm",aac:"aac",aiff:["aiff","aif","aff"],opus:"opus",wav:"wav"},chemical:{"x-alchemy":"alc","x-cache":["cac","cache"],"x-cache-csf":"csf","x-cactvs-binary":["cbin","cascii","ctab"],"x-cdx":"cdx","x-chem3d":"c3d","x-cif":"cif","x-cmdf":"cmdf","x-cml":"cml","x-compass":"cpa","x-crossfire":"bsd","x-csml":["csml","csm"],"x-ctx":"ctx","x-cxf":["cxf","cef"],"x-embl-dl-nucleotide":["emb","embl"],"x-gamess-input":["inp","gam","gamin"],"x-gaussian-checkpoint":["fch","fchk"],"x-gaussian-cube":"cub","x-gaussian-input":["gau","gjc","gjf"],"x-gaussian-log":"gal","x-gcg8-sequence":"gcg","x-genbank":"gen","x-hin":"hin","x-isostar":["istr","ist"],"x-jcamp-dx":["jdx","dx"],"x-kinemage":"kin","x-macmolecule":"mcm","x-macromodel-input":"mmod","x-mdl-molfile":"mol","x-mdl-rdfile":"rd","x-mdl-rxnfile":"rxn","x-mdl-sdfile":"sd","x-mdl-tgf":"tgf","x-mmcif":"mcif","x-mol2":"mol2","x-molconn-Z":"b","x-mopac-graph":"gpt","x-mopac-input":["mop","mopcrt","zmt"],"x-mopac-out":"moo","x-ncbi-asn1":"asn","x-ncbi-asn1-ascii":["prt","ent"],"x-ncbi-asn1-binary":"val","x-rosdal":"ros","x-swissprot":"sw","x-vamas-iso14976":"vms","x-vmd":"vmd","x-xtel":"xtel","x-xyz":"xyz"},font:{otf:"otf",woff:"woff",woff2:"woff2"},image:{gif:"gif",ief:"ief",jpeg:["jpeg","jpg","jpe","jfif","jfif-tbnl","jif"],pcx:"pcx",png:"png","svg+xml":["svg","svgz"],tiff:["tiff","tif"],"vnd.djvu":["djvu","djv"],"vnd.wap.wbmp":"wbmp","x-canon-cr2":"cr2","x-canon-crw":"crw","x-cmu-raster":"ras","x-coreldraw":"cdr","x-coreldrawpattern":"pat","x-coreldrawtemplate":"cdt","x-corelphotopaint":"cpt","x-epson-erf":"erf","x-icon":"ico","x-jg":"art","x-jng":"jng","x-nikon-nef":"nef","x-olympus-orf":"orf","x-portable-anymap":"pnm","x-portable-bitmap":"pbm","x-portable-graymap":"pgm","x-portable-pixmap":"ppm","x-rgb":"rgb","x-xbitmap":"xbm","x-xpixmap":"xpm","x-xwindowdump":"xwd",bmp:"bmp",cgm:"cgm",g3fax:"g3",ktx:"ktx","prs.btif":"btif",sgi:"sgi","vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"vnd.dwg":"dwg","vnd.dxf":"dxf","vnd.fastbidsheet":"fbs","vnd.fpx":"fpx","vnd.fst":"fst","vnd.fujixerox.edmics-mmr":"mmr","vnd.fujixerox.edmics-rlc":"rlc","vnd.ms-modi":"mdi","vnd.ms-photo":"wdp","vnd.net-fpx":"npx","vnd.xiff":"xif",webp:"webp","x-3ds":"3ds","x-cmx":"cmx","x-freehand":["fh","fhc","fh4","fh5","fh7"],"x-pict":["pic","pct"],"x-tga":"tga","cis-cod":"cod",avif:"avifs",heic:["heif","heic"],pjpeg:["pjpg"],"vnd.adobe.photoshop":"psd","x-adobe-dng":"dng","x-fuji-raf":"raf","x-icns":"icns","x-kodak-dcr":"dcr","x-kodak-k25":"k25","x-kodak-kdc":"kdc","x-minolta-mrw":"mrw","x-panasonic-raw":["raw","rw2","rwl"],"x-pentax-pef":["pef","ptx"],"x-sigma-x3f":"x3f","x-sony-arw":"arw","x-sony-sr2":"sr2","x-sony-srf":"srf"},message:{rfc822:["eml","mime","mht","mhtml","nws"]},model:{iges:["igs","iges"],mesh:["msh","mesh","silo"],vrml:["wrl","vrml"],"x3d+vrml":["x3dv","x3dvz"],"x3d+xml":"x3dz","x3d+binary":["x3db","x3dbz"],"vnd.collada+xml":"dae","vnd.dwf":"dwf","vnd.gdl":"gdl","vnd.gtw":"gtw","vnd.mts":"mts","vnd.usdz+zip":"usdz","vnd.vtu":"vtu"},text:{"cache-manifest":["manifest","appcache"],calendar:["ics","icz","ifb"],css:"css",csv:"csv",h323:"323",html:["html","htm","shtml","stm"],iuls:"uls",plain:["txt","text","brf","conf","def","list","log","in","bas","diff","ksh"],richtext:"rtx",scriptlet:["sct","wsc"],texmacs:"tm","tab-separated-values":"tsv","vnd.sun.j2me.app-descriptor":"jad","vnd.wap.wml":"wml","vnd.wap.wmlscript":"wmls","x-bibtex":"bib","x-boo":"boo","x-c++hdr":["h++","hpp","hxx","hh"],"x-c++src":["c++","cpp","cxx","cc"],"x-component":"htc","x-dsrc":"d","x-diff":"patch","x-haskell":"hs","x-java":"java","x-literate-haskell":"lhs","x-moc":"moc","x-pascal":["p","pas","pp","inc"],"x-pcs-gcd":"gcd","x-python":"py","x-scala":"scala","x-setext":"etx","x-tcl":["tcl","tk"],"x-tex":["tex","ltx","sty","cls"],"x-vcalendar":"vcs","x-vcard":"vcf",n3:"n3","prs.lines.tag":"dsc",sgml:["sgml","sgm"],troff:["t","tr","roff","man","me","ms"],turtle:"ttl","uri-list":["uri","uris","urls"],vcard:"vcard","vnd.curl":"curl","vnd.curl.dcurl":"dcurl","vnd.curl.scurl":"scurl","vnd.curl.mcurl":"mcurl","vnd.dvb.subtitle":"sub","vnd.fly":"fly","vnd.fmi.flexstor":"flx","vnd.graphviz":"gv","vnd.in3d.3dml":"3dml","vnd.in3d.spot":"spot","x-asm":["s","asm"],"x-c":["c","h","dic"],"x-fortran":["f","for","f77","f90"],"x-opml":"opml","x-nfo":"nfo","x-sfv":"sfv","x-uuencode":"uu",webviewhtml:"htt",javascript:"js",json:"json",markdown:["md","markdown","mdown","markdn"],"vnd.wap.si":"si","vnd.wap.sl":"sl"},video:{avif:"avif","3gpp":"3gp",annodex:"axv",dl:"dl",dv:["dif","dv"],fli:"fli",gl:"gl",mpeg:["mpeg","mpg","mpe","m1v","m2v","mp2","mpa","mpv2"],mp4:["mp4","mp4v","mpg4"],quicktime:["qt","mov"],ogg:"ogv","vnd.mpegurl":["mxu","m4u"],"x-flv":"flv","x-la-asf":["lsf","lsx"],"x-mng":"mng","x-ms-asf":["asf","asx","asr"],"x-ms-wm":"wm","x-ms-wmv":"wmv","x-ms-wmx":"wmx","x-ms-wvx":"wvx","x-msvideo":"avi","x-sgi-movie":"movie","x-matroska":["mpv","mkv","mk3d","mks"],"3gpp2":"3g2",h261:"h261",h263:"h263",h264:"h264",jpeg:"jpgv",jpm:["jpm","jpgm"],mj2:["mj2","mjp2"],"vnd.dece.hd":["uvh","uvvh"],"vnd.dece.mobile":["uvm","uvvm"],"vnd.dece.pd":["uvp","uvvp"],"vnd.dece.sd":["uvs","uvvs"],"vnd.dece.video":["uvv","uvvv"],"vnd.dvb.file":"dvb","vnd.fvt":"fvt","vnd.ms-playready.media.pyv":"pyv","vnd.uvvu.mp4":["uvu","uvvu"],"vnd.vivo":"viv",webm:"webm","x-f4v":"f4v","x-m4v":"m4v","x-ms-vob":"vob","x-smv":"smv",mp2t:"ts"},"x-conference":{"x-cooltalk":"ice"},"x-world":{"x-vrml":["vrm","flr","wrz","xaf","xof"]}},Re=(()=>{const e={};for(const t of Object.keys(qe))for(const n of Object.keys(qe[t])){const r=qe[t][n];if("string"==typeof r)e[r]=t+"/"+n;else for(let i=0;i<r.length;i++)e[r[i]]=t+"/"+n}return e})();function Oe(e){return e&&Re[e.split(".").pop().toLowerCase()]||"application/octet-stream"}const We=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;We[e]=t}class Ie{constructor(e){this.crc=e||-1}append(e){let t=0|this.crc;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^We[255&(t^e[n])];this.crc=t}get(){return~this.crc}}class Me extends TransformStream{constructor(){let e;const t=new Ie;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new Uint8Array(4);new DataView(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}function Pe(e){if(typeof TextEncoder==ze){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new TextEncoder).encode(e)}const Be={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=Be.getPartial(n);return 32===r?e.concat(t):Be._shiftRight(t,r,0|n,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+Be.getPartial(n)},clamp(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,Math.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=Be.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,getPartial:e=>Math.round(e/1099511627776)||32,_shiftRight(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let i=0;i<e.length;i++)r.push(n|e[i]>>>t),n=e[i]<<32-t;const i=e.length?e[e.length-1]:0,s=Be.getPartial(i);return r.push(Be.partial(t+s&31,t+s>32?n:r.pop(),1)),r}},Le={bytes:{fromBits(e){const t=Be.bitLength(e)/8,n=new Uint8Array(t);let r;for(let i=0;t>i;i++)3&i||(r=e[i/4]),n[i]=r>>>24,r<<=8;return n},toBits(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3&~n||(t.push(r),r=0);return 3&n&&t.push(Be.partial(8*(3&n),r)),t}}},Ne=class{constructor(e){const t=this;t.blockSize=512,t._init=[1732584193,4023233417,2562383102,271733878,3285377520],t._key=[1518500249,1859775393,2400959708,3395469782],e?(t._h=e._h.slice(0),t._buffer=e._buffer.slice(0),t._length=e._length):t.reset()}reset(){const e=this;return e._h=e._init.slice(0),e._buffer=[],e._length=0,e}update(e){const t=this;"string"==typeof e&&(e=Le.utf8String.toBits(e));const n=t._buffer=Be.concat(t._buffer,e),r=t._length,i=t._length=r+Be.bitLength(e);if(i>9007199254740991)throw Error("Cannot hash more than 2^53 - 1 bits");const s=new Uint32Array(n);let a=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t._block(s.subarray(16*a,16*(a+1))),a+=1;return n.splice(0,16*a),t}finalize(){const e=this;let t=e._buffer;const n=e._h;t=Be.concat(t,[Be.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(Math.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n}_f(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}_S(e,t){return t<<e|t>>>32-e}_block(e){const t=this,n=t._h,r=Array(80);for(let t=0;16>t;t++)r[t]=e[t];let i=n[0],s=n[1],a=n[2],o=n[3],c=n[4];for(let e=0;79>=e;e++){16>e||(r[e]=t._S(1,r[e-3]^r[e-8]^r[e-14]^r[e-16]));const n=t._S(5,i)+t._f(e,s,a,o)+c+r[e]+t._key[Math.floor(e/20)]|0;c=o,o=a,a=t._S(30,s),s=i,i=n}n[0]=n[0]+i|0,n[1]=n[1]+s|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+c|0}},Ge={getRandomValues(e){const t=new Uint32Array(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(Math.random()>.5?1:-1))};for(let r,i=0;i<e.length;i+=4){const e=n(4294967296*(r||Math.random()));r=987654071*e(),t[i/4]=4294967296*e()|0}return e}},He={importKey:e=>new He.hmacSha1(Le.bytes.toBits(e)),pbkdf2(e,t,n,r){if(n=n||1e4,0>r||0>n)throw Error("invalid params to pbkdf2");const i=1+(r>>5)<<2;let s,a,o,c,l;const d=new ArrayBuffer(i),f=new DataView(d);let u=0;const p=Be;for(t=Le.bytes.toBits(t),l=1;(i||1)>u;l++){for(s=a=e.encrypt(p.concat(t,[l])),o=1;n>o;o++)for(a=e.encrypt(a),c=0;c<a.length;c++)s[c]^=a[c];for(o=0;(i||1)>u&&o<s.length;o++)f.setInt32(u,s[o]),u+=4}return d.slice(0,r/8)},hmacSha1:class{constructor(e){const t=this,n=t._hash=Ne,r=[[],[]];t._baseHash=[new n,new n];const i=t._baseHash[0].blockSize/32;e.length>i&&(e=(new n).update(e).finalize());for(let t=0;i>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t._baseHash[0].update(r[0]),t._baseHash[1].update(r[1]),t._resultHash=new n(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){this._updated=!0,this._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),n=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),n}encrypt(e){if(this._updated)throw Error("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},Ve=typeof crypto!=ze&&typeof crypto.getRandomValues==Se,Ze="Invalid password",Ke="Invalid signature",Xe="zipjs-abort-check-password";function Qe(e){return Ve?crypto.getRandomValues(e):Ge.getRandomValues(e)}const Ye=16,Je={name:"PBKDF2"},$e=Object.assign({hash:{name:"HMAC"}},Je),et=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},Je),tt=["deriveBits"],nt=[8,12,16],rt=[16,24,32],it=10,st=[0,0,0,0],at=typeof crypto!=ze,ot=at&&crypto.subtle,ct=at&&typeof ot!=ze,lt=Le.bytes,dt=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const n=t._tables[0][4],r=t._tables[1],i=e.length;let s,a,o,c=1;if(4!==i&&6!==i&&8!==i)throw Error("invalid aes key size");for(t._key=[a=e.slice(0),o=[]],s=i;4*i+28>s;s++){let e=a[s-1];(s%i==0||8===i&&s%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],s%i==0&&(e=e<<8^e>>>24^c<<24,c=c<<1^283*(c>>7))),a[s]=a[s-i]^e}for(let e=0;s;e++,s--){const t=a[3&e?s:s-4];o[e]=4>=s||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],n=e[4],r=t[4],i=[],s=[];let a,o,c,l;for(let e=0;256>e;e++)s[(i[e]=e<<1^283*(e>>7))^e]=e;for(let d=a=0;!n[d];d^=o||1,a=s[a]||1){let s=a^a<<1^a<<2^a<<3^a<<4;s=s>>8^255&s^99,n[d]=s,r[s]=d,l=i[c=i[o=i[d]]];let f=16843009*l^65537*c^257*o^16843008*d,u=257*i[s]^16843008*s;for(let n=0;4>n;n++)e[n][d]=u=u<<24^u>>>8,t[n][s]=f=f<<24^f>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}_crypt(e,t){if(4!==e.length)throw Error("invalid aes block size");const n=this._key[t],r=n.length/4-2,i=[0,0,0,0],s=this._tables[t],a=s[0],o=s[1],c=s[2],l=s[3],d=s[4];let f,u,p,m=e[0]^n[0],h=e[t?3:1]^n[1],w=e[2]^n[2],g=e[t?1:3]^n[3],x=4;for(let e=0;r>e;e++)f=a[m>>>24]^o[h>>16&255]^c[w>>8&255]^l[255&g]^n[x],u=a[h>>>24]^o[w>>16&255]^c[g>>8&255]^l[255&m]^n[x+1],p=a[w>>>24]^o[g>>16&255]^c[m>>8&255]^l[255&h]^n[x+2],g=a[g>>>24]^o[m>>16&255]^c[h>>8&255]^l[255&w]^n[x+3],x+=4,m=f,h=u,w=p;for(let e=0;4>e;e++)i[t?3&-e:e]=d[m>>>24]<<24^d[h>>16&255]<<16^d[w>>8&255]<<8^d[255&g]^n[x++],f=m,m=h,h=w,w=g,g=f;return i}},ft=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}incCounter(e){0===(e[0]=this.incWord(e[0]))&&(e[1]=this.incWord(e[1]))}calculate(e,t,n){let r;if(!(r=t.length))return[];const i=Be.bitLength(t);for(let i=0;r>i;i+=4){this.incCounter(n);const r=e.encrypt(n);t[i]^=r[0],t[i+1]^=r[1],t[i+2]^=r[2],t[i+3]^=r[3]}return Be.clamp(t,i)}},ut=He.hmacSha1;let pt=at&&ct&&typeof ot.importKey==Se,mt=at&&ct&&typeof ot.deriveBits==Se;class ht extends TransformStream{constructor({password:e,rawPassword:t,signed:n,encryptionStrength:r,checkPasswordOnly:i}){super({start(){Object.assign(this,{ready:new Promise((e=>this.resolveReady=e)),password:bt(e,t),signed:n,strength:r-1,pending:new Uint8Array})},async transform(e,t){const n=this,{password:r,strength:s,resolveReady:a,ready:o}=n;r?(await(async(e,t,n,r)=>{const i=await xt(e,t,n,yt(r,0,nt[t])),s=yt(r,nt[t]);if(i[0]!=s[0]||i[1]!=s[1])throw Error(Ze)})(n,s,r,yt(e,0,nt[s]+2)),e=yt(e,nt[s]+2),i?t.error(Error(Xe)):a()):await o;const c=new Uint8Array(e.length-it-(e.length-it)%Ye);t.enqueue(gt(n,e,c,0,it,!0))},async flush(e){const{signed:t,ctr:n,hmac:r,pending:i,ready:s}=this;if(r&&n){await s;const a=yt(i,0,i.length-it),o=yt(i,i.length-it);let c=new Uint8Array;if(a.length){const e=kt(lt,a);r.update(e);const t=n.update(e);c=_t(lt,t)}if(t){const e=yt(_t(lt,r.digest()),0,it);for(let t=0;it>t;t++)if(e[t]!=o[t])throw Error(Ke)}e.enqueue(c)}}})}}class wt extends TransformStream{constructor({password:e,rawPassword:t,encryptionStrength:n}){let r;super({start(){Object.assign(this,{ready:new Promise((e=>this.resolveReady=e)),password:bt(e,t),strength:n-1,pending:new Uint8Array})},async transform(e,t){const n=this,{password:r,strength:i,resolveReady:s,ready:a}=n;let o=new Uint8Array;r?(o=await(async(e,t,n)=>{const r=Qe(new Uint8Array(nt[t]));return vt(r,await xt(e,t,n,r))})(n,i,r),s()):await a;const c=new Uint8Array(o.length+e.length-e.length%Ye);c.set(o,0),t.enqueue(gt(n,e,c,o.length,0))},async flush(e){const{ctr:t,hmac:n,pending:i,ready:s}=this;if(n&&t){await s;let a=new Uint8Array;if(i.length){const e=t.update(kt(lt,i));n.update(e),a=_t(lt,e)}r.signature=_t(lt,n.digest()).slice(0,it),e.enqueue(vt(a,r.signature))}}}),r=this}}function gt(e,t,n,r,i,s){const{ctr:a,hmac:o,pending:c}=e,l=t.length-i;let d;for(c.length&&(t=vt(c,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new Uint8Array(t)).set(n,0)}return e})(n,l-l%Ye)),d=0;l-Ye>=d;d+=Ye){const e=kt(lt,yt(t,d,d+Ye));s&&o.update(e);const i=a.update(e);s||o.update(i),n.set(_t(lt,i),d+r)}return e.pending=yt(t,d),n}async function xt(e,t,n,r){e.password=null;const i=await(async(e,t,n,r,i)=>{if(!pt)return He.importKey(t);try{return await ot.importKey("raw",t,n,!1,i)}catch(e){return pt=!1,He.importKey(t)}})(0,n,$e,0,tt),s=await(async(e,t,n)=>{if(!mt)return He.pbkdf2(t,e.salt,et.iterations,n);try{return await ot.deriveBits(e,t,n)}catch(r){return mt=!1,He.pbkdf2(t,e.salt,et.iterations,n)}})(Object.assign({salt:r},et),i,8*(2*rt[t]+2)),a=new Uint8Array(s),o=kt(lt,yt(a,0,rt[t])),c=kt(lt,yt(a,rt[t],2*rt[t])),l=yt(a,2*rt[t]);return Object.assign(e,{keys:{key:o,authentication:c,passwordVerification:l},ctr:new ft(new dt(o),Array.from(st)),hmac:new ut(c)}),l}function bt(e,t){return t===ke?Pe(e):t}function vt(e,t){let n=e;return e.length+t.length&&(n=new Uint8Array(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function yt(e,t,n){return e.subarray(t,n)}function _t(e,t){return e.fromBits(t)}function kt(e,t){return e.toBits(t)}class zt extends TransformStream{constructor({password:e,passwordVerification:t,checkPasswordOnly:n}){super({start(){Object.assign(this,{password:e,passwordVerification:t}),Dt(this,e)},transform(e,t){const r=this;if(r.password){const t=At(r,e.subarray(0,12));if(r.password=null,t[11]!=r.passwordVerification)throw Error(Ze);e=e.subarray(12)}n?t.error(Error(Xe)):t.enqueue(At(r,e))}})}}class St extends TransformStream{constructor({password:e,passwordVerification:t}){super({start(){Object.assign(this,{password:e,passwordVerification:t}),Dt(this,e)},transform(e,t){const n=this;let r,i;if(n.password){n.password=null;const t=Qe(new Uint8Array(12));t[11]=n.passwordVerification,r=new Uint8Array(e.length+t.length),r.set(jt(n,t),0),i=12}else r=new Uint8Array(e.length),i=0;r.set(jt(n,e),i),t.enqueue(r)}})}}function At(e,t){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=Ft(e)^t[r],Ct(e,n[r]);return n}function jt(e,t){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=Ft(e)^t[r],Ct(e,t[r]);return n}function Dt(e,t){const n=[305419896,591751049,878082192];Object.assign(e,{keys:n,crcKey0:new Ie(n[0]),crcKey2:new Ie(n[2])});for(let n=0;n<t.length;n++)Ct(e,t.charCodeAt(n))}function Ct(e,t){let[n,r,i]=e.keys;e.crcKey0.append([t]),n=~e.crcKey0.get(),r=Et(Math.imul(Et(r+Ut(n)),134775813)+1),e.crcKey2.append([r>>>24]),i=~e.crcKey2.get(),e.keys=[n,r,i]}function Ft(e){const t=2|e.keys[2];return Ut(Math.imul(t,1^t)>>>8)}function Ut(e){return 255&e}function Et(e){return 4294967295&e}const Tt="deflate-raw";class qt extends TransformStream{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:i,encrypted:s,useCompressionStream:a,zipCrypto:o,signed:c,level:l}=e,d=this;let f,u,p=Ot(super.readable);s&&!o||!c||(f=new Me,p=Mt(p,f)),i&&(p=It(p,a,{level:l,chunkSize:t},r,n)),s&&(o?p=Mt(p,new St(e)):(u=new wt(e),p=Mt(p,u))),Wt(d,p,(()=>{let e;s&&!o&&(e=u.signature),s&&!o||!c||(e=new DataView(f.value.buffer).getUint32(0)),d.signature=e}))}}class Rt extends TransformStream{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:s,signed:a,signature:o,compressed:c,useCompressionStream:l}=e;let d,f,u=Ot(super.readable);s&&(i?u=Mt(u,new zt(e)):(f=new ht(e),u=Mt(u,f))),c&&(u=It(u,l,{chunkSize:t},r,n)),s&&!i||!a||(d=new Me,u=Mt(u,d)),Wt(this,u,(()=>{if((!s||i)&&a){const e=new DataView(d.value.buffer);if(o!=e.getUint32(0,!1))throw Error(Ke)}}))}}function Ot(e){return Mt(e,new TransformStream({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function Wt(e,t,n){t=Mt(t,new TransformStream({flush:n})),Object.defineProperty(e,"readable",{get:()=>t})}function It(e,t,n,r,i){try{e=Mt(e,new(t&&r?r:i)(Tt,n))}catch(r){if(!t)return e;try{e=Mt(e,new i(Tt,n))}catch(t){return e}}return e}function Mt(e,t){return e.pipeThrough(t)}const Pt="data",Bt="close",Lt="deflate",Nt="inflate";class Gt extends TransformStream{constructor(e,t){super({});const n=this,{codecType:r}=e;let i;r.startsWith(Lt)?i=qt:r.startsWith(Nt)&&(i=Rt);let s=0,a=0;const o=new i(e,t),c=super.readable,l=new TransformStream({transform(e,t){e&&e.length&&(a+=e.length,t.enqueue(e))},flush(){Object.assign(n,{inputSize:a})}}),d=new TransformStream({transform(e,t){e&&e.length&&(s+=e.length,t.enqueue(e))},flush(){const{signature:e}=o;Object.assign(n,{signature:e,outputSize:s,inputSize:a})}});Object.defineProperty(n,"readable",{get:()=>c.pipeThrough(l).pipeThrough(o).pipeThrough(d)})}}class Ht extends TransformStream{constructor(e){let t;super({transform:function n(r,i){if(t){const e=new Uint8Array(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(i.enqueue(r.slice(0,e)),n(r.slice(e),i)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}let Vt=typeof Worker!=ze;class Zt{constructor(e,{readable:t,writable:n},{options:r,config:i,streamOptions:s,useWebWorkers:a,transferStreams:o,scripts:c},l){const{signal:d}=s;return Object.assign(e,{busy:!0,readable:t.pipeThrough(new Ht(i.chunkSize)).pipeThrough(new Kt(t,s),{signal:d}),writable:n,options:Object.assign({},r),scripts:c,transferStreams:o,terminate:()=>new Promise((t=>{const{worker:n,busy:r}=e;n?(r?e.resolveTerminated=t:(n.terminate(),t()),e.interface=null):t()})),onTaskFinished(){const{resolveTerminated:t}=e;t&&(e.resolveTerminated=null,e.terminated=!0,e.worker.terminate(),t()),e.busy=!1,l(e)}}),(a&&Vt?Yt:Qt)(e,i)}}class Kt extends TransformStream{constructor(e,{onstart:t,onprogress:n,size:r,onend:i}){let s=0;super({async start(){t&&await Xt(t,r)},async transform(e,t){s+=e.length,n&&await Xt(n,s,r),t.enqueue(e)},async flush(){e.size=s,i&&await Xt(i,s)}})}}async function Xt(e,...t){try{await e(...t)}catch(e){}}function Qt(e,t){return{run:()=>(async({options:e,readable:t,writable:n,onTaskFinished:r},i)=>{try{const r=new Gt(e,i);await t.pipeThrough(r).pipeTo(n,{preventClose:!0,preventAbort:!0});const{signature:s,inputSize:a,outputSize:o}=r;return{signature:s,inputSize:a,outputSize:o}}finally{r()}})(e,t)}}function Yt(e,t){const{baseURL:n,chunkSize:r}=t;if(!e.interface){let i;try{i=((e,t,n)=>{const r={type:"module"};let i,s;typeof e==Se&&(e=e());try{i=new URL(e,t)}catch(t){i=e}if(Jt)try{s=new Worker(i)}catch(e){Jt=!1,s=new Worker(i,r)}else s=new Worker(i,r);return s.addEventListener("message",(e=>(async({data:e},t)=>{const{type:n,value:r,messageId:i,result:s,error:a}=e,{reader:o,writer:c,resolveResult:l,rejectResult:d,onTaskFinished:f}=t;try{if(a){const{message:e,stack:t,code:n,name:r}=a,i=Error(e);Object.assign(i,{stack:t,code:n,name:r}),u(i)}else{if("pull"==n){const{value:e,done:n}=await o.read();en({type:Pt,value:e,done:n,messageId:i},t)}n==Pt&&(await c.ready,await c.write(new Uint8Array(r)),en({type:"ack",messageId:i},t)),n==Bt&&u(null,s)}}catch(a){en({type:Bt,messageId:i},t),u(a)}function u(e,t){e?d(e):l(t),c&&c.releaseLock(),f()}})(e,n))),s})(e.scripts[0],n,e)}catch(n){return Vt=!1,Qt(e,t)}Object.assign(e,{worker:i,interface:{run:()=>(async(e,t)=>{let n,r;const i=new Promise(((e,t)=>{n=e,r=t}));Object.assign(e,{reader:null,writer:null,resolveResult:n,rejectResult:r,result:i});const{readable:s,options:a,scripts:o}=e,{writable:c,closed:l}=(e=>{let t;const n=new Promise((e=>t=e));return{writable:new WritableStream({async write(t){const n=e.getWriter();await n.ready,await n.write(t),n.releaseLock()},close(){t()},abort:t=>e.getWriter().abort(t)}),closed:n}})(e.writable),d=en({type:"start",scripts:o.slice(1),options:a,config:t,readable:s,writable:c},e);d||Object.assign(e,{reader:s.getReader(),writer:c.getWriter()});const f=await i;return d||await c.getWriter().close(),await l,f})(e,{chunkSize:r})}})}return e.interface}let Jt=!0,$t=!0;function en(e,{worker:t,writer:n,onTaskFinished:r,transferStreams:i}){try{let{value:n,readable:r,writable:s}=e;const a=[];if(n&&(n.byteLength<n.buffer.byteLength?e.value=n.buffer.slice(0,n.byteLength):e.value=n.buffer,a.push(e.value)),i&&$t?(r&&a.push(r),s&&a.push(s)):e.readable=e.writable=null,a.length)try{return t.postMessage(e,a),!0}catch(n){$t=!1,e.readable=e.writable=null,t.postMessage(e)}else t.postMessage(e)}catch(e){throw n&&n.releaseLock(),r(),e}}let tn=[];const nn=[];let rn=0;async function sn(e,t){const{options:n,config:r}=t,{transferStreams:i,useWebWorkers:s,useCompressionStream:a,codecType:o,compressed:c,signed:l,encrypted:d}=n,{workerScripts:f,maxWorkers:u}=r;t.transferStreams=i||i===ke;const p=!(c||l||d||t.transferStreams);return t.useWebWorkers=!p&&(s||s===ke&&r.useWebWorkers),t.scripts=t.useWebWorkers&&f?f[o]:[],n.useCompressionStream=a||a===ke&&r.useCompressionStream,(await(async()=>{const n=tn.find((e=>!e.busy));if(n)return an(n),new Zt(n,e,t,m);if(tn.length<u){const n={indexWorker:rn};return rn++,tn.push(n),new Zt(n,e,t,m)}return new Promise((n=>nn.push({resolve:n,stream:e,workerOptions:t})))})()).run();function m(e){if(nn.length){const[{resolve:t,stream:n,workerOptions:r}]=nn.splice(0,1);t(new Zt(e,n,r,m))}else e.worker?(an(e),((e,t)=>{const{config:n}=t,{terminateWorkerTimeout:r}=n;Number.isFinite(r)&&r>=0&&(e.terminated?e.terminated=!1:e.terminateTimeout=setTimeout((async()=>{tn=tn.filter((t=>t!=e));try{await e.terminate()}catch(e){}}),r))})(e,t)):tn=tn.filter((t=>t!=e))}}function an(e){const{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}async function on(){await Promise.allSettled(tn.map((e=>(an(e),e.terminate()))))}function cn(e,t={},n){return{Deflate:ln(e.Deflate,t.deflate,n),Inflate:ln(e.Inflate,t.inflate,n)}}function ln(e,t,n){return class{constructor(r){const i=this;var s,a;s=r,a="level",(typeof Object.hasOwn===Se?Object.hasOwn(s,a):s.hasOwnProperty(a))&&r.level===ke&&delete r.level,i.codec=new e(Object.assign({},t,r)),n(i.codec,(e=>{if(i.pendingData){const t=i.pendingData;i.pendingData=new Uint8Array(t.length+e.length);const{pendingData:n}=i;n.set(t,0),n.set(e,t.length)}else i.pendingData=new Uint8Array(e)}))}append(e){return this.codec.push(e),r(this)}flush(){return this.codec.push(new Uint8Array,!0),r(this)}};function r(e){if(e.pendingData){const t=e.pendingData;return e.pendingData=null,t}return new Uint8Array}}const dn="HTTP error ",fn="HTTP Range not supported",un="Writer iterator completed too soon",pn="Content-Length",mn="Range",hn="HEAD",wn="GET",gn="bytes",xn=65536,bn="writable";class vn{constructor(){this.size=0}init(){this.initialized=!0}}class yn extends vn{get readable(){const e=this,{chunkSize:t=xn}=e,n=new ReadableStream({start(){this.chunkOffset=0},async pull(r){const{offset:i=0,size:s,diskNumberStart:a}=n,{chunkOffset:o}=this;r.enqueue(await Yn(e,i+o,Math.min(t,s-o),a)),o+t>s?r.close():this.chunkOffset+=t}});return n}}class _n extends vn{constructor(){super();const e=this,t=new WritableStream({write:t=>e.writeUint8Array(t)});Object.defineProperty(e,bn,{get:()=>t})}writeUint8Array(){}}class kn extends yn{constructor(e){super();let t=e.length;for(;"="==e.charAt(t-1);)t--;const n=e.indexOf(",")+1;Object.assign(this,{dataURI:e,dataStart:n,size:Math.floor(.75*(t-n))})}readUint8Array(e,t){const{dataStart:n,dataURI:r}=this,i=new Uint8Array(t),s=4*Math.floor(e/3),a=atob(r.substring(s+n,4*Math.ceil((e+t)/3)+n)),o=e-3*Math.floor(s/4);for(let e=o;o+t>e;e++)i[e-o]=a.charCodeAt(e);return i}}class zn extends _n{constructor(e){super(),Object.assign(this,{data:"data:"+(e||"")+";base64,",pending:[]})}writeUint8Array(e){const t=this;let n=0,r=t.pending;const i=t.pending.length;for(t.pending="",n=0;n<3*Math.floor((i+e.length)/3)-i;n++)r+=String.fromCharCode(e[n]);for(;n<e.length;n++)t.pending+=String.fromCharCode(e[n]);r.length>2?t.data+=btoa(r):t.pending=r}getData(){return this.data+btoa(this.pending)}}class Sn extends yn{constructor(e){super(),Object.assign(this,{blob:e,size:e.size})}async readUint8Array(e,t){const n=this,r=e+t,i=e||r<n.size?n.blob.slice(e,r):n.blob;let s=await i.arrayBuffer();return s.byteLength>t&&(s=s.slice(e,r)),new Uint8Array(s)}}class An extends vn{constructor(e){super();const t=new TransformStream,n=[];e&&n.push(["Content-Type",e]),Object.defineProperty(this,bn,{get:()=>t.writable}),this.blob=new Response(t.readable,{headers:n}).blob()}getData(){return this.blob}}class jn extends Sn{constructor(e){super(new Blob([e],{type:"text/plain"}))}}class Dn extends An{constructor(e){super(e),Object.assign(this,{encoding:e,utf8:!e||"utf-8"==e.toLowerCase()})}async getData(){const{encoding:e,utf8:t}=this,n=await super.getData();if(n.text&&t)return n.text();{const t=new FileReader;return new Promise(((r,i)=>{Object.assign(t,{onload:({target:e})=>r(e.result),onerror:()=>i(t.error)}),t.readAsText(n,e)}))}}}class Cn extends yn{constructor(e,t){super(),Un(this,e,t)}async init(){await En(this,Pn,On),super.init()}readUint8Array(e,t){return Tn(this,e,t,Pn,On)}}class Fn extends yn{constructor(e,t){super(),Un(this,e,t)}async init(){await En(this,Bn,Wn),super.init()}readUint8Array(e,t){return Tn(this,e,t,Bn,Wn)}}function Un(e,t,n){const{preventHeadRequest:r,useRangeHeader:i,forceRangeRequests:s,combineSizeEocd:a}=n;delete(n=Object.assign({},n)).preventHeadRequest,delete n.useRangeHeader,delete n.forceRangeRequests,delete n.combineSizeEocd,delete n.useXHR,Object.assign(e,{url:t,options:n,preventHeadRequest:r,useRangeHeader:i,forceRangeRequests:s,combineSizeEocd:a})}async function En(e,t,n){const{url:r,preventHeadRequest:i,useRangeHeader:s,forceRangeRequests:a,combineSizeEocd:o}=e;if((e=>{const{baseURL:t}=Fe(),{protocol:n}=new URL(e,t);return"http:"==n||"https:"==n})(r)&&(s||a)&&(void 0===i||i)){const r=await t(wn,e,qn(e,o?-22:void 0));if(!a&&r.headers.get("Accept-Ranges")!=gn)throw Error(fn);{let i;o&&(e.eocdCache=new Uint8Array(await r.arrayBuffer()));const s=r.headers.get("Content-Range");if(s){const e=s.trim().split(/\s*\/\s*/);if(e.length){const t=e[1];t&&"*"!=t&&(i=Number(t))}}i===ke?await Mn(e,t,n):e.size=i}}else await Mn(e,t,n)}async function Tn(e,t,n,r,i){const{useRangeHeader:s,forceRangeRequests:a,eocdCache:o,size:c,options:l}=e;if(s||a){if(o&&t==c-ge&&n==ge)return o;const i=await r(wn,e,qn(e,t,n));if(206!=i.status)throw Error(fn);return new Uint8Array(await i.arrayBuffer())}{const{data:r}=e;return r||await i(e,l),new Uint8Array(e.data.subarray(t,t+n))}}function qn(e,t=0,n=1){return Object.assign({},Rn(e),{[mn]:gn+"="+(0>t?t:t+"-"+(t+n-1))})}function Rn({options:e}){const{headers:t}=e;if(t)return Symbol.iterator in t?Object.fromEntries(t):t}async function On(e){await In(e,Pn)}async function Wn(e){await In(e,Bn)}async function In(e,t){const n=await t(wn,e,Rn(e));e.data=new Uint8Array(await n.arrayBuffer()),e.size||(e.size=e.data.length)}async function Mn(e,t,n){if(e.preventHeadRequest)await n(e,e.options);else{const r=(await t(hn,e,Rn(e))).headers.get(pn);r?e.size=Number(r):await n(e,e.options)}}async function Pn(e,{options:t,url:n},r){const i=await fetch(n,Object.assign({},t,{method:e,headers:r}));if(400>i.status)return i;throw 416==i.status?Error(fn):Error(dn+(i.statusText||i.status))}function Bn(e,{url:t},n){return new Promise(((r,i)=>{const s=new XMLHttpRequest;if(s.addEventListener("load",(()=>{if(400>s.status){const e=[];s.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach((t=>{const n=t.trim().split(/\s*:\s*/);n[0]=n[0].trim().replace(/^[a-z]|-[a-z]/g,(e=>e.toUpperCase())),e.push(n)})),r({status:s.status,arrayBuffer:()=>s.response,headers:new Map(e)})}else i(416==s.status?Error(fn):Error(dn+(s.statusText||s.status)))}),!1),s.addEventListener("error",(e=>i(e.detail?e.detail.error:Error("Network error"))),!1),s.open(e,t),n)for(const e of Object.entries(n))s.setRequestHeader(e[0],e[1]);s.responseType="arraybuffer",s.send()}))}class Ln extends yn{constructor(e,t={}){super(),Object.assign(this,{url:e,reader:t.useXHR?new Fn(e,t):new Cn(e,t)})}set size(e){}get size(){return this.reader.size}async init(){await this.reader.init(),super.init()}readUint8Array(e,t){return this.reader.readUint8Array(e,t)}}class Nn extends Ln{constructor(e,t={}){t.useRangeHeader=!0,super(e,t)}}class Gn extends yn{constructor(e){super(),Object.assign(this,{array:e,size:e.length})}readUint8Array(e,t){return this.array.slice(e,e+t)}}class Hn extends _n{init(e=0){Object.assign(this,{offset:0,array:new Uint8Array(e)}),super.init()}writeUint8Array(e){const t=this;if(t.offset+e.length>t.array.length){const n=t.array;t.array=new Uint8Array(n.length+e.length),t.array.set(n)}t.array.set(e,t.offset),t.offset+=e.length}getData(){return this.array}}class Vn extends yn{constructor(e){super(),this.readers=e}async init(){const e=this,{readers:t}=e;e.lastDiskNumber=0,e.lastDiskOffset=0,await Promise.all(t.map((async(n,r)=>{await n.init(),r!=t.length-1&&(e.lastDiskOffset+=n.size),e.size+=n.size}))),super.init()}async readUint8Array(e,t,n=0){const r=this,{readers:i}=this;let s,a=n;-1==a&&(a=i.length-1);let o=e;for(;o>=i[a].size;)o-=i[a].size,a++;const c=i[a],l=c.size;if(o+t>l){const i=l-o;s=new Uint8Array(t),s.set(await Yn(c,o,i)),s.set(await r.readUint8Array(e+i,t-i,n),i)}else s=await Yn(c,o,t);return r.lastDiskNumber=Math.max(a,r.lastDiskNumber),s}}class Zn extends vn{constructor(e,t=4294967295){super();const n=this;let r,i,s;Object.assign(n,{diskNumber:0,diskOffset:0,size:0,maxSize:t,availableSize:t});const a=new WritableStream({async write(t){const{availableSize:a}=n;if(s)t.length<a?await o(t):(await o(t.slice(0,a)),await c(),n.diskOffset+=r.size,n.diskNumber++,s=null,await this.write(t.slice(a)));else{const{value:a,done:o}=await e.next();if(o&&!a)throw Error(un);r=a,r.size=0,r.maxSize&&(n.maxSize=r.maxSize),n.availableSize=n.maxSize,await Kn(r),i=a.writable,s=i.getWriter(),await this.write(t)}},async close(){await s.ready,await c()}});async function o(e){const t=e.length;t&&(await s.ready,await s.write(e),r.size+=t,n.size+=t,n.availableSize-=t)}async function c(){i.size=r.size,await s.close()}Object.defineProperty(n,bn,{get:()=>a})}}async function Kn(e,t){if(!e.init||e.initialized)return Promise.resolve();await e.init(t)}function Xn(e){return Array.isArray(e)&&(e=new Vn(e)),e instanceof ReadableStream&&(e={readable:e}),e}function Qn(e){e.writable===ke&&typeof e.next==Se&&(e=new Zn(e)),e instanceof WritableStream&&(e={writable:e});const{writable:t}=e;return t.size===ke&&(t.size=0),e instanceof Zn||Object.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}function Yn(e,t,n,r){return e.readUint8Array(t,n,r)}const Jn=Vn,$n=Zn,er="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),tr=256==er.length;function nr(e,t){return t&&"cp437"==t.trim().toLowerCase()?(e=>{if(tr){let t="";for(let n=0;n<e.length;n++)t+=er[e[n]];return t}return(new TextDecoder).decode(e)})(e):new TextDecoder(t).decode(e)}const rr="filename",ir="rawFilename",sr="comment",ar="rawComment",or="uncompressedSize",cr="compressedSize",lr="offset",dr="diskNumberStart",fr="lastModDate",ur="rawLastModDate",pr="lastAccessDate",mr="creationDate",hr="internalFileAttribute",wr="externalFileAttribute",gr="msDosCompatible",xr="zip64",br="encrypted",vr="version",yr="versionMadeBy",_r="zipCrypto",kr=[rr,ir,cr,or,fr,ur,sr,ar,pr,mr,lr,dr,dr,hr,wr,gr,xr,br,vr,yr,_r,"directory","bitFlag","signature","filenameUTF8","commentUTF8","compressionMethod","extraField","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp"];class zr{constructor(e){kr.forEach((t=>this[t]=e[t]))}}const Sr="File format is not recognized",Ar="End of central directory not found",jr="End of Zip64 central directory locator not found",Dr="Central directory header not found",Cr="Local file header not found",Fr="Zip64 extra field not found",Ur="File contains encrypted entry",Er="Encryption method not supported",Tr="Compression method not supported",qr="Split zip file",Rr="utf-8",Or="cp437",Wr=[[or,ce],[cr,ce],[lr,ce],[dr,le]],Ir={[le]:{getValue:Qr,bytes:4},[ce]:{getValue:Yr,bytes:8}};class Mr{constructor(e,t={}){Object.assign(this,{reader:Xn(e),options:t,config:Fe()})}async*getEntriesGenerator(e={}){const t=this;let{reader:n}=t;const{config:r}=t;if(await Kn(n),n.size!==ke&&n.readUint8Array||(n=new Sn(await new Response(n.readable).blob()),await Kn(n)),n.size<ge)throw Error(Sr);n.chunkSize=Ue(r);const i=await(async(e,t,n)=>{const r=new Uint8Array(4);var i;return i=t,Jr(r).setUint32(0,i,!0),await s(22)||await s(Math.min(1048582,n));async function s(t){const i=n-t,s=await Yn(e,i,t);for(let e=s.length-22;e>=0;e--)if(s[e]==r[0]&&s[e+1]==r[1]&&s[e+2]==r[2]&&s[e+3]==r[3])return{offset:i+e,buffer:s.slice(e,e+22).buffer}}})(n,me,n.size);if(!i)throw Qr(Jr(await Yn(n,0,4)))==fe?Error(qr):Error(Ar);const s=Jr(i);let a=Qr(s,12),o=Qr(s,16);const c=i.offset,l=Xr(s,20),d=c+ge+l;let f=Xr(s,4);const u=n.lastDiskNumber||0;let p=Xr(s,6),m=Xr(s,8),h=0,w=0;if(o==ce||a==ce||m==le||p==le){const e=Jr(await Yn(n,i.offset-20,20));if(Qr(e,0)==we){o=Yr(e,8);let t=await Yn(n,o,56,-1),r=Jr(t);const s=i.offset-20-56;if(Qr(r,0)!=he&&o!=s){const e=o;o=s,h=o-e,t=await Yn(n,o,56,-1),r=Jr(t)}if(Qr(r,0)!=he)throw Error(jr);f==le&&(f=Qr(r,16)),p==le&&(p=Qr(r,20)),m==le&&(m=Yr(r,32)),a==ce&&(a=Yr(r,40)),o-=a}}if(o<n.size||(h=n.size-o-a-ge,o=n.size-a-ge),u!=f)throw Error(qr);if(0>o)throw Error(Sr);let g=0,x=await Yn(n,o,a,p),b=Jr(x);if(a){const e=i.offset-a;if(Qr(b,g)!=pe&&o!=e){const t=o;o=e,h+=o-t,x=await Yn(n,o,a,p),b=Jr(x)}}const v=i.offset-o-(n.lastDiskOffset||0);if(a==v||0>v||(a=v,x=await Yn(n,o,a,p),b=Jr(x)),0>o||o>=n.size)throw Error(Sr);const y=Hr(t,e,"filenameEncoding"),_=Hr(t,e,"commentEncoding");for(let i=0;m>i;i++){const s=new Br(n,r,t.options);if(Qr(b,g)!=pe)throw Error(Dr);Lr(s,b,g+6);const a=!!s.bitFlag.languageEncodingFlag,o=g+46,c=o+s.filenameLength,l=c+s.extraFieldLength,d=Xr(b,g+4),f=!0,u=x.subarray(o,c),p=Xr(b,g+32),v=l+p,k=x.subarray(l,v),z=a,S=a,A=f&&!(16&~Kr(b,g+38)),j=Qr(b,g+42)+h;Object.assign(s,{versionMadeBy:d,msDosCompatible:f,compressedSize:0,uncompressedSize:0,commentLength:p,directory:A,offset:j,diskNumberStart:Xr(b,g+34),internalFileAttribute:Xr(b,g+36),externalFileAttribute:Qr(b,g+38),rawFilename:u,filenameUTF8:z,commentUTF8:S,rawExtraField:x.subarray(c,l)});const D=Hr(t,e,"decodeText")||nr,C=z?Rr:y||Or,F=S?Rr:_||Or;let U=D(u,C);U===ke&&(U=nr(u,C));let E=D(k,F);E===ke&&(E=nr(k,F)),Object.assign(s,{rawComment:k,filename:U,comment:E,directory:A||U.endsWith(ve)}),w=Math.max(j,w),await Nr(s,s,b,g+6),s.zipCrypto=s.encrypted&&!s.extraFieldAES;const T=new zr(s);T.getData=(e,t)=>s.getData(e,T,t),g=v;const{onprogress:q}=e;if(q)try{await q(i+1,m,new zr(s))}catch(e){}yield T}const k=Hr(t,e,"extractPrependedData"),z=Hr(t,e,"extractAppendedData");return k&&(t.prependedData=w>0?await Yn(n,0,w):new Uint8Array),t.comment=l?await Yn(n,c+ge,l):new Uint8Array,z&&(t.appendedData=d<n.size?await Yn(n,d,n.size-d):new Uint8Array),!0}async getEntries(e={}){const t=[];for await(const n of this.getEntriesGenerator(e))t.push(n);return t}async close(){}}class Pr{constructor(e={}){const{readable:t,writable:n}=new TransformStream,r=new Mr(t,e).getEntriesGenerator();this.readable=new ReadableStream({async pull(e){const{done:t,value:n}=await r.next();if(t)return e.close();const i={...n,readable:(()=>{const{readable:e,writable:t}=new TransformStream;if(n.getData)return n.getData(t),e})()};delete i.getData,e.enqueue(i)}}),this.writable=n}}let Br=class{constructor(e,t,n){Object.assign(this,{reader:e,config:t,options:n})}async getData(e,t,n={}){const r=this,{reader:i,offset:s,diskNumberStart:a,extraFieldAES:o,compressionMethod:c,config:l,bitFlag:d,signature:f,rawLastModDate:u,uncompressedSize:p,compressedSize:m}=r,h=t.localDirectory={},w=Jr(await Yn(i,s,30,a));let g=Hr(r,n,"password"),x=Hr(r,n,"rawPassword");const b=Hr(r,n,"passThrough");if(g=g&&g.length&&g,x=x&&x.length&&x,o&&99!=o.originalCompressionMethod)throw Error(Tr);if(0!=c&&8!=c&&!b)throw Error(Tr);if(Qr(w,0)!=de)throw Error(Cr);Lr(h,w,4),h.rawExtraField=h.extraFieldLength?await Yn(i,s+30+h.filenameLength,h.extraFieldLength,a):new Uint8Array,await Nr(r,h,w,4,!0),Object.assign(t,{lastAccessDate:h.lastAccessDate,creationDate:h.creationDate});const v=r.encrypted&&h.encrypted&&!b,y=v&&!o;if(b||(t.zipCrypto=y),v){if(!y&&o.strength===ke)throw Error(Er);if(!g&&!x)throw Error(Ur)}const _=s+30+h.filenameLength+h.extraFieldLength,k=m,z=i.readable;Object.assign(z,{diskNumberStart:a,offset:_,size:k});const S=Hr(r,n,"signal"),A=Hr(r,n,"checkPasswordOnly");A&&(e=new WritableStream),e=Qn(e),await Kn(e,b?m:p);const{writable:j}=e,{onstart:D,onprogress:C,onend:F}=n,U={options:{codecType:Nt,password:g,rawPassword:x,zipCrypto:y,encryptionStrength:o&&o.strength,signed:Hr(r,n,"checkSignature")&&!b,passwordVerification:y&&(d.dataDescriptor?u>>>8&255:f>>>24&255),signature:f,compressed:0!=c&&!b,encrypted:r.encrypted&&!b,useWebWorkers:Hr(r,n,"useWebWorkers"),useCompressionStream:Hr(r,n,"useCompressionStream"),transferStreams:Hr(r,n,"transferStreams"),checkPasswordOnly:A},config:l,streamOptions:{signal:S,size:k,onstart:D,onprogress:C,onend:F}};let E=0;try{({outputSize:E}=await sn({readable:z,writable:j},U))}catch(e){if(!A||e.message!=Xe)throw e}finally{const e=Hr(r,n,"preventClose");j.size+=E,e||j.locked||await j.getWriter().close()}return A?ke:e.getData?e.getData():j}};function Lr(e,t,n){const r=e.rawBitFlag=Xr(t,n+2),i=!(1&~r),s=Qr(t,n+6);Object.assign(e,{encrypted:i,version:Xr(t,n),bitFlag:{level:(6&r)>>1,dataDescriptor:!(8&~r),languageEncodingFlag:(r&be)==be},rawLastModDate:s,lastModDate:Vr(s),filenameLength:Xr(t,n+22),extraFieldLength:Xr(t,n+24)})}async function Nr(e,t,n,r,i){const{rawExtraField:s}=t,a=t.extraField=new Map,o=Jr(new Uint8Array(s));let c=0;try{for(;c<s.length;){const e=Xr(o,c),t=Xr(o,c+2);a.set(e,{type:e,data:s.slice(c+4,c+4+t)}),c+=4+t}}catch(e){}const l=Xr(n,r+4);Object.assign(t,{signature:Qr(n,r+10),uncompressedSize:Qr(n,r+18),compressedSize:Qr(n,r+14)});const d=a.get(1);d&&(((e,t)=>{t.zip64=!0;const n=Jr(e.data),r=Wr.filter((([e,n])=>t[e]==n));for(let i=0,s=0;i<r.length;i++){const[a,o]=r[i];if(t[a]==o){const r=Ir[o];t[a]=e[a]=r.getValue(n,s),s+=r.bytes}else if(e[a])throw Error(Fr)}})(d,t),t.extraFieldZip64=d);const f=a.get(28789);f&&(await Gr(f,rr,ir,t,e),t.extraFieldUnicodePath=f);const u=a.get(25461);u&&(await Gr(u,sr,ar,t,e),t.extraFieldUnicodeComment=u);const p=a.get(39169);p?(((e,t,n)=>{const r=Jr(e.data),i=Kr(r,4);Object.assign(e,{vendorVersion:Kr(r,0),vendorId:Kr(r,2),strength:i,originalCompressionMethod:n,compressionMethod:Xr(r,5)}),t.compressionMethod=e.compressionMethod})(p,t,l),t.extraFieldAES=p):t.compressionMethod=l;const m=a.get(10);m&&(((e,t)=>{const n=Jr(e.data);let r,i=4;try{for(;i<e.data.length&&!r;){const t=Xr(n,i),s=Xr(n,i+2);1==t&&(r=e.data.slice(i+4,i+4+s)),i+=4+s}}catch(e){}try{if(r&&24==r.length){const n=Jr(r),i=n.getBigUint64(0,!0),s=n.getBigUint64(8,!0),a=n.getBigUint64(16,!0);Object.assign(e,{rawLastModDate:i,rawLastAccessDate:s,rawCreationDate:a});const o={lastModDate:Zr(i),lastAccessDate:Zr(s),creationDate:Zr(a)};Object.assign(e,o),Object.assign(t,o)}}catch(e){}})(m,t),t.extraFieldNTFS=m);const h=a.get(xe);h&&(((e,t,n)=>{const r=Jr(e.data),i=Kr(r,0),s=[],a=[];n?(1&~i||(s.push(fr),a.push(ur)),2&~i||(s.push(pr),a.push("rawLastAccessDate")),4&~i||(s.push(mr),a.push("rawCreationDate"))):5>e.data.length||(s.push(fr),a.push(ur));let o=1;s.forEach(((n,i)=>{if(e.data.length>=o+4){const s=Qr(r,o);t[n]=e[n]=new Date(1e3*s);const c=a[i];e[c]=s}o+=4}))})(h,t,i),t.extraFieldExtendedTimestamp=h);const w=a.get(6534);w&&(t.extraFieldUSDZ=w)}async function Gr(e,t,n,r,i){const s=Jr(e.data),a=new Ie;a.append(i[n]);const o=Jr(new Uint8Array(4));o.setUint32(0,a.get(),!0);const c=Qr(s,1);Object.assign(e,{version:Kr(s,0),[t]:nr(e.data.subarray(5)),valid:!i.bitFlag.languageEncodingFlag&&c==Qr(o,0)}),e.valid&&(r[t]=e[t],r[t+"UTF8"]=!0)}function Hr(e,t,n){return t[n]===ke?e.options[n]:t[n]}function Vr(e){const t=(4294901760&e)>>16,n=65535&e;try{return new Date(1980+((65024&t)>>9),((480&t)>>5)-1,31&t,(63488&n)>>11,(2016&n)>>5,2*(31&n),0)}catch(e){}}function Zr(e){return new Date(Number(e/BigInt(1e4)-BigInt(116444736e5)))}function Kr(e,t){return e.getUint8(t)}function Xr(e,t){return e.getUint16(t,!0)}function Qr(e,t){return e.getUint32(t,!0)}function Yr(e,t){return Number(e.getBigUint64(t,!0))}function Jr(e){return new DataView(e.buffer)}const $r="File already exists",ei="Zip file comment exceeds 64KB",ti="File entry comment exceeds 64KB",ni="File entry name exceeds 64KB",ri="Version exceeds 65535",ii="The strength must equal 1, 2, or 3",si="Extra field type exceeds 65535",ai="Extra field data exceeds 64KB",oi="Zip64 is not supported (make sure 'keepOrder' is set to 'true')",ci="Undefined uncompressed size",li=new Uint8Array([7,0,2,0,65,69,3,0,0]);let di=0;const fi=[];class ui{constructor(e,t={}){const n=(e=Qn(e)).availableSize!==ke&&e.availableSize>0&&e.availableSize!==1/0&&e.maxSize!==ke&&e.maxSize>0&&e.maxSize!==1/0;Object.assign(this,{writer:e,addSplitZipSignature:n,options:t,config:Fe(),files:new Map,filenames:new Set,offset:t.offset===ke?e.writable.size:t.offset,pendingEntriesSize:0,pendingAddFileCalls:new Set,bufferedWrites:0})}async add(e="",t,n={}){const r=this,{pendingAddFileCalls:i,config:s}=r;let a;di<s.maxWorkers?di++:await new Promise((e=>fi.push(e)));try{if(e=e.trim(),r.filenames.has(e))throw Error($r);return r.filenames.add(e),a=(async(e,t,n,r)=>{t=t.trim(),r.directory&&!t.endsWith(ve)?t+=ve:r.directory=t.endsWith(ve);const i=wi(e,r,"encodeText",Pe);let s=i(t);if(s===ke&&(s=Pe(t)),zi(s)>le)throw Error(ni);const a=r.comment||"";let o=i(a);if(o===ke&&(o=Pe(a)),zi(o)>le)throw Error(ti);const c=wi(e,r,vr,20);if(c>le)throw Error(ri);const l=wi(e,r,yr,20);if(l>le)throw Error(ri);const d=wi(e,r,fr,new Date),f=wi(e,r,pr),u=wi(e,r,mr),p=wi(e,r,gr,!0),m=wi(e,r,hr,0),h=wi(e,r,wr,0),w=wi(e,r,"passThrough");let g,x;w||(g=wi(e,r,"password"),x=wi(e,r,"rawPassword"));const b=wi(e,r,"encryptionStrength",3),v=wi(e,r,_r),y=wi(e,r,"extendedTimestamp",!0),_=wi(e,r,"keepOrder",!0),k=wi(e,r,"level"),z=wi(e,r,"useWebWorkers"),S=wi(e,r,"bufferedWrite"),A=wi(e,r,"dataDescriptorSignature",!1),j=wi(e,r,"signal"),D=wi(e,r,"useUnicodeFileNames",!0),C=wi(e,r,"useCompressionStream"),F=wi(e,r,"compressionMethod");let U=wi(e,r,"dataDescriptor",!0),E=wi(e,r,xr);if(!v&&(g!==ke||x!==ke)&&(1>b||b>3))throw Error(ii);let T=new Uint8Array;const{extraField:q}=r;if(q){let e=0,t=0;q.forEach((t=>e+=4+zi(t))),T=new Uint8Array(e),q.forEach(((e,n)=>{if(n>le)throw Error(si);if(zi(e)>le)throw Error(ai);_i(T,new Uint16Array([n]),t),_i(T,new Uint16Array([zi(e)]),t+2),_i(T,e,t+4),t+=4+zi(e)}))}let R=0,O=0,W=0;if(w&&(({uncompressedSize:W}=r),W===ke))throw Error(ci);const I=!0===E;n&&(n=Xn(n),await Kn(n),w?R=gi(W):n.size===ke?(U=!0,(E||E===ke)&&(E=!0,W=R=4294967296)):(W=n.size,R=gi(W)));const{diskOffset:M,diskNumber:P,maxSize:B}=e.writer,L=I||W>ce,N=I||R>ce,G=I||e.offset+e.pendingEntriesSize-M>ce,H=wi(e,r,"supportZip64SplitFile",!0)&&I||P+Math.ceil(e.pendingEntriesSize/B)>le;if(G||L||N||H){if(!1===E||!_)throw Error(oi);E=!0}E=E||!1;const V=wi(e,r,br),{signature:Z}=r,K=(e=>{const{rawFilename:t,lastModDate:n,lastAccessDate:r,creationDate:i,level:s,zip64:a,zipCrypto:o,useUnicodeFileNames:c,dataDescriptor:l,directory:d,rawExtraField:f,encryptionStrength:u,extendedTimestamp:p,encrypted:m}=e,h=0!==s&&!d;let w,g,x,b,{version:v,compressionMethod:y}=e;if(m&&!o){w=new Uint8Array(zi(li)+2);const e=ki(w);bi(e,0,39169),_i(w,li,2),xi(e,8,u)}else w=new Uint8Array;if(p){x=new Uint8Array(9+(r?4:0)+(i?4:0));const e=ki(x);bi(e,0,xe),bi(e,2,zi(x)-4),b=1+(r?2:0)+(i?4:0),xi(e,4,b);let t=5;vi(e,t,Math.floor(n.getTime()/1e3)),t+=4,r&&(vi(e,t,Math.floor(r.getTime()/1e3)),t+=4),i&&vi(e,t,Math.floor(i.getTime()/1e3));try{g=new Uint8Array(36);const e=ki(g),t=hi(n);bi(e,0,10),bi(e,2,32),bi(e,8,1),bi(e,10,24),yi(e,12,t),yi(e,20,hi(r)||t),yi(e,28,hi(i)||t)}catch(e){g=new Uint8Array}}else g=x=new Uint8Array;let _=0;c&&(_|=be),l&&(_|=8),y===ke&&(y=h?8:0),h&&(s>=1&&3>s&&(_|=6),s>=3&&5>s&&(_|=1),9===s&&(_|=2)),a&&(v=v>45?v:45),m&&(_|=1,o||(v=v>51?v:51,w[9]=y,y=99));const k=new Uint8Array(26),z=ki(k);bi(z,0,v),bi(z,2,_),bi(z,4,y);const S=new Uint32Array(1),A=ki(S);let j;j=_e>n?_e:n>ye?ye:n,bi(A,0,(j.getHours()<<6|j.getMinutes())<<5|j.getSeconds()/2),bi(A,2,(j.getFullYear()-1980<<4|j.getMonth()+1)<<5|j.getDate());const D=S[0];vi(z,6,D),bi(z,22,zi(t));const C=zi(w,x,g,f);bi(z,24,C);const F=new Uint8Array(30+zi(t)+C);return vi(ki(F),0,de),_i(F,k,4),_i(F,t,30),_i(F,w,30+zi(t)),_i(F,x,30+zi(t,w)),_i(F,g,30+zi(t,w,x)),_i(F,f,30+zi(t,w,x,g)),{localHeaderArray:F,headerArray:k,headerView:z,lastModDate:n,rawLastModDate:D,encrypted:m,compressed:h,version:v,compressionMethod:y,extraFieldExtendedTimestampFlag:b,rawExtraFieldExtendedTimestamp:x,rawExtraFieldNTFS:g,rawExtraFieldAES:w,extraFieldLength:C}})(r=Object.assign({},r,{rawFilename:s,rawComment:o,version:c,versionMadeBy:l,lastModDate:d,lastAccessDate:f,creationDate:u,rawExtraField:T,zip64:E,zip64UncompressedSize:L,zip64CompressedSize:N,zip64Offset:G,zip64DiskNumberStart:H,password:g,rawPassword:x,level:C||e.config.CompressionStream!==ke||e.config.CompressionStreamNative!==ke?k:0,useWebWorkers:z,encryptionStrength:b,extendedTimestamp:y,zipCrypto:v,bufferedWrite:S,keepOrder:_,useUnicodeFileNames:D,dataDescriptor:U,dataDescriptorSignature:A,signal:j,msDosCompatible:p,internalFileAttribute:m,externalFileAttribute:h,useCompressionStream:C,passThrough:w,encrypted:!!(g&&zi(g)||x&&zi(x))||w&&V,signature:Z,compressionMethod:F})),X=(e=>{const{zip64:t,dataDescriptor:n,dataDescriptorSignature:r}=e;let i,s=new Uint8Array,a=0;return n&&(s=new Uint8Array(t?r?24:20:r?16:12),i=ki(s),r&&(a=4,vi(i,0,ue))),{dataDescriptorArray:s,dataDescriptorView:i,dataDescriptorOffset:a}})(r),Q=zi(K.localHeaderArray,X.dataDescriptorArray);let Y;O=Q+R,e.options.usdz&&(O+=O+64),e.pendingEntriesSize+=O;try{Y=await(async(e,t,n,r,i)=>{const{files:s,writer:a}=e,{keepOrder:o,dataDescriptor:c,signal:l}=i,{headerInfo:d}=r,{usdz:f}=e.options,u=Array.from(s.values()).pop();let p,m,h,w,g,x,b,v={};s.set(t,v);try{let d;o&&(d=u&&u.lock,v.lock=new Promise((e=>h=e))),!(i.bufferedWrite||e.writerLocked||e.bufferedWrites&&o)&&c||f?(x=a,await y()):(x=new TransformStream,b=new Response(x.readable).blob(),x.writable.size=0,p=!0,e.bufferedWrites++,await Kn(a)),await Kn(x);const{writable:m}=a;let{diskOffset:k}=a;if(e.addSplitZipSignature){delete e.addSplitZipSignature;const t=new Uint8Array(4);vi(ki(t),0,fe),await mi(m,t),e.offset+=4}f&&((e,t)=>{const{headerInfo:n}=e;let{localHeaderArray:r,extraFieldLength:i}=n,s=ki(r),a=64-(t+zi(r))%64;4>a&&(a+=64);const o=new Uint8Array(a),c=ki(o);bi(c,0,6534),bi(c,2,a-2);const l=r;n.localHeaderArray=r=new Uint8Array(zi(l)+a),_i(r,l),_i(r,o,zi(l)),s=ki(r),bi(s,28,i+a),e.metadataSize+=a})(r,e.offset-k),p||(await d,await _(m));const{diskNumber:z}=a;if(g=!0,v.diskNumberStart=z,v=await(async(e,t,{diskNumberStart:n,lock:r},i,s,a)=>{const{headerInfo:o,dataDescriptorInfo:c,metadataSize:l}=i,{localHeaderArray:d,headerArray:f,lastModDate:u,rawLastModDate:p,encrypted:m,compressed:h,version:w,compressionMethod:g,rawExtraFieldExtendedTimestamp:x,extraFieldExtendedTimestampFlag:b,rawExtraFieldNTFS:v,rawExtraFieldAES:y}=o,{dataDescriptorArray:_}=c,{rawFilename:k,lastAccessDate:z,creationDate:S,password:A,rawPassword:j,level:D,zip64:C,zip64UncompressedSize:F,zip64CompressedSize:U,zip64Offset:E,zip64DiskNumberStart:T,zipCrypto:q,dataDescriptor:R,directory:O,versionMadeBy:W,rawComment:I,rawExtraField:M,useWebWorkers:P,onstart:B,onprogress:L,onend:N,signal:G,encryptionStrength:H,extendedTimestamp:V,msDosCompatible:Z,internalFileAttribute:K,externalFileAttribute:X,useCompressionStream:Q,passThrough:Y}=a,J={lock:r,versionMadeBy:W,zip64:C,directory:!!O,filenameUTF8:!0,rawFilename:k,commentUTF8:!0,rawComment:I,rawExtraFieldExtendedTimestamp:x,rawExtraFieldNTFS:v,rawExtraFieldAES:y,rawExtraField:M,extendedTimestamp:V,msDosCompatible:Z,internalFileAttribute:K,externalFileAttribute:X,diskNumberStart:n};let{signature:$,uncompressedSize:ee}=a,te=0;Y||(ee=0);const{writable:ne}=t;if(e){e.chunkSize=Ue(s),await mi(ne,d);const t=e.readable,n=t.size=e.size,r={options:{codecType:Lt,level:D,rawPassword:j,password:A,encryptionStrength:H,zipCrypto:m&&q,passwordVerification:m&&q&&p>>8&255,signed:!Y,compressed:h&&!Y,encrypted:m&&!Y,useWebWorkers:P,useCompressionStream:Q,transferStreams:!1},config:s,streamOptions:{signal:G,size:n,onstart:B,onprogress:L,onend:N}},i=await sn({readable:t,writable:ne},r);te=i.outputSize,Y||(ee=i.inputSize,$=i.signature),ne.size+=ee}else await mi(ne,d);let re;if(C){let e=4;F&&(e+=8),U&&(e+=8),E&&(e+=8),T&&(e+=4),re=new Uint8Array(e)}else re=new Uint8Array;return((e,t)=>{const{signature:n,rawExtraFieldZip64:r,compressedSize:i,uncompressedSize:s,headerInfo:a,dataDescriptorInfo:o}=e,{headerView:c,encrypted:l}=a,{dataDescriptorView:d,dataDescriptorOffset:f}=o,{zip64:u,zip64UncompressedSize:p,zip64CompressedSize:m,zipCrypto:h,dataDescriptor:w}=t;if(l&&!h||n===ke||(vi(c,10,n),w&&vi(d,f,n)),u){const e=ki(r);bi(e,0,1),bi(e,2,zi(r)-4);let t=4;p&&(vi(c,18,ce),yi(e,t,BigInt(s)),t+=8),m&&(vi(c,14,ce),yi(e,t,BigInt(i))),w&&(yi(d,f+4,BigInt(i)),yi(d,f+12,BigInt(s)))}else vi(c,14,i),vi(c,18,s),w&&(vi(d,f+4,i),vi(d,f+8,s))})({signature:$,rawExtraFieldZip64:re,compressedSize:te,uncompressedSize:ee,headerInfo:o,dataDescriptorInfo:c},a),R&&await mi(ne,_),Object.assign(J,{uncompressedSize:ee,compressedSize:te,lastModDate:u,rawLastModDate:p,creationDate:S,lastAccessDate:z,encrypted:m,zipCrypto:q,size:l+te,compressionMethod:g,version:w,headerArray:f,signature:$,rawExtraFieldZip64:re,extraFieldExtendedTimestampFlag:b,zip64UncompressedSize:F,zip64CompressedSize:U,zip64Offset:E,zip64DiskNumberStart:T}),J})(n,x,v,r,e.config,i),g=!1,s.set(t,v),v.filename=t,p){await x.writable.getWriter().close();let e=await b;await d,await y(),w=!0,c||(e=await(async(e,t,n,{zipCrypto:r})=>{let i;i=await t.slice(0,26).arrayBuffer(),26!=i.byteLength&&(i=i.slice(0,26));const s=new DataView(i);return e.encrypted&&!r||vi(s,14,e.signature),e.zip64?(vi(s,18,ce),vi(s,22,ce)):(vi(s,18,e.compressedSize),vi(s,22,e.uncompressedSize)),await mi(n,new Uint8Array(i)),t.slice(i.byteLength)})(v,e,m,i)),await _(m),v.diskNumberStart=a.diskNumber,k=a.diskOffset,await e.stream().pipeTo(m,{preventClose:!0,preventAbort:!0,signal:l}),m.size+=e.size,w=!1}if(v.offset=e.offset-k,v.zip64)((e,t)=>{const{rawExtraFieldZip64:n,offset:r,diskNumberStart:i}=e,{zip64UncompressedSize:s,zip64CompressedSize:a,zip64Offset:o,zip64DiskNumberStart:c}=t,l=ki(n);let d=4;s&&(d+=8),a&&(d+=8),o&&(yi(l,d,BigInt(r)),d+=8),c&&vi(l,d,i)})(v,i);else if(v.offset>ce)throw Error(oi);return e.offset+=v.size,v}catch(n){if(p&&w||!p&&g){if(e.hasCorruptedEntries=!0,n)try{n.corruptedEntry=!0}catch(e){}p?e.offset+=x.writable.size:e.offset=x.writable.size}throw s.delete(t),n}finally{p&&e.bufferedWrites--,h&&h(),m&&m()}async function y(){e.writerLocked=!0;const{lockWriter:t}=e;e.lockWriter=new Promise((t=>m=()=>{e.writerLocked=!1,t()})),await t}async function _(e){zi(d.localHeaderArray)>a.availableSize&&(a.availableSize=0,await mi(e,new Uint8Array))}})(e,t,n,{headerInfo:K,dataDescriptorInfo:X,metadataSize:Q},r)}finally{e.pendingEntriesSize-=O}return Object.assign(Y,{name:t,comment:a,extraField:q}),new zr(Y)})(r,e,t,n),i.add(a),await a}catch(t){throw r.filenames.delete(e),t}finally{i.delete(a);const e=fi.shift();e?e():di--}}async close(e=new Uint8Array,t={}){const{pendingAddFileCalls:n,writer:r}=this,{writable:i}=r;for(;n.size;)await Promise.allSettled(Array.from(n));return await(async(e,t,n)=>{const{files:r,writer:i}=e,{diskOffset:s,writable:a}=i;let{diskNumber:o}=i,c=0,l=0,d=e.offset-s,f=r.size;for(const[,e]of r){const{rawFilename:t,rawExtraFieldZip64:n,rawExtraFieldAES:r,rawComment:i,rawExtraFieldNTFS:s,rawExtraField:a,extendedTimestamp:o,extraFieldExtendedTimestampFlag:c,lastModDate:d}=e;let f;if(o){f=new Uint8Array(9);const e=ki(f);bi(e,0,xe),bi(e,2,5),xi(e,4,c),vi(e,5,Math.floor(d.getTime()/1e3))}else f=new Uint8Array;e.rawExtraFieldCDExtendedTimestamp=f,l+=46+zi(t,i,n,r,s,f,a)}const u=new Uint8Array(l),p=ki(u);await Kn(i);let m=0;for(const[e,t]of Array.from(r.values()).entries()){const{offset:s,rawFilename:o,rawExtraFieldZip64:l,rawExtraFieldAES:d,rawExtraFieldCDExtendedTimestamp:f,rawExtraFieldNTFS:h,rawExtraField:w,rawComment:g,versionMadeBy:x,headerArray:b,directory:v,zip64:y,zip64UncompressedSize:_,zip64CompressedSize:k,zip64DiskNumberStart:z,zip64Offset:S,msDosCompatible:A,internalFileAttribute:j,externalFileAttribute:D,diskNumberStart:C,uncompressedSize:F,compressedSize:U}=t,E=zi(l,d,f,h,w);vi(p,c,pe),bi(p,c+4,x);const T=ki(b);_||vi(T,18,F),k||vi(T,14,U),_i(u,b,c+6),bi(p,c+30,E),bi(p,c+32,zi(g)),bi(p,c+34,y&&z?le:C),bi(p,c+36,j),D?vi(p,c+38,D):v&&A&&xi(p,c+38,16),vi(p,c+42,y&&S?ce:s),_i(u,o,c+46),_i(u,l,c+46+zi(o)),_i(u,d,c+46+zi(o,l)),_i(u,f,c+46+zi(o,l,d)),_i(u,h,c+46+zi(o,l,d,f)),_i(u,w,c+46+zi(o,l,d,f,h)),_i(u,g,c+46+zi(o)+E);const q=46+zi(o,g)+E;if(c-m>i.availableSize&&(i.availableSize=0,await mi(a,u.slice(m,c)),m=c),c+=q,n.onprogress)try{await n.onprogress(e+1,r.size,new zr(t))}catch(e){}}await mi(a,m?u.slice(m):u);let h=i.diskNumber;const{availableSize:w}=i;ge>w&&h++;let g=wi(e,n,xr);if(d>ce||l>ce||f>le||h>le){if(!1===g)throw Error(oi);g=!0}const x=new Uint8Array(g?98:ge),b=ki(x);c=0,g&&(vi(b,0,he),yi(b,4,BigInt(44)),bi(b,12,45),bi(b,14,45),vi(b,16,h),vi(b,20,o),yi(b,24,BigInt(f)),yi(b,32,BigInt(f)),yi(b,40,BigInt(l)),yi(b,48,BigInt(d)),vi(b,56,we),yi(b,64,BigInt(d)+BigInt(l)),vi(b,72,h+1),wi(e,n,"supportZip64SplitFile",!0)&&(h=le,o=le),f=le,d=ce,l=ce,c+=76),vi(b,c,me),bi(b,c+4,h),bi(b,c+6,o),bi(b,c+8,f),bi(b,c+10,f),vi(b,c+12,l),vi(b,c+16,d);const v=zi(t);if(v){if(v>le)throw Error(ei);bi(b,c+20,v)}await mi(a,x),v&&await mi(a,t)})(this,e,t),wi(this,t,"preventClose")||await i.getWriter().close(),r.getData?r.getData():i}}class pi{constructor(e={}){const{readable:t,writable:n}=new TransformStream;this.readable=t,this.zipWriter=new ui(n,e)}transform(e){const{readable:t,writable:n}=new TransformStream({flush:()=>{this.zipWriter.close()}});return this.zipWriter.add(e,t),{readable:this.readable,writable:n}}writable(e){const{readable:t,writable:n}=new TransformStream;return this.zipWriter.add(e,t),n}close(e,t={}){return this.zipWriter.close(e,t)}}async function mi(e,t){const n=e.getWriter();try{await n.ready,e.size+=zi(t),await n.write(t)}finally{n.releaseLock()}}function hi(e){if(e)return(BigInt(e.getTime())+BigInt(116444736e5))*BigInt(1e4)}function wi(e,t,n,r){const i=t[n]===ke?e.options[n]:t[n];return i===ke?r:i}function gi(e){return e+5*(Math.floor(e/16383)+1)}function xi(e,t,n){e.setUint8(t,n)}function bi(e,t,n){e.setUint16(t,n,!0)}function vi(e,t,n){e.setUint32(t,n,!0)}function yi(e,t,n){e.setBigUint64(t,n,!0)}function _i(e,t,n){e.set(t,n)}function ki(e){return new DataView(e.buffer)}function zi(...e){let t=0;return e.forEach((e=>e&&(t+=e.length))),t}class Si{constructor(e,t,n,r){const i=this;if(e.root&&r&&r.getChildByName(t))throw Error("Entry filename already exists");n||(n={}),Object.assign(i,{fs:e,name:t,data:n.data,options:n.options,id:e.entries.length,parent:r,children:[],uncompressedSize:n.uncompressedSize||0,passThrough:n.passThrough}),e.entries.push(i),r&&i.parent.children.push(i)}moveTo(e){this.fs.move(this,e)}getFullname(){return this.getRelativeName()}getRelativeName(e=this.fs.root){let t=this.name,n=this.parent;for(;n&&n!=e;)t=(n.name?n.name+"/":"")+t,n=n.parent;return t}isDescendantOf(e){let t=this.parent;for(;t&&t.id!=e.id;)t=t.parent;return!!t}rename(e){const t=this.parent;if(t&&t.getChildByName(e))throw Error("Entry filename already exists");this.name=e}}class Ai extends Si{constructor(e,t,n,r){super(e,t,n,r);const i=this;i.Reader=n.Reader,i.Writer=n.Writer,n.getData&&(i.getData=n.getData)}clone(){return new Ai(this.fs,this.name,this)}async getData(e,t={}){const n=this;if(!e||e.constructor==n.Writer&&n.data)return n.data;{const r=n.reader=new n.Reader(n.data,t),i=n.data?n.data.uncompressedSize:r.size;await Promise.all([Kn(r),Kn(e,i)]);const s=r.readable;return s.size=n.uncompressedSize=r.size,await s.pipeTo(e.writable),e.getData?e.getData():e.writable}}isPasswordProtected(){return this.data.encrypted}async checkPassword(e,t={}){const n=this;if(!n.isPasswordProtected())return!0;t.password=e,t.checkPasswordOnly=!0;try{return await n.data.getData(null,t),!0}catch(e){if(e.message==Ze)return!1;throw e}}getText(e,t){return this.getData(new Dn(e),t)}getBlob(e,t){return this.getData(new An(e),t)}getData64URI(e,t){return this.getData(new zn(e),t)}getUint8Array(e){return this.getData(new Hn,e)}getWritable(e=new WritableStream,t){return this.getData({writable:e},t)}replaceBlob(e){Object.assign(this,{data:e,Reader:Sn,Writer:An,reader:null})}replaceText(e){Object.assign(this,{data:e,Reader:jn,Writer:Dn,reader:null})}replaceData64URI(e){Object.assign(this,{data:e,Reader:kn,Writer:zn,reader:null})}replaceUint8Array(e){Object.assign(this,{data:e,Reader:Gn,Writer:Hn,reader:null})}replaceReadable(e){Object.assign(this,{data:null,Reader:()=>({readable:e}),Writer:null,reader:null})}}class ji extends Si{constructor(e,t,n,r){super(e,t,n,r),this.directory=!0}clone(e){const t=this,n=new ji(t.fs,t.name);return e&&(n.children=t.children.map((t=>{const r=t.clone(e);return r.parent=n,r}))),n}addDirectory(e,t){return Ri(this,e,{options:t},!0)}addText(e,t,n={}){return Ri(this,e,{data:t,Reader:jn,Writer:Dn,options:n,uncompressedSize:t.length})}addBlob(e,t,n={}){return Ri(this,e,{data:t,Reader:Sn,Writer:An,options:n,uncompressedSize:t.size})}addData64URI(e,t,n={}){let r=t.length;for(;"="==t.charAt(r-1);)r--;const i=t.indexOf(",")+1;return Ri(this,e,{data:t,Reader:kn,Writer:zn,options:n,uncompressedSize:Math.floor(.75*(r-i))})}addUint8Array(e,t,n={}){return Ri(this,e,{data:t,Reader:Gn,Writer:Hn,options:n,uncompressedSize:t.length})}addHttpContent(e,t,n={}){return Ri(this,e,{data:t,Reader:class extends Ln{constructor(e){super(e,n)}},options:n})}addReadable(e,t,n={}){return Ri(this,e,{Reader:()=>({readable:t}),options:n})}addFileSystemEntry(e,t={}){return Ei(this,e,t)}addFileSystemHandle(e,t={}){return Ei(this,e,t)}addFile(e,t={}){return t.lastModDate||(t.lastModDate=new Date(e.lastModified)),Ri(this,e.name,{data:e,Reader:()=>({readable:e.stream(),size:e.size}),options:t,uncompressedSize:e.size})}addData(e,t){return Ri(this,e,t)}importBlob(e,t){return this.importZip(new Sn(e),t)}importData64URI(e,t){return this.importZip(new kn(e),t)}importUint8Array(e,t){return this.importZip(new Gn(e),t)}importHttpContent(e,t){return this.importZip(new Ln(e,t),t)}importReadable(e,t){return this.importZip({readable:e},t)}exportBlob(e={}){return this.exportZip(new An(e.mimeType||"application/zip"),e)}exportData64URI(e={}){return this.exportZip(new zn(e.mimeType||"application/zip"),e)}exportUint8Array(e={}){return this.exportZip(new Hn,e)}async exportWritable(e=new WritableStream,t={}){return await this.exportZip({writable:e},t),e}async importZip(e,t={}){await Kn(e);const n=new Mr(e,t),r=[],i=await n.getEntries();for(const e of i){let n=this;try{const i=e.filename.split("/"),s=i.pop();i.forEach(((t,s)=>{const a=n;n=n.getChildByName(t),n||(n=new ji(this.fs,t,{data:s==i.length-1?e:null},a),r.push(n))})),e.directory||r.push(Ri(n,s,{data:e,Reader:Ci(Object.assign({},t)),uncompressedSize:e.uncompressedSize,passThrough:t.passThrough}))}catch(t){try{t.cause={entry:e}}catch(e){}throw t}}return r}async exportZip(e,t){const n=this;t.bufferedWrite===ke&&(t.bufferedWrite=!0),await Promise.all([Fi(n,t.readerOptions),Kn(e)]);const r=new ui(e,t);return await(async(e,t,n,r)=>{const i=t,s=new Map;await async function e(t,a){async function o(a){const o=r.relativePath?a.getRelativeName(i):a.getFullname();let c=a.options||{},l={};if(a.data instanceof zr){const{externalFileAttribute:e,versionMadeBy:t,comment:n,lastModDate:r,creationDate:i,lastAccessDate:s,uncompressedSize:o,encrypted:c,zipCrypto:d,signature:f,compressionMethod:u,extraFieldAES:p}=a.data;if(l={externalFileAttribute:e,versionMadeBy:t,comment:n,lastModDate:r,creationDate:i,lastAccessDate:s},a.passThrough){let e,t;0===u&&(e=0),p&&(t=p.strength),l=Object.assign(l,{passThrough:!0,encrypted:c,zipCrypto:d,signature:f,uncompressedSize:o,level:e,encryptionStrength:t,compressionMethod:u})}}await t.add(o,a.reader,Object.assign({directory:a.directory},Object.assign({},r,l,c,{onprogress:async e=>{if(r.onprogress){s.set(o,e);try{await r.onprogress(Array.from(s.values()).reduce(((e,t)=>e+t)),n)}catch(e){}}}}))),await e(t,a)}await(async()=>{if(r.bufferedWrite)await Promise.allSettled(a.children.map(o));else for(const e of a.children)await o(e)})()}(e,t)})(r,n,(e=>{let t=0;return e.forEach((function e(n){t+=n.uncompressedSize,n.children&&n.children.forEach(e)})),t})([n]),t),await r.close(),e.getData?e.getData():e.writable}getChildByName(e){const t=this.children;for(let n=0;n<t.length;n++){const r=t[n];if(r.name==e)return r}}isPasswordProtected(){const e=this.children;for(let t=0;t<e.length;t++)if(e[t].isPasswordProtected())return!0;return!1}async checkPassword(e,t={}){const n=this.children;return!(await Promise.all(n.map((n=>n.checkPassword(e,t))))).includes(!1)}}const Di={FS:class{constructor(){qi(this)}get children(){return this.root.children}remove(e){Ui(e),this.entries[e.id]=null}move(e,t){if(e==this.root)throw Error("Root directory cannot be moved");if(!t.directory)throw Error("Target entry is not a directory");if(t.isDescendantOf(e))throw Error("Entry is a ancestor of target entry");if(e!=t){if(t.getChildByName(e.name))throw Error("Entry filename already exists");Ui(e),e.parent=t,t.children.push(e)}}find(e){const t=e.split("/");let n=this.root;for(let e=0;n&&e<t.length;e++)n=n.getChildByName(t[e]);return n}getById(e){return this.entries[e]}getChildByName(e){return this.root.getChildByName(e)}addDirectory(e,t){return this.root.addDirectory(e,t)}addText(e,t,n){return this.root.addText(e,t,n)}addBlob(e,t,n){return this.root.addBlob(e,t,n)}addData64URI(e,t,n){return this.root.addData64URI(e,t,n)}addUint8Array(e,t,n){return this.root.addUint8Array(e,t,n)}addHttpContent(e,t,n){return this.root.addHttpContent(e,t,n)}addReadable(e,t,n){return this.root.addReadable(e,t,n)}addFileSystemEntry(e,t){return this.root.addFileSystemEntry(e,t)}addFileSystemHandle(e,t){return this.root.addFileSystemHandle(e,t)}addFile(e,t){return this.root.addFile(e,t)}addData(e,t){return this.root.addData(e,t)}importBlob(e,t){return qi(this),this.root.importBlob(e,t)}importData64URI(e,t){return qi(this),this.root.importData64URI(e,t)}importUint8Array(e,t){return qi(this),this.root.importUint8Array(e,t)}importHttpContent(e,t){return qi(this),this.root.importHttpContent(e,t)}importReadable(e,t){return qi(this),this.root.importReadable(e,t)}importZip(e,t){return this.root.importZip(e,t)}exportBlob(e){return this.root.exportBlob(e)}exportData64URI(e){return this.root.exportData64URI(e)}exportUint8Array(e){return this.root.exportUint8Array(e)}exportWritable(e,t){return this.root.exportWritable(e,t)}isPasswordProtected(){return this.root.isPasswordProtected()}async checkPassword(e,t){return this.root.checkPassword(e,t)}},ZipDirectoryEntry:ji,ZipFileEntry:Ai};function Ci(e){return class extends yn{constructor(e,t={}){super(),this.entry=e,this.options=t}async init(){const t=this;t.size=t.entry.uncompressedSize;const n=await t.entry.getData(new An,Object.assign({},t.options,e));t.data=n,t.blobReader=new Sn(n),super.init()}readUint8Array(e,t){return this.blobReader.readUint8Array(e,t)}}}async function Fi(e,t){e.children.length&&await Promise.all(e.children.map((async e=>{if(e.directory)await Fi(e,t);else{const n=e.reader=new e.Reader(e.data,t);try{await Kn(n)}catch(t){try{t.entryId=e.id,t.cause={entry:e}}catch(e){}throw t}e.uncompressedSize=n.size}})))}function Ui(e){if(e.parent){const t=e.parent.children;t.forEach(((n,r)=>{n.id==e.id&&t.splice(r,1)}))}}async function Ei(e,t,n){return async function e(t,r,i){if(r)try{if((r.isFile||r.isDirectory)&&(r=await Ti(r)),"file"==r.kind){const e=await r.getFile();i.push(t.addData(e.name,{Reader:()=>({readable:e.stream(),size:e.size}),options:Object.assign({},{lastModDate:new Date(e.lastModified)},n),uncompressedSize:e.size}))}else if("directory"==r.kind){const n=t.addDirectory(r.name);i.push(n);for await(const t of r.values())await e(n,t,i)}}catch(e){const t=e.message+(r?" ("+r.name+")":"");throw Error(t)}return i}(e,t,[])}async function Ti(e){const t={name:e.name};if(e.isFile&&(t.kind="file",t.getFile=()=>new Promise(((t,n)=>e.file(t,n)))),e.isDirectory){t.kind="directory";const n=await(async e=>{const t=[];function n(e,r,i){e.readEntries((async s=>{if(s.length){for(const e of s)t.push(await Ti(e));n(e,r,i)}else r(t)}),i)}return await new Promise(((t,r)=>n(e.createReader(),t,r))),{[Symbol.iterator](){let e=0;return{next(){const n={value:t[e],done:e===t.length};return e++,n}}}}})(e);t.values=()=>n}return t}function qi(e){e.entries=[],e.root=new ji(e)}function Ri(e,t,n,r){if(e.directory)return r?new ji(e.fs,t,n,e):new Ai(e.fs,t,n,e);throw Error("Parent entry is not a directory")}let Oi;try{Oi=import.meta.url}catch(e){}Ee({baseURL:Oi}),((e,t={})=>{const n='const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self,k=void 0,v="undefined",S="function";class z{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const C=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;C[e]=t}class x{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^C[255&(t^e[n])];this.t=t}get(){return~this.t}}class A extends p{constructor(){let e;const t=new x;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const _={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=_.i(n);return 32===r?e.concat(t):_.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+_.i(n)},u(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,r.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=_.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s<e.length;s++)r.push(n|e[s]>>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=_.i(s);return r.push(_.h(t+i&31,t+i>32?n:r.pop(),1)),r}},I={p:{m(e){const t=_.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)3&s||(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},k(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3&~n||(t.push(r),r=0);return 3&n&&t.push(_.h(8*(3&n),r)),t}}},P=class{constructor(e){const t=this;t.blockSize=512,t.v=[1732584193,4023233417,2562383102,271733878,3285377520],t.S=[1518500249,1859775393,2400959708,3395469782],e?(t.C=e.C.slice(0),t.A=e.A.slice(0),t._=e._):t.reset()}reset(){const e=this;return e.C=e.v.slice(0),e.A=[],e._=0,e}update(e){const t=this;"string"==typeof e&&(e=I.I.k(e));const n=t.A=_.concat(t.A,e),r=t._,i=t._=r+_.l(e);if(i>9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.P(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}D(){const e=this;let t=e.A;const n=e.C;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e._/4294967296)),t.push(0|e._);t.length;)e.P(t.splice(0,16));return e.reset(),n}V(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}R(e,t){return t<<e|t>>>32-e}P(t){const n=this,s=n.C,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.R(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.R(5,o)+n.V(e,c,f,a)+l+i[e]+n.S[r.floor(e/20)]|0;l=a,a=f,f=n.R(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},D={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;i<e.length;i+=4){const e=n(4294967296*(s||r.random()));s=987654071*e(),t[i/4]=4294967296*e()|0}return e}},V={importKey:e=>new V.B(I.p.k(e)),M(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=_;for(t=I.p.k(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;a<c.length;a++)o[a]^=c[a];for(f=0;(i||1)>d&&f<o.length;f++)h.setInt32(d,o[f]),d+=4}return w.slice(0,r/8)},B:class{constructor(e){const t=this,n=t.U=P,r=[[],[]];t.K=[new n,new n];const s=t.K[0].blockSize/32;e.length>s&&(e=(new n).update(e).D());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.K[0].update(r[0]),t.K[1].update(r[1]),t.N=new n(t.K[0])}reset(){const e=this;e.N=new e.U(e.K[0]),e.O=!1}update(e){this.O=!0,this.N.update(e)}digest(){const e=this,t=e.N.D(),n=new e.U(e.K[1]).update(t).D();return e.reset(),n}encrypt(e){if(this.O)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=typeof h!=v&&typeof h.getRandomValues==S,B="Invalid password",E="Invalid signature",M="zipjs-abort-check-password";function U(e){return R?h.getRandomValues(e):D.getRandomValues(e)}const K=16,N={name:"PBKDF2"},O=t.assign({hash:{name:"HMAC"}},N),T=t.assign({iterations:1e3,hash:{name:"SHA-1"}},N),W=["deriveBits"],j=[8,12,16],H=[16,24,32],L=10,F=[0,0,0,0],q=typeof h!=v,G=q&&h.subtle,J=q&&typeof G!=v,Q=I.p,X=class{constructor(e){const t=this;t.T=[[[],[],[],[],[]],[[],[],[],[],[]]],t.T[0][0][0]||t.W();const n=t.T[0][4],r=t.T[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.S=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.j(e,0)}decrypt(e){return this.j(e,1)}W(){const e=this.T[0],t=this.T[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}j(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.S[t],r=n.length/4-2,i=[0,0,0,0],o=this.T[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},Y=class{constructor(e,t){this.H=e,this.L=t,this.F=t}reset(){this.F=this.L}update(e){return this.q(this.H,e,this.F)}G(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}J(e){0===(e[0]=this.G(e[0]))&&(e[1]=this.G(e[1]))}q(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.J(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return _.u(t,s)}},Z=V.B;let $=q&&J&&typeof G.importKey==S,ee=q&&J&&typeof G.deriveBits==S;class te extends p{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:o,checkPasswordOnly:c}){super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),signed:r,Y:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:o,X:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await se(e,t,n,ce(r,0,j[t])),o=ce(r,j[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(B)})(n,o,r,ce(e,0,j[o]+2)),e=ce(e,j[o]+2),c?t.error(new s(M)):f()):await a;const l=new i(e.length-L-(e.length-L)%K);t.enqueue(re(n,e,l,0,L,!0))},async flush(e){const{signed:t,Z:n,$:r,pending:o,ready:c}=this;if(r&&n){await c;const f=ce(o,0,o.length-L),a=ce(o,o.length-L);let l=new i;if(f.length){const e=ae(Q,f);r.update(e);const t=n.update(e);l=fe(Q,t)}if(t){const e=ce(fe(Q,r.digest()),0,L);for(let t=0;L>t;t++)if(e[t]!=a[t])throw new s(E)}e.enqueue(l)}}})}}class ne extends p{constructor({password:e,rawPassword:n,encryptionStrength:r}){let s;super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),Y:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:s,X:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=U(new i(j[t]));return oe(r,await se(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%K);a.set(f,0),t.enqueue(re(n,e,a,f.length,0))},async flush(e){const{Z:t,$:n,pending:r,ready:o}=this;if(n&&t){await o;let c=new i;if(r.length){const e=t.update(ae(Q,r));n.update(e),c=fe(Q,e)}s.signature=fe(Q,n.digest()).slice(0,L),e.enqueue(oe(c,s.signature))}}}),s=this}}function re(e,t,n,r,s,o){const{Z:c,$:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=oe(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%K)),u=0;l-K>=u;u+=K){const e=ae(Q,ce(t,u,u+K));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(fe(Q,s),u+r)}return e.pending=ce(t,u),n}async function se(n,r,s,o){n.password=null;const c=await(async(e,t,n,r,s)=>{if(!$)return V.importKey(t);try{return await G.importKey("raw",t,n,!1,s)}catch(e){return $=!1,V.importKey(t)}})(0,s,O,0,W),f=await(async(e,t,n)=>{if(!ee)return V.M(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.M(t,e.salt,T.iterations,n)}})(t.assign({salt:o},T),c,8*(2*H[r]+2)),a=new i(f),l=ae(Q,ce(a,0,H[r])),u=ae(Q,ce(a,H[r],2*H[r])),w=ce(a,2*H[r]);return t.assign(n,{keys:{key:l,ee:u,passwordVerification:w},Z:new Y(new X(l),e.from(F)),$:new Z(u)}),w}function ie(e,t){return t===k?(e=>{if(typeof w==v){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new w).encode(e)})(e):t}function oe(e,t){let n=e;return e.length+t.length&&(n=new i(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ce(e,t,n){return e.subarray(t,n)}function fe(e,t){return e.m(t)}function ae(e,t){return e.k(t)}class le extends p{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;if(n.password){const t=we(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new s(B);e=e.subarray(12)}r?t.error(new s(M)):t.enqueue(we(n,e))}})}}class ue extends p{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=U(new i(12));t[11]=n.passwordVerification,r=new i(e.length+t.length),r.set(he(n,t),0),s=12}else r=new i(e.length),s=0;r.set(he(n,e),s),t.enqueue(r)}})}}function we(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,n[r]);return n}function he(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,t[r]);return n}function de(e,n){const r=[305419896,591751049,878082192];t.assign(e,{keys:r,te:new x(r[0]),ne:new x(r[2])});for(let t=0;t<n.length;t++)pe(e,n.charCodeAt(t))}function pe(e,t){let[n,s,i]=e.keys;e.te.append([t]),n=~e.te.get(),s=be(r.imul(be(s+me(n)),134775813)+1),e.ne.append([s>>>24]),i=~e.ne.get(),e.keys=[n,s,i]}function ye(e){const t=2|e.keys[2];return me(r.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}const ge="deflate-raw";class ke extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=Se(super.readable);i&&!c||!f||(w=new A,d=xe(d,w)),s&&(d=Ce(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=xe(d,new ue(e)):(h=new ne(e),d=xe(d,h))),ze(u,d,(()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ve extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=Se(super.readable);o&&(i?d=xe(d,new le(e)):(h=new te(e),d=xe(d,h))),a&&(d=Ce(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new A,d=xe(d,w)),ze(this,d,(()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(E)}}))}}function Se(e){return xe(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ze(e,n,r){n=xe(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Ce(e,t,n,r,s){try{e=xe(e,new(t&&r?r:s)(ge,n))}catch(r){if(!t)return e;try{e=xe(e,new s(ge,n))}catch(t){return e}}return e}function xe(e,t){return e.pipeThrough(t)}const Ae="data",_e="close";class Ie extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=ke:s.startsWith("inflate")&&(i=ve);let o=0,c=0;const f=new i(e,n),a=super.readable,l=new p({transform(e,t){e&&e.length&&(c+=e.length,t.enqueue(e))},flush(){t.assign(r,{inputSize:c})}}),u=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=f;t.assign(r,{signature:e,outputSize:o,inputSize:c})}});t.defineProperty(r,"readable",{get:()=>a.pipeThrough(l).pipeThrough(f).pipeThrough(u)})}}class Pe extends p{constructor(e){let t;super({transform:function n(r,s){if(t){const e=new i(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(s.enqueue(r.slice(0,e)),n(r.slice(e),s)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}const De=new a,Ve=new a;let Re,Be=0,Ee=!0;async function Me(e){try{const{options:t,scripts:r,config:s}=e;if(r&&r.length)try{Ee?importScripts.apply(k,r):await Ue(r)}catch(e){Ee=!1,await Ue(r)}self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new z(self.Deflate)),self.Inflate&&(s.DecompressionStream=new z(self.Inflate));const i={highWaterMark:1},o=e.readable||new y({async pull(e){const t=new u((e=>De.set(Be,e)));Ke({type:"pull",messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ve.set(Be,t),Ke({type:Ae,value:e,messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new Ie(t,s);Re=new AbortController;const{signal:a}=Re;await o.pipeThrough(f).pipeThrough(new Pe(s.chunkSize)).pipeTo(c,{signal:a,preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{signature:l,inputSize:w,outputSize:h}=f;Ke({type:_e,result:{signature:l,inputSize:w,outputSize:h}})}catch(e){Ne(e)}}async function Ue(e){for(const t of e)await import(t)}function Ke(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ne(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:i}=e;d({error:{message:t,stack:n,code:r,name:i}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Me(e),t==Ae){const e=De.get(n);De.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ve.get(n);Ve.delete(n),e()}t==_e&&Re.abort()}catch(e){Ne(e)}}));const Oe=15,Te=573,We=-2;function je(t){return He(t.map((([t,n])=>new e(t).fill(n,0,t))))}function He(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?He(n):n)),[])}const Le=[0,1,2,3].concat(...je([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function Fe(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.re=n=>{const s=e.se,i=e.oe.ie,o=e.oe.ce;let c,f,a,l=-1;for(n.fe=0,n.ae=Te,c=0;o>c;c++)0!==s[2*c]?(n.le[++n.fe]=l=c,n.ue[c]=0):s[2*c+1]=0;for(;2>n.fe;)a=n.le[++n.fe]=2>l?++l:0,s[2*a]=1,n.ue[a]=0,n.we--,i&&(n.he-=i[2*a+1]);for(e.de=l,c=r.floor(n.fe/2);c>=1;c--)n.pe(s,c);a=o;do{c=n.le[1],n.le[1]=n.le[n.fe--],n.pe(s,1),f=n.le[1],n.le[--n.ae]=c,n.le[--n.ae]=f,s[2*a]=s[2*c]+s[2*f],n.ue[a]=r.max(n.ue[c],n.ue[f])+1,s[2*c+1]=s[2*f+1]=a,n.le[1]=a++,n.pe(s,1)}while(n.fe>=2);n.le[--n.ae]=n.le[1],(t=>{const n=e.se,r=e.oe.ie,s=e.oe.ye,i=e.oe.me,o=e.oe.be;let c,f,a,l,u,w,h=0;for(l=0;Oe>=l;l++)t.ge[l]=0;for(n[2*t.le[t.ae]+1]=0,c=t.ae+1;Te>c;c++)f=t.le[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.de||(t.ge[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.we+=w*(l+u),r&&(t.he+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.ge[l];)l--;t.ge[l]--,t.ge[l+1]+=2,t.ge[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.ge[l];0!==f;)a=t.le[--c],a>e.de||(n[2*a+1]!=l&&(t.we+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;Oe>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.de,n.ge)}}function qe(e,t,n,r,s){const i=this;i.ie=e,i.ye=t,i.me=n,i.ce=r,i.be=s}Fe.ke=[0,1,2,3,4,5,6,7].concat(...je([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),Fe.ve=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],Fe.Se=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],Fe.ze=e=>256>e?Le[e]:Le[256+(e>>>7)],Fe.Ce=[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],Fe.xe=[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],Fe.Ae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Fe._e=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Ge=je([[144,8],[112,9],[24,7],[8,8]]);qe.Ie=He([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Ge[t]])));const Je=je([[30,5]]);function Qe(e,t,n,r,s){const i=this;i.Pe=e,i.De=t,i.Ve=n,i.Re=r,i.Be=s}qe.Ee=He([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,Je[t]]))),qe.Me=new qe(qe.Ie,Fe.Ce,257,286,Oe),qe.Ue=new qe(qe.Ee,Fe.xe,0,30,Oe),qe.Ke=new qe(null,Fe.Ae,0,19,7);const Xe=[new Qe(0,0,0,0,0),new Qe(4,4,8,4,1),new Qe(4,5,16,8,1),new Qe(4,6,32,32,1),new Qe(4,4,16,16,2),new Qe(8,16,32,32,2),new Qe(8,16,128,128,2),new Qe(8,32,128,256,2),new Qe(32,128,258,1024,2),new Qe(32,258,258,4096,2)],Ye=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Ze=113,$e=666,et=262;function tt(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function nt(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,A,_,I,P,D,V,R,B,E,M,U;const K=new Fe,N=new Fe,O=new Fe;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)U[2*t]=0;E[512]=1,e.we=e.he=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++i<o&&n==s||(c>i?U[2*n]+=i:0!==n?(n!=r&&U[2*n]++,U[32]++):i>10?U[36]++:U[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ne[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<<F&65535,Q(L),L=n>>>16-F,F+=r-16):(L|=e<<F&65535,F+=r)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,r,s=-1,i=e[1],o=0,c=7,f=4;for(0===i&&(c=138,f=3),n=0;t>=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,U)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,U),o--),Y(16,U),X(o-3,2)):o>10?(Y(18,U),X(o-11,7)):(Y(17,U),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Oe[W]=t,e.Te[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(Fe.ke[n]+256+1)]++,M[2*Fe.ze(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+Fe.xe[o]);if(s>>>=3,j<r.floor(W/2)&&s<r.floor(i/2))return!0}return W==T-1}function te(t,n){let r,s,i,o,c=0;if(0!==W)do{r=e.Oe[c],s=e.Te[c],c++,0===r?Y(s,t):(i=Fe.ke[s],Y(i+256+1,t),o=Fe.Ce[i],0!==o&&(s-=Fe.ve[i],X(s,o)),r--,i=Fe.ze(r),Y(i,n),o=Fe.xe[i],0!==o&&(r-=Fe.Se[i],X(r,o)))}while(W>c);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ne.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;D>0?(K.re(e),N.re(e),o=(()=>{let t;for(G(E,K.de),G(M,N.de),O.re(e),t=18;t>=3&&0===U[2*Fe._e[t]+1];t--);return e.we+=14+3*(t+1),t})(),s=e.we+3+7>>>3,i=e.he+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(qe.Ie,qe.Ee)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(U[2*Fe._e[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.de+1,N.de+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.We()}function ie(){let e,n,r,s;do{if(s=w-A-C,0===s&&0===C&&0===A)s=f;else if(-1==s)s--;else if(C>=f+f-et){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.je)return;e=t.He(u,C+A,s),A+=e,3>A||(p=255&u[C],p=(p<<g^255&u[C+1])&b)}while(et>A&&0!==t.je)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-et?C-(f-et):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>_||(r>>=2),c>A&&(c=A);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>A?A:i}e.ue=[],e.ge=[],e.le=[],E=[],M=[],U=[],e.pe=(t,n)=>{const r=e.le,s=r[n];let i=n<<1;for(;i<=e.fe&&(i<e.fe&&tt(t,r[i+1],r[i],e.ue)&&i++,!tt(t,s,r[i],e.ue));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.Le=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Fe=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?We:(t.qe=e,a=x,f=1<<a,l=f-1,m=j+7,y=1<<m,b=y-1,g=r.floor((m+3-1)/3),u=new i(2*f),h=[],d=[],T=1<<j+6,e.Ne=new i(4*T),s=4*T,e.Oe=new o(T),e.Te=new i(T),D=S,V=G,(t=>(t.Ge=t.Je=0,t.Fe=null,e.pending=0,e.Qe=0,n=Ze,c=0,K.se=E,K.oe=qe.Me,N.se=M,N.oe=qe.Ue,O.se=U,O.oe=qe.Ke,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;P=Xe[D].De,R=Xe[D].Pe,B=Xe[D].Ve,I=Xe[D].Re,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Xe=()=>42!=n&&n!=Ze&&n!=$e?We:(e.Te=null,e.Oe=null,e.Ne=null,d=null,h=null,u=null,e.qe=null,n==Ze?-3:0),e.Ye=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?We:(Xe[D].Be!=Xe[t].Be&&0!==e.Ge&&(r=e.Ze(1)),D!=t&&(D=t,P=Xe[D].De,R=Xe[D].Pe,B=Xe[D].Ve,I=Xe[D].Re),V=n,r)},e.$e=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return We;if(3>i)return 0;for(i>f-et&&(i=f-et,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<<g^255&u[1])&b,s=0;i-3>=s;s++)p=(p<<g^255&u[s+2])&b,h[s&l]=d[p],d[p]=s;return 0},e.Ze=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return We;if(!r.et||!r.tt&&0!==r.je||n==$e&&4!=i)return r.Fe=Ye[4],We;if(0===r.nt)return r.Fe=Ye[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(D-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=Ze,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.We(),0===t.nt)return c=-1,0}else if(0===t.je&&I>=i&&4!=i)return t.Fe=Ye[7],-5;if(n==$e&&0!==t.je)return r.Fe=Ye[7],-5;if(0!==t.je||0!==A||0!=i&&n!=$e){switch(R=-1,Xe[D].Be){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ie(),0===A&&0==e)return 0;if(0===A)break}if(C+=A,A=0,n=k+r,(0===C||C>=n)&&(A=C-n,C=n,se(!1),0===t.nt))return 0;if(C-k>=f-et&&(se(!1),0===t.nt))return 0}return se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(et>A){if(ie(),et>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C),0===r||(C-r&65535)>f-et||2!=V&&(v=oe(r)),3>v)n=ee(0,255&u[C]),A--,C++;else if(n=ee(C-x,v-3),A-=v,v>P||3>A)C+=v,v=0,p=255&u[C],p=(p<<g^255&u[C+1])&b;else{v--;do{C++,p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C}while(0!=--v);C++}if(n&&(se(!1),0===t.nt))return 0}return se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i);break;case 2:R=(e=>{let n,r,s=0;for(;;){if(et>A){if(ie(),et>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C),_=v,S=x,v=2,0!==s&&P>_&&f-et>=(C-s&65535)&&(2!=V&&(v=oe(s)),5>=v&&(1==V||3==v&&C-x>4096)&&(v=2)),3>_||v>_)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,A--,0===t.nt)return 0}else z=1,C++,A--;else{r=C+A-3,n=ee(C-1-S,_-3),A-=_-1,_-=2;do{++C>r||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C)}while(0!=--_);if(z=0,v=2,C++,n&&(se(!1),0===t.nt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=$e),0==R||2==R)return 0===t.nt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,qe.Ie),$(),9>1+H+10-F&&(X(2,3),Y(256,qe.Ie),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.We(),0===t.nt)return c=-1,0}}return 4!=i?0:1}}function rt(){const e=this;e.rt=0,e.st=0,e.je=0,e.Ge=0,e.nt=0,e.Je=0}function st(e){const t=new rt,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.Le(f),t.et=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,o=t.Ze(0),0!=o)throw new s("deflating: "+t.Fe);t.st&&(t.st==n?w.push(new i(c)):w.push(c.subarray(0,t.st))),u+=t.st,r&&t.rt>0&&t.rt!=a&&(r(t.rt),a=t.rt)}while(t.je>0||0===t.nt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.st=0,t.nt=n,e=t.Ze(4),1!=e&&0!=e)throw new s("deflating: "+t.Fe);n-t.nt>0&&a.push(c.slice(0,t.st)),f+=t.st}while(t.je>0||0===t.nt);return t.Xe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}rt.prototype={Le(e,t){const n=this;return n.qe=new nt,t||(t=Oe),n.qe.Le(n,e,t)},Ze(e){const t=this;return t.qe?t.qe.Ze(t,e):We},Xe(){const e=this;if(!e.qe)return We;const t=e.qe.Xe();return e.qe=null,t},Ye(e,t){const n=this;return n.qe?n.qe.Ye(n,e,t):We},$e(e,t){const n=this;return n.qe?n.qe.$e(n,e,t):We},He(e,t,n){const r=this;let s=r.je;return s>n&&(s=n),0===s?0:(r.je-=s,e.set(r.tt.subarray(r.rt,r.rt+s),t),r.rt+=s,r.Ge+=s,s)},We(){const e=this;let t=e.qe.pending;t>e.nt&&(t=e.nt),0!==t&&(e.et.set(e.qe.Ne.subarray(e.qe.Qe,e.qe.Qe+t),e.st),e.st+=t,e.qe.Qe+=t,e.Je+=t,e.nt-=t,e.qe.pending-=t,0===e.qe.pending&&(e.qe.Qe=0))}};const it=0,ot=1,ct=-2,ft=-3,at=-4,lt=-5,ut=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],wt=1440,ht=[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],dt=[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],pt=[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],yt=[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],mt=[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],bt=[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],gt=15;function kt(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,A,_,I,P;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,it;for(S=u[0],k=1;gt>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=gt;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<<k;g>k;k++,I<<=1)if(0>(I-=n[k]))return ft;if(0>(I-=n[g]))return ft;for(n[g]+=I,i[1]=k=0,C=1,_=2;0!=--g;)i[_]=k+=n[C],_++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g<o);for(o=i[m],i[0]=g=0,C=0,b=-1,A=-S,s[0]=0,x=0,P=0;m>=v;v++)for(p=n[v];0!=p--;){for(;v>A+S;){if(b++,A+=S,P=m-A,P=P>S?S:P,(y=1<<(k=v-A))>p+1&&(y-=p+1,_=v,P>k))for(;++k<P&&(y<<=1)>n[++_];)y-=n[_];if(P=1<<k,h[0]+P>wt)return ft;s[b]=x=h[0],h[0]+=P,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>A-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-A,o>C?d[C]<c?(r[0]=256>d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<<v-A,k=g>>>A;P>k;k+=y)w.set(r,3*(x+k));for(k=1<<v-1;g&k;k>>>=1)g^=k;for(g^=k,z=(1<<A)-1;(g&z)!=i[b];)b--,A-=S,z=(1<<A)-1}return 0!==I&&1!=m?lt:it}function c(o){let c;for(e||(e=[],t=[],n=new f(gt+1),r=[],s=new f(gt),i=new f(gt+1)),t.length<o&&(t=[]),c=0;o>c;c++)t[c]=0;for(c=0;gt+1>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,gt),0),i.set(n.subarray(0,gt+1),0)}this.it=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==ft?f.Fe="oversubscribed dynamic bit lengths tree":a!=lt&&0!==r[0]||(f.Fe="incomplete dynamic bit lengths tree",a=ft),a},this.ot=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,pt,yt,a,i,u,e,t),h!=it||0===i[0]?(h==ft?w.Fe="oversubscribed literal/length tree":h!=at&&(w.Fe="incomplete literal/length tree",h=ft),h):(c(288),h=o(s,n,r,0,mt,bt,l,f,u,e,t),h!=it||0===f[0]&&n>257?(h==ft?w.Fe="oversubscribed distance tree":h==lt?(w.Fe="incomplete distance tree",h=ft):h!=at&&(w.Fe="empty distance tree with lengths",h=ft),h):it)}}kt.ct=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ht,r[0]=dt,it);const vt=0,St=1,zt=2,Ct=3,xt=4,At=5,_t=6,It=7,Pt=8,Dt=9;function Vt(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.rt,p=c.je,w=o.ft,h=o.lt,y=o.write,m=y<o.read?o.read-y-1:o.end-y,b=ut[e],g=ut[t];do{for(;20>h;)p--,w|=(255&c.ut(d++))<<h,h+=8;if(f=w&b,a=n,l=r,z=3*(l+f),0!==(u=a[z]))for(;;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15,k=a[z+2]+(w&ut[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.ut(d++))<<h,h+=8;for(f=w&g,a=s,l=i,z=3*(l+f),u=a[z];;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15;u>h;)p--,w|=(255&c.ut(d++))<<h,h+=8;if(v=a[z+2]+(w&ut[u]),w>>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.wt[y++]=o.wt[S++]}while(0!=--u);else o.wt.set(o.wt.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.wt[y++]=o.wt[S++],o.wt[y++]=o.wt[S++],k-=2):(o.wt.set(o.wt.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.wt[y++]=o.wt[S++]}while(0!=--k);else o.wt.set(o.wt.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Fe="invalid distance code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,ft;f+=a[z+2],f+=w&ut[u],z=3*(l+f),u=a[z]}break}if(64&u)return 32&u?(k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,ot):(c.Fe="invalid literal/length code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,ft);if(f+=a[z+2],f+=w&ut[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.wt[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.wt[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,it}e.init=(e,i,o,c,f,a)=>{t=vt,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.ht=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.rt,v=y.je,x=e.ft,A=e.lt,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case vt:if(z>=258&&v>=10&&(e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.rt,v=y.je,x=e.ft,A=e.lt,S=e.write,z=S<e.read?e.read-S-1:e.end-S,m!=it)){t=m==ot?It:Dt;break}c=u,n=r,o=h,t=St;case St:for(b=c;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<<A,A+=8}if(g=3*(o+(x&ut[b])),x>>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=_t;break}if(16&k){a=15&k,i=n[g+2],t=zt;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=It;break}return t=Dt,y.Fe="invalid literal/length code",m=ft,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);case zt:for(b=a;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<<A,A+=8}i+=x&ut[b],x>>=b,A-=b,c=w,n=s,o=d,t=Ct;case Ct:for(b=c;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<<A,A+=8}if(g=3*(o+(x&ut[b])),x>>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=xt;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=Dt,y.Fe="invalid distance code",m=ft,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);case xt:for(b=a;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<<A,A+=8}l+=x&ut[b],x>>=b,A-=b,t=At;case At:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.dt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);e.wt[S++]=e.wt[C++],z--,C==e.end&&(C=0),i--}t=vt;break;case _t:if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.dt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,e.wt[S++]=f,z--,t=vt;break;case It:if(A>7&&(A-=8,v++,_--),e.write=S,m=e.dt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);t=Pt;case Pt:return m=ot,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);case Dt:return m=ft,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);default:return m=ct,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m)}},e.yt=()=>{}}const Rt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Bt=0,Et=1,Mt=2,Ut=3,Kt=4,Nt=5,Ot=6,Tt=7,Wt=8,jt=9;function Ht(e,t){const n=this;let r,s=Bt,o=0,c=0,a=0;const l=[0],u=[0],w=new Vt;let h=0,d=new f(3*wt);const p=new kt;n.lt=0,n.ft=0,n.wt=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),s==Ot&&w.yt(e),s=Bt,n.lt=0,n.ft=0,n.read=n.write=0},n.reset(e,null),n.dt=(e,t)=>{let r,s,i;return s=e.st,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.nt&&(r=e.nt),0!==r&&t==lt&&(t=it),e.nt-=r,e.Je+=r,e.et.set(n.wt.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.nt&&(r=e.nt),0!==r&&t==lt&&(t=it),e.nt-=r,e.Je+=r,e.et.set(n.wt.subarray(i,i+r),s),s+=r,i+=r),e.st=s,n.read=i,t},n.ht=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.rt,b=e.je,f=n.ft,y=n.lt,g=n.write,k=g<n.read?n.read-g-1:n.end-g;;){let S,z,C,x,A,_,I,P;switch(s){case Bt:for(;3>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<<y,y+=8}switch(i=7&f,h=1&i,i>>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=Et;break;case 1:S=[],z=[],C=[[]],x=[[]],kt.ct(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=Ot;break;case 2:f>>>=3,y-=3,s=Ut;break;case 3:return f>>>=3,y-=3,s=jt,e.Fe="invalid block type",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t)}break;case Et:for(;32>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=jt,e.Fe="invalid stored block lengths",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);o=65535&f,f=y=0,s=0!==o?Mt:0!==h?Tt:Bt;break;case Mt:if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k&&(n.write=g,t=n.dt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k)))return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);if(t=it,i=o,i>b&&(i=b),i>k&&(i=k),n.wt.set(e.He(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?Tt:Bt;break;case Ut:for(;14>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=jt,e.Fe="too many length or distance symbols",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.length<i)r=[];else for(v=0;i>v;v++)r[v]=0;f>>>=14,y-=14,a=0,s=Kt;case Kt:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<<y,y+=8}r[Rt[a++]]=7&f,f>>>=3,y-=3}for(;19>a;)r[Rt[a++]]=0;if(l[0]=7,i=p.it(r,l,u,d,e),i!=it)return(t=i)==ft&&(r=null,s=jt),n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);a=0,s=Nt;case Nt:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<<y,y+=8}if(i=d[3*(u[0]+(f&ut[i]))+1],w=d[3*(u[0]+(f&ut[i]))+2],16>w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<<y,y+=8}if(f>>>=i,y-=i,o+=f&ut[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=jt,e.Fe="invalid bit length repeat",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,A=[],_=[],I=[],P=[],A[0]=9,_[0]=6,i=c,i=p.ot(257+(31&i),1+(i>>5&31),r,A,_,I,P,d,e),i!=it)return i==ft&&(r=null,s=jt),t=i,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=Ot;case Ot:if(n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,(t=w.ht(n,e,t))!=ot)return n.dt(e,t);if(t=it,w.yt(e),m=e.rt,b=e.je,f=n.ft,y=n.lt,g=n.write,k=g<n.read?n.read-g-1:n.end-g,0===h){s=Bt;break}s=Tt;case Tt:if(n.write=g,t=n.dt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);s=Wt;case Wt:return t=ot,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);case jt:return t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);default:return t=ct,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t)}}},n.yt=e=>{n.reset(e,null),n.wt=null,d=null},n.bt=(e,t,r)=>{n.wt.set(e.subarray(t,t+r),0),n.read=n.write=r},n.gt=()=>s==Et?1:0}const Lt=13,Ft=[0,0,255,255];function qt(){const e=this;function t(e){return e&&e.kt?(e.Ge=e.Je=0,e.Fe=null,e.kt.mode=7,e.kt.vt.reset(e,null),it):ct}e.mode=0,e.method=0,e.St=[0],e.zt=0,e.marker=0,e.Ct=0,e.xt=t=>(e.vt&&e.vt.yt(t),e.vt=null,it),e.At=(n,r)=>(n.Fe=null,e.vt=null,8>r||r>15?(e.xt(n),ct):(e.Ct=r,n.kt.vt=new Ht(n,1<<r),t(n),it)),e._t=(e,t)=>{let n,r;if(!e||!e.kt||!e.tt)return ct;const s=e.kt;for(t=4==t?lt:it,n=lt;;)switch(s.mode){case 0:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,8!=(15&(s.method=e.ut(e.rt++)))){s.mode=Lt,e.Fe="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.Ct){s.mode=Lt,e.Fe="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,r=255&e.ut(e.rt++),((s.method<<8)+r)%31!=0){s.mode=Lt,e.Fe="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt=(255&e.ut(e.rt++))<<24&4278190080,s.mode=3;case 3:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.ut(e.rt++))<<16&16711680,s.mode=4;case 4:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.ut(e.rt++))<<8&65280,s.mode=5;case 5:return 0===e.je?n:(n=t,e.je--,e.Ge++,s.zt+=255&e.ut(e.rt++),s.mode=6,2);case 6:return s.mode=Lt,e.Fe="need dictionary",s.marker=0,ct;case 7:if(n=s.vt.ht(e,n),n==ft){s.mode=Lt,s.marker=0;break}if(n==it&&(n=t),n!=ot)return n;n=t,s.vt.reset(e,s.St),s.mode=12;case 12:return e.je=0,ot;case Lt:return ft;default:return ct}},e.It=(e,t,n)=>{let r=0,s=n;if(!e||!e.kt||6!=e.kt.mode)return ct;const i=e.kt;return s<1<<i.Ct||(s=(1<<i.Ct)-1,r=n-s),i.vt.bt(t,r,s),i.mode=7,it},e.Pt=e=>{let n,r,s,i,o;if(!e||!e.kt)return ct;const c=e.kt;if(c.mode!=Lt&&(c.mode=Lt,c.marker=0),0===(n=e.je))return lt;for(r=e.rt,s=c.marker;0!==n&&4>s;)e.ut(r)==Ft[s]?s++:s=0!==e.ut(r)?0:4-s,r++,n--;return e.Ge+=r-e.rt,e.rt=r,e.je=n,c.marker=s,4!=s?ft:(i=e.Ge,o=e.Je,t(e),e.Ge=i,e.Je=o,c.mode=7,it)},e.Dt=e=>e&&e.kt&&e.kt.vt?e.kt.vt.gt():ct}function Gt(){}function Jt(e){const t=new Gt,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.At(),t.et=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,0!==t.je||c||(t.rt=0,c=!0),a=t._t(0),c&&a===lt){if(0!==t.je)throw new s("inflating: bad input")}else if(a!==it&&a!==ot)throw new s("inflating: "+t.Fe);if((c||a===ot)&&t.je===e.length)throw new s("inflating: bad input");t.st&&(t.st===n?f.push(new i(o)):f.push(o.subarray(0,t.st))),h+=t.st,r&&t.rt>0&&t.rt!=u&&(r(t.rt),u=t.rt)}while(t.je>0||0===t.nt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.xt()}}Gt.prototype={At(e){const t=this;return t.kt=new qt,e||(e=15),t.kt.At(t,e)},_t(e){const t=this;return t.kt?t.kt._t(t,e):ct},xt(){const e=this;if(!e.kt)return ct;const t=e.kt.xt(e);return e.kt=null,t},Pt(){const e=this;return e.kt?e.kt.Pt(e):ct},It(e,t){const n=this;return n.kt?n.kt.It(n,e,t):ct},ut(e){return this.tt[e]},He(e,t){return this.tt.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=st,self.Inflate=Jt};\n',r=()=>t.useDataURI?"data:text/javascript,"+encodeURIComponent(n):URL.createObjectURL(new Blob([n],{type:"text/javascript"}));Ee({workerScripts:{inflate:[r],deflate:[r]}})})(),Ee({Deflate:function(e){const t=new x,n=(r=e&&e.chunkSize?e.chunkSize:65536)+5*(Math.floor(r/16383)+1);var r;const i=new Uint8Array(n);let s=e?e.level:-1;void 0===s&&(s=-1),t.deflateInit(s),t.next_out=i,this.append=(e,r)=>{let s,a,o=0,c=0,l=0;const d=[];if(e.length){t.next_in_index=0,t.next_in=e,t.avail_in=e.length;do{if(t.next_out_index=0,t.avail_out=n,s=t.deflate(0),0!=s)throw Error("deflating: "+t.msg);t.next_out_index&&(t.next_out_index==n?d.push(new Uint8Array(i)):d.push(i.subarray(0,t.next_out_index))),l+=t.next_out_index,r&&t.next_in_index>0&&t.next_in_index!=o&&(r(t.next_in_index),o=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return d.length>1?(a=new Uint8Array(l),d.forEach((e=>{a.set(e,c),c+=e.length}))):a=d[0]?new Uint8Array(d[0]):new Uint8Array,a}},this.flush=()=>{let e,r,s=0,a=0;const o=[];do{if(t.next_out_index=0,t.avail_out=n,e=t.deflate(4),1!=e&&0!=e)throw Error("deflating: "+t.msg);n-t.avail_out>0&&o.push(i.slice(0,t.next_out_index)),a+=t.next_out_index}while(t.avail_in>0||0===t.avail_out);return t.deflateEnd(),r=new Uint8Array(a),o.forEach((e=>{r.set(e,s),s+=e.length})),r}},Inflate:function(e){const t=new oe,n=e&&e.chunkSize?Math.floor(2*e.chunkSize):131072,r=new Uint8Array(n);let i=!1;t.inflateInit(),t.next_out=r,this.append=(e,s)=>{const a=[];let o,c,l=0,d=0,f=0;if(0!==e.length){t.next_in_index=0,t.next_in=e,t.avail_in=e.length;do{if(t.next_out_index=0,t.avail_out=n,0!==t.avail_in||i||(t.next_in_index=0,i=!0),o=t.inflate(0),i&&o===z){if(0!==t.avail_in)throw Error("inflating: bad input")}else if(o!==b&&o!==v)throw Error("inflating: "+t.msg);if((i||o===v)&&t.avail_in===e.length)throw Error("inflating: bad input");t.next_out_index&&(t.next_out_index===n?a.push(new Uint8Array(r)):a.push(r.subarray(0,t.next_out_index))),f+=t.next_out_index,s&&t.next_in_index>0&&t.next_in_index!=l&&(s(t.next_in_index),l=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return a.length>1?(c=new Uint8Array(f),a.forEach((e=>{c.set(e,d),d+=e.length}))):c=a[0]?new Uint8Array(a[0]):new Uint8Array,c}},this.flush=()=>{t.inflateEnd()}}});export{Sn as BlobReader,An as BlobWriter,kn as Data64URIReader,zn as Data64URIWriter,Sr as ERR_BAD_FORMAT,Dr as ERR_CENTRAL_DIRECTORY_NOT_FOUND,$r as ERR_DUPLICATED_NAME,Ur as ERR_ENCRYPTED,jr as ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,Ar as ERR_EOCDR_NOT_FOUND,Fr as ERR_EXTRAFIELD_ZIP64_NOT_FOUND,fn as ERR_HTTP_RANGE,ei as ERR_INVALID_COMMENT,ii as ERR_INVALID_ENCRYPTION_STRENGTH,ti as ERR_INVALID_ENTRY_COMMENT,ni as ERR_INVALID_ENTRY_NAME,ai as ERR_INVALID_EXTRAFIELD_DATA,si as ERR_INVALID_EXTRAFIELD_TYPE,Ze as ERR_INVALID_PASSWORD,Ke as ERR_INVALID_SIGNATURE,ri as ERR_INVALID_VERSION,un as ERR_ITERATOR_COMPLETED_TOO_SOON,Cr as ERR_LOCAL_FILE_HEADER_NOT_FOUND,qr as ERR_SPLIT_ZIP_FILE,ci as ERR_UNDEFINED_UNCOMPRESSED_SIZE,Tr as ERR_UNSUPPORTED_COMPRESSION,Er as ERR_UNSUPPORTED_ENCRYPTION,oi as ERR_UNSUPPORTED_FORMAT,Nn as HttpRangeReader,Ln as HttpReader,yn as Reader,Vn as SplitDataReader,Zn as SplitDataWriter,Jn as SplitZipReader,$n as SplitZipWriter,jn as TextReader,Dn as TextWriter,Gn as Uint8ArrayReader,Hn as Uint8ArrayWriter,_n as Writer,Mr as ZipReader,Pr as ZipReaderStream,ui as ZipWriter,pi as ZipWriterStream,Ee as configure,Di as fs,Oe as getMimeType,cn as initShimAsyncCodec,on as terminateWorkers};