@zip.js/zip.js 2.18.1 → 2.18.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.
- package/deno.json +1 -1
- package/dist/zip-core-external.js +6 -14
- package/dist/zip-core-external.min.js +1 -1
- package/dist/zip-core.js +6 -14
- package/dist/zip-core.min.js +1 -1
- package/dist/zip-fs-core-external.js +6 -14
- package/dist/zip-fs-core-external.min.js +1 -1
- package/dist/zip-fs-core.js +6 -14
- package/dist/zip-fs-core.min.js +1 -1
- package/dist/zip-fs-external.js +6 -14
- package/dist/zip-fs-external.min.js +1 -1
- package/dist/zip-fs-native.js +6 -14
- package/dist/zip-fs-native.min.js +1 -1
- package/dist/zip-fs.js +6 -14
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-legacy.js +6 -14
- package/dist/zip-legacy.min.js +1 -1
- package/dist/zip-native.js +6 -14
- package/dist/zip-native.min.js +1 -1
- package/dist/zip.js +6 -14
- package/dist/zip.min.js +1 -1
- package/index-native.cjs +6 -14
- package/index-native.min.js +1 -1
- package/index.cjs +6 -14
- package/index.d.cts +6 -5
- package/index.d.ts +6 -5
- package/index.min.js +1 -1
- package/lib/core/version.js +1 -1
- package/lib/core/zip-reader.js +5 -13
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=4294967295,e=65535,r=255,n=67324752,a=134695760,o=a,i=84233040,s=33639248,c=101010256,l=101075792,d=117853008,u=46,f=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),O=void 0,F=1/0,U="undefined",I="function",T="object",C="string",j="boolean",M=new Uint8Array,N=Symbol.asyncDispose||Symbol(),_="password",P="rawPassword",B="passThrough",L="signal",W="useWebWorkers",q="useCompressionStream",Z="transferStreams",V="preventClose",H="level",G="useUnicodeFileNames",Y="dataDescriptor",K="offset",X="usdz",$="maxAppendedDataSize",J="signCentralDirectory",Q="entry",tt="filename",et="comment",rt="strict",nt="balanced",at="tolerant",ot="compressed",it="Invalid option (must be a function)",st="Invalid signal (must be an AbortSignal instance)",ct="Invalid password (password must be a string, rawPassword must be a Uint8Array)",lt="Invalid passThrough option (must be a boolean or 'compressed')",dt="The operation was aborted";function ut(t){if(t&&typeof t!=I)throw new Error(it);return t}function ft(t){if(t&&(typeof t.addEventListener!=I||typeof t.aborted!=j))throw new Error(st);return t||O}function pt(t){if(t&&t.aborted)throw t.reason===O?new DOMException(dt,"AbortError"):t.reason}function mt(t,e){if(t&&typeof t!=C||e&&!(e instanceof Uint8Array))throw new Error(ct)}function wt(t){if(t!==O&&typeof t!=j&&t!==ot)throw new Error(lt);return t}function ht(t,e,r){if(!Number.isInteger(t)||t<0||t>e)throw new Error(r)}function yt(t,e,r){t!==O&&ht(t,e,r)}function bt(t){return typeof t==C&&t.trim()?Number(t):t}const gt="Invalid maxWorkers (must be an integer greater than 0)",xt="Invalid baseURI (must be a string)",Et="Invalid URI (must be a string or a function returning a string)";let vt=2;try{typeof navigator!=U&&navigator.hardwareConcurrency&&(vt=navigator.hardwareConcurrency)}catch{}const St={workerURI:"./core/web-worker-wasm.js",wasmURI:"./core/streams/zlib-wasm/zlib-streams.wasm",chunkSize:65536,maxWorkers:vt,terminateWorkerTimeout:5e3,workerStarvationTimeout:5e3,workerStartupTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,transferStreams:!0,CompressionStream:typeof CompressionStream!=U&&CompressionStream,DecompressionStream:typeof DecompressionStream!=U&&DecompressionStream},zt="maxWorkers",kt="baseURI",At=["wasmURI","workerURI"],Rt=["chunkSize",zt,"terminateWorkerTimeout","workerStarvationTimeout","workerStartupTimeout"],Dt=["createWorker","CompressionStream","DecompressionStream","CompressionStreamFallback","DecompressionStreamFallback"],Ot=[kt,...At,"useCompressionStream","useWebWorkers","transferStreams",...Rt,...Dt],Ft={...St};function Ut(){return Ft}function It(t){return Tt(t.chunkSize)}function Tt(t){return t=bt(t),Number.isInteger(t)&&t>=1?Math.max(t,64):65536}function Ct(t){Object.assign(Ft,jt(Nt(t)))}function jt(t){const e={};for(const r of Ot){const n=t[r];n!==O&&(e[r]=Mt(r,n))}return e}function Mt(t,e){if(Rt.includes(t)){if(e=bt(e),t==zt&&(!Number.isInteger(e)||e<1))throw new Error(gt)}else if(Dt.includes(t))ut(e);else if(t==kt){if(e&&typeof e!=C)throw new Error(xt)}else if(At.includes(t)&&e&&typeof e!=C&&typeof e!=I)throw new Error(Et);return e}function Nt(t){t=t||{};const{CompressionStreamZlib:e,DecompressionStreamZlib:r}=t;if(e===O&&r===O)return t;const n=Object.assign({},t);return n.CompressionStreamFallback===O&&(n.CompressionStreamFallback=e),n.DecompressionStreamFallback===O&&(n.DecompressionStreamFallback=r),n}function _t(t){const e=jt(Nt(t));Object.assign(St,e),Object.assign(Ft,e)}function Pt(){for(const t of Ot)delete Ft[t];Object.assign(Ft,St)}function Bt(t,e){const r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function Lt(t){return t.byteOffset||t.byteLength!=t.buffer.byteLength?new Uint8Array(t):t}function Wt(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function qt(t){return Boolean(t)&&"object"==typeof t}const Zt=[[],[],[],[],[],[],[],[]];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;Zt[0][t]=e}for(let t=0;t<256;t++)for(let e=1;e<8;e++){const r=Zt[e-1][t];Zt[e][t]=r>>>8^Zt[0][255&r]}const[Vt,Ht,Gt,Yt,Kt,Xt,$t,Jt]=Zt;class Qt{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=Jt[255&t]^$t[t>>>8&255]^Xt[t>>>16&255]^Kt[t>>>24&255]^Yt[255&r]^Gt[r>>>8&255]^Ht[r>>>16&255]^Vt[r>>>24&255]}}for(;n<r;n++)e=e>>>8^Vt[255&(e^t[n])];this.o=e}get(){return~this.o}}class te extends TransformStream{constructor(){let t;const e=new Qt;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 ee(t){if(typeof TextEncoder==U){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 re=64,ne=20,ae=new Uint8Array([128]),oe=new Uint8Array(1),ie=new Int32Array([1732584193,4023233417,2562383102,271733878,3285377520]),se=new Uint8Array(256),ce=new Int32Array(256),le=new Int32Array(256),de=new Int32Array(256),ue=new Int32Array(256);let fe=!1;function pe(t,e){!function(){if(!fe){let t=1,e=1;do{t=255&(t^t<<1^(128&t?27:0)),e=255&(e^e<<1),e=255&(e^e<<2),e=255&(e^e<<4),128&e&&(e^=9),se[t]=255&(e^(e<<1|e>>7)^(e<<2|e>>6)^(e<<3|e>>5)^(e<<4|e>>4)^99)}while(1!=t);se[0]=99;for(let t=0;t<256;t++){const e=se[t],r=ye(e),n=r<<24|e<<16|e<<8|r^e;ce[t]=n,le[t]=n>>>8|n<<24,de[t]=n>>>16|n<<16,ue[t]=n>>>24|n<<8}fe=!0}}();const r=new Int32Array(60),n=function(t,e){const r=t.length>>2,n=r+6,a=4*(n+1);let o=1;for(let n=0;n<r;n++)e[n]=t[4*n]<<24|t[4*n+1]<<16|t[4*n+2]<<8|t[4*n+3];for(let t=r;t<a;t++){let n=e[t-1];t%r==0?(n=we(n<<8|n>>>24)^o<<24,o=ye(o)):r>6&&t%r==4&&(n=we(n)),e[t]=e[t-r]^n}return n}(t,r),a=new Int32Array(4),o=me(e);let i=0,s=0,c=0,l=0;return{process(t,e){e&&o.update(t,0,t.length),function(t){const e=new DataView(t.buffer,t.byteOffset,t.byteLength),r=t.length;let n=0;for(;n+16<=r;n+=16)d(),e.setInt32(n,e.getInt32(n)^a[0]),e.setInt32(n+4,e.getInt32(n+4)^a[1]),e.setInt32(n+8,e.getInt32(n+8)^a[2]),e.setInt32(n+12,e.getInt32(n+12)^a[3]);if(n<r){d();for(let e=0;n<r;n++,e++)t[n]^=a[e>>2]>>>24-8*(3&e)}}(t),e||o.update(t,0,t.length)},digest:()=>o.digest()};function d(){i=i+1|0,i||(s=s+1|0,s||(c=c+1|0,c||(l=l+1|0)));let t=he(i)^r[0],e=he(s)^r[1],o=he(c)^r[2],d=he(l)^r[3],u=ce[t>>>24]^le[e>>>16&255]^de[o>>>8&255]^ue[255&d]^r[4],f=ce[e>>>24]^le[o>>>16&255]^de[d>>>8&255]^ue[255&t]^r[5],p=ce[o>>>24]^le[d>>>16&255]^de[t>>>8&255]^ue[255&e]^r[6],m=ce[d>>>24]^le[t>>>16&255]^de[e>>>8&255]^ue[255&o]^r[7];t=ce[u>>>24]^le[f>>>16&255]^de[p>>>8&255]^ue[255&m]^r[8],e=ce[f>>>24]^le[p>>>16&255]^de[m>>>8&255]^ue[255&u]^r[9],o=ce[p>>>24]^le[m>>>16&255]^de[u>>>8&255]^ue[255&f]^r[10],d=ce[m>>>24]^le[u>>>16&255]^de[f>>>8&255]^ue[255&p]^r[11],u=ce[t>>>24]^le[e>>>16&255]^de[o>>>8&255]^ue[255&d]^r[12],f=ce[e>>>24]^le[o>>>16&255]^de[d>>>8&255]^ue[255&t]^r[13],p=ce[o>>>24]^le[d>>>16&255]^de[t>>>8&255]^ue[255&e]^r[14],m=ce[d>>>24]^le[t>>>16&255]^de[e>>>8&255]^ue[255&o]^r[15],t=ce[u>>>24]^le[f>>>16&255]^de[p>>>8&255]^ue[255&m]^r[16],e=ce[f>>>24]^le[p>>>16&255]^de[m>>>8&255]^ue[255&u]^r[17],o=ce[p>>>24]^le[m>>>16&255]^de[u>>>8&255]^ue[255&f]^r[18],d=ce[m>>>24]^le[u>>>16&255]^de[f>>>8&255]^ue[255&p]^r[19],u=ce[t>>>24]^le[e>>>16&255]^de[o>>>8&255]^ue[255&d]^r[20],f=ce[e>>>24]^le[o>>>16&255]^de[d>>>8&255]^ue[255&t]^r[21],p=ce[o>>>24]^le[d>>>16&255]^de[t>>>8&255]^ue[255&e]^r[22],m=ce[d>>>24]^le[t>>>16&255]^de[e>>>8&255]^ue[255&o]^r[23],t=ce[u>>>24]^le[f>>>16&255]^de[p>>>8&255]^ue[255&m]^r[24],e=ce[f>>>24]^le[p>>>16&255]^de[m>>>8&255]^ue[255&u]^r[25],o=ce[p>>>24]^le[m>>>16&255]^de[u>>>8&255]^ue[255&f]^r[26],d=ce[m>>>24]^le[u>>>16&255]^de[f>>>8&255]^ue[255&p]^r[27],u=ce[t>>>24]^le[e>>>16&255]^de[o>>>8&255]^ue[255&d]^r[28],f=ce[e>>>24]^le[o>>>16&255]^de[d>>>8&255]^ue[255&t]^r[29],p=ce[o>>>24]^le[d>>>16&255]^de[t>>>8&255]^ue[255&e]^r[30],m=ce[d>>>24]^le[t>>>16&255]^de[e>>>8&255]^ue[255&o]^r[31],t=ce[u>>>24]^le[f>>>16&255]^de[p>>>8&255]^ue[255&m]^r[32],e=ce[f>>>24]^le[p>>>16&255]^de[m>>>8&255]^ue[255&u]^r[33],o=ce[p>>>24]^le[m>>>16&255]^de[u>>>8&255]^ue[255&f]^r[34],d=ce[m>>>24]^le[u>>>16&255]^de[f>>>8&255]^ue[255&p]^r[35],u=ce[t>>>24]^le[e>>>16&255]^de[o>>>8&255]^ue[255&d]^r[36],f=ce[e>>>24]^le[o>>>16&255]^de[d>>>8&255]^ue[255&t]^r[37],p=ce[o>>>24]^le[d>>>16&255]^de[t>>>8&255]^ue[255&e]^r[38],m=ce[d>>>24]^le[t>>>16&255]^de[e>>>8&255]^ue[255&o]^r[39];let w=40;n>10&&(t=ce[u>>>24]^le[f>>>16&255]^de[p>>>8&255]^ue[255&m]^r[40],e=ce[f>>>24]^le[p>>>16&255]^de[m>>>8&255]^ue[255&u]^r[41],o=ce[p>>>24]^le[m>>>16&255]^de[u>>>8&255]^ue[255&f]^r[42],d=ce[m>>>24]^le[u>>>16&255]^de[f>>>8&255]^ue[255&p]^r[43],u=ce[t>>>24]^le[e>>>16&255]^de[o>>>8&255]^ue[255&d]^r[44],f=ce[e>>>24]^le[o>>>16&255]^de[d>>>8&255]^ue[255&t]^r[45],p=ce[o>>>24]^le[d>>>16&255]^de[t>>>8&255]^ue[255&e]^r[46],m=ce[d>>>24]^le[t>>>16&255]^de[e>>>8&255]^ue[255&o]^r[47],w=48),n>12&&(t=ce[u>>>24]^le[f>>>16&255]^de[p>>>8&255]^ue[255&m]^r[48],e=ce[f>>>24]^le[p>>>16&255]^de[m>>>8&255]^ue[255&u]^r[49],o=ce[p>>>24]^le[m>>>16&255]^de[u>>>8&255]^ue[255&f]^r[50],d=ce[m>>>24]^le[u>>>16&255]^de[f>>>8&255]^ue[255&p]^r[51],u=ce[t>>>24]^le[e>>>16&255]^de[o>>>8&255]^ue[255&d]^r[52],f=ce[e>>>24]^le[o>>>16&255]^de[d>>>8&255]^ue[255&t]^r[53],p=ce[o>>>24]^le[d>>>16&255]^de[t>>>8&255]^ue[255&e]^r[54],m=ce[d>>>24]^le[t>>>16&255]^de[e>>>8&255]^ue[255&o]^r[55],w=56),a[0]=(se[u>>>24]<<24|se[f>>>16&255]<<16|se[p>>>8&255]<<8|se[255&m])^r[w],a[1]=(se[f>>>24]<<24|se[p>>>16&255]<<16|se[m>>>8&255]<<8|se[255&u])^r[w+1],a[2]=(se[p>>>24]<<24|se[m>>>16&255]<<16|se[u>>>8&255]<<8|se[255&f])^r[w+2],a[3]=(se[m>>>24]<<24|se[u>>>16&255]<<16|se[f>>>8&255]<<8|se[255&p])^r[w+3]}}function me(t){const e=function(){const t=new Int32Array(ie),e=new Int32Array(16),r=new Uint8Array(re),n=new DataView(r.buffer),a=new Uint8Array(8);let o=0,i=0;return{update:s,digest:function(){const e=8*i,r=Math.floor(e/4294967296),n=e>>>0;for(s(ae,0,1);56!=o;)s(oe,0,1);a[0]=r>>>24,a[1]=r>>>16,a[2]=r>>>8,a[3]=r,a[4]=n>>>24,a[5]=n>>>16,a[6]=n>>>8,a[7]=n,s(a,0,8);const c=new Uint8Array(ne),l=new DataView(c.buffer);for(let e=0;e<t.length;e++)l.setInt32(4*e,t[e]);return t.set(ie),o=0,i=0,c}};function s(t,e,a){const s=e+a;if(i+=a,o){for(;e<s&&o<re;)r[o++]=t[e++];o==re&&(c(n,0),o=0)}if(e+re<=s){const r=new DataView(t.buffer,t.byteOffset,t.byteLength);for(;e+re<=s;e+=re)c(r,e)}for(;e<s;)r[o++]=t[e++]}function c(r,n){for(let t=0;t<16;t++)e[t]=r.getInt32(n+4*t);let a,o=t[0],i=t[1],s=t[2],c=t[3],l=t[4];for(let t=0;t<15;t+=5)l=(o<<5|o>>>27)+((s^c)&i^c)+l+1518500249+e[t]|0,i=i<<30|i>>>2,c=(l<<5|l>>>27)+((i^s)&o^s)+c+1518500249+e[t+1]|0,o=o<<30|o>>>2,s=(c<<5|c>>>27)+((o^i)&l^i)+s+1518500249+e[t+2]|0,l=l<<30|l>>>2,i=(s<<5|s>>>27)+((l^o)&c^o)+i+1518500249+e[t+3]|0,c=c<<30|c>>>2,o=(i<<5|i>>>27)+((c^l)&s^l)+o+1518500249+e[t+4]|0,s=s<<30|s>>>2;l=(o<<5|o>>>27)+((s^c)&i^c)+l+1518500249+e[15]|0,i=i<<30|i>>>2,a=e[13]^e[8]^e[2]^e[0],a=a<<1|a>>>31,e[0]=a,c=(l<<5|l>>>27)+((i^s)&o^s)+c+1518500249+a|0,o=o<<30|o>>>2,a=e[14]^e[9]^e[3]^e[1],a=a<<1|a>>>31,e[1]=a,s=(c<<5|c>>>27)+((o^i)&l^i)+s+1518500249+a|0,l=l<<30|l>>>2,a=e[15]^e[10]^e[4]^e[2],a=a<<1|a>>>31,e[2]=a,i=(s<<5|s>>>27)+((l^o)&c^o)+i+1518500249+a|0,c=c<<30|c>>>2,a=e[0]^e[11]^e[5]^e[3],a=a<<1|a>>>31,e[3]=a,o=(i<<5|i>>>27)+((c^l)&s^l)+o+1518500249+a|0,s=s<<30|s>>>2;for(let t=20;t<40;t+=5)a=e[t-3&15]^e[t-8&15]^e[t-14&15]^e[15&t],a=a<<1|a>>>31,e[15&t]=a,l=(o<<5|o>>>27)+(i^s^c)+l+1859775393+a|0,i=i<<30|i>>>2,a=e[t-2&15]^e[t-7&15]^e[t-13&15]^e[t+1&15],a=a<<1|a>>>31,e[t+1&15]=a,c=(l<<5|l>>>27)+(o^i^s)+c+1859775393+a|0,o=o<<30|o>>>2,a=e[t-1&15]^e[t-6&15]^e[t-12&15]^e[t+2&15],a=a<<1|a>>>31,e[t+2&15]=a,s=(c<<5|c>>>27)+(l^o^i)+s+1859775393+a|0,l=l<<30|l>>>2,a=e[15&t]^e[t-5&15]^e[t-11&15]^e[t+3&15],a=a<<1|a>>>31,e[t+3&15]=a,i=(s<<5|s>>>27)+(c^l^o)+i+1859775393+a|0,c=c<<30|c>>>2,a=e[t+1&15]^e[t-4&15]^e[t-10&15]^e[t+4&15],a=a<<1|a>>>31,e[t+4&15]=a,o=(i<<5|i>>>27)+(s^c^l)+o+1859775393+a|0,s=s<<30|s>>>2;for(let t=40;t<60;t+=5)a=e[t-3&15]^e[t-8&15]^e[t-14&15]^e[15&t],a=a<<1|a>>>31,e[15&t]=a,l=(o<<5|o>>>27)+(i&s|(i|s)&c)+l+2400959708+a|0,i=i<<30|i>>>2,a=e[t-2&15]^e[t-7&15]^e[t-13&15]^e[t+1&15],a=a<<1|a>>>31,e[t+1&15]=a,c=(l<<5|l>>>27)+(o&i|(o|i)&s)+c+2400959708+a|0,o=o<<30|o>>>2,a=e[t-1&15]^e[t-6&15]^e[t-12&15]^e[t+2&15],a=a<<1|a>>>31,e[t+2&15]=a,s=(c<<5|c>>>27)+(l&o|(l|o)&i)+s+2400959708+a|0,l=l<<30|l>>>2,a=e[15&t]^e[t-5&15]^e[t-11&15]^e[t+3&15],a=a<<1|a>>>31,e[t+3&15]=a,i=(s<<5|s>>>27)+(c&l|(c|l)&o)+i+2400959708+a|0,c=c<<30|c>>>2,a=e[t+1&15]^e[t-4&15]^e[t-10&15]^e[t+4&15],a=a<<1|a>>>31,e[t+4&15]=a,o=(i<<5|i>>>27)+(s&c|(s|c)&l)+o+2400959708+a|0,s=s<<30|s>>>2;for(let t=60;t<80;t+=5)a=e[t-3&15]^e[t-8&15]^e[t-14&15]^e[15&t],a=a<<1|a>>>31,e[15&t]=a,l=(o<<5|o>>>27)+(i^s^c)+l+3395469782+a|0,i=i<<30|i>>>2,a=e[t-2&15]^e[t-7&15]^e[t-13&15]^e[t+1&15],a=a<<1|a>>>31,e[t+1&15]=a,c=(l<<5|l>>>27)+(o^i^s)+c+3395469782+a|0,o=o<<30|o>>>2,a=e[t-1&15]^e[t-6&15]^e[t-12&15]^e[t+2&15],a=a<<1|a>>>31,e[t+2&15]=a,s=(c<<5|c>>>27)+(l^o^i)+s+3395469782+a|0,l=l<<30|l>>>2,a=e[15&t]^e[t-5&15]^e[t-11&15]^e[t+3&15],a=a<<1|a>>>31,e[t+3&15]=a,i=(s<<5|s>>>27)+(c^l^o)+i+3395469782+a|0,c=c<<30|c>>>2,a=e[t+1&15]^e[t-4&15]^e[t-10&15]^e[t+4&15],a=a<<1|a>>>31,e[t+4&15]=a,o=(i<<5|i>>>27)+(s^c^l)+o+3395469782+a|0,s=s<<30|s>>>2;t[0]=t[0]+o|0,t[1]=t[1]+i|0,t[2]=t[2]+s|0,t[3]=t[3]+c|0,t[4]=t[4]+l|0}}(),r=new Uint8Array(re),n=new Uint8Array(re);t.length>re&&(e.update(t,0,t.length),t=e.digest());for(let e=0;e<re;e++){const a=e<t.length?t[e]:0;r[e]=54^a,n[e]=92^a}return e.update(r,0,re),{update(t,r,n){e.update(t,r,n)},digest(){const t=e.digest();e.update(n,0,re),e.update(t,0,ne);const a=e.digest();return e.update(r,0,re),a}}}function we(t){return se[t>>>24]<<24|se[t>>>16&255]<<16|se[t>>>8&255]<<8|se[255&t]}function he(t){return t<<24|(65280&t)<<8|t>>>8&65280|t>>>24}function ye(t){return 255&(t<<1^27*(t>>7))}const be=typeof crypto!=U&&typeof crypto.getRandomValues==I,ge="Invalid password",xe="Invalid authentication code",Ee="zipjs-abort-check-password",ve="Crypto API not supported";function Se(t){if(be)return crypto.getRandomValues(t);throw new Error(ve)}const ze={name:"PBKDF2"},ke=Object.assign({hash:{name:"HMAC"}},ze),Ae=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},ze),Re=["deriveBits"],De=[8,12,16],Oe=[16,24,32],Fe=10,Ue=typeof crypto!=U,Ie=Ue&&crypto.subtle;let Te=Ue&&typeof Ie!=U&&typeof Ie.importKey==I&&typeof Ie.deriveBits==I,Ce=pe;class je extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r,checkPasswordOnly:n,checkAuthenticationCode:a=!0}){const o={};super({start(){Ne(o,t,e,r)},async transform(t,e){const{password:r,strength:a,l:i,ready:s}=o;if(r?(await async function(t,e,r,n){const a=await Le(t,e,r,qe(n,0,De[e])),o=qe(n,De[e]);if(a[0]!=o[0]||a[1]!=o[1])throw Be(t),new Error(ge)}(o,a,r,qe(t,0,De[a]+2)),t=qe(t,De[a]+2),n?(Be(o),e.error(new Error(Ee))):i()):await s,o.m)return;const c=new Uint8Array(t.length-Fe-(t.length-Fe)%16);e.enqueue(Pe(o,t,c,0,Fe,!0))},async flush(t){const{h:e,v:r,ready:n}=o;if(e){if(await n,o.m)return;const i=qe(r,r.length-Fe),s=new Uint8Array(qe(r,0,r.length-Fe));e.process(s,!0);const c=e.digest();let l=r.length<Fe?1:0;for(let t=0;t<Fe;t++)l|=c[t]^i[t];if(l&&a)return void t.error(new Error(xe));t.enqueue(s)}}}),_e(this,o)}}class Me extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r}){const n={};super({start(){Ne(n,t,e,r)},async transform(t,e){const{password:r,strength:a,l:o,ready:i}=n;let s=M;if(r?(s=await async function(t,e,r){const n=Se(new Uint8Array(De[e]));return Bt(n,await Le(t,e,r,n))}(n,a,r),o()):await i,n.m)return;const c=new Uint8Array(s.length+t.length-t.length%16);c.set(s,0),e.enqueue(Pe(n,t,c,s.length,0,!1))},async flush(t){const{h:e,v:r,ready:a}=n;if(e){if(await a,n.m)return;const o=new Uint8Array(r);e.process(o,!1);const i=qe(e.digest(),0,Fe);t.enqueue(Bt(o,i))}}}),_e(this,n)}}function Ne(t,e,r,n){Object.assign(t,{ready:new Promise(e=>t.l=e),password:We(e,r),strength:n-1,v:M,m:!1})}function _e(t,e){const r=t.readable.getReader(),n=new ReadableStream({async pull(t){try{const{value:e,done:n}=await r.read();n?t.close():t.enqueue(e)}catch(t){throw Be(e),r.cancel(t).catch(()=>{}),t}},cancel:t=>(Be(e),r.cancel(t))});Object.defineProperty(t,"readable",{get:()=>n})}function Pe(t,e,r,n,a,o){const{h:i,v:s}=t;s.length&&(e=Bt(s,e));const c=e.length-a,l=c-c%16;if(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){const t=qe(r,n,n+l);t.set(qe(e,0,l)),i.process(t,o)}return t.v=qe(e,l),r}function Be(t){const{h:e}=t;t.m=!0,e&&e.dispose&&e.dispose()}async function Le(t,e,r,n){t.password=null;const a=Oe[e],o=await async function(t,e,r){if(Te)try{const n=await Ie.importKey("raw",t,ke,!1,Re);return new Uint8Array(await Ie.deriveBits(Object.assign({salt:e},Ae),n,8*r))}catch{Te=!1}return function(t,e,r,n){const a=me(t),o=new Uint8Array(n),i=new Uint8Array(e.length+4),s=new DataView(i.buffer);i.set(e);for(let t=1,r=0;r<n;t++,r+=ne){s.setUint32(e.length,t),a.update(i,0,i.length);let c=a.digest();const l=c.slice();for(let t=1;t<1e3;t++){a.update(c,0,ne),c=a.digest();for(let t=0;t<ne;t++)l[t]^=c[t]}o.set(l.subarray(0,Math.min(ne,n-r)),r)}return o}(t,e,0,r)}(r,n,2*a+2);return t.h=Ce(qe(o,0,a),qe(o,a,2*a)),t.m&&Be(t),qe(o,2*a)}function We(t,e){return e===O?ee(t):e}function qe(t,e,r){return t.subarray(e,r)}class Ze extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r,checkPasswordOnly:n}){super({start(){He(this,t,e,r)},transform(t,e){const r=this;if(r.password||r.rawPassword){const e=Ge(r,t.subarray(0,12));if(r.password=r.rawPassword=null,0!=(e[11]^r.passwordVerification))throw new Error(ge);t=t.subarray(12)}n?e.error(new Error(Ee)):e.enqueue(Ge(r,t))}})}}class Ve extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r}){super({start(){He(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=Se(new Uint8Array(12));e[11]=r.passwordVerification,n=new Uint8Array(t.length+e.length),n.set(Ye(r,e),0),a=12}else n=new Uint8Array(t.length),a=0;n.set(Ye(r,t),a),e.enqueue(n)}})}}function He(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,{S:n,A:new Qt(n[0]),R:new Qt(n[2])}),r)for(let e=0;e<r.length;e++)Ke(t,r[e]);else for(let r=0;r<e.length;r++)Ke(t,e.charCodeAt(r))}(t,e,r)}function Ge(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Xe(t)^e[n],Ke(t,r[n]);return r}function Ye(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Xe(t)^e[n],Ke(t,e[n]);return r}function Ke(t,e){let[,r]=t.S;t.A.append([e]);const n=~t.A.get();r=Je(Math.imul(Je(r+$e(n)),134775813)+1),t.R.append([r>>>24]);const a=~t.R.get();t.S=[n,r,a]}function Xe(t){const e=2|t.S[2];return $e(Math.imul(e,1^e)>>>8)}function $e(t){return 255&t}function Je(t){return 4294967295&t}function Qe(t){if(t instanceof ReadableStream)return t;const e=t.getReader();return new ReadableStream({async pull(t){try{const{value:r,done:n}=await e.read();n?t.close():t.enqueue(r)}catch(t){throw e.cancel(t).catch(()=>{}),t}},cancel:t=>e.cancel(t)})}function tr(t,e){t=Qe(t);const r=e?{type:e}:{};if(typeof Blob.prototype.stream!=I||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 er(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 rr="Invalid codec definition",nr="Reserved compression method",ar="Invalid codec module",or="Compression method not supported",ir=[0,8,9,99],sr=new Map,cr=new Map;function lr(t={}){const{compressionMethod:r,format:n,codecURI:a,CompressionStream:o,DecompressionStream:i,versionNeeded:s}=t;if(!Number.isInteger(r)||r<0||r>e||typeof n!=C||!n.length)throw new Error(rr);if(ir.includes(r))throw new Error(nr);const c=typeof o==I||typeof i==I;if(!(c||typeof a==C&&a.length))throw new Error(rr);sr.set(r,{compressionMethod:r,format:n,codecURI:a,versionNeeded:s}),c&&mr(n,{CompressionStream:o,DecompressionStream:i})}function dr(t){const e=sr.get(t);if(e){let r;sr.delete(t),sr.forEach(t=>r=r||t.format==e.format),r||cr.delete(e.format)}}function ur(t){return sr.get(t)}function fr(){return Array.from(sr.values(),t=>Object.assign({},t,cr.get(t.format)))}function pr(t){return cr.get(t)}function mr(t,e){const{CompressionStream:r,DecompressionStream:n}=e;if(typeof r!=I&&typeof n!=I)throw new Error(ar);cr.set(t,{CompressionStream:r,DecompressionStream:n})}const wr="Invalid uncompressed size",hr="Invalid compressed data",yr="Codec out of memory",br="Invalid CRC32",gr="deflate-raw",xr="deflate64-raw",Er="gzip",vr=[31,139,8];class Sr extends TransformStream{constructor(t,{chunkSize:e,CompressionStreamFallback:r,CompressionStream:n}){super({});const{compressed:a,encrypted:o,useCompressionStream:i,zipCrypto:s,computeCrc32:c,level:l,deflate64:d,format:u,compressionMethod:f,inputSize:p}=t,m=this;let w,h,y,b=super.readable;const g=u&&pr(u),x=Ur(i,n,r),E=c&&a&&!d&&!g&&(!o||s)&&Boolean(x);if(o&&!s||!c||E||(w=new te,b=Tr(b,w)),a)if(g)b=Cr(b,Fr(g.CompressionStream,u,{level:l,chunkSize:e,compressionMethod:f,uncompressedSize:p}));else if(E)y=new zr,b=Cr(b,new x(Er,{level:l,chunkSize:e})),b=Tr(b,y);else try{b=Ir(b,i,{level:l,chunkSize:e},n,r)}catch(t){if(!i&&r)throw Pr(t);let e;try{e=new n(Er)}catch{throw Pr(t)}b=Cr(b,e),b=Tr(b,new zr)}o&&(s?b=Tr(b,new Ve(t)):(h=new Me(t),b=Tr(b,h))),Or(m,b,()=>{o&&!s||!c||(m.crc32=E?y.crc32:new DataView(w.value.buffer).getUint32(0))})}}class zr 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=Bt(r,t));const o=a-8,i=Math.min(o,r.length);n.enqueue(Bt(r.subarray(0,i),t.subarray(0,o-i))),r=Bt(r.subarray(i),t.subarray(o-i))},flush(){const e=Wt(r);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class kr extends TransformStream{constructor(t,{chunkSize:e,DecompressionStreamFallback:r,DecompressionStream:n}){super({});const{zipCrypto:a,encrypted:o,checkCrc32:i,crc32:s,compressed:c,useCompressionStream:l,deflate64:d,format:u,compressionMethod:f,rawBitFlag:p,outputSize:m}=t;let w,h,y,b=super.readable;if(o&&(a?b=Tr(b,new Ze(t)):(h=new je(t),b=Tr(b,h))),c){const t=new Set,a=u&&pr(u);let o;if(a)b=Cr(b,Fr(a.DecompressionStream,u,{chunkSize:e,compressionMethod:f,rawBitFlag:p,uncompressedSize:m}),t);else{const a=Ur(l,n,r);if(i&&!d&&s!==O&&m!==O&&a)try{o=new a(Er,{chunkSize:e})}catch{o=O}if(!o)try{b=Ir(b,l,{chunkSize:e,deflate64:d},n,r,t)}catch(t){if(d||m===O||!l&&r)throw Pr(t);try{o=new n(Er)}catch{throw Pr(t)}}}o?(y=!0,b=function(t,e,r,n,a){const o=e.writable.getWriter(),i=e.readable.getReader(),s=n===O?new Qt:O;let c,l,d=0,u=!1,f=!1;const p=new ReadableStream({start(t){l=t},pull(){h()},cancel:t=>(f=!0,h(),i.cancel(t))});return async function(){const e=t.getReader();try{const t=new Uint8Array(10);for(t.set(vr),await o.write(t);;){await w(),await o.ready;const{value:t,done:r}=await Nr(e,a);if(r)break;await o.write(t)}s&&await o.write(new Uint8Array(0));const i=new Uint8Array(8),c=Wt(i);c.setUint32(0,s?s.get():n,!0),c.setUint32(4,r,!0),u=!0,await o.write(i),await o.close()}catch(t){await jr(o,t),await Mr(e,t)}}(),async function(){try{for(;;){const{value:t,done:e}=await m();if(e)break;if(d+=t.length,d>r)throw new Error(wr);s&&s.append(t),l.enqueue(t)}f||(f=!0,l.close())}catch(t){!function(t){f||(f=!0,l.error(t),h())}(t),await Mr(i,t)}}(),p;function m(){return i.read().catch(t=>{if(u){if(!s)throw Lr(t,br);if(d!=r)throw Lr(t,wr);return{done:!0}}throw _r(t,a)})}function w(){if(!f&&l.desiredSize<=0)return new Promise(t=>c=t)}function h(){if(c){const t=c;c=O,t()}}}(b,o,m,s,t)):b=function(t,e){const r=t.getReader();return new ReadableStream({async pull(t){try{const{value:e,done:n}=await r.read();n?t.close():t.enqueue(e)}catch(t){throw await Mr(r,t),_r(t,e)}},cancel:t=>r.cancel(t)})}(b,t)}i&&!y&&(w=new te,b=Tr(b,w)),Or(this,b,()=>{if(w){const t=new DataView(w.value.buffer).getUint32(0,!1);if(s!=t)throw new Error(br)}})}}const Ar=new Map;function Rr(t,e){if(!t)return!1;let r=Ar.get(t);r||(r=new Map,Ar.set(t,r));let n=r.get(e);if(n===O){try{new t(e),n=!0}catch{n=!1}r.set(e,n)}return n}function Dr(t){return Rr(t,gr)}function Or(t,e,r){e=Tr(e,new TransformStream({flush:r})),Object.defineProperty(t,"readable",{get:()=>e})}function Fr(t,e,r){if(!t)throw new Error(or);return new t(e,r)}function Ur(t,e,r){return t&&e?e:r&&r.requiresModule?r:void 0}function Ir(t,e,r,n,a,o){const i=e&&n?n:a||n,s=r.deflate64?xr:gr;let c;try{c=new i(s,r)}catch(t){if(!e||!a||i==a)throw t;c=new a(s,r)}return Cr(t,c,o)}function Tr(t,e){return Qe(t).pipeThrough(e)}function Cr(t,e,r){const n=e.writable.getWriter(),a=t.getReader();return async function(){try{for(;;){await n.ready;const t=await Nr(a,r);if(t.done){await n.close();break}await n.write(t.value)}}catch(t){await jr(n,t),await Mr(a,t)}}(),e.readable}async function jr(t,e){try{await t.abort(e)}catch{}}async function Mr(t,e){try{await t.cancel(e)}catch{}}function Nr(t,e){const r=t.read();return e?r.catch(t=>{throw e.add(t),t}):r}function _r(t,e){return e.has(t)?t:Lr(t,Br(t)?yr:hr)}function Pr(t){return Br(t)?Lr(t,yr):t}function Br(t){return qt(t)&&"Z_MEM_ERROR"==t.code}function Lr(t,e){const r=new Error(e);return r.cause=t,r}const Wr="data",qr="deflate",Zr="inflate";class Vr extends TransformStream{constructor(t,e){super({});const r=this,{codecType:n}=t;let a;n.startsWith(qr)?a=Sr:n.startsWith(Zr)&&(a=kr),r.outputSize=0;let o=0;const i=new a(t,e),s=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!==O&&r.outputSize>t.outputSize))throw new Error(wr)},flush(){const{crc32:t}=i;Object.assign(r,{crc32:t,inputSize:o})}});Object.defineProperty(r,"readable",{get:()=>s.pipeThrough(c).pipeThrough(i).pipeThrough(l)})}}class Hr extends TransformStream{constructor(t){const e=[];let r=0,n=0;function a(){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(o,i){for(e.push(o),r+=o.length;r>t;)n+=t,i.enqueue(a())},flush(t){r&&(n+=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)))}}),Object.defineProperty(this,"outputSize",{get:()=>n})}}const Gr="Worker startup timeout";let Yr,Kr,Xr,$r=()=>{};async function Jr(t){const{CompressionStream:e,CompressionStreamFallback:r}=t;return!(!r||r.requiresModule)||!(!Dr(e)&&(n=e,!Rr(n,Er)))||!!r&&await Qr(t);var n}async function Qr(t){if($r)try{return await $r(t),!0}catch{}return!1}function tn(t){t.createWorker?Kr=!0:Yr=!1}class en{constructor(t,{readable:e,writable:r},n,a){const{options:o,config:i,D:s,useWebWorkers:c,transferStreams:l,workerURI:d}=n;let{createWorker:u}=n;const{signal:f}=s;return Kr&&(u=O),Object.assign(t,{O:!0,F:(t.F||0)+1,readable:e.pipeThrough(new Hr(It(i))).pipeThrough(new rn(s),{signal:f}),writable:r,options:Object.assign({},o),U:n,workerURI:d,createWorker:u,transferStreams:l,terminate:()=>new Promise(e=>{const{I:r,O:n}=t;n?(t.T=t.T||[],t.T.push(e)):(r&&(r.terminate(),t.I=null),e()),t.C=null}),j(){if(t.O){const{T:e,I:r}=t;e&&(t.T=null,r&&(t.M=!0,r.terminate())),t.O=!1;const n=a(t);e&&e.forEach(t=>t(n))}}}),Yr===O&&(Yr=typeof Worker!=U),(c&&Xr&&(Yr&&d||u)?Xr:an)(t,i)}}class rn extends TransformStream{constructor({onstart:t,onprogress:e,size:r,onend:n}){let a=0;super({async start(){t&&await nn(t,r)},async transform(t,n){a+=t.length,e&&await nn(e,a,r),n.enqueue(t)},async flush(){n&&await nn(n,a)}})}}async function nn(t,...e){try{await t(...e)}catch{}}function an(t,e){return{run:()=>on(t,e)}}async function on({options:t,readable:e,writable:r,j:n,U:a},o){let i,s,c;try{if(t.compressed&&!t.format){const e=t.codecType.startsWith(qr),r=e?o.CompressionStreamFallback:o.DecompressionStreamFallback,n=e?o.CompressionStream:o.DecompressionStream;t.useCompressionStream?r&&r.requiresModule&&!Dr(n)&&await l():await l()||r&&!r.requiresModule||(t.useCompressionStream=!0)}t.encrypted&&!t.zipCrypto&&await l(),i=new Vr(t,o),s=new Hr(It(o));const{signal:n}=a.D;await e.pipeThrough(i).pipeThrough(s).pipeTo(r,{preventClose:!0,preventAbort:!0,signal:n});const{crc32:c,inputSize:d,outputSize:u}=i;return{crc32:c,inputSize:d,outputSize:u}}catch(t){if(i){const e=s?s.outputSize:0;if(a.outputSize=e,qt(t))try{t.outputSize=e}catch{}}throw t}finally{n()}function l(){return c||(c=Qr(o)),c}}const sn={type:"module"},cn="error",ln="abort";let dn,un,fn,pn=!0;try{pn=typeof structuredClone==I&&structuredClone(new DOMException("","AbortError")).code!==O}catch{}var mn;function wn(t){const{reader:e}=t;e&&e.releaseLock(),t.reader=null,t.writer=null}function hn(t){const{I:e}=t;if(e)try{e.terminate()}catch{}t.C=null}function yn(t,e,r,n,a=!0){const{createWorker:o}=r;let i,s,c;if(o)i=o();else if(un===O||dn!==t){const o=typeof t==I;s=o?t(a):t;const l=s.startsWith("data:"),d=s.startsWith("blob:");if(l||d){n===O&&(n=!1),n&&(c=sn);try{i=new Worker(s,c)}catch(a){if(d)try{URL.revokeObjectURL(s)}catch{}if(o&&d)return yn(t,e,r,n,!1);if(n)throw a;return yn(t,e,r,!0,!1)}}else{n===O&&(n=!0),n&&(c=sn);try{s=new URL(s,e)}catch{}try{i=new Worker(s,c)}catch(o){if(n)return yn(t,e,r,!1,a);throw o}}dn=t,un=s,fn=c}else i=new Worker(un,fn);return i.addEventListener("message",t=>{r.N=!0,bn(r),async function({data:t},e){const{type:r,value:n,messageId:a,result:o,error:i,errorValue:s}=t,{reader:c,writer:l,_:d,P:u,j:f,F:p}=e,m=()=>e.F!=p;try{if(i)w(function(t,e){const{message:r,stack:n,code:a,name:o,outputSize:i,cause:s,codecImportFailed:c}=t;let l;if(l=e?e.value:Object.assign(new Error(r),{stack:n,code:a,name:o}),qt(l))try{i!==O&&(l.outputSize=i),c&&(l.codecImportFailed=!0),s&&(qt(l.cause)||(l.cause=Object.assign(new Error(s.message),{name:s.name})),s.code!==O&&l.cause.code!==s.code&&(l.cause.code=s.code)),e&&(l.name!==o&&(l.name=o),l.code!==a&&(l.code=a))}catch{}return l}(i,s));else{if("pull"==r){const{value:t,done:r}=await c.read();m()||xn({type:Wr,value:t,done:r,messageId:a},e)}if(r==Wr){const t=new Uint8Array(n);await l.ready,await l.write(t),m()||xn({type:"ack",messageId:a},e)}"close"==r&&function(t){m()||(d(t),h(),f())}(o)}}catch(i){m()||(hn(e),w(i))}function w(t){m()||(u(t),h(),qt(t)&&t.codecImportFailed||f())}function h(){l&&l.releaseLock()}}(t,r)}),i.addEventListener(cn,t=>gn(t,r)),i.addEventListener("messageerror",t=>gn(t,r)),i}function bn(t){const{B:e}=t;e&&(clearTimeout(e),t.B=null)}function gn(t,e){t.preventDefault&&t.preventDefault(),bn(e);const{N:r,P:n,writer:a,j:o}=e;hn(e),r||(e.I=null);let i=t.error||new Error(t.message||cn);r||(i=Object.assign(new Error(i.message||cn),{L:!0}),e.W=i),n&&(n(i),a&&a.releaseLock(),r&&o())}function xn(t,{I:e,writer:r,transferStreams:n,N:a}){try{const{value:r,readable:o,writable:i}=t,s=[];if(r&&(t.value=Lt(r),s.push(t.value.buffer)),n&&pn&&a?(o&&s.push(o),i&&s.push(i)):t.readable=t.writable=null,s.length)try{return e.postMessage(t,s),!0}catch{pn=!1,t.readable=t.writable=null,e.postMessage(t)}else e.postMessage(t)}catch(t){throw r&&r.releaseLock(),t}}mn=function(t,e){const{baseURI:r,chunkSize:n,workerStartupTimeout:a}=e;let{wasmURI:o}=e;if(!t.C){let i;typeof o==I&&(o=o());try{i=yn(t.workerURI,r,t)}catch{return tn(t),an(t,e)}Object.assign(t,{I:i,N:!1,M:!1,W:null,C:{run:async()=>{try{return await async function(t,e){if(!t.I){const{W:e}=t;t.W=null;const r=e||new Error(Gr);throw r.L=!0,r}let r,n;const a=new Promise((e,a)=>{r=e,n=e=>{const{outputSize:r,U:n}=t;if(n.outputSize=r,qt(e))try{e.outputSize=r}catch{}a(e)}});Object.assign(t,{reader:null,writer:null,outputSize:0,Z:!1,V:null,_:r,P:n,result:a});const{readable:o,options:i}=t,{writable:s,closed:c,H:l}=function(t,e){const r=new AbortController;let n;const{writable:a,readable:o}=new TransformStream({transform(t,r){e.outputSize+=t.length,r.enqueue(t)}}),i=o.pipeTo(t,{preventClose:!0,preventAbort:!0,signal:r.signal});i.catch(t=>{n||Object.assign(e,{Z:!0,V:t})});const{signal:s}=e.U.D;if(s){const t=()=>r.abort(s.reason),e=()=>s.removeEventListener(ln,t);s.addEventListener(ln,t),i.then(e,e)}return{writable:a,closed:i,H:()=>{n=!0,r.abort()}}}(t.writable,t);let d;try{d=xn({type:"start",options:i,config:e,readable:o,writable:s},t)}catch(e){l();try{await c}catch{}throw t.j(),e}d||Object.assign(t,{reader:o.getReader(),writer:s.getWriter()});const{workerStartupTimeout:u}=e;!t.N&&Number.isFinite(u)&&u>=0&&(t.B=setTimeout(()=>function(t){if(t.B=null,t.N)return;const{P:e,writer:r}=t;if(hn(t),t.I=null,e){const t=new Error(Gr);t.L=!0,e(t),r&&r.releaseLock()}}(t),u));try{const t=await a;return await f(),await c,t}catch(e){await f(),l();try{await c}catch{}const{outputSize:r,U:n,Z:a,V:o}=t;n.outputSize=r;const i=qt(e)&&(e.codecImportFailed||e.L),s=a&&!i?o:e;if(qt(s))try{s.outputSize=r}catch{}throw s}async function f(){if(!d&&!s.locked)try{await s.getWriter().close()}catch{}}}(t,{chunkSize:n,wasmURI:o,baseURI:r,workerStartupTimeout:a})}catch(r){if(r&&r.L)return tn(t),wn(t),on(t,e);if(r&&r.codecImportFailed){if(t.reader)return wn(t),on(t,e);t.j()}throw r}}}})}return t.C},Xr=mn;let En=[];const vn=[];let Sn,zn,kn=0;async function An(t,e){const{options:r,config:n}=e,{transferStreams:a,useWebWorkers:o,useCompressionStream:i,compressed:s,checkCrc32:c,computeCrc32:l,encrypted:d,format:u,codecURI:f}=r,{workerURI:p,createWorker:m,maxWorkers:w}=n;u&&(f&&(r.codecURI=function(t,e){try{return new URL(t,e).toString()}catch{return t}}(f,n.baseURI)),await async function(t,e){!cr.has(t)&&e&&mr(t,await(import(/* webpackIgnore: true */ /* @vite-ignore */e)))}(u,r.codecURI)),e.transferStreams=!u&&(a||a===O&&n.transferStreams);const h=!(s||c||l||d),y=u===O||Boolean(r.codecURI);return e.useWebWorkers=!h&&y&&(o||o===O&&n.useWebWorkers),e.workerURI=e.useWebWorkers&&p?p:O,e.createWorker=e.useWebWorkers&&m?m:O,r.useCompressionStream=i||i===O&&n.useCompressionStream,(await async function(){const r=En.find(t=>!t.O);if(r)return Tn(r),new en(r,t,e,b);if(En.length<w){const r={G:kn};return kn++,En.push(r),new en(r,t,e,b)}return new Promise(r=>{vn.push({resolve:r,stream:t,U:e}),zn=n.workerStarvationTimeout,Rn()})}()).run();function b(t){if(Dn(),t.M)return t.M=!1,Fn();if(vn.length){const[{resolve:e,stream:r,U:n}]=vn.splice(0,1);e(new en(t,r,n,b)),Rn()}else t.I?(Tn(t),function(t,e){const{config:r}=e,{terminateWorkerTimeout:n}=r;Number.isFinite(n)&&n>=0&&(t.Y=setTimeout(async()=>{En=En.filter(e=>e!=t);try{await t.terminate()}catch{}},n))}(t,e)):En=En.filter(e=>e!=t)}}function Rn(){!Sn&&vn.length&&Number.isFinite(zn)&&zn>=0&&(Sn=setTimeout(On,zn))}function Dn(){Sn&&(clearTimeout(Sn),Sn=null)}function On(){if(Sn=null,vn.length){const[{resolve:t,stream:e,U:r}]=vn.splice(0,1);t(new en({},e,Un(r),In)),Rn()}}function Fn(){const t=vn.splice(0).map(({resolve:t,stream:e,U:r})=>new Promise(n=>{t(new en({},e,Un(r),()=>{In(),n()}))}));return Dn(),Promise.all(t)}function Un(t){return Object.assign({},t,{useWebWorkers:!1,workerURI:O,createWorker:O})}function In(){Dn(),Rn()}function Tn(t){const{Y:e}=t;e&&(clearTimeout(e),t.Y=null)}const Cn="\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 jn(t,e){return Nn(t,e,!0)}function Mn(t){if(!t.some(t=>t>127))return!1;try{return new TextDecoder("utf-8",{fatal:!0}).decode(t),!0}catch{return!1}}function Nn(t,e,r){return e&&"cp437"==e.trim().toLowerCase()?function(t){let e="";for(let r=0;r<t.length;r++)e+=Cn[t[r]];return e}(t):new TextDecoder(e,{ignoreBOM:r}).decode(t)}const _n="HTTP error ",Pn="HTTP Range not supported",Bn="HTTP resource changed",Ln="Writer iterator completed too soon",Wn="Writer not initialized",qn="Invalid writer (size must be writable)",Zn="Content-Range",Vn="Range",Hn="GET",Gn="bytes",Yn=16777216,Kn="writable",Xn=Symbol();class $n{constructor(){this.size=0}init(){this.initialized=!0}}class Jn extends $n{get readable(){return this.createReadable()}createReadable({offset:t=0,size:e,chunkSize:r=It(Ut())}={}){const n=this;let a=0;return r=Tt(r),new ReadableStream({async pull(o){const i=e===O?r:Math.min(r,e-a),s=await _a(n,t+a,i);s.length&&(o.enqueue(s),a+=s.length),(e!==O&&a>=e||!s.length&&i)&&o.close()}})}}class Qn extends $n{constructor(){super();const t=this,e=new WritableStream({write(e){if(!t.initialized)throw new Error(Wn);return t.writeUint8Array(Lt(e))}});Object.defineProperty(t,Kn,{get:()=>e})}writeUint8Array(){}}class ta extends Jn{constructor(t){super();let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;Object.assign(this,{K:t,X:r,size:Math.floor(.75*(e-r))})}readUint8Array(t,e){const{X:r,K:n}=this,a=new Uint8Array(e),o=4*Math.floor(t/3),i=atob(n.substring(o+r,4*Math.ceil((t+e)/3)+r)),s=t-3*Math.floor(o/4);let c=0;for(let t=s;t<s+e&&t<i.length;t++)a[t-s]=i.charCodeAt(t),c++;return c<a.length?a.subarray(0,c):a}}class ea extends Qn{constructor(t){super(),Object.assign(this,{contentType:t,data:"data:"+(t||"")+";base64,",$:""})}writeUint8Array(t){const e=this;let r,n=e.$;const a=e.$.length;for(e.$="",r=0;r<3*Math.floor((a+t.length)/3)-a;r++)n+=String.fromCharCode(t[r]);for(;r<t.length;r++)e.$+=String.fromCharCode(t[r]);n.length>2?e.data+=btoa(n):e.$=n+e.$}getData(){return this.data+btoa(this.$)}}let ra,na;class aa extends Jn{constructor(t){super(),Object.assign(this,{J:t,size:t.size}),na||(na=(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();ra=1==e}catch{ra=!1}})())}createReadable(t){const{J:e,size:r}=this,{offset:n=0,size:a=r-n}=t||{};if(typeof e.stream==I){if(!n&&a>=r)return Qe(e.stream());if(ra)return Qe(e.slice(n,n+a).stream())}return super.createReadable(t)}async readUint8Array(t,e){const r=this,n=t+e,a=!t&&n>=r.size?r.J:r.J.slice(t,n);let o=await a.arrayBuffer();return o.byteLength>e&&(o=o.slice(t,n)),new Uint8Array(o)}}class oa extends $n{constructor(t){super();const e=this,r=new TransformStream;Object.defineProperty(e,Kn,{get:()=>r.writable}),e.contentType=t,e.et=tr(r.readable,t),e.et.catch(()=>{})}getData(){return this.et}}class ia extends aa{constructor(t){super(new Blob([t],{type:"text/plain"}))}}function sa(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 ca extends oa{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 Nn(t,e,!1)}(new Uint8Array(await r.arrayBuffer()),t)}}class la extends Jn{constructor(t,e){super(),ua(this,t,e)}async init(){await fa(this,ka,Ea),super.init()}createReadable(t){const e=this,{useRangeHeader:r,forceRangeRequests:n,size:a,ot:o}=e;if((r||n)&&a!==O){const{offset:r=0,size:n=a-r}=t||{},i=o&&r>=a-o.length;if(n>0&&r<a&&!i)return function(t,e,r){let n,a=e,o=0,i=r;return new ReadableStream({start:()=>s(),async pull(t){n||await s();const{value:e,done:r}=await n.read();if(r)throw new Error(Pn);const a=e.length>o?e.subarray(0,o):e;o-=a.length,i-=a.length,a.length&&t.enqueue(a),o||(await async function(){const t=n;n=O,await t.cancel()}(),i||t.close())},cancel:t=>n&&n.cancel(t)});async function s(){const e=Math.min(t.maximumRangeSize,i),r=await ka(Hn,t,ga(t,a,e));if(206!=r.status)throw new Error(Pn);const s=ma(r);if(s!==O&&s!=a)throw new Error(Pn);ba(t,r),ya(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 pa(this,t,e,ka,Ea)}}class da extends Jn{constructor(t,e){super(),ua(this,t,e)}async init(){await fa(this,Aa,va),super.init()}readUint8Array(t,e){return pa(this,t,e,Aa,va)}}function ua(t,e,r){const{preventHeadRequest:n,useRangeHeader:a,forceRangeRequests:o,combineSizeEocd:i,checkResourceChanges:s=!0,maximumRangeSize:c=Yn,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:i,checkResourceChanges:s,maximumRangeSize:c,fetch:l})}async function fa(t,e,r){const{url:n,preventHeadRequest:a,useRangeHeader:o,forceRangeRequests:i,combineSizeEocd:s}=t;if(function(t){const{baseURI:e}=Ut(),{protocol:r}=new URL(t,e);return"http:"==r||"https:"==r}(n)&&(o||i)&&(typeof a==U||a)){const n=await e(Hn,t,ga(t,s?-65557:void 0)),a=n.headers.get("Accept-Ranges");if(!(i||a&&a.toLowerCase()==Gn))throw new Error(Pn);{let a;s&&206==n.status&&(a=new Uint8Array(await n.arrayBuffer())),ya(t,n);const o=wa(n);o===O?await za(t,e,r):t.size=o,a&&a.length&&ma(n)===t.size-a.length&&(t.ot=a)}}else await za(t,e,r)}async function pa(t,e,r,n,a){const{useRangeHeader:o,forceRangeRequests:i,ot:s,size:c,options:l}=t;if(o||i){if(e>=c||0===r)return M;{if(e+r>c&&(r=c-e),s&&e>=c-s.length){const t=e-(c-s.length);return s.slice(t,t+r)}const a=await n(Hn,t,ga(t,e,r));if(206!=a.status)throw new Error(Pn);const o=ma(a);if(o!==O&&o!=e)throw new Error(Pn);ba(t,a),ya(t,a);const i=new Uint8Array(await a.arrayBuffer());if(i.length!=r)throw new Error(Pn);return i}}{const{data:n}=t;return n||await a(t,l),t.data.subarray(e,e+r)}}function ma(t){const e=t.headers.get(Zn);if(e){const t=Number(e.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t))return t}}function wa(t){const e=t.headers.get(Zn);if(e){const t=e.trim().split(/\s*\/\s*/)[1];if(t&&"*"!=t){const e=Number(t);if(!Number.isNaN(e))return e}}}function ha({headers:t}){return{it:t.get("Etag")||O,lastModified:t.get("Last-Modified")||O}}function ya(t,e){const{checkResourceChanges:r,st:n}=t;r&&!n&&206==e.status&&(t.st=ha(e))}function ba(t,e){const{checkResourceChanges:r,st:n,size:a}=t;if(r){const t=wa(e);if(t!==O&&a!==O&&t!=a)throw new Error(Bn);if(n){const t=ha(e);if(Object.entries(n).some(([e,r])=>r!==O&&t[e]!==O&&r!=t[e]))throw new Error(Bn)}}}function ga(t,e=0,r=1){return Object.assign({},xa(t),{[Vn]:Gn+"="+(e<0?e:e+"-"+(e+r-1))})}function xa({options:t}){const{headers:e}=t;if(e)return Symbol.iterator in e?Object.fromEntries(e):e}async function Ea(t){await Sa(t,ka)}async function va(t){await Sa(t,Aa)}async function Sa(t,e){const r=await e(Hn,t,xa(t));t.data=new Uint8Array(await r.arrayBuffer()),t.size=t.data.length}async function za(t,e,r){if(t.preventHeadRequest)await r(t,t.options);else{const n=await e("HEAD",t,xa(t)),a=n.headers.get("Content-Length");a&&!n.headers.get("Content-Encoding")?t.size=Number(a):await r(t,t.options)}}async function ka(t,{fetch:e=fetch,options:r,url:n},a){const o=await e(n,Object.assign({},r,{method:t,headers:a}));if(o.status>=200&&o.status<=299)return o;throw 416==o.status?new Error(Pn):new Error(_n+(o.statusText||o.status))}function Aa(t,{url:e},r){return new Promise((n,a)=>{const o=new XMLHttpRequest;if(o.addEventListener("load",()=>{if(o.status>=200&&o.status<=299){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(Pn):new Error(_n+(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 Ra extends Jn{constructor(t,e={}){super(),Object.assign(this,{url:t,reader:e.useXHR&&!e.fetch?new da(t,e):new la(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 Da extends Ra{constructor(t,e={}){super(t,Object.assign({},e,{useRangeHeader:!0}))}}class Oa extends Jn{constructor(t){super(),t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),Object.assign(this,{ct:t,size:t.length})}readUint8Array(t,e){return this.ct.slice(t,t+e)}}class Fa extends Qn{constructor(t){super(),this.lt=t||262144}init(t=0){Object.assign(this,{offset:0,ct:new Uint8Array(t>0?t:this.lt)}),super.init()}writeUint8Array(t){const e=this,r=e.offset+t.length;if(r>e.ct.length){let t=e.ct.length?2*e.ct.length:e.lt;for(;t<r;)t*=2;const n=e.ct;e.ct=new Uint8Array(t),e.ct.set(n)}e.ct.set(t,e.offset),e.offset+=t.length}getData(){return this.offset===this.ct.length?this.ct:this.ct.slice(0,this.offset)}}class Ua extends Jn{constructor(t){super(),this.ut=t}async init(){const t=this;t.ft=0;const e=t.ut=await Promise.all(t.ut.map(Na));t.wt=e.map(e=>{const r=t.size;return t.size+=e.size,r}),super.init()}ht(t){const{wt:e,size:r}=this,n=e[t];return n===O?r:n}async readUint8Array(t,e){const r=this,{ut:n}=this;let a,o=0,i=t;for(;n[o]&&i>=n[o].size;)i-=n[o].size,o++;const s=n[o];if(s){const n=s.size;if(i+e<=n)a=await _a(s,i,e);else{const o=n-i;a=Bt(await _a(s,i,o),await r.readUint8Array(t+o,e-o))}}else a=M;return r.ft=Math.max(o,r.ft),a}}class Ia extends $n{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 i=new WritableStream({async write(e){if(e===Xn)return void(o&&await c());const{availableSize:i}=r;if(o)e.length>=i?(await s(e.subarray(0,i)),await c(),e.length>i&&await this.write(e.subarray(i))):await s(e);else{const{value:i,done:s}=await t.next();if(s&&!i)throw new Error(Ln);n=i,n.size=0,n.maxSize&&(r.maxSize=n.maxSize),r.availableSize=r.maxSize,await Ma(n),a=i.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 s(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,Kn,{get:()=>i})}async closeDisk(){const t=this.writable.getWriter();try{await t.ready,await t.write(Xn)}finally{t.releaseLock()}}}class Ta{constructor(t){return Array.isArray(t)&&(t=new Ua(t)),(t instanceof ReadableStream||typeof t.getReader==I)&&(t={readable:Qe(t)}),t}}class Ca{constructor(t){t.writable===O&&typeof t.next==I&&(t=new Ia(t)),(t instanceof WritableStream||typeof t.getWriter==I)&&(t={writable:er(t)});try{t.size=t.size===O?0:t.size}catch{throw new Error(qn)}return t}}function ja(t){return Boolean(t&&t.getData)}async function Ma(t,e){if(!t.init||t.initialized)return Promise.resolve();await t.init(e)}async function Na(t){return t=new Ta(t),await Ma(t),t.size!==O&&t.readUint8Array||(t=new aa(await tr(t.readable)),await Ma(t)),t}function _a(t,e,r){return t.readUint8Array(e,r)}function Pa(t,e){return t.createReadable?t.createReadable(e):t.readUint8Array?Jn.prototype.createReadable.call(t,e):t.readable}function Ba(t,e,r){if(!t.some(t=>t.reason==e)){const n={reason:e};r!==O&&(n.filename=r),t.push(n)}}const La="filename",Wa="rawFilename",qa="comment",Za="rawComment",Va="uncompressedSize",Ha="compressedSize",Ga="offset",Ya="diskNumberStart",Ka="lastModDate",Xa="rawLastModDate",$a="lastAccessDate",Ja="rawLastAccessDate",Qa="creationDate",to="rawCreationDate",eo="internalFileAttributes",ro="externalFileAttributes",no="msdosAttributesRaw",ao="msdosAttributes",oo="msDosCompatible",io="zip64",so="encrypted",co="version",lo="versionMadeBy",uo="zipCrypto",fo="directory",po="executable",mo="compressionMethod",wo="signature",ho="extraField",yo="unixMode",bo="setuid",go="setgid",xo="sticky",Eo=[La,Wa,Va,Ha,Ka,Xa,qa,Za,$a,Ja,Qa,to,Ga,Ya,eo,ro,no,ao,oo,io,so,co,lo,uo,fo,po,"symlink",mo,wo,"crc32",ho,"extraFieldUnix","extraFieldInfoZip","extraFieldUnixType1","extraFieldPkwareUnix","uid","gid",yo,"unixExternalUpper",bo,go,xo,"bitFlag","rawBitFlag","filenameLength","extraFieldLength","filenameUTF8","commentUTF8","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp","extraFieldUSDZ"];class vo{constructor(t){Eo.forEach(e=>this[e]=t[e])}}const So=new Set([1,w,10,h,28789,25461,y,b,g,22613,13]);function zo(t,e,r){return t?e?12:16+4*r:0}const ko="File format is not recognized",Ao="End of central directory not found",Ro="End of Zip64 central directory locator not found",Do="Central directory header not found",Oo="Local file header not found",Fo="Zip64 extra field not found",Uo="File contains encrypted entry",Io="Encryption method not supported",To="Split zip file",Co="Overlapping entry found",jo="Entry data out of bounds",Mo="Ambiguous archive",No="Encrypted central directory is not supported",_o="Unsafe filename",Po="Invalid strictness (must be 'strict', 'balanced' or 'tolerant')",Bo="Invalid filenameValidation (must be 'strict', 'balanced' or 'tolerant')",Lo="Invalid maxAppendedDataSize (must be a number greater than or equal to 0)",Wo="64-bit value exceeds Number.MAX_SAFE_INTEGER",qo="unsorted central directory",Zo="unknown version needed to extract",Vo="compressed patched data",Ho="malformed extra field",Go="unknown zip64 extensible data",Yo="wrapped entries count",Ko="appended data",Xo="prepended data",$o="prepended central directory",Jo="trailing central directory data",Qo="duplicate filename",ti="mismatched zip64 end of central directory record",ei="multiple end of central directory records",ri="mismatched local file header (filename)",ni="mismatched local file header (general purpose bit flag)",ai="mismatched local file header (compression method)",oi="mismatched local file header (crc32 or sizes)",ii=/^[a-zA-Z]:/,si=/(^|[\\/])\.\.([\\/]|$)/,ci="utf-8",li="cp437",di=[[Va,t],[Ha,t],[Ga,t],[Ya,e]],ui={[e]:{yt:Ki,bytes:4},[t]:{yt:Xi,bytes:8}},fi=BigInt(Number.MAX_SAFE_INTEGER);class pi{constructor(t,e={}){Object.assign(this,{reader:new Ta(t),options:e,bt:{gt:new Set,xt:[],Et:[]}})}async*getEntriesGenerator(n={}){const o=this;let{reader:i}=o;if(await Ma(i),i.size!==O&&i.readUint8Array||(i=new aa(await tr(i.readable)),await Ma(i)),i.size<f)throw new Error(ko);const c=o.warnings=[],w=Ii(n,o.options),h=w==rt,y=w!=at,b=ji(qi(o,n,$),w),g=function(t,e){if(t===O)return e;if(!Ui(t))throw new Error(Bo);return t}(qi(o,n,"filenameValidation"),w),x=qi(o,n,"normalizeFilename"),{vt:A,St:R}=await Mi(i,y,b);if(!A)throw await async function(t){return await Fi(t)==a}(i)?new Error(To):new Error(Ao);y&&R>1&&Wi(ei);const D=Wt(A);let F=Ki(D,12),U=Ki(D,16);const I=A.offset,T=Yi(D,20),C=I+f+T,j=i.size-C;j>b&&Wi(Ko),j>0&&Ba(c,Ko);let N=Yi(D,4);const _=i.ft||0;let P,B,L,W,q,Z=Yi(D,6),V=Yi(D,10),H=0,G=m;const Y=U==t||F==t||V==e||Z==e;if(U!=t&&Z!=e&&(U+=Oi(i,Z)),Y){const r=A.offset>=p?await _a(i,A.offset-p,p):M,n=Wt(r);if(r.length==p&&Ki(n,0)==d){U=Oi(i,Ki(n,4))+Xi(n,8);let r=await _a(i,U,m),a=Wt(r);const o=A.offset-p-m;if((r.length<m||Ki(a,0)!=l)&&U!=o&&o>=0){const t=U;U=o,U>t&&(H=U-t),r=await _a(i,U,m),a=Wt(r)}if(r.length<m||Ki(a,0)!=l)throw new Error(Ro);if(L=!0,W=Xi(a,4)>44,W){const t=Math.min(Xi(a,4)-44,i.size-U-m);t>0&&(G+=t,q=function(t){const e={rawExtensibleData:t};if(t.length>=28){const r=Wt(t),n=Yi(r,26);Object.assign(e,{compressionMethod:Yi(r,0),compressedSize:Xi(r,2),uncompressedSize:Xi(r,10),encryptionAlgorithm:Yi(r,18),bitLength:Yi(r,20),flags:Yi(r,22),hashAlgorithm:Yi(r,24),hashData:t.subarray(28,28+n)})}return e}(await _a(i,U+m,t)))}N==e?N=Ki(a,16):N!=Ki(a,16)&&Li(h,c,ti),Z==e?Z=Ki(a,20):Z!=Ki(a,20)&&Li(h,c,ti),V==e?V=Xi(a,32):V!=Xi(a,32)&&Li(h,c,ti),F==t?F=Xi(a,40):F!=Xi(a,40)&&Li(h,c,ti),U=Oi(i,Z)+Xi(a,48)+H}}let K=F;const X=A.offset-(L?G+p:0);if(U>=i.size&&(H=i.size-U-F-f,U=i.size-F-f),_!=N)throw new Error(To);if(U<0)throw new Error(ko);let J=0,Q=await _a(i,U,F),nt=Wt(Q);if(F){if(Q.length<4)throw new Error(ko);const t=X-F;if(U!=t&&Z==N){const e=Ki(nt,J)==s||Boolean(q&&q.compressedSize)||yi(nt);let r=!e;if(!r&&t>=0&&t+4<=i.size&&(r=Ki(Wt(await _a(i,t,4)),0)==s),r){const r=U;U=t,U>r&&(H+=U-r,P=e),Q=await _a(i,U,F),nt=Wt(Q)}}}const ot=X-U;if(F!=ot&&ot>=0&&Z==N&&(F=ot,Q=await _a(i,U,F),nt=Wt(Q)),U<0||U>=i.size)throw new Error(ko);o.directoryOffset=U,o.directoryLength=K;const it=Zi(o,n,"decryptCentralDirectory");let st,ct;if(it&&V&&Q.length>=4&&Ki(nt,0)!=s&&(W||yi(nt))){const t=function(t,e,r){const n=t&&t.compressedSize?t.compressedSize:e;return n>0&&n<=r?n:r}(q,K,Q.length);ct=Q.subarray(t),Q=await it(Q.subarray(0,t),q),nt=Wt(Q),K=Q.length,st=!0}q&&!st&&(Q.length<4||Ki(nt,0)==s)&&Ba(c,Go),B=U;const lt=qi(o,n,"filenameEncoding"),dt=qi(o,n,"commentEncoding"),ut=new Set;let ft,pt=-1;const mt=!h&&!L;!V&&mt&&(V=bi(nt,Q,J),V&&Ba(c,Yo));for(let t=0;t<V;t++){const a=new hi(i,o.options);if(J+u>Q.length||Ki(nt,J)!=s){if(0==t&&!st&&(W||yi(nt)))throw new Error(No);throw new Error(Do)}xi(a,nt,J+6);const l=Boolean(a.bitFlag.languageEncodingFlag),d=J+u,f=d+a.filenameLength+a.extraFieldLength,p=Yi(nt,J+4),m=!(p>>8),w=p>>8==3,h=Yi(nt,J+32),y=f+h,b=new Uint8Array(Q.subarray(d,y)),A=b.subarray(0,a.filenameLength),R=b.subarray(a.filenameLength+a.extraFieldLength),D=l||!lt&&Mn(A),F=l||!dt&&Mn(R),U=Ki(nt,J+38),I=U&r,T={readOnly:Boolean(1&I),hidden:Boolean(2&I),system:Boolean(4&I),directory:Boolean(16&I),archive:Boolean(32&I)},C=Ki(nt,J+42),j=Zi(o,n,"decodeText")||jn,M=D?ci:lt||li,N=F?ci:dt||li;let _=j(A,M,tt);if(_===O&&(_=jn(A,M)),x){const t=x(_);t!==O&&(_=t)}if(Ci(_,g)){const t=new Error(_o);throw t.filename=_,t}let P=j(R,N,et);P===O&&(P=jn(R,N)),Object.assign(a,{index:t,zt:st,versionMadeBy:p,msDosCompatible:m,zip64:!1,compressedSize:0,uncompressedSize:0,kt:h,offset:C,diskNumberStart:Yi(nt,J+34),internalFileAttributes:Yi(nt,J+36),externalFileAttributes:U,msdosAttributesRaw:I,msdosAttributes:T,rawFilename:A,filenameUTF8:D,commentUTF8:F,rawExtraField:b.subarray(a.filenameLength,a.filenameLength+a.extraFieldLength),rawComment:R,filename:_,comment:P}),Ei(a,a,nt,J+6)&&Ba(c,Ho,_),a.offset+=H;const L=Oi(i,a.diskNumberStart)+a.offset;B=Math.min(L,B),L<pt&&Ba(c,qo,_),pt=L,(a.version&r)>63&&Ba(c,Zo,_),32&~a.rawBitFlag||Ba(c,Vo,_),ut.has(a.filename)&&(ft=!0),ut.add(a.filename);const q=a.externalFileAttributes>>16&e;a.unixMode===O&&16877&q&&(a.unixMode=q);const Z=Boolean(a.unixMode&S),G=Boolean(a.unixMode&z),Y=Boolean(512&a.unixMode),K=40960==((a.unixMode===O?q:a.unixMode)&E),X=!K&&(a.unixMode!==O?!!(73&a.unixMode):w&&!!(73&q)),$=a.unixMode!==O&&(a.unixMode&E)==v,rt=(q&E)==v;Object.assign(a,{setuid:Z,setgid:G,sticky:Y,symlink:K,unixExternalUpper:q,executable:X,directory:$||rt||m&&T.directory||a.filename.endsWith(k),zipCrypto:a.encrypted&&!a.extraFieldAES});const at=new vo(a);if(at.getData=(t,e)=>a.getData(t,at,o.bt,e),at.arrayBuffer=async t=>{const e=new TransformStream,r=tr(e.readable).then(t=>t.arrayBuffer());return r.catch(()=>{}),await a.getData(e,at,o.bt,Object.assign({},t,{preventClose:!1})),r},J=y,t==V-1&&mt){const t=bi(nt,Q,J);t&&(V+=t,Ba(c,Yo))}const{onprogress:ot}=n;if(ot)try{await ot(t+1,V,new vo(a))}catch{}yield at}let wt=J,ht=gi(Q.subarray(J))||(st?gi(ct):O);if(!ht&&!st){const t=U+J,e=Math.min(X-t,65541);e>=6&&(ht=gi(await _a(i,t,e)))}ht&&(o.digitalSignature=ht,wt=J+6+ht.length),(J!=K&&wt!=K||!st&&J!=F&&wt!=F)&&Li(h,c,Jo),ft&&Li(h,c,Qo);const yt=qi(o,n,"extractPrependedData"),bt=qi(o,n,"extractAppendedData"),gt=(h||yt)&&V&&4==B&&await async function(t){const e=await Fi(t);return e==a||808471376==e}(i)?4:0;return h&&(H||V&&B>gt)&&Wi(Xo),(H||V&&B>4)&&Ba(c,Xo),P&&Ba(c,$o),yt&&(o.prependedData=B>gt?await _a(i,gt,B-gt):M),o.comment=T?await _a(i,I+f,T):M,bt&&(o.appendedData=C<i.size?await _a(i,C,i.size-C):M),!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()}[N](){return this.close()}}class mi{constructor(t={}){let e;const{readable:r,writable:n}=new TransformStream({start(t){e=t}}),a=new pi(r,t),o=a.getEntriesGenerator(),i=new Set;this.readable=new ReadableStream({async pull(t){const{done:e,value:r}=await o.next();if(e)return t.close();const n=function(t,e){const{readable:r,writable:n}=new TransformStream;let a;const o={cancel:async t=>{e.delete(o),await(a?a.cancel(t):r.cancel(t))}};return o.readable=new ReadableStream({async pull(i){a||(a=r.getReader(),e.add(o),async function(){try{await t.getData(n,{preventClose:!1})}catch(t){try{await n.abort(t)}catch{}}finally{e.delete(o)}}());const{done:s,value:c}=await a.read();s?i.close():i.enqueue(c)},cancel:t=>o.cancel(t)},{highWaterMark:0}),o}(r,i),a={...r,readable:n.readable};delete a.getData,Object.defineProperties(a,{localDirectory:{get:()=>r.localDirectory,enumerable:!0},warnings:{get:()=>r.warnings,enumerable:!0}}),t.enqueue(a)},async cancel(t){const r=Array.from(i);i.clear(),e.error(t),await Promise.allSettled(r.map(e=>e.cancel(t))),await Promise.allSettled([o.return(),a.close()])}}),this.writable=n}}async function wi(t,e={}){if(t=new Ta(t),await Ma(t),t.size!==O&&t.readUint8Array||(t=new aa(await tr(t.readable)),await Ma(t)),t.size<f)return!1;const r=Ii(e,{}),n=r!=at,a=ji(e[$],r),{vt:o,St:i}=await Mi(t,n,a);if(!o||r==rt&&i>1)return!1;const s=Yi(Wt(o),20),c=o.offset+f+s;return t.size-c<=a}let hi=class{constructor(t,e){Object.assign(this,{reader:t,options:e})}async getData(t,e,a,o={}){const i=this,s=Ut(),{reader:c,index:l,offset:d,diskNumberStart:u,extraFieldAES:f,extraFieldZip64:p,compressionMethod:m,bitFlag:w,rawBitFlag:h,crc32:y,rawLastModDate:b,uncompressedSize:g,compressedSize:x}=i,{dataDescriptor:E}=w,v=e.localDirectory={},S=e.warnings=[],z=Oi(c,u)+d,k=await _a(c,z,A),R=Wt(k);let D=qi(i,o,_),F=qi(i,o,P);const U=wt(qi(i,o,B)),I=Boolean(U),T=!0===U;if(mt(D,F),D=D&&D.length?D:O,F=F&&F.length?F:O,f&&99!=f.originalCompressionMethod)throw new Error(or);if(k.length<A||Ki(R,0)!=n)throw new Error(Oo);xi(v,R,4);const{extraFieldLength:C,filenameLength:j}=v,N=v.dataOffset=z+A+j+C,H=qi(i,o,"checkLocalDirectory"),G=Ii(o,i.options),Y=function(t,e){return t===O?e!=at:Boolean(t)}(H,G),K=qi(i,o,"checkLocalFilename"),X=function(t,e){return t===O?e==rt:Boolean(t)}(K===O?H:K,G);let $=M;if(X&&(j||C)){const t=await _a(c,z+A,j+C);$=t.subarray(0,j),v.rawExtraField=t.subarray(j)}else v.rawExtraField=C?await _a(c,z+A+j,C):M;X&&(v.rawFilename=$),Ei(i,v,R,4,!0)&&Ba(S,Ho),function(t,e,r,n,a){const{rawFilename:o}=t,i=!a,s=t.zt&&!(8192&~e.rawBitFlag);!n||s||r.length==o.length&&!r.some((t,e)=>t!=o[e])||Li(i,a,ri),(2121&e.rawBitFlag)!=(2121&t.rawBitFlag)&&Li(i,a,ni),e.compressionMethod!=t.compressionMethod&&Li(i,a,ai),e.bitFlag.dataDescriptor||s||!(e.crc32||e.compressedSize||e.uncompressedSize)||e.crc32==t.crc32&&e.compressedSize==t.compressedSize&&e.uncompressedSize==t.uncompressedSize||Li(i,a,oi)}(i,v,$,X,Y?O:S);const{lastAccessDate:J,creationDate:Q,uid:tt,gid:et}=v;J&&(e.lastAccessDate=J),Q&&(e.creationDate=Q),tt!==O&&e.uid===O&&(e.uid=tt),et!==O&&e.gid===O&&(e.gid=et);const nt=qi(i,o,"checkPasswordOnly"),ot=i.encrypted&&(!T||nt),it=ot&&!f;if(T||(e.zipCrypto=it),ot&&!(64&~i.rawBitFlag))throw new Error(Io);const st=I?O:ur(m);if(0!=m&&8!=m&&9!=m&&!st&&!I)throw new Error(or);if(ot){if(!it&&(f.strength<1||f.strength>3))throw new Error(Io);if(!D&&!F)throw new Error(Uo)}if(N+x>c.size)throw new Error(jo);const ct=x,lt=ft(qi(i,o,L));pt(lt);let dt=qi(i,o,"checkOverlappingEntry");const ut=qi(i,o,"checkOverlappingEntryOnly");ut&&(dt=!0);const{onstart:ht,onprogress:yt,onend:bt}=o,gt=0!=m&&!I,xt=I?x-zo(ot,it,f&&f.strength):g,Et=9==m;let vt=qi(i,o,q);Et&&(vt=!1);const St=qi(i,o,"checkCrc32"),zt=(St===O?qi(i,o,"checkSignature"):St)&&!I&&(!ot||it||f&&1==f.vendorVersion),kt={options:{codecType:Zr,password:D,rawPassword:F,zipCrypto:it,encryptionStrength:f&&f.strength,checkCrc32:zt,checkAuthenticationCode:qi(i,o,"checkAuthenticationCode"),passwordVerification:it&&(E?b>>>8&r:y>>>24&r),outputSize:xt,crc32:y,compressed:gt,encrypted:ot,useWebWorkers:qi(i,o,W),useCompressionStream:vt,transferStreams:qi(i,o,Z),deflate64:Et,format:st?st.format:O,codecURI:st?st.codecURI:O,compressionMethod:m,rawBitFlag:h,checkPasswordOnly:nt},config:s,D:{signal:lt,size:ct,onstart:ht,onprogress:yt,onend:bt}};let At,Rt,Dt;dt&&await async function({reader:t,At:e,index:r,offset:n,crc32:a,compressedSize:o,uncompressedSize:i,dataOffset:s,dataDescriptor:c,extraFieldZip64:l,bt:d}){let u=0;if(c){const r=Boolean(l),n=Wt(await _a(t,s+o,24)),c=e.encrypted&&!e.zipCrypto;let d;for(const[t,e]of[[r,!0],[r,!1],[!r,!0],[!r,!1]]){const r=Ri(n,t,e);if(r&&(c||r.crc32==a)&&r.compressedSize==o&&r.uncompressedSize==i){d=r;break}}d||(d=Ri(n,r,!1)),d?(e.localDirectory.dataDescriptor=d,u=Di(d.zip64,d.signature)):u=Di(r,!1)}const f={start:n,end:s+o+u,At:e},{gt:p,xt:m,Et:w}=d;if(!p.has(r)){const t=function(t,e){let r=0,n=t.length;for(;r<n;){const a=r+n>>>1;t[a].start<e.start?r=a+1:n=a}const a=t[r-1],o=t[r];return a&&Ai(e,a)?a:o&&Ai(e,o)?o:void 0}(m,f)||w.find(t=>Ai(f,t));if(t){const e=new Error(Co);throw e.overlappingEntry=t.At,e}p.add(r),w.push(f),w.length*w.length>m.length&&(w.sort((t,e)=>t.start-e.start),d.xt=function(t,e){const r=[];let n=0,a=0;for(;n<t.length||a<e.length;)a==e.length||n<t.length&&t[n].start<e[a].start?r.push(t[n++]):r.push(e[a++]);return r}(m,w),w.length=0)}}({reader:c,At:e,index:l,offset:z,crc32:y,compressedSize:x,uncompressedSize:g,dataOffset:N,dataDescriptor:E||v.bitFlag.dataDescriptor,extraFieldZip64:p||v.extraFieldZip64,bt:a});try{if(!ut){nt&&(t=new WritableStream),t=new Ca(t),await Ma(t,function(t,e,r){return Math.min(t,r?1032*e:e)}(xt,x,gt)),({writable:At}=t);const e=Qe(c.createReadable({offset:N,size:ct})),{outputSize:r}=await An({readable:e,writable:At},kt);if(pt(lt),r!=xt)throw Object.assign(new Error(wr),{outputSize:r});t.size+=r}}catch(e){const{outputSize:r}=kt;if(r!==O?t.size+=r:qt(e)&&e.outputSize!==O&&(t.size+=e.outputSize),!nt||!qt(e)||e.message!=Ee)throw Rt=e,Dt=!0,e}finally{if((ja(t)||!qi(i,o,V))&&At&&!At.locked){const t=At.getWriter();if(Dt)try{await t.abort(Rt)}catch{}else await t.close()}}return nt||ut?O:t.getData?t.getData():At}};function yi(t){const e=Math.min(t.byteLength,1024)-3;for(let r=0;r<e;r++)if(134630224==Ki(t,r))return!0;return!1}function bi(t,e,r){let n=0;for(;r+u<=e.length&&Ki(t,r)==s;)r+=u+Yi(t,r+28)+Yi(t,r+30)+Yi(t,r+32),n++;return n%65536?0:n}function gi(t){if(t.length>=6){const e=Wt(t);if(Ki(e,0)==i){const r=Yi(e,4);if(6+r<=t.length)return new Uint8Array(t.subarray(6,6+r))}}}function xi(t,e,r){const n=t.rawBitFlag=Yi(e,r+2),a=!(1&~n),o=Ki(e,r+6);Object.assign(t,{encrypted:a,version:Yi(e,r),bitFlag:{level:(6&n)>>1,dataDescriptor:!(8&~n),languageEncodingFlag:(n&x)==x},rawLastModDate:o,lastModDate:Vi(o),filenameLength:Yi(e,r+22),extraFieldLength:Yi(e,r+24)})}function Ei(t,e,r,n,a){const{rawExtraField:o}=e,i=e.extraField=new Map,s=Wt(o);let c=0,l=!1;try{for(;c<o.length;){const t=Yi(s,c),e=Yi(s,c+2);i.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=Yi(r,n+4);Object.assign(e,{signature:Ki(r,n+10),crc32:Ki(r,n+10),compressedSize:Ki(r,n+14),uncompressedSize:Ki(r,n+18)});const u=i.get(1);if(u)(function(t,e,r){e.zip64=!0;const n=Wt(t.data),a=di.filter(([t,r])=>e[t]==r),o=a.reduce((t,[,e])=>t+ui[e].bytes,0);if(t.data.length<o){if(r)return!1;throw new Error(Fo)}const i=[];try{for(let t=0,e=0;t<a.length;t++){const[,r]=a[t],o=ui[r];i.push(o.yt(n,e)),e+=o.bytes}}catch(t){if(r)return!1;throw t}return a.forEach(([r],n)=>{e[r]=t[r]=i[n]}),!0})(u,e,a)||(l=!0),e.extraFieldZip64=u;else if(di.some(([t,r])=>e[t]==r)){if(!a)throw new Error(Fo);l=!0}const f=i.get(28789);f&&(vi(f,La,Wa,e,t),e.extraFieldUnicodePath=f);const p=i.get(25461);p&&(vi(p,qa,Za,e,t),e.extraFieldUnicodeComment=p);const m=i.get(w);m&&(99==d||e.encrypted)&&m.data.length>=7?(function(t,e,r){const n=Wt(t.data),a=Gi(n,4);Object.assign(t,{vendorVersion:Gi(n,0),vendorId:Gi(n,2),strength:a,originalCompressionMethod:r,compressionMethod:Yi(n,5)}),e.compressionMethod=t.compressionMethod,1!=t.vendorVersion&&(e.crc32=O)}(m,e,d),e.extraFieldAES=m):(m&&(l=!0),e.compressionMethod=d);const x=i.get(13);x&&(Si(x,e),e.extraFieldPkwareUnix=x);const E=i.get(22613);E&&(Si(E,e),e.extraFieldUnixType1=E);const v=i.get(10);v&&(function(t,e){const r=Wt(t.data);let n,a=4;try{for(;a<t.data.length&&!n;){const e=Yi(r,a),o=Yi(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=Wt(n),a=r.getBigUint64(0,!0),o=r.getBigUint64(8,!0),i=r.getBigUint64(16,!0);Object.assign(t,{rawLastModDate:a,rawLastAccessDate:o,rawCreationDate:i});const s={lastModDate:Hi(a),lastAccessDate:Hi(o),creationDate:Hi(i)};Object.assign(t,s),Object.assign(e,s,{rawLastAccessDate:o,rawCreationDate:i})}}(v,e),e.extraFieldNTFS=v);const S=i.get(g);let z;if(S&&(z=zi(S,e,!1),e.extraFieldUnix=S),!z){const t=i.get(b);t&&(zi(t,e,!0),e.extraFieldInfoZip=t)}const k=i.get(h);k&&(function(t,e,r){if(!t.data.length)return;const n=Wt(t.data),a=Gi(n,0),o=[],i=[];r?(1&~a||(o.push(Ka),i.push(Xa)),2&~a||(o.push($a),i.push(Ja)),4&~a||(o.push(Qa),i.push(to))):t.data.length>=5&&(o.push(Ka),i.push(Xa));let s=1;o.forEach((r,a)=>{if(t.data.length>=s+4){const o=Ki(n,s);e[r]=t[r]=new Date(1e3*(0|o));const c=i[a];t[c]=o}s+=4})}(k,e,a),e.extraFieldExtendedTimestamp=k);const A=i.get(y);return A&&(e.extraFieldUSDZ=A),l}function vi(t,e,r,n,a){if(t.data.length<5)return void(t.valid=!1);const o=Wt(t.data),i=new Qt;i.append(a[r]);const s=Wt(new Uint8Array(4));s.setUint32(0,i.get(),!0);const c=Ki(o,1),l=Gi(o,0);Object.assign(t,{version:l,[e]:jn(t.data.subarray(5)),valid:1==l&&!a.bitFlag.languageEncodingFlag&&c==Ki(s,0)}),t.valid&&(n[e]=t[e],n[e+"UTF8"]=!0)}function Si(t,e){if(t.data.length<8)return;const r=Wt(t.data),n={lastAccessDate:new Date(1e3*(0|Ki(r,0))),lastModDate:new Date(1e3*(0|Ki(r,4)))};t.data.length>=12&&(n.uid=Yi(r,8),n.gid=Yi(r,10)),Object.assign(t,n),Object.assign(e,n)}function zi(t,e,r){try{const n=Wt(t.data);let a,o;if(r){let e=0;const r=Gi(n,e++),i=Gi(n,e++);a=ki(t.data.subarray(e,e+i)),e+=i;const s=Gi(n,e++);o=ki(t.data.subarray(e,e+s)),Object.assign(t,{version:r,uid:a,gid:o})}else t.data.length>=4&&(a=Yi(n,0),o=Yi(n,2),Object.assign(t,{uid:a,gid:o}));return a!==O&&(e.uid=a),o!==O&&(e.gid=o),a!==O||o!==O}catch{}}function ki(t){const e=new Uint8Array(4);return e.set(t,0),new DataView(e.buffer,e.byteOffset,4).getUint32(0,!0)}function Ai(t,e){return t.start<e.end&&e.start<t.end}function Ri(t,e,r){const n=r?4:0;if(t.byteLength<Di(e,r)||r&&Ki(t,0)!=o)return O;const a=Ki(t,n);let i,s;try{e?(i=Xi(t,n+4),s=Xi(t,n+12)):(i=Ki(t,n+4),s=Ki(t,n+8))}catch{return O}return{signature:r,zip64:e,crc32:a,compressedSize:i,uncompressedSize:s}}function Di(t,e){return(t?20:12)+(e?4:0)}function Oi(t,e){return t.ht?t.ht(e):0}async function Fi(t){return Ki(Wt(await _a(t,0,4)))}function Ui(t){return t===rt||t===nt||t===at}function Ii(t,e){return Ti(t,Ti(e,nt))}function Ti(t,e){const r=t.strictness;if(r!==O){if(!Ui(r))throw new Error(Po);return r}const n=t.checkAmbiguity;return n===O?e:n?rt:e==at?at:nt}function Ci(t,e){if(e==at)return!1;const r=t.split("/");return r.length>1&&""===r[r.length-1]&&r.pop(),!!(si.test(t)||t.startsWith("/")||t.startsWith("\\")||ii.test(t))||e==rt&&(r.includes(".")||r.includes("")||t.includes("\0"))}function ji(t,r){if(t!==O){const e=bt(t);if("number"!=typeof e||Number.isNaN(e)||e<0)throw new Error(Lo);return e}return r==rt?0:r==at?1/0:e}async function Mi(t,e,r){const{size:n}=t,a=Math.min(n,65557),o={Rt:64};let i,s,c=0;for await(const[r,l,d,u,p]of Ni(t,a)){const a=Yi(r,u+20);if(p+f+a==n){const a=await Pi(t,r,l,u,p,n,o);if(2==a){if(i||(i=_i(d,u,p)),c++,!e||c>1)break}else 1!=a||s||(s=_i(d,u,p))}}return i||(i=s),i||(i=await async function(t,e,r){const{size:n}=t,a=Math.min(n,e==1/0?n:65557+e);let o,i;for await(const[e,s,c,l,d]of Ni(t,a)){const a=_i(c,l,d);o||(o=a);const u=await Pi(t,e,s,l,d,n,r);if(2==u)return a;1!=u||i||(i=a)}return i||o}(t,r,o)),{vt:i,St:c}}async function*Ni(t,e){const r=t.size-e,n=await _a(t,r,e),a=Wt(n);for(let t=n.length-f;t>=0;t--)Ki(a,t)==c&&(yield[a,r,n,t,r+t])}function _i(t,e,r){return{offset:r,buffer:new Uint8Array(t.subarray(e,e+f)).buffer}}async function Pi(r,n,a,o,i,c,l){const u=Yi(n,o+10),f=Ki(n,o+12),m=Ki(n,o+16);if(u==e||f==t||m==t)return await Bi(r,n,a,i-p,c,l)==d?2:0;if(!u&&!f)return 1;const w=Yi(n,o+6);for(const t of[i-f,Oi(r,w)+m])if(await Bi(r,n,a,t,c,l)==s)return 2;return 0}async function Bi(t,e,r,n,a,o){return n<0||n+4>a?O:n>=r?Ki(e,n-r):o.Rt>0?(o.Rt--,Ki(Wt(await _a(t,n,4)),0)):O}function Li(t,e,r){t?Wi(r):Ba(e,r)}function Wi(t){const e=new Error(Mo);throw e.reason=t,e}function qi(t,e,r){return e[r]===O?t.options[r]:e[r]}function Zi(t,e,r){return ut(qi(t,e,r))}function Vi(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 Hi(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function Gi(t,e){return t.getUint8(e)}function Yi(t,e){return t.getUint16(e,!0)}function Ki(t,e){return t.getUint32(e,!0)}function Xi(t,e){const r=t.getBigUint64(e,!0);if(r>fi)throw new Error(Wo);return Number(r)}var $i=Object.freeze({__proto__:null,ERR_AMBIGUOUS_ARCHIVE:Mo,ERR_BAD_FORMAT:ko,ERR_CENTRAL_DIRECTORY_NOT_FOUND:Do,ERR_CODEC_OUT_OF_MEMORY:yr,ERR_ENCRYPTED:Uo,ERR_ENCRYPTED_CENTRAL_DIRECTORY:No,ERR_ENTRY_DATA_OUT_OF_BOUNDS:jo,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:Ro,ERR_EOCDR_NOT_FOUND:Ao,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:Fo,ERR_INVALID_AUTHENTICATION_CODE:xe,ERR_INVALID_COMPRESSED_DATA:hr,ERR_INVALID_CRC32:br,ERR_INVALID_FILENAME_VALIDATION:Bo,ERR_INVALID_MAX_APPENDED_DATA_SIZE:Lo,ERR_INVALID_PASSWORD:ge,ERR_INVALID_STRICTNESS:Po,ERR_INVALID_UNCOMPRESSED_SIZE:wr,ERR_LOCAL_FILE_HEADER_NOT_FOUND:Oo,ERR_OVERLAPPING_ENTRY:Co,ERR_SPLIT_ZIP_FILE:To,ERR_UNSAFE_FILENAME:_o,ERR_UNSUPPORTED_COMPRESSION:or,ERR_UNSUPPORTED_ENCRYPTION:Io,ERR_UNSUPPORTED_UINT64:Wo,ERR_WORKER_STARTUP_TIMEOUT:Gr,WARNING_APPENDED_DATA:Ko,WARNING_COMPRESSED_PATCHED_DATA:Vo,WARNING_DUPLICATE_FILENAME:Qo,WARNING_MALFORMED_EXTRA_FIELD:Ho,WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG:ni,WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD:ai,WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES:oi,WARNING_MISMATCHED_LOCAL_FILE_HEADER_FILENAME:ri,WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY:ti,WARNING_MULTIPLE_END_OF_CENTRAL_DIRECTORY:ei,WARNING_PREPENDED_CENTRAL_DIRECTORY:$o,WARNING_PREPENDED_DATA:Xo,WARNING_TRAILING_CENTRAL_DIRECTORY_DATA:Jo,WARNING_UNKNOWN_VERSION:Zo,WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA:Go,WARNING_UNSORTED_CENTRAL_DIRECTORY:qo,WARNING_WRAPPED_ENTRIES_COUNT:Yo,ZipReader:pi,ZipReaderStream:mi,isZipFile:wi});const Ji="File already exists",Qi="Zip file comment exceeds 64KB",ts="Invalid zip file comment (must be a Uint8Array)",es="File entry comment exceeds 64KB",rs="Invalid file entry comment (must be a string)",ns="Invalid date (must be a valid Date instance)",as="File entry name exceeds 64KB",os="Version exceeds 65535",is="The strength must equal 1, 2, or 3",ss="Encryption is not supported in USDZ files",cs="Split zip files are not supported in USDZ files",ls="Encryption is not supported when the 'passThrough' option is set to true (use 'compressed' instead)",ds="Invalid extra field (must be a Map)",us="Invalid extra field type (must be integer 0..65535)",fs="Invalid extra field data (must be a Uint8Array)",ps="Extra field data exceeds 64KB",ms=-2147483648,ws=2147483647,hs=BigInt(0),ys=BigInt("0x7fffffffffffffff"),bs="Zip64 is not supported (set the 'zip64' option to 'true')",gs="Undefined uncompressed size",xs="Undefined compression method",Es="Undefined CRC32",vs="Undetermined size",Ss="Undefined reader",zs="Invalid reader (must be a Reader instance, a ReadableStream instance, or an object with a 'readable' property)",ks="Zip file not empty",As="Invalid uid (must be integer 0..2^32-1)",Rs="Invalid gid (must be integer 0..2^32-1)",Ds="Invalid UNIX mode (must be integer 0..65535)",Os="Invalid unixExtraFieldType (must be 'infozip' or 'unix')",Fs="uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)",Us="Invalid msdosAttributesRaw (must be integer 0..255)",Is="Invalid msdosAttributes (must be an object with boolean flags)",Ts="Invalid level (must be integer 0..9)",Cs="Signature data exceeds 64KB",js="Invalid entry option (must be an entry returned by ZipReader#getEntries())",Ms="The last modification date of an entry encrypted with ZipCrypto cannot be changed when passThrough is set",Ns="compression unavailable",_s="clamped last modification date",Ps=new Uint8Array([7,0,2,0,65,69,3,0,0]),Bs="infozip",Ls="unix",Ws=[8,9,5,3];let qs=0;const Zs=[];class Vs{constructor(t,e={}){t=new Ca(t);const{availableSize:r=F,maxSize:n=F}=t,a=r>0&&r!==F&&n>0&&n!==F;if(a&&e[X])throw new Error(cs);Object.assign(this,{writer:t,Dt:a,options:e,Ot:new Map,Ft:new Set,offset:e[K]===O?t.size||t.writable.size||0:e[K],Ut:e[K]===O?0:e[K]-(t.size||t.writable.size||0),It:new Set,Tt:[],warnings:[],Ct:0,jt:0,Mt:O,Nt:!1})}prependZip(t){return Ks(this,async function(t,e){if(t.Ft.size)throw new Error(ks);await t._t(e)}(this,t))}appendZip(t){return Ks(this,this._t(t))}async _t(t){const e=this,{It:r,Ft:n,Ot:o}=e;for(;r.size;)await Promise.allSettled(Array.from(r));let i;const s=new Promise(t=>i=t);r.add(s);const c=[];let l;try{t=new Ta(t),await Ma(t),t.size!==O&&t.readUint8Array||(t=new aa(await tr(t.readable)),await Ma(t));const{ZipReader:r}=await Promise.resolve().then(function(){return $i}),i=new r(t),s=await i.getEntries();await i.close(),await Ma(e.writer);const{directoryOffset:d}=i;s.forEach(({filename:t})=>{if(n.has(t))throw new Error(Ji);n.add(t),c.push(t)}),e.Pt=!0;const{Bt:u}=e;e.Bt=new Promise(t=>l=()=>{e.Pt=!1,t()}),await u,e.Dt&&(delete e.Dt,await async function(t){return Wt(await _a(t,0,4)).getUint32(0,!0)==a}(t)||(await xc(e.writer,bc()),e.offset+=4));const f=await async function(t,e,r,n){const{writer:a}=t,o=new Map;if(a.closeDisk){const i=Array.from(r).sort((t,r)=>yc(e,t)-yc(e,r));let s=0;for(const r of i){const n=yc(e,r);await wc(t,e,s,n-s),fc(a,await hc(e,n))&&await a.closeDisk(),o.set(r,{offset:pc(t,a),diskNumberStart:dc(a)}),s=n}await wc(t,e,s,n-s)}else{const a=t.offset;await wc(t,e,0,n),r.forEach(t=>o.set(t,{offset:a+yc(e,t),diskNumberStart:0}))}return o}(e,t,s,d);s.forEach(t=>{const{version:e,rawLastModDate:r,rawFilename:n,bitFlag:a,encrypted:i,uncompressedSize:s,compressedSize:c,extraFieldZip64:l}=t;let{compressionMethod:d,rawExtraField:u}=t;const{level:p,languageEncodingFlag:m,dataDescriptor:w}=a;u=mc(u||M),t.extraFieldAES&&(d=99);const h=Mc(u),y=Boolean(l)&&l.uncompressedSize!==O,b=Boolean(l)&&l.compressedSize!==O,g=-7&Pc(p,m,w,i,d)|p<<1,{Lt:x,Wt:E}=Nc({version:e,bitFlag:g,compressionMethod:d,uncompressedSize:s,compressedSize:c,rawLastModDate:r,rawFilename:n,qt:b,Zt:y,extraFieldLength:h}),{crc32:v}=t;v!==O&&Tc(E,10,v);const{offset:S,diskNumberStart:z}=f.get(t);Object.assign(t,{Vt:!0,Zt:y,qt:b,offset:S,diskNumberStart:z,Ht:!1,Gt:M,Yt:M,Kt:M,Xt:M,$t:M,rawExtraField:u,Jt:M,Lt:x,Wt:E}),o.set(t.filename,t)})}catch(t){throw c.forEach(t=>n.delete(t)),t}finally{i(),r.delete(s),l&&l()}}add(e="",n,a={}){const o=this,{It:i}=o,s=async function(e,n,a,o){const i=(o=Object.assign({},o))[Q];if(i!==O){const{Qt:t,te:r}=Js(i,wt(kc(e,o,B)),kc(e,o,Ka));delete o[Q],o=Object.assign(t,r,o)}if(kc(e,o,fo)&&!n.endsWith(k)&&(n+=k),e.Ft.has(n))throw new Error(Ji);e.Ft.add(n),qs<Ut().maxWorkers?qs++:await new Promise(t=>Zs.push(t));try{return await async function(e,n,a,o){const i=Qs(e,n,o);({name:n}=i);const s=tc(e,n,o),{comment:c}=s,l=o[ho];e.Ot.set(n,O);const d=e.Mt,u={};let f,p;s.ee.keepOrder&&(u.re=new Promise(t=>f=t)),e.Mt=u;try{const{ee:c}=s;0==c.level||c.compressionMethod!==O||c.ne||await Jr(Ut())||(c.level=0,Ba(e.warnings,Ns,n));const l=await async function(t,e,{ee:r},n){if(r.ne&&!e&&!kc(t,n,fo))throw new Error(Ss);let a;if(e){if(e=new Ta(e),await Ma(e),!e.readable&&!e.readUint8Array)throw new Error(zs);({size:a}=e)}return Object.assign({reader:e},rc(t,Boolean(e),a,r,n))}(e,a,s,o);({reader:a}=l);const m=uc(e.writer),w=dc(e.writer);let h=o.crc32===O?o[wo]:o.crc32;const y=l.ee.encrypted&&!c.zipCrypto;if(c.ne&&!c.ae&&y&&(h=O),c.ne&&a&&!y&&h===O)throw new Error(Es);const b=ac(o=Object.assign({},o,i.ee,s.ee,l.ee,{signature:o[wo],crc32:h,offset:e.offset-m,diskNumberStart:w,[X]:e.options[X]}));b.oe&&Ba(e.warnings,_s,n);const g=sc(o),x=Mc(b.ie,g.se);p=await async function(e,n,a,o,i){const{Ot:s,writer:c}=e,{keepOrder:l,dataDescriptor:d,ce:u,signal:f}=i,{le:p,At:m,de:w,ue:h}=o,y=e.options[X];let b,g,x,E,v,S,z,k=m,R=0;const D=l&&w?w.re:O;s.set(n,k);try{i.bufferedWrite||!l||e.Pt||e.Ct||e.jt||!d&&!u?(b=!0,e.Ct++,z=i.createTempStream?await i.createTempStream():new TransformStream(O,O,{highWaterMark:F}),z.size=0,await Ma(c)):(g=!0,e.jt++,z=c,await D,await U()),await Ma(z);const m=uc(c);e.Dt&&!b&&await gc(e,c),y&&!b&&oc(o,e.offset-m);const{ie:w}=p;b||await I();const h=dc(c),x=pc(e,c);if(k.diskNumberStart=h,b||(v=!0,S=c.size,await xc(z,w)),k=await async function(e,n,{diskNumberStart:a,re:o},i,s,c){const{le:l,fe:d,pe:u}=i,{Lt:f,Wt:p,lastModDate:m,rawLastModDate:w,encrypted:h,compressed:y,version:b,compressionMethod:g,Gt:x,me:E,Kt:v,we:S,he:z,Xt:k,$t:A,Yt:R}=l,{se:D}=d,{rawFilename:F,lastAccessDate:U,creationDate:I,password:T,rawPassword:C,level:j,useUnicodeFileNames:M,zip64:N,Vt:_,Zt:P,qt:B,zipCrypto:L,dataDescriptor:W,directory:q,executable:Z,versionMadeBy:V,rawComment:H,rawExtraField:G,Jt:Y,useWebWorkers:K,transferStreams:X,onstart:$,onprogress:J,onend:Q,signal:tt,encryptionStrength:et,extendedTimestamp:rt,msDosCompatible:nt,internalFileAttributes:at,externalFileAttributes:ot,uid:it,gid:st,unixMode:ct,symlink:lt,setuid:dt,setgid:ut,sticky:ft,unixExternalUpper:mt,msdosAttributesRaw:wt,msdosAttributes:ht,useCompressionStream:yt,ne:bt,ae:gt,format:xt,codecURI:Et}=c,vt={re:o,versionMadeBy:V,zip64:N,Vt:_,directory:Boolean(q),executable:Boolean(Z),filenameUTF8:Boolean(M),rawFilename:F,commentUTF8:Boolean(M),rawComment:H,Gt:x,me:E,Kt:v,Xt:k,$t:A,Yt:R,rawExtraField:G,Jt:Y,extendedTimestamp:rt,msDosCompatible:nt,internalFileAttributes:at,externalFileAttributes:ot,diskNumberStart:a,uid:it,gid:st,unixMode:ct,symlink:Boolean(lt),setuid:dt,setgid:ut,sticky:ft,unixExternalUpper:mt,msdosAttributesRaw:wt,msdosAttributes:ht};let{crc32:St,uncompressedSize:zt}=c,kt=0;bt||(zt=0);const{writable:At}=n;if(e){const a=e.size,o=Qe(Pa(e,{size:a})),i={options:{codecType:qr,inputSize:a,level:j,rawPassword:C,password:T,encryptionStrength:et,zipCrypto:h&&L,passwordVerification:h&&L&&w>>8&r,computeCrc32:!bt,compressed:y&&!bt,encrypted:h&&!gt,useWebWorkers:K,useCompressionStream:yt,transferStreams:X,format:xt,codecURI:Et,compressionMethod:g},config:s,D:{signal:tt,size:a,onstart:$,onprogress:J,onend:Q}};try{const e=await An({readable:o,writable:At},i);if(kt=e.outputSize,n.size+=kt,pt(tt),bt||(zt=e.inputSize,h&&!L||(St=e.crc32)),!B&&kt>=t||!P&&zt>=t)throw new Error(bs)}catch(t){const{outputSize:e}=i;throw e!==O?n.size+=e:qt(t)&&t.outputSize!==O&&(n.size+=t.outputSize),t}}return function({crc32:t,compressedSize:e,uncompressedSize:r,le:n,fe:a},{zip64:o,zipCrypto:i,ne:s,dataDescriptor:c}){const{Wt:l,encrypted:d}=n,{ye:u,be:f}=a;d&&!i&&!s||t===O||(Tc(l,10,t),c&&Tc(u,f,t)),o?c&&(Cc(u,f+4,BigInt(e)),Cc(u,f+12,BigInt(r))):(Tc(l,14,e),Tc(l,18,r),c&&(Tc(u,f+4,e),Tc(u,f+8,r)))}({crc32:St,compressedSize:kt,uncompressedSize:zt,le:l,fe:d},c),W&&await xc(n,D),Object.assign(vt,{uncompressedSize:zt,compressedSize:kt,lastModDate:m,rawLastModDate:w,creationDate:I,lastAccessDate:U,encrypted:Boolean(h),zipCrypto:Boolean(L),size:u+kt,compressionMethod:g,version:b,Lt:f,Wt:p,signature:St,crc32:!h||L||bt?St:O,we:S,he:z,Zt:P,qt:B}),vt}(a,z,k,o,Ut(),i),b||(v=!1),s.set(n,k),k.filename=n,b){if(await Promise.all([z.writable.getWriter().close(),D]),await U(),e.Dt&&await gc(e,c),E=!0,S=c.size,await I(),k.diskNumberStart=dc(c),k.offset=pc(e,c),y){const t=o.pe;oc(o,e.offset-uc(c)),k.size+=o.pe-t}!function({rawFilename:t,encrypted:e,zip64:r,me:n,crc32:a,compressedSize:o,uncompressedSize:i,Zt:s,qt:c},l,{dataDescriptor:d,ne:u}){if(d||((!e||u&&a!==O)&&Tc(l,14,a),c||Tc(l,18,o),s||Tc(l,22,i)),r&&n){const e=A+Mc(t)+4;Cc(l,e,BigInt(i)),Cc(l,e+8,BigInt(o))}}(k,p.ge,i),await xc(c,p.ie),await Ec(z.readable,c,f,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 s.delete(n),t}finally{if(b&&e.Ct--,g&&e.jt--,h&&h(D),x&&x(),b&&z&&z.dispose)try{await z.dispose()}catch{}}async function U(){e.Pt=!0;const{Bt:t}=e;e.Bt=new Promise(t=>x=()=>{e.Pt=!1,t()}),await t}async function I(){fc(c,Mc(p.ie))&&await c.closeDisk()}}(e,n,a,{le:b,fe:g,pe:x,At:u,de:d,ue:f},o)}catch(t){throw e.Ot.delete(n),t}finally{f&&f(d&&d.re)}return Object.assign(p,{name:n,comment:c,extraField:l}),new vo(p)}(e,n,a,o)}catch(t){throw e.Ft.delete(n),t}finally{const t=Zs.shift();t?t():qs--}}(o,e,n,a);i.add(s);const c=()=>i.delete(s);return Promise.prototype.then.call(s,c,c),Ks(o,s)}remove(t){const{Ft:e,Ot:r}=this;if(typeof t==C&&(t=r.get(t)),t&&t.filename!==O){const{filename:n}=t;if(e.has(n)&&r.has(n))return e.delete(n),r.delete(n),!0}return!1}async close(r=M,n={}){const a=this,{It:o,writer:p}=this,{writable:m}=p;if(a.Nt)return Ys(p);if(!(r instanceof Uint8Array))throw new Error(ts);if(Mc(r)>e)throw new Error(Qi);for(;o.size;)await Promise.allSettled(Array.from(o));await Promise.allSettled(a.Tt.map(t=>t.xe));const w=a.Tt.filter(t=>t.Ee&&!t.ve);if(w.length){const t=w.map(t=>t.error);w.forEach(t=>t.ve=!0);const[e]=t;try{e.entryErrors=t}catch{}throw e}return await async function(r,n,a){const{Se:o,ze:p}=cc(r.Ot),{ke:m,Ae:w,Re:h}=await async function(r,n,a){const{Ot:o,writer:i}=r,c=new Uint8Array(n);await Ma(i);let l=0,d=0,f=dc(i),p=uc(i),m=0;for(const[r,n]of Array.from(o.values()).entries()){const{offset:w,rawFilename:h,Gt:y,Yt:b,Kt:g,Xt:x,$t:E,rawExtraField:v,Jt:S,rawComment:z,versionMadeBy:k,Lt:A,Wt:R,Zt:D,qt:O,Ht:F,De:U,internalFileAttributes:I,externalFileAttributes:T,diskNumberStart:C,uncompressedSize:j,compressedSize:M}=n,N=Mc(y,b,g,x,E,v,S),_=u+Mc(h,z)+N;fc(i,l+_-d)&&(await xc(i,c.slice(d,l)),d=l,m=0,await i.closeDisk()),0==r&&(f=dc(i),p=uc(i)),D||Tc(R,18,j),O||Tc(R,14,M),(U||F)&&n.version<45&&Ic(R,0,45);const P=lc(_);if(P.Oe(s),P.Fe(k),P.Ue(A.subarray(0,24)),P.Fe(N),P.Fe(Mc(z)),P.Fe(F?e:C),P.Fe(I),P.Oe(T),P.Oe(U?t:w),P.Ue(h),P.Ue(y),P.Ue(b),P.Ue(g),P.Ue(x),P.Ue(E),P.Ue(v),P.Ue(S),P.Ue(z),jc(c,P.ct,l),l+=_,m++,a.onprogress)try{await a.onprogress(r+1,o.size,new vo(n))}catch{}}return await xc(i,d?c.slice(d):c),{ke:{diskNumber:f,diskOffset:p},Ae:{diskNumber:dc(i),Ie:m},Re:c}}(r,o,a),y=await async function(t,r,n){const a=Rc(t,n,J);if(a){const n=await a(r),o=Mc(n);if(o>e)throw new Error(Cs);const s=lc(6+o);s.Oe(i),s.Fe(o),s.Ue(n);const{writer:c}=t;return fc(c,Mc(s.ct))&&await c.closeDisk(),await xc(c,s.ct),6+o}return 0}(r,h,a);await async function(r,n,a,o){const{writer:i}=r,{ke:s,Ae:u,Te:p,ze:m}=o;let{Se:w}=o,h=r.Ot.size,y=s.diskNumber,b=pc(r,s);const g=Mc(n);if(g>e)throw new Error(Qi);let x=kc(r,a,io),E=dc(i);if(fc(i,(x?98:f)+g)&&E++,b>=t||w>=t||h>=e||E>=e){if(!1===x)throw new Error(bs);x=!0}else x===O&&m&&(x=!0);const v=lc(x?98:f);fc(i,Mc(v.ct)+g)&&await i.closeDisk(),E=dc(i);let S=E==u.diskNumber?u.Ie:0;x&&(v.Oe(l),v.Ce(44),v.Fe(45),v.Fe(45),v.Oe(E),v.Oe(y),v.Ce(S),v.Ce(h),v.Ce(w),v.Ce(b),v.Oe(d),v.Oe(E),v.Ce(BigInt(pc(r,i))+BigInt(w)+BigInt(p)),v.Oe(E+1),kc(r,a,"supportZip64SplitFile",!0)&&(E=e,y=e),S=e,h=e,b=t,w=t),v.Oe(c),v.Fe(E),v.Fe(y),v.Fe(S),v.Fe(h),v.Oe(w),v.Oe(b),v.Fe(g),await xc(i,v.ct),g&&await xc(i,n)}(r,n,a,{ke:m,Ae:w,Se:o,Te:y,ze:p})}(a,r,n),a.Nt=!0,!ja(p)&&kc(a,n,V)||await m.getWriter().close(),Ys(p)}[N](){return this.close()}}class Hs{constructor(t={}){const{readable:e,writable:r}=new TransformStream;this.readable=e,this.zipWriter=new Vs(r,t),this.It=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 Xs(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.It))).filter(t=>"rejected"==t.status).map(t=>t.reason);if(n.length){const[t]=n;try{t.entryErrors=n}catch{}throw await Xs(r,t),t}try{return await r.close(t,e)}catch(t){throw await Xs(r,t),t}}}class Gs extends Promise{then(t,e){const{je:r}=this;return r&&(r.ve=!0),super.then(t,e)}}function Ys(t){return t.getData?t.getData():t.writable}function Ks(t,e){const r=new Gs((t,r)=>Promise.prototype.then.call(e,t,r)),n={};return r.je=n,n.xe=Promise.prototype.then.call(r,O,t=>Object.assign(n,{Ee:!0,error:t})),t.Tt.push(n),r}async function Xs(t,e){try{await t.writer.writable.abort(e)}catch{}}function $s(t,e,r){t.It.add(e),e.catch(t=>{try{r(t)}catch{}})}function Js(t,e,n){if(null===t||typeof t!=T||Array.isArray(t))throw new Error(js);const{externalFileAttributes:a,versionMadeBy:o,comment:i,lastModDate:s,rawLastModDate:c,creationDate:l,lastAccessDate:d,uncompressedSize:u,encrypted:f,zipCrypto:p,crc32:m,compressionMethod:w,extraFieldAES:h,extraFieldUnix:y,internalFileAttributes:b,extraField:g,bitFlag:x,directory:E,uid:v,gid:S}=t,z={externalFileAttributes:a,versionMadeBy:o,comment:i,lastModDate:s,creationDate:l,lastAccessDate:d,internalFileAttributes:b,directory:E};x&&x.languageEncodingFlag&&(z[G]=!0);const k=function(t){if(t){const e=new Map;if(t.forEach((t,r)=>{So.has(r)||e.set(r,t.data)}),e.size)return e}}(g);k&&(z[ho]=k),v===O&&S===O||Object.assign(z,{uid:v,gid:S,unixExtraFieldType:y?Ls:Bs});const A={};if(e&&!E)if(Object.assign(A,{uncompressedSize:u,crc32:m,compressionMethod:w}),e!==ot&&Object.assign(A,{encrypted:f,zipCrypto:p,encryptionStrength:h?h.strength:O}),x&&(A.dataDescriptor=x.dataDescriptor,A[H]=Ws[x.level]),n===O)A.rawLastModDate=c;else if(e!==ot&&p&&(!x||x.dataDescriptor)&&n 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}(n)!=(c>>>8&r))throw new Error(Ms);return{Qt:z,te:A}}function Qs(n,a,o){let i=kc(n,o,oo),s=kc(n,o,lo,i?20:768);const c=kc(n,o,po),l=Dc(n,o,"uid"),d=Dc(n,o,"gid");let u=Dc(n,o,yo),f=kc(n,o,"unixExtraFieldType"),p=kc(n,o,bo),m=kc(n,o,go),w=kc(n,o,xo);if(yt(l,t,As),yt(d,t,Rs),yt(u,e,Ds),f!==O&&f!==Bs&&f!==Ls)throw new Error(Os);if(f===Ls&&(l!==O&&l>e||d!==O&&d>e))throw new Error(Fs);f!==O||l===O&&d===O||(f=Bs);let h=Dc(n,o,no),y=kc(n,o,ao);const b=h!==O||y!==O;if(l!==O||d!==O||u!==O||f||c?(i=!1,s=s&r|768):b&&(i=!0,s&=r),yt(h,r,Us),y&&(typeof y!==T||Array.isArray(y)))throw new Error(Is);if(s>e)throw new Error(os);let g=kc(n,o,ro);const x=g!==O;x||(g=0),!o[fo]&&a.endsWith(k)&&(o[fo]=!0);const A=kc(n,o,fo);if(A?(a.endsWith(k)||(a+=k),x||(g=16,i||(g|=16877<<16))):i||x||(g=c?493<<16:27525120),!i){const t=u!==O||Boolean(p||m||w);u=u===O?g>>16&e:u&e,p?u|=S:p=Boolean(u&S),m?u|=z:m=Boolean(u&z),w?u|=512:w=Boolean(512&u),x&&!t||(A?u=-61441&u|v:u&E||(u|=32768),g=(u&e)<<16|g&e)}({msdosAttributesRaw:h,msdosAttributes:y}=function(t,e){if(t!==O)t&=r;else if(e!==O){const{readOnly:n,hidden:a,system:o,directory:i,archive:s}=e;let c=0;n&&(c|=1),a&&(c|=2),o&&(c|=4),i&&(c|=16),s&&(c|=32),t=c&r}return e===O&&(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=u!==O&&40960==(u&E);return{name:a,ee:{versionMadeBy:s,msDosCompatible:Boolean(i),externalFileAttributes:g,unixExternalUpper:R,uid:l,gid:d,unixMode:u,unixExtraFieldType:f,symlink:D,setuid:p,setgid:m,sticky:w,msdosAttributesRaw:h,msdosAttributes:y}}}function tc(t,r,n){const a=Rc(t,n,"encodeText")||ee;let o=a(r,tt);if(o===O&&(o=ee(r)),Mc(o)>e)throw new Error(as);const i=n[qa]||"";if(typeof i!=C)throw new Error(rs);let s=a(i,et);if(s===O&&(s=ee(i)),Mc(s)>e)throw new Error(es);const c=kc(t,n,co);if(c!==O&&c>e)throw new Error(os);const l=Ac(t,n,Ka,new Date),d=kc(t,n,Xa),u=Ac(t,n,$a),f=Ac(t,n,Qa),p=kc(t,n,eo,0),m=wt(kc(t,n,B)),w=Boolean(m),h=!0===m;let y=kc(t,n,_),b=kc(t,n,P);mt(y,b),y=y&&y.length?y:O,b=b&&b.length?b:O;const g=Dc(t,n,"encryptionStrength",3),x=kc(t,n,uo),E=kc(t,n,"extendedTimestamp",!0),v=kc(t,n,"ntfsTimestamp"),S=kc(t,n,"keepOrder",!0),z=kc(t,n,W),k=kc(t,n,Z),A=kc(t,n,"bufferedWrite"),R=Rc(t,n,"createTempStream"),D=kc(t,n,"dataDescriptorSignature",!0),F=ft(kc(t,n,L));pt(F);const U=kc(t,n,G,!_c(o)||!_c(s)),I=kc(t,n,mo),T=w||I===O?O:ur(I);if(!w&&I!==O&&0!==I&&8!==I&&!T)throw new Error(or);let j=Dc(t,n,H);if(yt(j,9,Ts),t.options[X]){if(y!==O||b!==O)throw new Error(ss);j===O&&I===O&&(j=0)}w&&(j=bt(n[H]));let M=kc(t,n,q),N=kc(t,n,Y);A&&N===O&&(N=!1),(N===O||x&&!h)&&(N=!0),j!==O&&6!=j&&(M=!1);const V=kc(t,n,io);if(!(x||y===O&&b===O||Number.isInteger(g)&&g>=1&&g<=3))throw new Error(is);const K=ec(n[ho]),$=ec(n.localExtraField),J=ec(n.centralExtraField);return{comment:i,ee:{rawFilename:o,rawComment:s,version:c,lastModDate:l,rawLastModDate:d,lastAccessDate:u,creationDate:f,internalFileAttributes:p,ne:w,ae:h,password:y,rawPassword:b,encryptionStrength:g,zipCrypto:x,extendedTimestamp:E,ntfsTimestamp:v,keepOrder:S,useWebWorkers:z,transferStreams:k,bufferedWrite:A,createTempStream:R,dataDescriptorSignature:D,signal:F,useUnicodeFileNames:U,compressionMethod:I,format:T?T.format:O,codecURI:T?T.codecURI:O,Me:T?T.versionNeeded:O,level:j,useCompressionStream:M,dataDescriptor:N,zip64:V,rawExtraField:K,Ne:$,Jt:J}}}function ec(t){if(!t)return M;if(!(t instanceof Map))throw new Error(ds);let r=0,n=0;t.forEach((t,n)=>{if(ht(n,e,us),!(t instanceof Uint8Array))throw new Error(fs);if(Mc(t)>e)throw new Error(ps);r+=4+Mc(t)});const a=new Uint8Array(r),o=Wt(a);return t.forEach((t,e)=>{Ic(o,n,e),Ic(o,n+2,Mc(t)),jc(a,t,n+4),n+=4+Mc(t)}),a}function rc(e,r,n,a,o){const{ne:i,ae:s,zipCrypto:c,password:l,rawPassword:d,encryptionStrength:u}=a;let{dataDescriptor:f,zip64:p,level:m,compressionMethod:w}=a,h=0,y=0,b=!1;if(i&&r){if(y=o[Va],y===O)throw new Error(gs);if(w===O)throw new Error(xs)}const g=!0===p,x=kc(e,o,so);if(r&&s&&!x&&Mc(l,d))throw new Error(ls);const E=r&&(Boolean(l&&Mc(l)||d&&Mc(d))||s&&x);r||(m=0,w=0);const v=zo(E,c,u);r&&(i?(o.uncompressedSize=y,h=n===O?Oc(y)+v:n+(s?0:v)):n===O?(f=!0,(p||p===O)&&(p=b=!0,h=4294967296)):(o.uncompressedSize=y=n,h=(Fc(w,m)?Oc(y):y)+v));const S=!(E||r&&(0!==n||i)||Fc(w,m));S&&kc(e,o,Y)===O&&(f=!1);const z=g||b||y>=t,k=g||h>=t;if(z||k){if(!1===p)throw new Error(bs);p=!0}return p=p||!1,{_e:h,ee:{dataDescriptor:f,ce:S,zip64:p,Vt:g,Pe:b,Zt:z,qt:k,uncompressedSize:y,level:m,compressionMethod:w,encrypted:E}}}function nc(e,r,n){const a=e.slice().sort((t,e)=>n?e-t:t-e);let o=r,i=0;for(const e of a){if(o>=t)break;o+=e,i++}return i}function ac(t){const{rawFilename:r,lastModDate:a,rawLastModDate:o,lastAccessDate:i,creationDate:s,level:c,zip64:l,zipCrypto:d,useUnicodeFileNames:u,dataDescriptor:f,directory:p,rawExtraField:m,Ne:y,encryptionStrength:x,extendedTimestamp:E,ntfsTimestamp:v,ne:S,encrypted:z,Zt:k,qt:F,uncompressedSize:U,Pe:I,crc32:T}=t;let{version:C,compressionMethod:j}=t;const N=!p&&Fc(j,c);let _;const P=S||!N,B=l&&(t.bufferedWrite||!f||!k&&!F||P&&!I),L=B||l&&f&&(k||F);if(l&&(k||F)){const t=20,e=lc(t);if(e.Fe(1),e.Fe(t-4),_=e.ct,B&&(e.Ce(U),P)){const t=zo(z,d,x);e.Ce(S?0:U+t)}}else _=M;let W,q,Z,V,H;if(z&&!d){const t=lc(Mc(Ps)+2);t.Fe(w),t.Ue(Ps),W=t.ct,W[8]=x}else W=M;if(E){const t=Sc(a),e=(G=t)>=ms&&G<=ws;if(e){const e=9+(i?4:0)+(s?4:0),r=lc(e);V=1+(i?2:0)+(s?4:0),H=t,r.Fe(h),r.Fe(e-4),r.Be(V),r.Oe(t),i&&r.Oe(zc(Sc(i))),s&&r.Oe(zc(Sc(s))),Z=r.ct}else Z=M;if(v===O?!e||Boolean(i||s):v)try{const t=vc(a),e=lc(36);e.Fe(10),e.Fe(32),e.Le(4),e.Fe(1),e.Fe(24),e.Ce(t),e.Ce(i?vc(i):t),e.Ce(s?vc(s):t),q=e.ct}catch{q=M}else q=M}else q=Z=M;var G;let Y;try{const{uid:r,gid:n,unixExtraFieldType:a}=t;if(a!=Bs||r===O&&n===O)if(a!=Ls||r===O&&n===O)Y=M;else{const t=lc(8);t.Fe(g),t.Fe(4),t.Fe((r===O?0:r)&e),t.Fe((n===O?0:n)&e),Y=t.ct}else{const t=ic(r===O?0:r),e=ic(n===O?0:n),a=3+t.length+e.length,o=lc(4+a);o.Fe(b),o.Fe(a),o.Be(1),o.Be(t.length),o.Ue(t),o.Be(e.length),o.Ue(e),Y=o.ct}}catch{Y=M}j===O&&(j=N?8:0),C===O&&(C=0!=j||p||z?20:10);const{Me:K}=t;N&&K!==O&&(C=C>K?C:K),l&&(C=C>45?C:45),z&&!d&&(C=C>51?C:51,S&&T!==O&&(W[4]=1),Ic(Wt(W),9,j),j=99);const $=L?Mc(_):0,J=$+Mc(W,Z,q,Y,m,y);if(J+(t[X]?67:0)>e)throw new Error(ps);const Q=new Date(2e3*Math.ceil(Math.floor(a.getTime()/1e3)/2)),tt=Q<D?D:Q>R?R:Q,et=Mc(Z)?new Date(1e3*Sc(a)):Mc(q)?a:tt,{Lt:rt,Wt:nt,rawLastModDate:at}=Nc({version:C,bitFlag:Pc(c,u,f,z,j),compressionMethod:j,uncompressedSize:U,lastModDate:tt,rawLastModDate:o,rawFilename:r,qt:F,Zt:k,extraFieldLength:J}),ot=lc(A+Mc(r)+J),it=ot.ct,st=Wt(it);return ot.Oe(n),ot.Ue(rt),ot.Ue(r),L&&ot.Ue(_),ot.Ue(W),ot.Ue(Z),ot.Ue(q),ot.Ue(Y),ot.Ue(m),ot.Ue(y),f&&(F||Tc(st,18,0),k||Tc(st,22,0)),{ie:it,ge:st,Lt:rt,Wt:nt,lastModDate:et,oe:et===tt&&Q.getTime()!=tt.getTime(),rawLastModDate:at,encrypted:z,compressed:N,version:C,compressionMethod:j,we:V,he:H,Gt:M,me:$,Kt:Z,Xt:q,$t:Y,Yt:W,extraFieldLength:J}}function oc(t,e){const{le:r}=t;let{ie:n,extraFieldLength:a}=r,o=64-(e+Mc(n))%64;o<4&&(o+=64);const i=new Uint8Array(o),s=Wt(i);Ic(s,0,y),Ic(s,2,o-4);const c=n;r.ie=n=new Uint8Array(Mc(c)+o),jc(n,c),jc(n,i,Mc(c));const l=Wt(n);Ic(l,28,a+o),r.ge=l,t.pe+=o}function ic(t){const e=new Uint8Array(4);Wt(e).setUint32(0,t,!0);let r=4;for(;r>1&&0===e[r-1];)r--;return e.subarray(0,r)}function sc({zip64:t,dataDescriptor:e,dataDescriptorSignature:r}){let n,a=M,i=0,s=t?20:12;return r&&(s+=4),e&&(a=new Uint8Array(s),n=Wt(a),r&&(i=4,Tc(n,0,o))),{se:a,ye:n,be:i}}function cc(r){let n=0,a=!1;for(const[,o]of r){const{rawFilename:r,Yt:i,rawComment:s,Xt:c,$t:l,rawExtraField:d,Jt:f,we:p,he:m,Vt:w,uncompressedSize:y,compressedSize:b}=o;let{Zt:g,qt:x}=o;w||(g&&y<t&&(g=o.Zt=!1),x&&b<t&&(x=o.qt=!1)),a=a||g||x;const E=o.offset>=t,v=o.diskNumberStart>=e;let S,z;if(E||v||g||x){const t=4+(g?8:0)+(x?8:0)+(E?8:0)+(v?4:0),e=lc(t);e.Fe(1),e.Fe(t-4),g&&e.Ce(y),x&&e.Ce(b),E&&e.Ce(o.offset),v&&e.Oe(o.diskNumberStart),S=e.ct}else S=M;if(o.Gt=S,o.De=E,o.Ht=v,m===O)z=M;else{const t=lc(9);t.Fe(h),t.Fe(5),t.Be(p),t.Oe(m),z=t.ct}o.Kt=z;const k=Mc(S,i,c,l,z,d,f);if(k>e)throw new Error(ps);n+=u+Mc(r,s)+k}return{Se:n,ze:a}}function lc(t){const e=new Uint8Array(t),r=Wt(e);let n=0;return{ct:e,Be:t=>{!function(t,e,r){t.setUint8(e,r)}(r,n,t),n+=1},Fe:t=>{Ic(r,n,t),n+=2},Oe:t=>{Tc(r,n,t),n+=4},Ce:t=>{Cc(r,n,BigInt(t)),n+=8},Ue:t=>{jc(e,t,n),n+=Mc(t)},Le:t=>n+=t}}function dc(t){const{diskNumber:e=0}=t;return e}function uc(t){const{diskOffset:e=0}=t;return e}function fc(t,e){const{availableSize:r=F}=t;return e>r}function pc(t,{diskNumber:e=0,diskOffset:r=0}){return t.offset-r-(e?t.Ut:0)}function mc(t){const e=Wt(t);let r=0;for(;r+4<=Mc(t);){const n=4+Uc(e,r+2);if(1==Uc(e,r))return mc(Bt(t.subarray(0,r),t.subarray(Math.min(r+n,Mc(t)))));r+=n}return t}async function wc(t,e,r,n){if(n>0){const{writer:a}=t;let o=0;try{await Ec(Pa(e,{offset:r,size:n}),a,O,t=>o+=t)}catch(e){t.hasCorruptedEntries=!0;try{e.corruptedEntry=!0}catch{}throw e}finally{a.size+=o,t.offset+=o}}}async function hc(t,e){const r=await _a(t,e,A);if(Mc(r)<A)return A;const n=Wt(r);return A+Uc(n,26)+Uc(n,28)}function yc(t,{offset:e,diskNumberStart:r}){return e+(t.ht?t.ht(r):0)}function bc(){const t=new Uint8Array(4);return Tc(Wt(t),0,a),t}async function gc(t,e){delete t.Dt,await xc(e,bc()),t.offset+=4}async function xc(t,e){const{writable:r}=t,n=r.getWriter();try{await n.ready,t.size+=Mc(e),await n.write(e)}finally{n.releaseLock()}}async function Ec(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(Mc(t))}}),{preventClose:!0,preventAbort:!0,signal:r})}finally{a.releaseLock()}}function vc(t){if(t){const e=(BigInt(t.getTime())+BigInt(116444736e5))*BigInt(1e4);return e<hs?hs:e>ys?ys:e}}function Sc(t){return Math.floor(t.getTime()/1e3)}function zc(t){return Math.min(ws,Math.max(ms,t))}function kc(t,e,r,n){const a=e[r]===O?t.options[r]:e[r];return a===O?n:a}function Ac(t,e,r,n){const a=kc(t,e,r,n);if(null===a)return n;if(a!==O&&(typeof a.getTime!=I||Number.isNaN(a.getTime())))throw new Error(ns);return a}function Rc(t,e,r){return ut(kc(t,e,r))}function Dc(t,e,r,n){return bt(kc(t,e,r,n))}function Oc(t){return t+5*(Math.floor(t/16383)+1)}function Fc(t,e){return t===O?e===O||e>0:0!==t}function Uc(t,e){return t.getUint16(e,!0)}function Ic(t,e,r){t.setUint16(e,r,!0)}function Tc(t,e,r){t.setUint32(e,r,!0)}function Cc(t,e,r){t.setBigUint64(e,r,!0)}function jc(t,e,r){t.set(e,r)}function Mc(...t){let e=0;return t.forEach(t=>t&&(e+=t.length)),e}function Nc({version:e,bitFlag:r,compressionMethod:n,uncompressedSize:a,compressedSize:o,lastModDate:i,rawLastModDate:s,rawFilename:c,qt:l,Zt:d,extraFieldLength:u}){const f=lc(26),p=f.ct,m=Wt(p);if(f.Fe(e),f.Fe(r),f.Fe(n),s===O){const t=new Uint32Array(1),e=Wt(t);Ic(e,0,(i.getHours()<<6|i.getMinutes())<<5|i.getSeconds()/2),Ic(e,2,(i.getFullYear()-1980<<4|i.getMonth()+1)<<5|i.getDate()),s=t[0]}return f.Oe(s),f.Le(4),l||o!==O?f.Oe(l?t:o):f.Le(4),d||a!==O?f.Oe(d?t:a):f.Le(4),f.Fe(Mc(c)),f.Fe(u),{Lt:p,Wt:m,rawLastModDate:s}}function _c(t){return t.every(t=>t>=32&&t<=126)}function Pc(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 Bc(){const{CompressionStream:t,DecompressionStream:e,CompressionStreamFallback:r,DecompressionStreamFallback:n}=Ut(),a=[{compressionMethod:0,compression:!0,decompression:!0,registered:!1},{compressionMethod:8,compression:Lc(r,gr)||Lc(t,gr)||Lc(t,Er),decompression:Lc(n,gr)||Lc(e,gr)||Lc(e,Er),registered:!1},{compressionMethod:9,compression:!1,decompression:Lc(n,xr)||Lc(e,xr),registered:!1}];for(const t of fr()){const e=pr(t.format);a.push({compressionMethod:t.compressionMethod,compression:e?typeof e.CompressionStream==I:O,decompression:e?typeof e.DecompressionStream==I:O,registered:!0})}return a}function Lc(t,e){if(!t)return!1;const{supportedFormats:r}=t;return r?r.includes(e):Rr(t,e)}const Wc="2.18.1",qc=1048576,Zc=".zip.js-temp";function Vc(t={}){const{thresholdBytes:e=qc,directoryName:r=Zc,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,i,s=0,c=!1;const l=new WritableStream({async write(i){c?await a.write(i):(t.push(i),s+=i.length,s>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(!i){const t=await n.getFile();i=t.stream().getReader()}const{value:t,done:r}=await i.read();r?e.close():e.enqueue(t)}else d<t.length?e.enqueue(t[d++]):e.close()},async cancel(t){i&&await i.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 Hc=1048576;function Gc(t={}){const{thresholdBytes:e=Hc}=t;return function(){const t=[];let r,n,a,o=0,i=!1;const s=new WritableStream({async write(a){i?await r.write(a):(t.push(a),o+=a.length,o>e&&await async function(){const e=new TransformStream;n=tr(e.readable),r=e.writable.getWriter(),i=!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:s,readable:new ReadableStream({async pull(e){if(i){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 Yc=1048576,Kc=".zip.js-temp",Xc="createSyncAccessHandle is only available in dedicated workers";function $c(t={}){const{thresholdBytes:e=Yc,directoryName:r=Kc,getDirectory:n}=t;if(!(n||"undefined"!=typeof FileSystemFileHandle&&FileSystemFileHandle.prototype.createSyncAccessHandle))throw new Error(Xc);const a=n||(()=>navigator.storage.getDirectory());let o;function i(){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,s=0,c=0;const l=new WritableStream({async write(c){o?(n.write(c,{at:s}),s+=c.length):(t.push(c),a+=c.length,a>e&&await async function(){const e=await i();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:s}),s+=e.length;t.length=0}())},close(){n&&n.flush()}});let d=0;const u=new ReadableStream({pull(e){if(o){const t=s-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});return{writable:l,readable:u,dispose:async function(){if(n){try{n.close()}catch{}n=null}if(r){try{const t=await i();await t.removeEntry(r)}catch{}r=null}t.length=0}}}}try{_t({baseURI:import.meta.url})}catch{}const Jc="deflate",Qc="deflate-raw",tl="deflate64-raw",el="gzip",rl=[Jc,Qc,el],nl=[Jc,Qc,el,tl];let al,ol,il,sl,cl;function ll(t,e){return-4===e&&(t.code="Z_MEM_ERROR"),t}function dl(t,e,r={}){if(!(t?rl:nl).includes(e))throw new TypeError("Unsupported format: "+e);if(!al){const t=new Error("WASM module not loaded");throw t.cause=cl,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,i={We:0,in:0,inBufferSize:0,qe:0,Ze:!1};let s,c,l,d,u=!0,f=!1;return function(){try{let r;if(i.We=ol(a),i.in=ol(o),i.inBufferSize=o,!i.We||!i.in)throw ll(new Error("allocation failed"),-4);if(t?(i.Ve=al.deflate_process,i.He=al.deflate_last_consumed,i.Ge=al.deflate_end,i.qe=al.deflate_new(),r=e===el?al.deflate_init_gzip(i.qe,n):e===Qc?al.deflate_init_raw(i.qe,n):al.deflate_init(i.qe,n)):e===tl?(i.Ve=al.inflate9_process,i.He=al.inflate9_last_consumed,i.Ge=al.inflate9_end,i.qe=al.inflate9_new(),r=al.inflate9_init_raw(i.qe)):(i.Ve=al.inflate_process,i.He=al.inflate_last_consumed,i.Ge=al.inflate_end,i.qe=al.inflate_new(),r=e===Qc?al.inflate_init_raw(i.qe):e===el?al.inflate_init_gzip(i.qe):al.inflate_init(i.qe)),0!==r)throw ll(new Error("init failed:"+r),r)}catch(t){throw w(i),t}}(),{readable:new ReadableStream({start(t){s=t},pull(){u=!1,m()},cancel(t){f=!0,d=t,w(i),c.error(t),m()}},{highWaterMark:0}),writable:new WritableStream({start(t){c=t},async write(t){if(u&&await new Promise(t=>l=t),f)throw d;try{!function(t){const e=new Uint8Array(sl.buffer),r=i.Ve,n=i.He,o=i.We;let s=0;for(;s<t.length;){if(i.Ze)throw new Error("trailing data after the end of the stream");const c=Math.min(t.length-s,32768);if((!i.in||i.inBufferSize<c)&&(i.in&&il&&(il(i.in),i.in=0),i.in=ol(c),i.inBufferSize=c,!i.in))throw ll(new Error("allocation failed"),-4);e.set(t.subarray(s,s+c),i.in);const l=r(i.qe,i.in,c,o,a,0),d=l>>24&255,u=128&d?d-256:d;if(u<0)throw ll(new Error("process error:"+u),u);const f=16777215&l;f&&p(e.slice(o,o+f));const m=n(i.qe);if(1===d)i.Ze=!0;else if(0===m&&0===f)break;s+=m}}(t)}catch(t){throw w(i),s.error(t),t}},close(){if(f)return;try{!function(){const t=new Uint8Array(sl.buffer),e=i.Ve,r=i.We;for(;;){const n=e(i.qe,0,0,r,a,4),o=n>>24&255,s=128&o?o-256:o;if(s<0)throw ll(new Error("process error:"+s),s);const c=16777215&n;if(c&&p(t.slice(r,r+c)),1===o||0===c)break}}()}catch(t){throw w(i),s.error(t),t}const t=w(i);if(0!==t){const e=ll(new Error("end error:"+t),t);throw s.error(e),e}s.close()},abort(t){w(i),s.error(t)}},{highWaterMark:1})};function p(t){u=!0,s.enqueue(t)}function m(){if(l){const t=l;l=null,t()}}function w(t){let e=0;return t.qe&&t.Ge&&(e=t.Ge(t.qe)),t.qe=0,t.in&&il&&il(t.in),t.in=0,t.We&&il&&il(t.We),t.We=0,e}}class ul{constructor(t=Jc,e){return dl(!0,t,e)}}class fl{constructor(t=Jc,e){return dl(!1,t,e)}}ul.requiresModule=!0,fl.requiresModule=!0,ul.supportedFormats=rl,fl.supportedFormats=nl;const pl=65536;let ml,wl;function hl(t){return new Uint8Array(t.memory.buffer)}let yl,bl=!1;var gl;async function xl(){await async function(){await Promise.allSettled([Fn(),...En.map(t=>(Tn(t),t.terminate()))]),Yr=O,Kr=!1}(),yl=null,bl=!1,al=ol=il=sl=cl=null,ml=null,wl=0}gl=function(t,e){const r=ml;let n=r?function(t,e,r){wl||(wl=t.malloc(pl));const n=wl?t.aes_hmac_new():0;if(n){const a=hl(t);if(a.set(e,wl),a.set(r,wl+e.length),t.aes_hmac_init(n,wl,e.length,wl+e.length,r.length))return t.aes_hmac_end(n,0),0}return n}(r,t,e):0;if(!n)return pe(t,e);const a=wl;return{process(t,e){for(let o=0;o<t.length;o+=pl){const i=t.subarray(o,o+pl),s=hl(r);s.set(i,a),r.aes_hmac_process(n,a,i.length,e?1:0),i.set(s.subarray(a,a+i.length))}},digest:()=>(r.aes_hmac_end(n,a),n=0,hl(r).slice(a,a+20)),dispose(){n&&(r.aes_hmac_end(n,0),n=0)}}},Ce=gl||pe,function({Ye:t}){$r=t}({Ye:t=>{if(!yl){let{wasmURI:e}=t;typeof e==I&&(e=e()),yl=async function(t,{baseURI:e}){if(!bl)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)}const a=await WebAssembly.instantiate(r);var o;(function(t){if(al=t,({malloc:ol,free:il,memory:sl}=al),"function"!=typeof ol||"function"!=typeof il||!sl)throw al=ol=il=sl=null,new Error("Invalid WASM module")})(a.instance.exports),typeof(o=a.instance.exports).aes_hmac_new==I&&(ml=o,wl=0)}(t,e),bl=!0}catch(t){throw function(t){cl=t}(t),t}}(e,t).catch(t=>{throw yl=null,t})}return yl}}),_t({CompressionStreamFallback:ul,DecompressionStreamFallback:fl}),_t({workerURI:new URL("./zip-web-worker.js",import.meta.url).href,wasmURI:new URL("./zip-module.wasm",import.meta.url).href});const El="Entry filename already exists",vl="Duplicate entry filename in the imported zip file",Sl='Invalid duplicates option (must be "throw", "keep-first" or "keep-last")',zl="Entry is an ancestor of target entry",kl="Root directory cannot be moved",Al="Target entry is not a directory",Rl="Parent entry is not a directory",Dl="Readable stream already consumed",Ol="throw",Fl="keep-first",Ul="keep-last",Il=new Set([Ol,Fl,Ul]),Tl="Invalid passThrough option (use readerOptions.passThrough or set uncompressedSize for each entry)",Cl="Invalid readerOptions (must be an object)",jl="The 'compressed' passThrough option is only supported by Entry#getData() and ZipWriter#add()",Ml="Invalid passwords option (must be an array of strings)",Nl="Invalid requestPassword option (must be a function returning a string or undefined)",_l="zipjs-abort-export",Pl=new Uint8Array(0),Bl=new Set([br,wr,hr]);class Ll{constructor(t,e,r,n){const a=this;if(t.root&&n&&n.getChildByName(e))throw new Error(El);r||(r={}),Object.assign(a,{fs:t,name:e,data:r.data,options:r.options&&Object.assign({},r.options),id:t.Ke++,parent:n,children:[],uncompressedSize:r.uncompressedSize||0,Xe:r.Xe||r.uncompressedSize===O,passThrough:r.passThrough,$e:r.$e||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=gd(t);n&&(t=n.pop(),r=xd(r,n,e));const a=r.getChildByName(t);if(a&&a!=e)throw new Error(El);r!=e.parent&&(Ql(e),e.parent=r,r.children.push(e),yd(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!==O))}}class Wl extends Ll{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 Wl(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===O||(t.constructor==oa?e.type==r:t.constructor!=ea||e.startsWith("data:"+(r||"")+";base64,"))}(t,r.data))return r.data;{const n=r.reader=$l(r.Reader,r.data,e),a=r.uncompressedSize||n.size;await Promise.all([Ma(n),Ma(t,a)]);const o=ft(e.signal),i=function(t,e,r,n){const{onstart:a,onprogress:o,onend:i}=r,{readable:s}=e;return t.data instanceof vo||!a&&!o&&!i?s:Qe(s).pipeThrough(new rn({onstart:a,onprogress:o,onend:i,size:e.size}),{signal:n})}(r,n,e,o),s=!ja(t)&&Boolean(e.preventClose);return r.uncompressedSize=n.size,await Qe(i).pipeTo(er(t.writable),{signal:o,preventClose:s,preventAbort:s}),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(qt(t)&&t.message==ge)return!1;throw t}}getText(t,e){return this.getData(new ca(t),e)}getBlob(t,e){return this.getData(new oa(t),e)}getData64URI(t,e){return this.getData(new ea(t),e)}getUint8Array(t){return this.getData(new Fa,t)}getWritable(t=new WritableStream,e){return this.getData({writable:t},e)}async getArrayBuffer(t){return Lt(await this.getUint8Array(t)).buffer}replaceBlob(t){ld(this,{data:t,Reader:aa,Writer:oa,uncompressedSize:t.size})}replaceText(t){ld(this,{data:t,Reader:ia,Writer:ca,uncompressedSize:sa(t)})}replaceData64URI(t){ld(this,{data:t,Reader:ta,Writer:ea,uncompressedSize:dd(t)})}replaceUint8Array(t){ld(this,{data:t,Reader:Oa,Writer:Fa,uncompressedSize:t.length})}replaceReadable(t){ld(this,{data:null,Reader:Kl(t),Writer:null,uncompressedSize:O})}}class ql extends Ll{constructor(t,e,r,n){super(t,e,r,n),this.directory=!0}clone(t){const e=this,r=new ql(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 bd(this,t,{options:e},!0)}addText(t,e,r={}){return bd(this,t,{data:e,Reader:ia,Writer:ca,options:r,uncompressedSize:sa(e)})}addBlob(t,e,r={}){return bd(this,t,{data:e,Reader:aa,Writer:oa,options:r,uncompressedSize:e.size})}addData64URI(t,e,r={}){return bd(this,t,{data:e,Reader:ta,Writer:ea,options:r,uncompressedSize:dd(e)})}addUint8Array(t,e,r={}){return bd(this,t,{data:e,Reader:Oa,Writer:Fa,options:r,uncompressedSize:e.length})}addHttpContent(t,e,r={}){return bd(this,t,{data:e,Reader:class extends Ra{constructor(t){super(t,r)}},options:r})}addReadable(t,e,r={}){return bd(this,t,{Reader:Kl(e),options:r})}addFileSystemEntry(t,e={}){return pd(this,t,e)}addFileSystemHandle(t,e={}){return pd(this,t,e)}addFile(t,e={}){return(e=Object.assign({},e)).lastModDate||(e.lastModDate=new Date(t.lastModified)),bd(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 aa(t),e)}importData64URI(t,e){return this.importZip(new ta(t),e)}importUint8Array(t,e){return this.importZip(new Oa(t),e)}importHttpContent(t,e){return this.importZip(new Ra(t,e),e)}importReadable(t,e){return this.importZip({readable:t},e)}exportBlob(t={}){return this.exportZip(new oa(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new ea(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new Fa,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;cd(r.passThrough),ad(r);const i=nd(r.readerOptions),s=new AbortController,{signal:c}=s,l=function(t,e){if(!ft(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,s),d=Object.assign({},r,i,{signal:c,onstart:O,onprogress:O,onend:O,preventClose:!1}),u=Hl([t],t=>Yl(t,d.passThrough)),f=[];let p=!1,m=0;try{n&&await nn(n,u),await h(t,e),o&&await nn(o,m)}catch(t){try{t.exportedEntryNames=f}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 nn(a,m,u)},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=>!td(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||td(c.reason))return;pt(c)}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(_l):t}f.push(e.getRelativeName(t))}}catch(r){p=!0,s.abort(new Error(_l));try{r.entryName===O&&(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==I?(r=t,e=Object.assign({},r.options,e)):(await Ma(t),r=new pi(t,e)),cd(e.passThrough),ad(e);const n=function(t){if(t===O)return Ol;if(Il.has(t))return t;throw new Error(Sl)}(e.duplicates),a=[],o={Je:[]},i=await r.getEntries(e);for(const t of i){let r=this;try{const i=t.filename.split("/").filter(t=>""!=t&&"."!=t),s=i.pop();let c=!1;for(const t of i){const e=r;if(r=r.getChildByName(t),r){if(!r.directory){if(n==Fl){c=!0;break}if(n!=Ul)throw new Error(vl);this.fs.remove(r),r=new ql(this.fs,t,{data:null},e),a.push(r)}}else r=new ql(this.fs,t,{data:null},e),a.push(r)}if(c)continue;if(t.directory){let e=r;if(s){if(e=r.getChildByName(s),e&&(!e.directory||e.data)){if(n==Fl)continue;if(n!=Ul)throw new Error(vl);e.directory?e.data=t:(this.fs.remove(e),e=O)}e||(e=new ql(this.fs,s,{data:null},r),a.push(e))}e==this||e.data||(e.data=t)}else{const i=r.getChildByName(s);if(i){if(n==Fl)continue;if(n!=Ul)throw new Error(vl);this.fs.remove(i)}a.push(bd(r,s,{data:t,Reader:Xl(Object.assign({},e),o),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,n=Boolean(t)&&typeof t.add==I;e=Object.assign({},e),n||e.bufferedWrite!==O||(e.bufferedWrite=!0);const[a]=await Promise.all([Jl(r,nd(e.readerOptions)),n?O:Ma(t)]),o=n?t:new Vs(t,e);return await async function(t,e,r,n,a){const{onstart:o,onprogress:i,onend:s,onentryprogress:c}=n,l=e,d=Hl(e.children,t=>fd(t)?0:1);let u=0,f=0;if(o&&await nn(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(fd(e))return;const{name:o,Qt:s}=ed(e,l,n);let p=0;const m=await t.add(o,a.get(e),Object.assign(s,{onstart:O,onend:O,onprogress:async t=>{u+=t-p,p=t,i&&await nn(i,u,r)}}));f++,c&&await nn(c,f,d,m)}s&&await nn(s,u)}(o,r,Hl([r],Gl),e,a),n?o:(await o.close(e.globalComment),t.getData?t.getData():t.writable)}async getExportedSize(r={}){const n=this;nd((r=Object.assign({},r)).readerOptions),r.bufferedWrite===O&&(r.bufferedWrite=!0);const a=n.getChildren({recursive:!0}),o=a.filter(t=>!fd(t)).map(t=>{const{name:e,Qt:a}=ed(t,n,r);return{name:e,size:t.directory?0:rd(t,ud(t,r)),options:a}}),i=!r.bufferedWrite||o.every(t=>!1!==t.options.keepOrder)&&a.every(t=>fd(t)||!t.children.length);return await async function(r,n,a,o){const i={options:r};if(ut(r[J]))throw new Error(vs);if(o!==O&&!(o instanceof Uint8Array))throw new Error(ts);const s=Mc(o);if(s>e)throw new Error(Qi);const c=r[X],l=new Map,d=r[K]===O?0:r[K];let u=d,p=F;const m=[],w=new Set;for(const e of n){let{name:r}=e;const{size:n}=e,a=Object.assign({},e.options);kc(i,a,fo)&&!r.endsWith(k)&&(r+=k);const o=Qs(i,r,a);({name:r}=o);const{ee:s}=tc(i,r,a);0==s.level||s.compressionMethod!==O||s.ne||await Jr(Ut())||(s.level=0);const d=!kc(i,a,fo);if(d&&n===O)throw new Error(vs);const{_e:f,ee:h}=rc(i,d,n,s,a);if(d&&!s.ne&&Fc(h.compressionMethod,h.level))throw new Error(vs);const y=Object.assign({},a,o.ee,s,h,{[X]:c}),b=ac(y),g=sc(y),x={le:b,pe:Mc(b.ie,g.se)};c&&oc(x,u);const E=d?f:0;l.set(r,Object.assign({},y,b,{offset:u,diskNumberStart:0,compressedSize:E}));const v=x.pe+E;m.push(v),w.add(Boolean(y.Vt||y.uncompressedSize>=t||E>=t)),p=Math.min(p,v),u+=v}if(l.size>1&&(c||u-p>=t&&(w.size>1||nc(m,d,!0)!=nc(m,d,!1)))&&!a)throw new Error(vs);const{Se:h,ze:y}=cc(l);let b=kc(i,r,io);if(u>=t||h>=t||l.size>=e){if(!1===b)throw new Error(bs);b=!0}else b===O&&y&&(b=!0);return u-d+h+s+(b?98:f)}(r,o,i,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 Zl{constructor(){wd(this)}get children(){return this.root.children}remove(t){Ql(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=O}move(t,e){if(t==this.root)throw new Error(kl);if(!e.directory)throw new Error(Al);if(e.isDescendantOf(t))throw new Error(zl);if(t!=e){const r=e.getChildByName(t.name);if(r){if(r!=t)throw new Error(El)}else Ql(t),t.parent=e,e.children.push(t),yd(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]):O;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 hd(this,r=>r.importBlob(t,e))}importData64URI(t,e){return hd(this,r=>r.importData64URI(t,e))}importUint8Array(t,e){return hd(this,r=>r.importUint8Array(t,e))}importHttpContent(t,e){return hd(this,r=>r.importHttpContent(t,e))}importReadable(t,e){return hd(this,r=>r.importReadable(t,e))}importZip(t,e){return hd(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 Vl={FS:Zl,ZipDirectoryEntry:ql,ZipFileEntry:Wl};function Hl(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 Gl(t){return t.uncompressedSize}function Yl(t,e){const{data:r}=t;return e&&r instanceof vo?r.compressedSize:t.uncompressedSize}function Kl(t){let e;return function(){if(e)throw new Error(Dl);return e=!0,{readable:t}}}function Xl(t,e){return class extends Jn{constructor(t,e={}){super(),this.entry=t,this.options=e}async init(){const r=this,n=Object.assign({},t,r.options),{checkOverlappingEntry:a,checkOverlappingEntryOnly:o}=n,i=await async function(t,e,r){ad(e);const{passwords:n,requestPassword:a,signal:o}=e;if(delete(e=Object.assign({},e)).passwords,delete e.requestPassword,!t.encrypted||e.passThrough||!n&&!a)return t.getData(new oa,e);const i=new Set;let s;for(;;){for(const t of id(e,r,n))if(!i.has(t.key)){const e=await l(t);if(e.done)return e.data;s=e.error}if(!a)break;if(r.Qe){await r.Qe;continue}let o;r.Qe=new Promise(t=>o=t);try{const e=await a(t,s);if(e===O||null===e)break;if(typeof e!=C)throw new Error(Nl);const r=await l(sd(e));if(r.done)return r.data;s=r.error}finally{r.Qe=O,o()}}if(!i.size)throw new Error(Uo);const c=new Error(ge);throw c.cause=s,c;async function l(n){i.add(n.key);const a=Object.assign({},e,n.options);if(t.zipCrypto){a.checkCrc32=!0;try{await t.getData(null,Object.assign({},a,{checkPasswordOnly:!0}))}catch(t){if(od(t))return{done:!1,error:t};throw t}}try{const e=await t.getData(new oa,a);return function(t,e){const{Je:r}=t,n=r.findIndex(t=>t.key===e.key);-1!=n&&r.splice(n,1),r.unshift(e)}(r,n),{done:!0,data:e}}catch(e){if(function(t,e){return Boolean(e&&e.aborted)||qt(t)&&"AbortError"==t.name}(e,o)||!function(t,e){return od(t)||e.zipCrypto&&qt(t)&&Bl.has(t.message)}(e,t))throw e;return{done:!1,error:e}}}}(r.entry,Object.assign(n,{checkPasswordOnly:!1,checkOverlappingEntry:o||a,checkOverlappingEntryOnly:!1,preventClose:!1}),e);r.data=i,r.er=new aa(i),r.size=i.size,super.init()}readUint8Array(t,e){return this.er.readUint8Array(t,e)}}}function $l(t,e,r){return t.prototype?new t(e,r):t(e,r)}async function Jl(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 r=>{const n=r.reader=$l(r.Reader,r.data,e);a.set(r,n);try{await Ma(n)}catch(e){try{e.entry=r,e.entryId=r.id,e.entryName=r.getRelativeName(t)}catch{}throw e}n.size!==O&&(r.uncompressedSize=n.size,r.Xe=!1)})),a}function Ql(t){if(t.parent){const e=t.parent.children;e.forEach((r,n)=>{r.id==t.id&&e.splice(n,1)})}}function td(t){return Boolean(t)&&t.message==_l}function ed(t,e,r){const n=r.relativePath?t.getRelativeName(e):t.getFullname(),a=t.options||{};let o={},i={};if(t.data instanceof vo){const e=ud(t,r),n=a.lastModDate===O?r.lastModDate:a.lastModDate;({Qt:o,te:i}=Js(t.data,e,n)),e&&(i.passThrough=!0)}const s=Object.assign({lastModDate:t.$e},o,r,a,i,{directory:t.directory});if(!t.directory&&s.passThrough&&s.uncompressedSize===O)throw new Error(Tl);return{name:n,Qt:s}}function rd(t,e){const{reader:r}=t;return r&&r.size!==O?r.size:t.Xe?O:Yl(t,e)}function nd(t){if(t&&(typeof t!=T||Array.isArray(t)))throw new Error(Cl);return t&&(cd(t.passThrough),ad(t)),t}function ad(t){const{passwords:e,requestPassword:r}=t;if(e&&(!Array.isArray(e)||e.some(t=>typeof t!=C)))throw new Error(Ml);if(r&&typeof r!=I)throw new Error(Nl)}function od(t){return qt(t)&&t.message==ge}function id(t,e,r){const n=[],{password:a,rawPassword:o}=t;return o&&o.length&&n.push({key:o,options:{password:"",rawPassword:o}}),a&&n.push(sd(a)),n.push(...e.Je),r&&n.push(...r.filter(t=>t).map(sd)),n}function sd(t){return{key:t,options:{password:t,rawPassword:Pl}}}function cd(t){if(wt(t)===ot)throw new Error(jl)}function ld(t,e){const{uncompressedSize:r}=e;Object.assign(t,e,{reader:null,passThrough:O,uncompressedSize:r===O?0:r,Xe:r===O})}function dd(t){let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;return Math.floor(.75*(e-r))}function ud(t,e){const{readerOptions:r}=e;return Boolean(!t.directory&&(t.passThrough||r&&r.passThrough))}function fd(t){return t.directory&&null===t.data}function pd(t,e,r){return async function t(e,n,a,o=""){if(n){const i=o?o+"/"+n.name:n.name;try{if((n.isFile||n.isDirectory)&&(n=await md(n)),"file"==n.kind){const t=await n.getFile();a.push(bd(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,i)}}catch(t){try{t.entryName===O&&(t.entryName=i)}catch{}throw t}}return a}(t,e,[])}async function md(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 md(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 wd(t){t.entries=[],t.Ke=0,t.root=new ql(t)}function hd(t,e){const{entries:r,Ke:n,root:a}=t;return wd(t),e(t.root).catch(e=>{throw Object.assign(t,{entries:r,Ke:n,root:a}),e})}function yd(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 bd(t,e,r,n){if(t.directory){const a=gd(e);return a&&(e=a.pop(),t=xd(t,a)),n?new ql(t.fs,e,r,t):new Wl(t.fs,e,r,t)}throw new Error(Rl)}function gd(t){if(t.includes("/")){const e=t.split("/").filter(t=>""!=t&&"."!=t);if(e.length)return e}}function xd(t,e,r){return e.forEach(e=>{const n=t;if(t=t.getChildByName(e)){if(!t.directory)throw new Error(El);if(r&&(t==r||t.isDescendantOf(r)))throw new Error(zl)}else t=new ql(n.fs,e,{data:null},n)}),t}let Ed;function vd(t){return t&&(Ed||(Ed=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 i=r.replace(/!/g,"+xml"),s=e.length>1?e.slice(1):[i.split("+")[0]];for(const e of s)t[e]=n+"/"+i}}return t}()),Ed)[t.split(".").pop().toLowerCase()]||"application/octet-stream"}export{aa as BlobReader,oa as BlobWriter,ta as Data64URIReader,ea as Data64URIWriter,dt as ERR_ABORTED,Mo as ERR_AMBIGUOUS_ARCHIVE,zl as ERR_ANCESTOR_ENTRY,ko as ERR_BAD_FORMAT,Do as ERR_CENTRAL_DIRECTORY_NOT_FOUND,yr as ERR_CODEC_OUT_OF_MEMORY,Ji as ERR_DUPLICATED_NAME,vl as ERR_DUPLICATE_IMPORTED_ENTRY,Uo as ERR_ENCRYPTED,No as ERR_ENCRYPTED_CENTRAL_DIRECTORY,jo as ERR_ENTRY_DATA_OUT_OF_BOUNDS,El as ERR_ENTRY_EXISTS,Ro as ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,Ao as ERR_EOCDR_NOT_FOUND,Fo as ERR_EXTRAFIELD_ZIP64_NOT_FOUND,Pn as ERR_HTTP_RANGE,Bn as ERR_HTTP_RESOURCE_CHANGED,_n as ERR_HTTP_STATUS,xe as ERR_INVALID_AUTHENTICATION_CODE,xt as ERR_INVALID_BASE_URI,rr as ERR_INVALID_CODEC_DEFINITION,ar as ERR_INVALID_CODEC_MODULE,Qi as ERR_INVALID_COMMENT,ts as ERR_INVALID_COMMENT_TYPE,hr as ERR_INVALID_COMPRESSED_DATA,br as ERR_INVALID_CRC32,ns as ERR_INVALID_DATE,Sl as ERR_INVALID_DUPLICATES,is as ERR_INVALID_ENCRYPTION_STRENGTH,js as ERR_INVALID_ENTRY,es as ERR_INVALID_ENTRY_COMMENT,rs as ERR_INVALID_ENTRY_COMMENT_TYPE,as as ERR_INVALID_ENTRY_NAME,ds as ERR_INVALID_EXTRAFIELD,ps as ERR_INVALID_EXTRAFIELD_DATA,fs as ERR_INVALID_EXTRAFIELD_DATA_TYPE,us as ERR_INVALID_EXTRAFIELD_TYPE,Bo as ERR_INVALID_FILENAME_VALIDATION,it as ERR_INVALID_FUNCTION_OPTION,Rs as ERR_INVALID_GID,Ts as ERR_INVALID_LEVEL,Lo as ERR_INVALID_MAX_APPENDED_DATA_SIZE,gt as ERR_INVALID_MAX_WORKERS,Us as ERR_INVALID_MSDOS_ATTRIBUTES,Is as ERR_INVALID_MSDOS_DATA,ge as ERR_INVALID_PASSWORD,Ml as ERR_INVALID_PASSWORDS,ct as ERR_INVALID_PASSWORD_TYPE,Tl as ERR_INVALID_PASS_THROUGH,lt as ERR_INVALID_PASS_THROUGH_VALUE,zs as ERR_INVALID_READER,Cl as ERR_INVALID_READER_OPTIONS,Nl as ERR_INVALID_REQUEST_PASSWORD,st as ERR_INVALID_SIGNAL,Cs as ERR_INVALID_SIGNATURE_DATA,Po as ERR_INVALID_STRICTNESS,As as ERR_INVALID_UID,wr as ERR_INVALID_UNCOMPRESSED_SIZE,Os as ERR_INVALID_UNIX_EXTRA_FIELD_TYPE,Fs as ERR_INVALID_UNIX_ID_SIZE,Ds as ERR_INVALID_UNIX_MODE,Et as ERR_INVALID_URI,os as ERR_INVALID_VERSION,Ln as ERR_ITERATOR_COMPLETED_TOO_SOON,Oo as ERR_LOCAL_FILE_HEADER_NOT_FOUND,Co as ERR_OVERLAPPING_ENTRY,Rl as ERR_PARENT_NOT_DIRECTORY,Dl as ERR_READABLE_CONSUMED,nr as ERR_RESERVED_COMPRESSION_METHOD,kl as ERR_ROOT_DIRECTORY_NOT_MOVABLE,To as ERR_SPLIT_ZIP_FILE,Al as ERR_TARGET_NOT_DIRECTORY,xs as ERR_UNDEFINED_COMPRESSION_METHOD,Es as ERR_UNDEFINED_CRC32,Ss as ERR_UNDEFINED_READER,gs as ERR_UNDEFINED_UNCOMPRESSED_SIZE,vs as ERR_UNDETERMINED_SIZE,_o as ERR_UNSAFE_FILENAME,or as ERR_UNSUPPORTED_COMPRESSION,Xc as ERR_UNSUPPORTED_CONTEXT,ve as ERR_UNSUPPORTED_CRYPTO_API,Io as ERR_UNSUPPORTED_ENCRYPTION,ls as ERR_UNSUPPORTED_ENCRYPTION_PASS_THROUGH,ss as ERR_UNSUPPORTED_ENCRYPTION_USDZ,bs as ERR_UNSUPPORTED_FORMAT,jl as ERR_UNSUPPORTED_PASS_THROUGH_VALUE,cs as ERR_UNSUPPORTED_SPLIT_USDZ,Wo as ERR_UNSUPPORTED_UINT64,Gr as ERR_WORKER_STARTUP_TIMEOUT,Wn as ERR_WRITER_NOT_INITIALIZED,qn as ERR_WRITER_SIZE_NOT_WRITABLE,Ms as ERR_ZIP_CRYPTO_LAST_MOD_DATE,ks as ERR_ZIP_NOT_EMPTY,Da as HttpRangeReader,Ra as HttpReader,Jn as Reader,Ua as SplitDataReader,Ia as SplitDataWriter,ia as TextReader,ca as TextWriter,Oa as Uint8ArrayReader,Fa as Uint8ArrayWriter,Wc as VERSION,Ko as WARNING_APPENDED_DATA,_s as WARNING_CLAMPED_LAST_MODIFICATION_DATE,Vo as WARNING_COMPRESSED_PATCHED_DATA,Ns as WARNING_COMPRESSION_UNAVAILABLE,Qo as WARNING_DUPLICATE_FILENAME,Ho as WARNING_MALFORMED_EXTRA_FIELD,ni as WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG,ai as WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD,oi as WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES,ri as WARNING_MISMATCHED_LOCAL_FILE_HEADER_FILENAME,ti as WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY,ei as WARNING_MULTIPLE_END_OF_CENTRAL_DIRECTORY,$o as WARNING_PREPENDED_CENTRAL_DIRECTORY,Xo as WARNING_PREPENDED_DATA,Jo as WARNING_TRAILING_CENTRAL_DIRECTORY_DATA,Zo as WARNING_UNKNOWN_VERSION,Go as WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA,qo as WARNING_UNSORTED_CENTRAL_DIRECTORY,Yo as WARNING_WRAPPED_ENTRIES_COUNT,Qn as Writer,ql as ZipDirectoryEntry,Ll as ZipEntry,Zl as ZipFS,Wl as ZipFileEntry,pi as ZipReader,mi as ZipReaderStream,Vs as ZipWriter,Hs as ZipWriterStream,Ct as configure,Gc as createBlobTempStream,Vc as createOPFSTempStream,$c as createSyncAccessHandleTempStream,Vl as fs,vd as getMimeType,fr as getRegisteredCodecs,Bc as getSupportedCompressionMethods,wi as isZipFile,lr as registerCodec,Pt as resetConfiguration,xl as terminateWorkers,dr as unregisterCodec};
|
|
1
|
+
const t=4294967295,e=65535,r=255,n=67324752,a=134695760,o=a,i=84233040,s=33639248,c=101010256,l=101075792,d=117853008,u=46,f=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),O=void 0,F=1/0,U="undefined",I="function",T="object",C="string",j="boolean",M=new Uint8Array,N=Symbol.asyncDispose||Symbol(),_="password",P="rawPassword",B="passThrough",L="signal",W="useWebWorkers",q="useCompressionStream",Z="transferStreams",V="preventClose",H="level",G="useUnicodeFileNames",Y="dataDescriptor",K="offset",X="usdz",$="maxAppendedDataSize",J="signCentralDirectory",Q="entry",tt="filename",et="comment",rt="strict",nt="balanced",at="tolerant",ot="compressed",it="Invalid option (must be a function)",st="Invalid signal (must be an AbortSignal instance)",ct="Invalid password (password must be a string, rawPassword must be a Uint8Array)",lt="Invalid passThrough option (must be a boolean or 'compressed')",dt="The operation was aborted";function ut(t){if(t&&typeof t!=I)throw new Error(it);return t}function ft(t){if(t&&(typeof t.addEventListener!=I||typeof t.aborted!=j))throw new Error(st);return t||O}function pt(t){if(t&&t.aborted)throw t.reason===O?new DOMException(dt,"AbortError"):t.reason}function mt(t,e){if(t&&typeof t!=C||e&&!(e instanceof Uint8Array))throw new Error(ct)}function wt(t){if(t!==O&&typeof t!=j&&t!==ot)throw new Error(lt);return t}function ht(t,e,r){if(!Number.isInteger(t)||t<0||t>e)throw new Error(r)}function yt(t,e,r){t!==O&&ht(t,e,r)}function bt(t){return typeof t==C&&t.trim()?Number(t):t}const gt="Invalid maxWorkers (must be an integer greater than 0)",xt="Invalid baseURI (must be a string)",Et="Invalid URI (must be a string or a function returning a string)";let vt=2;try{typeof navigator!=U&&navigator.hardwareConcurrency&&(vt=navigator.hardwareConcurrency)}catch{}const St={workerURI:"./core/web-worker-wasm.js",wasmURI:"./core/streams/zlib-wasm/zlib-streams.wasm",chunkSize:65536,maxWorkers:vt,terminateWorkerTimeout:5e3,workerStarvationTimeout:5e3,workerStartupTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,transferStreams:!0,CompressionStream:typeof CompressionStream!=U&&CompressionStream,DecompressionStream:typeof DecompressionStream!=U&&DecompressionStream},zt="maxWorkers",kt="baseURI",At=["wasmURI","workerURI"],Rt=["chunkSize",zt,"terminateWorkerTimeout","workerStarvationTimeout","workerStartupTimeout"],Dt=["createWorker","CompressionStream","DecompressionStream","CompressionStreamFallback","DecompressionStreamFallback"],Ot=[kt,...At,"useCompressionStream","useWebWorkers","transferStreams",...Rt,...Dt],Ft={...St};function Ut(){return Ft}function It(t){return Tt(t.chunkSize)}function Tt(t){return t=bt(t),Number.isInteger(t)&&t>=1?Math.max(t,64):65536}function Ct(t){Object.assign(Ft,jt(Nt(t)))}function jt(t){const e={};for(const r of Ot){const n=t[r];n!==O&&(e[r]=Mt(r,n))}return e}function Mt(t,e){if(Rt.includes(t)){if(e=bt(e),t==zt&&(!Number.isInteger(e)||e<1))throw new Error(gt)}else if(Dt.includes(t))ut(e);else if(t==kt){if(e&&typeof e!=C)throw new Error(xt)}else if(At.includes(t)&&e&&typeof e!=C&&typeof e!=I)throw new Error(Et);return e}function Nt(t){t=t||{};const{CompressionStreamZlib:e,DecompressionStreamZlib:r}=t;if(e===O&&r===O)return t;const n=Object.assign({},t);return n.CompressionStreamFallback===O&&(n.CompressionStreamFallback=e),n.DecompressionStreamFallback===O&&(n.DecompressionStreamFallback=r),n}function _t(t){const e=jt(Nt(t));Object.assign(St,e),Object.assign(Ft,e)}function Pt(){for(const t of Ot)delete Ft[t];Object.assign(Ft,St)}function Bt(t,e){const r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}function Lt(t){return t.byteOffset||t.byteLength!=t.buffer.byteLength?new Uint8Array(t):t}function Wt(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function qt(t){return Boolean(t)&&"object"==typeof t}const Zt=[[],[],[],[],[],[],[],[]];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;Zt[0][t]=e}for(let t=0;t<256;t++)for(let e=1;e<8;e++){const r=Zt[e-1][t];Zt[e][t]=r>>>8^Zt[0][255&r]}const[Vt,Ht,Gt,Yt,Kt,Xt,$t,Jt]=Zt;class Qt{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=Jt[255&t]^$t[t>>>8&255]^Xt[t>>>16&255]^Kt[t>>>24&255]^Yt[255&r]^Gt[r>>>8&255]^Ht[r>>>16&255]^Vt[r>>>24&255]}}for(;n<r;n++)e=e>>>8^Vt[255&(e^t[n])];this.o=e}get(){return~this.o}}class te extends TransformStream{constructor(){let t;const e=new Qt;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 ee(t){if(typeof TextEncoder==U){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 re=64,ne=20,ae=new Uint8Array([128]),oe=new Uint8Array(1),ie=new Int32Array([1732584193,4023233417,2562383102,271733878,3285377520]),se=new Uint8Array(256),ce=new Int32Array(256),le=new Int32Array(256),de=new Int32Array(256),ue=new Int32Array(256);let fe=!1;function pe(t,e){!function(){if(!fe){let t=1,e=1;do{t=255&(t^t<<1^(128&t?27:0)),e=255&(e^e<<1),e=255&(e^e<<2),e=255&(e^e<<4),128&e&&(e^=9),se[t]=255&(e^(e<<1|e>>7)^(e<<2|e>>6)^(e<<3|e>>5)^(e<<4|e>>4)^99)}while(1!=t);se[0]=99;for(let t=0;t<256;t++){const e=se[t],r=ye(e),n=r<<24|e<<16|e<<8|r^e;ce[t]=n,le[t]=n>>>8|n<<24,de[t]=n>>>16|n<<16,ue[t]=n>>>24|n<<8}fe=!0}}();const r=new Int32Array(60),n=function(t,e){const r=t.length>>2,n=r+6,a=4*(n+1);let o=1;for(let n=0;n<r;n++)e[n]=t[4*n]<<24|t[4*n+1]<<16|t[4*n+2]<<8|t[4*n+3];for(let t=r;t<a;t++){let n=e[t-1];t%r==0?(n=we(n<<8|n>>>24)^o<<24,o=ye(o)):r>6&&t%r==4&&(n=we(n)),e[t]=e[t-r]^n}return n}(t,r),a=new Int32Array(4),o=me(e);let i=0,s=0,c=0,l=0;return{process(t,e){e&&o.update(t,0,t.length),function(t){const e=new DataView(t.buffer,t.byteOffset,t.byteLength),r=t.length;let n=0;for(;n+16<=r;n+=16)d(),e.setInt32(n,e.getInt32(n)^a[0]),e.setInt32(n+4,e.getInt32(n+4)^a[1]),e.setInt32(n+8,e.getInt32(n+8)^a[2]),e.setInt32(n+12,e.getInt32(n+12)^a[3]);if(n<r){d();for(let e=0;n<r;n++,e++)t[n]^=a[e>>2]>>>24-8*(3&e)}}(t),e||o.update(t,0,t.length)},digest:()=>o.digest()};function d(){i=i+1|0,i||(s=s+1|0,s||(c=c+1|0,c||(l=l+1|0)));let t=he(i)^r[0],e=he(s)^r[1],o=he(c)^r[2],d=he(l)^r[3],u=ce[t>>>24]^le[e>>>16&255]^de[o>>>8&255]^ue[255&d]^r[4],f=ce[e>>>24]^le[o>>>16&255]^de[d>>>8&255]^ue[255&t]^r[5],p=ce[o>>>24]^le[d>>>16&255]^de[t>>>8&255]^ue[255&e]^r[6],m=ce[d>>>24]^le[t>>>16&255]^de[e>>>8&255]^ue[255&o]^r[7];t=ce[u>>>24]^le[f>>>16&255]^de[p>>>8&255]^ue[255&m]^r[8],e=ce[f>>>24]^le[p>>>16&255]^de[m>>>8&255]^ue[255&u]^r[9],o=ce[p>>>24]^le[m>>>16&255]^de[u>>>8&255]^ue[255&f]^r[10],d=ce[m>>>24]^le[u>>>16&255]^de[f>>>8&255]^ue[255&p]^r[11],u=ce[t>>>24]^le[e>>>16&255]^de[o>>>8&255]^ue[255&d]^r[12],f=ce[e>>>24]^le[o>>>16&255]^de[d>>>8&255]^ue[255&t]^r[13],p=ce[o>>>24]^le[d>>>16&255]^de[t>>>8&255]^ue[255&e]^r[14],m=ce[d>>>24]^le[t>>>16&255]^de[e>>>8&255]^ue[255&o]^r[15],t=ce[u>>>24]^le[f>>>16&255]^de[p>>>8&255]^ue[255&m]^r[16],e=ce[f>>>24]^le[p>>>16&255]^de[m>>>8&255]^ue[255&u]^r[17],o=ce[p>>>24]^le[m>>>16&255]^de[u>>>8&255]^ue[255&f]^r[18],d=ce[m>>>24]^le[u>>>16&255]^de[f>>>8&255]^ue[255&p]^r[19],u=ce[t>>>24]^le[e>>>16&255]^de[o>>>8&255]^ue[255&d]^r[20],f=ce[e>>>24]^le[o>>>16&255]^de[d>>>8&255]^ue[255&t]^r[21],p=ce[o>>>24]^le[d>>>16&255]^de[t>>>8&255]^ue[255&e]^r[22],m=ce[d>>>24]^le[t>>>16&255]^de[e>>>8&255]^ue[255&o]^r[23],t=ce[u>>>24]^le[f>>>16&255]^de[p>>>8&255]^ue[255&m]^r[24],e=ce[f>>>24]^le[p>>>16&255]^de[m>>>8&255]^ue[255&u]^r[25],o=ce[p>>>24]^le[m>>>16&255]^de[u>>>8&255]^ue[255&f]^r[26],d=ce[m>>>24]^le[u>>>16&255]^de[f>>>8&255]^ue[255&p]^r[27],u=ce[t>>>24]^le[e>>>16&255]^de[o>>>8&255]^ue[255&d]^r[28],f=ce[e>>>24]^le[o>>>16&255]^de[d>>>8&255]^ue[255&t]^r[29],p=ce[o>>>24]^le[d>>>16&255]^de[t>>>8&255]^ue[255&e]^r[30],m=ce[d>>>24]^le[t>>>16&255]^de[e>>>8&255]^ue[255&o]^r[31],t=ce[u>>>24]^le[f>>>16&255]^de[p>>>8&255]^ue[255&m]^r[32],e=ce[f>>>24]^le[p>>>16&255]^de[m>>>8&255]^ue[255&u]^r[33],o=ce[p>>>24]^le[m>>>16&255]^de[u>>>8&255]^ue[255&f]^r[34],d=ce[m>>>24]^le[u>>>16&255]^de[f>>>8&255]^ue[255&p]^r[35],u=ce[t>>>24]^le[e>>>16&255]^de[o>>>8&255]^ue[255&d]^r[36],f=ce[e>>>24]^le[o>>>16&255]^de[d>>>8&255]^ue[255&t]^r[37],p=ce[o>>>24]^le[d>>>16&255]^de[t>>>8&255]^ue[255&e]^r[38],m=ce[d>>>24]^le[t>>>16&255]^de[e>>>8&255]^ue[255&o]^r[39];let w=40;n>10&&(t=ce[u>>>24]^le[f>>>16&255]^de[p>>>8&255]^ue[255&m]^r[40],e=ce[f>>>24]^le[p>>>16&255]^de[m>>>8&255]^ue[255&u]^r[41],o=ce[p>>>24]^le[m>>>16&255]^de[u>>>8&255]^ue[255&f]^r[42],d=ce[m>>>24]^le[u>>>16&255]^de[f>>>8&255]^ue[255&p]^r[43],u=ce[t>>>24]^le[e>>>16&255]^de[o>>>8&255]^ue[255&d]^r[44],f=ce[e>>>24]^le[o>>>16&255]^de[d>>>8&255]^ue[255&t]^r[45],p=ce[o>>>24]^le[d>>>16&255]^de[t>>>8&255]^ue[255&e]^r[46],m=ce[d>>>24]^le[t>>>16&255]^de[e>>>8&255]^ue[255&o]^r[47],w=48),n>12&&(t=ce[u>>>24]^le[f>>>16&255]^de[p>>>8&255]^ue[255&m]^r[48],e=ce[f>>>24]^le[p>>>16&255]^de[m>>>8&255]^ue[255&u]^r[49],o=ce[p>>>24]^le[m>>>16&255]^de[u>>>8&255]^ue[255&f]^r[50],d=ce[m>>>24]^le[u>>>16&255]^de[f>>>8&255]^ue[255&p]^r[51],u=ce[t>>>24]^le[e>>>16&255]^de[o>>>8&255]^ue[255&d]^r[52],f=ce[e>>>24]^le[o>>>16&255]^de[d>>>8&255]^ue[255&t]^r[53],p=ce[o>>>24]^le[d>>>16&255]^de[t>>>8&255]^ue[255&e]^r[54],m=ce[d>>>24]^le[t>>>16&255]^de[e>>>8&255]^ue[255&o]^r[55],w=56),a[0]=(se[u>>>24]<<24|se[f>>>16&255]<<16|se[p>>>8&255]<<8|se[255&m])^r[w],a[1]=(se[f>>>24]<<24|se[p>>>16&255]<<16|se[m>>>8&255]<<8|se[255&u])^r[w+1],a[2]=(se[p>>>24]<<24|se[m>>>16&255]<<16|se[u>>>8&255]<<8|se[255&f])^r[w+2],a[3]=(se[m>>>24]<<24|se[u>>>16&255]<<16|se[f>>>8&255]<<8|se[255&p])^r[w+3]}}function me(t){const e=function(){const t=new Int32Array(ie),e=new Int32Array(16),r=new Uint8Array(re),n=new DataView(r.buffer),a=new Uint8Array(8);let o=0,i=0;return{update:s,digest:function(){const e=8*i,r=Math.floor(e/4294967296),n=e>>>0;for(s(ae,0,1);56!=o;)s(oe,0,1);a[0]=r>>>24,a[1]=r>>>16,a[2]=r>>>8,a[3]=r,a[4]=n>>>24,a[5]=n>>>16,a[6]=n>>>8,a[7]=n,s(a,0,8);const c=new Uint8Array(ne),l=new DataView(c.buffer);for(let e=0;e<t.length;e++)l.setInt32(4*e,t[e]);return t.set(ie),o=0,i=0,c}};function s(t,e,a){const s=e+a;if(i+=a,o){for(;e<s&&o<re;)r[o++]=t[e++];o==re&&(c(n,0),o=0)}if(e+re<=s){const r=new DataView(t.buffer,t.byteOffset,t.byteLength);for(;e+re<=s;e+=re)c(r,e)}for(;e<s;)r[o++]=t[e++]}function c(r,n){for(let t=0;t<16;t++)e[t]=r.getInt32(n+4*t);let a,o=t[0],i=t[1],s=t[2],c=t[3],l=t[4];for(let t=0;t<15;t+=5)l=(o<<5|o>>>27)+((s^c)&i^c)+l+1518500249+e[t]|0,i=i<<30|i>>>2,c=(l<<5|l>>>27)+((i^s)&o^s)+c+1518500249+e[t+1]|0,o=o<<30|o>>>2,s=(c<<5|c>>>27)+((o^i)&l^i)+s+1518500249+e[t+2]|0,l=l<<30|l>>>2,i=(s<<5|s>>>27)+((l^o)&c^o)+i+1518500249+e[t+3]|0,c=c<<30|c>>>2,o=(i<<5|i>>>27)+((c^l)&s^l)+o+1518500249+e[t+4]|0,s=s<<30|s>>>2;l=(o<<5|o>>>27)+((s^c)&i^c)+l+1518500249+e[15]|0,i=i<<30|i>>>2,a=e[13]^e[8]^e[2]^e[0],a=a<<1|a>>>31,e[0]=a,c=(l<<5|l>>>27)+((i^s)&o^s)+c+1518500249+a|0,o=o<<30|o>>>2,a=e[14]^e[9]^e[3]^e[1],a=a<<1|a>>>31,e[1]=a,s=(c<<5|c>>>27)+((o^i)&l^i)+s+1518500249+a|0,l=l<<30|l>>>2,a=e[15]^e[10]^e[4]^e[2],a=a<<1|a>>>31,e[2]=a,i=(s<<5|s>>>27)+((l^o)&c^o)+i+1518500249+a|0,c=c<<30|c>>>2,a=e[0]^e[11]^e[5]^e[3],a=a<<1|a>>>31,e[3]=a,o=(i<<5|i>>>27)+((c^l)&s^l)+o+1518500249+a|0,s=s<<30|s>>>2;for(let t=20;t<40;t+=5)a=e[t-3&15]^e[t-8&15]^e[t-14&15]^e[15&t],a=a<<1|a>>>31,e[15&t]=a,l=(o<<5|o>>>27)+(i^s^c)+l+1859775393+a|0,i=i<<30|i>>>2,a=e[t-2&15]^e[t-7&15]^e[t-13&15]^e[t+1&15],a=a<<1|a>>>31,e[t+1&15]=a,c=(l<<5|l>>>27)+(o^i^s)+c+1859775393+a|0,o=o<<30|o>>>2,a=e[t-1&15]^e[t-6&15]^e[t-12&15]^e[t+2&15],a=a<<1|a>>>31,e[t+2&15]=a,s=(c<<5|c>>>27)+(l^o^i)+s+1859775393+a|0,l=l<<30|l>>>2,a=e[15&t]^e[t-5&15]^e[t-11&15]^e[t+3&15],a=a<<1|a>>>31,e[t+3&15]=a,i=(s<<5|s>>>27)+(c^l^o)+i+1859775393+a|0,c=c<<30|c>>>2,a=e[t+1&15]^e[t-4&15]^e[t-10&15]^e[t+4&15],a=a<<1|a>>>31,e[t+4&15]=a,o=(i<<5|i>>>27)+(s^c^l)+o+1859775393+a|0,s=s<<30|s>>>2;for(let t=40;t<60;t+=5)a=e[t-3&15]^e[t-8&15]^e[t-14&15]^e[15&t],a=a<<1|a>>>31,e[15&t]=a,l=(o<<5|o>>>27)+(i&s|(i|s)&c)+l+2400959708+a|0,i=i<<30|i>>>2,a=e[t-2&15]^e[t-7&15]^e[t-13&15]^e[t+1&15],a=a<<1|a>>>31,e[t+1&15]=a,c=(l<<5|l>>>27)+(o&i|(o|i)&s)+c+2400959708+a|0,o=o<<30|o>>>2,a=e[t-1&15]^e[t-6&15]^e[t-12&15]^e[t+2&15],a=a<<1|a>>>31,e[t+2&15]=a,s=(c<<5|c>>>27)+(l&o|(l|o)&i)+s+2400959708+a|0,l=l<<30|l>>>2,a=e[15&t]^e[t-5&15]^e[t-11&15]^e[t+3&15],a=a<<1|a>>>31,e[t+3&15]=a,i=(s<<5|s>>>27)+(c&l|(c|l)&o)+i+2400959708+a|0,c=c<<30|c>>>2,a=e[t+1&15]^e[t-4&15]^e[t-10&15]^e[t+4&15],a=a<<1|a>>>31,e[t+4&15]=a,o=(i<<5|i>>>27)+(s&c|(s|c)&l)+o+2400959708+a|0,s=s<<30|s>>>2;for(let t=60;t<80;t+=5)a=e[t-3&15]^e[t-8&15]^e[t-14&15]^e[15&t],a=a<<1|a>>>31,e[15&t]=a,l=(o<<5|o>>>27)+(i^s^c)+l+3395469782+a|0,i=i<<30|i>>>2,a=e[t-2&15]^e[t-7&15]^e[t-13&15]^e[t+1&15],a=a<<1|a>>>31,e[t+1&15]=a,c=(l<<5|l>>>27)+(o^i^s)+c+3395469782+a|0,o=o<<30|o>>>2,a=e[t-1&15]^e[t-6&15]^e[t-12&15]^e[t+2&15],a=a<<1|a>>>31,e[t+2&15]=a,s=(c<<5|c>>>27)+(l^o^i)+s+3395469782+a|0,l=l<<30|l>>>2,a=e[15&t]^e[t-5&15]^e[t-11&15]^e[t+3&15],a=a<<1|a>>>31,e[t+3&15]=a,i=(s<<5|s>>>27)+(c^l^o)+i+3395469782+a|0,c=c<<30|c>>>2,a=e[t+1&15]^e[t-4&15]^e[t-10&15]^e[t+4&15],a=a<<1|a>>>31,e[t+4&15]=a,o=(i<<5|i>>>27)+(s^c^l)+o+3395469782+a|0,s=s<<30|s>>>2;t[0]=t[0]+o|0,t[1]=t[1]+i|0,t[2]=t[2]+s|0,t[3]=t[3]+c|0,t[4]=t[4]+l|0}}(),r=new Uint8Array(re),n=new Uint8Array(re);t.length>re&&(e.update(t,0,t.length),t=e.digest());for(let e=0;e<re;e++){const a=e<t.length?t[e]:0;r[e]=54^a,n[e]=92^a}return e.update(r,0,re),{update(t,r,n){e.update(t,r,n)},digest(){const t=e.digest();e.update(n,0,re),e.update(t,0,ne);const a=e.digest();return e.update(r,0,re),a}}}function we(t){return se[t>>>24]<<24|se[t>>>16&255]<<16|se[t>>>8&255]<<8|se[255&t]}function he(t){return t<<24|(65280&t)<<8|t>>>8&65280|t>>>24}function ye(t){return 255&(t<<1^27*(t>>7))}const be=typeof crypto!=U&&typeof crypto.getRandomValues==I,ge="Invalid password",xe="Invalid authentication code",Ee="zipjs-abort-check-password",ve="Crypto API not supported";function Se(t){if(be)return crypto.getRandomValues(t);throw new Error(ve)}const ze={name:"PBKDF2"},ke=Object.assign({hash:{name:"HMAC"}},ze),Ae=Object.assign({iterations:1e3,hash:{name:"SHA-1"}},ze),Re=["deriveBits"],De=[8,12,16],Oe=[16,24,32],Fe=10,Ue=typeof crypto!=U,Ie=Ue&&crypto.subtle;let Te=Ue&&typeof Ie!=U&&typeof Ie.importKey==I&&typeof Ie.deriveBits==I,Ce=pe;class je extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r,checkPasswordOnly:n,checkAuthenticationCode:a=!0}){const o={};super({start(){Ne(o,t,e,r)},async transform(t,e){const{password:r,strength:a,l:i,ready:s}=o;if(r?(await async function(t,e,r,n){const a=await Le(t,e,r,qe(n,0,De[e])),o=qe(n,De[e]);if(a[0]!=o[0]||a[1]!=o[1])throw Be(t),new Error(ge)}(o,a,r,qe(t,0,De[a]+2)),t=qe(t,De[a]+2),n?(Be(o),e.error(new Error(Ee))):i()):await s,o.m)return;const c=new Uint8Array(t.length-Fe-(t.length-Fe)%16);e.enqueue(Pe(o,t,c,0,Fe,!0))},async flush(t){const{h:e,v:r,ready:n}=o;if(e){if(await n,o.m)return;const i=qe(r,r.length-Fe),s=new Uint8Array(qe(r,0,r.length-Fe));e.process(s,!0);const c=e.digest();let l=r.length<Fe?1:0;for(let t=0;t<Fe;t++)l|=c[t]^i[t];if(l&&a)return void t.error(new Error(xe));t.enqueue(s)}}}),_e(this,o)}}class Me extends TransformStream{constructor({password:t,rawPassword:e,encryptionStrength:r}){const n={};super({start(){Ne(n,t,e,r)},async transform(t,e){const{password:r,strength:a,l:o,ready:i}=n;let s=M;if(r?(s=await async function(t,e,r){const n=Se(new Uint8Array(De[e]));return Bt(n,await Le(t,e,r,n))}(n,a,r),o()):await i,n.m)return;const c=new Uint8Array(s.length+t.length-t.length%16);c.set(s,0),e.enqueue(Pe(n,t,c,s.length,0,!1))},async flush(t){const{h:e,v:r,ready:a}=n;if(e){if(await a,n.m)return;const o=new Uint8Array(r);e.process(o,!1);const i=qe(e.digest(),0,Fe);t.enqueue(Bt(o,i))}}}),_e(this,n)}}function Ne(t,e,r,n){Object.assign(t,{ready:new Promise(e=>t.l=e),password:We(e,r),strength:n-1,v:M,m:!1})}function _e(t,e){const r=t.readable.getReader(),n=new ReadableStream({async pull(t){try{const{value:e,done:n}=await r.read();n?t.close():t.enqueue(e)}catch(t){throw Be(e),r.cancel(t).catch(()=>{}),t}},cancel:t=>(Be(e),r.cancel(t))});Object.defineProperty(t,"readable",{get:()=>n})}function Pe(t,e,r,n,a,o){const{h:i,v:s}=t;s.length&&(e=Bt(s,e));const c=e.length-a,l=c-c%16;if(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){const t=qe(r,n,n+l);t.set(qe(e,0,l)),i.process(t,o)}return t.v=qe(e,l),r}function Be(t){const{h:e}=t;t.m=!0,e&&e.dispose&&e.dispose()}async function Le(t,e,r,n){t.password=null;const a=Oe[e],o=await async function(t,e,r){if(Te)try{const n=await Ie.importKey("raw",t,ke,!1,Re);return new Uint8Array(await Ie.deriveBits(Object.assign({salt:e},Ae),n,8*r))}catch{Te=!1}return function(t,e,r,n){const a=me(t),o=new Uint8Array(n),i=new Uint8Array(e.length+4),s=new DataView(i.buffer);i.set(e);for(let t=1,r=0;r<n;t++,r+=ne){s.setUint32(e.length,t),a.update(i,0,i.length);let c=a.digest();const l=c.slice();for(let t=1;t<1e3;t++){a.update(c,0,ne),c=a.digest();for(let t=0;t<ne;t++)l[t]^=c[t]}o.set(l.subarray(0,Math.min(ne,n-r)),r)}return o}(t,e,0,r)}(r,n,2*a+2);return t.h=Ce(qe(o,0,a),qe(o,a,2*a)),t.m&&Be(t),qe(o,2*a)}function We(t,e){return e===O?ee(t):e}function qe(t,e,r){return t.subarray(e,r)}class Ze extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r,checkPasswordOnly:n}){super({start(){He(this,t,e,r)},transform(t,e){const r=this;if(r.password||r.rawPassword){const e=Ge(r,t.subarray(0,12));if(r.password=r.rawPassword=null,0!=(e[11]^r.passwordVerification))throw new Error(ge);t=t.subarray(12)}n?e.error(new Error(Ee)):e.enqueue(Ge(r,t))}})}}class Ve extends TransformStream{constructor({password:t,rawPassword:e,passwordVerification:r}){super({start(){He(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=Se(new Uint8Array(12));e[11]=r.passwordVerification,n=new Uint8Array(t.length+e.length),n.set(Ye(r,e),0),a=12}else n=new Uint8Array(t.length),a=0;n.set(Ye(r,t),a),e.enqueue(n)}})}}function He(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,{S:n,A:new Qt(n[0]),R:new Qt(n[2])}),r)for(let e=0;e<r.length;e++)Ke(t,r[e]);else for(let r=0;r<e.length;r++)Ke(t,e.charCodeAt(r))}(t,e,r)}function Ge(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Xe(t)^e[n],Ke(t,r[n]);return r}function Ye(t,e){const r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=Xe(t)^e[n],Ke(t,e[n]);return r}function Ke(t,e){let[,r]=t.S;t.A.append([e]);const n=~t.A.get();r=Je(Math.imul(Je(r+$e(n)),134775813)+1),t.R.append([r>>>24]);const a=~t.R.get();t.S=[n,r,a]}function Xe(t){const e=2|t.S[2];return $e(Math.imul(e,1^e)>>>8)}function $e(t){return 255&t}function Je(t){return 4294967295&t}function Qe(t){if(t instanceof ReadableStream)return t;const e=t.getReader();return new ReadableStream({async pull(t){try{const{value:r,done:n}=await e.read();n?t.close():t.enqueue(r)}catch(t){throw e.cancel(t).catch(()=>{}),t}},cancel:t=>e.cancel(t)})}function tr(t,e){t=Qe(t);const r=e?{type:e}:{};if(typeof Blob.prototype.stream!=I||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 er(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 rr="Invalid codec definition",nr="Reserved compression method",ar="Invalid codec module",or="Compression method not supported",ir=[0,8,9,99],sr=new Map,cr=new Map;function lr(t={}){const{compressionMethod:r,format:n,codecURI:a,CompressionStream:o,DecompressionStream:i,versionNeeded:s}=t;if(!Number.isInteger(r)||r<0||r>e||typeof n!=C||!n.length)throw new Error(rr);if(ir.includes(r))throw new Error(nr);const c=typeof o==I||typeof i==I;if(!(c||typeof a==C&&a.length))throw new Error(rr);sr.set(r,{compressionMethod:r,format:n,codecURI:a,versionNeeded:s}),c&&mr(n,{CompressionStream:o,DecompressionStream:i})}function dr(t){const e=sr.get(t);if(e){let r;sr.delete(t),sr.forEach(t=>r=r||t.format==e.format),r||cr.delete(e.format)}}function ur(t){return sr.get(t)}function fr(){return Array.from(sr.values(),t=>Object.assign({},t,cr.get(t.format)))}function pr(t){return cr.get(t)}function mr(t,e){const{CompressionStream:r,DecompressionStream:n}=e;if(typeof r!=I&&typeof n!=I)throw new Error(ar);cr.set(t,{CompressionStream:r,DecompressionStream:n})}const wr="Invalid uncompressed size",hr="Invalid compressed data",yr="Codec out of memory",br="Invalid CRC32",gr="deflate-raw",xr="deflate64-raw",Er="gzip",vr=[31,139,8];class Sr extends TransformStream{constructor(t,{chunkSize:e,CompressionStreamFallback:r,CompressionStream:n}){super({});const{compressed:a,encrypted:o,useCompressionStream:i,zipCrypto:s,computeCrc32:c,level:l,deflate64:d,format:u,compressionMethod:f,inputSize:p}=t,m=this;let w,h,y,b=super.readable;const g=u&&pr(u),x=Ur(i,n,r),E=c&&a&&!d&&!g&&(!o||s)&&Boolean(x);if(o&&!s||!c||E||(w=new te,b=Tr(b,w)),a)if(g)b=Cr(b,Fr(g.CompressionStream,u,{level:l,chunkSize:e,compressionMethod:f,uncompressedSize:p}));else if(E)y=new zr,b=Cr(b,new x(Er,{level:l,chunkSize:e})),b=Tr(b,y);else try{b=Ir(b,i,{level:l,chunkSize:e},n,r)}catch(t){if(!i&&r)throw Pr(t);let e;try{e=new n(Er)}catch{throw Pr(t)}b=Cr(b,e),b=Tr(b,new zr)}o&&(s?b=Tr(b,new Ve(t)):(h=new Me(t),b=Tr(b,h))),Or(m,b,()=>{o&&!s||!c||(m.crc32=E?y.crc32:new DataView(w.value.buffer).getUint32(0))})}}class zr 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=Bt(r,t));const o=a-8,i=Math.min(o,r.length);n.enqueue(Bt(r.subarray(0,i),t.subarray(0,o-i))),r=Bt(r.subarray(i),t.subarray(o-i))},flush(){const e=Wt(r);t.crc32=e.getUint32(0,!0),t.uncompressedSize=e.getUint32(4,!0)}}),t=this}}class kr extends TransformStream{constructor(t,{chunkSize:e,DecompressionStreamFallback:r,DecompressionStream:n}){super({});const{zipCrypto:a,encrypted:o,checkCrc32:i,crc32:s,compressed:c,useCompressionStream:l,deflate64:d,format:u,compressionMethod:f,rawBitFlag:p,outputSize:m}=t;let w,h,y,b=super.readable;if(o&&(a?b=Tr(b,new Ze(t)):(h=new je(t),b=Tr(b,h))),c){const t=new Set,a=u&&pr(u);let o;if(a)b=Cr(b,Fr(a.DecompressionStream,u,{chunkSize:e,compressionMethod:f,rawBitFlag:p,uncompressedSize:m}),t);else{const a=Ur(l,n,r);if(i&&!d&&s!==O&&m!==O&&a)try{o=new a(Er,{chunkSize:e})}catch{o=O}if(!o)try{b=Ir(b,l,{chunkSize:e,deflate64:d},n,r,t)}catch(t){if(d||m===O||!l&&r)throw Pr(t);try{o=new n(Er)}catch{throw Pr(t)}}}o?(y=!0,b=function(t,e,r,n,a){const o=e.writable.getWriter(),i=e.readable.getReader(),s=n===O?new Qt:O;let c,l,d=0,u=!1,f=!1;const p=new ReadableStream({start(t){l=t},pull(){h()},cancel:t=>(f=!0,h(),i.cancel(t))});return async function(){const e=t.getReader();try{const t=new Uint8Array(10);for(t.set(vr),await o.write(t);;){await w(),await o.ready;const{value:t,done:r}=await Nr(e,a);if(r)break;await o.write(t)}s&&await o.write(new Uint8Array(0));const i=new Uint8Array(8),c=Wt(i);c.setUint32(0,s?s.get():n,!0),c.setUint32(4,r,!0),u=!0,await o.write(i),await o.close()}catch(t){await jr(o,t),await Mr(e,t)}}(),async function(){try{for(;;){const{value:t,done:e}=await m();if(e)break;if(d+=t.length,d>r)throw new Error(wr);s&&s.append(t),l.enqueue(t)}f||(f=!0,l.close())}catch(t){!function(t){f||(f=!0,l.error(t),h())}(t),await Mr(i,t)}}(),p;function m(){return i.read().catch(t=>{if(u){if(!s)throw Lr(t,br);if(d!=r)throw Lr(t,wr);return{done:!0}}throw _r(t,a)})}function w(){if(!f&&l.desiredSize<=0)return new Promise(t=>c=t)}function h(){if(c){const t=c;c=O,t()}}}(b,o,m,s,t)):b=function(t,e){const r=t.getReader();return new ReadableStream({async pull(t){try{const{value:e,done:n}=await r.read();n?t.close():t.enqueue(e)}catch(t){throw await Mr(r,t),_r(t,e)}},cancel:t=>r.cancel(t)})}(b,t)}i&&!y&&(w=new te,b=Tr(b,w)),Or(this,b,()=>{if(w){const t=new DataView(w.value.buffer).getUint32(0,!1);if(s!=t)throw new Error(br)}})}}const Ar=new Map;function Rr(t,e){if(!t)return!1;let r=Ar.get(t);r||(r=new Map,Ar.set(t,r));let n=r.get(e);if(n===O){try{new t(e),n=!0}catch{n=!1}r.set(e,n)}return n}function Dr(t){return Rr(t,gr)}function Or(t,e,r){e=Tr(e,new TransformStream({flush:r})),Object.defineProperty(t,"readable",{get:()=>e})}function Fr(t,e,r){if(!t)throw new Error(or);return new t(e,r)}function Ur(t,e,r){return t&&e?e:r&&r.requiresModule?r:void 0}function Ir(t,e,r,n,a,o){const i=e&&n?n:a||n,s=r.deflate64?xr:gr;let c;try{c=new i(s,r)}catch(t){if(!e||!a||i==a)throw t;c=new a(s,r)}return Cr(t,c,o)}function Tr(t,e){return Qe(t).pipeThrough(e)}function Cr(t,e,r){const n=e.writable.getWriter(),a=t.getReader();return async function(){try{for(;;){await n.ready;const t=await Nr(a,r);if(t.done){await n.close();break}await n.write(t.value)}}catch(t){await jr(n,t),await Mr(a,t)}}(),e.readable}async function jr(t,e){try{await t.abort(e)}catch{}}async function Mr(t,e){try{await t.cancel(e)}catch{}}function Nr(t,e){const r=t.read();return e?r.catch(t=>{throw e.add(t),t}):r}function _r(t,e){return e.has(t)?t:Lr(t,Br(t)?yr:hr)}function Pr(t){return Br(t)?Lr(t,yr):t}function Br(t){return qt(t)&&"Z_MEM_ERROR"==t.code}function Lr(t,e){const r=new Error(e);return r.cause=t,r}const Wr="data",qr="deflate",Zr="inflate";class Vr extends TransformStream{constructor(t,e){super({});const r=this,{codecType:n}=t;let a;n.startsWith(qr)?a=Sr:n.startsWith(Zr)&&(a=kr),r.outputSize=0;let o=0;const i=new a(t,e),s=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!==O&&r.outputSize>t.outputSize))throw new Error(wr)},flush(){const{crc32:t}=i;Object.assign(r,{crc32:t,inputSize:o})}});Object.defineProperty(r,"readable",{get:()=>s.pipeThrough(c).pipeThrough(i).pipeThrough(l)})}}class Hr extends TransformStream{constructor(t){const e=[];let r=0,n=0;function a(){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(o,i){for(e.push(o),r+=o.length;r>t;)n+=t,i.enqueue(a())},flush(t){r&&(n+=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)))}}),Object.defineProperty(this,"outputSize",{get:()=>n})}}const Gr="Worker startup timeout";let Yr,Kr,Xr,$r=()=>{};async function Jr(t){const{CompressionStream:e,CompressionStreamFallback:r}=t;return!(!r||r.requiresModule)||!(!Dr(e)&&(n=e,!Rr(n,Er)))||!!r&&await Qr(t);var n}async function Qr(t){if($r)try{return await $r(t),!0}catch{}return!1}function tn(t){t.createWorker?Kr=!0:Yr=!1}class en{constructor(t,{readable:e,writable:r},n,a){const{options:o,config:i,D:s,useWebWorkers:c,transferStreams:l,workerURI:d}=n;let{createWorker:u}=n;const{signal:f}=s;return Kr&&(u=O),Object.assign(t,{O:!0,F:(t.F||0)+1,readable:e.pipeThrough(new Hr(It(i))).pipeThrough(new rn(s),{signal:f}),writable:r,options:Object.assign({},o),U:n,workerURI:d,createWorker:u,transferStreams:l,terminate:()=>new Promise(e=>{const{I:r,O:n}=t;n?(t.T=t.T||[],t.T.push(e)):(r&&(r.terminate(),t.I=null),e()),t.C=null}),j(){if(t.O){const{T:e,I:r}=t;e&&(t.T=null,r&&(t.M=!0,r.terminate())),t.O=!1;const n=a(t);e&&e.forEach(t=>t(n))}}}),Yr===O&&(Yr=typeof Worker!=U),(c&&Xr&&(Yr&&d||u)?Xr:an)(t,i)}}class rn extends TransformStream{constructor({onstart:t,onprogress:e,size:r,onend:n}){let a=0;super({async start(){t&&await nn(t,r)},async transform(t,n){a+=t.length,e&&await nn(e,a,r),n.enqueue(t)},async flush(){n&&await nn(n,a)}})}}async function nn(t,...e){try{await t(...e)}catch{}}function an(t,e){return{run:()=>on(t,e)}}async function on({options:t,readable:e,writable:r,j:n,U:a},o){let i,s,c;try{if(t.compressed&&!t.format){const e=t.codecType.startsWith(qr),r=e?o.CompressionStreamFallback:o.DecompressionStreamFallback,n=e?o.CompressionStream:o.DecompressionStream;t.useCompressionStream?r&&r.requiresModule&&!Dr(n)&&await l():await l()||r&&!r.requiresModule||(t.useCompressionStream=!0)}t.encrypted&&!t.zipCrypto&&await l(),i=new Vr(t,o),s=new Hr(It(o));const{signal:n}=a.D;await e.pipeThrough(i).pipeThrough(s).pipeTo(r,{preventClose:!0,preventAbort:!0,signal:n});const{crc32:c,inputSize:d,outputSize:u}=i;return{crc32:c,inputSize:d,outputSize:u}}catch(t){if(i){const e=s?s.outputSize:0;if(a.outputSize=e,qt(t))try{t.outputSize=e}catch{}}throw t}finally{n()}function l(){return c||(c=Qr(o)),c}}const sn={type:"module"},cn="error",ln="abort";let dn,un,fn,pn=!0;try{pn=typeof structuredClone==I&&structuredClone(new DOMException("","AbortError")).code!==O}catch{}var mn;function wn(t){const{reader:e}=t;e&&e.releaseLock(),t.reader=null,t.writer=null}function hn(t){const{I:e}=t;if(e)try{e.terminate()}catch{}t.C=null}function yn(t,e,r,n,a=!0){const{createWorker:o}=r;let i,s,c;if(o)i=o();else if(un===O||dn!==t){const o=typeof t==I;s=o?t(a):t;const l=s.startsWith("data:"),d=s.startsWith("blob:");if(l||d){n===O&&(n=!1),n&&(c=sn);try{i=new Worker(s,c)}catch(a){if(d)try{URL.revokeObjectURL(s)}catch{}if(o&&d)return yn(t,e,r,n,!1);if(n)throw a;return yn(t,e,r,!0,!1)}}else{n===O&&(n=!0),n&&(c=sn);try{s=new URL(s,e)}catch{}try{i=new Worker(s,c)}catch(o){if(n)return yn(t,e,r,!1,a);throw o}}dn=t,un=s,fn=c}else i=new Worker(un,fn);return i.addEventListener("message",t=>{r.N=!0,bn(r),async function({data:t},e){const{type:r,value:n,messageId:a,result:o,error:i,errorValue:s}=t,{reader:c,writer:l,_:d,P:u,j:f,F:p}=e,m=()=>e.F!=p;try{if(i)w(function(t,e){const{message:r,stack:n,code:a,name:o,outputSize:i,cause:s,codecImportFailed:c}=t;let l;if(l=e?e.value:Object.assign(new Error(r),{stack:n,code:a,name:o}),qt(l))try{i!==O&&(l.outputSize=i),c&&(l.codecImportFailed=!0),s&&(qt(l.cause)||(l.cause=Object.assign(new Error(s.message),{name:s.name})),s.code!==O&&l.cause.code!==s.code&&(l.cause.code=s.code)),e&&(l.name!==o&&(l.name=o),l.code!==a&&(l.code=a))}catch{}return l}(i,s));else{if("pull"==r){const{value:t,done:r}=await c.read();m()||xn({type:Wr,value:t,done:r,messageId:a},e)}if(r==Wr){const t=new Uint8Array(n);await l.ready,await l.write(t),m()||xn({type:"ack",messageId:a},e)}"close"==r&&function(t){m()||(d(t),h(),f())}(o)}}catch(i){m()||(hn(e),w(i))}function w(t){m()||(u(t),h(),qt(t)&&t.codecImportFailed||f())}function h(){l&&l.releaseLock()}}(t,r)}),i.addEventListener(cn,t=>gn(t,r)),i.addEventListener("messageerror",t=>gn(t,r)),i}function bn(t){const{B:e}=t;e&&(clearTimeout(e),t.B=null)}function gn(t,e){t.preventDefault&&t.preventDefault(),bn(e);const{N:r,P:n,writer:a,j:o}=e;hn(e),r||(e.I=null);let i=t.error||new Error(t.message||cn);r||(i=Object.assign(new Error(i.message||cn),{L:!0}),e.W=i),n&&(n(i),a&&a.releaseLock(),r&&o())}function xn(t,{I:e,writer:r,transferStreams:n,N:a}){try{const{value:r,readable:o,writable:i}=t,s=[];if(r&&(t.value=Lt(r),s.push(t.value.buffer)),n&&pn&&a?(o&&s.push(o),i&&s.push(i)):t.readable=t.writable=null,s.length)try{return e.postMessage(t,s),!0}catch{pn=!1,t.readable=t.writable=null,e.postMessage(t)}else e.postMessage(t)}catch(t){throw r&&r.releaseLock(),t}}mn=function(t,e){const{baseURI:r,chunkSize:n,workerStartupTimeout:a}=e;let{wasmURI:o}=e;if(!t.C){let i;typeof o==I&&(o=o());try{i=yn(t.workerURI,r,t)}catch{return tn(t),an(t,e)}Object.assign(t,{I:i,N:!1,M:!1,W:null,C:{run:async()=>{try{return await async function(t,e){if(!t.I){const{W:e}=t;t.W=null;const r=e||new Error(Gr);throw r.L=!0,r}let r,n;const a=new Promise((e,a)=>{r=e,n=e=>{const{outputSize:r,U:n}=t;if(n.outputSize=r,qt(e))try{e.outputSize=r}catch{}a(e)}});Object.assign(t,{reader:null,writer:null,outputSize:0,Z:!1,V:null,_:r,P:n,result:a});const{readable:o,options:i}=t,{writable:s,closed:c,H:l}=function(t,e){const r=new AbortController;let n;const{writable:a,readable:o}=new TransformStream({transform(t,r){e.outputSize+=t.length,r.enqueue(t)}}),i=o.pipeTo(t,{preventClose:!0,preventAbort:!0,signal:r.signal});i.catch(t=>{n||Object.assign(e,{Z:!0,V:t})});const{signal:s}=e.U.D;if(s){const t=()=>r.abort(s.reason),e=()=>s.removeEventListener(ln,t);s.addEventListener(ln,t),i.then(e,e)}return{writable:a,closed:i,H:()=>{n=!0,r.abort()}}}(t.writable,t);let d;try{d=xn({type:"start",options:i,config:e,readable:o,writable:s},t)}catch(e){l();try{await c}catch{}throw t.j(),e}d||Object.assign(t,{reader:o.getReader(),writer:s.getWriter()});const{workerStartupTimeout:u}=e;!t.N&&Number.isFinite(u)&&u>=0&&(t.B=setTimeout(()=>function(t){if(t.B=null,t.N)return;const{P:e,writer:r}=t;if(hn(t),t.I=null,e){const t=new Error(Gr);t.L=!0,e(t),r&&r.releaseLock()}}(t),u));try{const t=await a;return await f(),await c,t}catch(e){await f(),l();try{await c}catch{}const{outputSize:r,U:n,Z:a,V:o}=t;n.outputSize=r;const i=qt(e)&&(e.codecImportFailed||e.L),s=a&&!i?o:e;if(qt(s))try{s.outputSize=r}catch{}throw s}async function f(){if(!d&&!s.locked)try{await s.getWriter().close()}catch{}}}(t,{chunkSize:n,wasmURI:o,baseURI:r,workerStartupTimeout:a})}catch(r){if(r&&r.L)return tn(t),wn(t),on(t,e);if(r&&r.codecImportFailed){if(t.reader)return wn(t),on(t,e);t.j()}throw r}}}})}return t.C},Xr=mn;let En=[];const vn=[];let Sn,zn,kn=0;async function An(t,e){const{options:r,config:n}=e,{transferStreams:a,useWebWorkers:o,useCompressionStream:i,compressed:s,checkCrc32:c,computeCrc32:l,encrypted:d,format:u,codecURI:f}=r,{workerURI:p,createWorker:m,maxWorkers:w}=n;u&&(f&&(r.codecURI=function(t,e){try{return new URL(t,e).toString()}catch{return t}}(f,n.baseURI)),await async function(t,e){!cr.has(t)&&e&&mr(t,await(import(/* webpackIgnore: true */ /* @vite-ignore */e)))}(u,r.codecURI)),e.transferStreams=!u&&(a||a===O&&n.transferStreams);const h=!(s||c||l||d),y=u===O||Boolean(r.codecURI);return e.useWebWorkers=!h&&y&&(o||o===O&&n.useWebWorkers),e.workerURI=e.useWebWorkers&&p?p:O,e.createWorker=e.useWebWorkers&&m?m:O,r.useCompressionStream=i||i===O&&n.useCompressionStream,(await async function(){const r=En.find(t=>!t.O);if(r)return Tn(r),new en(r,t,e,b);if(En.length<w){const r={G:kn};return kn++,En.push(r),new en(r,t,e,b)}return new Promise(r=>{vn.push({resolve:r,stream:t,U:e}),zn=n.workerStarvationTimeout,Rn()})}()).run();function b(t){if(Dn(),t.M)return t.M=!1,Fn();if(vn.length){const[{resolve:e,stream:r,U:n}]=vn.splice(0,1);e(new en(t,r,n,b)),Rn()}else t.I?(Tn(t),function(t,e){const{config:r}=e,{terminateWorkerTimeout:n}=r;Number.isFinite(n)&&n>=0&&(t.Y=setTimeout(async()=>{En=En.filter(e=>e!=t);try{await t.terminate()}catch{}},n))}(t,e)):En=En.filter(e=>e!=t)}}function Rn(){!Sn&&vn.length&&Number.isFinite(zn)&&zn>=0&&(Sn=setTimeout(On,zn))}function Dn(){Sn&&(clearTimeout(Sn),Sn=null)}function On(){if(Sn=null,vn.length){const[{resolve:t,stream:e,U:r}]=vn.splice(0,1);t(new en({},e,Un(r),In)),Rn()}}function Fn(){const t=vn.splice(0).map(({resolve:t,stream:e,U:r})=>new Promise(n=>{t(new en({},e,Un(r),()=>{In(),n()}))}));return Dn(),Promise.all(t)}function Un(t){return Object.assign({},t,{useWebWorkers:!1,workerURI:O,createWorker:O})}function In(){Dn(),Rn()}function Tn(t){const{Y:e}=t;e&&(clearTimeout(e),t.Y=null)}const Cn="\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 jn(t,e){return Nn(t,e,!0)}function Mn(t){if(!t.some(t=>t>127))return!1;try{return new TextDecoder("utf-8",{fatal:!0}).decode(t),!0}catch{return!1}}function Nn(t,e,r){return e&&"cp437"==e.trim().toLowerCase()?function(t){let e="";for(let r=0;r<t.length;r++)e+=Cn[t[r]];return e}(t):new TextDecoder(e,{ignoreBOM:r}).decode(t)}const _n="HTTP error ",Pn="HTTP Range not supported",Bn="HTTP resource changed",Ln="Writer iterator completed too soon",Wn="Writer not initialized",qn="Invalid writer (size must be writable)",Zn="Content-Range",Vn="Range",Hn="GET",Gn="bytes",Yn=16777216,Kn="writable",Xn=Symbol();class $n{constructor(){this.size=0}init(){this.initialized=!0}}class Jn extends $n{get readable(){return this.createReadable()}createReadable({offset:t=0,size:e,chunkSize:r=It(Ut())}={}){const n=this;let a=0;return r=Tt(r),new ReadableStream({async pull(o){const i=e===O?r:Math.min(r,e-a),s=await _a(n,t+a,i);s.length&&(o.enqueue(s),a+=s.length),(e!==O&&a>=e||!s.length&&i)&&o.close()}})}}class Qn extends $n{constructor(){super();const t=this,e=new WritableStream({write(e){if(!t.initialized)throw new Error(Wn);return t.writeUint8Array(Lt(e))}});Object.defineProperty(t,Kn,{get:()=>e})}writeUint8Array(){}}class ta extends Jn{constructor(t){super();let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;Object.assign(this,{K:t,X:r,size:Math.floor(.75*(e-r))})}readUint8Array(t,e){const{X:r,K:n}=this,a=new Uint8Array(e),o=4*Math.floor(t/3),i=atob(n.substring(o+r,4*Math.ceil((t+e)/3)+r)),s=t-3*Math.floor(o/4);let c=0;for(let t=s;t<s+e&&t<i.length;t++)a[t-s]=i.charCodeAt(t),c++;return c<a.length?a.subarray(0,c):a}}class ea extends Qn{constructor(t){super(),Object.assign(this,{contentType:t,data:"data:"+(t||"")+";base64,",$:""})}writeUint8Array(t){const e=this;let r,n=e.$;const a=e.$.length;for(e.$="",r=0;r<3*Math.floor((a+t.length)/3)-a;r++)n+=String.fromCharCode(t[r]);for(;r<t.length;r++)e.$+=String.fromCharCode(t[r]);n.length>2?e.data+=btoa(n):e.$=n+e.$}getData(){return this.data+btoa(this.$)}}let ra,na;class aa extends Jn{constructor(t){super(),Object.assign(this,{J:t,size:t.size}),na||(na=(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();ra=1==e}catch{ra=!1}})())}createReadable(t){const{J:e,size:r}=this,{offset:n=0,size:a=r-n}=t||{};if(typeof e.stream==I){if(!n&&a>=r)return Qe(e.stream());if(ra)return Qe(e.slice(n,n+a).stream())}return super.createReadable(t)}async readUint8Array(t,e){const r=this,n=t+e,a=!t&&n>=r.size?r.J:r.J.slice(t,n);let o=await a.arrayBuffer();return o.byteLength>e&&(o=o.slice(t,n)),new Uint8Array(o)}}class oa extends $n{constructor(t){super();const e=this,r=new TransformStream;Object.defineProperty(e,Kn,{get:()=>r.writable}),e.contentType=t,e.et=tr(r.readable,t),e.et.catch(()=>{})}getData(){return this.et}}class ia extends aa{constructor(t){super(new Blob([t],{type:"text/plain"}))}}function sa(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 ca extends oa{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 Nn(t,e,!1)}(new Uint8Array(await r.arrayBuffer()),t)}}class la extends Jn{constructor(t,e){super(),ua(this,t,e)}async init(){await fa(this,ka,Ea),super.init()}createReadable(t){const e=this,{useRangeHeader:r,forceRangeRequests:n,size:a,ot:o}=e;if((r||n)&&a!==O){const{offset:r=0,size:n=a-r}=t||{},i=o&&r>=a-o.length;if(n>0&&r<a&&!i)return function(t,e,r){let n,a=e,o=0,i=r;return new ReadableStream({start:()=>s(),async pull(t){n||await s();const{value:e,done:r}=await n.read();if(r)throw new Error(Pn);const a=e.length>o?e.subarray(0,o):e;o-=a.length,i-=a.length,a.length&&t.enqueue(a),o||(await async function(){const t=n;n=O,await t.cancel()}(),i||t.close())},cancel:t=>n&&n.cancel(t)});async function s(){const e=Math.min(t.maximumRangeSize,i),r=await ka(Hn,t,ga(t,a,e));if(206!=r.status)throw new Error(Pn);const s=ma(r);if(s!==O&&s!=a)throw new Error(Pn);ba(t,r),ya(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 pa(this,t,e,ka,Ea)}}class da extends Jn{constructor(t,e){super(),ua(this,t,e)}async init(){await fa(this,Aa,va),super.init()}readUint8Array(t,e){return pa(this,t,e,Aa,va)}}function ua(t,e,r){const{preventHeadRequest:n,useRangeHeader:a,forceRangeRequests:o,combineSizeEocd:i,checkResourceChanges:s=!0,maximumRangeSize:c=Yn,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:i,checkResourceChanges:s,maximumRangeSize:c,fetch:l})}async function fa(t,e,r){const{url:n,preventHeadRequest:a,useRangeHeader:o,forceRangeRequests:i,combineSizeEocd:s}=t;if(function(t){const{baseURI:e}=Ut(),{protocol:r}=new URL(t,e);return"http:"==r||"https:"==r}(n)&&(o||i)&&(typeof a==U||a)){const n=await e(Hn,t,ga(t,s?-65557:void 0)),a=n.headers.get("Accept-Ranges");if(!(i||a&&a.toLowerCase()==Gn))throw new Error(Pn);{let a;s&&206==n.status&&(a=new Uint8Array(await n.arrayBuffer())),ya(t,n);const o=wa(n);o===O?await za(t,e,r):t.size=o,a&&a.length&&ma(n)===t.size-a.length&&(t.ot=a)}}else await za(t,e,r)}async function pa(t,e,r,n,a){const{useRangeHeader:o,forceRangeRequests:i,ot:s,size:c,options:l}=t;if(o||i){if(e>=c||0===r)return M;{if(e+r>c&&(r=c-e),s&&e>=c-s.length){const t=e-(c-s.length);return s.slice(t,t+r)}const a=await n(Hn,t,ga(t,e,r));if(206!=a.status)throw new Error(Pn);const o=ma(a);if(o!==O&&o!=e)throw new Error(Pn);ba(t,a),ya(t,a);const i=new Uint8Array(await a.arrayBuffer());if(i.length!=r)throw new Error(Pn);return i}}{const{data:n}=t;return n||await a(t,l),t.data.subarray(e,e+r)}}function ma(t){const e=t.headers.get(Zn);if(e){const t=Number(e.trim().split(/[\s-]+/)[1]);if(!Number.isNaN(t))return t}}function wa(t){const e=t.headers.get(Zn);if(e){const t=e.trim().split(/\s*\/\s*/)[1];if(t&&"*"!=t){const e=Number(t);if(!Number.isNaN(e))return e}}}function ha({headers:t}){return{it:t.get("Etag")||O,lastModified:t.get("Last-Modified")||O}}function ya(t,e){const{checkResourceChanges:r,st:n}=t;r&&!n&&206==e.status&&(t.st=ha(e))}function ba(t,e){const{checkResourceChanges:r,st:n,size:a}=t;if(r){const t=wa(e);if(t!==O&&a!==O&&t!=a)throw new Error(Bn);if(n){const t=ha(e);if(Object.entries(n).some(([e,r])=>r!==O&&t[e]!==O&&r!=t[e]))throw new Error(Bn)}}}function ga(t,e=0,r=1){return Object.assign({},xa(t),{[Vn]:Gn+"="+(e<0?e:e+"-"+(e+r-1))})}function xa({options:t}){const{headers:e}=t;if(e)return Symbol.iterator in e?Object.fromEntries(e):e}async function Ea(t){await Sa(t,ka)}async function va(t){await Sa(t,Aa)}async function Sa(t,e){const r=await e(Hn,t,xa(t));t.data=new Uint8Array(await r.arrayBuffer()),t.size=t.data.length}async function za(t,e,r){if(t.preventHeadRequest)await r(t,t.options);else{const n=await e("HEAD",t,xa(t)),a=n.headers.get("Content-Length");a&&!n.headers.get("Content-Encoding")?t.size=Number(a):await r(t,t.options)}}async function ka(t,{fetch:e=fetch,options:r,url:n},a){const o=await e(n,Object.assign({},r,{method:t,headers:a}));if(o.status>=200&&o.status<=299)return o;throw 416==o.status?new Error(Pn):new Error(_n+(o.statusText||o.status))}function Aa(t,{url:e},r){return new Promise((n,a)=>{const o=new XMLHttpRequest;if(o.addEventListener("load",()=>{if(o.status>=200&&o.status<=299){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(Pn):new Error(_n+(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 Ra extends Jn{constructor(t,e={}){super(),Object.assign(this,{url:t,reader:e.useXHR&&!e.fetch?new da(t,e):new la(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 Da extends Ra{constructor(t,e={}){super(t,Object.assign({},e,{useRangeHeader:!0}))}}class Oa extends Jn{constructor(t){super(),t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),Object.assign(this,{ct:t,size:t.length})}readUint8Array(t,e){return this.ct.slice(t,t+e)}}class Fa extends Qn{constructor(t){super(),this.lt=t||262144}init(t=0){Object.assign(this,{offset:0,ct:new Uint8Array(t>0?t:this.lt)}),super.init()}writeUint8Array(t){const e=this,r=e.offset+t.length;if(r>e.ct.length){let t=e.ct.length?2*e.ct.length:e.lt;for(;t<r;)t*=2;const n=e.ct;e.ct=new Uint8Array(t),e.ct.set(n)}e.ct.set(t,e.offset),e.offset+=t.length}getData(){return this.offset===this.ct.length?this.ct:this.ct.slice(0,this.offset)}}class Ua extends Jn{constructor(t){super(),this.ut=t}async init(){const t=this;t.ft=0;const e=t.ut=await Promise.all(t.ut.map(Na));t.wt=e.map(e=>{const r=t.size;return t.size+=e.size,r}),super.init()}ht(t){const{wt:e,size:r}=this,n=e[t];return n===O?r:n}async readUint8Array(t,e){const r=this,{ut:n}=this;let a,o=0,i=t;for(;n[o]&&i>=n[o].size;)i-=n[o].size,o++;const s=n[o];if(s){const n=s.size;if(i+e<=n)a=await _a(s,i,e);else{const o=n-i;a=Bt(await _a(s,i,o),await r.readUint8Array(t+o,e-o))}}else a=M;return r.ft=Math.max(o,r.ft),a}}class Ia extends $n{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 i=new WritableStream({async write(e){if(e===Xn)return void(o&&await c());const{availableSize:i}=r;if(o)e.length>=i?(await s(e.subarray(0,i)),await c(),e.length>i&&await this.write(e.subarray(i))):await s(e);else{const{value:i,done:s}=await t.next();if(s&&!i)throw new Error(Ln);n=i,n.size=0,n.maxSize&&(r.maxSize=n.maxSize),r.availableSize=r.maxSize,await Ma(n),a=i.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 s(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,Kn,{get:()=>i})}async closeDisk(){const t=this.writable.getWriter();try{await t.ready,await t.write(Xn)}finally{t.releaseLock()}}}class Ta{constructor(t){return Array.isArray(t)&&(t=new Ua(t)),(t instanceof ReadableStream||typeof t.getReader==I)&&(t={readable:Qe(t)}),t}}class Ca{constructor(t){t.writable===O&&typeof t.next==I&&(t=new Ia(t)),(t instanceof WritableStream||typeof t.getWriter==I)&&(t={writable:er(t)});try{t.size=t.size===O?0:t.size}catch{throw new Error(qn)}return t}}function ja(t){return Boolean(t&&t.getData)}async function Ma(t,e){if(!t.init||t.initialized)return Promise.resolve();await t.init(e)}async function Na(t){return t=new Ta(t),await Ma(t),t.size!==O&&t.readUint8Array||(t=new aa(await tr(t.readable)),await Ma(t)),t}function _a(t,e,r){return t.readUint8Array(e,r)}function Pa(t,e){return t.createReadable?t.createReadable(e):t.readUint8Array?Jn.prototype.createReadable.call(t,e):t.readable}function Ba(t,e,r){if(!t.some(t=>t.reason==e)){const n={reason:e};r!==O&&(n.filename=r),t.push(n)}}const La="filename",Wa="rawFilename",qa="comment",Za="rawComment",Va="uncompressedSize",Ha="compressedSize",Ga="offset",Ya="diskNumberStart",Ka="lastModDate",Xa="rawLastModDate",$a="lastAccessDate",Ja="rawLastAccessDate",Qa="creationDate",to="rawCreationDate",eo="internalFileAttributes",ro="externalFileAttributes",no="msdosAttributesRaw",ao="msdosAttributes",oo="msDosCompatible",io="zip64",so="encrypted",co="version",lo="versionMadeBy",uo="zipCrypto",fo="directory",po="executable",mo="compressionMethod",wo="signature",ho="extraField",yo="unixMode",bo="setuid",go="setgid",xo="sticky",Eo=[La,Wa,Va,Ha,Ka,Xa,qa,Za,$a,Ja,Qa,to,Ga,Ya,eo,ro,no,ao,oo,io,so,co,lo,uo,fo,po,"symlink",mo,wo,"crc32",ho,"extraFieldUnix","extraFieldInfoZip","extraFieldUnixType1","extraFieldPkwareUnix","uid","gid",yo,"unixExternalUpper",bo,go,xo,"bitFlag","rawBitFlag","filenameLength","extraFieldLength","filenameUTF8","commentUTF8","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp","extraFieldUSDZ"];class vo{constructor(t){Eo.forEach(e=>this[e]=t[e])}}const So=new Set([1,w,10,h,28789,25461,y,b,g,22613,13]);function zo(t,e,r){return t?e?12:16+4*r:0}const ko="File format is not recognized",Ao="End of central directory not found",Ro="End of Zip64 central directory locator not found",Do="Central directory header not found",Oo="Local file header not found",Fo="Zip64 extra field not found",Uo="File contains encrypted entry",Io="Encryption method not supported",To="Split zip file",Co="Overlapping entry found",jo="Entry data out of bounds",Mo="Ambiguous archive",No="Encrypted central directory is not supported",_o="Unsafe filename",Po="Invalid strictness (must be 'strict', 'balanced' or 'tolerant')",Bo="Invalid filenameValidation (must be 'strict', 'balanced' or 'tolerant')",Lo="Invalid maxAppendedDataSize (must be a number greater than or equal to 0)",Wo="64-bit value exceeds Number.MAX_SAFE_INTEGER",qo="unsorted central directory",Zo="unknown version needed to extract",Vo="compressed patched data",Ho="malformed extra field",Go="unknown zip64 extensible data",Yo="wrapped entries count",Ko="appended data",Xo="prepended data",$o="prepended central directory",Jo="trailing central directory data",Qo="duplicate filename",ti="mismatched zip64 end of central directory record",ei="multiple end of central directory records",ri="mismatched local file header (filename)",ni="mismatched local file header (general purpose bit flag)",ai="mismatched local file header (compression method)",oi="mismatched local file header (crc32 or sizes)",ii=/^[a-zA-Z]:/,si=/(^|[\\/])\.\.([\\/]|$)/,ci="utf-8",li="cp437",di=[[Va,t],[Ha,t],[Ga,t],[Ya,e]],ui={[e]:{yt:Ki,bytes:4},[t]:{yt:Xi,bytes:8}},fi=BigInt(Number.MAX_SAFE_INTEGER);class pi{constructor(t,e={}){Object.assign(this,{reader:new Ta(t),options:e,bt:{gt:new Set,xt:[],Et:[]}})}async*getEntriesGenerator(n={}){const o=this;let{reader:i}=o;if(await Ma(i),i.size!==O&&i.readUint8Array||(i=new aa(await tr(i.readable)),await Ma(i)),i.size<f)throw new Error(ko);const c=o.warnings=[],w=Ii(n,o.options),h=w==rt,y=w!=at,b=ji(qi(o,n,$),w),g=function(t,e){if(t===O)return e;if(!Ui(t))throw new Error(Bo);return t}(qi(o,n,"filenameValidation"),w),x=qi(o,n,"normalizeFilename"),{vt:A,St:R}=await Mi(i,y,b);if(!A)throw await async function(t){return await Fi(t)==a}(i)?new Error(To):new Error(Ao);y&&R>1&&Wi(ei);const D=Wt(A);let F=Ki(D,12),U=Ki(D,16);const I=A.offset,T=Yi(D,20),C=I+f+T,j=i.size-C;j>b&&Wi(Ko),j>0&&Ba(c,Ko);let N=Yi(D,4);const _=i.ft||0;let P,B,L,W,q,Z=Yi(D,6),V=Yi(D,10),H=0,G=m;const Y=U==t||F==t||V==e||Z==e;if(U!=t&&Z!=e&&(U+=Oi(i,Z)),Y){const r=A.offset>=p?await _a(i,A.offset-p,p):M,n=Wt(r);if(r.length==p&&Ki(n,0)==d){U=Oi(i,Ki(n,4))+Xi(n,8);let r=await _a(i,U,m),a=Wt(r);const o=A.offset-p-m;if((r.length<m||Ki(a,0)!=l)&&U!=o&&o>=0){const t=U;U=o,U>t&&(H=U-t),r=await _a(i,U,m),a=Wt(r)}if(r.length<m||Ki(a,0)!=l)throw new Error(Ro);if(L=!0,W=Xi(a,4)>44,W){const t=Math.min(Xi(a,4)-44,i.size-U-m);t>0&&(G+=t,q=function(t){const e={rawExtensibleData:t};if(t.length>=28){const r=Wt(t),n=Yi(r,26);Object.assign(e,{compressionMethod:Yi(r,0),compressedSize:Xi(r,2),uncompressedSize:Xi(r,10),encryptionAlgorithm:Yi(r,18),bitLength:Yi(r,20),flags:Yi(r,22),hashAlgorithm:Yi(r,24),hashData:t.subarray(28,28+n)})}return e}(await _a(i,U+m,t)))}N==e?N=Ki(a,16):N!=Ki(a,16)&&Li(h,c,ti),Z==e?Z=Ki(a,20):Z!=Ki(a,20)&&Li(h,c,ti),V==e?V=Xi(a,32):V!=Xi(a,32)&&Li(h,c,ti),F==t?F=Xi(a,40):F!=Xi(a,40)&&Li(h,c,ti),U=Oi(i,Z)+Xi(a,48)+H}}let K=F;const X=A.offset-(L?G+p:0);if(U>=i.size&&(H=i.size-U-F-f,U=i.size-F-f),_!=N)throw new Error(To);if(U<0)throw new Error(ko);let J=0,Q=await _a(i,U,F),nt=Wt(Q);if(F){if(Q.length<4)throw new Error(ko);const t=X-F;if(U!=t&&Z==N){const e=Ki(nt,J)==s||Boolean(q&&q.compressedSize)||yi(nt);let r=!e;if(!r&&t>=0&&t+4<=i.size&&(r=Ki(Wt(await _a(i,t,4)),0)==s),r){const r=U;U=t,U>r&&(H+=U-r,P=e),Q=await _a(i,U,F),nt=Wt(Q)}}}const ot=X-U;if(F!=ot&&ot>=0&&Z==N&&(F=ot,Q=await _a(i,U,F),nt=Wt(Q)),U<0||U>=i.size)throw new Error(ko);o.directoryOffset=U,o.directoryLength=K;const it=Zi(o,n,"decryptCentralDirectory");let st,ct;if(it&&V&&Q.length>=4&&Ki(nt,0)!=s&&(W||yi(nt))){const t=function(t,e,r){const n=t&&t.compressedSize?t.compressedSize:e;return n>0&&n<=r?n:r}(q,K,Q.length);ct=Q.subarray(t),Q=await it(Q.subarray(0,t),q),nt=Wt(Q),K=Q.length,st=!0}q&&!st&&(Q.length<4||Ki(nt,0)==s)&&Ba(c,Go),B=U;const lt=qi(o,n,"filenameEncoding"),dt=qi(o,n,"commentEncoding"),ut=new Set;let ft,pt=-1;const mt=!h&&!L;!V&&mt&&(V=bi(nt,Q,J),V&&Ba(c,Yo));for(let t=0;t<V;t++){const a=new hi(i,o.options);if(J+u>Q.length||Ki(nt,J)!=s){if(0==t&&!st&&(W||yi(nt)))throw new Error(No);throw new Error(Do)}xi(a,nt,J+6);const l=Boolean(a.bitFlag.languageEncodingFlag),d=J+u,f=d+a.filenameLength+a.extraFieldLength,p=Yi(nt,J+4),m=!(p>>8),w=p>>8==3,h=Yi(nt,J+32),y=f+h,b=new Uint8Array(Q.subarray(d,y)),A=b.subarray(0,a.filenameLength),R=b.subarray(a.filenameLength+a.extraFieldLength),D=l||!lt&&Mn(A),F=l||!dt&&Mn(R),U=Ki(nt,J+38),I=U&r,T={readOnly:Boolean(1&I),hidden:Boolean(2&I),system:Boolean(4&I),directory:Boolean(16&I),archive:Boolean(32&I)},C=Ki(nt,J+42),j=Zi(o,n,"decodeText")||jn,M=D?ci:lt||li,N=F?ci:dt||li;let _=j(A,M,tt);if(_===O&&(_=jn(A,M)),x){const t=x(_);t!==O&&(_=t)}if(Ci(_,g)){const t=new Error(_o);throw t.filename=_,t}let P=j(R,N,et);P===O&&(P=jn(R,N)),Object.assign(a,{index:t,zt:st,versionMadeBy:p,msDosCompatible:m,zip64:!1,compressedSize:0,uncompressedSize:0,kt:h,offset:C,diskNumberStart:Yi(nt,J+34),internalFileAttributes:Yi(nt,J+36),externalFileAttributes:U,msdosAttributesRaw:I,msdosAttributes:T,rawFilename:A,filenameUTF8:D,commentUTF8:F,rawExtraField:b.subarray(a.filenameLength,a.filenameLength+a.extraFieldLength),rawComment:R,filename:_,comment:P}),Ei(a,a,nt,J+6)&&Ba(c,Ho,_),a.offset+=H;const L=Oi(i,a.diskNumberStart)+a.offset;B=Math.min(L,B),L<pt&&Ba(c,qo,_),pt=L,(a.version&r)>63&&Ba(c,Zo,_),32&~a.rawBitFlag||Ba(c,Vo,_),ut.has(a.filename)&&(ft=!0),ut.add(a.filename);const q=a.externalFileAttributes>>16&e;a.unixMode===O&&16877&q&&(a.unixMode=q);const Z=Boolean(a.unixMode&S),G=Boolean(a.unixMode&z),Y=Boolean(512&a.unixMode),K=40960==((a.unixMode===O?q:a.unixMode)&E),X=!K&&(a.unixMode!==O?!!(73&a.unixMode):w&&!!(73&q)),$=a.unixMode!==O&&(a.unixMode&E)==v,rt=(q&E)==v;Object.assign(a,{setuid:Z,setgid:G,sticky:Y,symlink:K,unixExternalUpper:q,executable:X,directory:$||rt||m&&T.directory||a.filename.endsWith(k),zipCrypto:a.encrypted&&!a.extraFieldAES});const at=new vo(a);if(at.getData=(t,e)=>a.getData(t,at,o.bt,e),at.arrayBuffer=async t=>{const e=new TransformStream,r=tr(e.readable).then(t=>t.arrayBuffer());return r.catch(()=>{}),await a.getData(e,at,o.bt,Object.assign({},t,{preventClose:!1})),r},J=y,t==V-1&&mt){const t=bi(nt,Q,J);t&&(V+=t,Ba(c,Yo))}const{onprogress:ot}=n;if(ot)try{await ot(t+1,V,new vo(a))}catch{}yield at}let wt=J,ht=gi(Q.subarray(J))||(st?gi(ct):O);if(!ht&&!st){const t=U+J,e=Math.min(X-t,65541);e>=6&&(ht=gi(await _a(i,t,e)))}ht&&(o.digitalSignature=ht,wt=J+6+ht.length),(J!=K&&wt!=K||!st&&J!=F&&wt!=F)&&Li(h,c,Jo),ft&&Li(h,c,Qo);const yt=qi(o,n,"extractPrependedData"),bt=qi(o,n,"extractAppendedData"),gt=(h||yt)&&V&&4==B&&await async function(t){const e=await Fi(t);return e==a||808471376==e}(i)?4:0;return h&&(H||V&&B>gt)&&Wi(Xo),(H||V&&B>4)&&Ba(c,Xo),P&&Ba(c,$o),yt&&(o.prependedData=B>gt?await _a(i,gt,B-gt):M),o.comment=T?await _a(i,I+f,T):M,bt&&(o.appendedData=C<i.size?await _a(i,C,i.size-C):M),!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()}[N](){return this.close()}}class mi{constructor(t={}){let e;const{readable:r,writable:n}=new TransformStream({start(t){e=t}}),a=new pi(r,t),o=a.getEntriesGenerator(),i=new Set;this.readable=new ReadableStream({async pull(t){const{done:e,value:r}=await o.next();if(e)return t.close();const n=function(t,e){const{readable:r,writable:n}=new TransformStream;let a;const o={cancel:async t=>{e.delete(o),await(a?a.cancel(t):r.cancel(t))}};return o.readable=new ReadableStream({async pull(i){a||(a=r.getReader(),e.add(o),async function(){try{await t.getData(n,{preventClose:!1})}catch(t){try{await n.abort(t)}catch{}}finally{e.delete(o)}}());const{done:s,value:c}=await a.read();s?i.close():i.enqueue(c)},cancel:t=>o.cancel(t)},{highWaterMark:0}),o}(r,i),a={...r,readable:n.readable};delete a.getData,Object.defineProperties(a,{localDirectory:{get:()=>r.localDirectory,enumerable:!0},warnings:{get:()=>r.warnings,enumerable:!0}}),t.enqueue(a)},async cancel(t){const r=Array.from(i);i.clear(),e.error(t),await Promise.allSettled(r.map(e=>e.cancel(t))),await Promise.allSettled([o.return(),a.close()])}}),this.writable=n}}async function wi(t,e={}){if(t=new Ta(t),await Ma(t),t.size!==O&&t.readUint8Array||(t=new aa(await tr(t.readable)),await Ma(t)),t.size<f)return!1;const r=Ii(e,{}),n=r!=at,a=ji(e[$],r),{vt:o,St:i}=await Mi(t,n,a);if(!o||r==rt&&i>1)return!1;const s=Yi(Wt(o),20),c=o.offset+f+s;return t.size-c<=a}let hi=class{constructor(t,e){Object.assign(this,{reader:t,options:e})}async getData(t,e,a,o={}){const i=this,s=Ut(),{reader:c,index:l,offset:d,diskNumberStart:u,extraFieldAES:f,extraFieldZip64:p,compressionMethod:m,bitFlag:w,rawBitFlag:h,crc32:y,rawLastModDate:b,uncompressedSize:g,compressedSize:x}=i,{dataDescriptor:E}=w,v=e.localDirectory={},S=e.warnings=[],z=Oi(c,u)+d,k=await _a(c,z,A),R=Wt(k);let D=qi(i,o,_),F=qi(i,o,P);const U=wt(qi(i,o,B)),I=Boolean(U),T=!0===U;if(mt(D,F),D=D&&D.length?D:O,F=F&&F.length?F:O,f&&99!=f.originalCompressionMethod)throw new Error(or);if(k.length<A||Ki(R,0)!=n)throw new Error(Oo);xi(v,R,4);const{extraFieldLength:C,filenameLength:j}=v,N=v.dataOffset=z+A+j+C,H=qi(i,o,"checkLocalDirectory"),G=Ii(o,i.options),Y=function(t,e){return t===O?e!=at:Boolean(t)}(H,G),K=qi(i,o,"checkLocalFilename"),X=function(t,e){return t===O?e==rt:Boolean(t)}(K===O?H:K,G);let $=M;if(X&&(j||C)){const t=await _a(c,z+A,j+C);$=t.subarray(0,j),v.rawExtraField=t.subarray(j)}else v.rawExtraField=C?await _a(c,z+A+j,C):M;X&&(v.rawFilename=$),Ei(i,v,R,4,!0)&&Ba(S,Ho),function(t,e,r,n,a){const{rawFilename:o}=t,i=!a,s=t.zt&&!(8192&~e.rawBitFlag);!n||s||r.length==o.length&&!r.some((t,e)=>t!=o[e])||Li(i,a,ri),(2121&e.rawBitFlag)!=(2121&t.rawBitFlag)&&Li(i,a,ni),e.compressionMethod!=t.compressionMethod&&Li(i,a,ai),e.bitFlag.dataDescriptor||s||!(e.crc32||e.compressedSize||e.uncompressedSize)||e.crc32==t.crc32&&e.compressedSize==t.compressedSize&&e.uncompressedSize==t.uncompressedSize||Li(i,a,oi)}(i,v,$,X,Y?O:S);const{lastAccessDate:J,creationDate:Q,uid:tt,gid:et}=v;J&&(e.lastAccessDate=J),Q&&(e.creationDate=Q),tt!==O&&e.uid===O&&(e.uid=tt),et!==O&&e.gid===O&&(e.gid=et);const nt=qi(i,o,"checkPasswordOnly"),ot=i.encrypted&&(!T||nt),it=ot&&!f;if(T||(e.zipCrypto=it),ot&&!(64&~i.rawBitFlag))throw new Error(Io);const st=I?O:ur(m);if(0!=m&&8!=m&&9!=m&&!st&&!I)throw new Error(or);if(ot){if(!it&&(f.strength<1||f.strength>3))throw new Error(Io);if(!D&&!F)throw new Error(Uo)}if(N+x>c.size)throw new Error(jo);const ct=x,lt=ft(qi(i,o,L));pt(lt);let dt=qi(i,o,"checkOverlappingEntry");const ut=qi(i,o,"checkOverlappingEntryOnly");ut&&(dt=!0);const{onstart:ht,onprogress:yt,onend:bt}=o,gt=0!=m&&!I,xt=I?x-zo(ot,it,f&&f.strength):g,Et=9==m;let vt=qi(i,o,q);Et&&(vt=!1);const St=qi(i,o,"checkCrc32"),zt=(St===O?qi(i,o,"checkSignature"):St)&&!I&&(!ot||it||f&&1==f.vendorVersion),kt={options:{codecType:Zr,password:D,rawPassword:F,zipCrypto:it,encryptionStrength:f&&f.strength,checkCrc32:zt,checkAuthenticationCode:qi(i,o,"checkAuthenticationCode"),passwordVerification:it&&(E?b>>>8&r:y>>>24&r),outputSize:xt,crc32:y,compressed:gt,encrypted:ot,useWebWorkers:qi(i,o,W),useCompressionStream:vt,transferStreams:qi(i,o,Z),deflate64:Et,format:st?st.format:O,codecURI:st?st.codecURI:O,compressionMethod:m,rawBitFlag:h,checkPasswordOnly:nt},config:s,D:{signal:lt,size:ct,onstart:ht,onprogress:yt,onend:bt}};let At,Rt,Dt;dt&&await async function({reader:t,At:e,index:r,offset:n,crc32:a,compressedSize:o,uncompressedSize:i,dataOffset:s,dataDescriptor:c,extraFieldZip64:l,bt:d}){let u=0;if(c){const r=Boolean(l),n=Wt(await _a(t,s+o,24)),c=[[r,!0],[r,!1],[!r,!0],[!r,!1]].map(([t,e])=>Ri(n,t,e)).filter(t=>t&&t.compressedSize==o&&t.uncompressedSize==i),d=c.find(t=>t.crc32==a)||c[0]||Ri(n,r,!0)||Ri(n,r,!1);d?(e.localDirectory.dataDescriptor=d,u=Di(d.zip64,d.signature)):u=Di(r,!1)}const f={start:n,end:s+o+u,At:e},{gt:p,xt:m,Et:w}=d;if(!p.has(r)){const t=function(t,e){let r=0,n=t.length;for(;r<n;){const a=r+n>>>1;t[a].start<e.start?r=a+1:n=a}const a=t[r-1],o=t[r];return a&&Ai(e,a)?a:o&&Ai(e,o)?o:void 0}(m,f)||w.find(t=>Ai(f,t));if(t){const e=new Error(Co);throw e.overlappingEntry=t.At,e}p.add(r),w.push(f),w.length*w.length>m.length&&(w.sort((t,e)=>t.start-e.start),d.xt=function(t,e){const r=[];let n=0,a=0;for(;n<t.length||a<e.length;)a==e.length||n<t.length&&t[n].start<e[a].start?r.push(t[n++]):r.push(e[a++]);return r}(m,w),w.length=0)}}({reader:c,At:e,index:l,offset:z,crc32:y,compressedSize:x,uncompressedSize:g,dataOffset:N,dataDescriptor:E||v.bitFlag.dataDescriptor,extraFieldZip64:p||v.extraFieldZip64,bt:a});try{if(!ut){nt&&(t=new WritableStream),t=new Ca(t),await Ma(t,function(t,e,r){return Math.min(t,r?1032*e:e)}(xt,x,gt)),({writable:At}=t);const e=Qe(c.createReadable({offset:N,size:ct})),{outputSize:r}=await An({readable:e,writable:At},kt);if(pt(lt),r!=xt)throw Object.assign(new Error(wr),{outputSize:r});t.size+=r}}catch(e){const{outputSize:r}=kt;if(r!==O?t.size+=r:qt(e)&&e.outputSize!==O&&(t.size+=e.outputSize),!nt||!qt(e)||e.message!=Ee)throw Rt=e,Dt=!0,e}finally{if((ja(t)||!qi(i,o,V))&&At&&!At.locked){const t=At.getWriter();if(Dt)try{await t.abort(Rt)}catch{}else await t.close()}}return nt||ut?O:t.getData?t.getData():At}};function yi(t){const e=Math.min(t.byteLength,1024)-3;for(let r=0;r<e;r++)if(134630224==Ki(t,r))return!0;return!1}function bi(t,e,r){let n=0;for(;r+u<=e.length&&Ki(t,r)==s;)r+=u+Yi(t,r+28)+Yi(t,r+30)+Yi(t,r+32),n++;return n%65536?0:n}function gi(t){if(t.length>=6){const e=Wt(t);if(Ki(e,0)==i){const r=Yi(e,4);if(6+r<=t.length)return new Uint8Array(t.subarray(6,6+r))}}}function xi(t,e,r){const n=t.rawBitFlag=Yi(e,r+2),a=!(1&~n),o=Ki(e,r+6);Object.assign(t,{encrypted:a,version:Yi(e,r),bitFlag:{level:(6&n)>>1,dataDescriptor:!(8&~n),languageEncodingFlag:(n&x)==x},rawLastModDate:o,lastModDate:Vi(o),filenameLength:Yi(e,r+22),extraFieldLength:Yi(e,r+24)})}function Ei(t,e,r,n,a){const{rawExtraField:o}=e,i=e.extraField=new Map,s=Wt(o);let c=0,l=!1;try{for(;c<o.length;){const t=Yi(s,c),e=Yi(s,c+2);i.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=Yi(r,n+4);Object.assign(e,{signature:Ki(r,n+10),crc32:Ki(r,n+10),compressedSize:Ki(r,n+14),uncompressedSize:Ki(r,n+18)});const u=i.get(1);if(u)(function(t,e,r){e.zip64=!0;const n=Wt(t.data),a=di.filter(([t,r])=>e[t]==r),o=a.reduce((t,[,e])=>t+ui[e].bytes,0);if(t.data.length<o){if(r)return!1;throw new Error(Fo)}const i=[];try{for(let t=0,e=0;t<a.length;t++){const[,r]=a[t],o=ui[r];i.push(o.yt(n,e)),e+=o.bytes}}catch(t){if(r)return!1;throw t}return a.forEach(([r],n)=>{e[r]=t[r]=i[n]}),!0})(u,e,a)||(l=!0),e.extraFieldZip64=u;else if(di.some(([t,r])=>e[t]==r)){if(!a)throw new Error(Fo);l=!0}const f=i.get(28789);f&&(vi(f,La,Wa,e,t),e.extraFieldUnicodePath=f);const p=i.get(25461);p&&(vi(p,qa,Za,e,t),e.extraFieldUnicodeComment=p);const m=i.get(w);m&&(99==d||e.encrypted)&&m.data.length>=7?(function(t,e,r){const n=Wt(t.data),a=Gi(n,4);Object.assign(t,{vendorVersion:Gi(n,0),vendorId:Gi(n,2),strength:a,originalCompressionMethod:r,compressionMethod:Yi(n,5)}),e.compressionMethod=t.compressionMethod,1!=t.vendorVersion&&(e.crc32=O)}(m,e,d),e.extraFieldAES=m):(m&&(l=!0),e.compressionMethod=d);const x=i.get(13);x&&(Si(x,e),e.extraFieldPkwareUnix=x);const E=i.get(22613);E&&(Si(E,e),e.extraFieldUnixType1=E);const v=i.get(10);v&&(function(t,e){const r=Wt(t.data);let n,a=4;try{for(;a<t.data.length&&!n;){const e=Yi(r,a),o=Yi(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=Wt(n),a=r.getBigUint64(0,!0),o=r.getBigUint64(8,!0),i=r.getBigUint64(16,!0);Object.assign(t,{rawLastModDate:a,rawLastAccessDate:o,rawCreationDate:i});const s={lastModDate:Hi(a),lastAccessDate:Hi(o),creationDate:Hi(i)};Object.assign(t,s),Object.assign(e,s,{rawLastAccessDate:o,rawCreationDate:i})}}(v,e),e.extraFieldNTFS=v);const S=i.get(g);let z;if(S&&(z=zi(S,e,!1),e.extraFieldUnix=S),!z){const t=i.get(b);t&&(zi(t,e,!0),e.extraFieldInfoZip=t)}const k=i.get(h);k&&(function(t,e,r){if(!t.data.length)return;const n=Wt(t.data),a=Gi(n,0),o=[],i=[];r?(1&~a||(o.push(Ka),i.push(Xa)),2&~a||(o.push($a),i.push(Ja)),4&~a||(o.push(Qa),i.push(to))):t.data.length>=5&&(o.push(Ka),i.push(Xa));let s=1;o.forEach((r,a)=>{if(t.data.length>=s+4){const o=Ki(n,s);e[r]=t[r]=new Date(1e3*(0|o));const c=i[a];t[c]=o}s+=4})}(k,e,a),e.extraFieldExtendedTimestamp=k);const A=i.get(y);return A&&(e.extraFieldUSDZ=A),l}function vi(t,e,r,n,a){if(t.data.length<5)return void(t.valid=!1);const o=Wt(t.data),i=new Qt;i.append(a[r]);const s=Wt(new Uint8Array(4));s.setUint32(0,i.get(),!0);const c=Ki(o,1),l=Gi(o,0);Object.assign(t,{version:l,[e]:jn(t.data.subarray(5)),valid:1==l&&!a.bitFlag.languageEncodingFlag&&c==Ki(s,0)}),t.valid&&(n[e]=t[e],n[e+"UTF8"]=!0)}function Si(t,e){if(t.data.length<8)return;const r=Wt(t.data),n={lastAccessDate:new Date(1e3*(0|Ki(r,0))),lastModDate:new Date(1e3*(0|Ki(r,4)))};t.data.length>=12&&(n.uid=Yi(r,8),n.gid=Yi(r,10)),Object.assign(t,n),Object.assign(e,n)}function zi(t,e,r){try{const n=Wt(t.data);let a,o;if(r){let e=0;const r=Gi(n,e++),i=Gi(n,e++);a=ki(t.data.subarray(e,e+i)),e+=i;const s=Gi(n,e++);o=ki(t.data.subarray(e,e+s)),Object.assign(t,{version:r,uid:a,gid:o})}else t.data.length>=4&&(a=Yi(n,0),o=Yi(n,2),Object.assign(t,{uid:a,gid:o}));return a!==O&&(e.uid=a),o!==O&&(e.gid=o),a!==O||o!==O}catch{}}function ki(t){const e=new Uint8Array(4);return e.set(t,0),new DataView(e.buffer,e.byteOffset,4).getUint32(0,!0)}function Ai(t,e){return t.start<e.end&&e.start<t.end}function Ri(t,e,r){const n=r?4:0;if(t.byteLength<Di(e,r)||r&&Ki(t,0)!=o)return O;const a=Ki(t,n);let i,s;try{e?(i=Xi(t,n+4),s=Xi(t,n+12)):(i=Ki(t,n+4),s=Ki(t,n+8))}catch{return O}return{signature:r,zip64:e,crc32:a,compressedSize:i,uncompressedSize:s}}function Di(t,e){return(t?20:12)+(e?4:0)}function Oi(t,e){return t.ht?t.ht(e):0}async function Fi(t){return Ki(Wt(await _a(t,0,4)))}function Ui(t){return t===rt||t===nt||t===at}function Ii(t,e){return Ti(t,Ti(e,nt))}function Ti(t,e){const r=t.strictness;if(r!==O){if(!Ui(r))throw new Error(Po);return r}const n=t.checkAmbiguity;return n===O?e:n?rt:e==at?at:nt}function Ci(t,e){if(e==at)return!1;const r=t.split("/");return r.length>1&&""===r[r.length-1]&&r.pop(),!!(si.test(t)||t.startsWith("/")||t.startsWith("\\")||ii.test(t))||e==rt&&(r.includes(".")||r.includes("")||t.includes("\0"))}function ji(t,r){if(t!==O){const e=bt(t);if("number"!=typeof e||Number.isNaN(e)||e<0)throw new Error(Lo);return e}return r==rt?0:r==at?1/0:e}async function Mi(t,e,r){const{size:n}=t,a=Math.min(n,65557),o={Rt:64};let i,s,c=0;for await(const[r,l,d,u,p]of Ni(t,a)){const a=Yi(r,u+20);if(p+f+a==n){const a=await Pi(t,r,l,u,p,n,o);if(2==a){if(i||(i=_i(d,u,p)),c++,!e||c>1)break}else 1!=a||s||(s=_i(d,u,p))}}return i||(i=s),i||(i=await async function(t,e,r){const{size:n}=t,a=Math.min(n,e==1/0?n:65557+e);let o,i;for await(const[e,s,c,l,d]of Ni(t,a)){const a=_i(c,l,d);o||(o=a);const u=await Pi(t,e,s,l,d,n,r);if(2==u)return a;1!=u||i||(i=a)}return i||o}(t,r,o)),{vt:i,St:c}}async function*Ni(t,e){const r=t.size-e,n=await _a(t,r,e),a=Wt(n);for(let t=n.length-f;t>=0;t--)Ki(a,t)==c&&(yield[a,r,n,t,r+t])}function _i(t,e,r){return{offset:r,buffer:new Uint8Array(t.subarray(e,e+f)).buffer}}async function Pi(r,n,a,o,i,c,l){const u=Yi(n,o+10),f=Ki(n,o+12),m=Ki(n,o+16);if(u==e||f==t||m==t)return await Bi(r,n,a,i-p,c,l)==d?2:0;if(!u&&!f)return 1;const w=Yi(n,o+6);for(const t of[i-f,Oi(r,w)+m])if(await Bi(r,n,a,t,c,l)==s)return 2;return 0}async function Bi(t,e,r,n,a,o){return n<0||n+4>a?O:n>=r?Ki(e,n-r):o.Rt>0?(o.Rt--,Ki(Wt(await _a(t,n,4)),0)):O}function Li(t,e,r){t?Wi(r):Ba(e,r)}function Wi(t){const e=new Error(Mo);throw e.reason=t,e}function qi(t,e,r){return e[r]===O?t.options[r]:e[r]}function Zi(t,e,r){return ut(qi(t,e,r))}function Vi(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 Hi(t){return new Date(Number(t/BigInt(1e4)-BigInt(116444736e5)))}function Gi(t,e){return t.getUint8(e)}function Yi(t,e){return t.getUint16(e,!0)}function Ki(t,e){return t.getUint32(e,!0)}function Xi(t,e){const r=t.getBigUint64(e,!0);if(r>fi)throw new Error(Wo);return Number(r)}var $i=Object.freeze({__proto__:null,ERR_AMBIGUOUS_ARCHIVE:Mo,ERR_BAD_FORMAT:ko,ERR_CENTRAL_DIRECTORY_NOT_FOUND:Do,ERR_CODEC_OUT_OF_MEMORY:yr,ERR_ENCRYPTED:Uo,ERR_ENCRYPTED_CENTRAL_DIRECTORY:No,ERR_ENTRY_DATA_OUT_OF_BOUNDS:jo,ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND:Ro,ERR_EOCDR_NOT_FOUND:Ao,ERR_EXTRAFIELD_ZIP64_NOT_FOUND:Fo,ERR_INVALID_AUTHENTICATION_CODE:xe,ERR_INVALID_COMPRESSED_DATA:hr,ERR_INVALID_CRC32:br,ERR_INVALID_FILENAME_VALIDATION:Bo,ERR_INVALID_MAX_APPENDED_DATA_SIZE:Lo,ERR_INVALID_PASSWORD:ge,ERR_INVALID_STRICTNESS:Po,ERR_INVALID_UNCOMPRESSED_SIZE:wr,ERR_LOCAL_FILE_HEADER_NOT_FOUND:Oo,ERR_OVERLAPPING_ENTRY:Co,ERR_SPLIT_ZIP_FILE:To,ERR_UNSAFE_FILENAME:_o,ERR_UNSUPPORTED_COMPRESSION:or,ERR_UNSUPPORTED_ENCRYPTION:Io,ERR_UNSUPPORTED_UINT64:Wo,ERR_WORKER_STARTUP_TIMEOUT:Gr,WARNING_APPENDED_DATA:Ko,WARNING_COMPRESSED_PATCHED_DATA:Vo,WARNING_DUPLICATE_FILENAME:Qo,WARNING_MALFORMED_EXTRA_FIELD:Ho,WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG:ni,WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD:ai,WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES:oi,WARNING_MISMATCHED_LOCAL_FILE_HEADER_FILENAME:ri,WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY:ti,WARNING_MULTIPLE_END_OF_CENTRAL_DIRECTORY:ei,WARNING_PREPENDED_CENTRAL_DIRECTORY:$o,WARNING_PREPENDED_DATA:Xo,WARNING_TRAILING_CENTRAL_DIRECTORY_DATA:Jo,WARNING_UNKNOWN_VERSION:Zo,WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA:Go,WARNING_UNSORTED_CENTRAL_DIRECTORY:qo,WARNING_WRAPPED_ENTRIES_COUNT:Yo,ZipReader:pi,ZipReaderStream:mi,isZipFile:wi});const Ji="File already exists",Qi="Zip file comment exceeds 64KB",ts="Invalid zip file comment (must be a Uint8Array)",es="File entry comment exceeds 64KB",rs="Invalid file entry comment (must be a string)",ns="Invalid date (must be a valid Date instance)",as="File entry name exceeds 64KB",os="Version exceeds 65535",is="The strength must equal 1, 2, or 3",ss="Encryption is not supported in USDZ files",cs="Split zip files are not supported in USDZ files",ls="Encryption is not supported when the 'passThrough' option is set to true (use 'compressed' instead)",ds="Invalid extra field (must be a Map)",us="Invalid extra field type (must be integer 0..65535)",fs="Invalid extra field data (must be a Uint8Array)",ps="Extra field data exceeds 64KB",ms=-2147483648,ws=2147483647,hs=BigInt(0),ys=BigInt("0x7fffffffffffffff"),bs="Zip64 is not supported (set the 'zip64' option to 'true')",gs="Undefined uncompressed size",xs="Undefined compression method",Es="Undefined CRC32",vs="Undetermined size",Ss="Undefined reader",zs="Invalid reader (must be a Reader instance, a ReadableStream instance, or an object with a 'readable' property)",ks="Zip file not empty",As="Invalid uid (must be integer 0..2^32-1)",Rs="Invalid gid (must be integer 0..2^32-1)",Ds="Invalid UNIX mode (must be integer 0..65535)",Os="Invalid unixExtraFieldType (must be 'infozip' or 'unix')",Fs="uid/gid must be 0..65535 for unixExtraFieldType 'unix' (use 'infozip' for larger ids)",Us="Invalid msdosAttributesRaw (must be integer 0..255)",Is="Invalid msdosAttributes (must be an object with boolean flags)",Ts="Invalid level (must be integer 0..9)",Cs="Signature data exceeds 64KB",js="Invalid entry option (must be an entry returned by ZipReader#getEntries())",Ms="The last modification date of an entry encrypted with ZipCrypto cannot be changed when passThrough is set",Ns="compression unavailable",_s="clamped last modification date",Ps=new Uint8Array([7,0,2,0,65,69,3,0,0]),Bs="infozip",Ls="unix",Ws=[8,9,5,3];let qs=0;const Zs=[];class Vs{constructor(t,e={}){t=new Ca(t);const{availableSize:r=F,maxSize:n=F}=t,a=r>0&&r!==F&&n>0&&n!==F;if(a&&e[X])throw new Error(cs);Object.assign(this,{writer:t,Dt:a,options:e,Ot:new Map,Ft:new Set,offset:e[K]===O?t.size||t.writable.size||0:e[K],Ut:e[K]===O?0:e[K]-(t.size||t.writable.size||0),It:new Set,Tt:[],warnings:[],Ct:0,jt:0,Mt:O,Nt:!1})}prependZip(t){return Ks(this,async function(t,e){if(t.Ft.size)throw new Error(ks);await t._t(e)}(this,t))}appendZip(t){return Ks(this,this._t(t))}async _t(t){const e=this,{It:r,Ft:n,Ot:o}=e;for(;r.size;)await Promise.allSettled(Array.from(r));let i;const s=new Promise(t=>i=t);r.add(s);const c=[];let l;try{t=new Ta(t),await Ma(t),t.size!==O&&t.readUint8Array||(t=new aa(await tr(t.readable)),await Ma(t));const{ZipReader:r}=await Promise.resolve().then(function(){return $i}),i=new r(t),s=await i.getEntries();await i.close(),await Ma(e.writer);const{directoryOffset:d}=i;s.forEach(({filename:t})=>{if(n.has(t))throw new Error(Ji);n.add(t),c.push(t)}),e.Pt=!0;const{Bt:u}=e;e.Bt=new Promise(t=>l=()=>{e.Pt=!1,t()}),await u,e.Dt&&(delete e.Dt,await async function(t){return Wt(await _a(t,0,4)).getUint32(0,!0)==a}(t)||(await xc(e.writer,bc()),e.offset+=4));const f=await async function(t,e,r,n){const{writer:a}=t,o=new Map;if(a.closeDisk){const i=Array.from(r).sort((t,r)=>yc(e,t)-yc(e,r));let s=0;for(const r of i){const n=yc(e,r);await wc(t,e,s,n-s),fc(a,await hc(e,n))&&await a.closeDisk(),o.set(r,{offset:pc(t,a),diskNumberStart:dc(a)}),s=n}await wc(t,e,s,n-s)}else{const a=t.offset;await wc(t,e,0,n),r.forEach(t=>o.set(t,{offset:a+yc(e,t),diskNumberStart:0}))}return o}(e,t,s,d);s.forEach(t=>{const{version:e,rawLastModDate:r,rawFilename:n,bitFlag:a,encrypted:i,uncompressedSize:s,compressedSize:c,extraFieldZip64:l}=t;let{compressionMethod:d,rawExtraField:u}=t;const{level:p,languageEncodingFlag:m,dataDescriptor:w}=a;u=mc(u||M),t.extraFieldAES&&(d=99);const h=Mc(u),y=Boolean(l)&&l.uncompressedSize!==O,b=Boolean(l)&&l.compressedSize!==O,g=-7&Pc(p,m,w,i,d)|p<<1,{Lt:x,Wt:E}=Nc({version:e,bitFlag:g,compressionMethod:d,uncompressedSize:s,compressedSize:c,rawLastModDate:r,rawFilename:n,qt:b,Zt:y,extraFieldLength:h}),{crc32:v}=t;v!==O&&Tc(E,10,v);const{offset:S,diskNumberStart:z}=f.get(t);Object.assign(t,{Vt:!0,Zt:y,qt:b,offset:S,diskNumberStart:z,Ht:!1,Gt:M,Yt:M,Kt:M,Xt:M,$t:M,rawExtraField:u,Jt:M,Lt:x,Wt:E}),o.set(t.filename,t)})}catch(t){throw c.forEach(t=>n.delete(t)),t}finally{i(),r.delete(s),l&&l()}}add(e="",n,a={}){const o=this,{It:i}=o,s=async function(e,n,a,o){const i=(o=Object.assign({},o))[Q];if(i!==O){const{Qt:t,te:r}=Js(i,wt(kc(e,o,B)),kc(e,o,Ka));delete o[Q],o=Object.assign(t,r,o)}if(kc(e,o,fo)&&!n.endsWith(k)&&(n+=k),e.Ft.has(n))throw new Error(Ji);e.Ft.add(n),qs<Ut().maxWorkers?qs++:await new Promise(t=>Zs.push(t));try{return await async function(e,n,a,o){const i=Qs(e,n,o);({name:n}=i);const s=tc(e,n,o),{comment:c}=s,l=o[ho];e.Ot.set(n,O);const d=e.Mt,u={};let f,p;s.ee.keepOrder&&(u.re=new Promise(t=>f=t)),e.Mt=u;try{const{ee:c}=s;0==c.level||c.compressionMethod!==O||c.ne||await Jr(Ut())||(c.level=0,Ba(e.warnings,Ns,n));const l=await async function(t,e,{ee:r},n){if(r.ne&&!e&&!kc(t,n,fo))throw new Error(Ss);let a;if(e){if(e=new Ta(e),await Ma(e),!e.readable&&!e.readUint8Array)throw new Error(zs);({size:a}=e)}return Object.assign({reader:e},rc(t,Boolean(e),a,r,n))}(e,a,s,o);({reader:a}=l);const m=uc(e.writer),w=dc(e.writer);let h=o.crc32===O?o[wo]:o.crc32;const y=l.ee.encrypted&&!c.zipCrypto;if(c.ne&&!c.ae&&y&&(h=O),c.ne&&a&&!y&&h===O)throw new Error(Es);const b=ac(o=Object.assign({},o,i.ee,s.ee,l.ee,{signature:o[wo],crc32:h,offset:e.offset-m,diskNumberStart:w,[X]:e.options[X]}));b.oe&&Ba(e.warnings,_s,n);const g=sc(o),x=Mc(b.ie,g.se);p=await async function(e,n,a,o,i){const{Ot:s,writer:c}=e,{keepOrder:l,dataDescriptor:d,ce:u,signal:f}=i,{le:p,At:m,de:w,ue:h}=o,y=e.options[X];let b,g,x,E,v,S,z,k=m,R=0;const D=l&&w?w.re:O;s.set(n,k);try{i.bufferedWrite||!l||e.Pt||e.Ct||e.jt||!d&&!u?(b=!0,e.Ct++,z=i.createTempStream?await i.createTempStream():new TransformStream(O,O,{highWaterMark:F}),z.size=0,await Ma(c)):(g=!0,e.jt++,z=c,await D,await U()),await Ma(z);const m=uc(c);e.Dt&&!b&&await gc(e,c),y&&!b&&oc(o,e.offset-m);const{ie:w}=p;b||await I();const h=dc(c),x=pc(e,c);if(k.diskNumberStart=h,b||(v=!0,S=c.size,await xc(z,w)),k=await async function(e,n,{diskNumberStart:a,re:o},i,s,c){const{le:l,fe:d,pe:u}=i,{Lt:f,Wt:p,lastModDate:m,rawLastModDate:w,encrypted:h,compressed:y,version:b,compressionMethod:g,Gt:x,me:E,Kt:v,we:S,he:z,Xt:k,$t:A,Yt:R}=l,{se:D}=d,{rawFilename:F,lastAccessDate:U,creationDate:I,password:T,rawPassword:C,level:j,useUnicodeFileNames:M,zip64:N,Vt:_,Zt:P,qt:B,zipCrypto:L,dataDescriptor:W,directory:q,executable:Z,versionMadeBy:V,rawComment:H,rawExtraField:G,Jt:Y,useWebWorkers:K,transferStreams:X,onstart:$,onprogress:J,onend:Q,signal:tt,encryptionStrength:et,extendedTimestamp:rt,msDosCompatible:nt,internalFileAttributes:at,externalFileAttributes:ot,uid:it,gid:st,unixMode:ct,symlink:lt,setuid:dt,setgid:ut,sticky:ft,unixExternalUpper:mt,msdosAttributesRaw:wt,msdosAttributes:ht,useCompressionStream:yt,ne:bt,ae:gt,format:xt,codecURI:Et}=c,vt={re:o,versionMadeBy:V,zip64:N,Vt:_,directory:Boolean(q),executable:Boolean(Z),filenameUTF8:Boolean(M),rawFilename:F,commentUTF8:Boolean(M),rawComment:H,Gt:x,me:E,Kt:v,Xt:k,$t:A,Yt:R,rawExtraField:G,Jt:Y,extendedTimestamp:rt,msDosCompatible:nt,internalFileAttributes:at,externalFileAttributes:ot,diskNumberStart:a,uid:it,gid:st,unixMode:ct,symlink:Boolean(lt),setuid:dt,setgid:ut,sticky:ft,unixExternalUpper:mt,msdosAttributesRaw:wt,msdosAttributes:ht};let{crc32:St,uncompressedSize:zt}=c,kt=0;bt||(zt=0);const{writable:At}=n;if(e){const a=e.size,o=Qe(Pa(e,{size:a})),i={options:{codecType:qr,inputSize:a,level:j,rawPassword:C,password:T,encryptionStrength:et,zipCrypto:h&&L,passwordVerification:h&&L&&w>>8&r,computeCrc32:!bt,compressed:y&&!bt,encrypted:h&&!gt,useWebWorkers:K,useCompressionStream:yt,transferStreams:X,format:xt,codecURI:Et,compressionMethod:g},config:s,D:{signal:tt,size:a,onstart:$,onprogress:J,onend:Q}};try{const e=await An({readable:o,writable:At},i);if(kt=e.outputSize,n.size+=kt,pt(tt),bt||(zt=e.inputSize,h&&!L||(St=e.crc32)),!B&&kt>=t||!P&&zt>=t)throw new Error(bs)}catch(t){const{outputSize:e}=i;throw e!==O?n.size+=e:qt(t)&&t.outputSize!==O&&(n.size+=t.outputSize),t}}return function({crc32:t,compressedSize:e,uncompressedSize:r,le:n,fe:a},{zip64:o,zipCrypto:i,ne:s,dataDescriptor:c}){const{Wt:l,encrypted:d}=n,{ye:u,be:f}=a;d&&!i&&!s||t===O||(Tc(l,10,t),c&&Tc(u,f,t)),o?c&&(Cc(u,f+4,BigInt(e)),Cc(u,f+12,BigInt(r))):(Tc(l,14,e),Tc(l,18,r),c&&(Tc(u,f+4,e),Tc(u,f+8,r)))}({crc32:St,compressedSize:kt,uncompressedSize:zt,le:l,fe:d},c),W&&await xc(n,D),Object.assign(vt,{uncompressedSize:zt,compressedSize:kt,lastModDate:m,rawLastModDate:w,creationDate:I,lastAccessDate:U,encrypted:Boolean(h),zipCrypto:Boolean(L),size:u+kt,compressionMethod:g,version:b,Lt:f,Wt:p,signature:St,crc32:!h||L||bt?St:O,we:S,he:z,Zt:P,qt:B}),vt}(a,z,k,o,Ut(),i),b||(v=!1),s.set(n,k),k.filename=n,b){if(await Promise.all([z.writable.getWriter().close(),D]),await U(),e.Dt&&await gc(e,c),E=!0,S=c.size,await I(),k.diskNumberStart=dc(c),k.offset=pc(e,c),y){const t=o.pe;oc(o,e.offset-uc(c)),k.size+=o.pe-t}!function({rawFilename:t,encrypted:e,zip64:r,me:n,crc32:a,compressedSize:o,uncompressedSize:i,Zt:s,qt:c},l,{dataDescriptor:d,ne:u}){if(d||((!e||u&&a!==O)&&Tc(l,14,a),c||Tc(l,18,o),s||Tc(l,22,i)),r&&n){const e=A+Mc(t)+4;Cc(l,e,BigInt(i)),Cc(l,e+8,BigInt(o))}}(k,p.ge,i),await xc(c,p.ie),await Ec(z.readable,c,f,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 s.delete(n),t}finally{if(b&&e.Ct--,g&&e.jt--,h&&h(D),x&&x(),b&&z&&z.dispose)try{await z.dispose()}catch{}}async function U(){e.Pt=!0;const{Bt:t}=e;e.Bt=new Promise(t=>x=()=>{e.Pt=!1,t()}),await t}async function I(){fc(c,Mc(p.ie))&&await c.closeDisk()}}(e,n,a,{le:b,fe:g,pe:x,At:u,de:d,ue:f},o)}catch(t){throw e.Ot.delete(n),t}finally{f&&f(d&&d.re)}return Object.assign(p,{name:n,comment:c,extraField:l}),new vo(p)}(e,n,a,o)}catch(t){throw e.Ft.delete(n),t}finally{const t=Zs.shift();t?t():qs--}}(o,e,n,a);i.add(s);const c=()=>i.delete(s);return Promise.prototype.then.call(s,c,c),Ks(o,s)}remove(t){const{Ft:e,Ot:r}=this;if(typeof t==C&&(t=r.get(t)),t&&t.filename!==O){const{filename:n}=t;if(e.has(n)&&r.has(n))return e.delete(n),r.delete(n),!0}return!1}async close(r=M,n={}){const a=this,{It:o,writer:p}=this,{writable:m}=p;if(a.Nt)return Ys(p);if(!(r instanceof Uint8Array))throw new Error(ts);if(Mc(r)>e)throw new Error(Qi);for(;o.size;)await Promise.allSettled(Array.from(o));await Promise.allSettled(a.Tt.map(t=>t.xe));const w=a.Tt.filter(t=>t.Ee&&!t.ve);if(w.length){const t=w.map(t=>t.error);w.forEach(t=>t.ve=!0);const[e]=t;try{e.entryErrors=t}catch{}throw e}return await async function(r,n,a){const{Se:o,ze:p}=cc(r.Ot),{ke:m,Ae:w,Re:h}=await async function(r,n,a){const{Ot:o,writer:i}=r,c=new Uint8Array(n);await Ma(i);let l=0,d=0,f=dc(i),p=uc(i),m=0;for(const[r,n]of Array.from(o.values()).entries()){const{offset:w,rawFilename:h,Gt:y,Yt:b,Kt:g,Xt:x,$t:E,rawExtraField:v,Jt:S,rawComment:z,versionMadeBy:k,Lt:A,Wt:R,Zt:D,qt:O,Ht:F,De:U,internalFileAttributes:I,externalFileAttributes:T,diskNumberStart:C,uncompressedSize:j,compressedSize:M}=n,N=Mc(y,b,g,x,E,v,S),_=u+Mc(h,z)+N;fc(i,l+_-d)&&(await xc(i,c.slice(d,l)),d=l,m=0,await i.closeDisk()),0==r&&(f=dc(i),p=uc(i)),D||Tc(R,18,j),O||Tc(R,14,M),(U||F)&&n.version<45&&Ic(R,0,45);const P=lc(_);if(P.Oe(s),P.Fe(k),P.Ue(A.subarray(0,24)),P.Fe(N),P.Fe(Mc(z)),P.Fe(F?e:C),P.Fe(I),P.Oe(T),P.Oe(U?t:w),P.Ue(h),P.Ue(y),P.Ue(b),P.Ue(g),P.Ue(x),P.Ue(E),P.Ue(v),P.Ue(S),P.Ue(z),jc(c,P.ct,l),l+=_,m++,a.onprogress)try{await a.onprogress(r+1,o.size,new vo(n))}catch{}}return await xc(i,d?c.slice(d):c),{ke:{diskNumber:f,diskOffset:p},Ae:{diskNumber:dc(i),Ie:m},Re:c}}(r,o,a),y=await async function(t,r,n){const a=Rc(t,n,J);if(a){const n=await a(r),o=Mc(n);if(o>e)throw new Error(Cs);const s=lc(6+o);s.Oe(i),s.Fe(o),s.Ue(n);const{writer:c}=t;return fc(c,Mc(s.ct))&&await c.closeDisk(),await xc(c,s.ct),6+o}return 0}(r,h,a);await async function(r,n,a,o){const{writer:i}=r,{ke:s,Ae:u,Te:p,ze:m}=o;let{Se:w}=o,h=r.Ot.size,y=s.diskNumber,b=pc(r,s);const g=Mc(n);if(g>e)throw new Error(Qi);let x=kc(r,a,io),E=dc(i);if(fc(i,(x?98:f)+g)&&E++,b>=t||w>=t||h>=e||E>=e){if(!1===x)throw new Error(bs);x=!0}else x===O&&m&&(x=!0);const v=lc(x?98:f);fc(i,Mc(v.ct)+g)&&await i.closeDisk(),E=dc(i);let S=E==u.diskNumber?u.Ie:0;x&&(v.Oe(l),v.Ce(44),v.Fe(45),v.Fe(45),v.Oe(E),v.Oe(y),v.Ce(S),v.Ce(h),v.Ce(w),v.Ce(b),v.Oe(d),v.Oe(E),v.Ce(BigInt(pc(r,i))+BigInt(w)+BigInt(p)),v.Oe(E+1),kc(r,a,"supportZip64SplitFile",!0)&&(E=e,y=e),S=e,h=e,b=t,w=t),v.Oe(c),v.Fe(E),v.Fe(y),v.Fe(S),v.Fe(h),v.Oe(w),v.Oe(b),v.Fe(g),await xc(i,v.ct),g&&await xc(i,n)}(r,n,a,{ke:m,Ae:w,Se:o,Te:y,ze:p})}(a,r,n),a.Nt=!0,!ja(p)&&kc(a,n,V)||await m.getWriter().close(),Ys(p)}[N](){return this.close()}}class Hs{constructor(t={}){const{readable:e,writable:r}=new TransformStream;this.readable=e,this.zipWriter=new Vs(r,t),this.It=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 Xs(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.It))).filter(t=>"rejected"==t.status).map(t=>t.reason);if(n.length){const[t]=n;try{t.entryErrors=n}catch{}throw await Xs(r,t),t}try{return await r.close(t,e)}catch(t){throw await Xs(r,t),t}}}class Gs extends Promise{then(t,e){const{je:r}=this;return r&&(r.ve=!0),super.then(t,e)}}function Ys(t){return t.getData?t.getData():t.writable}function Ks(t,e){const r=new Gs((t,r)=>Promise.prototype.then.call(e,t,r)),n={};return r.je=n,n.xe=Promise.prototype.then.call(r,O,t=>Object.assign(n,{Ee:!0,error:t})),t.Tt.push(n),r}async function Xs(t,e){try{await t.writer.writable.abort(e)}catch{}}function $s(t,e,r){t.It.add(e),e.catch(t=>{try{r(t)}catch{}})}function Js(t,e,n){if(null===t||typeof t!=T||Array.isArray(t))throw new Error(js);const{externalFileAttributes:a,versionMadeBy:o,comment:i,lastModDate:s,rawLastModDate:c,creationDate:l,lastAccessDate:d,uncompressedSize:u,encrypted:f,zipCrypto:p,crc32:m,compressionMethod:w,extraFieldAES:h,extraFieldUnix:y,internalFileAttributes:b,extraField:g,bitFlag:x,directory:E,uid:v,gid:S}=t,z={externalFileAttributes:a,versionMadeBy:o,comment:i,lastModDate:s,creationDate:l,lastAccessDate:d,internalFileAttributes:b,directory:E};x&&x.languageEncodingFlag&&(z[G]=!0);const k=function(t){if(t){const e=new Map;if(t.forEach((t,r)=>{So.has(r)||e.set(r,t.data)}),e.size)return e}}(g);k&&(z[ho]=k),v===O&&S===O||Object.assign(z,{uid:v,gid:S,unixExtraFieldType:y?Ls:Bs});const A={};if(e&&!E)if(Object.assign(A,{uncompressedSize:u,crc32:m,compressionMethod:w}),e!==ot&&Object.assign(A,{encrypted:f,zipCrypto:p,encryptionStrength:h?h.strength:O}),x&&(A.dataDescriptor=x.dataDescriptor,A[H]=Ws[x.level]),n===O)A.rawLastModDate=c;else if(e!==ot&&p&&(!x||x.dataDescriptor)&&n 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}(n)!=(c>>>8&r))throw new Error(Ms);return{Qt:z,te:A}}function Qs(n,a,o){let i=kc(n,o,oo),s=kc(n,o,lo,i?20:768);const c=kc(n,o,po),l=Dc(n,o,"uid"),d=Dc(n,o,"gid");let u=Dc(n,o,yo),f=kc(n,o,"unixExtraFieldType"),p=kc(n,o,bo),m=kc(n,o,go),w=kc(n,o,xo);if(yt(l,t,As),yt(d,t,Rs),yt(u,e,Ds),f!==O&&f!==Bs&&f!==Ls)throw new Error(Os);if(f===Ls&&(l!==O&&l>e||d!==O&&d>e))throw new Error(Fs);f!==O||l===O&&d===O||(f=Bs);let h=Dc(n,o,no),y=kc(n,o,ao);const b=h!==O||y!==O;if(l!==O||d!==O||u!==O||f||c?(i=!1,s=s&r|768):b&&(i=!0,s&=r),yt(h,r,Us),y&&(typeof y!==T||Array.isArray(y)))throw new Error(Is);if(s>e)throw new Error(os);let g=kc(n,o,ro);const x=g!==O;x||(g=0),!o[fo]&&a.endsWith(k)&&(o[fo]=!0);const A=kc(n,o,fo);if(A?(a.endsWith(k)||(a+=k),x||(g=16,i||(g|=16877<<16))):i||x||(g=c?493<<16:27525120),!i){const t=u!==O||Boolean(p||m||w);u=u===O?g>>16&e:u&e,p?u|=S:p=Boolean(u&S),m?u|=z:m=Boolean(u&z),w?u|=512:w=Boolean(512&u),x&&!t||(A?u=-61441&u|v:u&E||(u|=32768),g=(u&e)<<16|g&e)}({msdosAttributesRaw:h,msdosAttributes:y}=function(t,e){if(t!==O)t&=r;else if(e!==O){const{readOnly:n,hidden:a,system:o,directory:i,archive:s}=e;let c=0;n&&(c|=1),a&&(c|=2),o&&(c|=4),i&&(c|=16),s&&(c|=32),t=c&r}return e===O&&(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=u!==O&&40960==(u&E);return{name:a,ee:{versionMadeBy:s,msDosCompatible:Boolean(i),externalFileAttributes:g,unixExternalUpper:R,uid:l,gid:d,unixMode:u,unixExtraFieldType:f,symlink:D,setuid:p,setgid:m,sticky:w,msdosAttributesRaw:h,msdosAttributes:y}}}function tc(t,r,n){const a=Rc(t,n,"encodeText")||ee;let o=a(r,tt);if(o===O&&(o=ee(r)),Mc(o)>e)throw new Error(as);const i=n[qa]||"";if(typeof i!=C)throw new Error(rs);let s=a(i,et);if(s===O&&(s=ee(i)),Mc(s)>e)throw new Error(es);const c=kc(t,n,co);if(c!==O&&c>e)throw new Error(os);const l=Ac(t,n,Ka,new Date),d=kc(t,n,Xa),u=Ac(t,n,$a),f=Ac(t,n,Qa),p=kc(t,n,eo,0),m=wt(kc(t,n,B)),w=Boolean(m),h=!0===m;let y=kc(t,n,_),b=kc(t,n,P);mt(y,b),y=y&&y.length?y:O,b=b&&b.length?b:O;const g=Dc(t,n,"encryptionStrength",3),x=kc(t,n,uo),E=kc(t,n,"extendedTimestamp",!0),v=kc(t,n,"ntfsTimestamp"),S=kc(t,n,"keepOrder",!0),z=kc(t,n,W),k=kc(t,n,Z),A=kc(t,n,"bufferedWrite"),R=Rc(t,n,"createTempStream"),D=kc(t,n,"dataDescriptorSignature",!0),F=ft(kc(t,n,L));pt(F);const U=kc(t,n,G,!_c(o)||!_c(s)),I=kc(t,n,mo),T=w||I===O?O:ur(I);if(!w&&I!==O&&0!==I&&8!==I&&!T)throw new Error(or);let j=Dc(t,n,H);if(yt(j,9,Ts),t.options[X]){if(y!==O||b!==O)throw new Error(ss);j===O&&I===O&&(j=0)}w&&(j=bt(n[H]));let M=kc(t,n,q),N=kc(t,n,Y);A&&N===O&&(N=!1),(N===O||x&&!h)&&(N=!0),j!==O&&6!=j&&(M=!1);const V=kc(t,n,io);if(!(x||y===O&&b===O||Number.isInteger(g)&&g>=1&&g<=3))throw new Error(is);const K=ec(n[ho]),$=ec(n.localExtraField),J=ec(n.centralExtraField);return{comment:i,ee:{rawFilename:o,rawComment:s,version:c,lastModDate:l,rawLastModDate:d,lastAccessDate:u,creationDate:f,internalFileAttributes:p,ne:w,ae:h,password:y,rawPassword:b,encryptionStrength:g,zipCrypto:x,extendedTimestamp:E,ntfsTimestamp:v,keepOrder:S,useWebWorkers:z,transferStreams:k,bufferedWrite:A,createTempStream:R,dataDescriptorSignature:D,signal:F,useUnicodeFileNames:U,compressionMethod:I,format:T?T.format:O,codecURI:T?T.codecURI:O,Me:T?T.versionNeeded:O,level:j,useCompressionStream:M,dataDescriptor:N,zip64:V,rawExtraField:K,Ne:$,Jt:J}}}function ec(t){if(!t)return M;if(!(t instanceof Map))throw new Error(ds);let r=0,n=0;t.forEach((t,n)=>{if(ht(n,e,us),!(t instanceof Uint8Array))throw new Error(fs);if(Mc(t)>e)throw new Error(ps);r+=4+Mc(t)});const a=new Uint8Array(r),o=Wt(a);return t.forEach((t,e)=>{Ic(o,n,e),Ic(o,n+2,Mc(t)),jc(a,t,n+4),n+=4+Mc(t)}),a}function rc(e,r,n,a,o){const{ne:i,ae:s,zipCrypto:c,password:l,rawPassword:d,encryptionStrength:u}=a;let{dataDescriptor:f,zip64:p,level:m,compressionMethod:w}=a,h=0,y=0,b=!1;if(i&&r){if(y=o[Va],y===O)throw new Error(gs);if(w===O)throw new Error(xs)}const g=!0===p,x=kc(e,o,so);if(r&&s&&!x&&Mc(l,d))throw new Error(ls);const E=r&&(Boolean(l&&Mc(l)||d&&Mc(d))||s&&x);r||(m=0,w=0);const v=zo(E,c,u);r&&(i?(o.uncompressedSize=y,h=n===O?Oc(y)+v:n+(s?0:v)):n===O?(f=!0,(p||p===O)&&(p=b=!0,h=4294967296)):(o.uncompressedSize=y=n,h=(Fc(w,m)?Oc(y):y)+v));const S=!(E||r&&(0!==n||i)||Fc(w,m));S&&kc(e,o,Y)===O&&(f=!1);const z=g||b||y>=t,k=g||h>=t;if(z||k){if(!1===p)throw new Error(bs);p=!0}return p=p||!1,{_e:h,ee:{dataDescriptor:f,ce:S,zip64:p,Vt:g,Pe:b,Zt:z,qt:k,uncompressedSize:y,level:m,compressionMethod:w,encrypted:E}}}function nc(e,r,n){const a=e.slice().sort((t,e)=>n?e-t:t-e);let o=r,i=0;for(const e of a){if(o>=t)break;o+=e,i++}return i}function ac(t){const{rawFilename:r,lastModDate:a,rawLastModDate:o,lastAccessDate:i,creationDate:s,level:c,zip64:l,zipCrypto:d,useUnicodeFileNames:u,dataDescriptor:f,directory:p,rawExtraField:m,Ne:y,encryptionStrength:x,extendedTimestamp:E,ntfsTimestamp:v,ne:S,encrypted:z,Zt:k,qt:F,uncompressedSize:U,Pe:I,crc32:T}=t;let{version:C,compressionMethod:j}=t;const N=!p&&Fc(j,c);let _;const P=S||!N,B=l&&(t.bufferedWrite||!f||!k&&!F||P&&!I),L=B||l&&f&&(k||F);if(l&&(k||F)){const t=20,e=lc(t);if(e.Fe(1),e.Fe(t-4),_=e.ct,B&&(e.Ce(U),P)){const t=zo(z,d,x);e.Ce(S?0:U+t)}}else _=M;let W,q,Z,V,H;if(z&&!d){const t=lc(Mc(Ps)+2);t.Fe(w),t.Ue(Ps),W=t.ct,W[8]=x}else W=M;if(E){const t=Sc(a),e=(G=t)>=ms&&G<=ws;if(e){const e=9+(i?4:0)+(s?4:0),r=lc(e);V=1+(i?2:0)+(s?4:0),H=t,r.Fe(h),r.Fe(e-4),r.Be(V),r.Oe(t),i&&r.Oe(zc(Sc(i))),s&&r.Oe(zc(Sc(s))),Z=r.ct}else Z=M;if(v===O?!e||Boolean(i||s):v)try{const t=vc(a),e=lc(36);e.Fe(10),e.Fe(32),e.Le(4),e.Fe(1),e.Fe(24),e.Ce(t),e.Ce(i?vc(i):t),e.Ce(s?vc(s):t),q=e.ct}catch{q=M}else q=M}else q=Z=M;var G;let Y;try{const{uid:r,gid:n,unixExtraFieldType:a}=t;if(a!=Bs||r===O&&n===O)if(a!=Ls||r===O&&n===O)Y=M;else{const t=lc(8);t.Fe(g),t.Fe(4),t.Fe((r===O?0:r)&e),t.Fe((n===O?0:n)&e),Y=t.ct}else{const t=ic(r===O?0:r),e=ic(n===O?0:n),a=3+t.length+e.length,o=lc(4+a);o.Fe(b),o.Fe(a),o.Be(1),o.Be(t.length),o.Ue(t),o.Be(e.length),o.Ue(e),Y=o.ct}}catch{Y=M}j===O&&(j=N?8:0),C===O&&(C=0!=j||p||z?20:10);const{Me:K}=t;N&&K!==O&&(C=C>K?C:K),l&&(C=C>45?C:45),z&&!d&&(C=C>51?C:51,S&&T!==O&&(W[4]=1),Ic(Wt(W),9,j),j=99);const $=L?Mc(_):0,J=$+Mc(W,Z,q,Y,m,y);if(J+(t[X]?67:0)>e)throw new Error(ps);const Q=new Date(2e3*Math.ceil(Math.floor(a.getTime()/1e3)/2)),tt=Q<D?D:Q>R?R:Q,et=Mc(Z)?new Date(1e3*Sc(a)):Mc(q)?a:tt,{Lt:rt,Wt:nt,rawLastModDate:at}=Nc({version:C,bitFlag:Pc(c,u,f,z,j),compressionMethod:j,uncompressedSize:U,lastModDate:tt,rawLastModDate:o,rawFilename:r,qt:F,Zt:k,extraFieldLength:J}),ot=lc(A+Mc(r)+J),it=ot.ct,st=Wt(it);return ot.Oe(n),ot.Ue(rt),ot.Ue(r),L&&ot.Ue(_),ot.Ue(W),ot.Ue(Z),ot.Ue(q),ot.Ue(Y),ot.Ue(m),ot.Ue(y),f&&(F||Tc(st,18,0),k||Tc(st,22,0)),{ie:it,ge:st,Lt:rt,Wt:nt,lastModDate:et,oe:et===tt&&Q.getTime()!=tt.getTime(),rawLastModDate:at,encrypted:z,compressed:N,version:C,compressionMethod:j,we:V,he:H,Gt:M,me:$,Kt:Z,Xt:q,$t:Y,Yt:W,extraFieldLength:J}}function oc(t,e){const{le:r}=t;let{ie:n,extraFieldLength:a}=r,o=64-(e+Mc(n))%64;o<4&&(o+=64);const i=new Uint8Array(o),s=Wt(i);Ic(s,0,y),Ic(s,2,o-4);const c=n;r.ie=n=new Uint8Array(Mc(c)+o),jc(n,c),jc(n,i,Mc(c));const l=Wt(n);Ic(l,28,a+o),r.ge=l,t.pe+=o}function ic(t){const e=new Uint8Array(4);Wt(e).setUint32(0,t,!0);let r=4;for(;r>1&&0===e[r-1];)r--;return e.subarray(0,r)}function sc({zip64:t,dataDescriptor:e,dataDescriptorSignature:r}){let n,a=M,i=0,s=t?20:12;return r&&(s+=4),e&&(a=new Uint8Array(s),n=Wt(a),r&&(i=4,Tc(n,0,o))),{se:a,ye:n,be:i}}function cc(r){let n=0,a=!1;for(const[,o]of r){const{rawFilename:r,Yt:i,rawComment:s,Xt:c,$t:l,rawExtraField:d,Jt:f,we:p,he:m,Vt:w,uncompressedSize:y,compressedSize:b}=o;let{Zt:g,qt:x}=o;w||(g&&y<t&&(g=o.Zt=!1),x&&b<t&&(x=o.qt=!1)),a=a||g||x;const E=o.offset>=t,v=o.diskNumberStart>=e;let S,z;if(E||v||g||x){const t=4+(g?8:0)+(x?8:0)+(E?8:0)+(v?4:0),e=lc(t);e.Fe(1),e.Fe(t-4),g&&e.Ce(y),x&&e.Ce(b),E&&e.Ce(o.offset),v&&e.Oe(o.diskNumberStart),S=e.ct}else S=M;if(o.Gt=S,o.De=E,o.Ht=v,m===O)z=M;else{const t=lc(9);t.Fe(h),t.Fe(5),t.Be(p),t.Oe(m),z=t.ct}o.Kt=z;const k=Mc(S,i,c,l,z,d,f);if(k>e)throw new Error(ps);n+=u+Mc(r,s)+k}return{Se:n,ze:a}}function lc(t){const e=new Uint8Array(t),r=Wt(e);let n=0;return{ct:e,Be:t=>{!function(t,e,r){t.setUint8(e,r)}(r,n,t),n+=1},Fe:t=>{Ic(r,n,t),n+=2},Oe:t=>{Tc(r,n,t),n+=4},Ce:t=>{Cc(r,n,BigInt(t)),n+=8},Ue:t=>{jc(e,t,n),n+=Mc(t)},Le:t=>n+=t}}function dc(t){const{diskNumber:e=0}=t;return e}function uc(t){const{diskOffset:e=0}=t;return e}function fc(t,e){const{availableSize:r=F}=t;return e>r}function pc(t,{diskNumber:e=0,diskOffset:r=0}){return t.offset-r-(e?t.Ut:0)}function mc(t){const e=Wt(t);let r=0;for(;r+4<=Mc(t);){const n=4+Uc(e,r+2);if(1==Uc(e,r))return mc(Bt(t.subarray(0,r),t.subarray(Math.min(r+n,Mc(t)))));r+=n}return t}async function wc(t,e,r,n){if(n>0){const{writer:a}=t;let o=0;try{await Ec(Pa(e,{offset:r,size:n}),a,O,t=>o+=t)}catch(e){t.hasCorruptedEntries=!0;try{e.corruptedEntry=!0}catch{}throw e}finally{a.size+=o,t.offset+=o}}}async function hc(t,e){const r=await _a(t,e,A);if(Mc(r)<A)return A;const n=Wt(r);return A+Uc(n,26)+Uc(n,28)}function yc(t,{offset:e,diskNumberStart:r}){return e+(t.ht?t.ht(r):0)}function bc(){const t=new Uint8Array(4);return Tc(Wt(t),0,a),t}async function gc(t,e){delete t.Dt,await xc(e,bc()),t.offset+=4}async function xc(t,e){const{writable:r}=t,n=r.getWriter();try{await n.ready,t.size+=Mc(e),await n.write(e)}finally{n.releaseLock()}}async function Ec(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(Mc(t))}}),{preventClose:!0,preventAbort:!0,signal:r})}finally{a.releaseLock()}}function vc(t){if(t){const e=(BigInt(t.getTime())+BigInt(116444736e5))*BigInt(1e4);return e<hs?hs:e>ys?ys:e}}function Sc(t){return Math.floor(t.getTime()/1e3)}function zc(t){return Math.min(ws,Math.max(ms,t))}function kc(t,e,r,n){const a=e[r]===O?t.options[r]:e[r];return a===O?n:a}function Ac(t,e,r,n){const a=kc(t,e,r,n);if(null===a)return n;if(a!==O&&(typeof a.getTime!=I||Number.isNaN(a.getTime())))throw new Error(ns);return a}function Rc(t,e,r){return ut(kc(t,e,r))}function Dc(t,e,r,n){return bt(kc(t,e,r,n))}function Oc(t){return t+5*(Math.floor(t/16383)+1)}function Fc(t,e){return t===O?e===O||e>0:0!==t}function Uc(t,e){return t.getUint16(e,!0)}function Ic(t,e,r){t.setUint16(e,r,!0)}function Tc(t,e,r){t.setUint32(e,r,!0)}function Cc(t,e,r){t.setBigUint64(e,r,!0)}function jc(t,e,r){t.set(e,r)}function Mc(...t){let e=0;return t.forEach(t=>t&&(e+=t.length)),e}function Nc({version:e,bitFlag:r,compressionMethod:n,uncompressedSize:a,compressedSize:o,lastModDate:i,rawLastModDate:s,rawFilename:c,qt:l,Zt:d,extraFieldLength:u}){const f=lc(26),p=f.ct,m=Wt(p);if(f.Fe(e),f.Fe(r),f.Fe(n),s===O){const t=new Uint32Array(1),e=Wt(t);Ic(e,0,(i.getHours()<<6|i.getMinutes())<<5|i.getSeconds()/2),Ic(e,2,(i.getFullYear()-1980<<4|i.getMonth()+1)<<5|i.getDate()),s=t[0]}return f.Oe(s),f.Le(4),l||o!==O?f.Oe(l?t:o):f.Le(4),d||a!==O?f.Oe(d?t:a):f.Le(4),f.Fe(Mc(c)),f.Fe(u),{Lt:p,Wt:m,rawLastModDate:s}}function _c(t){return t.every(t=>t>=32&&t<=126)}function Pc(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 Bc(){const{CompressionStream:t,DecompressionStream:e,CompressionStreamFallback:r,DecompressionStreamFallback:n}=Ut(),a=[{compressionMethod:0,compression:!0,decompression:!0,registered:!1},{compressionMethod:8,compression:Lc(r,gr)||Lc(t,gr)||Lc(t,Er),decompression:Lc(n,gr)||Lc(e,gr)||Lc(e,Er),registered:!1},{compressionMethod:9,compression:!1,decompression:Lc(n,xr)||Lc(e,xr),registered:!1}];for(const t of fr()){const e=pr(t.format);a.push({compressionMethod:t.compressionMethod,compression:e?typeof e.CompressionStream==I:O,decompression:e?typeof e.DecompressionStream==I:O,registered:!0})}return a}function Lc(t,e){if(!t)return!1;const{supportedFormats:r}=t;return r?r.includes(e):Rr(t,e)}const Wc="2.18.2",qc=1048576,Zc=".zip.js-temp";function Vc(t={}){const{thresholdBytes:e=qc,directoryName:r=Zc,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,i,s=0,c=!1;const l=new WritableStream({async write(i){c?await a.write(i):(t.push(i),s+=i.length,s>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(!i){const t=await n.getFile();i=t.stream().getReader()}const{value:t,done:r}=await i.read();r?e.close():e.enqueue(t)}else d<t.length?e.enqueue(t[d++]):e.close()},async cancel(t){i&&await i.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 Hc=1048576;function Gc(t={}){const{thresholdBytes:e=Hc}=t;return function(){const t=[];let r,n,a,o=0,i=!1;const s=new WritableStream({async write(a){i?await r.write(a):(t.push(a),o+=a.length,o>e&&await async function(){const e=new TransformStream;n=tr(e.readable),r=e.writable.getWriter(),i=!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:s,readable:new ReadableStream({async pull(e){if(i){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 Yc=1048576,Kc=".zip.js-temp",Xc="createSyncAccessHandle is only available in dedicated workers";function $c(t={}){const{thresholdBytes:e=Yc,directoryName:r=Kc,getDirectory:n}=t;if(!(n||"undefined"!=typeof FileSystemFileHandle&&FileSystemFileHandle.prototype.createSyncAccessHandle))throw new Error(Xc);const a=n||(()=>navigator.storage.getDirectory());let o;function i(){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,s=0,c=0;const l=new WritableStream({async write(c){o?(n.write(c,{at:s}),s+=c.length):(t.push(c),a+=c.length,a>e&&await async function(){const e=await i();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:s}),s+=e.length;t.length=0}())},close(){n&&n.flush()}});let d=0;const u=new ReadableStream({pull(e){if(o){const t=s-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});return{writable:l,readable:u,dispose:async function(){if(n){try{n.close()}catch{}n=null}if(r){try{const t=await i();await t.removeEntry(r)}catch{}r=null}t.length=0}}}}try{_t({baseURI:import.meta.url})}catch{}const Jc="deflate",Qc="deflate-raw",tl="deflate64-raw",el="gzip",rl=[Jc,Qc,el],nl=[Jc,Qc,el,tl];let al,ol,il,sl,cl;function ll(t,e){return-4===e&&(t.code="Z_MEM_ERROR"),t}function dl(t,e,r={}){if(!(t?rl:nl).includes(e))throw new TypeError("Unsupported format: "+e);if(!al){const t=new Error("WASM module not loaded");throw t.cause=cl,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,i={We:0,in:0,inBufferSize:0,qe:0,Ze:!1};let s,c,l,d,u=!0,f=!1;return function(){try{let r;if(i.We=ol(a),i.in=ol(o),i.inBufferSize=o,!i.We||!i.in)throw ll(new Error("allocation failed"),-4);if(t?(i.Ve=al.deflate_process,i.He=al.deflate_last_consumed,i.Ge=al.deflate_end,i.qe=al.deflate_new(),r=e===el?al.deflate_init_gzip(i.qe,n):e===Qc?al.deflate_init_raw(i.qe,n):al.deflate_init(i.qe,n)):e===tl?(i.Ve=al.inflate9_process,i.He=al.inflate9_last_consumed,i.Ge=al.inflate9_end,i.qe=al.inflate9_new(),r=al.inflate9_init_raw(i.qe)):(i.Ve=al.inflate_process,i.He=al.inflate_last_consumed,i.Ge=al.inflate_end,i.qe=al.inflate_new(),r=e===Qc?al.inflate_init_raw(i.qe):e===el?al.inflate_init_gzip(i.qe):al.inflate_init(i.qe)),0!==r)throw ll(new Error("init failed:"+r),r)}catch(t){throw w(i),t}}(),{readable:new ReadableStream({start(t){s=t},pull(){u=!1,m()},cancel(t){f=!0,d=t,w(i),c.error(t),m()}},{highWaterMark:0}),writable:new WritableStream({start(t){c=t},async write(t){if(u&&await new Promise(t=>l=t),f)throw d;try{!function(t){const e=new Uint8Array(sl.buffer),r=i.Ve,n=i.He,o=i.We;let s=0;for(;s<t.length;){if(i.Ze)throw new Error("trailing data after the end of the stream");const c=Math.min(t.length-s,32768);if((!i.in||i.inBufferSize<c)&&(i.in&&il&&(il(i.in),i.in=0),i.in=ol(c),i.inBufferSize=c,!i.in))throw ll(new Error("allocation failed"),-4);e.set(t.subarray(s,s+c),i.in);const l=r(i.qe,i.in,c,o,a,0),d=l>>24&255,u=128&d?d-256:d;if(u<0)throw ll(new Error("process error:"+u),u);const f=16777215&l;f&&p(e.slice(o,o+f));const m=n(i.qe);if(1===d)i.Ze=!0;else if(0===m&&0===f)break;s+=m}}(t)}catch(t){throw w(i),s.error(t),t}},close(){if(f)return;try{!function(){const t=new Uint8Array(sl.buffer),e=i.Ve,r=i.We;for(;;){const n=e(i.qe,0,0,r,a,4),o=n>>24&255,s=128&o?o-256:o;if(s<0)throw ll(new Error("process error:"+s),s);const c=16777215&n;if(c&&p(t.slice(r,r+c)),1===o||0===c)break}}()}catch(t){throw w(i),s.error(t),t}const t=w(i);if(0!==t){const e=ll(new Error("end error:"+t),t);throw s.error(e),e}s.close()},abort(t){w(i),s.error(t)}},{highWaterMark:1})};function p(t){u=!0,s.enqueue(t)}function m(){if(l){const t=l;l=null,t()}}function w(t){let e=0;return t.qe&&t.Ge&&(e=t.Ge(t.qe)),t.qe=0,t.in&&il&&il(t.in),t.in=0,t.We&&il&&il(t.We),t.We=0,e}}class ul{constructor(t=Jc,e){return dl(!0,t,e)}}class fl{constructor(t=Jc,e){return dl(!1,t,e)}}ul.requiresModule=!0,fl.requiresModule=!0,ul.supportedFormats=rl,fl.supportedFormats=nl;const pl=65536;let ml,wl;function hl(t){return new Uint8Array(t.memory.buffer)}let yl,bl=!1;var gl;async function xl(){await async function(){await Promise.allSettled([Fn(),...En.map(t=>(Tn(t),t.terminate()))]),Yr=O,Kr=!1}(),yl=null,bl=!1,al=ol=il=sl=cl=null,ml=null,wl=0}gl=function(t,e){const r=ml;let n=r?function(t,e,r){wl||(wl=t.malloc(pl));const n=wl?t.aes_hmac_new():0;if(n){const a=hl(t);if(a.set(e,wl),a.set(r,wl+e.length),t.aes_hmac_init(n,wl,e.length,wl+e.length,r.length))return t.aes_hmac_end(n,0),0}return n}(r,t,e):0;if(!n)return pe(t,e);const a=wl;return{process(t,e){for(let o=0;o<t.length;o+=pl){const i=t.subarray(o,o+pl),s=hl(r);s.set(i,a),r.aes_hmac_process(n,a,i.length,e?1:0),i.set(s.subarray(a,a+i.length))}},digest:()=>(r.aes_hmac_end(n,a),n=0,hl(r).slice(a,a+20)),dispose(){n&&(r.aes_hmac_end(n,0),n=0)}}},Ce=gl||pe,function({Ye:t}){$r=t}({Ye:t=>{if(!yl){let{wasmURI:e}=t;typeof e==I&&(e=e()),yl=async function(t,{baseURI:e}){if(!bl)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)}const a=await WebAssembly.instantiate(r);var o;(function(t){if(al=t,({malloc:ol,free:il,memory:sl}=al),"function"!=typeof ol||"function"!=typeof il||!sl)throw al=ol=il=sl=null,new Error("Invalid WASM module")})(a.instance.exports),typeof(o=a.instance.exports).aes_hmac_new==I&&(ml=o,wl=0)}(t,e),bl=!0}catch(t){throw function(t){cl=t}(t),t}}(e,t).catch(t=>{throw yl=null,t})}return yl}}),_t({CompressionStreamFallback:ul,DecompressionStreamFallback:fl}),_t({workerURI:new URL("./zip-web-worker.js",import.meta.url).href,wasmURI:new URL("./zip-module.wasm",import.meta.url).href});const El="Entry filename already exists",vl="Duplicate entry filename in the imported zip file",Sl='Invalid duplicates option (must be "throw", "keep-first" or "keep-last")',zl="Entry is an ancestor of target entry",kl="Root directory cannot be moved",Al="Target entry is not a directory",Rl="Parent entry is not a directory",Dl="Readable stream already consumed",Ol="throw",Fl="keep-first",Ul="keep-last",Il=new Set([Ol,Fl,Ul]),Tl="Invalid passThrough option (use readerOptions.passThrough or set uncompressedSize for each entry)",Cl="Invalid readerOptions (must be an object)",jl="The 'compressed' passThrough option is only supported by Entry#getData() and ZipWriter#add()",Ml="Invalid passwords option (must be an array of strings)",Nl="Invalid requestPassword option (must be a function returning a string or undefined)",_l="zipjs-abort-export",Pl=new Uint8Array(0),Bl=new Set([br,wr,hr]);class Ll{constructor(t,e,r,n){const a=this;if(t.root&&n&&n.getChildByName(e))throw new Error(El);r||(r={}),Object.assign(a,{fs:t,name:e,data:r.data,options:r.options&&Object.assign({},r.options),id:t.Ke++,parent:n,children:[],uncompressedSize:r.uncompressedSize||0,Xe:r.Xe||r.uncompressedSize===O,passThrough:r.passThrough,$e:r.$e||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=gd(t);n&&(t=n.pop(),r=xd(r,n,e));const a=r.getChildByName(t);if(a&&a!=e)throw new Error(El);r!=e.parent&&(Ql(e),e.parent=r,r.children.push(e),yd(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!==O))}}class Wl extends Ll{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 Wl(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===O||(t.constructor==oa?e.type==r:t.constructor!=ea||e.startsWith("data:"+(r||"")+";base64,"))}(t,r.data))return r.data;{const n=r.reader=$l(r.Reader,r.data,e),a=r.uncompressedSize||n.size;await Promise.all([Ma(n),Ma(t,a)]);const o=ft(e.signal),i=function(t,e,r,n){const{onstart:a,onprogress:o,onend:i}=r,{readable:s}=e;return t.data instanceof vo||!a&&!o&&!i?s:Qe(s).pipeThrough(new rn({onstart:a,onprogress:o,onend:i,size:e.size}),{signal:n})}(r,n,e,o),s=!ja(t)&&Boolean(e.preventClose);return r.uncompressedSize=n.size,await Qe(i).pipeTo(er(t.writable),{signal:o,preventClose:s,preventAbort:s}),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(qt(t)&&t.message==ge)return!1;throw t}}getText(t,e){return this.getData(new ca(t),e)}getBlob(t,e){return this.getData(new oa(t),e)}getData64URI(t,e){return this.getData(new ea(t),e)}getUint8Array(t){return this.getData(new Fa,t)}getWritable(t=new WritableStream,e){return this.getData({writable:t},e)}async getArrayBuffer(t){return Lt(await this.getUint8Array(t)).buffer}replaceBlob(t){ld(this,{data:t,Reader:aa,Writer:oa,uncompressedSize:t.size})}replaceText(t){ld(this,{data:t,Reader:ia,Writer:ca,uncompressedSize:sa(t)})}replaceData64URI(t){ld(this,{data:t,Reader:ta,Writer:ea,uncompressedSize:dd(t)})}replaceUint8Array(t){ld(this,{data:t,Reader:Oa,Writer:Fa,uncompressedSize:t.length})}replaceReadable(t){ld(this,{data:null,Reader:Kl(t),Writer:null,uncompressedSize:O})}}class ql extends Ll{constructor(t,e,r,n){super(t,e,r,n),this.directory=!0}clone(t){const e=this,r=new ql(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 bd(this,t,{options:e},!0)}addText(t,e,r={}){return bd(this,t,{data:e,Reader:ia,Writer:ca,options:r,uncompressedSize:sa(e)})}addBlob(t,e,r={}){return bd(this,t,{data:e,Reader:aa,Writer:oa,options:r,uncompressedSize:e.size})}addData64URI(t,e,r={}){return bd(this,t,{data:e,Reader:ta,Writer:ea,options:r,uncompressedSize:dd(e)})}addUint8Array(t,e,r={}){return bd(this,t,{data:e,Reader:Oa,Writer:Fa,options:r,uncompressedSize:e.length})}addHttpContent(t,e,r={}){return bd(this,t,{data:e,Reader:class extends Ra{constructor(t){super(t,r)}},options:r})}addReadable(t,e,r={}){return bd(this,t,{Reader:Kl(e),options:r})}addFileSystemEntry(t,e={}){return pd(this,t,e)}addFileSystemHandle(t,e={}){return pd(this,t,e)}addFile(t,e={}){return(e=Object.assign({},e)).lastModDate||(e.lastModDate=new Date(t.lastModified)),bd(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 aa(t),e)}importData64URI(t,e){return this.importZip(new ta(t),e)}importUint8Array(t,e){return this.importZip(new Oa(t),e)}importHttpContent(t,e){return this.importZip(new Ra(t,e),e)}importReadable(t,e){return this.importZip({readable:t},e)}exportBlob(t={}){return this.exportZip(new oa(t.mimeType||"application/zip"),t)}exportData64URI(t={}){return this.exportZip(new ea(t.mimeType||"application/zip"),t)}exportUint8Array(t={}){return this.exportZip(new Fa,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;cd(r.passThrough),ad(r);const i=nd(r.readerOptions),s=new AbortController,{signal:c}=s,l=function(t,e){if(!ft(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,s),d=Object.assign({},r,i,{signal:c,onstart:O,onprogress:O,onend:O,preventClose:!1}),u=Hl([t],t=>Yl(t,d.passThrough)),f=[];let p=!1,m=0;try{n&&await nn(n,u),await h(t,e),o&&await nn(o,m)}catch(t){try{t.exportedEntryNames=f}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 nn(a,m,u)},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=>!td(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||td(c.reason))return;pt(c)}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(_l):t}f.push(e.getRelativeName(t))}}catch(r){p=!0,s.abort(new Error(_l));try{r.entryName===O&&(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==I?(r=t,e=Object.assign({},r.options,e)):(await Ma(t),r=new pi(t,e)),cd(e.passThrough),ad(e);const n=function(t){if(t===O)return Ol;if(Il.has(t))return t;throw new Error(Sl)}(e.duplicates),a=[],o={Je:[]},i=await r.getEntries(e);for(const t of i){let r=this;try{const i=t.filename.split("/").filter(t=>""!=t&&"."!=t),s=i.pop();let c=!1;for(const t of i){const e=r;if(r=r.getChildByName(t),r){if(!r.directory){if(n==Fl){c=!0;break}if(n!=Ul)throw new Error(vl);this.fs.remove(r),r=new ql(this.fs,t,{data:null},e),a.push(r)}}else r=new ql(this.fs,t,{data:null},e),a.push(r)}if(c)continue;if(t.directory){let e=r;if(s){if(e=r.getChildByName(s),e&&(!e.directory||e.data)){if(n==Fl)continue;if(n!=Ul)throw new Error(vl);e.directory?e.data=t:(this.fs.remove(e),e=O)}e||(e=new ql(this.fs,s,{data:null},r),a.push(e))}e==this||e.data||(e.data=t)}else{const i=r.getChildByName(s);if(i){if(n==Fl)continue;if(n!=Ul)throw new Error(vl);this.fs.remove(i)}a.push(bd(r,s,{data:t,Reader:Xl(Object.assign({},e),o),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,n=Boolean(t)&&typeof t.add==I;e=Object.assign({},e),n||e.bufferedWrite!==O||(e.bufferedWrite=!0);const[a]=await Promise.all([Jl(r,nd(e.readerOptions)),n?O:Ma(t)]),o=n?t:new Vs(t,e);return await async function(t,e,r,n,a){const{onstart:o,onprogress:i,onend:s,onentryprogress:c}=n,l=e,d=Hl(e.children,t=>fd(t)?0:1);let u=0,f=0;if(o&&await nn(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(fd(e))return;const{name:o,Qt:s}=ed(e,l,n);let p=0;const m=await t.add(o,a.get(e),Object.assign(s,{onstart:O,onend:O,onprogress:async t=>{u+=t-p,p=t,i&&await nn(i,u,r)}}));f++,c&&await nn(c,f,d,m)}s&&await nn(s,u)}(o,r,Hl([r],Gl),e,a),n?o:(await o.close(e.globalComment),t.getData?t.getData():t.writable)}async getExportedSize(r={}){const n=this;nd((r=Object.assign({},r)).readerOptions),r.bufferedWrite===O&&(r.bufferedWrite=!0);const a=n.getChildren({recursive:!0}),o=a.filter(t=>!fd(t)).map(t=>{const{name:e,Qt:a}=ed(t,n,r);return{name:e,size:t.directory?0:rd(t,ud(t,r)),options:a}}),i=!r.bufferedWrite||o.every(t=>!1!==t.options.keepOrder)&&a.every(t=>fd(t)||!t.children.length);return await async function(r,n,a,o){const i={options:r};if(ut(r[J]))throw new Error(vs);if(o!==O&&!(o instanceof Uint8Array))throw new Error(ts);const s=Mc(o);if(s>e)throw new Error(Qi);const c=r[X],l=new Map,d=r[K]===O?0:r[K];let u=d,p=F;const m=[],w=new Set;for(const e of n){let{name:r}=e;const{size:n}=e,a=Object.assign({},e.options);kc(i,a,fo)&&!r.endsWith(k)&&(r+=k);const o=Qs(i,r,a);({name:r}=o);const{ee:s}=tc(i,r,a);0==s.level||s.compressionMethod!==O||s.ne||await Jr(Ut())||(s.level=0);const d=!kc(i,a,fo);if(d&&n===O)throw new Error(vs);const{_e:f,ee:h}=rc(i,d,n,s,a);if(d&&!s.ne&&Fc(h.compressionMethod,h.level))throw new Error(vs);const y=Object.assign({},a,o.ee,s,h,{[X]:c}),b=ac(y),g=sc(y),x={le:b,pe:Mc(b.ie,g.se)};c&&oc(x,u);const E=d?f:0;l.set(r,Object.assign({},y,b,{offset:u,diskNumberStart:0,compressedSize:E}));const v=x.pe+E;m.push(v),w.add(Boolean(y.Vt||y.uncompressedSize>=t||E>=t)),p=Math.min(p,v),u+=v}if(l.size>1&&(c||u-p>=t&&(w.size>1||nc(m,d,!0)!=nc(m,d,!1)))&&!a)throw new Error(vs);const{Se:h,ze:y}=cc(l);let b=kc(i,r,io);if(u>=t||h>=t||l.size>=e){if(!1===b)throw new Error(bs);b=!0}else b===O&&y&&(b=!0);return u-d+h+s+(b?98:f)}(r,o,i,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 Zl{constructor(){wd(this)}get children(){return this.root.children}remove(t){Ql(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=O}move(t,e){if(t==this.root)throw new Error(kl);if(!e.directory)throw new Error(Al);if(e.isDescendantOf(t))throw new Error(zl);if(t!=e){const r=e.getChildByName(t.name);if(r){if(r!=t)throw new Error(El)}else Ql(t),t.parent=e,e.children.push(t),yd(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]):O;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 hd(this,r=>r.importBlob(t,e))}importData64URI(t,e){return hd(this,r=>r.importData64URI(t,e))}importUint8Array(t,e){return hd(this,r=>r.importUint8Array(t,e))}importHttpContent(t,e){return hd(this,r=>r.importHttpContent(t,e))}importReadable(t,e){return hd(this,r=>r.importReadable(t,e))}importZip(t,e){return hd(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 Vl={FS:Zl,ZipDirectoryEntry:ql,ZipFileEntry:Wl};function Hl(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 Gl(t){return t.uncompressedSize}function Yl(t,e){const{data:r}=t;return e&&r instanceof vo?r.compressedSize:t.uncompressedSize}function Kl(t){let e;return function(){if(e)throw new Error(Dl);return e=!0,{readable:t}}}function Xl(t,e){return class extends Jn{constructor(t,e={}){super(),this.entry=t,this.options=e}async init(){const r=this,n=Object.assign({},t,r.options),{checkOverlappingEntry:a,checkOverlappingEntryOnly:o}=n,i=await async function(t,e,r){ad(e);const{passwords:n,requestPassword:a,signal:o}=e;if(delete(e=Object.assign({},e)).passwords,delete e.requestPassword,!t.encrypted||e.passThrough||!n&&!a)return t.getData(new oa,e);const i=new Set;let s;for(;;){for(const t of id(e,r,n))if(!i.has(t.key)){const e=await l(t);if(e.done)return e.data;s=e.error}if(!a)break;if(r.Qe){await r.Qe;continue}let o;r.Qe=new Promise(t=>o=t);try{const e=await a(t,s);if(e===O||null===e)break;if(typeof e!=C)throw new Error(Nl);const r=await l(sd(e));if(r.done)return r.data;s=r.error}finally{r.Qe=O,o()}}if(!i.size)throw new Error(Uo);const c=new Error(ge);throw c.cause=s,c;async function l(n){i.add(n.key);const a=Object.assign({},e,n.options);if(t.zipCrypto){a.checkCrc32=!0;try{await t.getData(null,Object.assign({},a,{checkPasswordOnly:!0}))}catch(t){if(od(t))return{done:!1,error:t};throw t}}try{const e=await t.getData(new oa,a);return function(t,e){const{Je:r}=t,n=r.findIndex(t=>t.key===e.key);-1!=n&&r.splice(n,1),r.unshift(e)}(r,n),{done:!0,data:e}}catch(e){if(function(t,e){return Boolean(e&&e.aborted)||qt(t)&&"AbortError"==t.name}(e,o)||!function(t,e){return od(t)||e.zipCrypto&&qt(t)&&Bl.has(t.message)}(e,t))throw e;return{done:!1,error:e}}}}(r.entry,Object.assign(n,{checkPasswordOnly:!1,checkOverlappingEntry:o||a,checkOverlappingEntryOnly:!1,preventClose:!1}),e);r.data=i,r.er=new aa(i),r.size=i.size,super.init()}readUint8Array(t,e){return this.er.readUint8Array(t,e)}}}function $l(t,e,r){return t.prototype?new t(e,r):t(e,r)}async function Jl(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 r=>{const n=r.reader=$l(r.Reader,r.data,e);a.set(r,n);try{await Ma(n)}catch(e){try{e.entry=r,e.entryId=r.id,e.entryName=r.getRelativeName(t)}catch{}throw e}n.size!==O&&(r.uncompressedSize=n.size,r.Xe=!1)})),a}function Ql(t){if(t.parent){const e=t.parent.children;e.forEach((r,n)=>{r.id==t.id&&e.splice(n,1)})}}function td(t){return Boolean(t)&&t.message==_l}function ed(t,e,r){const n=r.relativePath?t.getRelativeName(e):t.getFullname(),a=t.options||{};let o={},i={};if(t.data instanceof vo){const e=ud(t,r),n=a.lastModDate===O?r.lastModDate:a.lastModDate;({Qt:o,te:i}=Js(t.data,e,n)),e&&(i.passThrough=!0)}const s=Object.assign({lastModDate:t.$e},o,r,a,i,{directory:t.directory});if(!t.directory&&s.passThrough&&s.uncompressedSize===O)throw new Error(Tl);return{name:n,Qt:s}}function rd(t,e){const{reader:r}=t;return r&&r.size!==O?r.size:t.Xe?O:Yl(t,e)}function nd(t){if(t&&(typeof t!=T||Array.isArray(t)))throw new Error(Cl);return t&&(cd(t.passThrough),ad(t)),t}function ad(t){const{passwords:e,requestPassword:r}=t;if(e&&(!Array.isArray(e)||e.some(t=>typeof t!=C)))throw new Error(Ml);if(r&&typeof r!=I)throw new Error(Nl)}function od(t){return qt(t)&&t.message==ge}function id(t,e,r){const n=[],{password:a,rawPassword:o}=t;return o&&o.length&&n.push({key:o,options:{password:"",rawPassword:o}}),a&&n.push(sd(a)),n.push(...e.Je),r&&n.push(...r.filter(t=>t).map(sd)),n}function sd(t){return{key:t,options:{password:t,rawPassword:Pl}}}function cd(t){if(wt(t)===ot)throw new Error(jl)}function ld(t,e){const{uncompressedSize:r}=e;Object.assign(t,e,{reader:null,passThrough:O,uncompressedSize:r===O?0:r,Xe:r===O})}function dd(t){let e=t.length;for(;"="==t.charAt(e-1);)e--;const r=t.indexOf(",")+1;return Math.floor(.75*(e-r))}function ud(t,e){const{readerOptions:r}=e;return Boolean(!t.directory&&(t.passThrough||r&&r.passThrough))}function fd(t){return t.directory&&null===t.data}function pd(t,e,r){return async function t(e,n,a,o=""){if(n){const i=o?o+"/"+n.name:n.name;try{if((n.isFile||n.isDirectory)&&(n=await md(n)),"file"==n.kind){const t=await n.getFile();a.push(bd(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,i)}}catch(t){try{t.entryName===O&&(t.entryName=i)}catch{}throw t}}return a}(t,e,[])}async function md(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 md(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 wd(t){t.entries=[],t.Ke=0,t.root=new ql(t)}function hd(t,e){const{entries:r,Ke:n,root:a}=t;return wd(t),e(t.root).catch(e=>{throw Object.assign(t,{entries:r,Ke:n,root:a}),e})}function yd(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 bd(t,e,r,n){if(t.directory){const a=gd(e);return a&&(e=a.pop(),t=xd(t,a)),n?new ql(t.fs,e,r,t):new Wl(t.fs,e,r,t)}throw new Error(Rl)}function gd(t){if(t.includes("/")){const e=t.split("/").filter(t=>""!=t&&"."!=t);if(e.length)return e}}function xd(t,e,r){return e.forEach(e=>{const n=t;if(t=t.getChildByName(e)){if(!t.directory)throw new Error(El);if(r&&(t==r||t.isDescendantOf(r)))throw new Error(zl)}else t=new ql(n.fs,e,{data:null},n)}),t}let Ed;function vd(t){return t&&(Ed||(Ed=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 i=r.replace(/!/g,"+xml"),s=e.length>1?e.slice(1):[i.split("+")[0]];for(const e of s)t[e]=n+"/"+i}}return t}()),Ed)[t.split(".").pop().toLowerCase()]||"application/octet-stream"}export{aa as BlobReader,oa as BlobWriter,ta as Data64URIReader,ea as Data64URIWriter,dt as ERR_ABORTED,Mo as ERR_AMBIGUOUS_ARCHIVE,zl as ERR_ANCESTOR_ENTRY,ko as ERR_BAD_FORMAT,Do as ERR_CENTRAL_DIRECTORY_NOT_FOUND,yr as ERR_CODEC_OUT_OF_MEMORY,Ji as ERR_DUPLICATED_NAME,vl as ERR_DUPLICATE_IMPORTED_ENTRY,Uo as ERR_ENCRYPTED,No as ERR_ENCRYPTED_CENTRAL_DIRECTORY,jo as ERR_ENTRY_DATA_OUT_OF_BOUNDS,El as ERR_ENTRY_EXISTS,Ro as ERR_EOCDR_LOCATOR_ZIP64_NOT_FOUND,Ao as ERR_EOCDR_NOT_FOUND,Fo as ERR_EXTRAFIELD_ZIP64_NOT_FOUND,Pn as ERR_HTTP_RANGE,Bn as ERR_HTTP_RESOURCE_CHANGED,_n as ERR_HTTP_STATUS,xe as ERR_INVALID_AUTHENTICATION_CODE,xt as ERR_INVALID_BASE_URI,rr as ERR_INVALID_CODEC_DEFINITION,ar as ERR_INVALID_CODEC_MODULE,Qi as ERR_INVALID_COMMENT,ts as ERR_INVALID_COMMENT_TYPE,hr as ERR_INVALID_COMPRESSED_DATA,br as ERR_INVALID_CRC32,ns as ERR_INVALID_DATE,Sl as ERR_INVALID_DUPLICATES,is as ERR_INVALID_ENCRYPTION_STRENGTH,js as ERR_INVALID_ENTRY,es as ERR_INVALID_ENTRY_COMMENT,rs as ERR_INVALID_ENTRY_COMMENT_TYPE,as as ERR_INVALID_ENTRY_NAME,ds as ERR_INVALID_EXTRAFIELD,ps as ERR_INVALID_EXTRAFIELD_DATA,fs as ERR_INVALID_EXTRAFIELD_DATA_TYPE,us as ERR_INVALID_EXTRAFIELD_TYPE,Bo as ERR_INVALID_FILENAME_VALIDATION,it as ERR_INVALID_FUNCTION_OPTION,Rs as ERR_INVALID_GID,Ts as ERR_INVALID_LEVEL,Lo as ERR_INVALID_MAX_APPENDED_DATA_SIZE,gt as ERR_INVALID_MAX_WORKERS,Us as ERR_INVALID_MSDOS_ATTRIBUTES,Is as ERR_INVALID_MSDOS_DATA,ge as ERR_INVALID_PASSWORD,Ml as ERR_INVALID_PASSWORDS,ct as ERR_INVALID_PASSWORD_TYPE,Tl as ERR_INVALID_PASS_THROUGH,lt as ERR_INVALID_PASS_THROUGH_VALUE,zs as ERR_INVALID_READER,Cl as ERR_INVALID_READER_OPTIONS,Nl as ERR_INVALID_REQUEST_PASSWORD,st as ERR_INVALID_SIGNAL,Cs as ERR_INVALID_SIGNATURE_DATA,Po as ERR_INVALID_STRICTNESS,As as ERR_INVALID_UID,wr as ERR_INVALID_UNCOMPRESSED_SIZE,Os as ERR_INVALID_UNIX_EXTRA_FIELD_TYPE,Fs as ERR_INVALID_UNIX_ID_SIZE,Ds as ERR_INVALID_UNIX_MODE,Et as ERR_INVALID_URI,os as ERR_INVALID_VERSION,Ln as ERR_ITERATOR_COMPLETED_TOO_SOON,Oo as ERR_LOCAL_FILE_HEADER_NOT_FOUND,Co as ERR_OVERLAPPING_ENTRY,Rl as ERR_PARENT_NOT_DIRECTORY,Dl as ERR_READABLE_CONSUMED,nr as ERR_RESERVED_COMPRESSION_METHOD,kl as ERR_ROOT_DIRECTORY_NOT_MOVABLE,To as ERR_SPLIT_ZIP_FILE,Al as ERR_TARGET_NOT_DIRECTORY,xs as ERR_UNDEFINED_COMPRESSION_METHOD,Es as ERR_UNDEFINED_CRC32,Ss as ERR_UNDEFINED_READER,gs as ERR_UNDEFINED_UNCOMPRESSED_SIZE,vs as ERR_UNDETERMINED_SIZE,_o as ERR_UNSAFE_FILENAME,or as ERR_UNSUPPORTED_COMPRESSION,Xc as ERR_UNSUPPORTED_CONTEXT,ve as ERR_UNSUPPORTED_CRYPTO_API,Io as ERR_UNSUPPORTED_ENCRYPTION,ls as ERR_UNSUPPORTED_ENCRYPTION_PASS_THROUGH,ss as ERR_UNSUPPORTED_ENCRYPTION_USDZ,bs as ERR_UNSUPPORTED_FORMAT,jl as ERR_UNSUPPORTED_PASS_THROUGH_VALUE,cs as ERR_UNSUPPORTED_SPLIT_USDZ,Wo as ERR_UNSUPPORTED_UINT64,Gr as ERR_WORKER_STARTUP_TIMEOUT,Wn as ERR_WRITER_NOT_INITIALIZED,qn as ERR_WRITER_SIZE_NOT_WRITABLE,Ms as ERR_ZIP_CRYPTO_LAST_MOD_DATE,ks as ERR_ZIP_NOT_EMPTY,Da as HttpRangeReader,Ra as HttpReader,Jn as Reader,Ua as SplitDataReader,Ia as SplitDataWriter,ia as TextReader,ca as TextWriter,Oa as Uint8ArrayReader,Fa as Uint8ArrayWriter,Wc as VERSION,Ko as WARNING_APPENDED_DATA,_s as WARNING_CLAMPED_LAST_MODIFICATION_DATE,Vo as WARNING_COMPRESSED_PATCHED_DATA,Ns as WARNING_COMPRESSION_UNAVAILABLE,Qo as WARNING_DUPLICATE_FILENAME,Ho as WARNING_MALFORMED_EXTRA_FIELD,ni as WARNING_MISMATCHED_LOCAL_FILE_HEADER_BIT_FLAG,ai as WARNING_MISMATCHED_LOCAL_FILE_HEADER_COMPRESSION_METHOD,oi as WARNING_MISMATCHED_LOCAL_FILE_HEADER_CRC32_OR_SIZES,ri as WARNING_MISMATCHED_LOCAL_FILE_HEADER_FILENAME,ti as WARNING_MISMATCHED_ZIP64_END_OF_CENTRAL_DIRECTORY,ei as WARNING_MULTIPLE_END_OF_CENTRAL_DIRECTORY,$o as WARNING_PREPENDED_CENTRAL_DIRECTORY,Xo as WARNING_PREPENDED_DATA,Jo as WARNING_TRAILING_CENTRAL_DIRECTORY_DATA,Zo as WARNING_UNKNOWN_VERSION,Go as WARNING_UNKNOWN_ZIP64_EXTENSIBLE_DATA,qo as WARNING_UNSORTED_CENTRAL_DIRECTORY,Yo as WARNING_WRAPPED_ENTRIES_COUNT,Qn as Writer,ql as ZipDirectoryEntry,Ll as ZipEntry,Zl as ZipFS,Wl as ZipFileEntry,pi as ZipReader,mi as ZipReaderStream,Vs as ZipWriter,Hs as ZipWriterStream,Ct as configure,Gc as createBlobTempStream,Vc as createOPFSTempStream,$c as createSyncAccessHandleTempStream,Vl as fs,vd as getMimeType,fr as getRegisteredCodecs,Bc as getSupportedCompressionMethods,wi as isZipFile,lr as registerCodec,Pt as resetConfiguration,xl as terminateWorkers,dr as unregisterCodec};
|