@itk-wasm/image-io
Version:
Input and output for scientific and medical image file formats.
18 lines (16 loc) • 562 kB
HTML
<!DOCTYPE html>
<html style='scrollbar-gutter: stable both-edges;'>
<head>
<meta charset='UTF-8'>
<meta name='color-scheme' content='dark light'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Playwright Test Report</title>
<script type="module">var oA=Object.defineProperty;var dA=(u,i,c)=>i in u?oA(u,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):u[i]=c;var dn=(u,i,c)=>dA(u,typeof i!="symbol"?i+"":i,c);(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))f(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const d of o.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&f(d)}).observe(document,{childList:!0,subtree:!0});function c(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function f(r){if(r.ep)return;r.ep=!0;const o=c(r);fetch(r.href,o)}})();function hA(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var pf={exports:{}},Ai={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var d1;function gA(){if(d1)return Ai;d1=1;var u=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(f,r,o){var d=null;if(o!==void 0&&(d=""+o),r.key!==void 0&&(d=""+r.key),"key"in r){o={};for(var y in r)y!=="key"&&(o[y]=r[y])}else o=r;return r=o.ref,{$$typeof:u,type:f,key:d,ref:r!==void 0?r:null,props:o}}return Ai.Fragment=i,Ai.jsx=c,Ai.jsxs=c,Ai}var h1;function mA(){return h1||(h1=1,pf.exports=gA()),pf.exports}var m=mA();const AA=15,bt=0,mn=1,vA=2,me=-2,Ht=-3,g1=-4,An=-5,we=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],S2=1440,yA=0,EA=4,bA=9,pA=5,xA=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],SA=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],TA=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],wA=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],RA=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],OA=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],qn=15;function Xf(){const u=this;let i,c,f,r,o,d;function y(A,E,w,R,z,N,x,p,T,D,U){let I,V,j,G,L,W,F,K,et,tt,ot,at,M,_,$;tt=0,L=w;do f[A[E+tt]]++,tt++,L--;while(L!==0);if(f[0]==w)return x[0]=-1,p[0]=0,bt;for(K=p[0],W=1;W<=qn&&f[W]===0;W++);for(F=W,K<W&&(K=W),L=qn;L!==0&&f[L]===0;L--);for(j=L,K>L&&(K=L),p[0]=K,_=1<<W;W<L;W++,_<<=1)if((_-=f[W])<0)return Ht;if((_-=f[L])<0)return Ht;for(f[L]+=_,d[1]=W=0,tt=1,M=2;--L!==0;)d[M]=W+=f[tt],M++,tt++;L=0,tt=0;do(W=A[E+tt])!==0&&(U[d[W]++]=L),tt++;while(++L<w);for(w=d[j],d[0]=L=0,tt=0,G=-1,at=-K,o[0]=0,ot=0,$=0;F<=j;F++)for(I=f[F];I--!==0;){for(;F>at+K;){if(G++,at+=K,$=j-at,$=$>K?K:$,(V=1<<(W=F-at))>I+1&&(V-=I+1,M=F,W<$))for(;++W<$&&!((V<<=1)<=f[++M]);)V-=f[M];if($=1<<W,D[0]+$>S2)return Ht;o[G]=ot=D[0],D[0]+=$,G!==0?(d[G]=L,r[0]=W,r[1]=K,W=L>>>at-K,r[2]=ot-o[G-1]-W,T.set(r,(o[G-1]+W)*3)):x[0]=ot}for(r[1]=F-at,tt>=w?r[0]=192:U[tt]<R?(r[0]=U[tt]<256?0:96,r[2]=U[tt++]):(r[0]=N[U[tt]-R]+16+64,r[2]=z[U[tt++]-R]),V=1<<F-at,W=L>>>at;W<$;W+=V)T.set(r,(ot+W)*3);for(W=1<<F-1;(L&W)!==0;W>>>=1)L^=W;for(L^=W,et=(1<<at)-1;(L&et)!=d[G];)G--,at-=K,et=(1<<at)-1}return _!==0&&j!=1?An:bt}function v(A){let E;for(i||(i=[],c=[],f=new Int32Array(qn+1),r=[],o=new Int32Array(qn),d=new Int32Array(qn+1)),c.length<A&&(c=[]),E=0;E<A;E++)c[E]=0;for(E=0;E<qn+1;E++)f[E]=0;for(E=0;E<3;E++)r[E]=0;o.set(f.subarray(0,qn),0),d.set(f.subarray(0,qn+1),0)}u.inflate_trees_bits=function(A,E,w,R,z){let N;return v(19),i[0]=0,N=y(A,0,19,19,null,null,w,E,R,i,c),N==Ht?z.msg="oversubscribed dynamic bit lengths tree":(N==An||E[0]===0)&&(z.msg="incomplete dynamic bit lengths tree",N=Ht),N},u.inflate_trees_dynamic=function(A,E,w,R,z,N,x,p,T){let D;return v(288),i[0]=0,D=y(w,0,A,257,TA,wA,N,R,p,i,c),D!=bt||R[0]===0?(D==Ht?T.msg="oversubscribed literal/length tree":D!=g1&&(T.msg="incomplete literal/length tree",D=Ht),D):(v(288),D=y(w,A,E,0,RA,OA,x,z,p,i,c),D!=bt||z[0]===0&&A>257?(D==Ht?T.msg="oversubscribed distance tree":D==An?(T.msg="incomplete distance tree",D=Ht):D!=g1&&(T.msg="empty distance tree with lengths",D=Ht),D):bt)}}Xf.inflate_trees_fixed=function(u,i,c,f){return u[0]=bA,i[0]=pA,c[0]=xA,f[0]=SA,bt};const ku=0,m1=1,A1=2,v1=3,y1=4,E1=5,b1=6,xf=7,p1=8,Ku=9;function DA(){const u=this;let i,c=0,f,r=0,o=0,d=0,y=0,v=0,A=0,E=0,w,R=0,z,N=0;function x(p,T,D,U,I,V,j,G){let L,W,F,K,et,tt,ot,at,M,_,$,dt,b,q,P,J;ot=G.next_in_index,at=G.avail_in,et=j.bitb,tt=j.bitk,M=j.write,_=M<j.read?j.read-M-1:j.end-M,$=we[p],dt=we[T];do{for(;tt<20;)at--,et|=(G.read_byte(ot++)&255)<<tt,tt+=8;if(L=et&$,W=D,F=U,J=(F+L)*3,(K=W[J])===0){et>>=W[J+1],tt-=W[J+1],j.win[M++]=W[J+2],_--;continue}do{if(et>>=W[J+1],tt-=W[J+1],(K&16)!==0){for(K&=15,b=W[J+2]+(et&we[K]),et>>=K,tt-=K;tt<15;)at--,et|=(G.read_byte(ot++)&255)<<tt,tt+=8;L=et&dt,W=I,F=V,J=(F+L)*3,K=W[J];do if(et>>=W[J+1],tt-=W[J+1],(K&16)!==0){for(K&=15;tt<K;)at--,et|=(G.read_byte(ot++)&255)<<tt,tt+=8;if(q=W[J+2]+(et&we[K]),et>>=K,tt-=K,_-=b,M>=q)P=M-q,M-P>0&&2>M-P?(j.win[M++]=j.win[P++],j.win[M++]=j.win[P++],b-=2):(j.win.set(j.win.subarray(P,P+2),M),M+=2,P+=2,b-=2);else{P=M-q;do P+=j.end;while(P<0);if(K=j.end-P,b>K){if(b-=K,M-P>0&&K>M-P)do j.win[M++]=j.win[P++];while(--K!==0);else j.win.set(j.win.subarray(P,P+K),M),M+=K,P+=K,K=0;P=0}}if(M-P>0&&b>M-P)do j.win[M++]=j.win[P++];while(--b!==0);else j.win.set(j.win.subarray(P,P+b),M),M+=b,P+=b,b=0;break}else if((K&64)===0)L+=W[J+2],L+=et&we[K],J=(F+L)*3,K=W[J];else return G.msg="invalid distance code",b=G.avail_in-at,b=tt>>3<b?tt>>3:b,at+=b,ot-=b,tt-=b<<3,j.bitb=et,j.bitk=tt,G.avail_in=at,G.total_in+=ot-G.next_in_index,G.next_in_index=ot,j.write=M,Ht;while(!0);break}if((K&64)===0){if(L+=W[J+2],L+=et&we[K],J=(F+L)*3,(K=W[J])===0){et>>=W[J+1],tt-=W[J+1],j.win[M++]=W[J+2],_--;break}}else return(K&32)!==0?(b=G.avail_in-at,b=tt>>3<b?tt>>3:b,at+=b,ot-=b,tt-=b<<3,j.bitb=et,j.bitk=tt,G.avail_in=at,G.total_in+=ot-G.next_in_index,G.next_in_index=ot,j.write=M,mn):(G.msg="invalid literal/length code",b=G.avail_in-at,b=tt>>3<b?tt>>3:b,at+=b,ot-=b,tt-=b<<3,j.bitb=et,j.bitk=tt,G.avail_in=at,G.total_in+=ot-G.next_in_index,G.next_in_index=ot,j.write=M,Ht)}while(!0)}while(_>=258&&at>=10);return b=G.avail_in-at,b=tt>>3<b?tt>>3:b,at+=b,ot-=b,tt-=b<<3,j.bitb=et,j.bitk=tt,G.avail_in=at,G.total_in+=ot-G.next_in_index,G.next_in_index=ot,j.write=M,bt}u.init=function(p,T,D,U,I,V){i=ku,A=p,E=T,w=D,R=U,z=I,N=V,f=null},u.proc=function(p,T,D){let U,I,V,j=0,G=0,L=0,W,F,K,et;for(L=T.next_in_index,W=T.avail_in,j=p.bitb,G=p.bitk,F=p.write,K=F<p.read?p.read-F-1:p.end-F;;)switch(i){case ku:if(K>=258&&W>=10&&(p.bitb=j,p.bitk=G,T.avail_in=W,T.total_in+=L-T.next_in_index,T.next_in_index=L,p.write=F,D=x(A,E,w,R,z,N,p,T),L=T.next_in_index,W=T.avail_in,j=p.bitb,G=p.bitk,F=p.write,K=F<p.read?p.read-F-1:p.end-F,D!=bt)){i=D==mn?xf:Ku;break}o=A,f=w,r=R,i=m1;case m1:for(U=o;G<U;){if(W!==0)D=bt;else return p.bitb=j,p.bitk=G,T.avail_in=W,T.total_in+=L-T.next_in_index,T.next_in_index=L,p.write=F,p.inflate_flush(T,D);W--,j|=(T.read_byte(L++)&255)<<G,G+=8}if(I=(r+(j&we[U]))*3,j>>>=f[I+1],G-=f[I+1],V=f[I],V===0){d=f[I+2],i=b1;break}if((V&16)!==0){y=V&15,c=f[I+2],i=A1;break}if((V&64)===0){o=V,r=I/3+f[I+2];break}if((V&32)!==0){i=xf;break}return i=Ku,T.msg="invalid literal/length code",D=Ht,p.bitb=j,p.bitk=G,T.avail_in=W,T.total_in+=L-T.next_in_index,T.next_in_index=L,p.write=F,p.inflate_flush(T,D);case A1:for(U=y;G<U;){if(W!==0)D=bt;else return p.bitb=j,p.bitk=G,T.avail_in=W,T.total_in+=L-T.next_in_index,T.next_in_index=L,p.write=F,p.inflate_flush(T,D);W--,j|=(T.read_byte(L++)&255)<<G,G+=8}c+=j&we[U],j>>=U,G-=U,o=E,f=z,r=N,i=v1;case v1:for(U=o;G<U;){if(W!==0)D=bt;else return p.bitb=j,p.bitk=G,T.avail_in=W,T.total_in+=L-T.next_in_index,T.next_in_index=L,p.write=F,p.inflate_flush(T,D);W--,j|=(T.read_byte(L++)&255)<<G,G+=8}if(I=(r+(j&we[U]))*3,j>>=f[I+1],G-=f[I+1],V=f[I],(V&16)!==0){y=V&15,v=f[I+2],i=y1;break}if((V&64)===0){o=V,r=I/3+f[I+2];break}return i=Ku,T.msg="invalid distance code",D=Ht,p.bitb=j,p.bitk=G,T.avail_in=W,T.total_in+=L-T.next_in_index,T.next_in_index=L,p.write=F,p.inflate_flush(T,D);case y1:for(U=y;G<U;){if(W!==0)D=bt;else return p.bitb=j,p.bitk=G,T.avail_in=W,T.total_in+=L-T.next_in_index,T.next_in_index=L,p.write=F,p.inflate_flush(T,D);W--,j|=(T.read_byte(L++)&255)<<G,G+=8}v+=j&we[U],j>>=U,G-=U,i=E1;case E1:for(et=F-v;et<0;)et+=p.end;for(;c!==0;){if(K===0&&(F==p.end&&p.read!==0&&(F=0,K=F<p.read?p.read-F-1:p.end-F),K===0&&(p.write=F,D=p.inflate_flush(T,D),F=p.write,K=F<p.read?p.read-F-1:p.end-F,F==p.end&&p.read!==0&&(F=0,K=F<p.read?p.read-F-1:p.end-F),K===0)))return p.bitb=j,p.bitk=G,T.avail_in=W,T.total_in+=L-T.next_in_index,T.next_in_index=L,p.write=F,p.inflate_flush(T,D);p.win[F++]=p.win[et++],K--,et==p.end&&(et=0),c--}i=ku;break;case b1:if(K===0&&(F==p.end&&p.read!==0&&(F=0,K=F<p.read?p.read-F-1:p.end-F),K===0&&(p.write=F,D=p.inflate_flush(T,D),F=p.write,K=F<p.read?p.read-F-1:p.end-F,F==p.end&&p.read!==0&&(F=0,K=F<p.read?p.read-F-1:p.end-F),K===0)))return p.bitb=j,p.bitk=G,T.avail_in=W,T.total_in+=L-T.next_in_index,T.next_in_index=L,p.write=F,p.inflate_flush(T,D);D=bt,p.win[F++]=d,K--,i=ku;break;case xf:if(G>7&&(G-=8,W++,L--),p.write=F,D=p.inflate_flush(T,D),F=p.write,K=F<p.read?p.read-F-1:p.end-F,p.read!=p.write)return p.bitb=j,p.bitk=G,T.avail_in=W,T.total_in+=L-T.next_in_index,T.next_in_index=L,p.write=F,p.inflate_flush(T,D);i=p1;case p1:return D=mn,p.bitb=j,p.bitk=G,T.avail_in=W,T.total_in+=L-T.next_in_index,T.next_in_index=L,p.write=F,p.inflate_flush(T,D);case Ku:return D=Ht,p.bitb=j,p.bitk=G,T.avail_in=W,T.total_in+=L-T.next_in_index,T.next_in_index=L,p.write=F,p.inflate_flush(T,D);default:return D=me,p.bitb=j,p.bitk=G,T.avail_in=W,T.total_in+=L-T.next_in_index,T.next_in_index=L,p.write=F,p.inflate_flush(T,D)}},u.free=function(){}}const x1=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],hl=0,Sf=1,S1=2,T1=3,w1=4,R1=5,Wu=6,Fu=7,O1=8,pa=9;function CA(u,i){const c=this;let f=hl,r=0,o=0,d=0,y;const v=[0],A=[0],E=new DA;let w=0,R=new Int32Array(S2*3);const z=0,N=new Xf;c.bitk=0,c.bitb=0,c.win=new Uint8Array(i),c.end=i,c.read=0,c.write=0,c.reset=function(x,p){p&&(p[0]=z),f==Wu&&E.free(x),f=hl,c.bitk=0,c.bitb=0,c.read=c.write=0},c.reset(u,null),c.inflate_flush=function(x,p){let T,D,U;return D=x.next_out_index,U=c.read,T=(U<=c.write?c.write:c.end)-U,T>x.avail_out&&(T=x.avail_out),T!==0&&p==An&&(p=bt),x.avail_out-=T,x.total_out+=T,x.next_out.set(c.win.subarray(U,U+T),D),D+=T,U+=T,U==c.end&&(U=0,c.write==c.end&&(c.write=0),T=c.write-U,T>x.avail_out&&(T=x.avail_out),T!==0&&p==An&&(p=bt),x.avail_out-=T,x.total_out+=T,x.next_out.set(c.win.subarray(U,U+T),D),D+=T,U+=T),x.next_out_index=D,c.read=U,p},c.proc=function(x,p){let T,D,U,I,V,j,G,L;for(I=x.next_in_index,V=x.avail_in,D=c.bitb,U=c.bitk,j=c.write,G=j<c.read?c.read-j-1:c.end-j;;){let W,F,K,et,tt,ot,at,M;switch(f){case hl:for(;U<3;){if(V!==0)p=bt;else return c.bitb=D,c.bitk=U,x.avail_in=V,x.total_in+=I-x.next_in_index,x.next_in_index=I,c.write=j,c.inflate_flush(x,p);V--,D|=(x.read_byte(I++)&255)<<U,U+=8}switch(T=D&7,w=T&1,T>>>1){case 0:D>>>=3,U-=3,T=U&7,D>>>=T,U-=T,f=Sf;break;case 1:W=[],F=[],K=[[]],et=[[]],Xf.inflate_trees_fixed(W,F,K,et),E.init(W[0],F[0],K[0],0,et[0],0),D>>>=3,U-=3,f=Wu;break;case 2:D>>>=3,U-=3,f=T1;break;case 3:return D>>>=3,U-=3,f=pa,x.msg="invalid block type",p=Ht,c.bitb=D,c.bitk=U,x.avail_in=V,x.total_in+=I-x.next_in_index,x.next_in_index=I,c.write=j,c.inflate_flush(x,p)}break;case Sf:for(;U<32;){if(V!==0)p=bt;else return c.bitb=D,c.bitk=U,x.avail_in=V,x.total_in+=I-x.next_in_index,x.next_in_index=I,c.write=j,c.inflate_flush(x,p);V--,D|=(x.read_byte(I++)&255)<<U,U+=8}if((~D>>>16&65535)!=(D&65535))return f=pa,x.msg="invalid stored block lengths",p=Ht,c.bitb=D,c.bitk=U,x.avail_in=V,x.total_in+=I-x.next_in_index,x.next_in_index=I,c.write=j,c.inflate_flush(x,p);r=D&65535,D=U=0,f=r!==0?S1:w!==0?Fu:hl;break;case S1:if(V===0||G===0&&(j==c.end&&c.read!==0&&(j=0,G=j<c.read?c.read-j-1:c.end-j),G===0&&(c.write=j,p=c.inflate_flush(x,p),j=c.write,G=j<c.read?c.read-j-1:c.end-j,j==c.end&&c.read!==0&&(j=0,G=j<c.read?c.read-j-1:c.end-j),G===0)))return c.bitb=D,c.bitk=U,x.avail_in=V,x.total_in+=I-x.next_in_index,x.next_in_index=I,c.write=j,c.inflate_flush(x,p);if(p=bt,T=r,T>V&&(T=V),T>G&&(T=G),c.win.set(x.read_buf(I,T),j),I+=T,V-=T,j+=T,G-=T,(r-=T)!==0)break;f=w!==0?Fu:hl;break;case T1:for(;U<14;){if(V!==0)p=bt;else return c.bitb=D,c.bitk=U,x.avail_in=V,x.total_in+=I-x.next_in_index,x.next_in_index=I,c.write=j,c.inflate_flush(x,p);V--,D|=(x.read_byte(I++)&255)<<U,U+=8}if(o=T=D&16383,(T&31)>29||(T>>5&31)>29)return f=pa,x.msg="too many length or distance symbols",p=Ht,c.bitb=D,c.bitk=U,x.avail_in=V,x.total_in+=I-x.next_in_index,x.next_in_index=I,c.write=j,c.inflate_flush(x,p);if(T=258+(T&31)+(T>>5&31),!y||y.length<T)y=[];else for(L=0;L<T;L++)y[L]=0;D>>>=14,U-=14,d=0,f=w1;case w1:for(;d<4+(o>>>10);){for(;U<3;){if(V!==0)p=bt;else return c.bitb=D,c.bitk=U,x.avail_in=V,x.total_in+=I-x.next_in_index,x.next_in_index=I,c.write=j,c.inflate_flush(x,p);V--,D|=(x.read_byte(I++)&255)<<U,U+=8}y[x1[d++]]=D&7,D>>>=3,U-=3}for(;d<19;)y[x1[d++]]=0;if(v[0]=7,T=N.inflate_trees_bits(y,v,A,R,x),T!=bt)return p=T,p==Ht&&(y=null,f=pa),c.bitb=D,c.bitk=U,x.avail_in=V,x.total_in+=I-x.next_in_index,x.next_in_index=I,c.write=j,c.inflate_flush(x,p);d=0,f=R1;case R1:for(;T=o,!(d>=258+(T&31)+(T>>5&31));){let _,$;for(T=v[0];U<T;){if(V!==0)p=bt;else return c.bitb=D,c.bitk=U,x.avail_in=V,x.total_in+=I-x.next_in_index,x.next_in_index=I,c.write=j,c.inflate_flush(x,p);V--,D|=(x.read_byte(I++)&255)<<U,U+=8}if(T=R[(A[0]+(D&we[T]))*3+1],$=R[(A[0]+(D&we[T]))*3+2],$<16)D>>>=T,U-=T,y[d++]=$;else{for(L=$==18?7:$-14,_=$==18?11:3;U<T+L;){if(V!==0)p=bt;else return c.bitb=D,c.bitk=U,x.avail_in=V,x.total_in+=I-x.next_in_index,x.next_in_index=I,c.write=j,c.inflate_flush(x,p);V--,D|=(x.read_byte(I++)&255)<<U,U+=8}if(D>>>=T,U-=T,_+=D&we[L],D>>>=L,U-=L,L=d,T=o,L+_>258+(T&31)+(T>>5&31)||$==16&&L<1)return y=null,f=pa,x.msg="invalid bit length repeat",p=Ht,c.bitb=D,c.bitk=U,x.avail_in=V,x.total_in+=I-x.next_in_index,x.next_in_index=I,c.write=j,c.inflate_flush(x,p);$=$==16?y[L-1]:0;do y[L++]=$;while(--_!==0);d=L}}if(A[0]=-1,tt=[],ot=[],at=[],M=[],tt[0]=9,ot[0]=6,T=o,T=N.inflate_trees_dynamic(257+(T&31),1+(T>>5&31),y,tt,ot,at,M,R,x),T!=bt)return T==Ht&&(y=null,f=pa),p=T,c.bitb=D,c.bitk=U,x.avail_in=V,x.total_in+=I-x.next_in_index,x.next_in_index=I,c.write=j,c.inflate_flush(x,p);E.init(tt[0],ot[0],R,at[0],R,M[0]),f=Wu;case Wu:if(c.bitb=D,c.bitk=U,x.avail_in=V,x.total_in+=I-x.next_in_index,x.next_in_index=I,c.write=j,(p=E.proc(c,x,p))!=mn)return c.inflate_flush(x,p);if(p=bt,E.free(x),I=x.next_in_index,V=x.avail_in,D=c.bitb,U=c.bitk,j=c.write,G=j<c.read?c.read-j-1:c.end-j,w===0){f=hl;break}f=Fu;case Fu:if(c.write=j,p=c.inflate_flush(x,p),j=c.write,G=j<c.read?c.read-j-1:c.end-j,c.read!=c.write)return c.bitb=D,c.bitk=U,x.avail_in=V,x.total_in+=I-x.next_in_index,x.next_in_index=I,c.write=j,c.inflate_flush(x,p);f=O1;case O1:return p=mn,c.bitb=D,c.bitk=U,x.avail_in=V,x.total_in+=I-x.next_in_index,x.next_in_index=I,c.write=j,c.inflate_flush(x,p);case pa:return p=Ht,c.bitb=D,c.bitk=U,x.avail_in=V,x.total_in+=I-x.next_in_index,x.next_in_index=I,c.write=j,c.inflate_flush(x,p);default:return p=me,c.bitb=D,c.bitk=U,x.avail_in=V,x.total_in+=I-x.next_in_index,x.next_in_index=I,c.write=j,c.inflate_flush(x,p)}}},c.free=function(x){c.reset(x,null),c.win=null,R=null},c.set_dictionary=function(x,p,T){c.win.set(x.subarray(p,p+T),0),c.read=c.write=T},c.sync_point=function(){return f==Sf?1:0}}const MA=32,jA=8,HA=0,D1=1,C1=2,M1=3,j1=4,H1=5,Tf=6,vi=7,N1=12,kn=13,NA=[0,0,255,255];function BA(){const u=this;u.mode=0,u.method=0,u.was=[0],u.need=0,u.marker=0,u.wbits=0;function i(c){return!c||!c.istate?me:(c.total_in=c.total_out=0,c.msg=null,c.istate.mode=vi,c.istate.blocks.reset(c,null),bt)}u.inflateEnd=function(c){return u.blocks&&u.blocks.free(c),u.blocks=null,bt},u.inflateInit=function(c,f){return c.msg=null,u.blocks=null,f<8||f>15?(u.inflateEnd(c),me):(u.wbits=f,c.istate.blocks=new CA(c,1<<f),i(c),bt)},u.inflate=function(c,f){let r,o;if(!c||!c.istate||!c.next_in)return me;const d=c.istate;for(f=f==EA?An:bt,r=An;;)switch(d.mode){case HA:if(c.avail_in===0)return r;if(r=f,c.avail_in--,c.total_in++,((d.method=c.read_byte(c.next_in_index++))&15)!=jA){d.mode=kn,c.msg="unknown compression method",d.marker=5;break}if((d.method>>4)+8>d.wbits){d.mode=kn,c.msg="invalid win size",d.marker=5;break}d.mode=D1;case D1:if(c.avail_in===0)return r;if(r=f,c.avail_in--,c.total_in++,o=c.read_byte(c.next_in_index++)&255,((d.method<<8)+o)%31!==0){d.mode=kn,c.msg="incorrect header check",d.marker=5;break}if((o&MA)===0){d.mode=vi;break}d.mode=C1;case C1:if(c.avail_in===0)return r;r=f,c.avail_in--,c.total_in++,d.need=(c.read_byte(c.next_in_index++)&255)<<24&4278190080,d.mode=M1;case M1:if(c.avail_in===0)return r;r=f,c.avail_in--,c.total_in++,d.need+=(c.read_byte(c.next_in_index++)&255)<<16&16711680,d.mode=j1;case j1:if(c.avail_in===0)return r;r=f,c.avail_in--,c.total_in++,d.need+=(c.read_byte(c.next_in_index++)&255)<<8&65280,d.mode=H1;case H1:return c.avail_in===0?r:(r=f,c.avail_in--,c.total_in++,d.need+=c.read_byte(c.next_in_index++)&255,d.mode=Tf,vA);case Tf:return d.mode=kn,c.msg="need dictionary",d.marker=0,me;case vi:if(r=d.blocks.proc(c,r),r==Ht){d.mode=kn,d.marker=0;break}if(r==bt&&(r=f),r!=mn)return r;r=f,d.blocks.reset(c,d.was),d.mode=N1;case N1:return c.avail_in=0,mn;case kn:return Ht;default:return me}},u.inflateSetDictionary=function(c,f,r){let o=0,d=r;if(!c||!c.istate||c.istate.mode!=Tf)return me;const y=c.istate;return d>=1<<y.wbits&&(d=(1<<y.wbits)-1,o=r-d),y.blocks.set_dictionary(f,o,d),y.mode=vi,bt},u.inflateSync=function(c){let f,r,o,d,y;if(!c||!c.istate)return me;const v=c.istate;if(v.mode!=kn&&(v.mode=kn,v.marker=0),(f=c.avail_in)===0)return An;for(r=c.next_in_index,o=v.marker;f!==0&&o<4;)c.read_byte(r)==NA[o]?o++:c.read_byte(r)!==0?o=0:o=4-o,r++,f--;return c.total_in+=r-c.next_in_index,c.next_in_index=r,c.avail_in=f,v.marker=o,o!=4?Ht:(d=c.total_in,y=c.total_out,i(c),c.total_in=d,c.total_out=y,v.mode=vi,bt)},u.inflateSyncPoint=function(c){return!c||!c.istate||!c.istate.blocks?me:c.istate.blocks.sync_point()}}function T2(){}T2.prototype={inflateInit(u){const i=this;return i.istate=new BA,u||(u=AA),i.istate.inflateInit(i,u)},inflate(u){const i=this;return i.istate?i.istate.inflate(i,u):me},inflateEnd(){const u=this;if(!u.istate)return me;const i=u.istate.inflateEnd(u);return u.istate=null,i},inflateSync(){const u=this;return u.istate?u.istate.inflateSync(u):me},inflateSetDictionary(u,i){const c=this;return c.istate?c.istate.inflateSetDictionary(c,u,i):me},read_byte(u){return this.next_in[u]},read_buf(u,i){return this.next_in.subarray(u,u+i)}};function UA(u){const i=this,c=new T2,f=u&&u.chunkSize?Math.floor(u.chunkSize*2):128*1024,r=yA,o=new Uint8Array(f);let d=!1;c.inflateInit(),c.next_out=o,i.append=function(y,v){const A=[];let E,w,R=0,z=0,N=0;if(y.length!==0){c.next_in_index=0,c.next_in=y,c.avail_in=y.length;do{if(c.next_out_index=0,c.avail_out=f,c.avail_in===0&&!d&&(c.next_in_index=0,d=!0),E=c.inflate(r),d&&E===An){if(c.avail_in!==0)throw new Error("inflating: bad input")}else if(E!==bt&&E!==mn)throw new Error("inflating: "+c.msg);if((d||E===mn)&&c.avail_in===y.length)throw new Error("inflating: bad input");c.next_out_index&&(c.next_out_index===f?A.push(new Uint8Array(o)):A.push(o.subarray(0,c.next_out_index))),N+=c.next_out_index,v&&c.next_in_index>0&&c.next_in_index!=R&&(v(c.next_in_index),R=c.next_in_index)}while(c.avail_in>0||c.avail_out===0);return A.length>1?(w=new Uint8Array(N),A.forEach(function(x){w.set(x,z),z+=x.length})):w=A[0]?new Uint8Array(A[0]):new Uint8Array,w}},i.flush=function(){c.inflateEnd()}}const Sa=4294967295,Fn=65535,QA=8,YA=0,LA=99,zA=67324752,w2=134695760,GA=w2,B1=33639248,XA=101010256,U1=101075792,VA=117853008,gn=22,wf=20,Rf=56,IA=12,ZA=20,Q1=4,qA=1,kA=39169,KA=10,WA=1,FA=21589,JA=28789,PA=25461,_A=6534,Y1=1,$A=6,L1=8,z1=2048,G1=16,t8=61440,e8=16384,n8=73,X1="/",Of=30,a8=10,l8=14,i8=18,qt=void 0,$n="undefined",Oi="function";class V1{constructor(i){return class extends TransformStream{constructor(c,f){const r=new i(f);super({transform(o,d){d.enqueue(r.append(o))},flush(o){const d=r.flush();d&&o.enqueue(d)}})}}}}const u8=64;let R2=2;try{typeof navigator!=$n&&navigator.hardwareConcurrency&&(R2=navigator.hardwareConcurrency)}catch{}const c8={chunkSize:512*1024,maxWorkers:R2,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:qt,CompressionStreamNative:typeof CompressionStream!=$n&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=$n&&DecompressionStream},Jn=Object.assign({},c8);function O2(){return Jn}function s8(u){return Math.max(u.chunkSize,u8)}function D2(u){const{baseURL:i,chunkSize:c,maxWorkers:f,terminateWorkerTimeout:r,useCompressionStream:o,useWebWorkers:d,Deflate:y,Inflate:v,CompressionStream:A,DecompressionStream:E,workerScripts:w}=u;if(Kn("baseURL",i),Kn("chunkSize",c),Kn("maxWorkers",f),Kn("terminateWorkerTimeout",r),Kn("useCompressionStream",o),Kn("useWebWorkers",d),y&&(Jn.CompressionStream=new V1(y)),v&&(Jn.DecompressionStream=new V1(v)),Kn("CompressionStream",A),Kn("DecompressionStream",E),w!==qt){const{deflate:R,inflate:z}=w;if((R||z)&&(Jn.workerScripts||(Jn.workerScripts={})),R){if(!Array.isArray(R))throw new Error("workerScripts.deflate must be an array");Jn.workerScripts.deflate=R}if(z){if(!Array.isArray(z))throw new Error("workerScripts.inflate must be an array");Jn.workerScripts.inflate=z}}}function Kn(u,i){i!==qt&&(Jn[u]=i)}function f8(){return"application/octet-stream"}const C2=[];for(let u=0;u<256;u++){let i=u;for(let c=0;c<8;c++)i&1?i=i>>>1^3988292384:i=i>>>1;C2[u]=i}class ec{constructor(i){this.crc=i||-1}append(i){let c=this.crc|0;for(let f=0,r=i.length|0;f<r;f++)c=c>>>8^C2[(c^i[f])&255];this.crc=c}get(){return~this.crc}}class M2 extends TransformStream{constructor(){let i;const c=new ec;super({transform(f,r){c.append(f),r.enqueue(f)},flush(){const f=new Uint8Array(4);new DataView(f.buffer).setUint32(0,c.get()),i.value=f}}),i=this}}function r8(u){if(typeof TextEncoder==$n){u=unescape(encodeURIComponent(u));const i=new Uint8Array(u.length);for(let c=0;c<i.length;c++)i[c]=u.charCodeAt(c);return i}else return new TextEncoder().encode(u)}const fe={concat(u,i){if(u.length===0||i.length===0)return u.concat(i);const c=u[u.length-1],f=fe.getPartial(c);return f===32?u.concat(i):fe._shiftRight(i,f,c|0,u.slice(0,u.length-1))},bitLength(u){const i=u.length;if(i===0)return 0;const c=u[i-1];return(i-1)*32+fe.getPartial(c)},clamp(u,i){if(u.length*32<i)return u;u=u.slice(0,Math.ceil(i/32));const c=u.length;return i=i&31,c>0&&i&&(u[c-1]=fe.partial(i,u[c-1]&2147483648>>i-1,1)),u},partial(u,i,c){return u===32?i:(c?i|0:i<<32-u)+u*1099511627776},getPartial(u){return Math.round(u/1099511627776)||32},_shiftRight(u,i,c,f){for(f===void 0&&(f=[]);i>=32;i-=32)f.push(c),c=0;if(i===0)return f.concat(u);for(let d=0;d<u.length;d++)f.push(c|u[d]>>>i),c=u[d]<<32-i;const r=u.length?u[u.length-1]:0,o=fe.getPartial(r);return f.push(fe.partial(i+o&31,i+o>32?c:f.pop(),1)),f}},nc={bytes:{fromBits(u){const c=fe.bitLength(u)/8,f=new Uint8Array(c);let r;for(let o=0;o<c;o++)(o&3)===0&&(r=u[o/4]),f[o]=r>>>24,r<<=8;return f},toBits(u){const i=[];let c,f=0;for(c=0;c<u.length;c++)f=f<<8|u[c],(c&3)===3&&(i.push(f),f=0);return c&3&&i.push(fe.partial(8*(c&3),f)),i}}},j2={};j2.sha1=class{constructor(u){const i=this;i.blockSize=512,i._init=[1732584193,4023233417,2562383102,271733878,3285377520],i._key=[1518500249,1859775393,2400959708,3395469782],u?(i._h=u._h.slice(0),i._buffer=u._buffer.slice(0),i._length=u._length):i.reset()}reset(){const u=this;return u._h=u._init.slice(0),u._buffer=[],u._length=0,u}update(u){const i=this;typeof u=="string"&&(u=nc.utf8String.toBits(u));const c=i._buffer=fe.concat(i._buffer,u),f=i._length,r=i._length=f+fe.bitLength(u);if(r>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const o=new Uint32Array(c);let d=0;for(let y=i.blockSize+f-(i.blockSize+f&i.blockSize-1);y<=r;y+=i.blockSize)i._block(o.subarray(16*d,16*(d+1))),d+=1;return c.splice(0,16*d),i}finalize(){const u=this;let i=u._buffer;const c=u._h;i=fe.concat(i,[fe.partial(1,1)]);for(let f=i.length+2;f&15;f++)i.push(0);for(i.push(Math.floor(u._length/4294967296)),i.push(u._length|0);i.length;)u._block(i.splice(0,16));return u.reset(),c}_f(u,i,c,f){if(u<=19)return i&c|~i&f;if(u<=39)return i^c^f;if(u<=59)return i&c|i&f|c&f;if(u<=79)return i^c^f}_S(u,i){return i<<u|i>>>32-u}_block(u){const i=this,c=i._h,f=Array(80);for(let A=0;A<16;A++)f[A]=u[A];let r=c[0],o=c[1],d=c[2],y=c[3],v=c[4];for(let A=0;A<=79;A++){A>=16&&(f[A]=i._S(1,f[A-3]^f[A-8]^f[A-14]^f[A-16]));const E=i._S(5,r)+i._f(A,o,d,y)+v+f[A]+i._key[Math.floor(A/20)]|0;v=y,y=d,d=i._S(30,o),o=r,r=E}c[0]=c[0]+r|0,c[1]=c[1]+o|0,c[2]=c[2]+d|0,c[3]=c[3]+y|0,c[4]=c[4]+v|0}};const H2={};H2.aes=class{constructor(u){const i=this;i._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],i._tables[0][0][0]||i._precompute();const c=i._tables[0][4],f=i._tables[1],r=u.length;let o,d,y,v=1;if(r!==4&&r!==6&&r!==8)throw new Error("invalid aes key size");for(i._key=[d=u.slice(0),y=[]],o=r;o<4*r+28;o++){let A=d[o-1];(o%r===0||r===8&&o%r===4)&&(A=c[A>>>24]<<24^c[A>>16&255]<<16^c[A>>8&255]<<8^c[A&255],o%r===0&&(A=A<<8^A>>>24^v<<24,v=v<<1^(v>>7)*283)),d[o]=d[o-r]^A}for(let A=0;o;A++,o--){const E=d[A&3?o:o-4];o<=4||A<4?y[A]=E:y[A]=f[0][c[E>>>24]]^f[1][c[E>>16&255]]^f[2][c[E>>8&255]]^f[3][c[E&255]]}}encrypt(u){return this._crypt(u,0)}decrypt(u){return this._crypt(u,1)}_precompute(){const u=this._tables[0],i=this._tables[1],c=u[4],f=i[4],r=[],o=[];let d,y,v,A;for(let E=0;E<256;E++)o[(r[E]=E<<1^(E>>7)*283)^E]=E;for(let E=d=0;!c[E];E^=y||1,d=o[d]||1){let w=d^d<<1^d<<2^d<<3^d<<4;w=w>>8^w&255^99,c[E]=w,f[w]=E,A=r[v=r[y=r[E]]];let R=A*16843009^v*65537^y*257^E*16843008,z=r[w]*257^w*16843008;for(let N=0;N<4;N++)u[N][E]=z=z<<24^z>>>8,i[N][w]=R=R<<24^R>>>8}for(let E=0;E<5;E++)u[E]=u[E].slice(0),i[E]=i[E].slice(0)}_crypt(u,i){if(u.length!==4)throw new Error("invalid aes block size");const c=this._key[i],f=c.length/4-2,r=[0,0,0,0],o=this._tables[i],d=o[0],y=o[1],v=o[2],A=o[3],E=o[4];let w=u[0]^c[0],R=u[i?3:1]^c[1],z=u[2]^c[2],N=u[i?1:3]^c[3],x=4,p,T,D;for(let U=0;U<f;U++)p=d[w>>>24]^y[R>>16&255]^v[z>>8&255]^A[N&255]^c[x],T=d[R>>>24]^y[z>>16&255]^v[N>>8&255]^A[w&255]^c[x+1],D=d[z>>>24]^y[N>>16&255]^v[w>>8&255]^A[R&255]^c[x+2],N=d[N>>>24]^y[w>>16&255]^v[R>>8&255]^A[z&255]^c[x+3],x+=4,w=p,R=T,z=D;for(let U=0;U<4;U++)r[i?3&-U:U]=E[w>>>24]<<24^E[R>>16&255]<<16^E[z>>8&255]<<8^E[N&255]^c[x++],p=w,w=R,R=z,z=N,N=p;return r}};const o8={getRandomValues(u){const i=new Uint32Array(u.buffer),c=f=>{let r=987654321;const o=4294967295;return function(){return r=36969*(r&65535)+(r>>16)&o,f=18e3*(f&65535)+(f>>16)&o,(((r<<16)+f&o)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let f=0,r;f<u.length;f+=4){const o=c((r||Math.random())*4294967296);r=o()*987654071,i[f/4]=o()*4294967296|0}return u}},N2={};N2.ctrGladman=class{constructor(u,i){this._prf=u,this._initIv=i,this._iv=i}reset(){this._iv=this._initIv}update(u){return this.calculate(this._prf,u,this._iv)}incWord(u){if((u>>24&255)===255){let i=u>>16&255,c=u>>8&255,f=u&255;i===255?(i=0,c===255?(c=0,f===255?f=0:++f):++c):++i,u=0,u+=i<<16,u+=c<<8,u+=f}else u+=1<<24;return u}incCounter(u){(u[0]=this.incWord(u[0]))===0&&(u[1]=this.incWord(u[1]))}calculate(u,i,c){let f;if(!(f=i.length))return[];const r=fe.bitLength(i);for(let o=0;o<f;o+=4){this.incCounter(c);const d=u.encrypt(c);i[o]^=d[0],i[o+1]^=d[1],i[o+2]^=d[2],i[o+3]^=d[3]}return fe.clamp(i,r)}};const Ta={importKey(u){return new Ta.hmacSha1(nc.bytes.toBits(u))},pbkdf2(u,i,c,f){if(c=c||1e4,f<0||c<0)throw new Error("invalid params to pbkdf2");const r=(f>>5)+1<<2;let o,d,y,v,A;const E=new ArrayBuffer(r),w=new DataView(E);let R=0;const z=fe;for(i=nc.bytes.toBits(i),A=1;R<(r||1);A++){for(o=d=u.encrypt(z.concat(i,[A])),y=1;y<c;y++)for(d=u.encrypt(d),v=0;v<d.length;v++)o[v]^=d[v];for(y=0;R<(r||1)&&y<o.length;y++)w.setInt32(R,o[y]),R+=4}return E.slice(0,f/8)}};Ta.hmacSha1=class{constructor(u){const i=this,c=i._hash=j2.sha1,f=[[],[]];i._baseHash=[new c,new c];const r=i._baseHash[0].blockSize/32;u.length>r&&(u=new c().update(u).finalize());for(let o=0;o<r;o++)f[0][o]=u[o]^909522486,f[1][o]=u[o]^1549556828;i._baseHash[0].update(f[0]),i._baseHash[1].update(f[1]),i._resultHash=new c(i._baseHash[0])}reset(){const u=this;u._resultHash=new u._hash(u._baseHash[0]),u._updated=!1}update(u){const i=this;i._updated=!0,i._resultHash.update(u)}digest(){const u=this,i=u._resultHash.finalize(),c=new u._hash(u._baseHash[1]).update(i).finalize();return u.reset(),c}encrypt(u){if(this._updated)throw new Error("encrypt on already updated hmac called!");return this.update(u),this.digest(u)}};const d8=typeof crypto!=$n&&typeof crypto.getRandomValues==Oi,tr="Invalid password",er="Invalid signature",nr="zipjs-abort-check-password";function B2(u){return d8?crypto.getRandomValues(u):o8.getRandomValues(u)}const gl=16,h8="raw",U2={name:"PBKDF2"},g8={name:"HMAC"},m8="SHA-1",A8=Object.assign({hash:g8},U2),Vf=Object.assign({iterations:1e3,hash:{name:m8}},U2),v8=["deriveBits"],xi=[8,12,16],yi=[16,24,32],Wn=10,y8=[0,0,0,0],ic=typeof crypto!=$n,Di=ic&&crypto.subtle,Q2=ic&&typeof Di!=$n,We=nc.bytes,E8=H2.aes,b8=N2.ctrGladman,p8=Ta.hmacSha1;let I1=ic&&Q2&&typeof Di.importKey==Oi,Z1=ic&&Q2&&typeof Di.deriveBits==Oi;class x8 extends TransformStream{constructor({password:i,rawPassword:c,signed:f,encryptionStrength:r,checkPasswordOnly:o}){super({start(){Object.assign(this,{ready:new Promise(d=>this.resolveReady=d),password:z2(i,c),signed:f,strength:r-1,pending:new Uint8Array})},async transform(d,y){const v=this,{password:A,strength:E,resolveReady:w,ready:R}=v;A?(await T8(v,E,A,Ue(d,0,xi[E]+2)),d=Ue(d,xi[E]+2),o?y.error(new Error(nr)):w()):await R;const z=new Uint8Array(d.length-Wn-(d.length-Wn)%gl);y.enqueue(Y2(v,d,z,0,Wn,!0))},async flush(d){const{signed:y,ctr:v,hmac:A,pending:E,ready:w}=this;if(A&&v){await w;const R=Ue(E,0,E.length-Wn),z=Ue(E,E.length-Wn);let N=new Uint8Array;if(R.length){const x=Ti(We,R);A.update(x);const p=v.update(x);N=Si(We,p)}if(y){const x=Ue(Si(We,A.digest()),0,Wn);for(let p=0;p<Wn;p++)if(x[p]!=z[p])throw new Error(er)}d.enqueue(N)}}})}}class S8 extends TransformStream{constructor({password:i,rawPassword:c,encryptionStrength:f}){let r;super({start(){Object.assign(this,{ready:new Promise(o=>this.resolveReady=o),password:z2(i,c),strength:f-1,pending:new Uint8Array})},async transform(o,d){const y=this,{password:v,strength:A,resolveReady:E,ready:w}=y;let R=new Uint8Array;v?(R=await w8(y,A,v),E()):await w;const z=new Uint8Array(R.length+o.length-o.length%gl);z.set(R,0),d.enqueue(Y2(y,o,z,R.length,0))},async flush(o){const{ctr:d,hmac:y,pending:v,ready:A}=this;if(y&&d){await A;let E=new Uint8Array;if(v.length){const w=d.update(Ti(We,v));y.update(w),E=Si(We,w)}r.signature=Si(We,y.digest()).slice(0,Wn),o.enqueue(ar(E,r.signature))}}}),r=this}}function Y2(u,i,c,f,r,o){const{ctr:d,hmac:y,pending:v}=u,A=i.length-r;v.length&&(i=ar(v,i),c=D8(c,A-A%gl));let E;for(E=0;E<=A-gl;E+=gl){const w=Ti(We,Ue(i,E,E+gl));o&&y.update(w);const R=d.update(w);o||y.update(R),c.set(Si(We,R),E+f)}return u.pending=Ue(i,E),c}async function T8(u,i,c,f){const r=await L2(u,i,c,Ue(f,0,xi[i])),o=Ue(f,xi[i]);if(r[0]!=o[0]||r[1]!=o[1])throw new Error(tr)}async function w8(u,i,c){const f=B2(new Uint8Array(xi[i])),r=await L2(u,i,c,f);return ar(f,r)}async function L2(u,i,c,f){u.password=null;const r=await R8(h8,c,A8,!1,v8),o=await O8(Object.assign({salt:f},Vf),r,8*(yi[i]*2+2)),d=new Uint8Array(o),y=Ti(We,Ue(d,0,yi[i])),v=Ti(We,Ue(d,yi[i],yi[i]*2)),A=Ue(d,yi[i]*2);return Object.assign(u,{keys:{key:y,authentication:v,passwordVerification:A},ctr:new b8(new E8(y),Array.from(y8)),hmac:new p8(v)}),A}async function R8(u,i,c,f,r){if(I1)try{return await Di.importKey(u,i,c,f,r)}catch{return I1=!1,Ta.importKey(i)}else return Ta.importKey(i)}async function O8(u,i,c){if(Z1)try{return await Di.deriveBits(u,i,c)}catch{return Z1=!1,Ta.pbkdf2(i,u.salt,Vf.iterations,c)}else return Ta.pbkdf2(i,u.salt,Vf.iterations,c)}function z2(u,i){return i===qt?r8(u):i}function ar(u,i){let c=u;return u.length+i.length&&(c=new Uint8Array(u.length+i.length),c.set(u,0),c.set(i,u.length)),c}function D8(u,i){if(i&&i>u.length){const c=u;u=new Uint8Array(i),u.set(c,0)}return u}function Ue(u,i,c){return u.subarray(i,c)}function Si(u,i){return u.fromBits(i)}function Ti(u,i){return u.toBits(i)}const pi=12;class C8 extends TransformStream{constructor({password:i,passwordVerification:c,checkPasswordOnly:f}){super({start(){Object.assign(this,{password:i,passwordVerification:c}),G2(this,i)},transform(r,o){const d=this;if(d.password){const y=q1(d,r.subarray(0,pi));if(d.password=null,y.at(-1)!=d.passwordVerification)throw new Error(tr);r=r.subarray(pi)}f?o.error(new Error(nr)):o.enqueue(q1(d,r))}})}}class M8 extends TransformStream{constructor({password:i,passwordVerification:c}){super({start(){Object.assign(this,{password:i,passwordVerification:c}),G2(this,i)},transform(f,r){const o=this;let d,y;if(o.password){o.password=null;const v=B2(new Uint8Array(pi));v[pi-1]=o.passwordVerification,d=new Uint8Array(f.length+v.length),d.set(k1(o,v),0),y=pi}else d=new Uint8Array(f.length),y=0;d.set(k1(o,f),y),r.enqueue(d)}})}}function q1(u,i){const c=new Uint8Array(i.length);for(let f=0;f<i.length;f++)c[f]=X2(u)^i[f],lr(u,c[f]);return c}function k1(u,i){const c=new Uint8Array(i.length);for(let f=0;f<i.length;f++)c[f]=X2(u)^i[f],lr(u,i[f]);return c}function G2(u,i){const c=[305419896,591751049,878082192];Object.assign(u,{keys:c,crcKey0:new ec(c[0]),crcKey2:new ec(c[2])});for(let f=0;f<i.length;f++)lr(u,i.charCodeAt(f))}function lr(u,i){let[c,f,r]=u.keys;u.crcKey0.append([i]),c=~u.crcKey0.get(),f=K1(Math.imul(K1(f+V2(c)),134775813)+1),u.crcKey2.append([f>>>24]),r=~u.crcKey2.get(),u.keys=[c,f,r]}function X2(u){const i=u.keys[2]|2;return V2(Math.imul(i,i^1)>>>8)}function V2(u){return u&255}function K1(u){return u&4294967295}const ir="Invalid uncompressed size",W1="deflate-raw";class j8 extends TransformStream{constructor(i,{chunkSize:c,CompressionStream:f,CompressionStreamNative:r}){super({});const{compressed:o,encrypted:d,useCompressionStream:y,zipCrypto:v,signed:A,level:E}=i,w=this;let R,z,N=super.readable;(!d||v)&&A&&(R=new M2,N=vn(N,R)),o&&(N=Z2(N,y,{level:E,chunkSize:c},r,f)),d&&(v?N=vn(N,new M8(i)):(z=new S8(i),N=vn(N,z))),I2(w,N,()=>{let x;d&&!v&&(x=z.signature),(!d||v)&&A&&(x=new DataView(R.value.buffer).getUint32(0)),w.signature=x})}}class H8 extends TransformStream{constructor(i,{chunkSize:c,DecompressionStream:f,DecompressionStreamNative:r}){super({});const{zipCrypto:o,encrypted:d,signed:y,signature:v,compressed:A,useCompressionStream:E}=i;let w,R,z=super.readable;d&&(o?z=vn(z,new C8(i)):(R=new x8(i),z=vn(z,R))),A&&(z=Z2(z,E,{chunkSize:c},r,f)),(!d||o)&&y&&(w=new M2,z=vn(z,w)),I2(this,z,()=>{if((!d||o)&&y){const N=new DataView(w.value.buffer);if(v!=N.getUint32(0,!1))throw new Error(er)}})}}function I2(u,i,c){i=vn(i,new TransformStream({flush:c})),Object.defineProperty(u,"readable",{get(){return i}})}function Z2(u,i,c,f,r){try{const o=i&&f?f:r;u=vn(u,new o(W1,c))}catch(o){if(i)u=vn(u,new r(W1,c));else throw o}return u}function vn(u,i){return u.pipeThrough(i)}const N8="message",B8="start",U8="pull",F1="data",Q8="ack",J1="close",Y8="deflate",q2="inflate";class L8 extends TransformStream{constructor(i,c){super({});const f=this,{codecType:r}=i;let o;r.startsWith(Y8)?o=j8:r.startsWith(q2)&&(o=H8),f.outputSize=0;let d=0;const y=new o(i,c),v=super.readable,A=new TransformStream({transform(w,R){w&&w.length&&(d+=w.length,R.enqueue(w))},flush(){Object.assign(f,{inputSize:d})}}),E=new TransformStream({transform(w,R){if(w&&w.length&&(R.enqueue(w),f.outputSize+=w.length,i.outputSize&&f.outputSize>i.outputSize))throw new Error(ir)},flush(){const{signature:w}=y;Object.assign(f,{signature:w,inputSize:d})}});Object.defineProperty(f,"readable",{get(){return v.pipeThrough(A).pipeThrough(y).pipeThrough(E)}})}}class z8 extends TransformStream{constructor(i){let c;super({transform:f,flush(r){c&&c.length&&r.enqueue(c)}});function f(r,o){if(c){const d=new Uint8Array(c.length+r.length);d.set(c),d.set(r,c.length),r=d,c=null}r.length>i?(o.enqueue(r.slice(0,i)),f(r.slice(i),o)):c=r}}}let k2=typeof Worker!=$n;class Df{constructor(i,{readable:c,writable:f},{options:r,config:o,streamOptions:d,useWebWorkers:y,transferStreams:v,scripts:A},E){const{signal:w}=d;return Object.assign(i,{busy:!0,readable:c.pipeThrough(new z8(o.chunkSize)).pipeThrough(new G8(d),{signal:w}),writable:f,options:Object.assign({},r),scripts:A,transferStreams:v,terminate(){return new Promise(R=>{const{worker:z,busy:N}=i;z?(N?i.resolveTerminated=R:(z.terminate(),R()),i.interface=null):R()})},onTaskFinished(){const{resolveTerminated:R}=i;R&&(i.resolveTerminated=null,i.terminated=!0,i.worker.terminate(),R()),i.busy=!1,E(i)}}),(y&&k2?X8:K2)(i,o)}}class G8 extends TransformStream{constructor({onstart:i,onprogress:c,size:f,onend:r}){let o=0;super({async start(){i&&await Cf(i,f)},async transform(d,y){o+=d.length,c&&await Cf(c,o,f),y.enqueue(d)},async flush(){r&&await Cf(r,o)}})}}async function Cf(u,...i){try{await u(...i)}catch{}}function K2(u,i){return{run:()=>V8(u,i)}}function X8(u,i){const{baseURL:c,chunkSize:f}=i;if(!u.interface){let r;try{r=q8(u.scripts[0],c,u)}catch{return k2=!1,K2(u,i)}Object.assign(u,{worker:r,interface:{run:()=>I8(u,{chunkSize:f})}})}return u.interface}async function V8({options:u,readable:i,writable:c,onTaskFinished:f},r){let o;try{o=new L8(u,r),await i.pipeThrough(o).pipeTo(c,{preventClose:!0,preventAbort:!0});const{signature:d,inputSize:y,outputSize:v}=o;return{signature:d,inputSize:y,outputSize:v}}catch(d){throw o&&(d.outputSize=o.outputSize),d}finally{f()}}async function I8(u,i){let c,f;const r=new Promise((R,z)=>{c=R,f=z});Object.assign(u,{reader:null,writer:null,resolveResult:c,rejectResult:f,result:r});const{readable:o,options:d,scripts:y}=u,{writable:v,closed:A}=Z8(u.writable),E=_u({type:B8,scripts:y.slice(1),options:d,config:i,readable:o,writable:v},u);E||Object.assign(u,{reader:o.getReader(),writer:v.getWriter()});const w=await r;return E||await v.getWriter().close(),await A,w}function Z8(u){let i;const c=new Promise(r=>i=r);return{writable:new WritableStream({async write(r){const o=u.getWriter();await o.ready,await o.write(r),o.releaseLock()},close(){i()},abort(r){return u.getWriter().abort(r)}}),closed:c}}let P1=!0,_1=!0;function q8(u,i,c){const f={type:"module"};let r,o;typeof u==Oi&&(u=u());try{r=new URL(u,i)}catch{r=u}if(P1)try{o=new Worker(r)}catch{P1=!1,o=new Worker(r,f)}else o=new Worker(r,f);return o.addEventListener(N8,d=>k8(d,c)),o}function _u(u,{worker:i,writer:c,onTaskFinished:f,transferStreams:r}){try{const{value:o,readable:d,writable:y}=u,v=[];if(o&&(o.byteLength<o.buffer.byteLength?u.value=o.buffer.slice(0,o.byteLength):u.value=o.buffer,v.push(u.value)),r&&_1?(d&&v.push(d),y&&v.push(y)):u.readable=u.writable=null,v.length)try{return i.postMessage(u,v),!0}catch{_1=!1,u.readable=u.writable=null,i.postMessage(u)}else i.postMessage(u)}catch(o){throw c&&c.releaseLock(),f(),o}}async function k8({data:u},i){const{type:c,value:f,messageId:r,result:o,error:d}=u,{reader:y,writer:v,resolveResult:A,rejectResult:E,onTaskFinished:w}=i;try{if(d){const{message:z,stack:N,code:x,name:p,outputSize:T}=d,D=new Error(z);Object.assign(D,{stack:N,code:x,name:p,outputSize:T}),R(D)}else{if(c==U8){const{value:z,done:N}=await y.read();_u({type:F1,value:z,done:N,messageId:r},i)}c==F1&&(await v.ready,await v.write(new Uint8Array(f)),_u({type:Q8,messageId:r},i)),c==J1&&R(null,o)}}catch(z){_u({type:J1,messageId:r},i),R(z)}function R(z,N){z?E(z):A(N),v&&v.releaseLock(),w()}}let Pn=[];const Mf=[];let $1=0;async function K8(u,i){const{options:c,config:f}=i,{transferStreams:r,useWebWorkers:o,useCompressionStream:d,codecType:y,compressed:v,signed:A,encrypted:E}=c,{workerScripts:w,maxWorkers:R}=f;i.transferStreams=r||r===qt;const z=!v&&!A&&!E&&!i.transferStreams;return i.useWebWorkers=!z&&(o||o===qt&&f.useWebWorkers),i.scripts=i.useWebWorkers&&w?w[y]:[],c.useCompressionStream=d||d===qt&&f.useCompressionStream,(await N()).run();async function N(){const p=Pn.find(T=>!T.busy);if(p)return If(p),new Df(p,u,i,x);if(Pn.length<R){const T={indexWorker:$1};return $1++,Pn.push(T),new Df(T,u,i,x)}else return new Promise(T=>Mf.push({resolve:T,stream:u,workerOptions:i}))}function x(p){if(Mf.length){const[{resolve:T,stream:D,workerOptions:U}]=Mf.splice(0,1);T(new Df(p,D,U,x))}else p.worker?(If(p),W8(p,i)):Pn=Pn.filter(T=>T!=p)}}function W8(u,i){const{config:c}=i,{terminateWorkerTimeout:f}=c;Number.isFinite(f)&&f>=0&&(u.terminated?u.terminated=!1:u.terminateTimeout=setTimeout(async()=>{Pn=Pn.filter(r=>r!=u);try{await u.terminate()}catch{}},f))}function If(u){const{terminateTimeout:i}=u;i&&(clearTimeout(i),u.terminateTimeout=null)}async function F8(){await Promise.allSettled(Pn.map(u=>(If(u),u.terminate())))}const W2="HTTP error ",Ci="HTTP Range not supported",F2="Writer iterator completed too soon",J2="Writer not initialized",J8="text/plain",P8="Content-Length",_8="Content-Range",$8="Accept-Ranges",t3="Range",e3="Content-Type",n3="HEAD",ur="GET",P2="bytes",a3=64*1024,cr="writable";class uc{constructor(){this.size=0}init(){this.initialized=!0}}class ta extends uc{get readable(){const i=this,{chunkSize:c=a3}=i,f=new ReadableStream({start(){this.chunkOffset=0},async pull(r){const{offset:o=0,size:d,diskNumberStart:y}=f,{chunkOffset:v}=this,A=d===qt?c:Math.min(c,d-v),E=await Jt(i,o+v,A,y);r.enqueue(E),v+c>d||d===qt&&!E.length&&A?r.close():this.chunkOffset+=c}});return f}}class sr extends uc{constructor(){super();const i=this,c=new WritableStream({write(f){if(!i.initialized)throw new Error(J2);return i.writeUint8Array(f)}});Object.defineProperty(i,cr,{get(){return c}})}writeUint8Array(){}}class l3 extends ta{constructor(i){super();let c=i.length;for(;i.charAt(c-1)=="=";)c--;const f=i.indexOf(",")+1;Object.assign(this,{dataURI:i,dataStart:f,size:Math.floor((c-f)*.75)})}readUint8Array(i,c){const{dataStart:f,dataURI:r}=this,o=new Uint8Array(c),d=Math.floor(i/3)*4,y=atob(r.substring(d+f,Math.ceil((i+c)/3)*4+f)),v=i-Math.floor(d/4)*3;let A=0;for(let E=v;E<v+c&&E<y.length;E++)o[E-v]=y.charCodeAt(E),A++;return A<o.length?o.subarray(0,A):o}}class i3 extends sr{constructor(i){super(),Object.assign(this,{data:"data:"+(i||"")+";base64,",pending:[]})}writeUint8Array(i){const c=this;let f=0,r=c.pending;const o=c.pending.length;for(c.pending="",f=0;f<Math.floor((o+i.length)/3)*3-o;f++)r+=String.fromCharCode(i[f]);for(;f<i.length;f++)c.pending+=String.fromCharCode(i[f]);r.length&&(r.length>2?c.data+=btoa(r):c.pending+=r)}getData(){return this.data+btoa(this.pending)}}class fr extends ta{constructor(i){super(),Object.assign(this,{blob:i,size:i.size})}async readUint8Array(i,c){const f=this,r=i+c;let d=await(i||r<f.size?f.blob.slice(i,r):f.blob).arrayBuffer();return d.byteLength>c&&(d=d.slice(i,r)),new Uint8Array(d)}}class _2 extends uc{constructor(i){super();const c=this,f=new TransformStream,r=[];i&&r.push([e3,i]),Object.defineProperty(c,cr,{get(){return f.writable}}),c.blob=new Response(f.readable,{headers:r}).blob()}getData(){return this.blob}}class u3 extends fr{constructor(i){super(new Blob([i],{type:J8}))}}class c3 extends _2{constructor(i){super(i),Object.assign(this,{encoding:i,utf8:!i||i.toLowerCase()=="utf-8"})}async getData(){const{encoding:i,utf8:c}=this,f=await super.getData();if(f.text&&c)return f.text();{const r=new FileReader;return new Promise((o,d)=>{Object.assign(r,{onload:({target:y})=>o(y.result),onerror:()=>d(r.error)}),r.readAsText(f,i)})}}}class s3 extends ta{constructor(i,c){super(),$2(this,i,c)}async init(){await th(this,Zf,t2),super.init()}readUint8Array(i,c){return eh(this,i,c,Zf,t2)}}class f3 extends ta{constructor(i,c){super(),$2(this,i,c)}async init(){await th(this,qf,e2),super.init()}readUint8Array(i,c){return eh(this,i,c,qf,e2)}}function $2(u,i,c){const{preventHeadRequest:f,useRangeHeader:r,forceRangeRequests:o,combineSizeEocd:d}=c;c=Object.assign({},c),delete c.preventHeadRequest,delete c.useRangeHeader,delete c.forceRangeRequests,delete c.combineSizeEocd,delete c.useXHR,Object.assign(u,{url:i,options:c,preventHeadRequest:f,useRangeHeader:r,forceRangeRequests:o,combineSizeEocd:d})}async function th(u,i,c){const{url:f,preventHeadRequest:r,useRangeHeader:o,forceRangeRequests:d,combineSizeEocd:y}=u;if(h3(f)&&(o||d)&&(typeof r>"u"||r)){const v=await i(ur,u,nh(u,y?-gn:void 0));if(!d&&v.headers.get($8)!=P2)throw new Error(Ci);{y&&(u.eocdCache=new Uint8Array(await v.arrayBuffer()));let A;const E=v.headers.get(_8);if(E){const w=E.trim().split(/\s*\/\s*/);if(w.length){const R=w[1];R&&R!="*"&&(A=Number(R))}}A===qt?await n2(u,i,c):u.size=A}}else await n2(u,i,c)}async function eh(u,i,c,f,r){const{useRangeHeader:o,forceRangeRequests:d,eocdCache:y,size:v,options:A}=u;if(o||d){if(y&&i==v-gn&&c==gn)return y;if(i>=v)return new Uint8Array;{i+c>v&&(c=v-i);const E=await f(ur,u,nh(u,i,c));if(E.status!=206)throw new Error(Ci);return new Uint8Array(await E.arrayBuffer())}}else{const{data:E}=u;return E||await r(u,A),new Uint8Array(u.data.subarray(i,i+c))}}function nh(u,i=0,c=1){return Object.assign({},rr(u),{[t3]:P2+"="+(i<0?i:i+"-"+(i+c-1))})}function rr({options:u}){const{headers:i}=u;if(i)return Symbol.iterator in i?Object.fromEntries(i):i}async function t2(u){