@zip.js/zip.js 2.5.2 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/z-worker-fflate.js +1 -1
- package/dist/z-worker-pako.js +1 -1
- package/dist/z-worker.js +1 -1
- package/dist/zip-fs-full.js +460 -482
- package/dist/zip-fs-full.min.js +1 -1
- package/dist/zip-fs.js +460 -482
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-full.js +460 -482
- package/dist/zip-full.min.js +1 -1
- package/dist/zip-no-worker-deflate.min.js +1 -1
- package/dist/zip-no-worker-inflate.min.js +1 -1
- package/dist/zip-no-worker.min.js +1 -1
- package/dist/zip.js +460 -482
- package/dist/zip.min.js +1 -1
- package/index-fflate.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +3 -3
- package/lib/core/codec-interface.js +89 -0
- package/lib/core/{codecs/codec-pool-worker.js → codec-pool-worker.js} +55 -29
- package/lib/core/{codecs/codec-pool.js → codec-pool.js} +28 -9
- package/lib/core/configuration.js +10 -1
- package/lib/core/io.js +102 -100
- package/lib/core/{codecs → streams}/aes-crypto-stream.js +68 -54
- package/lib/core/{codecs → streams}/codec-stream.js +3 -6
- package/lib/core/{codecs → streams/codecs}/crc32.js +0 -0
- package/lib/core/{codecs → streams/codecs}/deflate.js +0 -0
- package/lib/core/{codecs → streams/codecs}/inflate.js +0 -0
- package/lib/core/{codecs → streams/codecs}/sjcl.js +0 -0
- package/lib/core/{codecs → streams}/crc32-stream.js +3 -4
- package/lib/core/{codecs → streams}/zip-crypto-stream.js +28 -32
- package/lib/core/streams/zip-entry-stream.js +178 -0
- package/lib/core/z-worker-core.js +30 -15
- package/lib/core/zip-fs-core.js +1 -1
- package/lib/core/zip-reader.js +21 -12
- package/lib/core/zip-writer.js +33 -22
- package/lib/z-worker-fflate.js +4 -1
- package/lib/z-worker-inline.js +1 -1
- package/lib/z-worker.js +2 -2
- package/lib/zip-fflate-shim.js +4 -1
- package/lib/zip-fs.js +6 -2
- package/lib/zip-full-fflate.js +6 -3
- package/lib/zip-full.js +8 -5
- package/lib/zip-no-worker-deflate.js +7 -3
- package/lib/zip-no-worker-fflate-deflate.js +6 -2
- package/lib/zip-no-worker-fflate-inflate.js +6 -3
- package/lib/zip-no-worker-fflate.js +6 -3
- package/lib/zip-no-worker-inflate.js +7 -4
- package/lib/zip-no-worker.js +8 -5
- package/lib/zip.js +6 -3
- package/package.json +2 -8
- package/tests/all/test-safe-closing.js +1 -1
- package/tests/node/package.json +2 -6
- package/tests/node/test-node.js +7 -11
- package/lib/core/codecs/codec.js +0 -230
- package/lib/core/engine.js +0 -89
package/dist/zip-full.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).zip={})})(this,(function(e){"use strict";const{Array:t,Object:n,String:r,BigInt:i,Math:s,Date:a,Map:o,URL:l,Error:c,Uint8Array:d,Uint16Array:f,Uint32Array:u,DataView:h,Blob:p,Promise:w,TextEncoder:_,TextDecoder:g,FileReader:m,document:b,crypto:y,btoa:k,TransformStream:v,ReadableStream:x,WritableStream:S,CompressionStream:z,DecompressionStream:C}=globalThis,R=(()=>{const e=-2;function n(e){return r(e.map((([e,n])=>new t(e).fill(n,0,e))))}function r(e){return e.reduce(((e,n)=>e.concat(t.isArray(n)?r(n):n)),[])}const i=[0,1,2,3].concat(...n([[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 e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.build_tree=n=>{const r=e.dyn_tree,i=e.stat_desc.static_tree,a=e.stat_desc.elems;let o,l,c,d=-1;for(n.heap_len=0,n.heap_max=573,o=0;a>o;o++)0!==r[2*o]?(n.heap[++n.heap_len]=d=o,n.depth[o]=0):r[2*o+1]=0;for(;2>n.heap_len;)c=n.heap[++n.heap_len]=2>d?++d:0,r[2*c]=1,n.depth[c]=0,n.opt_len--,i&&(n.static_len-=i[2*c+1]);for(e.max_code=d,o=s.floor(n.heap_len/2);o>=1;o--)n.pqdownheap(r,o);c=a;do{o=n.heap[1],n.heap[1]=n.heap[n.heap_len--],n.pqdownheap(r,1),l=n.heap[1],n.heap[--n.heap_max]=o,n.heap[--n.heap_max]=l,r[2*c]=r[2*o]+r[2*l],n.depth[c]=s.max(n.depth[o],n.depth[l])+1,r[2*o+1]=r[2*l+1]=c,n.heap[1]=c++,n.pqdownheap(r,1)}while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],(t=>{const n=e.dyn_tree,r=e.stat_desc.static_tree,i=e.stat_desc.extra_bits,s=e.stat_desc.extra_base,a=e.stat_desc.max_length;let o,l,c,d,f,u,h=0;for(d=0;15>=d;d++)t.bl_count[d]=0;for(n[2*t.heap[t.heap_max]+1]=0,o=t.heap_max+1;573>o;o++)l=t.heap[o],d=n[2*n[2*l+1]+1]+1,d>a&&(d=a,h++),n[2*l+1]=d,l>e.max_code||(t.bl_count[d]++,f=0,s>l||(f=i[l-s]),u=n[2*l],t.opt_len+=u*(d+f),r&&(t.static_len+=u*(r[2*l+1]+f)));if(0!==h){do{for(d=a-1;0===t.bl_count[d];)d--;t.bl_count[d]--,t.bl_count[d+1]+=2,t.bl_count[a]--,h-=2}while(h>0);for(d=a;0!==d;d--)for(l=t.bl_count[d];0!==l;)c=t.heap[--o],c>e.max_code||(n[2*c+1]!=d&&(t.opt_len+=(d-n[2*c+1])*n[2*c],n[2*c+1]=d),l--)}})(n),((e,n,r)=>{const i=[];let s,a,o,l=0;for(s=1;15>=s;s++)i[s]=l=l+r[s-1]<<1;for(a=0;n>=a;a++)o=e[2*a+1],0!==o&&(e[2*a]=t(i[o]++,o))})(r,e.max_code,n.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(...n([[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?i[e]:i[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 l=n([[144,8],[112,9],[24,7],[8,8]]);o.static_ltree=r([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,l[t]])));const u=n([[30,5]]);function h(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=r([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,u[t]]))),o.static_l_desc=new o(o.static_ltree,a.extra_lbits,257,286,15),o.static_d_desc=new o(o.static_dtree,a.extra_dbits,0,30,15),o.static_bl_desc=new o(null,a.extra_blbits,0,19,7);const p=[new h(0,0,0,0,0),new h(4,4,8,4,1),new h(4,5,16,8,1),new h(4,6,32,32,1),new h(4,4,16,16,2),new h(8,16,32,32,2),new h(8,16,128,128,2),new h(8,32,128,256,2),new h(32,128,258,1024,2),new h(32,258,258,4096,2)],w=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],_=113,g=666,m=262;function b(e,t,n,r){const i=e[2*t],s=e[2*n];return s>i||i==s&&r[t]<=r[n]}function y(){const t=this;let n,r,i,l,c,u,h,y,k,v,x,S,z,C,R,E,A,D,I,T,F,V,U,P,B,M,W,L,H,q,N,O,Z;const K=new a,j=new a,X=new a;let G,$,Y,J,Q,ee;function te(){let e;for(e=0;286>e;e++)N[2*e]=0;for(e=0;30>e;e++)O[2*e]=0;for(e=0;19>e;e++)Z[2*e]=0;N[512]=1,t.opt_len=t.static_len=0,$=Y=0}function ne(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 l=0;t>=l;l++)n=i,i=e[2*(l+1)+1],++s<a&&n==i||(o>s?Z[2*n]+=s:0!==n?(n!=r&&Z[2*n]++,Z[32]++):s>10?Z[36]++:Z[34]++,s=0,r=n,0===i?(a=138,o=3):n==i?(a=6,o=3):(a=7,o=4))}function re(e){t.pending_buf[t.pending++]=e}function ie(e){re(255&e),re(e>>>8&255)}function se(e,t){let n;const r=t;ee>16-r?(n=e,Q|=n<<ee&65535,ie(Q),Q=n>>>16-ee,ee+=r-16):(Q|=e<<ee&65535,ee+=r)}function ae(e,t){const n=2*e;se(65535&t[n],65535&t[n+1])}function oe(e,t){let n,r,i=-1,s=e[1],a=0,o=7,l=4;for(0===s&&(o=138,l=3),n=0;t>=n;n++)if(r=s,s=e[2*(n+1)+1],++a>=o||r!=s){if(l>a)do{ae(r,Z)}while(0!=--a);else 0!==r?(r!=i&&(ae(r,Z),a--),ae(16,Z),se(a-3,2)):a>10?(ae(18,Z),se(a-11,7)):(ae(17,Z),se(a-3,3));a=0,i=r,0===s?(o=138,l=3):r==s?(o=6,l=3):(o=7,l=4)}}function le(){16==ee?(ie(Q),Q=0,ee=0):8>ee||(re(255&Q),Q>>>=8,ee-=8)}function ce(e,n){let r,i,o;if(t.dist_buf[$]=e,t.lc_buf[$]=255&n,$++,0===e?N[2*n]++:(Y++,e--,N[2*(a._length_code[n]+256+1)]++,O[2*a.d_code(e)]++),0==(8191&$)&&W>2){for(r=8*$,i=F-A,o=0;30>o;o++)r+=O[2*o]*(5+a.extra_dbits[o]);if(r>>>=3,Y<s.floor($/2)&&r<s.floor(i/2))return!0}return $==G-1}function de(e,n){let r,i,s,o,l=0;if(0!==$)do{r=t.dist_buf[l],i=t.lc_buf[l],l++,0===r?ae(i,e):(s=a._length_code[i],ae(s+256+1,e),o=a.extra_lbits[s],0!==o&&(i-=a.base_length[s],se(i,o)),r--,s=a.d_code(r),ae(s,n),o=a.extra_dbits[s],0!==o&&(r-=a.base_dist[s],se(r,o)))}while($>l);ae(256,e),J=e[513]}function fe(){ee>8?ie(Q):ee>0&&re(255&Q),Q=0,ee=0}function ue(e,n,r){se(0+(r?1:0),3),((e,n)=>{fe(),J=8,ie(n),ie(~n),t.pending_buf.set(y.subarray(e,e+n),t.pending),t.pending+=n})(e,n)}function he(e){((e,n,r)=>{let i,s,l=0;W>0?(K.build_tree(t),j.build_tree(t),l=(()=>{let e;for(ne(N,K.max_code),ne(O,j.max_code),X.build_tree(t),e=18;e>=3&&0===Z[2*a.bl_order[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(),i=t.opt_len+3+7>>>3,s=t.static_len+3+7>>>3,s>i||(i=s)):i=s=n+5,n+4>i||-1==e?s==i?(se(2+(r?1:0),3),de(o.static_ltree,o.static_dtree)):(se(4+(r?1:0),3),((e,t,n)=>{let r;for(se(e-257,5),se(t-1,5),se(n-4,4),r=0;n>r;r++)se(Z[2*a.bl_order[r]+1],3);oe(N,e-1),oe(O,t-1)})(K.max_code+1,j.max_code+1,l+1),de(N,O)):ue(e,n,r),te(),r&&fe()})(0>A?-1:A,F-A,e),A=F,n.flush_pending()}function pe(){let e,t,r,i;do{if(i=k-U-F,0===i&&0===F&&0===U)i=c;else if(-1==i)i--;else if(F>=c+c-m){y.set(y.subarray(c,c+c),0),V-=c,F-=c,A-=c,e=z,r=e;do{t=65535&x[--r],x[r]=c>t?0:t-c}while(0!=--e);e=c,r=e;do{t=65535&v[--r],v[r]=c>t?0:t-c}while(0!=--e);i+=c}if(0===n.avail_in)return;e=n.read_buf(y,F+U,i),U+=e,3>U||(S=255&y[F],S=(S<<E^255&y[F+1])&R)}while(m>U&&0!==n.avail_in)}function we(e){let t,n,r=B,i=F,s=P;const a=F>c-m?F-(c-m):0;let o=q;const l=h,d=F+258;let f=y[i+s-1],u=y[i+s];H>P||(r>>=2),o>U&&(o=U);do{if(t=e,y[t+s]==u&&y[t+s-1]==f&&y[t]==y[i]&&y[++t]==y[i+1]){i+=2,t++;do{}while(y[++i]==y[++t]&&y[++i]==y[++t]&&y[++i]==y[++t]&&y[++i]==y[++t]&&y[++i]==y[++t]&&y[++i]==y[++t]&&y[++i]==y[++t]&&y[++i]==y[++t]&&d>i);if(n=258-(d-i),i=d-258,n>s){if(V=e,s=n,n>=o)break;f=y[i+s-1],u=y[i+s]}}}while((e=65535&v[e&l])>a&&0!=--r);return s>U?U:s}t.depth=[],t.bl_count=[],t.heap=[],N=[],O=[],Z=[],t.pqdownheap=(e,n)=>{const r=t.heap,i=r[n];let s=n<<1;for(;s<=t.heap_len&&(s<t.heap_len&&b(e,r[s+1],r[s],t.depth)&&s++,!b(e,i,r[s],t.depth));)r[n]=r[s],n=s,s<<=1;r[n]=i},t.deflateInit=(n,a,w,g,m,b)=>(g||(g=8),m||(m=8),b||(b=0),n.msg=null,-1==a&&(a=6),1>m||m>9||8!=g||9>w||w>15||0>a||a>9||0>b||b>2?e:(n.dstate=t,u=w,c=1<<u,h=c-1,C=m+7,z=1<<C,R=z-1,E=s.floor((C+3-1)/3),y=new d(2*c),v=[],x=[],G=1<<m+6,t.pending_buf=new d(4*G),i=4*G,t.dist_buf=new f(G),t.lc_buf=new d(G),W=a,L=b,(e=>(e.total_in=e.total_out=0,e.msg=null,t.pending=0,t.pending_out=0,r=_,l=0,K.dyn_tree=N,K.stat_desc=o.static_l_desc,j.dyn_tree=O,j.stat_desc=o.static_d_desc,X.dyn_tree=Z,X.stat_desc=o.static_bl_desc,Q=0,ee=0,J=8,te(),(()=>{k=2*c,x[z-1]=0;for(let e=0;z-1>e;e++)x[e]=0;M=p[W].max_lazy,H=p[W].good_length,q=p[W].nice_length,B=p[W].max_chain,F=0,A=0,U=0,D=P=2,T=0,S=0})(),0))(n))),t.deflateEnd=()=>42!=r&&r!=_&&r!=g?e:(t.lc_buf=null,t.dist_buf=null,t.pending_buf=null,x=null,v=null,y=null,t.dstate=null,r==_?-3:0),t.deflateParams=(t,n,r)=>{let i=0;return-1==n&&(n=6),0>n||n>9||0>r||r>2?e:(p[W].func!=p[n].func&&0!==t.total_in&&(i=t.deflate(1)),W!=n&&(W=n,M=p[W].max_lazy,H=p[W].good_length,q=p[W].nice_length,B=p[W].max_chain),L=r,i)},t.deflateSetDictionary=(t,n,i)=>{let s,a=i,o=0;if(!n||42!=r)return e;if(3>a)return 0;for(a>c-m&&(a=c-m,o=i-a),y.set(n.subarray(o,o+a),0),F=a,A=a,S=255&y[0],S=(S<<E^255&y[1])&R,s=0;a-3>=s;s++)S=(S<<E^255&y[s+2])&R,v[s&h]=x[S],x[S]=s;return 0},t.deflate=(s,a)=>{let d,f,b,k,C;if(a>4||0>a)return e;if(!s.next_out||!s.next_in&&0!==s.avail_in||r==g&&4!=a)return s.msg=w[4],e;if(0===s.avail_out)return s.msg=w[7],-5;var B;if(n=s,k=l,l=a,42==r&&(f=8+(u-8<<4)<<8,b=(W-1&255)>>1,b>3&&(b=3),f|=b<<6,0!==F&&(f|=32),f+=31-f%31,r=_,re((B=f)>>8&255),re(255&B)),0!==t.pending){if(n.flush_pending(),0===n.avail_out)return l=-1,0}else if(0===n.avail_in&&k>=a&&4!=a)return n.msg=w[7],-5;if(r==g&&0!==n.avail_in)return s.msg=w[7],-5;if(0!==n.avail_in||0!==U||0!=a&&r!=g){switch(C=-1,p[W].func){case 0:C=(e=>{let t,r=65535;for(r>i-5&&(r=i-5);;){if(1>=U){if(pe(),0===U&&0==e)return 0;if(0===U)break}if(F+=U,U=0,t=A+r,(0===F||F>=t)&&(U=F-t,F=t,he(!1),0===n.avail_out))return 0;if(F-A>=c-m&&(he(!1),0===n.avail_out))return 0}return he(4==e),0===n.avail_out?4==e?2:0:4==e?3:1})(a);break;case 1:C=(e=>{let t,r=0;for(;;){if(m>U){if(pe(),m>U&&0==e)return 0;if(0===U)break}if(3>U||(S=(S<<E^255&y[F+2])&R,r=65535&x[S],v[F&h]=x[S],x[S]=F),0===r||(F-r&65535)>c-m||2!=L&&(D=we(r)),3>D)t=ce(0,255&y[F]),U--,F++;else if(t=ce(F-V,D-3),U-=D,D>M||3>U)F+=D,D=0,S=255&y[F],S=(S<<E^255&y[F+1])&R;else{D--;do{F++,S=(S<<E^255&y[F+2])&R,r=65535&x[S],v[F&h]=x[S],x[S]=F}while(0!=--D);F++}if(t&&(he(!1),0===n.avail_out))return 0}return he(4==e),0===n.avail_out?4==e?2:0:4==e?3:1})(a);break;case 2:C=(e=>{let t,r,i=0;for(;;){if(m>U){if(pe(),m>U&&0==e)return 0;if(0===U)break}if(3>U||(S=(S<<E^255&y[F+2])&R,i=65535&x[S],v[F&h]=x[S],x[S]=F),P=D,I=V,D=2,0!==i&&M>P&&c-m>=(F-i&65535)&&(2!=L&&(D=we(i)),5>=D&&(1==L||3==D&&F-V>4096)&&(D=2)),3>P||D>P)if(0!==T){if(t=ce(0,255&y[F-1]),t&&he(!1),F++,U--,0===n.avail_out)return 0}else T=1,F++,U--;else{r=F+U-3,t=ce(F-1-I,P-3),U-=P-1,P-=2;do{++F>r||(S=(S<<E^255&y[F+2])&R,i=65535&x[S],v[F&h]=x[S],x[S]=F)}while(0!=--P);if(T=0,D=2,F++,t&&(he(!1),0===n.avail_out))return 0}}return 0!==T&&(t=ce(0,255&y[F-1]),T=0),he(4==e),0===n.avail_out?4==e?2:0:4==e?3:1})(a)}if(2!=C&&3!=C||(r=g),0==C||2==C)return 0===n.avail_out&&(l=-1),0;if(1==C){if(1==a)se(2,3),ae(256,o.static_ltree),le(),9>1+J+10-ee&&(se(2,3),ae(256,o.static_ltree),le()),J=7;else if(ue(0,0,!1),3==a)for(d=0;z>d;d++)x[d]=0;if(n.flush_pending(),0===n.avail_out)return l=-1,0}}return 4!=a?0:1}}function k(){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}return k.prototype={deflateInit:function(e,t){const n=this;return n.dstate=new y,t||(t=15),n.dstate.deflateInit(n,e,t)},deflate:function(t){const n=this;return n.dstate?n.dstate.deflate(n,t):e},deflateEnd:function(){const t=this;if(!t.dstate)return e;const n=t.dstate.deflateEnd();return t.dstate=null,n},deflateParams:function(t,n){const r=this;return r.dstate?r.dstate.deflateParams(r,t,n):e},deflateSetDictionary:function(t,n){const r=this;return r.dstate?r.dstate.deflateSetDictionary(r,t,n):e},read_buf:function(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:function(){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))}},function(e){const t=new k,n=(r=e&&e.chunkSize?e.chunkSize:65536)+5*(s.floor(r/16383)+1);var r;const i=new d(n);let a=e?e.level:-1;void 0===a&&(a=-1),t.deflateInit(a),t.next_out=i,this.append=(e,r)=>{let s,a,o=0,l=0,f=0;const u=[];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 new c("deflating: "+t.msg);t.next_out_index&&(t.next_out_index==n?u.push(new d(i)):u.push(i.slice(0,t.next_out_index))),f+=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 u.length>1?(a=new d(f),u.forEach((e=>{a.set(e,l),l+=e.length}))):a=u[0]||new d(0),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 new c("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 d(a),o.forEach((e=>{r.set(e,s),s+=e.length})),r}}})(),E=(()=>{const e=-2,t=-3,n=-5,r=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],i=[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],a=[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],o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],l=[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],f=[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],u=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function h(){let e,r,i,s,a,c;function d(e,r,o,l,d,f,u,h,p,w,_){let g,m,b,y,k,v,x,S,z,C,R,E,A,D,I;C=0,k=o;do{i[e[r+C]]++,C++,k--}while(0!==k);if(i[0]==o)return u[0]=-1,h[0]=0,0;for(S=h[0],v=1;15>=v&&0===i[v];v++);for(x=v,v>S&&(S=v),k=15;0!==k&&0===i[k];k--);for(b=k,S>k&&(S=k),h[0]=S,D=1<<v;k>v;v++,D<<=1)if(0>(D-=i[v]))return t;if(0>(D-=i[k]))return t;for(i[k]+=D,c[1]=v=0,C=1,A=2;0!=--k;)c[A]=v+=i[C],A++,C++;k=0,C=0;do{0!==(v=e[r+C])&&(_[c[v]++]=k),C++}while(++k<o);for(o=c[b],c[0]=k=0,C=0,y=-1,E=-S,a[0]=0,R=0,I=0;b>=x;x++)for(g=i[x];0!=g--;){for(;x>E+S;){if(y++,E+=S,I=b-E,I=I>S?S:I,(m=1<<(v=x-E))>g+1&&(m-=g+1,A=x,I>v))for(;++v<I&&(m<<=1)>i[++A];)m-=i[A];if(I=1<<v,w[0]+I>1440)return t;a[y]=R=w[0],w[0]+=I,0!==y?(c[y]=k,s[0]=v,s[1]=S,v=k>>>E-S,s[2]=R-a[y-1]-v,p.set(s,3*(a[y-1]+v))):u[0]=R}for(s[1]=x-E,o>C?_[C]<l?(s[0]=256>_[C]?0:96,s[2]=_[C++]):(s[0]=f[_[C]-l]+16+64,s[2]=d[_[C++]-l]):s[0]=192,m=1<<x-E,v=k>>>E;I>v;v+=m)p.set(s,3*(R+v));for(v=1<<x-1;0!=(k&v);v>>>=1)k^=v;for(k^=v,z=(1<<E)-1;(k&z)!=c[y];)y--,E-=S,z=(1<<E)-1}return 0!==D&&1!=b?n:0}function h(t){let n;for(e||(e=[],r=[],i=new Int32Array(16),s=[],a=new Int32Array(15),c=new Int32Array(16)),r.length<t&&(r=[]),n=0;t>n;n++)r[n]=0;for(n=0;16>n;n++)i[n]=0;for(n=0;3>n;n++)s[n]=0;a.set(i.subarray(0,15),0),c.set(i.subarray(0,16),0)}this.inflate_trees_bits=(i,s,a,o,l)=>{let c;return h(19),e[0]=0,c=d(i,0,19,19,null,null,a,s,o,e,r),c==t?l.msg="oversubscribed dynamic bit lengths tree":c!=n&&0!==s[0]||(l.msg="incomplete dynamic bit lengths tree",c=t),c},this.inflate_trees_dynamic=(i,s,a,c,p,w,_,g,m)=>{let b;return h(288),e[0]=0,b=d(a,0,i,257,o,l,w,c,g,e,r),0!=b||0===c[0]?(b==t?m.msg="oversubscribed literal/length tree":-4!=b&&(m.msg="incomplete literal/length tree",b=t),b):(h(288),b=d(a,i,s,0,f,u,_,p,g,e,r),0!=b||0===p[0]&&i>257?(b==t?m.msg="oversubscribed distance tree":b==n?(m.msg="incomplete distance tree",b=t):-4!=b&&(m.msg="empty distance tree with lengths",b=t),b):0)}}function p(){const n=this;let i,s,a,o,l=0,c=0,d=0,f=0,u=0,h=0,p=0,w=0,_=0,g=0;function m(e,n,i,s,a,o,l,c){let d,f,u,h,p,w,_,g,m,b,y,k,v,x,S,z;_=c.next_in_index,g=c.avail_in,p=l.bitb,w=l.bitk,m=l.write,b=m<l.read?l.read-m-1:l.end-m,y=r[e],k=r[n];do{for(;20>w;)g--,p|=(255&c.read_byte(_++))<<w,w+=8;if(d=p&y,f=i,u=s,z=3*(u+d),0!==(h=f[z]))for(;;){if(p>>=f[z+1],w-=f[z+1],0!=(16&h)){for(h&=15,v=f[z+2]+(p&r[h]),p>>=h,w-=h;15>w;)g--,p|=(255&c.read_byte(_++))<<w,w+=8;for(d=p&k,f=a,u=o,z=3*(u+d),h=f[z];;){if(p>>=f[z+1],w-=f[z+1],0!=(16&h)){for(h&=15;h>w;)g--,p|=(255&c.read_byte(_++))<<w,w+=8;if(x=f[z+2]+(p&r[h]),p>>=h,w-=h,b-=v,x>m){S=m-x;do{S+=l.end}while(0>S);if(h=l.end-S,v>h){if(v-=h,m-S>0&&h>m-S)do{l.win[m++]=l.win[S++]}while(0!=--h);else l.win.set(l.win.subarray(S,S+h),m),m+=h,S+=h,h=0;S=0}}else S=m-x,m-S>0&&2>m-S?(l.win[m++]=l.win[S++],l.win[m++]=l.win[S++],v-=2):(l.win.set(l.win.subarray(S,S+2),m),m+=2,S+=2,v-=2);if(m-S>0&&v>m-S)do{l.win[m++]=l.win[S++]}while(0!=--v);else l.win.set(l.win.subarray(S,S+v),m),m+=v,S+=v,v=0;break}if(0!=(64&h))return c.msg="invalid distance code",v=c.avail_in-g,v=v>w>>3?w>>3:v,g+=v,_-=v,w-=v<<3,l.bitb=p,l.bitk=w,c.avail_in=g,c.total_in+=_-c.next_in_index,c.next_in_index=_,l.write=m,t;d+=f[z+2],d+=p&r[h],z=3*(u+d),h=f[z]}break}if(0!=(64&h))return 0!=(32&h)?(v=c.avail_in-g,v=v>w>>3?w>>3:v,g+=v,_-=v,w-=v<<3,l.bitb=p,l.bitk=w,c.avail_in=g,c.total_in+=_-c.next_in_index,c.next_in_index=_,l.write=m,1):(c.msg="invalid literal/length code",v=c.avail_in-g,v=v>w>>3?w>>3:v,g+=v,_-=v,w-=v<<3,l.bitb=p,l.bitk=w,c.avail_in=g,c.total_in+=_-c.next_in_index,c.next_in_index=_,l.write=m,t);if(d+=f[z+2],d+=p&r[h],z=3*(u+d),0===(h=f[z])){p>>=f[z+1],w-=f[z+1],l.win[m++]=f[z+2],b--;break}}else p>>=f[z+1],w-=f[z+1],l.win[m++]=f[z+2],b--}while(b>=258&&g>=10);return v=c.avail_in-g,v=v>w>>3?w>>3:v,g+=v,_-=v,w-=v<<3,l.bitb=p,l.bitk=w,c.avail_in=g,c.total_in+=_-c.next_in_index,c.next_in_index=_,l.write=m,0}n.init=(e,t,n,r,l,c)=>{i=0,p=e,w=t,a=n,_=r,o=l,g=c,s=null},n.proc=(n,b,y)=>{let k,v,x,S,z,C,R,E=0,A=0,D=0;for(D=b.next_in_index,S=b.avail_in,E=n.bitb,A=n.bitk,z=n.write,C=z<n.read?n.read-z-1:n.end-z;;)switch(i){case 0:if(C>=258&&S>=10&&(n.bitb=E,n.bitk=A,b.avail_in=S,b.total_in+=D-b.next_in_index,b.next_in_index=D,n.write=z,y=m(p,w,a,_,o,g,n,b),D=b.next_in_index,S=b.avail_in,E=n.bitb,A=n.bitk,z=n.write,C=z<n.read?n.read-z-1:n.end-z,0!=y)){i=1==y?7:9;break}d=p,s=a,c=_,i=1;case 1:for(k=d;k>A;){if(0===S)return n.bitb=E,n.bitk=A,b.avail_in=S,b.total_in+=D-b.next_in_index,b.next_in_index=D,n.write=z,n.inflate_flush(b,y);y=0,S--,E|=(255&b.read_byte(D++))<<A,A+=8}if(v=3*(c+(E&r[k])),E>>>=s[v+1],A-=s[v+1],x=s[v],0===x){f=s[v+2],i=6;break}if(0!=(16&x)){u=15&x,l=s[v+2],i=2;break}if(0==(64&x)){d=x,c=v/3+s[v+2];break}if(0!=(32&x)){i=7;break}return i=9,b.msg="invalid literal/length code",y=t,n.bitb=E,n.bitk=A,b.avail_in=S,b.total_in+=D-b.next_in_index,b.next_in_index=D,n.write=z,n.inflate_flush(b,y);case 2:for(k=u;k>A;){if(0===S)return n.bitb=E,n.bitk=A,b.avail_in=S,b.total_in+=D-b.next_in_index,b.next_in_index=D,n.write=z,n.inflate_flush(b,y);y=0,S--,E|=(255&b.read_byte(D++))<<A,A+=8}l+=E&r[k],E>>=k,A-=k,d=w,s=o,c=g,i=3;case 3:for(k=d;k>A;){if(0===S)return n.bitb=E,n.bitk=A,b.avail_in=S,b.total_in+=D-b.next_in_index,b.next_in_index=D,n.write=z,n.inflate_flush(b,y);y=0,S--,E|=(255&b.read_byte(D++))<<A,A+=8}if(v=3*(c+(E&r[k])),E>>=s[v+1],A-=s[v+1],x=s[v],0!=(16&x)){u=15&x,h=s[v+2],i=4;break}if(0==(64&x)){d=x,c=v/3+s[v+2];break}return i=9,b.msg="invalid distance code",y=t,n.bitb=E,n.bitk=A,b.avail_in=S,b.total_in+=D-b.next_in_index,b.next_in_index=D,n.write=z,n.inflate_flush(b,y);case 4:for(k=u;k>A;){if(0===S)return n.bitb=E,n.bitk=A,b.avail_in=S,b.total_in+=D-b.next_in_index,b.next_in_index=D,n.write=z,n.inflate_flush(b,y);y=0,S--,E|=(255&b.read_byte(D++))<<A,A+=8}h+=E&r[k],E>>=k,A-=k,i=5;case 5:for(R=z-h;0>R;)R+=n.end;for(;0!==l;){if(0===C&&(z==n.end&&0!==n.read&&(z=0,C=z<n.read?n.read-z-1:n.end-z),0===C&&(n.write=z,y=n.inflate_flush(b,y),z=n.write,C=z<n.read?n.read-z-1:n.end-z,z==n.end&&0!==n.read&&(z=0,C=z<n.read?n.read-z-1:n.end-z),0===C)))return n.bitb=E,n.bitk=A,b.avail_in=S,b.total_in+=D-b.next_in_index,b.next_in_index=D,n.write=z,n.inflate_flush(b,y);n.win[z++]=n.win[R++],C--,R==n.end&&(R=0),l--}i=0;break;case 6:if(0===C&&(z==n.end&&0!==n.read&&(z=0,C=z<n.read?n.read-z-1:n.end-z),0===C&&(n.write=z,y=n.inflate_flush(b,y),z=n.write,C=z<n.read?n.read-z-1:n.end-z,z==n.end&&0!==n.read&&(z=0,C=z<n.read?n.read-z-1:n.end-z),0===C)))return n.bitb=E,n.bitk=A,b.avail_in=S,b.total_in+=D-b.next_in_index,b.next_in_index=D,n.write=z,n.inflate_flush(b,y);y=0,n.win[z++]=f,C--,i=0;break;case 7:if(A>7&&(A-=8,S++,D--),n.write=z,y=n.inflate_flush(b,y),z=n.write,C=z<n.read?n.read-z-1:n.end-z,n.read!=n.write)return n.bitb=E,n.bitk=A,b.avail_in=S,b.total_in+=D-b.next_in_index,b.next_in_index=D,n.write=z,n.inflate_flush(b,y);i=8;case 8:return y=1,n.bitb=E,n.bitk=A,b.avail_in=S,b.total_in+=D-b.next_in_index,b.next_in_index=D,n.write=z,n.inflate_flush(b,y);case 9:return y=t,n.bitb=E,n.bitk=A,b.avail_in=S,b.total_in+=D-b.next_in_index,b.next_in_index=D,n.write=z,n.inflate_flush(b,y);default:return y=e,n.bitb=E,n.bitk=A,b.avail_in=S,b.total_in+=D-b.next_in_index,b.next_in_index=D,n.write=z,n.inflate_flush(b,y)}},n.free=()=>{}}h.inflate_trees_fixed=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=i,r[0]=a,0);const w=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function _(i,s){const a=this;let o,l=0,c=0,f=0,u=0;const _=[0],g=[0],m=new p;let b=0,y=new Int32Array(4320);const k=new h;a.bitk=0,a.bitb=0,a.win=new d(s),a.end=s,a.read=0,a.write=0,a.reset=(e,t)=>{t&&(t[0]=0),6==l&&m.free(e),l=0,a.bitk=0,a.bitb=0,a.read=a.write=0},a.reset(i,null),a.inflate_flush=(e,t)=>{let r,i,s;return i=e.next_out_index,s=a.read,r=(s>a.write?a.end:a.write)-s,r>e.avail_out&&(r=e.avail_out),0!==r&&t==n&&(t=0),e.avail_out-=r,e.total_out+=r,e.next_out.set(a.win.subarray(s,s+r),i),i+=r,s+=r,s==a.end&&(s=0,a.write==a.end&&(a.write=0),r=a.write-s,r>e.avail_out&&(r=e.avail_out),0!==r&&t==n&&(t=0),e.avail_out-=r,e.total_out+=r,e.next_out.set(a.win.subarray(s,s+r),i),i+=r,s+=r),e.next_out_index=i,a.read=s,t},a.proc=(n,i)=>{let s,d,p,v,x,S,z,C;for(v=n.next_in_index,x=n.avail_in,d=a.bitb,p=a.bitk,S=a.write,z=S<a.read?a.read-S-1:a.end-S;;){let R,E,A,D,I,T,F,V;switch(l){case 0:for(;3>p;){if(0===x)return a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,a.inflate_flush(n,i);i=0,x--,d|=(255&n.read_byte(v++))<<p,p+=8}switch(s=7&d,b=1&s,s>>>1){case 0:d>>>=3,p-=3,s=7&p,d>>>=s,p-=s,l=1;break;case 1:R=[],E=[],A=[[]],D=[[]],h.inflate_trees_fixed(R,E,A,D),m.init(R[0],E[0],A[0],0,D[0],0),d>>>=3,p-=3,l=6;break;case 2:d>>>=3,p-=3,l=3;break;case 3:return d>>>=3,p-=3,l=9,n.msg="invalid block type",i=t,a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,a.inflate_flush(n,i)}break;case 1:for(;32>p;){if(0===x)return a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,a.inflate_flush(n,i);i=0,x--,d|=(255&n.read_byte(v++))<<p,p+=8}if((~d>>>16&65535)!=(65535&d))return l=9,n.msg="invalid stored block lengths",i=t,a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,a.inflate_flush(n,i);c=65535&d,d=p=0,l=0!==c?2:0!==b?7:0;break;case 2:if(0===x)return a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,a.inflate_flush(n,i);if(0===z&&(S==a.end&&0!==a.read&&(S=0,z=S<a.read?a.read-S-1:a.end-S),0===z&&(a.write=S,i=a.inflate_flush(n,i),S=a.write,z=S<a.read?a.read-S-1:a.end-S,S==a.end&&0!==a.read&&(S=0,z=S<a.read?a.read-S-1:a.end-S),0===z)))return a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,a.inflate_flush(n,i);if(i=0,s=c,s>x&&(s=x),s>z&&(s=z),a.win.set(n.read_buf(v,s),S),v+=s,x-=s,S+=s,z-=s,0!=(c-=s))break;l=0!==b?7:0;break;case 3:for(;14>p;){if(0===x)return a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,a.inflate_flush(n,i);i=0,x--,d|=(255&n.read_byte(v++))<<p,p+=8}if(f=s=16383&d,(31&s)>29||(s>>5&31)>29)return l=9,n.msg="too many length or distance symbols",i=t,a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,a.inflate_flush(n,i);if(s=258+(31&s)+(s>>5&31),!o||o.length<s)o=[];else for(C=0;s>C;C++)o[C]=0;d>>>=14,p-=14,u=0,l=4;case 4:for(;4+(f>>>10)>u;){for(;3>p;){if(0===x)return a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,a.inflate_flush(n,i);i=0,x--,d|=(255&n.read_byte(v++))<<p,p+=8}o[w[u++]]=7&d,d>>>=3,p-=3}for(;19>u;)o[w[u++]]=0;if(_[0]=7,s=k.inflate_trees_bits(o,_,g,y,n),0!=s)return(i=s)==t&&(o=null,l=9),a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,a.inflate_flush(n,i);u=0,l=5;case 5:for(;s=f,258+(31&s)+(s>>5&31)>u;){let e,c;for(s=_[0];s>p;){if(0===x)return a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,a.inflate_flush(n,i);i=0,x--,d|=(255&n.read_byte(v++))<<p,p+=8}if(s=y[3*(g[0]+(d&r[s]))+1],c=y[3*(g[0]+(d&r[s]))+2],16>c)d>>>=s,p-=s,o[u++]=c;else{for(C=18==c?7:c-14,e=18==c?11:3;s+C>p;){if(0===x)return a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,a.inflate_flush(n,i);i=0,x--,d|=(255&n.read_byte(v++))<<p,p+=8}if(d>>>=s,p-=s,e+=d&r[C],d>>>=C,p-=C,C=u,s=f,C+e>258+(31&s)+(s>>5&31)||16==c&&1>C)return o=null,l=9,n.msg="invalid bit length repeat",i=t,a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,a.inflate_flush(n,i);c=16==c?o[C-1]:0;do{o[C++]=c}while(0!=--e);u=C}}if(g[0]=-1,I=[],T=[],F=[],V=[],I[0]=9,T[0]=6,s=f,s=k.inflate_trees_dynamic(257+(31&s),1+(s>>5&31),o,I,T,F,V,y,n),0!=s)return s==t&&(o=null,l=9),i=s,a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,a.inflate_flush(n,i);m.init(I[0],T[0],y,F[0],y,V[0]),l=6;case 6:if(a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,1!=(i=m.proc(a,n,i)))return a.inflate_flush(n,i);if(i=0,m.free(n),v=n.next_in_index,x=n.avail_in,d=a.bitb,p=a.bitk,S=a.write,z=S<a.read?a.read-S-1:a.end-S,0===b){l=0;break}l=7;case 7:if(a.write=S,i=a.inflate_flush(n,i),S=a.write,z=S<a.read?a.read-S-1:a.end-S,a.read!=a.write)return a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,a.inflate_flush(n,i);l=8;case 8:return i=1,a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,a.inflate_flush(n,i);case 9:return i=t,a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,a.inflate_flush(n,i);default:return i=e,a.bitb=d,a.bitk=p,n.avail_in=x,n.total_in+=v-n.next_in_index,n.next_in_index=v,a.write=S,a.inflate_flush(n,i)}}},a.free=e=>{a.reset(e,null),a.win=null,y=null},a.set_dictionary=(e,t,n)=>{a.win.set(e.subarray(t,t+n),0),a.read=a.write=n},a.sync_point=()=>1==l?1:0}const g=13,m=[0,0,255,255];function b(){const r=this;function i(t){return t&&t.istate?(t.total_in=t.total_out=0,t.msg=null,t.istate.mode=7,t.istate.blocks.reset(t,null),0):e}r.mode=0,r.method=0,r.was=[0],r.need=0,r.marker=0,r.wbits=0,r.inflateEnd=e=>(r.blocks&&r.blocks.free(e),r.blocks=null,0),r.inflateInit=(t,n)=>(t.msg=null,r.blocks=null,8>n||n>15?(r.inflateEnd(t),e):(r.wbits=n,t.istate.blocks=new _(t,1<<n),i(t),0)),r.inflate=(r,i)=>{let s,a;if(!r||!r.istate||!r.next_in)return e;const o=r.istate;for(i=4==i?n:0,s=n;;)switch(o.mode){case 0:if(0===r.avail_in)return s;if(s=i,r.avail_in--,r.total_in++,8!=(15&(o.method=r.read_byte(r.next_in_index++)))){o.mode=g,r.msg="unknown compression method",o.marker=5;break}if(8+(o.method>>4)>o.wbits){o.mode=g,r.msg="invalid win size",o.marker=5;break}o.mode=1;case 1:if(0===r.avail_in)return s;if(s=i,r.avail_in--,r.total_in++,a=255&r.read_byte(r.next_in_index++),((o.method<<8)+a)%31!=0){o.mode=g,r.msg="incorrect header check",o.marker=5;break}if(0==(32&a)){o.mode=7;break}o.mode=2;case 2:if(0===r.avail_in)return s;s=i,r.avail_in--,r.total_in++,o.need=(255&r.read_byte(r.next_in_index++))<<24&4278190080,o.mode=3;case 3:if(0===r.avail_in)return s;s=i,r.avail_in--,r.total_in++,o.need+=(255&r.read_byte(r.next_in_index++))<<16&16711680,o.mode=4;case 4:if(0===r.avail_in)return s;s=i,r.avail_in--,r.total_in++,o.need+=(255&r.read_byte(r.next_in_index++))<<8&65280,o.mode=5;case 5:return 0===r.avail_in?s:(s=i,r.avail_in--,r.total_in++,o.need+=255&r.read_byte(r.next_in_index++),o.mode=6,2);case 6:return o.mode=g,r.msg="need dictionary",o.marker=0,e;case 7:if(s=o.blocks.proc(r,s),s==t){o.mode=g,o.marker=0;break}if(0==s&&(s=i),1!=s)return s;s=i,o.blocks.reset(r,o.was),o.mode=12;case 12:return r.avail_in=0,1;case g:return t;default:return e}},r.inflateSetDictionary=(t,n,r)=>{let i=0,s=r;if(!t||!t.istate||6!=t.istate.mode)return e;const a=t.istate;return s<1<<a.wbits||(s=(1<<a.wbits)-1,i=r-s),a.blocks.set_dictionary(n,i,s),a.mode=7,0},r.inflateSync=r=>{let s,a,o,l,c;if(!r||!r.istate)return e;const d=r.istate;if(d.mode!=g&&(d.mode=g,d.marker=0),0===(s=r.avail_in))return n;for(a=r.next_in_index,o=d.marker;0!==s&&4>o;)r.read_byte(a)==m[o]?o++:o=0!==r.read_byte(a)?0:4-o,a++,s--;return r.total_in+=a-r.next_in_index,r.next_in_index=a,r.avail_in=s,d.marker=o,4!=o?t:(l=r.total_in,c=r.total_out,i(r),r.total_in=l,r.total_out=c,d.mode=7,0)},r.inflateSyncPoint=t=>t&&t.istate&&t.istate.blocks?t.istate.blocks.sync_point():e}function y(){}return y.prototype={inflateInit:function(e){const t=this;return t.istate=new b,e||(e=15),t.istate.inflateInit(t,e)},inflate:function(t){const n=this;return n.istate?n.istate.inflate(n,t):e},inflateEnd:function(){const t=this;if(!t.istate)return e;const n=t.istate.inflateEnd(t);return t.istate=null,n},inflateSync:function(){const t=this;return t.istate?t.istate.inflateSync(t):e},inflateSetDictionary:function(t,n){const r=this;return r.istate?r.istate.inflateSetDictionary(r,t,n):e},read_byte:function(e){return this.next_in[e]},read_buf:function(e,t){return this.next_in.subarray(e,e+t)}},function(e){const t=new y,r=e&&e.chunkSize?s.floor(2*e.chunkSize):131072,i=new d(r);let a=!1;t.inflateInit(),t.next_out=i,this.append=(e,s)=>{const o=[];let l,f,u=0,h=0,p=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=r,0!==t.avail_in||a||(t.next_in_index=0,a=!0),l=t.inflate(0),a&&l===n){if(0!==t.avail_in)throw new c("inflating: bad input")}else if(0!==l&&1!==l)throw new c("inflating: "+t.msg);if((a||1===l)&&t.avail_in===e.length)throw new c("inflating: bad input");t.next_out_index&&(t.next_out_index===r?o.push(new d(i)):o.push(i.slice(0,t.next_out_index))),p+=t.next_out_index,s&&t.next_in_index>0&&t.next_in_index!=u&&(s(t.next_in_index),u=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return o.length>1?(f=new d(p),o.forEach((e=>{f.set(e,h),h+=e.length}))):f=o[0]||new d(0),f}},this.flush=()=>{t.inflateEnd()}}})(),A={chunkSize:524288,maxWorkers:"undefined"!=typeof navigator&&navigator.hardwareConcurrency||2,terminateWorkerTimeout:5e3,useWebWorkers:!0,workerScripts:void 0},D=n.assign({},A);function I(){return D}function T(e){if(void 0!==e.baseURL&&(D.baseURL=e.baseURL),void 0!==e.chunkSize&&(D.chunkSize=e.chunkSize),void 0!==e.maxWorkers&&(D.maxWorkers=e.maxWorkers),void 0!==e.terminateWorkerTimeout&&(D.terminateWorkerTimeout=e.terminateWorkerTimeout),void 0!==e.useWebWorkers&&(D.useWebWorkers=e.useWebWorkers),void 0!==e.Deflate&&(D.Deflate=e.Deflate),void 0!==e.Inflate&&(D.Inflate=e.Inflate),void 0!==e.workerScripts){if(e.workerScripts.deflate){if(!t.isArray(e.workerScripts.deflate))throw new c("workerScripts.deflate must be an array");D.workerScripts||(D.workerScripts={}),D.workerScripts.deflate=e.workerScripts.deflate}if(e.workerScripts.inflate){if(!t.isArray(e.workerScripts.inflate))throw new c("workerScripts.inflate must be an array");D.workerScripts||(D.workerScripts={}),D.workerScripts.inflate=e.workerScripts.inflate}}}function F(e,t,r){return class{constructor(i){const s=this;i.hasOwnProperty("level")&&void 0===i.level&&delete i.level,s.codec=new e(n.assign({},t,i)),r(s.codec,(e=>{if(s.pendingData){const t=s.pendingData;s.pendingData=new d(t.length+e.length),s.pendingData.set(t,0),s.pendingData.set(e,t.length)}else s.pendingData=new d(e)}))}append(e){return this.codec.push(e),i(this)}flush(){return this.codec.push(new d(0),!0),i(this)}};function i(e){if(e.pendingData){const t=e.pendingData;return e.pendingData=null,t}return new d(0)}}const V=[];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;V[e]=t}class U{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^V[255&(t^e[n])];this.crc=t}get(){return~this.crc}}class P extends v{constructor(){super({start(){this.crc32=new U},transform(e){e&&this.crc32.append(e)},flush(e){const t=new d(4);new h(t.buffer).setUint32(0,this.crc32.get()),e.enqueue(t)}})}}function B(e){if(void 0===_){const t=new d((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new _).encode(e)}const M={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=M.getPartial(n);return 32===r?e.concat(t):M._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)+M.getPartial(n)},clamp(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,s.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=M.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=>s.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=M.getPartial(i);return r.push(M.partial(t+s&31,t+s>32?n:r.pop(),1)),r}},W={bytes:{fromBits(e){const t=M.bitLength(e)/8,n=new d(t);let r;for(let i=0;t>i;i++)0==(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==(3&n)&&(t.push(r),r=0);return 3&n&&t.push(M.partial(8*(3&n),r)),t}}},L={sha1:function(e){e?(this._h=e._h.slice(0),this._buffer=e._buffer.slice(0),this._length=e._length):this.reset()}};L.sha1.prototype={blockSize:512,reset:function(){const e=this;return e._h=this._init.slice(0),e._buffer=[],e._length=0,e},update:function(e){const t=this;"string"==typeof e&&(e=W.utf8String.toBits(e));const n=t._buffer=M.concat(t._buffer,e),r=t._length,i=t._length=r+M.bitLength(e);if(i>9007199254740991)throw new c("Cannot hash more than 2^53 - 1 bits");const s=new u(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:function(){const e=this;let t=e._buffer;const n=e._h;t=M.concat(t,[M.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(s.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:(e,t,n,r)=>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)=>t<<e|t>>>32-e,_block:function(e){const n=this,r=n._h,i=t(80);for(let t=0;16>t;t++)i[t]=e[t];let a=r[0],o=r[1],l=r[2],c=r[3],d=r[4];for(let e=0;79>=e;e++){16>e||(i[e]=n._S(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n._S(5,a)+n._f(e,o,l,c)+d+i[e]+n._key[s.floor(e/20)]|0;d=c,c=l,l=n._S(30,o),o=a,a=t}r[0]=r[0]+a|0,r[1]=r[1]+o|0,r[2]=r[2]+l|0,r[3]=r[3]+c|0,r[4]=r[4]+d|0}};const H={getRandomValues(e){const t=new u(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)*(s.random()>.5?1:-1))};for(let r,i=0;i<e.length;i+=4){const e=n(4294967296*(r||s.random()));r=987654071*e(),t[i/4]=4294967296*e()|0}return e}},q={importKey:e=>new q.hmacSha1(W.bytes.toBits(e)),pbkdf2(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new c("invalid params to pbkdf2");const i=1+(r>>5)<<2;let s,a,o,l,d;const f=new ArrayBuffer(i),u=new h(f);let p=0;const w=M;for(t=W.bytes.toBits(t),d=1;(i||1)>p;d++){for(s=a=e.encrypt(w.concat(t,[d])),o=1;n>o;o++)for(a=e.encrypt(a),l=0;l<a.length;l++)s[l]^=a[l];for(o=0;(i||1)>p&&o<s.length;o++)u.setInt32(p,s[o]),p+=4}return f.slice(0,r/8)},hmacSha1:class{constructor(e){const t=this,n=t._hash=L.sha1,r=[[],[]],i=n.prototype.blockSize/32;t._baseHash=[new n,new n],e.length>i&&(e=n.hash(e));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 new c("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},N="Invalid pasword",O=16,Z={name:"PBKDF2"},K=n.assign({hash:{name:"HMAC"}},Z),j=n.assign({iterations:1e3,hash:{name:"SHA-1"}},Z),X=["deriveBits"],G=[8,12,16],$=[16,24,32],Y=10,J=[0,0,0,0],Q=void 0!==y,ee=Q&&void 0!==y.subtle,te=W.bytes,ne=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,l=1;if(4!==i&&6!==i&&8!==i)throw new c("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^l<<24,l=l<<1^283*(l>>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,l,c;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,c=i[l=i[o=i[d]]];let f=16843009*c^65537*l^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 new c("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],l=s[2],d=s[3],f=s[4];let u,h,p,w=e[0]^n[0],_=e[t?3:1]^n[1],g=e[2]^n[2],m=e[t?1:3]^n[3],b=4;for(let e=0;r>e;e++)u=a[w>>>24]^o[_>>16&255]^l[g>>8&255]^d[255&m]^n[b],h=a[_>>>24]^o[g>>16&255]^l[m>>8&255]^d[255&w]^n[b+1],p=a[g>>>24]^o[m>>16&255]^l[w>>8&255]^d[255&_]^n[b+2],m=a[m>>>24]^o[w>>16&255]^l[_>>8&255]^d[255&g]^n[b+3],b+=4,w=u,_=h,g=p;for(let e=0;4>e;e++)i[t?3&-e:e]=f[w>>>24]<<24^f[_>>16&255]<<16^f[g>>8&255]<<8^f[255&m]^n[b++],u=w,w=_,_=g,g=m,m=u;return i}},re=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&255)){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}else e+=1<<24;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=M.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 M.clamp(t,i)}},ie=q.hmacSha1;class se extends v{constructor(e,r,i){let s;super({start(){n.assign(this,{ready:new w((e=>this.resolveReady=e)),password:e,signed:r,strength:i-1,pending:new d(0)})},async transform(e,n){if(e&&e.length){const r=this;if(r.password){const n=r.password;r.password=null;const i=de(e,0,G[r.strength]+2);await(async(e,t,n)=>{await le(e,n,de(t,0,G[e.strength]));const r=de(t,G[e.strength]),i=e.keys.passwordVerification;if(i[0]!=r[0]||i[1]!=r[1])throw new c(N)})(r,i,n),r.aesCtrGladman=new re(new ne(r.keys.key),t.from(J)),r.hmac=new ie(r.keys.authentication),e=de(e,G[r.strength]+2),r.resolveReady()}else await r.ready;const i=new d(e.length-Y-(e.length-Y)%O);n.enqueue(oe(r,e,i,0,Y,!0))}},async flush(e){const t=this;await t.ready;const n=t.pending,r=de(n,0,n.length-Y),i=de(n,n.length-Y);let a=new d(0);if(r.length){const e=te.toBits(r);t.hmac.update(e);const n=t.aesCtrGladman.update(e);a=te.fromBits(n)}if(s.valid=!0,t.signed){const e=de(te.fromBits(t.hmac.digest()),0,Y);for(let t=0;Y>t;t++)e[t]!=i[t]&&(s.valid=!1)}e.enqueue(a)}}),s=this}}class ae extends v{constructor(e,r){let i;super({start(){n.assign(this,{ready:new w((e=>this.resolveReady=e)),password:e,strength:r-1,pending:new d(0)})},async transform(e,n){if(e&&e.length){const r=this;let i=new d(0);if(r.password){const e=r.password;r.password=null,i=await(async(e,t)=>{const n=(r=new d(G[e.strength]),Q&&"function"==typeof y.getRandomValues?y.getRandomValues(r):H.getRandomValues(r));var r;return await le(e,t,n),ce(n,e.keys.passwordVerification)})(r,e),r.aesCtrGladman=new re(new ne(r.keys.key),t.from(J)),r.hmac=new ie(r.keys.authentication),r.resolveReady()}else await r.ready;const s=new d(i.length+e.length-e.length%O);s.set(i,0),n.enqueue(oe(r,e,s,i.length,0))}},async flush(e){const t=this;await t.ready;let n=new d(0);if(t.pending.length){const e=t.aesCtrGladman.update(te.toBits(t.pending));t.hmac.update(e),n=te.fromBits(e)}i.signature=te.fromBits(t.hmac.digest()).slice(0,Y),e.enqueue(ce(n,i.signature))}}),i=this}}function oe(e,t,n,r,i,s){const a=t.length-i;let o;for(e.pending.length&&(t=ce(e.pending,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new d(t)).set(n,0)}return e})(n,a-a%O)),o=0;a-O>=o;o+=O){const i=te.toBits(de(t,o,o+O));s&&e.hmac.update(i);const a=e.aesCtrGladman.update(i);s||e.hmac.update(a),n.set(te.fromBits(a),o+r)}return e.pending=de(t,o),n}async function le(e,t,r){const i=B(t),s=await((e,t,n,r,i)=>Q&&ee&&"function"==typeof y.subtle.importKey?y.subtle.importKey("raw",t,n,!1,i):q.importKey(t))(0,i,K,0,X),a=await(async(e,t,n)=>Q&&ee&&"function"==typeof y.subtle.deriveBits?await y.subtle.deriveBits(e,t,n):q.pbkdf2(t,e.salt,j.iterations,n))(n.assign({salt:r},j),s,8*(2*$[e.strength]+2)),o=new d(a);e.keys={key:te.toBits(de(o,0,$[e.strength])),authentication:te.toBits(de(o,$[e.strength],2*$[e.strength])),passwordVerification:de(o,2*$[e.strength])}}function ce(e,t){let n=e;return e.length+t.length&&(n=new d(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function de(e,t,n){return e.subarray(t,n)}class fe extends v{constructor(e,t){let r;super({start(){n.assign(this,{password:e,passwordVerification:t}),we(this,e)},transform(e,t){if(e&&e.length){const n=this;if(n.password){const t=he(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new c(N);e=e.subarray(12)}t.enqueue(he(n,e))}},flush(){r.valid=!0}}),r=this}}class ue extends v{constructor(e,t){super({start(){n.assign(this,{password:e,passwordVerification:t}),we(this,e)},transform(e,t){if(e&&e.length){const n=this;let r,i;if(n.password){n.password=null;const t=y.getRandomValues(new d(12));t[11]=n.passwordVerification,r=new d(e.length+t.length),r.set(pe(n,t),0),i=12}else r=new d(e.length),i=0;r.set(pe(n,e),i),t.enqueue(r)}},flush(){}})}}function he(e,t){const n=new d(t.length);for(let r=0;r<t.length;r++)n[r]=ge(e)^t[r],_e(e,n[r]);return n}function pe(e,t){const n=new d(t.length);for(let r=0;r<t.length;r++)n[r]=ge(e)^t[r],_e(e,t[r]);return n}function we(e,t){e.keys=[305419896,591751049,878082192],e.crcKey0=new U(e.keys[0]),e.crcKey2=new U(e.keys[2]);for(let n=0;n<t.length;n++)_e(e,t.charCodeAt(n))}function _e(e,t){e.crcKey0.append([t]),e.keys[0]=~e.crcKey0.get(),e.keys[1]=be(e.keys[1]+me(e.keys[0])),e.keys[1]=be(s.imul(e.keys[1],134775813)+1),e.crcKey2.append([e.keys[1]>>>24]),e.keys[2]=~e.crcKey2.get()}function ge(e){const t=2|e.keys[2];return me(s.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}class ye extends v{constructor(e,t){super({start(){this.codec=new e(t)},transform(e,t){(e=this.codec.append(e))&&t.enqueue(e)},flush(e){const t=this.codec.flush();t&&e.enqueue(t)}})}}const ke="deflate",ve="inflate",xe="Invalid signature",Se="data";class ze{constructor(e,{signature:t,password:r,signed:i,compressed:s,zipCrypto:a,passwordVerification:o,encryptionStrength:l,useCompressionStream:c},{chunkSize:d}){const f=this;f.start=async()=>{const u=!!r;if(n.assign(f,{signature:t,encrypted:u,signed:i,compressed:s,zipCrypto:a,stream:new x({async pull(e){const{value:t,done:n}=await f.pull();e.enqueue(t),(n||f.aborted)&&e.close()}})}),u&&(a?f.stream=f.stream.pipeThrough(new fe(r,o)):(f.decryptStream=new se(r,i,l),f.stream=f.stream.pipeThrough(f.decryptStream))),s&&(f.stream=void 0!==c&&!c||void 0===C?f.stream.pipeThrough(new ye(e,{chunkSize:d})):f.stream.pipeThrough(new C("deflate-raw"))),(!u||a)&&i){const e=f.stream.tee();f.stream=e[0],f.crc32Stream=e[1].pipeThrough(new P)}f.reader=f.stream.getReader(),await f.read()},f.abort=()=>f.aborted=!0}async read(){const e=this,{value:t,done:n}=await e.reader.read();if(t&&t.length&&e.ondata({value:{data:new d(t)}}),n){let t;if(e.encrypted&&!e.zipCrypto&&!e.decryptStream.valid)throw new c(xe);if((!e.encrypted||e.zipCrypto)&&e.signed){t=await e.crc32Stream.getReader().read();const n=new h(t.value.buffer);if(e.signature!=n.getUint32(0,!1))throw new c(xe)}e.ondata({value:{signature:t},done:n})}else await e.read()}}class Ce{constructor(e,{encrypted:t,signed:r,compressed:i,level:s,zipCrypto:a,password:o,passwordVerification:l,encryptionStrength:c,useCompressionStream:d},{chunkSize:f}){const u=this;u.start=async()=>{if(n.assign(this,{encrypted:t,signed:r,compressed:i,zipCrypto:a,stream:new x({async pull(e){const{value:t,done:n}=await u.pull();e.enqueue(t),(n||u.aborted)&&e.close()}})}),(!t||a)&&r){const e=u.stream.tee();u.stream=e[0],u.crc32Stream=e[1].pipeThrough(new P({chunkSize:f}))}i&&(u.stream=void 0!==d&&!d||void 0===z?u.stream.pipeThrough(new ye(e,{chunkSize:f,level:s})):u.stream.pipeThrough(new z("deflate-raw"))),t&&(a?u.stream=u.stream.pipeThrough(new ue(o,l)):(u.encryptStream=new ae(o,c),u.stream=u.stream.pipeThrough(u.encryptStream))),u.reader=u.stream.getReader(),await u.read()},u.abort=()=>u.aborted=!0}async read(){const e=this,{value:t,done:n}=await e.reader.read();if(t&&t.length&&e.ondata({value:{data:t}}),n){let t;e.encrypted&&!e.zipCrypto&&(t=e.encryptStream.signature),e.encrypted&&!e.zipCrypto||!e.signed||(t=await e.crc32Stream.getReader().read(),t=new h(t.value.buffer).getUint32(0)),e.ondata({value:{signature:t},done:n})}else await e.read()}}let Re=!0;function Ee(e,t,r,i,s,a,o){return n.assign(e,{busy:!0,codecConstructor:t,options:n.assign({},r),scripts:o,terminate(){e.worker&&!e.busy&&(e.worker.terminate(),e.interface=null)},onTaskFinished(){e.busy=!1,s(e)}}),a?((e,{baseURL:t,chunkSize:n})=>{const r={type:"module"};if(!e.interface){if(Re)try{e.worker=i({})}catch(t){Re=!1,e.worker=i(r)}else e.worker=i(r);e.worker.addEventListener("message",(async t=>{const n=t.data,r=n.error,i=e.interface;try{if(r){const t=new c(r.message);t.stack=r.stack,i.onerror(t),e.onTaskFinished()}else{if("pull"==n.type){const{value:e,done:t}=await i.pull();s({type:Se,data:e,done:t,messageId:n.messageId})}if(n.type==Se){const{value:t}=n.data;t&&t.data&&(t.data=new d(t.data)),await Ae(e,i,n.data)}}}catch(t){i.onerror(t),e.onTaskFinished()}}),!1),e.interface={abort(){s({type:"abort"}),e.onTaskFinished()},start(){const t=e.options;s({type:"start",scripts:e.scripts.slice(1),options:t,config:{chunkSize:n}})}}}return e.interface;function i(n){let r,i;r=e.scripts[0],"function"==typeof r&&(r=r());try{i=new l(r,t)}catch(e){i=r}return new Worker(i,n)}function s(t){const n=e.worker;try{if(t.data)try{t.data=t.data.buffer,n.postMessage(t,[t.data])}catch(e){n.postMessage(t)}else n.postMessage(t)}catch(t){throw e.onTaskFinished(),t}}})(e,i):((e,t)=>{const n=((e,t,n)=>t.codecType.startsWith(ke)?new Ce(e,t,n):t.codecType.startsWith(ve)?new ze(e,t,n):void 0)(e.codecConstructor,e.options,t),r={abort(){n.abort(),e.onTaskFinished()},start:()=>n.start()};return n.pull=()=>r.pull(),n.ondata=t=>Ae(e,r,t),r})(e,i)}async function Ae(e,t,n){let{value:r,done:i}=n;i?(await t.ondata({value:{data:r.data,signature:r.signature},done:i}),e.onTaskFinished()):r.data&&await t.ondata({value:{data:r.data}})}let De=[];const Ie=[];let Te=0;function Fe(e,t,n){const r=!(!t.compressed&&!t.signed&&!t.encrypted)&&(t.useWebWorkers||void 0===t.useWebWorkers&&n.useWebWorkers),i=r&&n.workerScripts?n.workerScripts[t.codecType]:[];if(t.useCompressionStream=void 0===t.useCompressionStream?n.useCompressionStream:t.useCompressionStream,De.length<n.maxWorkers){const a={indexWorker:Te};return Te++,De.push(a),Ee(a,e,t,n,s,r,i)}{const a=De.find((e=>!e.busy));return a?(Ve(a),Ee(a,e,t,n,s,r,i)):new w((n=>Ie.push({resolve:n,codecConstructor:e,options:t,webWorker:r,scripts:i})))}function s(e){if(Ie.length){const[{resolve:t,codecConstructor:r,options:i,webWorker:a,scripts:o}]=Ie.splice(0,1);t(Ee(e,r,i,n,s,a,o))}else e.worker?(Ve(e),Number.isFinite(n.terminateWorkerTimeout)&&n.terminateWorkerTimeout>=0&&(e.terminateTimeout=setTimeout((()=>{De=De.filter((t=>t!=e)),e.terminate()}),n.terminateWorkerTimeout))):De=De.filter((t=>t!=e))}}function Ve(e){e.terminateTimeout&&(clearTimeout(e.terminateTimeout),e.terminateTimeout=null)}const Ue="Abort error";async function Pe(e,t,n,r,i,a,o){const l=s.max(a.chunkSize,64),c=o.signal;let d=0,f=0;const u=new w(((a,u)=>{e.pull=async()=>{Be(c,e);const n=i();let a=f;return f+=l,{value:await t.readUint8Array(a+r,s.min(l,n-a)),done:f>n}},e.ondata=async({value:t,done:r})=>{try{Be(c,e);const s=i(),{data:l,signature:u}=t;if(l&&l.length&&(d+=l.length,await n.writeUint8Array(l)),o.onprogress)try{o.onprogress(f,s)}catch(e){}r&&a({signature:u,length:d})}catch(e){u(e)}},e.onerror=e=>{u(e)}}));return await e.start(),u}function Be(e,t){if(e&&e.aborted)throw t.abort(),new c(Ue)}const Me="HTTP error ",We="HTTP Range not supported",Le="Reader is not seekable",He="text/plain",qe="GET";class Ne{constructor(){this.size=0}init(){this.initialized=!0}}class Oe extends Ne{}class Ze extends Ne{writeUint8Array(e){this.size+=e.length}}class Ke extends Oe{constructor(e){super(),this.blob=e,this.size=e.size}async readUint8Array(e,t){if(this.blob.arrayBuffer)return new d(await this.blob.slice(e,e+t).arrayBuffer());{const n=new m;return new w(((r,i)=>{n.onload=e=>r(new d(e.target.result)),n.onerror=()=>i(n.error),n.readAsArrayBuffer(this.blob.slice(e,e+t))}))}}}class je extends Ze{constructor(e){super(),this.contentType=e,this.arrayBuffersMaxlength=8,Xe(this)}writeUint8Array(e){super.writeUint8Array(e),this.arrayBuffers.length==this.arrayBuffersMaxlength&&Ge(this),this.arrayBuffers.push(e.buffer)}getData(){return this.blob||(this.arrayBuffers.length&&Ge(this),this.blob=this.pendingBlob,Xe(this)),this.blob}}function Xe(e){e.pendingBlob=new p([],{type:e.contentType}),e.arrayBuffers=[]}function Ge(e){e.pendingBlob=new p([e.pendingBlob,...e.arrayBuffers],{type:e.contentType}),e.arrayBuffers=[]}class $e extends Oe{constructor(e,t){super(),this.url=e,this.preventHeadRequest=t.preventHeadRequest,this.useRangeHeader=t.useRangeHeader,this.forceRangeRequests=t.forceRangeRequests,this.options=n.assign({},t),delete this.options.preventHeadRequest,delete this.options.useRangeHeader,delete this.options.forceRangeRequests,delete this.options.useXHR}async init(){super.init(),await Je(this,at,nt)}readUint8Array(e,t){return Qe(this,e,t,at,nt)}}class Ye extends Oe{constructor(e,t){super(),this.url=e,this.preventHeadRequest=t.preventHeadRequest,this.useRangeHeader=t.useRangeHeader,this.forceRangeRequests=t.forceRangeRequests,this.options=t}async init(){super.init(),await Je(this,ot,rt)}readUint8Array(e,t){return Qe(this,e,t,ot,rt)}}async function Je(e,t,n){if((e=>{if(void 0!==b){const t=b.createElement("a");return t.href=e,"http:"==t.protocol||"https:"==t.protocol}return/^https?:\/\//i.test(e)})(e.url)&&(e.useRangeHeader||e.forceRangeRequests)){const r=await t(qe,e,et(e));if(!e.forceRangeRequests&&"bytes"!=r.headers.get("Accept-Ranges"))throw new c(We);{let i;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))}}void 0===i?await st(e,t,n):e.size=i}}else await st(e,t,n)}async function Qe(e,t,n,r,i){if(e.useRangeHeader||e.forceRangeRequests){const i=await r(qe,e,et(e,t,n));if(206!=i.status)throw new c(We);return new d(await i.arrayBuffer())}return e.data||await i(e,e.options),new d(e.data.subarray(t,t+n))}function et(e,t=0,r=1){return n.assign({},tt(e),{Range:"bytes="+t+"-"+(t+r-1)})}function tt(e){const t=e.options.headers;if(t)return Symbol.iterator in t?n.fromEntries(t):t}async function nt(e){await it(e,at)}async function rt(e){await it(e,ot)}async function it(e,t){const n=await t(qe,e,tt(e));e.data=new d(await n.arrayBuffer()),e.size||(e.size=e.data.length)}async function st(e,t,n){if(e.preventHeadRequest)await n(e,e.options);else{const r=(await t("HEAD",e,tt(e))).headers.get("Content-Length");r?e.size=Number(r):await n(e,e.options)}}async function at(e,{options:t,url:r},i){const s=await fetch(r,n.assign({},t,{method:e,headers:i}));if(400>s.status)return s;throw new c(Me+(s.statusText||s.status))}function ot(e,{url:t},r){return new w(((i,s)=>{const a=new XMLHttpRequest;if(a.addEventListener("load",(()=>{if(400>a.status){const e=[];a.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)})),i({status:a.status,arrayBuffer:()=>a.response,headers:new o(e)})}else s(new c(Me+(a.statusText||a.status)))}),!1),a.addEventListener("error",(e=>s(e.detail.error)),!1),a.open(e,t),r)for(const e of n.entries(r))a.setRequestHeader(e[0],e[1]);a.responseType="arraybuffer",a.send()}))}class lt extends Oe{constructor(e,t={}){super(),this.url=e,t.useXHR?this.reader=new Ye(e,t):this.reader=new $e(e,t)}set size(e){}get size(){return this.reader.size}async init(){super.init(),await this.reader.init()}readUint8Array(e,t){return this.reader.readUint8Array(e,t)}}const ct=4294967295,dt=65535,ft=67324752,ut=33639248,ht=101075792,pt=117853008,wt=21589,_t=2048,gt="/",mt=new a(2107,11,31),bt=new a(1980,0,1),yt="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("");function kt(e,t){if(t&&"cp437"==t.trim().toLowerCase())return(e=>{let t="";for(let n=0;n<e.length;n++)t+=yt[e[n]];return t})(e);if(void 0===g){const t=new m;return new w(((n,r)=>{t.onload=e=>n(e.target.result),t.onerror=()=>r(t.error),t.readAsText(new p([e]))}))}return new g(t).decode(e)}const vt=["filename","rawFilename","directory","encrypted","compressedSize","uncompressedSize","lastModDate","rawLastModDate","comment","rawComment","signature","extraField","rawExtraField","bitFlag","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","filenameUTF8","commentUTF8","offset","zip64","compressionMethod","extraFieldNTFS","lastAccessDate","creationDate","extraFieldExtendedTimestamp","version","versionMadeBy","msDosCompatible","internalFileAttribute","externalFileAttribute"];class xt{constructor(e){vt.forEach((t=>this[t]=e[t]))}}const St="File format is not recognized",zt="End of central directory not found",Ct="End of Zip64 central directory not found",Rt="End of Zip64 central directory locator not found",Et="Central directory header not found",At="Local file header not found",Dt="Zip64 extra field not found",It="File contains encrypted entry",Tt="Encryption method not supported",Ft="Compression method not supported",Vt="utf-8",Ut="cp437",Pt=["uncompressedSize","compressedSize","offset"];class Bt{constructor(e,t,r){n.assign(this,{reader:e,config:t,options:r})}async getData(e,t,n={}){const r=this,{reader:i,offset:s,extraFieldAES:a,compressionMethod:o,config:l,bitFlag:d,signature:f,rawLastModDate:u,compressedSize:h}=r,p=r.localDirectory={};i.initialized||await i.init();let w=await Gt(i,s,30);const _=Xt(w);let g=Ht(r,n,"password");if(g=g&&g.length&&g,a&&99!=a.originalCompressionMethod)throw new c(Ft);if(0!=o&&8!=o)throw new c(Ft);if(Kt(_,0)!=ft)throw new c(At);Mt(p,_,4),w=await Gt(i,s,30+p.filenameLength+p.extraFieldLength),p.rawExtraField=w.subarray(30+p.filenameLength),await Wt(r,p,_,4),t.lastAccessDate=p.lastAccessDate,t.creationDate=p.creationDate;const m=r.encrypted&&p.encrypted,b=m&&!a;if(m){if(!b&&void 0===a.strength)throw new c(Tt);if(!g)throw new c(It)}const y=await Fe(l.Inflate,{codecType:ve,password:g,zipCrypto:b,encryptionStrength:a&&a.strength,signed:Ht(r,n,"checkSignature"),passwordVerification:b&&(d.dataDescriptor?u>>>8&255:f>>>24&255),signature:f,compressed:0!=o,encrypted:m,useWebWorkers:Ht(r,n,"useWebWorkers"),useCompressionStream:Ht(r,n,"useCompressionStream")},l);e.initialized||await e.init();const k=Ht(r,n,"signal"),v=s+30+p.filenameLength+p.extraFieldLength;return await Pe(y,i,e,v,(()=>h),l,{onprogress:n.onprogress,signal:k}),e.getData()}}function Mt(e,t,r){const i=e.rawBitFlag=Zt(t,r+2),s=1==(1&i),a=Kt(t,r+6);n.assign(e,{encrypted:s,version:Zt(t,r),bitFlag:{level:(6&i)>>1,dataDescriptor:8==(8&i),languageEncodingFlag:(i&_t)==_t},rawLastModDate:a,lastModDate:qt(a),filenameLength:Zt(t,r+22),extraFieldLength:Zt(t,r+24)})}async function Wt(e,t,r,i){const l=t.rawExtraField,f=t.extraField=new o,u=Xt(new d(l));let h=0;try{for(;h<l.length;){const e=Zt(u,h),t=Zt(u,h+2);f.set(e,{type:e,data:l.slice(h+4,h+4+t)}),h+=4+t}}catch(e){}const p=Zt(r,i+4);t.signature=Kt(r,i+10),t.uncompressedSize=Kt(r,i+18),t.compressedSize=Kt(r,i+14);const w=f.get(1);w&&(((e,t)=>{t.zip64=!0;const n=Xt(e.data);e.values=[];for(let t=0;t<s.floor(e.data.length/8);t++)e.values.push(jt(n,0+8*t));const r=Pt.filter((e=>t[e]==ct));for(let t=0;t<r.length;t++)e[r[t]]=e.values[t];Pt.forEach((n=>{if(t[n]==ct){if(void 0===e[n])throw new c(Dt);t[n]=e[n]}}))})(w,t),t.extraFieldZip64=w);const _=f.get(28789);_&&(await Lt(_,"filename","rawFilename",t,e),t.extraFieldUnicodePath=_);const g=f.get(25461);g&&(await Lt(g,"comment","rawComment",t,e),t.extraFieldUnicodeComment=g);const m=f.get(39169);m?(((e,t,n)=>{const r=Xt(e.data);e.vendorVersion=Ot(r,0),e.vendorId=Ot(r,2);const i=Ot(r,4);e.strength=i,e.originalCompressionMethod=n,t.compressionMethod=e.compressionMethod=Zt(r,5)})(m,t,p),t.extraFieldAES=m):t.compressionMethod=p;const b=f.get(10);b&&(((e,t)=>{const r=Xt(e.data);let i,s=4;try{for(;s<e.data.length&&!i;){const t=Zt(r,s),n=Zt(r,s+2);1==t&&(i=e.data.slice(s+4,s+4+n)),s+=4+n}}catch(e){}try{if(i&&24==i.length){const r=Xt(i),s=r.getBigUint64(0,!0),a=r.getBigUint64(8,!0),o=r.getBigUint64(16,!0);n.assign(e,{rawLastModDate:s,rawLastAccessDate:a,rawCreationDate:o});const l={lastModDate:Nt(s),lastAccessDate:Nt(a),creationDate:Nt(o)};n.assign(e,l),n.assign(t,l)}}catch(e){}})(b,t),t.extraFieldNTFS=b);const y=f.get(wt);y&&(((e,t)=>{const n=Xt(e.data),r=Ot(n,0),i=[],s=[];1==(1&r)&&(i.push("lastModDate"),s.push("rawLastModDate")),2==(2&r)&&(i.push("lastAccessDate"),s.push("rawLastAccessDate")),4==(4&r)&&(i.push("creationDate"),s.push("rawCreationDate"));let o=1;i.forEach(((r,i)=>{if(e.data.length>=o+4){const l=Kt(n,o);t[r]=e[r]=new a(1e3*l);const c=s[i];e[c]=l}o+=4}))})(y,t),t.extraFieldExtendedTimestamp=y)}async function Lt(e,t,n,r,i){const s=Xt(e.data);e.version=Ot(s,0),e.signature=Kt(s,1);const a=new U;a.append(i[n]);const o=Xt(new d(4));o.setUint32(0,a.get(),!0),e[t]=await kt(e.data.subarray(5)),e.valid=!i.bitFlag.languageEncodingFlag&&e.signature==Kt(o,0),e.valid&&(r[t]=e[t],r[t+"UTF8"]=!0)}function Ht(e,t,n){return void 0===t[n]?e.options[n]:t[n]}function qt(e){const t=(4294901760&e)>>16,n=65535&e;try{return new a(1980+((65024&t)>>9),((480&t)>>5)-1,31&t,(63488&n)>>11,(2016&n)>>5,2*(31&n),0)}catch(e){}}function Nt(e){return new a(Number(e/i(1e4)-i(116444736e5)))}function Ot(e,t){return e.getUint8(t)}function Zt(e,t){return e.getUint16(t,!0)}function Kt(e,t){return e.getUint32(t,!0)}function jt(e,t){return Number(e.getBigUint64(t,!0))}function Xt(e){return new h(e.buffer)}function Gt(e,t,n){return e.readUint8Array(t,n)}const $t="File already exists",Yt="Zip file comment exceeds 64KB",Jt="File entry comment exceeds 64KB",Qt="File entry name exceeds 64KB",en="Version exceeds 65535",tn="The strength must equal 1, 2, or 3",nn="Extra field type exceeds 65535",rn="Extra field data exceeds 64KB",sn="Zip64 is not supported",an=new d([7,0,2,0,65,69,3,0,0]);let on,ln=0;function cn(e,t,n){if(e.arrayBuffer)return t||n?e.slice(t,n).arrayBuffer():e.arrayBuffer();{const r=new m;return new w(((i,s)=>{r.onload=e=>i(e.target.result),r.onerror=()=>s(r.error),r.readAsArrayBuffer(t||n?e.slice(t,n):e)}))}}function dn(e){if(e)return(i(e.getTime())+i(116444736e5))*i(1e4)}function fn(e,t,n){return void 0===t[n]?e.options[n]:t[n]}function un(e,t,n){e.setUint8(t,n)}function hn(e,t,n){e.setUint16(t,n,!0)}function pn(e,t,n){e.setUint32(t,n,!0)}function wn(e,t,n){e.setBigUint64(t,n,!0)}function _n(e,t,n){e.set(t,n)}function gn(e){return new h(e.buffer)}try{on=void 0===b&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:void 0===b?location.href:b.currentScript&&b.currentScript.src||new l("zip-full.min.js",b.baseURI).href}catch(e){}(e=>{if("function"==typeof l.createObjectURL){const t=()=>l.createObjectURL(new p(['const{Array:t,Object:e,Math:n,Error:r,Uint8Array:i,Uint16Array:s,Uint32Array:o,Int32Array:f,DataView:c,TextEncoder:a,crypto:l,postMessage:u,TransformStream:w,ReadableStream:h,WritableStream:d,CompressionStream:p,DecompressionStream:y}=globalThis,b=[];for(let t=0;256>t;t++){let e=t;for(let t=0;8>t;t++)1&e?e=e>>>1^3988292384:e>>>=1;b[t]=e}class m{constructor(t){this.t=t||-1}append(t){let e=0|this.t;for(let n=0,r=0|t.length;r>n;n++)e=e>>>8^b[255&(e^t[n])];this.t=e}get(){return~this.t}}class k extends w{constructor(){super({start(){this.i=new m},transform(t){t&&this.i.append(t)},flush(t){const e=new i(4);new c(e.buffer).setUint32(0,this.i.get()),t.enqueue(e)}})}}const v={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const n=t[t.length-1],r=v.o(n);return 32===r?t.concat(e):v.l(e,r,0|n,t.slice(0,t.length-1))},u(t){const e=t.length;if(0===e)return 0;const n=t[e-1];return 32*(e-1)+v.o(n)},h(t,e){if(32*t.length<e)return t;const r=(t=t.slice(0,n.ceil(e/32))).length;return e&=31,r>0&&e&&(t[r-1]=v.p(e,t[r-1]&2147483648>>e-1,1)),t},p:(t,e,n)=>32===t?e:(n?0|e:e<<32-t)+1099511627776*t,o:t=>n.round(t/1099511627776)||32,l(t,e,n,r){for(void 0===r&&(r=[]);e>=32;e-=32)r.push(n),n=0;if(0===e)return r.concat(t);for(let i=0;i<t.length;i++)r.push(n|t[i]>>>e),n=t[i]<<32-e;const i=t.length?t[t.length-1]:0,s=v.o(i);return r.push(v.p(e+s&31,e+s>32?n:r.pop(),1)),r}},g={m:{k(t){const e=v.u(t)/8,n=new i(e);let r;for(let i=0;e>i;i++)0==(3&i)&&(r=t[i/4]),n[i]=r>>>24,r<<=8;return n},v(t){const e=[];let n,r=0;for(n=0;n<t.length;n++)r=r<<8|t[n],3==(3&n)&&(e.push(r),r=0);return 3&n&&e.push(v.p(8*(3&n),r)),e}}},S={g:function(t){t?(this.S=t.S.slice(0),this._=t._.slice(0),this.C=t.C):this.reset()}};S.g.prototype={blockSize:512,reset:function(){const t=this;return t.S=this.I.slice(0),t._=[],t.C=0,t},update:function(t){const e=this;"string"==typeof t&&(t=g.A.v(t));const n=e._=v.concat(e._,t),i=e.C,s=e.C=i+v.u(t);if(s>9007199254740991)throw new r("Cannot hash more than 2^53 - 1 bits");const f=new o(n);let c=0;for(let t=e.blockSize+i-(e.blockSize+i&e.blockSize-1);s>=t;t+=e.blockSize)e.V(f.subarray(16*c,16*(c+1))),c+=1;return n.splice(0,16*c),e},P:function(){const t=this;let e=t._;const r=t.S;e=v.concat(e,[v.p(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(n.floor(t.C/4294967296)),e.push(0|t.C);e.length;)t.V(e.splice(0,16));return t.reset(),r},I:[1732584193,4023233417,2562383102,271733878,3285377520],B:[1518500249,1859775393,2400959708,3395469782],D:(t,e,n,r)=>t>19?t>39?t>59?t>79?void 0:e^n^r:e&n|e&r|n&r:e^n^r:e&n|~e&r,M:(t,e)=>e<<t|e>>>32-t,V:function(e){const r=this,i=r.S,s=t(80);for(let t=0;16>t;t++)s[t]=e[t];let o=i[0],f=i[1],c=i[2],a=i[3],l=i[4];for(let t=0;79>=t;t++){16>t||(s[t]=r.M(1,s[t-3]^s[t-8]^s[t-14]^s[t-16]));const e=r.M(5,o)+r.D(t,f,c,a)+l+s[t]+r.B[n.floor(t/20)]|0;l=a,a=c,c=r.M(30,f),f=o,o=e}i[0]=i[0]+o|0,i[1]=i[1]+f|0,i[2]=i[2]+c|0,i[3]=i[3]+a|0,i[4]=i[4]+l|0}};const z={getRandomValues(t){const e=new o(t.buffer),r=t=>{let e=987654321;const r=4294967295;return()=>(e=36969*(65535&e)+(e>>16)&r,(((e<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r)/4294967296+.5)*(n.random()>.5?1:-1))};for(let i,s=0;s<t.length;s+=4){const t=r(4294967296*(i||n.random()));i=987654071*t(),e[s/4]=4294967296*t()|0}return t}},_={importKey:t=>new _.R(g.m.v(t)),U(t,e,n,i){if(n=n||1e4,0>i||0>n)throw new r("invalid params to pbkdf2");const s=1+(i>>5)<<2;let o,f,a,l,u;const w=new ArrayBuffer(s),h=new c(w);let d=0;const p=v;for(e=g.m.v(e),u=1;(s||1)>d;u++){for(o=f=t.encrypt(p.concat(e,[u])),a=1;n>a;a++)for(f=t.encrypt(f),l=0;l<f.length;l++)o[l]^=f[l];for(a=0;(s||1)>d&&a<o.length;a++)h.setInt32(d,o[a]),d+=4}return w.slice(0,i/8)},R:class{constructor(t){const e=this,n=e.T=S.g,r=[[],[]],i=n.prototype.blockSize/32;e.j=[new n,new n],t.length>i&&(t=n.hash(t));for(let e=0;i>e;e++)r[0][e]=909522486^t[e],r[1][e]=1549556828^t[e];e.j[0].update(r[0]),e.j[1].update(r[1]),e.H=new n(e.j[0])}reset(){const t=this;t.H=new t.T(t.j[0]),t.K=!1}update(t){this.K=!0,this.H.update(t)}digest(){const t=this,e=t.H.P(),n=new t.T(t.j[1]).update(e).P();return t.reset(),n}encrypt(t){if(this.K)throw new r("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},C={name:"PBKDF2"},I=e.assign({hash:{name:"HMAC"}},C),A=e.assign({iterations:1e3,hash:{name:"SHA-1"}},C),x=["deriveBits"],V=[8,12,16],P=[16,24,32],B=[0,0,0,0],D=void 0!==l,E=D&&void 0!==l.subtle,M=g.m,R=class{constructor(t){const e=this;e.L=[[[],[],[],[],[]],[[],[],[],[],[]]],e.L[0][0][0]||e.W();const n=e.L[0][4],i=e.L[1],s=t.length;let o,f,c,a=1;if(4!==s&&6!==s&&8!==s)throw new r("invalid aes key size");for(e.B=[f=t.slice(0),c=[]],o=s;4*s+28>o;o++){let t=f[o-1];(o%s==0||8===s&&o%s==4)&&(t=n[t>>>24]<<24^n[t>>16&255]<<16^n[t>>8&255]<<8^n[255&t],o%s==0&&(t=t<<8^t>>>24^a<<24,a=a<<1^283*(a>>7))),f[o]=f[o-s]^t}for(let t=0;o;t++,o--){const e=f[3&t?o:o-4];c[t]=4>=o||4>t?e:i[0][n[e>>>24]]^i[1][n[e>>16&255]]^i[2][n[e>>8&255]]^i[3][n[255&e]]}}encrypt(t){return this.F(t,0)}decrypt(t){return this.F(t,1)}W(){const t=this.L[0],e=this.L[1],n=t[4],r=e[4],i=[],s=[];let o,f,c,a;for(let t=0;256>t;t++)s[(i[t]=t<<1^283*(t>>7))^t]=t;for(let l=o=0;!n[l];l^=f||1,o=s[o]||1){let s=o^o<<1^o<<2^o<<3^o<<4;s=s>>8^255&s^99,n[l]=s,r[s]=l,a=i[c=i[f=i[l]]];let u=16843009*a^65537*c^257*f^16843008*l,w=257*i[s]^16843008*s;for(let n=0;4>n;n++)t[n][l]=w=w<<24^w>>>8,e[n][s]=u=u<<24^u>>>8}for(let n=0;5>n;n++)t[n]=t[n].slice(0),e[n]=e[n].slice(0)}F(t,e){if(4!==t.length)throw new r("invalid aes block size");const n=this.B[e],i=n.length/4-2,s=[0,0,0,0],o=this.L[e],f=o[0],c=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=t[0]^n[0],y=t[e?3:1]^n[1],b=t[2]^n[2],m=t[e?1:3]^n[3],k=4;for(let t=0;i>t;t++)w=f[p>>>24]^c[y>>16&255]^a[b>>8&255]^l[255&m]^n[k],h=f[y>>>24]^c[b>>16&255]^a[m>>8&255]^l[255&p]^n[k+1],d=f[b>>>24]^c[m>>16&255]^a[p>>8&255]^l[255&y]^n[k+2],m=f[m>>>24]^c[p>>16&255]^a[y>>8&255]^l[255&b]^n[k+3],k+=4,p=w,y=h,b=d;for(let t=0;4>t;t++)s[e?3&-t:t]=u[p>>>24]<<24^u[y>>16&255]<<16^u[b>>8&255]<<8^u[255&m]^n[k++],w=p,p=y,y=b,b=m,m=w;return s}},U=class{constructor(t,e){this.O=t,this.q=e,this.G=e}reset(){this.G=this.q}update(t){return this.J(this.O,t,this.G)}N(t){if(255==(t>>24&255)){let e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}X(t){0===(t[0]=this.N(t[0]))&&(t[1]=this.N(t[1]))}J(t,e,n){let r;if(!(r=e.length))return[];const i=v.u(e);for(let i=0;r>i;i+=4){this.X(n);const r=t.encrypt(n);e[i]^=r[0],e[i+1]^=r[1],e[i+2]^=r[2],e[i+3]^=r[3]}return v.h(e,i)}},T=_.R;class j extends w{constructor(n,s,o){let f;super({start(){e.assign(this,{ready:new Promise((t=>this.Y=t)),password:n,signed:s,Z:o-1,pending:new i(0)})},async transform(e,n){if(e&&e.length){const s=this;if(s.password){const n=s.password;s.password=null;const i=F(e,0,V[s.Z]+2);await(async(t,e,n)=>{await L(t,n,F(e,0,V[t.Z]));const i=F(e,V[t.Z]),s=t.keys.passwordVerification;if(s[0]!=i[0]||s[1]!=i[1])throw new r("Invalid pasword")})(s,i,n),s.$=new U(new R(s.keys.key),t.from(B)),s.tt=new T(s.keys.et),e=F(e,V[s.Z]+2),s.Y()}else await s.ready;const o=new i(e.length-10-(e.length-10)%16);n.enqueue(K(s,e,o,0,10,!0))}},async flush(t){const e=this;await e.ready;const n=e.pending,r=F(n,0,n.length-10),s=F(n,n.length-10);let o=new i(0);if(r.length){const t=M.v(r);e.tt.update(t);const n=e.$.update(t);o=M.k(n)}if(f.valid=!0,e.signed){const t=F(M.k(e.tt.digest()),0,10);for(let e=0;10>e;e++)t[e]!=s[e]&&(f.valid=!1)}t.enqueue(o)}}),f=this}}class H extends w{constructor(n,r){let s;super({start(){e.assign(this,{ready:new Promise((t=>this.Y=t)),password:n,Z:r-1,pending:new i(0)})},async transform(e,n){if(e&&e.length){const r=this;let s=new i(0);if(r.password){const e=r.password;r.password=null,s=await(async(t,e)=>{const n=(r=new i(V[t.Z]),D&&"function"==typeof l.getRandomValues?l.getRandomValues(r):z.getRandomValues(r));var r;return await L(t,e,n),W(n,t.keys.passwordVerification)})(r,e),r.$=new U(new R(r.keys.key),t.from(B)),r.tt=new T(r.keys.et),r.Y()}else await r.ready;const o=new i(s.length+e.length-e.length%16);o.set(s,0),n.enqueue(K(r,e,o,s.length,0))}},async flush(t){const e=this;await e.ready;let n=new i(0);if(e.pending.length){const t=e.$.update(M.v(e.pending));e.tt.update(t),n=M.k(t)}s.signature=M.k(e.tt.digest()).slice(0,10),t.enqueue(W(n,s.signature))}}),s=this}}function K(t,e,n,r,s,o){const f=e.length-s;let c;for(t.pending.length&&(e=W(t.pending,e),n=((t,e)=>{if(e&&e>t.length){const n=t;(t=new i(e)).set(n,0)}return t})(n,f-f%16)),c=0;f-16>=c;c+=16){const i=M.v(F(e,c,c+16));o&&t.tt.update(i);const s=t.$.update(i);o||t.tt.update(s),n.set(M.k(s),c+r)}return t.pending=F(e,c),n}async function L(t,n,r){const s=(t=>{if(void 0===a){const e=new i((t=unescape(encodeURIComponent(t))).length);for(let n=0;n<e.length;n++)e[n]=t.charCodeAt(n);return e}return(new a).encode(t)})(n),o=await((t,e,n,r,i)=>D&&E&&"function"==typeof l.subtle.importKey?l.subtle.importKey("raw",e,n,!1,i):_.importKey(e))(0,s,I,0,x),f=await(async(t,e,n)=>D&&E&&"function"==typeof l.subtle.deriveBits?await l.subtle.deriveBits(t,e,n):_.U(e,t.salt,A.iterations,n))(e.assign({salt:r},A),o,8*(2*P[t.Z]+2)),c=new i(f);t.keys={key:M.v(F(c,0,P[t.Z])),et:M.v(F(c,P[t.Z],2*P[t.Z])),passwordVerification:F(c,2*P[t.Z])}}function W(t,e){let n=t;return t.length+e.length&&(n=new i(t.length+e.length),n.set(t,0),n.set(e,t.length)),n}function F(t,e,n){return t.subarray(e,n)}class O extends w{constructor(t,n){let i;super({start(){e.assign(this,{password:t,passwordVerification:n}),N(this,t)},transform(t,e){if(t&&t.length){const n=this;if(n.password){const e=G(n,t.subarray(0,12));if(n.password=null,e[11]!=n.passwordVerification)throw new r("Invalid pasword");t=t.subarray(12)}e.enqueue(G(n,t))}},flush(){i.valid=!0}}),i=this}}class q extends w{constructor(t,n){super({start(){e.assign(this,{password:t,passwordVerification:n}),N(this,t)},transform(t,e){if(t&&t.length){const n=this;let r,s;if(n.password){n.password=null;const e=l.getRandomValues(new i(12));e[11]=n.passwordVerification,r=new i(t.length+e.length),r.set(J(n,e),0),s=12}else r=new i(t.length),s=0;r.set(J(n,t),s),e.enqueue(r)}},flush(){}})}}function G(t,e){const n=new i(e.length);for(let r=0;r<e.length;r++)n[r]=X(t)^e[r],Q(t,n[r]);return n}function J(t,e){const n=new i(e.length);for(let r=0;r<e.length;r++)n[r]=X(t)^e[r],Q(t,e[r]);return n}function N(t,e){t.keys=[305419896,591751049,878082192],t.nt=new m(t.keys[0]),t.rt=new m(t.keys[2]);for(let n=0;n<e.length;n++)Q(t,e.charCodeAt(n))}function Q(t,e){t.nt.append([e]),t.keys[0]=~t.nt.get(),t.keys[1]=Z(t.keys[1]+Y(t.keys[0])),t.keys[1]=Z(n.imul(t.keys[1],134775813)+1),t.rt.append([t.keys[1]>>>24]),t.keys[2]=~t.rt.get()}function X(t){const e=2|t.keys[2];return Y(n.imul(e,1^e)>>>8)}function Y(t){return 255&t}function Z(t){return 4294967295&t}class $ extends w{constructor(t,e){super({start(){this.it=new t(e)},transform(t,e){(t=this.it.append(t))&&e.enqueue(t)},flush(t){const e=this.it.flush();e&&t.enqueue(e)}})}}class tt{constructor(t,{signature:n,password:r,signed:i,compressed:s,zipCrypto:o,passwordVerification:f,encryptionStrength:c,st:a},{ot:l}){const u=this;u.start=async()=>{const w=!!r;if(e.assign(u,{signature:n,encrypted:w,signed:i,compressed:s,zipCrypto:o,stream:new h({async pull(t){const{value:e,done:n}=await u.pull();t.enqueue(e),(n||u.aborted)&&t.close()}})}),w&&(o?u.stream=u.stream.pipeThrough(new O(r,f)):(u.ft=new j(r,i,c),u.stream=u.stream.pipeThrough(u.ft))),s&&(u.stream=void 0!==a&&!a||void 0===y?u.stream.pipeThrough(new $(t,{ot:l})):u.stream.pipeThrough(new y("deflate-raw"))),(!w||o)&&i){const t=u.stream.tee();u.stream=t[0],u.ct=t[1].pipeThrough(new k)}u.lt=u.stream.getReader(),await u.read()},u.abort=()=>u.aborted=!0}async read(){const t=this,{value:e,done:n}=await t.lt.read();if(e&&e.length&&t.ut({value:{data:new i(e)}}),n){let e;if(t.encrypted&&!t.zipCrypto&&!t.ft.valid)throw new r("Invalid signature");if((!t.encrypted||t.zipCrypto)&&t.signed){e=await t.ct.getReader().read();const n=new c(e.value.buffer);if(t.signature!=n.getUint32(0,!1))throw new r("Invalid signature")}t.ut({value:{signature:e},done:n})}else await t.read()}}class et{constructor(t,{encrypted:n,signed:r,compressed:i,level:s,zipCrypto:o,password:f,passwordVerification:c,encryptionStrength:a,st:l},{ot:u}){const w=this;w.start=async()=>{if(e.assign(this,{encrypted:n,signed:r,compressed:i,zipCrypto:o,stream:new h({async pull(t){const{value:e,done:n}=await w.pull();t.enqueue(e),(n||w.aborted)&&t.close()}})}),(!n||o)&&r){const t=w.stream.tee();w.stream=t[0],w.ct=t[1].pipeThrough(new k({ot:u}))}i&&(w.stream=void 0!==l&&!l||void 0===p?w.stream.pipeThrough(new $(t,{ot:u,level:s})):w.stream.pipeThrough(new p("deflate-raw"))),n&&(o?w.stream=w.stream.pipeThrough(new q(f,c)):(w.wt=new H(f,a),w.stream=w.stream.pipeThrough(w.wt))),w.lt=w.stream.getReader(),await w.read()},w.abort=()=>w.aborted=!0}async read(){const t=this,{value:e,done:n}=await t.lt.read();if(e&&e.length&&t.ut({value:{data:e}}),n){let e;t.encrypted&&!t.zipCrypto&&(e=t.wt.signature),t.encrypted&&!t.zipCrypto||!t.signed||(e=await t.ct.getReader().read(),e=new c(e.value.buffer).getUint32(0)),t.ut({value:{signature:e},done:n})}else await t.read()}}const nt=new Map;let rt,it=0;function st(t){if(t.data){const e=t.data.value.data;if(e&&e.length)try{t.data.value.data=e.buffer,u(t,[t.data.value.data])}catch(e){u(t)}else u(t)}else u(t)}addEventListener("message",(async t=>{const e=t.data,n=e.type;try{if("start"==n&&(async t=>{try{t.scripts&&t.scripts.length&&importScripts.apply(void 0,t.scripts);const e=t.options;let n;self.initCodec&&self.initCodec(),e.codecType.startsWith("deflate")?n=self.Deflate:e.codecType.startsWith("inflate")&&(n=self.Inflate),rt=((t,e,n)=>e.codecType.startsWith("deflate")?new et(t,e,n):e.codecType.startsWith("inflate")?new tt(t,e,n):void 0)(n,e,t.config),rt.ut=t=>st({type:"data",data:t}),rt.onerror=t=>u({error:{message:t.message,stack:t.stack}}),rt.pull=()=>{const t=new Promise(((t,e)=>nt.set(it,{resolve:t,reject:e})));return st({type:"pull",messageId:it}),it++,t},await rt.start()}catch(t){u({error:{message:t.message,stack:t.stack}})}})(e),"data"==n){const{resolve:t}=nt.get(e.messageId);nt.delete(e.messageId),t({value:new i(e.data),done:e.done})}"abort"==n&&rt.abort()}catch(t){u({error:{message:t.message,stack:t.stack}})}}));const ot=(()=>{const e=-2;function o(e){return f(e.map((([e,n])=>new t(e).fill(n,0,e))))}function f(e){return e.reduce(((e,n)=>e.concat(t.isArray(n)?f(n):n)),[])}const c=[0,1,2,3].concat(...o([[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 t=this;function e(t,e){let n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}t.ht=r=>{const i=t.dt,s=t.bt.yt,o=t.bt.kt;let f,c,a,l=-1;for(r.vt=0,r.gt=573,f=0;o>f;f++)0!==i[2*f]?(r.St[++r.vt]=l=f,r.zt[f]=0):i[2*f+1]=0;for(;2>r.vt;)a=r.St[++r.vt]=2>l?++l:0,i[2*a]=1,r.zt[a]=0,r._t--,s&&(r.Ct-=s[2*a+1]);for(t.It=l,f=n.floor(r.vt/2);f>=1;f--)r.At(i,f);a=o;do{f=r.St[1],r.St[1]=r.St[r.vt--],r.At(i,1),c=r.St[1],r.St[--r.gt]=f,r.St[--r.gt]=c,i[2*a]=i[2*f]+i[2*c],r.zt[a]=n.max(r.zt[f],r.zt[c])+1,i[2*f+1]=i[2*c+1]=a,r.St[1]=a++,r.At(i,1)}while(r.vt>=2);r.St[--r.gt]=r.St[1],(e=>{const n=t.dt,r=t.bt.yt,i=t.bt.xt,s=t.bt.Vt,o=t.bt.Pt;let f,c,a,l,u,w,h=0;for(l=0;15>=l;l++)e.Bt[l]=0;for(n[2*e.St[e.gt]+1]=0,f=e.gt+1;573>f;f++)c=e.St[f],l=n[2*n[2*c+1]+1]+1,l>o&&(l=o,h++),n[2*c+1]=l,c>t.It||(e.Bt[l]++,u=0,s>c||(u=i[c-s]),w=n[2*c],e._t+=w*(l+u),r&&(e.Ct+=w*(r[2*c+1]+u)));if(0!==h){do{for(l=o-1;0===e.Bt[l];)l--;e.Bt[l]--,e.Bt[l+1]+=2,e.Bt[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(c=e.Bt[l];0!==c;)a=e.St[--f],a>t.It||(n[2*a+1]!=l&&(e._t+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),c--)}})(r),((t,n,r)=>{const i=[];let s,o,f,c=0;for(s=1;15>=s;s++)i[s]=c=c+r[s-1]<<1;for(o=0;n>=o;o++)f=t[2*o+1],0!==f&&(t[2*o]=e(i[f]++,f))})(i,t.It,r.Bt)}}function l(t,e,n,r,i){const s=this;s.yt=t,s.xt=e,s.Vt=n,s.kt=r,s.Pt=i}a.Dt=[0,1,2,3,4,5,6,7].concat(...o([[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.Et=[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.Mt=[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.Rt=t=>256>t?c[t]:c[256+(t>>>7)],a.Ut=[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.Tt=[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.jt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],a.Ht=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const u=o([[144,8],[112,9],[24,7],[8,8]]);l.Kt=f([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(((t,e)=>[t,u[e]])));const w=o([[30,5]]);function h(t,e,n,r,i){const s=this;s.Lt=t,s.Wt=e,s.Ft=n,s.Ot=r,s.qt=i}l.Gt=f([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(((t,e)=>[t,w[e]]))),l.Jt=new l(l.Kt,a.Ut,257,286,15),l.Nt=new l(l.Gt,a.Tt,0,30,15),l.Qt=new l(null,a.jt,0,19,7);const d=[new h(0,0,0,0,0),new h(4,4,8,4,1),new h(4,5,16,8,1),new h(4,6,32,32,1),new h(4,4,16,16,2),new h(8,16,32,32,2),new h(8,16,128,128,2),new h(8,32,128,256,2),new h(32,128,258,1024,2),new h(32,258,258,4096,2)],p=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],y=113,b=666,m=262;function k(t,e,n,r){const i=t[2*e],s=t[2*n];return s>i||i==s&&r[e]<=r[n]}function v(){const t=this;let r,o,f,c,u,w,h,v,g,S,z,_,C,I,A,x,V,P,B,D,E,M,R,U,T,j,H,K,L,W,F,O,q;const G=new a,J=new a,N=new a;let Q,X,Y,Z,$,tt;function et(){let e;for(e=0;286>e;e++)F[2*e]=0;for(e=0;30>e;e++)O[2*e]=0;for(e=0;19>e;e++)q[2*e]=0;F[512]=1,t._t=t.Ct=0,X=Y=0}function nt(t,e){let n,r=-1,i=t[1],s=0,o=7,f=4;0===i&&(o=138,f=3),t[2*(e+1)+1]=65535;for(let c=0;e>=c;c++)n=i,i=t[2*(c+1)+1],++s<o&&n==i||(f>s?q[2*n]+=s:0!==n?(n!=r&&q[2*n]++,q[32]++):s>10?q[36]++:q[34]++,s=0,r=n,0===i?(o=138,f=3):n==i?(o=6,f=3):(o=7,f=4))}function rt(e){t.Xt[t.pending++]=e}function it(t){rt(255&t),rt(t>>>8&255)}function st(t,e){let n;const r=e;tt>16-r?(n=t,$|=n<<tt&65535,it($),$=n>>>16-tt,tt+=r-16):($|=t<<tt&65535,tt+=r)}function ot(t,e){const n=2*t;st(65535&e[n],65535&e[n+1])}function ft(t,e){let n,r,i=-1,s=t[1],o=0,f=7,c=4;for(0===s&&(f=138,c=3),n=0;e>=n;n++)if(r=s,s=t[2*(n+1)+1],++o>=f||r!=s){if(c>o)do{ot(r,q)}while(0!=--o);else 0!==r?(r!=i&&(ot(r,q),o--),ot(16,q),st(o-3,2)):o>10?(ot(18,q),st(o-11,7)):(ot(17,q),st(o-3,3));o=0,i=r,0===s?(f=138,c=3):r==s?(f=6,c=3):(f=7,c=4)}}function ct(){16==tt?(it($),$=0,tt=0):8>tt||(rt(255&$),$>>>=8,tt-=8)}function at(e,r){let i,s,o;if(t.Yt[X]=e,t.Zt[X]=255&r,X++,0===e?F[2*r]++:(Y++,e--,F[2*(a.Dt[r]+256+1)]++,O[2*a.Rt(e)]++),0==(8191&X)&&H>2){for(i=8*X,s=E-V,o=0;30>o;o++)i+=O[2*o]*(5+a.Tt[o]);if(i>>>=3,Y<n.floor(X/2)&&i<n.floor(s/2))return!0}return X==Q-1}function lt(e,n){let r,i,s,o,f=0;if(0!==X)do{r=t.Yt[f],i=t.Zt[f],f++,0===r?ot(i,e):(s=a.Dt[i],ot(s+256+1,e),o=a.Ut[s],0!==o&&(i-=a.Et[s],st(i,o)),r--,s=a.Rt(r),ot(s,n),o=a.Tt[s],0!==o&&(r-=a.Mt[s],st(r,o)))}while(X>f);ot(256,e),Z=e[513]}function ut(){tt>8?it($):tt>0&&rt(255&$),$=0,tt=0}function wt(e,n,r){st(0+(r?1:0),3),((e,n)=>{ut(),Z=8,it(n),it(~n),t.Xt.set(v.subarray(e,e+n),t.pending),t.pending+=n})(e,n)}function ht(e){((e,n,r)=>{let i,s,o=0;H>0?(G.ht(t),J.ht(t),o=(()=>{let e;for(nt(F,G.It),nt(O,J.It),N.ht(t),e=18;e>=3&&0===q[2*a.Ht[e]+1];e--);return t._t+=14+3*(e+1),e})(),i=t._t+3+7>>>3,s=t.Ct+3+7>>>3,s>i||(i=s)):i=s=n+5,n+4>i||-1==e?s==i?(st(2+(r?1:0),3),lt(l.Kt,l.Gt)):(st(4+(r?1:0),3),((t,e,n)=>{let r;for(st(t-257,5),st(e-1,5),st(n-4,4),r=0;n>r;r++)st(q[2*a.Ht[r]+1],3);ft(F,t-1),ft(O,e-1)})(G.It+1,J.It+1,o+1),lt(F,O)):wt(e,n,r),et(),r&&ut()})(0>V?-1:V,E-V,e),V=E,r.$t()}function dt(){let t,e,n,i;do{if(i=g-R-E,0===i&&0===E&&0===R)i=u;else if(-1==i)i--;else if(E>=u+u-m){v.set(v.subarray(u,u+u),0),M-=u,E-=u,V-=u,t=C,n=t;do{e=65535&z[--n],z[n]=u>e?0:e-u}while(0!=--t);t=u,n=t;do{e=65535&S[--n],S[n]=u>e?0:e-u}while(0!=--t);i+=u}if(0===r.te)return;t=r.ee(v,E+R,i),R+=t,3>R||(_=255&v[E],_=(_<<x^255&v[E+1])&A)}while(m>R&&0!==r.te)}function pt(t){let e,n,r=T,i=E,s=U;const o=E>u-m?E-(u-m):0;let f=W;const c=h,a=E+258;let l=v[i+s-1],w=v[i+s];L>U||(r>>=2),f>R&&(f=R);do{if(e=t,v[e+s]==w&&v[e+s-1]==l&&v[e]==v[i]&&v[++e]==v[i+1]){i+=2,e++;do{}while(v[++i]==v[++e]&&v[++i]==v[++e]&&v[++i]==v[++e]&&v[++i]==v[++e]&&v[++i]==v[++e]&&v[++i]==v[++e]&&v[++i]==v[++e]&&v[++i]==v[++e]&&a>i);if(n=258-(a-i),i=a-258,n>s){if(M=t,s=n,n>=f)break;l=v[i+s-1],w=v[i+s]}}}while((t=65535&S[t&c])>o&&0!=--r);return s>R?R:s}t.zt=[],t.Bt=[],t.St=[],F=[],O=[],q=[],t.At=(e,n)=>{const r=t.St,i=r[n];let s=n<<1;for(;s<=t.vt&&(s<t.vt&&k(e,r[s+1],r[s],t.zt)&&s++,!k(e,i,r[s],t.zt));)r[n]=r[s],n=s,s<<=1;r[n]=i},t.ne=(r,a,p,b,m,k)=>(b||(b=8),m||(m=8),k||(k=0),r.re=null,-1==a&&(a=6),1>m||m>9||8!=b||9>p||p>15||0>a||a>9||0>k||k>2?e:(r.ie=t,w=p,u=1<<w,h=u-1,I=m+7,C=1<<I,A=C-1,x=n.floor((I+3-1)/3),v=new i(2*u),S=[],z=[],Q=1<<m+6,t.Xt=new i(4*Q),f=4*Q,t.Yt=new s(Q),t.Zt=new i(Q),H=a,K=k,(e=>(e.se=e.oe=0,e.re=null,t.pending=0,t.fe=0,o=y,c=0,G.dt=F,G.bt=l.Jt,J.dt=O,J.bt=l.Nt,N.dt=q,N.bt=l.Qt,$=0,tt=0,Z=8,et(),(()=>{g=2*u,z[C-1]=0;for(let t=0;C-1>t;t++)z[t]=0;j=d[H].Wt,L=d[H].Lt,W=d[H].Ft,T=d[H].Ot,E=0,V=0,R=0,P=U=2,D=0,_=0})(),0))(r))),t.ce=()=>42!=o&&o!=y&&o!=b?e:(t.Zt=null,t.Yt=null,t.Xt=null,z=null,S=null,v=null,t.ie=null,o==y?-3:0),t.ae=(t,n,r)=>{let i=0;return-1==n&&(n=6),0>n||n>9||0>r||r>2?e:(d[H].qt!=d[n].qt&&0!==t.se&&(i=t.le(1)),H!=n&&(H=n,j=d[H].Wt,L=d[H].Lt,W=d[H].Ft,T=d[H].Ot),K=r,i)},t.ue=(t,n,r)=>{let i,s=r,f=0;if(!n||42!=o)return e;if(3>s)return 0;for(s>u-m&&(s=u-m,f=r-s),v.set(n.subarray(f,f+s),0),E=s,V=s,_=255&v[0],_=(_<<x^255&v[1])&A,i=0;s-3>=i;i++)_=(_<<x^255&v[i+2])&A,S[i&h]=z[_],z[_]=i;return 0},t.le=(n,i)=>{let s,a,k,g,I;if(i>4||0>i)return e;if(!n.we||!n.he&&0!==n.te||o==b&&4!=i)return n.re=p[4],e;if(0===n.de)return n.re=p[7],-5;var T;if(r=n,g=c,c=i,42==o&&(a=8+(w-8<<4)<<8,k=(H-1&255)>>1,k>3&&(k=3),a|=k<<6,0!==E&&(a|=32),a+=31-a%31,o=y,rt((T=a)>>8&255),rt(255&T)),0!==t.pending){if(r.$t(),0===r.de)return c=-1,0}else if(0===r.te&&g>=i&&4!=i)return r.re=p[7],-5;if(o==b&&0!==r.te)return n.re=p[7],-5;if(0!==r.te||0!==R||0!=i&&o!=b){switch(I=-1,d[H].qt){case 0:I=(t=>{let e,n=65535;for(n>f-5&&(n=f-5);;){if(1>=R){if(dt(),0===R&&0==t)return 0;if(0===R)break}if(E+=R,R=0,e=V+n,(0===E||E>=e)&&(R=E-e,E=e,ht(!1),0===r.de))return 0;if(E-V>=u-m&&(ht(!1),0===r.de))return 0}return ht(4==t),0===r.de?4==t?2:0:4==t?3:1})(i);break;case 1:I=(t=>{let e,n=0;for(;;){if(m>R){if(dt(),m>R&&0==t)return 0;if(0===R)break}if(3>R||(_=(_<<x^255&v[E+2])&A,n=65535&z[_],S[E&h]=z[_],z[_]=E),0===n||(E-n&65535)>u-m||2!=K&&(P=pt(n)),3>P)e=at(0,255&v[E]),R--,E++;else if(e=at(E-M,P-3),R-=P,P>j||3>R)E+=P,P=0,_=255&v[E],_=(_<<x^255&v[E+1])&A;else{P--;do{E++,_=(_<<x^255&v[E+2])&A,n=65535&z[_],S[E&h]=z[_],z[_]=E}while(0!=--P);E++}if(e&&(ht(!1),0===r.de))return 0}return ht(4==t),0===r.de?4==t?2:0:4==t?3:1})(i);break;case 2:I=(t=>{let e,n,i=0;for(;;){if(m>R){if(dt(),m>R&&0==t)return 0;if(0===R)break}if(3>R||(_=(_<<x^255&v[E+2])&A,i=65535&z[_],S[E&h]=z[_],z[_]=E),U=P,B=M,P=2,0!==i&&j>U&&u-m>=(E-i&65535)&&(2!=K&&(P=pt(i)),5>=P&&(1==K||3==P&&E-M>4096)&&(P=2)),3>U||P>U)if(0!==D){if(e=at(0,255&v[E-1]),e&&ht(!1),E++,R--,0===r.de)return 0}else D=1,E++,R--;else{n=E+R-3,e=at(E-1-B,U-3),R-=U-1,U-=2;do{++E>n||(_=(_<<x^255&v[E+2])&A,i=65535&z[_],S[E&h]=z[_],z[_]=E)}while(0!=--U);if(D=0,P=2,E++,e&&(ht(!1),0===r.de))return 0}}return 0!==D&&(e=at(0,255&v[E-1]),D=0),ht(4==t),0===r.de?4==t?2:0:4==t?3:1})(i)}if(2!=I&&3!=I||(o=b),0==I||2==I)return 0===r.de&&(c=-1),0;if(1==I){if(1==i)st(2,3),ot(256,l.Kt),ct(),9>1+Z+10-tt&&(st(2,3),ot(256,l.Kt),ct()),Z=7;else if(wt(0,0,!1),3==i)for(s=0;C>s;s++)z[s]=0;if(r.$t(),0===r.de)return c=-1,0}}return 4!=i?0:1}}function g(){const t=this;t.pe=0,t.ye=0,t.te=0,t.se=0,t.de=0,t.oe=0}return g.prototype={ne:function(t,e){const n=this;return n.ie=new v,e||(e=15),n.ie.ne(n,t,e)},le:function(t){const n=this;return n.ie?n.ie.le(n,t):e},ce:function(){const t=this;if(!t.ie)return e;const n=t.ie.ce();return t.ie=null,n},ae:function(t,n){const r=this;return r.ie?r.ie.ae(r,t,n):e},ue:function(t,n){const r=this;return r.ie?r.ie.ue(r,t,n):e},ee:function(t,e,n){const r=this;let i=r.te;return i>n&&(i=n),0===i?0:(r.te-=i,t.set(r.he.subarray(r.pe,r.pe+i),e),r.pe+=i,r.se+=i,i)},$t:function(){const t=this;let e=t.ie.pending;e>t.de&&(e=t.de),0!==e&&(t.we.set(t.ie.Xt.subarray(t.ie.fe,t.ie.fe+e),t.ye),t.ye+=e,t.ie.fe+=e,t.oe+=e,t.de-=e,t.ie.pending-=e,0===t.ie.pending&&(t.ie.fe=0))}},function(t){const e=new g,s=(o=t&&t.ot?t.ot:65536)+5*(n.floor(o/16383)+1);var o;const f=new i(s);let c=t?t.level:-1;void 0===c&&(c=-1),e.ne(c),e.we=f,this.append=(t,n)=>{let o,c,a=0,l=0,u=0;const w=[];if(t.length){e.pe=0,e.he=t,e.te=t.length;do{if(e.ye=0,e.de=s,o=e.le(0),0!=o)throw new r("deflating: "+e.re);e.ye&&(e.ye==s?w.push(new i(f)):w.push(f.slice(0,e.ye))),u+=e.ye,n&&e.pe>0&&e.pe!=a&&(n(e.pe),a=e.pe)}while(e.te>0||0===e.de);return w.length>1?(c=new i(u),w.forEach((t=>{c.set(t,l),l+=t.length}))):c=w[0]||new i(0),c}},this.flush=()=>{let t,n,o=0,c=0;const a=[];do{if(e.ye=0,e.de=s,t=e.le(4),1!=t&&0!=t)throw new r("deflating: "+e.re);s-e.de>0&&a.push(f.slice(0,e.ye)),c+=e.ye}while(e.te>0||0===e.de);return e.ce(),n=new i(c),a.forEach((t=>{n.set(t,o),o+=t.length})),n}}})(),ft=(()=>{const t=-2,e=-3,s=-5,o=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],c=[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],a=[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],l=[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],u=[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],w=[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],h=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function d(){let t,n,r,i,o,c;function a(t,n,f,a,l,u,w,h,d,p,y){let b,m,k,v,g,S,z,_,C,I,A,x,V,P,B;I=0,g=f;do{r[t[n+I]]++,I++,g--}while(0!==g);if(r[0]==f)return w[0]=-1,h[0]=0,0;for(_=h[0],S=1;15>=S&&0===r[S];S++);for(z=S,S>_&&(_=S),g=15;0!==g&&0===r[g];g--);for(k=g,_>g&&(_=g),h[0]=_,P=1<<S;g>S;S++,P<<=1)if(0>(P-=r[S]))return e;if(0>(P-=r[g]))return e;for(r[g]+=P,c[1]=S=0,I=1,V=2;0!=--g;)c[V]=S+=r[I],V++,I++;g=0,I=0;do{0!==(S=t[n+I])&&(y[c[S]++]=g),I++}while(++g<f);for(f=c[k],c[0]=g=0,I=0,v=-1,x=-_,o[0]=0,A=0,B=0;k>=z;z++)for(b=r[z];0!=b--;){for(;z>x+_;){if(v++,x+=_,B=k-x,B=B>_?_:B,(m=1<<(S=z-x))>b+1&&(m-=b+1,V=z,B>S))for(;++S<B&&(m<<=1)>r[++V];)m-=r[V];if(B=1<<S,p[0]+B>1440)return e;o[v]=A=p[0],p[0]+=B,0!==v?(c[v]=g,i[0]=S,i[1]=_,S=g>>>x-_,i[2]=A-o[v-1]-S,d.set(i,3*(o[v-1]+S))):w[0]=A}for(i[1]=z-x,f>I?y[I]<a?(i[0]=256>y[I]?0:96,i[2]=y[I++]):(i[0]=u[y[I]-a]+16+64,i[2]=l[y[I++]-a]):i[0]=192,m=1<<z-x,S=g>>>x;B>S;S+=m)d.set(i,3*(A+S));for(S=1<<z-1;0!=(g&S);S>>>=1)g^=S;for(g^=S,C=(1<<x)-1;(g&C)!=c[v];)v--,x-=_,C=(1<<x)-1}return 0!==P&&1!=k?s:0}function d(e){let s;for(t||(t=[],n=[],r=new f(16),i=[],o=new f(15),c=new f(16)),n.length<e&&(n=[]),s=0;e>s;s++)n[s]=0;for(s=0;16>s;s++)r[s]=0;for(s=0;3>s;s++)i[s]=0;o.set(r.subarray(0,15),0),c.set(r.subarray(0,16),0)}this.be=(r,i,o,f,c)=>{let l;return d(19),t[0]=0,l=a(r,0,19,19,null,null,o,i,f,t,n),l==e?c.re="oversubscribed dynamic bit lengths tree":l!=s&&0!==i[0]||(c.re="incomplete dynamic bit lengths tree",l=e),l},this.me=(r,i,o,f,c,p,y,b,m)=>{let k;return d(288),t[0]=0,k=a(o,0,r,257,l,u,p,f,b,t,n),0!=k||0===f[0]?(k==e?m.re="oversubscribed literal/length tree":-4!=k&&(m.re="incomplete literal/length tree",k=e),k):(d(288),k=a(o,r,i,0,w,h,y,c,b,t,n),0!=k||0===c[0]&&r>257?(k==e?m.re="oversubscribed distance tree":k==s?(m.re="incomplete distance tree",k=e):-4!=k&&(m.re="empty distance tree with lengths",k=e),k):0)}}function p(){const n=this;let r,i,s,f,c=0,a=0,l=0,u=0,w=0,h=0,d=0,p=0,y=0,b=0;function m(t,n,r,i,s,f,c,a){let l,u,w,h,d,p,y,b,m,k,v,g,S,z,_,C;y=a.pe,b=a.te,d=c.ke,p=c.ve,m=c.write,k=m<c.read?c.read-m-1:c.end-m,v=o[t],g=o[n];do{for(;20>p;)b--,d|=(255&a.ge(y++))<<p,p+=8;if(l=d&v,u=r,w=i,C=3*(w+l),0!==(h=u[C]))for(;;){if(d>>=u[C+1],p-=u[C+1],0!=(16&h)){for(h&=15,S=u[C+2]+(d&o[h]),d>>=h,p-=h;15>p;)b--,d|=(255&a.ge(y++))<<p,p+=8;for(l=d&g,u=s,w=f,C=3*(w+l),h=u[C];;){if(d>>=u[C+1],p-=u[C+1],0!=(16&h)){for(h&=15;h>p;)b--,d|=(255&a.ge(y++))<<p,p+=8;if(z=u[C+2]+(d&o[h]),d>>=h,p-=h,k-=S,z>m){_=m-z;do{_+=c.end}while(0>_);if(h=c.end-_,S>h){if(S-=h,m-_>0&&h>m-_)do{c.Se[m++]=c.Se[_++]}while(0!=--h);else c.Se.set(c.Se.subarray(_,_+h),m),m+=h,_+=h,h=0;_=0}}else _=m-z,m-_>0&&2>m-_?(c.Se[m++]=c.Se[_++],c.Se[m++]=c.Se[_++],S-=2):(c.Se.set(c.Se.subarray(_,_+2),m),m+=2,_+=2,S-=2);if(m-_>0&&S>m-_)do{c.Se[m++]=c.Se[_++]}while(0!=--S);else c.Se.set(c.Se.subarray(_,_+S),m),m+=S,_+=S,S=0;break}if(0!=(64&h))return a.re="invalid distance code",S=a.te-b,S=S>p>>3?p>>3:S,b+=S,y-=S,p-=S<<3,c.ke=d,c.ve=p,a.te=b,a.se+=y-a.pe,a.pe=y,c.write=m,e;l+=u[C+2],l+=d&o[h],C=3*(w+l),h=u[C]}break}if(0!=(64&h))return 0!=(32&h)?(S=a.te-b,S=S>p>>3?p>>3:S,b+=S,y-=S,p-=S<<3,c.ke=d,c.ve=p,a.te=b,a.se+=y-a.pe,a.pe=y,c.write=m,1):(a.re="invalid literal/length code",S=a.te-b,S=S>p>>3?p>>3:S,b+=S,y-=S,p-=S<<3,c.ke=d,c.ve=p,a.te=b,a.se+=y-a.pe,a.pe=y,c.write=m,e);if(l+=u[C+2],l+=d&o[h],C=3*(w+l),0===(h=u[C])){d>>=u[C+1],p-=u[C+1],c.Se[m++]=u[C+2],k--;break}}else d>>=u[C+1],p-=u[C+1],c.Se[m++]=u[C+2],k--}while(k>=258&&b>=10);return S=a.te-b,S=S>p>>3?p>>3:S,b+=S,y-=S,p-=S<<3,c.ke=d,c.ve=p,a.te=b,a.se+=y-a.pe,a.pe=y,c.write=m,0}n.init=(t,e,n,o,c,a)=>{r=0,d=t,p=e,s=n,y=o,f=c,b=a,i=null},n.ze=(n,k,v)=>{let g,S,z,_,C,I,A,x=0,V=0,P=0;for(P=k.pe,_=k.te,x=n.ke,V=n.ve,C=n.write,I=C<n.read?n.read-C-1:n.end-C;;)switch(r){case 0:if(I>=258&&_>=10&&(n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,v=m(d,p,s,y,f,b,n,k),P=k.pe,_=k.te,x=n.ke,V=n.ve,C=n.write,I=C<n.read?n.read-C-1:n.end-C,0!=v)){r=1==v?7:9;break}l=d,i=s,a=y,r=1;case 1:for(g=l;g>V;){if(0===_)return n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);v=0,_--,x|=(255&k.ge(P++))<<V,V+=8}if(S=3*(a+(x&o[g])),x>>>=i[S+1],V-=i[S+1],z=i[S],0===z){u=i[S+2],r=6;break}if(0!=(16&z)){w=15&z,c=i[S+2],r=2;break}if(0==(64&z)){l=z,a=S/3+i[S+2];break}if(0!=(32&z)){r=7;break}return r=9,k.re="invalid literal/length code",v=e,n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);case 2:for(g=w;g>V;){if(0===_)return n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);v=0,_--,x|=(255&k.ge(P++))<<V,V+=8}c+=x&o[g],x>>=g,V-=g,l=p,i=f,a=b,r=3;case 3:for(g=l;g>V;){if(0===_)return n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);v=0,_--,x|=(255&k.ge(P++))<<V,V+=8}if(S=3*(a+(x&o[g])),x>>=i[S+1],V-=i[S+1],z=i[S],0!=(16&z)){w=15&z,h=i[S+2],r=4;break}if(0==(64&z)){l=z,a=S/3+i[S+2];break}return r=9,k.re="invalid distance code",v=e,n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);case 4:for(g=w;g>V;){if(0===_)return n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);v=0,_--,x|=(255&k.ge(P++))<<V,V+=8}h+=x&o[g],x>>=g,V-=g,r=5;case 5:for(A=C-h;0>A;)A+=n.end;for(;0!==c;){if(0===I&&(C==n.end&&0!==n.read&&(C=0,I=C<n.read?n.read-C-1:n.end-C),0===I&&(n.write=C,v=n._e(k,v),C=n.write,I=C<n.read?n.read-C-1:n.end-C,C==n.end&&0!==n.read&&(C=0,I=C<n.read?n.read-C-1:n.end-C),0===I)))return n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);n.Se[C++]=n.Se[A++],I--,A==n.end&&(A=0),c--}r=0;break;case 6:if(0===I&&(C==n.end&&0!==n.read&&(C=0,I=C<n.read?n.read-C-1:n.end-C),0===I&&(n.write=C,v=n._e(k,v),C=n.write,I=C<n.read?n.read-C-1:n.end-C,C==n.end&&0!==n.read&&(C=0,I=C<n.read?n.read-C-1:n.end-C),0===I)))return n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);v=0,n.Se[C++]=u,I--,r=0;break;case 7:if(V>7&&(V-=8,_++,P--),n.write=C,v=n._e(k,v),C=n.write,I=C<n.read?n.read-C-1:n.end-C,n.read!=n.write)return n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);r=8;case 8:return v=1,n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);case 9:return v=e,n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v);default:return v=t,n.ke=x,n.ve=V,k.te=_,k.se+=P-k.pe,k.pe=P,n.write=C,n._e(k,v)}},n.Ce=()=>{}}d.Ie=(t,e,n,r)=>(t[0]=9,e[0]=5,n[0]=c,r[0]=a,0);const y=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function b(n,r){const c=this;let a,l=0,u=0,w=0,h=0;const b=[0],m=[0],k=new p;let v=0,g=new f(4320);const S=new d;c.ve=0,c.ke=0,c.Se=new i(r),c.end=r,c.read=0,c.write=0,c.reset=(t,e)=>{e&&(e[0]=0),6==l&&k.Ce(t),l=0,c.ve=0,c.ke=0,c.read=c.write=0},c.reset(n,null),c._e=(t,e)=>{let n,r,i;return r=t.ye,i=c.read,n=(i>c.write?c.end:c.write)-i,n>t.de&&(n=t.de),0!==n&&e==s&&(e=0),t.de-=n,t.oe+=n,t.we.set(c.Se.subarray(i,i+n),r),r+=n,i+=n,i==c.end&&(i=0,c.write==c.end&&(c.write=0),n=c.write-i,n>t.de&&(n=t.de),0!==n&&e==s&&(e=0),t.de-=n,t.oe+=n,t.we.set(c.Se.subarray(i,i+n),r),r+=n,i+=n),t.ye=r,c.read=i,e},c.ze=(n,r)=>{let i,s,f,p,z,_,C,I;for(p=n.pe,z=n.te,s=c.ke,f=c.ve,_=c.write,C=_<c.read?c.read-_-1:c.end-_;;){let A,x,V,P,B,D,E,M;switch(l){case 0:for(;3>f;){if(0===z)return c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);r=0,z--,s|=(255&n.ge(p++))<<f,f+=8}switch(i=7&s,v=1&i,i>>>1){case 0:s>>>=3,f-=3,i=7&f,s>>>=i,f-=i,l=1;break;case 1:A=[],x=[],V=[[]],P=[[]],d.Ie(A,x,V,P),k.init(A[0],x[0],V[0],0,P[0],0),s>>>=3,f-=3,l=6;break;case 2:s>>>=3,f-=3,l=3;break;case 3:return s>>>=3,f-=3,l=9,n.re="invalid block type",r=e,c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r)}break;case 1:for(;32>f;){if(0===z)return c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);r=0,z--,s|=(255&n.ge(p++))<<f,f+=8}if((~s>>>16&65535)!=(65535&s))return l=9,n.re="invalid stored block lengths",r=e,c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);u=65535&s,s=f=0,l=0!==u?2:0!==v?7:0;break;case 2:if(0===z)return c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);if(0===C&&(_==c.end&&0!==c.read&&(_=0,C=_<c.read?c.read-_-1:c.end-_),0===C&&(c.write=_,r=c._e(n,r),_=c.write,C=_<c.read?c.read-_-1:c.end-_,_==c.end&&0!==c.read&&(_=0,C=_<c.read?c.read-_-1:c.end-_),0===C)))return c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);if(r=0,i=u,i>z&&(i=z),i>C&&(i=C),c.Se.set(n.ee(p,i),_),p+=i,z-=i,_+=i,C-=i,0!=(u-=i))break;l=0!==v?7:0;break;case 3:for(;14>f;){if(0===z)return c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);r=0,z--,s|=(255&n.ge(p++))<<f,f+=8}if(w=i=16383&s,(31&i)>29||(i>>5&31)>29)return l=9,n.re="too many length or distance symbols",r=e,c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);if(i=258+(31&i)+(i>>5&31),!a||a.length<i)a=[];else for(I=0;i>I;I++)a[I]=0;s>>>=14,f-=14,h=0,l=4;case 4:for(;4+(w>>>10)>h;){for(;3>f;){if(0===z)return c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);r=0,z--,s|=(255&n.ge(p++))<<f,f+=8}a[y[h++]]=7&s,s>>>=3,f-=3}for(;19>h;)a[y[h++]]=0;if(b[0]=7,i=S.be(a,b,m,g,n),0!=i)return(r=i)==e&&(a=null,l=9),c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);h=0,l=5;case 5:for(;i=w,258+(31&i)+(i>>5&31)>h;){let t,u;for(i=b[0];i>f;){if(0===z)return c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);r=0,z--,s|=(255&n.ge(p++))<<f,f+=8}if(i=g[3*(m[0]+(s&o[i]))+1],u=g[3*(m[0]+(s&o[i]))+2],16>u)s>>>=i,f-=i,a[h++]=u;else{for(I=18==u?7:u-14,t=18==u?11:3;i+I>f;){if(0===z)return c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);r=0,z--,s|=(255&n.ge(p++))<<f,f+=8}if(s>>>=i,f-=i,t+=s&o[I],s>>>=I,f-=I,I=h,i=w,I+t>258+(31&i)+(i>>5&31)||16==u&&1>I)return a=null,l=9,n.re="invalid bit length repeat",r=e,c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);u=16==u?a[I-1]:0;do{a[I++]=u}while(0!=--t);h=I}}if(m[0]=-1,B=[],D=[],E=[],M=[],B[0]=9,D[0]=6,i=w,i=S.me(257+(31&i),1+(i>>5&31),a,B,D,E,M,g,n),0!=i)return i==e&&(a=null,l=9),r=i,c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);k.init(B[0],D[0],g,E[0],g,M[0]),l=6;case 6:if(c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,1!=(r=k.ze(c,n,r)))return c._e(n,r);if(r=0,k.Ce(n),p=n.pe,z=n.te,s=c.ke,f=c.ve,_=c.write,C=_<c.read?c.read-_-1:c.end-_,0===v){l=0;break}l=7;case 7:if(c.write=_,r=c._e(n,r),_=c.write,C=_<c.read?c.read-_-1:c.end-_,c.read!=c.write)return c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);l=8;case 8:return r=1,c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);case 9:return r=e,c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r);default:return r=t,c.ke=s,c.ve=f,n.te=z,n.se+=p-n.pe,n.pe=p,c.write=_,c._e(n,r)}}},c.Ce=t=>{c.reset(t,null),c.Se=null,g=null},c.Ae=(t,e,n)=>{c.Se.set(t.subarray(e,e+n),0),c.read=c.write=n},c.xe=()=>1==l?1:0}const m=13,k=[0,0,255,255];function v(){const n=this;function r(e){return e&&e.Ve?(e.se=e.oe=0,e.re=null,e.Ve.mode=7,e.Ve.Pe.reset(e,null),0):t}n.mode=0,n.method=0,n.Be=[0],n.De=0,n.marker=0,n.Ee=0,n.Me=t=>(n.Pe&&n.Pe.Ce(t),n.Pe=null,0),n.Re=(e,i)=>(e.re=null,n.Pe=null,8>i||i>15?(n.Me(e),t):(n.Ee=i,e.Ve.Pe=new b(e,1<<i),r(e),0)),n.Ue=(n,r)=>{let i,o;if(!n||!n.Ve||!n.he)return t;const f=n.Ve;for(r=4==r?s:0,i=s;;)switch(f.mode){case 0:if(0===n.te)return i;if(i=r,n.te--,n.se++,8!=(15&(f.method=n.ge(n.pe++)))){f.mode=m,n.re="unknown compression method",f.marker=5;break}if(8+(f.method>>4)>f.Ee){f.mode=m,n.re="invalid win size",f.marker=5;break}f.mode=1;case 1:if(0===n.te)return i;if(i=r,n.te--,n.se++,o=255&n.ge(n.pe++),((f.method<<8)+o)%31!=0){f.mode=m,n.re="incorrect header check",f.marker=5;break}if(0==(32&o)){f.mode=7;break}f.mode=2;case 2:if(0===n.te)return i;i=r,n.te--,n.se++,f.De=(255&n.ge(n.pe++))<<24&4278190080,f.mode=3;case 3:if(0===n.te)return i;i=r,n.te--,n.se++,f.De+=(255&n.ge(n.pe++))<<16&16711680,f.mode=4;case 4:if(0===n.te)return i;i=r,n.te--,n.se++,f.De+=(255&n.ge(n.pe++))<<8&65280,f.mode=5;case 5:return 0===n.te?i:(i=r,n.te--,n.se++,f.De+=255&n.ge(n.pe++),f.mode=6,2);case 6:return f.mode=m,n.re="need dictionary",f.marker=0,t;case 7:if(i=f.Pe.ze(n,i),i==e){f.mode=m,f.marker=0;break}if(0==i&&(i=r),1!=i)return i;i=r,f.Pe.reset(n,f.Be),f.mode=12;case 12:return n.te=0,1;case m:return e;default:return t}},n.Te=(e,n,r)=>{let i=0,s=r;if(!e||!e.Ve||6!=e.Ve.mode)return t;const o=e.Ve;return s<1<<o.Ee||(s=(1<<o.Ee)-1,i=r-s),o.Pe.Ae(n,i,s),o.mode=7,0},n.je=n=>{let i,o,f,c,a;if(!n||!n.Ve)return t;const l=n.Ve;if(l.mode!=m&&(l.mode=m,l.marker=0),0===(i=n.te))return s;for(o=n.pe,f=l.marker;0!==i&&4>f;)n.ge(o)==k[f]?f++:f=0!==n.ge(o)?0:4-f,o++,i--;return n.se+=o-n.pe,n.pe=o,n.te=i,l.marker=f,4!=f?e:(c=n.se,a=n.oe,r(n),n.se=c,n.oe=a,l.mode=7,0)},n.He=e=>e&&e.Ve&&e.Ve.Pe?e.Ve.Pe.xe():t}function g(){}return g.prototype={Re:function(t){const e=this;return e.Ve=new v,t||(t=15),e.Ve.Re(e,t)},Ue:function(e){const n=this;return n.Ve?n.Ve.Ue(n,e):t},Me:function(){const e=this;if(!e.Ve)return t;const n=e.Ve.Me(e);return e.Ve=null,n},je:function(){const e=this;return e.Ve?e.Ve.je(e):t},Te:function(e,n){const r=this;return r.Ve?r.Ve.Te(r,e,n):t},ge:function(t){return this.he[t]},ee:function(t,e){return this.he.subarray(t,t+e)}},function(t){const e=new g,o=t&&t.ot?n.floor(2*t.ot):131072,f=new i(o);let c=!1;e.Re(),e.we=f,this.append=(t,n)=>{const a=[];let l,u,w=0,h=0,d=0;if(0!==t.length){e.pe=0,e.he=t,e.te=t.length;do{if(e.ye=0,e.de=o,0!==e.te||c||(e.pe=0,c=!0),l=e.Ue(0),c&&l===s){if(0!==e.te)throw new r("inflating: bad input")}else if(0!==l&&1!==l)throw new r("inflating: "+e.re);if((c||1===l)&&e.te===t.length)throw new r("inflating: bad input");e.ye&&(e.ye===o?a.push(new i(f)):a.push(f.slice(0,e.ye))),d+=e.ye,n&&e.pe>0&&e.pe!=w&&(n(e.pe),w=e.pe)}while(e.te>0||0===e.de);return a.length>1?(u=new i(d),a.forEach((t=>{u.set(t,h),h+=t.length}))):u=a[0]||new i(0),u}},this.flush=()=>{e.Me()}}})();self.initCodec=()=>{self.Deflate=ot,self.Inflate=ft};\n'],{type:"text/javascript"}));e({workerScripts:{inflate:[t],deflate:[t]}})}})(T),T({Deflate:R,Inflate:E,baseURL:on}),e.BlobReader=Ke,e.BlobWriter=je,e.Data64URIReader=class extends Oe{constructor(e){super(),this.dataURI=e;let t=e.length;for(;"="==e.charAt(t-1);)t--;this.dataStart=e.indexOf(",")+1,this.size=s.floor(.75*(t-this.dataStart))}readUint8Array(e,t){const n=new d(t),r=4*s.floor(e/3),i=atob(this.dataURI.substring(r+this.dataStart,4*s.ceil((e+t)/3)+this.dataStart)),a=e-3*s.floor(r/4);for(let e=a;a+t>e;e++)n[e-a]=i.charCodeAt(e);return n}},e.Data64URIWriter=class extends Ze{constructor(e){super(),this.data="data:"+(e||"")+";base64,",this.pending=[]}writeUint8Array(e){super.writeUint8Array(e);let t=0,n=this.pending;const i=this.pending.length;for(this.pending="",t=0;t<3*s.floor((i+e.length)/3)-i;t++)n+=r.fromCharCode(e[t]);for(;t<e.length;t++)this.pending+=r.fromCharCode(e[t]);n.length>2?this.data+=k(n):this.pending=n}getData(){return this.data+k(this.pending)}},e.ERR_ABORT=Ue,e.ERR_BAD_FORMAT=St,e.ERR_CENTRAL_DIRECTORY_NOT_FOUND=Et,e.ERR_DUPLICATED_NAME=$t,e.ERR_ENCRYPTED=It,e.ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND=Rt,e.ERR_EOCDR_NOT_FOUND=zt,e.ERR_EOCDR_ZIP64_NOT_FOUND=Ct,e.ERR_EXTRAFIELD_ZIP64_NOT_FOUND=Dt,e.ERR_HTTP_RANGE=We,e.ERR_INVALID_COMMENT=Yt,e.ERR_INVALID_ENCRYPTION_STRENGTH=tn,e.ERR_INVALID_ENTRY_COMMENT=Jt,e.ERR_INVALID_ENTRY_NAME=Qt,e.ERR_INVALID_EXTRAFIELD_DATA=rn,e.ERR_INVALID_EXTRAFIELD_TYPE=nn,e.ERR_INVALID_PASSWORD=N,e.ERR_INVALID_SIGNATURE=xe,e.ERR_INVALID_VERSION=en,e.ERR_LOCAL_FILE_HEADER_NOT_FOUND=At,e.ERR_NOT_SEEKABLE_READER=Le,e.ERR_UNSUPPORTED_COMPRESSION=Ft,e.ERR_UNSUPPORTED_ENCRYPTION=Tt,e.ERR_UNSUPPORTED_FORMAT=sn,e.HttpRangeReader=class extends lt{constructor(e,t={}){t.useRangeHeader=!0,super(e,t)}},e.HttpReader=lt,e.ReadableStreamReader=class{constructor(e){this.readableStream=e,this.reader=e.getReader(),this.size=1/0,this.index=0,this.currentSize=0,this.pendingValue=new d}init(){this.initialized=!0}async readUint8Array(e,t){if(this.index!=e)throw new c(Le);let n,r=new d(t),i=0;do{const e=await this.reader.read();let{value:s}=e;if(n=e.done,s?this.currentSize+=s.length:(s=this.pendingValue,this.pendingValue=new d),this.pendingValue.length){const e=new d(this.pendingValue.length+s.length);e.set(this.pendingValue),e.set(s,this.pendingValue.length),this.pendingValue=new d,s=e}i+s.length>t?(r.set(s.subarray(0,t),i),this.pendingValue=s.subarray(t),i+=t):(r.set(s,i),i+=s.length)}while(t>i&&!n);return n&&this.size==1/0&&(this.size=this.currentSize),this.size<t&&(r=r.slice(0,this.size),t=this.size),this.index+=t,r}},e.Reader=Oe,e.TextReader=class extends Oe{constructor(e){super(),this.blobReader=new Ke(new p([e],{type:He}))}init(){super.init(),this.blobReader.init(),this.size=this.blobReader.size}readUint8Array(e,t){return this.blobReader.readUint8Array(e,t)}},e.TextWriter=class extends Ze{constructor(e){super(),this.encoding=e,this.blob=new p([],{type:He})}writeUint8Array(e){super.writeUint8Array(e),this.blob=new p([this.blob,e.buffer],{type:He})}getData(){if(this.blob.text)return this.blob.text();{const e=new m;return new w(((t,n)=>{e.onload=e=>t(e.target.result),e.onerror=()=>n(e.error),e.readAsText(this.blob,this.encoding)}))}}},e.Uint8ArrayReader=class extends Oe{constructor(e){super(),this.array=e,this.size=e.length}readUint8Array(e,t){return this.array.slice(e,e+t)}},e.Uint8ArrayWriter=class extends Ze{constructor(){super(),this.array=new d(0)}writeUint8Array(e){super.writeUint8Array(e);const t=this.array;this.array=new d(t.length+e.length),this.array.set(t),this.array.set(e,t.length)}getData(){return this.array}},e.WritableStreamWriter=class extends Ze{constructor(e){super(),this.writableStream=e,this.writer=e.getWriter()}async writeUint8Array(e){return await this.writer.ready,this.writer.write(e)}async getData(){return await this.writer.ready,await this.writer.close(),this.writableStream}},e.Writer=Ze,e.ZipReader=class{constructor(e,t={}){n.assign(this,{reader:e,options:t,config:I()})}async*getEntriesGenerator(e={}){const t=this,r=t.reader;if(r.initialized||await r.init(),22>r.size)throw new c(St);const i=await(async(e,t,n)=>{const r=new d(4);return Xt(r).setUint32(0,101010256,!0),await i(22)||await i(s.min(1048582,n));async function i(t){const i=n-t,s=await Gt(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}}})(r,0,r.size);if(!i)throw new c(zt);const a=Xt(i);let o=Kt(a,12),l=Kt(a,16),f=Zt(a,8),u=0;if(l==ct||o==ct||f==dt){const e=Xt(await Gt(r,i.offset-20,20));if(Kt(e,0)!=pt)throw new c(Ct);l=jt(e,8);let t=await Gt(r,l,56),n=Xt(t);const s=i.offset-20-56;if(Kt(n,0)!=ht&&l!=s){const e=l;l=s,u=l-e,t=await Gt(r,l,56),n=Xt(t)}if(Kt(n,0)!=ht)throw new c(Rt);f=jt(n,32),o=jt(n,40),l-=o}if(0>l||l>=r.size)throw new c(St);let h=0,p=await Gt(r,l,o),_=Xt(p);if(o){const e=i.offset-o;if(Kt(_,h)!=ut&&l!=e){const t=l;l=e,u=l-t,p=await Gt(r,l,o),_=Xt(p)}}if(0>l||l>=r.size)throw new c(St);for(let i=0;f>i;i++){const s=new Bt(r,t.config,t.options);if(Kt(_,h)!=ut)throw new c(Et);Mt(s,_,h+6);const a=!!s.bitFlag.languageEncodingFlag,o=h+46,l=o+s.filenameLength,d=l+s.extraFieldLength,g=Zt(_,h+4),m=0==(0&g);n.assign(s,{versionMadeBy:g,msDosCompatible:m,compressedSize:0,uncompressedSize:0,commentLength:Zt(_,h+32),directory:m&&16==(16&Ot(_,h+38)),offset:Kt(_,h+42)+u,internalFileAttribute:Kt(_,h+34),externalFileAttribute:Kt(_,h+38),rawFilename:p.subarray(o,l),filenameUTF8:a,commentUTF8:a,rawExtraField:p.subarray(l,d)});const b=d+s.commentLength;s.rawComment=p.subarray(d,b);const y=Ht(t,e,"filenameEncoding"),k=Ht(t,e,"commentEncoding"),[v,x]=await w.all([kt(s.rawFilename,s.filenameUTF8?Vt:y||Ut),kt(s.rawComment,s.commentUTF8?Vt:k||Ut)]);s.filename=v,s.comment=x,!s.directory&&s.filename.endsWith(gt)&&(s.directory=!0),await Wt(s,s,_,h+6);const S=new xt(s);if(S.getData=(e,t)=>s.getData(e,S,t),h=b,e.onprogress)try{e.onprogress(i+1,f,new xt(s))}catch(e){}yield S}return!0}async getEntries(e={}){const t=[],n=this.getEntriesGenerator(e);let r=n.next();for(;!(await r).done;)t.push((await r).value),r=n.next();return t}async close(){}},e.ZipWriter=class{constructor(e,t={}){n.assign(this,{writer:e,options:t,config:I(),files:new o,offset:e.size,pendingCompressedSize:0,pendingEntries:[],pendingAddFileCalls:new Set})}async add(e="",r,o={}){const l=this;if(ln>=l.config.maxWorkers)return new w(((t,n)=>l.pendingEntries.push({name:e,reader:r,options:o,resolve:t,reject:n})));{let p;ln++;try{return p=(async(e,r,o,l)=>{if(r=r.trim(),l.directory&&!r.endsWith(gt)?r+=gt:l.directory=r.endsWith(gt),e.files.has(r))throw new c($t);const p=B(r);if(p.length>dt)throw new c(Qt);const _=l.comment||"",g=B(_);if(g.length>dt)throw new c(Jt);const m=e.options.version||l.version||0;if(m>dt)throw new c(en);const b=e.options.versionMadeBy||l.versionMadeBy||20;if(b>dt)throw new c(en);const y=fn(e,l,"lastModDate")||new a,k=fn(e,l,"lastAccessDate"),v=fn(e,l,"creationDate"),x=fn(e,l,"password"),S=fn(e,l,"encryptionStrength")||3,z=fn(e,l,"zipCrypto");if(void 0!==x&&void 0!==S&&(1>S||S>3))throw new c(tn);let C=new d(0);const R=l.extraField;if(R){let e=0,t=0;R.forEach((t=>e+=4+t.length)),C=new d(e),R.forEach(((e,n)=>{if(n>dt)throw new c(nn);if(e.length>dt)throw new c(rn);_n(C,new f([n]),t),_n(C,new f([e.length]),t+2),_n(C,e,t+4),t+=4+e.length}))}let E=fn(e,l,"extendedTimestamp");void 0===E&&(E=!0);let A=0,D=fn(e,l,"keepOrder");void 0===D&&(D=!0);let I=0,T=fn(e,l,"msDosCompatible");void 0===T&&(T=!0);const F=fn(e,l,"internalFileAttribute")||0,V=fn(e,l,"externalFileAttribute")||0;o&&(o.initialized||await o.init(),I=o.size,A=(e=>e+5*(s.floor(e/16383)+1))(I));let U=l.zip64||e.options.zip64||!1;if(e.offset+e.pendingCompressedSize>=ct||I>=ct||A>=ct){if(!1===l.zip64||!1===e.options.zip64||!D)throw new c(sn);U=!0}e.pendingCompressedSize+=A,await w.resolve();const P=fn(e,l,"level"),M=fn(e,l,"useWebWorkers"),W=fn(e,l,"bufferedWrite");let L=fn(e,l,"dataDescriptor"),H=fn(e,l,"dataDescriptorSignature");const q=fn(e,l,"signal"),N=fn(e,l,"useCompressionStream");void 0===L&&(L=!0),L&&void 0===H&&(H=!1);const O=await(async(e,r,a,o)=>{const l=e.files,f=e.writer,p=t.from(l.values()).pop();let _,g,m,b={};l.set(r,b);try{let y,k,v;if(o.keepOrder&&(y=p&&p.lock),b.lock=v=new w((e=>m=e)),o.bufferedWrite||e.lockWrite||!o.dataDescriptor?(k=new je,k.init(),_=!0):(e.lockWrite=new w((e=>g=e)),f.initialized||await f.init(),k=f),b=await(async(e,t,r,a)=>{const{rawFilename:o,lastAccessDate:l,creationDate:c,password:f,level:h,zip64:p,zipCrypto:w,dataDescriptor:_,dataDescriptorSignature:g,directory:m,version:b,versionMadeBy:y,rawComment:k,rawExtraField:v,useWebWorkers:x,onprogress:S,signal:z,encryptionStrength:C,extendedTimestamp:R,msDosCompatible:E,internalFileAttribute:A,externalFileAttribute:D,useCompressionStream:I}=a,T=!(!f||!f.length),F=0!==h&&!m;let V,U,P;if(T&&!w){V=new d(an.length+2);const e=gn(V);hn(e,0,39169),_n(V,an,2),un(e,8,C)}else V=new d(0);if(R){P=new d(9+(l?4:0)+(c?4:0));const e=gn(P);hn(e,0,wt),hn(e,2,P.length-4),un(e,4,1+(l?2:0)+(c?4:0)),pn(e,5,s.floor(a.lastModDate.getTime()/1e3)),l&&pn(e,9,s.floor(l.getTime()/1e3)),c&&pn(e,13,s.floor(c.getTime()/1e3));try{U=new d(36);const e=gn(U),t=dn(a.lastModDate);hn(e,0,10),hn(e,2,32),hn(e,8,1),hn(e,10,24),wn(e,12,t),wn(e,20,dn(l)||t),wn(e,28,dn(c)||t)}catch(e){U=new d(0)}}else U=P=new d(0);const B={version:b||20,versionMadeBy:y,zip64:p,directory:!!m,filenameUTF8:!0,rawFilename:o,commentUTF8:!0,rawComment:k,rawExtraFieldZip64:new d(p?28:0),rawExtraFieldExtendedTimestamp:P,rawExtraFieldNTFS:U,rawExtraFieldAES:V,rawExtraField:v,extendedTimestamp:R,msDosCompatible:E,internalFileAttribute:A,externalFileAttribute:D};let M=B.uncompressedSize=0,W=_t;_&&(W|=8);let L=0;F&&(L=8),p&&(B.version=B.version>45?B.version:45),T&&(W|=1,w||(B.version=B.version>51?B.version:51,L=99,F&&(B.rawExtraFieldAES[9]=8))),B.compressionMethod=L;const H=B.headerArray=new d(26),q=gn(H);hn(q,0,B.version),hn(q,2,W),hn(q,4,L);const N=new u(1),O=gn(N);let Z;Z=a.lastModDate<bt?bt:a.lastModDate>mt?mt:a.lastModDate,hn(O,0,(Z.getHours()<<6|Z.getMinutes())<<5|Z.getSeconds()/2),hn(O,2,(Z.getFullYear()-1980<<4|Z.getMonth()+1)<<5|Z.getDate());const K=N[0];pn(q,6,K),hn(q,22,o.length);const j=V.length+P.length+U.length+B.rawExtraField.length;hn(q,24,j);const X=new d(30+o.length+j);let G;pn(gn(X),0,ft),_n(X,H,4),_n(X,o,30),_n(X,V,30+o.length),_n(X,P,30+o.length+V.length),_n(X,U,30+o.length+V.length+P.length),_n(X,B.rawExtraField,30+o.length+V.length+P.length+U.length);let $=0;if(e){const n=await Fe(r.Deflate,{codecType:ke,level:h,password:f,encryptionStrength:C,zipCrypto:T&&w,passwordVerification:T&&w&&K>>8&255,signed:!0,compressed:F,encrypted:T,useWebWorkers:x,useCompressionStream:I},r);await t.writeUint8Array(X),B.dataWritten=!0,G=await Pe(n,e,t,0,(()=>e.size),r,{onprogress:S,signal:z}),M=B.uncompressedSize=e.size,$=G.length}else await t.writeUint8Array(X),B.dataWritten=!0;let Y,J=new d(0),Q=0;if(_&&(J=new d(p?g?24:20:g?16:12),Y=gn(J),g&&(Q=4,pn(Y,0,134695760))),e){const e=G.signature;if(T&&!w||void 0===e||(pn(q,10,e),B.signature=e,_&&pn(Y,Q,e)),p){const e=gn(B.rawExtraFieldZip64);hn(e,0,1),hn(e,2,24),pn(q,14,ct),wn(e,12,i($)),pn(q,18,ct),wn(e,4,i(M)),_&&(wn(Y,Q+4,i($)),wn(Y,Q+12,i(M)))}else pn(q,14,$),pn(q,18,M),_&&(pn(Y,Q+4,$),pn(Y,Q+8,M))}_&&await t.writeUint8Array(J);const ee=X.length+$+J.length;return n.assign(B,{compressedSize:$,lastModDate:Z,rawLastModDate:K,creationDate:c,lastAccessDate:l,encrypted:T,length:ee}),B})(a,k,e.config,o),b.lock=v,l.set(r,b),b.filename=r,_){let n=0;const r=k.getData();let i;await w.all([e.lockWrite,y]);do{i=t.from(l.values()).find((e=>e.writingBufferedData)),i&&await i.lock}while(i&&i.lock);if(b.writingBufferedData=!0,!o.dataDescriptor){const e=26,t=await cn(r,0,e),i=new h(t);b.encrypted&&!o.zipCrypto||pn(i,14,b.signature),b.zip64?(pn(i,18,ct),pn(i,22,ct)):(pn(i,18,b.compressedSize),pn(i,22,b.uncompressedSize)),await f.writeUint8Array(new d(t)),n=e}await(async(e,t,n=0)=>{const r=536870912;await async function i(){if(n<t.size){const s=await cn(t,n,n+r);await e.writeUint8Array(new d(s)),n+=r,await i()}}()})(f,r,n),delete b.writingBufferedData}if(b.offset=e.offset,b.zip64)wn(gn(b.rawExtraFieldZip64),20,i(b.offset));else if(b.offset>=ct)throw new c(sn);return e.offset+=b.length,b}catch(t){throw(_&&b.writingBufferedData||!_&&b.dataWritten)&&(t.corruptedEntry=e.hasCorruptedEntries=!0,b.uncompressedSize&&(e.offset+=b.uncompressedSize)),l.delete(r),t}finally{m(),g&&g()}})(e,r,o,n.assign({},l,{rawFilename:p,rawComment:g,version:m,versionMadeBy:b,lastModDate:y,lastAccessDate:k,creationDate:v,rawExtraField:C,zip64:U,password:x,level:P,useWebWorkers:M,encryptionStrength:S,extendedTimestamp:E,zipCrypto:z,bufferedWrite:W,keepOrder:D,dataDescriptor:L,dataDescriptorSignature:H,signal:q,msDosCompatible:T,internalFileAttribute:F,externalFileAttribute:V,useCompressionStream:N}));return A&&(e.pendingCompressedSize-=A),n.assign(O,{name:r,comment:_,extraField:R}),new xt(O)})(l,e,r,o),this.pendingAddFileCalls.add(p),await p}finally{this.pendingAddFileCalls.delete(p),ln--;const e=l.pendingEntries.shift();e&&l.add(e.name,e.reader,e.options).then(e.resolve).catch(e.reject)}}}async close(e=new d(0),n={}){for(;this.pendingAddFileCalls.size;)await w.all(t.from(this.pendingAddFileCalls));return await(async(e,n,r)=>{const a=e.writer,o=e.files;let l=0,f=0,u=e.offset,h=o.size;for(const[,e]of o)f+=46+e.rawFilename.length+e.rawComment.length+e.rawExtraFieldZip64.length+e.rawExtraFieldAES.length+e.rawExtraFieldExtendedTimestamp.length+e.rawExtraFieldNTFS.length+e.rawExtraField.length;let p=r.zip64||e.options.zip64||!1;if(u>=ct||f>=ct||h>=dt){if(!1===r.zip64||!1===e.options.zip64)throw new c(sn);p=!0}const w=new d(f+(p?98:22)),_=gn(w);if(n&&n.length){if(n.length>dt)throw new c(Yt);hn(_,l+20,n.length)}for(const[e,n]of t.from(o.values()).entries()){const{rawFilename:t,rawExtraFieldZip64:i,rawExtraFieldAES:a,rawExtraField:c,rawComment:f,versionMadeBy:u,headerArray:h,directory:p,zip64:g,msDosCompatible:m,internalFileAttribute:b,externalFileAttribute:y}=n;let k,v;if(n.extendedTimestamp){v=n.rawExtraFieldNTFS,k=new d(9);const e=gn(k);hn(e,0,wt),hn(e,2,k.length-4),un(e,4,1),pn(e,5,s.floor(n.lastModDate.getTime()/1e3))}else v=k=new d(0);const x=i.length+a.length+k.length+v.length+c.length;if(pn(_,l,ut),hn(_,l+4,u),_n(w,h,l+6),hn(_,l+30,x),hn(_,l+32,f.length),pn(_,l+34,b),y?pn(_,l+38,y):p&&m&&un(_,l+38,16),pn(_,l+42,g?ct:n.offset),_n(w,t,l+46),_n(w,i,l+46+t.length),_n(w,a,l+46+t.length+i.length),_n(w,k,l+46+t.length+i.length+a.length),_n(w,v,l+46+t.length+i.length+a.length+k.length),_n(w,c,l+46+t.length+i.length+a.length+k.length+v.length),_n(w,f,l+46+t.length+x),l+=46+t.length+x+f.length,r.onprogress)try{r.onprogress(e+1,o.size,new xt(n))}catch(e){}}p&&(pn(_,l,ht),wn(_,l+4,i(44)),hn(_,l+12,45),hn(_,l+14,45),wn(_,l+24,i(h)),wn(_,l+32,i(h)),wn(_,l+40,i(f)),wn(_,l+48,i(u)),pn(_,l+56,pt),wn(_,l+64,i(u)+i(f)),pn(_,l+72,1),h=dt,u=ct,f=ct,l+=76),pn(_,l,101010256),hn(_,l+8,h),hn(_,l+10,h),pn(_,l+12,f),pn(_,l+16,u),await a.writeUint8Array(w),n&&n.length&&await a.writeUint8Array(n)})(this,e,n),this.writer.getData()}},e.configure=T,e.getMimeType=()=>"application/octet-stream",e.initShimAsyncCodec=(e,t={},n)=>({Deflate:F(e.Deflate,t.deflate,n),Inflate:F(e.Inflate,t.inflate,n)}),e.terminateWorkers=()=>{De.forEach((e=>{Ve(e),e.terminate()}))},n.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).zip={})})(this,(function(e){"use strict";const{Array:t,Object:n,String:r,BigInt:i,Math:s,Date:a,Map:o,URL:l,Error:c,Uint8Array:f,Uint16Array:u,Uint32Array:d,DataView:h,Blob:w,Promise:p,TextEncoder:_,TextDecoder:g,FileReader:b,document:m,crypto:y,btoa:k,TransformStream:x,ReadableStream:v,WritableStream:S,CompressionStream:A,DecompressionStream:E}=globalThis,R=(()=>{const e=-2;function n(e){return r(e.map((([e,n])=>new t(e).fill(n,0,e))))}function r(e){return e.reduce(((e,n)=>e.concat(t.isArray(n)?r(n):n)),[])}const i=[0,1,2,3].concat(...n([[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 e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.build_tree=n=>{const r=e.dyn_tree,i=e.stat_desc.static_tree,a=e.stat_desc.elems;let o,l,c,f=-1;for(n.heap_len=0,n.heap_max=573,o=0;a>o;o++)0!==r[2*o]?(n.heap[++n.heap_len]=f=o,n.depth[o]=0):r[2*o+1]=0;for(;2>n.heap_len;)c=n.heap[++n.heap_len]=2>f?++f:0,r[2*c]=1,n.depth[c]=0,n.opt_len--,i&&(n.static_len-=i[2*c+1]);for(e.max_code=f,o=s.floor(n.heap_len/2);o>=1;o--)n.pqdownheap(r,o);c=a;do{o=n.heap[1],n.heap[1]=n.heap[n.heap_len--],n.pqdownheap(r,1),l=n.heap[1],n.heap[--n.heap_max]=o,n.heap[--n.heap_max]=l,r[2*c]=r[2*o]+r[2*l],n.depth[c]=s.max(n.depth[o],n.depth[l])+1,r[2*o+1]=r[2*l+1]=c,n.heap[1]=c++,n.pqdownheap(r,1)}while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],(t=>{const n=e.dyn_tree,r=e.stat_desc.static_tree,i=e.stat_desc.extra_bits,s=e.stat_desc.extra_base,a=e.stat_desc.max_length;let o,l,c,f,u,d,h=0;for(f=0;15>=f;f++)t.bl_count[f]=0;for(n[2*t.heap[t.heap_max]+1]=0,o=t.heap_max+1;573>o;o++)l=t.heap[o],f=n[2*n[2*l+1]+1]+1,f>a&&(f=a,h++),n[2*l+1]=f,l>e.max_code||(t.bl_count[f]++,u=0,s>l||(u=i[l-s]),d=n[2*l],t.opt_len+=d*(f+u),r&&(t.static_len+=d*(r[2*l+1]+u)));if(0!==h){do{for(f=a-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[a]--,h-=2}while(h>0);for(f=a;0!==f;f--)for(l=t.bl_count[f];0!==l;)c=t.heap[--o],c>e.max_code||(n[2*c+1]!=f&&(t.opt_len+=(f-n[2*c+1])*n[2*c],n[2*c+1]=f),l--)}})(n),((e,n,r)=>{const i=[];let s,a,o,l=0;for(s=1;15>=s;s++)i[s]=l=l+r[s-1]<<1;for(a=0;n>=a;a++)o=e[2*a+1],0!==o&&(e[2*a]=t(i[o]++,o))})(r,e.max_code,n.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(...n([[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?i[e]:i[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 l=n([[144,8],[112,9],[24,7],[8,8]]);o.static_ltree=r([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,l[t]])));const d=n([[30,5]]);function h(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=r([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,d[t]]))),o.static_l_desc=new o(o.static_ltree,a.extra_lbits,257,286,15),o.static_d_desc=new o(o.static_dtree,a.extra_dbits,0,30,15),o.static_bl_desc=new o(null,a.extra_blbits,0,19,7);const w=[new h(0,0,0,0,0),new h(4,4,8,4,1),new h(4,5,16,8,1),new h(4,6,32,32,1),new h(4,4,16,16,2),new h(8,16,32,32,2),new h(8,16,128,128,2),new h(8,32,128,256,2),new h(32,128,258,1024,2),new h(32,258,258,4096,2)],p=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],_=113,g=666,b=262;function m(e,t,n,r){const i=e[2*t],s=e[2*n];return s>i||i==s&&r[t]<=r[n]}function y(){const t=this;let n,r,i,l,c,d,h,y,k,x,v,S,A,E,R,z,C,D,T,F,I,P,V,U,B,W,X,M,q,L,N,O,H;const $=new a,Z=new a,j=new a;let K,G,Y,J,Q,ee;function te(){let e;for(e=0;286>e;e++)N[2*e]=0;for(e=0;30>e;e++)O[2*e]=0;for(e=0;19>e;e++)H[2*e]=0;N[512]=1,t.opt_len=t.static_len=0,G=Y=0}function ne(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 l=0;t>=l;l++)n=i,i=e[2*(l+1)+1],++s<a&&n==i||(o>s?H[2*n]+=s:0!==n?(n!=r&&H[2*n]++,H[32]++):s>10?H[36]++:H[34]++,s=0,r=n,0===i?(a=138,o=3):n==i?(a=6,o=3):(a=7,o=4))}function re(e){t.pending_buf[t.pending++]=e}function ie(e){re(255&e),re(e>>>8&255)}function se(e,t){let n;const r=t;ee>16-r?(n=e,Q|=n<<ee&65535,ie(Q),Q=n>>>16-ee,ee+=r-16):(Q|=e<<ee&65535,ee+=r)}function ae(e,t){const n=2*e;se(65535&t[n],65535&t[n+1])}function oe(e,t){let n,r,i=-1,s=e[1],a=0,o=7,l=4;for(0===s&&(o=138,l=3),n=0;t>=n;n++)if(r=s,s=e[2*(n+1)+1],++a>=o||r!=s){if(l>a)do{ae(r,H)}while(0!=--a);else 0!==r?(r!=i&&(ae(r,H),a--),ae(16,H),se(a-3,2)):a>10?(ae(18,H),se(a-11,7)):(ae(17,H),se(a-3,3));a=0,i=r,0===s?(o=138,l=3):r==s?(o=6,l=3):(o=7,l=4)}}function le(){16==ee?(ie(Q),Q=0,ee=0):8>ee||(re(255&Q),Q>>>=8,ee-=8)}function ce(e,n){let r,i,o;if(t.dist_buf[G]=e,t.lc_buf[G]=255&n,G++,0===e?N[2*n]++:(Y++,e--,N[2*(a._length_code[n]+256+1)]++,O[2*a.d_code(e)]++),0==(8191&G)&&X>2){for(r=8*G,i=I-C,o=0;30>o;o++)r+=O[2*o]*(5+a.extra_dbits[o]);if(r>>>=3,Y<s.floor(G/2)&&r<s.floor(i/2))return!0}return G==K-1}function fe(e,n){let r,i,s,o,l=0;if(0!==G)do{r=t.dist_buf[l],i=t.lc_buf[l],l++,0===r?ae(i,e):(s=a._length_code[i],ae(s+256+1,e),o=a.extra_lbits[s],0!==o&&(i-=a.base_length[s],se(i,o)),r--,s=a.d_code(r),ae(s,n),o=a.extra_dbits[s],0!==o&&(r-=a.base_dist[s],se(r,o)))}while(G>l);ae(256,e),J=e[513]}function ue(){ee>8?ie(Q):ee>0&&re(255&Q),Q=0,ee=0}function de(e,n,r){se(0+(r?1:0),3),((e,n)=>{ue(),J=8,ie(n),ie(~n),t.pending_buf.set(y.subarray(e,e+n),t.pending),t.pending+=n})(e,n)}function he(e){((e,n,r)=>{let i,s,l=0;X>0?($.build_tree(t),Z.build_tree(t),l=(()=>{let e;for(ne(N,$.max_code),ne(O,Z.max_code),j.build_tree(t),e=18;e>=3&&0===H[2*a.bl_order[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(),i=t.opt_len+3+7>>>3,s=t.static_len+3+7>>>3,s>i||(i=s)):i=s=n+5,n+4>i||-1==e?s==i?(se(2+(r?1:0),3),fe(o.static_ltree,o.static_dtree)):(se(4+(r?1:0),3),((e,t,n)=>{let r;for(se(e-257,5),se(t-1,5),se(n-4,4),r=0;n>r;r++)se(H[2*a.bl_order[r]+1],3);oe(N,e-1),oe(O,t-1)})($.max_code+1,Z.max_code+1,l+1),fe(N,O)):de(e,n,r),te(),r&&ue()})(0>C?-1:C,I-C,e),C=I,n.flush_pending()}function we(){let e,t,r,i;do{if(i=k-V-I,0===i&&0===I&&0===V)i=c;else if(-1==i)i--;else if(I>=c+c-b){y.set(y.subarray(c,c+c),0),P-=c,I-=c,C-=c,e=A,r=e;do{t=65535&v[--r],v[r]=c>t?0:t-c}while(0!=--e);e=c,r=e;do{t=65535&x[--r],x[r]=c>t?0:t-c}while(0!=--e);i+=c}if(0===n.avail_in)return;e=n.read_buf(y,I+V,i),V+=e,3>V||(S=255&y[I],S=(S<<z^255&y[I+1])&R)}while(b>V&&0!==n.avail_in)}function pe(e){let t,n,r=B,i=I,s=U;const a=I>c-b?I-(c-b):0;let o=L;const l=h,f=I+258;let u=y[i+s-1],d=y[i+s];q>U||(r>>=2),o>V&&(o=V);do{if(t=e,y[t+s]==d&&y[t+s-1]==u&&y[t]==y[i]&&y[++t]==y[i+1]){i+=2,t++;do{}while(y[++i]==y[++t]&&y[++i]==y[++t]&&y[++i]==y[++t]&&y[++i]==y[++t]&&y[++i]==y[++t]&&y[++i]==y[++t]&&y[++i]==y[++t]&&y[++i]==y[++t]&&f>i);if(n=258-(f-i),i=f-258,n>s){if(P=e,s=n,n>=o)break;u=y[i+s-1],d=y[i+s]}}}while((e=65535&x[e&l])>a&&0!=--r);return s>V?V:s}t.depth=[],t.bl_count=[],t.heap=[],N=[],O=[],H=[],t.pqdownheap=(e,n)=>{const r=t.heap,i=r[n];let s=n<<1;for(;s<=t.heap_len&&(s<t.heap_len&&m(e,r[s+1],r[s],t.depth)&&s++,!m(e,i,r[s],t.depth));)r[n]=r[s],n=s,s<<=1;r[n]=i},t.deflateInit=(n,a,p,g,b,m)=>(g||(g=8),b||(b=8),m||(m=0),n.msg=null,-1==a&&(a=6),1>b||b>9||8!=g||9>p||p>15||0>a||a>9||0>m||m>2?e:(n.dstate=t,d=p,c=1<<d,h=c-1,E=b+7,A=1<<E,R=A-1,z=s.floor((E+3-1)/3),y=new f(2*c),x=[],v=[],K=1<<b+6,t.pending_buf=new f(4*K),i=4*K,t.dist_buf=new u(K),t.lc_buf=new f(K),X=a,M=m,(e=>(e.total_in=e.total_out=0,e.msg=null,t.pending=0,t.pending_out=0,r=_,l=0,$.dyn_tree=N,$.stat_desc=o.static_l_desc,Z.dyn_tree=O,Z.stat_desc=o.static_d_desc,j.dyn_tree=H,j.stat_desc=o.static_bl_desc,Q=0,ee=0,J=8,te(),(()=>{k=2*c,v[A-1]=0;for(let e=0;A-1>e;e++)v[e]=0;W=w[X].max_lazy,q=w[X].good_length,L=w[X].nice_length,B=w[X].max_chain,I=0,C=0,V=0,D=U=2,F=0,S=0})(),0))(n))),t.deflateEnd=()=>42!=r&&r!=_&&r!=g?e:(t.lc_buf=null,t.dist_buf=null,t.pending_buf=null,v=null,x=null,y=null,t.dstate=null,r==_?-3:0),t.deflateParams=(t,n,r)=>{let i=0;return-1==n&&(n=6),0>n||n>9||0>r||r>2?e:(w[X].func!=w[n].func&&0!==t.total_in&&(i=t.deflate(1)),X!=n&&(X=n,W=w[X].max_lazy,q=w[X].good_length,L=w[X].nice_length,B=w[X].max_chain),M=r,i)},t.deflateSetDictionary=(t,n,i)=>{let s,a=i,o=0;if(!n||42!=r)return e;if(3>a)return 0;for(a>c-b&&(a=c-b,o=i-a),y.set(n.subarray(o,o+a),0),I=a,C=a,S=255&y[0],S=(S<<z^255&y[1])&R,s=0;a-3>=s;s++)S=(S<<z^255&y[s+2])&R,x[s&h]=v[S],v[S]=s;return 0},t.deflate=(s,a)=>{let f,u,m,k,E;if(a>4||0>a)return e;if(!s.next_out||!s.next_in&&0!==s.avail_in||r==g&&4!=a)return s.msg=p[4],e;if(0===s.avail_out)return s.msg=p[7],-5;var B;if(n=s,k=l,l=a,42==r&&(u=8+(d-8<<4)<<8,m=(X-1&255)>>1,m>3&&(m=3),u|=m<<6,0!==I&&(u|=32),u+=31-u%31,r=_,re((B=u)>>8&255),re(255&B)),0!==t.pending){if(n.flush_pending(),0===n.avail_out)return l=-1,0}else if(0===n.avail_in&&k>=a&&4!=a)return n.msg=p[7],-5;if(r==g&&0!==n.avail_in)return s.msg=p[7],-5;if(0!==n.avail_in||0!==V||0!=a&&r!=g){switch(E=-1,w[X].func){case 0:E=(e=>{let t,r=65535;for(r>i-5&&(r=i-5);;){if(1>=V){if(we(),0===V&&0==e)return 0;if(0===V)break}if(I+=V,V=0,t=C+r,(0===I||I>=t)&&(V=I-t,I=t,he(!1),0===n.avail_out))return 0;if(I-C>=c-b&&(he(!1),0===n.avail_out))return 0}return he(4==e),0===n.avail_out?4==e?2:0:4==e?3:1})(a);break;case 1:E=(e=>{let t,r=0;for(;;){if(b>V){if(we(),b>V&&0==e)return 0;if(0===V)break}if(3>V||(S=(S<<z^255&y[I+2])&R,r=65535&v[S],x[I&h]=v[S],v[S]=I),0===r||(I-r&65535)>c-b||2!=M&&(D=pe(r)),3>D)t=ce(0,255&y[I]),V--,I++;else if(t=ce(I-P,D-3),V-=D,D>W||3>V)I+=D,D=0,S=255&y[I],S=(S<<z^255&y[I+1])&R;else{D--;do{I++,S=(S<<z^255&y[I+2])&R,r=65535&v[S],x[I&h]=v[S],v[S]=I}while(0!=--D);I++}if(t&&(he(!1),0===n.avail_out))return 0}return he(4==e),0===n.avail_out?4==e?2:0:4==e?3:1})(a);break;case 2:E=(e=>{let t,r,i=0;for(;;){if(b>V){if(we(),b>V&&0==e)return 0;if(0===V)break}if(3>V||(S=(S<<z^255&y[I+2])&R,i=65535&v[S],x[I&h]=v[S],v[S]=I),U=D,T=P,D=2,0!==i&&W>U&&c-b>=(I-i&65535)&&(2!=M&&(D=pe(i)),5>=D&&(1==M||3==D&&I-P>4096)&&(D=2)),3>U||D>U)if(0!==F){if(t=ce(0,255&y[I-1]),t&&he(!1),I++,V--,0===n.avail_out)return 0}else F=1,I++,V--;else{r=I+V-3,t=ce(I-1-T,U-3),V-=U-1,U-=2;do{++I>r||(S=(S<<z^255&y[I+2])&R,i=65535&v[S],x[I&h]=v[S],v[S]=I)}while(0!=--U);if(F=0,D=2,I++,t&&(he(!1),0===n.avail_out))return 0}}return 0!==F&&(t=ce(0,255&y[I-1]),F=0),he(4==e),0===n.avail_out?4==e?2:0:4==e?3:1})(a)}if(2!=E&&3!=E||(r=g),0==E||2==E)return 0===n.avail_out&&(l=-1),0;if(1==E){if(1==a)se(2,3),ae(256,o.static_ltree),le(),9>1+J+10-ee&&(se(2,3),ae(256,o.static_ltree),le()),J=7;else if(de(0,0,!1),3==a)for(f=0;A>f;f++)v[f]=0;if(n.flush_pending(),0===n.avail_out)return l=-1,0}}return 4!=a?0:1}}function k(){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}return k.prototype={deflateInit:function(e,t){const n=this;return n.dstate=new y,t||(t=15),n.dstate.deflateInit(n,e,t)},deflate:function(t){const n=this;return n.dstate?n.dstate.deflate(n,t):e},deflateEnd:function(){const t=this;if(!t.dstate)return e;const n=t.dstate.deflateEnd();return t.dstate=null,n},deflateParams:function(t,n){const r=this;return r.dstate?r.dstate.deflateParams(r,t,n):e},deflateSetDictionary:function(t,n){const r=this;return r.dstate?r.dstate.deflateSetDictionary(r,t,n):e},read_buf:function(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:function(){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))}},function(e){const t=new k,n=(r=e&&e.chunkSize?e.chunkSize:65536)+5*(s.floor(r/16383)+1);var r;const i=new f(n);let a=e?e.level:-1;void 0===a&&(a=-1),t.deflateInit(a),t.next_out=i,this.append=(e,r)=>{let s,a,o=0,l=0,u=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 new c("deflating: "+t.msg);t.next_out_index&&(t.next_out_index==n?d.push(new f(i)):d.push(i.slice(0,t.next_out_index))),u+=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 f(u),d.forEach((e=>{a.set(e,l),l+=e.length}))):a=d[0]||new f(0),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 new c("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 f(a),o.forEach((e=>{r.set(e,s),s+=e.length})),r}}})(),z=(()=>{const e=-2,t=-3,n=-5,r=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],i=[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],a=[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],o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],l=[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],d=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function h(){let e,r,i,s,a,c;function f(e,r,o,l,f,u,d,h,w,p,_){let g,b,m,y,k,x,v,S,A,E,R,z,C,D,T;E=0,k=o;do{i[e[r+E]]++,E++,k--}while(0!==k);if(i[0]==o)return d[0]=-1,h[0]=0,0;for(S=h[0],x=1;15>=x&&0===i[x];x++);for(v=x,x>S&&(S=x),k=15;0!==k&&0===i[k];k--);for(m=k,S>k&&(S=k),h[0]=S,D=1<<x;k>x;x++,D<<=1)if(0>(D-=i[x]))return t;if(0>(D-=i[k]))return t;for(i[k]+=D,c[1]=x=0,E=1,C=2;0!=--k;)c[C]=x+=i[E],C++,E++;k=0,E=0;do{0!==(x=e[r+E])&&(_[c[x]++]=k),E++}while(++k<o);for(o=c[m],c[0]=k=0,E=0,y=-1,z=-S,a[0]=0,R=0,T=0;m>=v;v++)for(g=i[v];0!=g--;){for(;v>z+S;){if(y++,z+=S,T=m-z,T=T>S?S:T,(b=1<<(x=v-z))>g+1&&(b-=g+1,C=v,T>x))for(;++x<T&&(b<<=1)>i[++C];)b-=i[C];if(T=1<<x,p[0]+T>1440)return t;a[y]=R=p[0],p[0]+=T,0!==y?(c[y]=k,s[0]=x,s[1]=S,x=k>>>z-S,s[2]=R-a[y-1]-x,w.set(s,3*(a[y-1]+x))):d[0]=R}for(s[1]=v-z,o>E?_[E]<l?(s[0]=256>_[E]?0:96,s[2]=_[E++]):(s[0]=u[_[E]-l]+16+64,s[2]=f[_[E++]-l]):s[0]=192,b=1<<v-z,x=k>>>z;T>x;x+=b)w.set(s,3*(R+x));for(x=1<<v-1;0!=(k&x);x>>>=1)k^=x;for(k^=x,A=(1<<z)-1;(k&A)!=c[y];)y--,z-=S,A=(1<<z)-1}return 0!==D&&1!=m?n:0}function h(t){let n;for(e||(e=[],r=[],i=new Int32Array(16),s=[],a=new Int32Array(15),c=new Int32Array(16)),r.length<t&&(r=[]),n=0;t>n;n++)r[n]=0;for(n=0;16>n;n++)i[n]=0;for(n=0;3>n;n++)s[n]=0;a.set(i.subarray(0,15),0),c.set(i.subarray(0,16),0)}this.inflate_trees_bits=(i,s,a,o,l)=>{let c;return h(19),e[0]=0,c=f(i,0,19,19,null,null,a,s,o,e,r),c==t?l.msg="oversubscribed dynamic bit lengths tree":c!=n&&0!==s[0]||(l.msg="incomplete dynamic bit lengths tree",c=t),c},this.inflate_trees_dynamic=(i,s,a,c,w,p,_,g,b)=>{let m;return h(288),e[0]=0,m=f(a,0,i,257,o,l,p,c,g,e,r),0!=m||0===c[0]?(m==t?b.msg="oversubscribed literal/length tree":-4!=m&&(b.msg="incomplete literal/length tree",m=t),m):(h(288),m=f(a,i,s,0,u,d,_,w,g,e,r),0!=m||0===w[0]&&i>257?(m==t?b.msg="oversubscribed distance tree":m==n?(b.msg="incomplete distance tree",m=t):-4!=m&&(b.msg="empty distance tree with lengths",m=t),m):0)}}function w(){const n=this;let i,s,a,o,l=0,c=0,f=0,u=0,d=0,h=0,w=0,p=0,_=0,g=0;function b(e,n,i,s,a,o,l,c){let f,u,d,h,w,p,_,g,b,m,y,k,x,v,S,A;_=c.next_in_index,g=c.avail_in,w=l.bitb,p=l.bitk,b=l.write,m=b<l.read?l.read-b-1:l.end-b,y=r[e],k=r[n];do{for(;20>p;)g--,w|=(255&c.read_byte(_++))<<p,p+=8;if(f=w&y,u=i,d=s,A=3*(d+f),0!==(h=u[A]))for(;;){if(w>>=u[A+1],p-=u[A+1],0!=(16&h)){for(h&=15,x=u[A+2]+(w&r[h]),w>>=h,p-=h;15>p;)g--,w|=(255&c.read_byte(_++))<<p,p+=8;for(f=w&k,u=a,d=o,A=3*(d+f),h=u[A];;){if(w>>=u[A+1],p-=u[A+1],0!=(16&h)){for(h&=15;h>p;)g--,w|=(255&c.read_byte(_++))<<p,p+=8;if(v=u[A+2]+(w&r[h]),w>>=h,p-=h,m-=x,v>b){S=b-v;do{S+=l.end}while(0>S);if(h=l.end-S,x>h){if(x-=h,b-S>0&&h>b-S)do{l.win[b++]=l.win[S++]}while(0!=--h);else l.win.set(l.win.subarray(S,S+h),b),b+=h,S+=h,h=0;S=0}}else S=b-v,b-S>0&&2>b-S?(l.win[b++]=l.win[S++],l.win[b++]=l.win[S++],x-=2):(l.win.set(l.win.subarray(S,S+2),b),b+=2,S+=2,x-=2);if(b-S>0&&x>b-S)do{l.win[b++]=l.win[S++]}while(0!=--x);else l.win.set(l.win.subarray(S,S+x),b),b+=x,S+=x,x=0;break}if(0!=(64&h))return c.msg="invalid distance code",x=c.avail_in-g,x=x>p>>3?p>>3:x,g+=x,_-=x,p-=x<<3,l.bitb=w,l.bitk=p,c.avail_in=g,c.total_in+=_-c.next_in_index,c.next_in_index=_,l.write=b,t;f+=u[A+2],f+=w&r[h],A=3*(d+f),h=u[A]}break}if(0!=(64&h))return 0!=(32&h)?(x=c.avail_in-g,x=x>p>>3?p>>3:x,g+=x,_-=x,p-=x<<3,l.bitb=w,l.bitk=p,c.avail_in=g,c.total_in+=_-c.next_in_index,c.next_in_index=_,l.write=b,1):(c.msg="invalid literal/length code",x=c.avail_in-g,x=x>p>>3?p>>3:x,g+=x,_-=x,p-=x<<3,l.bitb=w,l.bitk=p,c.avail_in=g,c.total_in+=_-c.next_in_index,c.next_in_index=_,l.write=b,t);if(f+=u[A+2],f+=w&r[h],A=3*(d+f),0===(h=u[A])){w>>=u[A+1],p-=u[A+1],l.win[b++]=u[A+2],m--;break}}else w>>=u[A+1],p-=u[A+1],l.win[b++]=u[A+2],m--}while(m>=258&&g>=10);return x=c.avail_in-g,x=x>p>>3?p>>3:x,g+=x,_-=x,p-=x<<3,l.bitb=w,l.bitk=p,c.avail_in=g,c.total_in+=_-c.next_in_index,c.next_in_index=_,l.write=b,0}n.init=(e,t,n,r,l,c)=>{i=0,w=e,p=t,a=n,_=r,o=l,g=c,s=null},n.proc=(n,m,y)=>{let k,x,v,S,A,E,R,z=0,C=0,D=0;for(D=m.next_in_index,S=m.avail_in,z=n.bitb,C=n.bitk,A=n.write,E=A<n.read?n.read-A-1:n.end-A;;)switch(i){case 0:if(E>=258&&S>=10&&(n.bitb=z,n.bitk=C,m.avail_in=S,m.total_in+=D-m.next_in_index,m.next_in_index=D,n.write=A,y=b(w,p,a,_,o,g,n,m),D=m.next_in_index,S=m.avail_in,z=n.bitb,C=n.bitk,A=n.write,E=A<n.read?n.read-A-1:n.end-A,0!=y)){i=1==y?7:9;break}f=w,s=a,c=_,i=1;case 1:for(k=f;k>C;){if(0===S)return n.bitb=z,n.bitk=C,m.avail_in=S,m.total_in+=D-m.next_in_index,m.next_in_index=D,n.write=A,n.inflate_flush(m,y);y=0,S--,z|=(255&m.read_byte(D++))<<C,C+=8}if(x=3*(c+(z&r[k])),z>>>=s[x+1],C-=s[x+1],v=s[x],0===v){u=s[x+2],i=6;break}if(0!=(16&v)){d=15&v,l=s[x+2],i=2;break}if(0==(64&v)){f=v,c=x/3+s[x+2];break}if(0!=(32&v)){i=7;break}return i=9,m.msg="invalid literal/length code",y=t,n.bitb=z,n.bitk=C,m.avail_in=S,m.total_in+=D-m.next_in_index,m.next_in_index=D,n.write=A,n.inflate_flush(m,y);case 2:for(k=d;k>C;){if(0===S)return n.bitb=z,n.bitk=C,m.avail_in=S,m.total_in+=D-m.next_in_index,m.next_in_index=D,n.write=A,n.inflate_flush(m,y);y=0,S--,z|=(255&m.read_byte(D++))<<C,C+=8}l+=z&r[k],z>>=k,C-=k,f=p,s=o,c=g,i=3;case 3:for(k=f;k>C;){if(0===S)return n.bitb=z,n.bitk=C,m.avail_in=S,m.total_in+=D-m.next_in_index,m.next_in_index=D,n.write=A,n.inflate_flush(m,y);y=0,S--,z|=(255&m.read_byte(D++))<<C,C+=8}if(x=3*(c+(z&r[k])),z>>=s[x+1],C-=s[x+1],v=s[x],0!=(16&v)){d=15&v,h=s[x+2],i=4;break}if(0==(64&v)){f=v,c=x/3+s[x+2];break}return i=9,m.msg="invalid distance code",y=t,n.bitb=z,n.bitk=C,m.avail_in=S,m.total_in+=D-m.next_in_index,m.next_in_index=D,n.write=A,n.inflate_flush(m,y);case 4:for(k=d;k>C;){if(0===S)return n.bitb=z,n.bitk=C,m.avail_in=S,m.total_in+=D-m.next_in_index,m.next_in_index=D,n.write=A,n.inflate_flush(m,y);y=0,S--,z|=(255&m.read_byte(D++))<<C,C+=8}h+=z&r[k],z>>=k,C-=k,i=5;case 5:for(R=A-h;0>R;)R+=n.end;for(;0!==l;){if(0===E&&(A==n.end&&0!==n.read&&(A=0,E=A<n.read?n.read-A-1:n.end-A),0===E&&(n.write=A,y=n.inflate_flush(m,y),A=n.write,E=A<n.read?n.read-A-1:n.end-A,A==n.end&&0!==n.read&&(A=0,E=A<n.read?n.read-A-1:n.end-A),0===E)))return n.bitb=z,n.bitk=C,m.avail_in=S,m.total_in+=D-m.next_in_index,m.next_in_index=D,n.write=A,n.inflate_flush(m,y);n.win[A++]=n.win[R++],E--,R==n.end&&(R=0),l--}i=0;break;case 6:if(0===E&&(A==n.end&&0!==n.read&&(A=0,E=A<n.read?n.read-A-1:n.end-A),0===E&&(n.write=A,y=n.inflate_flush(m,y),A=n.write,E=A<n.read?n.read-A-1:n.end-A,A==n.end&&0!==n.read&&(A=0,E=A<n.read?n.read-A-1:n.end-A),0===E)))return n.bitb=z,n.bitk=C,m.avail_in=S,m.total_in+=D-m.next_in_index,m.next_in_index=D,n.write=A,n.inflate_flush(m,y);y=0,n.win[A++]=u,E--,i=0;break;case 7:if(C>7&&(C-=8,S++,D--),n.write=A,y=n.inflate_flush(m,y),A=n.write,E=A<n.read?n.read-A-1:n.end-A,n.read!=n.write)return n.bitb=z,n.bitk=C,m.avail_in=S,m.total_in+=D-m.next_in_index,m.next_in_index=D,n.write=A,n.inflate_flush(m,y);i=8;case 8:return y=1,n.bitb=z,n.bitk=C,m.avail_in=S,m.total_in+=D-m.next_in_index,m.next_in_index=D,n.write=A,n.inflate_flush(m,y);case 9:return y=t,n.bitb=z,n.bitk=C,m.avail_in=S,m.total_in+=D-m.next_in_index,m.next_in_index=D,n.write=A,n.inflate_flush(m,y);default:return y=e,n.bitb=z,n.bitk=C,m.avail_in=S,m.total_in+=D-m.next_in_index,m.next_in_index=D,n.write=A,n.inflate_flush(m,y)}},n.free=()=>{}}h.inflate_trees_fixed=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=i,r[0]=a,0);const p=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function _(i,s){const a=this;let o,l=0,c=0,u=0,d=0;const _=[0],g=[0],b=new w;let m=0,y=new Int32Array(4320);const k=new h;a.bitk=0,a.bitb=0,a.win=new f(s),a.end=s,a.read=0,a.write=0,a.reset=(e,t)=>{t&&(t[0]=0),6==l&&b.free(e),l=0,a.bitk=0,a.bitb=0,a.read=a.write=0},a.reset(i,null),a.inflate_flush=(e,t)=>{let r,i,s;return i=e.next_out_index,s=a.read,r=(s>a.write?a.end:a.write)-s,r>e.avail_out&&(r=e.avail_out),0!==r&&t==n&&(t=0),e.avail_out-=r,e.total_out+=r,e.next_out.set(a.win.subarray(s,s+r),i),i+=r,s+=r,s==a.end&&(s=0,a.write==a.end&&(a.write=0),r=a.write-s,r>e.avail_out&&(r=e.avail_out),0!==r&&t==n&&(t=0),e.avail_out-=r,e.total_out+=r,e.next_out.set(a.win.subarray(s,s+r),i),i+=r,s+=r),e.next_out_index=i,a.read=s,t},a.proc=(n,i)=>{let s,f,w,x,v,S,A,E;for(x=n.next_in_index,v=n.avail_in,f=a.bitb,w=a.bitk,S=a.write,A=S<a.read?a.read-S-1:a.end-S;;){let R,z,C,D,T,F,I,P;switch(l){case 0:for(;3>w;){if(0===v)return a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,a.inflate_flush(n,i);i=0,v--,f|=(255&n.read_byte(x++))<<w,w+=8}switch(s=7&f,m=1&s,s>>>1){case 0:f>>>=3,w-=3,s=7&w,f>>>=s,w-=s,l=1;break;case 1:R=[],z=[],C=[[]],D=[[]],h.inflate_trees_fixed(R,z,C,D),b.init(R[0],z[0],C[0],0,D[0],0),f>>>=3,w-=3,l=6;break;case 2:f>>>=3,w-=3,l=3;break;case 3:return f>>>=3,w-=3,l=9,n.msg="invalid block type",i=t,a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,a.inflate_flush(n,i)}break;case 1:for(;32>w;){if(0===v)return a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,a.inflate_flush(n,i);i=0,v--,f|=(255&n.read_byte(x++))<<w,w+=8}if((~f>>>16&65535)!=(65535&f))return l=9,n.msg="invalid stored block lengths",i=t,a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,a.inflate_flush(n,i);c=65535&f,f=w=0,l=0!==c?2:0!==m?7:0;break;case 2:if(0===v)return a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,a.inflate_flush(n,i);if(0===A&&(S==a.end&&0!==a.read&&(S=0,A=S<a.read?a.read-S-1:a.end-S),0===A&&(a.write=S,i=a.inflate_flush(n,i),S=a.write,A=S<a.read?a.read-S-1:a.end-S,S==a.end&&0!==a.read&&(S=0,A=S<a.read?a.read-S-1:a.end-S),0===A)))return a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,a.inflate_flush(n,i);if(i=0,s=c,s>v&&(s=v),s>A&&(s=A),a.win.set(n.read_buf(x,s),S),x+=s,v-=s,S+=s,A-=s,0!=(c-=s))break;l=0!==m?7:0;break;case 3:for(;14>w;){if(0===v)return a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,a.inflate_flush(n,i);i=0,v--,f|=(255&n.read_byte(x++))<<w,w+=8}if(u=s=16383&f,(31&s)>29||(s>>5&31)>29)return l=9,n.msg="too many length or distance symbols",i=t,a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,a.inflate_flush(n,i);if(s=258+(31&s)+(s>>5&31),!o||o.length<s)o=[];else for(E=0;s>E;E++)o[E]=0;f>>>=14,w-=14,d=0,l=4;case 4:for(;4+(u>>>10)>d;){for(;3>w;){if(0===v)return a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,a.inflate_flush(n,i);i=0,v--,f|=(255&n.read_byte(x++))<<w,w+=8}o[p[d++]]=7&f,f>>>=3,w-=3}for(;19>d;)o[p[d++]]=0;if(_[0]=7,s=k.inflate_trees_bits(o,_,g,y,n),0!=s)return(i=s)==t&&(o=null,l=9),a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,a.inflate_flush(n,i);d=0,l=5;case 5:for(;s=u,258+(31&s)+(s>>5&31)>d;){let e,c;for(s=_[0];s>w;){if(0===v)return a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,a.inflate_flush(n,i);i=0,v--,f|=(255&n.read_byte(x++))<<w,w+=8}if(s=y[3*(g[0]+(f&r[s]))+1],c=y[3*(g[0]+(f&r[s]))+2],16>c)f>>>=s,w-=s,o[d++]=c;else{for(E=18==c?7:c-14,e=18==c?11:3;s+E>w;){if(0===v)return a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,a.inflate_flush(n,i);i=0,v--,f|=(255&n.read_byte(x++))<<w,w+=8}if(f>>>=s,w-=s,e+=f&r[E],f>>>=E,w-=E,E=d,s=u,E+e>258+(31&s)+(s>>5&31)||16==c&&1>E)return o=null,l=9,n.msg="invalid bit length repeat",i=t,a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,a.inflate_flush(n,i);c=16==c?o[E-1]:0;do{o[E++]=c}while(0!=--e);d=E}}if(g[0]=-1,T=[],F=[],I=[],P=[],T[0]=9,F[0]=6,s=u,s=k.inflate_trees_dynamic(257+(31&s),1+(s>>5&31),o,T,F,I,P,y,n),0!=s)return s==t&&(o=null,l=9),i=s,a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,a.inflate_flush(n,i);b.init(T[0],F[0],y,I[0],y,P[0]),l=6;case 6:if(a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,1!=(i=b.proc(a,n,i)))return a.inflate_flush(n,i);if(i=0,b.free(n),x=n.next_in_index,v=n.avail_in,f=a.bitb,w=a.bitk,S=a.write,A=S<a.read?a.read-S-1:a.end-S,0===m){l=0;break}l=7;case 7:if(a.write=S,i=a.inflate_flush(n,i),S=a.write,A=S<a.read?a.read-S-1:a.end-S,a.read!=a.write)return a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,a.inflate_flush(n,i);l=8;case 8:return i=1,a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,a.inflate_flush(n,i);case 9:return i=t,a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,a.inflate_flush(n,i);default:return i=e,a.bitb=f,a.bitk=w,n.avail_in=v,n.total_in+=x-n.next_in_index,n.next_in_index=x,a.write=S,a.inflate_flush(n,i)}}},a.free=e=>{a.reset(e,null),a.win=null,y=null},a.set_dictionary=(e,t,n)=>{a.win.set(e.subarray(t,t+n),0),a.read=a.write=n},a.sync_point=()=>1==l?1:0}const g=13,b=[0,0,255,255];function m(){const r=this;function i(t){return t&&t.istate?(t.total_in=t.total_out=0,t.msg=null,t.istate.mode=7,t.istate.blocks.reset(t,null),0):e}r.mode=0,r.method=0,r.was=[0],r.need=0,r.marker=0,r.wbits=0,r.inflateEnd=e=>(r.blocks&&r.blocks.free(e),r.blocks=null,0),r.inflateInit=(t,n)=>(t.msg=null,r.blocks=null,8>n||n>15?(r.inflateEnd(t),e):(r.wbits=n,t.istate.blocks=new _(t,1<<n),i(t),0)),r.inflate=(r,i)=>{let s,a;if(!r||!r.istate||!r.next_in)return e;const o=r.istate;for(i=4==i?n:0,s=n;;)switch(o.mode){case 0:if(0===r.avail_in)return s;if(s=i,r.avail_in--,r.total_in++,8!=(15&(o.method=r.read_byte(r.next_in_index++)))){o.mode=g,r.msg="unknown compression method",o.marker=5;break}if(8+(o.method>>4)>o.wbits){o.mode=g,r.msg="invalid win size",o.marker=5;break}o.mode=1;case 1:if(0===r.avail_in)return s;if(s=i,r.avail_in--,r.total_in++,a=255&r.read_byte(r.next_in_index++),((o.method<<8)+a)%31!=0){o.mode=g,r.msg="incorrect header check",o.marker=5;break}if(0==(32&a)){o.mode=7;break}o.mode=2;case 2:if(0===r.avail_in)return s;s=i,r.avail_in--,r.total_in++,o.need=(255&r.read_byte(r.next_in_index++))<<24&4278190080,o.mode=3;case 3:if(0===r.avail_in)return s;s=i,r.avail_in--,r.total_in++,o.need+=(255&r.read_byte(r.next_in_index++))<<16&16711680,o.mode=4;case 4:if(0===r.avail_in)return s;s=i,r.avail_in--,r.total_in++,o.need+=(255&r.read_byte(r.next_in_index++))<<8&65280,o.mode=5;case 5:return 0===r.avail_in?s:(s=i,r.avail_in--,r.total_in++,o.need+=255&r.read_byte(r.next_in_index++),o.mode=6,2);case 6:return o.mode=g,r.msg="need dictionary",o.marker=0,e;case 7:if(s=o.blocks.proc(r,s),s==t){o.mode=g,o.marker=0;break}if(0==s&&(s=i),1!=s)return s;s=i,o.blocks.reset(r,o.was),o.mode=12;case 12:return r.avail_in=0,1;case g:return t;default:return e}},r.inflateSetDictionary=(t,n,r)=>{let i=0,s=r;if(!t||!t.istate||6!=t.istate.mode)return e;const a=t.istate;return s<1<<a.wbits||(s=(1<<a.wbits)-1,i=r-s),a.blocks.set_dictionary(n,i,s),a.mode=7,0},r.inflateSync=r=>{let s,a,o,l,c;if(!r||!r.istate)return e;const f=r.istate;if(f.mode!=g&&(f.mode=g,f.marker=0),0===(s=r.avail_in))return n;for(a=r.next_in_index,o=f.marker;0!==s&&4>o;)r.read_byte(a)==b[o]?o++:o=0!==r.read_byte(a)?0:4-o,a++,s--;return r.total_in+=a-r.next_in_index,r.next_in_index=a,r.avail_in=s,f.marker=o,4!=o?t:(l=r.total_in,c=r.total_out,i(r),r.total_in=l,r.total_out=c,f.mode=7,0)},r.inflateSyncPoint=t=>t&&t.istate&&t.istate.blocks?t.istate.blocks.sync_point():e}function y(){}return y.prototype={inflateInit:function(e){const t=this;return t.istate=new m,e||(e=15),t.istate.inflateInit(t,e)},inflate:function(t){const n=this;return n.istate?n.istate.inflate(n,t):e},inflateEnd:function(){const t=this;if(!t.istate)return e;const n=t.istate.inflateEnd(t);return t.istate=null,n},inflateSync:function(){const t=this;return t.istate?t.istate.inflateSync(t):e},inflateSetDictionary:function(t,n){const r=this;return r.istate?r.istate.inflateSetDictionary(r,t,n):e},read_byte:function(e){return this.next_in[e]},read_buf:function(e,t){return this.next_in.subarray(e,e+t)}},function(e){const t=new y,r=e&&e.chunkSize?s.floor(2*e.chunkSize):131072,i=new f(r);let a=!1;t.inflateInit(),t.next_out=i,this.append=(e,s)=>{const o=[];let l,u,d=0,h=0,w=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=r,0!==t.avail_in||a||(t.next_in_index=0,a=!0),l=t.inflate(0),a&&l===n){if(0!==t.avail_in)throw new c("inflating: bad input")}else if(0!==l&&1!==l)throw new c("inflating: "+t.msg);if((a||1===l)&&t.avail_in===e.length)throw new c("inflating: bad input");t.next_out_index&&(t.next_out_index===r?o.push(new f(i)):o.push(i.slice(0,t.next_out_index))),w+=t.next_out_index,s&&t.next_in_index>0&&t.next_in_index!=d&&(s(t.next_in_index),d=t.next_in_index)}while(t.avail_in>0||0===t.avail_out);return o.length>1?(u=new f(w),o.forEach((e=>{u.set(e,h),h+=e.length}))):u=o[0]||new f(0),u}},this.flush=()=>{t.inflateEnd()}}})(),C={chunkSize:524288,maxWorkers:"undefined"!=typeof navigator&&navigator.hardwareConcurrency||2,terminateWorkerTimeout:5e3,useWebWorkers:!0,workerScripts:void 0},D=n.assign({},C);function T(){return D}function F(e){return s.max(e.chunkSize,64)}function I(e){if(void 0!==e.baseURL&&(D.baseURL=e.baseURL),void 0!==e.chunkSize&&(D.chunkSize=e.chunkSize),void 0!==e.maxWorkers&&(D.maxWorkers=e.maxWorkers),void 0!==e.terminateWorkerTimeout&&(D.terminateWorkerTimeout=e.terminateWorkerTimeout),void 0!==e.useCompressionStream&&(D.useCompressionStream=e.useCompressionStream),void 0!==e.useWebWorkers&&(D.useWebWorkers=e.useWebWorkers),void 0!==e.Deflate&&(D.Deflate=e.Deflate),void 0!==e.Inflate&&(D.Inflate=e.Inflate),void 0!==e.workerScripts){if(e.workerScripts.deflate){if(!t.isArray(e.workerScripts.deflate))throw new c("workerScripts.deflate must be an array");D.workerScripts||(D.workerScripts={}),D.workerScripts.deflate=e.workerScripts.deflate}if(e.workerScripts.inflate){if(!t.isArray(e.workerScripts.inflate))throw new c("workerScripts.inflate must be an array");D.workerScripts||(D.workerScripts={}),D.workerScripts.inflate=e.workerScripts.inflate}}}function P(e,t,r){return class{constructor(i){const s=this;i.hasOwnProperty("level")&&void 0===i.level&&delete i.level,s.codec=new e(n.assign({},t,i)),r(s.codec,(e=>{if(s.pendingData){const t=s.pendingData;s.pendingData=new f(t.length+e.length),s.pendingData.set(t,0),s.pendingData.set(e,t.length)}else s.pendingData=new f(e)}))}append(e){return this.codec.push(e),i(this)}flush(){return this.codec.push(new f(0),!0),i(this)}};function i(e){if(e.pendingData){const t=e.pendingData;return e.pendingData=null,t}return new f(0)}}const V=[];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;V[e]=t}class U{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^V[255&(t^e[n])];this.crc=t}get(){return~this.crc}}class B extends x{constructor(){super({start(){this.crc32=new U},transform(e){this.crc32.append(e)},flush(e){const t=new f(4);new h(t.buffer).setUint32(0,this.crc32.get()),e.enqueue(t)}})}}function W(e){if(void 0===_){const t=new f((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new _).encode(e)}const X={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=X.getPartial(n);return 32===r?e.concat(t):X._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)+X.getPartial(n)},clamp(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,s.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=X.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=>s.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=X.getPartial(i);return r.push(X.partial(t+s&31,t+s>32?n:r.pop(),1)),r}},M={bytes:{fromBits(e){const t=X.bitLength(e)/8,n=new f(t);let r;for(let i=0;t>i;i++)0==(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==(3&n)&&(t.push(r),r=0);return 3&n&&t.push(X.partial(8*(3&n),r)),t}}},q={sha1:function(e){e?(this._h=e._h.slice(0),this._buffer=e._buffer.slice(0),this._length=e._length):this.reset()}};q.sha1.prototype={blockSize:512,reset:function(){const e=this;return e._h=this._init.slice(0),e._buffer=[],e._length=0,e},update:function(e){const t=this;"string"==typeof e&&(e=M.utf8String.toBits(e));const n=t._buffer=X.concat(t._buffer,e),r=t._length,i=t._length=r+X.bitLength(e);if(i>9007199254740991)throw new c("Cannot hash more than 2^53 - 1 bits");const s=new d(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:function(){const e=this;let t=e._buffer;const n=e._h;t=X.concat(t,[X.partial(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(s.floor(e._length/4294967296)),t.push(0|e._length);t.length;)e._block(t.splice(0,16));return e.reset(),n},_init:[1732584193,4023233417,2562383102,271733878,3285377520],_key:[1518500249,1859775393,2400959708,3395469782],_f:(e,t,n,r)=>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)=>t<<e|t>>>32-e,_block:function(e){const n=this,r=n._h,i=t(80);for(let t=0;16>t;t++)i[t]=e[t];let a=r[0],o=r[1],l=r[2],c=r[3],f=r[4];for(let e=0;79>=e;e++){16>e||(i[e]=n._S(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n._S(5,a)+n._f(e,o,l,c)+f+i[e]+n._key[s.floor(e/20)]|0;f=c,c=l,l=n._S(30,o),o=a,a=t}r[0]=r[0]+a|0,r[1]=r[1]+o|0,r[2]=r[2]+l|0,r[3]=r[3]+c|0,r[4]=r[4]+f|0}};const L={getRandomValues(e){const t=new d(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)*(s.random()>.5?1:-1))};for(let r,i=0;i<e.length;i+=4){const e=n(4294967296*(r||s.random()));r=987654071*e(),t[i/4]=4294967296*e()|0}return e}},N={importKey:e=>new N.hmacSha1(M.bytes.toBits(e)),pbkdf2(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new c("invalid params to pbkdf2");const i=1+(r>>5)<<2;let s,a,o,l,f;const u=new ArrayBuffer(i),d=new h(u);let w=0;const p=X;for(t=M.bytes.toBits(t),f=1;(i||1)>w;f++){for(s=a=e.encrypt(p.concat(t,[f])),o=1;n>o;o++)for(a=e.encrypt(a),l=0;l<a.length;l++)s[l]^=a[l];for(o=0;(i||1)>w&&o<s.length;o++)d.setInt32(w,s[o]),w+=4}return u.slice(0,r/8)},hmacSha1:class{constructor(e){const t=this,n=t._hash=q.sha1,r=[[],[]],i=n.prototype.blockSize/32;t._baseHash=[new n,new n],e.length>i&&(e=n.hash(e));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 new c("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},O="Invalid pasword",H=16,$={name:"PBKDF2"},Z=n.assign({hash:{name:"HMAC"}},$),j=n.assign({iterations:1e3,hash:{name:"SHA-1"}},$),K=["deriveBits"],G=[8,12,16],Y=[16,24,32],J=10,Q=[0,0,0,0],ee="undefined",te="function",ne=typeof y!=ee,re=ne&&typeof y.subtle!=ee,ie=ne&&typeof y.getRandomValues==te,se=ne&&re&&typeof y.subtle.importKey==te,ae=ne&&re&&typeof y.subtle.deriveBits==te,oe=M.bytes,le=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,l=1;if(4!==i&&6!==i&&8!==i)throw new c("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^l<<24,l=l<<1^283*(l>>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,l,c;for(let e=0;256>e;e++)s[(i[e]=e<<1^283*(e>>7))^e]=e;for(let f=a=0;!n[f];f^=o||1,a=s[a]||1){let s=a^a<<1^a<<2^a<<3^a<<4;s=s>>8^255&s^99,n[f]=s,r[s]=f,c=i[l=i[o=i[f]]];let u=16843009*c^65537*l^257*o^16843008*f,d=257*i[s]^16843008*s;for(let n=0;4>n;n++)e[n][f]=d=d<<24^d>>>8,t[n][s]=u=u<<24^u>>>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 new c("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],l=s[2],f=s[3],u=s[4];let d,h,w,p=e[0]^n[0],_=e[t?3:1]^n[1],g=e[2]^n[2],b=e[t?1:3]^n[3],m=4;for(let e=0;r>e;e++)d=a[p>>>24]^o[_>>16&255]^l[g>>8&255]^f[255&b]^n[m],h=a[_>>>24]^o[g>>16&255]^l[b>>8&255]^f[255&p]^n[m+1],w=a[g>>>24]^o[b>>16&255]^l[p>>8&255]^f[255&_]^n[m+2],b=a[b>>>24]^o[p>>16&255]^l[_>>8&255]^f[255&g]^n[m+3],m+=4,p=d,_=h,g=w;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[_>>16&255]<<16^u[g>>8&255]<<8^u[255&b]^n[m++],d=p,p=_,_=g,g=b,b=d;return i}},ce=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&255)){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}else e+=1<<24;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=X.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 X.clamp(t,i)}},fe=N.hmacSha1;class ue extends x{constructor(e,r,i){let s;super({start(){n.assign(this,{ready:new p((e=>this.resolveReady=e)),password:e,signed:r,strength:i-1,pending:new f(0)})},async transform(e,n){const r=this;if(r.password){const n=r.password;r.password=null;const i=_e(e,0,G[r.strength]+2);await(async(e,t,n)=>{await we(e,n,_e(t,0,G[e.strength]));const r=_e(t,G[e.strength]),i=e.keys.passwordVerification;if(i[0]!=r[0]||i[1]!=r[1])throw new c(O)})(r,i,n),r.ctr=new ce(new le(r.keys.key),t.from(Q)),r.hmac=new fe(r.keys.authentication),e=_e(e,G[r.strength]+2),r.resolveReady()}else await r.ready;const i=new f(e.length-J-(e.length-J)%H);n.enqueue(he(r,e,i,0,J,!0))},async flush(e){const t=this;await t.ready;const n=t.pending,r=_e(n,0,n.length-J),i=_e(n,n.length-J);let a=new f(0);if(r.length){const e=be(oe,r);t.hmac.update(e);const n=t.ctr.update(e);a=ge(oe,n)}if(s.valid=!0,t.signed){const e=_e(ge(oe,t.hmac.digest()),0,J);for(let t=0;J>t;t++)e[t]!=i[t]&&(s.valid=!1)}e.enqueue(a)}}),s=this}}class de extends x{constructor(e,r){let i;super({start(){n.assign(this,{ready:new p((e=>this.resolveReady=e)),password:e,strength:r-1,pending:new f(0)})},async transform(e,n){const r=this;let i=new f(0);if(r.password){const e=r.password;r.password=null,i=await(async(e,t)=>{const n=(r=new f(G[e.strength]),ie?y.getRandomValues(r):L.getRandomValues(r));var r;return await we(e,t,n),pe(n,e.keys.passwordVerification)})(r,e),r.ctr=new ce(new le(r.keys.key),t.from(Q)),r.hmac=new fe(r.keys.authentication),r.resolveReady()}else await r.ready;const s=new f(i.length+e.length-e.length%H);s.set(i,0),n.enqueue(he(r,e,s,i.length,0))},async flush(e){const t=this;await t.ready;let n=new f(0);if(t.pending.length){const e=t.ctr.update(be(oe,t.pending));t.hmac.update(e),n=ge(oe,e)}i.signature=ge(oe,t.hmac.digest()).slice(0,J),e.enqueue(pe(n,i.signature))}}),i=this}}function he(e,t,n,r,i,s){const a=t.length-i;let o;for(e.pending.length&&(t=pe(e.pending,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new f(t)).set(n,0)}return e})(n,a-a%H)),o=0;a-H>=o;o+=H){const i=be(oe,_e(t,o,o+H));s&&e.hmac.update(i);const a=e.ctr.update(i);s||e.hmac.update(a),n.set(ge(oe,a),o+r)}return e.pending=_e(t,o),n}async function we(e,t,r){const i=W(t),s=await((e,t,n,r,i)=>se?y.subtle.importKey("raw",t,n,!1,i):N.importKey(t))(0,i,Z,0,K),a=await(async(e,t,n)=>ae?await y.subtle.deriveBits(e,t,n):N.pbkdf2(t,e.salt,j.iterations,n))(n.assign({salt:r},j),s,8*(2*Y[e.strength]+2)),o=new f(a);e.keys={key:be(oe,_e(o,0,Y[e.strength])),authentication:be(oe,_e(o,Y[e.strength],2*Y[e.strength])),passwordVerification:_e(o,2*Y[e.strength])}}function pe(e,t){let n=e;return e.length+t.length&&(n=new f(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function _e(e,t,n){return e.subarray(t,n)}function ge(e,t){return e.fromBits(t)}function be(e,t){return e.toBits(t)}class me extends x{constructor(e,t){let r;super({start(){n.assign(this,{password:e,passwordVerification:t}),ve(this,e)},transform(e,t){const n=this;if(n.password){const t=ke(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new c(O);e=e.subarray(12)}t.enqueue(ke(n,e))},flush(){r.valid=!0}}),r=this}}class ye extends x{constructor(e,t){super({start(){n.assign(this,{password:e,passwordVerification:t}),ve(this,e)},transform(e,t){const n=this;let r,i;if(n.password){n.password=null;const t=y.getRandomValues(new f(12));t[11]=n.passwordVerification,r=new f(e.length+t.length),r.set(xe(n,t),0),i=12}else r=new f(e.length),i=0;r.set(xe(n,e),i),t.enqueue(r)},flush(){}})}}function ke(e,t){const n=new f(t.length);for(let r=0;r<t.length;r++)n[r]=Ae(e)^t[r],Se(e,n[r]);return n}function xe(e,t){const n=new f(t.length);for(let r=0;r<t.length;r++)n[r]=Ae(e)^t[r],Se(e,t[r]);return n}function ve(e,t){e.keys=[305419896,591751049,878082192],e.crcKey0=new U(e.keys[0]),e.crcKey2=new U(e.keys[2]);for(let n=0;n<t.length;n++)Se(e,t.charCodeAt(n))}function Se(e,t){e.crcKey0.append([t]),e.keys[0]=~e.crcKey0.get(),e.keys[1]=Re(e.keys[1]+Ee(e.keys[0])),e.keys[1]=Re(s.imul(e.keys[1],134775813)+1),e.crcKey2.append([e.keys[1]>>>24]),e.keys[2]=~e.crcKey2.get()}function Ae(e){const t=2|e.keys[2];return Ee(s.imul(t,1^t)>>>8)}function Ee(e){return 255&e}function Re(e){return 4294967295&e}class ze extends x{constructor(e,t){super({start(){this.codec=new e(t)},transform(e,t){e=this.codec.append(e),t.enqueue(e)},flush(e){const t=this.codec.flush();e.enqueue(t)}})}}const Ce="Invalid signature",De="deflate-raw",Te="undefined";class Fe extends x{constructor(e,{compressed:t,useCompressionStream:n,password:r,passwordVerification:i,encryptionStrength:s,zipCrypto:a,signed:o},{chunkSize:l},...c){super({},...c);const f=this;let u,d,w=Ve(super.readable);const p=!!r;if(p&&!a||!o||([w,u]=w.tee(),u=u.pipeThrough(new B)),t)if(void 0!==n&&!n||typeof A==Te)w=Pe(e,w,l);else try{const e=new A(De);w=w.pipeThrough(e)}catch(t){w=Pe(e,w,l)}p&&(a?w=w.pipeThrough(new ye(r,i)):(d=new de(r,s),w=w.pipeThrough(d))),Ue(f,w,(async()=>{let e;p&&!a&&(e=d.signature),p&&!a||!o||(e=await u.getReader().read(),e=new h(e.value.buffer).getUint32(0)),f.signature=e}))}}class Ie extends x{constructor(e,{zipCrypto:t,password:n,passwordVerification:r,signed:i,encryptionStrength:s,compressed:a,useCompressionStream:o},{chunkSize:l},...f){super({},...f);let u,d,w=Ve(super.readable);const p=!!n;if(p&&(t?w=w.pipeThrough(new me(n,r)):(d=new ue(n,i,s),w=w.pipeThrough(d))),a)if(void 0!==o&&!o||typeof E==Te)w=Pe(e,w,l);else try{w=w.pipeThrough(new E(De))}catch(t){w=Pe(e,w,l)}p&&!t||!i||([w,u]=w.tee(),u=u.pipeThrough(new B)),Ue(this,w,(async()=>{let e;if(p&&!t&&!d.valid)throw new c(Ce);if((!p||t)&&i&&(e=await u.getReader().read(),e!=new h(e.value.buffer).getUint32(0,!1)))throw new c(Ce)}))}}function Pe(e,t,n){return t.pipeThrough(new ze(e,{chunkSize:n}))}function Ve(e){return e.pipeThrough(new x({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function Ue(e,t,r){e.length=0,t=t.pipeThrough(new x({transform(t,n){t&&t.length&&(e.length+=t.length,n.enqueue(t))},flush:r})),n.defineProperty(e,"readable",{get:()=>t})}const Be="deflate",We="inflate",Xe="data",Me="AbortError";let qe=!0;function Le(e,t,r,i,s,a,o,u,d,h){n.assign(e,{busy:!0,codecConstructor:t,readable:r,writable:i,options:n.assign({},s),scripts:h,terminate(){e.worker&&!e.busy&&(e.worker.terminate(),e.interface=null)},onTaskFinished(){e.busy=!1,u(e)}});const{signal:w,onprogress:_,size:g}=o;if(w||_){let t=0;const n={};_&&(n.transform=(e,n)=>{t+=e.length;try{_(t,g())}catch(e){}n.enqueue(e)}),e.readable=r.pipeThrough(new x(n),{signal:w})}return d?((e,{baseURL:t,chunkSize:n})=>{const r={type:"module"};if(e.reader=e.readable.getReader(),e.writer=e.writable.getWriter(),e.result=new p(((t,n)=>{e.resolveResult=t,e.rejectResult=n})),!e.interface){if(qe)try{e.worker=i({})}catch(t){qe=!1,e.worker=i(r)}else e.worker=i(r);e.worker.addEventListener("message",(async t=>{const n=t.data,r=n.error;try{if(r){const t=new c(r.message);t.stack=r.stack,e.rejectResult(t),e.onTaskFinished()}else{if("pull"==n.type){const{value:t,done:r}=await e.reader.read();s({type:Xe,data:t,done:r,messageId:n.messageId})}if(n.type==Xe){let{data:t}=n;t=new f(t),await e.writer.ready,e.writer.write(t)}"close"==n.type&&(e.resolveResult(n.result),e.onTaskFinished())}}catch(t){e.rejectResult(t),e.onTaskFinished()}}),!1),e.interface={abort(){s({type:"abort"}),e.onTaskFinished()},run(){const t=e.options;return s({type:"start",scripts:e.scripts.slice(1),options:t,config:{chunkSize:n}}),e.result}}}return e.interface;function i(n){let r,i;r=e.scripts[0],"function"==typeof r&&(r=r());try{i=new l(r,t)}catch(e){i=r}return new Worker(i,n)}function s(t){const n=e.worker;try{if(t.data)try{t.data=t.data.buffer,n.postMessage(t,[t.data])}catch(e){n.postMessage(t)}else n.postMessage(t)}catch(t){throw e.onTaskFinished(),t}}})(e,a):((e,t)=>{const n=((e,t,n,r,i)=>{const s=new AbortController,{signal:a}=s;if(r.codecType.startsWith(Be))return{run:()=>o(Fe),abort:()=>{s.abort()}};if(r.codecType.startsWith(We))return{run:()=>o(Ie),AbortController:AbortController};async function o(s){const o=new s(e,r,i);await t.pipeThrough(o,{signal:a}).pipeTo(n);const{length:l,signature:c}=o;return{length:l,signature:c}}})(e.codecConstructor,e.readable,e.writable,e.options,t);return{abort(){n.abort(),e.onTaskFinished()},run(){const t=n.run();return e.onTaskFinished(),t}}})(e,a)}let Ne=[];const Oe=[];let He=0;async function $e(e,t,n,r,i,s){const a=!(!r.compressed&&!r.signed&&!r.encrypted)&&(r.useWebWorkers||void 0===r.useWebWorkers&&i.useWebWorkers),o=a&&i.workerScripts?i.workerScripts[r.codecType]:[];let l;if(r.useCompressionStream=void 0===r.useCompressionStream?i.useCompressionStream:r.useCompressionStream,Ne.length<i.maxWorkers){const c={indexWorker:He};He++,Ne.push(c),l=Le(c,e,t,n,r,i,s,u,a,o)}else{const c=Ne.find((e=>!e.busy));c?(Ze(c),l=Le(c,e,t,n,r,i,s,u,a,o)):l=await new p((i=>Oe.push({resolve:i,codecConstructor:e,readable:t,writable:n,options:r,webWorker:a,scripts:o})))}const{signal:f}=s;try{return await l.run(f)}catch(e){throw f&&f.aborted&&f.reason==e?(l.abort(),new c(Me)):e}function u(e){if(Oe.length){const[{resolve:t,codecConstructor:n,readable:r,writable:a,options:o,webWorker:l,scripts:c}]=Oe.splice(0,1);t(Le(e,n,r,a,o,i,s,u,l,c))}else e.worker?(Ze(e),Number.isFinite(i.terminateWorkerTimeout)&&i.terminateWorkerTimeout>=0&&(e.terminateTimeout=setTimeout((()=>{Ne=Ne.filter((t=>t!=e)),e.terminate()}),i.terminateWorkerTimeout))):Ne=Ne.filter((t=>t!=e))}}function Ze(e){e.terminateTimeout&&(clearTimeout(e.terminateTimeout),e.terminateTimeout=null)}const je="HTTP error ",Ke="HTTP Range not supported",Ge="text/plain",Ye="GET";class Je{constructor(){this.size=0}init(){this.initialized=!0}}class Qe extends Je{getStream({offset:e,size:t,chunkSize:n}={offset:0,chunkSize:65536}){const r=this;return new v({start(){this.chunkOffset=0},async pull(i){const{chunkOffset:a}=this;i.enqueue(await r.readUint8Array(e+a,s.min(n,t()-a))),a+n>t()?i.close():this.chunkOffset+=n}})}}class et extends Je{getStream(){const e=this;return new S({write:t=>e.writeUint8Array(t)})}}class tt extends et{writeUint8Array(e){this.size+=e.length}}class nt extends Qe{constructor(e){super(),this.blob=e,this.size=e.size}async readUint8Array(e,t){if(this.blob.arrayBuffer)return new f(await this.blob.slice(e,e+t).arrayBuffer());{const n=new b;return new p(((r,i)=>{n.onload=e=>r(new f(e.target.result)),n.onerror=()=>i(n.error),n.readAsArrayBuffer(n.blob.slice(e,e+t))}))}}}class rt extends tt{constructor(e){super(),this.contentType=e,this.arrayBuffersMaxlength=8,it(this)}writeUint8Array(e){super.writeUint8Array(e);const t=this;t.arrayBuffers.length==t.arrayBuffersMaxlength&&st(t),t.arrayBuffers.push(e.buffer)}getData(){const e=this;return e.blob||(e.arrayBuffers.length&&st(e),e.blob=e.pendingBlob,it(e)),e.blob}}function it(e){e.pendingBlob=new w([],{type:e.contentType}),e.arrayBuffers=[]}function st(e){e.pendingBlob=new w([e.pendingBlob,...e.arrayBuffers],{type:e.contentType}),e.arrayBuffers=[]}class at extends Qe{constructor(e,t){super();const r=this;r.url=e,r.preventHeadRequest=t.preventHeadRequest,r.useRangeHeader=t.useRangeHeader,r.forceRangeRequests=t.forceRangeRequests,r.options=n.assign({},t),delete r.options.preventHeadRequest,delete r.options.useRangeHeader,delete r.options.forceRangeRequests,delete r.options.useXHR}async init(){super.init(),await lt(this,_t,dt)}readUint8Array(e,t){return ct(this,e,t,_t,dt)}}class ot extends Qe{constructor(e,t){super();const n=this;n.url=e,n.preventHeadRequest=t.preventHeadRequest,n.useRangeHeader=t.useRangeHeader,n.forceRangeRequests=t.forceRangeRequests,n.options=t}async init(){super.init(),await lt(this,gt,ht)}readUint8Array(e,t){return ct(this,e,t,gt,ht)}}async function lt(e,t,n){if((e=>{if(void 0!==m){const t=m.createElement("a");return t.href=e,"http:"==t.protocol||"https:"==t.protocol}return/^https?:\/\//i.test(e)})(e.url)&&(e.useRangeHeader||e.forceRangeRequests)){const r=await t(Ye,e,ft(e));if(!e.forceRangeRequests&&"bytes"!=r.headers.get("Accept-Ranges"))throw new c(Ke);{let i;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))}}void 0===i?await pt(e,t,n):e.size=i}}else await pt(e,t,n)}async function ct(e,t,n,r,i){if(e.useRangeHeader||e.forceRangeRequests){const i=await r(Ye,e,ft(e,t,n));if(206!=i.status)throw new c(Ke);return new f(await i.arrayBuffer())}return e.data||await i(e,e.options),new f(e.data.subarray(t,t+n))}function ft(e,t=0,r=1){return n.assign({},ut(e),{Range:"bytes="+t+"-"+(t+r-1)})}function ut(e){const t=e.options.headers;if(t)return Symbol.iterator in t?n.fromEntries(t):t}async function dt(e){await wt(e,_t)}async function ht(e){await wt(e,gt)}async function wt(e,t){const n=await t(Ye,e,ut(e));e.data=new f(await n.arrayBuffer()),e.size||(e.size=e.data.length)}async function pt(e,t,n){if(e.preventHeadRequest)await n(e,e.options);else{const r=(await t("HEAD",e,ut(e))).headers.get("Content-Length");r?e.size=Number(r):await n(e,e.options)}}async function _t(e,{options:t,url:r},i){const s=await fetch(r,n.assign({},t,{method:e,headers:i}));if(400>s.status)return s;throw new c(je+(s.statusText||s.status))}function gt(e,{url:t},r){return new p(((i,s)=>{const a=new XMLHttpRequest;if(a.addEventListener("load",(()=>{if(400>a.status){const e=[];a.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)})),i({status:a.status,arrayBuffer:()=>a.response,headers:new o(e)})}else s(new c(je+(a.statusText||a.status)))}),!1),a.addEventListener("error",(e=>s(e.detail.error)),!1),a.open(e,t),r)for(const e of n.entries(r))a.setRequestHeader(e[0],e[1]);a.responseType="arraybuffer",a.send()}))}class bt extends Qe{constructor(e,t={}){super(),this.url=e,t.useXHR?this.reader=new ot(e,t):this.reader=new at(e,t)}set size(e){}get size(){return this.reader.size}async init(){super.init(),await this.reader.init()}readUint8Array(e,t){return this.reader.readUint8Array(e,t)}}const mt=4294967295,yt=65535,kt=67324752,xt=33639248,vt=101075792,St=117853008,At=21589,Et=2048,Rt="/",zt=new a(2107,11,31),Ct=new a(1980,0,1),Dt="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("");function Tt(e,t){if(t&&"cp437"==t.trim().toLowerCase())return(e=>{let t="";for(let n=0;n<e.length;n++)t+=Dt[e[n]];return t})(e);if(void 0===g){const t=new b;return new p(((n,r)=>{t.onload=e=>n(e.target.result),t.onerror=()=>r(t.error),t.readAsText(new w([e]))}))}return new g(t).decode(e)}const Ft=["filename","rawFilename","directory","encrypted","compressedSize","uncompressedSize","lastModDate","rawLastModDate","comment","rawComment","signature","extraField","rawExtraField","bitFlag","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","filenameUTF8","commentUTF8","offset","zip64","compressionMethod","extraFieldNTFS","lastAccessDate","creationDate","extraFieldExtendedTimestamp","version","versionMadeBy","msDosCompatible","internalFileAttribute","externalFileAttribute"];class It{constructor(e){Ft.forEach((t=>this[t]=e[t]))}}const Pt="File format is not recognized",Vt="End of central directory not found",Ut="End of Zip64 central directory not found",Bt="End of Zip64 central directory locator not found",Wt="Central directory header not found",Xt="Local file header not found",Mt="Zip64 extra field not found",qt="File contains encrypted entry",Lt="Encryption method not supported",Nt="Compression method not supported",Ot="utf-8",Ht="cp437",$t=["uncompressedSize","compressedSize","offset"];class Zt{constructor(e,t,r){n.assign(this,{reader:e,config:t,options:r})}async getData(e,t,n={}){const r=this,{reader:i,offset:s,extraFieldAES:a,compressionMethod:o,config:l,bitFlag:f,signature:u,rawLastModDate:d,compressedSize:h}=r,w=r.localDirectory={};i.initialized||await i.init();let p=await an(i,s,30);const _=sn(p);let g=Yt(r,n,"password");if(g=g&&g.length&&g,a&&99!=a.originalCompressionMethod)throw new c(Nt);if(0!=o&&8!=o)throw new c(Nt);if(nn(_,0)!=kt)throw new c(Xt);jt(w,_,4),p=await an(i,s,30+w.filenameLength+w.extraFieldLength),w.rawExtraField=p.subarray(30+w.filenameLength),await Kt(r,w,_,4),t.lastAccessDate=w.lastAccessDate,t.creationDate=w.creationDate;const b=r.encrypted&&w.encrypted,m=b&&!a;if(b){if(!m&&void 0===a.strength)throw new c(Lt);if(!g)throw new c(qt)}const y=s+30+w.filenameLength+w.extraFieldLength,k=()=>h,x=i.getStream({offset:y,size:k,chunkSize:F(l)}),v=e.getStream(),S=Yt(r,n,"signal");return e.initialized||await e.init(),await $e(l.Inflate,x,v,{codecType:We,password:g,zipCrypto:m,encryptionStrength:a&&a.strength,signed:Yt(r,n,"checkSignature"),passwordVerification:m&&(f.dataDescriptor?d>>>8&255:u>>>24&255),signature:u,compressed:0!=o,encrypted:b,useWebWorkers:Yt(r,n,"useWebWorkers"),useCompressionStream:Yt(r,n,"useCompressionStream")},l,{signal:S,onprogress:n.onprogress,size:k}),e.getData()}}function jt(e,t,r){const i=e.rawBitFlag=tn(t,r+2),s=1==(1&i),a=nn(t,r+6);n.assign(e,{encrypted:s,version:tn(t,r),bitFlag:{level:(6&i)>>1,dataDescriptor:8==(8&i),languageEncodingFlag:(i&Et)==Et},rawLastModDate:a,lastModDate:Jt(a),filenameLength:tn(t,r+22),extraFieldLength:tn(t,r+24)})}async function Kt(e,t,r,i){const l=t.rawExtraField,u=t.extraField=new o,d=sn(new f(l));let h=0;try{for(;h<l.length;){const e=tn(d,h),t=tn(d,h+2);u.set(e,{type:e,data:l.slice(h+4,h+4+t)}),h+=4+t}}catch(e){}const w=tn(r,i+4);t.signature=nn(r,i+10),t.uncompressedSize=nn(r,i+18),t.compressedSize=nn(r,i+14);const p=u.get(1);p&&(((e,t)=>{t.zip64=!0;const n=sn(e.data);e.values=[];for(let t=0;t<s.floor(e.data.length/8);t++)e.values.push(rn(n,0+8*t));const r=$t.filter((e=>t[e]==mt));for(let t=0;t<r.length;t++)e[r[t]]=e.values[t];$t.forEach((n=>{if(t[n]==mt){if(void 0===e[n])throw new c(Mt);t[n]=e[n]}}))})(p,t),t.extraFieldZip64=p);const _=u.get(28789);_&&(await Gt(_,"filename","rawFilename",t,e),t.extraFieldUnicodePath=_);const g=u.get(25461);g&&(await Gt(g,"comment","rawComment",t,e),t.extraFieldUnicodeComment=g);const b=u.get(39169);b?(((e,t,n)=>{const r=sn(e.data);e.vendorVersion=en(r,0),e.vendorId=en(r,2);const i=en(r,4);e.strength=i,e.originalCompressionMethod=n,t.compressionMethod=e.compressionMethod=tn(r,5)})(b,t,w),t.extraFieldAES=b):t.compressionMethod=w;const m=u.get(10);m&&(((e,t)=>{const r=sn(e.data);let i,s=4;try{for(;s<e.data.length&&!i;){const t=tn(r,s),n=tn(r,s+2);1==t&&(i=e.data.slice(s+4,s+4+n)),s+=4+n}}catch(e){}try{if(i&&24==i.length){const r=sn(i),s=r.getBigUint64(0,!0),a=r.getBigUint64(8,!0),o=r.getBigUint64(16,!0);n.assign(e,{rawLastModDate:s,rawLastAccessDate:a,rawCreationDate:o});const l={lastModDate:Qt(s),lastAccessDate:Qt(a),creationDate:Qt(o)};n.assign(e,l),n.assign(t,l)}}catch(e){}})(m,t),t.extraFieldNTFS=m);const y=u.get(At);y&&(((e,t)=>{const n=sn(e.data),r=en(n,0),i=[],s=[];1==(1&r)&&(i.push("lastModDate"),s.push("rawLastModDate")),2==(2&r)&&(i.push("lastAccessDate"),s.push("rawLastAccessDate")),4==(4&r)&&(i.push("creationDate"),s.push("rawCreationDate"));let o=1;i.forEach(((r,i)=>{if(e.data.length>=o+4){const l=nn(n,o);t[r]=e[r]=new a(1e3*l);const c=s[i];e[c]=l}o+=4}))})(y,t),t.extraFieldExtendedTimestamp=y)}async function Gt(e,t,n,r,i){const s=sn(e.data);e.version=en(s,0),e.signature=nn(s,1);const a=new U;a.append(i[n]);const o=sn(new f(4));o.setUint32(0,a.get(),!0),e[t]=await Tt(e.data.subarray(5)),e.valid=!i.bitFlag.languageEncodingFlag&&e.signature==nn(o,0),e.valid&&(r[t]=e[t],r[t+"UTF8"]=!0)}function Yt(e,t,n){return void 0===t[n]?e.options[n]:t[n]}function Jt(e){const t=(4294901760&e)>>16,n=65535&e;try{return new a(1980+((65024&t)>>9),((480&t)>>5)-1,31&t,(63488&n)>>11,(2016&n)>>5,2*(31&n),0)}catch(e){}}function Qt(e){return new a(Number(e/i(1e4)-i(116444736e5)))}function en(e,t){return e.getUint8(t)}function tn(e,t){return e.getUint16(t,!0)}function nn(e,t){return e.getUint32(t,!0)}function rn(e,t){return Number(e.getBigUint64(t,!0))}function sn(e){return new h(e.buffer)}function an(e,t,n){return e.readUint8Array(t,n)}const on="File already exists",ln="Zip file comment exceeds 64KB",cn="File entry comment exceeds 64KB",fn="File entry name exceeds 64KB",un="Version exceeds 65535",dn="The strength must equal 1, 2, or 3",hn="Extra field type exceeds 65535",wn="Extra field data exceeds 64KB",pn="Zip64 is not supported",_n=new f([7,0,2,0,65,69,3,0,0]);let gn,bn=0;function mn(e,t,n){if(e.arrayBuffer)return t||n?e.slice(t,n).arrayBuffer():e.arrayBuffer();{const r=new b;return new p(((i,s)=>{r.onload=e=>i(e.target.result),r.onerror=()=>s(r.error),r.readAsArrayBuffer(t||n?e.slice(t,n):e)}))}}async function yn(e,t){await e.ready,await e.write(t)}function kn(e){if(e)return(i(e.getTime())+i(116444736e5))*i(1e4)}function xn(e,t,n){return void 0===t[n]?e.options[n]:t[n]}function vn(e,t,n){e.setUint8(t,n)}function Sn(e,t,n){e.setUint16(t,n,!0)}function An(e,t,n){e.setUint32(t,n,!0)}function En(e,t,n){e.setBigUint64(t,n,!0)}function Rn(e,t,n){e.set(t,n)}function zn(e){return new h(e.buffer)}try{gn=void 0===m&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:void 0===m?location.href:m.currentScript&&m.currentScript.src||new l("zip-full.min.js",m.baseURI).href}catch(e){}(e=>{if("function"==typeof l.createObjectURL){const t=()=>l.createObjectURL(new w(['const{Array:t,Object:e,Math:n,Error:r,Uint8Array:i,Uint16Array:s,Uint32Array:o,Int32Array:f,DataView:c,TextEncoder:l,crypto:u,postMessage:a,TransformStream:w,ReadableStream:h,WritableStream:d,CompressionStream:p,DecompressionStream:b}=globalThis,y=[];for(let t=0;256>t;t++){let e=t;for(let t=0;8>t;t++)1&e?e=e>>>1^3988292384:e>>>=1;y[t]=e}class m{constructor(t){this.t=t||-1}append(t){let e=0|this.t;for(let n=0,r=0|t.length;r>n;n++)e=e>>>8^y[255&(e^t[n])];this.t=e}get(){return~this.t}}class k extends w{constructor(){super({start(){this.i=new m},transform(t){this.i.append(t)},flush(t){const e=new i(4);new c(e.buffer).setUint32(0,this.i.get()),t.enqueue(e)}})}}const g={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const n=t[t.length-1],r=g.o(n);return 32===r?t.concat(e):g.l(e,r,0|n,t.slice(0,t.length-1))},u(t){const e=t.length;if(0===e)return 0;const n=t[e-1];return 32*(e-1)+g.o(n)},h(t,e){if(32*t.length<e)return t;const r=(t=t.slice(0,n.ceil(e/32))).length;return e&=31,r>0&&e&&(t[r-1]=g.p(e,t[r-1]&2147483648>>e-1,1)),t},p:(t,e,n)=>32===t?e:(n?0|e:e<<32-t)+1099511627776*t,o:t=>n.round(t/1099511627776)||32,l(t,e,n,r){for(void 0===r&&(r=[]);e>=32;e-=32)r.push(n),n=0;if(0===e)return r.concat(t);for(let i=0;i<t.length;i++)r.push(n|t[i]>>>e),n=t[i]<<32-e;const i=t.length?t[t.length-1]:0,s=g.o(i);return r.push(g.p(e+s&31,e+s>32?n:r.pop(),1)),r}},v={m:{k(t){const e=g.u(t)/8,n=new i(e);let r;for(let i=0;e>i;i++)0==(3&i)&&(r=t[i/4]),n[i]=r>>>24,r<<=8;return n},g(t){const e=[];let n,r=0;for(n=0;n<t.length;n++)r=r<<8|t[n],3==(3&n)&&(e.push(r),r=0);return 3&n&&e.push(g.p(8*(3&n),r)),e}}},S={v:function(t){t?(this.S=t.S.slice(0),this.C=t.C.slice(0),this._=t._):this.reset()}};S.v.prototype={blockSize:512,reset:function(){const t=this;return t.S=this.A.slice(0),t.C=[],t._=0,t},update:function(t){const e=this;"string"==typeof t&&(t=v.I.g(t));const n=e.C=g.concat(e.C,t),i=e._,s=e._=i+g.u(t);if(s>9007199254740991)throw new r("Cannot hash more than 2^53 - 1 bits");const f=new o(n);let c=0;for(let t=e.blockSize+i-(e.blockSize+i&e.blockSize-1);s>=t;t+=e.blockSize)e.V(f.subarray(16*c,16*(c+1))),c+=1;return n.splice(0,16*c),e},P:function(){const t=this;let e=t.C;const r=t.S;e=g.concat(e,[g.p(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(n.floor(t._/4294967296)),e.push(0|t._);e.length;)t.V(e.splice(0,16));return t.reset(),r},A:[1732584193,4023233417,2562383102,271733878,3285377520],B:[1518500249,1859775393,2400959708,3395469782],D:(t,e,n,r)=>t>19?t>39?t>59?t>79?void 0:e^n^r:e&n|e&r|n&r:e^n^r:e&n|~e&r,M:(t,e)=>e<<t|e>>>32-t,V:function(e){const r=this,i=r.S,s=t(80);for(let t=0;16>t;t++)s[t]=e[t];let o=i[0],f=i[1],c=i[2],l=i[3],u=i[4];for(let t=0;79>=t;t++){16>t||(s[t]=r.M(1,s[t-3]^s[t-8]^s[t-14]^s[t-16]));const e=r.M(5,o)+r.D(t,f,c,l)+u+s[t]+r.B[n.floor(t/20)]|0;u=l,l=c,c=r.M(30,f),f=o,o=e}i[0]=i[0]+o|0,i[1]=i[1]+f|0,i[2]=i[2]+c|0,i[3]=i[3]+l|0,i[4]=i[4]+u|0}};const C={getRandomValues(t){const e=new o(t.buffer),r=t=>{let e=987654321;const r=4294967295;return()=>(e=36969*(65535&e)+(e>>16)&r,(((e<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r)/4294967296+.5)*(n.random()>.5?1:-1))};for(let i,s=0;s<t.length;s+=4){const t=r(4294967296*(i||n.random()));i=987654071*t(),e[s/4]=4294967296*t()|0}return t}},_={importKey:t=>new _.R(v.m.g(t)),U(t,e,n,i){if(n=n||1e4,0>i||0>n)throw new r("invalid params to pbkdf2");const s=1+(i>>5)<<2;let o,f,l,u,a;const w=new ArrayBuffer(s),h=new c(w);let d=0;const p=g;for(e=v.m.g(e),a=1;(s||1)>d;a++){for(o=f=t.encrypt(p.concat(e,[a])),l=1;n>l;l++)for(f=t.encrypt(f),u=0;u<f.length;u++)o[u]^=f[u];for(l=0;(s||1)>d&&l<o.length;l++)h.setInt32(d,o[l]),d+=4}return w.slice(0,i/8)},R:class{constructor(t){const e=this,n=e.T=S.v,r=[[],[]],i=n.prototype.blockSize/32;e.W=[new n,new n],t.length>i&&(t=n.hash(t));for(let e=0;i>e;e++)r[0][e]=909522486^t[e],r[1][e]=1549556828^t[e];e.W[0].update(r[0]),e.W[1].update(r[1]),e.j=new n(e.W[0])}reset(){const t=this;t.j=new t.T(t.W[0]),t.H=!1}update(t){this.H=!0,this.j.update(t)}digest(){const t=this,e=t.j.P(),n=new t.T(t.W[1]).update(e).P();return t.reset(),n}encrypt(t){if(this.H)throw new r("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},A={name:"PBKDF2"},z=e.assign({hash:{name:"HMAC"}},A),x=e.assign({iterations:1e3,hash:{name:"SHA-1"}},A),I=["deriveBits"],V=[8,12,16],P=[16,24,32],B=[0,0,0,0],D=void 0!==u,E=D&&void 0!==u.subtle,M=D&&"function"==typeof u.getRandomValues,R=D&&E&&"function"==typeof u.subtle.importKey,U=D&&E&&"function"==typeof u.subtle.deriveBits,T=v.m,W=class{constructor(t){const e=this;e.K=[[[],[],[],[],[]],[[],[],[],[],[]]],e.K[0][0][0]||e.L();const n=e.K[0][4],i=e.K[1],s=t.length;let o,f,c,l=1;if(4!==s&&6!==s&&8!==s)throw new r("invalid aes key size");for(e.B=[f=t.slice(0),c=[]],o=s;4*s+28>o;o++){let t=f[o-1];(o%s==0||8===s&&o%s==4)&&(t=n[t>>>24]<<24^n[t>>16&255]<<16^n[t>>8&255]<<8^n[255&t],o%s==0&&(t=t<<8^t>>>24^l<<24,l=l<<1^283*(l>>7))),f[o]=f[o-s]^t}for(let t=0;o;t++,o--){const e=f[3&t?o:o-4];c[t]=4>=o||4>t?e:i[0][n[e>>>24]]^i[1][n[e>>16&255]]^i[2][n[e>>8&255]]^i[3][n[255&e]]}}encrypt(t){return this.F(t,0)}decrypt(t){return this.F(t,1)}L(){const t=this.K[0],e=this.K[1],n=t[4],r=e[4],i=[],s=[];let o,f,c,l;for(let t=0;256>t;t++)s[(i[t]=t<<1^283*(t>>7))^t]=t;for(let u=o=0;!n[u];u^=f||1,o=s[o]||1){let s=o^o<<1^o<<2^o<<3^o<<4;s=s>>8^255&s^99,n[u]=s,r[s]=u,l=i[c=i[f=i[u]]];let a=16843009*l^65537*c^257*f^16843008*u,w=257*i[s]^16843008*s;for(let n=0;4>n;n++)t[n][u]=w=w<<24^w>>>8,e[n][s]=a=a<<24^a>>>8}for(let n=0;5>n;n++)t[n]=t[n].slice(0),e[n]=e[n].slice(0)}F(t,e){if(4!==t.length)throw new r("invalid aes block size");const n=this.B[e],i=n.length/4-2,s=[0,0,0,0],o=this.K[e],f=o[0],c=o[1],l=o[2],u=o[3],a=o[4];let w,h,d,p=t[0]^n[0],b=t[e?3:1]^n[1],y=t[2]^n[2],m=t[e?1:3]^n[3],k=4;for(let t=0;i>t;t++)w=f[p>>>24]^c[b>>16&255]^l[y>>8&255]^u[255&m]^n[k],h=f[b>>>24]^c[y>>16&255]^l[m>>8&255]^u[255&p]^n[k+1],d=f[y>>>24]^c[m>>16&255]^l[p>>8&255]^u[255&b]^n[k+2],m=f[m>>>24]^c[p>>16&255]^l[b>>8&255]^u[255&y]^n[k+3],k+=4,p=w,b=h,y=d;for(let t=0;4>t;t++)s[e?3&-t:t]=a[p>>>24]<<24^a[b>>16&255]<<16^a[y>>8&255]<<8^a[255&m]^n[k++],w=p,p=b,b=y,y=m,m=w;return s}},j=class{constructor(t,e){this.O=t,this.q=e,this.G=e}reset(){this.G=this.q}update(t){return this.J(this.O,t,this.G)}N(t){if(255==(t>>24&255)){let e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}X(t){0===(t[0]=this.N(t[0]))&&(t[1]=this.N(t[1]))}J(t,e,n){let r;if(!(r=e.length))return[];const i=g.u(e);for(let i=0;r>i;i+=4){this.X(n);const r=t.encrypt(n);e[i]^=r[0],e[i+1]^=r[1],e[i+2]^=r[2],e[i+3]^=r[3]}return g.h(e,i)}},H=_.R;class K extends w{constructor(n,s,o){let f;super({start(){e.assign(this,{ready:new Promise((t=>this.Y=t)),password:n,signed:s,Z:o-1,pending:new i(0)})},async transform(e,n){const s=this;if(s.password){const n=s.password;s.password=null;const i=G(e,0,V[s.Z]+2);await(async(t,e,n)=>{await O(t,n,G(e,0,V[t.Z]));const i=G(e,V[t.Z]),s=t.keys.passwordVerification;if(s[0]!=i[0]||s[1]!=i[1])throw new r("Invalid pasword")})(s,i,n),s.$=new j(new W(s.keys.key),t.from(B)),s.tt=new H(s.keys.et),e=G(e,V[s.Z]+2),s.Y()}else await s.ready;const o=new i(e.length-10-(e.length-10)%16);n.enqueue(F(s,e,o,0,10,!0))},async flush(t){const e=this;await e.ready;const n=e.pending,r=G(n,0,n.length-10),s=G(n,n.length-10);let o=new i(0);if(r.length){const t=N(T,r);e.tt.update(t);const n=e.$.update(t);o=J(T,n)}if(f.valid=!0,e.signed){const t=G(J(T,e.tt.digest()),0,10);for(let e=0;10>e;e++)t[e]!=s[e]&&(f.valid=!1)}t.enqueue(o)}}),f=this}}class L extends w{constructor(n,r){let s;super({start(){e.assign(this,{ready:new Promise((t=>this.Y=t)),password:n,Z:r-1,pending:new i(0)})},async transform(e,n){const r=this;let s=new i(0);if(r.password){const e=r.password;r.password=null,s=await(async(t,e)=>{const n=(r=new i(V[t.Z]),M?u.getRandomValues(r):C.getRandomValues(r));var r;return await O(t,e,n),q(n,t.keys.passwordVerification)})(r,e),r.$=new j(new W(r.keys.key),t.from(B)),r.tt=new H(r.keys.et),r.Y()}else await r.ready;const o=new i(s.length+e.length-e.length%16);o.set(s,0),n.enqueue(F(r,e,o,s.length,0))},async flush(t){const e=this;await e.ready;let n=new i(0);if(e.pending.length){const t=e.$.update(N(T,e.pending));e.tt.update(t),n=J(T,t)}s.signature=J(T,e.tt.digest()).slice(0,10),t.enqueue(q(n,s.signature))}}),s=this}}function F(t,e,n,r,s,o){const f=e.length-s;let c;for(t.pending.length&&(e=q(t.pending,e),n=((t,e)=>{if(e&&e>t.length){const n=t;(t=new i(e)).set(n,0)}return t})(n,f-f%16)),c=0;f-16>=c;c+=16){const i=N(T,G(e,c,c+16));o&&t.tt.update(i);const s=t.$.update(i);o||t.tt.update(s),n.set(J(T,s),c+r)}return t.pending=G(e,c),n}async function O(t,n,r){const s=(t=>{if(void 0===l){const e=new i((t=unescape(encodeURIComponent(t))).length);for(let n=0;n<e.length;n++)e[n]=t.charCodeAt(n);return e}return(new l).encode(t)})(n),o=await((t,e,n,r,i)=>R?u.subtle.importKey("raw",e,n,!1,i):_.importKey(e))(0,s,z,0,I),f=await(async(t,e,n)=>U?await u.subtle.deriveBits(t,e,n):_.U(e,t.salt,x.iterations,n))(e.assign({salt:r},x),o,8*(2*P[t.Z]+2)),c=new i(f);t.keys={key:N(T,G(c,0,P[t.Z])),et:N(T,G(c,P[t.Z],2*P[t.Z])),passwordVerification:G(c,2*P[t.Z])}}function q(t,e){let n=t;return t.length+e.length&&(n=new i(t.length+e.length),n.set(t,0),n.set(e,t.length)),n}function G(t,e,n){return t.subarray(e,n)}function J(t,e){return t.k(e)}function N(t,e){return t.g(e)}class Q extends w{constructor(t,n){let i;super({start(){e.assign(this,{password:t,passwordVerification:n}),$(this,t)},transform(t,e){const n=this;if(n.password){const e=Y(n,t.subarray(0,12));if(n.password=null,e[11]!=n.passwordVerification)throw new r("Invalid pasword");t=t.subarray(12)}e.enqueue(Y(n,t))},flush(){i.valid=!0}}),i=this}}class X extends w{constructor(t,n){super({start(){e.assign(this,{password:t,passwordVerification:n}),$(this,t)},transform(t,e){const n=this;let r,s;if(n.password){n.password=null;const e=u.getRandomValues(new i(12));e[11]=n.passwordVerification,r=new i(t.length+e.length),r.set(Z(n,e),0),s=12}else r=new i(t.length),s=0;r.set(Z(n,t),s),e.enqueue(r)},flush(){}})}}function Y(t,e){const n=new i(e.length);for(let r=0;r<e.length;r++)n[r]=et(t)^e[r],tt(t,n[r]);return n}function Z(t,e){const n=new i(e.length);for(let r=0;r<e.length;r++)n[r]=et(t)^e[r],tt(t,e[r]);return n}function $(t,e){t.keys=[305419896,591751049,878082192],t.nt=new m(t.keys[0]),t.rt=new m(t.keys[2]);for(let n=0;n<e.length;n++)tt(t,e.charCodeAt(n))}function tt(t,e){t.nt.append([e]),t.keys[0]=~t.nt.get(),t.keys[1]=rt(t.keys[1]+nt(t.keys[0])),t.keys[1]=rt(n.imul(t.keys[1],134775813)+1),t.rt.append([t.keys[1]>>>24]),t.keys[2]=~t.rt.get()}function et(t){const e=2|t.keys[2];return nt(n.imul(e,1^e)>>>8)}function nt(t){return 255&t}function rt(t){return 4294967295&t}class it extends w{constructor(t,e){super({start(){this.it=new t(e)},transform(t,e){t=this.it.append(t),e.enqueue(t)},flush(t){const e=this.it.flush();t.enqueue(e)}})}}class st extends w{constructor(t,{compressed:e,st:n,password:r,passwordVerification:i,encryptionStrength:s,zipCrypto:o,signed:f},{ot:l},...u){super({},...u);const a=this;let w,h,d=ct(super.readable);const b=!!r;if(b&&!o||!f||([d,w]=d.tee(),w=w.pipeThrough(new k)),e)if(void 0!==n&&!n||void 0===p)d=ft(t,d,l);else try{const t=new p("deflate-raw");d=d.pipeThrough(t)}catch(e){d=ft(t,d,l)}b&&(o?d=d.pipeThrough(new X(r,i)):(h=new L(r,s),d=d.pipeThrough(h))),lt(a,d,(async()=>{let t;b&&!o&&(t=h.signature),b&&!o||!f||(t=await w.getReader().read(),t=new c(t.value.buffer).getUint32(0)),a.signature=t}))}}class ot extends w{constructor(t,{zipCrypto:e,password:n,passwordVerification:i,signed:s,encryptionStrength:o,compressed:f,st:l},{ot:u},...a){super({},...a);let w,h,d=ct(super.readable);const p=!!n;if(p&&(e?d=d.pipeThrough(new Q(n,i)):(h=new K(n,s,o),d=d.pipeThrough(h))),f)if(void 0!==l&&!l||void 0===b)d=ft(t,d,u);else try{d=d.pipeThrough(new b("deflate-raw"))}catch(e){d=ft(t,d,u)}p&&!e||!s||([d,w]=d.tee(),w=w.pipeThrough(new k)),lt(this,d,(async()=>{let t;if(p&&!e&&!h.valid)throw new r("Invalid signature");if((!p||e)&&s&&(t=await w.getReader().read(),t!=new c(t.value.buffer).getUint32(0,!1)))throw new r("Invalid signature")}))}}function ft(t,e,n){return e.pipeThrough(new it(t,{ot:n}))}function ct(t){return t.pipeThrough(new w({transform(t,e){t&&t.length&&e.enqueue(t)}}))}function lt(t,n,r){t.length=0,n=n.pipeThrough(new w({transform(e,n){e&&e.length&&(t.length+=e.length,n.enqueue(e))},flush:r})),e.defineProperty(t,"readable",{get:()=>n})}const ut=new Map;let at,wt=0;function ht(t){if(t.data){const e=t.data;if(e&&e.length)try{t.data=e.buffer,a(t,[t.data])}catch(e){a(t)}else a(t)}else a(t)}addEventListener("message",(async t=>{const e=t.data,n=e.type;try{if("start"==n&&(async t=>{try{t.scripts&&t.scripts.length&&importScripts.apply(void 0,t.scripts);const e=t.options;let n;self.initCodec&&self.initCodec(),e.codecType.startsWith("deflate")?n=self.Deflate:e.codecType.startsWith("inflate")&&(n=self.Inflate);const r=new h({async pull(t){let e=new Promise(((t,e)=>ut.set(wt,{resolve:t,reject:e})));ht({type:"pull",messageId:wt}),wt++;const{value:n,done:r}=await e;t.enqueue(n),r&&t.close()}},{highWaterMark:1}),i=new d({write(t){ht({type:"data",data:t})}});at=((t,e,n,r,i)=>{const s=new AbortController,{signal:o}=s;if(r.codecType.startsWith("deflate"))return{ft:()=>f(st),abort:()=>{s.abort()}};if(r.codecType.startsWith("inflate"))return{ft:()=>f(ot),AbortController:AbortController};async function f(s){const f=new s(t,r,i);await e.pipeThrough(f,{signal:o}).pipeTo(n);const{length:c,signature:l}=f;return{length:c,signature:l}}})(n,r,i,e,t.config),ht({type:"close",result:await at.ft()})}catch(t){a({error:{message:t.message,stack:t.stack}})}})(e),"data"==n){const{resolve:t}=ut.get(e.messageId);ut.delete(e.messageId),t({value:new i(e.data),done:e.done})}"abort"==n&&at.abort()}catch(t){a({error:{message:t.message,stack:t.stack}})}}));const dt=(()=>{const e=-2;function o(e){return f(e.map((([e,n])=>new t(e).fill(n,0,e))))}function f(e){return e.reduce(((e,n)=>e.concat(t.isArray(n)?f(n):n)),[])}const c=[0,1,2,3].concat(...o([[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 l(){const t=this;function e(t,e){let n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}t.ct=r=>{const i=t.lt,s=t.wt.ut,o=t.wt.ht;let f,c,l,u=-1;for(r.dt=0,r.bt=573,f=0;o>f;f++)0!==i[2*f]?(r.yt[++r.dt]=u=f,r.kt[f]=0):i[2*f+1]=0;for(;2>r.dt;)l=r.yt[++r.dt]=2>u?++u:0,i[2*l]=1,r.kt[l]=0,r.gt--,s&&(r.vt-=s[2*l+1]);for(t.St=u,f=n.floor(r.dt/2);f>=1;f--)r.Ct(i,f);l=o;do{f=r.yt[1],r.yt[1]=r.yt[r.dt--],r.Ct(i,1),c=r.yt[1],r.yt[--r.bt]=f,r.yt[--r.bt]=c,i[2*l]=i[2*f]+i[2*c],r.kt[l]=n.max(r.kt[f],r.kt[c])+1,i[2*f+1]=i[2*c+1]=l,r.yt[1]=l++,r.Ct(i,1)}while(r.dt>=2);r.yt[--r.bt]=r.yt[1],(e=>{const n=t.lt,r=t.wt.ut,i=t.wt._t,s=t.wt.At,o=t.wt.zt;let f,c,l,u,a,w,h=0;for(u=0;15>=u;u++)e.xt[u]=0;for(n[2*e.yt[e.bt]+1]=0,f=e.bt+1;573>f;f++)c=e.yt[f],u=n[2*n[2*c+1]+1]+1,u>o&&(u=o,h++),n[2*c+1]=u,c>t.St||(e.xt[u]++,a=0,s>c||(a=i[c-s]),w=n[2*c],e.gt+=w*(u+a),r&&(e.vt+=w*(r[2*c+1]+a)));if(0!==h){do{for(u=o-1;0===e.xt[u];)u--;e.xt[u]--,e.xt[u+1]+=2,e.xt[o]--,h-=2}while(h>0);for(u=o;0!==u;u--)for(c=e.xt[u];0!==c;)l=e.yt[--f],l>t.St||(n[2*l+1]!=u&&(e.gt+=(u-n[2*l+1])*n[2*l],n[2*l+1]=u),c--)}})(r),((t,n,r)=>{const i=[];let s,o,f,c=0;for(s=1;15>=s;s++)i[s]=c=c+r[s-1]<<1;for(o=0;n>=o;o++)f=t[2*o+1],0!==f&&(t[2*o]=e(i[f]++,f))})(i,t.St,r.xt)}}function u(t,e,n,r,i){const s=this;s.ut=t,s._t=e,s.At=n,s.ht=r,s.zt=i}l.It=[0,1,2,3,4,5,6,7].concat(...o([[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]])),l.Vt=[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],l.Pt=[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],l.Bt=t=>256>t?c[t]:c[256+(t>>>7)],l.Dt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],l.Et=[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],l.Mt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l.Rt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const a=o([[144,8],[112,9],[24,7],[8,8]]);u.Ut=f([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(((t,e)=>[t,a[e]])));const w=o([[30,5]]);function h(t,e,n,r,i){const s=this;s.Tt=t,s.Wt=e,s.jt=n,s.Ht=r,s.Kt=i}u.Lt=f([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(((t,e)=>[t,w[e]]))),u.Ft=new u(u.Ut,l.Dt,257,286,15),u.Ot=new u(u.Lt,l.Et,0,30,15),u.qt=new u(null,l.Mt,0,19,7);const d=[new h(0,0,0,0,0),new h(4,4,8,4,1),new h(4,5,16,8,1),new h(4,6,32,32,1),new h(4,4,16,16,2),new h(8,16,32,32,2),new h(8,16,128,128,2),new h(8,32,128,256,2),new h(32,128,258,1024,2),new h(32,258,258,4096,2)],p=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],b=113,y=666,m=262;function k(t,e,n,r){const i=t[2*e],s=t[2*n];return s>i||i==s&&r[e]<=r[n]}function g(){const t=this;let r,o,f,c,a,w,h,g,v,S,C,_,A,z,x,I,V,P,B,D,E,M,R,U,T,W,j,H,K,L,F,O,q;const G=new l,J=new l,N=new l;let Q,X,Y,Z,$,tt;function et(){let e;for(e=0;286>e;e++)F[2*e]=0;for(e=0;30>e;e++)O[2*e]=0;for(e=0;19>e;e++)q[2*e]=0;F[512]=1,t.gt=t.vt=0,X=Y=0}function nt(t,e){let n,r=-1,i=t[1],s=0,o=7,f=4;0===i&&(o=138,f=3),t[2*(e+1)+1]=65535;for(let c=0;e>=c;c++)n=i,i=t[2*(c+1)+1],++s<o&&n==i||(f>s?q[2*n]+=s:0!==n?(n!=r&&q[2*n]++,q[32]++):s>10?q[36]++:q[34]++,s=0,r=n,0===i?(o=138,f=3):n==i?(o=6,f=3):(o=7,f=4))}function rt(e){t.Gt[t.pending++]=e}function it(t){rt(255&t),rt(t>>>8&255)}function st(t,e){let n;const r=e;tt>16-r?(n=t,$|=n<<tt&65535,it($),$=n>>>16-tt,tt+=r-16):($|=t<<tt&65535,tt+=r)}function ot(t,e){const n=2*t;st(65535&e[n],65535&e[n+1])}function ft(t,e){let n,r,i=-1,s=t[1],o=0,f=7,c=4;for(0===s&&(f=138,c=3),n=0;e>=n;n++)if(r=s,s=t[2*(n+1)+1],++o>=f||r!=s){if(c>o)do{ot(r,q)}while(0!=--o);else 0!==r?(r!=i&&(ot(r,q),o--),ot(16,q),st(o-3,2)):o>10?(ot(18,q),st(o-11,7)):(ot(17,q),st(o-3,3));o=0,i=r,0===s?(f=138,c=3):r==s?(f=6,c=3):(f=7,c=4)}}function ct(){16==tt?(it($),$=0,tt=0):8>tt||(rt(255&$),$>>>=8,tt-=8)}function lt(e,r){let i,s,o;if(t.Jt[X]=e,t.Nt[X]=255&r,X++,0===e?F[2*r]++:(Y++,e--,F[2*(l.It[r]+256+1)]++,O[2*l.Bt(e)]++),0==(8191&X)&&j>2){for(i=8*X,s=E-V,o=0;30>o;o++)i+=O[2*o]*(5+l.Et[o]);if(i>>>=3,Y<n.floor(X/2)&&i<n.floor(s/2))return!0}return X==Q-1}function ut(e,n){let r,i,s,o,f=0;if(0!==X)do{r=t.Jt[f],i=t.Nt[f],f++,0===r?ot(i,e):(s=l.It[i],ot(s+256+1,e),o=l.Dt[s],0!==o&&(i-=l.Vt[s],st(i,o)),r--,s=l.Bt(r),ot(s,n),o=l.Et[s],0!==o&&(r-=l.Pt[s],st(r,o)))}while(X>f);ot(256,e),Z=e[513]}function at(){tt>8?it($):tt>0&&rt(255&$),$=0,tt=0}function wt(e,n,r){st(0+(r?1:0),3),((e,n)=>{at(),Z=8,it(n),it(~n),t.Gt.set(g.subarray(e,e+n),t.pending),t.pending+=n})(e,n)}function ht(e){((e,n,r)=>{let i,s,o=0;j>0?(G.ct(t),J.ct(t),o=(()=>{let e;for(nt(F,G.St),nt(O,J.St),N.ct(t),e=18;e>=3&&0===q[2*l.Rt[e]+1];e--);return t.gt+=14+3*(e+1),e})(),i=t.gt+3+7>>>3,s=t.vt+3+7>>>3,s>i||(i=s)):i=s=n+5,n+4>i||-1==e?s==i?(st(2+(r?1:0),3),ut(u.Ut,u.Lt)):(st(4+(r?1:0),3),((t,e,n)=>{let r;for(st(t-257,5),st(e-1,5),st(n-4,4),r=0;n>r;r++)st(q[2*l.Rt[r]+1],3);ft(F,t-1),ft(O,e-1)})(G.St+1,J.St+1,o+1),ut(F,O)):wt(e,n,r),et(),r&&at()})(0>V?-1:V,E-V,e),V=E,r.Qt()}function dt(){let t,e,n,i;do{if(i=v-R-E,0===i&&0===E&&0===R)i=a;else if(-1==i)i--;else if(E>=a+a-m){g.set(g.subarray(a,a+a),0),M-=a,E-=a,V-=a,t=A,n=t;do{e=65535&C[--n],C[n]=a>e?0:e-a}while(0!=--t);t=a,n=t;do{e=65535&S[--n],S[n]=a>e?0:e-a}while(0!=--t);i+=a}if(0===r.Xt)return;t=r.Yt(g,E+R,i),R+=t,3>R||(_=255&g[E],_=(_<<I^255&g[E+1])&x)}while(m>R&&0!==r.Xt)}function pt(t){let e,n,r=T,i=E,s=U;const o=E>a-m?E-(a-m):0;let f=L;const c=h,l=E+258;let u=g[i+s-1],w=g[i+s];K>U||(r>>=2),f>R&&(f=R);do{if(e=t,g[e+s]==w&&g[e+s-1]==u&&g[e]==g[i]&&g[++e]==g[i+1]){i+=2,e++;do{}while(g[++i]==g[++e]&&g[++i]==g[++e]&&g[++i]==g[++e]&&g[++i]==g[++e]&&g[++i]==g[++e]&&g[++i]==g[++e]&&g[++i]==g[++e]&&g[++i]==g[++e]&&l>i);if(n=258-(l-i),i=l-258,n>s){if(M=t,s=n,n>=f)break;u=g[i+s-1],w=g[i+s]}}}while((t=65535&S[t&c])>o&&0!=--r);return s>R?R:s}t.kt=[],t.xt=[],t.yt=[],F=[],O=[],q=[],t.Ct=(e,n)=>{const r=t.yt,i=r[n];let s=n<<1;for(;s<=t.dt&&(s<t.dt&&k(e,r[s+1],r[s],t.kt)&&s++,!k(e,i,r[s],t.kt));)r[n]=r[s],n=s,s<<=1;r[n]=i},t.Zt=(r,l,p,y,m,k)=>(y||(y=8),m||(m=8),k||(k=0),r.$t=null,-1==l&&(l=6),1>m||m>9||8!=y||9>p||p>15||0>l||l>9||0>k||k>2?e:(r.te=t,w=p,a=1<<w,h=a-1,z=m+7,A=1<<z,x=A-1,I=n.floor((z+3-1)/3),g=new i(2*a),S=[],C=[],Q=1<<m+6,t.Gt=new i(4*Q),f=4*Q,t.Jt=new s(Q),t.Nt=new i(Q),j=l,H=k,(e=>(e.ee=e.ne=0,e.$t=null,t.pending=0,t.re=0,o=b,c=0,G.lt=F,G.wt=u.Ft,J.lt=O,J.wt=u.Ot,N.lt=q,N.wt=u.qt,$=0,tt=0,Z=8,et(),(()=>{v=2*a,C[A-1]=0;for(let t=0;A-1>t;t++)C[t]=0;W=d[j].Wt,K=d[j].Tt,L=d[j].jt,T=d[j].Ht,E=0,V=0,R=0,P=U=2,D=0,_=0})(),0))(r))),t.ie=()=>42!=o&&o!=b&&o!=y?e:(t.Nt=null,t.Jt=null,t.Gt=null,C=null,S=null,g=null,t.te=null,o==b?-3:0),t.se=(t,n,r)=>{let i=0;return-1==n&&(n=6),0>n||n>9||0>r||r>2?e:(d[j].Kt!=d[n].Kt&&0!==t.ee&&(i=t.oe(1)),j!=n&&(j=n,W=d[j].Wt,K=d[j].Tt,L=d[j].jt,T=d[j].Ht),H=r,i)},t.fe=(t,n,r)=>{let i,s=r,f=0;if(!n||42!=o)return e;if(3>s)return 0;for(s>a-m&&(s=a-m,f=r-s),g.set(n.subarray(f,f+s),0),E=s,V=s,_=255&g[0],_=(_<<I^255&g[1])&x,i=0;s-3>=i;i++)_=(_<<I^255&g[i+2])&x,S[i&h]=C[_],C[_]=i;return 0},t.oe=(n,i)=>{let s,l,k,v,z;if(i>4||0>i)return e;if(!n.ce||!n.le&&0!==n.Xt||o==y&&4!=i)return n.$t=p[4],e;if(0===n.ue)return n.$t=p[7],-5;var T;if(r=n,v=c,c=i,42==o&&(l=8+(w-8<<4)<<8,k=(j-1&255)>>1,k>3&&(k=3),l|=k<<6,0!==E&&(l|=32),l+=31-l%31,o=b,rt((T=l)>>8&255),rt(255&T)),0!==t.pending){if(r.Qt(),0===r.ue)return c=-1,0}else if(0===r.Xt&&v>=i&&4!=i)return r.$t=p[7],-5;if(o==y&&0!==r.Xt)return n.$t=p[7],-5;if(0!==r.Xt||0!==R||0!=i&&o!=y){switch(z=-1,d[j].Kt){case 0:z=(t=>{let e,n=65535;for(n>f-5&&(n=f-5);;){if(1>=R){if(dt(),0===R&&0==t)return 0;if(0===R)break}if(E+=R,R=0,e=V+n,(0===E||E>=e)&&(R=E-e,E=e,ht(!1),0===r.ue))return 0;if(E-V>=a-m&&(ht(!1),0===r.ue))return 0}return ht(4==t),0===r.ue?4==t?2:0:4==t?3:1})(i);break;case 1:z=(t=>{let e,n=0;for(;;){if(m>R){if(dt(),m>R&&0==t)return 0;if(0===R)break}if(3>R||(_=(_<<I^255&g[E+2])&x,n=65535&C[_],S[E&h]=C[_],C[_]=E),0===n||(E-n&65535)>a-m||2!=H&&(P=pt(n)),3>P)e=lt(0,255&g[E]),R--,E++;else if(e=lt(E-M,P-3),R-=P,P>W||3>R)E+=P,P=0,_=255&g[E],_=(_<<I^255&g[E+1])&x;else{P--;do{E++,_=(_<<I^255&g[E+2])&x,n=65535&C[_],S[E&h]=C[_],C[_]=E}while(0!=--P);E++}if(e&&(ht(!1),0===r.ue))return 0}return ht(4==t),0===r.ue?4==t?2:0:4==t?3:1})(i);break;case 2:z=(t=>{let e,n,i=0;for(;;){if(m>R){if(dt(),m>R&&0==t)return 0;if(0===R)break}if(3>R||(_=(_<<I^255&g[E+2])&x,i=65535&C[_],S[E&h]=C[_],C[_]=E),U=P,B=M,P=2,0!==i&&W>U&&a-m>=(E-i&65535)&&(2!=H&&(P=pt(i)),5>=P&&(1==H||3==P&&E-M>4096)&&(P=2)),3>U||P>U)if(0!==D){if(e=lt(0,255&g[E-1]),e&&ht(!1),E++,R--,0===r.ue)return 0}else D=1,E++,R--;else{n=E+R-3,e=lt(E-1-B,U-3),R-=U-1,U-=2;do{++E>n||(_=(_<<I^255&g[E+2])&x,i=65535&C[_],S[E&h]=C[_],C[_]=E)}while(0!=--U);if(D=0,P=2,E++,e&&(ht(!1),0===r.ue))return 0}}return 0!==D&&(e=lt(0,255&g[E-1]),D=0),ht(4==t),0===r.ue?4==t?2:0:4==t?3:1})(i)}if(2!=z&&3!=z||(o=y),0==z||2==z)return 0===r.ue&&(c=-1),0;if(1==z){if(1==i)st(2,3),ot(256,u.Ut),ct(),9>1+Z+10-tt&&(st(2,3),ot(256,u.Ut),ct()),Z=7;else if(wt(0,0,!1),3==i)for(s=0;A>s;s++)C[s]=0;if(r.Qt(),0===r.ue)return c=-1,0}}return 4!=i?0:1}}function v(){const t=this;t.ae=0,t.we=0,t.Xt=0,t.ee=0,t.ue=0,t.ne=0}return v.prototype={Zt:function(t,e){const n=this;return n.te=new g,e||(e=15),n.te.Zt(n,t,e)},oe:function(t){const n=this;return n.te?n.te.oe(n,t):e},ie:function(){const t=this;if(!t.te)return e;const n=t.te.ie();return t.te=null,n},se:function(t,n){const r=this;return r.te?r.te.se(r,t,n):e},fe:function(t,n){const r=this;return r.te?r.te.fe(r,t,n):e},Yt:function(t,e,n){const r=this;let i=r.Xt;return i>n&&(i=n),0===i?0:(r.Xt-=i,t.set(r.le.subarray(r.ae,r.ae+i),e),r.ae+=i,r.ee+=i,i)},Qt:function(){const t=this;let e=t.te.pending;e>t.ue&&(e=t.ue),0!==e&&(t.ce.set(t.te.Gt.subarray(t.te.re,t.te.re+e),t.we),t.we+=e,t.te.re+=e,t.ne+=e,t.ue-=e,t.te.pending-=e,0===t.te.pending&&(t.te.re=0))}},function(t){const e=new v,s=(o=t&&t.ot?t.ot:65536)+5*(n.floor(o/16383)+1);var o;const f=new i(s);let c=t?t.level:-1;void 0===c&&(c=-1),e.Zt(c),e.ce=f,this.append=(t,n)=>{let o,c,l=0,u=0,a=0;const w=[];if(t.length){e.ae=0,e.le=t,e.Xt=t.length;do{if(e.we=0,e.ue=s,o=e.oe(0),0!=o)throw new r("deflating: "+e.$t);e.we&&(e.we==s?w.push(new i(f)):w.push(f.slice(0,e.we))),a+=e.we,n&&e.ae>0&&e.ae!=l&&(n(e.ae),l=e.ae)}while(e.Xt>0||0===e.ue);return w.length>1?(c=new i(a),w.forEach((t=>{c.set(t,u),u+=t.length}))):c=w[0]||new i(0),c}},this.flush=()=>{let t,n,o=0,c=0;const l=[];do{if(e.we=0,e.ue=s,t=e.oe(4),1!=t&&0!=t)throw new r("deflating: "+e.$t);s-e.ue>0&&l.push(f.slice(0,e.we)),c+=e.we}while(e.Xt>0||0===e.ue);return e.ie(),n=new i(c),l.forEach((t=>{n.set(t,o),o+=t.length})),n}}})(),pt=(()=>{const t=-2,e=-3,s=-5,o=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],c=[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],l=[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],u=[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],a=[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],w=[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],h=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function d(){let t,n,r,i,o,c;function l(t,n,f,l,u,a,w,h,d,p,b){let y,m,k,g,v,S,C,_,A,z,x,I,V,P,B;z=0,v=f;do{r[t[n+z]]++,z++,v--}while(0!==v);if(r[0]==f)return w[0]=-1,h[0]=0,0;for(_=h[0],S=1;15>=S&&0===r[S];S++);for(C=S,S>_&&(_=S),v=15;0!==v&&0===r[v];v--);for(k=v,_>v&&(_=v),h[0]=_,P=1<<S;v>S;S++,P<<=1)if(0>(P-=r[S]))return e;if(0>(P-=r[v]))return e;for(r[v]+=P,c[1]=S=0,z=1,V=2;0!=--v;)c[V]=S+=r[z],V++,z++;v=0,z=0;do{0!==(S=t[n+z])&&(b[c[S]++]=v),z++}while(++v<f);for(f=c[k],c[0]=v=0,z=0,g=-1,I=-_,o[0]=0,x=0,B=0;k>=C;C++)for(y=r[C];0!=y--;){for(;C>I+_;){if(g++,I+=_,B=k-I,B=B>_?_:B,(m=1<<(S=C-I))>y+1&&(m-=y+1,V=C,B>S))for(;++S<B&&(m<<=1)>r[++V];)m-=r[V];if(B=1<<S,p[0]+B>1440)return e;o[g]=x=p[0],p[0]+=B,0!==g?(c[g]=v,i[0]=S,i[1]=_,S=v>>>I-_,i[2]=x-o[g-1]-S,d.set(i,3*(o[g-1]+S))):w[0]=x}for(i[1]=C-I,f>z?b[z]<l?(i[0]=256>b[z]?0:96,i[2]=b[z++]):(i[0]=a[b[z]-l]+16+64,i[2]=u[b[z++]-l]):i[0]=192,m=1<<C-I,S=v>>>I;B>S;S+=m)d.set(i,3*(x+S));for(S=1<<C-1;0!=(v&S);S>>>=1)v^=S;for(v^=S,A=(1<<I)-1;(v&A)!=c[g];)g--,I-=_,A=(1<<I)-1}return 0!==P&&1!=k?s:0}function d(e){let s;for(t||(t=[],n=[],r=new f(16),i=[],o=new f(15),c=new f(16)),n.length<e&&(n=[]),s=0;e>s;s++)n[s]=0;for(s=0;16>s;s++)r[s]=0;for(s=0;3>s;s++)i[s]=0;o.set(r.subarray(0,15),0),c.set(r.subarray(0,16),0)}this.he=(r,i,o,f,c)=>{let u;return d(19),t[0]=0,u=l(r,0,19,19,null,null,o,i,f,t,n),u==e?c.$t="oversubscribed dynamic bit lengths tree":u!=s&&0!==i[0]||(c.$t="incomplete dynamic bit lengths tree",u=e),u},this.de=(r,i,o,f,c,p,b,y,m)=>{let k;return d(288),t[0]=0,k=l(o,0,r,257,u,a,p,f,y,t,n),0!=k||0===f[0]?(k==e?m.$t="oversubscribed literal/length tree":-4!=k&&(m.$t="incomplete literal/length tree",k=e),k):(d(288),k=l(o,r,i,0,w,h,b,c,y,t,n),0!=k||0===c[0]&&r>257?(k==e?m.$t="oversubscribed distance tree":k==s?(m.$t="incomplete distance tree",k=e):-4!=k&&(m.$t="empty distance tree with lengths",k=e),k):0)}}function p(){const n=this;let r,i,s,f,c=0,l=0,u=0,a=0,w=0,h=0,d=0,p=0,b=0,y=0;function m(t,n,r,i,s,f,c,l){let u,a,w,h,d,p,b,y,m,k,g,v,S,C,_,A;b=l.ae,y=l.Xt,d=c.pe,p=c.be,m=c.write,k=m<c.read?c.read-m-1:c.end-m,g=o[t],v=o[n];do{for(;20>p;)y--,d|=(255&l.ye(b++))<<p,p+=8;if(u=d&g,a=r,w=i,A=3*(w+u),0!==(h=a[A]))for(;;){if(d>>=a[A+1],p-=a[A+1],0!=(16&h)){for(h&=15,S=a[A+2]+(d&o[h]),d>>=h,p-=h;15>p;)y--,d|=(255&l.ye(b++))<<p,p+=8;for(u=d&v,a=s,w=f,A=3*(w+u),h=a[A];;){if(d>>=a[A+1],p-=a[A+1],0!=(16&h)){for(h&=15;h>p;)y--,d|=(255&l.ye(b++))<<p,p+=8;if(C=a[A+2]+(d&o[h]),d>>=h,p-=h,k-=S,C>m){_=m-C;do{_+=c.end}while(0>_);if(h=c.end-_,S>h){if(S-=h,m-_>0&&h>m-_)do{c.me[m++]=c.me[_++]}while(0!=--h);else c.me.set(c.me.subarray(_,_+h),m),m+=h,_+=h,h=0;_=0}}else _=m-C,m-_>0&&2>m-_?(c.me[m++]=c.me[_++],c.me[m++]=c.me[_++],S-=2):(c.me.set(c.me.subarray(_,_+2),m),m+=2,_+=2,S-=2);if(m-_>0&&S>m-_)do{c.me[m++]=c.me[_++]}while(0!=--S);else c.me.set(c.me.subarray(_,_+S),m),m+=S,_+=S,S=0;break}if(0!=(64&h))return l.$t="invalid distance code",S=l.Xt-y,S=S>p>>3?p>>3:S,y+=S,b-=S,p-=S<<3,c.pe=d,c.be=p,l.Xt=y,l.ee+=b-l.ae,l.ae=b,c.write=m,e;u+=a[A+2],u+=d&o[h],A=3*(w+u),h=a[A]}break}if(0!=(64&h))return 0!=(32&h)?(S=l.Xt-y,S=S>p>>3?p>>3:S,y+=S,b-=S,p-=S<<3,c.pe=d,c.be=p,l.Xt=y,l.ee+=b-l.ae,l.ae=b,c.write=m,1):(l.$t="invalid literal/length code",S=l.Xt-y,S=S>p>>3?p>>3:S,y+=S,b-=S,p-=S<<3,c.pe=d,c.be=p,l.Xt=y,l.ee+=b-l.ae,l.ae=b,c.write=m,e);if(u+=a[A+2],u+=d&o[h],A=3*(w+u),0===(h=a[A])){d>>=a[A+1],p-=a[A+1],c.me[m++]=a[A+2],k--;break}}else d>>=a[A+1],p-=a[A+1],c.me[m++]=a[A+2],k--}while(k>=258&&y>=10);return S=l.Xt-y,S=S>p>>3?p>>3:S,y+=S,b-=S,p-=S<<3,c.pe=d,c.be=p,l.Xt=y,l.ee+=b-l.ae,l.ae=b,c.write=m,0}n.init=(t,e,n,o,c,l)=>{r=0,d=t,p=e,s=n,b=o,f=c,y=l,i=null},n.ke=(n,k,g)=>{let v,S,C,_,A,z,x,I=0,V=0,P=0;for(P=k.ae,_=k.Xt,I=n.pe,V=n.be,A=n.write,z=A<n.read?n.read-A-1:n.end-A;;)switch(r){case 0:if(z>=258&&_>=10&&(n.pe=I,n.be=V,k.Xt=_,k.ee+=P-k.ae,k.ae=P,n.write=A,g=m(d,p,s,b,f,y,n,k),P=k.ae,_=k.Xt,I=n.pe,V=n.be,A=n.write,z=A<n.read?n.read-A-1:n.end-A,0!=g)){r=1==g?7:9;break}u=d,i=s,l=b,r=1;case 1:for(v=u;v>V;){if(0===_)return n.pe=I,n.be=V,k.Xt=_,k.ee+=P-k.ae,k.ae=P,n.write=A,n.ge(k,g);g=0,_--,I|=(255&k.ye(P++))<<V,V+=8}if(S=3*(l+(I&o[v])),I>>>=i[S+1],V-=i[S+1],C=i[S],0===C){a=i[S+2],r=6;break}if(0!=(16&C)){w=15&C,c=i[S+2],r=2;break}if(0==(64&C)){u=C,l=S/3+i[S+2];break}if(0!=(32&C)){r=7;break}return r=9,k.$t="invalid literal/length code",g=e,n.pe=I,n.be=V,k.Xt=_,k.ee+=P-k.ae,k.ae=P,n.write=A,n.ge(k,g);case 2:for(v=w;v>V;){if(0===_)return n.pe=I,n.be=V,k.Xt=_,k.ee+=P-k.ae,k.ae=P,n.write=A,n.ge(k,g);g=0,_--,I|=(255&k.ye(P++))<<V,V+=8}c+=I&o[v],I>>=v,V-=v,u=p,i=f,l=y,r=3;case 3:for(v=u;v>V;){if(0===_)return n.pe=I,n.be=V,k.Xt=_,k.ee+=P-k.ae,k.ae=P,n.write=A,n.ge(k,g);g=0,_--,I|=(255&k.ye(P++))<<V,V+=8}if(S=3*(l+(I&o[v])),I>>=i[S+1],V-=i[S+1],C=i[S],0!=(16&C)){w=15&C,h=i[S+2],r=4;break}if(0==(64&C)){u=C,l=S/3+i[S+2];break}return r=9,k.$t="invalid distance code",g=e,n.pe=I,n.be=V,k.Xt=_,k.ee+=P-k.ae,k.ae=P,n.write=A,n.ge(k,g);case 4:for(v=w;v>V;){if(0===_)return n.pe=I,n.be=V,k.Xt=_,k.ee+=P-k.ae,k.ae=P,n.write=A,n.ge(k,g);g=0,_--,I|=(255&k.ye(P++))<<V,V+=8}h+=I&o[v],I>>=v,V-=v,r=5;case 5:for(x=A-h;0>x;)x+=n.end;for(;0!==c;){if(0===z&&(A==n.end&&0!==n.read&&(A=0,z=A<n.read?n.read-A-1:n.end-A),0===z&&(n.write=A,g=n.ge(k,g),A=n.write,z=A<n.read?n.read-A-1:n.end-A,A==n.end&&0!==n.read&&(A=0,z=A<n.read?n.read-A-1:n.end-A),0===z)))return n.pe=I,n.be=V,k.Xt=_,k.ee+=P-k.ae,k.ae=P,n.write=A,n.ge(k,g);n.me[A++]=n.me[x++],z--,x==n.end&&(x=0),c--}r=0;break;case 6:if(0===z&&(A==n.end&&0!==n.read&&(A=0,z=A<n.read?n.read-A-1:n.end-A),0===z&&(n.write=A,g=n.ge(k,g),A=n.write,z=A<n.read?n.read-A-1:n.end-A,A==n.end&&0!==n.read&&(A=0,z=A<n.read?n.read-A-1:n.end-A),0===z)))return n.pe=I,n.be=V,k.Xt=_,k.ee+=P-k.ae,k.ae=P,n.write=A,n.ge(k,g);g=0,n.me[A++]=a,z--,r=0;break;case 7:if(V>7&&(V-=8,_++,P--),n.write=A,g=n.ge(k,g),A=n.write,z=A<n.read?n.read-A-1:n.end-A,n.read!=n.write)return n.pe=I,n.be=V,k.Xt=_,k.ee+=P-k.ae,k.ae=P,n.write=A,n.ge(k,g);r=8;case 8:return g=1,n.pe=I,n.be=V,k.Xt=_,k.ee+=P-k.ae,k.ae=P,n.write=A,n.ge(k,g);case 9:return g=e,n.pe=I,n.be=V,k.Xt=_,k.ee+=P-k.ae,k.ae=P,n.write=A,n.ge(k,g);default:return g=t,n.pe=I,n.be=V,k.Xt=_,k.ee+=P-k.ae,k.ae=P,n.write=A,n.ge(k,g)}},n.ve=()=>{}}d.Se=(t,e,n,r)=>(t[0]=9,e[0]=5,n[0]=c,r[0]=l,0);const b=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function y(n,r){const c=this;let l,u=0,a=0,w=0,h=0;const y=[0],m=[0],k=new p;let g=0,v=new f(4320);const S=new d;c.be=0,c.pe=0,c.me=new i(r),c.end=r,c.read=0,c.write=0,c.reset=(t,e)=>{e&&(e[0]=0),6==u&&k.ve(t),u=0,c.be=0,c.pe=0,c.read=c.write=0},c.reset(n,null),c.ge=(t,e)=>{let n,r,i;return r=t.we,i=c.read,n=(i>c.write?c.end:c.write)-i,n>t.ue&&(n=t.ue),0!==n&&e==s&&(e=0),t.ue-=n,t.ne+=n,t.ce.set(c.me.subarray(i,i+n),r),r+=n,i+=n,i==c.end&&(i=0,c.write==c.end&&(c.write=0),n=c.write-i,n>t.ue&&(n=t.ue),0!==n&&e==s&&(e=0),t.ue-=n,t.ne+=n,t.ce.set(c.me.subarray(i,i+n),r),r+=n,i+=n),t.we=r,c.read=i,e},c.ke=(n,r)=>{let i,s,f,p,C,_,A,z;for(p=n.ae,C=n.Xt,s=c.pe,f=c.be,_=c.write,A=_<c.read?c.read-_-1:c.end-_;;){let x,I,V,P,B,D,E,M;switch(u){case 0:for(;3>f;){if(0===C)return c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,c.ge(n,r);r=0,C--,s|=(255&n.ye(p++))<<f,f+=8}switch(i=7&s,g=1&i,i>>>1){case 0:s>>>=3,f-=3,i=7&f,s>>>=i,f-=i,u=1;break;case 1:x=[],I=[],V=[[]],P=[[]],d.Se(x,I,V,P),k.init(x[0],I[0],V[0],0,P[0],0),s>>>=3,f-=3,u=6;break;case 2:s>>>=3,f-=3,u=3;break;case 3:return s>>>=3,f-=3,u=9,n.$t="invalid block type",r=e,c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,c.ge(n,r)}break;case 1:for(;32>f;){if(0===C)return c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,c.ge(n,r);r=0,C--,s|=(255&n.ye(p++))<<f,f+=8}if((~s>>>16&65535)!=(65535&s))return u=9,n.$t="invalid stored block lengths",r=e,c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,c.ge(n,r);a=65535&s,s=f=0,u=0!==a?2:0!==g?7:0;break;case 2:if(0===C)return c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,c.ge(n,r);if(0===A&&(_==c.end&&0!==c.read&&(_=0,A=_<c.read?c.read-_-1:c.end-_),0===A&&(c.write=_,r=c.ge(n,r),_=c.write,A=_<c.read?c.read-_-1:c.end-_,_==c.end&&0!==c.read&&(_=0,A=_<c.read?c.read-_-1:c.end-_),0===A)))return c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,c.ge(n,r);if(r=0,i=a,i>C&&(i=C),i>A&&(i=A),c.me.set(n.Yt(p,i),_),p+=i,C-=i,_+=i,A-=i,0!=(a-=i))break;u=0!==g?7:0;break;case 3:for(;14>f;){if(0===C)return c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,c.ge(n,r);r=0,C--,s|=(255&n.ye(p++))<<f,f+=8}if(w=i=16383&s,(31&i)>29||(i>>5&31)>29)return u=9,n.$t="too many length or distance symbols",r=e,c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,c.ge(n,r);if(i=258+(31&i)+(i>>5&31),!l||l.length<i)l=[];else for(z=0;i>z;z++)l[z]=0;s>>>=14,f-=14,h=0,u=4;case 4:for(;4+(w>>>10)>h;){for(;3>f;){if(0===C)return c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,c.ge(n,r);r=0,C--,s|=(255&n.ye(p++))<<f,f+=8}l[b[h++]]=7&s,s>>>=3,f-=3}for(;19>h;)l[b[h++]]=0;if(y[0]=7,i=S.he(l,y,m,v,n),0!=i)return(r=i)==e&&(l=null,u=9),c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,c.ge(n,r);h=0,u=5;case 5:for(;i=w,258+(31&i)+(i>>5&31)>h;){let t,a;for(i=y[0];i>f;){if(0===C)return c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,c.ge(n,r);r=0,C--,s|=(255&n.ye(p++))<<f,f+=8}if(i=v[3*(m[0]+(s&o[i]))+1],a=v[3*(m[0]+(s&o[i]))+2],16>a)s>>>=i,f-=i,l[h++]=a;else{for(z=18==a?7:a-14,t=18==a?11:3;i+z>f;){if(0===C)return c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,c.ge(n,r);r=0,C--,s|=(255&n.ye(p++))<<f,f+=8}if(s>>>=i,f-=i,t+=s&o[z],s>>>=z,f-=z,z=h,i=w,z+t>258+(31&i)+(i>>5&31)||16==a&&1>z)return l=null,u=9,n.$t="invalid bit length repeat",r=e,c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,c.ge(n,r);a=16==a?l[z-1]:0;do{l[z++]=a}while(0!=--t);h=z}}if(m[0]=-1,B=[],D=[],E=[],M=[],B[0]=9,D[0]=6,i=w,i=S.de(257+(31&i),1+(i>>5&31),l,B,D,E,M,v,n),0!=i)return i==e&&(l=null,u=9),r=i,c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,c.ge(n,r);k.init(B[0],D[0],v,E[0],v,M[0]),u=6;case 6:if(c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,1!=(r=k.ke(c,n,r)))return c.ge(n,r);if(r=0,k.ve(n),p=n.ae,C=n.Xt,s=c.pe,f=c.be,_=c.write,A=_<c.read?c.read-_-1:c.end-_,0===g){u=0;break}u=7;case 7:if(c.write=_,r=c.ge(n,r),_=c.write,A=_<c.read?c.read-_-1:c.end-_,c.read!=c.write)return c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,c.ge(n,r);u=8;case 8:return r=1,c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,c.ge(n,r);case 9:return r=e,c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,c.ge(n,r);default:return r=t,c.pe=s,c.be=f,n.Xt=C,n.ee+=p-n.ae,n.ae=p,c.write=_,c.ge(n,r)}}},c.ve=t=>{c.reset(t,null),c.me=null,v=null},c.Ce=(t,e,n)=>{c.me.set(t.subarray(e,e+n),0),c.read=c.write=n},c._e=()=>1==u?1:0}const m=13,k=[0,0,255,255];function g(){const n=this;function r(e){return e&&e.Ae?(e.ee=e.ne=0,e.$t=null,e.Ae.mode=7,e.Ae.ze.reset(e,null),0):t}n.mode=0,n.method=0,n.xe=[0],n.Ie=0,n.marker=0,n.Ve=0,n.Pe=t=>(n.ze&&n.ze.ve(t),n.ze=null,0),n.Be=(e,i)=>(e.$t=null,n.ze=null,8>i||i>15?(n.Pe(e),t):(n.Ve=i,e.Ae.ze=new y(e,1<<i),r(e),0)),n.De=(n,r)=>{let i,o;if(!n||!n.Ae||!n.le)return t;const f=n.Ae;for(r=4==r?s:0,i=s;;)switch(f.mode){case 0:if(0===n.Xt)return i;if(i=r,n.Xt--,n.ee++,8!=(15&(f.method=n.ye(n.ae++)))){f.mode=m,n.$t="unknown compression method",f.marker=5;break}if(8+(f.method>>4)>f.Ve){f.mode=m,n.$t="invalid win size",f.marker=5;break}f.mode=1;case 1:if(0===n.Xt)return i;if(i=r,n.Xt--,n.ee++,o=255&n.ye(n.ae++),((f.method<<8)+o)%31!=0){f.mode=m,n.$t="incorrect header check",f.marker=5;break}if(0==(32&o)){f.mode=7;break}f.mode=2;case 2:if(0===n.Xt)return i;i=r,n.Xt--,n.ee++,f.Ie=(255&n.ye(n.ae++))<<24&4278190080,f.mode=3;case 3:if(0===n.Xt)return i;i=r,n.Xt--,n.ee++,f.Ie+=(255&n.ye(n.ae++))<<16&16711680,f.mode=4;case 4:if(0===n.Xt)return i;i=r,n.Xt--,n.ee++,f.Ie+=(255&n.ye(n.ae++))<<8&65280,f.mode=5;case 5:return 0===n.Xt?i:(i=r,n.Xt--,n.ee++,f.Ie+=255&n.ye(n.ae++),f.mode=6,2);case 6:return f.mode=m,n.$t="need dictionary",f.marker=0,t;case 7:if(i=f.ze.ke(n,i),i==e){f.mode=m,f.marker=0;break}if(0==i&&(i=r),1!=i)return i;i=r,f.ze.reset(n,f.xe),f.mode=12;case 12:return n.Xt=0,1;case m:return e;default:return t}},n.Ee=(e,n,r)=>{let i=0,s=r;if(!e||!e.Ae||6!=e.Ae.mode)return t;const o=e.Ae;return s<1<<o.Ve||(s=(1<<o.Ve)-1,i=r-s),o.ze.Ce(n,i,s),o.mode=7,0},n.Me=n=>{let i,o,f,c,l;if(!n||!n.Ae)return t;const u=n.Ae;if(u.mode!=m&&(u.mode=m,u.marker=0),0===(i=n.Xt))return s;for(o=n.ae,f=u.marker;0!==i&&4>f;)n.ye(o)==k[f]?f++:f=0!==n.ye(o)?0:4-f,o++,i--;return n.ee+=o-n.ae,n.ae=o,n.Xt=i,u.marker=f,4!=f?e:(c=n.ee,l=n.ne,r(n),n.ee=c,n.ne=l,u.mode=7,0)},n.Re=e=>e&&e.Ae&&e.Ae.ze?e.Ae.ze._e():t}function v(){}return v.prototype={Be:function(t){const e=this;return e.Ae=new g,t||(t=15),e.Ae.Be(e,t)},De:function(e){const n=this;return n.Ae?n.Ae.De(n,e):t},Pe:function(){const e=this;if(!e.Ae)return t;const n=e.Ae.Pe(e);return e.Ae=null,n},Me:function(){const e=this;return e.Ae?e.Ae.Me(e):t},Ee:function(e,n){const r=this;return r.Ae?r.Ae.Ee(r,e,n):t},ye:function(t){return this.le[t]},Yt:function(t,e){return this.le.subarray(t,t+e)}},function(t){const e=new v,o=t&&t.ot?n.floor(2*t.ot):131072,f=new i(o);let c=!1;e.Be(),e.ce=f,this.append=(t,n)=>{const l=[];let u,a,w=0,h=0,d=0;if(0!==t.length){e.ae=0,e.le=t,e.Xt=t.length;do{if(e.we=0,e.ue=o,0!==e.Xt||c||(e.ae=0,c=!0),u=e.De(0),c&&u===s){if(0!==e.Xt)throw new r("inflating: bad input")}else if(0!==u&&1!==u)throw new r("inflating: "+e.$t);if((c||1===u)&&e.Xt===t.length)throw new r("inflating: bad input");e.we&&(e.we===o?l.push(new i(f)):l.push(f.slice(0,e.we))),d+=e.we,n&&e.ae>0&&e.ae!=w&&(n(e.ae),w=e.ae)}while(e.Xt>0||0===e.ue);return l.length>1?(a=new i(d),l.forEach((t=>{a.set(t,h),h+=t.length}))):a=l[0]||new i(0),a}},this.flush=()=>{e.Pe()}}})();self.initCodec=()=>{self.Deflate=dt,self.Inflate=pt};\n'],{type:"text/javascript"}));e({workerScripts:{inflate:[t],deflate:[t]}})}})(I),I({Deflate:R,Inflate:z,baseURL:gn}),e.BlobReader=nt,e.BlobWriter=rt,e.Data64URIReader=class extends Qe{constructor(e){super();const t=this;t.dataURI=e;let n=e.length;for(;"="==e.charAt(n-1);)n--;t.dataStart=e.indexOf(",")+1,t.size=s.floor(.75*(n-t.dataStart))}readUint8Array(e,t){const n=new f(t),r=4*s.floor(e/3),i=this.dataStart,a=atob(this.dataURI.substring(r+i,4*s.ceil((e+t)/3)+i)),o=e-3*s.floor(r/4);for(let e=o;o+t>e;e++)n[e-o]=a.charCodeAt(e);return n}},e.Data64URIWriter=class extends tt{constructor(e){super(),this.data="data:"+(e||"")+";base64,",this.pending=[]}writeUint8Array(e){super.writeUint8Array(e);const t=this;let n=0,i=t.pending;const a=t.pending.length;for(t.pending="",n=0;n<3*s.floor((a+e.length)/3)-a;n++)i+=r.fromCharCode(e[n]);for(;n<e.length;n++)t.pending+=r.fromCharCode(e[n]);i.length>2?t.data+=k(i):t.pending=i}getData(){return this.data+k(this.pending)}},e.ERR_ABORT=Me,e.ERR_BAD_FORMAT=Pt,e.ERR_CENTRAL_DIRECTORY_NOT_FOUND=Wt,e.ERR_DUPLICATED_NAME=on,e.ERR_ENCRYPTED=qt,e.ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND=Bt,e.ERR_EOCDR_NOT_FOUND=Vt,e.ERR_EOCDR_ZIP64_NOT_FOUND=Ut,e.ERR_EXTRAFIELD_ZIP64_NOT_FOUND=Mt,e.ERR_HTTP_RANGE=Ke,e.ERR_INVALID_COMMENT=ln,e.ERR_INVALID_ENCRYPTION_STRENGTH=dn,e.ERR_INVALID_ENTRY_COMMENT=cn,e.ERR_INVALID_ENTRY_NAME=fn,e.ERR_INVALID_EXTRAFIELD_DATA=wn,e.ERR_INVALID_EXTRAFIELD_TYPE=hn,e.ERR_INVALID_PASSWORD=O,e.ERR_INVALID_SIGNATURE=Ce,e.ERR_INVALID_VERSION=un,e.ERR_LOCAL_FILE_HEADER_NOT_FOUND=Xt,e.ERR_NOT_SEEKABLE_READER="Reader is not seekable",e.ERR_UNSUPPORTED_COMPRESSION=Nt,e.ERR_UNSUPPORTED_ENCRYPTION=Lt,e.ERR_UNSUPPORTED_FORMAT=pn,e.HttpRangeReader=class extends bt{constructor(e,t={}){t.useRangeHeader=!0,super(e,t)}},e.HttpReader=bt,e.ReadableStreamReader=class{constructor(e){this.readableStream=e,this.size=1/0}init(e){this.size=e,this.initialized=!0}getStream(){return this.readableStream}},e.Reader=Qe,e.TextReader=class extends Qe{constructor(e){super(),this.blobReader=new nt(new w([e],{type:Ge}))}init(){const e=this;super.init(),e.blobReader.init(),e.size=e.blobReader.size}readUint8Array(e,t){return this.blobReader.readUint8Array(e,t)}},e.TextWriter=class extends tt{constructor(e){super(),this.encoding=e,this.blob=new w([],{type:Ge})}writeUint8Array(e){super.writeUint8Array(e),this.blob=new w([this.blob,e.buffer],{type:Ge})}getData(){const e=this;if(e.blob.text)return e.blob.text();{const t=new b;return new p(((n,r)=>{t.onload=e=>n(e.target.result),t.onerror=()=>r(t.error),t.readAsText(e.blob,e.encoding)}))}}},e.Uint8ArrayReader=class extends Qe{constructor(e){super(),this.array=e,this.size=e.length}readUint8Array(e,t){return this.array.slice(e,e+t)}},e.Uint8ArrayWriter=class extends tt{constructor(){super(),this.array=new f(0)}writeUint8Array(e){super.writeUint8Array(e);const t=this,n=t.array;t.array=new f(n.length+e.length),t.array.set(n),t.array.set(e,n.length)}getData(){return this.array}},e.WritableStreamWriter=class extends tt{constructor(e){super(),this.writable=e}async writeUint8Array(e){return await this.writer.ready,this.writable.getWriter().write(e)}getStream(){return this.writable}async getData(){return this.writable}},e.Writer=tt,e.ZipReader=class{constructor(e,t={}){n.assign(this,{reader:e,options:t,config:T()})}async*getEntriesGenerator(e={}){const t=this,r=t.reader;if(r.initialized||await r.init(),22>r.size)throw new c(Pt);const i=await(async(e,t,n)=>{const r=new f(4);return sn(r).setUint32(0,101010256,!0),await i(22)||await i(s.min(1048582,n));async function i(t){const i=n-t,s=await an(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}}})(r,0,r.size);if(!i)throw new c(Vt);const a=sn(i);let o=nn(a,12),l=nn(a,16),u=tn(a,8),d=0;if(l==mt||o==mt||u==yt){const e=sn(await an(r,i.offset-20,20));if(nn(e,0)!=St)throw new c(Ut);l=rn(e,8);let t=await an(r,l,56),n=sn(t);const s=i.offset-20-56;if(nn(n,0)!=vt&&l!=s){const e=l;l=s,d=l-e,t=await an(r,l,56),n=sn(t)}if(nn(n,0)!=vt)throw new c(Bt);u=rn(n,32),o=rn(n,40),l-=o}if(0>l||l>=r.size)throw new c(Pt);let h=0,w=await an(r,l,o),_=sn(w);if(o){const e=i.offset-o;if(nn(_,h)!=xt&&l!=e){const t=l;l=e,d=l-t,w=await an(r,l,o),_=sn(w)}}if(0>l||l>=r.size)throw new c(Pt);for(let i=0;u>i;i++){const s=new Zt(r,t.config,t.options);if(nn(_,h)!=xt)throw new c(Wt);jt(s,_,h+6);const a=!!s.bitFlag.languageEncodingFlag,o=h+46,l=o+s.filenameLength,f=l+s.extraFieldLength,g=tn(_,h+4),b=0==(0&g);n.assign(s,{versionMadeBy:g,msDosCompatible:b,compressedSize:0,uncompressedSize:0,commentLength:tn(_,h+32),directory:b&&16==(16&en(_,h+38)),offset:nn(_,h+42)+d,internalFileAttribute:nn(_,h+34),externalFileAttribute:nn(_,h+38),rawFilename:w.subarray(o,l),filenameUTF8:a,commentUTF8:a,rawExtraField:w.subarray(l,f)});const m=f+s.commentLength;s.rawComment=w.subarray(f,m);const y=Yt(t,e,"filenameEncoding"),k=Yt(t,e,"commentEncoding"),[x,v]=await p.all([Tt(s.rawFilename,s.filenameUTF8?Ot:y||Ht),Tt(s.rawComment,s.commentUTF8?Ot:k||Ht)]);s.filename=x,s.comment=v,!s.directory&&s.filename.endsWith(Rt)&&(s.directory=!0),await Kt(s,s,_,h+6);const S=new It(s);if(S.getData=(e,t)=>s.getData(e,S,t),h=m,e.onprogress)try{e.onprogress(i+1,u,new It(s))}catch(e){}yield S}return!0}async getEntries(e={}){const t=[],n=this.getEntriesGenerator(e);let r=n.next();for(;!(await r).done;)t.push((await r).value),r=n.next();return t}async close(){}},e.ZipWriter=class{constructor(e,t={}){n.assign(this,{writer:e,options:t,config:T(),files:new o,offset:e.size,pendingCompressedSize:0,pendingEntries:[],pendingAddFileCalls:new Set})}async add(e="",r,o={}){const l=this;if(bn>=l.config.maxWorkers)return new p(((t,n)=>l.pendingEntries.push({name:e,reader:r,options:o,resolve:t,reject:n})));{let w;bn++;try{return w=(async(e,r,o,l)=>{if(r=r.trim(),l.directory&&!r.endsWith(Rt)?r+=Rt:l.directory=r.endsWith(Rt),e.files.has(r))throw new c(on);const w=W(r);if(w.length>yt)throw new c(fn);const _=l.comment||"",g=W(_);if(g.length>yt)throw new c(cn);const b=e.options.version||l.version||0;if(b>yt)throw new c(un);const m=e.options.versionMadeBy||l.versionMadeBy||20;if(m>yt)throw new c(un);const y=xn(e,l,"lastModDate")||new a,k=xn(e,l,"lastAccessDate"),x=xn(e,l,"creationDate"),v=xn(e,l,"password"),S=xn(e,l,"encryptionStrength")||3,A=xn(e,l,"zipCrypto");if(void 0!==v&&void 0!==S&&(1>S||S>3))throw new c(dn);let E=new f(0);const R=l.extraField;if(R){let e=0,t=0;R.forEach((t=>e+=4+t.length)),E=new f(e),R.forEach(((e,n)=>{if(n>yt)throw new c(hn);if(e.length>yt)throw new c(wn);Rn(E,new u([n]),t),Rn(E,new u([e.length]),t+2),Rn(E,e,t+4),t+=4+e.length}))}let z=xn(e,l,"extendedTimestamp");void 0===z&&(z=!0);let C=0,D=xn(e,l,"keepOrder");void 0===D&&(D=!0);let T=0,I=xn(e,l,"msDosCompatible");void 0===I&&(I=!0);const P=xn(e,l,"internalFileAttribute")||0,V=xn(e,l,"externalFileAttribute")||0;o&&(o.initialized||await o.init(),T=o.size,C=(e=>e+5*(s.floor(e/16383)+1))(T));let U=l.zip64||e.options.zip64||!1;if(e.offset+e.pendingCompressedSize>=mt||T>=mt||C>=mt){if(!1===l.zip64||!1===e.options.zip64||!D)throw new c(pn);U=!0}e.pendingCompressedSize+=C,await p.resolve();const B=xn(e,l,"level"),X=xn(e,l,"useWebWorkers"),M=xn(e,l,"bufferedWrite");let q=xn(e,l,"dataDescriptor"),L=xn(e,l,"dataDescriptorSignature");const N=xn(e,l,"signal"),O=xn(e,l,"useCompressionStream");void 0===q&&(q=!0),q&&void 0===L&&(L=!1);const H=await(async(e,r,a,o)=>{const{files:l,writer:u}=e,w=u.getStream().getWriter(),_=t.from(l.values()).pop();let g,b,m,y={};l.set(r,y);try{let k,x,v;if(o.keepOrder&&(k=_&&_.lock),y.lock=v=new p((e=>m=e)),o.bufferedWrite||e.lockWrite||!o.dataDescriptor?(x=new rt,x.init(),g=!0):(e.lockWrite=new p((e=>b=e)),u.initialized||await u.init(),x=u),y=await(async(e,t,r,a,o)=>{const{rawFilename:l,lastAccessDate:c,creationDate:u,password:h,level:w,zip64:p,zipCrypto:_,dataDescriptor:g,dataDescriptorSignature:b,directory:m,version:y,versionMadeBy:k,rawComment:x,rawExtraField:v,useWebWorkers:S,onprogress:A,signal:E,encryptionStrength:R,extendedTimestamp:z,msDosCompatible:C,internalFileAttribute:D,externalFileAttribute:T,useCompressionStream:I}=o,P=!(!h||!h.length),V=0!==w&&!m;let U,B,W;if(P&&!_){U=new f(_n.length+2);const e=zn(U);Sn(e,0,39169),Rn(U,_n,2),vn(e,8,R)}else U=new f(0);if(z){W=new f(9+(c?4:0)+(u?4:0));const e=zn(W);Sn(e,0,At),Sn(e,2,W.length-4),vn(e,4,1+(c?2:0)+(u?4:0)),An(e,5,s.floor(o.lastModDate.getTime()/1e3)),c&&An(e,9,s.floor(c.getTime()/1e3)),u&&An(e,13,s.floor(u.getTime()/1e3));try{B=new f(36);const e=zn(B),t=kn(o.lastModDate);Sn(e,0,10),Sn(e,2,32),Sn(e,8,1),Sn(e,10,24),En(e,12,t),En(e,20,kn(c)||t),En(e,28,kn(u)||t)}catch(e){B=new f(0)}}else B=W=new f(0);const X={version:y||20,versionMadeBy:k,zip64:p,directory:!!m,filenameUTF8:!0,rawFilename:l,commentUTF8:!0,rawComment:x,rawExtraFieldZip64:new f(p?28:0),rawExtraFieldExtendedTimestamp:W,rawExtraFieldNTFS:B,rawExtraFieldAES:U,rawExtraField:v,extendedTimestamp:z,msDosCompatible:C,internalFileAttribute:D,externalFileAttribute:T};let M=X.uncompressedSize=0,q=Et;g&&(q|=8);let L=0;V&&(L=8),p&&(X.version=X.version>45?X.version:45),P&&(q|=1,_||(X.version=X.version>51?X.version:51,L=99,V&&(X.rawExtraFieldAES[9]=8))),X.compressionMethod=L;const N=X.headerArray=new f(26),O=zn(N);Sn(O,0,X.version),Sn(O,2,q),Sn(O,4,L);const H=new d(1),$=zn(H);let Z;Z=o.lastModDate<Ct?Ct:o.lastModDate>zt?zt:o.lastModDate,Sn($,0,(Z.getHours()<<6|Z.getMinutes())<<5|Z.getSeconds()/2),Sn($,2,(Z.getFullYear()-1980<<4|Z.getMonth()+1)<<5|Z.getDate());const j=H[0];An(O,6,j),Sn(O,22,l.length);const K=U.length+W.length+B.length+X.rawExtraField.length;Sn(O,24,K);const G=new f(30+l.length+K);let Y;An(zn(G),0,kt),Rn(G,N,4),Rn(G,l,30),Rn(G,U,30+l.length),Rn(G,W,30+l.length+U.length),Rn(G,B,30+l.length+U.length+W.length),Rn(G,X.rawExtraField,30+l.length+U.length+W.length+B.length);let J=0;if(e){await yn(r,G),X.dataWritten=!0;const n=()=>e.size,i=e.getStream({offset:0,size:n,chunkSize:F(a)});Y=await $e(a.Deflate,i,t,{codecType:Be,level:w,password:h,encryptionStrength:R,zipCrypto:P&&_,passwordVerification:P&&_&&j>>8&255,signed:!0,compressed:V,encrypted:P,useWebWorkers:S,useCompressionStream:I},a,{signal:E,onprogress:A,size:n}),M=X.uncompressedSize=e.size,J=Y.length}else await yn(r,G),X.dataWritten=!0;let Q,ee=new f(0),te=0;if(g&&(ee=new f(p?b?24:20:b?16:12),Q=zn(ee),b&&(te=4,An(Q,0,134695760))),e){const e=Y.signature;if(P&&!_||void 0===e||(An(O,10,e),X.signature=e,g&&An(Q,te,e)),p){const e=zn(X.rawExtraFieldZip64);Sn(e,0,1),Sn(e,2,24),An(O,14,mt),En(e,12,i(J)),An(O,18,mt),En(e,4,i(M)),g&&(En(Q,te+4,i(J)),En(Q,te+12,i(M)))}else An(O,14,J),An(O,18,M),g&&(An(Q,te+4,J),An(Q,te+8,M))}g&&await yn(r,ee);const ne=G.length+J+ee.length;return n.assign(X,{compressedSize:J,lastModDate:Z,rawLastModDate:j,creationDate:u,lastAccessDate:c,encrypted:P,length:ne}),X})(a,x.getStream(),x.getStream().getWriter(),e.config,o),y.lock=v,l.set(r,y),y.filename=r,g){let n=0;const r=x.getData();let i;await p.all([e.lockWrite,k]);do{i=t.from(l.values()).find((e=>e.writingBufferedData)),i&&await i.lock}while(i&&i.lock);if(y.writingBufferedData=!0,!o.dataDescriptor){const e=26,t=await mn(r,0,e),i=new h(t);y.encrypted&&!o.zipCrypto||An(i,14,y.signature),y.zip64?(An(i,18,mt),An(i,22,mt)):(An(i,18,y.compressedSize),An(i,22,y.uncompressedSize)),await yn(w,new f(t)),n=e}await(async(e,t,n=0)=>{const r=536870912;await async function i(){if(n<t.size){const s=await mn(t,n,n+r);await yn(e,new f(s)),n+=r,await i()}}()})(w,r,n),delete y.writingBufferedData}if(y.offset=e.offset,y.zip64)En(zn(y.rawExtraFieldZip64),20,i(y.offset));else if(y.offset>=mt)throw new c(pn);return e.offset+=y.length,y}catch(t){throw(g&&y.writingBufferedData||!g&&y.dataWritten)&&(t.corruptedEntry=e.hasCorruptedEntries=!0,y.uncompressedSize&&(e.offset+=y.uncompressedSize)),l.delete(r),t}finally{m(),b&&b()}})(e,r,o,n.assign({},l,{rawFilename:w,rawComment:g,version:b,versionMadeBy:m,lastModDate:y,lastAccessDate:k,creationDate:x,rawExtraField:E,zip64:U,password:v,level:B,useWebWorkers:X,encryptionStrength:S,extendedTimestamp:z,zipCrypto:A,bufferedWrite:M,keepOrder:D,dataDescriptor:q,dataDescriptorSignature:L,signal:N,msDosCompatible:I,internalFileAttribute:P,externalFileAttribute:V,useCompressionStream:O}));return C&&(e.pendingCompressedSize-=C),n.assign(H,{name:r,comment:_,extraField:R}),new It(H)})(l,e,r,o),this.pendingAddFileCalls.add(w),await w}finally{this.pendingAddFileCalls.delete(w),bn--;const e=l.pendingEntries.shift();e&&l.add(e.name,e.reader,e.options).then(e.resolve).catch(e.reject)}}}async close(e=new f(0),n={}){for(;this.pendingAddFileCalls.size;)await p.all(t.from(this.pendingAddFileCalls));return await(async(e,n,r)=>{const{files:a}=e,o=e.writer.getStream().getWriter();let l=0,u=0,d=e.offset,h=a.size;for(const[,e]of a)u+=46+e.rawFilename.length+e.rawComment.length+e.rawExtraFieldZip64.length+e.rawExtraFieldAES.length+e.rawExtraFieldExtendedTimestamp.length+e.rawExtraFieldNTFS.length+e.rawExtraField.length;let w=r.zip64||e.options.zip64||!1;if(d>=mt||u>=mt||h>=yt){if(!1===r.zip64||!1===e.options.zip64)throw new c(pn);w=!0}const p=new f(u+(w?98:22)),_=zn(p);if(n&&n.length){if(n.length>yt)throw new c(ln);Sn(_,l+20,n.length)}for(const[e,n]of t.from(a.values()).entries()){const{rawFilename:t,rawExtraFieldZip64:i,rawExtraFieldAES:o,rawExtraField:c,rawComment:u,versionMadeBy:d,headerArray:h,directory:w,zip64:g,msDosCompatible:b,internalFileAttribute:m,externalFileAttribute:y}=n;let k,x;if(n.extendedTimestamp){x=n.rawExtraFieldNTFS,k=new f(9);const e=zn(k);Sn(e,0,At),Sn(e,2,k.length-4),vn(e,4,1),An(e,5,s.floor(n.lastModDate.getTime()/1e3))}else x=k=new f(0);const v=i.length+o.length+k.length+x.length+c.length;if(An(_,l,xt),Sn(_,l+4,d),Rn(p,h,l+6),Sn(_,l+30,v),Sn(_,l+32,u.length),An(_,l+34,m),y?An(_,l+38,y):w&&b&&vn(_,l+38,16),An(_,l+42,g?mt:n.offset),Rn(p,t,l+46),Rn(p,i,l+46+t.length),Rn(p,o,l+46+t.length+i.length),Rn(p,k,l+46+t.length+i.length+o.length),Rn(p,x,l+46+t.length+i.length+o.length+k.length),Rn(p,c,l+46+t.length+i.length+o.length+k.length+x.length),Rn(p,u,l+46+t.length+v),l+=46+t.length+v+u.length,r.onprogress)try{r.onprogress(e+1,a.size,new It(n))}catch(e){}}w&&(An(_,l,vt),En(_,l+4,i(44)),Sn(_,l+12,45),Sn(_,l+14,45),En(_,l+24,i(h)),En(_,l+32,i(h)),En(_,l+40,i(u)),En(_,l+48,i(d)),An(_,l+56,St),En(_,l+64,i(d)+i(u)),An(_,l+72,1),h=yt,d=mt,u=mt,l+=76),An(_,l,101010256),Sn(_,l+8,h),Sn(_,l+10,h),An(_,l+12,u),An(_,l+16,d),await yn(o,p),n&&n.length&&await yn(o,n)})(this,e,n),this.writer.getData()}},e.configure=I,e.getMimeType=()=>"application/octet-stream",e.initShimAsyncCodec=(e,t={},n)=>({Deflate:P(e.Deflate,t.deflate,n),Inflate:P(e.Inflate,t.inflate,n)}),e.terminateWorkers=()=>{Ne.forEach((e=>{Ze(e),e.terminate()}))},n.defineProperty(e,"__esModule",{value:!0})}));
|