/*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */(function(O,B){typeof exports=="object"&&typeof module<"u"?B(exports):typeof define=="function"&&define.amd?define(["exports"],B):B((O=typeof globalThis<"u"?globalThis:O||self).pako={})})(this,function(O){"use strict";var B=(e,i,t,o)=>{let s=65535&e|0,r=e>>>16&65535|0,h=0;for(;t!==0;){h=t>2e3?2e3:t,t-=h;do s=s+i[o++]|0,r=r+s|0;while(--h);s%=65521,r%=65521}return s|r<<16|0};const pt=new Uint32Array((()=>{let e,i=[];for(var t=0;t<256;t++){e=t;for(var o=0;o<8;o++)e=1&e?3988292384^e>>>1:e>>>1;i[t]=e}return i})());var U=(e,i,t,o)=>{const s=pt,r=o+t;e^=-1;for(let h=o;h>>8^s[255&(e^i[h])];return-1^e},vt=function(e,i){let t,o,s,r,h,l,g,n,a,Z,w,d,S,p,u,y,k,f,_,E,c,x,m,b;const v=e.state;t=e.next_in,m=e.input,o=t+(e.avail_in-5),s=e.next_out,b=e.output,r=s-(i-e.avail_out),h=s+(e.avail_out-257),l=v.dmax,g=v.wsize,n=v.whave,a=v.wnext,Z=v.window,w=v.hold,d=v.bits,S=v.lencode,p=v.distcode,u=(1<>>24,w>>>=f,d-=f,f=k>>>16&255,f===0)b[s++]=65535&k;else{if(!(16&f)){if((64&f)==0){k=S[(65535&k)+(w&(1<>>=f,d-=f),d<15&&(w+=m[t++]<>>24,w>>>=f,d-=f,f=k>>>16&255,!(16&f)){if((64&f)==0){k=p[(65535&k)+(w&(1<l){e.msg="invalid distance too far back",v.mode=30;break t}if(w>>>=f,d-=f,f=s-r,E>f){if(f=E-f,f>n&&v.sane){e.msg="invalid distance too far back",v.mode=30;break t}if(c=0,x=Z,a===0){if(c+=g-f,f<_){_-=f;do b[s++]=Z[c++];while(--f);c=s-E,x=b}}else if(a2;)b[s++]=x[c++],b[s++]=x[c++],b[s++]=x[c++],_-=3;_&&(b[s++]=x[c++],_>1&&(b[s++]=x[c++]))}else{c=s-E;do b[s++]=b[c++],b[s++]=b[c++],b[s++]=b[c++],_-=3;while(_>2);_&&(b[s++]=b[c++],_>1&&(b[s++]=b[c++]))}break}}break}}while(t>3,t-=_,d-=_<<3,w&=(1<{const g=l.bits;let n,a,Z,w,d,S,p=0,u=0,y=0,k=0,f=0,_=0,E=0,c=0,x=0,m=0,b=null,v=0;const A=new Uint16Array(16),N=new Uint16Array(16);let _t,K,P,Y=null,gt=0;for(p=0;p<=H;p++)A[p]=0;for(u=0;u=1&&A[k]===0;k--);if(f>k&&(f=k),k===0)return s[r++]=20971520,s[r++]=20971520,l.bits=1,0;for(y=1;y0&&(e===0||k!==1))return-1;for(N[1]=0,p=1;p852||e===2&&x>592)return 1;for(;;){_t=p-E,h[u]S?(K=Y[gt+h[u]],P=b[v+h[u]]):(K=96,P=0),n=1<>E)+a]=_t<<24|K<<16|P|0;while(a!==0);for(n=1<>=1;if(n!==0?(m&=n-1,m+=n):m=0,u++,--A[p]==0){if(p===k)break;p=i[t+h[u]]}if(p>f&&(m&w)!==Z){for(E===0&&(E=f),d+=y,_=p-E,c=1<<_;_+E852||e===2&&x>592)return 1;Z=m&w,s[Z]=f<<24|_<<16|d-r|0}}return m!==0&&(s[d+m]=p-E<<24|64<<16|0),l.bits=f,0},G={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{Z_FINISH:$,Z_BLOCK:At,Z_TREES:j,Z_OK:C,Z_STREAM_END:Zt,Z_NEED_DICT:St,Z_STREAM_ERROR:T,Z_DATA_ERROR:tt,Z_MEM_ERROR:et,Z_BUF_ERROR:Tt,Z_DEFLATED:it}=G,D=12,R=30,nt=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function Ot(){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 at=e=>{if(!e||!e.state)return T;const i=e.state;return e.total_in=e.total_out=i.total=0,e.msg="",i.wrap&&(e.adler=1&i.wrap),i.mode=1,i.last=0,i.havedict=0,i.dmax=32768,i.head=null,i.hold=0,i.bits=0,i.lencode=i.lendyn=new Int32Array(852),i.distcode=i.distdyn=new Int32Array(592),i.sane=1,i.back=-1,C},rt=e=>{if(!e||!e.state)return T;const i=e.state;return i.wsize=0,i.whave=0,i.wnext=0,at(e)},ot=(e,i)=>{let t;if(!e||!e.state)return T;const o=e.state;return i<0?(t=0,i=-i):(t=1+(i>>4),i<48&&(i&=15)),i&&(i<8||i>15)?T:(o.window!==null&&o.wbits!==i&&(o.window=null),o.wrap=t,o.wbits=i,rt(e))},st=(e,i)=>{if(!e)return T;const t=new Ot;e.state=t,t.window=null;const o=ot(e,i);return o!==C&&(e.state=null),o};let X,W,lt=!0;const Ut=e=>{if(lt){X=new Int32Array(512),W=new Int32Array(32);let i=0;for(;i<144;)e.lens[i++]=8;for(;i<256;)e.lens[i++]=9;for(;i<280;)e.lens[i++]=7;for(;i<288;)e.lens[i++]=8;for(z(1,e.lens,0,288,X,0,e.work,{bits:9}),i=0;i<32;)e.lens[i++]=5;z(2,e.lens,0,32,W,0,e.work,{bits:5}),lt=!1}e.lencode=X,e.lenbits=9,e.distcode=W,e.distbits=5},dt=(e,i,t,o)=>{let s;const r=e.state;return r.window===null&&(r.wsize=1<=r.wsize?(r.window.set(i.subarray(t-r.wsize,t),0),r.wnext=0,r.whave=r.wsize):(s=r.wsize-r.wnext,s>o&&(s=o),r.window.set(i.subarray(t-o,t-o+s),r.wnext),(o-=s)?(r.window.set(i.subarray(t-o,t),0),r.wnext=o,r.whave=r.wsize):(r.wnext+=s,r.wnext===r.wsize&&(r.wnext=0),r.whavest(e,15),inflateInit2:st,inflate:(e,i)=>{let t,o,s,r,h,l,g,n,a,Z,w,d,S,p,u,y,k,f,_,E,c,x,m=0;const b=new Uint8Array(4);let v,A;const N=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return T;t=e.state,t.mode===D&&(t.mode=13),h=e.next_out,s=e.output,g=e.avail_out,r=e.next_in,o=e.input,l=e.avail_in,n=t.hold,a=t.bits,Z=l,w=g,x=C;t:for(;;)switch(t.mode){case 1:if(t.wrap===0){t.mode=13;break}for(;a<16;){if(l===0)break t;l--,n+=o[r++]<>>8&255,t.check=U(t.check,b,2,0),n=0,a=0,t.mode=2;break}if(t.flags=0,t.head&&(t.head.done=!1),!(1&t.wrap)||(((255&n)<<8)+(n>>8))%31){e.msg="incorrect header check",t.mode=R;break}if((15&n)!==it){e.msg="unknown compression method",t.mode=R;break}if(n>>>=4,a-=4,c=8+(15&n),t.wbits===0)t.wbits=c;else if(c>t.wbits){e.msg="invalid window size",t.mode=R;break}t.dmax=1<>8&1),512&t.flags&&(b[0]=255&n,b[1]=n>>>8&255,t.check=U(t.check,b,2,0)),n=0,a=0,t.mode=3;case 3:for(;a<32;){if(l===0)break t;l--,n+=o[r++]<>>8&255,b[2]=n>>>16&255,b[3]=n>>>24&255,t.check=U(t.check,b,4,0)),n=0,a=0,t.mode=4;case 4:for(;a<16;){if(l===0)break t;l--,n+=o[r++]<>8),512&t.flags&&(b[0]=255&n,b[1]=n>>>8&255,t.check=U(t.check,b,2,0)),n=0,a=0,t.mode=5;case 5:if(1024&t.flags){for(;a<16;){if(l===0)break t;l--,n+=o[r++]<>>8&255,t.check=U(t.check,b,2,0)),n=0,a=0}else t.head&&(t.head.extra=null);t.mode=6;case 6:if(1024&t.flags&&(d=t.length,d>l&&(d=l),d&&(t.head&&(c=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(o.subarray(r,r+d),c)),512&t.flags&&(t.check=U(t.check,o,d,r)),l-=d,r+=d,t.length-=d),t.length))break t;t.length=0,t.mode=7;case 7:if(2048&t.flags){if(l===0)break t;d=0;do c=o[r+d++],t.head&&c&&t.length<65536&&(t.head.name+=String.fromCharCode(c));while(c&&d>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=D;break;case 10:for(;a<32;){if(l===0)break t;l--,n+=o[r++]<>>=7&a,a-=7&a,t.mode=27;break}for(;a<3;){if(l===0)break t;l--,n+=o[r++]<>>=1,a-=1,3&n){case 0:t.mode=14;break;case 1:if(Ut(t),t.mode=20,i===j){n>>>=2,a-=2;break t}break;case 2:t.mode=17;break;case 3:e.msg="invalid block type",t.mode=R}n>>>=2,a-=2;break;case 14:for(n>>>=7&a,a-=7&a;a<32;){if(l===0)break t;l--,n+=o[r++]<>>16^65535)){e.msg="invalid stored block lengths",t.mode=R;break}if(t.length=65535&n,n=0,a=0,t.mode=15,i===j)break t;case 15:t.mode=16;case 16:if(d=t.length,d){if(d>l&&(d=l),d>g&&(d=g),d===0)break t;s.set(o.subarray(r,r+d),h),l-=d,r+=d,g-=d,h+=d,t.length-=d;break}t.mode=D;break;case 17:for(;a<14;){if(l===0)break t;l--,n+=o[r++]<>>=5,a-=5,t.ndist=1+(31&n),n>>>=5,a-=5,t.ncode=4+(15&n),n>>>=4,a-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=R;break}t.have=0,t.mode=18;case 18:for(;t.have>>=3,a-=3}for(;t.have<19;)t.lens[N[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,v={bits:t.lenbits},x=z(0,t.lens,0,19,t.lencode,0,t.work,v),t.lenbits=v.bits,x){e.msg="invalid code lengths set",t.mode=R;break}t.have=0,t.mode=19;case 19:for(;t.have>>24,y=m>>>16&255,k=65535&m,!(u<=a);){if(l===0)break t;l--,n+=o[r++]<>>=u,a-=u,t.lens[t.have++]=k;else{if(k===16){for(A=u+2;a>>=u,a-=u,t.have===0){e.msg="invalid bit length repeat",t.mode=R;break}c=t.lens[t.have-1],d=3+(3&n),n>>>=2,a-=2}else if(k===17){for(A=u+3;a>>=u,a-=u,c=0,d=3+(7&n),n>>>=3,a-=3}else{for(A=u+7;a>>=u,a-=u,c=0,d=11+(127&n),n>>>=7,a-=7}if(t.have+d>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=R;break}for(;d--;)t.lens[t.have++]=c}}if(t.mode===R)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=R;break}if(t.lenbits=9,v={bits:t.lenbits},x=z(1,t.lens,0,t.nlen,t.lencode,0,t.work,v),t.lenbits=v.bits,x){e.msg="invalid literal/lengths set",t.mode=R;break}if(t.distbits=6,t.distcode=t.distdyn,v={bits:t.distbits},x=z(2,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,v),t.distbits=v.bits,x){e.msg="invalid distances set",t.mode=R;break}if(t.mode=20,i===j)break t;case 20:t.mode=21;case 21:if(l>=6&&g>=258){e.next_out=h,e.avail_out=g,e.next_in=r,e.avail_in=l,t.hold=n,t.bits=a,vt(e,w),h=e.next_out,s=e.output,g=e.avail_out,r=e.next_in,o=e.input,l=e.avail_in,n=t.hold,a=t.bits,t.mode===D&&(t.back=-1);break}for(t.back=0;m=t.lencode[n&(1<>>24,y=m>>>16&255,k=65535&m,!(u<=a);){if(l===0)break t;l--,n+=o[r++]<>f)],u=m>>>24,y=m>>>16&255,k=65535&m,!(f+u<=a);){if(l===0)break t;l--,n+=o[r++]<>>=f,a-=f,t.back+=f}if(n>>>=u,a-=u,t.back+=u,t.length=k,y===0){t.mode=26;break}if(32&y){t.back=-1,t.mode=D;break}if(64&y){e.msg="invalid literal/length code",t.mode=R;break}t.extra=15&y,t.mode=22;case 22:if(t.extra){for(A=t.extra;a>>=t.extra,a-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=23;case 23:for(;m=t.distcode[n&(1<>>24,y=m>>>16&255,k=65535&m,!(u<=a);){if(l===0)break t;l--,n+=o[r++]<>f)],u=m>>>24,y=m>>>16&255,k=65535&m,!(f+u<=a);){if(l===0)break t;l--,n+=o[r++]<>>=f,a-=f,t.back+=f}if(n>>>=u,a-=u,t.back+=u,64&y){e.msg="invalid distance code",t.mode=R;break}t.offset=k,t.extra=15&y,t.mode=24;case 24:if(t.extra){for(A=t.extra;a>>=t.extra,a-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=R;break}t.mode=25;case 25:if(g===0)break t;if(d=w-g,t.offset>d){if(d=t.offset-d,d>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=R;break}d>t.wnext?(d-=t.wnext,S=t.wsize-d):S=t.wnext-d,d>t.length&&(d=t.length),p=t.window}else p=s,S=h-t.offset,d=t.length;d>g&&(d=g),g-=d,t.length-=d;do s[h++]=p[S++];while(--d);t.length===0&&(t.mode=21);break;case 26:if(g===0)break t;s[h++]=t.length,g--,t.mode=21;break;case 27:if(t.wrap){for(;a<32;){if(l===0)break t;l--,n|=o[r++]<{if(!e||!e.state)return T;let i=e.state;return i.window&&(i.window=null),e.state=null,C},inflateGetHeader:(e,i)=>{if(!e||!e.state)return T;const t=e.state;return(2&t.wrap)==0?T:(t.head=i,i.done=!1,C)},inflateSetDictionary:(e,i)=>{const t=i.length;let o,s,r;return e&&e.state?(o=e.state,o.wrap!==0&&o.mode!==11?T:o.mode===11&&(s=1,s=B(s,i,t,0),s!==o.check)?tt:(r=dt(e,i,t,t),r?(o.mode=31,et):(o.havedict=1,C))):T},inflateInfo:"pako inflate (from Nodeca project)"};const Dt=(e,i)=>Object.prototype.hasOwnProperty.call(e,i);var It=function(e){const i=Array.prototype.slice.call(arguments,1);for(;i.length;){const t=i.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const o in t)Dt(t,o)&&(e[o]=t[o])}}return e},Bt=e=>{let i=0;for(let o=0,s=e.length;o=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;F[254]=F[254]=1;var Ct=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let i,t,o,s,r,h=e.length,l=0;for(s=0;s>>6,i[r++]=128|63&t):t<65536?(i[r++]=224|t>>>12,i[r++]=128|t>>>6&63,i[r++]=128|63&t):(i[r++]=240|t>>>18,i[r++]=128|t>>>12&63,i[r++]=128|t>>>6&63,i[r++]=128|63&t);return i},Nt=(e,i)=>{const t=i||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,i));let o,s;const r=new Array(2*t);for(s=0,o=0;o4)r[s++]=65533,o+=l-1;else{for(h&=l===2?31:l===3?15:7;l>1&&o1?r[s++]=65533:h<65536?r[s++]=h:(h-=65536,r[s++]=55296|h>>10&1023,r[s++]=56320|1023&h)}}return((h,l)=>{if(l<65534&&h.subarray&&ft)return String.fromCharCode.apply(null,h.length===l?h:h.subarray(0,l));let g="";for(let n=0;n{(i=i||e.length)>e.length&&(i=e.length);let t=i-1;for(;t>=0&&(192&e[t])==128;)t--;return t<0||t===0?i:t+F[e[t]]>i?t:i},q={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"},Ft=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},Lt=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 ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_FINISH:Ht,Z_OK:L,Z_STREAM_END:J,Z_NEED_DICT:Q,Z_STREAM_ERROR:jt,Z_DATA_ERROR:ct,Z_MEM_ERROR:Kt}=G;function M(e){this.options=It({chunkSize:65536,windowBits:15,to:""},e||{});const i=this.options;i.raw&&i.windowBits>=0&&i.windowBits<16&&(i.windowBits=-i.windowBits,i.windowBits===0&&(i.windowBits=-15)),!(i.windowBits>=0&&i.windowBits<16)||e&&e.windowBits||(i.windowBits+=32),i.windowBits>15&&i.windowBits<48&&(15&i.windowBits)==0&&(i.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ft,this.strm.avail_out=0;let t=I.inflateInit2(this.strm,i.windowBits);if(t!==L)throw new Error(q[t]);if(this.header=new Lt,I.inflateGetHeader(this.strm,this.header),i.dictionary&&(typeof i.dictionary=="string"?i.dictionary=Ct(i.dictionary):ht.call(i.dictionary)==="[object ArrayBuffer]"&&(i.dictionary=new Uint8Array(i.dictionary)),i.raw&&(t=I.inflateSetDictionary(this.strm,i.dictionary),t!==L)))throw new Error(q[t])}function V(e,i){const t=new M(i);if(t.push(e),t.err)throw t.msg||q[t.err];return t.result}M.prototype.push=function(e,i){const t=this.strm,o=this.options.chunkSize,s=this.options.dictionary;let r,h,l;if(this.ended)return!1;for(h=i===~~i?i:i===!0?Ht:Mt,ht.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(o),t.next_out=0,t.avail_out=o),r=I.inflate(t,h),r===Q&&s&&(r=I.inflateSetDictionary(t,s),r===L?r=I.inflate(t,h):r===ct&&(r=Q));t.avail_in>0&&r===J&&t.state.wrap>0&&e[t.next_in]!==0;)I.inflateReset(t),r=I.inflate(t,h);switch(r){case jt:case ct:case Q:case Kt:return this.onEnd(r),this.ended=!0,!1}if(l=t.avail_out,t.next_out&&(t.avail_out===0||r===J))if(this.options.to==="string"){let g=zt(t.output,t.next_out),n=t.next_out-g,a=Nt(t.output,g);t.next_out=n,t.avail_out=o-n,n&&t.output.set(t.output.subarray(g,g+n),0),this.onData(a)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(r!==L||l!==0){if(r===J)return r=I.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(t.avail_in===0)break}}return!0},M.prototype.onData=function(e){this.chunks.push(e)},M.prototype.onEnd=function(e){e===L&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Bt(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var ut=M,wt=V,bt=function(e,i){return(i=i||{}).raw=!0,V(e,i)},mt=V,kt=G,Pt={Inflate:ut,inflate:wt,inflateRaw:bt,ungzip:mt,constants:kt};O.Inflate=ut,O.constants=kt,O.default=Pt,O.inflate=wt,O.inflateRaw=bt,O.ungzip=mt,Object.defineProperty(O,"__esModule",{value:!0})});