UNPKG

@loaders.gl/compression

Version:

Decompression and compression plugins for loaders.gl

1 lines 230 kB
"use strict";(()=>{var hn=Object.create;var pt=Object.defineProperty;var cn=Object.getOwnPropertyDescriptor;var xn=Object.getOwnPropertyNames;var Hn=Object.getPrototypeOf,zn=Object.prototype.hasOwnProperty;var N=(f,l)=>()=>(l||f((l={exports:{}}).exports,l),l.exports);var _n=(f,l,e,t)=>{if(l&&typeof l=="object"||typeof l=="function")for(let o of xn(l))!zn.call(f,o)&&o!==e&&pt(f,o,{get:()=>l[o],enumerable:!(t=cn(l,o))||t.enumerable});return f};var Al=(f,l,e)=>(e=f!=null?hn(Hn(f)):{},_n(l||!f||!f.__esModule?pt(e,"default",{value:f,enumerable:!0}):e,f));var ew=N(()=>{});var Sf=N(ff=>{"use strict";var Qn=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function Nn(f,l){return Object.prototype.hasOwnProperty.call(f,l)}ff.assign=function(f){for(var l=Array.prototype.slice.call(arguments,1);l.length;){var e=l.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(var t in e)Nn(e,t)&&(f[t]=e[t])}}return f};ff.shrinkBuf=function(f,l){return f.length===l?f:f.subarray?f.subarray(0,l):(f.length=l,f)};var Zn={arraySet:function(f,l,e,t,o){if(l.subarray&&f.subarray){f.set(l.subarray(e,e+t),o);return}for(var b=0;b<t;b++)f[o+b]=l[e+b]},flattenChunks:function(f){var l,e,t,o,b,n;for(t=0,l=0,e=f.length;l<e;l++)t+=f[l].length;for(n=new Uint8Array(t),o=0,l=0,e=f.length;l<e;l++)b=f[l],n.set(b,o),o+=b.length;return n}},Jn={arraySet:function(f,l,e,t,o){for(var b=0;b<t;b++)f[o+b]=l[e+b]},flattenChunks:function(f){return[].concat.apply([],f)}};ff.setTyped=function(f){f?(ff.Buf8=Uint8Array,ff.Buf16=Uint16Array,ff.Buf32=Int32Array,ff.assign(ff,Zn)):(ff.Buf8=Array,ff.Buf16=Array,ff.Buf32=Array,ff.assign(ff,Jn))};ff.setTyped(Qn)});var Xt=N(ul=>{"use strict";var Xn=Sf(),Gn=4,Tt=0,It=1,$n=2;function dl(f){for(var l=f.length;--l>=0;)f[l]=0}var fm=0,Ft=1,lm=2,em=3,wm=258,pw=29,Pl=256,Cl=Pl+1+pw,kl=30,jw=19,Dt=2*Cl+1,ll=15,ww=16,tm=7,rw=256,Ct=16,Ot=17,Wt=18,nw=[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],qe=[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],om=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ut=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],bm=512,Ef=new Array((Cl+2)*2);dl(Ef);var Dl=new Array(kl*2);dl(Dl);var Ol=new Array(bm);dl(Ol);var Wl=new Array(wm-em+1);dl(Wl);var aw=new Array(pw);dl(aw);var se=new Array(kl);dl(se);function tw(f,l,e,t,o){this.static_tree=f,this.extra_bits=l,this.extra_base=e,this.elems=t,this.max_length=o,this.has_stree=f&&f.length}var Pt,Lt,Mt;function ow(f,l){this.dyn_tree=f,this.max_code=0,this.stat_desc=l}function Yt(f){return f<256?Ol[f]:Ol[256+(f>>>7)]}function Ul(f,l){f.pending_buf[f.pending++]=l&255,f.pending_buf[f.pending++]=l>>>8&255}function of(f,l,e){f.bi_valid>ww-e?(f.bi_buf|=l<<f.bi_valid&65535,Ul(f,f.bi_buf),f.bi_buf=l>>ww-f.bi_valid,f.bi_valid+=e-ww):(f.bi_buf|=l<<f.bi_valid&65535,f.bi_valid+=e)}function xf(f,l,e){of(f,e[l*2],e[l*2+1])}function Vt(f,l){var e=0;do e|=f&1,f>>>=1,e<<=1;while(--l>0);return e>>>1}function nm(f){f.bi_valid===16?(Ul(f,f.bi_buf),f.bi_buf=0,f.bi_valid=0):f.bi_valid>=8&&(f.pending_buf[f.pending++]=f.bi_buf&255,f.bi_buf>>=8,f.bi_valid-=8)}function mm(f,l){var e=l.dyn_tree,t=l.max_code,o=l.stat_desc.static_tree,b=l.stat_desc.has_stree,n=l.stat_desc.extra_bits,m=l.stat_desc.extra_base,i=l.stat_desc.max_length,j,a,H,d,u,c,z=0;for(d=0;d<=ll;d++)f.bl_count[d]=0;for(e[f.heap[f.heap_max]*2+1]=0,j=f.heap_max+1;j<Dt;j++)a=f.heap[j],d=e[e[a*2+1]*2+1]+1,d>i&&(d=i,z++),e[a*2+1]=d,!(a>t)&&(f.bl_count[d]++,u=0,a>=m&&(u=n[a-m]),c=e[a*2],f.opt_len+=c*(d+u),b&&(f.static_len+=c*(o[a*2+1]+u)));if(z!==0){do{for(d=i-1;f.bl_count[d]===0;)d--;f.bl_count[d]--,f.bl_count[d+1]+=2,f.bl_count[i]--,z-=2}while(z>0);for(d=i;d!==0;d--)for(a=f.bl_count[d];a!==0;)H=f.heap[--j],!(H>t)&&(e[H*2+1]!==d&&(f.opt_len+=(d-e[H*2+1])*e[H*2],e[H*2+1]=d),a--)}}function Qt(f,l,e){var t=new Array(ll+1),o=0,b,n;for(b=1;b<=ll;b++)t[b]=o=o+e[b-1]<<1;for(n=0;n<=l;n++){var m=f[n*2+1];m!==0&&(f[n*2]=Vt(t[m]++,m))}}function pm(){var f,l,e,t,o,b=new Array(ll+1);for(e=0,t=0;t<pw-1;t++)for(aw[t]=e,f=0;f<1<<nw[t];f++)Wl[e++]=t;for(Wl[e-1]=t,o=0,t=0;t<16;t++)for(se[t]=o,f=0;f<1<<qe[t];f++)Ol[o++]=t;for(o>>=7;t<kl;t++)for(se[t]=o<<7,f=0;f<1<<qe[t]-7;f++)Ol[256+o++]=t;for(l=0;l<=ll;l++)b[l]=0;for(f=0;f<=143;)Ef[f*2+1]=8,f++,b[8]++;for(;f<=255;)Ef[f*2+1]=9,f++,b[9]++;for(;f<=279;)Ef[f*2+1]=7,f++,b[7]++;for(;f<=287;)Ef[f*2+1]=8,f++,b[8]++;for(Qt(Ef,Cl+1,b),f=0;f<kl;f++)Dl[f*2+1]=5,Dl[f*2]=Vt(f,5);Pt=new tw(Ef,nw,Pl+1,Cl,ll),Lt=new tw(Dl,qe,0,kl,ll),Mt=new tw(new Array(0),om,0,jw,tm)}function Nt(f){var l;for(l=0;l<Cl;l++)f.dyn_ltree[l*2]=0;for(l=0;l<kl;l++)f.dyn_dtree[l*2]=0;for(l=0;l<jw;l++)f.bl_tree[l*2]=0;f.dyn_ltree[rw*2]=1,f.opt_len=f.static_len=0,f.last_lit=f.matches=0}function Zt(f){f.bi_valid>8?Ul(f,f.bi_buf):f.bi_valid>0&&(f.pending_buf[f.pending++]=f.bi_buf),f.bi_buf=0,f.bi_valid=0}function jm(f,l,e,t){Zt(f),t&&(Ul(f,e),Ul(f,~e)),Xn.arraySet(f.pending_buf,f.window,l,e,f.pending),f.pending+=e}function Rt(f,l,e,t){var o=l*2,b=e*2;return f[o]<f[b]||f[o]===f[b]&&t[l]<=t[e]}function bw(f,l,e){for(var t=f.heap[e],o=e<<1;o<=f.heap_len&&(o<f.heap_len&&Rt(l,f.heap[o+1],f.heap[o],f.depth)&&o++,!Rt(l,t,f.heap[o],f.depth));)f.heap[e]=f.heap[o],e=o,o<<=1;f.heap[e]=t}function At(f,l,e){var t,o,b=0,n,m;if(f.last_lit!==0)do t=f.pending_buf[f.d_buf+b*2]<<8|f.pending_buf[f.d_buf+b*2+1],o=f.pending_buf[f.l_buf+b],b++,t===0?xf(f,o,l):(n=Wl[o],xf(f,n+Pl+1,l),m=nw[n],m!==0&&(o-=aw[n],of(f,o,m)),t--,n=Yt(t),xf(f,n,e),m=qe[n],m!==0&&(t-=se[n],of(f,t,m)));while(b<f.last_lit);xf(f,rw,l)}function mw(f,l){var e=l.dyn_tree,t=l.stat_desc.static_tree,o=l.stat_desc.has_stree,b=l.stat_desc.elems,n,m,i=-1,j;for(f.heap_len=0,f.heap_max=Dt,n=0;n<b;n++)e[n*2]!==0?(f.heap[++f.heap_len]=i=n,f.depth[n]=0):e[n*2+1]=0;for(;f.heap_len<2;)j=f.heap[++f.heap_len]=i<2?++i:0,e[j*2]=1,f.depth[j]=0,f.opt_len--,o&&(f.static_len-=t[j*2+1]);for(l.max_code=i,n=f.heap_len>>1;n>=1;n--)bw(f,e,n);j=b;do n=f.heap[1],f.heap[1]=f.heap[f.heap_len--],bw(f,e,1),m=f.heap[1],f.heap[--f.heap_max]=n,f.heap[--f.heap_max]=m,e[j*2]=e[n*2]+e[m*2],f.depth[j]=(f.depth[n]>=f.depth[m]?f.depth[n]:f.depth[m])+1,e[n*2+1]=e[m*2+1]=j,f.heap[1]=j++,bw(f,e,1);while(f.heap_len>=2);f.heap[--f.heap_max]=f.heap[1],mm(f,l),Qt(e,i,f.bl_count)}function St(f,l,e){var t,o=-1,b,n=l[0*2+1],m=0,i=7,j=4;for(n===0&&(i=138,j=3),l[(e+1)*2+1]=65535,t=0;t<=e;t++)b=n,n=l[(t+1)*2+1],!(++m<i&&b===n)&&(m<j?f.bl_tree[b*2]+=m:b!==0?(b!==o&&f.bl_tree[b*2]++,f.bl_tree[Ct*2]++):m<=10?f.bl_tree[Ot*2]++:f.bl_tree[Wt*2]++,m=0,o=b,n===0?(i=138,j=3):b===n?(i=6,j=3):(i=7,j=4))}function Et(f,l,e){var t,o=-1,b,n=l[0*2+1],m=0,i=7,j=4;for(n===0&&(i=138,j=3),t=0;t<=e;t++)if(b=n,n=l[(t+1)*2+1],!(++m<i&&b===n)){if(m<j)do xf(f,b,f.bl_tree);while(--m!==0);else b!==0?(b!==o&&(xf(f,b,f.bl_tree),m--),xf(f,Ct,f.bl_tree),of(f,m-3,2)):m<=10?(xf(f,Ot,f.bl_tree),of(f,m-3,3)):(xf(f,Wt,f.bl_tree),of(f,m-11,7));m=0,o=b,n===0?(i=138,j=3):b===n?(i=6,j=3):(i=7,j=4)}}function rm(f){var l;for(St(f,f.dyn_ltree,f.l_desc.max_code),St(f,f.dyn_dtree,f.d_desc.max_code),mw(f,f.bl_desc),l=jw-1;l>=3&&f.bl_tree[Ut[l]*2+1]===0;l--);return f.opt_len+=3*(l+1)+5+5+4,l}function am(f,l,e,t){var o;for(of(f,l-257,5),of(f,e-1,5),of(f,t-4,4),o=0;o<t;o++)of(f,f.bl_tree[Ut[o]*2+1],3);Et(f,f.dyn_ltree,l-1),Et(f,f.dyn_dtree,e-1)}function qm(f){var l=4093624447,e;for(e=0;e<=31;e++,l>>>=1)if(l&1&&f.dyn_ltree[e*2]!==0)return Tt;if(f.dyn_ltree[9*2]!==0||f.dyn_ltree[10*2]!==0||f.dyn_ltree[13*2]!==0)return It;for(e=32;e<Pl;e++)if(f.dyn_ltree[e*2]!==0)return It;return Tt}var Kt=!1;function sm(f){Kt||(pm(),Kt=!0),f.l_desc=new ow(f.dyn_ltree,Pt),f.d_desc=new ow(f.dyn_dtree,Lt),f.bl_desc=new ow(f.bl_tree,Mt),f.bi_buf=0,f.bi_valid=0,Nt(f)}function Jt(f,l,e,t){of(f,(fm<<1)+(t?1:0),3),jm(f,l,e,!0)}function im(f){of(f,Ft<<1,3),xf(f,rw,Ef),nm(f)}function gm(f,l,e,t){var o,b,n=0;f.level>0?(f.strm.data_type===$n&&(f.strm.data_type=qm(f)),mw(f,f.l_desc),mw(f,f.d_desc),n=rm(f),o=f.opt_len+3+7>>>3,b=f.static_len+3+7>>>3,b<=o&&(o=b)):o=b=e+5,e+4<=o&&l!==-1?Jt(f,l,e,t):f.strategy===Gn||b===o?(of(f,(Ft<<1)+(t?1:0),3),At(f,Ef,Dl)):(of(f,(lm<<1)+(t?1:0),3),am(f,f.l_desc.max_code+1,f.d_desc.max_code+1,n+1),At(f,f.dyn_ltree,f.dyn_dtree)),Nt(f),t&&Zt(f)}function km(f,l,e){return f.pending_buf[f.d_buf+f.last_lit*2]=l>>>8&255,f.pending_buf[f.d_buf+f.last_lit*2+1]=l&255,f.pending_buf[f.l_buf+f.last_lit]=e&255,f.last_lit++,l===0?f.dyn_ltree[e*2]++:(f.matches++,l--,f.dyn_ltree[(Wl[e]+Pl+1)*2]++,f.dyn_dtree[Yt(l)*2]++),f.last_lit===f.lit_bufsize-1}ul._tr_init=sm;ul._tr_stored_block=Jt;ul._tr_flush_block=gm;ul._tr_tally=km;ul._tr_align=im});var qw=N((Dr,Gt)=>{"use strict";function dm(f,l,e,t){for(var o=f&65535|0,b=f>>>16&65535|0,n=0;e!==0;){n=e>2e3?2e3:e,e-=n;do o=o+l[t++]|0,b=b+o|0;while(--n);o%=65521,b%=65521}return o|b<<16|0}Gt.exports=dm});var sw=N((Cr,$t)=>{"use strict";function um(){for(var f,l=[],e=0;e<256;e++){f=e;for(var t=0;t<8;t++)f=f&1?3988292384^f>>>1:f>>>1;l[e]=f}return l}var vm=um();function hm(f,l,e,t){var o=vm,b=t+e;f^=-1;for(var n=t;n<b;n++)f=f>>>8^o[(f^l[n])&255];return f^-1}$t.exports=hm});var ie=N((Or,fo)=>{"use strict";fo.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var po=N(_f=>{"use strict";var lf=Sf(),sf=Xt(),to=qw(),Lf=sw(),cm=ie(),ol=0,xm=1,Hm=3,Nf=4,lo=5,zf=0,eo=1,gf=-2,zm=-3,iw=-5,_m=-1,Bm=1,ge=2,ym=3,Tm=4,Im=0,Rm=2,ve=8,Am=9,Sm=15,Em=8,Km=29,Fm=256,kw=Fm+1+Km,Dm=30,Cm=19,Om=2*kw+1,Wm=15,P=3,Vf=258,vf=Vf+P+1,Um=32,he=42,dw=69,ke=73,de=91,ue=103,el=113,Ml=666,X=1,Yl=2,wl=3,cl=4,Pm=3;function Qf(f,l){return f.msg=cm[l],l}function wo(f){return(f<<1)-(f>4?9:0)}function Yf(f){for(var l=f.length;--l>=0;)f[l]=0}function Mf(f){var l=f.state,e=l.pending;e>f.avail_out&&(e=f.avail_out),e!==0&&(lf.arraySet(f.output,l.pending_buf,l.pending_out,e,f.next_out),f.next_out+=e,l.pending_out+=e,f.total_out+=e,f.avail_out-=e,l.pending-=e,l.pending===0&&(l.pending_out=0))}function $(f,l){sf._tr_flush_block(f,f.block_start>=0?f.block_start:-1,f.strstart-f.block_start,l),f.block_start=f.strstart,Mf(f.strm)}function L(f,l){f.pending_buf[f.pending++]=l}function Ll(f,l){f.pending_buf[f.pending++]=l>>>8&255,f.pending_buf[f.pending++]=l&255}function Lm(f,l,e,t){var o=f.avail_in;return o>t&&(o=t),o===0?0:(f.avail_in-=o,lf.arraySet(l,f.input,f.next_in,o,e),f.state.wrap===1?f.adler=to(f.adler,l,o,e):f.state.wrap===2&&(f.adler=Lf(f.adler,l,o,e)),f.next_in+=o,f.total_in+=o,o)}function oo(f,l){var e=f.max_chain_length,t=f.strstart,o,b,n=f.prev_length,m=f.nice_match,i=f.strstart>f.w_size-vf?f.strstart-(f.w_size-vf):0,j=f.window,a=f.w_mask,H=f.prev,d=f.strstart+Vf,u=j[t+n-1],c=j[t+n];f.prev_length>=f.good_match&&(e>>=2),m>f.lookahead&&(m=f.lookahead);do if(o=l,!(j[o+n]!==c||j[o+n-1]!==u||j[o]!==j[t]||j[++o]!==j[t+1])){t+=2,o++;do;while(j[++t]===j[++o]&&j[++t]===j[++o]&&j[++t]===j[++o]&&j[++t]===j[++o]&&j[++t]===j[++o]&&j[++t]===j[++o]&&j[++t]===j[++o]&&j[++t]===j[++o]&&t<d);if(b=Vf-(d-t),t=d-Vf,b>n){if(f.match_start=l,n=b,b>=m)break;u=j[t+n-1],c=j[t+n]}}while((l=H[l&a])>i&&--e!==0);return n<=f.lookahead?n:f.lookahead}function tl(f){var l=f.w_size,e,t,o,b,n;do{if(b=f.window_size-f.lookahead-f.strstart,f.strstart>=l+(l-vf)){lf.arraySet(f.window,f.window,l,l,0),f.match_start-=l,f.strstart-=l,f.block_start-=l,t=f.hash_size,e=t;do o=f.head[--e],f.head[e]=o>=l?o-l:0;while(--t);t=l,e=t;do o=f.prev[--e],f.prev[e]=o>=l?o-l:0;while(--t);b+=l}if(f.strm.avail_in===0)break;if(t=Lm(f.strm,f.window,f.strstart+f.lookahead,b),f.lookahead+=t,f.lookahead+f.insert>=P)for(n=f.strstart-f.insert,f.ins_h=f.window[n],f.ins_h=(f.ins_h<<f.hash_shift^f.window[n+1])&f.hash_mask;f.insert&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[n+P-1])&f.hash_mask,f.prev[n&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=n,n++,f.insert--,!(f.lookahead+f.insert<P)););}while(f.lookahead<vf&&f.strm.avail_in!==0)}function Mm(f,l){var e=65535;for(e>f.pending_buf_size-5&&(e=f.pending_buf_size-5);;){if(f.lookahead<=1){if(tl(f),f.lookahead===0&&l===ol)return X;if(f.lookahead===0)break}f.strstart+=f.lookahead,f.lookahead=0;var t=f.block_start+e;if((f.strstart===0||f.strstart>=t)&&(f.lookahead=f.strstart-t,f.strstart=t,$(f,!1),f.strm.avail_out===0)||f.strstart-f.block_start>=f.w_size-vf&&($(f,!1),f.strm.avail_out===0))return X}return f.insert=0,l===Nf?($(f,!0),f.strm.avail_out===0?wl:cl):(f.strstart>f.block_start&&($(f,!1),f.strm.avail_out===0),X)}function gw(f,l){for(var e,t;;){if(f.lookahead<vf){if(tl(f),f.lookahead<vf&&l===ol)return X;if(f.lookahead===0)break}if(e=0,f.lookahead>=P&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+P-1])&f.hash_mask,e=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),e!==0&&f.strstart-e<=f.w_size-vf&&(f.match_length=oo(f,e)),f.match_length>=P)if(t=sf._tr_tally(f,f.strstart-f.match_start,f.match_length-P),f.lookahead-=f.match_length,f.match_length<=f.max_lazy_match&&f.lookahead>=P){f.match_length--;do f.strstart++,f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+P-1])&f.hash_mask,e=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart;while(--f.match_length!==0);f.strstart++}else f.strstart+=f.match_length,f.match_length=0,f.ins_h=f.window[f.strstart],f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+1])&f.hash_mask;else t=sf._tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++;if(t&&($(f,!1),f.strm.avail_out===0))return X}return f.insert=f.strstart<P-1?f.strstart:P-1,l===Nf?($(f,!0),f.strm.avail_out===0?wl:cl):f.last_lit&&($(f,!1),f.strm.avail_out===0)?X:Yl}function vl(f,l){for(var e,t,o;;){if(f.lookahead<vf){if(tl(f),f.lookahead<vf&&l===ol)return X;if(f.lookahead===0)break}if(e=0,f.lookahead>=P&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+P-1])&f.hash_mask,e=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart),f.prev_length=f.match_length,f.prev_match=f.match_start,f.match_length=P-1,e!==0&&f.prev_length<f.max_lazy_match&&f.strstart-e<=f.w_size-vf&&(f.match_length=oo(f,e),f.match_length<=5&&(f.strategy===Bm||f.match_length===P&&f.strstart-f.match_start>4096)&&(f.match_length=P-1)),f.prev_length>=P&&f.match_length<=f.prev_length){o=f.strstart+f.lookahead-P,t=sf._tr_tally(f,f.strstart-1-f.prev_match,f.prev_length-P),f.lookahead-=f.prev_length-1,f.prev_length-=2;do++f.strstart<=o&&(f.ins_h=(f.ins_h<<f.hash_shift^f.window[f.strstart+P-1])&f.hash_mask,e=f.prev[f.strstart&f.w_mask]=f.head[f.ins_h],f.head[f.ins_h]=f.strstart);while(--f.prev_length!==0);if(f.match_available=0,f.match_length=P-1,f.strstart++,t&&($(f,!1),f.strm.avail_out===0))return X}else if(f.match_available){if(t=sf._tr_tally(f,0,f.window[f.strstart-1]),t&&$(f,!1),f.strstart++,f.lookahead--,f.strm.avail_out===0)return X}else f.match_available=1,f.strstart++,f.lookahead--}return f.match_available&&(t=sf._tr_tally(f,0,f.window[f.strstart-1]),f.match_available=0),f.insert=f.strstart<P-1?f.strstart:P-1,l===Nf?($(f,!0),f.strm.avail_out===0?wl:cl):f.last_lit&&($(f,!1),f.strm.avail_out===0)?X:Yl}function Ym(f,l){for(var e,t,o,b,n=f.window;;){if(f.lookahead<=Vf){if(tl(f),f.lookahead<=Vf&&l===ol)return X;if(f.lookahead===0)break}if(f.match_length=0,f.lookahead>=P&&f.strstart>0&&(o=f.strstart-1,t=n[o],t===n[++o]&&t===n[++o]&&t===n[++o])){b=f.strstart+Vf;do;while(t===n[++o]&&t===n[++o]&&t===n[++o]&&t===n[++o]&&t===n[++o]&&t===n[++o]&&t===n[++o]&&t===n[++o]&&o<b);f.match_length=Vf-(b-o),f.match_length>f.lookahead&&(f.match_length=f.lookahead)}if(f.match_length>=P?(e=sf._tr_tally(f,1,f.match_length-P),f.lookahead-=f.match_length,f.strstart+=f.match_length,f.match_length=0):(e=sf._tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++),e&&($(f,!1),f.strm.avail_out===0))return X}return f.insert=0,l===Nf?($(f,!0),f.strm.avail_out===0?wl:cl):f.last_lit&&($(f,!1),f.strm.avail_out===0)?X:Yl}function Vm(f,l){for(var e;;){if(f.lookahead===0&&(tl(f),f.lookahead===0)){if(l===ol)return X;break}if(f.match_length=0,e=sf._tr_tally(f,0,f.window[f.strstart]),f.lookahead--,f.strstart++,e&&($(f,!1),f.strm.avail_out===0))return X}return f.insert=0,l===Nf?($(f,!0),f.strm.avail_out===0?wl:cl):f.last_lit&&($(f,!1),f.strm.avail_out===0)?X:Yl}function Hf(f,l,e,t,o){this.good_length=f,this.max_lazy=l,this.nice_length=e,this.max_chain=t,this.func=o}var hl;hl=[new Hf(0,0,0,0,Mm),new Hf(4,4,8,4,gw),new Hf(4,5,16,8,gw),new Hf(4,6,32,32,gw),new Hf(4,4,16,16,vl),new Hf(8,16,32,32,vl),new Hf(8,16,128,128,vl),new Hf(8,32,128,256,vl),new Hf(32,128,258,1024,vl),new Hf(32,258,258,4096,vl)];function Qm(f){f.window_size=2*f.w_size,Yf(f.head),f.max_lazy_match=hl[f.level].max_lazy,f.good_match=hl[f.level].good_length,f.nice_match=hl[f.level].nice_length,f.max_chain_length=hl[f.level].max_chain,f.strstart=0,f.block_start=0,f.lookahead=0,f.insert=0,f.match_length=f.prev_length=P-1,f.match_available=0,f.ins_h=0}function Nm(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ve,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new lf.Buf16(Om*2),this.dyn_dtree=new lf.Buf16((2*Dm+1)*2),this.bl_tree=new lf.Buf16((2*Cm+1)*2),Yf(this.dyn_ltree),Yf(this.dyn_dtree),Yf(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new lf.Buf16(Wm+1),this.heap=new lf.Buf16(2*kw+1),Yf(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new lf.Buf16(2*kw+1),Yf(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function bo(f){var l;return!f||!f.state?Qf(f,gf):(f.total_in=f.total_out=0,f.data_type=Rm,l=f.state,l.pending=0,l.pending_out=0,l.wrap<0&&(l.wrap=-l.wrap),l.status=l.wrap?he:el,f.adler=l.wrap===2?0:1,l.last_flush=ol,sf._tr_init(l),zf)}function no(f){var l=bo(f);return l===zf&&Qm(f.state),l}function Zm(f,l){return!f||!f.state||f.state.wrap!==2?gf:(f.state.gzhead=l,zf)}function mo(f,l,e,t,o,b){if(!f)return gf;var n=1;if(l===_m&&(l=6),t<0?(n=0,t=-t):t>15&&(n=2,t-=16),o<1||o>Am||e!==ve||t<8||t>15||l<0||l>9||b<0||b>Tm)return Qf(f,gf);t===8&&(t=9);var m=new Nm;return f.state=m,m.strm=f,m.wrap=n,m.gzhead=null,m.w_bits=t,m.w_size=1<<m.w_bits,m.w_mask=m.w_size-1,m.hash_bits=o+7,m.hash_size=1<<m.hash_bits,m.hash_mask=m.hash_size-1,m.hash_shift=~~((m.hash_bits+P-1)/P),m.window=new lf.Buf8(m.w_size*2),m.head=new lf.Buf16(m.hash_size),m.prev=new lf.Buf16(m.w_size),m.lit_bufsize=1<<o+6,m.pending_buf_size=m.lit_bufsize*4,m.pending_buf=new lf.Buf8(m.pending_buf_size),m.d_buf=1*m.lit_bufsize,m.l_buf=(1+2)*m.lit_bufsize,m.level=l,m.strategy=b,m.method=e,no(f)}function Jm(f,l){return mo(f,l,ve,Sm,Em,Im)}function Xm(f,l){var e,t,o,b;if(!f||!f.state||l>lo||l<0)return f?Qf(f,gf):gf;if(t=f.state,!f.output||!f.input&&f.avail_in!==0||t.status===Ml&&l!==Nf)return Qf(f,f.avail_out===0?iw:gf);if(t.strm=f,e=t.last_flush,t.last_flush=l,t.status===he)if(t.wrap===2)f.adler=0,L(t,31),L(t,139),L(t,8),t.gzhead?(L(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),L(t,t.gzhead.time&255),L(t,t.gzhead.time>>8&255),L(t,t.gzhead.time>>16&255),L(t,t.gzhead.time>>24&255),L(t,t.level===9?2:t.strategy>=ge||t.level<2?4:0),L(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(L(t,t.gzhead.extra.length&255),L(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(f.adler=Lf(f.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=dw):(L(t,0),L(t,0),L(t,0),L(t,0),L(t,0),L(t,t.level===9?2:t.strategy>=ge||t.level<2?4:0),L(t,Pm),t.status=el);else{var n=ve+(t.w_bits-8<<4)<<8,m=-1;t.strategy>=ge||t.level<2?m=0:t.level<6?m=1:t.level===6?m=2:m=3,n|=m<<6,t.strstart!==0&&(n|=Um),n+=31-n%31,t.status=el,Ll(t,n),t.strstart!==0&&(Ll(t,f.adler>>>16),Ll(t,f.adler&65535)),f.adler=1}if(t.status===dw)if(t.gzhead.extra){for(o=t.pending;t.gzindex<(t.gzhead.extra.length&65535)&&!(t.pending===t.pending_buf_size&&(t.gzhead.hcrc&&t.pending>o&&(f.adler=Lf(f.adler,t.pending_buf,t.pending-o,o)),Mf(f),o=t.pending,t.pending===t.pending_buf_size));)L(t,t.gzhead.extra[t.gzindex]&255),t.gzindex++;t.gzhead.hcrc&&t.pending>o&&(f.adler=Lf(f.adler,t.pending_buf,t.pending-o,o)),t.gzindex===t.gzhead.extra.length&&(t.gzindex=0,t.status=ke)}else t.status=ke;if(t.status===ke)if(t.gzhead.name){o=t.pending;do{if(t.pending===t.pending_buf_size&&(t.gzhead.hcrc&&t.pending>o&&(f.adler=Lf(f.adler,t.pending_buf,t.pending-o,o)),Mf(f),o=t.pending,t.pending===t.pending_buf_size)){b=1;break}t.gzindex<t.gzhead.name.length?b=t.gzhead.name.charCodeAt(t.gzindex++)&255:b=0,L(t,b)}while(b!==0);t.gzhead.hcrc&&t.pending>o&&(f.adler=Lf(f.adler,t.pending_buf,t.pending-o,o)),b===0&&(t.gzindex=0,t.status=de)}else t.status=de;if(t.status===de)if(t.gzhead.comment){o=t.pending;do{if(t.pending===t.pending_buf_size&&(t.gzhead.hcrc&&t.pending>o&&(f.adler=Lf(f.adler,t.pending_buf,t.pending-o,o)),Mf(f),o=t.pending,t.pending===t.pending_buf_size)){b=1;break}t.gzindex<t.gzhead.comment.length?b=t.gzhead.comment.charCodeAt(t.gzindex++)&255:b=0,L(t,b)}while(b!==0);t.gzhead.hcrc&&t.pending>o&&(f.adler=Lf(f.adler,t.pending_buf,t.pending-o,o)),b===0&&(t.status=ue)}else t.status=ue;if(t.status===ue&&(t.gzhead.hcrc?(t.pending+2>t.pending_buf_size&&Mf(f),t.pending+2<=t.pending_buf_size&&(L(t,f.adler&255),L(t,f.adler>>8&255),f.adler=0,t.status=el)):t.status=el),t.pending!==0){if(Mf(f),f.avail_out===0)return t.last_flush=-1,zf}else if(f.avail_in===0&&wo(l)<=wo(e)&&l!==Nf)return Qf(f,iw);if(t.status===Ml&&f.avail_in!==0)return Qf(f,iw);if(f.avail_in!==0||t.lookahead!==0||l!==ol&&t.status!==Ml){var i=t.strategy===ge?Vm(t,l):t.strategy===ym?Ym(t,l):hl[t.level].func(t,l);if((i===wl||i===cl)&&(t.status=Ml),i===X||i===wl)return f.avail_out===0&&(t.last_flush=-1),zf;if(i===Yl&&(l===xm?sf._tr_align(t):l!==lo&&(sf._tr_stored_block(t,0,0,!1),l===Hm&&(Yf(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),Mf(f),f.avail_out===0))return t.last_flush=-1,zf}return l!==Nf?zf:t.wrap<=0?eo:(t.wrap===2?(L(t,f.adler&255),L(t,f.adler>>8&255),L(t,f.adler>>16&255),L(t,f.adler>>24&255),L(t,f.total_in&255),L(t,f.total_in>>8&255),L(t,f.total_in>>16&255),L(t,f.total_in>>24&255)):(Ll(t,f.adler>>>16),Ll(t,f.adler&65535)),Mf(f),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?zf:eo)}function Gm(f){var l;return!f||!f.state?gf:(l=f.state.status,l!==he&&l!==dw&&l!==ke&&l!==de&&l!==ue&&l!==el&&l!==Ml?Qf(f,gf):(f.state=null,l===el?Qf(f,zm):zf))}function $m(f,l){var e=l.length,t,o,b,n,m,i,j,a;if(!f||!f.state||(t=f.state,n=t.wrap,n===2||n===1&&t.status!==he||t.lookahead))return gf;for(n===1&&(f.adler=to(f.adler,l,e,0)),t.wrap=0,e>=t.w_size&&(n===0&&(Yf(t.head),t.strstart=0,t.block_start=0,t.insert=0),a=new lf.Buf8(t.w_size),lf.arraySet(a,l,e-t.w_size,t.w_size,0),l=a,e=t.w_size),m=f.avail_in,i=f.next_in,j=f.input,f.avail_in=e,f.next_in=0,f.input=l,tl(t);t.lookahead>=P;){o=t.strstart,b=t.lookahead-(P-1);do t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+P-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++;while(--b);t.strstart=o,t.lookahead=P-1,tl(t)}return t.strstart+=t.lookahead,t.block_start=t.strstart,t.insert=t.lookahead,t.lookahead=0,t.match_length=t.prev_length=P-1,t.match_available=0,f.next_in=i,f.input=j,f.avail_in=m,t.wrap=n,zf}_f.deflateInit=Jm;_f.deflateInit2=mo;_f.deflateReset=no;_f.deflateResetKeep=bo;_f.deflateSetHeader=Zm;_f.deflate=Xm;_f.deflateEnd=Gm;_f.deflateSetDictionary=$m;_f.deflateInfo="pako deflate (from Nodeca project)"});var uw=N(xl=>{"use strict";var ce=Sf(),jo=!0,ro=!0;try{String.fromCharCode.apply(null,[0])}catch{jo=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{ro=!1}var Vl=new ce.Buf8(256);for(Kf=0;Kf<256;Kf++)Vl[Kf]=Kf>=252?6:Kf>=248?5:Kf>=240?4:Kf>=224?3:Kf>=192?2:1;var Kf;Vl[254]=Vl[254]=1;xl.string2buf=function(f){var l,e,t,o,b,n=f.length,m=0;for(o=0;o<n;o++)e=f.charCodeAt(o),(e&64512)===55296&&o+1<n&&(t=f.charCodeAt(o+1),(t&64512)===56320&&(e=65536+(e-55296<<10)+(t-56320),o++)),m+=e<128?1:e<2048?2:e<65536?3:4;for(l=new ce.Buf8(m),b=0,o=0;b<m;o++)e=f.charCodeAt(o),(e&64512)===55296&&o+1<n&&(t=f.charCodeAt(o+1),(t&64512)===56320&&(e=65536+(e-55296<<10)+(t-56320),o++)),e<128?l[b++]=e:e<2048?(l[b++]=192|e>>>6,l[b++]=128|e&63):e<65536?(l[b++]=224|e>>>12,l[b++]=128|e>>>6&63,l[b++]=128|e&63):(l[b++]=240|e>>>18,l[b++]=128|e>>>12&63,l[b++]=128|e>>>6&63,l[b++]=128|e&63);return l};function ao(f,l){if(l<65534&&(f.subarray&&ro||!f.subarray&&jo))return String.fromCharCode.apply(null,ce.shrinkBuf(f,l));for(var e="",t=0;t<l;t++)e+=String.fromCharCode(f[t]);return e}xl.buf2binstring=function(f){return ao(f,f.length)};xl.binstring2buf=function(f){for(var l=new ce.Buf8(f.length),e=0,t=l.length;e<t;e++)l[e]=f.charCodeAt(e);return l};xl.buf2string=function(f,l){var e,t,o,b,n=l||f.length,m=new Array(n*2);for(t=0,e=0;e<n;){if(o=f[e++],o<128){m[t++]=o;continue}if(b=Vl[o],b>4){m[t++]=65533,e+=b-1;continue}for(o&=b===2?31:b===3?15:7;b>1&&e<n;)o=o<<6|f[e++]&63,b--;if(b>1){m[t++]=65533;continue}o<65536?m[t++]=o:(o-=65536,m[t++]=55296|o>>10&1023,m[t++]=56320|o&1023)}return ao(m,t)};xl.utf8border=function(f,l){var e;for(l=l||f.length,l>f.length&&(l=f.length),e=l-1;e>=0&&(f[e]&192)===128;)e--;return e<0||e===0?l:e+Vl[f[e]]>l?e:l}});var vw=N((Pr,qo)=>{"use strict";function fp(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}qo.exports=fp});var ko=N(Zl=>{"use strict";var Ql=po(),Nl=Sf(),cw=uw(),xw=ie(),lp=vw(),go=Object.prototype.toString,ep=0,hw=4,Hl=0,so=1,io=2,wp=-1,tp=0,op=8;function bl(f){if(!(this instanceof bl))return new bl(f);this.options=Nl.assign({level:wp,method:op,chunkSize:16384,windowBits:15,memLevel:8,strategy:tp,to:""},f||{});var l=this.options;l.raw&&l.windowBits>0?l.windowBits=-l.windowBits:l.gzip&&l.windowBits>0&&l.windowBits<16&&(l.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new lp,this.strm.avail_out=0;var e=Ql.deflateInit2(this.strm,l.level,l.method,l.windowBits,l.memLevel,l.strategy);if(e!==Hl)throw new Error(xw[e]);if(l.header&&Ql.deflateSetHeader(this.strm,l.header),l.dictionary){var t;if(typeof l.dictionary=="string"?t=cw.string2buf(l.dictionary):go.call(l.dictionary)==="[object ArrayBuffer]"?t=new Uint8Array(l.dictionary):t=l.dictionary,e=Ql.deflateSetDictionary(this.strm,t),e!==Hl)throw new Error(xw[e]);this._dict_set=!0}}bl.prototype.push=function(f,l){var e=this.strm,t=this.options.chunkSize,o,b;if(this.ended)return!1;b=l===~~l?l:l===!0?hw:ep,typeof f=="string"?e.input=cw.string2buf(f):go.call(f)==="[object ArrayBuffer]"?e.input=new Uint8Array(f):e.input=f,e.next_in=0,e.avail_in=e.input.length;do{if(e.avail_out===0&&(e.output=new Nl.Buf8(t),e.next_out=0,e.avail_out=t),o=Ql.deflate(e,b),o!==so&&o!==Hl)return this.onEnd(o),this.ended=!0,!1;(e.avail_out===0||e.avail_in===0&&(b===hw||b===io))&&(this.options.to==="string"?this.onData(cw.buf2binstring(Nl.shrinkBuf(e.output,e.next_out))):this.onData(Nl.shrinkBuf(e.output,e.next_out)))}while((e.avail_in>0||e.avail_out===0)&&o!==so);return b===hw?(o=Ql.deflateEnd(this.strm),this.onEnd(o),this.ended=!0,o===Hl):(b===io&&(this.onEnd(Hl),e.avail_out=0),!0)};bl.prototype.onData=function(f){this.chunks.push(f)};bl.prototype.onEnd=function(f){f===Hl&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Nl.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg};function Hw(f,l){var e=new bl(l);if(e.push(f,!0),e.err)throw e.msg||xw[e.err];return e.result}function bp(f,l){return l=l||{},l.raw=!0,Hw(f,l)}function np(f,l){return l=l||{},l.gzip=!0,Hw(f,l)}Zl.Deflate=bl;Zl.deflate=Hw;Zl.deflateRaw=bp;Zl.gzip=np});var vo=N((Mr,uo)=>{"use strict";var xe=30,mp=12;uo.exports=function(l,e){var t,o,b,n,m,i,j,a,H,d,u,c,z,R,B,U,O,I,h,W,A,T,F,Q,S;t=l.state,o=l.next_in,Q=l.input,b=o+(l.avail_in-5),n=l.next_out,S=l.output,m=n-(e-l.avail_out),i=n+(l.avail_out-257),j=t.dmax,a=t.wsize,H=t.whave,d=t.wnext,u=t.window,c=t.hold,z=t.bits,R=t.lencode,B=t.distcode,U=(1<<t.lenbits)-1,O=(1<<t.distbits)-1;f:do{z<15&&(c+=Q[o++]<<z,z+=8,c+=Q[o++]<<z,z+=8),I=R[c&U];l:for(;;){if(h=I>>>24,c>>>=h,z-=h,h=I>>>16&255,h===0)S[n++]=I&65535;else if(h&16){W=I&65535,h&=15,h&&(z<h&&(c+=Q[o++]<<z,z+=8),W+=c&(1<<h)-1,c>>>=h,z-=h),z<15&&(c+=Q[o++]<<z,z+=8,c+=Q[o++]<<z,z+=8),I=B[c&O];e:for(;;){if(h=I>>>24,c>>>=h,z-=h,h=I>>>16&255,h&16){if(A=I&65535,h&=15,z<h&&(c+=Q[o++]<<z,z+=8,z<h&&(c+=Q[o++]<<z,z+=8)),A+=c&(1<<h)-1,A>j){l.msg="invalid distance too far back",t.mode=xe;break f}if(c>>>=h,z-=h,h=n-m,A>h){if(h=A-h,h>H&&t.sane){l.msg="invalid distance too far back",t.mode=xe;break f}if(T=0,F=u,d===0){if(T+=a-h,h<W){W-=h;do S[n++]=u[T++];while(--h);T=n-A,F=S}}else if(d<h){if(T+=a+d-h,h-=d,h<W){W-=h;do S[n++]=u[T++];while(--h);if(T=0,d<W){h=d,W-=h;do S[n++]=u[T++];while(--h);T=n-A,F=S}}}else if(T+=d-h,h<W){W-=h;do S[n++]=u[T++];while(--h);T=n-A,F=S}for(;W>2;)S[n++]=F[T++],S[n++]=F[T++],S[n++]=F[T++],W-=3;W&&(S[n++]=F[T++],W>1&&(S[n++]=F[T++]))}else{T=n-A;do S[n++]=S[T++],S[n++]=S[T++],S[n++]=S[T++],W-=3;while(W>2);W&&(S[n++]=S[T++],W>1&&(S[n++]=S[T++]))}}else if(h&64){l.msg="invalid distance code",t.mode=xe;break f}else{I=B[(I&65535)+(c&(1<<h)-1)];continue e}break}}else if(h&64)if(h&32){t.mode=mp;break f}else{l.msg="invalid literal/length code",t.mode=xe;break f}else{I=R[(I&65535)+(c&(1<<h)-1)];continue l}break}}while(o<b&&n<i);W=z>>3,o-=W,z-=W<<3,c&=(1<<z)-1,l.next_in=o,l.next_out=n,l.avail_in=o<b?5+(b-o):5-(o-b),l.avail_out=n<i?257+(i-n):257-(n-i),t.hold=c,t.bits=z}});var Bo=N((Yr,_o)=>{"use strict";var ho=Sf(),zl=15,co=852,xo=592,Ho=0,zw=1,zo=2,pp=[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],jp=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],rp=[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,0,0],ap=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];_o.exports=function(l,e,t,o,b,n,m,i){var j=i.bits,a=0,H=0,d=0,u=0,c=0,z=0,R=0,B=0,U=0,O=0,I,h,W,A,T,F=null,Q=0,S,bf=new ho.Buf16(zl+1),ql=new ho.Buf16(zl+1),sl=null,Zf=0,Il,Cf,Jf;for(a=0;a<=zl;a++)bf[a]=0;for(H=0;H<o;H++)bf[e[t+H]]++;for(c=j,u=zl;u>=1&&bf[u]===0;u--);if(c>u&&(c=u),u===0)return b[n++]=1<<24|64<<16|0,b[n++]=1<<24|64<<16|0,i.bits=1,0;for(d=1;d<u&&bf[d]===0;d++);for(c<d&&(c=d),B=1,a=1;a<=zl;a++)if(B<<=1,B-=bf[a],B<0)return-1;if(B>0&&(l===Ho||u!==1))return-1;for(ql[1]=0,a=1;a<zl;a++)ql[a+1]=ql[a]+bf[a];for(H=0;H<o;H++)e[t+H]!==0&&(m[ql[e[t+H]]++]=H);if(l===Ho?(F=sl=m,S=19):l===zw?(F=pp,Q-=257,sl=jp,Zf-=257,S=256):(F=rp,sl=ap,S=-1),O=0,H=0,a=d,T=n,z=c,R=0,W=-1,U=1<<c,A=U-1,l===zw&&U>co||l===zo&&U>xo)return 1;for(;;){Il=a-R,m[H]<S?(Cf=0,Jf=m[H]):m[H]>S?(Cf=sl[Zf+m[H]],Jf=F[Q+m[H]]):(Cf=32+64,Jf=0),I=1<<a-R,h=1<<z,d=h;do h-=I,b[T+(O>>R)+h]=Il<<24|Cf<<16|Jf|0;while(h!==0);for(I=1<<a-1;O&I;)I>>=1;if(I!==0?(O&=I-1,O+=I):O=0,H++,--bf[a]===0){if(a===u)break;a=e[t+m[H]]}if(a>c&&(O&A)!==W){for(R===0&&(R=c),T+=d,z=a-R,B=1<<z;z+R<u&&(B-=bf[z+R],!(B<=0));)z++,B<<=1;if(U+=1<<z,l===zw&&U>co||l===zo&&U>xo)return 1;W=O&A,b[W]=c<<24|z<<16|T-n|0}}return O!==0&&(b[T+O]=a-R<<24|64<<16|0),i.bits=c,0}});var mb=N(hf=>{"use strict";var rf=Sf(),Rw=qw(),Bf=sw(),qp=vo(),Jl=Bo(),sp=0,$o=1,fb=2,yo=4,ip=5,He=6,nl=0,gp=1,kp=2,kf=-2,lb=-3,Aw=-4,dp=-5,To=8,eb=1,Io=2,Ro=3,Ao=4,So=5,Eo=6,Ko=7,Fo=8,Do=9,Co=10,Be=11,Ff=12,_w=13,Oo=14,Bw=15,Wo=16,Uo=17,Po=18,Lo=19,ze=20,_e=21,Mo=22,Yo=23,Vo=24,Qo=25,No=26,yw=27,Zo=28,Jo=29,V=30,Sw=31,up=32,vp=852,hp=592,cp=15,xp=cp;function Xo(f){return(f>>>24&255)+(f>>>8&65280)+((f&65280)<<8)+((f&255)<<24)}function Hp(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new rf.Buf16(320),this.work=new rf.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function wb(f){var l;return!f||!f.state?kf:(l=f.state,f.total_in=f.total_out=l.total=0,f.msg="",l.wrap&&(f.adler=l.wrap&1),l.mode=eb,l.last=0,l.havedict=0,l.dmax=32768,l.head=null,l.hold=0,l.bits=0,l.lencode=l.lendyn=new rf.Buf32(vp),l.distcode=l.distdyn=new rf.Buf32(hp),l.sane=1,l.back=-1,nl)}function tb(f){var l;return!f||!f.state?kf:(l=f.state,l.wsize=0,l.whave=0,l.wnext=0,wb(f))}function ob(f,l){var e,t;return!f||!f.state||(t=f.state,l<0?(e=0,l=-l):(e=(l>>4)+1,l<48&&(l&=15)),l&&(l<8||l>15))?kf:(t.window!==null&&t.wbits!==l&&(t.window=null),t.wrap=e,t.wbits=l,tb(f))}function bb(f,l){var e,t;return f?(t=new Hp,f.state=t,t.window=null,e=ob(f,l),e!==nl&&(f.state=null),e):kf}function zp(f){return bb(f,xp)}var Go=!0,Tw,Iw;function _p(f){if(Go){var l;for(Tw=new rf.Buf32(512),Iw=new rf.Buf32(32),l=0;l<144;)f.lens[l++]=8;for(;l<256;)f.lens[l++]=9;for(;l<280;)f.lens[l++]=7;for(;l<288;)f.lens[l++]=8;for(Jl($o,f.lens,0,288,Tw,0,f.work,{bits:9}),l=0;l<32;)f.lens[l++]=5;Jl(fb,f.lens,0,32,Iw,0,f.work,{bits:5}),Go=!1}f.lencode=Tw,f.lenbits=9,f.distcode=Iw,f.distbits=5}function nb(f,l,e,t){var o,b=f.state;return b.window===null&&(b.wsize=1<<b.wbits,b.wnext=0,b.whave=0,b.window=new rf.Buf8(b.wsize)),t>=b.wsize?(rf.arraySet(b.window,l,e-b.wsize,b.wsize,0),b.wnext=0,b.whave=b.wsize):(o=b.wsize-b.wnext,o>t&&(o=t),rf.arraySet(b.window,l,e-t,o,b.wnext),t-=o,t?(rf.arraySet(b.window,l,e-t,t,0),b.wnext=t,b.whave=b.wsize):(b.wnext+=o,b.wnext===b.wsize&&(b.wnext=0),b.whave<b.wsize&&(b.whave+=o))),0}function Bp(f,l){var e,t,o,b,n,m,i,j,a,H,d,u,c,z,R=0,B,U,O,I,h,W,A,T,F=new rf.Buf8(4),Q,S,bf=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!f||!f.state||!f.output||!f.input&&f.avail_in!==0)return kf;e=f.state,e.mode===Ff&&(e.mode=_w),n=f.next_out,o=f.output,i=f.avail_out,b=f.next_in,t=f.input,m=f.avail_in,j=e.hold,a=e.bits,H=m,d=i,T=nl;f:for(;;)switch(e.mode){case eb:if(e.wrap===0){e.mode=_w;break}for(;a<16;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if(e.wrap&2&&j===35615){e.check=0,F[0]=j&255,F[1]=j>>>8&255,e.check=Bf(e.check,F,2,0),j=0,a=0,e.mode=Io;break}if(e.flags=0,e.head&&(e.head.done=!1),!(e.wrap&1)||(((j&255)<<8)+(j>>8))%31){f.msg="incorrect header check",e.mode=V;break}if((j&15)!==To){f.msg="unknown compression method",e.mode=V;break}if(j>>>=4,a-=4,A=(j&15)+8,e.wbits===0)e.wbits=A;else if(A>e.wbits){f.msg="invalid window size",e.mode=V;break}e.dmax=1<<A,f.adler=e.check=1,e.mode=j&512?Co:Ff,j=0,a=0;break;case Io:for(;a<16;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if(e.flags=j,(e.flags&255)!==To){f.msg="unknown compression method",e.mode=V;break}if(e.flags&57344){f.msg="unknown header flags set",e.mode=V;break}e.head&&(e.head.text=j>>8&1),e.flags&512&&(F[0]=j&255,F[1]=j>>>8&255,e.check=Bf(e.check,F,2,0)),j=0,a=0,e.mode=Ro;case Ro:for(;a<32;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}e.head&&(e.head.time=j),e.flags&512&&(F[0]=j&255,F[1]=j>>>8&255,F[2]=j>>>16&255,F[3]=j>>>24&255,e.check=Bf(e.check,F,4,0)),j=0,a=0,e.mode=Ao;case Ao:for(;a<16;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}e.head&&(e.head.xflags=j&255,e.head.os=j>>8),e.flags&512&&(F[0]=j&255,F[1]=j>>>8&255,e.check=Bf(e.check,F,2,0)),j=0,a=0,e.mode=So;case So:if(e.flags&1024){for(;a<16;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}e.length=j,e.head&&(e.head.extra_len=j),e.flags&512&&(F[0]=j&255,F[1]=j>>>8&255,e.check=Bf(e.check,F,2,0)),j=0,a=0}else e.head&&(e.head.extra=null);e.mode=Eo;case Eo:if(e.flags&1024&&(u=e.length,u>m&&(u=m),u&&(e.head&&(A=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Array(e.head.extra_len)),rf.arraySet(e.head.extra,t,b,u,A)),e.flags&512&&(e.check=Bf(e.check,t,u,b)),m-=u,b+=u,e.length-=u),e.length))break f;e.length=0,e.mode=Ko;case Ko:if(e.flags&2048){if(m===0)break f;u=0;do A=t[b+u++],e.head&&A&&e.length<65536&&(e.head.name+=String.fromCharCode(A));while(A&&u<m);if(e.flags&512&&(e.check=Bf(e.check,t,u,b)),m-=u,b+=u,A)break f}else e.head&&(e.head.name=null);e.length=0,e.mode=Fo;case Fo:if(e.flags&4096){if(m===0)break f;u=0;do A=t[b+u++],e.head&&A&&e.length<65536&&(e.head.comment+=String.fromCharCode(A));while(A&&u<m);if(e.flags&512&&(e.check=Bf(e.check,t,u,b)),m-=u,b+=u,A)break f}else e.head&&(e.head.comment=null);e.mode=Do;case Do:if(e.flags&512){for(;a<16;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if(j!==(e.check&65535)){f.msg="header crc mismatch",e.mode=V;break}j=0,a=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),f.adler=e.check=0,e.mode=Ff;break;case Co:for(;a<32;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}f.adler=e.check=Xo(j),j=0,a=0,e.mode=Be;case Be:if(e.havedict===0)return f.next_out=n,f.avail_out=i,f.next_in=b,f.avail_in=m,e.hold=j,e.bits=a,kp;f.adler=e.check=1,e.mode=Ff;case Ff:if(l===ip||l===He)break f;case _w:if(e.last){j>>>=a&7,a-=a&7,e.mode=yw;break}for(;a<3;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}switch(e.last=j&1,j>>>=1,a-=1,j&3){case 0:e.mode=Oo;break;case 1:if(_p(e),e.mode=ze,l===He){j>>>=2,a-=2;break f}break;case 2:e.mode=Uo;break;case 3:f.msg="invalid block type",e.mode=V}j>>>=2,a-=2;break;case Oo:for(j>>>=a&7,a-=a&7;a<32;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if((j&65535)!==(j>>>16^65535)){f.msg="invalid stored block lengths",e.mode=V;break}if(e.length=j&65535,j=0,a=0,e.mode=Bw,l===He)break f;case Bw:e.mode=Wo;case Wo:if(u=e.length,u){if(u>m&&(u=m),u>i&&(u=i),u===0)break f;rf.arraySet(o,t,b,u,n),m-=u,b+=u,i-=u,n+=u,e.length-=u;break}e.mode=Ff;break;case Uo:for(;a<14;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if(e.nlen=(j&31)+257,j>>>=5,a-=5,e.ndist=(j&31)+1,j>>>=5,a-=5,e.ncode=(j&15)+4,j>>>=4,a-=4,e.nlen>286||e.ndist>30){f.msg="too many length or distance symbols",e.mode=V;break}e.have=0,e.mode=Po;case Po:for(;e.have<e.ncode;){for(;a<3;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}e.lens[bf[e.have++]]=j&7,j>>>=3,a-=3}for(;e.have<19;)e.lens[bf[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,Q={bits:e.lenbits},T=Jl(sp,e.lens,0,19,e.lencode,0,e.work,Q),e.lenbits=Q.bits,T){f.msg="invalid code lengths set",e.mode=V;break}e.have=0,e.mode=Lo;case Lo:for(;e.have<e.nlen+e.ndist;){for(;R=e.lencode[j&(1<<e.lenbits)-1],B=R>>>24,U=R>>>16&255,O=R&65535,!(B<=a);){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if(O<16)j>>>=B,a-=B,e.lens[e.have++]=O;else{if(O===16){for(S=B+2;a<S;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if(j>>>=B,a-=B,e.have===0){f.msg="invalid bit length repeat",e.mode=V;break}A=e.lens[e.have-1],u=3+(j&3),j>>>=2,a-=2}else if(O===17){for(S=B+3;a<S;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}j>>>=B,a-=B,A=0,u=3+(j&7),j>>>=3,a-=3}else{for(S=B+7;a<S;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}j>>>=B,a-=B,A=0,u=11+(j&127),j>>>=7,a-=7}if(e.have+u>e.nlen+e.ndist){f.msg="invalid bit length repeat",e.mode=V;break}for(;u--;)e.lens[e.have++]=A}}if(e.mode===V)break;if(e.lens[256]===0){f.msg="invalid code -- missing end-of-block",e.mode=V;break}if(e.lenbits=9,Q={bits:e.lenbits},T=Jl($o,e.lens,0,e.nlen,e.lencode,0,e.work,Q),e.lenbits=Q.bits,T){f.msg="invalid literal/lengths set",e.mode=V;break}if(e.distbits=6,e.distcode=e.distdyn,Q={bits:e.distbits},T=Jl(fb,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,Q),e.distbits=Q.bits,T){f.msg="invalid distances set",e.mode=V;break}if(e.mode=ze,l===He)break f;case ze:e.mode=_e;case _e:if(m>=6&&i>=258){f.next_out=n,f.avail_out=i,f.next_in=b,f.avail_in=m,e.hold=j,e.bits=a,qp(f,d),n=f.next_out,o=f.output,i=f.avail_out,b=f.next_in,t=f.input,m=f.avail_in,j=e.hold,a=e.bits,e.mode===Ff&&(e.back=-1);break}for(e.back=0;R=e.lencode[j&(1<<e.lenbits)-1],B=R>>>24,U=R>>>16&255,O=R&65535,!(B<=a);){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if(U&&!(U&240)){for(I=B,h=U,W=O;R=e.lencode[W+((j&(1<<I+h)-1)>>I)],B=R>>>24,U=R>>>16&255,O=R&65535,!(I+B<=a);){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}j>>>=I,a-=I,e.back+=I}if(j>>>=B,a-=B,e.back+=B,e.length=O,U===0){e.mode=No;break}if(U&32){e.back=-1,e.mode=Ff;break}if(U&64){f.msg="invalid literal/length code",e.mode=V;break}e.extra=U&15,e.mode=Mo;case Mo:if(e.extra){for(S=e.extra;a<S;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}e.length+=j&(1<<e.extra)-1,j>>>=e.extra,a-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=Yo;case Yo:for(;R=e.distcode[j&(1<<e.distbits)-1],B=R>>>24,U=R>>>16&255,O=R&65535,!(B<=a);){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if(!(U&240)){for(I=B,h=U,W=O;R=e.distcode[W+((j&(1<<I+h)-1)>>I)],B=R>>>24,U=R>>>16&255,O=R&65535,!(I+B<=a);){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}j>>>=I,a-=I,e.back+=I}if(j>>>=B,a-=B,e.back+=B,U&64){f.msg="invalid distance code",e.mode=V;break}e.offset=O,e.extra=U&15,e.mode=Vo;case Vo:if(e.extra){for(S=e.extra;a<S;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}e.offset+=j&(1<<e.extra)-1,j>>>=e.extra,a-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){f.msg="invalid distance too far back",e.mode=V;break}e.mode=Qo;case Qo:if(i===0)break f;if(u=d-i,e.offset>u){if(u=e.offset-u,u>e.whave&&e.sane){f.msg="invalid distance too far back",e.mode=V;break}u>e.wnext?(u-=e.wnext,c=e.wsize-u):c=e.wnext-u,u>e.length&&(u=e.length),z=e.window}else z=o,c=n-e.offset,u=e.length;u>i&&(u=i),i-=u,e.length-=u;do o[n++]=z[c++];while(--u);e.length===0&&(e.mode=_e);break;case No:if(i===0)break f;o[n++]=e.length,i--,e.mode=_e;break;case yw:if(e.wrap){for(;a<32;){if(m===0)break f;m--,j|=t[b++]<<a,a+=8}if(d-=i,f.total_out+=d,e.total+=d,d&&(f.adler=e.check=e.flags?Bf(e.check,o,d,n-d):Rw(e.check,o,d,n-d)),d=i,(e.flags?j:Xo(j))!==e.check){f.msg="incorrect data check",e.mode=V;break}j=0,a=0}e.mode=Zo;case Zo:if(e.wrap&&e.flags){for(;a<32;){if(m===0)break f;m--,j+=t[b++]<<a,a+=8}if(j!==(e.total&4294967295)){f.msg="incorrect length check",e.mode=V;break}j=0,a=0}e.mode=Jo;case Jo:T=gp;break f;case V:T=lb;break f;case Sw:return Aw;case up:default:return kf}return f.next_out=n,f.avail_out=i,f.next_in=b,f.avail_in=m,e.hold=j,e.bits=a,(e.wsize||d!==f.avail_out&&e.mode<V&&(e.mode<yw||l!==yo))&&nb(f,f.output,f.next_out,d-f.avail_out)?(e.mode=Sw,Aw):(H-=f.avail_in,d-=f.avail_out,f.total_in+=H,f.total_out+=d,e.total+=d,e.wrap&&d&&(f.adler=e.check=e.flags?Bf(e.check,o,d,f.next_out-d):Rw(e.check,o,d,f.next_out-d)),f.data_type=e.bits+(e.last?64:0)+(e.mode===Ff?128:0)+(e.mode===ze||e.mode===Bw?256:0),(H===0&&d===0||l===yo)&&T===nl&&(T=dp),T)}function yp(f){if(!f||!f.state)return kf;var l=f.state;return l.window&&(l.window=null),f.state=null,nl}function Tp(f,l){var e;return!f||!f.state||(e=f.state,!(e.wrap&2))?kf:(e.head=l,l.done=!1,nl)}function Ip(f,l){var e=l.length,t,o,b;return!f||!f.state||(t=f.state,t.wrap!==0&&t.mode!==Be)?kf:t.mode===Be&&(o=1,o=Rw(o,l,e,0),o!==t.check)?lb:(b=nb(f,l,e,e),b?(t.mode=Sw,Aw):(t.havedict=1,nl))}hf.inflateReset=tb;hf.inflateReset2=ob;hf.inflateResetKeep=wb;hf.inflateInit=zp;hf.inflateInit2=bb;hf.inflate=Bp;hf.inflateEnd=yp;hf.inflateGetHeader=Tp;hf.inflateSetDictionary=Ip;hf.inflateInfo="pako inflate (from Nodeca project)"});var Ew=N((Qr,pb)=>{"use strict";pb.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var rb=N((Nr,jb)=>{"use strict";function Rp(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}jb.exports=Rp});var qb=N(Gl=>{"use strict";var _l=mb(),Xl=Sf(),ye=uw(),Z=Ew(),Kw=ie(),Ap=vw(),Sp=rb(),ab=Object.prototype.toString;function ml(f){if(!(this instanceof ml))return new ml(f);this.options=Xl.assign({chunkSize:16384,windowBits:0,to:""},f||{});var l=this.options;l.raw&&l.windowBits>=0&&l.windowBits<16&&(l.windowBits=-l.windowBits,l.windowBits===0&&(l.windowBits=-15)),l.windowBits>=0&&l.windowBits<16&&!(f&&f.windowBits)&&(l.windowBits+=32),l.windowBits>15&&l.windowBits<48&&(l.windowBits&15||(l.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ap,this.strm.avail_out=0;var e=_l.inflateInit2(this.strm,l.windowBits);if(e!==Z.Z_OK)throw new Error(Kw[e]);if(this.header=new Sp,_l.inflateGetHeader(this.strm,this.header),l.dictionary&&(typeof l.dictionary=="string"?l.dictionary=ye.string2buf(l.dictionary):ab.call(l.dictionary)==="[object ArrayBuffer]"&&(l.dictionary=new Uint8Array(l.dictionary)),l.raw&&(e=_l.inflateSetDictionary(this.strm,l.dictionary),e!==Z.Z_OK)))throw new Error(Kw[e])}ml.prototype.push=function(f,l){var e=this.strm,t=this.options.chunkSize,o=this.options.dictionary,b,n,m,i,j,a=!1;if(this.ended)return!1;n=l===~~l?l:l===!0?Z.Z_FINISH:Z.Z_NO_FLUSH,typeof f=="string"?e.input=ye.binstring2buf(f):ab.call(f)==="[object ArrayBuffer]"?e.input=new Uint8Array(f):e.input=f,e.next_in=0,e.avail_in=e.input.length;do{if(e.avail_out===0&&(e.output=new Xl.Buf8(t),e.next_out=0,e.avail_out=t),b=_l.inflate(e,Z.Z_NO_FLUSH),b===Z.Z_NEED_DICT&&o&&(b=_l.inflateSetDictionary(this.strm,o)),b===Z.Z_BUF_ERROR&&a===!0&&(b=Z.Z_OK,a=!1),b!==Z.Z_STREAM_END&&b!==Z.Z_OK)return this.onEnd(b),this.ended=!0,!1;e.next_out&&(e.avail_out===0||b===Z.Z_STREAM_END||e.avail_in===0&&(n===Z.Z_FINISH||n===Z.Z_SYNC_FLUSH))&&(this.options.to==="string"?(m=ye.utf8border(e.output,e.next_out),i=e.next_out-m,j=ye.buf2string(e.output,m),e.next_out=i,e.avail_out=t-i,i&&Xl.arraySet(e.output,e.output,m,i,0),this.onData(j)):this.onData(Xl.shrinkBuf(e.output,e.next_out))),e.avail_in===0&&e.avail_out===0&&(a=!0)}while((e.avail_in>0||e.avail_out===0)&&b!==Z.Z_STREAM_END);return b===Z.Z_STREAM_END&&(n=Z.Z_FINISH),n===Z.Z_FINISH?(b=_l.inflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===Z.Z_OK):(n===Z.Z_SYNC_FLUSH&&(this.onEnd(Z.Z_OK),e.avail_out=0),!0)};ml.prototype.onData=function(f){this.chunks.push(f)};ml.prototype.onEnd=function(f){f===Z.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Xl.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg};function Fw(f,l){var e=new ml(l);if(e.push(f,!0),e.err)throw e.msg||Kw[e.err];return e.result}function Ep(f,l){return l=l||{},l.raw=!0,Fw(f,l)}Gl.Inflate=ml;Gl.inflate=Fw;Gl.inflateRaw=Ep;Gl.ungzip=Fw});var gb=N((Jr,ib)=>{"use strict";var Kp=Sf().assign,Fp=ko(),Dp=qb(),Cp=Ew(),sb={};Kp(sb,Fp,Dp,Cp);ib.exports=sb});var db=N(kb=>{"use strict";var Wp=[0,255,65535,16777215,4294967295];function Up(f,l,e,t,o){var b;for(b=0;b<o;b++)e[t+b]=f[l+b]}function Pp(f,l,e,t){var o;for(o=0;o<t;o++)f[l+o]=f[l-e+o]}function Dw(f){this.array=f,this.pos=0}Dw.prototype.readUncompressedLength=function(){for(var f=0,l=0,e,t;l<32&&this.pos<this.array.length;){if(e=this.array[this.pos],this.pos+=1,t=e&127,t<<l>>>l!==t)return-1;if(f|=t<<l,e<128)return f;l+=7}return-1};Dw.prototype.uncompressToBuffer=function(f){for(var l=this.array,e=l.length,t=this.pos,o=0,b,n,m,i;t<l.length;)if(b=l[t],t+=1,b&3){switch(b&3){case 1:n=(b>>>2&7)+4,i=l[t]+(b>>>5<<8),t+=1;break;case 2:if(t+1>=e)return!1;n=(b>>>2)+1,i=l[t]+(l[t+1]<<8),t+=2;break;case 3:if(t+3>=e)return!1;n=(b>>>2)+1,i=l[t]+(l[t+1]<<8)+(l[t+2]<<16)+(l[t+3]<<24),t+=4;break;default:break}if(i===0||i>o)return!1;Pp(f,o,i,n),o+=n}else{if(n=(b>>>2)+1,n>60){if(t+3>=e)return!1;m=n-60,n=l[t]+(l[t+1]<<8)+(l[t+2]<<16)+(l[t+3]<<24),n=(n&Wp[m])+1,t+=m}if(t+n>e)return!1;Up(l,t,f,o,n),t+=n,o+=n}return!0};kb.SnappyDecompressor=Dw});var xb=N(cb=>{"use strict";var Lp=16,Mp=1<<Lp,hb=14,Cw=new Array(hb+1);function $l(f,l){return f*506832829>>>l}function fe(f,l){return f[l]+(f[l+1]<<8)+(f[l+2]<<16)+(f[l+3]<<24)}function ub(f,l,e){return f[l]===f[e]&&f[l+1]===f[e+1]&&f[l+2]===f[e+2]&&f[l+3]===f[e+3]}function Yp(f,l,e,t,o){var b;for(b=0;b<o;b++)e[t+b]=f[l+b]}function vb(f,l,e,t,o){return e<=60?(t[o]=e-1<<2,o+=1):e<256?(t[o]=60<<2,t[o+1]=e-1,o+=2):(t[o]=61<<2,t[o+1]=e-1&255,t[o+2]=e-1>>>8,o+=3),Yp(f,l,t,o,e),o+e}function Ow(f,l,e,t){return t<12&&e<2048?(f[l]=1+(t-4<<2)+(e>>>8<<5),f[l+1]=e&255,l+2):(f[l]=2+(t-1<<2),f[l+1]=e&255,f[l+2]=e>>>8,l+3)}function Vp(f,l,e,t){for(;t>=68;)l=Ow(f,l,e,64),t-=64;return t>64&&(l=Ow(f,l,e,60),t-=60),Ow(f,l,e,t)}function Qp(f,l,e,t,o){for(var b=1;1<<b<=e&&b<=hb;)b+=1;b-=1;var n=32-b;typeof Cw[b]>"u"&&(Cw[b]=new Uint16Array(1<<b));var m=Cw[b],i;for(i=0;i<m.length;i++)m[i]=0;var j=l+e,a,H=l,d=l,u,c,z,R,B,U,O,I,h,W,A,T=!0,F=15;if(e>=F)for(a=j-F,l+=1,c=$l(fe(f,l),n);T;){B=32,z=l;do{if(l=z,u=c,U=B>>>5,B+=1,z=l+U,l>a){T=!1;break}c=$l(fe(f,z),n),R=H+m[u],m[u]=l-H}while(!ub(f,l,R));if(!T)break;o=vb(f,d,l-d,t,o);do{for(O=l,I=4;l+I<j&&f[l+I]===f[R+I];)I+=1;if(l+=I,h=O-R,o=Vp(t,o,h,I),d=l,l>=a){T=!1;break}W=$l(fe(f,l-1),n),m[W]=l-1-H,A=$l(fe(f,l),n),R=H+m[A],m[A]=l-H}while(ub(f,l,R));if(!T)break;l+=1,c=$l(fe(f,l),n)}return d<j&&(o=vb(f,d,j-d,t,o)),o}function Np(f,l,e){do l[e]=f&127,f=f>>>7,f>0&&(l[e]+=128),e+=1;while(f>0);return e}function Ww(f){this.array=f}Ww.prototype.maxCompressedLength=function(){var f=this.array.length;return 32+f+Math.floor(f/6)};Ww.prototype.compressToBuffer=function(f){var l=this.array,e=l.length,t=0,o=0,b;for(o=Np(e,f,o);t<e;)b=Math.min(e-t,Mp),o=Qp(l,t,b,f,o),t+=b;return o};cb.SnappyCompressor=Ww});var Bb=N(Uw=>{"use strict";function Hb(){return typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node<"u"}function Re(f){return f instanceof Uint8Array&&(!Hb()||!Buffer.isBuffer(f))}function Ae(f){return f instanceof ArrayBuffer}function zb(f){return Hb()?Buffer.isBuffer(f):!1}var Zp=db().SnappyDecompressor,Jp=xb().SnappyCompressor,_b="Argument compressed must be type of ArrayBuffer, Buffer, or Uint8Array";function Xp(f){if(!Re(f)&&!Ae(f)&&!zb(f))throw new TypeError(_b);var l