"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=256,s=286,i=30,a=15,n=new Uint8Array([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]),r=new Uint8Array([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]),o=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h=new Array(576);t(h);const d=new Array(60);t(d);const _=new Array(512);t(_);const c=new Array(256);t(c);const u=new Array(29);t(u);const f=new Array(i);function m(t,e,s,i,a){this.static_tree=t,this.extra_bits=e,this.extra_base=s,this.elems=i,this.max_length=a,this.has_stree=t&&t.length}let w,g,p;function b(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(f);const y=t=>t<256?_[t]:_[256+(t>>>7)],v=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},k=(t,e,s)=>{t.bi_valid>16-s?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=s-16):(t.bi_buf|=e<{k(t,s[2*e],s[2*e+1])},z=(t,e)=>{let s=0;do{s|=1&t,t>>>=1,s<<=1}while(--e>0);return s>>>1},E=(t,e,s)=>{const i=new Array(16);let n,r,o=0;for(n=1;n<=a;n++)o=o+s[n-1]<<1,i[n]=o;for(r=0;r<=e;r++){let e=t[2*r+1];0!==e&&(t[2*r]=z(i[e]++,e))}},A=t=>{let e;for(e=0;e{t.bi_valid>8?v(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},U=(t,e,s,i)=>{const a=2*e,n=2*s;return t[a]{const i=t.heap[s];let a=s<<1;for(;a<=t.heap_len&&(a{let a,o,l,h,d=0;if(0!==t.sym_next)do{a=255&t.pending_buf[t.sym_buf+d++],a+=(255&t.pending_buf[t.sym_buf+d++])<<8,o=t.pending_buf[t.sym_buf+d++],0===a?x(t,o,s):(l=c[o],x(t,l+e+1,s),h=n[l],0!==h&&(o-=u[l],k(t,o,h)),a--,l=y(a),x(t,l,i),h=r[l],0!==h&&(a-=f[l],k(t,a,h)))}while(d{const s=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,r=e.stat_desc.elems;let o,l,h,d=-1;for(t.heap_len=0,t.heap_max=573,o=0;o>1;o>=1;o--)T(t,s,o);h=r;do{o=t.heap[1],t.heap[1]=t.heap[t.heap_len--],T(t,s,1),l=t.heap[1],t.heap[--t.heap_max]=o,t.heap[--t.heap_max]=l,s[2*h]=s[2*o]+s[2*l],t.depth[h]=(t.depth[o]>=t.depth[l]?t.depth[o]:t.depth[l])+1,s[2*o+1]=s[2*l+1]=h,t.heap[1]=h++,T(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const s=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,r=e.stat_desc.has_stree,o=e.stat_desc.extra_bits,l=e.stat_desc.extra_base,h=e.stat_desc.max_length;let d,_,c,u,f,m,w=0;for(u=0;u<=a;u++)t.bl_count[u]=0;for(s[2*t.heap[t.heap_max]+1]=0,d=t.heap_max+1;d<573;d++)_=t.heap[d],u=s[2*s[2*_+1]+1]+1,u>h&&(u=h,w++),s[2*_+1]=u,_>i||(t.bl_count[u]++,f=0,_>=l&&(f=o[_-l]),m=s[2*_],t.opt_len+=m*(u+f),r&&(t.static_len+=m*(n[2*_+1]+f)));if(0!==w){do{for(u=h-1;0===t.bl_count[u];)u--;t.bl_count[u]--,t.bl_count[u+1]+=2,t.bl_count[h]--,w-=2}while(w>0);for(u=h;0!==u;u--)for(_=t.bl_count[u];0!==_;)c=t.heap[--d],c>i||(s[2*c+1]!==u&&(t.opt_len+=(u-s[2*c+1])*s[2*c],s[2*c+1]=u),_--)}})(t,e),E(s,d,t.bl_count)},D=(t,e,s)=>{let i,a,n=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(s+1)+1]=65535,i=0;i<=s;i++)a=r,r=e[2*(i+1)+1],++o{let i,a,n=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=s;i++)if(a=r,r=e[2*(i+1)+1],!(++o{k(t,0+(i?1:0),3),R(t),v(t,s),v(t,~s),s&&t.pending_buf.set(t.window.subarray(e,e+s),t.pending),t.pending+=s};var F=(t,s,i,a)=>{let n,r,o=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let s,i=4093624447;for(s=0;s<=31;s++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*s])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(s=32;s{let e;for(D(t,t.dyn_ltree,t.l_desc.max_code),D(t,t.dyn_dtree,t.d_desc.max_code),Z(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),n=t.opt_len+3+7>>>3,r=t.static_len+3+7>>>3,r<=n&&(n=r)):n=r=i+5,i+4<=n&&-1!==s?N(t,s,i,a):4===t.strategy||r===n?(k(t,2+(a?1:0),3),S(t,h,d)):(k(t,4+(a?1:0),3),((t,e,s,i)=>{let a;for(k(t,e-257,5),k(t,s-1,5),k(t,i-4,4),a=0;a{I||((()=>{let t,e,l,b,y;const v=new Array(16);for(l=0,b=0;b<28;b++)for(u[b]=l,t=0;t<1<>=7;b(t.pending_buf[t.sym_buf+t.sym_next++]=s,t.pending_buf[t.sym_buf+t.sym_next++]=s>>8,t.pending_buf[t.sym_buf+t.sym_next++]=i,0===s?t.dyn_ltree[2*i]++:(t.matches++,s--,t.dyn_ltree[2*(c[i]+e+1)]++,t.dyn_dtree[2*y(s)]++),t.sym_next===t.sym_end),_tr_align:t=>{k(t,2,3),x(t,256,h),(t=>{16===t.bi_valid?(v(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var L=(t,e,s,i)=>{let a=65535&t,n=t>>>16&65535,r=0;for(;0!==s;){r=s>2e3?2e3:s,s-=r;do{a=a+e[i++]|0,n=n+a|0}while(--r);a%=65521,n%=65521}return a|n<<16};const B=new Uint32Array((()=>{let t,e=[];for(var s=0;s<256;s++){t=s;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[s]=t}return e})());var j=(t,e,s,i)=>{const a=B,n=i+s;t^=-1;for(let s=i;s>>8^a[255&(t^e[s])];return~t},M={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"},P={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_MEM_ERROR:-4,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};const{_tr_init:H,_tr_stored_block:K,_tr_flush_block:G,_tr_tally:Y,_tr_align:W}=C,{Z_NO_FLUSH:V,Z_PARTIAL_FLUSH:q,Z_FULL_FLUSH:X,Z_FINISH:$,Z_BLOCK:J,Z_OK:Q,Z_STREAM_END:tt,Z_STREAM_ERROR:et,Z_DATA_ERROR:st,Z_BUF_ERROR:it,Z_DEFAULT_COMPRESSION:at,Z_FILTERED:nt,Z_HUFFMAN_ONLY:rt,Z_RLE:ot,Z_FIXED:lt,Z_DEFAULT_STRATEGY:ht,Z_UNKNOWN:dt,Z_DEFLATED:_t}=P,ct=258,ut=262,ft=42,mt=113,wt=666,gt=(t,e)=>(t.msg=M[e],e),pt=t=>2*t-(t>4?9:0),bt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},yt=t=>{let e,s,i,a=t.w_size;e=t.hash_size,i=e;do{s=t.head[--i],t.head[i]=s>=a?s-a:0}while(--e);e=a,i=e;do{s=t.prev[--i],t.prev[i]=s>=a?s-a:0}while(--e)};let vt=(t,e,s)=>(e<{const e=t.state;let s=e.pending;s>t.avail_out&&(s=t.avail_out),0!==s&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+s),t.next_out),t.next_out+=s,e.pending_out+=s,t.total_out+=s,t.avail_out-=s,e.pending-=s,0===e.pending&&(e.pending_out=0))},xt=(t,e)=>{G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},zt=(t,e)=>{t.pending_buf[t.pending++]=e},Et=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},At=(t,e,s,i)=>{let a=t.avail_in;return a>i&&(a=i),0===a?0:(t.avail_in-=a,e.set(t.input.subarray(t.next_in,t.next_in+a),s),1===t.state.wrap?t.adler=L(t.adler,e,a,s):2===t.state.wrap&&(t.adler=j(t.adler,e,a,s)),t.next_in+=a,t.total_in+=a,a)},Rt=(t,e)=>{let s,i,a=t.max_chain_length,n=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-ut?t.strstart-(t.w_size-ut):0,h=t.window,d=t.w_mask,_=t.prev,c=t.strstart+ct;let u=h[n+r-1],f=h[n+r];t.prev_length>=t.good_match&&(a>>=2),o>t.lookahead&&(o=t.lookahead);do{if(s=e,h[s+r]===f&&h[s+r-1]===u&&h[s]===h[n]&&h[++s]===h[n+1]){n+=2,s++;do{}while(h[++n]===h[++s]&&h[++n]===h[++s]&&h[++n]===h[++s]&&h[++n]===h[++s]&&h[++n]===h[++s]&&h[++n]===h[++s]&&h[++n]===h[++s]&&h[++n]===h[++s]&&nr){if(t.match_start=e,r=i,i>=o)break;u=h[n+r-1],f=h[n+r]}}}while((e=_[e&d])>l&&0!=--a);return r<=t.lookahead?r:t.lookahead},Ut=t=>{const e=t.w_size;let s,i,a;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-ut)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),yt(t),i+=e),0===t.strm.avail_in)break;if(s=At(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=s,t.lookahead+t.insert>=3)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=vt(t,t.ins_h,t.window[a+1]);t.insert&&(t.ins_h=vt(t,t.ins_h,t.window[a+3-1]),t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead{let s,i,a,n=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(s=65535,a=t.bi_valid+42>>3,t.strm.avail_outi+t.strm.avail_in&&(s=i+t.strm.avail_in),s>a&&(s=a),s>8,t.pending_buf[t.pending-2]=~s,t.pending_buf[t.pending-1]=~s>>8,kt(t.strm),i&&(i>s&&(i=s),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,s-=i),s&&(At(t.strm,t.strm.output,t.strm.next_out,s),t.strm.next_out+=s,t.strm.avail_out-=s,t.strm.total_out+=s)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_watera&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,a+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),a>t.strm.avail_in&&(a=t.strm.avail_in),a&&(At(t.strm,t.window,t.strstart,a),t.strstart+=a,t.insert+=a>t.w_size-t.insert?t.w_size-t.insert:a),t.high_water>3,a=t.pending_buf_size-a>65535?65535:t.pending_buf_size-a,n=a>t.w_size?t.w_size:a,i=t.strstart-t.block_start,(i>=n||(i||e===$)&&e!==V&&0===t.strm.avail_in&&i<=a)&&(s=i>a?a:i,r=e===$&&0===t.strm.avail_in&&s===i?1:0,K(t,t.block_start,s,r),t.block_start+=s,kt(t.strm)),r?3:1)},St=(t,e)=>{let s,i;for(;;){if(t.lookahead=3&&(t.ins_h=vt(t,t.ins_h,t.window[t.strstart+3-1]),s=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==s&&t.strstart-s<=t.w_size-ut&&(t.match_length=Rt(t,s)),t.match_length>=3)if(i=Y(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=vt(t,t.ins_h,t.window[t.strstart+3-1]),s=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=vt(t,t.ins_h,t.window[t.strstart+1]);else i=Y(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===$?(xt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(xt(t,!1),0===t.strm.avail_out)?1:2},Zt=(t,e)=>{let s,i,a;for(;;){if(t.lookahead=3&&(t.ins_h=vt(t,t.ins_h,t.window[t.strstart+3-1]),s=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==s&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){a=t.strstart+t.lookahead-3,i=Y(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=a&&(t.ins_h=vt(t,t.ins_h,t.window[t.strstart+3-1]),s=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(xt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=Y(t,0,t.window[t.strstart-1]),i&&xt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=Y(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===$?(xt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(xt(t,!1),0===t.strm.avail_out)?1:2};function Dt(t,e,s,i,a){this.good_length=t,this.max_lazy=e,this.nice_length=s,this.max_chain=i,this.func=a}const Ot=[new Dt(0,0,0,0,Tt),new Dt(4,4,8,4,St),new Dt(4,5,16,8,St),new Dt(4,6,32,32,St),new Dt(4,4,16,16,Zt),new Dt(8,16,32,32,Zt),new Dt(8,16,128,128,Zt),new Dt(8,32,128,256,Zt),new Dt(32,128,258,1024,Zt),new Dt(32,258,258,4096,Zt)];function It(){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=_t,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 Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),bt(this.dyn_ltree),bt(this.dyn_dtree),bt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),bt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),bt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Nt=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==ft&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&e.status!==mt&&e.status!==wt?1:0},Ft=t=>{if(Nt(t))return gt(t,et);t.total_in=t.total_out=0,t.data_type=dt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?ft:mt,t.adler=2===e.wrap?0:1,e.last_flush=-2,H(e),Q},Ct=t=>{const e=Ft(t);var s;return e===Q&&((s=t.state).window_size=2*s.w_size,bt(s.head),s.max_lazy_match=Ot[s.level].max_lazy,s.good_match=Ot[s.level].good_length,s.nice_match=Ot[s.level].nice_length,s.max_chain_length=Ot[s.level].max_chain,s.strstart=0,s.block_start=0,s.lookahead=0,s.insert=0,s.match_length=s.prev_length=2,s.match_available=0,s.ins_h=0),e},Lt=(t,e,s,i,a,n)=>{if(!t)return et;let r=1;if(e===at&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),a<1||a>9||s!==_t||i<8||i>15||e<0||e>9||n<0||n>lt||8===i&&1!==r)return gt(t,et);8===i&&(i=9);const o=new It;return t.state=o,o.strm=t,o.status=ft,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<Lt(t,e,_t,15,8,ht),deflateInit2:Lt,deflateReset:Ct,deflateResetKeep:Ft,deflateSetHeader:(t,e)=>Nt(t)||2!==t.state.wrap?et:(t.state.gzhead=e,Q),deflate:(t,e)=>{if(Nt(t)||e>J||e<0)return t?gt(t,et):et;const s=t.state;if(!t.output||0!==t.avail_in&&!t.input||s.status===wt&&e!==$)return gt(t,0===t.avail_out?it:et);const i=s.last_flush;if(s.last_flush=e,0!==s.pending){if(kt(t),0===t.avail_out)return s.last_flush=-1,Q}else if(0===t.avail_in&&pt(e)<=pt(i)&&e!==$)return gt(t,it);if(s.status===wt&&0!==t.avail_in)return gt(t,it);if(s.status===ft&&0===s.wrap&&(s.status=mt),s.status===ft){let e=_t+(s.w_bits-8<<4)<<8,i=-1;if(i=s.strategy>=rt||s.level<2?0:s.level<6?1:6===s.level?2:3,e|=i<<6,0!==s.strstart&&(e|=32),e+=31-e%31,Et(s,e),0!==s.strstart&&(Et(s,t.adler>>>16),Et(s,65535&t.adler)),t.adler=1,s.status=mt,kt(t),0!==s.pending)return s.last_flush=-1,Q}if(57===s.status)if(t.adler=0,zt(s,31),zt(s,139),zt(s,8),s.gzhead)zt(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),zt(s,255&s.gzhead.time),zt(s,s.gzhead.time>>8&255),zt(s,s.gzhead.time>>16&255),zt(s,s.gzhead.time>>24&255),zt(s,9===s.level?2:s.strategy>=rt||s.level<2?4:0),zt(s,255&s.gzhead.os),s.gzhead.extra&&s.gzhead.extra.length&&(zt(s,255&s.gzhead.extra.length),zt(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(t.adler=j(t.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=69;else if(zt(s,0),zt(s,0),zt(s,0),zt(s,0),zt(s,0),zt(s,9===s.level?2:s.strategy>=rt||s.level<2?4:0),zt(s,3),s.status=mt,kt(t),0!==s.pending)return s.last_flush=-1,Q;if(69===s.status){if(s.gzhead.extra){let e=s.pending,i=(65535&s.gzhead.extra.length)-s.gzindex;for(;s.pending+i>s.pending_buf_size;){let a=s.pending_buf_size-s.pending;if(s.pending_buf.set(s.gzhead.extra.subarray(s.gzindex,s.gzindex+a),s.pending),s.pending=s.pending_buf_size,s.gzhead.hcrc&&s.pending>e&&(t.adler=j(t.adler,s.pending_buf,s.pending-e,e)),s.gzindex+=a,kt(t),0!==s.pending)return s.last_flush=-1,Q;e=0,i-=a}let a=new Uint8Array(s.gzhead.extra);s.pending_buf.set(a.subarray(s.gzindex,s.gzindex+i),s.pending),s.pending+=i,s.gzhead.hcrc&&s.pending>e&&(t.adler=j(t.adler,s.pending_buf,s.pending-e,e)),s.gzindex=0}s.status=73}if(73===s.status){if(s.gzhead.name){let e,i=s.pending;do{if(s.pending===s.pending_buf_size){if(s.gzhead.hcrc&&s.pending>i&&(t.adler=j(t.adler,s.pending_buf,s.pending-i,i)),kt(t),0!==s.pending)return s.last_flush=-1,Q;i=0}e=s.gzindexi&&(t.adler=j(t.adler,s.pending_buf,s.pending-i,i)),s.gzindex=0}s.status=91}if(91===s.status){if(s.gzhead.comment){let e,i=s.pending;do{if(s.pending===s.pending_buf_size){if(s.gzhead.hcrc&&s.pending>i&&(t.adler=j(t.adler,s.pending_buf,s.pending-i,i)),kt(t),0!==s.pending)return s.last_flush=-1,Q;i=0}e=s.gzindexi&&(t.adler=j(t.adler,s.pending_buf,s.pending-i,i))}s.status=103}if(103===s.status){if(s.gzhead.hcrc){if(s.pending+2>s.pending_buf_size&&(kt(t),0!==s.pending))return s.last_flush=-1,Q;zt(s,255&t.adler),zt(s,t.adler>>8&255),t.adler=0}if(s.status=mt,kt(t),0!==s.pending)return s.last_flush=-1,Q}if(0!==t.avail_in||0!==s.lookahead||e!==V&&s.status!==wt){let i=0===s.level?Tt(s,e):s.strategy===rt?((t,e)=>{let s;for(;;){if(0===t.lookahead&&(Ut(t),0===t.lookahead)){if(e===V)return 1;break}if(t.match_length=0,s=Y(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,s&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===$?(xt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(xt(t,!1),0===t.strm.avail_out)?1:2})(s,e):s.strategy===ot?((t,e)=>{let s,i,a,n;const r=t.window;for(;;){if(t.lookahead<=ct){if(Ut(t),t.lookahead<=ct&&e===V)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(a=t.strstart-1,i=r[a],i===r[++a]&&i===r[++a]&&i===r[++a])){n=t.strstart+ct;do{}while(i===r[++a]&&i===r[++a]&&i===r[++a]&&i===r[++a]&&i===r[++a]&&i===r[++a]&&i===r[++a]&&i===r[++a]&&at.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(s=Y(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(s=Y(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),s&&(xt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===$?(xt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(xt(t,!1),0===t.strm.avail_out)?1:2})(s,e):Ot[s.level].func(s,e);if(3!==i&&4!==i||(s.status=wt),1===i||3===i)return 0===t.avail_out&&(s.last_flush=-1),Q;if(2===i&&(e===q?W(s):e!==J&&(K(s,0,0,!1),e===X&&(bt(s.head),0===s.lookahead&&(s.strstart=0,s.block_start=0,s.insert=0))),kt(t),0===t.avail_out))return s.last_flush=-1,Q}return e!==$?Q:s.wrap<=0?tt:(2===s.wrap?(zt(s,255&t.adler),zt(s,t.adler>>8&255),zt(s,t.adler>>16&255),zt(s,t.adler>>24&255),zt(s,255&t.total_in),zt(s,t.total_in>>8&255),zt(s,t.total_in>>16&255),zt(s,t.total_in>>24&255)):(Et(s,t.adler>>>16),Et(s,65535&t.adler)),kt(t),s.wrap>0&&(s.wrap=-s.wrap),0!==s.pending?Q:tt)},deflateEnd:t=>{if(Nt(t))return et;const e=t.state.status;return t.state=null,e===mt?gt(t,st):Q},deflateSetDictionary:(t,e)=>{let s=e.length;if(Nt(t))return et;const i=t.state,a=i.wrap;if(2===a||1===a&&i.status!==ft||i.lookahead)return et;if(1===a&&(t.adler=L(t.adler,e,s,0)),i.wrap=0,s>=i.w_size){0===a&&(bt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(s-i.w_size,s),0),e=t,s=i.w_size}const n=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=s,t.next_in=0,t.input=e,Ut(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=vt(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,Ut(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=n,i.wrap=a,Q},deflateInfo:"pako deflate (from Nodeca project)"};const jt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Mt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const s=e.shift();if(s){if("object"!=typeof s)throw new TypeError(s+"must be non-object");for(const e in s)jt(s,e)&&(t[e]=s[e])}}return t},Pt=t=>{let e=0;for(let s=0,i=t.length;s=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Kt[254]=Kt[254]=1;var Gt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,s,i,a,n,r=t.length,o=0;for(a=0;a>>6,e[n++]=128|63&s):s<65536?(e[n++]=224|s>>>12,e[n++]=128|s>>>6&63,e[n++]=128|63&s):(e[n++]=240|s>>>18,e[n++]=128|s>>>12&63,e[n++]=128|s>>>6&63,e[n++]=128|63&s);return e},Yt=(t,e)=>{const s=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,a;const n=new Array(2*s);for(a=0,i=0;i4)n[a++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i1?n[a++]=65533:e<65536?n[a++]=e:(e-=65536,n[a++]=55296|e>>10&1023,n[a++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ht)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let s="";for(let i=0;i{(e=e||t.length)>t.length&&(e=t.length);let s=e-1;for(;s>=0&&128==(192&t[s]);)s--;return s<0||0===s?e:s+Kt[t[s]]>e?s:e};var Vt=function(){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};const qt=Object.prototype.toString,{Z_NO_FLUSH:Xt,Z_SYNC_FLUSH:$t,Z_FULL_FLUSH:Jt,Z_FINISH:Qt,Z_OK:te,Z_STREAM_END:ee,Z_DEFAULT_COMPRESSION:se,Z_DEFAULT_STRATEGY:ie,Z_DEFLATED:ae}=P;function ne(t){this.options=Mt({level:se,method:ae,chunkSize:16384,windowBits:15,memLevel:8,strategy:ie},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Vt,this.strm.avail_out=0;let s=Bt.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(s!==te)throw new Error(M[s]);if(e.header&&Bt.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Gt(e.dictionary):"[object ArrayBuffer]"===qt.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,s=Bt.deflateSetDictionary(this.strm,t),s!==te)throw new Error(M[s]);this._dict_set=!0}}function re(t,e){const s=new ne(e);if(s.push(t,!0),s.err)throw s.msg||M[s.err];return s.result}ne.prototype.push=function(t,e){const s=this.strm,i=this.options.chunkSize;let a,n;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Qt:Xt,"string"==typeof t?s.input=Gt(t):"[object ArrayBuffer]"===qt.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;;)if(0===s.avail_out&&(s.output=new Uint8Array(i),s.next_out=0,s.avail_out=i),(n===$t||n===Jt)&&s.avail_out<=6)this.onData(s.output.subarray(0,s.next_out)),s.avail_out=0;else{if(a=Bt.deflate(s,n),a===ee)return s.next_out>0&&this.onData(s.output.subarray(0,s.next_out)),a=Bt.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===te;if(0!==s.avail_out){if(n>0&&s.next_out>0)this.onData(s.output.subarray(0,s.next_out)),s.avail_out=0;else if(0===s.avail_in)break}else this.onData(s.output)}return!0},ne.prototype.onData=function(t){this.chunks.push(t)},ne.prototype.onEnd=function(t){t===te&&(this.result=Pt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var oe={Deflate:ne,deflate:re,deflateRaw:function(t,e){return(e=e||{}).raw=!0,re(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,re(t,e)},constants:P};const le=16209;var he=function(t,e){let s,i,a,n,r,o,l,h,d,_,c,u,f,m,w,g,p,b,y,v,k,x,z,E;const A=t.state;s=t.next_in,z=t.input,i=s+(t.avail_in-5),a=t.next_out,E=t.output,n=a-(e-t.avail_out),r=a+(t.avail_out-257),o=A.dmax,l=A.wsize,h=A.whave,d=A.wnext,_=A.window,c=A.hold,u=A.bits,f=A.lencode,m=A.distcode,w=(1<>>24,c>>>=b,u-=b,b=p>>>16&255,0===b)E[a++]=65535&p;else{if(!(16&b)){if(64&b){if(32&b){A.mode=16191;break t}t.msg="invalid literal/length code",A.mode=le;break t}p=f[(65535&p)+(c&(1<>>=b,u-=b),u<15&&(c+=z[s++]<>>24,c>>>=b,u-=b,b=p>>>16&255,16&b){if(v=65535&p,b&=15,uo){t.msg="invalid distance too far back",A.mode=le;break t}if(c>>>=b,u-=b,b=a-n,v>b){if(b=v-b,b>h&&A.sane){t.msg="invalid distance too far back",A.mode=le;break t}if(k=0,x=_,0===d){if(k+=l-b,b2;)E[a++]=x[k++],E[a++]=x[k++],E[a++]=x[k++],y-=3;y&&(E[a++]=x[k++],y>1&&(E[a++]=x[k++]))}else{k=a-v;do{E[a++]=E[k++],E[a++]=E[k++],E[a++]=E[k++],y-=3}while(y>2);y&&(E[a++]=E[k++],y>1&&(E[a++]=E[k++]))}break}if(64&b){t.msg="invalid distance code",A.mode=le;break t}p=m[(65535&p)+(c&(1<>3,s-=y,u-=y<<3,c&=(1<{const l=o.bits;let h,d,_,c,u,f,m=0,w=0,g=0,p=0,b=0,y=0,v=0,k=0,x=0,z=0,E=null;const A=new Uint16Array(16),R=new Uint16Array(16);let U,T,S,Z=null;for(m=0;m<=de;m++)A[m]=0;for(w=0;w=1&&0===A[p];p--);if(b>p&&(b=p),0===p)return a[n++]=20971520,a[n++]=20971520,o.bits=1,0;for(g=1;g0&&(0===t||1!==p))return-1;for(R[1]=0,m=1;m852||2===t&&x>592)return 1;for(;;){U=m-v,r[w]+1=f?(T=Z[r[w]-f],S=E[r[w]-f]):(T=96,S=0),h=1<>v)+d]=U<<24|T<<16|S}while(0!==d);for(h=1<>=1;if(0!==h?(z&=h-1,z+=h):z=0,w++,0==--A[m]){if(m===p)break;m=e[s+r[w]]}if(m>b&&(z&c)!==_){for(0===v&&(v=b),u+=g,y=m-v,k=1<852||2===t&&x>592)return 1;_=z&c,a[_]=b<<24|y<<16|u-n}}return 0!==z&&(a[u+z]=m-v<<24|64<<16),o.bits=b,0};const{Z_FINISH:we,Z_BLOCK:ge,Z_TREES:pe,Z_OK:be,Z_STREAM_END:ye,Z_NEED_DICT:ve,Z_STREAM_ERROR:ke,Z_DATA_ERROR:xe,Z_MEM_ERROR:ze,Z_BUF_ERROR:Ee,Z_DEFLATED:Ae}=P,Re=16180,Ue=16190,Te=16191,Se=16192,Ze=16194,De=16199,Oe=16200,Ie=16206,Ne=16209,Fe=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function Ce(){this.strm=null,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Le=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode16211?1:0},Be=t=>{if(Le(t))return ke;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=Re,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,be},je=t=>{if(Le(t))return ke;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,Be(t)},Me=(t,e)=>{let s;if(Le(t))return ke;const i=t.state;return e<0?(s=0,e=-e):(s=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?ke:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=s,i.wbits=e,je(t))},Pe=(t,e)=>{if(!t)return ke;const s=new Ce;t.state=s,s.strm=t,s.window=null,s.mode=Re;const i=Me(t,e);return i!==be&&(t.state=null),i};let He,Ke,Ge=!0;const Ye=t=>{if(Ge){He=new Int32Array(512),Ke=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(me(1,t.lens,0,288,He,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;me(2,t.lens,0,32,Ke,0,t.work,{bits:5}),Ge=!1}t.lencode=He,t.lenbits=9,t.distcode=Ke,t.distbits=5},We=(t,e,s,i)=>{let a;const n=t.state;return null===n.window&&(n.wsize=1<=n.wsize?(n.window.set(e.subarray(s-n.wsize,s),0),n.wnext=0,n.whave=n.wsize):(a=n.wsize-n.wnext,a>i&&(a=i),n.window.set(e.subarray(s-i,s-i+a),n.wnext),(i-=a)?(n.window.set(e.subarray(s-i,s),0),n.wnext=i,n.whave=n.wsize):(n.wnext+=a,n.wnext===n.wsize&&(n.wnext=0),n.whavePe(t,15),inflateInit2:Pe,inflate:(t,e)=>{let s,i,a,n,r,o,l,h,d,_,c,u,f,m,w,g,p,b,y,v,k,x,z=0;const E=new Uint8Array(4);let A,R;const U=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Le(t)||!t.output||!t.input&&0!==t.avail_in)return ke;s=t.state,s.mode===Te&&(s.mode=Se),r=t.next_out,a=t.output,l=t.avail_out,n=t.next_in,i=t.input,o=t.avail_in,h=s.hold,d=s.bits,_=o,c=l,x=be;t:for(;;)switch(s.mode){case Re:if(0===s.wrap){s.mode=Se;break}for(;d<16;){if(0===o)break t;o--,h+=i[n++]<>>8&255,s.check=j(s.check,E,2,0),h=0,d=0,s.mode=16181;break}if(s.head&&(s.head.done=!1),!(1&s.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",s.mode=Ne;break}if((15&h)!==Ae){t.msg="unknown compression method",s.mode=Ne;break}if(h>>>=4,d-=4,k=8+(15&h),0===s.wbits&&(s.wbits=k),k>15||k>s.wbits){t.msg="invalid window size",s.mode=Ne;break}s.dmax=1<>8&1),512&s.flags&&4&s.wrap&&(E[0]=255&h,E[1]=h>>>8&255,s.check=j(s.check,E,2,0)),h=0,d=0,s.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[n++]<>>8&255,E[2]=h>>>16&255,E[3]=h>>>24&255,s.check=j(s.check,E,4,0)),h=0,d=0,s.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[n++]<>8),512&s.flags&&4&s.wrap&&(E[0]=255&h,E[1]=h>>>8&255,s.check=j(s.check,E,2,0)),h=0,d=0,s.mode=16184;case 16184:if(1024&s.flags){for(;d<16;){if(0===o)break t;o--,h+=i[n++]<>>8&255,s.check=j(s.check,E,2,0)),h=0,d=0}else s.head&&(s.head.extra=null);s.mode=16185;case 16185:if(1024&s.flags&&(u=s.length,u>o&&(u=o),u&&(s.head&&(k=s.head.extra_len-s.length,s.head.extra||(s.head.extra=new Uint8Array(s.head.extra_len)),s.head.extra.set(i.subarray(n,n+u),k)),512&s.flags&&4&s.wrap&&(s.check=j(s.check,i,u,n)),o-=u,n+=u,s.length-=u),s.length))break t;s.length=0,s.mode=16186;case 16186:if(2048&s.flags){if(0===o)break t;u=0;do{k=i[n+u++],s.head&&k&&s.length<65536&&(s.head.name+=String.fromCharCode(k))}while(k&&u>9&1,s.head.done=!0),t.adler=s.check=0,s.mode=Te;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[n++]<>>=7&d,d-=7&d,s.mode=Ie;break}for(;d<3;){if(0===o)break t;o--,h+=i[n++]<>>=1,d-=1,3&h){case 0:s.mode=16193;break;case 1:if(Ye(s),s.mode=De,e===pe){h>>>=2,d-=2;break t}break;case 2:s.mode=16196;break;case 3:t.msg="invalid block type",s.mode=Ne}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[n++]<>>16^65535)){t.msg="invalid stored block lengths",s.mode=Ne;break}if(s.length=65535&h,h=0,d=0,s.mode=Ze,e===pe)break t;case Ze:s.mode=16195;case 16195:if(u=s.length,u){if(u>o&&(u=o),u>l&&(u=l),0===u)break t;a.set(i.subarray(n,n+u),r),o-=u,n+=u,l-=u,r+=u,s.length-=u;break}s.mode=Te;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[n++]<>>=5,d-=5,s.ndist=1+(31&h),h>>>=5,d-=5,s.ncode=4+(15&h),h>>>=4,d-=4,s.nlen>286||s.ndist>30){t.msg="too many length or distance symbols",s.mode=Ne;break}s.have=0,s.mode=16197;case 16197:for(;s.have>>=3,d-=3}for(;s.have<19;)s.lens[U[s.have++]]=0;if(s.lencode=s.lendyn,s.lenbits=7,A={bits:s.lenbits},x=me(0,s.lens,0,19,s.lencode,0,s.work,A),s.lenbits=A.bits,x){t.msg="invalid code lengths set",s.mode=Ne;break}s.have=0,s.mode=16198;case 16198:for(;s.have>>24,g=z>>>16&255,p=65535&z,!(w<=d);){if(0===o)break t;o--,h+=i[n++]<>>=w,d-=w,s.lens[s.have++]=p;else{if(16===p){for(R=w+2;d>>=w,d-=w,0===s.have){t.msg="invalid bit length repeat",s.mode=Ne;break}k=s.lens[s.have-1],u=3+(3&h),h>>>=2,d-=2}else if(17===p){for(R=w+3;d>>=w,d-=w,k=0,u=3+(7&h),h>>>=3,d-=3}else{for(R=w+7;d>>=w,d-=w,k=0,u=11+(127&h),h>>>=7,d-=7}if(s.have+u>s.nlen+s.ndist){t.msg="invalid bit length repeat",s.mode=Ne;break}for(;u--;)s.lens[s.have++]=k}}if(s.mode===Ne)break;if(0===s.lens[256]){t.msg="invalid code -- missing end-of-block",s.mode=Ne;break}if(s.lenbits=9,A={bits:s.lenbits},x=me(1,s.lens,0,s.nlen,s.lencode,0,s.work,A),s.lenbits=A.bits,x){t.msg="invalid literal/lengths set",s.mode=Ne;break}if(s.distbits=6,s.distcode=s.distdyn,A={bits:s.distbits},x=me(2,s.lens,s.nlen,s.ndist,s.distcode,0,s.work,A),s.distbits=A.bits,x){t.msg="invalid distances set",s.mode=Ne;break}if(s.mode=De,e===pe)break t;case De:s.mode=Oe;case Oe:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=n,t.avail_in=o,s.hold=h,s.bits=d,he(t,c),r=t.next_out,a=t.output,l=t.avail_out,n=t.next_in,i=t.input,o=t.avail_in,h=s.hold,d=s.bits,s.mode===Te&&(s.back=-1);break}for(s.back=0;z=s.lencode[h&(1<>>24,g=z>>>16&255,p=65535&z,!(w<=d);){if(0===o)break t;o--,h+=i[n++]<>b)],w=z>>>24,g=z>>>16&255,p=65535&z,!(b+w<=d);){if(0===o)break t;o--,h+=i[n++]<>>=b,d-=b,s.back+=b}if(h>>>=w,d-=w,s.back+=w,s.length=p,0===g){s.mode=16205;break}if(32&g){s.back=-1,s.mode=Te;break}if(64&g){t.msg="invalid literal/length code",s.mode=Ne;break}s.extra=15&g,s.mode=16201;case 16201:if(s.extra){for(R=s.extra;d>>=s.extra,d-=s.extra,s.back+=s.extra}s.was=s.length,s.mode=16202;case 16202:for(;z=s.distcode[h&(1<>>24,g=z>>>16&255,p=65535&z,!(w<=d);){if(0===o)break t;o--,h+=i[n++]<>b)],w=z>>>24,g=z>>>16&255,p=65535&z,!(b+w<=d);){if(0===o)break t;o--,h+=i[n++]<>>=b,d-=b,s.back+=b}if(h>>>=w,d-=w,s.back+=w,64&g){t.msg="invalid distance code",s.mode=Ne;break}s.offset=p,s.extra=15&g,s.mode=16203;case 16203:if(s.extra){for(R=s.extra;d>>=s.extra,d-=s.extra,s.back+=s.extra}if(s.offset>s.dmax){t.msg="invalid distance too far back",s.mode=Ne;break}s.mode=16204;case 16204:if(0===l)break t;if(u=c-l,s.offset>u){if(u=s.offset-u,u>s.whave&&s.sane){t.msg="invalid distance too far back",s.mode=Ne;break}u>s.wnext?(u-=s.wnext,f=s.wsize-u):f=s.wnext-u,u>s.length&&(u=s.length),m=s.window}else m=a,f=r-s.offset,u=s.length;u>l&&(u=l),l-=u,s.length-=u;do{a[r++]=m[f++]}while(--u);0===s.length&&(s.mode=Oe);break;case 16205:if(0===l)break t;a[r++]=s.length,l--,s.mode=Oe;break;case Ie:if(s.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[n++]<{if(Le(t))return ke;let e=t.state;return e.window&&(e.window=null),t.state=null,be},inflateGetHeader:(t,e)=>{if(Le(t))return ke;const s=t.state;return 2&s.wrap?(s.head=e,e.done=!1,be):ke},inflateSetDictionary:(t,e)=>{const s=e.length;let i,a,n;return Le(t)?ke:(i=t.state,0!==i.wrap&&i.mode!==Ue?ke:i.mode===Ue&&(a=1,a=L(a,e,s,0),a!==i.check)?xe:(n=We(t,e,s,s),n?(i.mode=16210,ze):(i.havedict=1,be)))},inflateInfo:"pako inflate (from Nodeca project)"};var qe=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const Xe=Object.prototype.toString,{Z_NO_FLUSH:$e,Z_FINISH:Je,Z_OK:Qe,Z_STREAM_END:ts,Z_NEED_DICT:es,Z_STREAM_ERROR:ss,Z_DATA_ERROR:is,Z_MEM_ERROR:as}=P;function ns(t){this.options=Mt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Vt,this.strm.avail_out=0;let s=Ve.inflateInit2(this.strm,e.windowBits);if(s!==Qe)throw new Error(M[s]);if(this.header=new qe,Ve.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Gt(e.dictionary):"[object ArrayBuffer]"===Xe.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(s=Ve.inflateSetDictionary(this.strm,e.dictionary),s!==Qe)))throw new Error(M[s])}function rs(t,e){const s=new ns(e);if(s.push(t),s.err)throw s.msg||M[s.err];return s.result}ns.prototype.push=function(t,e){const s=this.strm,i=this.options.chunkSize,a=this.options.dictionary;let n,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Je:$e,"[object ArrayBuffer]"===Xe.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;;){for(0===s.avail_out&&(s.output=new Uint8Array(i),s.next_out=0,s.avail_out=i),n=Ve.inflate(s,r),n===es&&a&&(n=Ve.inflateSetDictionary(s,a),n===Qe?n=Ve.inflate(s,r):n===is&&(n=es));s.avail_in>0&&n===ts&&s.state.wrap>0&&0!==t[s.next_in];)Ve.inflateReset(s),n=Ve.inflate(s,r);switch(n){case ss:case is:case es:case as:return this.onEnd(n),this.ended=!0,!1}if(o=s.avail_out,s.next_out&&(0===s.avail_out||n===ts))if("string"===this.options.to){let t=Wt(s.output,s.next_out),e=s.next_out-t,a=Yt(s.output,t);s.next_out=e,s.avail_out=i-e,e&&s.output.set(s.output.subarray(t,t+e),0),this.onData(a)}else this.onData(s.output.length===s.next_out?s.output:s.output.subarray(0,s.next_out));if(n!==Qe||0!==o){if(n===ts)return n=Ve.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,!0;if(0===s.avail_in)break}}return!0},ns.prototype.onData=function(t){this.chunks.push(t)},ns.prototype.onEnd=function(t){t===Qe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Pt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var os={Inflate:ns,inflate:rs,inflateRaw:function(t,e){return(e=e||{}).raw=!0,rs(t,e)},ungzip:rs,constants:P};const{Deflate:ls,deflate:hs,deflateRaw:ds,gzip:_s}=oe,{Inflate:cs,inflate:us,inflateRaw:ms,ungzip:ws}=os;var gs={Deflate:ls,deflate:hs,deflateRaw:ds,gzip:_s,Inflate:cs,inflate:us,inflateRaw:ms,ungzip:ws,constants:P};"undefined"==typeof window&&(!global.crypto&&(global.crypto={async getRandomValues(t){const{randomFillSync:e}=await import("crypto");e(t)}}),!global.performance&&(global.performance={now(){const[t,e]=process.hrtime();return 1e3*t+e/1e6}})),(()=>{const t=()=>{const t=new Error("not implemented");return t.code="ENOSYS",t};if(!globalThis.fs){let e="";globalThis.fs={constants:{O_WRONLY:-1,O_RDWR:-1,O_CREAT:-1,O_TRUNC:-1,O_APPEND:-1,O_EXCL:-1},writeSync(t,i){e+=s.decode(i);const a=e.lastIndexOf("\n");return-1!=a&&(e=e.substring(a+1)),i.length},write(e,s,i,a,n,r){if(0!==i||a!==s.length||null!==n)return void r(t());r(null,this.writeSync(e,s))},chmod(e,s,i){i(t())},chown(e,s,i,a){a(t())},close(e,s){s(t())},fchmod(e,s,i){i(t())},fchown(e,s,i,a){a(t())},fstat(e,s){s(t())},fsync(t,e){e(null)},ftruncate(e,s,i){i(t())},lchown(e,s,i,a){a(t())},link(e,s,i){i(t())},lstat(e,s){s(t())},mkdir(e,s,i){i(t())},open(e,s,i,a){a(t())},read(e,s,i,a,n,r){r(t())},readdir(e,s){s(t())},readlink(e,s){s(t())},rename(e,s,i){i(t())},rmdir(e,s){s(t())},stat(e,s){s(t())},symlink(e,s,i){i(t())},truncate(e,s,i){i(t())},unlink(e,s){s(t())},utimes(e,s,i,a){a(t())}}}if(globalThis.process||(globalThis.process={getuid:()=>-1,getgid:()=>-1,geteuid:()=>-1,getegid:()=>-1,getgroups(){throw t()},pid:-1,ppid:-1,umask(){throw t()},cwd(){throw t()},chdir(){throw t()}}),!globalThis.crypto)throw new Error("globalThis.crypto is not available, polyfill required (crypto.getRandomValues only)");if(!globalThis.performance)throw new Error("globalThis.performance is not available, polyfill required (performance.now only)");if(!globalThis.TextEncoder)throw new Error("globalThis.TextEncoder is not available, polyfill required");if(!globalThis.TextDecoder)throw new Error("globalThis.TextDecoder is not available, polyfill required");const e=new TextEncoder("utf-8"),s=new TextDecoder("utf-8");globalThis.Go=class{constructor(){this.argv=["js"],this.env={},this.exit=t=>{0!==t&&console.warn("exit code:",t)},this._exitPromise=new Promise((t=>{this._resolveExitPromise=t})),this._pendingEvent=null,this._scheduledTimeouts=new Map,this._nextCallbackTimeoutID=1;const t=(t,e)=>{this.mem.setUint32(t+0,e,!0),this.mem.setUint32(t+4,Math.floor(e/4294967296),!0)},i=t=>this.mem.getUint32(t+0,!0)+4294967296*this.mem.getInt32(t+4,!0),a=t=>{const e=this.mem.getFloat64(t,!0);if(0===e)return;if(!isNaN(e))return e;const s=this.mem.getUint32(t,!0);return this._values[s]},n=(t,e)=>{const s=2146959360;if("number"==typeof e&&0!==e)return isNaN(e)?(this.mem.setUint32(t+4,s,!0),void this.mem.setUint32(t,0,!0)):void this.mem.setFloat64(t,e,!0);if(void 0===e)return void this.mem.setFloat64(t,0,!0);let i=this._ids.get(e);void 0===i&&(i=this._idPool.pop(),void 0===i&&(i=this._values.length),this._values[i]=e,this._goRefCounts[i]=0,this._ids.set(e,i)),this._goRefCounts[i]++;let a=0;switch(typeof e){case"object":null!==e&&(a=1);break;case"string":a=2;break;case"symbol":a=3;break;case"function":a=4}this.mem.setUint32(t+4,s|a,!0),this.mem.setUint32(t,i,!0)},r=t=>{const e=i(t+0),s=i(t+8);return new Uint8Array(this._inst.exports.mem.buffer,e,s)},o=t=>{const e=i(t+0),s=i(t+8),n=new Array(s);for(let t=0;t{const e=i(t+0),a=i(t+8);return s.decode(new DataView(this._inst.exports.mem.buffer,e,a))},h=Date.now()-performance.now();this.importObject={_gotest:{add:(t,e)=>t+e},gojs:{"runtime.wasmExit":t=>{t>>>=0;const e=this.mem.getInt32(t+8,!0);this.exited=!0,delete this._inst,delete this._values,delete this._goRefCounts,delete this._ids,delete this._idPool,this.exit(e)},"runtime.wasmWrite":t=>{const e=i((t>>>=0)+8),s=i(t+16),a=this.mem.getInt32(t+24,!0);fs.writeSync(e,new Uint8Array(this._inst.exports.mem.buffer,s,a))},"runtime.resetMemoryDataView":t=>{this.mem=new DataView(this._inst.exports.mem.buffer)},"runtime.nanotime1":e=>{t((e>>>=0)+8,1e6*(h+performance.now()))},"runtime.walltime":e=>{e>>>=0;const s=(new Date).getTime();t(e+8,s/1e3),this.mem.setInt32(e+16,s%1e3*1e6,!0)},"runtime.scheduleTimeoutEvent":t=>{t>>>=0;const e=this._nextCallbackTimeoutID;this._nextCallbackTimeoutID++,this._scheduledTimeouts.set(e,setTimeout((()=>{for(this._resume();this._scheduledTimeouts.has(e);)console.warn("scheduleTimeoutEvent: missed timeout event"),this._resume()}),i(t+8))),this.mem.setInt32(t+16,e,!0)},"runtime.clearTimeoutEvent":t=>{t>>>=0;const e=this.mem.getInt32(t+8,!0);clearTimeout(this._scheduledTimeouts.get(e)),this._scheduledTimeouts.delete(e)},"runtime.getRandomData":t=>{t>>>=0,crypto.getRandomValues(r(t+8))},"syscall/js.finalizeRef":t=>{t>>>=0;const e=this.mem.getUint32(t+8,!0);if(this._goRefCounts[e]--,0===this._goRefCounts[e]){const t=this._values[e];this._values[e]=null,this._ids.delete(t),this._idPool.push(e)}},"syscall/js.stringVal":t=>{n((t>>>=0)+24,l(t+8))},"syscall/js.valueGet":t=>{t>>>=0;const e=Reflect.get(a(t+8),l(t+16));t=this._inst.exports.getsp()>>>0,n(t+32,e)},"syscall/js.valueSet":t=>{t>>>=0,Reflect.set(a(t+8),l(t+16),a(t+32))},"syscall/js.valueDelete":t=>{t>>>=0,Reflect.deleteProperty(a(t+8),l(t+16))},"syscall/js.valueIndex":t=>{n((t>>>=0)+24,Reflect.get(a(t+8),i(t+16)))},"syscall/js.valueSetIndex":t=>{t>>>=0,Reflect.set(a(t+8),i(t+16),a(t+24))},"syscall/js.valueCall":t=>{t>>>=0;try{const e=a(t+8),s=Reflect.get(e,l(t+16)),i=o(t+32),r=Reflect.apply(s,e,i);t=this._inst.exports.getsp()>>>0,n(t+56,r),this.mem.setUint8(t+64,1)}catch(e){t=this._inst.exports.getsp()>>>0,n(t+56,e),this.mem.setUint8(t+64,0)}},"syscall/js.valueInvoke":t=>{t>>>=0;try{const e=a(t+8),s=o(t+16),i=Reflect.apply(e,void 0,s);t=this._inst.exports.getsp()>>>0,n(t+40,i),this.mem.setUint8(t+48,1)}catch(e){t=this._inst.exports.getsp()>>>0,n(t+40,e),this.mem.setUint8(t+48,0)}},"syscall/js.valueNew":t=>{t>>>=0;try{const e=a(t+8),s=o(t+16),i=Reflect.construct(e,s);t=this._inst.exports.getsp()>>>0,n(t+40,i),this.mem.setUint8(t+48,1)}catch(e){t=this._inst.exports.getsp()>>>0,n(t+40,e),this.mem.setUint8(t+48,0)}},"syscall/js.valueLength":e=>{t((e>>>=0)+16,parseInt(a(e+8).length))},"syscall/js.valuePrepareString":s=>{s>>>=0;const i=e.encode(String(a(s+8)));n(s+16,i),t(s+24,i.length)},"syscall/js.valueLoadString":t=>{const e=a((t>>>=0)+8);r(t+16).set(e)},"syscall/js.valueInstanceOf":t=>{t>>>=0,this.mem.setUint8(t+24,a(t+8)instanceof a(t+16)?1:0)},"syscall/js.copyBytesToGo":e=>{const s=r((e>>>=0)+8),i=a(e+32);if(!(i instanceof Uint8Array||i instanceof Uint8ClampedArray))return void this.mem.setUint8(e+48,0);const n=i.subarray(0,s.length);s.set(n),t(e+40,n.length),this.mem.setUint8(e+48,1)},"syscall/js.copyBytesToJS":e=>{const s=a((e>>>=0)+8),i=r(e+16);if(!(s instanceof Uint8Array||s instanceof Uint8ClampedArray))return void this.mem.setUint8(e+48,0);const n=i.subarray(0,s.length);s.set(n),t(e+40,n.length),this.mem.setUint8(e+48,1)},debug:t=>{console.log(t)}}}}async run(t){if(!(t instanceof WebAssembly.Instance))throw new Error("Go.run: WebAssembly.Instance expected");this._inst=t,this.mem=new DataView(this._inst.exports.mem.buffer),this._values=[NaN,0,null,!0,!1,globalThis,this],this._goRefCounts=new Array(this._values.length).fill(1/0),this._ids=new Map([[0,1],[null,2],[!0,3],[!1,4],[globalThis,5],[this,6]]),this._idPool=[],this.exited=!1;let s=4096;const i=t=>{const i=s,a=e.encode(t+"\0");return new Uint8Array(this.mem.buffer,s,a.length).set(a),s+=a.length,s%8!=0&&(s+=8-s%8),i},a=this.argv.length,n=[];this.argv.forEach((t=>{n.push(i(t))})),n.push(0);Object.keys(this.env).sort().forEach((t=>{n.push(i(`${t}=${this.env[t]}`))})),n.push(0);const r=s;n.forEach((t=>{this.mem.setUint32(s,t,!0),this.mem.setUint32(s+4,0,!0),s+=8}));if(s>=12288)throw new Error("total length of command line and environment variables exceeds limit");this._inst.exports.run(a,r),this.exited&&this._resolveExitPromise(),await this._exitPromise}_resume(){if(this.exited)throw new Error("Go program has already exited");this._inst.exports.resume(),this.exited&&this._resolveExitPromise()}_makeFuncWrapper(t){const e=this;return function(){const s={id:t,this:this,args:arguments};return e._pendingEvent=s,e._resume(),s.result}}}})(),exports.init=async function(t){const e=new Go;var s;if("undefined"==typeof window){global.excelize={};const e=await import("fs");s=gs.ungzip(e.readFileSync(t))}else window.excelize={},s=gs.ungzip(await(await fetch(t)).arrayBuffer());31===s[0]&&139===s[1]&&(s=gs.ungzip(s));const i=await WebAssembly.instantiate(s,e.importObject);return e.run(i.instance),excelize};