@volter/twin-sentry 0.1.20 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -313,7 +313,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
313
313
  `))}throw Y0}};function K0(d,m,r,Y0,W0){if(!l(m))throw new T("regexp","RegExp",m);var I0=W0==="match";if(typeof d!=="string"||Q0(m,d)!==I0){if(r instanceof Error)throw r;var c=!r;r=r||(typeof d!=="string"?'The "string" argument must be of type string. Received type '+"".concat(G(d)," (").concat(y(d),")"):(I0?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(y(m),`. Input:
314
314
 
315
315
  `).concat(y(d),`
316
- `));var s=new x({actual:d,expected:m,message:r,operator:W0,stackStartFn:Y0});throw s.generatedMessage=c,s}}Q.match=function d(m,r,Y0){K0(m,r,Y0,d,"match")},Q.doesNotMatch=function d(m,r,Y0){K0(m,r,Y0,d,"doesNotMatch")};function O0(){for(var d=arguments.length,m=Array(d),r=0;r<d;r++)m[r]=arguments[r];H.apply(void 0,[O0,m.length].concat(m))}Q.strict=i(O0,Q,{equal:Q.strictEqual,deepEqual:Q.deepStrictEqual,notEqual:Q.notStrictEqual,notDeepEqual:Q.notDeepStrictEqual}),Q.strict.strict=Q.strict}),ag=Sr(qE(),1),{AssertionError:Ha,CallTracker:Fa,deepEqual:Ta,deepStrictEqual:Ma,doesNotMatch:Aa,doesNotReject:Ea,doesNotThrow:Ra,equal:Pa,fail:Va,ifError:Sa,match:va,notDeepEqual:Ca,notDeepStrictEqual:qa,notEqual:Na,notStrictEqual:Ba,ok:ja,rejects:ka,strict:ga,strictEqual:wa,throws:xa}=ag,fa=ag});var Xw={};LU(Xw,{default:()=>ra});var ya,ba,Qz,hE,uE,ha=($,I,G)=>{for(let Z of hE(I))if(!uE.call($,Z)&&Z!=="default")Qz($,Z,{get:()=>I[Z],enumerable:!0});if(G){for(let Z of hE(I))if(!uE.call(G,Z)&&Z!=="default")Qz(G,Z,{get:()=>I[Z],enumerable:!0});return G}},sg=($,I,G)=>{G=$!=null?ya(ba($)):{};let Z=I||!$||!$.__esModule?Qz(G,"default",{value:$,enumerable:!0}):G;for(let _ of hE($))if(!uE.call(Z,_))Qz(Z,_,{get:()=>$[_],enumerable:!0});return Z},b6=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports),ua=($,I)=>{for(var G in I)Qz($,G,{get:I[G],enumerable:!0,configurable:!0,set:(Z)=>I[G]=()=>Z})},na,s5,pa,eg,$w,ca,la,ma,da,ia,oa,ta,Uw,Iw,_w,ra;var Gw=WI(()=>{ya=Object.create,{getPrototypeOf:ba,defineProperty:Qz,getOwnPropertyNames:hE}=Object,uE=Object.prototype.hasOwnProperty,na=b6(($,I)=>{function G(){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}I.exports=G}),s5=b6(($)=>{var I=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function G(J,Y){return Object.prototype.hasOwnProperty.call(J,Y)}$.assign=function(J){var Y=Array.prototype.slice.call(arguments,1);while(Y.length){var W=Y.shift();if(!W)continue;if(typeof W!=="object")throw TypeError(W+"must be non-object");for(var R in W)if(G(W,R))J[R]=W[R]}return J},$.shrinkBuf=function(J,Y){if(J.length===Y)return J;if(J.subarray)return J.subarray(0,Y);return J.length=Y,J};var Z={arraySet:function(J,Y,W,R,M){if(Y.subarray&&J.subarray){J.set(Y.subarray(W,W+R),M);return}for(var E=0;E<R;E++)J[M+E]=Y[W+E]},flattenChunks:function(J){var Y,W,R,M,E,T;R=0;for(Y=0,W=J.length;Y<W;Y++)R+=J[Y].length;T=new Uint8Array(R),M=0;for(Y=0,W=J.length;Y<W;Y++)E=J[Y],T.set(E,M),M+=E.length;return T}},_={arraySet:function(J,Y,W,R,M){for(var E=0;E<R;E++)J[M+E]=Y[W+E]},flattenChunks:function(J){return[].concat.apply([],J)}};$.setTyped=function(J){if(J)$.Buf8=Uint8Array,$.Buf16=Uint16Array,$.Buf32=Int32Array,$.assign($,Z);else $.Buf8=Array,$.Buf16=Array,$.Buf32=Array,$.assign($,_)},$.setTyped(I)}),pa=b6(($)=>{var I=s5(),G=4,Z=0,_=1,J=2;function Y(L0){var N0=L0.length;while(--N0>=0)L0[N0]=0}var W=0,R=1,M=2,E=3,T=258,S=29,N=256,B=N+1+S,x=30,w=19,y=2*B+1,g=15,b=16,l=7,i=256,$0=16,Q0=17,G0=18,D0=[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],t=[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],P0=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],D=512,F=Array((B+2)*2);Y(F);var L=Array(x*2);Y(L);var H=Array(D);Y(H);var v=Array(T-E+1);Y(v);var q=Array(S);Y(q);var P=Array(x);Y(P);function O(L0,N0,B0,Y$,u){this.static_tree=L0,this.extra_bits=N0,this.extra_base=B0,this.elems=Y$,this.max_length=u,this.has_stree=L0&&L0.length}var A,k,j;function h(L0,N0){this.dyn_tree=L0,this.max_code=0,this.stat_desc=N0}function a(L0){return L0<256?H[L0]:H[256+(L0>>>7)]}function J0(L0,N0){L0.pending_buf[L0.pending++]=N0&255,L0.pending_buf[L0.pending++]=N0>>>8&255}function K0(L0,N0,B0){if(L0.bi_valid>b-B0)L0.bi_buf|=N0<<L0.bi_valid&65535,J0(L0,L0.bi_buf),L0.bi_buf=N0>>b-L0.bi_valid,L0.bi_valid+=B0-b;else L0.bi_buf|=N0<<L0.bi_valid&65535,L0.bi_valid+=B0}function O0(L0,N0,B0){K0(L0,B0[N0*2],B0[N0*2+1])}function d(L0,N0){var B0=0;do B0|=L0&1,L0>>>=1,B0<<=1;while(--N0>0);return B0>>>1}function m(L0){if(L0.bi_valid===16)J0(L0,L0.bi_buf),L0.bi_buf=0,L0.bi_valid=0;else if(L0.bi_valid>=8)L0.pending_buf[L0.pending++]=L0.bi_buf&255,L0.bi_buf>>=8,L0.bi_valid-=8}function r(L0,N0){var{dyn_tree:B0,max_code:Y$}=N0,u=N0.stat_desc.static_tree,_0=N0.stat_desc.has_stree,o=N0.stat_desc.extra_bits,R0=N0.stat_desc.extra_base,x0=N0.stat_desc.max_length,p,A0,v0,X0,H0,C0,H$=0;for(X0=0;X0<=g;X0++)L0.bl_count[X0]=0;B0[L0.heap[L0.heap_max]*2+1]=0;for(p=L0.heap_max+1;p<y;p++){if(A0=L0.heap[p],X0=B0[B0[A0*2+1]*2+1]+1,X0>x0)X0=x0,H$++;if(B0[A0*2+1]=X0,A0>Y$)continue;if(L0.bl_count[X0]++,H0=0,A0>=R0)H0=o[A0-R0];if(C0=B0[A0*2],L0.opt_len+=C0*(X0+H0),_0)L0.static_len+=C0*(u[A0*2+1]+H0)}if(H$===0)return;do{X0=x0-1;while(L0.bl_count[X0]===0)X0--;L0.bl_count[X0]--,L0.bl_count[X0+1]+=2,L0.bl_count[x0]--,H$-=2}while(H$>0);for(X0=x0;X0!==0;X0--){A0=L0.bl_count[X0];while(A0!==0){if(v0=L0.heap[--p],v0>Y$)continue;if(B0[v0*2+1]!==X0)L0.opt_len+=(X0-B0[v0*2+1])*B0[v0*2],B0[v0*2+1]=X0;A0--}}}function Y0(L0,N0,B0){var Y$=Array(g+1),u=0,_0,o;for(_0=1;_0<=g;_0++)Y$[_0]=u=u+B0[_0-1]<<1;for(o=0;o<=N0;o++){var R0=L0[o*2+1];if(R0===0)continue;L0[o*2]=d(Y$[R0]++,R0)}}function W0(){var L0,N0,B0,Y$,u,_0=Array(g+1);B0=0;for(Y$=0;Y$<S-1;Y$++){q[Y$]=B0;for(L0=0;L0<1<<D0[Y$];L0++)v[B0++]=Y$}v[B0-1]=Y$,u=0;for(Y$=0;Y$<16;Y$++){P[Y$]=u;for(L0=0;L0<1<<t[Y$];L0++)H[u++]=Y$}u>>=7;for(;Y$<x;Y$++){P[Y$]=u<<7;for(L0=0;L0<1<<t[Y$]-7;L0++)H[256+u++]=Y$}for(N0=0;N0<=g;N0++)_0[N0]=0;L0=0;while(L0<=143)F[L0*2+1]=8,L0++,_0[8]++;while(L0<=255)F[L0*2+1]=9,L0++,_0[9]++;while(L0<=279)F[L0*2+1]=7,L0++,_0[7]++;while(L0<=287)F[L0*2+1]=8,L0++,_0[8]++;Y0(F,B+1,_0);for(L0=0;L0<x;L0++)L[L0*2+1]=5,L[L0*2]=d(L0,5);A=new O(F,D0,N+1,B,g),k=new O(L,t,0,x,g),j=new O([],P0,0,w,l)}function I0(L0){var N0;for(N0=0;N0<B;N0++)L0.dyn_ltree[N0*2]=0;for(N0=0;N0<x;N0++)L0.dyn_dtree[N0*2]=0;for(N0=0;N0<w;N0++)L0.bl_tree[N0*2]=0;L0.dyn_ltree[i*2]=1,L0.opt_len=L0.static_len=0,L0.last_lit=L0.matches=0}function c(L0){if(L0.bi_valid>8)J0(L0,L0.bi_buf);else if(L0.bi_valid>0)L0.pending_buf[L0.pending++]=L0.bi_buf;L0.bi_buf=0,L0.bi_valid=0}function s(L0,N0,B0,Y$){if(c(L0),Y$)J0(L0,B0),J0(L0,~B0);I.arraySet(L0.pending_buf,L0.window,N0,B0,L0.pending),L0.pending+=B0}function S0(L0,N0,B0,Y$){var u=N0*2,_0=B0*2;return L0[u]<L0[_0]||L0[u]===L0[_0]&&Y$[N0]<=Y$[B0]}function M0(L0,N0,B0){var Y$=L0.heap[B0],u=B0<<1;while(u<=L0.heap_len){if(u<L0.heap_len&&S0(N0,L0.heap[u+1],L0.heap[u],L0.depth))u++;if(S0(N0,Y$,L0.heap[u],L0.depth))break;L0.heap[B0]=L0.heap[u],B0=u,u<<=1}L0.heap[B0]=Y$}function z0(L0,N0,B0){var Y$,u,_0=0,o,R0;if(L0.last_lit!==0)do if(Y$=L0.pending_buf[L0.d_buf+_0*2]<<8|L0.pending_buf[L0.d_buf+_0*2+1],u=L0.pending_buf[L0.l_buf+_0],_0++,Y$===0)O0(L0,u,N0);else{if(o=v[u],O0(L0,o+N+1,N0),R0=D0[o],R0!==0)u-=q[o],K0(L0,u,R0);if(Y$--,o=a(Y$),O0(L0,o,B0),R0=t[o],R0!==0)Y$-=P[o],K0(L0,Y$,R0)}while(_0<L0.last_lit);O0(L0,i,N0)}function c0(L0,N0){var B0=N0.dyn_tree,Y$=N0.stat_desc.static_tree,u=N0.stat_desc.has_stree,_0=N0.stat_desc.elems,o,R0,x0=-1,p;L0.heap_len=0,L0.heap_max=y;for(o=0;o<_0;o++)if(B0[o*2]!==0)L0.heap[++L0.heap_len]=x0=o,L0.depth[o]=0;else B0[o*2+1]=0;while(L0.heap_len<2)if(p=L0.heap[++L0.heap_len]=x0<2?++x0:0,B0[p*2]=1,L0.depth[p]=0,L0.opt_len--,u)L0.static_len-=Y$[p*2+1];N0.max_code=x0;for(o=L0.heap_len>>1;o>=1;o--)M0(L0,B0,o);p=_0;do o=L0.heap[1],L0.heap[1]=L0.heap[L0.heap_len--],M0(L0,B0,1),R0=L0.heap[1],L0.heap[--L0.heap_max]=o,L0.heap[--L0.heap_max]=R0,B0[p*2]=B0[o*2]+B0[R0*2],L0.depth[p]=(L0.depth[o]>=L0.depth[R0]?L0.depth[o]:L0.depth[R0])+1,B0[o*2+1]=B0[R0*2+1]=p,L0.heap[1]=p++,M0(L0,B0,1);while(L0.heap_len>=2);L0.heap[--L0.heap_max]=L0.heap[1],r(L0,N0),Y0(B0,x0,L0.bl_count)}function F0(L0,N0,B0){var Y$,u=-1,_0,o=N0[1],R0=0,x0=7,p=4;if(o===0)x0=138,p=3;N0[(B0+1)*2+1]=65535;for(Y$=0;Y$<=B0;Y$++){if(_0=o,o=N0[(Y$+1)*2+1],++R0<x0&&_0===o)continue;else if(R0<p)L0.bl_tree[_0*2]+=R0;else if(_0!==0){if(_0!==u)L0.bl_tree[_0*2]++;L0.bl_tree[$0*2]++}else if(R0<=10)L0.bl_tree[Q0*2]++;else L0.bl_tree[G0*2]++;if(R0=0,u=_0,o===0)x0=138,p=3;else if(_0===o)x0=6,p=3;else x0=7,p=4}}function q0(L0,N0,B0){var Y$,u=-1,_0,o=N0[1],R0=0,x0=7,p=4;if(o===0)x0=138,p=3;for(Y$=0;Y$<=B0;Y$++){if(_0=o,o=N0[(Y$+1)*2+1],++R0<x0&&_0===o)continue;else if(R0<p)do O0(L0,_0,L0.bl_tree);while(--R0!==0);else if(_0!==0){if(_0!==u)O0(L0,_0,L0.bl_tree),R0--;O0(L0,$0,L0.bl_tree),K0(L0,R0-3,2)}else if(R0<=10)O0(L0,Q0,L0.bl_tree),K0(L0,R0-3,3);else O0(L0,G0,L0.bl_tree),K0(L0,R0-11,7);if(R0=0,u=_0,o===0)x0=138,p=3;else if(_0===o)x0=6,p=3;else x0=7,p=4}}function s0(L0){var N0;F0(L0,L0.dyn_ltree,L0.l_desc.max_code),F0(L0,L0.dyn_dtree,L0.d_desc.max_code),c0(L0,L0.bl_desc);for(N0=w-1;N0>=3;N0--)if(L0.bl_tree[Q[N0]*2+1]!==0)break;return L0.opt_len+=3*(N0+1)+5+5+4,N0}function k0(L0,N0,B0,Y$){var u;K0(L0,N0-257,5),K0(L0,B0-1,5),K0(L0,Y$-4,4);for(u=0;u<Y$;u++)K0(L0,L0.bl_tree[Q[u]*2+1],3);q0(L0,L0.dyn_ltree,N0-1),q0(L0,L0.dyn_dtree,B0-1)}function n0(L0){var N0=4093624447,B0;for(B0=0;B0<=31;B0++,N0>>>=1)if(N0&1&&L0.dyn_ltree[B0*2]!==0)return Z;if(L0.dyn_ltree[18]!==0||L0.dyn_ltree[20]!==0||L0.dyn_ltree[26]!==0)return _;for(B0=32;B0<N;B0++)if(L0.dyn_ltree[B0*2]!==0)return _;return Z}var M$=!1;function T0(L0){if(!M$)W0(),M$=!0;L0.l_desc=new h(L0.dyn_ltree,A),L0.d_desc=new h(L0.dyn_dtree,k),L0.bl_desc=new h(L0.bl_tree,j),L0.bi_buf=0,L0.bi_valid=0,I0(L0)}function V0(L0,N0,B0,Y$){K0(L0,(W<<1)+(Y$?1:0),3),s(L0,N0,B0,!0)}function X$(L0){K0(L0,R<<1,3),O0(L0,i,F),m(L0)}function p0(L0,N0,B0,Y$){var u,_0,o=0;if(L0.level>0){if(L0.strm.data_type===J)L0.strm.data_type=n0(L0);if(c0(L0,L0.l_desc),c0(L0,L0.d_desc),o=s0(L0),u=L0.opt_len+3+7>>>3,_0=L0.static_len+3+7>>>3,_0<=u)u=_0}else u=_0=B0+5;if(B0+4<=u&&N0!==-1)V0(L0,N0,B0,Y$);else if(L0.strategy===G||_0===u)K0(L0,(R<<1)+(Y$?1:0),3),z0(L0,F,L);else K0(L0,(M<<1)+(Y$?1:0),3),k0(L0,L0.l_desc.max_code+1,L0.d_desc.max_code+1,o+1),z0(L0,L0.dyn_ltree,L0.dyn_dtree);if(I0(L0),Y$)c(L0)}function l0(L0,N0,B0){if(L0.pending_buf[L0.d_buf+L0.last_lit*2]=N0>>>8&255,L0.pending_buf[L0.d_buf+L0.last_lit*2+1]=N0&255,L0.pending_buf[L0.l_buf+L0.last_lit]=B0&255,L0.last_lit++,N0===0)L0.dyn_ltree[B0*2]++;else L0.matches++,N0--,L0.dyn_ltree[(v[B0]+N+1)*2]++,L0.dyn_dtree[a(N0)*2]++;return L0.last_lit===L0.lit_bufsize-1}$._tr_init=T0,$._tr_stored_block=V0,$._tr_flush_block=p0,$._tr_tally=l0,$._tr_align=X$}),eg=b6(($,I)=>{function G(Z,_,J,Y){var W=Z&65535|0,R=Z>>>16&65535|0,M=0;while(J!==0){M=J>2000?2000:J,J-=M;do W=W+_[Y++]|0,R=R+W|0;while(--M);W%=65521,R%=65521}return W|R<<16|0}I.exports=G}),$w=b6(($,I)=>{function G(){var J,Y=[];for(var W=0;W<256;W++){J=W;for(var R=0;R<8;R++)J=J&1?3988292384^J>>>1:J>>>1;Y[W]=J}return Y}var Z=G();function _(J,Y,W,R){var M=Z,E=R+W;J^=-1;for(var T=R;T<E;T++)J=J>>>8^M[(J^Y[T])&255];return J^-1}I.exports=_}),ca=b6(($,I)=>{I.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"}}),la=b6(($)=>{var I=s5(),G=pa(),Z=eg(),_=$w(),J=ca(),Y=0,W=1,R=3,M=4,E=5,T=0,S=1,N=-2,B=-3,x=-5,w=-1,y=1,g=2,b=3,l=4,i=0,$0=2,Q0=8,G0=9,D0=15,t=8,P0=29,Q=256,D=Q+1+P0,F=30,L=19,H=2*D+1,v=15,q=3,P=258,O=P+q+1,A=32,k=42,j=69,h=73,a=91,J0=103,K0=113,O0=666,d=1,m=2,r=3,Y0=4,W0=3;function I0(p,A0){return p.msg=J[A0],A0}function c(p){return(p<<1)-(p>4?9:0)}function s(p){var A0=p.length;while(--A0>=0)p[A0]=0}function S0(p){var A0=p.state,v0=A0.pending;if(v0>p.avail_out)v0=p.avail_out;if(v0===0)return;if(I.arraySet(p.output,A0.pending_buf,A0.pending_out,v0,p.next_out),p.next_out+=v0,A0.pending_out+=v0,p.total_out+=v0,p.avail_out-=v0,A0.pending-=v0,A0.pending===0)A0.pending_out=0}function M0(p,A0){G._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,A0),p.block_start=p.strstart,S0(p.strm)}function z0(p,A0){p.pending_buf[p.pending++]=A0}function c0(p,A0){p.pending_buf[p.pending++]=A0>>>8&255,p.pending_buf[p.pending++]=A0&255}function F0(p,A0,v0,X0){var H0=p.avail_in;if(H0>X0)H0=X0;if(H0===0)return 0;if(p.avail_in-=H0,I.arraySet(A0,p.input,p.next_in,H0,v0),p.state.wrap===1)p.adler=Z(p.adler,A0,H0,v0);else if(p.state.wrap===2)p.adler=_(p.adler,A0,H0,v0);return p.next_in+=H0,p.total_in+=H0,H0}function q0(p,A0){var{max_chain_length:v0,strstart:X0}=p,H0,C0,H$=p.prev_length,d0=p.nice_match,e=p.strstart>p.w_size-O?p.strstart-(p.w_size-O):0,E0=p.window,b0=p.w_mask,f0=p.prev,z$=p.strstart+P,a0=E0[X0+H$-1],U$=E0[X0+H$];if(p.prev_length>=p.good_match)v0>>=2;if(d0>p.lookahead)d0=p.lookahead;do{if(H0=A0,E0[H0+H$]!==U$||E0[H0+H$-1]!==a0||E0[H0]!==E0[X0]||E0[++H0]!==E0[X0+1])continue;X0+=2,H0++;do;while(E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&X0<z$);if(C0=P-(z$-X0),X0=z$-P,C0>H$){if(p.match_start=A0,H$=C0,C0>=d0)break;a0=E0[X0+H$-1],U$=E0[X0+H$]}}while((A0=f0[A0&b0])>e&&--v0!==0);if(H$<=p.lookahead)return H$;return p.lookahead}function s0(p){var A0=p.w_size,v0,X0,H0,C0,H$;do{if(C0=p.window_size-p.lookahead-p.strstart,p.strstart>=A0+(A0-O)){I.arraySet(p.window,p.window,A0,A0,0),p.match_start-=A0,p.strstart-=A0,p.block_start-=A0,X0=p.hash_size,v0=X0;do H0=p.head[--v0],p.head[v0]=H0>=A0?H0-A0:0;while(--X0);X0=A0,v0=X0;do H0=p.prev[--v0],p.prev[v0]=H0>=A0?H0-A0:0;while(--X0);C0+=A0}if(p.strm.avail_in===0)break;if(X0=F0(p.strm,p.window,p.strstart+p.lookahead,C0),p.lookahead+=X0,p.lookahead+p.insert>=q){H$=p.strstart-p.insert,p.ins_h=p.window[H$],p.ins_h=(p.ins_h<<p.hash_shift^p.window[H$+1])&p.hash_mask;while(p.insert)if(p.ins_h=(p.ins_h<<p.hash_shift^p.window[H$+q-1])&p.hash_mask,p.prev[H$&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=H$,H$++,p.insert--,p.lookahead+p.insert<q)break}}while(p.lookahead<O&&p.strm.avail_in!==0)}function k0(p,A0){var v0=65535;if(v0>p.pending_buf_size-5)v0=p.pending_buf_size-5;for(;;){if(p.lookahead<=1){if(s0(p),p.lookahead===0&&A0===Y)return d;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var X0=p.block_start+v0;if(p.strstart===0||p.strstart>=X0){if(p.lookahead=p.strstart-X0,p.strstart=X0,M0(p,!1),p.strm.avail_out===0)return d}if(p.strstart-p.block_start>=p.w_size-O){if(M0(p,!1),p.strm.avail_out===0)return d}}if(p.insert=0,A0===M){if(M0(p,!0),p.strm.avail_out===0)return r;return Y0}if(p.strstart>p.block_start){if(M0(p,!1),p.strm.avail_out===0)return d}return d}function n0(p,A0){var v0,X0;for(;;){if(p.lookahead<O){if(s0(p),p.lookahead<O&&A0===Y)return d;if(p.lookahead===0)break}if(v0=0,p.lookahead>=q)p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+q-1])&p.hash_mask,v0=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;if(v0!==0&&p.strstart-v0<=p.w_size-O)p.match_length=q0(p,v0);if(p.match_length>=q)if(X0=G._tr_tally(p,p.strstart-p.match_start,p.match_length-q),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=q){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+q-1])&p.hash_mask,v0=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else X0=G._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(X0){if(M0(p,!1),p.strm.avail_out===0)return d}}if(p.insert=p.strstart<q-1?p.strstart:q-1,A0===M){if(M0(p,!0),p.strm.avail_out===0)return r;return Y0}if(p.last_lit){if(M0(p,!1),p.strm.avail_out===0)return d}return m}function M$(p,A0){var v0,X0,H0;for(;;){if(p.lookahead<O){if(s0(p),p.lookahead<O&&A0===Y)return d;if(p.lookahead===0)break}if(v0=0,p.lookahead>=q)p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+q-1])&p.hash_mask,v0=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;if(p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=q-1,v0!==0&&p.prev_length<p.max_lazy_match&&p.strstart-v0<=p.w_size-O){if(p.match_length=q0(p,v0),p.match_length<=5&&(p.strategy===y||p.match_length===q&&p.strstart-p.match_start>4096))p.match_length=q-1}if(p.prev_length>=q&&p.match_length<=p.prev_length){H0=p.strstart+p.lookahead-q,X0=G._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-q),p.lookahead-=p.prev_length-1,p.prev_length-=2;do if(++p.strstart<=H0)p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+q-1])&p.hash_mask,v0=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.prev_length!==0);if(p.match_available=0,p.match_length=q-1,p.strstart++,X0){if(M0(p,!1),p.strm.avail_out===0)return d}}else if(p.match_available){if(X0=G._tr_tally(p,0,p.window[p.strstart-1]),X0)M0(p,!1);if(p.strstart++,p.lookahead--,p.strm.avail_out===0)return d}else p.match_available=1,p.strstart++,p.lookahead--}if(p.match_available)X0=G._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0;if(p.insert=p.strstart<q-1?p.strstart:q-1,A0===M){if(M0(p,!0),p.strm.avail_out===0)return r;return Y0}if(p.last_lit){if(M0(p,!1),p.strm.avail_out===0)return d}return m}function T0(p,A0){var v0,X0,H0,C0,H$=p.window;for(;;){if(p.lookahead<=P){if(s0(p),p.lookahead<=P&&A0===Y)return d;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=q&&p.strstart>0){if(H0=p.strstart-1,X0=H$[H0],X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]){C0=p.strstart+P;do;while(X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]&&H0<C0);if(p.match_length=P-(C0-H0),p.match_length>p.lookahead)p.match_length=p.lookahead}}if(p.match_length>=q)v0=G._tr_tally(p,1,p.match_length-q),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0;else v0=G._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(v0){if(M0(p,!1),p.strm.avail_out===0)return d}}if(p.insert=0,A0===M){if(M0(p,!0),p.strm.avail_out===0)return r;return Y0}if(p.last_lit){if(M0(p,!1),p.strm.avail_out===0)return d}return m}function V0(p,A0){var v0;for(;;){if(p.lookahead===0){if(s0(p),p.lookahead===0){if(A0===Y)return d;break}}if(p.match_length=0,v0=G._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,v0){if(M0(p,!1),p.strm.avail_out===0)return d}}if(p.insert=0,A0===M){if(M0(p,!0),p.strm.avail_out===0)return r;return Y0}if(p.last_lit){if(M0(p,!1),p.strm.avail_out===0)return d}return m}function X$(p,A0,v0,X0,H0){this.good_length=p,this.max_lazy=A0,this.nice_length=v0,this.max_chain=X0,this.func=H0}var p0=[new X$(0,0,0,0,k0),new X$(4,4,8,4,n0),new X$(4,5,16,8,n0),new X$(4,6,32,32,n0),new X$(4,4,16,16,M$),new X$(8,16,32,32,M$),new X$(8,16,128,128,M$),new X$(8,32,128,256,M$),new X$(32,128,258,1024,M$),new X$(32,258,258,4096,M$)];function l0(p){p.window_size=2*p.w_size,s(p.head),p.max_lazy_match=p0[p.level].max_lazy,p.good_match=p0[p.level].good_length,p.nice_match=p0[p.level].nice_length,p.max_chain_length=p0[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=q-1,p.match_available=0,p.ins_h=0}function L0(){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=Q0,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 I.Buf16(H*2),this.dyn_dtree=new I.Buf16((2*F+1)*2),this.bl_tree=new I.Buf16((2*L+1)*2),s(this.dyn_ltree),s(this.dyn_dtree),s(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new I.Buf16(v+1),this.heap=new I.Buf16(2*D+1),s(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new I.Buf16(2*D+1),s(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 N0(p){var A0;if(!p||!p.state)return I0(p,N);if(p.total_in=p.total_out=0,p.data_type=$0,A0=p.state,A0.pending=0,A0.pending_out=0,A0.wrap<0)A0.wrap=-A0.wrap;return A0.status=A0.wrap?k:K0,p.adler=A0.wrap===2?0:1,A0.last_flush=Y,G._tr_init(A0),T}function B0(p){var A0=N0(p);if(A0===T)l0(p.state);return A0}function Y$(p,A0){if(!p||!p.state)return N;if(p.state.wrap!==2)return N;return p.state.gzhead=A0,T}function u(p,A0,v0,X0,H0,C0){if(!p)return N;var H$=1;if(A0===w)A0=6;if(X0<0)H$=0,X0=-X0;else if(X0>15)H$=2,X0-=16;if(H0<1||H0>G0||v0!==Q0||X0<8||X0>15||A0<0||A0>9||C0<0||C0>l)return I0(p,N);if(X0===8)X0=9;var d0=new L0;return p.state=d0,d0.strm=p,d0.wrap=H$,d0.gzhead=null,d0.w_bits=X0,d0.w_size=1<<d0.w_bits,d0.w_mask=d0.w_size-1,d0.hash_bits=H0+7,d0.hash_size=1<<d0.hash_bits,d0.hash_mask=d0.hash_size-1,d0.hash_shift=~~((d0.hash_bits+q-1)/q),d0.window=new I.Buf8(d0.w_size*2),d0.head=new I.Buf16(d0.hash_size),d0.prev=new I.Buf16(d0.w_size),d0.lit_bufsize=1<<H0+6,d0.pending_buf_size=d0.lit_bufsize*4,d0.pending_buf=new I.Buf8(d0.pending_buf_size),d0.d_buf=1*d0.lit_bufsize,d0.l_buf=3*d0.lit_bufsize,d0.level=A0,d0.strategy=C0,d0.method=v0,B0(p)}function _0(p,A0){return u(p,A0,Q0,D0,t,i)}function o(p,A0){var v0,X0,H0,C0;if(!p||!p.state||A0>E||A0<0)return p?I0(p,N):N;if(X0=p.state,!p.output||!p.input&&p.avail_in!==0||X0.status===O0&&A0!==M)return I0(p,p.avail_out===0?x:N);if(X0.strm=p,v0=X0.last_flush,X0.last_flush=A0,X0.status===k)if(X0.wrap===2)if(p.adler=0,z0(X0,31),z0(X0,139),z0(X0,8),!X0.gzhead)z0(X0,0),z0(X0,0),z0(X0,0),z0(X0,0),z0(X0,0),z0(X0,X0.level===9?2:X0.strategy>=g||X0.level<2?4:0),z0(X0,W0),X0.status=K0;else{if(z0(X0,(X0.gzhead.text?1:0)+(X0.gzhead.hcrc?2:0)+(!X0.gzhead.extra?0:4)+(!X0.gzhead.name?0:8)+(!X0.gzhead.comment?0:16)),z0(X0,X0.gzhead.time&255),z0(X0,X0.gzhead.time>>8&255),z0(X0,X0.gzhead.time>>16&255),z0(X0,X0.gzhead.time>>24&255),z0(X0,X0.level===9?2:X0.strategy>=g||X0.level<2?4:0),z0(X0,X0.gzhead.os&255),X0.gzhead.extra&&X0.gzhead.extra.length)z0(X0,X0.gzhead.extra.length&255),z0(X0,X0.gzhead.extra.length>>8&255);if(X0.gzhead.hcrc)p.adler=_(p.adler,X0.pending_buf,X0.pending,0);X0.gzindex=0,X0.status=j}else{var H$=Q0+(X0.w_bits-8<<4)<<8,d0=-1;if(X0.strategy>=g||X0.level<2)d0=0;else if(X0.level<6)d0=1;else if(X0.level===6)d0=2;else d0=3;if(H$|=d0<<6,X0.strstart!==0)H$|=A;if(H$+=31-H$%31,X0.status=K0,c0(X0,H$),X0.strstart!==0)c0(X0,p.adler>>>16),c0(X0,p.adler&65535);p.adler=1}if(X0.status===j)if(X0.gzhead.extra){H0=X0.pending;while(X0.gzindex<(X0.gzhead.extra.length&65535)){if(X0.pending===X0.pending_buf_size){if(X0.gzhead.hcrc&&X0.pending>H0)p.adler=_(p.adler,X0.pending_buf,X0.pending-H0,H0);if(S0(p),H0=X0.pending,X0.pending===X0.pending_buf_size)break}z0(X0,X0.gzhead.extra[X0.gzindex]&255),X0.gzindex++}if(X0.gzhead.hcrc&&X0.pending>H0)p.adler=_(p.adler,X0.pending_buf,X0.pending-H0,H0);if(X0.gzindex===X0.gzhead.extra.length)X0.gzindex=0,X0.status=h}else X0.status=h;if(X0.status===h)if(X0.gzhead.name){H0=X0.pending;do{if(X0.pending===X0.pending_buf_size){if(X0.gzhead.hcrc&&X0.pending>H0)p.adler=_(p.adler,X0.pending_buf,X0.pending-H0,H0);if(S0(p),H0=X0.pending,X0.pending===X0.pending_buf_size){C0=1;break}}if(X0.gzindex<X0.gzhead.name.length)C0=X0.gzhead.name.charCodeAt(X0.gzindex++)&255;else C0=0;z0(X0,C0)}while(C0!==0);if(X0.gzhead.hcrc&&X0.pending>H0)p.adler=_(p.adler,X0.pending_buf,X0.pending-H0,H0);if(C0===0)X0.gzindex=0,X0.status=a}else X0.status=a;if(X0.status===a)if(X0.gzhead.comment){H0=X0.pending;do{if(X0.pending===X0.pending_buf_size){if(X0.gzhead.hcrc&&X0.pending>H0)p.adler=_(p.adler,X0.pending_buf,X0.pending-H0,H0);if(S0(p),H0=X0.pending,X0.pending===X0.pending_buf_size){C0=1;break}}if(X0.gzindex<X0.gzhead.comment.length)C0=X0.gzhead.comment.charCodeAt(X0.gzindex++)&255;else C0=0;z0(X0,C0)}while(C0!==0);if(X0.gzhead.hcrc&&X0.pending>H0)p.adler=_(p.adler,X0.pending_buf,X0.pending-H0,H0);if(C0===0)X0.status=J0}else X0.status=J0;if(X0.status===J0)if(X0.gzhead.hcrc){if(X0.pending+2>X0.pending_buf_size)S0(p);if(X0.pending+2<=X0.pending_buf_size)z0(X0,p.adler&255),z0(X0,p.adler>>8&255),p.adler=0,X0.status=K0}else X0.status=K0;if(X0.pending!==0){if(S0(p),p.avail_out===0)return X0.last_flush=-1,T}else if(p.avail_in===0&&c(A0)<=c(v0)&&A0!==M)return I0(p,x);if(X0.status===O0&&p.avail_in!==0)return I0(p,x);if(p.avail_in!==0||X0.lookahead!==0||A0!==Y&&X0.status!==O0){var e=X0.strategy===g?V0(X0,A0):X0.strategy===b?T0(X0,A0):p0[X0.level].func(X0,A0);if(e===r||e===Y0)X0.status=O0;if(e===d||e===r){if(p.avail_out===0)X0.last_flush=-1;return T}if(e===m){if(A0===W)G._tr_align(X0);else if(A0!==E){if(G._tr_stored_block(X0,0,0,!1),A0===R){if(s(X0.head),X0.lookahead===0)X0.strstart=0,X0.block_start=0,X0.insert=0}}if(S0(p),p.avail_out===0)return X0.last_flush=-1,T}}if(A0!==M)return T;if(X0.wrap<=0)return S;if(X0.wrap===2)z0(X0,p.adler&255),z0(X0,p.adler>>8&255),z0(X0,p.adler>>16&255),z0(X0,p.adler>>24&255),z0(X0,p.total_in&255),z0(X0,p.total_in>>8&255),z0(X0,p.total_in>>16&255),z0(X0,p.total_in>>24&255);else c0(X0,p.adler>>>16),c0(X0,p.adler&65535);if(S0(p),X0.wrap>0)X0.wrap=-X0.wrap;return X0.pending!==0?T:S}function R0(p){var A0;if(!p||!p.state)return N;if(A0=p.state.status,A0!==k&&A0!==j&&A0!==h&&A0!==a&&A0!==J0&&A0!==K0&&A0!==O0)return I0(p,N);return p.state=null,A0===K0?I0(p,B):T}function x0(p,A0){var v0=A0.length,X0,H0,C0,H$,d0,e,E0,b0;if(!p||!p.state)return N;if(X0=p.state,H$=X0.wrap,H$===2||H$===1&&X0.status!==k||X0.lookahead)return N;if(H$===1)p.adler=Z(p.adler,A0,v0,0);if(X0.wrap=0,v0>=X0.w_size){if(H$===0)s(X0.head),X0.strstart=0,X0.block_start=0,X0.insert=0;b0=new I.Buf8(X0.w_size),I.arraySet(b0,A0,v0-X0.w_size,X0.w_size,0),A0=b0,v0=X0.w_size}d0=p.avail_in,e=p.next_in,E0=p.input,p.avail_in=v0,p.next_in=0,p.input=A0,s0(X0);while(X0.lookahead>=q){H0=X0.strstart,C0=X0.lookahead-(q-1);do X0.ins_h=(X0.ins_h<<X0.hash_shift^X0.window[H0+q-1])&X0.hash_mask,X0.prev[H0&X0.w_mask]=X0.head[X0.ins_h],X0.head[X0.ins_h]=H0,H0++;while(--C0);X0.strstart=H0,X0.lookahead=q-1,s0(X0)}return X0.strstart+=X0.lookahead,X0.block_start=X0.strstart,X0.insert=X0.lookahead,X0.lookahead=0,X0.match_length=X0.prev_length=q-1,X0.match_available=0,p.next_in=e,p.input=E0,p.avail_in=d0,X0.wrap=H$,T}$.deflateInit=_0,$.deflateInit2=u,$.deflateReset=B0,$.deflateResetKeep=N0,$.deflateSetHeader=Y$,$.deflate=o,$.deflateEnd=R0,$.deflateSetDictionary=x0,$.deflateInfo="pako deflate (from Nodeca project)"}),ma=b6(($,I)=>{var G=30,Z=12;I.exports=function(_,J){var Y,W,R,M,E,T,S,N,B,x,w,y,g,b,l,i,$0,Q0,G0,D0,t,P0,Q,D,F;Y=_.state,W=_.next_in,D=_.input,R=W+(_.avail_in-5),M=_.next_out,F=_.output,E=M-(J-_.avail_out),T=M+(_.avail_out-257),S=Y.dmax,N=Y.wsize,B=Y.whave,x=Y.wnext,w=Y.window,y=Y.hold,g=Y.bits,b=Y.lencode,l=Y.distcode,i=(1<<Y.lenbits)-1,$0=(1<<Y.distbits)-1;$:do{if(g<15)y+=D[W++]<<g,g+=8,y+=D[W++]<<g,g+=8;Q0=b[y&i];U:for(;;){if(G0=Q0>>>24,y>>>=G0,g-=G0,G0=Q0>>>16&255,G0===0)F[M++]=Q0&65535;else if(G0&16){if(D0=Q0&65535,G0&=15,G0){if(g<G0)y+=D[W++]<<g,g+=8;D0+=y&(1<<G0)-1,y>>>=G0,g-=G0}if(g<15)y+=D[W++]<<g,g+=8,y+=D[W++]<<g,g+=8;Q0=l[y&$0];I:for(;;){if(G0=Q0>>>24,y>>>=G0,g-=G0,G0=Q0>>>16&255,G0&16){if(t=Q0&65535,G0&=15,g<G0){if(y+=D[W++]<<g,g+=8,g<G0)y+=D[W++]<<g,g+=8}if(t+=y&(1<<G0)-1,t>S){_.msg="invalid distance too far back",Y.mode=G;break $}if(y>>>=G0,g-=G0,G0=M-E,t>G0){if(G0=t-G0,G0>B){if(Y.sane){_.msg="invalid distance too far back",Y.mode=G;break $}}if(P0=0,Q=w,x===0){if(P0+=N-G0,G0<D0){D0-=G0;do F[M++]=w[P0++];while(--G0);P0=M-t,Q=F}}else if(x<G0){if(P0+=N+x-G0,G0-=x,G0<D0){D0-=G0;do F[M++]=w[P0++];while(--G0);if(P0=0,x<D0){G0=x,D0-=G0;do F[M++]=w[P0++];while(--G0);P0=M-t,Q=F}}}else if(P0+=x-G0,G0<D0){D0-=G0;do F[M++]=w[P0++];while(--G0);P0=M-t,Q=F}while(D0>2)F[M++]=Q[P0++],F[M++]=Q[P0++],F[M++]=Q[P0++],D0-=3;if(D0){if(F[M++]=Q[P0++],D0>1)F[M++]=Q[P0++]}}else{P0=M-t;do F[M++]=F[P0++],F[M++]=F[P0++],F[M++]=F[P0++],D0-=3;while(D0>2);if(D0){if(F[M++]=F[P0++],D0>1)F[M++]=F[P0++]}}}else if((G0&64)===0){Q0=l[(Q0&65535)+(y&(1<<G0)-1)];continue I}else{_.msg="invalid distance code",Y.mode=G;break $}break}}else if((G0&64)===0){Q0=b[(Q0&65535)+(y&(1<<G0)-1)];continue U}else if(G0&32){Y.mode=Z;break $}else{_.msg="invalid literal/length code",Y.mode=G;break $}break}}while(W<R&&M<T);D0=g>>3,W-=D0,g-=D0<<3,y&=(1<<g)-1,_.next_in=W,_.next_out=M,_.avail_in=W<R?5+(R-W):5-(W-R),_.avail_out=M<T?257+(T-M):257-(M-T),Y.hold=y,Y.bits=g;return}}),da=b6(($,I)=>{var G=s5(),Z=15,_=852,J=592,Y=0,W=1,R=2,M=[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],E=[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],T=[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],S=[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];I.exports=function(N,B,x,w,y,g,b,l){var i=l.bits,$0=0,Q0=0,G0=0,D0=0,t=0,P0=0,Q=0,D=0,F=0,L=0,H,v,q,P,O,A=null,k=0,j,h=new G.Buf16(Z+1),a=new G.Buf16(Z+1),J0=null,K0=0,O0,d,m;for($0=0;$0<=Z;$0++)h[$0]=0;for(Q0=0;Q0<w;Q0++)h[B[x+Q0]]++;t=i;for(D0=Z;D0>=1;D0--)if(h[D0]!==0)break;if(t>D0)t=D0;if(D0===0)return y[g++]=20971520,y[g++]=20971520,l.bits=1,0;for(G0=1;G0<D0;G0++)if(h[G0]!==0)break;if(t<G0)t=G0;D=1;for($0=1;$0<=Z;$0++)if(D<<=1,D-=h[$0],D<0)return-1;if(D>0&&(N===Y||D0!==1))return-1;a[1]=0;for($0=1;$0<Z;$0++)a[$0+1]=a[$0]+h[$0];for(Q0=0;Q0<w;Q0++)if(B[x+Q0]!==0)b[a[B[x+Q0]]++]=Q0;if(N===Y)A=J0=b,j=19;else if(N===W)A=M,k-=257,J0=E,K0-=257,j=256;else A=T,J0=S,j=-1;if(L=0,Q0=0,$0=G0,O=g,P0=t,Q=0,q=-1,F=1<<t,P=F-1,N===W&&F>_||N===R&&F>J)return 1;for(;;){if(O0=$0-Q,b[Q0]<j)d=0,m=b[Q0];else if(b[Q0]>j)d=J0[K0+b[Q0]],m=A[k+b[Q0]];else d=96,m=0;H=1<<$0-Q,v=1<<P0,G0=v;do v-=H,y[O+(L>>Q)+v]=O0<<24|d<<16|m|0;while(v!==0);H=1<<$0-1;while(L&H)H>>=1;if(H!==0)L&=H-1,L+=H;else L=0;if(Q0++,--h[$0]===0){if($0===D0)break;$0=B[x+b[Q0]]}if($0>t&&(L&P)!==q){if(Q===0)Q=t;O+=G0,P0=$0-Q,D=1<<P0;while(P0+Q<D0){if(D-=h[P0+Q],D<=0)break;P0++,D<<=1}if(F+=1<<P0,N===W&&F>_||N===R&&F>J)return 1;q=L&P,y[q]=t<<24|P0<<16|O-g|0}}if(L!==0)y[O+L]=$0-Q<<24|4194304|0;return l.bits=t,0}}),ia=b6(($)=>{var I=s5(),G=eg(),Z=$w(),_=ma(),J=da(),Y=0,W=1,R=2,M=4,E=5,T=6,S=0,N=1,B=2,x=-2,w=-3,y=-4,g=-5,b=8,l=1,i=2,$0=3,Q0=4,G0=5,D0=6,t=7,P0=8,Q=9,D=10,F=11,L=12,H=13,v=14,q=15,P=16,O=17,A=18,k=19,j=20,h=21,a=22,J0=23,K0=24,O0=25,d=26,m=27,r=28,Y0=29,W0=30,I0=31,c=32,s=852,S0=592,M0=15,z0=M0;function c0(u){return(u>>>24&255)+(u>>>8&65280)+((u&65280)<<8)+((u&255)<<24)}function F0(){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 I.Buf16(320),this.work=new I.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function q0(u){var _0;if(!u||!u.state)return x;if(_0=u.state,u.total_in=u.total_out=_0.total=0,u.msg="",_0.wrap)u.adler=_0.wrap&1;return _0.mode=l,_0.last=0,_0.havedict=0,_0.dmax=32768,_0.head=null,_0.hold=0,_0.bits=0,_0.lencode=_0.lendyn=new I.Buf32(s),_0.distcode=_0.distdyn=new I.Buf32(S0),_0.sane=1,_0.back=-1,S}function s0(u){var _0;if(!u||!u.state)return x;return _0=u.state,_0.wsize=0,_0.whave=0,_0.wnext=0,q0(u)}function k0(u,_0){var o,R0;if(!u||!u.state)return x;if(R0=u.state,_0<0)o=0,_0=-_0;else if(o=(_0>>4)+1,_0<48)_0&=15;if(_0&&(_0<8||_0>15))return x;if(R0.window!==null&&R0.wbits!==_0)R0.window=null;return R0.wrap=o,R0.wbits=_0,s0(u)}function n0(u,_0){var o,R0;if(!u)return x;if(R0=new F0,u.state=R0,R0.window=null,o=k0(u,_0),o!==S)u.state=null;return o}function M$(u){return n0(u,z0)}var T0=!0,V0,X$;function p0(u){if(T0){var _0;V0=new I.Buf32(512),X$=new I.Buf32(32),_0=0;while(_0<144)u.lens[_0++]=8;while(_0<256)u.lens[_0++]=9;while(_0<280)u.lens[_0++]=7;while(_0<288)u.lens[_0++]=8;J(W,u.lens,0,288,V0,0,u.work,{bits:9}),_0=0;while(_0<32)u.lens[_0++]=5;J(R,u.lens,0,32,X$,0,u.work,{bits:5}),T0=!1}u.lencode=V0,u.lenbits=9,u.distcode=X$,u.distbits=5}function l0(u,_0,o,R0){var x0,p=u.state;if(p.window===null)p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new I.Buf8(p.wsize);if(R0>=p.wsize)I.arraySet(p.window,_0,o-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize;else{if(x0=p.wsize-p.wnext,x0>R0)x0=R0;if(I.arraySet(p.window,_0,o-R0,x0,p.wnext),R0-=x0,R0)I.arraySet(p.window,_0,o-R0,R0,0),p.wnext=R0,p.whave=p.wsize;else{if(p.wnext+=x0,p.wnext===p.wsize)p.wnext=0;if(p.whave<p.wsize)p.whave+=x0}}return 0}function L0(u,_0){var o,R0,x0,p,A0,v0,X0,H0,C0,H$,d0,e,E0,b0,f0=0,z$,a0,U$,c$,D$,L$,B$,Z$,I$=new I.Buf8(4),I1,C$,g$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!u||!u.state||!u.output||!u.input&&u.avail_in!==0)return x;if(o=u.state,o.mode===L)o.mode=H;A0=u.next_out,x0=u.output,X0=u.avail_out,p=u.next_in,R0=u.input,v0=u.avail_in,H0=o.hold,C0=o.bits,H$=v0,d0=X0,Z$=S;$:for(;;)switch(o.mode){case l:if(o.wrap===0){o.mode=H;break}while(C0<16){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(o.wrap&2&&H0===35615){o.check=0,I$[0]=H0&255,I$[1]=H0>>>8&255,o.check=Z(o.check,I$,2,0),H0=0,C0=0,o.mode=i;break}if(o.flags=0,o.head)o.head.done=!1;if(!(o.wrap&1)||(((H0&255)<<8)+(H0>>8))%31){u.msg="incorrect header check",o.mode=W0;break}if((H0&15)!==b){u.msg="unknown compression method",o.mode=W0;break}if(H0>>>=4,C0-=4,B$=(H0&15)+8,o.wbits===0)o.wbits=B$;else if(B$>o.wbits){u.msg="invalid window size",o.mode=W0;break}o.dmax=1<<B$,u.adler=o.check=1,o.mode=H0&512?D:L,H0=0,C0=0;break;case i:while(C0<16){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(o.flags=H0,(o.flags&255)!==b){u.msg="unknown compression method",o.mode=W0;break}if(o.flags&57344){u.msg="unknown header flags set",o.mode=W0;break}if(o.head)o.head.text=H0>>8&1;if(o.flags&512)I$[0]=H0&255,I$[1]=H0>>>8&255,o.check=Z(o.check,I$,2,0);H0=0,C0=0,o.mode=$0;case $0:while(C0<32){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(o.head)o.head.time=H0;if(o.flags&512)I$[0]=H0&255,I$[1]=H0>>>8&255,I$[2]=H0>>>16&255,I$[3]=H0>>>24&255,o.check=Z(o.check,I$,4,0);H0=0,C0=0,o.mode=Q0;case Q0:while(C0<16){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(o.head)o.head.xflags=H0&255,o.head.os=H0>>8;if(o.flags&512)I$[0]=H0&255,I$[1]=H0>>>8&255,o.check=Z(o.check,I$,2,0);H0=0,C0=0,o.mode=G0;case G0:if(o.flags&1024){while(C0<16){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(o.length=H0,o.head)o.head.extra_len=H0;if(o.flags&512)I$[0]=H0&255,I$[1]=H0>>>8&255,o.check=Z(o.check,I$,2,0);H0=0,C0=0}else if(o.head)o.head.extra=null;o.mode=D0;case D0:if(o.flags&1024){if(e=o.length,e>v0)e=v0;if(e){if(o.head){if(B$=o.head.extra_len-o.length,!o.head.extra)o.head.extra=Array(o.head.extra_len);I.arraySet(o.head.extra,R0,p,e,B$)}if(o.flags&512)o.check=Z(o.check,R0,e,p);v0-=e,p+=e,o.length-=e}if(o.length)break $}o.length=0,o.mode=t;case t:if(o.flags&2048){if(v0===0)break $;e=0;do if(B$=R0[p+e++],o.head&&B$&&o.length<65536)o.head.name+=String.fromCharCode(B$);while(B$&&e<v0);if(o.flags&512)o.check=Z(o.check,R0,e,p);if(v0-=e,p+=e,B$)break $}else if(o.head)o.head.name=null;o.length=0,o.mode=P0;case P0:if(o.flags&4096){if(v0===0)break $;e=0;do if(B$=R0[p+e++],o.head&&B$&&o.length<65536)o.head.comment+=String.fromCharCode(B$);while(B$&&e<v0);if(o.flags&512)o.check=Z(o.check,R0,e,p);if(v0-=e,p+=e,B$)break $}else if(o.head)o.head.comment=null;o.mode=Q;case Q:if(o.flags&512){while(C0<16){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(H0!==(o.check&65535)){u.msg="header crc mismatch",o.mode=W0;break}H0=0,C0=0}if(o.head)o.head.hcrc=o.flags>>9&1,o.head.done=!0;u.adler=o.check=0,o.mode=L;break;case D:while(C0<32){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}u.adler=o.check=c0(H0),H0=0,C0=0,o.mode=F;case F:if(o.havedict===0)return u.next_out=A0,u.avail_out=X0,u.next_in=p,u.avail_in=v0,o.hold=H0,o.bits=C0,B;u.adler=o.check=1,o.mode=L;case L:if(_0===E||_0===T)break $;case H:if(o.last){H0>>>=C0&7,C0-=C0&7,o.mode=m;break}while(C0<3){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}switch(o.last=H0&1,H0>>>=1,C0-=1,H0&3){case 0:o.mode=v;break;case 1:if(p0(o),o.mode=j,_0===T){H0>>>=2,C0-=2;break $}break;case 2:o.mode=O;break;case 3:u.msg="invalid block type",o.mode=W0}H0>>>=2,C0-=2;break;case v:H0>>>=C0&7,C0-=C0&7;while(C0<32){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if((H0&65535)!==(H0>>>16^65535)){u.msg="invalid stored block lengths",o.mode=W0;break}if(o.length=H0&65535,H0=0,C0=0,o.mode=q,_0===T)break $;case q:o.mode=P;case P:if(e=o.length,e){if(e>v0)e=v0;if(e>X0)e=X0;if(e===0)break $;I.arraySet(x0,R0,p,e,A0),v0-=e,p+=e,X0-=e,A0+=e,o.length-=e;break}o.mode=L;break;case O:while(C0<14){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(o.nlen=(H0&31)+257,H0>>>=5,C0-=5,o.ndist=(H0&31)+1,H0>>>=5,C0-=5,o.ncode=(H0&15)+4,H0>>>=4,C0-=4,o.nlen>286||o.ndist>30){u.msg="too many length or distance symbols",o.mode=W0;break}o.have=0,o.mode=A;case A:while(o.have<o.ncode){while(C0<3){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}o.lens[g$[o.have++]]=H0&7,H0>>>=3,C0-=3}while(o.have<19)o.lens[g$[o.have++]]=0;if(o.lencode=o.lendyn,o.lenbits=7,I1={bits:o.lenbits},Z$=J(Y,o.lens,0,19,o.lencode,0,o.work,I1),o.lenbits=I1.bits,Z$){u.msg="invalid code lengths set",o.mode=W0;break}o.have=0,o.mode=k;case k:while(o.have<o.nlen+o.ndist){for(;;){if(f0=o.lencode[H0&(1<<o.lenbits)-1],z$=f0>>>24,a0=f0>>>16&255,U$=f0&65535,z$<=C0)break;if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(U$<16)H0>>>=z$,C0-=z$,o.lens[o.have++]=U$;else{if(U$===16){C$=z$+2;while(C0<C$){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(H0>>>=z$,C0-=z$,o.have===0){u.msg="invalid bit length repeat",o.mode=W0;break}B$=o.lens[o.have-1],e=3+(H0&3),H0>>>=2,C0-=2}else if(U$===17){C$=z$+3;while(C0<C$){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}H0>>>=z$,C0-=z$,B$=0,e=3+(H0&7),H0>>>=3,C0-=3}else{C$=z$+7;while(C0<C$){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}H0>>>=z$,C0-=z$,B$=0,e=11+(H0&127),H0>>>=7,C0-=7}if(o.have+e>o.nlen+o.ndist){u.msg="invalid bit length repeat",o.mode=W0;break}while(e--)o.lens[o.have++]=B$}}if(o.mode===W0)break;if(o.lens[256]===0){u.msg="invalid code -- missing end-of-block",o.mode=W0;break}if(o.lenbits=9,I1={bits:o.lenbits},Z$=J(W,o.lens,0,o.nlen,o.lencode,0,o.work,I1),o.lenbits=I1.bits,Z$){u.msg="invalid literal/lengths set",o.mode=W0;break}if(o.distbits=6,o.distcode=o.distdyn,I1={bits:o.distbits},Z$=J(R,o.lens,o.nlen,o.ndist,o.distcode,0,o.work,I1),o.distbits=I1.bits,Z$){u.msg="invalid distances set",o.mode=W0;break}if(o.mode=j,_0===T)break $;case j:o.mode=h;case h:if(v0>=6&&X0>=258){if(u.next_out=A0,u.avail_out=X0,u.next_in=p,u.avail_in=v0,o.hold=H0,o.bits=C0,_(u,d0),A0=u.next_out,x0=u.output,X0=u.avail_out,p=u.next_in,R0=u.input,v0=u.avail_in,H0=o.hold,C0=o.bits,o.mode===L)o.back=-1;break}o.back=0;for(;;){if(f0=o.lencode[H0&(1<<o.lenbits)-1],z$=f0>>>24,a0=f0>>>16&255,U$=f0&65535,z$<=C0)break;if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(a0&&(a0&240)===0){c$=z$,D$=a0,L$=U$;for(;;){if(f0=o.lencode[L$+((H0&(1<<c$+D$)-1)>>c$)],z$=f0>>>24,a0=f0>>>16&255,U$=f0&65535,c$+z$<=C0)break;if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}H0>>>=c$,C0-=c$,o.back+=c$}if(H0>>>=z$,C0-=z$,o.back+=z$,o.length=U$,a0===0){o.mode=d;break}if(a0&32){o.back=-1,o.mode=L;break}if(a0&64){u.msg="invalid literal/length code",o.mode=W0;break}o.extra=a0&15,o.mode=a;case a:if(o.extra){C$=o.extra;while(C0<C$){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}o.length+=H0&(1<<o.extra)-1,H0>>>=o.extra,C0-=o.extra,o.back+=o.extra}o.was=o.length,o.mode=J0;case J0:for(;;){if(f0=o.distcode[H0&(1<<o.distbits)-1],z$=f0>>>24,a0=f0>>>16&255,U$=f0&65535,z$<=C0)break;if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if((a0&240)===0){c$=z$,D$=a0,L$=U$;for(;;){if(f0=o.distcode[L$+((H0&(1<<c$+D$)-1)>>c$)],z$=f0>>>24,a0=f0>>>16&255,U$=f0&65535,c$+z$<=C0)break;if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}H0>>>=c$,C0-=c$,o.back+=c$}if(H0>>>=z$,C0-=z$,o.back+=z$,a0&64){u.msg="invalid distance code",o.mode=W0;break}o.offset=U$,o.extra=a0&15,o.mode=K0;case K0:if(o.extra){C$=o.extra;while(C0<C$){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}o.offset+=H0&(1<<o.extra)-1,H0>>>=o.extra,C0-=o.extra,o.back+=o.extra}if(o.offset>o.dmax){u.msg="invalid distance too far back",o.mode=W0;break}o.mode=O0;case O0:if(X0===0)break $;if(e=d0-X0,o.offset>e){if(e=o.offset-e,e>o.whave){if(o.sane){u.msg="invalid distance too far back",o.mode=W0;break}}if(e>o.wnext)e-=o.wnext,E0=o.wsize-e;else E0=o.wnext-e;if(e>o.length)e=o.length;b0=o.window}else b0=x0,E0=A0-o.offset,e=o.length;if(e>X0)e=X0;X0-=e,o.length-=e;do x0[A0++]=b0[E0++];while(--e);if(o.length===0)o.mode=h;break;case d:if(X0===0)break $;x0[A0++]=o.length,X0--,o.mode=h;break;case m:if(o.wrap){while(C0<32){if(v0===0)break $;v0--,H0|=R0[p++]<<C0,C0+=8}if(d0-=X0,u.total_out+=d0,o.total+=d0,d0)u.adler=o.check=o.flags?Z(o.check,x0,d0,A0-d0):G(o.check,x0,d0,A0-d0);if(d0=X0,(o.flags?H0:c0(H0))!==o.check){u.msg="incorrect data check",o.mode=W0;break}H0=0,C0=0}o.mode=r;case r:if(o.wrap&&o.flags){while(C0<32){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(H0!==(o.total&4294967295)){u.msg="incorrect length check",o.mode=W0;break}H0=0,C0=0}o.mode=Y0;case Y0:Z$=N;break $;case W0:Z$=w;break $;case I0:return y;case c:default:return x}if(u.next_out=A0,u.avail_out=X0,u.next_in=p,u.avail_in=v0,o.hold=H0,o.bits=C0,o.wsize||d0!==u.avail_out&&o.mode<W0&&(o.mode<m||_0!==M)){if(l0(u,u.output,u.next_out,d0-u.avail_out))return o.mode=I0,y}if(H$-=u.avail_in,d0-=u.avail_out,u.total_in+=H$,u.total_out+=d0,o.total+=d0,o.wrap&&d0)u.adler=o.check=o.flags?Z(o.check,x0,d0,u.next_out-d0):G(o.check,x0,d0,u.next_out-d0);if(u.data_type=o.bits+(o.last?64:0)+(o.mode===L?128:0)+(o.mode===j||o.mode===q?256:0),(H$===0&&d0===0||_0===M)&&Z$===S)Z$=g;return Z$}function N0(u){if(!u||!u.state)return x;var _0=u.state;if(_0.window)_0.window=null;return u.state=null,S}function B0(u,_0){var o;if(!u||!u.state)return x;if(o=u.state,(o.wrap&2)===0)return x;return o.head=_0,_0.done=!1,S}function Y$(u,_0){var o=_0.length,R0,x0,p;if(!u||!u.state)return x;if(R0=u.state,R0.wrap!==0&&R0.mode!==F)return x;if(R0.mode===F){if(x0=1,x0=G(x0,_0,o,0),x0!==R0.check)return w}if(p=l0(u,_0,o,o),p)return R0.mode=I0,y;return R0.havedict=1,S}$.inflateReset=s0,$.inflateReset2=k0,$.inflateResetKeep=q0,$.inflateInit=M$,$.inflateInit2=n0,$.inflate=L0,$.inflateEnd=N0,$.inflateGetHeader=B0,$.inflateSetDictionary=Y$,$.inflateInfo="pako inflate (from Nodeca project)"}),oa=b6(($,I)=>{I.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}}),ta=b6(($)=>{var I=(bE(),V$(yE)),G=na(),Z=la(),_=ia(),J=oa();for(Y in J)$[Y]=J[Y];var Y;$.NONE=0,$.DEFLATE=1,$.INFLATE=2,$.GZIP=3,$.GUNZIP=4,$.DEFLATERAW=5,$.INFLATERAW=6,$.UNZIP=7;var W=31,R=139;function M(E){if(typeof E!=="number"||E<$.DEFLATE||E>$.UNZIP)throw TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=E,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}M.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}if(this.pending_close=!1,I(this.init_done,"close before init"),I(this.mode<=$.UNZIP),this.mode===$.DEFLATE||this.mode===$.GZIP||this.mode===$.DEFLATERAW)Z.deflateEnd(this.strm);else if(this.mode===$.INFLATE||this.mode===$.GUNZIP||this.mode===$.INFLATERAW||this.mode===$.UNZIP)_.inflateEnd(this.strm);this.mode=$.NONE,this.dictionary=null},M.prototype.write=function(E,T,S,N,B,x,w){return this._write(!0,E,T,S,N,B,x,w)},M.prototype.writeSync=function(E,T,S,N,B,x,w){return this._write(!1,E,T,S,N,B,x,w)},M.prototype._write=function(E,T,S,N,B,x,w,y){if(I.equal(arguments.length,8),I(this.init_done,"write before init"),I(this.mode!==$.NONE,"already finalized"),I.equal(!1,this.write_in_progress,"write already in progress"),I.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,I.equal(!1,T===void 0,"must provide flush value"),this.write_in_progress=!0,T!==$.Z_NO_FLUSH&&T!==$.Z_PARTIAL_FLUSH&&T!==$.Z_SYNC_FLUSH&&T!==$.Z_FULL_FLUSH&&T!==$.Z_FINISH&&T!==$.Z_BLOCK)throw Error("Invalid flush value");if(S==null)S=Buffer.alloc(0),B=0,N=0;if(this.strm.avail_in=B,this.strm.input=S,this.strm.next_in=N,this.strm.avail_out=y,this.strm.output=x,this.strm.next_out=w,this.flush=T,!E){if(this._process(),this._checkError())return this._afterSync();return}var g=this;return process.nextTick(function(){g._process(),g._after()}),this},M.prototype._afterSync=function(){var E=this.strm.avail_out,T=this.strm.avail_in;return this.write_in_progress=!1,[T,E]},M.prototype._process=function(){var E=null;switch(this.mode){case $.DEFLATE:case $.GZIP:case $.DEFLATERAW:this.err=Z.deflate(this.strm,this.flush);break;case $.UNZIP:if(this.strm.avail_in>0)E=this.strm.next_in;switch(this.gzip_id_bytes_read){case 0:if(E===null)break;if(this.strm.input[E]===W){if(this.gzip_id_bytes_read=1,E++,this.strm.avail_in===1)break}else{this.mode=$.INFLATE;break}case 1:if(E===null)break;if(this.strm.input[E]===R)this.gzip_id_bytes_read=2,this.mode=$.GUNZIP;else this.mode=$.INFLATE;break;default:throw Error("invalid number of gzip magic number bytes read")}case $.INFLATE:case $.GUNZIP:case $.INFLATERAW:if(this.err=_.inflate(this.strm,this.flush),this.err===$.Z_NEED_DICT&&this.dictionary){if(this.err=_.inflateSetDictionary(this.strm,this.dictionary),this.err===$.Z_OK)this.err=_.inflate(this.strm,this.flush);else if(this.err===$.Z_DATA_ERROR)this.err=$.Z_NEED_DICT}while(this.strm.avail_in>0&&this.mode===$.GUNZIP&&this.err===$.Z_STREAM_END&&this.strm.next_in[0]!==0)this.reset(),this.err=_.inflate(this.strm,this.flush);break;default:throw Error("Unknown mode "+this.mode)}},M.prototype._checkError=function(){switch(this.err){case $.Z_OK:case $.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===$.Z_FINISH)return this._error("unexpected end of file"),!1;break;case $.Z_STREAM_END:break;case $.Z_NEED_DICT:if(this.dictionary==null)this._error("Missing dictionary");else this._error("Bad dictionary");return!1;default:return this._error("Zlib error"),!1}return!0},M.prototype._after=function(){if(!this._checkError())return;var E=this.strm.avail_out,T=this.strm.avail_in;if(this.write_in_progress=!1,this.callback(T,E),this.pending_close)this.close()},M.prototype._error=function(E){if(this.strm.msg)E=this.strm.msg;if(this.onerror(E,this.err),this.write_in_progress=!1,this.pending_close)this.close()},M.prototype.init=function(E,T,S,N,B){I(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),I(E>=8&&E<=15,"invalid windowBits"),I(T>=-1&&T<=9,"invalid compression level"),I(S>=1&&S<=9,"invalid memlevel"),I(N===$.Z_FILTERED||N===$.Z_HUFFMAN_ONLY||N===$.Z_RLE||N===$.Z_FIXED||N===$.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(T,E,S,N,B),this._setDictionary()},M.prototype.params=function(){throw Error("deflateParams Not supported")},M.prototype.reset=function(){this._reset(),this._setDictionary()},M.prototype._init=function(E,T,S,N,B){if(this.level=E,this.windowBits=T,this.memLevel=S,this.strategy=N,this.flush=$.Z_NO_FLUSH,this.err=$.Z_OK,this.mode===$.GZIP||this.mode===$.GUNZIP)this.windowBits+=16;if(this.mode===$.UNZIP)this.windowBits+=32;if(this.mode===$.DEFLATERAW||this.mode===$.INFLATERAW)this.windowBits=-1*this.windowBits;switch(this.strm=new G,this.mode){case $.DEFLATE:case $.GZIP:case $.DEFLATERAW:this.err=Z.deflateInit2(this.strm,this.level,$.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case $.INFLATE:case $.GUNZIP:case $.INFLATERAW:case $.UNZIP:this.err=_.inflateInit2(this.strm,this.windowBits);break;default:throw Error("Unknown mode "+this.mode)}if(this.err!==$.Z_OK)this._error("Init error");this.dictionary=B,this.write_in_progress=!1,this.init_done=!0},M.prototype._setDictionary=function(){if(this.dictionary==null)return;switch(this.err=$.Z_OK,this.mode){case $.DEFLATE:case $.DEFLATERAW:this.err=Z.deflateSetDictionary(this.strm,this.dictionary);break;default:break}if(this.err!==$.Z_OK)this._error("Failed to set dictionary")},M.prototype._reset=function(){switch(this.err=$.Z_OK,this.mode){case $.DEFLATE:case $.DEFLATERAW:case $.GZIP:this.err=Z.deflateReset(this.strm);break;case $.INFLATE:case $.INFLATERAW:case $.GUNZIP:this.err=_.inflateReset(this.strm);break;default:break}if(this.err!==$.Z_OK)this._error("Failed to reset stream")},$.Zlib=M}),Uw=b6(($)=>{var I=(u1(),V$(h1)).Buffer,G=w4().Transform,Z=ta(),_=(C2(),V$(v2)),J=(bE(),V$(yE)).ok,Y=(u1(),V$(h1)).kMaxLength,W="Cannot create final Buffer. It would be larger than 0x"+Y.toString(16)+" bytes";Z.Z_MIN_WINDOWBITS=8,Z.Z_MAX_WINDOWBITS=15,Z.Z_DEFAULT_WINDOWBITS=15,Z.Z_MIN_CHUNK=64,Z.Z_MAX_CHUNK=1/0,Z.Z_DEFAULT_CHUNK=16384,Z.Z_MIN_MEMLEVEL=1,Z.Z_MAX_MEMLEVEL=9,Z.Z_DEFAULT_MEMLEVEL=8,Z.Z_MIN_LEVEL=-1,Z.Z_MAX_LEVEL=9,Z.Z_DEFAULT_LEVEL=Z.Z_DEFAULT_COMPRESSION;var R=Object.keys(Z);for(E=0;E<R.length;E++)if(M=R[E],M.match(/^Z/))Object.defineProperty($,M,{enumerable:!0,value:Z[M],writable:!1});var M,E,T={Z_OK:Z.Z_OK,Z_STREAM_END:Z.Z_STREAM_END,Z_NEED_DICT:Z.Z_NEED_DICT,Z_ERRNO:Z.Z_ERRNO,Z_STREAM_ERROR:Z.Z_STREAM_ERROR,Z_DATA_ERROR:Z.Z_DATA_ERROR,Z_MEM_ERROR:Z.Z_MEM_ERROR,Z_BUF_ERROR:Z.Z_BUF_ERROR,Z_VERSION_ERROR:Z.Z_VERSION_ERROR},S=Object.keys(T);for(B=0;B<S.length;B++)N=S[B],T[T[N]]=N;var N,B;Object.defineProperty($,"codes",{enumerable:!0,value:Object.freeze(T),writable:!1}),$.Deflate=y,$.Inflate=g,$.Gzip=b,$.Gunzip=l,$.DeflateRaw=i,$.InflateRaw=$0,$.Unzip=Q0,$.createDeflate=function(Q){return new y(Q)},$.createInflate=function(Q){return new g(Q)},$.createDeflateRaw=function(Q){return new i(Q)},$.createInflateRaw=function(Q){return new $0(Q)},$.createGzip=function(Q){return new b(Q)},$.createGunzip=function(Q){return new l(Q)},$.createUnzip=function(Q){return new Q0(Q)},$.deflate=function(Q,D,F){if(typeof D==="function")F=D,D={};return x(new y(D),Q,F)},$.deflateSync=function(Q,D){return w(new y(D),Q)},$.gzip=function(Q,D,F){if(typeof D==="function")F=D,D={};return x(new b(D),Q,F)},$.gzipSync=function(Q,D){return w(new b(D),Q)},$.deflateRaw=function(Q,D,F){if(typeof D==="function")F=D,D={};return x(new i(D),Q,F)},$.deflateRawSync=function(Q,D){return w(new i(D),Q)},$.unzip=function(Q,D,F){if(typeof D==="function")F=D,D={};return x(new Q0(D),Q,F)},$.unzipSync=function(Q,D){return w(new Q0(D),Q)},$.inflate=function(Q,D,F){if(typeof D==="function")F=D,D={};return x(new g(D),Q,F)},$.inflateSync=function(Q,D){return w(new g(D),Q)},$.gunzip=function(Q,D,F){if(typeof D==="function")F=D,D={};return x(new l(D),Q,F)},$.gunzipSync=function(Q,D){return w(new l(D),Q)},$.inflateRaw=function(Q,D,F){if(typeof D==="function")F=D,D={};return x(new $0(D),Q,F)},$.inflateRawSync=function(Q,D){return w(new $0(D),Q)};function x(Q,D,F){var L=[],H=0;Q.on("error",q),Q.on("end",P),Q.end(D),v();function v(){var O;while((O=Q.read())!==null)L.push(O),H+=O.length;Q.once("readable",v)}function q(O){Q.removeListener("end",P),Q.removeListener("readable",v),F(O)}function P(){var O,A=null;if(H>=Y)A=RangeError(W);else O=I.concat(L,H);L=[],Q.close(),F(A,O)}}function w(Q,D){if(typeof D==="string")D=I.from(D);if(!I.isBuffer(D))throw TypeError("Not a string or buffer");var F=Q._finishFlushFlag;return Q._processChunk(D,F)}function y(Q){if(!(this instanceof y))return new y(Q);D0.call(this,Q,Z.DEFLATE)}function g(Q){if(!(this instanceof g))return new g(Q);D0.call(this,Q,Z.INFLATE)}function b(Q){if(!(this instanceof b))return new b(Q);D0.call(this,Q,Z.GZIP)}function l(Q){if(!(this instanceof l))return new l(Q);D0.call(this,Q,Z.GUNZIP)}function i(Q){if(!(this instanceof i))return new i(Q);D0.call(this,Q,Z.DEFLATERAW)}function $0(Q){if(!(this instanceof $0))return new $0(Q);D0.call(this,Q,Z.INFLATERAW)}function Q0(Q){if(!(this instanceof Q0))return new Q0(Q);D0.call(this,Q,Z.UNZIP)}function G0(Q){return Q===Z.Z_NO_FLUSH||Q===Z.Z_PARTIAL_FLUSH||Q===Z.Z_SYNC_FLUSH||Q===Z.Z_FULL_FLUSH||Q===Z.Z_FINISH||Q===Z.Z_BLOCK}function D0(Q,D){var F=this;if(this._opts=Q=Q||{},this._chunkSize=Q.chunkSize||$.Z_DEFAULT_CHUNK,G.call(this,Q),Q.flush&&!G0(Q.flush))throw Error("Invalid flush flag: "+Q.flush);if(Q.finishFlush&&!G0(Q.finishFlush))throw Error("Invalid flush flag: "+Q.finishFlush);if(this._flushFlag=Q.flush||Z.Z_NO_FLUSH,this._finishFlushFlag=typeof Q.finishFlush<"u"?Q.finishFlush:Z.Z_FINISH,Q.chunkSize){if(Q.chunkSize<$.Z_MIN_CHUNK||Q.chunkSize>$.Z_MAX_CHUNK)throw Error("Invalid chunk size: "+Q.chunkSize)}if(Q.windowBits){if(Q.windowBits<$.Z_MIN_WINDOWBITS||Q.windowBits>$.Z_MAX_WINDOWBITS)throw Error("Invalid windowBits: "+Q.windowBits)}if(Q.level){if(Q.level<$.Z_MIN_LEVEL||Q.level>$.Z_MAX_LEVEL)throw Error("Invalid compression level: "+Q.level)}if(Q.memLevel){if(Q.memLevel<$.Z_MIN_MEMLEVEL||Q.memLevel>$.Z_MAX_MEMLEVEL)throw Error("Invalid memLevel: "+Q.memLevel)}if(Q.strategy){if(Q.strategy!=$.Z_FILTERED&&Q.strategy!=$.Z_HUFFMAN_ONLY&&Q.strategy!=$.Z_RLE&&Q.strategy!=$.Z_FIXED&&Q.strategy!=$.Z_DEFAULT_STRATEGY)throw Error("Invalid strategy: "+Q.strategy)}if(Q.dictionary){if(!I.isBuffer(Q.dictionary))throw Error("Invalid dictionary: it should be a Buffer instance")}this._handle=new Z.Zlib(D);var L=this;this._hadError=!1,this._handle.onerror=function(q,P){t(L),L._hadError=!0;var O=Error(q);O.errno=P,O.code=$.codes[P],L.emit("error",O)};var H=$.Z_DEFAULT_COMPRESSION;if(typeof Q.level==="number")H=Q.level;var v=$.Z_DEFAULT_STRATEGY;if(typeof Q.strategy==="number")v=Q.strategy;this._handle.init(Q.windowBits||$.Z_DEFAULT_WINDOWBITS,H,Q.memLevel||$.Z_DEFAULT_MEMLEVEL,v,Q.dictionary),this._buffer=I.allocUnsafe(this._chunkSize),this._offset=0,this._level=H,this._strategy=v,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!F._handle},configurable:!0,enumerable:!0})}_.inherits(D0,G),D0.prototype.params=function(Q,D,F){if(Q<$.Z_MIN_LEVEL||Q>$.Z_MAX_LEVEL)throw RangeError("Invalid compression level: "+Q);if(D!=$.Z_FILTERED&&D!=$.Z_HUFFMAN_ONLY&&D!=$.Z_RLE&&D!=$.Z_FIXED&&D!=$.Z_DEFAULT_STRATEGY)throw TypeError("Invalid strategy: "+D);if(this._level!==Q||this._strategy!==D){var L=this;this.flush(Z.Z_SYNC_FLUSH,function(){if(J(L._handle,"zlib binding closed"),L._handle.params(Q,D),!L._hadError){if(L._level=Q,L._strategy=D,F)F()}})}else process.nextTick(F)},D0.prototype.reset=function(){return J(this._handle,"zlib binding closed"),this._handle.reset()},D0.prototype._flush=function(Q){this._transform(I.alloc(0),"",Q)},D0.prototype.flush=function(Q,D){var F=this,L=this._writableState;if(typeof Q==="function"||Q===void 0&&!D)D=Q,Q=Z.Z_FULL_FLUSH;if(L.ended){if(D)process.nextTick(D)}else if(L.ending){if(D)this.once("end",D)}else if(L.needDrain){if(D)this.once("drain",function(){return F.flush(Q,D)})}else this._flushFlag=Q,this.write(I.alloc(0),"",D)},D0.prototype.close=function(Q){t(this,Q),process.nextTick(P0,this)};function t(Q,D){if(D)process.nextTick(D);if(!Q._handle)return;Q._handle.close(),Q._handle=null}function P0(Q){Q.emit("close")}D0.prototype._transform=function(Q,D,F){var L,H=this._writableState,v=H.ending||H.ended,q=v&&(!Q||H.length===Q.length);if(Q!==null&&!I.isBuffer(Q))return F(Error("invalid input"));if(!this._handle)return F(Error("zlib binding closed"));if(q)L=this._finishFlushFlag;else if(L=this._flushFlag,Q.length>=H.length)this._flushFlag=this._opts.flush||Z.Z_NO_FLUSH;this._processChunk(Q,L,F)},D0.prototype._processChunk=function(Q,D,F){var L=Q&&Q.length,H=this._chunkSize-this._offset,v=0,q=this,P=typeof F==="function";if(!P){var O=[],A=0,k;this.on("error",function(K0){k=K0}),J(this._handle,"zlib binding closed");do var j=this._handle.writeSync(D,Q,v,L,this._buffer,this._offset,H);while(!this._hadError&&J0(j[0],j[1]));if(this._hadError)throw k;if(A>=Y)throw t(this),RangeError(W);var h=I.concat(O,A);return t(this),h}J(this._handle,"zlib binding closed");var a=this._handle.write(D,Q,v,L,this._buffer,this._offset,H);a.buffer=Q,a.callback=J0;function J0(K0,O0){if(this)this.buffer=null,this.callback=null;if(q._hadError)return;var d=H-O0;if(J(d>=0,"have should not go down"),d>0){var m=q._buffer.slice(q._offset,q._offset+d);if(q._offset+=d,P)q.push(m);else O.push(m),A+=m.length}if(O0===0||q._offset>=q._chunkSize)H=q._chunkSize,q._offset=0,q._buffer=I.allocUnsafe(q._chunkSize);if(O0===0){if(v+=L-K0,L=K0,!P)return!0;var r=q._handle.write(D,Q,v,L,q._buffer,q._offset,q._chunkSize);r.callback=J0,r.buffer=Q;return}if(!P)return!1;F()}},_.inherits(y,D0),_.inherits(g,D0),_.inherits(b,D0),_.inherits(l,D0),_.inherits(i,D0),_.inherits($0,D0),_.inherits(Q0,D0)}),Iw={};ua(Iw,{default:()=>_w.default});ha(Iw,sg(Uw(),1));_w=sg(Uw(),1),ra=_w.default});var zz=N6((_z0,Dw)=>{function Yw($,I,G){if(!$||typeof $!=="object"||Array.isArray($)||Object.keys($).some((Z)=>!I.includes(Z)))throw Error(`${G} has an invalid shape`);return $}function aa($){if(!Array.isArray($)||$.length>256)throw Error("World network egress must be an array of at most 256 exact HTTPS origins");let I=$.map((G)=>{if(typeof G!=="string"||G.length>2048)throw Error("World network egress origins must be strings");let Z;try{Z=new URL(G)}catch{throw Error(`Invalid World network origin: ${G}`)}if(Z.protocol!=="https:"||Z.origin!==G||Z.username||Z.password||!/^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$/.test(Z.hostname)||Z.hostname.split(".").some((_)=>!_||_.length>63||_.startsWith("-")||_.endsWith("-"))||/^[\d.]+$/.test(Z.hostname)||Z.hostname==="localhost"||Z.hostname.endsWith(".localhost"))throw Error(`World network requires an exact canonical HTTPS origin: ${G}`);return G});return Object.freeze([...new Set(I)].sort())}function Jw($){let I=Yw($,["egress"],"World network");return Object.freeze({egress:aa(I.egress)})}function Qw($,I){if(typeof $!=="string"||!$||$.length>256)throw Error("World network policy requires its World identity");return Object.freeze({version:1,world:$,egress:Jw(I).egress})}function zw($){let I=Yw($,["version","world","egress"],"World network policy");if(I.version!==1)throw Error("Unsupported World network policy version");return Qw(I.world,{egress:I.egress})}function Zw($){let I=$.VOLTER_WORLD_NETWORK_POLICY;if(I===void 0)return;if(typeof I!=="string"||I.length>65536)throw Error("Invalid published World network policy");let G=zw(JSON.parse(I));if(!$.VOLTER_WORLD||G.world!==$.VOLTER_WORLD)throw Error("World network policy does not belong to the attached World");return G}function Ow($,I){let G;try{G=new URL(String(I))}catch{return!1}return G.protocol==="https:"&&!G.username&&!G.password&&$.egress.includes(G.origin)}function Lw($){let I=String($||"").toLowerCase().replace(/^\[|\]$/g,"");if(!I)return!0;if(I==="localhost"||I.endsWith(".localhost")||I.endsWith(".test")||I==="0.0.0.0"||I==="::1")return!0;let G=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/.exec(I);if(G){let Z=Number(G[1]),_=Number(G[2]);return Z===127||Z===10||Z===172&&_>=16&&_<=31||Z===192&&_===168||Z===169&&_===254}return I.includes(":")&&(I.startsWith("fc")||I.startsWith("fd")||I.startsWith("fe80:"))}function sa($,I=process.env){let G;try{G=new URL(String($))}catch{return`unparseable destination ${String($)}`}if(Lw(G.hostname))return null;if(I.VOLTER_TWIN_STRICT_EGRESS==="1"||I.VOLTER_TWIN_STRICT_EGRESS==="true")return`sealed World refuses untwinned host ${G.hostname}`;let Z;try{Z=Zw(I)}catch(_){return`World network policy unreadable (${_.message}); refusing ${G.hostname}`}if(Z!==void 0&&!Ow(Z,G))return`World network policy does not allow ${G.origin}`;return null}Dw.exports={isWorldInternalHost:Lw,worldEgressRefusal:sa,WORLD_NETWORK_POLICY_ENV:"VOLTER_WORLD_NETWORK_POLICY",normalizeWorldNetwork:Jw,createWorldNetworkPolicy:Qw,parseWorldNetworkPolicy:zw,worldNetworkPolicyFromEnv:Zw,allowsWorldNetworkEgress:Ow}});var Rw=N6((Xz0,Ew)=>{var Kw=new Map;function Ww($,I){if(!I||!Array.isArray(I.hosts)||!I.hosts.length)return null;return{name:$,url:typeof I.url==="string"?I.url:null,hosts:new Set(I.hosts.map((G)=>String(G).toLowerCase()))}}function ea($){if(!$)return{routes:[],twins:{}};let I=Date.now(),G=Kw.get($);if(G&&I-G.checkedAt<1000)return G;if(!G)G={checkedAt:0,mtimeMs:-1,routes:[],services:{},twins:{}},Kw.set($,G);G.checkedAt=I;let Z=(()=>({})),_=(DU(),V$(QB)),J=_.join(_.dirname($),"app-url.json");try{let Y=JSON.parse(Z.readFileSync($,"utf8"));G.services=Y.services||{},G.twins=i5().twinOrigins(Y.env||{})}catch{}try{let Y=Z.statSync(J).mtimeMs;if(Y!==G.mtimeMs){G.mtimeMs=Y;let R=JSON.parse(Z.readFileSync(J,"utf8")),M=R.apps&&typeof R.apps==="object"?Object.entries(R.apps):[];G.routes=[Ww("app",R),...M.map(([E,T])=>Ww(E,T))].filter(Boolean)}let W=G.services;for(let R of G.routes){let M=R.url??W[R.name]?.url;R.origin=typeof M==="string"?M.replace(/\/$/,""):null}}catch(Y){if(G.mtimeMs=-1,Y&&Y.code==="ENOENT")G.routes=[]}return G}function Hw($,I,G={}){let Z=String(I||"").toLowerCase().replace(/\.$/,""),_=ea($),J=_.routes.find((W)=>W.origin&&Fw(W.hosts,Z));if(!J)return null;let Y=(W)=>Object.hasOwn(_.twins,W)||Object.hasOwn(G,W);return i5().vendorsOfHost(Z).some(Y)?null:J}function Fw($,I){if($.has(I))return!0;for(let G=I.indexOf(".");G>0;G=I.indexOf(".",G+1))if($.has(`*${I.slice(G)}`))return!0;return!1}function Tw($){return{"x-forwarded-host":$.host,"x-forwarded-proto":$.protocol==="https:"?"https":"http"}}function nE($,I=process.env){let G;try{G=new URL(String($))}catch{return null}if(G.protocol!=="http:"&&G.protocol!=="https:")return null;return Hw(I.VOLTER_WORLD_INSTANCE,G.hostname,i5().twinOrigins(I))}var e5=void 0;function pE(){if(e5===void 0){let $=process.env.NODE_EXTRA_CA_CERTS;try{e5=$?(()=>{throw new Error("Cannot require module "+"fs");})().readFileSync($):null}catch{e5=null}}return e5}var $s=["accept-encoding","x-twins-key","x-volter-twin-original-host","proxy-connection","host","x-forwarded-host","x-forwarded-proto"];function Mw($,I,G,Z,_){let{isIP:J}=(CE(),V$(Sg)),Y=new URL($.origin),W={};for(let[R,M]of Object.entries(Z||{}))if(M!==void 0&&!$s.includes(R.toLowerCase()))W[R]=M;if(Object.assign(W,Tw(I),{host:I.host}),(I.username||I.password)&&!Object.keys(W).some((R)=>R.toLowerCase()==="authorization"))W.authorization=`Basic ${Buffer.from(`${decodeURIComponent(I.username)}:${decodeURIComponent(I.password)}`).toString("base64")}`;return{protocol:Y.protocol,hostname:Y.hostname,port:Y.port||(Y.protocol==="https:"?443:80),method:G,path:`${Y.pathname.replace(/\/$/,"")}${I.pathname}${I.search}`,headers:W,..._&&_.signal?{signal:_.signal}:{},..._&&_.timeout!==void 0?{timeout:_.timeout}:{},...Y.protocol==="https:"&&pE()?{ca:pE()}:{},...Y.protocol==="https:"?{servername:J(Y.hostname)?"":Y.hostname}:{}}}function Aw($,I,{method:G="POST",headers:Z={},body:_,timeoutMs:J=30000,signal:Y}={}){let W=new URL(String(I));if(Y&&Y.aborted)return Promise.reject(Y.reason);let R=Mw($,W,G,Z),M=(R.protocol==="https:"?(xg(),V$(wg)):(Xz(),V$(d5))).request;return new Promise((E,T)=>{let S=!1,N=()=>x(Y.reason),B=()=>{if(S=!0,clearTimeout(y),Y)Y.removeEventListener("abort",N)},x=(g)=>{if(!S)B(),w.destroy(),T(g)},w=M(R,(g)=>{g.on("error",x),g.on("aborted",()=>x(Error(`the application's answer to ${W.origin}${W.pathname} was cut off`)));let b=String(g.headers["content-encoding"]||"").toLowerCase(),l=(Gw(),V$(Xw)),i=b==="gzip"||b==="x-gzip"?l.createGunzip():b==="deflate"?l.createInflate():b==="br"?l.createBrotliDecompress():null,$0=i?g.pipe(i):g,Q0=[];$0.on("data",(G0)=>Q0.push(G0)),$0.on("error",x),$0.on("end",()=>{if(S)return;B();let G0={};for(let[D0,t]of Object.entries(g.headers))if(t!==void 0&&!(i&&(D0==="content-encoding"||D0==="content-length")))G0[D0.toLowerCase()]=Array.isArray(t)?t.join(", "):String(t);E({status:g.statusCode,headers:G0,body:Buffer.concat(Q0).toString("utf8")})})}),y=Number.isFinite(J)?setTimeout(()=>x(Error(`the application did not answer ${W.origin}${W.pathname} within ${J} ms`)),J):void 0;if(w.on("error",x),Y)Y.addEventListener("abort",N,{once:!0});if(_!=null&&G!=="GET"&&G!=="HEAD")w.write(_);w.end()})}var Us=[301,302,303,307,308],Is=[204,205,304],_s=["authorization","cookie","proxy-authorization"];function Xs($,I){if($==null)return null;if(typeof $==="string")return $;if($ instanceof URLSearchParams){if(!Object.keys(I).some((G)=>G.toLowerCase()==="content-type"))I["content-type"]="application/x-www-form-urlencoded;charset=UTF-8";return $.toString()}if($ instanceof ArrayBuffer)return Buffer.from($);if(ArrayBuffer.isView($))return Buffer.from($.buffer,$.byteOffset,$.byteLength);throw TypeError("appFetch sends a string, URLSearchParams or bytes body")}async function Gs($,I={}){if(!nE($)){let R=zz().worldEgressRefusal($);if(R!==null)throw TypeError(R);return fetch($,I)}let G=I.redirect||"follow",Z=I.signal||void 0,_=new URL(String($)),J=String(I.method||"GET").toUpperCase(),Y={};new Headers(I.headers||{}).forEach((R,M)=>{Y[M]=R});let W=Xs(I.body,Y);for(let R=0;;R++){let M=nE(_),E;if(M){let N=zz().worldEgressRefusal(M.origin);if(N!==null)throw TypeError(N);let B=await Aw(M,_,{method:J,headers:Y,body:W,signal:Z,timeoutMs:300000}),x=Is.includes(B.status)||J==="HEAD",w=B.status>=200&&B.status<=599;if(E=new Response(x?null:B.body,{status:w?B.status:200,headers:B.headers}),!w)Object.defineProperties(E,{status:{value:B.status},ok:{value:!1}});Object.defineProperty(E,"url",{value:_.toString()})}else{let N=zz().worldEgressRefusal(_);if(N!==null)throw TypeError(N);for(let B of Object.keys(Y))if(["x-twins-key","x-volter-twin-original-host"].includes(B.toLowerCase()))delete Y[B];E=await fetch(_,{method:J,headers:Y,...W!=null&&J!=="GET"&&J!=="HEAD"?{body:W}:{},redirect:"manual",signal:Z})}if(R>0)Object.defineProperty(E,"redirected",{value:!0});let T=E.headers.get("location");if(!Us.includes(E.status)||T===null||G==="manual")return E;if(G==="error")throw TypeError(`${_.origin}${_.pathname} redirected, and the request's redirect mode is error`);if(R>=20)throw TypeError("redirect count exceeded");if(E.body)await E.body.cancel();let S=new URL(T,_);if(S.protocol!=="http:"&&S.protocol!=="https:")throw TypeError(`redirect to ${S.protocol} is not followed`);if(E.status===303&&J!=="GET"&&J!=="HEAD"||(E.status===301||E.status===302)&&J==="POST"){J="GET",W=null;for(let N of Object.keys(Y))if(/^content-/i.test(N))delete Y[N]}if(S.origin!==_.origin){for(let N of Object.keys(Y))if(_s.includes(N.toLowerCase()))delete Y[N]}_=S}}Ew.exports={appRouteFor:Hw,appHostMatch:Fw,appForwardHeaders:Tw,appDestination:nE,appRequestOptions:Mw,deliverToApp:Aw,appFetch:Gs,sessionCa:pE}});var lE=N6((Js)=>{var GX=J6(yJ());(function(){function $(O){if(O==null)return null;if(typeof O==="function")return O.$$typeof===t?null:O.displayName||O.name||null;if(typeof O==="string")return O;switch(O){case x:return"Fragment";case y:return"Profiler";case w:return"StrictMode";case i:return"Suspense";case $0:return"SuspenseList";case D0:return"Activity"}if(typeof O==="object")switch(typeof O.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),O.$$typeof){case B:return"Portal";case b:return O.displayName||"Context";case g:return(O._context.displayName||"Context")+".Consumer";case l:var A=O.render;return O=O.displayName,O||(O=A.displayName||A.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case Q0:return A=O.displayName||null,A!==null?A:$(O.type)||"Memo";case G0:A=O._payload,O=O._init;try{return $(O(A))}catch(k){}}return null}function I(O){return""+O}function G(O){try{I(O);var A=!1}catch(h){A=!0}if(A){A=console;var k=A.error,j=typeof Symbol==="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return k.call(A,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",j),I(O)}}function Z(O){if(O===x)return"<>";if(typeof O==="object"&&O!==null&&O.$$typeof===G0)return"<...>";try{var A=$(O);return A?"<"+A+">":"<...>"}catch(k){return"<...>"}}function _(){var O=P0.A;return O===null?null:O.getOwner()}function J(){return Error("react-stack-top-frame")}function Y(O){if(Q.call(O,"key")){var A=Object.getOwnPropertyDescriptor(O,"key").get;if(A&&A.isReactWarning)return!1}return O.key!==void 0}function W(O,A){function k(){L||(L=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",A))}k.isReactWarning=!0,Object.defineProperty(O,"key",{get:k,configurable:!0})}function R(){var O=$(this.type);return H[O]||(H[O]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),O=this.props.ref,O!==void 0?O:null}function M(O,A,k,j,h,a){var J0=k.ref;return O={$$typeof:N,type:O,key:A,props:k,_owner:j},(J0!==void 0?J0:null)!==null?Object.defineProperty(O,"ref",{enumerable:!1,get:R}):Object.defineProperty(O,"ref",{enumerable:!1,value:null}),O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(O,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(O,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:h}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function E(O,A,k,j,h,a){var J0=A.children;if(J0!==void 0)if(j)if(D(J0)){for(j=0;j<J0.length;j++)T(J0[j]);Object.freeze&&Object.freeze(J0)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(J0);if(Q.call(A,"key")){J0=$(O);var K0=Object.keys(A).filter(function(d){return d!=="key"});j=0<K0.length?"{key: someKey, "+K0.join(": ..., ")+": ...}":"{key: someKey}",P[J0+j]||(K0=0<K0.length?"{"+K0.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
316
+ `));var s=new x({actual:d,expected:m,message:r,operator:W0,stackStartFn:Y0});throw s.generatedMessage=c,s}}Q.match=function d(m,r,Y0){K0(m,r,Y0,d,"match")},Q.doesNotMatch=function d(m,r,Y0){K0(m,r,Y0,d,"doesNotMatch")};function O0(){for(var d=arguments.length,m=Array(d),r=0;r<d;r++)m[r]=arguments[r];H.apply(void 0,[O0,m.length].concat(m))}Q.strict=i(O0,Q,{equal:Q.strictEqual,deepEqual:Q.deepStrictEqual,notEqual:Q.notStrictEqual,notDeepEqual:Q.notDeepStrictEqual}),Q.strict.strict=Q.strict}),ag=Sr(qE(),1),{AssertionError:Ha,CallTracker:Fa,deepEqual:Ta,deepStrictEqual:Ma,doesNotMatch:Aa,doesNotReject:Ea,doesNotThrow:Ra,equal:Pa,fail:Va,ifError:Sa,match:va,notDeepEqual:Ca,notDeepStrictEqual:qa,notEqual:Na,notStrictEqual:Ba,ok:ja,rejects:ka,strict:ga,strictEqual:wa,throws:xa}=ag,fa=ag});var Xw={};LU(Xw,{default:()=>ra});var ya,ba,Qz,hE,uE,ha=($,I,G)=>{for(let Z of hE(I))if(!uE.call($,Z)&&Z!=="default")Qz($,Z,{get:()=>I[Z],enumerable:!0});if(G){for(let Z of hE(I))if(!uE.call(G,Z)&&Z!=="default")Qz(G,Z,{get:()=>I[Z],enumerable:!0});return G}},sg=($,I,G)=>{G=$!=null?ya(ba($)):{};let Z=I||!$||!$.__esModule?Qz(G,"default",{value:$,enumerable:!0}):G;for(let _ of hE($))if(!uE.call(Z,_))Qz(Z,_,{get:()=>$[_],enumerable:!0});return Z},b6=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports),ua=($,I)=>{for(var G in I)Qz($,G,{get:I[G],enumerable:!0,configurable:!0,set:(Z)=>I[G]=()=>Z})},na,s5,pa,eg,$w,ca,la,ma,da,ia,oa,ta,Uw,Iw,_w,ra;var Gw=WI(()=>{ya=Object.create,{getPrototypeOf:ba,defineProperty:Qz,getOwnPropertyNames:hE}=Object,uE=Object.prototype.hasOwnProperty,na=b6(($,I)=>{function G(){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}I.exports=G}),s5=b6(($)=>{var I=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function G(J,Y){return Object.prototype.hasOwnProperty.call(J,Y)}$.assign=function(J){var Y=Array.prototype.slice.call(arguments,1);while(Y.length){var W=Y.shift();if(!W)continue;if(typeof W!=="object")throw TypeError(W+"must be non-object");for(var R in W)if(G(W,R))J[R]=W[R]}return J},$.shrinkBuf=function(J,Y){if(J.length===Y)return J;if(J.subarray)return J.subarray(0,Y);return J.length=Y,J};var Z={arraySet:function(J,Y,W,R,M){if(Y.subarray&&J.subarray){J.set(Y.subarray(W,W+R),M);return}for(var E=0;E<R;E++)J[M+E]=Y[W+E]},flattenChunks:function(J){var Y,W,R,M,E,T;R=0;for(Y=0,W=J.length;Y<W;Y++)R+=J[Y].length;T=new Uint8Array(R),M=0;for(Y=0,W=J.length;Y<W;Y++)E=J[Y],T.set(E,M),M+=E.length;return T}},_={arraySet:function(J,Y,W,R,M){for(var E=0;E<R;E++)J[M+E]=Y[W+E]},flattenChunks:function(J){return[].concat.apply([],J)}};$.setTyped=function(J){if(J)$.Buf8=Uint8Array,$.Buf16=Uint16Array,$.Buf32=Int32Array,$.assign($,Z);else $.Buf8=Array,$.Buf16=Array,$.Buf32=Array,$.assign($,_)},$.setTyped(I)}),pa=b6(($)=>{var I=s5(),G=4,Z=0,_=1,J=2;function Y(L0){var N0=L0.length;while(--N0>=0)L0[N0]=0}var W=0,R=1,M=2,E=3,T=258,S=29,N=256,B=N+1+S,x=30,w=19,y=2*B+1,g=15,b=16,l=7,i=256,$0=16,Q0=17,G0=18,D0=[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],t=[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],P0=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],D=512,F=Array((B+2)*2);Y(F);var L=Array(x*2);Y(L);var H=Array(D);Y(H);var v=Array(T-E+1);Y(v);var q=Array(S);Y(q);var P=Array(x);Y(P);function O(L0,N0,B0,Y$,u){this.static_tree=L0,this.extra_bits=N0,this.extra_base=B0,this.elems=Y$,this.max_length=u,this.has_stree=L0&&L0.length}var A,k,j;function h(L0,N0){this.dyn_tree=L0,this.max_code=0,this.stat_desc=N0}function a(L0){return L0<256?H[L0]:H[256+(L0>>>7)]}function J0(L0,N0){L0.pending_buf[L0.pending++]=N0&255,L0.pending_buf[L0.pending++]=N0>>>8&255}function K0(L0,N0,B0){if(L0.bi_valid>b-B0)L0.bi_buf|=N0<<L0.bi_valid&65535,J0(L0,L0.bi_buf),L0.bi_buf=N0>>b-L0.bi_valid,L0.bi_valid+=B0-b;else L0.bi_buf|=N0<<L0.bi_valid&65535,L0.bi_valid+=B0}function O0(L0,N0,B0){K0(L0,B0[N0*2],B0[N0*2+1])}function d(L0,N0){var B0=0;do B0|=L0&1,L0>>>=1,B0<<=1;while(--N0>0);return B0>>>1}function m(L0){if(L0.bi_valid===16)J0(L0,L0.bi_buf),L0.bi_buf=0,L0.bi_valid=0;else if(L0.bi_valid>=8)L0.pending_buf[L0.pending++]=L0.bi_buf&255,L0.bi_buf>>=8,L0.bi_valid-=8}function r(L0,N0){var{dyn_tree:B0,max_code:Y$}=N0,u=N0.stat_desc.static_tree,_0=N0.stat_desc.has_stree,o=N0.stat_desc.extra_bits,R0=N0.stat_desc.extra_base,x0=N0.stat_desc.max_length,p,A0,v0,X0,H0,C0,H$=0;for(X0=0;X0<=g;X0++)L0.bl_count[X0]=0;B0[L0.heap[L0.heap_max]*2+1]=0;for(p=L0.heap_max+1;p<y;p++){if(A0=L0.heap[p],X0=B0[B0[A0*2+1]*2+1]+1,X0>x0)X0=x0,H$++;if(B0[A0*2+1]=X0,A0>Y$)continue;if(L0.bl_count[X0]++,H0=0,A0>=R0)H0=o[A0-R0];if(C0=B0[A0*2],L0.opt_len+=C0*(X0+H0),_0)L0.static_len+=C0*(u[A0*2+1]+H0)}if(H$===0)return;do{X0=x0-1;while(L0.bl_count[X0]===0)X0--;L0.bl_count[X0]--,L0.bl_count[X0+1]+=2,L0.bl_count[x0]--,H$-=2}while(H$>0);for(X0=x0;X0!==0;X0--){A0=L0.bl_count[X0];while(A0!==0){if(v0=L0.heap[--p],v0>Y$)continue;if(B0[v0*2+1]!==X0)L0.opt_len+=(X0-B0[v0*2+1])*B0[v0*2],B0[v0*2+1]=X0;A0--}}}function Y0(L0,N0,B0){var Y$=Array(g+1),u=0,_0,o;for(_0=1;_0<=g;_0++)Y$[_0]=u=u+B0[_0-1]<<1;for(o=0;o<=N0;o++){var R0=L0[o*2+1];if(R0===0)continue;L0[o*2]=d(Y$[R0]++,R0)}}function W0(){var L0,N0,B0,Y$,u,_0=Array(g+1);B0=0;for(Y$=0;Y$<S-1;Y$++){q[Y$]=B0;for(L0=0;L0<1<<D0[Y$];L0++)v[B0++]=Y$}v[B0-1]=Y$,u=0;for(Y$=0;Y$<16;Y$++){P[Y$]=u;for(L0=0;L0<1<<t[Y$];L0++)H[u++]=Y$}u>>=7;for(;Y$<x;Y$++){P[Y$]=u<<7;for(L0=0;L0<1<<t[Y$]-7;L0++)H[256+u++]=Y$}for(N0=0;N0<=g;N0++)_0[N0]=0;L0=0;while(L0<=143)F[L0*2+1]=8,L0++,_0[8]++;while(L0<=255)F[L0*2+1]=9,L0++,_0[9]++;while(L0<=279)F[L0*2+1]=7,L0++,_0[7]++;while(L0<=287)F[L0*2+1]=8,L0++,_0[8]++;Y0(F,B+1,_0);for(L0=0;L0<x;L0++)L[L0*2+1]=5,L[L0*2]=d(L0,5);A=new O(F,D0,N+1,B,g),k=new O(L,t,0,x,g),j=new O([],P0,0,w,l)}function I0(L0){var N0;for(N0=0;N0<B;N0++)L0.dyn_ltree[N0*2]=0;for(N0=0;N0<x;N0++)L0.dyn_dtree[N0*2]=0;for(N0=0;N0<w;N0++)L0.bl_tree[N0*2]=0;L0.dyn_ltree[i*2]=1,L0.opt_len=L0.static_len=0,L0.last_lit=L0.matches=0}function c(L0){if(L0.bi_valid>8)J0(L0,L0.bi_buf);else if(L0.bi_valid>0)L0.pending_buf[L0.pending++]=L0.bi_buf;L0.bi_buf=0,L0.bi_valid=0}function s(L0,N0,B0,Y$){if(c(L0),Y$)J0(L0,B0),J0(L0,~B0);I.arraySet(L0.pending_buf,L0.window,N0,B0,L0.pending),L0.pending+=B0}function S0(L0,N0,B0,Y$){var u=N0*2,_0=B0*2;return L0[u]<L0[_0]||L0[u]===L0[_0]&&Y$[N0]<=Y$[B0]}function M0(L0,N0,B0){var Y$=L0.heap[B0],u=B0<<1;while(u<=L0.heap_len){if(u<L0.heap_len&&S0(N0,L0.heap[u+1],L0.heap[u],L0.depth))u++;if(S0(N0,Y$,L0.heap[u],L0.depth))break;L0.heap[B0]=L0.heap[u],B0=u,u<<=1}L0.heap[B0]=Y$}function z0(L0,N0,B0){var Y$,u,_0=0,o,R0;if(L0.last_lit!==0)do if(Y$=L0.pending_buf[L0.d_buf+_0*2]<<8|L0.pending_buf[L0.d_buf+_0*2+1],u=L0.pending_buf[L0.l_buf+_0],_0++,Y$===0)O0(L0,u,N0);else{if(o=v[u],O0(L0,o+N+1,N0),R0=D0[o],R0!==0)u-=q[o],K0(L0,u,R0);if(Y$--,o=a(Y$),O0(L0,o,B0),R0=t[o],R0!==0)Y$-=P[o],K0(L0,Y$,R0)}while(_0<L0.last_lit);O0(L0,i,N0)}function c0(L0,N0){var B0=N0.dyn_tree,Y$=N0.stat_desc.static_tree,u=N0.stat_desc.has_stree,_0=N0.stat_desc.elems,o,R0,x0=-1,p;L0.heap_len=0,L0.heap_max=y;for(o=0;o<_0;o++)if(B0[o*2]!==0)L0.heap[++L0.heap_len]=x0=o,L0.depth[o]=0;else B0[o*2+1]=0;while(L0.heap_len<2)if(p=L0.heap[++L0.heap_len]=x0<2?++x0:0,B0[p*2]=1,L0.depth[p]=0,L0.opt_len--,u)L0.static_len-=Y$[p*2+1];N0.max_code=x0;for(o=L0.heap_len>>1;o>=1;o--)M0(L0,B0,o);p=_0;do o=L0.heap[1],L0.heap[1]=L0.heap[L0.heap_len--],M0(L0,B0,1),R0=L0.heap[1],L0.heap[--L0.heap_max]=o,L0.heap[--L0.heap_max]=R0,B0[p*2]=B0[o*2]+B0[R0*2],L0.depth[p]=(L0.depth[o]>=L0.depth[R0]?L0.depth[o]:L0.depth[R0])+1,B0[o*2+1]=B0[R0*2+1]=p,L0.heap[1]=p++,M0(L0,B0,1);while(L0.heap_len>=2);L0.heap[--L0.heap_max]=L0.heap[1],r(L0,N0),Y0(B0,x0,L0.bl_count)}function F0(L0,N0,B0){var Y$,u=-1,_0,o=N0[1],R0=0,x0=7,p=4;if(o===0)x0=138,p=3;N0[(B0+1)*2+1]=65535;for(Y$=0;Y$<=B0;Y$++){if(_0=o,o=N0[(Y$+1)*2+1],++R0<x0&&_0===o)continue;else if(R0<p)L0.bl_tree[_0*2]+=R0;else if(_0!==0){if(_0!==u)L0.bl_tree[_0*2]++;L0.bl_tree[$0*2]++}else if(R0<=10)L0.bl_tree[Q0*2]++;else L0.bl_tree[G0*2]++;if(R0=0,u=_0,o===0)x0=138,p=3;else if(_0===o)x0=6,p=3;else x0=7,p=4}}function q0(L0,N0,B0){var Y$,u=-1,_0,o=N0[1],R0=0,x0=7,p=4;if(o===0)x0=138,p=3;for(Y$=0;Y$<=B0;Y$++){if(_0=o,o=N0[(Y$+1)*2+1],++R0<x0&&_0===o)continue;else if(R0<p)do O0(L0,_0,L0.bl_tree);while(--R0!==0);else if(_0!==0){if(_0!==u)O0(L0,_0,L0.bl_tree),R0--;O0(L0,$0,L0.bl_tree),K0(L0,R0-3,2)}else if(R0<=10)O0(L0,Q0,L0.bl_tree),K0(L0,R0-3,3);else O0(L0,G0,L0.bl_tree),K0(L0,R0-11,7);if(R0=0,u=_0,o===0)x0=138,p=3;else if(_0===o)x0=6,p=3;else x0=7,p=4}}function s0(L0){var N0;F0(L0,L0.dyn_ltree,L0.l_desc.max_code),F0(L0,L0.dyn_dtree,L0.d_desc.max_code),c0(L0,L0.bl_desc);for(N0=w-1;N0>=3;N0--)if(L0.bl_tree[Q[N0]*2+1]!==0)break;return L0.opt_len+=3*(N0+1)+5+5+4,N0}function k0(L0,N0,B0,Y$){var u;K0(L0,N0-257,5),K0(L0,B0-1,5),K0(L0,Y$-4,4);for(u=0;u<Y$;u++)K0(L0,L0.bl_tree[Q[u]*2+1],3);q0(L0,L0.dyn_ltree,N0-1),q0(L0,L0.dyn_dtree,B0-1)}function n0(L0){var N0=4093624447,B0;for(B0=0;B0<=31;B0++,N0>>>=1)if(N0&1&&L0.dyn_ltree[B0*2]!==0)return Z;if(L0.dyn_ltree[18]!==0||L0.dyn_ltree[20]!==0||L0.dyn_ltree[26]!==0)return _;for(B0=32;B0<N;B0++)if(L0.dyn_ltree[B0*2]!==0)return _;return Z}var M$=!1;function T0(L0){if(!M$)W0(),M$=!0;L0.l_desc=new h(L0.dyn_ltree,A),L0.d_desc=new h(L0.dyn_dtree,k),L0.bl_desc=new h(L0.bl_tree,j),L0.bi_buf=0,L0.bi_valid=0,I0(L0)}function V0(L0,N0,B0,Y$){K0(L0,(W<<1)+(Y$?1:0),3),s(L0,N0,B0,!0)}function X$(L0){K0(L0,R<<1,3),O0(L0,i,F),m(L0)}function p0(L0,N0,B0,Y$){var u,_0,o=0;if(L0.level>0){if(L0.strm.data_type===J)L0.strm.data_type=n0(L0);if(c0(L0,L0.l_desc),c0(L0,L0.d_desc),o=s0(L0),u=L0.opt_len+3+7>>>3,_0=L0.static_len+3+7>>>3,_0<=u)u=_0}else u=_0=B0+5;if(B0+4<=u&&N0!==-1)V0(L0,N0,B0,Y$);else if(L0.strategy===G||_0===u)K0(L0,(R<<1)+(Y$?1:0),3),z0(L0,F,L);else K0(L0,(M<<1)+(Y$?1:0),3),k0(L0,L0.l_desc.max_code+1,L0.d_desc.max_code+1,o+1),z0(L0,L0.dyn_ltree,L0.dyn_dtree);if(I0(L0),Y$)c(L0)}function l0(L0,N0,B0){if(L0.pending_buf[L0.d_buf+L0.last_lit*2]=N0>>>8&255,L0.pending_buf[L0.d_buf+L0.last_lit*2+1]=N0&255,L0.pending_buf[L0.l_buf+L0.last_lit]=B0&255,L0.last_lit++,N0===0)L0.dyn_ltree[B0*2]++;else L0.matches++,N0--,L0.dyn_ltree[(v[B0]+N+1)*2]++,L0.dyn_dtree[a(N0)*2]++;return L0.last_lit===L0.lit_bufsize-1}$._tr_init=T0,$._tr_stored_block=V0,$._tr_flush_block=p0,$._tr_tally=l0,$._tr_align=X$}),eg=b6(($,I)=>{function G(Z,_,J,Y){var W=Z&65535|0,R=Z>>>16&65535|0,M=0;while(J!==0){M=J>2000?2000:J,J-=M;do W=W+_[Y++]|0,R=R+W|0;while(--M);W%=65521,R%=65521}return W|R<<16|0}I.exports=G}),$w=b6(($,I)=>{function G(){var J,Y=[];for(var W=0;W<256;W++){J=W;for(var R=0;R<8;R++)J=J&1?3988292384^J>>>1:J>>>1;Y[W]=J}return Y}var Z=G();function _(J,Y,W,R){var M=Z,E=R+W;J^=-1;for(var T=R;T<E;T++)J=J>>>8^M[(J^Y[T])&255];return J^-1}I.exports=_}),ca=b6(($,I)=>{I.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"}}),la=b6(($)=>{var I=s5(),G=pa(),Z=eg(),_=$w(),J=ca(),Y=0,W=1,R=3,M=4,E=5,T=0,S=1,N=-2,B=-3,x=-5,w=-1,y=1,g=2,b=3,l=4,i=0,$0=2,Q0=8,G0=9,D0=15,t=8,P0=29,Q=256,D=Q+1+P0,F=30,L=19,H=2*D+1,v=15,q=3,P=258,O=P+q+1,A=32,k=42,j=69,h=73,a=91,J0=103,K0=113,O0=666,d=1,m=2,r=3,Y0=4,W0=3;function I0(p,A0){return p.msg=J[A0],A0}function c(p){return(p<<1)-(p>4?9:0)}function s(p){var A0=p.length;while(--A0>=0)p[A0]=0}function S0(p){var A0=p.state,v0=A0.pending;if(v0>p.avail_out)v0=p.avail_out;if(v0===0)return;if(I.arraySet(p.output,A0.pending_buf,A0.pending_out,v0,p.next_out),p.next_out+=v0,A0.pending_out+=v0,p.total_out+=v0,p.avail_out-=v0,A0.pending-=v0,A0.pending===0)A0.pending_out=0}function M0(p,A0){G._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,A0),p.block_start=p.strstart,S0(p.strm)}function z0(p,A0){p.pending_buf[p.pending++]=A0}function c0(p,A0){p.pending_buf[p.pending++]=A0>>>8&255,p.pending_buf[p.pending++]=A0&255}function F0(p,A0,v0,X0){var H0=p.avail_in;if(H0>X0)H0=X0;if(H0===0)return 0;if(p.avail_in-=H0,I.arraySet(A0,p.input,p.next_in,H0,v0),p.state.wrap===1)p.adler=Z(p.adler,A0,H0,v0);else if(p.state.wrap===2)p.adler=_(p.adler,A0,H0,v0);return p.next_in+=H0,p.total_in+=H0,H0}function q0(p,A0){var{max_chain_length:v0,strstart:X0}=p,H0,C0,H$=p.prev_length,d0=p.nice_match,e=p.strstart>p.w_size-O?p.strstart-(p.w_size-O):0,E0=p.window,b0=p.w_mask,f0=p.prev,z$=p.strstart+P,a0=E0[X0+H$-1],U$=E0[X0+H$];if(p.prev_length>=p.good_match)v0>>=2;if(d0>p.lookahead)d0=p.lookahead;do{if(H0=A0,E0[H0+H$]!==U$||E0[H0+H$-1]!==a0||E0[H0]!==E0[X0]||E0[++H0]!==E0[X0+1])continue;X0+=2,H0++;do;while(E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&E0[++X0]===E0[++H0]&&X0<z$);if(C0=P-(z$-X0),X0=z$-P,C0>H$){if(p.match_start=A0,H$=C0,C0>=d0)break;a0=E0[X0+H$-1],U$=E0[X0+H$]}}while((A0=f0[A0&b0])>e&&--v0!==0);if(H$<=p.lookahead)return H$;return p.lookahead}function s0(p){var A0=p.w_size,v0,X0,H0,C0,H$;do{if(C0=p.window_size-p.lookahead-p.strstart,p.strstart>=A0+(A0-O)){I.arraySet(p.window,p.window,A0,A0,0),p.match_start-=A0,p.strstart-=A0,p.block_start-=A0,X0=p.hash_size,v0=X0;do H0=p.head[--v0],p.head[v0]=H0>=A0?H0-A0:0;while(--X0);X0=A0,v0=X0;do H0=p.prev[--v0],p.prev[v0]=H0>=A0?H0-A0:0;while(--X0);C0+=A0}if(p.strm.avail_in===0)break;if(X0=F0(p.strm,p.window,p.strstart+p.lookahead,C0),p.lookahead+=X0,p.lookahead+p.insert>=q){H$=p.strstart-p.insert,p.ins_h=p.window[H$],p.ins_h=(p.ins_h<<p.hash_shift^p.window[H$+1])&p.hash_mask;while(p.insert)if(p.ins_h=(p.ins_h<<p.hash_shift^p.window[H$+q-1])&p.hash_mask,p.prev[H$&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=H$,H$++,p.insert--,p.lookahead+p.insert<q)break}}while(p.lookahead<O&&p.strm.avail_in!==0)}function k0(p,A0){var v0=65535;if(v0>p.pending_buf_size-5)v0=p.pending_buf_size-5;for(;;){if(p.lookahead<=1){if(s0(p),p.lookahead===0&&A0===Y)return d;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var X0=p.block_start+v0;if(p.strstart===0||p.strstart>=X0){if(p.lookahead=p.strstart-X0,p.strstart=X0,M0(p,!1),p.strm.avail_out===0)return d}if(p.strstart-p.block_start>=p.w_size-O){if(M0(p,!1),p.strm.avail_out===0)return d}}if(p.insert=0,A0===M){if(M0(p,!0),p.strm.avail_out===0)return r;return Y0}if(p.strstart>p.block_start){if(M0(p,!1),p.strm.avail_out===0)return d}return d}function n0(p,A0){var v0,X0;for(;;){if(p.lookahead<O){if(s0(p),p.lookahead<O&&A0===Y)return d;if(p.lookahead===0)break}if(v0=0,p.lookahead>=q)p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+q-1])&p.hash_mask,v0=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;if(v0!==0&&p.strstart-v0<=p.w_size-O)p.match_length=q0(p,v0);if(p.match_length>=q)if(X0=G._tr_tally(p,p.strstart-p.match_start,p.match_length-q),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=q){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+q-1])&p.hash_mask,v0=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else X0=G._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(X0){if(M0(p,!1),p.strm.avail_out===0)return d}}if(p.insert=p.strstart<q-1?p.strstart:q-1,A0===M){if(M0(p,!0),p.strm.avail_out===0)return r;return Y0}if(p.last_lit){if(M0(p,!1),p.strm.avail_out===0)return d}return m}function M$(p,A0){var v0,X0,H0;for(;;){if(p.lookahead<O){if(s0(p),p.lookahead<O&&A0===Y)return d;if(p.lookahead===0)break}if(v0=0,p.lookahead>=q)p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+q-1])&p.hash_mask,v0=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;if(p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=q-1,v0!==0&&p.prev_length<p.max_lazy_match&&p.strstart-v0<=p.w_size-O){if(p.match_length=q0(p,v0),p.match_length<=5&&(p.strategy===y||p.match_length===q&&p.strstart-p.match_start>4096))p.match_length=q-1}if(p.prev_length>=q&&p.match_length<=p.prev_length){H0=p.strstart+p.lookahead-q,X0=G._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-q),p.lookahead-=p.prev_length-1,p.prev_length-=2;do if(++p.strstart<=H0)p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+q-1])&p.hash_mask,v0=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.prev_length!==0);if(p.match_available=0,p.match_length=q-1,p.strstart++,X0){if(M0(p,!1),p.strm.avail_out===0)return d}}else if(p.match_available){if(X0=G._tr_tally(p,0,p.window[p.strstart-1]),X0)M0(p,!1);if(p.strstart++,p.lookahead--,p.strm.avail_out===0)return d}else p.match_available=1,p.strstart++,p.lookahead--}if(p.match_available)X0=G._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0;if(p.insert=p.strstart<q-1?p.strstart:q-1,A0===M){if(M0(p,!0),p.strm.avail_out===0)return r;return Y0}if(p.last_lit){if(M0(p,!1),p.strm.avail_out===0)return d}return m}function T0(p,A0){var v0,X0,H0,C0,H$=p.window;for(;;){if(p.lookahead<=P){if(s0(p),p.lookahead<=P&&A0===Y)return d;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=q&&p.strstart>0){if(H0=p.strstart-1,X0=H$[H0],X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]){C0=p.strstart+P;do;while(X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]&&X0===H$[++H0]&&H0<C0);if(p.match_length=P-(C0-H0),p.match_length>p.lookahead)p.match_length=p.lookahead}}if(p.match_length>=q)v0=G._tr_tally(p,1,p.match_length-q),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0;else v0=G._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(v0){if(M0(p,!1),p.strm.avail_out===0)return d}}if(p.insert=0,A0===M){if(M0(p,!0),p.strm.avail_out===0)return r;return Y0}if(p.last_lit){if(M0(p,!1),p.strm.avail_out===0)return d}return m}function V0(p,A0){var v0;for(;;){if(p.lookahead===0){if(s0(p),p.lookahead===0){if(A0===Y)return d;break}}if(p.match_length=0,v0=G._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,v0){if(M0(p,!1),p.strm.avail_out===0)return d}}if(p.insert=0,A0===M){if(M0(p,!0),p.strm.avail_out===0)return r;return Y0}if(p.last_lit){if(M0(p,!1),p.strm.avail_out===0)return d}return m}function X$(p,A0,v0,X0,H0){this.good_length=p,this.max_lazy=A0,this.nice_length=v0,this.max_chain=X0,this.func=H0}var p0=[new X$(0,0,0,0,k0),new X$(4,4,8,4,n0),new X$(4,5,16,8,n0),new X$(4,6,32,32,n0),new X$(4,4,16,16,M$),new X$(8,16,32,32,M$),new X$(8,16,128,128,M$),new X$(8,32,128,256,M$),new X$(32,128,258,1024,M$),new X$(32,258,258,4096,M$)];function l0(p){p.window_size=2*p.w_size,s(p.head),p.max_lazy_match=p0[p.level].max_lazy,p.good_match=p0[p.level].good_length,p.nice_match=p0[p.level].nice_length,p.max_chain_length=p0[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=q-1,p.match_available=0,p.ins_h=0}function L0(){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=Q0,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 I.Buf16(H*2),this.dyn_dtree=new I.Buf16((2*F+1)*2),this.bl_tree=new I.Buf16((2*L+1)*2),s(this.dyn_ltree),s(this.dyn_dtree),s(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new I.Buf16(v+1),this.heap=new I.Buf16(2*D+1),s(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new I.Buf16(2*D+1),s(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 N0(p){var A0;if(!p||!p.state)return I0(p,N);if(p.total_in=p.total_out=0,p.data_type=$0,A0=p.state,A0.pending=0,A0.pending_out=0,A0.wrap<0)A0.wrap=-A0.wrap;return A0.status=A0.wrap?k:K0,p.adler=A0.wrap===2?0:1,A0.last_flush=Y,G._tr_init(A0),T}function B0(p){var A0=N0(p);if(A0===T)l0(p.state);return A0}function Y$(p,A0){if(!p||!p.state)return N;if(p.state.wrap!==2)return N;return p.state.gzhead=A0,T}function u(p,A0,v0,X0,H0,C0){if(!p)return N;var H$=1;if(A0===w)A0=6;if(X0<0)H$=0,X0=-X0;else if(X0>15)H$=2,X0-=16;if(H0<1||H0>G0||v0!==Q0||X0<8||X0>15||A0<0||A0>9||C0<0||C0>l)return I0(p,N);if(X0===8)X0=9;var d0=new L0;return p.state=d0,d0.strm=p,d0.wrap=H$,d0.gzhead=null,d0.w_bits=X0,d0.w_size=1<<d0.w_bits,d0.w_mask=d0.w_size-1,d0.hash_bits=H0+7,d0.hash_size=1<<d0.hash_bits,d0.hash_mask=d0.hash_size-1,d0.hash_shift=~~((d0.hash_bits+q-1)/q),d0.window=new I.Buf8(d0.w_size*2),d0.head=new I.Buf16(d0.hash_size),d0.prev=new I.Buf16(d0.w_size),d0.lit_bufsize=1<<H0+6,d0.pending_buf_size=d0.lit_bufsize*4,d0.pending_buf=new I.Buf8(d0.pending_buf_size),d0.d_buf=1*d0.lit_bufsize,d0.l_buf=3*d0.lit_bufsize,d0.level=A0,d0.strategy=C0,d0.method=v0,B0(p)}function _0(p,A0){return u(p,A0,Q0,D0,t,i)}function o(p,A0){var v0,X0,H0,C0;if(!p||!p.state||A0>E||A0<0)return p?I0(p,N):N;if(X0=p.state,!p.output||!p.input&&p.avail_in!==0||X0.status===O0&&A0!==M)return I0(p,p.avail_out===0?x:N);if(X0.strm=p,v0=X0.last_flush,X0.last_flush=A0,X0.status===k)if(X0.wrap===2)if(p.adler=0,z0(X0,31),z0(X0,139),z0(X0,8),!X0.gzhead)z0(X0,0),z0(X0,0),z0(X0,0),z0(X0,0),z0(X0,0),z0(X0,X0.level===9?2:X0.strategy>=g||X0.level<2?4:0),z0(X0,W0),X0.status=K0;else{if(z0(X0,(X0.gzhead.text?1:0)+(X0.gzhead.hcrc?2:0)+(!X0.gzhead.extra?0:4)+(!X0.gzhead.name?0:8)+(!X0.gzhead.comment?0:16)),z0(X0,X0.gzhead.time&255),z0(X0,X0.gzhead.time>>8&255),z0(X0,X0.gzhead.time>>16&255),z0(X0,X0.gzhead.time>>24&255),z0(X0,X0.level===9?2:X0.strategy>=g||X0.level<2?4:0),z0(X0,X0.gzhead.os&255),X0.gzhead.extra&&X0.gzhead.extra.length)z0(X0,X0.gzhead.extra.length&255),z0(X0,X0.gzhead.extra.length>>8&255);if(X0.gzhead.hcrc)p.adler=_(p.adler,X0.pending_buf,X0.pending,0);X0.gzindex=0,X0.status=j}else{var H$=Q0+(X0.w_bits-8<<4)<<8,d0=-1;if(X0.strategy>=g||X0.level<2)d0=0;else if(X0.level<6)d0=1;else if(X0.level===6)d0=2;else d0=3;if(H$|=d0<<6,X0.strstart!==0)H$|=A;if(H$+=31-H$%31,X0.status=K0,c0(X0,H$),X0.strstart!==0)c0(X0,p.adler>>>16),c0(X0,p.adler&65535);p.adler=1}if(X0.status===j)if(X0.gzhead.extra){H0=X0.pending;while(X0.gzindex<(X0.gzhead.extra.length&65535)){if(X0.pending===X0.pending_buf_size){if(X0.gzhead.hcrc&&X0.pending>H0)p.adler=_(p.adler,X0.pending_buf,X0.pending-H0,H0);if(S0(p),H0=X0.pending,X0.pending===X0.pending_buf_size)break}z0(X0,X0.gzhead.extra[X0.gzindex]&255),X0.gzindex++}if(X0.gzhead.hcrc&&X0.pending>H0)p.adler=_(p.adler,X0.pending_buf,X0.pending-H0,H0);if(X0.gzindex===X0.gzhead.extra.length)X0.gzindex=0,X0.status=h}else X0.status=h;if(X0.status===h)if(X0.gzhead.name){H0=X0.pending;do{if(X0.pending===X0.pending_buf_size){if(X0.gzhead.hcrc&&X0.pending>H0)p.adler=_(p.adler,X0.pending_buf,X0.pending-H0,H0);if(S0(p),H0=X0.pending,X0.pending===X0.pending_buf_size){C0=1;break}}if(X0.gzindex<X0.gzhead.name.length)C0=X0.gzhead.name.charCodeAt(X0.gzindex++)&255;else C0=0;z0(X0,C0)}while(C0!==0);if(X0.gzhead.hcrc&&X0.pending>H0)p.adler=_(p.adler,X0.pending_buf,X0.pending-H0,H0);if(C0===0)X0.gzindex=0,X0.status=a}else X0.status=a;if(X0.status===a)if(X0.gzhead.comment){H0=X0.pending;do{if(X0.pending===X0.pending_buf_size){if(X0.gzhead.hcrc&&X0.pending>H0)p.adler=_(p.adler,X0.pending_buf,X0.pending-H0,H0);if(S0(p),H0=X0.pending,X0.pending===X0.pending_buf_size){C0=1;break}}if(X0.gzindex<X0.gzhead.comment.length)C0=X0.gzhead.comment.charCodeAt(X0.gzindex++)&255;else C0=0;z0(X0,C0)}while(C0!==0);if(X0.gzhead.hcrc&&X0.pending>H0)p.adler=_(p.adler,X0.pending_buf,X0.pending-H0,H0);if(C0===0)X0.status=J0}else X0.status=J0;if(X0.status===J0)if(X0.gzhead.hcrc){if(X0.pending+2>X0.pending_buf_size)S0(p);if(X0.pending+2<=X0.pending_buf_size)z0(X0,p.adler&255),z0(X0,p.adler>>8&255),p.adler=0,X0.status=K0}else X0.status=K0;if(X0.pending!==0){if(S0(p),p.avail_out===0)return X0.last_flush=-1,T}else if(p.avail_in===0&&c(A0)<=c(v0)&&A0!==M)return I0(p,x);if(X0.status===O0&&p.avail_in!==0)return I0(p,x);if(p.avail_in!==0||X0.lookahead!==0||A0!==Y&&X0.status!==O0){var e=X0.strategy===g?V0(X0,A0):X0.strategy===b?T0(X0,A0):p0[X0.level].func(X0,A0);if(e===r||e===Y0)X0.status=O0;if(e===d||e===r){if(p.avail_out===0)X0.last_flush=-1;return T}if(e===m){if(A0===W)G._tr_align(X0);else if(A0!==E){if(G._tr_stored_block(X0,0,0,!1),A0===R){if(s(X0.head),X0.lookahead===0)X0.strstart=0,X0.block_start=0,X0.insert=0}}if(S0(p),p.avail_out===0)return X0.last_flush=-1,T}}if(A0!==M)return T;if(X0.wrap<=0)return S;if(X0.wrap===2)z0(X0,p.adler&255),z0(X0,p.adler>>8&255),z0(X0,p.adler>>16&255),z0(X0,p.adler>>24&255),z0(X0,p.total_in&255),z0(X0,p.total_in>>8&255),z0(X0,p.total_in>>16&255),z0(X0,p.total_in>>24&255);else c0(X0,p.adler>>>16),c0(X0,p.adler&65535);if(S0(p),X0.wrap>0)X0.wrap=-X0.wrap;return X0.pending!==0?T:S}function R0(p){var A0;if(!p||!p.state)return N;if(A0=p.state.status,A0!==k&&A0!==j&&A0!==h&&A0!==a&&A0!==J0&&A0!==K0&&A0!==O0)return I0(p,N);return p.state=null,A0===K0?I0(p,B):T}function x0(p,A0){var v0=A0.length,X0,H0,C0,H$,d0,e,E0,b0;if(!p||!p.state)return N;if(X0=p.state,H$=X0.wrap,H$===2||H$===1&&X0.status!==k||X0.lookahead)return N;if(H$===1)p.adler=Z(p.adler,A0,v0,0);if(X0.wrap=0,v0>=X0.w_size){if(H$===0)s(X0.head),X0.strstart=0,X0.block_start=0,X0.insert=0;b0=new I.Buf8(X0.w_size),I.arraySet(b0,A0,v0-X0.w_size,X0.w_size,0),A0=b0,v0=X0.w_size}d0=p.avail_in,e=p.next_in,E0=p.input,p.avail_in=v0,p.next_in=0,p.input=A0,s0(X0);while(X0.lookahead>=q){H0=X0.strstart,C0=X0.lookahead-(q-1);do X0.ins_h=(X0.ins_h<<X0.hash_shift^X0.window[H0+q-1])&X0.hash_mask,X0.prev[H0&X0.w_mask]=X0.head[X0.ins_h],X0.head[X0.ins_h]=H0,H0++;while(--C0);X0.strstart=H0,X0.lookahead=q-1,s0(X0)}return X0.strstart+=X0.lookahead,X0.block_start=X0.strstart,X0.insert=X0.lookahead,X0.lookahead=0,X0.match_length=X0.prev_length=q-1,X0.match_available=0,p.next_in=e,p.input=E0,p.avail_in=d0,X0.wrap=H$,T}$.deflateInit=_0,$.deflateInit2=u,$.deflateReset=B0,$.deflateResetKeep=N0,$.deflateSetHeader=Y$,$.deflate=o,$.deflateEnd=R0,$.deflateSetDictionary=x0,$.deflateInfo="pako deflate (from Nodeca project)"}),ma=b6(($,I)=>{var G=30,Z=12;I.exports=function(_,J){var Y,W,R,M,E,T,S,N,B,x,w,y,g,b,l,i,$0,Q0,G0,D0,t,P0,Q,D,F;Y=_.state,W=_.next_in,D=_.input,R=W+(_.avail_in-5),M=_.next_out,F=_.output,E=M-(J-_.avail_out),T=M+(_.avail_out-257),S=Y.dmax,N=Y.wsize,B=Y.whave,x=Y.wnext,w=Y.window,y=Y.hold,g=Y.bits,b=Y.lencode,l=Y.distcode,i=(1<<Y.lenbits)-1,$0=(1<<Y.distbits)-1;$:do{if(g<15)y+=D[W++]<<g,g+=8,y+=D[W++]<<g,g+=8;Q0=b[y&i];U:for(;;){if(G0=Q0>>>24,y>>>=G0,g-=G0,G0=Q0>>>16&255,G0===0)F[M++]=Q0&65535;else if(G0&16){if(D0=Q0&65535,G0&=15,G0){if(g<G0)y+=D[W++]<<g,g+=8;D0+=y&(1<<G0)-1,y>>>=G0,g-=G0}if(g<15)y+=D[W++]<<g,g+=8,y+=D[W++]<<g,g+=8;Q0=l[y&$0];I:for(;;){if(G0=Q0>>>24,y>>>=G0,g-=G0,G0=Q0>>>16&255,G0&16){if(t=Q0&65535,G0&=15,g<G0){if(y+=D[W++]<<g,g+=8,g<G0)y+=D[W++]<<g,g+=8}if(t+=y&(1<<G0)-1,t>S){_.msg="invalid distance too far back",Y.mode=G;break $}if(y>>>=G0,g-=G0,G0=M-E,t>G0){if(G0=t-G0,G0>B){if(Y.sane){_.msg="invalid distance too far back",Y.mode=G;break $}}if(P0=0,Q=w,x===0){if(P0+=N-G0,G0<D0){D0-=G0;do F[M++]=w[P0++];while(--G0);P0=M-t,Q=F}}else if(x<G0){if(P0+=N+x-G0,G0-=x,G0<D0){D0-=G0;do F[M++]=w[P0++];while(--G0);if(P0=0,x<D0){G0=x,D0-=G0;do F[M++]=w[P0++];while(--G0);P0=M-t,Q=F}}}else if(P0+=x-G0,G0<D0){D0-=G0;do F[M++]=w[P0++];while(--G0);P0=M-t,Q=F}while(D0>2)F[M++]=Q[P0++],F[M++]=Q[P0++],F[M++]=Q[P0++],D0-=3;if(D0){if(F[M++]=Q[P0++],D0>1)F[M++]=Q[P0++]}}else{P0=M-t;do F[M++]=F[P0++],F[M++]=F[P0++],F[M++]=F[P0++],D0-=3;while(D0>2);if(D0){if(F[M++]=F[P0++],D0>1)F[M++]=F[P0++]}}}else if((G0&64)===0){Q0=l[(Q0&65535)+(y&(1<<G0)-1)];continue I}else{_.msg="invalid distance code",Y.mode=G;break $}break}}else if((G0&64)===0){Q0=b[(Q0&65535)+(y&(1<<G0)-1)];continue U}else if(G0&32){Y.mode=Z;break $}else{_.msg="invalid literal/length code",Y.mode=G;break $}break}}while(W<R&&M<T);D0=g>>3,W-=D0,g-=D0<<3,y&=(1<<g)-1,_.next_in=W,_.next_out=M,_.avail_in=W<R?5+(R-W):5-(W-R),_.avail_out=M<T?257+(T-M):257-(M-T),Y.hold=y,Y.bits=g;return}}),da=b6(($,I)=>{var G=s5(),Z=15,_=852,J=592,Y=0,W=1,R=2,M=[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],E=[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],T=[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],S=[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];I.exports=function(N,B,x,w,y,g,b,l){var i=l.bits,$0=0,Q0=0,G0=0,D0=0,t=0,P0=0,Q=0,D=0,F=0,L=0,H,v,q,P,O,A=null,k=0,j,h=new G.Buf16(Z+1),a=new G.Buf16(Z+1),J0=null,K0=0,O0,d,m;for($0=0;$0<=Z;$0++)h[$0]=0;for(Q0=0;Q0<w;Q0++)h[B[x+Q0]]++;t=i;for(D0=Z;D0>=1;D0--)if(h[D0]!==0)break;if(t>D0)t=D0;if(D0===0)return y[g++]=20971520,y[g++]=20971520,l.bits=1,0;for(G0=1;G0<D0;G0++)if(h[G0]!==0)break;if(t<G0)t=G0;D=1;for($0=1;$0<=Z;$0++)if(D<<=1,D-=h[$0],D<0)return-1;if(D>0&&(N===Y||D0!==1))return-1;a[1]=0;for($0=1;$0<Z;$0++)a[$0+1]=a[$0]+h[$0];for(Q0=0;Q0<w;Q0++)if(B[x+Q0]!==0)b[a[B[x+Q0]]++]=Q0;if(N===Y)A=J0=b,j=19;else if(N===W)A=M,k-=257,J0=E,K0-=257,j=256;else A=T,J0=S,j=-1;if(L=0,Q0=0,$0=G0,O=g,P0=t,Q=0,q=-1,F=1<<t,P=F-1,N===W&&F>_||N===R&&F>J)return 1;for(;;){if(O0=$0-Q,b[Q0]<j)d=0,m=b[Q0];else if(b[Q0]>j)d=J0[K0+b[Q0]],m=A[k+b[Q0]];else d=96,m=0;H=1<<$0-Q,v=1<<P0,G0=v;do v-=H,y[O+(L>>Q)+v]=O0<<24|d<<16|m|0;while(v!==0);H=1<<$0-1;while(L&H)H>>=1;if(H!==0)L&=H-1,L+=H;else L=0;if(Q0++,--h[$0]===0){if($0===D0)break;$0=B[x+b[Q0]]}if($0>t&&(L&P)!==q){if(Q===0)Q=t;O+=G0,P0=$0-Q,D=1<<P0;while(P0+Q<D0){if(D-=h[P0+Q],D<=0)break;P0++,D<<=1}if(F+=1<<P0,N===W&&F>_||N===R&&F>J)return 1;q=L&P,y[q]=t<<24|P0<<16|O-g|0}}if(L!==0)y[O+L]=$0-Q<<24|4194304|0;return l.bits=t,0}}),ia=b6(($)=>{var I=s5(),G=eg(),Z=$w(),_=ma(),J=da(),Y=0,W=1,R=2,M=4,E=5,T=6,S=0,N=1,B=2,x=-2,w=-3,y=-4,g=-5,b=8,l=1,i=2,$0=3,Q0=4,G0=5,D0=6,t=7,P0=8,Q=9,D=10,F=11,L=12,H=13,v=14,q=15,P=16,O=17,A=18,k=19,j=20,h=21,a=22,J0=23,K0=24,O0=25,d=26,m=27,r=28,Y0=29,W0=30,I0=31,c=32,s=852,S0=592,M0=15,z0=M0;function c0(u){return(u>>>24&255)+(u>>>8&65280)+((u&65280)<<8)+((u&255)<<24)}function F0(){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 I.Buf16(320),this.work=new I.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function q0(u){var _0;if(!u||!u.state)return x;if(_0=u.state,u.total_in=u.total_out=_0.total=0,u.msg="",_0.wrap)u.adler=_0.wrap&1;return _0.mode=l,_0.last=0,_0.havedict=0,_0.dmax=32768,_0.head=null,_0.hold=0,_0.bits=0,_0.lencode=_0.lendyn=new I.Buf32(s),_0.distcode=_0.distdyn=new I.Buf32(S0),_0.sane=1,_0.back=-1,S}function s0(u){var _0;if(!u||!u.state)return x;return _0=u.state,_0.wsize=0,_0.whave=0,_0.wnext=0,q0(u)}function k0(u,_0){var o,R0;if(!u||!u.state)return x;if(R0=u.state,_0<0)o=0,_0=-_0;else if(o=(_0>>4)+1,_0<48)_0&=15;if(_0&&(_0<8||_0>15))return x;if(R0.window!==null&&R0.wbits!==_0)R0.window=null;return R0.wrap=o,R0.wbits=_0,s0(u)}function n0(u,_0){var o,R0;if(!u)return x;if(R0=new F0,u.state=R0,R0.window=null,o=k0(u,_0),o!==S)u.state=null;return o}function M$(u){return n0(u,z0)}var T0=!0,V0,X$;function p0(u){if(T0){var _0;V0=new I.Buf32(512),X$=new I.Buf32(32),_0=0;while(_0<144)u.lens[_0++]=8;while(_0<256)u.lens[_0++]=9;while(_0<280)u.lens[_0++]=7;while(_0<288)u.lens[_0++]=8;J(W,u.lens,0,288,V0,0,u.work,{bits:9}),_0=0;while(_0<32)u.lens[_0++]=5;J(R,u.lens,0,32,X$,0,u.work,{bits:5}),T0=!1}u.lencode=V0,u.lenbits=9,u.distcode=X$,u.distbits=5}function l0(u,_0,o,R0){var x0,p=u.state;if(p.window===null)p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new I.Buf8(p.wsize);if(R0>=p.wsize)I.arraySet(p.window,_0,o-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize;else{if(x0=p.wsize-p.wnext,x0>R0)x0=R0;if(I.arraySet(p.window,_0,o-R0,x0,p.wnext),R0-=x0,R0)I.arraySet(p.window,_0,o-R0,R0,0),p.wnext=R0,p.whave=p.wsize;else{if(p.wnext+=x0,p.wnext===p.wsize)p.wnext=0;if(p.whave<p.wsize)p.whave+=x0}}return 0}function L0(u,_0){var o,R0,x0,p,A0,v0,X0,H0,C0,H$,d0,e,E0,b0,f0=0,z$,a0,U$,c$,D$,L$,B$,Z$,I$=new I.Buf8(4),I1,C$,g$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!u||!u.state||!u.output||!u.input&&u.avail_in!==0)return x;if(o=u.state,o.mode===L)o.mode=H;A0=u.next_out,x0=u.output,X0=u.avail_out,p=u.next_in,R0=u.input,v0=u.avail_in,H0=o.hold,C0=o.bits,H$=v0,d0=X0,Z$=S;$:for(;;)switch(o.mode){case l:if(o.wrap===0){o.mode=H;break}while(C0<16){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(o.wrap&2&&H0===35615){o.check=0,I$[0]=H0&255,I$[1]=H0>>>8&255,o.check=Z(o.check,I$,2,0),H0=0,C0=0,o.mode=i;break}if(o.flags=0,o.head)o.head.done=!1;if(!(o.wrap&1)||(((H0&255)<<8)+(H0>>8))%31){u.msg="incorrect header check",o.mode=W0;break}if((H0&15)!==b){u.msg="unknown compression method",o.mode=W0;break}if(H0>>>=4,C0-=4,B$=(H0&15)+8,o.wbits===0)o.wbits=B$;else if(B$>o.wbits){u.msg="invalid window size",o.mode=W0;break}o.dmax=1<<B$,u.adler=o.check=1,o.mode=H0&512?D:L,H0=0,C0=0;break;case i:while(C0<16){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(o.flags=H0,(o.flags&255)!==b){u.msg="unknown compression method",o.mode=W0;break}if(o.flags&57344){u.msg="unknown header flags set",o.mode=W0;break}if(o.head)o.head.text=H0>>8&1;if(o.flags&512)I$[0]=H0&255,I$[1]=H0>>>8&255,o.check=Z(o.check,I$,2,0);H0=0,C0=0,o.mode=$0;case $0:while(C0<32){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(o.head)o.head.time=H0;if(o.flags&512)I$[0]=H0&255,I$[1]=H0>>>8&255,I$[2]=H0>>>16&255,I$[3]=H0>>>24&255,o.check=Z(o.check,I$,4,0);H0=0,C0=0,o.mode=Q0;case Q0:while(C0<16){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(o.head)o.head.xflags=H0&255,o.head.os=H0>>8;if(o.flags&512)I$[0]=H0&255,I$[1]=H0>>>8&255,o.check=Z(o.check,I$,2,0);H0=0,C0=0,o.mode=G0;case G0:if(o.flags&1024){while(C0<16){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(o.length=H0,o.head)o.head.extra_len=H0;if(o.flags&512)I$[0]=H0&255,I$[1]=H0>>>8&255,o.check=Z(o.check,I$,2,0);H0=0,C0=0}else if(o.head)o.head.extra=null;o.mode=D0;case D0:if(o.flags&1024){if(e=o.length,e>v0)e=v0;if(e){if(o.head){if(B$=o.head.extra_len-o.length,!o.head.extra)o.head.extra=Array(o.head.extra_len);I.arraySet(o.head.extra,R0,p,e,B$)}if(o.flags&512)o.check=Z(o.check,R0,e,p);v0-=e,p+=e,o.length-=e}if(o.length)break $}o.length=0,o.mode=t;case t:if(o.flags&2048){if(v0===0)break $;e=0;do if(B$=R0[p+e++],o.head&&B$&&o.length<65536)o.head.name+=String.fromCharCode(B$);while(B$&&e<v0);if(o.flags&512)o.check=Z(o.check,R0,e,p);if(v0-=e,p+=e,B$)break $}else if(o.head)o.head.name=null;o.length=0,o.mode=P0;case P0:if(o.flags&4096){if(v0===0)break $;e=0;do if(B$=R0[p+e++],o.head&&B$&&o.length<65536)o.head.comment+=String.fromCharCode(B$);while(B$&&e<v0);if(o.flags&512)o.check=Z(o.check,R0,e,p);if(v0-=e,p+=e,B$)break $}else if(o.head)o.head.comment=null;o.mode=Q;case Q:if(o.flags&512){while(C0<16){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(H0!==(o.check&65535)){u.msg="header crc mismatch",o.mode=W0;break}H0=0,C0=0}if(o.head)o.head.hcrc=o.flags>>9&1,o.head.done=!0;u.adler=o.check=0,o.mode=L;break;case D:while(C0<32){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}u.adler=o.check=c0(H0),H0=0,C0=0,o.mode=F;case F:if(o.havedict===0)return u.next_out=A0,u.avail_out=X0,u.next_in=p,u.avail_in=v0,o.hold=H0,o.bits=C0,B;u.adler=o.check=1,o.mode=L;case L:if(_0===E||_0===T)break $;case H:if(o.last){H0>>>=C0&7,C0-=C0&7,o.mode=m;break}while(C0<3){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}switch(o.last=H0&1,H0>>>=1,C0-=1,H0&3){case 0:o.mode=v;break;case 1:if(p0(o),o.mode=j,_0===T){H0>>>=2,C0-=2;break $}break;case 2:o.mode=O;break;case 3:u.msg="invalid block type",o.mode=W0}H0>>>=2,C0-=2;break;case v:H0>>>=C0&7,C0-=C0&7;while(C0<32){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if((H0&65535)!==(H0>>>16^65535)){u.msg="invalid stored block lengths",o.mode=W0;break}if(o.length=H0&65535,H0=0,C0=0,o.mode=q,_0===T)break $;case q:o.mode=P;case P:if(e=o.length,e){if(e>v0)e=v0;if(e>X0)e=X0;if(e===0)break $;I.arraySet(x0,R0,p,e,A0),v0-=e,p+=e,X0-=e,A0+=e,o.length-=e;break}o.mode=L;break;case O:while(C0<14){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(o.nlen=(H0&31)+257,H0>>>=5,C0-=5,o.ndist=(H0&31)+1,H0>>>=5,C0-=5,o.ncode=(H0&15)+4,H0>>>=4,C0-=4,o.nlen>286||o.ndist>30){u.msg="too many length or distance symbols",o.mode=W0;break}o.have=0,o.mode=A;case A:while(o.have<o.ncode){while(C0<3){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}o.lens[g$[o.have++]]=H0&7,H0>>>=3,C0-=3}while(o.have<19)o.lens[g$[o.have++]]=0;if(o.lencode=o.lendyn,o.lenbits=7,I1={bits:o.lenbits},Z$=J(Y,o.lens,0,19,o.lencode,0,o.work,I1),o.lenbits=I1.bits,Z$){u.msg="invalid code lengths set",o.mode=W0;break}o.have=0,o.mode=k;case k:while(o.have<o.nlen+o.ndist){for(;;){if(f0=o.lencode[H0&(1<<o.lenbits)-1],z$=f0>>>24,a0=f0>>>16&255,U$=f0&65535,z$<=C0)break;if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(U$<16)H0>>>=z$,C0-=z$,o.lens[o.have++]=U$;else{if(U$===16){C$=z$+2;while(C0<C$){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(H0>>>=z$,C0-=z$,o.have===0){u.msg="invalid bit length repeat",o.mode=W0;break}B$=o.lens[o.have-1],e=3+(H0&3),H0>>>=2,C0-=2}else if(U$===17){C$=z$+3;while(C0<C$){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}H0>>>=z$,C0-=z$,B$=0,e=3+(H0&7),H0>>>=3,C0-=3}else{C$=z$+7;while(C0<C$){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}H0>>>=z$,C0-=z$,B$=0,e=11+(H0&127),H0>>>=7,C0-=7}if(o.have+e>o.nlen+o.ndist){u.msg="invalid bit length repeat",o.mode=W0;break}while(e--)o.lens[o.have++]=B$}}if(o.mode===W0)break;if(o.lens[256]===0){u.msg="invalid code -- missing end-of-block",o.mode=W0;break}if(o.lenbits=9,I1={bits:o.lenbits},Z$=J(W,o.lens,0,o.nlen,o.lencode,0,o.work,I1),o.lenbits=I1.bits,Z$){u.msg="invalid literal/lengths set",o.mode=W0;break}if(o.distbits=6,o.distcode=o.distdyn,I1={bits:o.distbits},Z$=J(R,o.lens,o.nlen,o.ndist,o.distcode,0,o.work,I1),o.distbits=I1.bits,Z$){u.msg="invalid distances set",o.mode=W0;break}if(o.mode=j,_0===T)break $;case j:o.mode=h;case h:if(v0>=6&&X0>=258){if(u.next_out=A0,u.avail_out=X0,u.next_in=p,u.avail_in=v0,o.hold=H0,o.bits=C0,_(u,d0),A0=u.next_out,x0=u.output,X0=u.avail_out,p=u.next_in,R0=u.input,v0=u.avail_in,H0=o.hold,C0=o.bits,o.mode===L)o.back=-1;break}o.back=0;for(;;){if(f0=o.lencode[H0&(1<<o.lenbits)-1],z$=f0>>>24,a0=f0>>>16&255,U$=f0&65535,z$<=C0)break;if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(a0&&(a0&240)===0){c$=z$,D$=a0,L$=U$;for(;;){if(f0=o.lencode[L$+((H0&(1<<c$+D$)-1)>>c$)],z$=f0>>>24,a0=f0>>>16&255,U$=f0&65535,c$+z$<=C0)break;if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}H0>>>=c$,C0-=c$,o.back+=c$}if(H0>>>=z$,C0-=z$,o.back+=z$,o.length=U$,a0===0){o.mode=d;break}if(a0&32){o.back=-1,o.mode=L;break}if(a0&64){u.msg="invalid literal/length code",o.mode=W0;break}o.extra=a0&15,o.mode=a;case a:if(o.extra){C$=o.extra;while(C0<C$){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}o.length+=H0&(1<<o.extra)-1,H0>>>=o.extra,C0-=o.extra,o.back+=o.extra}o.was=o.length,o.mode=J0;case J0:for(;;){if(f0=o.distcode[H0&(1<<o.distbits)-1],z$=f0>>>24,a0=f0>>>16&255,U$=f0&65535,z$<=C0)break;if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if((a0&240)===0){c$=z$,D$=a0,L$=U$;for(;;){if(f0=o.distcode[L$+((H0&(1<<c$+D$)-1)>>c$)],z$=f0>>>24,a0=f0>>>16&255,U$=f0&65535,c$+z$<=C0)break;if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}H0>>>=c$,C0-=c$,o.back+=c$}if(H0>>>=z$,C0-=z$,o.back+=z$,a0&64){u.msg="invalid distance code",o.mode=W0;break}o.offset=U$,o.extra=a0&15,o.mode=K0;case K0:if(o.extra){C$=o.extra;while(C0<C$){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}o.offset+=H0&(1<<o.extra)-1,H0>>>=o.extra,C0-=o.extra,o.back+=o.extra}if(o.offset>o.dmax){u.msg="invalid distance too far back",o.mode=W0;break}o.mode=O0;case O0:if(X0===0)break $;if(e=d0-X0,o.offset>e){if(e=o.offset-e,e>o.whave){if(o.sane){u.msg="invalid distance too far back",o.mode=W0;break}}if(e>o.wnext)e-=o.wnext,E0=o.wsize-e;else E0=o.wnext-e;if(e>o.length)e=o.length;b0=o.window}else b0=x0,E0=A0-o.offset,e=o.length;if(e>X0)e=X0;X0-=e,o.length-=e;do x0[A0++]=b0[E0++];while(--e);if(o.length===0)o.mode=h;break;case d:if(X0===0)break $;x0[A0++]=o.length,X0--,o.mode=h;break;case m:if(o.wrap){while(C0<32){if(v0===0)break $;v0--,H0|=R0[p++]<<C0,C0+=8}if(d0-=X0,u.total_out+=d0,o.total+=d0,d0)u.adler=o.check=o.flags?Z(o.check,x0,d0,A0-d0):G(o.check,x0,d0,A0-d0);if(d0=X0,(o.flags?H0:c0(H0))!==o.check){u.msg="incorrect data check",o.mode=W0;break}H0=0,C0=0}o.mode=r;case r:if(o.wrap&&o.flags){while(C0<32){if(v0===0)break $;v0--,H0+=R0[p++]<<C0,C0+=8}if(H0!==(o.total&4294967295)){u.msg="incorrect length check",o.mode=W0;break}H0=0,C0=0}o.mode=Y0;case Y0:Z$=N;break $;case W0:Z$=w;break $;case I0:return y;case c:default:return x}if(u.next_out=A0,u.avail_out=X0,u.next_in=p,u.avail_in=v0,o.hold=H0,o.bits=C0,o.wsize||d0!==u.avail_out&&o.mode<W0&&(o.mode<m||_0!==M)){if(l0(u,u.output,u.next_out,d0-u.avail_out))return o.mode=I0,y}if(H$-=u.avail_in,d0-=u.avail_out,u.total_in+=H$,u.total_out+=d0,o.total+=d0,o.wrap&&d0)u.adler=o.check=o.flags?Z(o.check,x0,d0,u.next_out-d0):G(o.check,x0,d0,u.next_out-d0);if(u.data_type=o.bits+(o.last?64:0)+(o.mode===L?128:0)+(o.mode===j||o.mode===q?256:0),(H$===0&&d0===0||_0===M)&&Z$===S)Z$=g;return Z$}function N0(u){if(!u||!u.state)return x;var _0=u.state;if(_0.window)_0.window=null;return u.state=null,S}function B0(u,_0){var o;if(!u||!u.state)return x;if(o=u.state,(o.wrap&2)===0)return x;return o.head=_0,_0.done=!1,S}function Y$(u,_0){var o=_0.length,R0,x0,p;if(!u||!u.state)return x;if(R0=u.state,R0.wrap!==0&&R0.mode!==F)return x;if(R0.mode===F){if(x0=1,x0=G(x0,_0,o,0),x0!==R0.check)return w}if(p=l0(u,_0,o,o),p)return R0.mode=I0,y;return R0.havedict=1,S}$.inflateReset=s0,$.inflateReset2=k0,$.inflateResetKeep=q0,$.inflateInit=M$,$.inflateInit2=n0,$.inflate=L0,$.inflateEnd=N0,$.inflateGetHeader=B0,$.inflateSetDictionary=Y$,$.inflateInfo="pako inflate (from Nodeca project)"}),oa=b6(($,I)=>{I.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}}),ta=b6(($)=>{var I=(bE(),V$(yE)),G=na(),Z=la(),_=ia(),J=oa();for(Y in J)$[Y]=J[Y];var Y;$.NONE=0,$.DEFLATE=1,$.INFLATE=2,$.GZIP=3,$.GUNZIP=4,$.DEFLATERAW=5,$.INFLATERAW=6,$.UNZIP=7;var W=31,R=139;function M(E){if(typeof E!=="number"||E<$.DEFLATE||E>$.UNZIP)throw TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=E,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}M.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}if(this.pending_close=!1,I(this.init_done,"close before init"),I(this.mode<=$.UNZIP),this.mode===$.DEFLATE||this.mode===$.GZIP||this.mode===$.DEFLATERAW)Z.deflateEnd(this.strm);else if(this.mode===$.INFLATE||this.mode===$.GUNZIP||this.mode===$.INFLATERAW||this.mode===$.UNZIP)_.inflateEnd(this.strm);this.mode=$.NONE,this.dictionary=null},M.prototype.write=function(E,T,S,N,B,x,w){return this._write(!0,E,T,S,N,B,x,w)},M.prototype.writeSync=function(E,T,S,N,B,x,w){return this._write(!1,E,T,S,N,B,x,w)},M.prototype._write=function(E,T,S,N,B,x,w,y){if(I.equal(arguments.length,8),I(this.init_done,"write before init"),I(this.mode!==$.NONE,"already finalized"),I.equal(!1,this.write_in_progress,"write already in progress"),I.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,I.equal(!1,T===void 0,"must provide flush value"),this.write_in_progress=!0,T!==$.Z_NO_FLUSH&&T!==$.Z_PARTIAL_FLUSH&&T!==$.Z_SYNC_FLUSH&&T!==$.Z_FULL_FLUSH&&T!==$.Z_FINISH&&T!==$.Z_BLOCK)throw Error("Invalid flush value");if(S==null)S=Buffer.alloc(0),B=0,N=0;if(this.strm.avail_in=B,this.strm.input=S,this.strm.next_in=N,this.strm.avail_out=y,this.strm.output=x,this.strm.next_out=w,this.flush=T,!E){if(this._process(),this._checkError())return this._afterSync();return}var g=this;return process.nextTick(function(){g._process(),g._after()}),this},M.prototype._afterSync=function(){var E=this.strm.avail_out,T=this.strm.avail_in;return this.write_in_progress=!1,[T,E]},M.prototype._process=function(){var E=null;switch(this.mode){case $.DEFLATE:case $.GZIP:case $.DEFLATERAW:this.err=Z.deflate(this.strm,this.flush);break;case $.UNZIP:if(this.strm.avail_in>0)E=this.strm.next_in;switch(this.gzip_id_bytes_read){case 0:if(E===null)break;if(this.strm.input[E]===W){if(this.gzip_id_bytes_read=1,E++,this.strm.avail_in===1)break}else{this.mode=$.INFLATE;break}case 1:if(E===null)break;if(this.strm.input[E]===R)this.gzip_id_bytes_read=2,this.mode=$.GUNZIP;else this.mode=$.INFLATE;break;default:throw Error("invalid number of gzip magic number bytes read")}case $.INFLATE:case $.GUNZIP:case $.INFLATERAW:if(this.err=_.inflate(this.strm,this.flush),this.err===$.Z_NEED_DICT&&this.dictionary){if(this.err=_.inflateSetDictionary(this.strm,this.dictionary),this.err===$.Z_OK)this.err=_.inflate(this.strm,this.flush);else if(this.err===$.Z_DATA_ERROR)this.err=$.Z_NEED_DICT}while(this.strm.avail_in>0&&this.mode===$.GUNZIP&&this.err===$.Z_STREAM_END&&this.strm.next_in[0]!==0)this.reset(),this.err=_.inflate(this.strm,this.flush);break;default:throw Error("Unknown mode "+this.mode)}},M.prototype._checkError=function(){switch(this.err){case $.Z_OK:case $.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===$.Z_FINISH)return this._error("unexpected end of file"),!1;break;case $.Z_STREAM_END:break;case $.Z_NEED_DICT:if(this.dictionary==null)this._error("Missing dictionary");else this._error("Bad dictionary");return!1;default:return this._error("Zlib error"),!1}return!0},M.prototype._after=function(){if(!this._checkError())return;var E=this.strm.avail_out,T=this.strm.avail_in;if(this.write_in_progress=!1,this.callback(T,E),this.pending_close)this.close()},M.prototype._error=function(E){if(this.strm.msg)E=this.strm.msg;if(this.onerror(E,this.err),this.write_in_progress=!1,this.pending_close)this.close()},M.prototype.init=function(E,T,S,N,B){I(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),I(E>=8&&E<=15,"invalid windowBits"),I(T>=-1&&T<=9,"invalid compression level"),I(S>=1&&S<=9,"invalid memlevel"),I(N===$.Z_FILTERED||N===$.Z_HUFFMAN_ONLY||N===$.Z_RLE||N===$.Z_FIXED||N===$.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(T,E,S,N,B),this._setDictionary()},M.prototype.params=function(){throw Error("deflateParams Not supported")},M.prototype.reset=function(){this._reset(),this._setDictionary()},M.prototype._init=function(E,T,S,N,B){if(this.level=E,this.windowBits=T,this.memLevel=S,this.strategy=N,this.flush=$.Z_NO_FLUSH,this.err=$.Z_OK,this.mode===$.GZIP||this.mode===$.GUNZIP)this.windowBits+=16;if(this.mode===$.UNZIP)this.windowBits+=32;if(this.mode===$.DEFLATERAW||this.mode===$.INFLATERAW)this.windowBits=-1*this.windowBits;switch(this.strm=new G,this.mode){case $.DEFLATE:case $.GZIP:case $.DEFLATERAW:this.err=Z.deflateInit2(this.strm,this.level,$.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case $.INFLATE:case $.GUNZIP:case $.INFLATERAW:case $.UNZIP:this.err=_.inflateInit2(this.strm,this.windowBits);break;default:throw Error("Unknown mode "+this.mode)}if(this.err!==$.Z_OK)this._error("Init error");this.dictionary=B,this.write_in_progress=!1,this.init_done=!0},M.prototype._setDictionary=function(){if(this.dictionary==null)return;switch(this.err=$.Z_OK,this.mode){case $.DEFLATE:case $.DEFLATERAW:this.err=Z.deflateSetDictionary(this.strm,this.dictionary);break;default:break}if(this.err!==$.Z_OK)this._error("Failed to set dictionary")},M.prototype._reset=function(){switch(this.err=$.Z_OK,this.mode){case $.DEFLATE:case $.DEFLATERAW:case $.GZIP:this.err=Z.deflateReset(this.strm);break;case $.INFLATE:case $.INFLATERAW:case $.GUNZIP:this.err=_.inflateReset(this.strm);break;default:break}if(this.err!==$.Z_OK)this._error("Failed to reset stream")},$.Zlib=M}),Uw=b6(($)=>{var I=(u1(),V$(h1)).Buffer,G=w4().Transform,Z=ta(),_=(C2(),V$(v2)),J=(bE(),V$(yE)).ok,Y=(u1(),V$(h1)).kMaxLength,W="Cannot create final Buffer. It would be larger than 0x"+Y.toString(16)+" bytes";Z.Z_MIN_WINDOWBITS=8,Z.Z_MAX_WINDOWBITS=15,Z.Z_DEFAULT_WINDOWBITS=15,Z.Z_MIN_CHUNK=64,Z.Z_MAX_CHUNK=1/0,Z.Z_DEFAULT_CHUNK=16384,Z.Z_MIN_MEMLEVEL=1,Z.Z_MAX_MEMLEVEL=9,Z.Z_DEFAULT_MEMLEVEL=8,Z.Z_MIN_LEVEL=-1,Z.Z_MAX_LEVEL=9,Z.Z_DEFAULT_LEVEL=Z.Z_DEFAULT_COMPRESSION;var R=Object.keys(Z);for(E=0;E<R.length;E++)if(M=R[E],M.match(/^Z/))Object.defineProperty($,M,{enumerable:!0,value:Z[M],writable:!1});var M,E,T={Z_OK:Z.Z_OK,Z_STREAM_END:Z.Z_STREAM_END,Z_NEED_DICT:Z.Z_NEED_DICT,Z_ERRNO:Z.Z_ERRNO,Z_STREAM_ERROR:Z.Z_STREAM_ERROR,Z_DATA_ERROR:Z.Z_DATA_ERROR,Z_MEM_ERROR:Z.Z_MEM_ERROR,Z_BUF_ERROR:Z.Z_BUF_ERROR,Z_VERSION_ERROR:Z.Z_VERSION_ERROR},S=Object.keys(T);for(B=0;B<S.length;B++)N=S[B],T[T[N]]=N;var N,B;Object.defineProperty($,"codes",{enumerable:!0,value:Object.freeze(T),writable:!1}),$.Deflate=y,$.Inflate=g,$.Gzip=b,$.Gunzip=l,$.DeflateRaw=i,$.InflateRaw=$0,$.Unzip=Q0,$.createDeflate=function(Q){return new y(Q)},$.createInflate=function(Q){return new g(Q)},$.createDeflateRaw=function(Q){return new i(Q)},$.createInflateRaw=function(Q){return new $0(Q)},$.createGzip=function(Q){return new b(Q)},$.createGunzip=function(Q){return new l(Q)},$.createUnzip=function(Q){return new Q0(Q)},$.deflate=function(Q,D,F){if(typeof D==="function")F=D,D={};return x(new y(D),Q,F)},$.deflateSync=function(Q,D){return w(new y(D),Q)},$.gzip=function(Q,D,F){if(typeof D==="function")F=D,D={};return x(new b(D),Q,F)},$.gzipSync=function(Q,D){return w(new b(D),Q)},$.deflateRaw=function(Q,D,F){if(typeof D==="function")F=D,D={};return x(new i(D),Q,F)},$.deflateRawSync=function(Q,D){return w(new i(D),Q)},$.unzip=function(Q,D,F){if(typeof D==="function")F=D,D={};return x(new Q0(D),Q,F)},$.unzipSync=function(Q,D){return w(new Q0(D),Q)},$.inflate=function(Q,D,F){if(typeof D==="function")F=D,D={};return x(new g(D),Q,F)},$.inflateSync=function(Q,D){return w(new g(D),Q)},$.gunzip=function(Q,D,F){if(typeof D==="function")F=D,D={};return x(new l(D),Q,F)},$.gunzipSync=function(Q,D){return w(new l(D),Q)},$.inflateRaw=function(Q,D,F){if(typeof D==="function")F=D,D={};return x(new $0(D),Q,F)},$.inflateRawSync=function(Q,D){return w(new $0(D),Q)};function x(Q,D,F){var L=[],H=0;Q.on("error",q),Q.on("end",P),Q.end(D),v();function v(){var O;while((O=Q.read())!==null)L.push(O),H+=O.length;Q.once("readable",v)}function q(O){Q.removeListener("end",P),Q.removeListener("readable",v),F(O)}function P(){var O,A=null;if(H>=Y)A=RangeError(W);else O=I.concat(L,H);L=[],Q.close(),F(A,O)}}function w(Q,D){if(typeof D==="string")D=I.from(D);if(!I.isBuffer(D))throw TypeError("Not a string or buffer");var F=Q._finishFlushFlag;return Q._processChunk(D,F)}function y(Q){if(!(this instanceof y))return new y(Q);D0.call(this,Q,Z.DEFLATE)}function g(Q){if(!(this instanceof g))return new g(Q);D0.call(this,Q,Z.INFLATE)}function b(Q){if(!(this instanceof b))return new b(Q);D0.call(this,Q,Z.GZIP)}function l(Q){if(!(this instanceof l))return new l(Q);D0.call(this,Q,Z.GUNZIP)}function i(Q){if(!(this instanceof i))return new i(Q);D0.call(this,Q,Z.DEFLATERAW)}function $0(Q){if(!(this instanceof $0))return new $0(Q);D0.call(this,Q,Z.INFLATERAW)}function Q0(Q){if(!(this instanceof Q0))return new Q0(Q);D0.call(this,Q,Z.UNZIP)}function G0(Q){return Q===Z.Z_NO_FLUSH||Q===Z.Z_PARTIAL_FLUSH||Q===Z.Z_SYNC_FLUSH||Q===Z.Z_FULL_FLUSH||Q===Z.Z_FINISH||Q===Z.Z_BLOCK}function D0(Q,D){var F=this;if(this._opts=Q=Q||{},this._chunkSize=Q.chunkSize||$.Z_DEFAULT_CHUNK,G.call(this,Q),Q.flush&&!G0(Q.flush))throw Error("Invalid flush flag: "+Q.flush);if(Q.finishFlush&&!G0(Q.finishFlush))throw Error("Invalid flush flag: "+Q.finishFlush);if(this._flushFlag=Q.flush||Z.Z_NO_FLUSH,this._finishFlushFlag=typeof Q.finishFlush<"u"?Q.finishFlush:Z.Z_FINISH,Q.chunkSize){if(Q.chunkSize<$.Z_MIN_CHUNK||Q.chunkSize>$.Z_MAX_CHUNK)throw Error("Invalid chunk size: "+Q.chunkSize)}if(Q.windowBits){if(Q.windowBits<$.Z_MIN_WINDOWBITS||Q.windowBits>$.Z_MAX_WINDOWBITS)throw Error("Invalid windowBits: "+Q.windowBits)}if(Q.level){if(Q.level<$.Z_MIN_LEVEL||Q.level>$.Z_MAX_LEVEL)throw Error("Invalid compression level: "+Q.level)}if(Q.memLevel){if(Q.memLevel<$.Z_MIN_MEMLEVEL||Q.memLevel>$.Z_MAX_MEMLEVEL)throw Error("Invalid memLevel: "+Q.memLevel)}if(Q.strategy){if(Q.strategy!=$.Z_FILTERED&&Q.strategy!=$.Z_HUFFMAN_ONLY&&Q.strategy!=$.Z_RLE&&Q.strategy!=$.Z_FIXED&&Q.strategy!=$.Z_DEFAULT_STRATEGY)throw Error("Invalid strategy: "+Q.strategy)}if(Q.dictionary){if(!I.isBuffer(Q.dictionary))throw Error("Invalid dictionary: it should be a Buffer instance")}this._handle=new Z.Zlib(D);var L=this;this._hadError=!1,this._handle.onerror=function(q,P){t(L),L._hadError=!0;var O=Error(q);O.errno=P,O.code=$.codes[P],L.emit("error",O)};var H=$.Z_DEFAULT_COMPRESSION;if(typeof Q.level==="number")H=Q.level;var v=$.Z_DEFAULT_STRATEGY;if(typeof Q.strategy==="number")v=Q.strategy;this._handle.init(Q.windowBits||$.Z_DEFAULT_WINDOWBITS,H,Q.memLevel||$.Z_DEFAULT_MEMLEVEL,v,Q.dictionary),this._buffer=I.allocUnsafe(this._chunkSize),this._offset=0,this._level=H,this._strategy=v,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!F._handle},configurable:!0,enumerable:!0})}_.inherits(D0,G),D0.prototype.params=function(Q,D,F){if(Q<$.Z_MIN_LEVEL||Q>$.Z_MAX_LEVEL)throw RangeError("Invalid compression level: "+Q);if(D!=$.Z_FILTERED&&D!=$.Z_HUFFMAN_ONLY&&D!=$.Z_RLE&&D!=$.Z_FIXED&&D!=$.Z_DEFAULT_STRATEGY)throw TypeError("Invalid strategy: "+D);if(this._level!==Q||this._strategy!==D){var L=this;this.flush(Z.Z_SYNC_FLUSH,function(){if(J(L._handle,"zlib binding closed"),L._handle.params(Q,D),!L._hadError){if(L._level=Q,L._strategy=D,F)F()}})}else process.nextTick(F)},D0.prototype.reset=function(){return J(this._handle,"zlib binding closed"),this._handle.reset()},D0.prototype._flush=function(Q){this._transform(I.alloc(0),"",Q)},D0.prototype.flush=function(Q,D){var F=this,L=this._writableState;if(typeof Q==="function"||Q===void 0&&!D)D=Q,Q=Z.Z_FULL_FLUSH;if(L.ended){if(D)process.nextTick(D)}else if(L.ending){if(D)this.once("end",D)}else if(L.needDrain){if(D)this.once("drain",function(){return F.flush(Q,D)})}else this._flushFlag=Q,this.write(I.alloc(0),"",D)},D0.prototype.close=function(Q){t(this,Q),process.nextTick(P0,this)};function t(Q,D){if(D)process.nextTick(D);if(!Q._handle)return;Q._handle.close(),Q._handle=null}function P0(Q){Q.emit("close")}D0.prototype._transform=function(Q,D,F){var L,H=this._writableState,v=H.ending||H.ended,q=v&&(!Q||H.length===Q.length);if(Q!==null&&!I.isBuffer(Q))return F(Error("invalid input"));if(!this._handle)return F(Error("zlib binding closed"));if(q)L=this._finishFlushFlag;else if(L=this._flushFlag,Q.length>=H.length)this._flushFlag=this._opts.flush||Z.Z_NO_FLUSH;this._processChunk(Q,L,F)},D0.prototype._processChunk=function(Q,D,F){var L=Q&&Q.length,H=this._chunkSize-this._offset,v=0,q=this,P=typeof F==="function";if(!P){var O=[],A=0,k;this.on("error",function(K0){k=K0}),J(this._handle,"zlib binding closed");do var j=this._handle.writeSync(D,Q,v,L,this._buffer,this._offset,H);while(!this._hadError&&J0(j[0],j[1]));if(this._hadError)throw k;if(A>=Y)throw t(this),RangeError(W);var h=I.concat(O,A);return t(this),h}J(this._handle,"zlib binding closed");var a=this._handle.write(D,Q,v,L,this._buffer,this._offset,H);a.buffer=Q,a.callback=J0;function J0(K0,O0){if(this)this.buffer=null,this.callback=null;if(q._hadError)return;var d=H-O0;if(J(d>=0,"have should not go down"),d>0){var m=q._buffer.slice(q._offset,q._offset+d);if(q._offset+=d,P)q.push(m);else O.push(m),A+=m.length}if(O0===0||q._offset>=q._chunkSize)H=q._chunkSize,q._offset=0,q._buffer=I.allocUnsafe(q._chunkSize);if(O0===0){if(v+=L-K0,L=K0,!P)return!0;var r=q._handle.write(D,Q,v,L,q._buffer,q._offset,q._chunkSize);r.callback=J0,r.buffer=Q;return}if(!P)return!1;F()}},_.inherits(y,D0),_.inherits(g,D0),_.inherits(b,D0),_.inherits(l,D0),_.inherits(i,D0),_.inherits($0,D0),_.inherits(Q0,D0)}),Iw={};ua(Iw,{default:()=>_w.default});ha(Iw,sg(Uw(),1));_w=sg(Uw(),1),ra=_w.default});var zz=N6((_z0,Dw)=>{function Yw($,I,G){if(!$||typeof $!=="object"||Array.isArray($)||Object.keys($).some((Z)=>!I.includes(Z)))throw Error(`${G} has an invalid shape`);return $}function aa($){if(!Array.isArray($)||$.length>256)throw Error("World network egress must be an array of at most 256 exact HTTPS origins");let I=$.map((G)=>{if(typeof G!=="string"||G.length>2048)throw Error("World network egress origins must be strings");let Z;try{Z=new URL(G)}catch{throw Error(`Invalid World network origin: ${G}`)}if(Z.protocol!=="https:"||Z.origin!==G||Z.username||Z.password||!/^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$/.test(Z.hostname)||Z.hostname.split(".").some((_)=>!_||_.length>63||_.startsWith("-")||_.endsWith("-"))||/^[\d.]+$/.test(Z.hostname)||Z.hostname==="localhost"||Z.hostname.endsWith(".localhost"))throw Error(`World network requires an exact canonical HTTPS origin: ${G}`);return G});return Object.freeze([...new Set(I)].sort())}function Jw($){let I=Yw($,["egress"],"World network");return Object.freeze({egress:aa(I.egress)})}function Qw($,I){if(typeof $!=="string"||!$||$.length>256)throw Error("World network policy requires its World identity");return Object.freeze({version:1,world:$,egress:Jw(I).egress})}function zw($){let I=Yw($,["version","world","egress"],"World network policy");if(I.version!==1)throw Error("Unsupported World network policy version");return Qw(I.world,{egress:I.egress})}function Zw($){let I=$.VOLTER_WORLD_NETWORK_POLICY;if(I===void 0)return;if(typeof I!=="string"||I.length>65536)throw Error("Invalid published World network policy");let G=zw(JSON.parse(I));if(!$.VOLTER_WORLD||G.world!==$.VOLTER_WORLD)throw Error("World network policy does not belong to the attached World");return G}function Ow($,I){let G;try{G=new URL(String(I))}catch{return!1}return G.protocol==="https:"&&!G.username&&!G.password&&$.egress.includes(G.origin)}function Lw($){let I=String($||"").toLowerCase().replace(/^\[|\]$/g,"");if(!I)return!0;if(I==="localhost"||I.endsWith(".localhost")||I.endsWith(".test")||I==="0.0.0.0"||I==="::1")return!0;let G=/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/.exec(I);if(G){let Z=Number(G[1]),_=Number(G[2]);return Z===127||Z===10||Z===172&&_>=16&&_<=31||Z===192&&_===168}return I.includes(":")&&(I.startsWith("fc")||I.startsWith("fd"))&&I!=="fd00:ec2::254"}function sa($,I=process.env){let G;try{G=new URL(String($))}catch{return`unparseable destination ${String($)}`}if(Lw(G.hostname))return null;if(I.VOLTER_TWIN_STRICT_EGRESS==="1"||I.VOLTER_TWIN_STRICT_EGRESS==="true")return`sealed World refuses untwinned host ${G.hostname}`;let Z;try{Z=Zw(I)}catch(_){return`World network policy unreadable (${_.message}); refusing ${G.hostname}`}if(Z!==void 0&&!Ow(Z,G))return`World network policy does not allow ${G.origin}`;return null}Dw.exports={isWorldInternalHost:Lw,worldEgressRefusal:sa,WORLD_NETWORK_POLICY_ENV:"VOLTER_WORLD_NETWORK_POLICY",normalizeWorldNetwork:Jw,createWorldNetworkPolicy:Qw,parseWorldNetworkPolicy:zw,worldNetworkPolicyFromEnv:Zw,allowsWorldNetworkEgress:Ow}});var Rw=N6((Xz0,Ew)=>{var Kw=new Map;function Ww($,I){if(!I||!Array.isArray(I.hosts)||!I.hosts.length)return null;return{name:$,url:typeof I.url==="string"?I.url:null,hosts:new Set(I.hosts.map((G)=>String(G).toLowerCase()))}}function ea($){if(!$)return{routes:[],twins:{}};let I=Date.now(),G=Kw.get($);if(G&&I-G.checkedAt<1000)return G;if(!G)G={checkedAt:0,mtimeMs:-1,routes:[],services:{},twins:{}},Kw.set($,G);G.checkedAt=I;let Z=(()=>({})),_=(DU(),V$(QB)),J=_.join(_.dirname($),"app-url.json");try{let Y=JSON.parse(Z.readFileSync($,"utf8"));G.services=Y.services||{},G.twins=i5().twinOrigins(Y.env||{})}catch{}try{let Y=Z.statSync(J).mtimeMs;if(Y!==G.mtimeMs){G.mtimeMs=Y;let R=JSON.parse(Z.readFileSync(J,"utf8")),M=R.apps&&typeof R.apps==="object"?Object.entries(R.apps):[];G.routes=[Ww("app",R),...M.map(([E,T])=>Ww(E,T))].filter(Boolean)}let W=G.services;for(let R of G.routes){let M=R.url??W[R.name]?.url;R.origin=typeof M==="string"?M.replace(/\/$/,""):null}}catch(Y){if(G.mtimeMs=-1,Y&&Y.code==="ENOENT")G.routes=[]}return G}function Hw($,I,G={}){let Z=String(I||"").toLowerCase().replace(/\.$/,""),_=ea($),J=_.routes.find((W)=>W.origin&&Fw(W.hosts,Z));if(!J)return null;let Y=(W)=>Object.hasOwn(_.twins,W)||Object.hasOwn(G,W);return i5().vendorsOfHost(Z).some(Y)?null:J}function Fw($,I){if($.has(I))return!0;for(let G=I.indexOf(".");G>0;G=I.indexOf(".",G+1))if($.has(`*${I.slice(G)}`))return!0;return!1}function Tw($){return{"x-forwarded-host":$.host,"x-forwarded-proto":$.protocol==="https:"?"https":"http"}}function nE($,I=process.env){let G;try{G=new URL(String($))}catch{return null}if(G.protocol!=="http:"&&G.protocol!=="https:")return null;return Hw(I.VOLTER_WORLD_INSTANCE,G.hostname,i5().twinOrigins(I))}var e5=void 0;function pE(){if(e5===void 0){let $=process.env.NODE_EXTRA_CA_CERTS;try{e5=$?(()=>{throw new Error("Cannot require module "+"fs");})().readFileSync($):null}catch{e5=null}}return e5}var $s=["accept-encoding","x-twins-key","x-volter-twin-original-host","proxy-connection","host","x-forwarded-host","x-forwarded-proto"];function Mw($,I,G,Z,_){let{isIP:J}=(CE(),V$(Sg)),Y=new URL($.origin),W={};for(let[R,M]of Object.entries(Z||{}))if(M!==void 0&&!$s.includes(R.toLowerCase()))W[R]=M;if(Object.assign(W,Tw(I),{host:I.host}),(I.username||I.password)&&!Object.keys(W).some((R)=>R.toLowerCase()==="authorization"))W.authorization=`Basic ${Buffer.from(`${decodeURIComponent(I.username)}:${decodeURIComponent(I.password)}`).toString("base64")}`;return{protocol:Y.protocol,hostname:Y.hostname,port:Y.port||(Y.protocol==="https:"?443:80),method:G,path:`${Y.pathname.replace(/\/$/,"")}${I.pathname}${I.search}`,headers:W,..._&&_.signal?{signal:_.signal}:{},..._&&_.timeout!==void 0?{timeout:_.timeout}:{},...Y.protocol==="https:"&&pE()?{ca:pE()}:{},...Y.protocol==="https:"?{servername:J(Y.hostname)?"":Y.hostname}:{}}}function Aw($,I,{method:G="POST",headers:Z={},body:_,timeoutMs:J=30000,signal:Y}={}){let W=new URL(String(I));if(Y&&Y.aborted)return Promise.reject(Y.reason);let R=Mw($,W,G,Z),M=(R.protocol==="https:"?(xg(),V$(wg)):(Xz(),V$(d5))).request;return new Promise((E,T)=>{let S=!1,N=()=>x(Y.reason),B=()=>{if(S=!0,clearTimeout(y),Y)Y.removeEventListener("abort",N)},x=(g)=>{if(!S)B(),w.destroy(),T(g)},w=M(R,(g)=>{g.on("error",x),g.on("aborted",()=>x(Error(`the application's answer to ${W.origin}${W.pathname} was cut off`)));let b=String(g.headers["content-encoding"]||"").toLowerCase(),l=(Gw(),V$(Xw)),i=b==="gzip"||b==="x-gzip"?l.createGunzip():b==="deflate"?l.createInflate():b==="br"?l.createBrotliDecompress():null,$0=i?g.pipe(i):g,Q0=[];$0.on("data",(G0)=>Q0.push(G0)),$0.on("error",x),$0.on("end",()=>{if(S)return;B();let G0={};for(let[D0,t]of Object.entries(g.headers))if(t!==void 0&&!(i&&(D0==="content-encoding"||D0==="content-length")))G0[D0.toLowerCase()]=Array.isArray(t)?t.join(", "):String(t);E({status:g.statusCode,headers:G0,body:Buffer.concat(Q0).toString("utf8")})})}),y=Number.isFinite(J)?setTimeout(()=>x(Error(`the application did not answer ${W.origin}${W.pathname} within ${J} ms`)),J):void 0;if(w.on("error",x),Y)Y.addEventListener("abort",N,{once:!0});if(_!=null&&G!=="GET"&&G!=="HEAD")w.write(_);w.end()})}var Us=[301,302,303,307,308],Is=[204,205,304],_s=["authorization","cookie","proxy-authorization"];function Xs($,I){if($==null)return null;if(typeof $==="string")return $;if($ instanceof URLSearchParams){if(!Object.keys(I).some((G)=>G.toLowerCase()==="content-type"))I["content-type"]="application/x-www-form-urlencoded;charset=UTF-8";return $.toString()}if($ instanceof ArrayBuffer)return Buffer.from($);if(ArrayBuffer.isView($))return Buffer.from($.buffer,$.byteOffset,$.byteLength);throw TypeError("appFetch sends a string, URLSearchParams or bytes body")}async function Gs($,I={}){if(!nE($)){let R=zz().worldEgressRefusal($);if(R!==null)throw TypeError(R);return fetch($,I)}let G=I.redirect||"follow",Z=I.signal||void 0,_=new URL(String($)),J=String(I.method||"GET").toUpperCase(),Y={};new Headers(I.headers||{}).forEach((R,M)=>{Y[M]=R});let W=Xs(I.body,Y);for(let R=0;;R++){let M=nE(_),E;if(M){let N=zz().worldEgressRefusal(M.origin);if(N!==null)throw TypeError(N);let B=await Aw(M,_,{method:J,headers:Y,body:W,signal:Z,timeoutMs:300000}),x=Is.includes(B.status)||J==="HEAD",w=B.status>=200&&B.status<=599;if(E=new Response(x?null:B.body,{status:w?B.status:200,headers:B.headers}),!w)Object.defineProperties(E,{status:{value:B.status},ok:{value:!1}});Object.defineProperty(E,"url",{value:_.toString()})}else{let N=zz().worldEgressRefusal(_);if(N!==null)throw TypeError(N);for(let B of Object.keys(Y))if(["x-twins-key","x-volter-twin-original-host"].includes(B.toLowerCase()))delete Y[B];E=await fetch(_,{method:J,headers:Y,...W!=null&&J!=="GET"&&J!=="HEAD"?{body:W}:{},redirect:"manual",signal:Z})}if(R>0)Object.defineProperty(E,"redirected",{value:!0});let T=E.headers.get("location");if(!Us.includes(E.status)||T===null||G==="manual")return E;if(G==="error")throw TypeError(`${_.origin}${_.pathname} redirected, and the request's redirect mode is error`);if(R>=20)throw TypeError("redirect count exceeded");if(E.body)await E.body.cancel();let S=new URL(T,_);if(S.protocol!=="http:"&&S.protocol!=="https:")throw TypeError(`redirect to ${S.protocol} is not followed`);if(E.status===303&&J!=="GET"&&J!=="HEAD"||(E.status===301||E.status===302)&&J==="POST"){J="GET",W=null;for(let N of Object.keys(Y))if(/^content-/i.test(N))delete Y[N]}if(S.origin!==_.origin){for(let N of Object.keys(Y))if(_s.includes(N.toLowerCase()))delete Y[N]}_=S}}Ew.exports={appRouteFor:Hw,appHostMatch:Fw,appForwardHeaders:Tw,appDestination:nE,appRequestOptions:Mw,deliverToApp:Aw,appFetch:Gs,sessionCa:pE}});var lE=N6((Js)=>{var GX=J6(yJ());(function(){function $(O){if(O==null)return null;if(typeof O==="function")return O.$$typeof===t?null:O.displayName||O.name||null;if(typeof O==="string")return O;switch(O){case x:return"Fragment";case y:return"Profiler";case w:return"StrictMode";case i:return"Suspense";case $0:return"SuspenseList";case D0:return"Activity"}if(typeof O==="object")switch(typeof O.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),O.$$typeof){case B:return"Portal";case b:return O.displayName||"Context";case g:return(O._context.displayName||"Context")+".Consumer";case l:var A=O.render;return O=O.displayName,O||(O=A.displayName||A.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case Q0:return A=O.displayName||null,A!==null?A:$(O.type)||"Memo";case G0:A=O._payload,O=O._init;try{return $(O(A))}catch(k){}}return null}function I(O){return""+O}function G(O){try{I(O);var A=!1}catch(h){A=!0}if(A){A=console;var k=A.error,j=typeof Symbol==="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return k.call(A,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",j),I(O)}}function Z(O){if(O===x)return"<>";if(typeof O==="object"&&O!==null&&O.$$typeof===G0)return"<...>";try{var A=$(O);return A?"<"+A+">":"<...>"}catch(k){return"<...>"}}function _(){var O=P0.A;return O===null?null:O.getOwner()}function J(){return Error("react-stack-top-frame")}function Y(O){if(Q.call(O,"key")){var A=Object.getOwnPropertyDescriptor(O,"key").get;if(A&&A.isReactWarning)return!1}return O.key!==void 0}function W(O,A){function k(){L||(L=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",A))}k.isReactWarning=!0,Object.defineProperty(O,"key",{get:k,configurable:!0})}function R(){var O=$(this.type);return H[O]||(H[O]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),O=this.props.ref,O!==void 0?O:null}function M(O,A,k,j,h,a){var J0=k.ref;return O={$$typeof:N,type:O,key:A,props:k,_owner:j},(J0!==void 0?J0:null)!==null?Object.defineProperty(O,"ref",{enumerable:!1,get:R}):Object.defineProperty(O,"ref",{enumerable:!1,value:null}),O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(O,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(O,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:h}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function E(O,A,k,j,h,a){var J0=A.children;if(J0!==void 0)if(j)if(D(J0)){for(j=0;j<J0.length;j++)T(J0[j]);Object.freeze&&Object.freeze(J0)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(J0);if(Q.call(A,"key")){J0=$(O);var K0=Object.keys(A).filter(function(d){return d!=="key"});j=0<K0.length?"{key: someKey, "+K0.join(": ..., ")+": ...}":"{key: someKey}",P[J0+j]||(K0=0<K0.length?"{"+K0.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
317
317
  let props = %s;
318
318
  <%s {...props} />
319
319
  React keys must be passed directly to JSX without using spread:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/twin-sentry",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "Local Sentry twin — a faithful, stateful local Sentry error-monitoring API your real `@sentry/node` SDK talks to unmodified. Ingest captureException events into grouped issues, browse the Web API + dashboard mirror, simulate, and fork. Built on @volter/world-core.",
5
5
  "keywords": [
6
6
  "twin",
@@ -57,10 +57,10 @@
57
57
  "react-dom": "^19.2.7"
58
58
  },
59
59
  "peerDependencies": {
60
- "@volter/world-core": "2.0.20"
60
+ "@volter/world-core": "2.0.21"
61
61
  },
62
62
  "devDependencies": {
63
- "@volter/world-core": "2.0.20",
63
+ "@volter/world-core": "2.0.21",
64
64
  "@volter/world-tooling": "0.1.0",
65
65
  "@sentry/node": "^10.64.0",
66
66
  "@types/bun": "^1.2.20",