@zip.js/zip.js 2.11.0 → 2.11.2

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.
@@ -1 +1 @@
1
- const t=4294967295,e=65535,r=255,n=67324752,a=134695760,o=a,s=84233040,i=33639248,c=101010256,l=101075792,d=117853008,f=46,u=22,p=20,m=56,w=39169,h=21589,y=6534,b=30837,g=30805,x=2048,E=61440,v=16384,S=2048,z=1024,k="/",A=30,R=new Date(2107,11,31,23,59,58),D=new Date(1980,0,1),F=void 0,O=1/0,T="undefined",U="function",I="object",C="string",j=new Uint8Array,M="password",N="rawPassword",_="passThrough",B="signal",P="useWebWorkers",W="useCompressionStream",L="transferStreams",q="preventClose",Z="dataDescriptor",V="offset",H="usdz",G="maxAppendedDataSize",K="signCentralDirectory",Y="filename",X="comment",J="strict",Q="balanced",$="tolerant",tt="Invalid option (must be a function)",et="Invalid signal (must be an AbortSignal instance)",rt="Invalid password (password must be a string, rawPassword must be a Uint8Array)";function nt(t){if(t&&typeof t!=U)throw new Error(tt);return t}function at(t){if(t&&(typeof t.addEventListener!=U||"boolean"!=typeof t.aborted))throw new Error(et);return t||F}function ot(t,e){if(t&&typeof t!=C||e&&!(e instanceof Uint8Array))throw new Error(rt)}function st(t,e,r){if(!Number.isInteger(t)||t<0||t>e)throw new Error(r)}function it(t,e,r){t!==F&&st(t,e,r)}function ct(t){return typeof t==C&&t.trim()?Number(t):t}const lt="Invalid maxWorkers (must be an integer greater than 0)";let dt=2;try{typeof navigator!=T&&navigator.hardwareConcurrency&&(dt=navigator.hardwareConcurrency)}catch{}const ft={workerURI:"./core/web-worker-wasm.js",wasmURI:"./core/streams/zlib-wasm/zlib-streams.wasm",chunkSize:65536,maxWorkers:dt,terminateWorkerTimeout:5e3,workerStarvationTimeout:5e3,workerStartupTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,transferStreams:!0,CompressionStream:typeof CompressionStream!=T&&CompressionStream,DecompressionStream:typeof DecompressionStream!=T&&DecompressionStream},ut="maxWorkers",pt=["chunkSize",ut,"terminateWorkerTimeout","workerStarvationTimeout","workerStartupTimeout"],mt=["createWorker","CompressionStream","DecompressionStream","CompressionStreamFallback","DecompressionStreamFallback"],wt=["baseURI","wasmURI","workerURI","useCompressionStream","useWebWorkers","transferStreams",...pt,...mt],ht={...ft};function yt(){return ht}function bt(t){return gt(t.chunkSize)}function gt(t){return t=ct(t),Number.isInteger(t)&&t>=1?Math.max(t,64):65536}function xt(t){Object.assign(ht,Et(St(t)))}function Et(t){const e={};for(const r of wt){const n=t[r];n!==F&&(e[r]=vt(r,n))}return e}function vt(t,e){if(pt.includes(t)){if(e=ct(e),t==ut&&(!Number.isInteger(e)||e<1))throw new Error(lt)}else mt.includes(t)&&nt(e);return e}function St(t){t=t||{};const{CompressionStreamZlib:e,DecompressionStreamZlib:r}=t;if(e===F&&r===F)return t;const n=Object.assign({},t);return n.CompressionStreamFallback===F&&(n.CompressionStreamFallback=e),n.DecompressionStreamFallback===F&&(n.DecompressionStreamFallback=r),n}function zt(t){const e=Et(St(t));Object.assign(ft,e),Object.assign(ht,e)}function kt(){for(const t of wt)delete ht[t];Object.assign(ht,ft)}function At(t,e){const r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function Rt(t){return t.byteOffset||t.byteLength!=t.buffer.byteLength?new Uint8Array(t):t}function Dt(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}const Ft=[[],[],[],[],[],[],[],[]];for(let t=0;t<256;t++){let e=t;for(let t=0;t<8;t++)e=1&e?e>>>1^3988292384:e>>>1;Ft[0][t]=e}for(let t=0;t<256;t++)for(let e=1;e<8;e++){const r=Ft[e-1][t];Ft[e][t]=r>>>8^Ft[0][255&r]}const[Ot,Tt,Ut,It,Ct,jt,Mt,Nt]=Ft;class _t{constructor(t){this.o=t||-1}append(t){let e=0|this.o;const r=0|t.length;let n=0;if(r>=8&&t.buffer){const a=new DataView(t.buffer,t.byteOffset,r),o=r-8;for(;n<=o;n+=8){const t=e^a.getInt32(n,!0),r=a.getInt32(n+4,!0);e=Nt[255&t]^Mt[t>>>8&255]^jt[t>>>16&255]^Ct[t>>>24&255]^It[255&r]^Ut[r>>>8&255]^Tt[r>>>16&255]^Ot[r>>>24&255]}}for(;n<r;n++)e=e>>>8^Ot[255&(e^t[n])];this.o=e}get(){return~this.o}}class Bt extends TransformStream{constructor(){let t;const e=new _t;super({transform(t,r){e.append(t),r.enqueue(t)},flush(){const r=new Uint8Array(4);new DataView(r.buffer).setUint32(0,e.get()),t.value=r}}),t=this}}function Pt(t){if(typeof TextEncoder==T){t=unescape(encodeURIComponent(t));const e=new Uint8Array(t.length);for(let r=0;r<e.length;r++)e[r]=t.charCodeAt(r);return e}return(new TextEncoder).encode(t)}const Wt={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const r=t[t.length-1],n=Wt.l(r);return 32===n?t.concat(e):Wt.m(e,n,0|r,t.slice(0,t.length-1))},bitLength(t){const e=t.length;if(0===e)return 0;const r=t[e-1];return 32*(e-1)+Wt.l(r)},h(t,e){if(32*t.length<e)return t;const r=(t=t.slice(0,Math.ceil(e/32))).length;return e&=31,r>0&&e&&(t[r-1]=Wt.v(e,t[r-1]&2147483648>>e-1,1)),t},v:(t,e,r)=>32===t?e:(r?0|e:e<<32-t)+1099511627776*t,l:t=>Math.round(t/1099511627776)||32,m(t,e,r,n){for(void 0===n&&(n=[]);e>=32;e-=32)n.push(r),r=0;if(0===e)return n.concat(t);for(let a=0;a<t.length;a++)n.push(r|t[a]>>>e),r=t[a]<<32-e;const a=t.length?t[t.length-1]:0,o=Wt.l(a);return n.push(Wt.v(e+o&31,e+o>32?r:n.pop(),1)),n}},Lt={bytes:{S(t){const e=Wt.bitLength(t)/8,r=new Uint8Array(e);let n;for(let a=0;a<e;a++)3&a||(n=t[a/4]),r[a]=n>>>24,n<<=8;return r},A(t){const e=[];let r,n=0;for(r=0;r<t.length;r++)n=n<<8|t[r],3&~r||(e.push(n),n=0);return 3&r&&e.push(Wt.v(8*(3&r),n)),e}}},qt=class{constructor(t){const e=this;e.blockSize=512,e.R=[1732584193,4023233417,2562383102,271733878,3285377520],e.D=[1518500249,1859775393,2400959708,3395469782],t?(e.F=t.F.slice(0),e.O=t.O.slice(0),e.T=t.T):e.reset()}reset(){const t=this;return t.F=t.R.slice(0),t.O=[],t.T=0,t}update(t){const e=this;"string"==typeof t&&(t=Lt.U.A(t));const r=e.O=Wt.concat(e.O,t),n=e.T,a=e.T=n+Wt.bitLength(t);if(a>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const o=new Uint32Array(r);let s=0;for(let t=e.blockSize+n-(e.blockSize+n&e.blockSize-1);t<=a;t+=e.blockSize)e.I(o.subarray(16*s,16*(s+1))),s+=1;return r.splice(0,16*s),e}C(){const t=this;let e=t.O;const r=t.F;e=Wt.concat(e,[Wt.v(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(Math.floor(t.T/4294967296)),e.push(0|t.T);e.length;)t.I(e.splice(0,16));return t.reset(),r}j(t,e,r,n){return t<=19?e&r|~e&n:t<=39?e^r^n:t<=59?e&r|e&n|r&n:t<=79?e^r^n:void 0}M(t,e){return e<<t|e>>>32-t}I(t){const e=this,r=e.F,n=Array(80);for(let e=0;e<16;e++)n[e]=t[e];let a=r[0],o=r[1],s=r[2],i=r[3],c=r[4];for(let t=0;t<=79;t++){t>=16&&(n[t]=e.M(1,n[t-3]^n[t-8]^n[t-14]^n[t-16]));const r=e.M(5,a)+e.j(t,o,s,i)+c+n[t]+e.D[Math.floor(t/20)]|0;c=i,i=s,s=e.M(30,o),o=a,a=r}r[0]=r[0]+a|0,r[1]=r[1]+o|0,r[2]=r[2]+s|0,r[3]=r[3]+i|0,r[4]=r[4]+c|0}},Zt={importKey:t=>new Zt.N(Lt.bytes.A(t)),_(t,e,r,n){if(r=r||1e4,n<0||r<0)throw new Error("invalid params to pbkdf2");const a=1+(n>>5)<<2;let o,s,i,c,l;const d=new ArrayBuffer(a),f=new DataView(d);let u=0;const p=Wt;for(e=Lt.bytes.A(e),l=1;u<(a||1);l++){for(o=s=t.encrypt(p.concat(e,[l])),i=1;i<r;i++)for(s=t.encrypt(s),c=0;c<s.length;c++)o[c]^=s[c];for(i=0;u<(a||1)&&i<o.length;i++)f.setInt32(u,o[i]),u+=4}return d.slice(0,n/8)},N:class{constructor(t){const e=this,r=e.B=qt,n=[[],[]];e.P=[new r,new r];const a=e.P[0].blockSize/32;t.length>a&&(t=(new r).update(t).C());for(let e=0;e<a;e++)n[0][e]=909522486^t[e],n[1][e]=1549556828^t[e];e.P[0].update(n[0]),e.P[1].update(n[1]),e.W=new r(e.P[0])}reset(){const t=this;t.W=new t.B(t.P[0]),t.L=!1}update(t){this.L=!0,this.W.update(t)}digest(){const t=this,e=t.W.C(),r=new t.B(t.P[1]).update(e).C();return t.reset(),r}encrypt(t){if(this.L)throw new Error("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},Vt=typeof crypto!=T&&typeof crypto.getRandomValues==U,Ht="Invalid password",Gt="Invalid authentication code",Kt="zipjs-abort-check-password",Yt="Crypto API not supported";function Xt(t){if(Vt)return crypto.getRandomValues(t);throw new Error(Yt)}const Jt=16,Qt={name:"PBKDF2"},$t=Object.assign({hash:{name:"HMAC"}},Qt),te=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},Qt),ee=["deriveBits"],re=[8,12,16],ne=[16,24,32],ae=10,oe=[0,0,0,0],se=typeof crypto!=T,ie=se&&crypto.subtle,ce=se&&typeof ie!=T,le=Lt.bytes,de=class{constructor(t){const e=this;e.Z=[[[],[],[],[],[]],[[],[],[],[],[]]],e.Z[0][0][0]||e.V();const r=e.Z[0][4],n=e.Z[1],a=t.length;let o,s,i,c=1;if(4!==a&&6!==a&&8!==a)throw new Error("invalid aes key size");for(e.D=[s=t.slice(0),i=[]],o=a;o<4*a+28;o++){let t=s[o-1];(o%a===0||8===a&&o%a===4)&&(t=r[t>>>24]<<24^r[t>>16&255]<<16^r[t>>8&255]<<8^r[255&t],o%a===0&&(t=t<<8^t>>>24^c<<24,c=c<<1^283*(c>>7))),s[o]=s[o-a]^t}for(let t=0;o;t++,o--){const e=s[3&t?o:o-4];i[t]=o<=4||t<4?e:n[0][r[e>>>24]]^n[1][r[e>>16&255]]^n[2][r[e>>8&255]]^n[3][r[255&e]]}}encrypt(t){return this.H(t,0)}decrypt(t){return this.H(t,1)}V(){const t=this.Z[0],e=this.Z[1],r=t[4],n=e[4],a=[],o=[];let s,i,c,l;for(let t=0;t<256;t++)o[(a[t]=t<<1^283*(t>>7))^t]=t;for(let d=s=0;!r[d];d^=i||1,s=o[s]||1){let o=s^s<<1^s<<2^s<<3^s<<4;o=o>>8^255&o^99,r[d]=o,n[o]=d,l=a[c=a[i=a[d]]];let f=16843009*l^65537*c^257*i^16843008*d,u=257*a[o]^16843008*o;for(let r=0;r<4;r++)t[r][d]=u=u<<24^u>>>8,e[r][o]=f=f<<24^f>>>8}for(let r=0;r<5;r++)t[r]=t[r].slice(0),e[r]=e[r].slice(0)}H(t,e){if(4!==t.length)throw new Error("invalid aes block size");const r=this.D[e],n=r.length/4-2,a=[0,0,0,0],o=this.Z[e],s=o[0],i=o[1],c=o[2],l=o[3],d=o[4];let f,u,p,m=t[0]^r[0],w=t[e?3:1]^r[1],h=t[2]^r[2],y=t[e?1:3]^r[3],b=4;for(let t=0;t<n;t++)f=s[m>>>24]^i[w>>16&255]^c[h>>8&255]^l[255&y]^r[b],u=s[w>>>24]^i[h>>16&255]^c[y>>8&255]^l[255&m]^r[b+1],p=s[h>>>24]^i[y>>16&255]^c[m>>8&255]^l[255&w]^r[b+2],y=s[y>>>24]^i[m>>16&255]^c[w>>8&255]^l[255&h]^r[b+3],b+=4,m=f,w=u,h=p;for(let t=0;t<4;t++)a[e?3&-t:t]=d[m>>>24]<<24^d[w>>16&255]<<16^d[h>>8&255]<<8^d[255&y]^r[b++],f=m,m=w,w=h,h=y,y=f;return a}},fe=class{constructor(t,e){this.G=t,this.K=e,this.Y=e}reset(){this.Y=this.K}update(t){return this.X(this.G,t,this.Y)}J(t){if(255&~(t>>24))t+=1<<24;else{let e=t>>16&255,r=t>>8&255,n=255&t;255===e?(e=0,255===r?(r=0,255===n?n=0:++n):++r):++e,t=0,t+=e<<16,t+=r<<8,t+=n}return t}$(t){0===(t[0]=this.J(t[0]))&&(t[1]=this.J(t[1]))}X(t,e,r){let n;if(!(n=e.length))return[];const a=Wt.bitLength(e);for(let a=0;a<n;a+=4){this.$(r);const n=t.encrypt(r);e[a]^=n[0],e[a+1]^=n[1],e[a+2]^=n[2],e[a+3]^=n[3]}return Wt.h(e,a)}},ue=Zt.N;let pe=se&&ce&&typeof ie.importKey==U,me=se&&ce&&typeof ie.deriveBits==U;class we extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r,checkPasswordOnly:n,checkAuthenticationCode:a=!0}){super({start(){ye(this,t,e,r)},async transform(t,e){const r=this,{password:a,strength:o,et:s,ready:i}=r;a?(await async function(t,e,r,n){const a=await ge(t,e,r,Ee(n,0,re[e])),o=Ee(n,re[e]);if(a[0]!=o[0]||a[1]!=o[1])throw new Error(Ht)}(r,o,a,Ee(t,0,re[o]+2)),t=Ee(t,re[o]+2),n?e.error(new Error(Kt)):s()):await i;const c=new Uint8Array(t.length-ae-(t.length-ae)%Jt);e.enqueue(be(r,t,c,0,ae,!0))},async flush(t){const{nt:e,ot:r,st:n,ready:o}=this;if(r&&e){await o;const s=Ee(n,0,n.length-ae),i=Ee(n,n.length-ae);let c=j;if(s.length){const t=Se(le,s);r.update(t);const n=e.update(t);c=ve(le,n)}const l=Ee(ve(le,r.digest()),0,ae);let d=n.length<ae?1:0;for(let t=0;t<ae;t++)d|=l[t]^i[t];if(d&&a)throw new Error(Gt);t.enqueue(c)}}})}}class he extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r}){super({start(){ye(this,t,e,r)},async transform(t,e){const r=this,{password:n,strength:a,et:o,ready:s}=r;let i=j;n?(i=await async function(t,e,r){const n=Xt(new Uint8Array(re[e]));return At(n,await ge(t,e,r,n))}(r,a,n),o()):await s;const c=new Uint8Array(i.length+t.length-t.length%Jt);c.set(i,0),e.enqueue(be(r,t,c,i.length,0))},async flush(t){const{nt:e,ot:r,st:n,ready:a}=this;if(r&&e){await a;let o=j;if(n.length){const t=e.update(Se(le,n));r.update(t),o=ve(le,t)}const s=ve(le,r.digest()).slice(0,ae);t.enqueue(At(o,s))}}})}}function ye(t,e,r,n){Object.assign(t,{ready:new Promise(e=>t.et=e),password:xe(e,r),strength:n-1,st:j})}function be(t,e,r,n,a,o){const{nt:s,ot:i,st:c}=t;c.length&&(e=At(c,e));const l=e.length-a;let d;for(r=function(t,e){if(e&&e>t.length){const r=t;(t=new Uint8Array(e)).set(r,0)}return t}(r,n+(l-l%Jt)),d=0;d<=l-Jt;d+=Jt){const t=Se(le,Ee(e,d,d+Jt));o&&i.update(t);const a=s.update(t);o||i.update(a),r.set(ve(le,a),d+n)}return t.st=Ee(e,d),r}async function ge(t,e,r,n){t.password=null;const a=await async function(t,e,r,n,a){if(!pe)return Zt.importKey(e);try{return await ie.importKey("raw",e,r,!1,a)}catch{return pe=!1,Zt.importKey(e)}}(0,r,$t,0,ee),o=await async function(t,e,r){if(!me)return Zt._(e,t.salt,te.iterations,r);try{return await ie.deriveBits(t,e,r)}catch{return me=!1,Zt._(e,t.salt,te.iterations,r)}}(Object.assign({salt:n},te),a,8*(2*ne[e]+2)),s=new Uint8Array(o),i=Se(le,Ee(s,0,ne[e])),c=Se(le,Ee(s,ne[e],2*ne[e])),l=Ee(s,2*ne[e]);return Object.assign(t,{keys:{key:i,it:c,passwordVerification:l},nt:new fe(new de(i),Array.from(oe)),ot:new ue(c)}),l}function xe(t,e){return e===F?Pt(t):e}function Ee(t,e,r){return t.subarray(e,r)}function ve(t,e){return t.S(e)}function Se(t,e){return t.A(e)}class ze extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r,checkPasswordOnly:n}){super({start(){Ae(this,t,e,r)},transform(t,e){const r=this;if(r.password||r.rawPassword){const e=Re(r,t.subarray(0,12));if(r.password=r.rawPassword=null,0!=(e[11]^r.passwordVerification))throw new Error(Ht);t=t.subarray(12)}n?e.error(new Error(Kt)):e.enqueue(Re(r,t))}})}}class ke extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r}){super({start(){Ae(this,t,e,r)},transform(t,e){const r=this;let n,a;if(r.password||r.rawPassword){r.password=r.rawPassword=null;const e=Xt(new Uint8Array(12));e[11]=r.passwordVerification,n=new Uint8Array(t.length+e.length),n.set(De(r,e),0),a=12}else n=new Uint8Array(t.length),a=0;n.set(De(r,t),a),e.enqueue(n)}})}}function Ae(t,e,r,n){Object.assign(t,{password:e,rawPassword:r,passwordVerification:n}),function(t,e,r){const n=[305419896,591751049,878082192];if(Object.assign(t,{keys:n,ct:new _t(n[0]),lt:new _t(n[2])}),r)for(let e=0;e<r.length;e++)Fe(t,r[e]);else for(let r=0;r<e.length;r++)Fe(t,e.charCodeAt(r))}(t,e,r)}function Re(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Oe(t)^e[n],Fe(t,r[n]);return r}function De(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Oe(t)^e[n],Fe(t,e[n]);return r}function Fe(t,e){let[,r]=t.keys;t.ct.append([e]);const n=~t.ct.get();r=Ue(Math.imul(Ue(r+Te(n)),134775813)+1),t.lt.append([r>>>24]);const a=~t.lt.get();t.keys=[n,r,a]}function Oe(t){const e=2|t.keys[2];return Te(Math.imul(e,1^e)>>>8)}function Te(t){return 255&t}function Ue(t){return 4294967295&t}function Ie(t){if(t instanceof ReadableStream)return t;const e=t.getReader();return new ReadableStream({async pull(t){const{value:r,done:n}=await e.read();n?t.close():t.enqueue(r)},cancel:t=>e.cancel(t)})}function Ce(t,e){t=Ie(t);const r=e?{type:e}:{};if(typeof Blob.prototype.stream!=U||new Blob([]).stream()instanceof ReadableStream)return new Response(t).blob().then(t=>e?new Blob([t],r):t);const n=[];return t.pipeTo(new WritableStream({write(t){n.push(t)}})).then(()=>new Blob(n,r))}function je(t){if(t instanceof WritableStream)return t;const e=t.getWriter();return new WritableStream({write:t=>e.write(t),close:()=>e.close(),abort:t=>e.abort(t)})}const Me="Invalid codec definition",Ne="Reserved compression method",_e="Invalid codec module",Be="Compression method not supported",Pe=[0,8,9,99],We=new Map,Le=new Map;function qe(t={}){const{compressionMethod:r,format:n,codecURI:a,CompressionStream:o,DecompressionStream:s,versionNeeded:i}=t;if(!Number.isInteger(r)||r<0||r>e||typeof n!=C||!n.length)throw new Error(Me);if(Pe.includes(r))throw new Error(Ne);const c=typeof o==U||typeof s==U;if(!(c||typeof a==C&&a.length))throw new Error(Me);We.set(r,{compressionMethod:r,format:n,codecURI:a,versionNeeded:i}),c&&Ke(n,{CompressionStream:o,DecompressionStream:s})}function Ze(t){const e=We.get(t);if(e){let r;We.delete(t),We.forEach(t=>r=r||t.format==e.format),r||Le.delete(e.format)}}function Ve(t){return We.get(t)}function He(){return Array.from(We.values(),t=>Object.assign({},t,Le.get(t.format)))}function Ge(t){return Le.get(t)}function Ke(t,e){const{CompressionStream:r,DecompressionStream:n}=e;if(typeof r!=U&&typeof n!=U)throw new Error(_e);Le.set(t,{CompressionStream:r,DecompressionStream:n})}const Ye="Invalid uncompressed size",Xe="Invalid compressed data",Je="Invalid CRC32",Qe="deflate-raw",$e="deflate64-raw",tr="gzip",er=[31,139,8];class rr extends TransformStream{constructor(t,{chunkSize:e,CompressionStreamFallback:r,CompressionStream:n}){super({});const{compressed:a,encrypted:o,useCompressionStream:s,zipCrypto:i,computeCrc32:c,level:l,deflate64:d,format:f,compressionMethod:u,inputSize:p}=t,m=this;let w,h,y,b=super.readable;const g=f&&Ge(f),x=c&&a&&!d&&!g&&(!o||i)&&Boolean(s&&n);if(o&&!i||!c||x||(w=new Bt,b=fr(b,w)),a)if(g)b=ur(b,lr(g.CompressionStream,f,{level:l,chunkSize:e,compressionMethod:u,uncompressedSize:p}));else if(x)y=new nr,b=ur(b,new n(tr)),b=fr(b,y);else try{b=dr(b,s,{level:l,chunkSize:e},n,r)}catch(t){let e;try{e=new n(tr)}catch{throw t}b=ur(b,e),b=fr(b,new nr)}o&&(i?b=fr(b,new ke(t)):(h=new he(t),b=fr(b,h))),cr(m,b,()=>{o&&!i||!c||(m.crc32=x?y.crc32:new DataView(w.value.buffer).getUint32(0))})}}class nr extends TransformStream{constructor(){let t,e=10,r=new Uint8Array(0);super({transform(t,n){if(e){const r=Math.min(e,t.length);if(e-=r,!(t=t.subarray(r)).length)return}const a=r.length+t.length;if(a<=8)return void(r=At(r,t));const o=a-8,s=Math.min(o,r.length);n.enqueue(At(r.subarray(0,s),t.subarray(0,o-s))),r=At(r.subarray(s),t.subarray(o-s))},flush(){const e=Dt(r);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class ar extends TransformStream{constructor(t,{chunkSize:e,DecompressionStreamFallback:r,DecompressionStream:n}){super({});const{zipCrypto:a,encrypted:o,checkCrc32:s,crc32:i,compressed:c,useCompressionStream:l,deflate64:d,format:f,compressionMethod:u,rawBitFlag:p,outputSize:m}=t;let w,h,y=super.readable;if(o&&(a?y=fr(y,new ze(t)):(h=new we(t),y=fr(y,h))),c){const t=f&&Ge(f);if(t)y=ur(y,lr(t.DecompressionStream,f,{chunkSize:e,compressionMethod:u,rawBitFlag:p,uncompressedSize:m}));else try{y=dr(y,l,{chunkSize:e,deflate64:d},n,r)}catch(t){if(d||m===F)throw t;let e;try{e=new n(tr)}catch{throw t}y=function(t,e,r){const n=new _t;let a,o,s,i=0,c=!1;const l=new Promise((t,e)=>{o=t,s=e});l.catch(()=>{}),r||o();const d=new TransformStream({start(t){const e=new Uint8Array(10);e.set(er),t.enqueue(e)},transform(t,e){e.enqueue(t)},async flush(t){c=!0,u();try{await l}finally{p()}const e=new Uint8Array(8),a=Dt(e);a.setUint32(0,n.get(),!0),a.setUint32(4,r,!0),t.enqueue(e)},cancel(t){s(t)}}),f=new TransformStream({transform(t,e){n.append(t),i+=t.length,i>=r?o():c&&u(),e.enqueue(t)},cancel(t){s(t)}});return t=fr(t,d),fr(t=ur(t,e),f);function u(){p(),a=setTimeout(()=>s(new Error(Ye)),5e3)}function p(){clearTimeout(a)}}(y,e,m)}y=function(t){const e=t.getReader();return new ReadableStream({async pull(t){let r;try{r=await e.read()}catch(t){if(t&&t.message)throw t;const e=new Error(Xe);throw e.cause=t,e}const{value:n,done:a}=r;a?t.close():t.enqueue(n)},cancel:t=>e.cancel(t)})}(y)}s&&(w=new Bt,y=fr(y,w)),cr(this,y,()=>{if(s){const t=new DataView(w.value.buffer);if(i!=t.getUint32(0,!1))throw new Error(Je)}})}}const or=new Map;function sr(t,e){if(!t)return!1;let r=or.get(t);r||(r=new Map,or.set(t,r));let n=r.get(e);if(n===F){try{new t(e),n=!0}catch{n=!1}r.set(e,n)}return n}function ir(t){return sr(t,Qe)}function cr(t,e,r){e=fr(e,new TransformStream({flush:r})),Object.defineProperty(t,"readable",{get:()=>e})}function lr(t,e,r){if(!t)throw new Error(Be);return new t(e,r)}function dr(t,e,r,n,a){const o=e&&n?n:a||n,s=r.deflate64?$e:Qe;let i;try{i=new o(s,r)}catch(t){if(!e||!a||o==a)throw t;i=new a(s,r)}return ur(t,i)}function fr(t,e){return Ie(t).pipeThrough(e)}function ur(t,e){const r=e.writable.getWriter(),n=t.getReader();return async function(){try{for(;;){await r.ready;const t=await n.read();if(t.done){await r.close();break}await r.write(t.value)}}catch(t){await async function(t,e){try{await t.abort(e)}catch{}}(r,t),await async function(t,e){try{await t.cancel(e)}catch{}}(n,t)}}(),e.readable}const pr="data",mr="deflate",wr="inflate";class hr extends TransformStream{constructor(t,e){super({});const r=this,{codecType:n}=t;let a;n.startsWith(mr)?a=rr:n.startsWith(wr)&&(a=ar),r.outputSize=0;let o=0;const s=new a(t,e),i=super.readable,c=new TransformStream({transform(t,e){t&&t.length&&(o+=t.length,e.enqueue(t))},flush(){Object.assign(r,{inputSize:o})}}),l=new TransformStream({transform(e,n){if(e&&e.length&&(n.enqueue(e),r.outputSize+=e.length,t.outputSize!==F&&r.outputSize>t.outputSize))throw new Error(Ye)},flush(){const{crc32:t}=s;Object.assign(r,{crc32:t,inputSize:o})}});Object.defineProperty(r,"readable",{get:()=>i.pipeThrough(c).pipeThrough(s).pipeThrough(l)})}}class yr extends TransformStream{constructor(t){const e=[];let r=0;function n(){const n=new Uint8Array(t);let a=0;for(;a<t;){const r=e[0],o=t-a;r.length<=o?(n.set(r,a),a+=r.length,e.shift()):(n.set(r.subarray(0,o),a),e[0]=r.subarray(o),a+=o)}return r-=t,n}(!Number.isFinite(t)||t<1)&&(t=65536),super({transform(a,o){for(e.push(a),r+=a.length;r>t;)o.enqueue(n())},flush(t){r&&t.enqueue(function(t,e){const r=new Uint8Array(e);let n=0;for(const e of t)r.set(e,n),n+=e.length;return r}(e,r))}})}}const br="Worker startup timeout";let gr,xr,Er,vr=()=>{};async function Sr(t){const{CompressionStream:e,CompressionStreamFallback:r}=t;if(r&&!r.ft)return!0;if(ir(e)||sr(e,tr))return!0;if(r)try{return await vr(t),!0}catch{return!1}return!1}function zr(t){t.createWorker?xr=!0:gr=!1}class kr{constructor(t,{readable:e,writable:r},{options:n,config:a,ut:o,useWebWorkers:s,transferStreams:i,workerURI:c,createWorker:l},d){const{signal:f}=o;return xr&&(l=F),Object.assign(t,{wt:!0,ht:(t.ht||0)+1,readable:e.pipeThrough(new yr(bt(a))).pipeThrough(new Ar(o),{signal:f}),writable:r,options:Object.assign({},n),workerURI:c,createWorker:l,transferStreams:i,terminate:()=>new Promise(e=>{const{yt:r,wt:n}=t;r?(n?t.bt=e:(r.terminate(),e()),t.gt=null):e()}),xt(){if(t.wt){const{bt:e}=t;e&&(t.bt=null,t.Et=!0,t.yt.terminate(),e()),t.wt=!1,d(t)}}}),gr===F&&(gr=typeof Worker!=T),(s&&Er&&(gr&&c||l)?Er:Dr)(t,a)}}class Ar extends TransformStream{constructor({onstart:t,onprogress:e,size:r,onend:n}){let a=0;super({async start(){t&&await Rr(t,r)},async transform(t,n){a+=t.length,e&&await Rr(e,a,r),n.enqueue(t)},async flush(){n&&await Rr(n,a)}})}}async function Rr(t,...e){try{await t(...e)}catch{}}function Dr(t,e){return{run:()=>Fr(t,e)}}async function Fr({options:t,readable:e,writable:r,xt:n},a){let o;try{if(t.compressed&&!t.format){const e=t.codecType.startsWith(mr),r=e?a.CompressionStreamFallback:a.DecompressionStreamFallback,n=e?a.CompressionStream:a.DecompressionStream;if(t.useCompressionStream){if(r&&r.ft&&!ir(n))try{await vr(a)}catch{}}else try{await vr(a)}catch{r&&!r.ft||(t.useCompressionStream=!0)}}o=new hr(t,a),await e.pipeThrough(o).pipeThrough(new yr(bt(a))).pipeTo(r,{preventClose:!0,preventAbort:!0});const{crc32:n,inputSize:s,outputSize:i}=o;return{crc32:n,inputSize:s,outputSize:i}}catch(t){throw o&&(t.outputSize=o.outputSize),t}finally{n()}}const Or={type:"module"},Tr="error";let Ur,Ir,Cr,jr=!0;try{jr=typeof structuredClone==U&&structuredClone(new DOMException("","AbortError")).code!==F}catch{}var Mr;function Nr(t){const{reader:e}=t;e&&e.releaseLock(),t.reader=null,t.writer=null}function _r(t){const{yt:e}=t;if(e)try{e.terminate()}catch{}t.gt=null}function Br(t,e,r,n,a=!0){const{createWorker:o}=r;let s,i,c;if(o)s=o();else if(Ir===F||Ur!==t){const o=typeof t==U;i=o?t(a):t;const l=i.startsWith("data:"),d=i.startsWith("blob:");if(l||d){n===F&&(n=!1),n&&(c=Or);try{s=new Worker(i,c)}catch(a){if(d)try{URL.revokeObjectURL(i)}catch{}if(o&&d)return Br(t,e,r,n,!1);if(n)throw a;return Br(t,e,r,!0,!1)}}else{n===F&&(n=!0),n&&(c=Or);try{i=new URL(i,e)}catch{}try{s=new Worker(i,c)}catch(o){if(n)return Br(t,e,r,!1,a);throw o}}Ur=t,Ir=i,Cr=c}else s=new Worker(Ir,Cr);return s.addEventListener("message",t=>{r.vt=!0,Pr(r),async function({data:t},e){const{type:r,value:n,messageId:a,result:o,error:s}=t,{reader:i,writer:c,St:l,zt:d,xt:f,ht:u}=e,p=()=>e.ht!=u;try{if(s){const{message:t,stack:e,code:r,name:n,outputSize:a,cause:o,codecImportFailed:i}=s,c=new Error(t);Object.assign(c,{stack:e,code:r,name:n,outputSize:a}),o&&(c.cause=Object.assign(new Error(o.message),{name:o.name})),i&&(c.codecImportFailed=!0),m(c)}else{if("pull"==r){const{value:t,done:r}=await i.read();p()||Lr({type:pr,value:t,done:r,messageId:a},e)}r==pr&&(await c.ready,await c.write(new Uint8Array(n)),p()||Lr({type:"ack",messageId:a},e)),"close"==r&&m(null,o)}}catch(s){p()||(_r(e),m(s))}function m(t,e){p()||(t?d(t):l(e),c&&c.releaseLock(),t&&t.codecImportFailed||f())}}(t,r)}),s.addEventListener(Tr,t=>Wr(t,r)),s.addEventListener("messageerror",t=>Wr(t,r)),s}function Pr(t){const{kt:e}=t;e&&(clearTimeout(e),t.kt=null)}function Wr(t,e){t.preventDefault&&t.preventDefault(),Pr(e);const{vt:r,zt:n,writer:a,xt:o}=e;_r(e),r||(e.yt=null);let s=t.error||new Error(t.message||Tr);r||(s=Object.assign(new Error(s.message||Tr),{At:!0}),e.Rt=s),n&&(n(s),a&&a.releaseLock(),r&&o())}function Lr(t,{yt:e,writer:r,transferStreams:n,vt:a}){try{const{value:r,readable:o,writable:s}=t,i=[];if(r&&(t.value=Rt(r),i.push(t.value.buffer)),n&&jr&&a?(o&&i.push(o),s&&i.push(s)):t.readable=t.writable=null,i.length)try{return e.postMessage(t,i),!0}catch{jr=!1,t.readable=t.writable=null,e.postMessage(t)}else e.postMessage(t)}catch(t){throw r&&r.releaseLock(),t}}Mr=function(t,e){const{baseURI:r,chunkSize:n,workerStartupTimeout:a}=e;let{wasmURI:o}=e;if(!t.gt){let s;typeof o==U&&(o=o());try{s=Br(t.workerURI,r,t)}catch{return zr(t),Dr(t,e)}Object.assign(t,{yt:s,vt:!1,Et:!1,Rt:null,gt:{run:async()=>{try{return await async function(t,e){if(!t.yt){const{Rt:e}=t;t.Rt=null;const r=e||new Error(br);throw r.At=!0,r}let r,n;const a=new Promise((t,e)=>{r=t,n=e});Object.assign(t,{reader:null,writer:null,St:r,zt:n,result:a});const{readable:o,options:s}=t,{writable:i,closed:c,Dt:l}=function(t){const e=new AbortController,{writable:r,readable:n}=new TransformStream,a=n.pipeTo(t,{preventClose:!0,preventAbort:!0,signal:e.signal});return a.catch(()=>{}),{writable:r,closed:a,Dt:()=>e.abort()}}(t.writable);let d;try{d=Lr({type:"start",options:s,config:e,readable:o,writable:i},t)}catch(e){l();try{await c}catch{}throw t.xt(),e}d||Object.assign(t,{reader:o.getReader(),writer:i.getWriter()});const{workerStartupTimeout:f}=e;!t.vt&&Number.isFinite(f)&&f>=0&&(t.kt=setTimeout(()=>function(t){if(t.kt=null,t.vt)return;const{zt:e,writer:r}=t;if(_r(t),t.yt=null,e){const t=new Error(br);t.At=!0,e(t),r&&r.releaseLock()}}(t),f));try{const t=await a;return await u(),await c,t}catch(t){await u(),l();try{await c}catch{}throw t}async function u(){if(!d&&!i.locked)try{await i.getWriter().close()}catch{}}}(t,{chunkSize:n,wasmURI:o,baseURI:r,workerStartupTimeout:a})}catch(r){if(r&&r.At)return zr(t),Nr(t),Fr(t,e);if(r&&r.codecImportFailed){if(t.reader)return Nr(t),Fr(t,e);t.xt()}throw r}}}})}return t.gt},Er=Mr;let qr=[];const Zr=[];let Vr,Hr,Gr=0;async function Kr(t,e){const{options:r,config:n}=e,{transferStreams:a,useWebWorkers:o,useCompressionStream:s,compressed:i,checkCrc32:c,computeCrc32:l,encrypted:d,format:f,codecURI:u}=r,{workerURI:p,createWorker:m,maxWorkers:w}=n;f&&(u&&(r.codecURI=function(t,e){try{return new URL(t,e).toString()}catch{return t}}(u,n.baseURI)),await async function(t,e){!Le.has(t)&&e&&Ke(t,await(import(/* webpackIgnore: true */ /* @vite-ignore */e)))}(f,r.codecURI)),e.transferStreams=!f&&(a||a===F&&n.transferStreams);const h=!(i||c||l||d),y=f===F||Boolean(r.codecURI);return e.useWebWorkers=!h&&y&&(o||o===F&&n.useWebWorkers),e.workerURI=e.useWebWorkers&&p?p:F,e.createWorker=e.useWebWorkers&&m?m:F,r.useCompressionStream=s||s===F&&n.useCompressionStream,(await async function(){const r=qr.find(t=>!t.wt);if(r)return $r(r),new kr(r,t,e,b);if(qr.length<w){const r={Ft:Gr};return Gr++,qr.push(r),new kr(r,t,e,b)}return new Promise(r=>{Zr.push({resolve:r,stream:t,Ot:e}),Hr=n.workerStarvationTimeout,Yr()})}()).run();function b(t){if(Xr(),Zr.length){const[{resolve:e,stream:r,Ot:n}]=Zr.splice(0,1);e(new kr(t,r,n,b)),Yr()}else t.yt?($r(t),function(t,e){const{config:r}=e,{terminateWorkerTimeout:n}=r;Number.isFinite(n)&&n>=0&&(t.Et?t.Et=!1:t.Tt=setTimeout(async()=>{qr=qr.filter(e=>e!=t);try{await t.terminate()}catch{}},n))}(t,e)):qr=qr.filter(e=>e!=t)}}function Yr(){!Vr&&Zr.length&&Number.isFinite(Hr)&&Hr>=0&&(Vr=setTimeout(Jr,Hr))}function Xr(){Vr&&(clearTimeout(Vr),Vr=null)}function Jr(){if(Vr=null,Zr.length){const[{resolve:t,stream:e,Ot:r}]=Zr.splice(0,1),n=Object.assign({},r,{useWebWorkers:!1,workerURI:F,createWorker:F});t(new kr({},e,n,Qr)),Yr()}}function Qr(){Xr(),Yr()}function $r(t){const{Tt:e}=t;e&&(clearTimeout(e),t.Tt=null)}const tn="\0\u263a\u263b\u2665\u2666\u2663\u2660\u2022\u25d8\u25cb\u25d9\u2642\u2640\u266a\u266b\u263c\u25ba\u25c4\u2195\u203c\xb6\xa7\u25ac\u21a8\u2191\u2193\u2192\u2190\u221f\u2194\u25b2\u25bc !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xa2\xa3\xa5\u20a7\u0192\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\u2310\xac\xbd\xbc\xa1\xab\xbb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\xdf\u0393\u03c0\u03a3\u03c3\xb5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\xb1\u2265\u2264\u2320\u2321\xf7\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0".split("");function en(t,e){return rn(t,e,!0)}function rn(t,e,r){return e&&"cp437"==e.trim().toLowerCase()?function(t){let e="";for(let r=0;r<t.length;r++)e+=tn[t[r]];return e}(t):new TextDecoder(e,{ignoreBOM:r}).decode(t)}const nn="HTTP error ",an="HTTP Range not supported",on="HTTP resource changed",sn="Writer iterator completed too soon",cn="Writer not initialized",ln="Content-Range",dn="Range",fn="GET",un="bytes",pn=16777216,mn="writable",wn=Symbol();class hn{constructor(){this.size=0}init(){this.initialized=!0}}class yn extends hn{get readable(){return this.createReadable()}createReadable({offset:t=0,size:e,chunkSize:r=bt(yt())}={}){const n=this;let a=0;return r=gt(r),new ReadableStream({async pull(o){const s=e===F?r:Math.min(r,e-a),i=await ra(n,t+a,s);i.length&&o.enqueue(i),a+r>=e||!i.length&&s?o.close():a+=r}})}}class bn extends hn{constructor(){super();const t=this,e=new WritableStream({write(e){if(!t.initialized)throw new Error(cn);return t.writeUint8Array(Rt(e))}});Object.defineProperty(t,mn,{get:()=>e})}writeUint8Array(){}}class gn extends yn{constructor(t){super();let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;Object.assign(this,{Ut:t,It:r,size:Math.floor(.75*(e-r))})}readUint8Array(t,e){const{It:r,Ut:n}=this,a=new Uint8Array(e),o=4*Math.floor(t/3),s=atob(n.substring(o+r,4*Math.ceil((t+e)/3)+r)),i=t-3*Math.floor(o/4);let c=0;for(let t=i;t<i+e&&t<s.length;t++)a[t-i]=s.charCodeAt(t),c++;return c<a.length?a.subarray(0,c):a}}class xn extends bn{constructor(t){super(),Object.assign(this,{contentType:t,data:"data:"+(t||"")+";base64,",Ct:""})}writeUint8Array(t){const e=this;let r,n=e.Ct;const a=e.Ct.length;for(e.Ct="",r=0;r<3*Math.floor((a+t.length)/3)-a;r++)n+=String.fromCharCode(t[r]);for(;r<t.length;r++)e.Ct+=String.fromCharCode(t[r]);n.length>2?e.data+=btoa(n):e.Ct=n+e.Ct}getData(){return this.data+btoa(this.Ct)}}let En,vn;class Sn extends yn{constructor(t){super(),Object.assign(this,{jt:t,size:t.size}),vn||(vn=(async()=>{try{const t=new Blob([new Uint8Array(3)]).slice(1,2).stream().getReader();let e=0,r=await t.read();for(;!r.done;)e+=r.value.length,r=await t.read();En=1==e}catch{En=!1}})())}createReadable(t){const{jt:e,size:r}=this,{offset:n=0,size:a=r-n}=t||{};return!n&&a>=r?Ie(e.stream()):En?Ie(e.slice(n,n+a).stream()):super.createReadable(t)}async readUint8Array(t,e){const r=this,n=t+e,a=!t&&n>=r.size?r.jt:r.jt.slice(t,n);let o=await a.arrayBuffer();return o.byteLength>e&&(o=o.slice(t,n)),new Uint8Array(o)}}class zn extends hn{constructor(t){super();const e=this,r=new TransformStream;Object.defineProperty(e,mn,{get:()=>r.writable}),e.contentType=t,e.Mt=Ce(r.readable,t),e.Mt.catch(()=>{})}getData(){return this.Mt}}class kn extends Sn{constructor(t){super(new Blob([t],{type:"text/plain"}))}}function An(t){let e=0;for(let r=0;r<t.length;r++){const n=t.charCodeAt(r);n<128?e+=1:n<2048?e+=2:n<55296||n>=57344?e+=3:n<56320&&56320==(64512&t.charCodeAt(r+1))?(e+=4,r++):e+=3}return e}class Rn extends zn{constructor(t){super(),Object.assign(this,{encoding:t,Nt:!t||"utf-8"==t.toLowerCase()})}async getData(){const{encoding:t,Nt:e}=this,r=await super.getData();return r.text&&e?r.text():function(t,e){return rn(t,e,!1)}(new Uint8Array(await r.arrayBuffer()),t)}}class Dn extends yn{constructor(t,e){super(),On(this,t,e)}async init(){await Tn(this,qn,Bn),super.init()}createReadable(t){const e=this,{useRangeHeader:r,forceRangeRequests:n,size:a}=e;if((r||n)&&a!==F){const{offset:r=0,size:n=a-r}=t||{};if(n>0&&r<a)return function(t,e,r){let n,a=e,o=0,s=r;return new ReadableStream({start:()=>i(),async pull(t){n||await i();const{value:e,done:r}=await n.read();if(r)throw new Error(an);const a=e.length>o?e.subarray(0,o):e;o-=a.length,s-=a.length,a.length&&t.enqueue(a),o||(await async function(){const t=n;n=F,await t.cancel()}(),s||t.close())},cancel:t=>n&&n.cancel(t)});async function i(){const e=Math.min(t.maximumRangeSize,s),r=await qn(fn,t,Nn(t,a,e));if(206!=r.status)throw new Error(an);const i=r.headers.get(ln);if(i){const t=Number(i.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=a)throw new Error(an)}Mn(t,r),jn(t,r),a+=e,o=e,n=r.body.getReader()}}(e,r,Math.min(n,a-r))}return super.createReadable(t)}readUint8Array(t,e){return Un(this,t,e,qn,Bn)}}class Fn extends yn{constructor(t,e){super(),On(this,t,e)}async init(){await Tn(this,Zn,Pn),super.init()}readUint8Array(t,e){return Un(this,t,e,Zn,Pn)}}function On(t,e,r){const{preventHeadRequest:n,useRangeHeader:a,forceRangeRequests:o,combineSizeEocd:s,checkResourceChanges:i=!0,maximumRangeSize:c=pn,fetch:l}=r;delete(r=Object.assign({},r)).preventHeadRequest,delete r.useRangeHeader,delete r.forceRangeRequests,delete r.combineSizeEocd,delete r.checkResourceChanges,delete r.maximumRangeSize,delete r.useXHR,delete r.fetch,Object.assign(t,{url:e,options:r,preventHeadRequest:n,useRangeHeader:a,forceRangeRequests:o,combineSizeEocd:s,checkResourceChanges:i,maximumRangeSize:c,fetch:l})}async function Tn(t,e,r){const{url:n,preventHeadRequest:a,useRangeHeader:o,forceRangeRequests:s,combineSizeEocd:i}=t;if(function(t){const{baseURI:e}=yt(),{protocol:r}=new URL(t,e);return"http:"==r||"https:"==r}(n)&&(o||s)&&(typeof a==T||a)){const n=await e(fn,t,Nn(t,i?-22:void 0)),a=n.headers.get("Accept-Ranges");if(!(s||a&&a.toLowerCase()==un))throw new Error(an);{if(i){const e=new Uint8Array(await n.arrayBuffer());206==n.status&&e.length==u&&(t._t=e)}jn(t,n);const a=In(n);a===F?await Ln(t,e,r):t.size=a}}else await Ln(t,e,r)}async function Un(t,e,r,n,a){const{useRangeHeader:o,forceRangeRequests:s,_t:i,size:c,options:l}=t;if(o||s){if(i&&e==c-u&&r==u)return i;if(e>=c||0===r)return j;{e+r>c&&(r=c-e);const a=await n(fn,t,Nn(t,e,r));if(206!=a.status)throw new Error(an);const o=a.headers.get(ln);if(o){const t=Number(o.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=e)throw new Error(an)}Mn(t,a),jn(t,a);const s=new Uint8Array(await a.arrayBuffer());if(s.length!=r)throw new Error(an);return s}}{const{data:n}=t;return n||await a(t,l),t.data.subarray(e,e+r)}}function In(t){const e=t.headers.get(ln);if(e){const t=e.trim().split(/\s*\/\s*/)[1];if(t&&"*"!=t){const e=Number(t);if(!Number.isNaN(e))return e}}}function Cn({headers:t}){return{Bt:t.get("Etag")||F,lastModified:t.get("Last-Modified")||F}}function jn(t,e){const{checkResourceChanges:r,Pt:n}=t;r&&!n&&206==e.status&&(t.Pt=Cn(e))}function Mn(t,e){const{checkResourceChanges:r,Pt:n,size:a}=t;if(r){const t=In(e);if(t!==F&&a!==F&&t!=a)throw new Error(on);if(n){const t=Cn(e);if(Object.entries(n).some(([e,r])=>r!==F&&t[e]!==F&&r!=t[e]))throw new Error(on)}}}function Nn(t,e=0,r=1){return Object.assign({},_n(t),{[dn]:un+"="+(e<0?e:e+"-"+(e+r-1))})}function _n({options:t}){const{headers:e}=t;if(e)return Symbol.iterator in e?Object.fromEntries(e):e}async function Bn(t){await Wn(t,qn)}async function Pn(t){await Wn(t,Zn)}async function Wn(t,e){const r=await e(fn,t,_n(t));t.data=new Uint8Array(await r.arrayBuffer()),t.size=t.data.length}async function Ln(t,e,r){if(t.preventHeadRequest)await r(t,t.options);else{const n=await e("HEAD",t,_n(t)),a=n.headers.get("Content-Length");a&&!n.headers.get("Content-Encoding")?t.size=Number(a):await r(t,t.options)}}async function qn(t,{fetch:e=fetch,options:r,url:n},a){const o=await e(n,Object.assign({},r,{method:t,headers:a}));if(o.status<400)return o;throw 416==o.status?new Error(an):new Error(nn+(o.statusText||o.status))}function Zn(t,{url:e},r){return new Promise((n,a)=>{const o=new XMLHttpRequest;if(o.addEventListener("load",()=>{if(o.status<400){const t=[];o.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(e=>{const r=e.trim().split(/\s*:\s*/);r[0]=r[0].trim().replace(/^[a-z]|-[a-z]/g,t=>t.toUpperCase()),t.push(r)}),n({status:o.status,arrayBuffer:()=>o.response,headers:new Map(t)})}else a(416==o.status?new Error(an):new Error(nn+(o.statusText||o.status)))},!1),o.addEventListener("error",t=>a(t.detail?t.detail.error:new Error("Network error")),!1),o.open(t,e),r)for(const t of Object.entries(r))o.setRequestHeader(t[0],t[1]);o.responseType="arraybuffer",o.send()})}class Vn extends yn{constructor(t,e={}){super(),Object.assign(this,{url:t,reader:e.useXHR&&!e.fetch?new Fn(t,e):new Dn(t,e)})}set size(t){}get size(){return this.reader.size}async init(){await this.reader.init(),super.init()}createReadable(t){return this.reader.createReadable(t)}readUint8Array(t,e){return this.reader.readUint8Array(t,e)}}class Hn extends Vn{constructor(t,e={}){super(t,Object.assign({},e,{useRangeHeader:!0}))}}class Gn extends yn{constructor(t){super(),t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),Object.assign(this,{Wt:t,size:t.length})}readUint8Array(t,e){return this.Wt.slice(t,t+e)}}class Kn extends bn{constructor(t){super(),this.Lt=t||262144}init(t=0){Object.assign(this,{offset:0,Wt:new Uint8Array(t>0?t:this.Lt)}),super.init()}writeUint8Array(t){const e=this,r=e.offset+t.length;if(r>e.Wt.length){let t=e.Wt.length?2*e.Wt.length:e.Lt;for(;t<r;)t*=2;const n=e.Wt;e.Wt=new Uint8Array(t),e.Wt.set(n)}e.Wt.set(t,e.offset),e.offset+=t.length}getData(){return this.offset===this.Wt.length?this.Wt:this.Wt.slice(0,this.offset)}}class Yn extends yn{constructor(t){super(),this.qt=t}async init(){const t=this;t.Zt=0;const e=t.qt=await Promise.all(t.qt.map(ea));t.Vt=e.map(e=>{const r=t.size;return t.size+=e.size,r}),super.init()}Ht(t){const{Vt:e,size:r}=this,n=e[t];return n===F?r:n}async readUint8Array(t,e){const r=this,{qt:n}=this;let a,o=0,s=t;for(;n[o]&&s>=n[o].size;)s-=n[o].size,o++;const i=n[o];if(i){const n=i.size;if(s+e<=n)a=await ra(i,s,e);else{const o=n-s;a=At(await ra(i,s,o),await r.readUint8Array(t+o,e-o))}}else a=j;return r.Zt=Math.max(o,r.Zt),a}}class Xn extends hn{constructor(t,e=4294967295){super();const r=this;let n,a,o;Object.assign(r,{diskNumber:0,diskOffset:0,size:0,maxSize:e,availableSize:e});const s=new WritableStream({async write(e){if(e===wn)return void(o&&await c());const{availableSize:s}=r;if(o)e.length>=s?(await i(e.subarray(0,s)),await c(),e.length>s&&await this.write(e.subarray(s))):await i(e);else{const{value:s,done:i}=await t.next();if(i&&!s)throw new Error(sn);n=s,n.size=0,n.maxSize&&(r.maxSize=n.maxSize),r.availableSize=r.maxSize,await ta(n),a=s.writable,o=a.getWriter(),await this.write(e)}},async close(){o&&(await o.ready,await l())},async abort(t){o&&await o.abort(t)}});async function i(t){const e=t.length;e&&(await o.ready,await o.write(t),n.size+=e,r.availableSize-=e)}async function c(){await l(),r.diskOffset+=n.size,r.diskNumber++,o=null,r.availableSize=r.maxSize}async function l(){await o.close()}Object.defineProperty(r,mn,{get:()=>s})}async closeDisk(){const t=this.writable.getWriter();try{await t.ready,await t.write(wn)}finally{t.releaseLock()}}}class Jn{constructor(t){return Array.isArray(t)&&(t=new Yn(t)),(t instanceof ReadableStream||typeof t.getReader==U)&&(t={readable:Ie(t)}),t}}class Qn{constructor(t){return t.writable===F&&typeof t.next==U&&(t=new Xn(t)),(t instanceof WritableStream||typeof t.getWriter==U)&&(t={writable:je(t)}),t.size===F&&(t.size=0),t}}function $n(t){return Boolean(t&&t.getData)}async function ta(t,e){if(!t.init||t.initialized)return Promise.resolve();await t.init(e)}async function ea(t){return t=new Jn(t),await ta(t),t.size!==F&&t.readUint8Array||(t=new Sn(await Ce(t.readable)),await ta(t)),t}function ra(t,e,r){return t.readUint8Array(e,r)}function na(t,e){return t.createReadable?t.createReadable(e):t.readUint8Array?yn.prototype.createReadable.call(t,e):t.readable}const aa="filename",oa="rawFilename",sa="comment",ia="rawComment",ca="uncompressedSize",la="compressedSize",da="offset",fa="diskNumberStart",ua="lastModDate",pa="rawLastModDate",ma="lastAccessDate",wa="rawLastAccessDate",ha="creationDate",ya="rawCreationDate",ba="internalFileAttributes",ga="externalFileAttributes",xa="msdosAttributesRaw",Ea="msdosAttributes",va="msDosCompatible",Sa="zip64",za="encrypted",ka="version",Aa="versionMadeBy",Ra="zipCrypto",Da="directory",Fa="executable",Oa="compressionMethod",Ta="signature",Ua="extraField",Ia="unixMode",Ca="setuid",ja="setgid",Ma="sticky",Na=[aa,oa,ca,la,ua,pa,sa,ia,ma,wa,ha,ya,da,fa,ba,ga,xa,Ea,va,Sa,za,ka,Aa,Ra,Da,Fa,"symlink",Oa,Ta,"crc32",Ua,"extraFieldUnix","extraFieldInfoZip","extraFieldUnixType1","extraFieldPkwareUnix","uid","gid",Ia,"unixExternalUpper",Ca,ja,Ma,"bitFlag","rawBitFlag","filenameLength","extraFieldLength","filenameUTF8","commentUTF8","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp","extraFieldUSDZ"];class _a{constructor(t){Na.forEach(e=>this[e]=t[e])}}const Ba="File format is not recognized",Pa="End of central directory not found",Wa="End of Zip64 central directory locator not found",La="Central directory header not found",qa="Local file header not found",Za="Zip64 extra field not found",Va="File contains encrypted entry",Ha="Encryption method not supported",Ga="Split zip file",Ka="Overlapping entry found",Ya="Entry data out of bounds",Xa="Ambiguous archive",Ja="Encrypted central directory is not supported",Qa="Unsafe filename",$a="Invalid strictness (must be 'strict', 'balanced' or 'tolerant')",to="Invalid filenameValidation (must be 'strict', 'balanced' or 'tolerant')",eo="Invalid maxAppendedDataSize (must be a number greater than or equal to 0)",ro="64-bit value exceeds Number.MAX_SAFE_INTEGER",no="unsorted central directory",ao="unknown version needed to extract",oo="compressed patched data",so="malformed extra field",io="unknown zip64 extensible data",co="wrapped entries count",lo="appended data",fo="prepended data",uo="prepended central directory",po="trailing central directory data",mo="duplicate filename",wo="mismatched zip64 end of central directory record",ho="mismatched local file header (general purpose bit flag)",yo="mismatched local file header (compression method)",bo="mismatched local file header (crc32 or sizes)",go=/^[a-zA-Z]:/,xo="utf-8",Eo="cp437",vo=[[ca,t],[la,t],[da,t],[fa,e]],So={[e]:{Gt:ss,bytes:4},[t]:{Gt:is,bytes:8}},zo=BigInt(Number.MAX_SAFE_INTEGER);class ko{constructor(t,e={}){Object.assign(this,{reader:new Jn(t),options:e,Kt:new Map})}async*getEntriesGenerator(n={}){const o=this;let{reader:s}=o;if(await ta(s),s.size!==F&&s.readUint8Array||(s=new Sn(await Ce(s.readable)),await ta(s)),s.size<u)throw new Error(Ba);const c=o.warnings=[],w=Lo(n,o.options),h=w==J,y=w!=$,b=Vo(ts(o,n,G),w),g=function(t,e){if(t===F)return e;if(!Wo(t))throw new Error(to);return t}(ts(o,n,"filenameValidation"),w),x=ts(o,n,"normalizeFilename"),{Yt:A,Xt:R}=await Ho(s,y,b);if(!A)throw await async function(t){return await Po(t)==a}(s)?new Error(Ga):new Error(Pa);y&&R>1&&$o("multiple end of central directory records");const D=Dt(A);let O=ss(D,12),T=ss(D,16);const U=A.offset,I=os(D,20),C=U+u+I,M=s.size-C;M>b&&$o(lo),M>0&&Qo(c,lo);let N=os(D,4);const _=s.Zt||0;let B,P,W,L,q,Z=os(D,6),V=os(D,10),H=0,K=m;const Q=T==t||O==t||V==e||Z==e;if(T!=t&&Z!=e&&(T+=Bo(s,Z)),Q){const r=A.offset>=p?await ra(s,A.offset-p,p):j,n=Dt(r);if(r.length==p&&ss(n,0)==d){T=Bo(s,ss(n,4))+is(n,8);let r=await ra(s,T,m),a=Dt(r);const o=A.offset-p-m;if((r.length<m||ss(a,0)!=l)&&T!=o&&o>=0){const t=T;T=o,T>t&&(H=T-t),r=await ra(s,T,m),a=Dt(r)}if(r.length<m||ss(a,0)!=l)throw new Error(Wa);if(W=!0,L=is(a,4)>44,L){const t=Math.min(is(a,4)-44,s.size-T-m);t>0&&(K+=t,q=function(t){const e={rawExtensibleData:t};if(t.length>=28){const r=Dt(t),n=os(r,26);Object.assign(e,{compressionMethod:os(r,0),compressedSize:is(r,2),uncompressedSize:is(r,10),encryptionAlgorithm:os(r,18),bitLength:os(r,20),flags:os(r,22),hashAlgorithm:os(r,24),hashData:t.subarray(28,28+n)})}return e}(await ra(s,T+m,t)))}N==e?N=ss(a,16):N!=ss(a,16)&&Jo(h,c,wo),Z==e?Z=ss(a,20):Z!=ss(a,20)&&Jo(h,c,wo),V==e?V=is(a,32):V!=is(a,32)&&Jo(h,c,wo),O==t?O=is(a,40):O!=is(a,40)&&Jo(h,c,wo),T=Bo(s,Z)+is(a,48)+H}}let tt=O;const et=A.offset-(W?K+p:0);if(T>=s.size&&(H=s.size-T-O-u,T=s.size-O-u),_!=N)throw new Error(Ga);if(T<0)throw new Error(Ba);let rt=0,nt=await ra(s,T,O),at=Dt(nt);if(O){if(nt.length<4)throw new Error(Ba);const t=et-O;if(T!=t&&Z==N){const e=ss(at,rt)==i||Boolean(q&&q.compressedSize)||Fo(at);let r=!e;if(!r&&t>=0&&t+4<=s.size&&(r=ss(Dt(await ra(s,t,4)),0)==i),r){const r=T;T=t,T>r&&(H+=T-r,B=e),nt=await ra(s,T,O),at=Dt(nt)}}}const ot=et-T;if(O!=ot&&ot>=0&&Z==N&&(O=ot,nt=await ra(s,T,O),at=Dt(nt)),T<0||T>=s.size)throw new Error(Ba);o.directoryOffset=T,o.directoryLength=tt;const st=es(o,n,"decryptCentralDirectory");let it,ct;if(st&&V&&nt.length>=4&&ss(at,0)!=i&&(L||Fo(at))){const t=function(t,e,r){const n=t&&t.compressedSize?t.compressedSize:e;return n>0&&n<=r?n:r}(q,tt,nt.length);ct=nt.subarray(t),nt=await st(nt.subarray(0,t),q),at=Dt(nt),tt=nt.length,it=!0}q&&!it&&(nt.length<4||ss(at,0)==i)&&Qo(c,io),P=T;const lt=ts(o,n,"filenameEncoding"),dt=ts(o,n,"commentEncoding"),ft=new Set;let ut,pt=-1;const mt=!h&&!W;!V&&mt&&(V=Oo(at,nt,rt),V&&Qo(c,co));for(let t=0;t<V;t++){const a=new Do(s,o.options);if(rt+f>nt.length||ss(at,rt)!=i){if(0==t&&!it&&(L||Fo(at)))throw new Error(Ja);throw new Error(La)}Uo(a,at,rt+6);const l=Boolean(a.bitFlag.languageEncodingFlag),d=rt+f,u=d+a.filenameLength,p=u+a.extraFieldLength,m=os(at,rt+4),w=!(m>>8),h=m>>8==3,y=nt.subarray(d,u),b=os(at,rt+32),A=p+b,R=nt.subarray(p,A),D=l,O=l,T=ss(at,rt+38),U=T&r,I={readOnly:Boolean(1&U),hidden:Boolean(2&U),system:Boolean(4&U),directory:Boolean(16&U),archive:Boolean(32&U)},C=ss(at,rt+42),j=es(o,n,"decodeText")||en,M=D?xo:lt||Eo,N=O?xo:dt||Eo;let _=j(y,M,Y);if(_===F&&(_=en(y,M)),x){const t=x(_);t!==F&&(_=t)}if(Zo(_,g)){const t=new Error(Qa);throw t.filename=_,t}let B=j(R,N,X);B===F&&(B=en(R,N)),Object.assign(a,{index:t,Jt:it,versionMadeBy:m,msDosCompatible:w,zip64:!1,compressedSize:0,uncompressedSize:0,Qt:b,offset:C,diskNumberStart:os(at,rt+34),internalFileAttributes:os(at,rt+36),externalFileAttributes:T,msdosAttributesRaw:U,msdosAttributes:I,rawFilename:y,filenameUTF8:D,commentUTF8:O,rawExtraField:nt.subarray(u,p),rawComment:R,filename:_,comment:B}),Io(a,a,at,rt+6)&&Qo(c,so,_),a.offset+=H;const W=Bo(s,a.diskNumberStart)+a.offset;P=Math.min(W,P),W<pt&&Qo(c,no,_),pt=W,(a.version&r)>63&&Qo(c,ao,_),32&~a.rawBitFlag||Qo(c,oo,_),ft.has(a.filename)&&(ut=!0),ft.add(a.filename);const q=a.externalFileAttributes>>16&e;a.unixMode===F&&16877&q&&(a.unixMode=q);const Z=Boolean(a.unixMode&S),G=Boolean(a.unixMode&z),K=Boolean(512&a.unixMode),J=40960==((a.unixMode===F?q:a.unixMode)&E),Q=!J&&(a.unixMode!==F?!!(73&a.unixMode):h&&!!(73&q)),$=a.unixMode!==F&&(a.unixMode&E)==v,tt=(q&E)==v;Object.assign(a,{setuid:Z,setgid:G,sticky:K,symlink:J,unixExternalUpper:q,executable:Q,directory:$||tt||w&&I.directory||a.filename.endsWith(k),zipCrypto:a.encrypted&&!a.extraFieldAES});const et=new _a(a);if(et.getData=(t,e)=>a.getData(t,et,o.Kt,e),et.arrayBuffer=async t=>{const e=new TransformStream,r=Ce(e.readable).then(t=>t.arrayBuffer());return r.catch(()=>{}),await a.getData(e,et,o.Kt,t),r},rt=A,t==V-1&&mt){const t=Oo(at,nt,rt);t&&(V+=t,Qo(c,co))}const{onprogress:ot}=n;if(ot)try{await ot(t+1,V,new _a(a))}catch{}yield et}let wt=rt,ht=To(nt.subarray(rt))||(it?To(ct):F);if(!ht&&!it){const t=T+rt,e=Math.min(et-t,65541);e>=6&&(ht=To(await ra(s,t,e)))}ht&&(o.digitalSignature=ht,wt=rt+6+ht.length),(rt!=tt&&wt!=tt||!it&&rt!=O&&wt!=O)&&Jo(h,c,po),ut&&Jo(h,c,mo);const yt=ts(o,n,"extractPrependedData"),bt=ts(o,n,"extractAppendedData"),gt=(h||yt)&&V&&4==P&&await async function(t){const e=await Po(t);return e==a||808471376==e}(s)?4:0;return h&&(H||V&&P>gt)&&$o(fo),(H||V&&P>4)&&Qo(c,fo),B&&Qo(c,uo),yt&&(o.prependedData=P>gt?await ra(s,gt,P-gt):j),o.comment=I?await ra(s,U+u,I):j,bt&&(o.appendedData=C<s.size?await ra(s,C,s.size-C):j),!0}async getEntries(t={}){const e=[];for await(const r of this.getEntriesGenerator(t))e.push(r);return e}async close(){const{reader:t}=this;t.readUint8Array||!t.readable||t.readable.locked||await t.readable.cancel()}}class Ao{constructor(t={}){const{readable:e,writable:r}=new TransformStream,n=new ko(e,t).getEntriesGenerator();this.readable=new ReadableStream({async pull(t){const{done:e,value:r}=await n.next();if(e)return t.close();const a={...r,readable:function(){const{readable:t,writable:e}=new TransformStream;if(r.getData)return async function(){try{await r.getData(e)}catch(t){try{await e.abort(t)}catch{}}}(),t}()};delete a.getData,t.enqueue(a)}}),this.writable=r}}async function Ro(t,e={}){if(t=new Jn(t),await ta(t),t.size!==F&&t.readUint8Array||(t=new Sn(await Ce(t.readable)),await ta(t)),t.size<u)return!1;const r=Lo(e,{}),n=r!=$,a=Vo(e[G],r),{Yt:o,Xt:s}=await Ho(t,n,a);if(!o||r==J&&s>1)return!1;const i=os(Dt(o),20),c=o.offset+u+i;return t.size-c<=a}let Do=class{constructor(t,e){Object.assign(this,{reader:t,options:e})}async getData(t,e,a,s={}){const i=this,c=yt(),{reader:l,index:d,offset:f,diskNumberStart:u,extraFieldAES:p,extraFieldZip64:m,compressionMethod:w,bitFlag:h,rawBitFlag:y,crc32:b,rawLastModDate:g,uncompressedSize:x,compressedSize:E}=i,{dataDescriptor:v}=h,S=e.localDirectory={},z=e.warnings=[],k=Bo(l,u)+f,R=await ra(l,k,A),D=Dt(R);let O=ts(i,s,M),T=ts(i,s,N);const U=ts(i,s,_);if(ot(O,T),O=O&&O.length&&O,T=T&&T.length&&T,p&&99!=p.originalCompressionMethod)throw new Error(Be);if(R.length<A||ss(D,0)!=n)throw new Error(qa);Uo(S,D,4);const{extraFieldLength:I,filenameLength:C}=S,Z=S.dataOffset=k+A+C+I,V=ts(i,s,"checkLocalDirectory"),H=Lo(s,i.options),G=function(t,e){return t===F?e!=$:Boolean(t)}(V,H),K=function(t,e){return t===F?e==J:Boolean(t)}(V,H);let Y=j;if(K&&(C||I)){const t=await ra(l,k+A,C+I);Y=t.subarray(0,C),S.rawExtraField=t.subarray(C)}else S.rawExtraField=I?await ra(l,k+A+C,I):j;K&&(S.rawFilename=Y),Io(i,S,D,4,!0)&&Qo(z,so),function(t,e,r,n,a){const{rawFilename:o}=t,s=!a,i=t.Jt&&!(8192&~e.rawBitFlag);!n||i||r.length==o.length&&!r.some((t,e)=>t!=o[e])||Jo(s,a,"mismatched local file header (filename)"),(2057&e.rawBitFlag)!=(2057&t.rawBitFlag)&&Jo(s,a,ho),e.compressionMethod!=t.compressionMethod&&Jo(s,a,yo),e.bitFlag.dataDescriptor||i||!(e.crc32||e.compressedSize||e.uncompressedSize)||e.crc32==t.crc32&&e.compressedSize==t.compressedSize&&e.uncompressedSize==t.uncompressedSize||Jo(s,a,bo)}(i,S,Y,K,G?F:z);const{lastAccessDate:X,creationDate:Q,uid:tt,gid:et}=S;X&&(e.lastAccessDate=X),Q&&(e.creationDate=Q),tt!==F&&e.uid===F&&(e.uid=tt),et!==F&&e.gid===F&&(e.gid=et);const rt=i.encrypted&&S.encrypted&&!U,nt=rt&&!p;if(U||(e.zipCrypto=nt),rt&&!(64&~S.rawBitFlag))throw new Error(Ha);const st=U?F:Ve(w);if(0!=w&&8!=w&&9!=w&&!st&&!U)throw new Error(Be);if(rt){if(!nt&&(p.strength<1||p.strength>3))throw new Error(Ha);if(!O&&!T)throw new Error(Va)}if(Z+E>l.size)throw new Error(Ya);const it=E,ct=Ie(l.createReadable({offset:Z,size:it})),lt=at(ts(i,s,B)),dt=ts(i,s,"checkPasswordOnly");let ft=ts(i,s,"checkOverlappingEntry");const ut=ts(i,s,"checkOverlappingEntryOnly");ut&&(ft=!0);const{onstart:pt,onprogress:mt,onend:wt}=s,ht=0!=w&&!U,bt=U?E:x,gt=9==w;let xt=ts(i,s,W);gt&&(xt=!1);const Et=ts(i,s,"checkCrc32"),vt=(Et===F?ts(i,s,"checkSignature"):Et)&&!U&&(!rt||nt||p&&1==p.vendorVersion),St={options:{codecType:wr,password:O,rawPassword:T,zipCrypto:nt,encryptionStrength:p&&p.strength,checkCrc32:vt,checkAuthenticationCode:ts(i,s,"checkAuthenticationCode"),passwordVerification:nt&&(v?g>>>8&r:b>>>24&r),outputSize:bt,crc32:b,compressed:ht,encrypted:rt,useWebWorkers:ts(i,s,P),useCompressionStream:xt,transferStreams:ts(i,s,L),deflate64:gt,format:st?st.format:F,codecURI:st?st.codecURI:F,compressionMethod:w,rawBitFlag:y,checkPasswordOnly:dt},config:c,ut:{signal:lt,size:it,onstart:pt,onprogress:mt,onend:wt}};let zt,kt;ft&&await async function({reader:t,$t:e,index:r,offset:n,crc32:a,compressedSize:s,uncompressedSize:i,dataOffset:c,dataDescriptor:l,extraFieldZip64:d,Kt:f}){let u=0;if(l&&(u=d?20:12),u){const r=await ra(t,c+s,u+4),n=Dt(r);let l=r.length==u+4&&ss(n,0)==o;if(l){const t=_o(n,4,d);(e.encrypted&&!e.zipCrypto||t.crc32==a)&&t.compressedSize==s&&t.uncompressedSize==i?u+=4:l=!1}if(r.length>=u){const t=_o(n,l?4:0,d);t.signature=l,e.localDirectory.dataDescriptor=t}}const p={start:n,end:c+s+u,$t:e};for(const[t,e]of f)if(t!=r&&p.start<e.end&&e.start<p.end){const t=new Error(Ka);throw t.overlappingEntry=e.$t,t}f.set(r,p)}({reader:l,$t:e,index:d,offset:k,crc32:b,compressedSize:E,uncompressedSize:x,dataOffset:Z,dataDescriptor:v||S.bitFlag.dataDescriptor,extraFieldZip64:m||S.extraFieldZip64,Kt:a});try{if(!ut){dt&&(t=new WritableStream),t=new Qn(t),await ta(t,function(t,e,r){return Math.min(t,r?1032*e:e)}(bt,E,ht)),({writable:zt}=t);const{outputSize:e}=await Kr({readable:ct,writable:zt},St);if(t.size+=e,e!=bt)throw new Error(Ye)}}catch(e){if(e.outputSize!==F&&(t.size+=e.outputSize),!dt||e.message!=Kt)throw kt=e,e}finally{if(($n(t)||!ts(i,s,q))&&zt&&!zt.locked){const t=zt.getWriter();if(kt)try{await t.abort(kt)}catch{}else await t.close()}}return dt||ut?F:t.getData?t.getData():zt}};function Fo(t){const e=Math.min(t.byteLength,1024)-3;for(let r=0;r<e;r++)if(134630224==ss(t,r))return!0;return!1}function Oo(t,e,r){let n=0;for(;r+f<=e.length&&ss(t,r)==i;)r+=f+os(t,r+28)+os(t,r+30)+os(t,r+32),n++;return n%65536?0:n}function To(t){if(t.length>=6){const e=Dt(t);if(ss(e,0)==s){const r=os(e,4);if(6+r<=t.length)return t.subarray(6,6+r)}}}function Uo(t,e,r){const n=t.rawBitFlag=os(e,r+2),a=!(1&~n),o=ss(e,r+6);Object.assign(t,{encrypted:a,version:os(e,r),bitFlag:{level:(6&n)>>1,dataDescriptor:!(8&~n),languageEncodingFlag:(n&x)==x},rawLastModDate:o,lastModDate:rs(o),filenameLength:os(e,r+22),extraFieldLength:os(e,r+24)})}function Io(t,e,r,n,a){const{rawExtraField:o}=e,s=e.extraField=new Map,i=Dt(o);let c=0,l=!1;try{for(;c<o.length;){const t=os(i,c),e=os(i,c+2);s.set(t,{type:t,data:o.slice(c+4,c+4+e)}),c+=4+e}}catch{l=!0}c>o.length&&(l=!0);const d=os(r,n+4);Object.assign(e,{signature:ss(r,n+10),crc32:ss(r,n+10),compressedSize:ss(r,n+14),uncompressedSize:ss(r,n+18)});const f=s.get(1);f&&(function(t,e){e.zip64=!0;const r=Dt(t.data),n=vo.filter(([t,r])=>e[t]==r),a=n.reduce((t,[,e])=>t+So[e].bytes,0);if(t.data.length<a)throw new Error(Za);for(let a=0,o=0;a<n.length;a++){const[s,i]=n[a],c=So[i];e[s]=t[s]=c.Gt(r,o),o+=c.bytes}}(f,e),e.extraFieldZip64=f);const u=s.get(28789);u&&(Co(u,aa,oa,e,t),e.extraFieldUnicodePath=u);const p=s.get(25461);p&&(Co(p,sa,ia,e,t),e.extraFieldUnicodeComment=p);const m=s.get(w);m&&m.data.length>=7?(function(t,e,r){const n=Dt(t.data),a=as(n,4);Object.assign(t,{vendorVersion:as(n,0),vendorId:as(n,2),strength:a,originalCompressionMethod:r,compressionMethod:os(n,5)}),e.compressionMethod=t.compressionMethod,1!=t.vendorVersion&&(e.crc32=F)}(m,e,d),e.extraFieldAES=m):e.compressionMethod=d;const x=s.get(13);x&&(jo(x,e),e.extraFieldPkwareUnix=x);const E=s.get(22613);E&&(jo(E,e),e.extraFieldUnixType1=E);const v=s.get(10);v&&(function(t,e){const r=Dt(t.data);let n,a=4;try{for(;a<t.data.length&&!n;){const e=os(r,a),o=os(r,a+2);1==e&&(n=t.data.slice(a+4,a+4+o)),a+=4+o}}catch{}if(n&&24==n.length){const r=Dt(n),a=r.getBigUint64(0,!0),o=r.getBigUint64(8,!0),s=r.getBigUint64(16,!0);Object.assign(t,{rawLastModDate:a,rawLastAccessDate:o,rawCreationDate:s});const i={lastModDate:ns(a),lastAccessDate:ns(o),creationDate:ns(s)};Object.assign(t,i),Object.assign(e,i,{rawLastAccessDate:o,rawCreationDate:s})}}(v,e),e.extraFieldNTFS=v);const S=s.get(g);let z;if(S&&(z=Mo(S,e,!1),e.extraFieldUnix=S),!z){const t=s.get(b);t&&(Mo(t,e,!0),e.extraFieldInfoZip=t)}const k=s.get(h);k&&(function(t,e,r){if(!t.data.length)return;const n=Dt(t.data),a=as(n,0),o=[],s=[];r?(1&~a||(o.push(ua),s.push(pa)),2&~a||(o.push(ma),s.push(wa)),4&~a||(o.push(ha),s.push(ya))):t.data.length>=5&&(o.push(ua),s.push(pa));let i=1;o.forEach((r,a)=>{if(t.data.length>=i+4){const o=ss(n,i);e[r]=t[r]=new Date(1e3*(0|o));const c=s[a];t[c]=o}i+=4})}(k,e,a),e.extraFieldExtendedTimestamp=k);const A=s.get(y);return A&&(e.extraFieldUSDZ=A),l}function Co(t,e,r,n,a){if(t.data.length<5)return void(t.valid=!1);const o=Dt(t.data),s=new _t;s.append(a[r]);const i=Dt(new Uint8Array(4));i.setUint32(0,s.get(),!0);const c=ss(o,1),l=as(o,0);Object.assign(t,{version:l,[e]:en(t.data.subarray(5)),valid:1==l&&!a.bitFlag.languageEncodingFlag&&c==ss(i,0)}),t.valid&&(n[e]=t[e],n[e+"UTF8"]=!0)}function jo(t,e){if(t.data.length<8)return;const r=Dt(t.data),n={lastAccessDate:new Date(1e3*(0|ss(r,0))),lastModDate:new Date(1e3*(0|ss(r,4)))};t.data.length>=12&&(n.uid=os(r,8),n.gid=os(r,10)),Object.assign(t,n),Object.assign(e,n)}function Mo(t,e,r){try{const n=Dt(t.data);let a,o;if(r){let e=0;const r=as(n,e++),s=as(n,e++);a=No(t.data.subarray(e,e+s)),e+=s;const i=as(n,e++);o=No(t.data.subarray(e,e+i)),Object.assign(t,{version:r,uid:a,gid:o})}else t.data.length>=4&&(a=os(n,0),o=os(n,2),Object.assign(t,{uid:a,gid:o}));return a!==F&&(e.uid=a),o!==F&&(e.gid=o),a!==F||o!==F}catch{}}function No(t){const e=new Uint8Array(4);return e.set(t,0),new DataView(e.buffer,e.byteOffset,4).getUint32(0,!0)}function _o(t,e,r){const n=ss(t,e);let a,o;return r?(a=is(t,e+4),o=is(t,e+12)):(a=ss(t,e+4),o=ss(t,e+8)),{crc32:n,compressedSize:a,uncompressedSize:o}}function Bo(t,e){return t.Ht?t.Ht(e):0}async function Po(t){return ss(Dt(await ra(t,0,4)))}function Wo(t){return t===J||t===Q||t===$}function Lo(t,e){return qo(t,qo(e,Q))}function qo(t,e){const r=t.strictness;if(r!==F){if(!Wo(r))throw new Error($a);return r}const n=t.checkAmbiguity;return n===F?e:n?J:e==$?$:Q}function Zo(t,e){if(e==$)return!1;const r=t.split("/");return r.length>1&&""===r[r.length-1]&&r.pop(),!!(r.includes("..")||t.startsWith("/")||t.startsWith("\\\\")||go.test(t))||e==J&&(r.includes(".")||r.includes(""))}function Vo(t,r){if(t!==F){const e=ct(t);if("number"!=typeof e||Number.isNaN(e)||e<0)throw new Error(eo);return e}return r==J?0:r==$?1/0:e}async function Ho(t,e,r){const{size:n}=t,a=Math.min(n,65557),o={count:64};let s,i,c=0;for await(const[r,l,d,f,p]of Go(t,a)){const a=os(r,f+20);if(p+u+a==n){const a=await Yo(t,r,l,f,p,n,o);if(2==a){if(s||(s=Ko(d,f,p)),c++,!e||c>1)break}else 1!=a||i||(i=Ko(d,f,p))}}return s||(s=i),s||(s=await async function(t,e,r){const{size:n}=t,a=Math.min(n,e==1/0?n:65557+e);let o,s;for await(const[e,i,c,l,d]of Go(t,a)){const a=Ko(c,l,d);o||(o=a);const f=await Yo(t,e,i,l,d,n,r);if(2==f)return a;1!=f||s||(s=a)}return s||o}(t,r,o)),{Yt:s,Xt:c}}async function*Go(t,e){const r=t.size-e,n=await ra(t,r,e),a=Dt(n);for(let t=n.length-u;t>=0;t--)ss(a,t)==c&&(yield[a,r,n,t,r+t])}function Ko(t,e,r){return{offset:r,buffer:t.slice(e,e+u).buffer}}async function Yo(r,n,a,o,s,c,l){const f=os(n,o+10),u=ss(n,o+12),m=ss(n,o+16);if(f==e||u==t||m==t)return await Xo(r,n,a,s-p,c,l)==d?2:0;if(!f&&!u)return 1;const w=os(n,o+6);for(const t of[s-u,Bo(r,w)+m])if(await Xo(r,n,a,t,c,l)==i)return 2;return 0}async function Xo(t,e,r,n,a,o){return n<0||n+4>a?F:n>=r?ss(e,n-r):o.count>0?(o.count--,ss(Dt(await ra(t,n,4)),0)):F}function Jo(t,e,r){t?$o(r):Qo(e,r)}function Qo(t,e,r){if(!t.some(t=>t.reason==e)){const n={reason:e};r!==F&&(n.filename=r),t.push(n)}}function $o(t){const e=new Error(Xa);throw e.reason=t,e}function ts(t,e,r){return e[r]===F?t.options[r]:e[r]}function es(t,e,r){return nt(ts(t,e,r))}function rs(t){const r=(4294901760&t)>>16,n=t&e,a=new Date(1980+((65024&r)>>9),((480&r)>>5)-1,31&r,(63488&n)>>11,(2016&n)>>5,2*(31&n),0);return a<D?D:a}function ns(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function as(t,e){return t.getUint8(e)}function os(t,e){return t.getUint16(e,!0)}function ss(t,e){return t.getUint32(e,!0)}function is(t,e){const r=t.getBigUint64(e,!0);if(r>zo)throw new Error(ro);return Number(r)}var cs=Object.freeze({__proto__:null,ERR_AMBIGUOUS_ARCHIVE:Xa,ERR_BAD_FORMAT:Ba,ERR_CENTRAL_DIRECTORY_NOT_FOUND:La,ERR_ENCRYPTED:Va,ERR_ENCRYPTED_CENTRAL_DIRECTORY:Ja,ERR_ENTRY_DATA_OUT_OF_BOUNDS:Ya,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:Wa,ERR_EOCDR_NOT_FOUND:Pa,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:Za,ERR_INVALID_AUTHENTICATION_CODE:Gt,ERR_INVALID_COMPRESSED_DATA:Xe,ERR_INVALID_CRC32:Je,ERR_INVALID_FILENAME_VALIDATION:to,ERR_INVALID_MAX_APPENDED_DATA_SIZE:eo,ERR_INVALID_PASSWORD:Ht,ERR_INVALID_STRICTNESS:$a,ERR_INVALID_UNCOMPRESSED_SIZE:Ye,ERR_LOCAL_FILE_HEADER_NOT_FOUND:qa,ERR_OVERLAPPING_ENTRY:Ka,ERR_SPLIT_ZIP_FILE:Ga,ERR_UNSAFE_FILENAME:Qa,ERR_UNSUPPORTED_COMPRESSION:Be,ERR_UNSUPPORTED_ENCRYPTION:Ha,ERR_UNSUPPORTED_UINT64:ro,ERR_WORKER_STARTUP_TIMEOUT:br,WARNING_APPENDED_DATA:lo,WARNING_COMPRESSED_PATCHED_DATA:oo,WARNING_DUPLICATE_FILENAME:mo,WARNING_MALFORMED_EXTRA_FIELD:so,WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG:ho,WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD:yo,WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES:bo,WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY:wo,WARNING_PREPENDED_CENTRAL_DIRECTORY:uo,WARNING_PREPENDED_DATA:fo,WARNING_TRAILING_CENTRAL_DIRECTORY_DATA:po,WARNING_UNKNOWN_VERSION:ao,WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA:io,WARNING_UNSORTED_CENTRAL_DIRECTORY:no,WARNING_WRAPPED_ENTRIES_COUNT:co,ZipReader:ko,ZipReaderStream:Ao,isZipFile:Ro});const ls="File already exists",ds="Zip file comment exceeds 64KB",fs="Invalid zip file comment (must be a Uint8Array)",us="File entry comment exceeds 64KB",ps="Invalid file entry comment (must be a string)",ms="Invalid date (must be a valid Date instance)",ws="File entry name exceeds 64KB",hs="Version exceeds 65535",ys="The strength must equal 1, 2, or 3",bs="Encryption is not supported in USDZ files",gs="Encryption is not supported when the 'passThrough' option is set",xs="Invalid extra field (must be a Map)",Es="Invalid extra field type (must be integer 0..65535)",vs="Invalid extra field data (must be a Uint8Array)",Ss="Extra field data exceeds 64KB",zs=-2147483648,ks=2147483647,As=BigInt(0),Rs=BigInt("0x7fffffffffffffff"),Ds="Zip64 is not supported (set the 'zip64' option to 'true')",Fs="Undefined uncompressed size",Os="Undefined compression method",Ts="Undetermined size",Us="Undefined reader",Is="Zip file not empty",Cs="Invalid uid (must be integer 0..2^32-1)",js="Invalid gid (must be integer 0..2^32-1)",Ms="Invalid UNIX mode (must be integer 0..65535)",Ns="Invalid unixExtraFieldType (must be 'infozip' or 'unix')",_s="uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)",Bs="Invalid msdosAttributesRaw (must be integer 0..255)",Ps="Invalid msdosAttributes (must be an object with boolean flags)",Ws="Invalid level (must be integer 0..9)",Ls="Signature data exceeds 64KB",qs=new Uint8Array([7,0,2,0,65,69,3,0,0]),Zs="infozip",Vs="unix";let Hs=0;const Gs=[];class Ks{constructor(t,e={}){t=new Qn(t);const{availableSize:r=O,maxSize:n=O}=t,a=r>0&&r!==O&&n>0&&n!==O;Object.assign(this,{writer:t,te:a,options:e,ee:new Map,re:new Set,offset:e[V]===F?t.size||t.writable.size||0:e[V],ne:e[V]===F?0:e[V]-(t.size||t.writable.size||0),ae:new Set,oe:[],se:0,ie:F})}prependZip(t){return Js(this,async function(t,e){if(t.re.size)throw new Error(Is);await t.ce(e)}(this,t))}appendZip(t){return Js(this,this.ce(t))}async ce(t){const e=this,{ae:r,re:n,ee:o}=e;for(;r.size;)await Promise.allSettled(Array.from(r));let s;const i=new Promise(t=>s=t);r.add(i);const c=[];let l;try{t=new Jn(t),await ta(t),t.size!==F&&t.readUint8Array||(t=new Sn(await Ce(t.readable)),await ta(t));const{ZipReader:r}=await Promise.resolve().then(function(){return cs}),s=new r(t),i=await s.getEntries();await s.close(),await ta(e.writer);const{directoryOffset:d}=s;i.forEach(({filename:t})=>{if(n.has(t))throw new Error(ls);n.add(t),c.push(t)}),e.le=!0;const{de:f}=e;e.de=new Promise(t=>l=()=>{e.le=!1,t()}),await f,e.te&&(delete e.te,await async function(t){return Dt(await ra(t,0,4)).getUint32(0,!0)==a}(t)||(await xi(e.writer,bi()),e.offset+=4));const u=await async function(t,e,r,n){const{writer:a}=t,o=new Map;if(a.closeDisk){const s=Array.from(r).sort((t,r)=>yi(e,t)-yi(e,r));let i=0;for(const r of s){const n=yi(e,r);await wi(t,e,i,n-i),ui(a,await hi(e,n))&&await a.closeDisk(),o.set(r,{offset:pi(t,a),diskNumberStart:di(a)}),i=n}await wi(t,e,i,n-i)}else{const a=t.offset;await wi(t,e,0,n),r.forEach(t=>o.set(t,{offset:a+yi(e,t),diskNumberStart:0}))}return o}(e,t,i,d);i.forEach(t=>{const{version:e,rawLastModDate:r,rawFilename:n,bitFlag:a,encrypted:s,uncompressedSize:i,compressedSize:c,extraFieldZip64:l}=t;let{compressionMethod:d,rawExtraField:f}=t;const{level:p,languageEncodingFlag:m,dataDescriptor:w}=a;f=mi(f||j),t.extraFieldAES&&(d=99);const h=Ni(f),y=Boolean(l)&&l.uncompressedSize!==F,b=Boolean(l)&&l.compressedSize!==F,g=-7&Bi(p,m,w,s,d)|p<<1,{fe:x,ue:E}=_i({version:e,bitFlag:g,compressionMethod:d,uncompressedSize:i,compressedSize:c,rawLastModDate:r,rawFilename:n,pe:b,me:y,extraFieldLength:h}),{crc32:v}=t;v!==F&&Ci(E,10,v);const{offset:S,diskNumberStart:z}=u.get(t);Object.assign(t,{me:y,pe:b,offset:S,diskNumberStart:z,we:!1,he:j,ye:j,be:j,ge:j,xe:j,rawExtraField:f,Ee:j,extendedTimestamp:!1,fe:x,ue:E}),o.set(t.filename,t)})}catch(t){throw c.forEach(t=>n.delete(t)),t}finally{s(),r.delete(i),l&&l()}}add(e="",n,a={}){const o=this,{ae:s}=o,i=async function(e,n,a,o){if(Ai(e,o=Object.assign({},o),Da)&&!n.endsWith(k)&&(n+=k),e.re.has(n))throw new Error(ls);e.re.add(n),Hs<yt().maxWorkers?Hs++:await new Promise(t=>Gs.push(t));try{return await async function(e,n,a,o){const s=ti(e,n,o);({name:n}=s);const i=ei(e,n,o),{comment:c}=i,l=o[Ua];e.ee.set(n,F);const d=e.ie,f={};let u,p;i.ve.keepOrder&&(f.Se=new Promise(t=>u=t)),e.ie=f;try{const{ve:c}=i;0==c.level||c.compressionMethod!==F||c.passThrough||await Sr(yt())||(c.level=0);const l=await async function(t,e,{ve:r},n){if(r.passThrough&&!e&&!Ai(t,n,Da))throw new Error(Us);let a;return e&&(e=new Jn(e),await ta(e),({size:a}=e)),Object.assign({reader:e},ni(t,Boolean(e),a,r,n))}(e,a,i,o);({reader:a}=l);const m=fi(e.writer),w=di(e.writer),h=ai(o=Object.assign({},o,s.ve,i.ve,l.ve,{signature:o[Ta],crc32:o.crc32===F?o[Ta]:o.crc32,offset:e.offset-m,diskNumberStart:w,[H]:e.options[H]})),y=ii(o),b=Ni(h.ze,y.ke);p=await async function(e,n,a,o,s){const{ee:i,writer:c}=e,{keepOrder:l,dataDescriptor:d,Ae:f,signal:u}=s,{Re:p,$t:m,De:w,Fe:h}=o,y=e.options[H];let b,g,x,E,v,S,z=m,k=0;const R=l&&w?w.Se:F;i.set(n,z);try{s.bufferedWrite||!l||e.le||e.se||!d&&!f?(b=!0,e.se++,S=s.createTempStream?await s.createTempStream():new TransformStream(F,F,{highWaterMark:O}),S.size=0,await ta(c)):(S=c,await R,await D()),await ta(S);const m=fi(c);e.te&&!b&&await gi(e,c),y&&!b&&oi(o,e.offset-m);const{ze:w}=p;b||await T();const h=di(c),g=pi(e,c);if(z.diskNumberStart=h,b||(E=!0,v=c.size,await xi(S,w)),z=await async function(e,n,{diskNumberStart:a,Se:o},s,i,c){const{Re:l,Oe:d,Te:f}=s,{fe:u,ue:p,lastModDate:m,rawLastModDate:w,encrypted:h,compressed:y,version:b,compressionMethod:g,he:x,Ue:E,be:v,Ie:S,ge:z,xe:k,ye:A}=l,{ke:R}=d,{rawFilename:D,lastAccessDate:O,creationDate:T,password:U,rawPassword:I,level:C,zip64:j,me:M,pe:N,zipCrypto:_,dataDescriptor:B,directory:P,executable:W,versionMadeBy:L,rawComment:q,rawExtraField:Z,Ee:V,useWebWorkers:H,transferStreams:G,onstart:K,onprogress:Y,onend:X,signal:J,encryptionStrength:Q,extendedTimestamp:$,msDosCompatible:tt,internalFileAttributes:et,externalFileAttributes:rt,uid:nt,gid:at,unixMode:ot,symlink:st,setuid:it,setgid:ct,sticky:lt,unixExternalUpper:dt,msdosAttributesRaw:ft,msdosAttributes:ut,useCompressionStream:pt,passThrough:mt,format:wt,codecURI:ht}=c,yt={Se:o,versionMadeBy:L,zip64:j,directory:Boolean(P),executable:Boolean(W),filenameUTF8:!0,rawFilename:D,commentUTF8:!0,rawComment:q,he:x,Ue:E,be:v,ge:z,xe:k,ye:A,rawExtraField:Z,Ee:V,extendedTimestamp:$,msDosCompatible:tt,internalFileAttributes:et,externalFileAttributes:rt,diskNumberStart:a,uid:nt,gid:at,unixMode:ot,symlink:Boolean(st),setuid:it,setgid:ct,sticky:lt,unixExternalUpper:dt,msdosAttributesRaw:ft,msdosAttributes:ut};let{crc32:bt,uncompressedSize:gt}=c,xt=0;mt||(gt=0);const{writable:Et}=n;if(e){const a=Ie(na(e)),o=e.size,s={options:{codecType:mr,inputSize:o,level:C,rawPassword:I,password:U,encryptionStrength:Q,zipCrypto:h&&_,passwordVerification:h&&_&&w>>8&r,computeCrc32:!mt,compressed:y&&!mt,encrypted:h&&!mt,useWebWorkers:H,useCompressionStream:pt,transferStreams:G,format:wt,codecURI:ht,compressionMethod:g},config:i,ut:{signal:J,size:o,onstart:K,onprogress:Y,onend:X}};try{const e=await Kr({readable:a,writable:Et},s);if(xt=e.outputSize,n.size+=xt,mt||(gt=e.inputSize,h&&!_||(bt=e.crc32)),!N&&xt>=t||!M&&gt>=t)throw new Error(Ds)}catch(t){throw t.outputSize!==F&&(n.size+=t.outputSize),t}}return function({crc32:t,compressedSize:e,uncompressedSize:r,Re:n,Oe:a},{zip64:o,zipCrypto:s,passThrough:i,dataDescriptor:c}){const{ue:l,encrypted:d}=n,{Ce:f,je:u}=a;d&&!s&&!i||t===F||(Ci(l,10,t),c&&Ci(f,u,t)),o?c&&(ji(f,u+4,BigInt(e)),ji(f,u+12,BigInt(r))):(Ci(l,14,e),Ci(l,18,r),c&&(Ci(f,u+4,e),Ci(f,u+8,r)))}({crc32:bt,compressedSize:xt,uncompressedSize:gt,Re:l,Oe:d},c),B&&await xi(n,R),Object.assign(yt,{uncompressedSize:gt,compressedSize:xt,lastModDate:m,rawLastModDate:w,creationDate:T,lastAccessDate:O,encrypted:Boolean(h),zipCrypto:Boolean(_),size:f+xt,compressionMethod:g,version:b,fe:u,ue:p,signature:bt,crc32:!h||_||mt?bt:F,Ie:S,me:M,pe:N}),yt}(a,S,z,o,yt(),s),b||(E=!1),i.set(n,z),z.filename=n,b){if(await Promise.all([S.writable.getWriter().close(),R]),await D(),e.te&&await gi(e,c),x=!0,v=c.size,await T(),z.diskNumberStart=di(c),z.offset=pi(e,c),y){const t=o.Te;oi(o,e.offset-fi(c)),z.size+=o.Te-t}!function({rawFilename:t,encrypted:e,zip64:r,Ue:n,crc32:a,compressedSize:o,uncompressedSize:s,me:i,pe:c},l,{dataDescriptor:d,passThrough:f}){if(d||((!e||f&&a!==F)&&Ci(l,14,a),c||Ci(l,18,o),i||Ci(l,22,s)),r&&n){const e=A+Ni(t)+4;ji(l,e,BigInt(s)),ji(l,e+8,BigInt(o))}}(z,p.Me,s),await xi(c,p.ze),await Ei(S.readable,c,u,t=>k+=t),c.size+=S.size,x=!1}else z.diskNumberStart=h,z.offset=g;return e.offset+=z.size,z}catch(t){if(x||E){if(e.hasCorruptedEntries=!0,t)try{t.corruptedEntry=!0}catch{}e.offset+=c.size-v,b&&(e.offset+=k)}throw i.delete(n),t}finally{if(b&&e.se--,h&&h(R),g&&g(),b&&S&&S.dispose)try{await S.dispose()}catch{}}async function D(){e.le=!0;const{de:t}=e;e.de=new Promise(t=>g=()=>{e.le=!1,t()}),await t}async function T(){ui(c,Ni(p.ze))&&await c.closeDisk()}}(e,n,a,{Re:h,Oe:y,Te:b,$t:f,De:d,Fe:u},o)}catch(t){throw e.ee.delete(n),t}finally{u&&u(d&&d.Se)}return Object.assign(p,{name:n,comment:c,extraField:l}),new _a(p)}(e,n,a,o)}catch(t){throw e.re.delete(n),t}finally{const t=Gs.shift();t?t():Hs--}}(o,e,n,a);s.add(i);const c=()=>s.delete(i);return Promise.prototype.then.call(i,c,c),Js(o,i)}remove(t){const{re:e,ee:r}=this;if(typeof t==C&&(t=r.get(t)),t&&t.filename!==F){const{filename:n}=t;if(e.has(n)&&r.has(n))return e.delete(n),r.delete(n),!0}return!1}async close(r=j,n={}){const a=this,{ae:o,writer:p}=this,{writable:m}=p;if(!(r instanceof Uint8Array))throw new Error(fs);if(Ni(r)>e)throw new Error(ds);for(;o.size;)await Promise.allSettled(Array.from(o));await Promise.allSettled(a.oe.map(t=>t.Ne));const w=a.oe.filter(t=>t.error&&!t._e);if(w.length){const t=w.map(t=>t.error);w.forEach(t=>t._e=!0);const[e]=t;try{e.entryErrors=t}catch{}throw e}return await async function(r,n,a){const o=ci(r.ee),{Be:p,Pe:m,We:w}=await async function(r,n,a){const{ee:o,writer:s}=r,c=new Uint8Array(n);await ta(s);let l=0,d=0,u=di(s),p=fi(s),m=0;for(const[r,n]of Array.from(o.values()).entries()){const{offset:w,rawFilename:h,he:y,ye:b,be:g,ge:x,xe:E,rawExtraField:v,Ee:S,rawComment:z,versionMadeBy:k,fe:A,ue:R,me:D,pe:F,we:O,Le:T,internalFileAttributes:U,externalFileAttributes:I,diskNumberStart:C,uncompressedSize:j,compressedSize:M}=n,N=Ni(y,b,g,x,E,v,S),_=f+Ni(h,z)+N;ui(s,l+_-d)&&(await xi(s,c.slice(d,l)),d=l,m=0,await s.closeDisk()),0==r&&(u=di(s),p=fi(s)),D||Ci(R,18,j),F||Ci(R,14,M),(T||O)&&n.version<45&&Ii(R,0,45);const B=li(_);if(B.qe(i),B.Ze(k),B.Ve(A.subarray(0,24)),B.Ze(N),B.Ze(Ni(z)),B.Ze(O?e:C),B.Ze(U),B.qe(I),B.qe(T?t:w),B.Ve(h),B.Ve(y),B.Ve(b),B.Ve(g),B.Ve(x),B.Ve(E),B.Ve(v),B.Ve(S),B.Ve(z),Mi(c,B.Wt,l),l+=_,m++,a.onprogress)try{await a.onprogress(r+1,o.size,new _a(n))}catch{}}return await xi(s,d?c.slice(d):c),{Be:{diskNumber:u,diskOffset:p},Pe:{diskNumber:di(s),He:m},We:c}}(r,o,a),h=await async function(t,r,n){const a=Di(t,n,K);if(a){const n=await a(r),o=Ni(n);if(o>e)throw new Error(Ls);const i=li(6+o);i.qe(s),i.Ze(o),i.Ve(n);const{writer:c}=t;return ui(c,Ni(i.Wt))&&await c.closeDisk(),await xi(c,i.Wt),6+o}return 0}(r,w,a);await async function(r,n,a,o){const{writer:s}=r,{Be:i,Pe:f,Ge:p}=o;let{Ke:m}=o,w=r.ee.size,h=i.diskNumber,y=pi(r,i);const b=Ni(n);if(b>e)throw new Error(ds);let g=Ai(r,a,Sa),x=di(s);if(ui(s,(g?98:u)+b)&&x++,y>=t||m>=t||w>=e||x>=e){if(!1===g)throw new Error(Ds);g=!0}const E=li(g?98:u);ui(s,Ni(E.Wt)+b)&&await s.closeDisk(),x=di(s);let v=x==f.diskNumber?f.He:0;g&&(E.qe(l),E.Ye(44),E.Ze(45),E.Ze(45),E.qe(x),E.qe(h),E.Ye(v),E.Ye(w),E.Ye(m),E.Ye(y),E.qe(d),E.qe(x),E.Ye(BigInt(pi(r,s))+BigInt(m)+BigInt(p)),E.qe(x+1),Ai(r,a,"supportZip64SplitFile",!0)&&(x=e,h=e),v=e,w=e,y=t,m=t),E.qe(c),E.Ze(x),E.Ze(h),E.Ze(v),E.Ze(w),E.qe(m),E.qe(y),E.Ze(b),await xi(s,E.Wt),b&&await xi(s,n)}(r,n,a,{Be:p,Pe:m,Ke:o,Ge:h})}(a,r,n),!$n(p)&&Ai(a,n,q)||await m.getWriter().close(),p.getData?p.getData():m}}class Ys{constructor(t={}){const{readable:e,writable:r}=new TransformStream;this.readable=e,this.zipWriter=new Ks(r,t),this.ae=new Set}transform(t){const e=this.zipWriter;let r;const{readable:n,writable:a}=new TransformStream({start(t){r=t},flush:()=>{!async function(){try{await e.close()}catch(t){await Qs(e,t)}}()}});return $s(this,this.zipWriter.add(t,n),t=>r.error(t)),{readable:this.readable,writable:a}}writable(t){let e;const{readable:r,writable:n}=new TransformStream({start(t){e=t}});return $s(this,this.zipWriter.add(t,r),t=>e.error(t)),n}async close(t,e={}){const{zipWriter:r}=this,n=(await Promise.allSettled(Array.from(this.ae))).filter(t=>"rejected"==t.status).map(t=>t.reason);if(n.length){const[t]=n;try{t.entryErrors=n}catch{}throw await Qs(r,t),t}try{return await r.close(t,e)}catch(t){throw await Qs(r,t),t}}}class Xs extends Promise{then(t,e){const{Xe:r}=this;return r&&(r._e=!0),super.then(t,e)}}function Js(t,e){const r=new Xs((t,r)=>Promise.prototype.then.call(e,t,r)),n={};return r.Xe=n,n.Ne=Promise.prototype.then.call(r,F,t=>n.error=t),t.oe.push(n),r}async function Qs(t,e){try{await t.writer.writable.abort(e)}catch{}}function $s(t,e,r){t.ae.add(e),e.catch(t=>{try{r(t)}catch{}})}function ti(n,a,o){let s=Ai(n,o,va),i=Ai(n,o,Aa,s?20:768);const c=Ai(n,o,Fa),l=Fi(n,o,"uid"),d=Fi(n,o,"gid");let f=Fi(n,o,Ia),u=Ai(n,o,"unixExtraFieldType"),p=Ai(n,o,Ca),m=Ai(n,o,ja),w=Ai(n,o,Ma);if(it(l,t,Cs),it(d,t,js),it(f,e,Ms),u!==F&&u!==Zs&&u!==Vs)throw new Error(Ns);if(u===Vs&&(l!==F&&l>e||d!==F&&d>e))throw new Error(_s);u!==F||l===F&&d===F||(u=Zs);let h=Fi(n,o,xa),y=Ai(n,o,Ea);const b=h!==F||y!==F;if(l!==F||d!==F||f!==F||u||c?(s=!1,i=i&r|768):b&&(s=!0,i&=r),it(h,r,Bs),y&&(typeof y!==I||Array.isArray(y)))throw new Error(Ps);if(i>e)throw new Error(hs);let g=Ai(n,o,ga);const x=g!==F;x||(g=0),!o[Da]&&a.endsWith(k)&&(o[Da]=!0);const A=Ai(n,o,Da);if(A?(a.endsWith(k)||(a+=k),x||(g=16,s||(g|=16877<<16))):s||x||(g=c?493<<16:27525120),!s){const t=f!==F||Boolean(p||m||w);f=f===F?g>>16&e:f&e,p?f|=S:p=Boolean(f&S),m?f|=z:m=Boolean(f&z),w?f|=512:w=Boolean(512&f),x&&!t||(A?f=-61441&f|v:f&E||(f|=32768),g=(f&e)<<16|g&e)}({msdosAttributesRaw:h,msdosAttributes:y}=function(t,e){if(t!==F)t&=r;else if(e!==F){const{readOnly:n,hidden:a,system:o,directory:s,archive:i}=e;let c=0;n&&(c|=1),a&&(c|=2),o&&(c|=4),s&&(c|=16),i&&(c|=32),t=c&r}return e===F&&(e={readOnly:Boolean(1&t),hidden:Boolean(2&t),system:Boolean(4&t),directory:Boolean(16&t),archive:Boolean(32&t)}),{msdosAttributesRaw:t,msdosAttributes:e}}(h,y)),b&&(g=g&t|h&r);const R=g>>16&e,D=f!==F&&40960==(f&E);return{name:a,ve:{versionMadeBy:i,msDosCompatible:Boolean(s),externalFileAttributes:g,unixExternalUpper:R,uid:l,gid:d,unixMode:f,unixExtraFieldType:u,symlink:D,setuid:p,setgid:m,sticky:w,msdosAttributesRaw:h,msdosAttributes:y}}}function ei(t,r,n){const a=Di(t,n,"encodeText")||Pt;let o=a(r,Y);if(o===F&&(o=Pt(r)),Ni(o)>e)throw new Error(ws);const s=n[sa]||"";if(typeof s!=C)throw new Error(ps);let i=a(s,X);if(i===F&&(i=Pt(s)),Ni(i)>e)throw new Error(us);const c=Ai(t,n,ka);if(c!==F&&c>e)throw new Error(hs);const l=Ri(t,n,ua,new Date),d=Ai(t,n,pa),f=Ri(t,n,ma),u=Ri(t,n,ha),p=Ai(t,n,ba,0),m=Ai(t,n,_),w=Ai(t,n,M),h=Ai(t,n,N);ot(w,h);const y=Fi(t,n,"encryptionStrength",3),b=Ai(t,n,Ra),g=Ai(t,n,"extendedTimestamp",!0),x=Ai(t,n,"ntfsTimestamp"),E=Ai(t,n,"keepOrder",!0),v=Ai(t,n,P),S=Ai(t,n,L),z=Ai(t,n,"bufferedWrite"),k=Di(t,n,"createTempStream"),A=Ai(t,n,"dataDescriptorSignature",!0),R=at(Ai(t,n,B)),D=Ai(t,n,"useUnicodeFileNames",!0),O=Ai(t,n,Oa),T=m||O===F?F:Ve(O);if(!m&&O!==F&&0!==O&&8!==O&&!T)throw new Error(Be);let U=Fi(t,n,"level");if(it(U,9,Ws),t.options[H]){if(w!==F||h!==F)throw new Error(bs);U===F&&O===F&&(U=0)}m&&(U=F);let I=Ai(t,n,W),j=Ai(t,n,Z);z&&j===F&&(j=!1),(j===F||b&&!m)&&(j=!0),U!==F&&6!=U&&(I=!1);const q=Ai(t,n,Sa);if(!(b||w===F&&h===F||Number.isInteger(y)&&y>=1&&y<=3))throw new Error(ys);const V=ri(n[Ua]),G=ri(n.localExtraField),K=ri(n.centralExtraField);return{comment:s,ve:{rawFilename:o,rawComment:i,version:c,lastModDate:l,rawLastModDate:d,lastAccessDate:f,creationDate:u,internalFileAttributes:p,passThrough:m,password:w,rawPassword:h,encryptionStrength:y,zipCrypto:b,extendedTimestamp:g,ntfsTimestamp:x,keepOrder:E,useWebWorkers:v,transferStreams:S,bufferedWrite:z,createTempStream:k,dataDescriptorSignature:A,signal:R,useUnicodeFileNames:D,compressionMethod:O,format:T?T.format:F,codecURI:T?T.codecURI:F,Je:T?T.versionNeeded:F,level:U,useCompressionStream:I,dataDescriptor:j,zip64:q,rawExtraField:V,Qe:G,Ee:K}}}function ri(t){if(!t)return j;if(!(t instanceof Map))throw new Error(xs);let r=0,n=0;t.forEach((t,n)=>{if(st(n,e,Es),!(t instanceof Uint8Array))throw new Error(vs);if(Ni(t)>e)throw new Error(Ss);r+=4+Ni(t)});const a=new Uint8Array(r),o=Dt(a);return t.forEach((t,e)=>{Ii(o,n,e),Ii(o,n+2,Ni(t)),Mi(a,t,n+4),n+=4+Ni(t)}),a}function ni(e,r,n,a,o){const{passThrough:s,zipCrypto:i,password:c,rawPassword:l,encryptionStrength:d}=a;let{dataDescriptor:f,zip64:u,level:p,compressionMethod:m}=a,w=0,h=0;if(s&&r){if(h=o[ca],h===F)throw new Error(Fs);if(m===F)throw new Error(Os)}const y=!0===u,b=Ai(e,o,za);if(r&&s&&!b&&Ni(c,l))throw new Error(gs);const g=r&&(Boolean(c&&Ni(c)||l&&Ni(l))||s&&b);r||(p=0,m=0);const x=g?i?12:16+4*d:0;r&&(s?(o.uncompressedSize=h,w=n===F?Oi(h)+x:n):n===F?(f=!0,(u||u===F)&&(u=!0,h=w=4294967296)):(o.uncompressedSize=h=n,w=(Ti(m,p)?Oi(h):h)+x));const E=!(g||r&&(0!==n||s)||Ti(m,p));E&&!i&&Ai(e,o,Z)===F&&(f=!1);const v=y||h>=t,S=y||w>=t;if(v||S){if(!1===u)throw new Error(Ds);u=!0}return u=u||!1,{$e:w,ve:{dataDescriptor:f,Ae:E,zip64:u,me:v,pe:S,uncompressedSize:h,level:p,compressionMethod:m,encrypted:g}}}function ai(t){const{rawFilename:r,lastModDate:a,rawLastModDate:o,lastAccessDate:s,creationDate:i,level:c,zip64:l,zipCrypto:d,useUnicodeFileNames:f,dataDescriptor:u,directory:p,rawExtraField:m,Qe:y,encryptionStrength:x,extendedTimestamp:E,ntfsTimestamp:v,passThrough:S,encrypted:z,me:k,pe:O,uncompressedSize:T,crc32:U}=t;let{version:I,compressionMethod:C}=t;const M=!p&&Ti(C,c);let N;const _=S||!M,B=l&&(t.bufferedWrite||!u||!k&&!O||_),P=B||l&&u&&(k||O);if(l&&(k||O)){const t=20,e=li(t);if(e.Ze(1),e.Ze(t-4),N=e.Wt,B&&(e.Ye(T),_)){const t=z?d?12:16+4*x:0;e.Ye(S?0:T+t)}}else N=j;let W,L,q,Z,V;if(z&&!d){const t=li(Ni(qs)+2);t.Ze(w),t.Ve(qs),W=t.Wt,W[8]=x}else W=j;if(E){const t=Si(a),e=zi(t);if(e){const e=9+(s?4:0)+(i?4:0),r=li(e);Z=1+(s?2:0)+(i?4:0),r.Ze(h),r.Ze(e-4),r.er(Z),r.qe(t),s&&r.qe(ki(Si(s))),i&&r.qe(ki(Si(i))),q=r.Wt}else q=j;if(v===F?!e||Boolean(s||i):v)try{const t=vi(a),e=li(36);e.Ze(10),e.Ze(32),e.rr(4),e.Ze(1),e.Ze(24),e.Ye(t),e.Ye(s?vi(s):t),e.Ye(i?vi(i):t),L=e.Wt}catch{L=j}else L=j}else L=q=j;try{const{uid:r,gid:n,unixExtraFieldType:a}=t;if(a!=Zs||r===F&&n===F)if(a!=Vs||r===F&&n===F)V=j;else{const t=li(8);t.Ze(g),t.Ze(4),t.Ze((r===F?0:r)&e),t.Ze((n===F?0:n)&e),V=t.Wt}else{const t=si(r===F?0:r),e=si(n===F?0:n),a=3+t.length+e.length,o=li(4+a);o.Ze(b),o.Ze(a),o.er(1),o.er(t.length),o.Ve(t),o.er(e.length),o.Ve(e),V=o.Wt}}catch{V=j}C===F&&(C=M?8:0),I===F&&(I=0!=C||p||z?20:10);const{Je:G}=t;M&&G!==F&&(I=I>G?I:G),l&&(I=I>45?I:45),z&&!d&&(I=I>51?I:51,S&&U!==F&&(W[4]=1),Ii(Dt(W),9,C),C=99);const K=P?Ni(N):0,Y=K+Ni(W,q,L,V,m,y);if(Y+(t[H]?67:0)>e)throw new Error(Ss);const X=new Date(2e3*Math.ceil(Math.floor(a.getTime()/1e3)/2)),{fe:J,ue:Q,rawLastModDate:$}=_i({version:I,bitFlag:Bi(c,f,u,z,C),compressionMethod:C,uncompressedSize:T,lastModDate:X<D?D:X>R?R:X,rawLastModDate:o,rawFilename:r,pe:O,me:k,extraFieldLength:Y}),tt=li(A+Ni(r)+Y),et=tt.Wt,rt=Dt(et);return tt.qe(n),tt.Ve(J),tt.Ve(r),P&&tt.Ve(N),tt.Ve(W),tt.Ve(q),tt.Ve(L),tt.Ve(V),tt.Ve(m),tt.Ve(y),u&&(O||Ci(rt,18,0),k||Ci(rt,22,0)),{ze:et,Me:rt,fe:J,ue:Q,lastModDate:a,rawLastModDate:$,encrypted:z,compressed:M,version:I,compressionMethod:C,Ie:Z,he:j,Ue:K,be:q,ge:L,xe:V,ye:W,extraFieldLength:Y}}function oi(t,e){const{Re:r}=t;let{ze:n,extraFieldLength:a}=r,o=64-(e+Ni(n))%64;o<4&&(o+=64);const s=new Uint8Array(o),i=Dt(s);Ii(i,0,y),Ii(i,2,o-4);const c=n;r.ze=n=new Uint8Array(Ni(c)+o),Mi(n,c),Mi(n,s,Ni(c));const l=Dt(n);Ii(l,28,a+o),r.Me=l,t.Te+=o}function si(t){const e=new Uint8Array(4);Dt(e).setUint32(0,t,!0);let r=4;for(;r>1&&0===e[r-1];)r--;return e.subarray(0,r)}function ii({zip64:t,dataDescriptor:e,dataDescriptorSignature:r}){let n,a=j,s=0,i=t?20:12;return r&&(i+=4),e&&(a=new Uint8Array(i),n=Dt(a),r&&(s=4,Ci(n,0,o))),{ke:a,Ce:n,je:s}}function ci(r){let n=0;for(const[,a]of r){const{rawFilename:r,ye:o,rawComment:s,ge:i,xe:c,rawExtraField:l,Ee:d,extendedTimestamp:u,Ie:p,lastModDate:m,me:w,pe:y,uncompressedSize:b,compressedSize:g}=a,x=a.offset>=t,E=a.diskNumberStart>=e;let v,S;if(x||E||w||y){const t=4+(w?8:0)+(y?8:0)+(x?8:0)+(E?4:0),e=li(t);e.Ze(1),e.Ze(t-4),w&&e.Ye(b),y&&e.Ye(g),x&&e.Ye(a.offset),E&&e.qe(a.diskNumberStart),v=e.Wt}else v=j;a.he=v,a.Le=x,a.we=E;const z=Si(m);if(u&&zi(z)){const t=li(9);t.Ze(h),t.Ze(5),t.er(p),t.qe(z),S=t.Wt}else S=j;a.be=S;const k=Ni(v,o,i,c,S,l,d);if(k>e)throw new Error(Ss);n+=f+Ni(r,s)+k}return n}function li(t){const e=new Uint8Array(t),r=Dt(e);let n=0;return{Wt:e,er:t=>{!function(t,e,r){t.setUint8(e,r)}(r,n,t),n+=1},Ze:t=>{Ii(r,n,t),n+=2},qe:t=>{Ci(r,n,t),n+=4},Ye:t=>{ji(r,n,BigInt(t)),n+=8},Ve:t=>{Mi(e,t,n),n+=Ni(t)},rr:t=>n+=t}}function di(t){const{diskNumber:e=0}=t;return e}function fi(t){const{diskOffset:e=0}=t;return e}function ui(t,e){const{availableSize:r=O}=t;return e>r}function pi(t,{diskNumber:e=0,diskOffset:r=0}){return t.offset-r-(e?t.ne:0)}function mi(t){const e=Dt(t);let r=0;for(;r+4<=Ni(t);){const n=4+Ui(e,r+2);if(1==Ui(e,r))return mi(At(t.subarray(0,r),t.subarray(Math.min(r+n,Ni(t)))));r+=n}return t}async function wi(t,e,r,n){if(n>0){const{writer:a}=t;let o=0;try{await Ei(na(e,{offset:r,size:n}),a,F,t=>o+=t)}catch(e){t.hasCorruptedEntries=!0;try{e.corruptedEntry=!0}catch{}throw e}finally{a.size+=o,t.offset+=o}}}async function hi(t,e){const r=await ra(t,e,A);if(Ni(r)<A)return A;const n=Dt(r);return A+Ui(n,26)+Ui(n,28)}function yi(t,{offset:e,diskNumberStart:r}){return e+(t.Ht?t.Ht(r):0)}function bi(){const t=new Uint8Array(4);return Ci(Dt(t),0,a),t}async function gi(t,e){delete t.te,await xi(e,bi()),t.offset+=4}async function xi(t,e){const{writable:r}=t,n=r.getWriter();try{await n.ready,t.size+=Ni(e),await n.write(e)}finally{n.releaseLock()}}async function Ei(t,e,r,n){const a=e.writable.getWriter();try{await t.pipeTo(new WritableStream({async write(t){await a.ready,await a.write(t),n(Ni(t))}}),{preventClose:!0,preventAbort:!0,signal:r})}finally{a.releaseLock()}}function vi(t){if(t){const e=(BigInt(t.getTime())+BigInt(116444736e5))*BigInt(1e4);return e<As?As:e>Rs?Rs:e}}function Si(t){return Math.floor(t.getTime()/1e3)}function zi(t){return t>=zs&&t<=ks}function ki(t){return Math.min(ks,Math.max(zs,t))}function Ai(t,e,r,n){const a=e[r]===F?t.options[r]:e[r];return a===F?n:a}function Ri(t,e,r,n){const a=Ai(t,e,r,n);if(null===a)return n;if(a!==F&&(typeof a.getTime!=U||Number.isNaN(a.getTime())))throw new Error(ms);return a}function Di(t,e,r){return nt(Ai(t,e,r))}function Fi(t,e,r,n){return ct(Ai(t,e,r,n))}function Oi(t){return t+5*(Math.floor(t/16383)+1)}function Ti(t,e){return t===F?e===F||e>0:0!==t}function Ui(t,e){return t.getUint16(e,!0)}function Ii(t,e,r){t.setUint16(e,r,!0)}function Ci(t,e,r){t.setUint32(e,r,!0)}function ji(t,e,r){t.setBigUint64(e,r,!0)}function Mi(t,e,r){t.set(e,r)}function Ni(...t){let e=0;return t.forEach(t=>t&&(e+=t.length)),e}function _i({version:e,bitFlag:r,compressionMethod:n,uncompressedSize:a,compressedSize:o,lastModDate:s,rawLastModDate:i,rawFilename:c,pe:l,me:d,extraFieldLength:f}){const u=li(26),p=u.Wt,m=Dt(p);if(u.Ze(e),u.Ze(r),u.Ze(n),i===F){const t=new Uint32Array(1),e=Dt(t);Ii(e,0,(s.getHours()<<6|s.getMinutes())<<5|s.getSeconds()/2),Ii(e,2,(s.getFullYear()-1980<<4|s.getMonth()+1)<<5|s.getDate()),i=t[0]}return u.qe(i),u.rr(4),l||o!==F?u.qe(l?t:o):u.rr(4),d||a!==F?u.qe(d?t:a):u.rr(4),u.Ze(Ni(c)),u.Ze(f),{fe:p,ue:m,rawLastModDate:i}}function Bi(t,e,r,n,a){let o=0;return e&&(o|=x),r&&(o|=8),8!=a&&9!=a||(t>=0&&t<=3&&(o|=6),t>3&&t<=5&&(o|=4),9==t&&(o|=2)),n&&(o|=1),o}function Pi(){const{CompressionStream:t,DecompressionStream:e,CompressionStreamFallback:r,DecompressionStreamFallback:n}=yt(),a=[{compressionMethod:0,compression:!0,decompression:!0,registered:!1},{compressionMethod:8,compression:Wi(r,Qe)||Wi(t,Qe)||Wi(t,tr),decompression:Wi(n,Qe)||Wi(e,Qe)||Wi(e,tr),registered:!1},{compressionMethod:9,compression:!1,decompression:Wi(n,$e)||Wi(e,$e),registered:!1}];for(const t of He()){const e=Ge(t.format);a.push({compressionMethod:t.compressionMethod,compression:e?typeof e.CompressionStream==U:F,decompression:e?typeof e.DecompressionStream==U:F,registered:!0})}return a}function Wi(t,e){if(!t)return!1;const{nr:r}=t;return r?r.includes(e):sr(t,e)}const Li="2.11.0",qi=1048576,Zi=".zip.js-temp";function Vi(t={}){const{thresholdBytes:e=qi,directoryName:r=Zi,getDirectory:n=()=>navigator.storage.getDirectory()}=t;let a;function o(){return a||(a=Promise.resolve(n()).then(t=>t.getDirectoryHandle(r,{create:!0}))),a}return function(){const t=[];let r,n,a,s,i=0,c=!1;const l=new WritableStream({async write(s){c?await a.write(s):(t.push(s),i+=s.length,i>e&&await async function(){const e=await o();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join(""),n=await e.getFileHandle(r,{create:!0}),a=(await n.createWritable()).getWriter(),c=!0;for(const e of t)await a.write(e);t.length=0}())},async close(){a&&(await a.close(),a=null)}});let d=0;return{writable:l,readable:new ReadableStream({async pull(e){if(c){if(!s){const t=await n.getFile();s=t.stream().getReader()}const{value:t,done:r}=await s.read();r?e.close():e.enqueue(t)}else d<t.length?e.enqueue(t[d++]):e.close()},async cancel(t){s&&await s.cancel(t)}},{highWaterMark:0}),dispose:async function(){if(a){try{await a.close()}catch{}a=null}if(r){try{const t=await o();await t.removeEntry(r)}catch{}n=r=null}t.length=0}}}}const Hi=1048576;function Gi(t={}){const{thresholdBytes:e=Hi}=t;return function(){const t=[];let r,n,a,o=0,s=!1;const i=new WritableStream({async write(a){s?await r.write(a):(t.push(a),o+=a.length,o>e&&await async function(){const e=new TransformStream;n=Ce(e.readable),r=e.writable.getWriter(),s=!0;for(const e of t)await r.write(e);t.length=0}())},async close(){r&&(await r.close(),r=null)}});let c=0;return{writable:i,readable:new ReadableStream({async pull(e){if(s){if(!a){const t=await n;a=t.stream().getReader()}const{value:t,done:r}=await a.read();r?e.close():e.enqueue(t)}else c<t.length?e.enqueue(t[c++]):e.close()},async cancel(t){a&&await a.cancel(t)}},{highWaterMark:0}),dispose:async function(){if(r){try{await r.abort()}catch{}r=null}n&&(n.catch(()=>{}),n=null),t.length=0}}}}const Ki=1048576,Yi=".zip.js-temp",Xi="createSyncAccessHandle is only available in dedicated workers";function Ji(t={}){const{thresholdBytes:e=Ki,directoryName:r=Yi,getDirectory:n}=t;if(!(n||"undefined"!=typeof FileSystemFileHandle&&FileSystemFileHandle.prototype.createSyncAccessHandle))throw new Error(Xi);const a=n||(()=>navigator.storage.getDirectory());let o;function s(){return o||(o=Promise.resolve(a()).then(t=>t.getDirectoryHandle(r,{create:!0}))),o}return function(){const t=[];let r,n,a=0,o=!1,i=0,c=0;const l=new WritableStream({async write(c){o?(n.write(c,{at:i}),i+=c.length):(t.push(c),a+=c.length,a>e&&await async function(){const e=await s();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join("");const a=await e.getFileHandle(r,{create:!0});n=await a.createSyncAccessHandle(),o=!0;for(const e of t)n.write(e,{at:i}),i+=e.length;t.length=0}())},close(){n&&n.flush()}});let d=0;return{writable:l,readable:new ReadableStream({pull(e){if(o){const t=i-c;if(t<=0)return void e.close();const r=new Uint8Array(Math.min(524288,t)),a=n.read(r,{at:c});a?(c+=a,e.enqueue(r.subarray(0,a))):e.close()}else d<t.length?e.enqueue(t[d++]):e.close()}},{highWaterMark:0}),dispose:async function(){if(n){try{n.close()}catch{}n=null}if(r){try{const t=await s();await t.removeEntry(r)}catch{}r=null}t.length=0}}}}try{zt({baseURI:import.meta.url})}catch{}const Qi="deflate",$i="deflate-raw",tc="deflate64-raw",ec="gzip";let rc,nc,ac,oc,sc;function ic(t,e,r={}){if(!rc){const t=new Error("WASM module not loaded");throw t.cause=sc,t}const n="number"==typeof r.level?r.level:-1,a="number"==typeof r.outBuffer?r.outBuffer:65536,o="number"==typeof r.inBufferSize?r.inBufferSize:65536;return new TransformStream({start(){try{let r;if(this.ar=nc(a),this.in=nc(o),this.inBufferSize=o,!this.ar||!this.in)throw new Error("allocation failed");if(this.sr=new Uint8Array(a),t?(this.ir=rc.deflate_process,this.cr=rc.deflate_last_consumed,this.lr=rc.deflate_end,this.dr=rc.deflate_new(),r=e===ec?rc.deflate_init_gzip(this.dr,n):e===$i?rc.deflate_init_raw(this.dr,n):rc.deflate_init(this.dr,n)):e===tc?(this.ir=rc.inflate9_process,this.cr=rc.inflate9_last_consumed,this.lr=rc.inflate9_end,this.dr=rc.inflate9_new(),r=rc.inflate9_init_raw(this.dr)):(this.ir=rc.inflate_process,this.cr=rc.inflate_last_consumed,this.lr=rc.inflate_end,this.dr=rc.inflate_new(),r=e===$i?rc.inflate_init_raw(this.dr):e===ec?rc.inflate_init_gzip(this.dr):rc.inflate_init(this.dr)),0!==r)throw new Error("init failed:"+r)}catch(t){throw s(this),t}},transform(e,r){try{const n=e,o=new Uint8Array(oc.buffer),s=this.ir,i=this.cr,c=this.ar,l=this.sr;let d=0;for(;d<n.length;){const e=Math.min(n.length-d,32768);if((!this.in||this.inBufferSize<e)&&(this.in&&ac&&(ac(this.in),this.in=0),this.in=nc(e),this.inBufferSize=e,!this.in))throw new Error("allocation failed");o.set(n.subarray(d,d+e),this.in);const f=s(this.dr,this.in,e,c,a,0),u=16777215&f;if(u&&(l.set(o.subarray(c,c+u),0),r.enqueue(l.slice(0,u))),!t){const t=f>>24&255,e=128&t?t-256:t;if(e<0)throw new Error("process error:"+e)}const p=i(this.dr);if(0===p&&0===u)break;d+=p}}catch(t){s(this),r.error(t)}},flush(e){try{const r=new Uint8Array(oc.buffer),n=this.ir,o=this.ar,s=this.sr;for(;;){const i=n(this.dr,0,0,o,a,4),c=16777215&i,l=i>>24&255;if(!t){const t=128&l?l-256:l;if(t<0)throw new Error("process error:"+t)}if(c&&(s.set(r.subarray(o,o+c),0),e.enqueue(s.slice(0,c))),1===l||0===c)break}}catch(t){e.error(t)}finally{const t=s(this);0!==t&&e.error(new Error("end error:"+t))}},cancel(){s(this)}});function s(t){let e=0;return t.dr&&t.lr&&(e=t.lr(t.dr)),t.dr=0,t.in&&ac&&ac(t.in),t.in=0,t.ar&&ac&&ac(t.ar),t.ar=0,e}}class cc{constructor(t=Qi,e){return ic(!0,t,e)}}class lc{constructor(t=Qi,e){return ic(!1,t,e)}}cc.ft=!0,lc.ft=!0,cc.nr=[Qi,$i,ec],lc.nr=[Qi,$i,ec,tc];let dc,fc=!1;function uc(){dc=null,async function(){await Promise.allSettled(qr.map(t=>($r(t),t.terminate()))),gr=F,xr=!1}(),fc=!1,rc=nc=ac=oc=sc=null}!function({ur:t}){vr=t}({ur:t=>{if(!dc){let{wasmURI:e}=t;typeof e==U&&(e=e()),dc=async function(t,{baseURI:e}){if(!fc)try{await async function(t,e){let r,n;try{try{n=new URL(t,e)}catch{}const a=await fetch(n);r=await a.arrayBuffer()}catch(e){if(!t.startsWith("data:application/wasm;base64,"))throw e;r=function(t){const e=t.split(",")[1],r=atob(e),n=r.length,a=new Uint8Array(n);for(let t=0;t<n;++t)a[t]=r.charCodeAt(t);return a.buffer}(t)}!function(t){if(rc=t,({malloc:nc,free:ac,memory:oc}=rc),"function"!=typeof nc||"function"!=typeof ac||!oc)throw rc=nc=ac=oc=null,new Error("Invalid WASM module")}((await WebAssembly.instantiate(r)).instance.exports)}(t,e),fc=!0}catch(t){throw function(t){sc=t}(t),t}}(e,t).catch(t=>{throw dc=null,t})}return dc}}),zt({CompressionStreamFallback:cc,DecompressionStreamFallback:lc}),zt({workerURI:new URL("./zip-web-worker.js",import.meta.url).href,wasmURI:new URL("./zip-module.wasm",import.meta.url).href});const pc="Entry filename already exists",mc="Duplicate entry filename in the imported zip file",wc='Invalid duplicates option (must be "throw", "keep-first" or "keep-last")',hc="Entry is a ancestor of target entry",yc="Readable stream already consumed",bc="throw",gc="keep-first",xc="keep-last",Ec=new Set([bc,gc,xc]),vc="Invalid passThrough option (use readerOptions.passThrough or set uncompressedSize for each entry)",Sc="Invalid readerOptions (must be an object)",zc="The last modification date of an entry encrypted with ZipCrypto cannot be changed when passThrough is set",kc="zipjs-abort-export",Ac="The operation was aborted",Rc=new Set([1,w,10,h,28789,25461,y,b,g,22613,13]);class Dc{constructor(t,e,r,n){const a=this;if(t.root&&n&&n.getChildByName(e))throw new Error(pc);r||(r={}),Object.assign(a,{fs:t,name:e,data:r.data,options:r.options&&Object.assign({},r.options),id:t.pr++,parent:n,children:[],uncompressedSize:r.uncompressedSize||0,mr:r.mr||r.uncompressedSize===F,passThrough:r.passThrough,wr:r.wr||new Date}),!n&&t.root||(t.entries[a.id]=a),n&&a.parent.children.push(a)}getFullname(){return this.getRelativeName()}getRelativeName(t=this.fs.root){let e=this.name,r=this.parent;for(;r&&r!=t;)e=(r.name?r.name+"/":"")+e,r=r.parent;return e}isDescendantOf(t){let e=this.parent;for(;e&&e.id!=t.id;)e=e.parent;return Boolean(e)}rename(t){const e=this;let r=e.parent;if(r){const n=el(t);n&&(t=n.pop(),r=rl(r,n,e));const a=r.getChildByName(t);if(a&&a!=e)throw new Error(pc);r!=e.parent&&(Pc(e),e.parent=r,r.children.push(e),$c(e.fs,e))}e.name=t}setOptions(t){const e=Object.assign({},this.options,t);this.options=Object.fromEntries(Object.entries(e).filter(([,t])=>t!==F))}}class Fc extends Dc{constructor(t,e,r,n){super(t,e,r,n);const a=this;a.Reader=r.Reader,a.Writer=r.Writer,r.getData&&(a.getData=r.getData)}clone(){return new Fc(this.fs,this.name,this)}async getData(t,e={}){const r=this;if(!t||t.constructor==r.Writer&&r.data&&function(t,e){const{contentType:r}=t;return r===F||(t.constructor==zn?e.type==r:t.constructor!=xn||e.startsWith("data:"+(r||"")+";base64,"))}(t,r.data))return r.data;{const n=r.reader=_c(r.Reader,r.data,e),a=r.uncompressedSize||n.size;await Promise.all([ta(n),ta(t,a)]);const o=at(e.signal),s=function(t,e,r,n){const{onstart:a,onprogress:o,onend:s}=r,{readable:i}=e;return t.data instanceof _a||!a&&!o&&!s?i:Ie(i).pipeThrough(new Ar({onstart:a,onprogress:o,onend:s,size:e.size}),{signal:n})}(r,n,e,o),i=!$n(t)&&Boolean(e.preventClose);return r.uncompressedSize=n.size,await Ie(s).pipeTo(je(t.writable),{signal:o,preventClose:i,preventAbort:i}),t.getData?t.getData():t.writable}}isPasswordProtected(){return Boolean(this.data&&this.data.encrypted)}async checkPassword(t,e={}){const r=this;if(!r.isPasswordProtected())return!0;try{return await r.data.getData(null,Object.assign({},e,{password:t,checkPasswordOnly:!0})),!0}catch(t){if(t.message==Ht)return!1;throw t}}getText(t,e){return this.getData(new Rn(t),e)}getBlob(t,e){return this.getData(new zn(t),e)}getData64URI(t,e){return this.getData(new xn(t),e)}getUint8Array(t){return this.getData(new Kn,t)}getWritable(t=new WritableStream,e){return this.getData({writable:t},e)}async getArrayBuffer(t){return Rt(await this.getUint8Array(t)).buffer}replaceBlob(t){Vc(this,{data:t,Reader:Sn,Writer:zn,uncompressedSize:t.size})}replaceText(t){Vc(this,{data:t,Reader:kn,Writer:Rn,uncompressedSize:An(t)})}replaceData64URI(t){Vc(this,{data:t,Reader:gn,Writer:xn,uncompressedSize:Hc(t)})}replaceUint8Array(t){Vc(this,{data:t,Reader:Gn,Writer:Kn,uncompressedSize:t.length})}replaceReadable(t){Vc(this,{data:null,Reader:Mc(t),Writer:null,uncompressedSize:F})}}class Oc extends Dc{constructor(t,e,r,n){super(t,e,r,n),this.directory=!0}clone(t){const e=this,r=new Oc(e.fs,e.name,e);return t&&(r.children=e.children.map(e=>{const n=e.clone(t);return n.parent=r,n})),r}addDirectory(t,e){return tl(this,t,{options:e},!0)}addText(t,e,r={}){return tl(this,t,{data:e,Reader:kn,Writer:Rn,options:r,uncompressedSize:An(e)})}addBlob(t,e,r={}){return tl(this,t,{data:e,Reader:Sn,Writer:zn,options:r,uncompressedSize:e.size})}addData64URI(t,e,r={}){return tl(this,t,{data:e,Reader:gn,Writer:xn,options:r,uncompressedSize:Hc(e)})}addUint8Array(t,e,r={}){return tl(this,t,{data:e,Reader:Gn,Writer:Kn,options:r,uncompressedSize:e.length})}addHttpContent(t,e,r={}){return tl(this,t,{data:e,Reader:class extends Vn{constructor(t){super(t,r)}},options:r})}addReadable(t,e,r={}){return tl(this,t,{Reader:Mc(e),options:r})}addFileSystemEntry(t,e={}){return Yc(this,t,e)}addFileSystemHandle(t,e={}){return Yc(this,t,e)}addFile(t,e={}){return(e=Object.assign({},e)).lastModDate||(e.lastModDate=new Date(t.lastModified)),tl(this,t.name,{data:t,Reader:function(){return{readable:t.stream(),size:t.size}},options:e,uncompressedSize:t.size})}importBlob(t,e){return this.importZip(new Sn(t),e)}importData64URI(t,e){return this.importZip(new gn(t),e)}importUint8Array(t,e){return this.importZip(new Gn(t),e)}importHttpContent(t,e){return this.importZip(new Vn(t,e),e)}importReadable(t,e){return this.importZip({readable:t},e)}exportBlob(t={}){return this.exportZip(new zn(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new xn(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new Kn,t)}async exportWritable(t=new WritableStream,e={}){return await this.exportZip({writable:t},e),t}exportFileSystemHandle(t,e={}){return async function(t,e,r){const{onstart:n,onprogress:a,onend:o}=r,s=Zc(r.readerOptions),i=new AbortController,{signal:c}=i,l=function(t,e){if(!at(t))return()=>{};if(t.aborted)return e.abort(t.reason),()=>{};const r=()=>e.abort(t.reason);return t.addEventListener("abort",r,{once:!0}),()=>t.removeEventListener("abort",r)}(r.signal,i),d=Object.assign({},r,s,{signal:c,onstart:F,onprogress:F,onend:F,preventClose:!1}),f=Ic([t],t=>jc(t,d.passThrough)),u=[];let p=!1,m=0;try{n&&await Rr(n,f),await h(t,e),o&&await Rr(o,m)}catch(t){try{t.exportedEntryNames=u}catch{}throw t}finally{l()}return e;function w(t){const e=t.getWriter();return new WritableStream({async write(t){await e.write(t),m+=t.length,a&&await Rr(a,m,f)},close:()=>e.close(),abort:t=>e.abort(t)})}async function h(t,e){if(r.concurrent){const r=(await Promise.allSettled(t.children.map(t=>y(t,e)))).filter(t=>"rejected"==t.status);if(r.length){const t=r.filter(t=>!Wc(t.reason));throw function(t){const[e]=t,r=t.slice(1).flatMap(t=>[t,...t&&t.entryErrors||[]]).filter(t=>t!==e);if(r.length)try{e.entryErrors=[...e.entryErrors||[],...r]}catch{}return e}((t.length?t:r).map(t=>t.reason))}}else for(const r of t.children)await y(r,e)}async function y(e,r){if(c.aborted){if(p||Wc(c.reason))return;throw c.reason===F?new DOMException(Ac,"AbortError"):c.reason}try{if(e.directory){const t=await r.getDirectoryHandle(e.name,{create:!0});await h(e,t)}else{const n=await r.getFileHandle(e.name,{create:!0}),a=await n.createWritable();try{await e.getData({writable:w(a)},d)}catch(t){throw p?new Error(kc):t}u.push(e.getRelativeName(t))}}catch(r){p=!0,i.abort(new Error(kc));try{r.entryName===F&&(r.entryName=e.getRelativeName(t),r.entryId=e.id)}catch{}throw r}}}(this,t,e)}async importZip(t,e={}){let r;t&&typeof t.getEntries==U?(r=t,e=Object.assign({},r.options,e)):(await ta(t),r=new ko(t,e));const n=function(t){if(t===F)return bc;if(Ec.has(t))return t;throw new Error(wc)}(e.duplicates),a=[],o=await r.getEntries(e);for(const t of o){let r=this;try{const o=t.filename.split("/").filter(t=>""!=t&&"."!=t),s=o.pop();let i=!1;for(const t of o){const e=r;if(r=r.getChildByName(t),r){if(!r.directory){if(n==gc){i=!0;break}if(n!=xc)throw new Error(mc);this.fs.remove(r),r=new Oc(this.fs,t,{data:null},e),a.push(r)}}else r=new Oc(this.fs,t,{data:null},e),a.push(r)}if(i)continue;if(t.directory){let e=r;if(s){if(e=r.getChildByName(s),e&&!e.directory){if(n==gc)continue;if(n!=xc)throw new Error(mc);this.fs.remove(e),e=F}e||(e=new Oc(this.fs,s,{data:null},r),a.push(e))}e==this||e.data||(e.data=t)}else{const o=r.getChildByName(s);if(o){if(n==gc)continue;if(n!=xc)throw new Error(mc);this.fs.remove(o)}a.push(tl(r,s,{data:t,Reader:Nc(Object.assign({},e)),uncompressedSize:e.passThrough?t.compressedSize:t.uncompressedSize,passThrough:e.passThrough}))}}catch(e){a.reverse().forEach(t=>this.fs.remove(t));try{e.cause={entry:t}}catch{}throw e}}return a}async exportZip(t,e={}){const r=this;(e=Object.assign({},e)).bufferedWrite===F&&(e.bufferedWrite=!0);const[n]=await Promise.all([Bc(r,Zc(e.readerOptions)),ta(t)]),a=new Ks(t,e);return await async function(t,e,r,n,a){const{onstart:o,onprogress:s,onend:i,onentryprogress:c}=n,l=e,d=Ic(e.children,t=>Kc(t)?0:1);let f=0,u=0;if(o&&await Rr(o,r),n.bufferedWrite)await async function t(e){const r=(await Promise.allSettled(e.children.map(async e=>{await p(e),await t(e)}))).find(t=>"rejected"==t.status);if(r)throw r.reason}(e);else for(const t of e.getChildren({recursive:!0}))await p(t);async function p(e){if(Kc(e))return;const{name:o,yr:i}=Lc(e,l,n);let p=0;const m=await t.add(o,a.get(e),Object.assign(i,{onstart:F,onend:F,onprogress:async t=>{f+=t-p,p=t,s&&await Rr(s,f,r)}}));u++,c&&await Rr(c,u,d,m)}i&&await Rr(i,f)}(a,r,Ic([r],Cc),e,n),await a.close(e.globalComment),t.getData?t.getData():t.writable}getExportedSize(r={}){const n=this;Zc((r=Object.assign({},r)).readerOptions),r.bufferedWrite===F&&(r.bufferedWrite=!0);const a=n.getChildren({recursive:!0}).filter(t=>!Kc(t)).map(t=>{const{name:e,yr:a}=Lc(t,n,r);return{name:e,size:t.directory?0:qc(t,Gc(t,r)),options:a}}),o=!r.bufferedWrite||a.every(t=>!1!==t.options.keepOrder)&&n.children.every(t=>!t.children.length);return async function(r,n,a,o){const s={options:r};if(nt(r[K]))throw new Error(Ts);if(o!==F&&!(o instanceof Uint8Array))throw new Error(fs);const i=Ni(o);if(i>e)throw new Error(ds);const c=r[H],l=new Map,d=r[V]===F?0:r[V];let f=d,p=O;for(const t of n){let{name:e}=t;const{size:r}=t,n=Object.assign({},t.options);Ai(s,n,Da)&&!e.endsWith(k)&&(e+=k);const a=ti(s,e,n);({name:e}=a);const{ve:o}=ei(s,e,n);0==o.level||o.compressionMethod!==F||o.passThrough||await Sr(yt())||(o.level=0);const i=!Ai(s,n,Da);if(i&&r===F)throw new Error(Ts);const{$e:d,ve:u}=ni(s,i,r,o,n);if(i&&!o.passThrough&&Ti(u.compressionMethod,u.level))throw new Error(Ts);const m=Object.assign({},n,a.ve,o,u,{[H]:c}),w=ai(m),h=ii(m),y={Re:w,Te:Ni(w.ze,h.ke)};c&&oi(y,f);const b=i?d:0;l.set(e,Object.assign({},m,w,{offset:f,diskNumberStart:0,compressedSize:b}));const g=y.Te+b;p=Math.min(p,g),f+=g}if(l.size>1&&(c||f-p>=t)&&!a)throw new Error(Ts);const m=ci(l);let w=Ai(s,r,Sa);if(f>=t||m>=t||l.size>=e){if(!1===w)throw new Error(Ds);w=!0}return f-d+m+i+(w?98:u)}(r,a,o,r.globalComment)}getChildByName(t){const e=this.children;for(let r=0;r<e.length;r++){const n=e[r];if(n.name==t)return n}}getChildren(t={}){return function(t,e){const r=[],n=[t];let a=0;for(;a<n.length;)for(const t of n[a++].children)r.push(t),e&&n.push(t);return r}(this,t.recursive)}isPasswordProtected(){const t=this.children;for(let e=0;e<t.length;e++)if(t[e].isPasswordProtected())return!0;return!1}async checkPassword(t,e={}){const r=this.children;return!(await Promise.all(r.map(r=>r.checkPassword(t,e)))).includes(!1)}}class Tc{constructor(){Jc(this)}get children(){return this.root.children}remove(t){Pc(t);const e=[t];for(;e.length;){const t=e.pop();this.entries[t.id]=null;for(const r of t.children)e.push(r)}t.parent=F}move(t,e){if(t==this.root)throw new Error("Root directory cannot be moved");if(!e.directory)throw new Error("Target entry is not a directory");if(e.isDescendantOf(t))throw new Error(hc);if(t!=e){const r=e.getChildByName(t.name);if(r){if(r!=t)throw new Error(pc)}else Pc(t),t.parent=e,e.children.push(t),$c(this,t)}}find(t){const e=t.split("/");let r=this.root;for(let t=0;r&&t<e.length;t++)r=r.directory?r.getChildByName(e[t]):F;return r||(r=this.entries.find(e=>e&&(e==this.root||e.isDescendantOf(this.root))&&e.getRelativeName()==t)),r}getById(t){return this.entries[t]}getChildByName(t){return this.root.getChildByName(t)}getChildren(t){return this.root.getChildren(t)}addDirectory(t,e){return this.root.addDirectory(t,e)}addText(t,e,r){return this.root.addText(t,e,r)}addBlob(t,e,r){return this.root.addBlob(t,e,r)}addData64URI(t,e,r){return this.root.addData64URI(t,e,r)}addUint8Array(t,e,r){return this.root.addUint8Array(t,e,r)}addHttpContent(t,e,r){return this.root.addHttpContent(t,e,r)}addReadable(t,e,r){return this.root.addReadable(t,e,r)}addFileSystemEntry(t,e){return this.root.addFileSystemEntry(t,e)}addFileSystemHandle(t,e){return this.root.addFileSystemHandle(t,e)}addFile(t,e){return this.root.addFile(t,e)}importBlob(t,e){return Qc(this,r=>r.importBlob(t,e))}importData64URI(t,e){return Qc(this,r=>r.importData64URI(t,e))}importUint8Array(t,e){return Qc(this,r=>r.importUint8Array(t,e))}importHttpContent(t,e){return Qc(this,r=>r.importHttpContent(t,e))}importReadable(t,e){return Qc(this,r=>r.importReadable(t,e))}importZip(t,e){return Qc(this,r=>r.importZip(t,e))}exportBlob(t){return this.root.exportBlob(t)}exportData64URI(t){return this.root.exportData64URI(t)}exportUint8Array(t){return this.root.exportUint8Array(t)}exportWritable(t,e){return this.root.exportWritable(t,e)}exportFileSystemHandle(t,e){return this.root.exportFileSystemHandle(t,e)}exportZip(t,e){return this.root.exportZip(t,e)}getExportedSize(t){return this.root.getExportedSize(t)}isPasswordProtected(){return this.root.isPasswordProtected()}checkPassword(t,e){return this.root.checkPassword(t,e)}}const Uc={FS:Tc,ZipDirectoryEntry:Oc,ZipFileEntry:Fc};function Ic(t,e){let r=0;const n=Array.from(t);for(;n.length;){const t=n.pop();r+=e(t)||0;for(const e of t.children)n.push(e)}return r}function Cc(t){return t.uncompressedSize}function jc(t,e){const{data:r}=t;return e&&r instanceof _a?r.compressedSize:t.uncompressedSize}function Mc(t){let e;return function(){if(e)throw new Error(yc);return e=!0,{readable:t}}}function Nc(t){return class extends yn{constructor(t,e={}){super(),this.entry=t,this.options=e}async init(){const e=this,r=Object.assign({},t,e.options),{checkOverlappingEntry:n,checkOverlappingEntryOnly:a}=r,o=await e.entry.getData(new zn,Object.assign(r,{checkPasswordOnly:!1,checkOverlappingEntry:a||n,checkOverlappingEntryOnly:!1,preventClose:!1}));e.data=o,e.gr=new Sn(o),e.size=o.size,super.init()}readUint8Array(t,e){return this.gr.readUint8Array(t,e)}}}function _c(t,e,r){return t.prototype?new t(e,r):t(e,r)}async function Bc(t,e){const r=[],n=[t],a=new Map;for(;n.length;){const t=n.pop();for(const e of t.children)e.directory?n.push(e):r.push(e)}return await Promise.all(r.map(async t=>{const r=t.reader=_c(t.Reader,t.data,e);a.set(t,r);try{await ta(r)}catch(e){try{e.entryId=t.id,e.cause={entry:t}}catch{}throw e}r.size!==F&&(t.uncompressedSize=r.size,t.mr=!1)})),a}function Pc(t){if(t.parent){const e=t.parent.children;e.forEach((r,n)=>{r.id==t.id&&e.splice(n,1)})}}function Wc(t){return Boolean(t)&&t.message==kc}function Lc(t,e,n){const a=n.relativePath?t.getRelativeName(e):t.getFullname(),o=t.options||{};let s={},i={};if(t.data instanceof _a){const{externalFileAttributes:e,versionMadeBy:a,comment:c,lastModDate:l,rawLastModDate:d,creationDate:f,lastAccessDate:u,uncompressedSize:p,encrypted:m,zipCrypto:w,crc32:h,compressionMethod:y,extraFieldAES:b,internalFileAttributes:g,extraField:x,bitFlag:E,uid:v,gid:S}=t.data;s={externalFileAttributes:e,versionMadeBy:a,comment:c,lastModDate:l,creationDate:f,lastAccessDate:u,internalFileAttributes:g};const z=function(t){if(t){const e=new Map;if(t.forEach((t,r)=>{Rc.has(r)||e.set(r,t.data)}),e.size)return e}}(x);if(z&&(s.extraField=z),v===F&&S===F||Object.assign(s,{uid:v,gid:S,unixExtraFieldType:"infozip"}),Gc(t,n)){let t;b&&(t=b.strength),i={passThrough:!0,encrypted:m,zipCrypto:w,crc32:h,uncompressedSize:p,encryptionStrength:t,compressionMethod:y},E&&(i.dataDescriptor=E.dataDescriptor);const e=o.lastModDate===F?n.lastModDate:o.lastModDate;if(e===F)i.rawLastModDate=d;else if(w&&(!E||E.dataDescriptor)&&e instanceof Date&&function(t){let e=new Date(2e3*Math.ceil(Math.floor(t.getTime()/1e3)/2));return e<D?e=D:e>R&&(e=R),(e.getHours()<<3|e.getMinutes()>>3)&r}(e)!=(d>>>8&r))throw new Error(zc)}}const c=Object.assign({lastModDate:t.wr},s,n,o,i,{directory:t.directory});if(!t.directory&&c.passThrough&&c.uncompressedSize===F)throw new Error(vc);return{name:a,yr:c}}function qc(t,e){const{reader:r}=t;return r&&r.size!==F?r.size:t.mr?F:jc(t,e)}function Zc(t){if(t&&(typeof t!=I||Array.isArray(t)))throw new Error(Sc);return t}function Vc(t,e){const{uncompressedSize:r}=e;Object.assign(t,e,{reader:null,passThrough:F,uncompressedSize:r===F?0:r,mr:r===F})}function Hc(t){let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;return Math.floor(.75*(e-r))}function Gc(t,e){const{readerOptions:r}=e;return Boolean(!t.directory&&(t.passThrough||r&&r.passThrough))}function Kc(t){return t.directory&&null===t.data}function Yc(t,e,r){return async function t(e,n,a,o=""){if(n){const s=o?o+"/"+n.name:n.name;try{if((n.isFile||n.isDirectory)&&(n=await Xc(n)),"file"==n.kind){const t=await n.getFile();a.push(tl(e,t.name,{Reader:function(){return{readable:t.stream(),size:t.size}},options:Object.assign({},{lastModDate:new Date(t.lastModified)},r),uncompressedSize:t.size}))}else if("directory"==n.kind){const o=e.addDirectory(n.name,r);a.push(o);for await(const e of n.values())await t(o,e,a,s)}}catch(t){try{t.entryName===F&&(t.entryName=s)}catch{}throw t}}return a}(t,e,[])}async function Xc(t){const e={name:t.name};if(t.isFile&&(e.kind="file",e.getFile=()=>new Promise((e,r)=>t.file(e,r))),t.isDirectory){e.kind="directory";const r=await async function(t){const e=[];function r(t,n,a){t.readEntries(async o=>{if(o.length){for(const t of o)e.push(await Xc(t));r(t,n,a)}else n(e)},a)}return await new Promise((e,n)=>r(t.createReader(),e,n)),{[Symbol.iterator](){let t=0;return{next(){const r={value:e[t],done:t==e.length};return t++,r}}}}}(t);e.values=()=>r}return e}function Jc(t){t.entries=[],t.pr=0,t.root=new Oc(t)}function Qc(t,e){const{entries:r,pr:n,root:a}=t;return Jc(t),e(t.root).catch(e=>{throw Object.assign(t,{entries:r,pr:n,root:a}),e})}function $c(t,e){const r=[e];for(;r.length;){const e=r.pop();t.entries[e.id]=e;for(const t of e.children)r.push(t)}}function tl(t,e,r,n){if(t.directory){const a=el(e);return a&&(e=a.pop(),t=rl(t,a)),n?new Oc(t.fs,e,r,t):new Fc(t.fs,e,r,t)}throw new Error("Parent entry is not a directory")}function el(t){if(t.includes("/")){const e=t.split("/").filter(t=>""!=t&&"."!=t);if(e.length)return e}}function rl(t,e,r){return e.forEach(e=>{const n=t;if(t=t.getChildByName(e)){if(!t.directory)throw new Error(pc);if(r&&(t==r||t.isDescendantOf(r)))throw new Error(hc)}else t=new Oc(n.fs,e,{data:null},n)}),t}let nl;function al(t){return t&&(nl||(nl=function(){const t=Object.create(null);for(const e of"application:0andrew-inset ez,2nodex anx,1pplixware aw,1tom!,4cat!,4serv! atomsrv,5vc!,0bbolin lin,0ccxml!,1dmi-capability cdmia,6ontainer cdmic,5domain cdmid,5object cdmio,5queue cdmiq,1u-seeme cu,0davmount!,1ocbook! dbk,1sptype tsp,2sc+der,4! xdssc,0ecmascript es ecma,1mma!,1nvoy evy,1pub+zip,1xi,0font-tdpfr pfr,1ractals fif,1uturesplash spl,0gml!,1px!,1xf,1zip gz tgz,0hta,1yperstudio stk,0inkml! ink inkml,2ternet-property-stream acx,1pfix,0java-archive jar,5serialized-object ser,5vm class,1sonml+json,0lost! lostxml,0m3g,1ac-binhex40 hqx,2ds!,2rc mrc,4xml! mrcx,2thematica nb ma mb,4ml! mathml mml,1box,1ediaservercontrol! mscml,2talink!,84! meta4,3s!,1ods!,1p21 m21 mp21,24 mp4s,1saccess mdb,2word doc dot wiz,1xf,0oda,1ebps-package! opf,1gg ogx,1lescript axs,1mdoc!,1nenote onetoc onetoc2 onetmp onepkg,1xps,0patch-ops-error! xer,1df,1gp-encrypted pgp,4keys key,4signature asc sig,1ics-rules prf,1kcs10 p10,47-mime p7m p7c,6signature p7s,48 p8,2ix-attr-cert ac,5crl crl,5pkipath pkipath,4cmp pki,1ls!,1ostscript ps ai eps epsi epsf eps2 eps3,1rs.cww cww,1skc! pskcxml,0rar,1df!,1eginfo! rif,2lax-ng-compact-syntax rnc,2source-lists! rl,e-diff! rld,1ls-services! rs,1pki-ghostbusters gbr,5manifest mft,5roa roa,1sd!,2s!,1tf,0sbml!,1cvp-cv-request scq,asponse scs,5vp-request spq,asponse spp,1dp,1et-payment-initiation setpay,4registration-initiation setreg,1hf!,1mil! smi smil,1parql-query rq,7results! srx,1rgs gram,4! grxml,2u!,1sdl!,2ml!,0tei! tei teicorpus,1hraud! tfi,1imestamped-data tsd,0vnd.3gpp.pic-bw-large plb,gsmall psb,gvar pvb,82.tcap tcap,5m.post-it-notes pwn,4accpac.simply.aso aso,iimp imp,6ucobol acu,9rp atc acutc,5dobe.air-application-installer-package+zip air,aformscentral.fcdt fcdt,bxp fxp fxpl,axdp! xdp,bfdf xfdf,5head.space ahead,5irzip.filesecure.azf azf,os azs,5mazon.ebook azw,6ericandynamics.acc acc,6iga.ami ami,5ndroid.package-archive apk,6ser-web-certificate-issue-initiation cii,efunds-transfer-initiation fti,6tix.game-component atx,5pple.installer! mpkg,ampegurl m3u8,5ristanetworks.swi swi,5straea-software.iota iota,5udiograph aep,4blueice.multipass mpm,5mi bmi,5usinessobjects rep,4chemdraw! cdxml,6ipnuts.karaoke-mmd mmd,5inderella cdy,5laymore cla,6oanto.rp9 rp9,7nk.c4group c4g c4d c4f c4p c4u,6uetrust.cartomobile-config c11amc,w-pkg c11amz,5ommonspace csp,6ntact.cmsg cdbcmsg,6smocaller cmc,5rick.clicker clkx,h.keyboard clkk,ipalette clkp,itemplate clkt,iwordbank clkw,7ticaltools.wbs! wbs,5tc-posml pml,5ups-ppd ppd,6rl.car car,9pcurl pcurl,4dart dart,6ta-vision.rdz rdz,5ebian.binary-package deb udeb,6ce.data uvf uvvf uvd uvvd,9ttml! uvt uvvt,9unspecified uvx uvvx,9zip uvz uvvz,6novo.fcselayout-link fe_launch,5na dna,5olby.mlp mlp,5pgraph dpg,5reamfactory dfac,5s-keypoint kpxx,5vb.ait ait,8service svc,5ynageo geo,4ecowin.chart mag,5nliven nml,5pson.esf esf,amsf msf,aquickanime qam,asalt slt,bsf ssf,5szigno3! es3 et3,5zpix-album ez2,apackage ez3,4fdf fdf,6sn.mseed mseed,9seed seed dataless,5lographit gph,6uxtime.clip ftc,5ramemaker fm frame maker book,6ogans.fnc fnc,cltf ltf,5sc.weblaunch fsc,5ujitsu.oasys oas,h2 oa2,h3 oa3,hgp fg5,hprs bh2,8xerox.ddd ddd,focuworks xdw,n.binder xbd,6zzysheet fzs,4genomatix.tuxedo txd,6ogebra.file ggb,dtool ggt,7metry-explorer gex gre,7next gxt,7plan g2w,7space g3w,5mx gmx,5oogle-earth.kml! kml,jz kmz,5rafeq gqf gqs,6oove-account gac,bhelp ghf,bidentity-message gim,cnjector grv,btool-message gtm,gtemplate tpl,bvcard vcg,4hal! hal,6ndheld-entertainment! zmm,5bci hbci,5he.lesson-player les,5p-hpgl hpgl,9id hpid,9s hps,7jlyt jlt,7pcl pcl,axl pclxl,5ydrostatix.sof-data sfd-hdstx,5zn-3d-crossword x3d,4ibm.minipay mpy,9odcap afp listafp list3820,8rights-management irm,8secure-container sc,5ccprofile icc icm,5gloader igl,5mmervision-ivp ivp,iu ivu,5nsors.igm igm,6tercon.formnet xpw xpx,9geo i2g,7u.qbo qbo,afx qfx,5punplugged.rcprofile rcprofile,5repository.package! irp,5s-xpr xpr,6ac.fcs fcs,4jam jam,5cp.javame.midlet-rms rms,5isp jisp,5oost.joda-archive joda,4kahootz ktz ktr,5de.karbon karbon,9chart chrt,9formula kfo,9ivio flw,9ontour kon,9presenter kpr kpt,9spread ksp,9word kwd kwt,5enameaapp htke,5idspiration kia,6nar kne knp,5oan skp skd skt skm,6dak-descriptor sse,4las.las! lasxml,5lamagraphics.life-balance.desktop lbd,vexchange! lbe,5otus-1-2-3 123,aapproach apr,afreelance pre,anotes nsf,aorganizer org,ascreencam scm,awordpro lwp,4macports.portpkg portpkg,5cd mcd,5edcalcdata mc1,7iastation.cdkey cdkey,5fer mwf,6mp mfm,5icrografx.flo flo,figx igx,6f mif,5obius.daf daf,cis dis,bmbk mbk,cqy mqy,csl msl,bplc plc,btxf txf,6phun.application mpn,bcertificate mpc,6zilla.xul! xul,5s-artgalry cil,7cab-compressed cab,7excel xls xlb xlt xlm xla xlc xlw,c.addin.macroenabled.12 xlam,dsheet.binary.macroenabled.12 xlsb,jmacroenabled.12 xlsm,dtemplate.macroenabled.12 xltm,7fontobject eot,7htmlhelp chm,7ims ims,7lrm lrm,7officetheme thmx,8utlook msg,7pki.seccat cat,ctl stl,acertstore sst,8owerpoint ppt pps pot ppa pwz,h.addin.macroenabled.12 ppam,ipresentation.macroenabled.12 pptm,islide.macroenabled.12 sldm,nshow.macroenabled.12 ppsm,itemplate.macroenabled.12 potm,8roject mpp mpt,7word.document.macroenabled.12 docm,ctemplate.macroenabled.12 dotm,aks wps wks wcm wdb,8pl wpl,7xpsdocument xps,6eq mseq,5usician mus,6vee.style msty,5ynfc taglet,4neurolanguage.nlu nlu,5itf ntf nitf,5oblenet-directory nnd,dsealer nns,dweb nnw,6kia.n-gage.data ngdat,hsymbian.install n-gage,aradio-preset rpst,ms rpss,6vadigm.edm edm,fx edx,ext ext,4oasis.opendocument.chart odc,s-template otc,ndatabase odb,nformula odf,u-template odft,ngraphics odg,v-template otg,nimage odi,s-template oti,npresentation odp,z-template otp,nspreadsheet ods,y-template ots,ntext odt,r-master odm otm,stemplate ott,sweb oth,5lpc-sugar xo,5ma.dd2! dd2,5penofficeorg.extension oxt,8xmlformats-officedocument.presentationml.presentation pptx,zresentationml.slide sldx,zresentationml.slideshow ppsx,zresentationml.template potx,yspreadsheetml.sheet xlsx,zpreadsheetml.template xltx,ywordprocessingml.document docx,zordprocessingml.template dotx,5sgeo.mapguide.package mgp,7i.dp dp,9subsystem esa,4palm pdb pqa oprc,6waafile paw,5g.format str,7osasli ei6,5icsel efif,5mi.widget wg,5ocketlearn plf,6werbuilder6 pbd,5reviewsystems.box box,6oteus.magazine mgz,5ublishare-delta-tree qps,5vi.ptid1 ptid,4quark.quarkxpress qxd qxt qwd qwt qxl qxb,4realvnc.bed bed,6cordare.musicxml mxl,m! musicxml,5ig.cryptonote cryptonote,5n-realmedia rm,g-vbr rmvb,5oute66.link66! link66,4sailingtracker.track st,5eemail see,6ma sema,7d semd,7f semf,5hana.informed.formdata ifm,ntemplate itp,jinterchange iif,jpackage ipk,5imtech-mindmapper twd twds,5maf mmf,7rt.teacher teacher,5olent.sdkm! sdkm sdkd,5potfire.dxp dxp,dsfs sfs,5qlite3 db sqlite sqlite3 db-wal sqlite-wal db-shm sqlite-shm,5tardivision.calc sdc,ihart sds,hdraw sda,himpress sdd,hmath sdf smf,hwriter sdw vor,n-global sgl,6epmania.package smzip,estepchart sm,5un.xml.calc sxc,g.template stc,cdraw sxd,g.template std,cimpress sxi,j.template sti,cmath sxm,cwriter sxw,i.global sxg,jtemplate stw,6s-calendar sus susp,5vd svd,5ymbian.install sis sisx,6ncml! xsm,a.dm+wbxml bdm,d! xdm,4tao.intent-module-archive tao,5cpdump.pcap pcap cap dmp,5mobile-livetv tmo,5rid.tpt tpt,7scape.mxs mxs,6ueapp tra,4ufdl ufd ufdl,5iq.theme utz,5majin umj,5nity unityweb,5oml! uoml,4vcx vcx,5isio vsd vst vss vsw vsdx vssx vstx vssm vstm,9nary vis,5sf vsf,4wap.sic sic,9lc slc,8wbxml wbxml,9mlc wmlc,bscriptc wmlsc,5ebturbo wtb,5olfram.player nbp,6rdperfect wpd,f5.1 wp5,5qd wqd,5t.stf stf,4xara xar,5fdl xfdl,4yamaha.hv-dic hvd,escript hvs,evoice hvp,bopenscoreformat osf,q.osfpvg! osfpvg,bsmaf-audio saf,gphrase spf,5ellowriver-custom-menu cmp,4zul zir zirz,5zazz.deck! zaz,1oicexml! vxml,0widget wgt,2nhlp hlp,1sdl!,2policy!,0x-123 wk,27z-compressed 7z,2abiword abw,3ce-compressed ace,3pple-diskimage dmg,3uthorware-bin aab x32 u32 vox,dmap aam,dseg aas,2bcpio bcpio,3ittorrent torrent,3lorb blb blorb,3zip bz,62 bz2 boz,2cbr cbr cba cbt cb7,4z cbz,3df cdf cda,4link vcd,3fs-compressed cfs,3hat chat,4ess-pgn pgn,3ompress z,4nference nsc,3pio cpio,3sh csh,2dgc-compressed dgc,3irector dir dxr cst cct cxt w3d fgd swa,3ms dms,3oom wad,3tbncx! ncx,5ook! dtb,5resource! res,3vi dvi,2eva eva,2font-bdf bdf,7ghostscript gsf,7linux-psf psf,7pcf pcf,7snf snf,7ttf ttf ttc,8ype1 pfa pfb pfm afm,3reearc arc,6mind mm,2gca-compressed gca,3lulx ulx,3numeric gnumeric,3o-sgf sgf,3ramps-xml gramps,5phing-calculator gcf,3tar gtar taz,2hdf hdf,3ttpd-eruby rhtml,8php phtml pht php,b-source phps,b3 php3,c-preprocessed php3p,b4 php4,b5 php5,2ica ica,3nfo info,4stall-instructions install,4ternet-signup ins isp,3phone iii,3so9660-image iso,2java-jnlp-file jnlp,3mol jmz,2killustrator kil,3rita kra krz,2latex latex,3yx lyx,3zh-compressed lzh lha,4x lzx,2maker frm fb fbdoc,3ie mie,3obipocket-ebook prc mobi,3s-application application,5installer msi,5shortcut lnk,5wmd wmd,5xbap xbap,4binder obd,4cardfile crd,5lip clp,4dos-program com exe bat dll,4mediaview mvb m13 m14,6tafile wmf wmz emf emz,5oney mny,4publisher pub,4schedule scd,4terminal trm,4write wri,2netcdf nc,3s-proxy-autoconfig pac dat,3wc nwc,3zb nzb,2object o,3z-application oza,2perfmon pma pmc pmr pmw,5l pm pl,3kcs12 p12 pfx,67-certificates p7b spc,creqresp p7r,3ython-code pyc pyo,2qgis qgs shp shx,3uicktimeplayer qtl,2redhat-package-manager rpm rpa,4search-info-systems ris,3uby rb,2sh sh,4ar shar,4ockwave-flash swf swfl,3ilverlight scr,d-app xap,3ql sql,3tuffit sit,9x sitx,3ubrip srt,3v4cpio sv4cpio,6rc sv4crc,2t3vm-image t3,3ar tar,3ex-gf gf,6pk pk,6tfm tfm,5info texinfo texi,3gif obj,3rash ~ % bak old sik,2ustar ustar,2wais-source src,3ingz wz,2x509-ca-cert crt der cer,3cf xcf,3fig fig,3liff! xlf,3pinstall xpi,3z xz,2zmachine z1 z2 z3 z4 z5 z6 z7 z8,1aml!,1cap-diff! xdf,1enc!,1html! xhtml xht,1ml xml xsl xsd xpdl,3-dtd dtd,1op!,1proc! xpl,1slt!,2pf!,1v! mxml xhvml xvml xvm,0yaml yaml yml,2ng,1in!,1nd.ms-pkipko pko,0zip;audio:0aac,1dpcm adp,1iff aiff aif aff,1mr,3-wb awb,1nnodex axa,0basic au snd,0flac,0midi mid midi kar rmi,1p4 mp4a,2eg mpga mpega mp3 m4a mp2a m2a m3a,4url m3u,0ogg oga ogg spx,1pus,0prs.sid sid,0s3m,1ilk sil,0vnd.dece.audio uva uvva,5igital-winds eol,5ra dra,5ts dts,7.hd dtshd,4lucent.voice lvp,4ms-playready.media.pya pya,4nuera.ecelp4800 ecelp4800,f7470 ecelp7470,f9600 ecelp9600,4rip rip,0wav,1ebm weba,0x-aiff aifc,2caf caf,2gsm gsm,2matroska mka,3s-wax wax,6ma wma,2pn-realaudio ram,e-plugin rmp,2realaudio ra,2sd2 sd2,1m;chemical:0x-alchemy alc,2cache cac cache,7-csf csf,5tvs-binary cbin cascii ctab,3dx cdx,3hem3d c3d,3if cif,3mdf cmdf,4l cml,3ompass cpa,3rossfire bsd,3sml csml csm,3tx ctx,3xf cxf cef,2embl-dl-nucleotide emb embl,2gamess-input inp gam gamin,4ussian-checkpoint fch fchk,cube cub,binput gau gjc gjf,blog gal,3cg8-sequence gcg,3enbank gen,2hin hin,2isostar istr ist,2jcamp-dx jdx dx,2kinemage kin,2macmolecule mcm,5romodel-input mmod,3dl-molfile mol,6rdfile rd,7xnfile rxn,6sdfile sd,6tgf tgf,3mcif mcif,3ol2 mol2,5conn-Z b,4pac-graph gpt,8input mop mopcrt zmt,8out moo,2ncbi-asn1 asn,b-ascii prt ent,cbinary val,2rosdal ros,2swissprot sw,2vamas-iso14976 vms,3md vmd,2xtel xtel,3yz xyz;font:0otf,0woff,42;image:0avif avif avifs,0bmp,0cgm,1is-cod cod,0g3fax g3,1if,0heic heif heic,0ief,0jpeg jpeg jpg jpe jfif jfif-tbnl jif,0ktx,0pcx,1jpeg pjpg,1ng,1rs.btif btif,0sgi,1vg! svg svgz,0tiff tiff tif,0vnd.adobe.photoshop psd,4dece.graphic uvi uvvi uvg uvvg,5jvu djvu djv,5wg dwg,5xf dxf,4fastbidsheet fbs,5px fpx,5st fst,5ujixerox.edmics-mmr mmr,lrlc rlc,4ms-modi mdi,7photo wdp,4net-fpx npx,4wap.wbmp wbmp,4xiff xif,0webp,0x-3ds 3ds,2adobe-dng dng,2canon-cr2 cr2,aw crw,3mu-raster ras,4x cmx,3oreldraw cdr,bpattern pat,btemplate cdt,7photopaint cpt,2epson-erf erf,2freehand fh fhc fh4 fh5 fh7,3uji-raf raf,2icns icns,4on ico,2jg art,3ng jng,2kodak-dcr dcr,8k25 k25,9dc kdc,2minolta-mrw mrw,2nikon-nef nef,2olympus-orf orf,2panasonic-raw raw rw2 rwl,3entax-pef pef ptx,3ict pic pct,3ortable-anymap pnm,bbitmap pbm,bgraymap pgm,bpixmap ppm,2rgb rgb,2sigma-x3f x3f,3ony-arw arw,7sr2 sr2,9f srf,2tga tga,2xbitmap xbm,3pixmap xpm,3windowdump xwd;message:0rfc822 eml mime mht mhtml nws;model:0iges igs iges,0mesh msh mesh silo,0vnd.collada! dae,4dwf dwf,4gdl gdl,5tw gtw,4mts mts,4usdz+zip usdz,4vtu vtu,1rml wrl vrml,0x3d+binary x3db x3dbz,4vrml x3dv x3dvz,3! x3dz;text:0cache-manifest manifest appcache,2lendar ics icz ifb,1ss,2v,0h323 323,1tml html htm shtml stm,0iuls uls,0javascript js,1son,0markdown md markdown mdown markdn,0n3,0plain txt text brf conf def list log in bas diff ksh,1rs.lines.tag dsc,0richtext rtx,0scriptlet sct wsc,1gml sgml sgm,0tab-separated-values tsv,1exmacs tm,1roff t tr roff man me ms,1urtle ttl,0uri-list uri uris urls,0vcard,1nd.curl curl,8.dcurl dcurl,9mcurl mcurl,9scurl scurl,4dvb.subtitle sub,4fly fly,5mi.flexstor flx,4graphviz gv,4in3d.3dml 3dml,9spot spot,4sun.j2me.app-descriptor jad,4wap.si si,9l sl,8wml wml,bscript wmls,0webviewhtml htt,0x-asm s asm,2bibtex bib,3oo boo,2c c h dic,3++hdr h++ hpp hxx hh,5src c++ cpp cxx cc,3omponent htc,2diff patch,3src d,2fortran f for f77 f90,2haskell hs,2java java,2literate-haskell lhs,2moc moc,2nfo nfo,2opml opml,2pascal p pas pp inc,3cs-gcd gcd,3ython py,2scala scala,3etext etx,3fv sfv,2tcl tcl tk,3ex tex ltx sty cls,2uuencode uu,2vcalendar vcs,5rd vcf;video:03gpp 3gp,42 3g2,0annodex axv,0dl,1v dif dv,0fli,0gl,0h261,33,34,0jpeg jpgv,2m jpm jpgm,0mj2 mj2 mjp2,1p2t ts,24 mp4 mp4v mpg4,2eg mpeg mpg mpe m1v m2v mp2 mpa mpv2,0ogg ogv,0quicktime qt mov,0vnd.dece.hd uvh uvvh,9mobile uvm uvvm,9pd uvp uvvp,9sd uvs uvvs,9video uvv uvvv,5vb.file dvb,4fvt fvt,4mpegurl mxu m4u,5s-playready.media.pyv pyv,4uvvu.mp4 uvu uvvu,4vivo viv,0webm,0x-f4v f4v,3lv flv,2la-asf lsf lsx,2m4v m4v,3atroska mpv mkv mk3d mks,3ng mng,3s-asf asf asx asr,5vob vob,5wm wm,7v wmv,7x wmx,6vx wvx,4video avi,2sgi-movie movie,3mv smv;x-conference:0x-cooltalk ice;x-world:0x-vrml vrm flr wrz xaf xof".split(";")){const r=e.indexOf(":"),n=e.slice(0,r);let a="";for(const o of e.slice(r+1).split(",")){const e=o.split(" "),r=a.slice(0,Number.parseInt(e[0][0],36))+e[0].slice(1);a=r;const s=r.replace(/!/g,"+xml"),i=e.length>1?e.slice(1):[s.split("+")[0]];for(const e of i)t[e]=n+"/"+s}}return t}()),nl)[t.split(".").pop().toLowerCase()]||"application/octet-stream"}export{Sn as BlobReader,zn as BlobWriter,gn as Data64URIReader,xn as Data64URIWriter,Ac as ERR_ABORTED,Xa as ERR_AMBIGUOUS_ARCHIVE,Ba as ERR_BAD_FORMAT,La as ERR_CENTRAL_DIRECTORY_NOT_FOUND,ls as ERR_DUPLICATED_NAME,mc as ERR_DUPLICATE_IMPORTED_ENTRY,Va as ERR_ENCRYPTED,Ja as ERR_ENCRYPTED_CENTRAL_DIRECTORY,Ya as ERR_ENTRY_DATA_OUT_OF_BOUNDS,pc as ERR_ENTRY_EXISTS,Wa as ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,Pa as ERR_EOCDR_NOT_FOUND,Za as ERR_EXTRAFIELD_ZIP64_NOT_FOUND,an as ERR_HTTP_RANGE,on as ERR_HTTP_RESOURCE_CHANGED,Gt as ERR_INVALID_AUTHENTICATION_CODE,Me as ERR_INVALID_CODEC_DEFINITION,_e as ERR_INVALID_CODEC_MODULE,ds as ERR_INVALID_COMMENT,fs as ERR_INVALID_COMMENT_TYPE,Xe as ERR_INVALID_COMPRESSED_DATA,Je as ERR_INVALID_CRC32,ms as ERR_INVALID_DATE,wc as ERR_INVALID_DUPLICATES,ys as ERR_INVALID_ENCRYPTION_STRENGTH,us as ERR_INVALID_ENTRY_COMMENT,ps as ERR_INVALID_ENTRY_COMMENT_TYPE,ws as ERR_INVALID_ENTRY_NAME,xs as ERR_INVALID_EXTRAFIELD,Ss as ERR_INVALID_EXTRAFIELD_DATA,vs as ERR_INVALID_EXTRAFIELD_DATA_TYPE,Es as ERR_INVALID_EXTRAFIELD_TYPE,to as ERR_INVALID_FILENAME_VALIDATION,tt as ERR_INVALID_FUNCTION_OPTION,js as ERR_INVALID_GID,Ws as ERR_INVALID_LEVEL,eo as ERR_INVALID_MAX_APPENDED_DATA_SIZE,lt as ERR_INVALID_MAX_WORKERS,Bs as ERR_INVALID_MSDOS_ATTRIBUTES,Ps as ERR_INVALID_MSDOS_DATA,Ht as ERR_INVALID_PASSWORD,rt as ERR_INVALID_PASSWORD_TYPE,vc as ERR_INVALID_PASS_THROUGH,Sc as ERR_INVALID_READER_OPTIONS,et as ERR_INVALID_SIGNAL,Ls as ERR_INVALID_SIGNATURE_DATA,$a as ERR_INVALID_STRICTNESS,Cs as ERR_INVALID_UID,Ye as ERR_INVALID_UNCOMPRESSED_SIZE,Ns as ERR_INVALID_UNIX_EXTRA_FIELD_TYPE,_s as ERR_INVALID_UNIX_ID_SIZE,Ms as ERR_INVALID_UNIX_MODE,hs as ERR_INVALID_VERSION,sn as ERR_ITERATOR_COMPLETED_TOO_SOON,qa as ERR_LOCAL_FILE_HEADER_NOT_FOUND,Ka as ERR_OVERLAPPING_ENTRY,yc as ERR_READABLE_CONSUMED,Ne as ERR_RESERVED_COMPRESSION_METHOD,Ga as ERR_SPLIT_ZIP_FILE,Os as ERR_UNDEFINED_COMPRESSION_METHOD,Us as ERR_UNDEFINED_READER,Fs as ERR_UNDEFINED_UNCOMPRESSED_SIZE,Ts as ERR_UNDETERMINED_SIZE,Qa as ERR_UNSAFE_FILENAME,Be as ERR_UNSUPPORTED_COMPRESSION,Xi as ERR_UNSUPPORTED_CONTEXT,Yt as ERR_UNSUPPORTED_CRYPTO_API,Ha as ERR_UNSUPPORTED_ENCRYPTION,gs as ERR_UNSUPPORTED_ENCRYPTION_PASS_THROUGH,bs as ERR_UNSUPPORTED_ENCRYPTION_USDZ,Ds as ERR_UNSUPPORTED_FORMAT,ro as ERR_UNSUPPORTED_UINT64,br as ERR_WORKER_STARTUP_TIMEOUT,cn as ERR_WRITER_NOT_INITIALIZED,zc as ERR_ZIP_CRYPTO_LAST_MOD_DATE,Is as ERR_ZIP_NOT_EMPTY,Hn as HttpRangeReader,Vn as HttpReader,yn as Reader,Yn as SplitDataReader,Xn as SplitDataWriter,kn as TextReader,Rn as TextWriter,Gn as Uint8ArrayReader,Kn as Uint8ArrayWriter,Li as VERSION,lo as WARNING_APPENDED_DATA,oo as WARNING_COMPRESSED_PATCHED_DATA,mo as WARNING_DUPLICATE_FILENAME,so as WARNING_MALFORMED_EXTRA_FIELD,ho as WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG,yo as WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD,bo as WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES,wo as WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY,uo as WARNING_PREPENDED_CENTRAL_DIRECTORY,fo as WARNING_PREPENDED_DATA,po as WARNING_TRAILING_CENTRAL_DIRECTORY_DATA,ao as WARNING_UNKNOWN_VERSION,io as WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA,no as WARNING_UNSORTED_CENTRAL_DIRECTORY,co as WARNING_WRAPPED_ENTRIES_COUNT,bn as Writer,Oc as ZipDirectoryEntry,Dc as ZipEntry,Tc as ZipFS,Fc as ZipFileEntry,ko as ZipReader,Ao as ZipReaderStream,Ks as ZipWriter,Ys as ZipWriterStream,xt as configure,Gi as createBlobTempStream,Vi as createOPFSTempStream,Ji as createSyncAccessHandleTempStream,Uc as fs,al as getMimeType,He as getRegisteredCodecs,Pi as getSupportedCompressionMethods,Ro as isZipFile,qe as registerCodec,kt as resetConfiguration,uc as terminateWorkers,Ze as unregisterCodec};
1
+ const t=4294967295,e=65535,r=255,n=67324752,a=134695760,o=a,s=84233040,i=33639248,c=101010256,l=101075792,d=117853008,f=46,u=22,p=20,m=56,w=39169,h=21589,y=6534,b=30837,g=30805,x=2048,E=61440,v=16384,S=2048,z=1024,k="/",A=30,R=new Date(2107,11,31,23,59,58),D=new Date(1980,0,1),F=void 0,O=1/0,T="undefined",U="function",I="object",C="string",j=new Uint8Array,M="password",N="rawPassword",_="passThrough",B="signal",P="useWebWorkers",W="useCompressionStream",L="transferStreams",q="preventClose",Z="dataDescriptor",V="offset",H="usdz",G="maxAppendedDataSize",K="signCentralDirectory",Y="filename",X="comment",J="strict",Q="balanced",$="tolerant",tt="Invalid option (must be a function)",et="Invalid signal (must be an AbortSignal instance)",rt="Invalid password (password must be a string, rawPassword must be a Uint8Array)";function nt(t){if(t&&typeof t!=U)throw new Error(tt);return t}function at(t){if(t&&(typeof t.addEventListener!=U||"boolean"!=typeof t.aborted))throw new Error(et);return t||F}function ot(t,e){if(t&&typeof t!=C||e&&!(e instanceof Uint8Array))throw new Error(rt)}function st(t,e,r){if(!Number.isInteger(t)||t<0||t>e)throw new Error(r)}function it(t,e,r){t!==F&&st(t,e,r)}function ct(t){return typeof t==C&&t.trim()?Number(t):t}const lt="Invalid maxWorkers (must be an integer greater than 0)";let dt=2;try{typeof navigator!=T&&navigator.hardwareConcurrency&&(dt=navigator.hardwareConcurrency)}catch{}const ft={workerURI:"./core/web-worker-wasm.js",wasmURI:"./core/streams/zlib-wasm/zlib-streams.wasm",chunkSize:65536,maxWorkers:dt,terminateWorkerTimeout:5e3,workerStarvationTimeout:5e3,workerStartupTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,transferStreams:!0,CompressionStream:typeof CompressionStream!=T&&CompressionStream,DecompressionStream:typeof DecompressionStream!=T&&DecompressionStream},ut="maxWorkers",pt=["chunkSize",ut,"terminateWorkerTimeout","workerStarvationTimeout","workerStartupTimeout"],mt=["createWorker","CompressionStream","DecompressionStream","CompressionStreamFallback","DecompressionStreamFallback"],wt=["baseURI","wasmURI","workerURI","useCompressionStream","useWebWorkers","transferStreams",...pt,...mt],ht={...ft};function yt(){return ht}function bt(t){return gt(t.chunkSize)}function gt(t){return t=ct(t),Number.isInteger(t)&&t>=1?Math.max(t,64):65536}function xt(t){Object.assign(ht,Et(St(t)))}function Et(t){const e={};for(const r of wt){const n=t[r];n!==F&&(e[r]=vt(r,n))}return e}function vt(t,e){if(pt.includes(t)){if(e=ct(e),t==ut&&(!Number.isInteger(e)||e<1))throw new Error(lt)}else mt.includes(t)&&nt(e);return e}function St(t){t=t||{};const{CompressionStreamZlib:e,DecompressionStreamZlib:r}=t;if(e===F&&r===F)return t;const n=Object.assign({},t);return n.CompressionStreamFallback===F&&(n.CompressionStreamFallback=e),n.DecompressionStreamFallback===F&&(n.DecompressionStreamFallback=r),n}function zt(t){const e=Et(St(t));Object.assign(ft,e),Object.assign(ht,e)}function kt(){for(const t of wt)delete ht[t];Object.assign(ht,ft)}function At(t,e){const r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function Rt(t){return t.byteOffset||t.byteLength!=t.buffer.byteLength?new Uint8Array(t):t}function Dt(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}const Ft=[[],[],[],[],[],[],[],[]];for(let t=0;t<256;t++){let e=t;for(let t=0;t<8;t++)e=1&e?e>>>1^3988292384:e>>>1;Ft[0][t]=e}for(let t=0;t<256;t++)for(let e=1;e<8;e++){const r=Ft[e-1][t];Ft[e][t]=r>>>8^Ft[0][255&r]}const[Ot,Tt,Ut,It,Ct,jt,Mt,Nt]=Ft;class _t{constructor(t){this.o=t||-1}append(t){let e=0|this.o;const r=0|t.length;let n=0;if(r>=8&&t.buffer){const a=new DataView(t.buffer,t.byteOffset,r),o=r-8;for(;n<=o;n+=8){const t=e^a.getInt32(n,!0),r=a.getInt32(n+4,!0);e=Nt[255&t]^Mt[t>>>8&255]^jt[t>>>16&255]^Ct[t>>>24&255]^It[255&r]^Ut[r>>>8&255]^Tt[r>>>16&255]^Ot[r>>>24&255]}}for(;n<r;n++)e=e>>>8^Ot[255&(e^t[n])];this.o=e}get(){return~this.o}}class Bt extends TransformStream{constructor(){let t;const e=new _t;super({transform(t,r){e.append(t),r.enqueue(t)},flush(){const r=new Uint8Array(4);new DataView(r.buffer).setUint32(0,e.get()),t.value=r}}),t=this}}function Pt(t){if(typeof TextEncoder==T){t=unescape(encodeURIComponent(t));const e=new Uint8Array(t.length);for(let r=0;r<e.length;r++)e[r]=t.charCodeAt(r);return e}return(new TextEncoder).encode(t)}const Wt={concat(t,e){if(0===t.length||0===e.length)return t.concat(e);const r=t[t.length-1],n=Wt.l(r);return 32===n?t.concat(e):Wt.m(e,n,0|r,t.slice(0,t.length-1))},bitLength(t){const e=t.length;if(0===e)return 0;const r=t[e-1];return 32*(e-1)+Wt.l(r)},h(t,e){if(32*t.length<e)return t;const r=(t=t.slice(0,Math.ceil(e/32))).length;return e&=31,r>0&&e&&(t[r-1]=Wt.v(e,t[r-1]&2147483648>>e-1,1)),t},v:(t,e,r)=>32===t?e:(r?0|e:e<<32-t)+1099511627776*t,l:t=>Math.round(t/1099511627776)||32,m(t,e,r,n){for(void 0===n&&(n=[]);e>=32;e-=32)n.push(r),r=0;if(0===e)return n.concat(t);for(let a=0;a<t.length;a++)n.push(r|t[a]>>>e),r=t[a]<<32-e;const a=t.length?t[t.length-1]:0,o=Wt.l(a);return n.push(Wt.v(e+o&31,e+o>32?r:n.pop(),1)),n}},Lt={bytes:{S(t){const e=Wt.bitLength(t)/8,r=new Uint8Array(e);let n;for(let a=0;a<e;a++)3&a||(n=t[a/4]),r[a]=n>>>24,n<<=8;return r},A(t){const e=[];let r,n=0;for(r=0;r<t.length;r++)n=n<<8|t[r],3&~r||(e.push(n),n=0);return 3&r&&e.push(Wt.v(8*(3&r),n)),e}}},qt=class{constructor(t){const e=this;e.blockSize=512,e.R=[1732584193,4023233417,2562383102,271733878,3285377520],e.D=[1518500249,1859775393,2400959708,3395469782],t?(e.F=t.F.slice(0),e.O=t.O.slice(0),e.T=t.T):e.reset()}reset(){const t=this;return t.F=t.R.slice(0),t.O=[],t.T=0,t}update(t){const e=this;"string"==typeof t&&(t=Lt.U.A(t));const r=e.O=Wt.concat(e.O,t),n=e.T,a=e.T=n+Wt.bitLength(t);if(a>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const o=new Uint32Array(r);let s=0;for(let t=e.blockSize+n-(e.blockSize+n&e.blockSize-1);t<=a;t+=e.blockSize)e.I(o.subarray(16*s,16*(s+1))),s+=1;return r.splice(0,16*s),e}C(){const t=this;let e=t.O;const r=t.F;e=Wt.concat(e,[Wt.v(1,1)]);for(let t=e.length+2;15&t;t++)e.push(0);for(e.push(Math.floor(t.T/4294967296)),e.push(0|t.T);e.length;)t.I(e.splice(0,16));return t.reset(),r}j(t,e,r,n){return t<=19?e&r|~e&n:t<=39?e^r^n:t<=59?e&r|e&n|r&n:t<=79?e^r^n:void 0}M(t,e){return e<<t|e>>>32-t}I(t){const e=this,r=e.F,n=Array(80);for(let e=0;e<16;e++)n[e]=t[e];let a=r[0],o=r[1],s=r[2],i=r[3],c=r[4];for(let t=0;t<=79;t++){t>=16&&(n[t]=e.M(1,n[t-3]^n[t-8]^n[t-14]^n[t-16]));const r=e.M(5,a)+e.j(t,o,s,i)+c+n[t]+e.D[Math.floor(t/20)]|0;c=i,i=s,s=e.M(30,o),o=a,a=r}r[0]=r[0]+a|0,r[1]=r[1]+o|0,r[2]=r[2]+s|0,r[3]=r[3]+i|0,r[4]=r[4]+c|0}},Zt={importKey:t=>new Zt.N(Lt.bytes.A(t)),_(t,e,r,n){if(r=r||1e4,n<0||r<0)throw new Error("invalid params to pbkdf2");const a=1+(n>>5)<<2;let o,s,i,c,l;const d=new ArrayBuffer(a),f=new DataView(d);let u=0;const p=Wt;for(e=Lt.bytes.A(e),l=1;u<(a||1);l++){for(o=s=t.encrypt(p.concat(e,[l])),i=1;i<r;i++)for(s=t.encrypt(s),c=0;c<s.length;c++)o[c]^=s[c];for(i=0;u<(a||1)&&i<o.length;i++)f.setInt32(u,o[i]),u+=4}return d.slice(0,n/8)},N:class{constructor(t){const e=this,r=e.B=qt,n=[[],[]];e.P=[new r,new r];const a=e.P[0].blockSize/32;t.length>a&&(t=(new r).update(t).C());for(let e=0;e<a;e++)n[0][e]=909522486^t[e],n[1][e]=1549556828^t[e];e.P[0].update(n[0]),e.P[1].update(n[1]),e.W=new r(e.P[0])}reset(){const t=this;t.W=new t.B(t.P[0]),t.L=!1}update(t){this.L=!0,this.W.update(t)}digest(){const t=this,e=t.W.C(),r=new t.B(t.P[1]).update(e).C();return t.reset(),r}encrypt(t){if(this.L)throw new Error("encrypt on already updated hmac called!");return this.update(t),this.digest(t)}}},Vt=typeof crypto!=T&&typeof crypto.getRandomValues==U,Ht="Invalid password",Gt="Invalid authentication code",Kt="zipjs-abort-check-password",Yt="Crypto API not supported";function Xt(t){if(Vt)return crypto.getRandomValues(t);throw new Error(Yt)}const Jt=16,Qt={name:"PBKDF2"},$t=Object.assign({hash:{name:"HMAC"}},Qt),te=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},Qt),ee=["deriveBits"],re=[8,12,16],ne=[16,24,32],ae=10,oe=[0,0,0,0],se=typeof crypto!=T,ie=se&&crypto.subtle,ce=se&&typeof ie!=T,le=Lt.bytes,de=class{constructor(t){const e=this;e.Z=[[[],[],[],[],[]],[[],[],[],[],[]]],e.Z[0][0][0]||e.V();const r=e.Z[0][4],n=e.Z[1],a=t.length;let o,s,i,c=1;if(4!==a&&6!==a&&8!==a)throw new Error("invalid aes key size");for(e.D=[s=t.slice(0),i=[]],o=a;o<4*a+28;o++){let t=s[o-1];(o%a===0||8===a&&o%a===4)&&(t=r[t>>>24]<<24^r[t>>16&255]<<16^r[t>>8&255]<<8^r[255&t],o%a===0&&(t=t<<8^t>>>24^c<<24,c=c<<1^283*(c>>7))),s[o]=s[o-a]^t}for(let t=0;o;t++,o--){const e=s[3&t?o:o-4];i[t]=o<=4||t<4?e:n[0][r[e>>>24]]^n[1][r[e>>16&255]]^n[2][r[e>>8&255]]^n[3][r[255&e]]}}encrypt(t){return this.H(t,0)}decrypt(t){return this.H(t,1)}V(){const t=this.Z[0],e=this.Z[1],r=t[4],n=e[4],a=[],o=[];let s,i,c,l;for(let t=0;t<256;t++)o[(a[t]=t<<1^283*(t>>7))^t]=t;for(let d=s=0;!r[d];d^=i||1,s=o[s]||1){let o=s^s<<1^s<<2^s<<3^s<<4;o=o>>8^255&o^99,r[d]=o,n[o]=d,l=a[c=a[i=a[d]]];let f=16843009*l^65537*c^257*i^16843008*d,u=257*a[o]^16843008*o;for(let r=0;r<4;r++)t[r][d]=u=u<<24^u>>>8,e[r][o]=f=f<<24^f>>>8}for(let r=0;r<5;r++)t[r]=t[r].slice(0),e[r]=e[r].slice(0)}H(t,e){if(4!==t.length)throw new Error("invalid aes block size");const r=this.D[e],n=r.length/4-2,a=[0,0,0,0],o=this.Z[e],s=o[0],i=o[1],c=o[2],l=o[3],d=o[4];let f,u,p,m=t[0]^r[0],w=t[e?3:1]^r[1],h=t[2]^r[2],y=t[e?1:3]^r[3],b=4;for(let t=0;t<n;t++)f=s[m>>>24]^i[w>>16&255]^c[h>>8&255]^l[255&y]^r[b],u=s[w>>>24]^i[h>>16&255]^c[y>>8&255]^l[255&m]^r[b+1],p=s[h>>>24]^i[y>>16&255]^c[m>>8&255]^l[255&w]^r[b+2],y=s[y>>>24]^i[m>>16&255]^c[w>>8&255]^l[255&h]^r[b+3],b+=4,m=f,w=u,h=p;for(let t=0;t<4;t++)a[e?3&-t:t]=d[m>>>24]<<24^d[w>>16&255]<<16^d[h>>8&255]<<8^d[255&y]^r[b++],f=m,m=w,w=h,h=y,y=f;return a}},fe=class{constructor(t,e){this.G=t,this.K=e,this.Y=e}reset(){this.Y=this.K}update(t){return this.X(this.G,t,this.Y)}J(t){if(255&~(t>>24))t+=1<<24;else{let e=t>>16&255,r=t>>8&255,n=255&t;255===e?(e=0,255===r?(r=0,255===n?n=0:++n):++r):++e,t=0,t+=e<<16,t+=r<<8,t+=n}return t}$(t){0===(t[0]=this.J(t[0]))&&(t[1]=this.J(t[1]))}X(t,e,r){let n;if(!(n=e.length))return[];const a=Wt.bitLength(e);for(let a=0;a<n;a+=4){this.$(r);const n=t.encrypt(r);e[a]^=n[0],e[a+1]^=n[1],e[a+2]^=n[2],e[a+3]^=n[3]}return Wt.h(e,a)}},ue=Zt.N;let pe=se&&ce&&typeof ie.importKey==U,me=se&&ce&&typeof ie.deriveBits==U;class we extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r,checkPasswordOnly:n,checkAuthenticationCode:a=!0}){super({start(){ye(this,t,e,r)},async transform(t,e){const r=this,{password:a,strength:o,et:s,ready:i}=r;a?(await async function(t,e,r,n){const a=await ge(t,e,r,Ee(n,0,re[e])),o=Ee(n,re[e]);if(a[0]!=o[0]||a[1]!=o[1])throw new Error(Ht)}(r,o,a,Ee(t,0,re[o]+2)),t=Ee(t,re[o]+2),n?e.error(new Error(Kt)):s()):await i;const c=new Uint8Array(t.length-ae-(t.length-ae)%Jt);e.enqueue(be(r,t,c,0,ae,!0))},async flush(t){const{nt:e,ot:r,st:n,ready:o}=this;if(r&&e){await o;const s=Ee(n,0,n.length-ae),i=Ee(n,n.length-ae);let c=j;if(s.length){const t=Se(le,s);r.update(t);const n=e.update(t);c=ve(le,n)}const l=Ee(ve(le,r.digest()),0,ae);let d=n.length<ae?1:0;for(let t=0;t<ae;t++)d|=l[t]^i[t];if(d&&a)throw new Error(Gt);t.enqueue(c)}}})}}class he extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r}){super({start(){ye(this,t,e,r)},async transform(t,e){const r=this,{password:n,strength:a,et:o,ready:s}=r;let i=j;n?(i=await async function(t,e,r){const n=Xt(new Uint8Array(re[e]));return At(n,await ge(t,e,r,n))}(r,a,n),o()):await s;const c=new Uint8Array(i.length+t.length-t.length%Jt);c.set(i,0),e.enqueue(be(r,t,c,i.length,0))},async flush(t){const{nt:e,ot:r,st:n,ready:a}=this;if(r&&e){await a;let o=j;if(n.length){const t=e.update(Se(le,n));r.update(t),o=ve(le,t)}const s=ve(le,r.digest()).slice(0,ae);t.enqueue(At(o,s))}}})}}function ye(t,e,r,n){Object.assign(t,{ready:new Promise(e=>t.et=e),password:xe(e,r),strength:n-1,st:j})}function be(t,e,r,n,a,o){const{nt:s,ot:i,st:c}=t;c.length&&(e=At(c,e));const l=e.length-a;let d;for(r=function(t,e){if(e&&e>t.length){const r=t;(t=new Uint8Array(e)).set(r,0)}return t}(r,n+(l-l%Jt)),d=0;d<=l-Jt;d+=Jt){const t=Se(le,Ee(e,d,d+Jt));o&&i.update(t);const a=s.update(t);o||i.update(a),r.set(ve(le,a),d+n)}return t.st=Ee(e,d),r}async function ge(t,e,r,n){t.password=null;const a=await async function(t,e,r,n,a){if(!pe)return Zt.importKey(e);try{return await ie.importKey("raw",e,r,!1,a)}catch{return pe=!1,Zt.importKey(e)}}(0,r,$t,0,ee),o=await async function(t,e,r){if(!me)return Zt._(e,t.salt,te.iterations,r);try{return await ie.deriveBits(t,e,r)}catch{return me=!1,Zt._(e,t.salt,te.iterations,r)}}(Object.assign({salt:n},te),a,8*(2*ne[e]+2)),s=new Uint8Array(o),i=Se(le,Ee(s,0,ne[e])),c=Se(le,Ee(s,ne[e],2*ne[e])),l=Ee(s,2*ne[e]);return Object.assign(t,{keys:{key:i,it:c,passwordVerification:l},nt:new fe(new de(i),Array.from(oe)),ot:new ue(c)}),l}function xe(t,e){return e===F?Pt(t):e}function Ee(t,e,r){return t.subarray(e,r)}function ve(t,e){return t.S(e)}function Se(t,e){return t.A(e)}class ze extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r,checkPasswordOnly:n}){super({start(){Ae(this,t,e,r)},transform(t,e){const r=this;if(r.password||r.rawPassword){const e=Re(r,t.subarray(0,12));if(r.password=r.rawPassword=null,0!=(e[11]^r.passwordVerification))throw new Error(Ht);t=t.subarray(12)}n?e.error(new Error(Kt)):e.enqueue(Re(r,t))}})}}class ke extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r}){super({start(){Ae(this,t,e,r)},transform(t,e){const r=this;let n,a;if(r.password||r.rawPassword){r.password=r.rawPassword=null;const e=Xt(new Uint8Array(12));e[11]=r.passwordVerification,n=new Uint8Array(t.length+e.length),n.set(De(r,e),0),a=12}else n=new Uint8Array(t.length),a=0;n.set(De(r,t),a),e.enqueue(n)}})}}function Ae(t,e,r,n){Object.assign(t,{password:e,rawPassword:r,passwordVerification:n}),function(t,e,r){const n=[305419896,591751049,878082192];if(Object.assign(t,{keys:n,ct:new _t(n[0]),lt:new _t(n[2])}),r)for(let e=0;e<r.length;e++)Fe(t,r[e]);else for(let r=0;r<e.length;r++)Fe(t,e.charCodeAt(r))}(t,e,r)}function Re(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Oe(t)^e[n],Fe(t,r[n]);return r}function De(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Oe(t)^e[n],Fe(t,e[n]);return r}function Fe(t,e){let[,r]=t.keys;t.ct.append([e]);const n=~t.ct.get();r=Ue(Math.imul(Ue(r+Te(n)),134775813)+1),t.lt.append([r>>>24]);const a=~t.lt.get();t.keys=[n,r,a]}function Oe(t){const e=2|t.keys[2];return Te(Math.imul(e,1^e)>>>8)}function Te(t){return 255&t}function Ue(t){return 4294967295&t}function Ie(t){if(t instanceof ReadableStream)return t;const e=t.getReader();return new ReadableStream({async pull(t){const{value:r,done:n}=await e.read();n?t.close():t.enqueue(r)},cancel:t=>e.cancel(t)})}function Ce(t,e){t=Ie(t);const r=e?{type:e}:{};if(typeof Blob.prototype.stream!=U||new Blob([]).stream()instanceof ReadableStream)return new Response(t).blob().then(t=>e?new Blob([t],r):t);const n=[];return t.pipeTo(new WritableStream({write(t){n.push(t)}})).then(()=>new Blob(n,r))}function je(t){if(t instanceof WritableStream)return t;const e=t.getWriter();return new WritableStream({write:t=>e.write(t),close:()=>e.close(),abort:t=>e.abort(t)})}const Me="Invalid codec definition",Ne="Reserved compression method",_e="Invalid codec module",Be="Compression method not supported",Pe=[0,8,9,99],We=new Map,Le=new Map;function qe(t={}){const{compressionMethod:r,format:n,codecURI:a,CompressionStream:o,DecompressionStream:s,versionNeeded:i}=t;if(!Number.isInteger(r)||r<0||r>e||typeof n!=C||!n.length)throw new Error(Me);if(Pe.includes(r))throw new Error(Ne);const c=typeof o==U||typeof s==U;if(!(c||typeof a==C&&a.length))throw new Error(Me);We.set(r,{compressionMethod:r,format:n,codecURI:a,versionNeeded:i}),c&&Ke(n,{CompressionStream:o,DecompressionStream:s})}function Ze(t){const e=We.get(t);if(e){let r;We.delete(t),We.forEach(t=>r=r||t.format==e.format),r||Le.delete(e.format)}}function Ve(t){return We.get(t)}function He(){return Array.from(We.values(),t=>Object.assign({},t,Le.get(t.format)))}function Ge(t){return Le.get(t)}function Ke(t,e){const{CompressionStream:r,DecompressionStream:n}=e;if(typeof r!=U&&typeof n!=U)throw new Error(_e);Le.set(t,{CompressionStream:r,DecompressionStream:n})}const Ye="Invalid uncompressed size",Xe="Invalid compressed data",Je="Invalid CRC32",Qe="deflate-raw",$e="deflate64-raw",tr="gzip",er=[31,139,8];class rr extends TransformStream{constructor(t,{chunkSize:e,CompressionStreamFallback:r,CompressionStream:n}){super({});const{compressed:a,encrypted:o,useCompressionStream:s,zipCrypto:i,computeCrc32:c,level:l,deflate64:d,format:f,compressionMethod:u,inputSize:p}=t,m=this;let w,h,y,b=super.readable;const g=f&&Ge(f),x=c&&a&&!d&&!g&&(!o||i)&&Boolean(s&&n);if(o&&!i||!c||x||(w=new Bt,b=fr(b,w)),a)if(g)b=ur(b,lr(g.CompressionStream,f,{level:l,chunkSize:e,compressionMethod:u,uncompressedSize:p}));else if(x)y=new nr,b=ur(b,new n(tr)),b=fr(b,y);else try{b=dr(b,s,{level:l,chunkSize:e},n,r)}catch(t){let e;try{e=new n(tr)}catch{throw t}b=ur(b,e),b=fr(b,new nr)}o&&(i?b=fr(b,new ke(t)):(h=new he(t),b=fr(b,h))),cr(m,b,()=>{o&&!i||!c||(m.crc32=x?y.crc32:new DataView(w.value.buffer).getUint32(0))})}}class nr extends TransformStream{constructor(){let t,e=10,r=new Uint8Array(0);super({transform(t,n){if(e){const r=Math.min(e,t.length);if(e-=r,!(t=t.subarray(r)).length)return}const a=r.length+t.length;if(a<=8)return void(r=At(r,t));const o=a-8,s=Math.min(o,r.length);n.enqueue(At(r.subarray(0,s),t.subarray(0,o-s))),r=At(r.subarray(s),t.subarray(o-s))},flush(){const e=Dt(r);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class ar extends TransformStream{constructor(t,{chunkSize:e,DecompressionStreamFallback:r,DecompressionStream:n}){super({});const{zipCrypto:a,encrypted:o,checkCrc32:s,crc32:i,compressed:c,useCompressionStream:l,deflate64:d,format:f,compressionMethod:u,rawBitFlag:p,outputSize:m}=t;let w,h,y=super.readable;if(o&&(a?y=fr(y,new ze(t)):(h=new we(t),y=fr(y,h))),c){const t=f&&Ge(f);if(t)y=ur(y,lr(t.DecompressionStream,f,{chunkSize:e,compressionMethod:u,rawBitFlag:p,uncompressedSize:m}));else try{y=dr(y,l,{chunkSize:e,deflate64:d},n,r)}catch(t){if(d||m===F)throw t;let e;try{e=new n(tr)}catch{throw t}y=function(t,e,r){const n=new _t;let a,o,s,i=0,c=!1;const l=new Promise((t,e)=>{o=t,s=e});l.catch(()=>{}),r||o();const d=new TransformStream({start(t){const e=new Uint8Array(10);e.set(er),t.enqueue(e)},transform(t,e){e.enqueue(t)},async flush(t){c=!0,u();try{await l}finally{p()}const e=new Uint8Array(8),a=Dt(e);a.setUint32(0,n.get(),!0),a.setUint32(4,r,!0),t.enqueue(e)},cancel(t){s(t)}}),f=new TransformStream({transform(t,e){n.append(t),i+=t.length,i>=r?o():c&&u(),e.enqueue(t)},cancel(t){s(t)}});return t=fr(t,d),fr(t=ur(t,e),f);function u(){p(),a=setTimeout(()=>s(new Error(Ye)),5e3)}function p(){clearTimeout(a)}}(y,e,m)}y=function(t){const e=t.getReader();return new ReadableStream({async pull(t){let r;try{r=await e.read()}catch(t){if(t&&t.message)throw t;const e=new Error(Xe);throw e.cause=t,e}const{value:n,done:a}=r;a?t.close():t.enqueue(n)},cancel:t=>e.cancel(t)})}(y)}s&&(w=new Bt,y=fr(y,w)),cr(this,y,()=>{if(s){const t=new DataView(w.value.buffer);if(i!=t.getUint32(0,!1))throw new Error(Je)}})}}const or=new Map;function sr(t,e){if(!t)return!1;let r=or.get(t);r||(r=new Map,or.set(t,r));let n=r.get(e);if(n===F){try{new t(e),n=!0}catch{n=!1}r.set(e,n)}return n}function ir(t){return sr(t,Qe)}function cr(t,e,r){e=fr(e,new TransformStream({flush:r})),Object.defineProperty(t,"readable",{get:()=>e})}function lr(t,e,r){if(!t)throw new Error(Be);return new t(e,r)}function dr(t,e,r,n,a){const o=e&&n?n:a||n,s=r.deflate64?$e:Qe;let i;try{i=new o(s,r)}catch(t){if(!e||!a||o==a)throw t;i=new a(s,r)}return ur(t,i)}function fr(t,e){return Ie(t).pipeThrough(e)}function ur(t,e){const r=e.writable.getWriter(),n=t.getReader();return async function(){try{for(;;){await r.ready;const t=await n.read();if(t.done){await r.close();break}await r.write(t.value)}}catch(t){await async function(t,e){try{await t.abort(e)}catch{}}(r,t),await async function(t,e){try{await t.cancel(e)}catch{}}(n,t)}}(),e.readable}const pr="data",mr="deflate",wr="inflate";class hr extends TransformStream{constructor(t,e){super({});const r=this,{codecType:n}=t;let a;n.startsWith(mr)?a=rr:n.startsWith(wr)&&(a=ar),r.outputSize=0;let o=0;const s=new a(t,e),i=super.readable,c=new TransformStream({transform(t,e){t&&t.length&&(o+=t.length,e.enqueue(t))},flush(){Object.assign(r,{inputSize:o})}}),l=new TransformStream({transform(e,n){if(e&&e.length&&(n.enqueue(e),r.outputSize+=e.length,t.outputSize!==F&&r.outputSize>t.outputSize))throw new Error(Ye)},flush(){const{crc32:t}=s;Object.assign(r,{crc32:t,inputSize:o})}});Object.defineProperty(r,"readable",{get:()=>i.pipeThrough(c).pipeThrough(s).pipeThrough(l)})}}class yr extends TransformStream{constructor(t){const e=[];let r=0;function n(){const n=new Uint8Array(t);let a=0;for(;a<t;){const r=e[0],o=t-a;r.length<=o?(n.set(r,a),a+=r.length,e.shift()):(n.set(r.subarray(0,o),a),e[0]=r.subarray(o),a+=o)}return r-=t,n}(!Number.isFinite(t)||t<1)&&(t=65536),super({transform(a,o){for(e.push(a),r+=a.length;r>t;)o.enqueue(n())},flush(t){r&&t.enqueue(function(t,e){const r=new Uint8Array(e);let n=0;for(const e of t)r.set(e,n),n+=e.length;return r}(e,r))}})}}const br="Worker startup timeout";let gr,xr,Er,vr=()=>{};async function Sr(t){const{CompressionStream:e,CompressionStreamFallback:r}=t;if(r&&!r.ft)return!0;if(ir(e)||sr(e,tr))return!0;if(r)try{return await vr(t),!0}catch{return!1}return!1}function zr(t){t.createWorker?xr=!0:gr=!1}class kr{constructor(t,{readable:e,writable:r},{options:n,config:a,ut:o,useWebWorkers:s,transferStreams:i,workerURI:c,createWorker:l},d){const{signal:f}=o;return xr&&(l=F),Object.assign(t,{wt:!0,ht:(t.ht||0)+1,readable:e.pipeThrough(new yr(bt(a))).pipeThrough(new Ar(o),{signal:f}),writable:r,options:Object.assign({},n),workerURI:c,createWorker:l,transferStreams:i,terminate:()=>new Promise(e=>{const{yt:r,wt:n}=t;r?(n?t.bt=e:(r.terminate(),e()),t.gt=null):e()}),xt(){if(t.wt){const{bt:e}=t;e&&(t.bt=null,t.Et=!0,t.yt.terminate(),e()),t.wt=!1,d(t)}}}),gr===F&&(gr=typeof Worker!=T),(s&&Er&&(gr&&c||l)?Er:Dr)(t,a)}}class Ar extends TransformStream{constructor({onstart:t,onprogress:e,size:r,onend:n}){let a=0;super({async start(){t&&await Rr(t,r)},async transform(t,n){a+=t.length,e&&await Rr(e,a,r),n.enqueue(t)},async flush(){n&&await Rr(n,a)}})}}async function Rr(t,...e){try{await t(...e)}catch{}}function Dr(t,e){return{run:()=>Fr(t,e)}}async function Fr({options:t,readable:e,writable:r,xt:n},a){let o;try{if(t.compressed&&!t.format){const e=t.codecType.startsWith(mr),r=e?a.CompressionStreamFallback:a.DecompressionStreamFallback,n=e?a.CompressionStream:a.DecompressionStream;if(t.useCompressionStream){if(r&&r.ft&&!ir(n))try{await vr(a)}catch{}}else try{await vr(a)}catch{r&&!r.ft||(t.useCompressionStream=!0)}}o=new hr(t,a),await e.pipeThrough(o).pipeThrough(new yr(bt(a))).pipeTo(r,{preventClose:!0,preventAbort:!0});const{crc32:n,inputSize:s,outputSize:i}=o;return{crc32:n,inputSize:s,outputSize:i}}catch(t){throw o&&(t.outputSize=o.outputSize),t}finally{n()}}const Or={type:"module"},Tr="error";let Ur,Ir,Cr,jr=!0;try{jr=typeof structuredClone==U&&structuredClone(new DOMException("","AbortError")).code!==F}catch{}var Mr;function Nr(t){const{reader:e}=t;e&&e.releaseLock(),t.reader=null,t.writer=null}function _r(t){const{yt:e}=t;if(e)try{e.terminate()}catch{}t.gt=null}function Br(t,e,r,n,a=!0){const{createWorker:o}=r;let s,i,c;if(o)s=o();else if(Ir===F||Ur!==t){const o=typeof t==U;i=o?t(a):t;const l=i.startsWith("data:"),d=i.startsWith("blob:");if(l||d){n===F&&(n=!1),n&&(c=Or);try{s=new Worker(i,c)}catch(a){if(d)try{URL.revokeObjectURL(i)}catch{}if(o&&d)return Br(t,e,r,n,!1);if(n)throw a;return Br(t,e,r,!0,!1)}}else{n===F&&(n=!0),n&&(c=Or);try{i=new URL(i,e)}catch{}try{s=new Worker(i,c)}catch(o){if(n)return Br(t,e,r,!1,a);throw o}}Ur=t,Ir=i,Cr=c}else s=new Worker(Ir,Cr);return s.addEventListener("message",t=>{r.vt=!0,Pr(r),async function({data:t},e){const{type:r,value:n,messageId:a,result:o,error:s}=t,{reader:i,writer:c,St:l,zt:d,xt:f,ht:u}=e,p=()=>e.ht!=u;try{if(s){const{message:t,stack:e,code:r,name:n,outputSize:a,cause:o,codecImportFailed:i}=s,c=new Error(t);Object.assign(c,{stack:e,code:r,name:n,outputSize:a}),o&&(c.cause=Object.assign(new Error(o.message),{name:o.name})),i&&(c.codecImportFailed=!0),m(c)}else{if("pull"==r){const{value:t,done:r}=await i.read();p()||Lr({type:pr,value:t,done:r,messageId:a},e)}r==pr&&(await c.ready,await c.write(new Uint8Array(n)),p()||Lr({type:"ack",messageId:a},e)),"close"==r&&m(null,o)}}catch(s){p()||(_r(e),m(s))}function m(t,e){p()||(t?d(t):l(e),c&&c.releaseLock(),t&&t.codecImportFailed||f())}}(t,r)}),s.addEventListener(Tr,t=>Wr(t,r)),s.addEventListener("messageerror",t=>Wr(t,r)),s}function Pr(t){const{kt:e}=t;e&&(clearTimeout(e),t.kt=null)}function Wr(t,e){t.preventDefault&&t.preventDefault(),Pr(e);const{vt:r,zt:n,writer:a,xt:o}=e;_r(e),r||(e.yt=null);let s=t.error||new Error(t.message||Tr);r||(s=Object.assign(new Error(s.message||Tr),{At:!0}),e.Rt=s),n&&(n(s),a&&a.releaseLock(),r&&o())}function Lr(t,{yt:e,writer:r,transferStreams:n,vt:a}){try{const{value:r,readable:o,writable:s}=t,i=[];if(r&&(t.value=Rt(r),i.push(t.value.buffer)),n&&jr&&a?(o&&i.push(o),s&&i.push(s)):t.readable=t.writable=null,i.length)try{return e.postMessage(t,i),!0}catch{jr=!1,t.readable=t.writable=null,e.postMessage(t)}else e.postMessage(t)}catch(t){throw r&&r.releaseLock(),t}}Mr=function(t,e){const{baseURI:r,chunkSize:n,workerStartupTimeout:a}=e;let{wasmURI:o}=e;if(!t.gt){let s;typeof o==U&&(o=o());try{s=Br(t.workerURI,r,t)}catch{return zr(t),Dr(t,e)}Object.assign(t,{yt:s,vt:!1,Et:!1,Rt:null,gt:{run:async()=>{try{return await async function(t,e){if(!t.yt){const{Rt:e}=t;t.Rt=null;const r=e||new Error(br);throw r.At=!0,r}let r,n;const a=new Promise((t,e)=>{r=t,n=e});Object.assign(t,{reader:null,writer:null,St:r,zt:n,result:a});const{readable:o,options:s}=t,{writable:i,closed:c,Dt:l}=function(t){const e=new AbortController,{writable:r,readable:n}=new TransformStream,a=n.pipeTo(t,{preventClose:!0,preventAbort:!0,signal:e.signal});return a.catch(()=>{}),{writable:r,closed:a,Dt:()=>e.abort()}}(t.writable);let d;try{d=Lr({type:"start",options:s,config:e,readable:o,writable:i},t)}catch(e){l();try{await c}catch{}throw t.xt(),e}d||Object.assign(t,{reader:o.getReader(),writer:i.getWriter()});const{workerStartupTimeout:f}=e;!t.vt&&Number.isFinite(f)&&f>=0&&(t.kt=setTimeout(()=>function(t){if(t.kt=null,t.vt)return;const{zt:e,writer:r}=t;if(_r(t),t.yt=null,e){const t=new Error(br);t.At=!0,e(t),r&&r.releaseLock()}}(t),f));try{const t=await a;return await u(),await c,t}catch(t){await u(),l();try{await c}catch{}throw t}async function u(){if(!d&&!i.locked)try{await i.getWriter().close()}catch{}}}(t,{chunkSize:n,wasmURI:o,baseURI:r,workerStartupTimeout:a})}catch(r){if(r&&r.At)return zr(t),Nr(t),Fr(t,e);if(r&&r.codecImportFailed){if(t.reader)return Nr(t),Fr(t,e);t.xt()}throw r}}}})}return t.gt},Er=Mr;let qr=[];const Zr=[];let Vr,Hr,Gr=0;async function Kr(t,e){const{options:r,config:n}=e,{transferStreams:a,useWebWorkers:o,useCompressionStream:s,compressed:i,checkCrc32:c,computeCrc32:l,encrypted:d,format:f,codecURI:u}=r,{workerURI:p,createWorker:m,maxWorkers:w}=n;f&&(u&&(r.codecURI=function(t,e){try{return new URL(t,e).toString()}catch{return t}}(u,n.baseURI)),await async function(t,e){!Le.has(t)&&e&&Ke(t,await(import(/* webpackIgnore: true */ /* @vite-ignore */e)))}(f,r.codecURI)),e.transferStreams=!f&&(a||a===F&&n.transferStreams);const h=!(i||c||l||d),y=f===F||Boolean(r.codecURI);return e.useWebWorkers=!h&&y&&(o||o===F&&n.useWebWorkers),e.workerURI=e.useWebWorkers&&p?p:F,e.createWorker=e.useWebWorkers&&m?m:F,r.useCompressionStream=s||s===F&&n.useCompressionStream,(await async function(){const r=qr.find(t=>!t.wt);if(r)return $r(r),new kr(r,t,e,b);if(qr.length<w){const r={Ft:Gr};return Gr++,qr.push(r),new kr(r,t,e,b)}return new Promise(r=>{Zr.push({resolve:r,stream:t,Ot:e}),Hr=n.workerStarvationTimeout,Yr()})}()).run();function b(t){if(Xr(),Zr.length){const[{resolve:e,stream:r,Ot:n}]=Zr.splice(0,1);e(new kr(t,r,n,b)),Yr()}else t.yt?($r(t),function(t,e){const{config:r}=e,{terminateWorkerTimeout:n}=r;Number.isFinite(n)&&n>=0&&(t.Et?t.Et=!1:t.Tt=setTimeout(async()=>{qr=qr.filter(e=>e!=t);try{await t.terminate()}catch{}},n))}(t,e)):qr=qr.filter(e=>e!=t)}}function Yr(){!Vr&&Zr.length&&Number.isFinite(Hr)&&Hr>=0&&(Vr=setTimeout(Jr,Hr))}function Xr(){Vr&&(clearTimeout(Vr),Vr=null)}function Jr(){if(Vr=null,Zr.length){const[{resolve:t,stream:e,Ot:r}]=Zr.splice(0,1),n=Object.assign({},r,{useWebWorkers:!1,workerURI:F,createWorker:F});t(new kr({},e,n,Qr)),Yr()}}function Qr(){Xr(),Yr()}function $r(t){const{Tt:e}=t;e&&(clearTimeout(e),t.Tt=null)}const tn="\0\u263a\u263b\u2665\u2666\u2663\u2660\u2022\u25d8\u25cb\u25d9\u2642\u2640\u266a\u266b\u263c\u25ba\u25c4\u2195\u203c\xb6\xa7\u25ac\u21a8\u2191\u2193\u2192\u2190\u221f\u2194\u25b2\u25bc !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xa2\xa3\xa5\u20a7\u0192\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\u2310\xac\xbd\xbc\xa1\xab\xbb\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255d\u255c\u255b\u2510\u2514\u2534\u252c\u251c\u2500\u253c\u255e\u255f\u255a\u2554\u2569\u2566\u2560\u2550\u256c\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256b\u256a\u2518\u250c\u2588\u2584\u258c\u2590\u2580\u03b1\xdf\u0393\u03c0\u03a3\u03c3\xb5\u03c4\u03a6\u0398\u03a9\u03b4\u221e\u03c6\u03b5\u2229\u2261\xb1\u2265\u2264\u2320\u2321\xf7\u2248\xb0\u2219\xb7\u221a\u207f\xb2\u25a0\xa0".split("");function en(t,e){return rn(t,e,!0)}function rn(t,e,r){return e&&"cp437"==e.trim().toLowerCase()?function(t){let e="";for(let r=0;r<t.length;r++)e+=tn[t[r]];return e}(t):new TextDecoder(e,{ignoreBOM:r}).decode(t)}const nn="HTTP error ",an="HTTP Range not supported",on="HTTP resource changed",sn="Writer iterator completed too soon",cn="Writer not initialized",ln="Content-Range",dn="Range",fn="GET",un="bytes",pn=16777216,mn="writable",wn=Symbol();class hn{constructor(){this.size=0}init(){this.initialized=!0}}class yn extends hn{get readable(){return this.createReadable()}createReadable({offset:t=0,size:e,chunkSize:r=bt(yt())}={}){const n=this;let a=0;return r=gt(r),new ReadableStream({async pull(o){const s=e===F?r:Math.min(r,e-a),i=await ra(n,t+a,s);i.length&&(o.enqueue(i),a+=i.length),(e!==F&&a>=e||!i.length&&s)&&o.close()}})}}class bn extends hn{constructor(){super();const t=this,e=new WritableStream({write(e){if(!t.initialized)throw new Error(cn);return t.writeUint8Array(Rt(e))}});Object.defineProperty(t,mn,{get:()=>e})}writeUint8Array(){}}class gn extends yn{constructor(t){super();let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;Object.assign(this,{Ut:t,It:r,size:Math.floor(.75*(e-r))})}readUint8Array(t,e){const{It:r,Ut:n}=this,a=new Uint8Array(e),o=4*Math.floor(t/3),s=atob(n.substring(o+r,4*Math.ceil((t+e)/3)+r)),i=t-3*Math.floor(o/4);let c=0;for(let t=i;t<i+e&&t<s.length;t++)a[t-i]=s.charCodeAt(t),c++;return c<a.length?a.subarray(0,c):a}}class xn extends bn{constructor(t){super(),Object.assign(this,{contentType:t,data:"data:"+(t||"")+";base64,",Ct:""})}writeUint8Array(t){const e=this;let r,n=e.Ct;const a=e.Ct.length;for(e.Ct="",r=0;r<3*Math.floor((a+t.length)/3)-a;r++)n+=String.fromCharCode(t[r]);for(;r<t.length;r++)e.Ct+=String.fromCharCode(t[r]);n.length>2?e.data+=btoa(n):e.Ct=n+e.Ct}getData(){return this.data+btoa(this.Ct)}}let En,vn;class Sn extends yn{constructor(t){super(),Object.assign(this,{jt:t,size:t.size}),vn||(vn=(async()=>{try{const t=new Blob([new Uint8Array(3)]).slice(1,2).stream().getReader();let e=0,r=await t.read();for(;!r.done;)e+=r.value.length,r=await t.read();En=1==e}catch{En=!1}})())}createReadable(t){const{jt:e,size:r}=this,{offset:n=0,size:a=r-n}=t||{};return!n&&a>=r?Ie(e.stream()):En?Ie(e.slice(n,n+a).stream()):super.createReadable(t)}async readUint8Array(t,e){const r=this,n=t+e,a=!t&&n>=r.size?r.jt:r.jt.slice(t,n);let o=await a.arrayBuffer();return o.byteLength>e&&(o=o.slice(t,n)),new Uint8Array(o)}}class zn extends hn{constructor(t){super();const e=this,r=new TransformStream;Object.defineProperty(e,mn,{get:()=>r.writable}),e.contentType=t,e.Mt=Ce(r.readable,t),e.Mt.catch(()=>{})}getData(){return this.Mt}}class kn extends Sn{constructor(t){super(new Blob([t],{type:"text/plain"}))}}function An(t){let e=0;for(let r=0;r<t.length;r++){const n=t.charCodeAt(r);n<128?e+=1:n<2048?e+=2:n<55296||n>=57344?e+=3:n<56320&&56320==(64512&t.charCodeAt(r+1))?(e+=4,r++):e+=3}return e}class Rn extends zn{constructor(t){super(),Object.assign(this,{encoding:t,Nt:!t||"utf-8"==t.toLowerCase()})}async getData(){const{encoding:t,Nt:e}=this,r=await super.getData();return r.text&&e?r.text():function(t,e){return rn(t,e,!1)}(new Uint8Array(await r.arrayBuffer()),t)}}class Dn extends yn{constructor(t,e){super(),On(this,t,e)}async init(){await Tn(this,qn,Bn),super.init()}createReadable(t){const e=this,{useRangeHeader:r,forceRangeRequests:n,size:a}=e;if((r||n)&&a!==F){const{offset:r=0,size:n=a-r}=t||{};if(n>0&&r<a)return function(t,e,r){let n,a=e,o=0,s=r;return new ReadableStream({start:()=>i(),async pull(t){n||await i();const{value:e,done:r}=await n.read();if(r)throw new Error(an);const a=e.length>o?e.subarray(0,o):e;o-=a.length,s-=a.length,a.length&&t.enqueue(a),o||(await async function(){const t=n;n=F,await t.cancel()}(),s||t.close())},cancel:t=>n&&n.cancel(t)});async function i(){const e=Math.min(t.maximumRangeSize,s),r=await qn(fn,t,Nn(t,a,e));if(206!=r.status)throw new Error(an);const i=r.headers.get(ln);if(i){const t=Number(i.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=a)throw new Error(an)}Mn(t,r),jn(t,r),a+=e,o=e,n=r.body.getReader()}}(e,r,Math.min(n,a-r))}return super.createReadable(t)}readUint8Array(t,e){return Un(this,t,e,qn,Bn)}}class Fn extends yn{constructor(t,e){super(),On(this,t,e)}async init(){await Tn(this,Zn,Pn),super.init()}readUint8Array(t,e){return Un(this,t,e,Zn,Pn)}}function On(t,e,r){const{preventHeadRequest:n,useRangeHeader:a,forceRangeRequests:o,combineSizeEocd:s,checkResourceChanges:i=!0,maximumRangeSize:c=pn,fetch:l}=r;delete(r=Object.assign({},r)).preventHeadRequest,delete r.useRangeHeader,delete r.forceRangeRequests,delete r.combineSizeEocd,delete r.checkResourceChanges,delete r.maximumRangeSize,delete r.useXHR,delete r.fetch,Object.assign(t,{url:e,options:r,preventHeadRequest:n,useRangeHeader:a,forceRangeRequests:o,combineSizeEocd:s,checkResourceChanges:i,maximumRangeSize:c,fetch:l})}async function Tn(t,e,r){const{url:n,preventHeadRequest:a,useRangeHeader:o,forceRangeRequests:s,combineSizeEocd:i}=t;if(function(t){const{baseURI:e}=yt(),{protocol:r}=new URL(t,e);return"http:"==r||"https:"==r}(n)&&(o||s)&&(typeof a==T||a)){const n=await e(fn,t,Nn(t,i?-22:void 0)),a=n.headers.get("Accept-Ranges");if(!(s||a&&a.toLowerCase()==un))throw new Error(an);{if(i){const e=new Uint8Array(await n.arrayBuffer());206==n.status&&e.length==u&&(t._t=e)}jn(t,n);const a=In(n);a===F?await Ln(t,e,r):t.size=a}}else await Ln(t,e,r)}async function Un(t,e,r,n,a){const{useRangeHeader:o,forceRangeRequests:s,_t:i,size:c,options:l}=t;if(o||s){if(i&&e==c-u&&r==u)return i;if(e>=c||0===r)return j;{e+r>c&&(r=c-e);const a=await n(fn,t,Nn(t,e,r));if(206!=a.status)throw new Error(an);const o=a.headers.get(ln);if(o){const t=Number(o.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t)&&t!=e)throw new Error(an)}Mn(t,a),jn(t,a);const s=new Uint8Array(await a.arrayBuffer());if(s.length!=r)throw new Error(an);return s}}{const{data:n}=t;return n||await a(t,l),t.data.subarray(e,e+r)}}function In(t){const e=t.headers.get(ln);if(e){const t=e.trim().split(/\s*\/\s*/)[1];if(t&&"*"!=t){const e=Number(t);if(!Number.isNaN(e))return e}}}function Cn({headers:t}){return{Bt:t.get("Etag")||F,lastModified:t.get("Last-Modified")||F}}function jn(t,e){const{checkResourceChanges:r,Pt:n}=t;r&&!n&&206==e.status&&(t.Pt=Cn(e))}function Mn(t,e){const{checkResourceChanges:r,Pt:n,size:a}=t;if(r){const t=In(e);if(t!==F&&a!==F&&t!=a)throw new Error(on);if(n){const t=Cn(e);if(Object.entries(n).some(([e,r])=>r!==F&&t[e]!==F&&r!=t[e]))throw new Error(on)}}}function Nn(t,e=0,r=1){return Object.assign({},_n(t),{[dn]:un+"="+(e<0?e:e+"-"+(e+r-1))})}function _n({options:t}){const{headers:e}=t;if(e)return Symbol.iterator in e?Object.fromEntries(e):e}async function Bn(t){await Wn(t,qn)}async function Pn(t){await Wn(t,Zn)}async function Wn(t,e){const r=await e(fn,t,_n(t));t.data=new Uint8Array(await r.arrayBuffer()),t.size=t.data.length}async function Ln(t,e,r){if(t.preventHeadRequest)await r(t,t.options);else{const n=await e("HEAD",t,_n(t)),a=n.headers.get("Content-Length");a&&!n.headers.get("Content-Encoding")?t.size=Number(a):await r(t,t.options)}}async function qn(t,{fetch:e=fetch,options:r,url:n},a){const o=await e(n,Object.assign({},r,{method:t,headers:a}));if(o.status<400)return o;throw 416==o.status?new Error(an):new Error(nn+(o.statusText||o.status))}function Zn(t,{url:e},r){return new Promise((n,a)=>{const o=new XMLHttpRequest;if(o.addEventListener("load",()=>{if(o.status<400){const t=[];o.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(e=>{const r=e.trim().split(/\s*:\s*/);r[0]=r[0].trim().replace(/^[a-z]|-[a-z]/g,t=>t.toUpperCase()),t.push(r)}),n({status:o.status,arrayBuffer:()=>o.response,headers:new Map(t)})}else a(416==o.status?new Error(an):new Error(nn+(o.statusText||o.status)))},!1),o.addEventListener("error",t=>a(t.detail?t.detail.error:new Error("Network error")),!1),o.open(t,e),r)for(const t of Object.entries(r))o.setRequestHeader(t[0],t[1]);o.responseType="arraybuffer",o.send()})}class Vn extends yn{constructor(t,e={}){super(),Object.assign(this,{url:t,reader:e.useXHR&&!e.fetch?new Fn(t,e):new Dn(t,e)})}set size(t){}get size(){return this.reader.size}async init(){await this.reader.init(),super.init()}createReadable(t){return this.reader.createReadable(t)}readUint8Array(t,e){return this.reader.readUint8Array(t,e)}}class Hn extends Vn{constructor(t,e={}){super(t,Object.assign({},e,{useRangeHeader:!0}))}}class Gn extends yn{constructor(t){super(),t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),Object.assign(this,{Wt:t,size:t.length})}readUint8Array(t,e){return this.Wt.slice(t,t+e)}}class Kn extends bn{constructor(t){super(),this.Lt=t||262144}init(t=0){Object.assign(this,{offset:0,Wt:new Uint8Array(t>0?t:this.Lt)}),super.init()}writeUint8Array(t){const e=this,r=e.offset+t.length;if(r>e.Wt.length){let t=e.Wt.length?2*e.Wt.length:e.Lt;for(;t<r;)t*=2;const n=e.Wt;e.Wt=new Uint8Array(t),e.Wt.set(n)}e.Wt.set(t,e.offset),e.offset+=t.length}getData(){return this.offset===this.Wt.length?this.Wt:this.Wt.slice(0,this.offset)}}class Yn extends yn{constructor(t){super(),this.qt=t}async init(){const t=this;t.Zt=0;const e=t.qt=await Promise.all(t.qt.map(ea));t.Vt=e.map(e=>{const r=t.size;return t.size+=e.size,r}),super.init()}Ht(t){const{Vt:e,size:r}=this,n=e[t];return n===F?r:n}async readUint8Array(t,e){const r=this,{qt:n}=this;let a,o=0,s=t;for(;n[o]&&s>=n[o].size;)s-=n[o].size,o++;const i=n[o];if(i){const n=i.size;if(s+e<=n)a=await ra(i,s,e);else{const o=n-s;a=At(await ra(i,s,o),await r.readUint8Array(t+o,e-o))}}else a=j;return r.Zt=Math.max(o,r.Zt),a}}class Xn extends hn{constructor(t,e=4294967295){super();const r=this;let n,a,o;Object.assign(r,{diskNumber:0,diskOffset:0,size:0,maxSize:e,availableSize:e});const s=new WritableStream({async write(e){if(e===wn)return void(o&&await c());const{availableSize:s}=r;if(o)e.length>=s?(await i(e.subarray(0,s)),await c(),e.length>s&&await this.write(e.subarray(s))):await i(e);else{const{value:s,done:i}=await t.next();if(i&&!s)throw new Error(sn);n=s,n.size=0,n.maxSize&&(r.maxSize=n.maxSize),r.availableSize=r.maxSize,await ta(n),a=s.writable,o=a.getWriter(),await this.write(e)}},async close(){o&&(await o.ready,await l())},async abort(t){o&&await o.abort(t)}});async function i(t){const e=t.length;e&&(await o.ready,await o.write(t),n.size+=e,r.availableSize-=e)}async function c(){await l(),r.diskOffset+=n.size,r.diskNumber++,o=null,r.availableSize=r.maxSize}async function l(){await o.close()}Object.defineProperty(r,mn,{get:()=>s})}async closeDisk(){const t=this.writable.getWriter();try{await t.ready,await t.write(wn)}finally{t.releaseLock()}}}class Jn{constructor(t){return Array.isArray(t)&&(t=new Yn(t)),(t instanceof ReadableStream||typeof t.getReader==U)&&(t={readable:Ie(t)}),t}}class Qn{constructor(t){return t.writable===F&&typeof t.next==U&&(t=new Xn(t)),(t instanceof WritableStream||typeof t.getWriter==U)&&(t={writable:je(t)}),t.size===F&&(t.size=0),t}}function $n(t){return Boolean(t&&t.getData)}async function ta(t,e){if(!t.init||t.initialized)return Promise.resolve();await t.init(e)}async function ea(t){return t=new Jn(t),await ta(t),t.size!==F&&t.readUint8Array||(t=new Sn(await Ce(t.readable)),await ta(t)),t}function ra(t,e,r){return t.readUint8Array(e,r)}function na(t,e){return t.createReadable?t.createReadable(e):t.readUint8Array?yn.prototype.createReadable.call(t,e):t.readable}const aa="filename",oa="rawFilename",sa="comment",ia="rawComment",ca="uncompressedSize",la="compressedSize",da="offset",fa="diskNumberStart",ua="lastModDate",pa="rawLastModDate",ma="lastAccessDate",wa="rawLastAccessDate",ha="creationDate",ya="rawCreationDate",ba="internalFileAttributes",ga="externalFileAttributes",xa="msdosAttributesRaw",Ea="msdosAttributes",va="msDosCompatible",Sa="zip64",za="encrypted",ka="version",Aa="versionMadeBy",Ra="zipCrypto",Da="directory",Fa="executable",Oa="compressionMethod",Ta="signature",Ua="extraField",Ia="unixMode",Ca="setuid",ja="setgid",Ma="sticky",Na=[aa,oa,ca,la,ua,pa,sa,ia,ma,wa,ha,ya,da,fa,ba,ga,xa,Ea,va,Sa,za,ka,Aa,Ra,Da,Fa,"symlink",Oa,Ta,"crc32",Ua,"extraFieldUnix","extraFieldInfoZip","extraFieldUnixType1","extraFieldPkwareUnix","uid","gid",Ia,"unixExternalUpper",Ca,ja,Ma,"bitFlag","rawBitFlag","filenameLength","extraFieldLength","filenameUTF8","commentUTF8","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp","extraFieldUSDZ"];class _a{constructor(t){Na.forEach(e=>this[e]=t[e])}}const Ba="File format is not recognized",Pa="End of central directory not found",Wa="End of Zip64 central directory locator not found",La="Central directory header not found",qa="Local file header not found",Za="Zip64 extra field not found",Va="File contains encrypted entry",Ha="Encryption method not supported",Ga="Split zip file",Ka="Overlapping entry found",Ya="Entry data out of bounds",Xa="Ambiguous archive",Ja="Encrypted central directory is not supported",Qa="Unsafe filename",$a="Invalid strictness (must be 'strict', 'balanced' or 'tolerant')",to="Invalid filenameValidation (must be 'strict', 'balanced' or 'tolerant')",eo="Invalid maxAppendedDataSize (must be a number greater than or equal to 0)",ro="64-bit value exceeds Number.MAX_SAFE_INTEGER",no="unsorted central directory",ao="unknown version needed to extract",oo="compressed patched data",so="malformed extra field",io="unknown zip64 extensible data",co="wrapped entries count",lo="appended data",fo="prepended data",uo="prepended central directory",po="trailing central directory data",mo="duplicate filename",wo="mismatched zip64 end of central directory record",ho="mismatched local file header (general purpose bit flag)",yo="mismatched local file header (compression method)",bo="mismatched local file header (crc32 or sizes)",go=/^[a-zA-Z]:/,xo="utf-8",Eo="cp437",vo=[[ca,t],[la,t],[da,t],[fa,e]],So={[e]:{Gt:ss,bytes:4},[t]:{Gt:is,bytes:8}},zo=BigInt(Number.MAX_SAFE_INTEGER);class ko{constructor(t,e={}){Object.assign(this,{reader:new Jn(t),options:e,Kt:new Map})}async*getEntriesGenerator(n={}){const o=this;let{reader:s}=o;if(await ta(s),s.size!==F&&s.readUint8Array||(s=new Sn(await Ce(s.readable)),await ta(s)),s.size<u)throw new Error(Ba);const c=o.warnings=[],w=Lo(n,o.options),h=w==J,y=w!=$,b=Vo(ts(o,n,G),w),g=function(t,e){if(t===F)return e;if(!Wo(t))throw new Error(to);return t}(ts(o,n,"filenameValidation"),w),x=ts(o,n,"normalizeFilename"),{Yt:A,Xt:R}=await Ho(s,y,b);if(!A)throw await async function(t){return await Po(t)==a}(s)?new Error(Ga):new Error(Pa);y&&R>1&&$o("multiple end of central directory records");const D=Dt(A);let O=ss(D,12),T=ss(D,16);const U=A.offset,I=os(D,20),C=U+u+I,M=s.size-C;M>b&&$o(lo),M>0&&Qo(c,lo);let N=os(D,4);const _=s.Zt||0;let B,P,W,L,q,Z=os(D,6),V=os(D,10),H=0,K=m;const Q=T==t||O==t||V==e||Z==e;if(T!=t&&Z!=e&&(T+=Bo(s,Z)),Q){const r=A.offset>=p?await ra(s,A.offset-p,p):j,n=Dt(r);if(r.length==p&&ss(n,0)==d){T=Bo(s,ss(n,4))+is(n,8);let r=await ra(s,T,m),a=Dt(r);const o=A.offset-p-m;if((r.length<m||ss(a,0)!=l)&&T!=o&&o>=0){const t=T;T=o,T>t&&(H=T-t),r=await ra(s,T,m),a=Dt(r)}if(r.length<m||ss(a,0)!=l)throw new Error(Wa);if(W=!0,L=is(a,4)>44,L){const t=Math.min(is(a,4)-44,s.size-T-m);t>0&&(K+=t,q=function(t){const e={rawExtensibleData:t};if(t.length>=28){const r=Dt(t),n=os(r,26);Object.assign(e,{compressionMethod:os(r,0),compressedSize:is(r,2),uncompressedSize:is(r,10),encryptionAlgorithm:os(r,18),bitLength:os(r,20),flags:os(r,22),hashAlgorithm:os(r,24),hashData:t.subarray(28,28+n)})}return e}(await ra(s,T+m,t)))}N==e?N=ss(a,16):N!=ss(a,16)&&Jo(h,c,wo),Z==e?Z=ss(a,20):Z!=ss(a,20)&&Jo(h,c,wo),V==e?V=is(a,32):V!=is(a,32)&&Jo(h,c,wo),O==t?O=is(a,40):O!=is(a,40)&&Jo(h,c,wo),T=Bo(s,Z)+is(a,48)+H}}let tt=O;const et=A.offset-(W?K+p:0);if(T>=s.size&&(H=s.size-T-O-u,T=s.size-O-u),_!=N)throw new Error(Ga);if(T<0)throw new Error(Ba);let rt=0,nt=await ra(s,T,O),at=Dt(nt);if(O){if(nt.length<4)throw new Error(Ba);const t=et-O;if(T!=t&&Z==N){const e=ss(at,rt)==i||Boolean(q&&q.compressedSize)||Fo(at);let r=!e;if(!r&&t>=0&&t+4<=s.size&&(r=ss(Dt(await ra(s,t,4)),0)==i),r){const r=T;T=t,T>r&&(H+=T-r,B=e),nt=await ra(s,T,O),at=Dt(nt)}}}const ot=et-T;if(O!=ot&&ot>=0&&Z==N&&(O=ot,nt=await ra(s,T,O),at=Dt(nt)),T<0||T>=s.size)throw new Error(Ba);o.directoryOffset=T,o.directoryLength=tt;const st=es(o,n,"decryptCentralDirectory");let it,ct;if(st&&V&&nt.length>=4&&ss(at,0)!=i&&(L||Fo(at))){const t=function(t,e,r){const n=t&&t.compressedSize?t.compressedSize:e;return n>0&&n<=r?n:r}(q,tt,nt.length);ct=nt.subarray(t),nt=await st(nt.subarray(0,t),q),at=Dt(nt),tt=nt.length,it=!0}q&&!it&&(nt.length<4||ss(at,0)==i)&&Qo(c,io),P=T;const lt=ts(o,n,"filenameEncoding"),dt=ts(o,n,"commentEncoding"),ft=new Set;let ut,pt=-1;const mt=!h&&!W;!V&&mt&&(V=Oo(at,nt,rt),V&&Qo(c,co));for(let t=0;t<V;t++){const a=new Do(s,o.options);if(rt+f>nt.length||ss(at,rt)!=i){if(0==t&&!it&&(L||Fo(at)))throw new Error(Ja);throw new Error(La)}Uo(a,at,rt+6);const l=Boolean(a.bitFlag.languageEncodingFlag),d=rt+f,u=d+a.filenameLength,p=u+a.extraFieldLength,m=os(at,rt+4),w=!(m>>8),h=m>>8==3,y=nt.subarray(d,u),b=os(at,rt+32),A=p+b,R=nt.subarray(p,A),D=l,O=l,T=ss(at,rt+38),U=T&r,I={readOnly:Boolean(1&U),hidden:Boolean(2&U),system:Boolean(4&U),directory:Boolean(16&U),archive:Boolean(32&U)},C=ss(at,rt+42),j=es(o,n,"decodeText")||en,M=D?xo:lt||Eo,N=O?xo:dt||Eo;let _=j(y,M,Y);if(_===F&&(_=en(y,M)),x){const t=x(_);t!==F&&(_=t)}if(Zo(_,g)){const t=new Error(Qa);throw t.filename=_,t}let B=j(R,N,X);B===F&&(B=en(R,N)),Object.assign(a,{index:t,Jt:it,versionMadeBy:m,msDosCompatible:w,zip64:!1,compressedSize:0,uncompressedSize:0,Qt:b,offset:C,diskNumberStart:os(at,rt+34),internalFileAttributes:os(at,rt+36),externalFileAttributes:T,msdosAttributesRaw:U,msdosAttributes:I,rawFilename:y,filenameUTF8:D,commentUTF8:O,rawExtraField:nt.subarray(u,p),rawComment:R,filename:_,comment:B}),Io(a,a,at,rt+6)&&Qo(c,so,_),a.offset+=H;const W=Bo(s,a.diskNumberStart)+a.offset;P=Math.min(W,P),W<pt&&Qo(c,no,_),pt=W,(a.version&r)>63&&Qo(c,ao,_),32&~a.rawBitFlag||Qo(c,oo,_),ft.has(a.filename)&&(ut=!0),ft.add(a.filename);const q=a.externalFileAttributes>>16&e;a.unixMode===F&&16877&q&&(a.unixMode=q);const Z=Boolean(a.unixMode&S),G=Boolean(a.unixMode&z),K=Boolean(512&a.unixMode),J=40960==((a.unixMode===F?q:a.unixMode)&E),Q=!J&&(a.unixMode!==F?!!(73&a.unixMode):h&&!!(73&q)),$=a.unixMode!==F&&(a.unixMode&E)==v,tt=(q&E)==v;Object.assign(a,{setuid:Z,setgid:G,sticky:K,symlink:J,unixExternalUpper:q,executable:Q,directory:$||tt||w&&I.directory||a.filename.endsWith(k),zipCrypto:a.encrypted&&!a.extraFieldAES});const et=new _a(a);if(et.getData=(t,e)=>a.getData(t,et,o.Kt,e),et.arrayBuffer=async t=>{const e=new TransformStream,r=Ce(e.readable).then(t=>t.arrayBuffer());return r.catch(()=>{}),await a.getData(e,et,o.Kt,t),r},rt=A,t==V-1&&mt){const t=Oo(at,nt,rt);t&&(V+=t,Qo(c,co))}const{onprogress:ot}=n;if(ot)try{await ot(t+1,V,new _a(a))}catch{}yield et}let wt=rt,ht=To(nt.subarray(rt))||(it?To(ct):F);if(!ht&&!it){const t=T+rt,e=Math.min(et-t,65541);e>=6&&(ht=To(await ra(s,t,e)))}ht&&(o.digitalSignature=ht,wt=rt+6+ht.length),(rt!=tt&&wt!=tt||!it&&rt!=O&&wt!=O)&&Jo(h,c,po),ut&&Jo(h,c,mo);const yt=ts(o,n,"extractPrependedData"),bt=ts(o,n,"extractAppendedData"),gt=(h||yt)&&V&&4==P&&await async function(t){const e=await Po(t);return e==a||808471376==e}(s)?4:0;return h&&(H||V&&P>gt)&&$o(fo),(H||V&&P>4)&&Qo(c,fo),B&&Qo(c,uo),yt&&(o.prependedData=P>gt?await ra(s,gt,P-gt):j),o.comment=I?await ra(s,U+u,I):j,bt&&(o.appendedData=C<s.size?await ra(s,C,s.size-C):j),!0}async getEntries(t={}){const e=[];for await(const r of this.getEntriesGenerator(t))e.push(r);return e}async close(){const{reader:t}=this;t.readUint8Array||!t.readable||t.readable.locked||await t.readable.cancel()}}class Ao{constructor(t={}){const{readable:e,writable:r}=new TransformStream,n=new ko(e,t).getEntriesGenerator();this.readable=new ReadableStream({async pull(t){const{done:e,value:r}=await n.next();if(e)return t.close();const a={...r,readable:function(){const{readable:t,writable:e}=new TransformStream;if(r.getData)return async function(){try{await r.getData(e)}catch(t){try{await e.abort(t)}catch{}}}(),t}()};delete a.getData,t.enqueue(a)}}),this.writable=r}}async function Ro(t,e={}){if(t=new Jn(t),await ta(t),t.size!==F&&t.readUint8Array||(t=new Sn(await Ce(t.readable)),await ta(t)),t.size<u)return!1;const r=Lo(e,{}),n=r!=$,a=Vo(e[G],r),{Yt:o,Xt:s}=await Ho(t,n,a);if(!o||r==J&&s>1)return!1;const i=os(Dt(o),20),c=o.offset+u+i;return t.size-c<=a}let Do=class{constructor(t,e){Object.assign(this,{reader:t,options:e})}async getData(t,e,a,s={}){const i=this,c=yt(),{reader:l,index:d,offset:f,diskNumberStart:u,extraFieldAES:p,extraFieldZip64:m,compressionMethod:w,bitFlag:h,rawBitFlag:y,crc32:b,rawLastModDate:g,uncompressedSize:x,compressedSize:E}=i,{dataDescriptor:v}=h,S=e.localDirectory={},z=e.warnings=[],k=Bo(l,u)+f,R=await ra(l,k,A),D=Dt(R);let O=ts(i,s,M),T=ts(i,s,N);const U=ts(i,s,_);if(ot(O,T),O=O&&O.length&&O,T=T&&T.length&&T,p&&99!=p.originalCompressionMethod)throw new Error(Be);if(R.length<A||ss(D,0)!=n)throw new Error(qa);Uo(S,D,4);const{extraFieldLength:I,filenameLength:C}=S,Z=S.dataOffset=k+A+C+I,V=ts(i,s,"checkLocalDirectory"),H=Lo(s,i.options),G=function(t,e){return t===F?e!=$:Boolean(t)}(V,H),K=function(t,e){return t===F?e==J:Boolean(t)}(V,H);let Y=j;if(K&&(C||I)){const t=await ra(l,k+A,C+I);Y=t.subarray(0,C),S.rawExtraField=t.subarray(C)}else S.rawExtraField=I?await ra(l,k+A+C,I):j;K&&(S.rawFilename=Y),Io(i,S,D,4,!0)&&Qo(z,so),function(t,e,r,n,a){const{rawFilename:o}=t,s=!a,i=t.Jt&&!(8192&~e.rawBitFlag);!n||i||r.length==o.length&&!r.some((t,e)=>t!=o[e])||Jo(s,a,"mismatched local file header (filename)"),(2057&e.rawBitFlag)!=(2057&t.rawBitFlag)&&Jo(s,a,ho),e.compressionMethod!=t.compressionMethod&&Jo(s,a,yo),e.bitFlag.dataDescriptor||i||!(e.crc32||e.compressedSize||e.uncompressedSize)||e.crc32==t.crc32&&e.compressedSize==t.compressedSize&&e.uncompressedSize==t.uncompressedSize||Jo(s,a,bo)}(i,S,Y,K,G?F:z);const{lastAccessDate:X,creationDate:Q,uid:tt,gid:et}=S;X&&(e.lastAccessDate=X),Q&&(e.creationDate=Q),tt!==F&&e.uid===F&&(e.uid=tt),et!==F&&e.gid===F&&(e.gid=et);const rt=i.encrypted&&S.encrypted&&!U,nt=rt&&!p;if(U||(e.zipCrypto=nt),rt&&!(64&~S.rawBitFlag))throw new Error(Ha);const st=U?F:Ve(w);if(0!=w&&8!=w&&9!=w&&!st&&!U)throw new Error(Be);if(rt){if(!nt&&(p.strength<1||p.strength>3))throw new Error(Ha);if(!O&&!T)throw new Error(Va)}if(Z+E>l.size)throw new Error(Ya);const it=E,ct=Ie(l.createReadable({offset:Z,size:it})),lt=at(ts(i,s,B)),dt=ts(i,s,"checkPasswordOnly");let ft=ts(i,s,"checkOverlappingEntry");const ut=ts(i,s,"checkOverlappingEntryOnly");ut&&(ft=!0);const{onstart:pt,onprogress:mt,onend:wt}=s,ht=0!=w&&!U,bt=U?E:x,gt=9==w;let xt=ts(i,s,W);gt&&(xt=!1);const Et=ts(i,s,"checkCrc32"),vt=(Et===F?ts(i,s,"checkSignature"):Et)&&!U&&(!rt||nt||p&&1==p.vendorVersion),St={options:{codecType:wr,password:O,rawPassword:T,zipCrypto:nt,encryptionStrength:p&&p.strength,checkCrc32:vt,checkAuthenticationCode:ts(i,s,"checkAuthenticationCode"),passwordVerification:nt&&(v?g>>>8&r:b>>>24&r),outputSize:bt,crc32:b,compressed:ht,encrypted:rt,useWebWorkers:ts(i,s,P),useCompressionStream:xt,transferStreams:ts(i,s,L),deflate64:gt,format:st?st.format:F,codecURI:st?st.codecURI:F,compressionMethod:w,rawBitFlag:y,checkPasswordOnly:dt},config:c,ut:{signal:lt,size:it,onstart:pt,onprogress:mt,onend:wt}};let zt,kt;ft&&await async function({reader:t,$t:e,index:r,offset:n,crc32:a,compressedSize:s,uncompressedSize:i,dataOffset:c,dataDescriptor:l,extraFieldZip64:d,Kt:f}){let u=0;if(l&&(u=d?20:12),u){const r=await ra(t,c+s,u+4),n=Dt(r);let l=r.length==u+4&&ss(n,0)==o;if(l){const t=_o(n,4,d);(e.encrypted&&!e.zipCrypto||t.crc32==a)&&t.compressedSize==s&&t.uncompressedSize==i?u+=4:l=!1}if(r.length>=u){const t=_o(n,l?4:0,d);t.signature=l,e.localDirectory.dataDescriptor=t}}const p={start:n,end:c+s+u,$t:e};for(const[t,e]of f)if(t!=r&&p.start<e.end&&e.start<p.end){const t=new Error(Ka);throw t.overlappingEntry=e.$t,t}f.set(r,p)}({reader:l,$t:e,index:d,offset:k,crc32:b,compressedSize:E,uncompressedSize:x,dataOffset:Z,dataDescriptor:v||S.bitFlag.dataDescriptor,extraFieldZip64:m||S.extraFieldZip64,Kt:a});try{if(!ut){dt&&(t=new WritableStream),t=new Qn(t),await ta(t,function(t,e,r){return Math.min(t,r?1032*e:e)}(bt,E,ht)),({writable:zt}=t);const{outputSize:e}=await Kr({readable:ct,writable:zt},St);if(t.size+=e,e!=bt)throw new Error(Ye)}}catch(e){if(e.outputSize!==F&&(t.size+=e.outputSize),!dt||e.message!=Kt)throw kt=e,e}finally{if(($n(t)||!ts(i,s,q))&&zt&&!zt.locked){const t=zt.getWriter();if(kt)try{await t.abort(kt)}catch{}else await t.close()}}return dt||ut?F:t.getData?t.getData():zt}};function Fo(t){const e=Math.min(t.byteLength,1024)-3;for(let r=0;r<e;r++)if(134630224==ss(t,r))return!0;return!1}function Oo(t,e,r){let n=0;for(;r+f<=e.length&&ss(t,r)==i;)r+=f+os(t,r+28)+os(t,r+30)+os(t,r+32),n++;return n%65536?0:n}function To(t){if(t.length>=6){const e=Dt(t);if(ss(e,0)==s){const r=os(e,4);if(6+r<=t.length)return t.subarray(6,6+r)}}}function Uo(t,e,r){const n=t.rawBitFlag=os(e,r+2),a=!(1&~n),o=ss(e,r+6);Object.assign(t,{encrypted:a,version:os(e,r),bitFlag:{level:(6&n)>>1,dataDescriptor:!(8&~n),languageEncodingFlag:(n&x)==x},rawLastModDate:o,lastModDate:rs(o),filenameLength:os(e,r+22),extraFieldLength:os(e,r+24)})}function Io(t,e,r,n,a){const{rawExtraField:o}=e,s=e.extraField=new Map,i=Dt(o);let c=0,l=!1;try{for(;c<o.length;){const t=os(i,c),e=os(i,c+2);s.set(t,{type:t,data:o.slice(c+4,c+4+e)}),c+=4+e}}catch{l=!0}c>o.length&&(l=!0);const d=os(r,n+4);Object.assign(e,{signature:ss(r,n+10),crc32:ss(r,n+10),compressedSize:ss(r,n+14),uncompressedSize:ss(r,n+18)});const f=s.get(1);f&&(function(t,e){e.zip64=!0;const r=Dt(t.data),n=vo.filter(([t,r])=>e[t]==r),a=n.reduce((t,[,e])=>t+So[e].bytes,0);if(t.data.length<a)throw new Error(Za);for(let a=0,o=0;a<n.length;a++){const[s,i]=n[a],c=So[i];e[s]=t[s]=c.Gt(r,o),o+=c.bytes}}(f,e),e.extraFieldZip64=f);const u=s.get(28789);u&&(Co(u,aa,oa,e,t),e.extraFieldUnicodePath=u);const p=s.get(25461);p&&(Co(p,sa,ia,e,t),e.extraFieldUnicodeComment=p);const m=s.get(w);m&&m.data.length>=7?(function(t,e,r){const n=Dt(t.data),a=as(n,4);Object.assign(t,{vendorVersion:as(n,0),vendorId:as(n,2),strength:a,originalCompressionMethod:r,compressionMethod:os(n,5)}),e.compressionMethod=t.compressionMethod,1!=t.vendorVersion&&(e.crc32=F)}(m,e,d),e.extraFieldAES=m):e.compressionMethod=d;const x=s.get(13);x&&(jo(x,e),e.extraFieldPkwareUnix=x);const E=s.get(22613);E&&(jo(E,e),e.extraFieldUnixType1=E);const v=s.get(10);v&&(function(t,e){const r=Dt(t.data);let n,a=4;try{for(;a<t.data.length&&!n;){const e=os(r,a),o=os(r,a+2);1==e&&(n=t.data.slice(a+4,a+4+o)),a+=4+o}}catch{}if(n&&24==n.length){const r=Dt(n),a=r.getBigUint64(0,!0),o=r.getBigUint64(8,!0),s=r.getBigUint64(16,!0);Object.assign(t,{rawLastModDate:a,rawLastAccessDate:o,rawCreationDate:s});const i={lastModDate:ns(a),lastAccessDate:ns(o),creationDate:ns(s)};Object.assign(t,i),Object.assign(e,i,{rawLastAccessDate:o,rawCreationDate:s})}}(v,e),e.extraFieldNTFS=v);const S=s.get(g);let z;if(S&&(z=Mo(S,e,!1),e.extraFieldUnix=S),!z){const t=s.get(b);t&&(Mo(t,e,!0),e.extraFieldInfoZip=t)}const k=s.get(h);k&&(function(t,e,r){if(!t.data.length)return;const n=Dt(t.data),a=as(n,0),o=[],s=[];r?(1&~a||(o.push(ua),s.push(pa)),2&~a||(o.push(ma),s.push(wa)),4&~a||(o.push(ha),s.push(ya))):t.data.length>=5&&(o.push(ua),s.push(pa));let i=1;o.forEach((r,a)=>{if(t.data.length>=i+4){const o=ss(n,i);e[r]=t[r]=new Date(1e3*(0|o));const c=s[a];t[c]=o}i+=4})}(k,e,a),e.extraFieldExtendedTimestamp=k);const A=s.get(y);return A&&(e.extraFieldUSDZ=A),l}function Co(t,e,r,n,a){if(t.data.length<5)return void(t.valid=!1);const o=Dt(t.data),s=new _t;s.append(a[r]);const i=Dt(new Uint8Array(4));i.setUint32(0,s.get(),!0);const c=ss(o,1),l=as(o,0);Object.assign(t,{version:l,[e]:en(t.data.subarray(5)),valid:1==l&&!a.bitFlag.languageEncodingFlag&&c==ss(i,0)}),t.valid&&(n[e]=t[e],n[e+"UTF8"]=!0)}function jo(t,e){if(t.data.length<8)return;const r=Dt(t.data),n={lastAccessDate:new Date(1e3*(0|ss(r,0))),lastModDate:new Date(1e3*(0|ss(r,4)))};t.data.length>=12&&(n.uid=os(r,8),n.gid=os(r,10)),Object.assign(t,n),Object.assign(e,n)}function Mo(t,e,r){try{const n=Dt(t.data);let a,o;if(r){let e=0;const r=as(n,e++),s=as(n,e++);a=No(t.data.subarray(e,e+s)),e+=s;const i=as(n,e++);o=No(t.data.subarray(e,e+i)),Object.assign(t,{version:r,uid:a,gid:o})}else t.data.length>=4&&(a=os(n,0),o=os(n,2),Object.assign(t,{uid:a,gid:o}));return a!==F&&(e.uid=a),o!==F&&(e.gid=o),a!==F||o!==F}catch{}}function No(t){const e=new Uint8Array(4);return e.set(t,0),new DataView(e.buffer,e.byteOffset,4).getUint32(0,!0)}function _o(t,e,r){const n=ss(t,e);let a,o;return r?(a=is(t,e+4),o=is(t,e+12)):(a=ss(t,e+4),o=ss(t,e+8)),{crc32:n,compressedSize:a,uncompressedSize:o}}function Bo(t,e){return t.Ht?t.Ht(e):0}async function Po(t){return ss(Dt(await ra(t,0,4)))}function Wo(t){return t===J||t===Q||t===$}function Lo(t,e){return qo(t,qo(e,Q))}function qo(t,e){const r=t.strictness;if(r!==F){if(!Wo(r))throw new Error($a);return r}const n=t.checkAmbiguity;return n===F?e:n?J:e==$?$:Q}function Zo(t,e){if(e==$)return!1;const r=t.split("/");return r.length>1&&""===r[r.length-1]&&r.pop(),!!(r.includes("..")||t.startsWith("/")||t.startsWith("\\\\")||go.test(t))||e==J&&(r.includes(".")||r.includes(""))}function Vo(t,r){if(t!==F){const e=ct(t);if("number"!=typeof e||Number.isNaN(e)||e<0)throw new Error(eo);return e}return r==J?0:r==$?1/0:e}async function Ho(t,e,r){const{size:n}=t,a=Math.min(n,65557),o={count:64};let s,i,c=0;for await(const[r,l,d,f,p]of Go(t,a)){const a=os(r,f+20);if(p+u+a==n){const a=await Yo(t,r,l,f,p,n,o);if(2==a){if(s||(s=Ko(d,f,p)),c++,!e||c>1)break}else 1!=a||i||(i=Ko(d,f,p))}}return s||(s=i),s||(s=await async function(t,e,r){const{size:n}=t,a=Math.min(n,e==1/0?n:65557+e);let o,s;for await(const[e,i,c,l,d]of Go(t,a)){const a=Ko(c,l,d);o||(o=a);const f=await Yo(t,e,i,l,d,n,r);if(2==f)return a;1!=f||s||(s=a)}return s||o}(t,r,o)),{Yt:s,Xt:c}}async function*Go(t,e){const r=t.size-e,n=await ra(t,r,e),a=Dt(n);for(let t=n.length-u;t>=0;t--)ss(a,t)==c&&(yield[a,r,n,t,r+t])}function Ko(t,e,r){return{offset:r,buffer:t.slice(e,e+u).buffer}}async function Yo(r,n,a,o,s,c,l){const f=os(n,o+10),u=ss(n,o+12),m=ss(n,o+16);if(f==e||u==t||m==t)return await Xo(r,n,a,s-p,c,l)==d?2:0;if(!f&&!u)return 1;const w=os(n,o+6);for(const t of[s-u,Bo(r,w)+m])if(await Xo(r,n,a,t,c,l)==i)return 2;return 0}async function Xo(t,e,r,n,a,o){return n<0||n+4>a?F:n>=r?ss(e,n-r):o.count>0?(o.count--,ss(Dt(await ra(t,n,4)),0)):F}function Jo(t,e,r){t?$o(r):Qo(e,r)}function Qo(t,e,r){if(!t.some(t=>t.reason==e)){const n={reason:e};r!==F&&(n.filename=r),t.push(n)}}function $o(t){const e=new Error(Xa);throw e.reason=t,e}function ts(t,e,r){return e[r]===F?t.options[r]:e[r]}function es(t,e,r){return nt(ts(t,e,r))}function rs(t){const r=(4294901760&t)>>16,n=t&e,a=new Date(1980+((65024&r)>>9),((480&r)>>5)-1,31&r,(63488&n)>>11,(2016&n)>>5,2*(31&n),0);return a<D?D:a}function ns(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function as(t,e){return t.getUint8(e)}function os(t,e){return t.getUint16(e,!0)}function ss(t,e){return t.getUint32(e,!0)}function is(t,e){const r=t.getBigUint64(e,!0);if(r>zo)throw new Error(ro);return Number(r)}var cs=Object.freeze({__proto__:null,ERR_AMBIGUOUS_ARCHIVE:Xa,ERR_BAD_FORMAT:Ba,ERR_CENTRAL_DIRECTORY_NOT_FOUND:La,ERR_ENCRYPTED:Va,ERR_ENCRYPTED_CENTRAL_DIRECTORY:Ja,ERR_ENTRY_DATA_OUT_OF_BOUNDS:Ya,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:Wa,ERR_EOCDR_NOT_FOUND:Pa,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:Za,ERR_INVALID_AUTHENTICATION_CODE:Gt,ERR_INVALID_COMPRESSED_DATA:Xe,ERR_INVALID_CRC32:Je,ERR_INVALID_FILENAME_VALIDATION:to,ERR_INVALID_MAX_APPENDED_DATA_SIZE:eo,ERR_INVALID_PASSWORD:Ht,ERR_INVALID_STRICTNESS:$a,ERR_INVALID_UNCOMPRESSED_SIZE:Ye,ERR_LOCAL_FILE_HEADER_NOT_FOUND:qa,ERR_OVERLAPPING_ENTRY:Ka,ERR_SPLIT_ZIP_FILE:Ga,ERR_UNSAFE_FILENAME:Qa,ERR_UNSUPPORTED_COMPRESSION:Be,ERR_UNSUPPORTED_ENCRYPTION:Ha,ERR_UNSUPPORTED_UINT64:ro,ERR_WORKER_STARTUP_TIMEOUT:br,WARNING_APPENDED_DATA:lo,WARNING_COMPRESSED_PATCHED_DATA:oo,WARNING_DUPLICATE_FILENAME:mo,WARNING_MALFORMED_EXTRA_FIELD:so,WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG:ho,WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD:yo,WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES:bo,WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY:wo,WARNING_PREPENDED_CENTRAL_DIRECTORY:uo,WARNING_PREPENDED_DATA:fo,WARNING_TRAILING_CENTRAL_DIRECTORY_DATA:po,WARNING_UNKNOWN_VERSION:ao,WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA:io,WARNING_UNSORTED_CENTRAL_DIRECTORY:no,WARNING_WRAPPED_ENTRIES_COUNT:co,ZipReader:ko,ZipReaderStream:Ao,isZipFile:Ro});const ls="File already exists",ds="Zip file comment exceeds 64KB",fs="Invalid zip file comment (must be a Uint8Array)",us="File entry comment exceeds 64KB",ps="Invalid file entry comment (must be a string)",ms="Invalid date (must be a valid Date instance)",ws="File entry name exceeds 64KB",hs="Version exceeds 65535",ys="The strength must equal 1, 2, or 3",bs="Encryption is not supported in USDZ files",gs="Encryption is not supported when the 'passThrough' option is set",xs="Invalid extra field (must be a Map)",Es="Invalid extra field type (must be integer 0..65535)",vs="Invalid extra field data (must be a Uint8Array)",Ss="Extra field data exceeds 64KB",zs=-2147483648,ks=2147483647,As=BigInt(0),Rs=BigInt("0x7fffffffffffffff"),Ds="Zip64 is not supported (set the 'zip64' option to 'true')",Fs="Undefined uncompressed size",Os="Undefined compression method",Ts="Undetermined size",Us="Undefined reader",Is="Zip file not empty",Cs="Invalid uid (must be integer 0..2^32-1)",js="Invalid gid (must be integer 0..2^32-1)",Ms="Invalid UNIX mode (must be integer 0..65535)",Ns="Invalid unixExtraFieldType (must be 'infozip' or 'unix')",_s="uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)",Bs="Invalid msdosAttributesRaw (must be integer 0..255)",Ps="Invalid msdosAttributes (must be an object with boolean flags)",Ws="Invalid level (must be integer 0..9)",Ls="Signature data exceeds 64KB",qs=new Uint8Array([7,0,2,0,65,69,3,0,0]),Zs="infozip",Vs="unix";let Hs=0;const Gs=[];class Ks{constructor(t,e={}){t=new Qn(t);const{availableSize:r=O,maxSize:n=O}=t,a=r>0&&r!==O&&n>0&&n!==O;Object.assign(this,{writer:t,te:a,options:e,ee:new Map,re:new Set,offset:e[V]===F?t.size||t.writable.size||0:e[V],ne:e[V]===F?0:e[V]-(t.size||t.writable.size||0),ae:new Set,oe:[],se:0,ie:0,ce:F})}prependZip(t){return Js(this,async function(t,e){if(t.re.size)throw new Error(Is);await t.le(e)}(this,t))}appendZip(t){return Js(this,this.le(t))}async le(t){const e=this,{ae:r,re:n,ee:o}=e;for(;r.size;)await Promise.allSettled(Array.from(r));let s;const i=new Promise(t=>s=t);r.add(i);const c=[];let l;try{t=new Jn(t),await ta(t),t.size!==F&&t.readUint8Array||(t=new Sn(await Ce(t.readable)),await ta(t));const{ZipReader:r}=await Promise.resolve().then(function(){return cs}),s=new r(t),i=await s.getEntries();await s.close(),await ta(e.writer);const{directoryOffset:d}=s;i.forEach(({filename:t})=>{if(n.has(t))throw new Error(ls);n.add(t),c.push(t)}),e.de=!0;const{fe:f}=e;e.fe=new Promise(t=>l=()=>{e.de=!1,t()}),await f,e.te&&(delete e.te,await async function(t){return Dt(await ra(t,0,4)).getUint32(0,!0)==a}(t)||(await xi(e.writer,bi()),e.offset+=4));const u=await async function(t,e,r,n){const{writer:a}=t,o=new Map;if(a.closeDisk){const s=Array.from(r).sort((t,r)=>yi(e,t)-yi(e,r));let i=0;for(const r of s){const n=yi(e,r);await wi(t,e,i,n-i),ui(a,await hi(e,n))&&await a.closeDisk(),o.set(r,{offset:pi(t,a),diskNumberStart:di(a)}),i=n}await wi(t,e,i,n-i)}else{const a=t.offset;await wi(t,e,0,n),r.forEach(t=>o.set(t,{offset:a+yi(e,t),diskNumberStart:0}))}return o}(e,t,i,d);i.forEach(t=>{const{version:e,rawLastModDate:r,rawFilename:n,bitFlag:a,encrypted:s,uncompressedSize:i,compressedSize:c,extraFieldZip64:l}=t;let{compressionMethod:d,rawExtraField:f}=t;const{level:p,languageEncodingFlag:m,dataDescriptor:w}=a;f=mi(f||j),t.extraFieldAES&&(d=99);const h=Ni(f),y=Boolean(l)&&l.uncompressedSize!==F,b=Boolean(l)&&l.compressedSize!==F,g=-7&Bi(p,m,w,s,d)|p<<1,{ue:x,pe:E}=_i({version:e,bitFlag:g,compressionMethod:d,uncompressedSize:i,compressedSize:c,rawLastModDate:r,rawFilename:n,me:b,we:y,extraFieldLength:h}),{crc32:v}=t;v!==F&&Ci(E,10,v);const{offset:S,diskNumberStart:z}=u.get(t);Object.assign(t,{we:y,me:b,offset:S,diskNumberStart:z,he:!1,ye:j,be:j,ge:j,xe:j,Ee:j,rawExtraField:f,ve:j,extendedTimestamp:!1,ue:x,pe:E}),o.set(t.filename,t)})}catch(t){throw c.forEach(t=>n.delete(t)),t}finally{s(),r.delete(i),l&&l()}}add(e="",n,a={}){const o=this,{ae:s}=o,i=async function(e,n,a,o){if(Ai(e,o=Object.assign({},o),Da)&&!n.endsWith(k)&&(n+=k),e.re.has(n))throw new Error(ls);e.re.add(n),Hs<yt().maxWorkers?Hs++:await new Promise(t=>Gs.push(t));try{return await async function(e,n,a,o){const s=ti(e,n,o);({name:n}=s);const i=ei(e,n,o),{comment:c}=i,l=o[Ua];e.ee.set(n,F);const d=e.ce,f={};let u,p;i.Se.keepOrder&&(f.ze=new Promise(t=>u=t)),e.ce=f;try{const{Se:c}=i;0==c.level||c.compressionMethod!==F||c.passThrough||await Sr(yt())||(c.level=0);const l=await async function(t,e,{Se:r},n){if(r.passThrough&&!e&&!Ai(t,n,Da))throw new Error(Us);let a;return e&&(e=new Jn(e),await ta(e),({size:a}=e)),Object.assign({reader:e},ni(t,Boolean(e),a,r,n))}(e,a,i,o);({reader:a}=l);const m=fi(e.writer),w=di(e.writer),h=ai(o=Object.assign({},o,s.Se,i.Se,l.Se,{signature:o[Ta],crc32:o.crc32===F?o[Ta]:o.crc32,offset:e.offset-m,diskNumberStart:w,[H]:e.options[H]})),y=ii(o),b=Ni(h.ke,y.Ae);p=await async function(e,n,a,o,s){const{ee:i,writer:c}=e,{keepOrder:l,dataDescriptor:d,Re:f,signal:u}=s,{De:p,$t:m,Fe:w,Oe:h}=o,y=e.options[H];let b,g,x,E,v,S,z,k=m,R=0;const D=l&&w?w.ze:F;i.set(n,k);try{s.bufferedWrite||!l||e.de||e.se||e.ie||!d&&!f?(b=!0,e.se++,z=s.createTempStream?await s.createTempStream():new TransformStream(F,F,{highWaterMark:O}),z.size=0,await ta(c)):(g=!0,e.ie++,z=c,await D,await T()),await ta(z);const m=fi(c);e.te&&!b&&await gi(e,c),y&&!b&&oi(o,e.offset-m);const{ke:w}=p;b||await U();const h=di(c),x=pi(e,c);if(k.diskNumberStart=h,b||(v=!0,S=c.size,await xi(z,w)),k=await async function(e,n,{diskNumberStart:a,ze:o},s,i,c){const{De:l,Te:d,Ue:f}=s,{ue:u,pe:p,lastModDate:m,rawLastModDate:w,encrypted:h,compressed:y,version:b,compressionMethod:g,ye:x,Ie:E,ge:v,Ce:S,xe:z,Ee:k,be:A}=l,{Ae:R}=d,{rawFilename:D,lastAccessDate:O,creationDate:T,password:U,rawPassword:I,level:C,zip64:j,we:M,me:N,zipCrypto:_,dataDescriptor:B,directory:P,executable:W,versionMadeBy:L,rawComment:q,rawExtraField:Z,ve:V,useWebWorkers:H,transferStreams:G,onstart:K,onprogress:Y,onend:X,signal:J,encryptionStrength:Q,extendedTimestamp:$,msDosCompatible:tt,internalFileAttributes:et,externalFileAttributes:rt,uid:nt,gid:at,unixMode:ot,symlink:st,setuid:it,setgid:ct,sticky:lt,unixExternalUpper:dt,msdosAttributesRaw:ft,msdosAttributes:ut,useCompressionStream:pt,passThrough:mt,format:wt,codecURI:ht}=c,yt={ze:o,versionMadeBy:L,zip64:j,directory:Boolean(P),executable:Boolean(W),filenameUTF8:!0,rawFilename:D,commentUTF8:!0,rawComment:q,ye:x,Ie:E,ge:v,xe:z,Ee:k,be:A,rawExtraField:Z,ve:V,extendedTimestamp:$,msDosCompatible:tt,internalFileAttributes:et,externalFileAttributes:rt,diskNumberStart:a,uid:nt,gid:at,unixMode:ot,symlink:Boolean(st),setuid:it,setgid:ct,sticky:lt,unixExternalUpper:dt,msdosAttributesRaw:ft,msdosAttributes:ut};let{crc32:bt,uncompressedSize:gt}=c,xt=0;mt||(gt=0);const{writable:Et}=n;if(e){const a=e.size,o=Ie(na(e,{size:a})),s={options:{codecType:mr,inputSize:a,level:C,rawPassword:I,password:U,encryptionStrength:Q,zipCrypto:h&&_,passwordVerification:h&&_&&w>>8&r,computeCrc32:!mt,compressed:y&&!mt,encrypted:h&&!mt,useWebWorkers:H,useCompressionStream:pt,transferStreams:G,format:wt,codecURI:ht,compressionMethod:g},config:i,ut:{signal:J,size:a,onstart:K,onprogress:Y,onend:X}};try{const e=await Kr({readable:o,writable:Et},s);if(xt=e.outputSize,n.size+=xt,mt||(gt=e.inputSize,h&&!_||(bt=e.crc32)),!N&&xt>=t||!M&&gt>=t)throw new Error(Ds)}catch(t){throw t.outputSize!==F&&(n.size+=t.outputSize),t}}return function({crc32:t,compressedSize:e,uncompressedSize:r,De:n,Te:a},{zip64:o,zipCrypto:s,passThrough:i,dataDescriptor:c}){const{pe:l,encrypted:d}=n,{je:f,Me:u}=a;d&&!s&&!i||t===F||(Ci(l,10,t),c&&Ci(f,u,t)),o?c&&(ji(f,u+4,BigInt(e)),ji(f,u+12,BigInt(r))):(Ci(l,14,e),Ci(l,18,r),c&&(Ci(f,u+4,e),Ci(f,u+8,r)))}({crc32:bt,compressedSize:xt,uncompressedSize:gt,De:l,Te:d},c),B&&await xi(n,R),Object.assign(yt,{uncompressedSize:gt,compressedSize:xt,lastModDate:m,rawLastModDate:w,creationDate:T,lastAccessDate:O,encrypted:Boolean(h),zipCrypto:Boolean(_),size:f+xt,compressionMethod:g,version:b,ue:u,pe:p,signature:bt,crc32:!h||_||mt?bt:F,Ce:S,we:M,me:N}),yt}(a,z,k,o,yt(),s),b||(v=!1),i.set(n,k),k.filename=n,b){if(await Promise.all([z.writable.getWriter().close(),D]),await T(),e.te&&await gi(e,c),E=!0,S=c.size,await U(),k.diskNumberStart=di(c),k.offset=pi(e,c),y){const t=o.Ue;oi(o,e.offset-fi(c)),k.size+=o.Ue-t}!function({rawFilename:t,encrypted:e,zip64:r,Ie:n,crc32:a,compressedSize:o,uncompressedSize:s,we:i,me:c},l,{dataDescriptor:d,passThrough:f}){if(d||((!e||f&&a!==F)&&Ci(l,14,a),c||Ci(l,18,o),i||Ci(l,22,s)),r&&n){const e=A+Ni(t)+4;ji(l,e,BigInt(s)),ji(l,e+8,BigInt(o))}}(k,p.Ne,s),await xi(c,p.ke),await Ei(z.readable,c,u,t=>R+=t),c.size+=z.size,E=!1}else k.diskNumberStart=h,k.offset=x;return e.offset+=k.size,k}catch(t){if(E||v){if(e.hasCorruptedEntries=!0,t)try{t.corruptedEntry=!0}catch{}e.offset+=c.size-S,b&&(e.offset+=R)}throw i.delete(n),t}finally{if(b&&e.se--,g&&e.ie--,h&&h(D),x&&x(),b&&z&&z.dispose)try{await z.dispose()}catch{}}async function T(){e.de=!0;const{fe:t}=e;e.fe=new Promise(t=>x=()=>{e.de=!1,t()}),await t}async function U(){ui(c,Ni(p.ke))&&await c.closeDisk()}}(e,n,a,{De:h,Te:y,Ue:b,$t:f,Fe:d,Oe:u},o)}catch(t){throw e.ee.delete(n),t}finally{u&&u(d&&d.ze)}return Object.assign(p,{name:n,comment:c,extraField:l}),new _a(p)}(e,n,a,o)}catch(t){throw e.re.delete(n),t}finally{const t=Gs.shift();t?t():Hs--}}(o,e,n,a);s.add(i);const c=()=>s.delete(i);return Promise.prototype.then.call(i,c,c),Js(o,i)}remove(t){const{re:e,ee:r}=this;if(typeof t==C&&(t=r.get(t)),t&&t.filename!==F){const{filename:n}=t;if(e.has(n)&&r.has(n))return e.delete(n),r.delete(n),!0}return!1}async close(r=j,n={}){const a=this,{ae:o,writer:p}=this,{writable:m}=p;if(!(r instanceof Uint8Array))throw new Error(fs);if(Ni(r)>e)throw new Error(ds);for(;o.size;)await Promise.allSettled(Array.from(o));await Promise.allSettled(a.oe.map(t=>t._e));const w=a.oe.filter(t=>t.error&&!t.Be);if(w.length){const t=w.map(t=>t.error);w.forEach(t=>t.Be=!0);const[e]=t;try{e.entryErrors=t}catch{}throw e}return await async function(r,n,a){const o=ci(r.ee),{Pe:p,We:m,Le:w}=await async function(r,n,a){const{ee:o,writer:s}=r,c=new Uint8Array(n);await ta(s);let l=0,d=0,u=di(s),p=fi(s),m=0;for(const[r,n]of Array.from(o.values()).entries()){const{offset:w,rawFilename:h,ye:y,be:b,ge:g,xe:x,Ee:E,rawExtraField:v,ve:S,rawComment:z,versionMadeBy:k,ue:A,pe:R,we:D,me:F,he:O,qe:T,internalFileAttributes:U,externalFileAttributes:I,diskNumberStart:C,uncompressedSize:j,compressedSize:M}=n,N=Ni(y,b,g,x,E,v,S),_=f+Ni(h,z)+N;ui(s,l+_-d)&&(await xi(s,c.slice(d,l)),d=l,m=0,await s.closeDisk()),0==r&&(u=di(s),p=fi(s)),D||Ci(R,18,j),F||Ci(R,14,M),(T||O)&&n.version<45&&Ii(R,0,45);const B=li(_);if(B.Ze(i),B.Ve(k),B.He(A.subarray(0,24)),B.Ve(N),B.Ve(Ni(z)),B.Ve(O?e:C),B.Ve(U),B.Ze(I),B.Ze(T?t:w),B.He(h),B.He(y),B.He(b),B.He(g),B.He(x),B.He(E),B.He(v),B.He(S),B.He(z),Mi(c,B.Wt,l),l+=_,m++,a.onprogress)try{await a.onprogress(r+1,o.size,new _a(n))}catch{}}return await xi(s,d?c.slice(d):c),{Pe:{diskNumber:u,diskOffset:p},We:{diskNumber:di(s),Ge:m},Le:c}}(r,o,a),h=await async function(t,r,n){const a=Di(t,n,K);if(a){const n=await a(r),o=Ni(n);if(o>e)throw new Error(Ls);const i=li(6+o);i.Ze(s),i.Ve(o),i.He(n);const{writer:c}=t;return ui(c,Ni(i.Wt))&&await c.closeDisk(),await xi(c,i.Wt),6+o}return 0}(r,w,a);await async function(r,n,a,o){const{writer:s}=r,{Pe:i,We:f,Ke:p}=o;let{Ye:m}=o,w=r.ee.size,h=i.diskNumber,y=pi(r,i);const b=Ni(n);if(b>e)throw new Error(ds);let g=Ai(r,a,Sa),x=di(s);if(ui(s,(g?98:u)+b)&&x++,y>=t||m>=t||w>=e||x>=e){if(!1===g)throw new Error(Ds);g=!0}const E=li(g?98:u);ui(s,Ni(E.Wt)+b)&&await s.closeDisk(),x=di(s);let v=x==f.diskNumber?f.Ge:0;g&&(E.Ze(l),E.Xe(44),E.Ve(45),E.Ve(45),E.Ze(x),E.Ze(h),E.Xe(v),E.Xe(w),E.Xe(m),E.Xe(y),E.Ze(d),E.Ze(x),E.Xe(BigInt(pi(r,s))+BigInt(m)+BigInt(p)),E.Ze(x+1),Ai(r,a,"supportZip64SplitFile",!0)&&(x=e,h=e),v=e,w=e,y=t,m=t),E.Ze(c),E.Ve(x),E.Ve(h),E.Ve(v),E.Ve(w),E.Ze(m),E.Ze(y),E.Ve(b),await xi(s,E.Wt),b&&await xi(s,n)}(r,n,a,{Pe:p,We:m,Ye:o,Ke:h})}(a,r,n),!$n(p)&&Ai(a,n,q)||await m.getWriter().close(),p.getData?p.getData():m}}class Ys{constructor(t={}){const{readable:e,writable:r}=new TransformStream;this.readable=e,this.zipWriter=new Ks(r,t),this.ae=new Set}transform(t){const e=this.zipWriter;let r;const{readable:n,writable:a}=new TransformStream({start(t){r=t},flush:()=>{!async function(){try{await e.close()}catch(t){await Qs(e,t)}}()}});return $s(this,this.zipWriter.add(t,n),t=>r.error(t)),{readable:this.readable,writable:a}}writable(t){let e;const{readable:r,writable:n}=new TransformStream({start(t){e=t}});return $s(this,this.zipWriter.add(t,r),t=>e.error(t)),n}async close(t,e={}){const{zipWriter:r}=this,n=(await Promise.allSettled(Array.from(this.ae))).filter(t=>"rejected"==t.status).map(t=>t.reason);if(n.length){const[t]=n;try{t.entryErrors=n}catch{}throw await Qs(r,t),t}try{return await r.close(t,e)}catch(t){throw await Qs(r,t),t}}}class Xs extends Promise{then(t,e){const{Je:r}=this;return r&&(r.Be=!0),super.then(t,e)}}function Js(t,e){const r=new Xs((t,r)=>Promise.prototype.then.call(e,t,r)),n={};return r.Je=n,n._e=Promise.prototype.then.call(r,F,t=>n.error=t),t.oe.push(n),r}async function Qs(t,e){try{await t.writer.writable.abort(e)}catch{}}function $s(t,e,r){t.ae.add(e),e.catch(t=>{try{r(t)}catch{}})}function ti(n,a,o){let s=Ai(n,o,va),i=Ai(n,o,Aa,s?20:768);const c=Ai(n,o,Fa),l=Fi(n,o,"uid"),d=Fi(n,o,"gid");let f=Fi(n,o,Ia),u=Ai(n,o,"unixExtraFieldType"),p=Ai(n,o,Ca),m=Ai(n,o,ja),w=Ai(n,o,Ma);if(it(l,t,Cs),it(d,t,js),it(f,e,Ms),u!==F&&u!==Zs&&u!==Vs)throw new Error(Ns);if(u===Vs&&(l!==F&&l>e||d!==F&&d>e))throw new Error(_s);u!==F||l===F&&d===F||(u=Zs);let h=Fi(n,o,xa),y=Ai(n,o,Ea);const b=h!==F||y!==F;if(l!==F||d!==F||f!==F||u||c?(s=!1,i=i&r|768):b&&(s=!0,i&=r),it(h,r,Bs),y&&(typeof y!==I||Array.isArray(y)))throw new Error(Ps);if(i>e)throw new Error(hs);let g=Ai(n,o,ga);const x=g!==F;x||(g=0),!o[Da]&&a.endsWith(k)&&(o[Da]=!0);const A=Ai(n,o,Da);if(A?(a.endsWith(k)||(a+=k),x||(g=16,s||(g|=16877<<16))):s||x||(g=c?493<<16:27525120),!s){const t=f!==F||Boolean(p||m||w);f=f===F?g>>16&e:f&e,p?f|=S:p=Boolean(f&S),m?f|=z:m=Boolean(f&z),w?f|=512:w=Boolean(512&f),x&&!t||(A?f=-61441&f|v:f&E||(f|=32768),g=(f&e)<<16|g&e)}({msdosAttributesRaw:h,msdosAttributes:y}=function(t,e){if(t!==F)t&=r;else if(e!==F){const{readOnly:n,hidden:a,system:o,directory:s,archive:i}=e;let c=0;n&&(c|=1),a&&(c|=2),o&&(c|=4),s&&(c|=16),i&&(c|=32),t=c&r}return e===F&&(e={readOnly:Boolean(1&t),hidden:Boolean(2&t),system:Boolean(4&t),directory:Boolean(16&t),archive:Boolean(32&t)}),{msdosAttributesRaw:t,msdosAttributes:e}}(h,y)),b&&(g=g&t|h&r);const R=g>>16&e,D=f!==F&&40960==(f&E);return{name:a,Se:{versionMadeBy:i,msDosCompatible:Boolean(s),externalFileAttributes:g,unixExternalUpper:R,uid:l,gid:d,unixMode:f,unixExtraFieldType:u,symlink:D,setuid:p,setgid:m,sticky:w,msdosAttributesRaw:h,msdosAttributes:y}}}function ei(t,r,n){const a=Di(t,n,"encodeText")||Pt;let o=a(r,Y);if(o===F&&(o=Pt(r)),Ni(o)>e)throw new Error(ws);const s=n[sa]||"";if(typeof s!=C)throw new Error(ps);let i=a(s,X);if(i===F&&(i=Pt(s)),Ni(i)>e)throw new Error(us);const c=Ai(t,n,ka);if(c!==F&&c>e)throw new Error(hs);const l=Ri(t,n,ua,new Date),d=Ai(t,n,pa),f=Ri(t,n,ma),u=Ri(t,n,ha),p=Ai(t,n,ba,0),m=Ai(t,n,_),w=Ai(t,n,M),h=Ai(t,n,N);ot(w,h);const y=Fi(t,n,"encryptionStrength",3),b=Ai(t,n,Ra),g=Ai(t,n,"extendedTimestamp",!0),x=Ai(t,n,"ntfsTimestamp"),E=Ai(t,n,"keepOrder",!0),v=Ai(t,n,P),S=Ai(t,n,L),z=Ai(t,n,"bufferedWrite"),k=Di(t,n,"createTempStream"),A=Ai(t,n,"dataDescriptorSignature",!0),R=at(Ai(t,n,B)),D=Ai(t,n,"useUnicodeFileNames",!0),O=Ai(t,n,Oa),T=m||O===F?F:Ve(O);if(!m&&O!==F&&0!==O&&8!==O&&!T)throw new Error(Be);let U=Fi(t,n,"level");if(it(U,9,Ws),t.options[H]){if(w!==F||h!==F)throw new Error(bs);U===F&&O===F&&(U=0)}m&&(U=F);let I=Ai(t,n,W),j=Ai(t,n,Z);z&&j===F&&(j=!1),(j===F||b&&!m)&&(j=!0),U!==F&&6!=U&&(I=!1);const q=Ai(t,n,Sa);if(!(b||w===F&&h===F||Number.isInteger(y)&&y>=1&&y<=3))throw new Error(ys);const V=ri(n[Ua]),G=ri(n.localExtraField),K=ri(n.centralExtraField);return{comment:s,Se:{rawFilename:o,rawComment:i,version:c,lastModDate:l,rawLastModDate:d,lastAccessDate:f,creationDate:u,internalFileAttributes:p,passThrough:m,password:w,rawPassword:h,encryptionStrength:y,zipCrypto:b,extendedTimestamp:g,ntfsTimestamp:x,keepOrder:E,useWebWorkers:v,transferStreams:S,bufferedWrite:z,createTempStream:k,dataDescriptorSignature:A,signal:R,useUnicodeFileNames:D,compressionMethod:O,format:T?T.format:F,codecURI:T?T.codecURI:F,Qe:T?T.versionNeeded:F,level:U,useCompressionStream:I,dataDescriptor:j,zip64:q,rawExtraField:V,$e:G,ve:K}}}function ri(t){if(!t)return j;if(!(t instanceof Map))throw new Error(xs);let r=0,n=0;t.forEach((t,n)=>{if(st(n,e,Es),!(t instanceof Uint8Array))throw new Error(vs);if(Ni(t)>e)throw new Error(Ss);r+=4+Ni(t)});const a=new Uint8Array(r),o=Dt(a);return t.forEach((t,e)=>{Ii(o,n,e),Ii(o,n+2,Ni(t)),Mi(a,t,n+4),n+=4+Ni(t)}),a}function ni(e,r,n,a,o){const{passThrough:s,zipCrypto:i,password:c,rawPassword:l,encryptionStrength:d}=a;let{dataDescriptor:f,zip64:u,level:p,compressionMethod:m}=a,w=0,h=0;if(s&&r){if(h=o[ca],h===F)throw new Error(Fs);if(m===F)throw new Error(Os)}const y=!0===u,b=Ai(e,o,za);if(r&&s&&!b&&Ni(c,l))throw new Error(gs);const g=r&&(Boolean(c&&Ni(c)||l&&Ni(l))||s&&b);r||(p=0,m=0);const x=g?i?12:16+4*d:0;r&&(s?(o.uncompressedSize=h,w=n===F?Oi(h)+x:n):n===F?(f=!0,(u||u===F)&&(u=!0,h=w=4294967296)):(o.uncompressedSize=h=n,w=(Ti(m,p)?Oi(h):h)+x));const E=!(g||r&&(0!==n||s)||Ti(m,p));E&&!i&&Ai(e,o,Z)===F&&(f=!1);const v=y||h>=t,S=y||w>=t;if(v||S){if(!1===u)throw new Error(Ds);u=!0}return u=u||!1,{er:w,Se:{dataDescriptor:f,Re:E,zip64:u,we:v,me:S,uncompressedSize:h,level:p,compressionMethod:m,encrypted:g}}}function ai(t){const{rawFilename:r,lastModDate:a,rawLastModDate:o,lastAccessDate:s,creationDate:i,level:c,zip64:l,zipCrypto:d,useUnicodeFileNames:f,dataDescriptor:u,directory:p,rawExtraField:m,$e:y,encryptionStrength:x,extendedTimestamp:E,ntfsTimestamp:v,passThrough:S,encrypted:z,we:k,me:O,uncompressedSize:T,crc32:U}=t;let{version:I,compressionMethod:C}=t;const M=!p&&Ti(C,c);let N;const _=S||!M,B=l&&(t.bufferedWrite||!u||!k&&!O||_),P=B||l&&u&&(k||O);if(l&&(k||O)){const t=20,e=li(t);if(e.Ve(1),e.Ve(t-4),N=e.Wt,B&&(e.Xe(T),_)){const t=z?d?12:16+4*x:0;e.Xe(S?0:T+t)}}else N=j;let W,L,q,Z,V;if(z&&!d){const t=li(Ni(qs)+2);t.Ve(w),t.He(qs),W=t.Wt,W[8]=x}else W=j;if(E){const t=Si(a),e=zi(t);if(e){const e=9+(s?4:0)+(i?4:0),r=li(e);Z=1+(s?2:0)+(i?4:0),r.Ve(h),r.Ve(e-4),r.rr(Z),r.Ze(t),s&&r.Ze(ki(Si(s))),i&&r.Ze(ki(Si(i))),q=r.Wt}else q=j;if(v===F?!e||Boolean(s||i):v)try{const t=vi(a),e=li(36);e.Ve(10),e.Ve(32),e.nr(4),e.Ve(1),e.Ve(24),e.Xe(t),e.Xe(s?vi(s):t),e.Xe(i?vi(i):t),L=e.Wt}catch{L=j}else L=j}else L=q=j;try{const{uid:r,gid:n,unixExtraFieldType:a}=t;if(a!=Zs||r===F&&n===F)if(a!=Vs||r===F&&n===F)V=j;else{const t=li(8);t.Ve(g),t.Ve(4),t.Ve((r===F?0:r)&e),t.Ve((n===F?0:n)&e),V=t.Wt}else{const t=si(r===F?0:r),e=si(n===F?0:n),a=3+t.length+e.length,o=li(4+a);o.Ve(b),o.Ve(a),o.rr(1),o.rr(t.length),o.He(t),o.rr(e.length),o.He(e),V=o.Wt}}catch{V=j}C===F&&(C=M?8:0),I===F&&(I=0!=C||p||z?20:10);const{Qe:G}=t;M&&G!==F&&(I=I>G?I:G),l&&(I=I>45?I:45),z&&!d&&(I=I>51?I:51,S&&U!==F&&(W[4]=1),Ii(Dt(W),9,C),C=99);const K=P?Ni(N):0,Y=K+Ni(W,q,L,V,m,y);if(Y+(t[H]?67:0)>e)throw new Error(Ss);const X=new Date(2e3*Math.ceil(Math.floor(a.getTime()/1e3)/2)),{ue:J,pe:Q,rawLastModDate:$}=_i({version:I,bitFlag:Bi(c,f,u,z,C),compressionMethod:C,uncompressedSize:T,lastModDate:X<D?D:X>R?R:X,rawLastModDate:o,rawFilename:r,me:O,we:k,extraFieldLength:Y}),tt=li(A+Ni(r)+Y),et=tt.Wt,rt=Dt(et);return tt.Ze(n),tt.He(J),tt.He(r),P&&tt.He(N),tt.He(W),tt.He(q),tt.He(L),tt.He(V),tt.He(m),tt.He(y),u&&(O||Ci(rt,18,0),k||Ci(rt,22,0)),{ke:et,Ne:rt,ue:J,pe:Q,lastModDate:a,rawLastModDate:$,encrypted:z,compressed:M,version:I,compressionMethod:C,Ce:Z,ye:j,Ie:K,ge:q,xe:L,Ee:V,be:W,extraFieldLength:Y}}function oi(t,e){const{De:r}=t;let{ke:n,extraFieldLength:a}=r,o=64-(e+Ni(n))%64;o<4&&(o+=64);const s=new Uint8Array(o),i=Dt(s);Ii(i,0,y),Ii(i,2,o-4);const c=n;r.ke=n=new Uint8Array(Ni(c)+o),Mi(n,c),Mi(n,s,Ni(c));const l=Dt(n);Ii(l,28,a+o),r.Ne=l,t.Ue+=o}function si(t){const e=new Uint8Array(4);Dt(e).setUint32(0,t,!0);let r=4;for(;r>1&&0===e[r-1];)r--;return e.subarray(0,r)}function ii({zip64:t,dataDescriptor:e,dataDescriptorSignature:r}){let n,a=j,s=0,i=t?20:12;return r&&(i+=4),e&&(a=new Uint8Array(i),n=Dt(a),r&&(s=4,Ci(n,0,o))),{Ae:a,je:n,Me:s}}function ci(r){let n=0;for(const[,a]of r){const{rawFilename:r,be:o,rawComment:s,xe:i,Ee:c,rawExtraField:l,ve:d,extendedTimestamp:u,Ce:p,lastModDate:m,we:w,me:y,uncompressedSize:b,compressedSize:g}=a,x=a.offset>=t,E=a.diskNumberStart>=e;let v,S;if(x||E||w||y){const t=4+(w?8:0)+(y?8:0)+(x?8:0)+(E?4:0),e=li(t);e.Ve(1),e.Ve(t-4),w&&e.Xe(b),y&&e.Xe(g),x&&e.Xe(a.offset),E&&e.Ze(a.diskNumberStart),v=e.Wt}else v=j;a.ye=v,a.qe=x,a.he=E;const z=Si(m);if(u&&zi(z)){const t=li(9);t.Ve(h),t.Ve(5),t.rr(p),t.Ze(z),S=t.Wt}else S=j;a.ge=S;const k=Ni(v,o,i,c,S,l,d);if(k>e)throw new Error(Ss);n+=f+Ni(r,s)+k}return n}function li(t){const e=new Uint8Array(t),r=Dt(e);let n=0;return{Wt:e,rr:t=>{!function(t,e,r){t.setUint8(e,r)}(r,n,t),n+=1},Ve:t=>{Ii(r,n,t),n+=2},Ze:t=>{Ci(r,n,t),n+=4},Xe:t=>{ji(r,n,BigInt(t)),n+=8},He:t=>{Mi(e,t,n),n+=Ni(t)},nr:t=>n+=t}}function di(t){const{diskNumber:e=0}=t;return e}function fi(t){const{diskOffset:e=0}=t;return e}function ui(t,e){const{availableSize:r=O}=t;return e>r}function pi(t,{diskNumber:e=0,diskOffset:r=0}){return t.offset-r-(e?t.ne:0)}function mi(t){const e=Dt(t);let r=0;for(;r+4<=Ni(t);){const n=4+Ui(e,r+2);if(1==Ui(e,r))return mi(At(t.subarray(0,r),t.subarray(Math.min(r+n,Ni(t)))));r+=n}return t}async function wi(t,e,r,n){if(n>0){const{writer:a}=t;let o=0;try{await Ei(na(e,{offset:r,size:n}),a,F,t=>o+=t)}catch(e){t.hasCorruptedEntries=!0;try{e.corruptedEntry=!0}catch{}throw e}finally{a.size+=o,t.offset+=o}}}async function hi(t,e){const r=await ra(t,e,A);if(Ni(r)<A)return A;const n=Dt(r);return A+Ui(n,26)+Ui(n,28)}function yi(t,{offset:e,diskNumberStart:r}){return e+(t.Ht?t.Ht(r):0)}function bi(){const t=new Uint8Array(4);return Ci(Dt(t),0,a),t}async function gi(t,e){delete t.te,await xi(e,bi()),t.offset+=4}async function xi(t,e){const{writable:r}=t,n=r.getWriter();try{await n.ready,t.size+=Ni(e),await n.write(e)}finally{n.releaseLock()}}async function Ei(t,e,r,n){const a=e.writable.getWriter();try{await t.pipeTo(new WritableStream({async write(t){await a.ready,await a.write(t),n(Ni(t))}}),{preventClose:!0,preventAbort:!0,signal:r})}finally{a.releaseLock()}}function vi(t){if(t){const e=(BigInt(t.getTime())+BigInt(116444736e5))*BigInt(1e4);return e<As?As:e>Rs?Rs:e}}function Si(t){return Math.floor(t.getTime()/1e3)}function zi(t){return t>=zs&&t<=ks}function ki(t){return Math.min(ks,Math.max(zs,t))}function Ai(t,e,r,n){const a=e[r]===F?t.options[r]:e[r];return a===F?n:a}function Ri(t,e,r,n){const a=Ai(t,e,r,n);if(null===a)return n;if(a!==F&&(typeof a.getTime!=U||Number.isNaN(a.getTime())))throw new Error(ms);return a}function Di(t,e,r){return nt(Ai(t,e,r))}function Fi(t,e,r,n){return ct(Ai(t,e,r,n))}function Oi(t){return t+5*(Math.floor(t/16383)+1)}function Ti(t,e){return t===F?e===F||e>0:0!==t}function Ui(t,e){return t.getUint16(e,!0)}function Ii(t,e,r){t.setUint16(e,r,!0)}function Ci(t,e,r){t.setUint32(e,r,!0)}function ji(t,e,r){t.setBigUint64(e,r,!0)}function Mi(t,e,r){t.set(e,r)}function Ni(...t){let e=0;return t.forEach(t=>t&&(e+=t.length)),e}function _i({version:e,bitFlag:r,compressionMethod:n,uncompressedSize:a,compressedSize:o,lastModDate:s,rawLastModDate:i,rawFilename:c,me:l,we:d,extraFieldLength:f}){const u=li(26),p=u.Wt,m=Dt(p);if(u.Ve(e),u.Ve(r),u.Ve(n),i===F){const t=new Uint32Array(1),e=Dt(t);Ii(e,0,(s.getHours()<<6|s.getMinutes())<<5|s.getSeconds()/2),Ii(e,2,(s.getFullYear()-1980<<4|s.getMonth()+1)<<5|s.getDate()),i=t[0]}return u.Ze(i),u.nr(4),l||o!==F?u.Ze(l?t:o):u.nr(4),d||a!==F?u.Ze(d?t:a):u.nr(4),u.Ve(Ni(c)),u.Ve(f),{ue:p,pe:m,rawLastModDate:i}}function Bi(t,e,r,n,a){let o=0;return e&&(o|=x),r&&(o|=8),8!=a&&9!=a||(t>=0&&t<=3&&(o|=6),t>3&&t<=5&&(o|=4),9==t&&(o|=2)),n&&(o|=1),o}function Pi(){const{CompressionStream:t,DecompressionStream:e,CompressionStreamFallback:r,DecompressionStreamFallback:n}=yt(),a=[{compressionMethod:0,compression:!0,decompression:!0,registered:!1},{compressionMethod:8,compression:Wi(r,Qe)||Wi(t,Qe)||Wi(t,tr),decompression:Wi(n,Qe)||Wi(e,Qe)||Wi(e,tr),registered:!1},{compressionMethod:9,compression:!1,decompression:Wi(n,$e)||Wi(e,$e),registered:!1}];for(const t of He()){const e=Ge(t.format);a.push({compressionMethod:t.compressionMethod,compression:e?typeof e.CompressionStream==U:F,decompression:e?typeof e.DecompressionStream==U:F,registered:!0})}return a}function Wi(t,e){if(!t)return!1;const{ar:r}=t;return r?r.includes(e):sr(t,e)}const Li="2.11.2",qi=1048576,Zi=".zip.js-temp";function Vi(t={}){const{thresholdBytes:e=qi,directoryName:r=Zi,getDirectory:n=()=>navigator.storage.getDirectory()}=t;let a;function o(){return a||(a=Promise.resolve(n()).then(t=>t.getDirectoryHandle(r,{create:!0}))),a}return function(){const t=[];let r,n,a,s,i=0,c=!1;const l=new WritableStream({async write(s){c?await a.write(s):(t.push(s),i+=s.length,i>e&&await async function(){const e=await o();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join(""),n=await e.getFileHandle(r,{create:!0}),a=(await n.createWritable()).getWriter(),c=!0;for(const e of t)await a.write(e);t.length=0}())},async close(){a&&(await a.close(),a=null)}});let d=0;return{writable:l,readable:new ReadableStream({async pull(e){if(c){if(!s){const t=await n.getFile();s=t.stream().getReader()}const{value:t,done:r}=await s.read();r?e.close():e.enqueue(t)}else d<t.length?e.enqueue(t[d++]):e.close()},async cancel(t){s&&await s.cancel(t)}},{highWaterMark:0}),dispose:async function(){if(a){try{await a.close()}catch{}a=null}if(r){try{const t=await o();await t.removeEntry(r)}catch{}n=r=null}t.length=0}}}}const Hi=1048576;function Gi(t={}){const{thresholdBytes:e=Hi}=t;return function(){const t=[];let r,n,a,o=0,s=!1;const i=new WritableStream({async write(a){s?await r.write(a):(t.push(a),o+=a.length,o>e&&await async function(){const e=new TransformStream;n=Ce(e.readable),r=e.writable.getWriter(),s=!0;for(const e of t)await r.write(e);t.length=0}())},async close(){r&&(await r.close(),r=null)}});let c=0;return{writable:i,readable:new ReadableStream({async pull(e){if(s){if(!a){const t=await n;a=t.stream().getReader()}const{value:t,done:r}=await a.read();r?e.close():e.enqueue(t)}else c<t.length?e.enqueue(t[c++]):e.close()},async cancel(t){a&&await a.cancel(t)}},{highWaterMark:0}),dispose:async function(){if(r){try{await r.abort()}catch{}r=null}n&&(n.catch(()=>{}),n=null),t.length=0}}}}const Ki=1048576,Yi=".zip.js-temp",Xi="createSyncAccessHandle is only available in dedicated workers";function Ji(t={}){const{thresholdBytes:e=Ki,directoryName:r=Yi,getDirectory:n}=t;if(!(n||"undefined"!=typeof FileSystemFileHandle&&FileSystemFileHandle.prototype.createSyncAccessHandle))throw new Error(Xi);const a=n||(()=>navigator.storage.getDirectory());let o;function s(){return o||(o=Promise.resolve(a()).then(t=>t.getDirectoryHandle(r,{create:!0}))),o}return function(){const t=[];let r,n,a=0,o=!1,i=0,c=0;const l=new WritableStream({async write(c){o?(n.write(c,{at:i}),i+=c.length):(t.push(c),a+=c.length,a>e&&await async function(){const e=await s();r=crypto.randomUUID?crypto.randomUUID():Array.from(crypto.getRandomValues(new Uint8Array(16)),t=>t.toString(16).padStart(2,"0")).join("");const a=await e.getFileHandle(r,{create:!0});n=await a.createSyncAccessHandle(),o=!0;for(const e of t)n.write(e,{at:i}),i+=e.length;t.length=0}())},close(){n&&n.flush()}});let d=0;return{writable:l,readable:new ReadableStream({pull(e){if(o){const t=i-c;if(t<=0)return void e.close();const r=new Uint8Array(Math.min(524288,t)),a=n.read(r,{at:c});a?(c+=a,e.enqueue(r.subarray(0,a))):e.close()}else d<t.length?e.enqueue(t[d++]):e.close()}},{highWaterMark:0}),dispose:async function(){if(n){try{n.close()}catch{}n=null}if(r){try{const t=await s();await t.removeEntry(r)}catch{}r=null}t.length=0}}}}try{zt({baseURI:import.meta.url})}catch{}const Qi="deflate",$i="deflate-raw",tc="deflate64-raw",ec="gzip";let rc,nc,ac,oc,sc;function ic(t,e,r={}){if(!rc){const t=new Error("WASM module not loaded");throw t.cause=sc,t}const n="number"==typeof r.level?r.level:-1,a="number"==typeof r.outBuffer?r.outBuffer:65536,o="number"==typeof r.inBufferSize?r.inBufferSize:65536;return new TransformStream({start(){try{let r;if(this.sr=nc(a),this.in=nc(o),this.inBufferSize=o,!this.sr||!this.in)throw new Error("allocation failed");if(this.ir=new Uint8Array(a),t?(this.cr=rc.deflate_process,this.lr=rc.deflate_last_consumed,this.dr=rc.deflate_end,this.ur=rc.deflate_new(),r=e===ec?rc.deflate_init_gzip(this.ur,n):e===$i?rc.deflate_init_raw(this.ur,n):rc.deflate_init(this.ur,n)):e===tc?(this.cr=rc.inflate9_process,this.lr=rc.inflate9_last_consumed,this.dr=rc.inflate9_end,this.ur=rc.inflate9_new(),r=rc.inflate9_init_raw(this.ur)):(this.cr=rc.inflate_process,this.lr=rc.inflate_last_consumed,this.dr=rc.inflate_end,this.ur=rc.inflate_new(),r=e===$i?rc.inflate_init_raw(this.ur):e===ec?rc.inflate_init_gzip(this.ur):rc.inflate_init(this.ur)),0!==r)throw new Error("init failed:"+r)}catch(t){throw s(this),t}},transform(t,e){try{const r=t,n=new Uint8Array(oc.buffer),o=this.cr,s=this.lr,i=this.sr,c=this.ir;let l=0;for(;l<r.length;){const t=Math.min(r.length-l,32768);if((!this.in||this.inBufferSize<t)&&(this.in&&ac&&(ac(this.in),this.in=0),this.in=nc(t),this.inBufferSize=t,!this.in))throw new Error("allocation failed");n.set(r.subarray(l,l+t),this.in);const d=o(this.ur,this.in,t,i,a,0),f=d>>24&255,u=128&f?f-256:f;if(u<0)throw new Error("process error:"+u);const p=16777215&d;p&&(c.set(n.subarray(i,i+p),0),e.enqueue(c.slice(0,p)));const m=s(this.ur);if(0===m&&0===p)break;l+=m}}catch(t){s(this),e.error(t)}},flush(t){try{const e=new Uint8Array(oc.buffer),r=this.cr,n=this.sr,o=this.ir;for(;;){const s=r(this.ur,0,0,n,a,4),i=s>>24&255,c=128&i?i-256:i;if(c<0)throw new Error("process error:"+c);const l=16777215&s;if(l&&(o.set(e.subarray(n,n+l),0),t.enqueue(o.slice(0,l))),1===i||0===l)break}}catch(e){t.error(e)}finally{const e=s(this);0!==e&&t.error(new Error("end error:"+e))}},cancel(){s(this)}});function s(t){let e=0;return t.ur&&t.dr&&(e=t.dr(t.ur)),t.ur=0,t.in&&ac&&ac(t.in),t.in=0,t.sr&&ac&&ac(t.sr),t.sr=0,e}}class cc{constructor(t=Qi,e){return ic(!0,t,e)}}class lc{constructor(t=Qi,e){return ic(!1,t,e)}}cc.ft=!0,lc.ft=!0,cc.ar=[Qi,$i,ec],lc.ar=[Qi,$i,ec,tc];let dc,fc=!1;function uc(){dc=null,async function(){await Promise.allSettled(qr.map(t=>($r(t),t.terminate()))),gr=F,xr=!1}(),fc=!1,rc=nc=ac=oc=sc=null}!function({pr:t}){vr=t}({pr:t=>{if(!dc){let{wasmURI:e}=t;typeof e==U&&(e=e()),dc=async function(t,{baseURI:e}){if(!fc)try{await async function(t,e){let r,n;try{try{n=new URL(t,e)}catch{}const a=await fetch(n);r=await a.arrayBuffer()}catch(e){if(!t.startsWith("data:application/wasm;base64,"))throw e;r=function(t){const e=t.split(",")[1],r=atob(e),n=r.length,a=new Uint8Array(n);for(let t=0;t<n;++t)a[t]=r.charCodeAt(t);return a.buffer}(t)}!function(t){if(rc=t,({malloc:nc,free:ac,memory:oc}=rc),"function"!=typeof nc||"function"!=typeof ac||!oc)throw rc=nc=ac=oc=null,new Error("Invalid WASM module")}((await WebAssembly.instantiate(r)).instance.exports)}(t,e),fc=!0}catch(t){throw function(t){sc=t}(t),t}}(e,t).catch(t=>{throw dc=null,t})}return dc}}),zt({CompressionStreamFallback:cc,DecompressionStreamFallback:lc}),zt({workerURI:new URL("./zip-web-worker.js",import.meta.url).href,wasmURI:new URL("./zip-module.wasm",import.meta.url).href});const pc="Entry filename already exists",mc="Duplicate entry filename in the imported zip file",wc='Invalid duplicates option (must be "throw", "keep-first" or "keep-last")',hc="Entry is a ancestor of target entry",yc="Readable stream already consumed",bc="throw",gc="keep-first",xc="keep-last",Ec=new Set([bc,gc,xc]),vc="Invalid passThrough option (use readerOptions.passThrough or set uncompressedSize for each entry)",Sc="Invalid readerOptions (must be an object)",zc="The last modification date of an entry encrypted with ZipCrypto cannot be changed when passThrough is set",kc="zipjs-abort-export",Ac="The operation was aborted",Rc=new Set([1,w,10,h,28789,25461,y,b,g,22613,13]);class Dc{constructor(t,e,r,n){const a=this;if(t.root&&n&&n.getChildByName(e))throw new Error(pc);r||(r={}),Object.assign(a,{fs:t,name:e,data:r.data,options:r.options&&Object.assign({},r.options),id:t.mr++,parent:n,children:[],uncompressedSize:r.uncompressedSize||0,wr:r.wr||r.uncompressedSize===F,passThrough:r.passThrough,yr:r.yr||new Date}),!n&&t.root||(t.entries[a.id]=a),n&&a.parent.children.push(a)}getFullname(){return this.getRelativeName()}getRelativeName(t=this.fs.root){let e=this.name,r=this.parent;for(;r&&r!=t;)e=(r.name?r.name+"/":"")+e,r=r.parent;return e}isDescendantOf(t){let e=this.parent;for(;e&&e.id!=t.id;)e=e.parent;return Boolean(e)}rename(t){const e=this;let r=e.parent;if(r){const n=el(t);n&&(t=n.pop(),r=rl(r,n,e));const a=r.getChildByName(t);if(a&&a!=e)throw new Error(pc);r!=e.parent&&(Pc(e),e.parent=r,r.children.push(e),$c(e.fs,e))}e.name=t}setOptions(t){const e=Object.assign({},this.options,t);this.options=Object.fromEntries(Object.entries(e).filter(([,t])=>t!==F))}}class Fc extends Dc{constructor(t,e,r,n){super(t,e,r,n);const a=this;a.Reader=r.Reader,a.Writer=r.Writer,r.getData&&(a.getData=r.getData)}clone(){return new Fc(this.fs,this.name,this)}async getData(t,e={}){const r=this;if(!t||t.constructor==r.Writer&&r.data&&function(t,e){const{contentType:r}=t;return r===F||(t.constructor==zn?e.type==r:t.constructor!=xn||e.startsWith("data:"+(r||"")+";base64,"))}(t,r.data))return r.data;{const n=r.reader=_c(r.Reader,r.data,e),a=r.uncompressedSize||n.size;await Promise.all([ta(n),ta(t,a)]);const o=at(e.signal),s=function(t,e,r,n){const{onstart:a,onprogress:o,onend:s}=r,{readable:i}=e;return t.data instanceof _a||!a&&!o&&!s?i:Ie(i).pipeThrough(new Ar({onstart:a,onprogress:o,onend:s,size:e.size}),{signal:n})}(r,n,e,o),i=!$n(t)&&Boolean(e.preventClose);return r.uncompressedSize=n.size,await Ie(s).pipeTo(je(t.writable),{signal:o,preventClose:i,preventAbort:i}),t.getData?t.getData():t.writable}}isPasswordProtected(){return Boolean(this.data&&this.data.encrypted)}async checkPassword(t,e={}){const r=this;if(!r.isPasswordProtected())return!0;try{return await r.data.getData(null,Object.assign({},e,{password:t,checkPasswordOnly:!0})),!0}catch(t){if(t.message==Ht)return!1;throw t}}getText(t,e){return this.getData(new Rn(t),e)}getBlob(t,e){return this.getData(new zn(t),e)}getData64URI(t,e){return this.getData(new xn(t),e)}getUint8Array(t){return this.getData(new Kn,t)}getWritable(t=new WritableStream,e){return this.getData({writable:t},e)}async getArrayBuffer(t){return Rt(await this.getUint8Array(t)).buffer}replaceBlob(t){Vc(this,{data:t,Reader:Sn,Writer:zn,uncompressedSize:t.size})}replaceText(t){Vc(this,{data:t,Reader:kn,Writer:Rn,uncompressedSize:An(t)})}replaceData64URI(t){Vc(this,{data:t,Reader:gn,Writer:xn,uncompressedSize:Hc(t)})}replaceUint8Array(t){Vc(this,{data:t,Reader:Gn,Writer:Kn,uncompressedSize:t.length})}replaceReadable(t){Vc(this,{data:null,Reader:Mc(t),Writer:null,uncompressedSize:F})}}class Oc extends Dc{constructor(t,e,r,n){super(t,e,r,n),this.directory=!0}clone(t){const e=this,r=new Oc(e.fs,e.name,e);return t&&(r.children=e.children.map(e=>{const n=e.clone(t);return n.parent=r,n})),r}addDirectory(t,e){return tl(this,t,{options:e},!0)}addText(t,e,r={}){return tl(this,t,{data:e,Reader:kn,Writer:Rn,options:r,uncompressedSize:An(e)})}addBlob(t,e,r={}){return tl(this,t,{data:e,Reader:Sn,Writer:zn,options:r,uncompressedSize:e.size})}addData64URI(t,e,r={}){return tl(this,t,{data:e,Reader:gn,Writer:xn,options:r,uncompressedSize:Hc(e)})}addUint8Array(t,e,r={}){return tl(this,t,{data:e,Reader:Gn,Writer:Kn,options:r,uncompressedSize:e.length})}addHttpContent(t,e,r={}){return tl(this,t,{data:e,Reader:class extends Vn{constructor(t){super(t,r)}},options:r})}addReadable(t,e,r={}){return tl(this,t,{Reader:Mc(e),options:r})}addFileSystemEntry(t,e={}){return Yc(this,t,e)}addFileSystemHandle(t,e={}){return Yc(this,t,e)}addFile(t,e={}){return(e=Object.assign({},e)).lastModDate||(e.lastModDate=new Date(t.lastModified)),tl(this,t.name,{data:t,Reader:function(){return{readable:t.stream(),size:t.size}},options:e,uncompressedSize:t.size})}importBlob(t,e){return this.importZip(new Sn(t),e)}importData64URI(t,e){return this.importZip(new gn(t),e)}importUint8Array(t,e){return this.importZip(new Gn(t),e)}importHttpContent(t,e){return this.importZip(new Vn(t,e),e)}importReadable(t,e){return this.importZip({readable:t},e)}exportBlob(t={}){return this.exportZip(new zn(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new xn(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new Kn,t)}async exportWritable(t=new WritableStream,e={}){return await this.exportZip({writable:t},e),t}exportFileSystemHandle(t,e={}){return async function(t,e,r){const{onstart:n,onprogress:a,onend:o}=r,s=Zc(r.readerOptions),i=new AbortController,{signal:c}=i,l=function(t,e){if(!at(t))return()=>{};if(t.aborted)return e.abort(t.reason),()=>{};const r=()=>e.abort(t.reason);return t.addEventListener("abort",r,{once:!0}),()=>t.removeEventListener("abort",r)}(r.signal,i),d=Object.assign({},r,s,{signal:c,onstart:F,onprogress:F,onend:F,preventClose:!1}),f=Ic([t],t=>jc(t,d.passThrough)),u=[];let p=!1,m=0;try{n&&await Rr(n,f),await h(t,e),o&&await Rr(o,m)}catch(t){try{t.exportedEntryNames=u}catch{}throw t}finally{l()}return e;function w(t){const e=t.getWriter();return new WritableStream({async write(t){await e.write(t),m+=t.length,a&&await Rr(a,m,f)},close:()=>e.close(),abort:t=>e.abort(t)})}async function h(t,e){if(r.concurrent){const r=(await Promise.allSettled(t.children.map(t=>y(t,e)))).filter(t=>"rejected"==t.status);if(r.length){const t=r.filter(t=>!Wc(t.reason));throw function(t){const[e]=t,r=t.slice(1).flatMap(t=>[t,...t&&t.entryErrors||[]]).filter(t=>t!==e);if(r.length)try{e.entryErrors=[...e.entryErrors||[],...r]}catch{}return e}((t.length?t:r).map(t=>t.reason))}}else for(const r of t.children)await y(r,e)}async function y(e,r){if(c.aborted){if(p||Wc(c.reason))return;throw c.reason===F?new DOMException(Ac,"AbortError"):c.reason}try{if(e.directory){const t=await r.getDirectoryHandle(e.name,{create:!0});await h(e,t)}else{const n=await r.getFileHandle(e.name,{create:!0}),a=await n.createWritable();try{await e.getData({writable:w(a)},d)}catch(t){throw p?new Error(kc):t}u.push(e.getRelativeName(t))}}catch(r){p=!0,i.abort(new Error(kc));try{r.entryName===F&&(r.entryName=e.getRelativeName(t),r.entryId=e.id)}catch{}throw r}}}(this,t,e)}async importZip(t,e={}){let r;t&&typeof t.getEntries==U?(r=t,e=Object.assign({},r.options,e)):(await ta(t),r=new ko(t,e));const n=function(t){if(t===F)return bc;if(Ec.has(t))return t;throw new Error(wc)}(e.duplicates),a=[],o=await r.getEntries(e);for(const t of o){let r=this;try{const o=t.filename.split("/").filter(t=>""!=t&&"."!=t),s=o.pop();let i=!1;for(const t of o){const e=r;if(r=r.getChildByName(t),r){if(!r.directory){if(n==gc){i=!0;break}if(n!=xc)throw new Error(mc);this.fs.remove(r),r=new Oc(this.fs,t,{data:null},e),a.push(r)}}else r=new Oc(this.fs,t,{data:null},e),a.push(r)}if(i)continue;if(t.directory){let e=r;if(s){if(e=r.getChildByName(s),e&&!e.directory){if(n==gc)continue;if(n!=xc)throw new Error(mc);this.fs.remove(e),e=F}e||(e=new Oc(this.fs,s,{data:null},r),a.push(e))}e==this||e.data||(e.data=t)}else{const o=r.getChildByName(s);if(o){if(n==gc)continue;if(n!=xc)throw new Error(mc);this.fs.remove(o)}a.push(tl(r,s,{data:t,Reader:Nc(Object.assign({},e)),uncompressedSize:e.passThrough?t.compressedSize:t.uncompressedSize,passThrough:e.passThrough}))}}catch(e){a.reverse().forEach(t=>this.fs.remove(t));try{e.cause={entry:t}}catch{}throw e}}return a}async exportZip(t,e={}){const r=this;(e=Object.assign({},e)).bufferedWrite===F&&(e.bufferedWrite=!0);const[n]=await Promise.all([Bc(r,Zc(e.readerOptions)),ta(t)]),a=new Ks(t,e);return await async function(t,e,r,n,a){const{onstart:o,onprogress:s,onend:i,onentryprogress:c}=n,l=e,d=Ic(e.children,t=>Kc(t)?0:1);let f=0,u=0;if(o&&await Rr(o,r),n.bufferedWrite)await async function t(e){const r=(await Promise.allSettled(e.children.map(async e=>{await p(e),await t(e)}))).find(t=>"rejected"==t.status);if(r)throw r.reason}(e);else for(const t of e.getChildren({recursive:!0}))await p(t);async function p(e){if(Kc(e))return;const{name:o,gr:i}=Lc(e,l,n);let p=0;const m=await t.add(o,a.get(e),Object.assign(i,{onstart:F,onend:F,onprogress:async t=>{f+=t-p,p=t,s&&await Rr(s,f,r)}}));u++,c&&await Rr(c,u,d,m)}i&&await Rr(i,f)}(a,r,Ic([r],Cc),e,n),await a.close(e.globalComment),t.getData?t.getData():t.writable}getExportedSize(r={}){const n=this;Zc((r=Object.assign({},r)).readerOptions),r.bufferedWrite===F&&(r.bufferedWrite=!0);const a=n.getChildren({recursive:!0}).filter(t=>!Kc(t)).map(t=>{const{name:e,gr:a}=Lc(t,n,r);return{name:e,size:t.directory?0:qc(t,Gc(t,r)),options:a}}),o=!r.bufferedWrite||a.every(t=>!1!==t.options.keepOrder)&&n.children.every(t=>!t.children.length);return async function(r,n,a,o){const s={options:r};if(nt(r[K]))throw new Error(Ts);if(o!==F&&!(o instanceof Uint8Array))throw new Error(fs);const i=Ni(o);if(i>e)throw new Error(ds);const c=r[H],l=new Map,d=r[V]===F?0:r[V];let f=d,p=O;for(const t of n){let{name:e}=t;const{size:r}=t,n=Object.assign({},t.options);Ai(s,n,Da)&&!e.endsWith(k)&&(e+=k);const a=ti(s,e,n);({name:e}=a);const{Se:o}=ei(s,e,n);0==o.level||o.compressionMethod!==F||o.passThrough||await Sr(yt())||(o.level=0);const i=!Ai(s,n,Da);if(i&&r===F)throw new Error(Ts);const{er:d,Se:u}=ni(s,i,r,o,n);if(i&&!o.passThrough&&Ti(u.compressionMethod,u.level))throw new Error(Ts);const m=Object.assign({},n,a.Se,o,u,{[H]:c}),w=ai(m),h=ii(m),y={De:w,Ue:Ni(w.ke,h.Ae)};c&&oi(y,f);const b=i?d:0;l.set(e,Object.assign({},m,w,{offset:f,diskNumberStart:0,compressedSize:b}));const g=y.Ue+b;p=Math.min(p,g),f+=g}if(l.size>1&&(c||f-p>=t)&&!a)throw new Error(Ts);const m=ci(l);let w=Ai(s,r,Sa);if(f>=t||m>=t||l.size>=e){if(!1===w)throw new Error(Ds);w=!0}return f-d+m+i+(w?98:u)}(r,a,o,r.globalComment)}getChildByName(t){const e=this.children;for(let r=0;r<e.length;r++){const n=e[r];if(n.name==t)return n}}getChildren(t={}){return function(t,e){const r=[],n=[t];let a=0;for(;a<n.length;)for(const t of n[a++].children)r.push(t),e&&n.push(t);return r}(this,t.recursive)}isPasswordProtected(){const t=this.children;for(let e=0;e<t.length;e++)if(t[e].isPasswordProtected())return!0;return!1}async checkPassword(t,e={}){const r=this.children;return!(await Promise.all(r.map(r=>r.checkPassword(t,e)))).includes(!1)}}class Tc{constructor(){Jc(this)}get children(){return this.root.children}remove(t){Pc(t);const e=[t];for(;e.length;){const t=e.pop();this.entries[t.id]=null;for(const r of t.children)e.push(r)}t.parent=F}move(t,e){if(t==this.root)throw new Error("Root directory cannot be moved");if(!e.directory)throw new Error("Target entry is not a directory");if(e.isDescendantOf(t))throw new Error(hc);if(t!=e){const r=e.getChildByName(t.name);if(r){if(r!=t)throw new Error(pc)}else Pc(t),t.parent=e,e.children.push(t),$c(this,t)}}find(t){const e=t.split("/");let r=this.root;for(let t=0;r&&t<e.length;t++)r=r.directory?r.getChildByName(e[t]):F;return r||(r=this.entries.find(e=>e&&(e==this.root||e.isDescendantOf(this.root))&&e.getRelativeName()==t)),r}getById(t){return this.entries[t]}getChildByName(t){return this.root.getChildByName(t)}getChildren(t){return this.root.getChildren(t)}addDirectory(t,e){return this.root.addDirectory(t,e)}addText(t,e,r){return this.root.addText(t,e,r)}addBlob(t,e,r){return this.root.addBlob(t,e,r)}addData64URI(t,e,r){return this.root.addData64URI(t,e,r)}addUint8Array(t,e,r){return this.root.addUint8Array(t,e,r)}addHttpContent(t,e,r){return this.root.addHttpContent(t,e,r)}addReadable(t,e,r){return this.root.addReadable(t,e,r)}addFileSystemEntry(t,e){return this.root.addFileSystemEntry(t,e)}addFileSystemHandle(t,e){return this.root.addFileSystemHandle(t,e)}addFile(t,e){return this.root.addFile(t,e)}importBlob(t,e){return Qc(this,r=>r.importBlob(t,e))}importData64URI(t,e){return Qc(this,r=>r.importData64URI(t,e))}importUint8Array(t,e){return Qc(this,r=>r.importUint8Array(t,e))}importHttpContent(t,e){return Qc(this,r=>r.importHttpContent(t,e))}importReadable(t,e){return Qc(this,r=>r.importReadable(t,e))}importZip(t,e){return Qc(this,r=>r.importZip(t,e))}exportBlob(t){return this.root.exportBlob(t)}exportData64URI(t){return this.root.exportData64URI(t)}exportUint8Array(t){return this.root.exportUint8Array(t)}exportWritable(t,e){return this.root.exportWritable(t,e)}exportFileSystemHandle(t,e){return this.root.exportFileSystemHandle(t,e)}exportZip(t,e){return this.root.exportZip(t,e)}getExportedSize(t){return this.root.getExportedSize(t)}isPasswordProtected(){return this.root.isPasswordProtected()}checkPassword(t,e){return this.root.checkPassword(t,e)}}const Uc={FS:Tc,ZipDirectoryEntry:Oc,ZipFileEntry:Fc};function Ic(t,e){let r=0;const n=Array.from(t);for(;n.length;){const t=n.pop();r+=e(t)||0;for(const e of t.children)n.push(e)}return r}function Cc(t){return t.uncompressedSize}function jc(t,e){const{data:r}=t;return e&&r instanceof _a?r.compressedSize:t.uncompressedSize}function Mc(t){let e;return function(){if(e)throw new Error(yc);return e=!0,{readable:t}}}function Nc(t){return class extends yn{constructor(t,e={}){super(),this.entry=t,this.options=e}async init(){const e=this,r=Object.assign({},t,e.options),{checkOverlappingEntry:n,checkOverlappingEntryOnly:a}=r,o=await e.entry.getData(new zn,Object.assign(r,{checkPasswordOnly:!1,checkOverlappingEntry:a||n,checkOverlappingEntryOnly:!1,preventClose:!1}));e.data=o,e.Er=new Sn(o),e.size=o.size,super.init()}readUint8Array(t,e){return this.Er.readUint8Array(t,e)}}}function _c(t,e,r){return t.prototype?new t(e,r):t(e,r)}async function Bc(t,e){const r=[],n=[t],a=new Map;for(;n.length;){const t=n.pop();for(const e of t.children)e.directory?n.push(e):r.push(e)}return await Promise.all(r.map(async t=>{const r=t.reader=_c(t.Reader,t.data,e);a.set(t,r);try{await ta(r)}catch(e){try{e.entryId=t.id,e.cause={entry:t}}catch{}throw e}r.size!==F&&(t.uncompressedSize=r.size,t.wr=!1)})),a}function Pc(t){if(t.parent){const e=t.parent.children;e.forEach((r,n)=>{r.id==t.id&&e.splice(n,1)})}}function Wc(t){return Boolean(t)&&t.message==kc}function Lc(t,e,n){const a=n.relativePath?t.getRelativeName(e):t.getFullname(),o=t.options||{};let s={},i={};if(t.data instanceof _a){const{externalFileAttributes:e,versionMadeBy:a,comment:c,lastModDate:l,rawLastModDate:d,creationDate:f,lastAccessDate:u,uncompressedSize:p,encrypted:m,zipCrypto:w,crc32:h,compressionMethod:y,extraFieldAES:b,internalFileAttributes:g,extraField:x,bitFlag:E,uid:v,gid:S}=t.data;s={externalFileAttributes:e,versionMadeBy:a,comment:c,lastModDate:l,creationDate:f,lastAccessDate:u,internalFileAttributes:g};const z=function(t){if(t){const e=new Map;if(t.forEach((t,r)=>{Rc.has(r)||e.set(r,t.data)}),e.size)return e}}(x);if(z&&(s.extraField=z),v===F&&S===F||Object.assign(s,{uid:v,gid:S,unixExtraFieldType:"infozip"}),Gc(t,n)){let t;b&&(t=b.strength),i={passThrough:!0,encrypted:m,zipCrypto:w,crc32:h,uncompressedSize:p,encryptionStrength:t,compressionMethod:y},E&&(i.dataDescriptor=E.dataDescriptor);const e=o.lastModDate===F?n.lastModDate:o.lastModDate;if(e===F)i.rawLastModDate=d;else if(w&&(!E||E.dataDescriptor)&&e instanceof Date&&function(t){let e=new Date(2e3*Math.ceil(Math.floor(t.getTime()/1e3)/2));return e<D?e=D:e>R&&(e=R),(e.getHours()<<3|e.getMinutes()>>3)&r}(e)!=(d>>>8&r))throw new Error(zc)}}const c=Object.assign({lastModDate:t.yr},s,n,o,i,{directory:t.directory});if(!t.directory&&c.passThrough&&c.uncompressedSize===F)throw new Error(vc);return{name:a,gr:c}}function qc(t,e){const{reader:r}=t;return r&&r.size!==F?r.size:t.wr?F:jc(t,e)}function Zc(t){if(t&&(typeof t!=I||Array.isArray(t)))throw new Error(Sc);return t}function Vc(t,e){const{uncompressedSize:r}=e;Object.assign(t,e,{reader:null,passThrough:F,uncompressedSize:r===F?0:r,wr:r===F})}function Hc(t){let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;return Math.floor(.75*(e-r))}function Gc(t,e){const{readerOptions:r}=e;return Boolean(!t.directory&&(t.passThrough||r&&r.passThrough))}function Kc(t){return t.directory&&null===t.data}function Yc(t,e,r){return async function t(e,n,a,o=""){if(n){const s=o?o+"/"+n.name:n.name;try{if((n.isFile||n.isDirectory)&&(n=await Xc(n)),"file"==n.kind){const t=await n.getFile();a.push(tl(e,t.name,{Reader:function(){return{readable:t.stream(),size:t.size}},options:Object.assign({},{lastModDate:new Date(t.lastModified)},r),uncompressedSize:t.size}))}else if("directory"==n.kind){const o=e.addDirectory(n.name,r);a.push(o);for await(const e of n.values())await t(o,e,a,s)}}catch(t){try{t.entryName===F&&(t.entryName=s)}catch{}throw t}}return a}(t,e,[])}async function Xc(t){const e={name:t.name};if(t.isFile&&(e.kind="file",e.getFile=()=>new Promise((e,r)=>t.file(e,r))),t.isDirectory){e.kind="directory";const r=await async function(t){const e=[];function r(t,n,a){t.readEntries(async o=>{if(o.length){for(const t of o)e.push(await Xc(t));r(t,n,a)}else n(e)},a)}return await new Promise((e,n)=>r(t.createReader(),e,n)),{[Symbol.iterator](){let t=0;return{next(){const r={value:e[t],done:t==e.length};return t++,r}}}}}(t);e.values=()=>r}return e}function Jc(t){t.entries=[],t.mr=0,t.root=new Oc(t)}function Qc(t,e){const{entries:r,mr:n,root:a}=t;return Jc(t),e(t.root).catch(e=>{throw Object.assign(t,{entries:r,mr:n,root:a}),e})}function $c(t,e){const r=[e];for(;r.length;){const e=r.pop();t.entries[e.id]=e;for(const t of e.children)r.push(t)}}function tl(t,e,r,n){if(t.directory){const a=el(e);return a&&(e=a.pop(),t=rl(t,a)),n?new Oc(t.fs,e,r,t):new Fc(t.fs,e,r,t)}throw new Error("Parent entry is not a directory")}function el(t){if(t.includes("/")){const e=t.split("/").filter(t=>""!=t&&"."!=t);if(e.length)return e}}function rl(t,e,r){return e.forEach(e=>{const n=t;if(t=t.getChildByName(e)){if(!t.directory)throw new Error(pc);if(r&&(t==r||t.isDescendantOf(r)))throw new Error(hc)}else t=new Oc(n.fs,e,{data:null},n)}),t}let nl;function al(t){return t&&(nl||(nl=function(){const t=Object.create(null);for(const e of"application:0andrew-inset ez,2nodex anx,1pplixware aw,1tom!,4cat!,4serv! atomsrv,5vc!,0bbolin lin,0ccxml!,1dmi-capability cdmia,6ontainer cdmic,5domain cdmid,5object cdmio,5queue cdmiq,1u-seeme cu,0davmount!,1ocbook! dbk,1sptype tsp,2sc+der,4! xdssc,0ecmascript es ecma,1mma!,1nvoy evy,1pub+zip,1xi,0font-tdpfr pfr,1ractals fif,1uturesplash spl,0gml!,1px!,1xf,1zip gz tgz,0hta,1yperstudio stk,0inkml! ink inkml,2ternet-property-stream acx,1pfix,0java-archive jar,5serialized-object ser,5vm class,1sonml+json,0lost! lostxml,0m3g,1ac-binhex40 hqx,2ds!,2rc mrc,4xml! mrcx,2thematica nb ma mb,4ml! mathml mml,1box,1ediaservercontrol! mscml,2talink!,84! meta4,3s!,1ods!,1p21 m21 mp21,24 mp4s,1saccess mdb,2word doc dot wiz,1xf,0oda,1ebps-package! opf,1gg ogx,1lescript axs,1mdoc!,1nenote onetoc onetoc2 onetmp onepkg,1xps,0patch-ops-error! xer,1df,1gp-encrypted pgp,4keys key,4signature asc sig,1ics-rules prf,1kcs10 p10,47-mime p7m p7c,6signature p7s,48 p8,2ix-attr-cert ac,5crl crl,5pkipath pkipath,4cmp pki,1ls!,1ostscript ps ai eps epsi epsf eps2 eps3,1rs.cww cww,1skc! pskcxml,0rar,1df!,1eginfo! rif,2lax-ng-compact-syntax rnc,2source-lists! rl,e-diff! rld,1ls-services! rs,1pki-ghostbusters gbr,5manifest mft,5roa roa,1sd!,2s!,1tf,0sbml!,1cvp-cv-request scq,asponse scs,5vp-request spq,asponse spp,1dp,1et-payment-initiation setpay,4registration-initiation setreg,1hf!,1mil! smi smil,1parql-query rq,7results! srx,1rgs gram,4! grxml,2u!,1sdl!,2ml!,0tei! tei teicorpus,1hraud! tfi,1imestamped-data tsd,0vnd.3gpp.pic-bw-large plb,gsmall psb,gvar pvb,82.tcap tcap,5m.post-it-notes pwn,4accpac.simply.aso aso,iimp imp,6ucobol acu,9rp atc acutc,5dobe.air-application-installer-package+zip air,aformscentral.fcdt fcdt,bxp fxp fxpl,axdp! xdp,bfdf xfdf,5head.space ahead,5irzip.filesecure.azf azf,os azs,5mazon.ebook azw,6ericandynamics.acc acc,6iga.ami ami,5ndroid.package-archive apk,6ser-web-certificate-issue-initiation cii,efunds-transfer-initiation fti,6tix.game-component atx,5pple.installer! mpkg,ampegurl m3u8,5ristanetworks.swi swi,5straea-software.iota iota,5udiograph aep,4blueice.multipass mpm,5mi bmi,5usinessobjects rep,4chemdraw! cdxml,6ipnuts.karaoke-mmd mmd,5inderella cdy,5laymore cla,6oanto.rp9 rp9,7nk.c4group c4g c4d c4f c4p c4u,6uetrust.cartomobile-config c11amc,w-pkg c11amz,5ommonspace csp,6ntact.cmsg cdbcmsg,6smocaller cmc,5rick.clicker clkx,h.keyboard clkk,ipalette clkp,itemplate clkt,iwordbank clkw,7ticaltools.wbs! wbs,5tc-posml pml,5ups-ppd ppd,6rl.car car,9pcurl pcurl,4dart dart,6ta-vision.rdz rdz,5ebian.binary-package deb udeb,6ce.data uvf uvvf uvd uvvd,9ttml! uvt uvvt,9unspecified uvx uvvx,9zip uvz uvvz,6novo.fcselayout-link fe_launch,5na dna,5olby.mlp mlp,5pgraph dpg,5reamfactory dfac,5s-keypoint kpxx,5vb.ait ait,8service svc,5ynageo geo,4ecowin.chart mag,5nliven nml,5pson.esf esf,amsf msf,aquickanime qam,asalt slt,bsf ssf,5szigno3! es3 et3,5zpix-album ez2,apackage ez3,4fdf fdf,6sn.mseed mseed,9seed seed dataless,5lographit gph,6uxtime.clip ftc,5ramemaker fm frame maker book,6ogans.fnc fnc,cltf ltf,5sc.weblaunch fsc,5ujitsu.oasys oas,h2 oa2,h3 oa3,hgp fg5,hprs bh2,8xerox.ddd ddd,focuworks xdw,n.binder xbd,6zzysheet fzs,4genomatix.tuxedo txd,6ogebra.file ggb,dtool ggt,7metry-explorer gex gre,7next gxt,7plan g2w,7space g3w,5mx gmx,5oogle-earth.kml! kml,jz kmz,5rafeq gqf gqs,6oove-account gac,bhelp ghf,bidentity-message gim,cnjector grv,btool-message gtm,gtemplate tpl,bvcard vcg,4hal! hal,6ndheld-entertainment! zmm,5bci hbci,5he.lesson-player les,5p-hpgl hpgl,9id hpid,9s hps,7jlyt jlt,7pcl pcl,axl pclxl,5ydrostatix.sof-data sfd-hdstx,5zn-3d-crossword x3d,4ibm.minipay mpy,9odcap afp listafp list3820,8rights-management irm,8secure-container sc,5ccprofile icc icm,5gloader igl,5mmervision-ivp ivp,iu ivu,5nsors.igm igm,6tercon.formnet xpw xpx,9geo i2g,7u.qbo qbo,afx qfx,5punplugged.rcprofile rcprofile,5repository.package! irp,5s-xpr xpr,6ac.fcs fcs,4jam jam,5cp.javame.midlet-rms rms,5isp jisp,5oost.joda-archive joda,4kahootz ktz ktr,5de.karbon karbon,9chart chrt,9formula kfo,9ivio flw,9ontour kon,9presenter kpr kpt,9spread ksp,9word kwd kwt,5enameaapp htke,5idspiration kia,6nar kne knp,5oan skp skd skt skm,6dak-descriptor sse,4las.las! lasxml,5lamagraphics.life-balance.desktop lbd,vexchange! lbe,5otus-1-2-3 123,aapproach apr,afreelance pre,anotes nsf,aorganizer org,ascreencam scm,awordpro lwp,4macports.portpkg portpkg,5cd mcd,5edcalcdata mc1,7iastation.cdkey cdkey,5fer mwf,6mp mfm,5icrografx.flo flo,figx igx,6f mif,5obius.daf daf,cis dis,bmbk mbk,cqy mqy,csl msl,bplc plc,btxf txf,6phun.application mpn,bcertificate mpc,6zilla.xul! xul,5s-artgalry cil,7cab-compressed cab,7excel xls xlb xlt xlm xla xlc xlw,c.addin.macroenabled.12 xlam,dsheet.binary.macroenabled.12 xlsb,jmacroenabled.12 xlsm,dtemplate.macroenabled.12 xltm,7fontobject eot,7htmlhelp chm,7ims ims,7lrm lrm,7officetheme thmx,8utlook msg,7pki.seccat cat,ctl stl,acertstore sst,8owerpoint ppt pps pot ppa pwz,h.addin.macroenabled.12 ppam,ipresentation.macroenabled.12 pptm,islide.macroenabled.12 sldm,nshow.macroenabled.12 ppsm,itemplate.macroenabled.12 potm,8roject mpp mpt,7word.document.macroenabled.12 docm,ctemplate.macroenabled.12 dotm,aks wps wks wcm wdb,8pl wpl,7xpsdocument xps,6eq mseq,5usician mus,6vee.style msty,5ynfc taglet,4neurolanguage.nlu nlu,5itf ntf nitf,5oblenet-directory nnd,dsealer nns,dweb nnw,6kia.n-gage.data ngdat,hsymbian.install n-gage,aradio-preset rpst,ms rpss,6vadigm.edm edm,fx edx,ext ext,4oasis.opendocument.chart odc,s-template otc,ndatabase odb,nformula odf,u-template odft,ngraphics odg,v-template otg,nimage odi,s-template oti,npresentation odp,z-template otp,nspreadsheet ods,y-template ots,ntext odt,r-master odm otm,stemplate ott,sweb oth,5lpc-sugar xo,5ma.dd2! dd2,5penofficeorg.extension oxt,8xmlformats-officedocument.presentationml.presentation pptx,zresentationml.slide sldx,zresentationml.slideshow ppsx,zresentationml.template potx,yspreadsheetml.sheet xlsx,zpreadsheetml.template xltx,ywordprocessingml.document docx,zordprocessingml.template dotx,5sgeo.mapguide.package mgp,7i.dp dp,9subsystem esa,4palm pdb pqa oprc,6waafile paw,5g.format str,7osasli ei6,5icsel efif,5mi.widget wg,5ocketlearn plf,6werbuilder6 pbd,5reviewsystems.box box,6oteus.magazine mgz,5ublishare-delta-tree qps,5vi.ptid1 ptid,4quark.quarkxpress qxd qxt qwd qwt qxl qxb,4realvnc.bed bed,6cordare.musicxml mxl,m! musicxml,5ig.cryptonote cryptonote,5n-realmedia rm,g-vbr rmvb,5oute66.link66! link66,4sailingtracker.track st,5eemail see,6ma sema,7d semd,7f semf,5hana.informed.formdata ifm,ntemplate itp,jinterchange iif,jpackage ipk,5imtech-mindmapper twd twds,5maf mmf,7rt.teacher teacher,5olent.sdkm! sdkm sdkd,5potfire.dxp dxp,dsfs sfs,5qlite3 db sqlite sqlite3 db-wal sqlite-wal db-shm sqlite-shm,5tardivision.calc sdc,ihart sds,hdraw sda,himpress sdd,hmath sdf smf,hwriter sdw vor,n-global sgl,6epmania.package smzip,estepchart sm,5un.xml.calc sxc,g.template stc,cdraw sxd,g.template std,cimpress sxi,j.template sti,cmath sxm,cwriter sxw,i.global sxg,jtemplate stw,6s-calendar sus susp,5vd svd,5ymbian.install sis sisx,6ncml! xsm,a.dm+wbxml bdm,d! xdm,4tao.intent-module-archive tao,5cpdump.pcap pcap cap dmp,5mobile-livetv tmo,5rid.tpt tpt,7scape.mxs mxs,6ueapp tra,4ufdl ufd ufdl,5iq.theme utz,5majin umj,5nity unityweb,5oml! uoml,4vcx vcx,5isio vsd vst vss vsw vsdx vssx vstx vssm vstm,9nary vis,5sf vsf,4wap.sic sic,9lc slc,8wbxml wbxml,9mlc wmlc,bscriptc wmlsc,5ebturbo wtb,5olfram.player nbp,6rdperfect wpd,f5.1 wp5,5qd wqd,5t.stf stf,4xara xar,5fdl xfdl,4yamaha.hv-dic hvd,escript hvs,evoice hvp,bopenscoreformat osf,q.osfpvg! osfpvg,bsmaf-audio saf,gphrase spf,5ellowriver-custom-menu cmp,4zul zir zirz,5zazz.deck! zaz,1oicexml! vxml,0widget wgt,2nhlp hlp,1sdl!,2policy!,0x-123 wk,27z-compressed 7z,2abiword abw,3ce-compressed ace,3pple-diskimage dmg,3uthorware-bin aab x32 u32 vox,dmap aam,dseg aas,2bcpio bcpio,3ittorrent torrent,3lorb blb blorb,3zip bz,62 bz2 boz,2cbr cbr cba cbt cb7,4z cbz,3df cdf cda,4link vcd,3fs-compressed cfs,3hat chat,4ess-pgn pgn,3ompress z,4nference nsc,3pio cpio,3sh csh,2dgc-compressed dgc,3irector dir dxr cst cct cxt w3d fgd swa,3ms dms,3oom wad,3tbncx! ncx,5ook! dtb,5resource! res,3vi dvi,2eva eva,2font-bdf bdf,7ghostscript gsf,7linux-psf psf,7pcf pcf,7snf snf,7ttf ttf ttc,8ype1 pfa pfb pfm afm,3reearc arc,6mind mm,2gca-compressed gca,3lulx ulx,3numeric gnumeric,3o-sgf sgf,3ramps-xml gramps,5phing-calculator gcf,3tar gtar taz,2hdf hdf,3ttpd-eruby rhtml,8php phtml pht php,b-source phps,b3 php3,c-preprocessed php3p,b4 php4,b5 php5,2ica ica,3nfo info,4stall-instructions install,4ternet-signup ins isp,3phone iii,3so9660-image iso,2java-jnlp-file jnlp,3mol jmz,2killustrator kil,3rita kra krz,2latex latex,3yx lyx,3zh-compressed lzh lha,4x lzx,2maker frm fb fbdoc,3ie mie,3obipocket-ebook prc mobi,3s-application application,5installer msi,5shortcut lnk,5wmd wmd,5xbap xbap,4binder obd,4cardfile crd,5lip clp,4dos-program com exe bat dll,4mediaview mvb m13 m14,6tafile wmf wmz emf emz,5oney mny,4publisher pub,4schedule scd,4terminal trm,4write wri,2netcdf nc,3s-proxy-autoconfig pac dat,3wc nwc,3zb nzb,2object o,3z-application oza,2perfmon pma pmc pmr pmw,5l pm pl,3kcs12 p12 pfx,67-certificates p7b spc,creqresp p7r,3ython-code pyc pyo,2qgis qgs shp shx,3uicktimeplayer qtl,2redhat-package-manager rpm rpa,4search-info-systems ris,3uby rb,2sh sh,4ar shar,4ockwave-flash swf swfl,3ilverlight scr,d-app xap,3ql sql,3tuffit sit,9x sitx,3ubrip srt,3v4cpio sv4cpio,6rc sv4crc,2t3vm-image t3,3ar tar,3ex-gf gf,6pk pk,6tfm tfm,5info texinfo texi,3gif obj,3rash ~ % bak old sik,2ustar ustar,2wais-source src,3ingz wz,2x509-ca-cert crt der cer,3cf xcf,3fig fig,3liff! xlf,3pinstall xpi,3z xz,2zmachine z1 z2 z3 z4 z5 z6 z7 z8,1aml!,1cap-diff! xdf,1enc!,1html! xhtml xht,1ml xml xsl xsd xpdl,3-dtd dtd,1op!,1proc! xpl,1slt!,2pf!,1v! mxml xhvml xvml xvm,0yaml yaml yml,2ng,1in!,1nd.ms-pkipko pko,0zip;audio:0aac,1dpcm adp,1iff aiff aif aff,1mr,3-wb awb,1nnodex axa,0basic au snd,0flac,0midi mid midi kar rmi,1p4 mp4a,2eg mpga mpega mp3 m4a mp2a m2a m3a,4url m3u,0ogg oga ogg spx,1pus,0prs.sid sid,0s3m,1ilk sil,0vnd.dece.audio uva uvva,5igital-winds eol,5ra dra,5ts dts,7.hd dtshd,4lucent.voice lvp,4ms-playready.media.pya pya,4nuera.ecelp4800 ecelp4800,f7470 ecelp7470,f9600 ecelp9600,4rip rip,0wav,1ebm weba,0x-aiff aifc,2caf caf,2gsm gsm,2matroska mka,3s-wax wax,6ma wma,2pn-realaudio ram,e-plugin rmp,2realaudio ra,2sd2 sd2,1m;chemical:0x-alchemy alc,2cache cac cache,7-csf csf,5tvs-binary cbin cascii ctab,3dx cdx,3hem3d c3d,3if cif,3mdf cmdf,4l cml,3ompass cpa,3rossfire bsd,3sml csml csm,3tx ctx,3xf cxf cef,2embl-dl-nucleotide emb embl,2gamess-input inp gam gamin,4ussian-checkpoint fch fchk,cube cub,binput gau gjc gjf,blog gal,3cg8-sequence gcg,3enbank gen,2hin hin,2isostar istr ist,2jcamp-dx jdx dx,2kinemage kin,2macmolecule mcm,5romodel-input mmod,3dl-molfile mol,6rdfile rd,7xnfile rxn,6sdfile sd,6tgf tgf,3mcif mcif,3ol2 mol2,5conn-Z b,4pac-graph gpt,8input mop mopcrt zmt,8out moo,2ncbi-asn1 asn,b-ascii prt ent,cbinary val,2rosdal ros,2swissprot sw,2vamas-iso14976 vms,3md vmd,2xtel xtel,3yz xyz;font:0otf,0woff,42;image:0avif avif avifs,0bmp,0cgm,1is-cod cod,0g3fax g3,1if,0heic heif heic,0ief,0jpeg jpeg jpg jpe jfif jfif-tbnl jif,0ktx,0pcx,1jpeg pjpg,1ng,1rs.btif btif,0sgi,1vg! svg svgz,0tiff tiff tif,0vnd.adobe.photoshop psd,4dece.graphic uvi uvvi uvg uvvg,5jvu djvu djv,5wg dwg,5xf dxf,4fastbidsheet fbs,5px fpx,5st fst,5ujixerox.edmics-mmr mmr,lrlc rlc,4ms-modi mdi,7photo wdp,4net-fpx npx,4wap.wbmp wbmp,4xiff xif,0webp,0x-3ds 3ds,2adobe-dng dng,2canon-cr2 cr2,aw crw,3mu-raster ras,4x cmx,3oreldraw cdr,bpattern pat,btemplate cdt,7photopaint cpt,2epson-erf erf,2freehand fh fhc fh4 fh5 fh7,3uji-raf raf,2icns icns,4on ico,2jg art,3ng jng,2kodak-dcr dcr,8k25 k25,9dc kdc,2minolta-mrw mrw,2nikon-nef nef,2olympus-orf orf,2panasonic-raw raw rw2 rwl,3entax-pef pef ptx,3ict pic pct,3ortable-anymap pnm,bbitmap pbm,bgraymap pgm,bpixmap ppm,2rgb rgb,2sigma-x3f x3f,3ony-arw arw,7sr2 sr2,9f srf,2tga tga,2xbitmap xbm,3pixmap xpm,3windowdump xwd;message:0rfc822 eml mime mht mhtml nws;model:0iges igs iges,0mesh msh mesh silo,0vnd.collada! dae,4dwf dwf,4gdl gdl,5tw gtw,4mts mts,4usdz+zip usdz,4vtu vtu,1rml wrl vrml,0x3d+binary x3db x3dbz,4vrml x3dv x3dvz,3! x3dz;text:0cache-manifest manifest appcache,2lendar ics icz ifb,1ss,2v,0h323 323,1tml html htm shtml stm,0iuls uls,0javascript js,1son,0markdown md markdown mdown markdn,0n3,0plain txt text brf conf def list log in bas diff ksh,1rs.lines.tag dsc,0richtext rtx,0scriptlet sct wsc,1gml sgml sgm,0tab-separated-values tsv,1exmacs tm,1roff t tr roff man me ms,1urtle ttl,0uri-list uri uris urls,0vcard,1nd.curl curl,8.dcurl dcurl,9mcurl mcurl,9scurl scurl,4dvb.subtitle sub,4fly fly,5mi.flexstor flx,4graphviz gv,4in3d.3dml 3dml,9spot spot,4sun.j2me.app-descriptor jad,4wap.si si,9l sl,8wml wml,bscript wmls,0webviewhtml htt,0x-asm s asm,2bibtex bib,3oo boo,2c c h dic,3++hdr h++ hpp hxx hh,5src c++ cpp cxx cc,3omponent htc,2diff patch,3src d,2fortran f for f77 f90,2haskell hs,2java java,2literate-haskell lhs,2moc moc,2nfo nfo,2opml opml,2pascal p pas pp inc,3cs-gcd gcd,3ython py,2scala scala,3etext etx,3fv sfv,2tcl tcl tk,3ex tex ltx sty cls,2uuencode uu,2vcalendar vcs,5rd vcf;video:03gpp 3gp,42 3g2,0annodex axv,0dl,1v dif dv,0fli,0gl,0h261,33,34,0jpeg jpgv,2m jpm jpgm,0mj2 mj2 mjp2,1p2t ts,24 mp4 mp4v mpg4,2eg mpeg mpg mpe m1v m2v mp2 mpa mpv2,0ogg ogv,0quicktime qt mov,0vnd.dece.hd uvh uvvh,9mobile uvm uvvm,9pd uvp uvvp,9sd uvs uvvs,9video uvv uvvv,5vb.file dvb,4fvt fvt,4mpegurl mxu m4u,5s-playready.media.pyv pyv,4uvvu.mp4 uvu uvvu,4vivo viv,0webm,0x-f4v f4v,3lv flv,2la-asf lsf lsx,2m4v m4v,3atroska mpv mkv mk3d mks,3ng mng,3s-asf asf asx asr,5vob vob,5wm wm,7v wmv,7x wmx,6vx wvx,4video avi,2sgi-movie movie,3mv smv;x-conference:0x-cooltalk ice;x-world:0x-vrml vrm flr wrz xaf xof".split(";")){const r=e.indexOf(":"),n=e.slice(0,r);let a="";for(const o of e.slice(r+1).split(",")){const e=o.split(" "),r=a.slice(0,Number.parseInt(e[0][0],36))+e[0].slice(1);a=r;const s=r.replace(/!/g,"+xml"),i=e.length>1?e.slice(1):[s.split("+")[0]];for(const e of i)t[e]=n+"/"+s}}return t}()),nl)[t.split(".").pop().toLowerCase()]||"application/octet-stream"}export{Sn as BlobReader,zn as BlobWriter,gn as Data64URIReader,xn as Data64URIWriter,Ac as ERR_ABORTED,Xa as ERR_AMBIGUOUS_ARCHIVE,Ba as ERR_BAD_FORMAT,La as ERR_CENTRAL_DIRECTORY_NOT_FOUND,ls as ERR_DUPLICATED_NAME,mc as ERR_DUPLICATE_IMPORTED_ENTRY,Va as ERR_ENCRYPTED,Ja as ERR_ENCRYPTED_CENTRAL_DIRECTORY,Ya as ERR_ENTRY_DATA_OUT_OF_BOUNDS,pc as ERR_ENTRY_EXISTS,Wa as ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,Pa as ERR_EOCDR_NOT_FOUND,Za as ERR_EXTRAFIELD_ZIP64_NOT_FOUND,an as ERR_HTTP_RANGE,on as ERR_HTTP_RESOURCE_CHANGED,Gt as ERR_INVALID_AUTHENTICATION_CODE,Me as ERR_INVALID_CODEC_DEFINITION,_e as ERR_INVALID_CODEC_MODULE,ds as ERR_INVALID_COMMENT,fs as ERR_INVALID_COMMENT_TYPE,Xe as ERR_INVALID_COMPRESSED_DATA,Je as ERR_INVALID_CRC32,ms as ERR_INVALID_DATE,wc as ERR_INVALID_DUPLICATES,ys as ERR_INVALID_ENCRYPTION_STRENGTH,us as ERR_INVALID_ENTRY_COMMENT,ps as ERR_INVALID_ENTRY_COMMENT_TYPE,ws as ERR_INVALID_ENTRY_NAME,xs as ERR_INVALID_EXTRAFIELD,Ss as ERR_INVALID_EXTRAFIELD_DATA,vs as ERR_INVALID_EXTRAFIELD_DATA_TYPE,Es as ERR_INVALID_EXTRAFIELD_TYPE,to as ERR_INVALID_FILENAME_VALIDATION,tt as ERR_INVALID_FUNCTION_OPTION,js as ERR_INVALID_GID,Ws as ERR_INVALID_LEVEL,eo as ERR_INVALID_MAX_APPENDED_DATA_SIZE,lt as ERR_INVALID_MAX_WORKERS,Bs as ERR_INVALID_MSDOS_ATTRIBUTES,Ps as ERR_INVALID_MSDOS_DATA,Ht as ERR_INVALID_PASSWORD,rt as ERR_INVALID_PASSWORD_TYPE,vc as ERR_INVALID_PASS_THROUGH,Sc as ERR_INVALID_READER_OPTIONS,et as ERR_INVALID_SIGNAL,Ls as ERR_INVALID_SIGNATURE_DATA,$a as ERR_INVALID_STRICTNESS,Cs as ERR_INVALID_UID,Ye as ERR_INVALID_UNCOMPRESSED_SIZE,Ns as ERR_INVALID_UNIX_EXTRA_FIELD_TYPE,_s as ERR_INVALID_UNIX_ID_SIZE,Ms as ERR_INVALID_UNIX_MODE,hs as ERR_INVALID_VERSION,sn as ERR_ITERATOR_COMPLETED_TOO_SOON,qa as ERR_LOCAL_FILE_HEADER_NOT_FOUND,Ka as ERR_OVERLAPPING_ENTRY,yc as ERR_READABLE_CONSUMED,Ne as ERR_RESERVED_COMPRESSION_METHOD,Ga as ERR_SPLIT_ZIP_FILE,Os as ERR_UNDEFINED_COMPRESSION_METHOD,Us as ERR_UNDEFINED_READER,Fs as ERR_UNDEFINED_UNCOMPRESSED_SIZE,Ts as ERR_UNDETERMINED_SIZE,Qa as ERR_UNSAFE_FILENAME,Be as ERR_UNSUPPORTED_COMPRESSION,Xi as ERR_UNSUPPORTED_CONTEXT,Yt as ERR_UNSUPPORTED_CRYPTO_API,Ha as ERR_UNSUPPORTED_ENCRYPTION,gs as ERR_UNSUPPORTED_ENCRYPTION_PASS_THROUGH,bs as ERR_UNSUPPORTED_ENCRYPTION_USDZ,Ds as ERR_UNSUPPORTED_FORMAT,ro as ERR_UNSUPPORTED_UINT64,br as ERR_WORKER_STARTUP_TIMEOUT,cn as ERR_WRITER_NOT_INITIALIZED,zc as ERR_ZIP_CRYPTO_LAST_MOD_DATE,Is as ERR_ZIP_NOT_EMPTY,Hn as HttpRangeReader,Vn as HttpReader,yn as Reader,Yn as SplitDataReader,Xn as SplitDataWriter,kn as TextReader,Rn as TextWriter,Gn as Uint8ArrayReader,Kn as Uint8ArrayWriter,Li as VERSION,lo as WARNING_APPENDED_DATA,oo as WARNING_COMPRESSED_PATCHED_DATA,mo as WARNING_DUPLICATE_FILENAME,so as WARNING_MALFORMED_EXTRA_FIELD,ho as WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG,yo as WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD,bo as WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES,wo as WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY,uo as WARNING_PREPENDED_CENTRAL_DIRECTORY,fo as WARNING_PREPENDED_DATA,po as WARNING_TRAILING_CENTRAL_DIRECTORY_DATA,ao as WARNING_UNKNOWN_VERSION,io as WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA,no as WARNING_UNSORTED_CENTRAL_DIRECTORY,co as WARNING_WRAPPED_ENTRIES_COUNT,bn as Writer,Oc as ZipDirectoryEntry,Dc as ZipEntry,Tc as ZipFS,Fc as ZipFileEntry,ko as ZipReader,Ao as ZipReaderStream,Ks as ZipWriter,Ys as ZipWriterStream,xt as configure,Gi as createBlobTempStream,Vi as createOPFSTempStream,Ji as createSyncAccessHandleTempStream,Uc as fs,al as getMimeType,He as getRegisteredCodecs,Pi as getSupportedCompressionMethods,Ro as isZipFile,qe as registerCodec,kt as resetConfiguration,uc as terminateWorkers,Ze as unregisterCodec};