Файл: js/deflate/deflateinflate.min.js
Строк: 1370
<?php
/*
Copyright (c) 2012 Gildas Lormeau. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the distribution.
3. The names of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JCRAFT,
INC. OR ANY CONTRIBUTORS TO THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* This program is based on JZlib 1.0.2 ymnk, JCraft,Inc.
* JZlib is based on zlib-1.1.3, so all credit should go authors
* Jean-loup Gailly(jloup@gzip.org) and Mark Adler(madler@alumni.caltech.edu)
* and contributors of zlib.
*/
(function(R){function m(){var b=this;b.build_tree=function(a){var z=b.dyn_tree,c=b.stat_desc.static_tree,g=b.stat_desc.elems,h,A=-1,q;a.heap_len=0;a.heap_max=ta;for(h=0;h<g;h++)0!==z[2*h]?(a.heap[++a.heap_len]=A=h,a.depth[h]=0):z[2*h+1]=0;for(;2>a.heap_len;)q=a.heap[++a.heap_len]=2>A?++A:0,z[2*q]=1,a.depth[q]=0,a.opt_len--,c&&(a.static_len-=c[2*q+1]);b.max_code=A;for(h=Math.floor(a.heap_len/2);1<=h;h--)a.pqdownheap(z,h);q=g;do h=a.heap[1],a.heap[1]=a.heap[a.heap_len--],a.pqdownheap(z,1),c=a.heap[1],
a.heap[--a.heap_max]=h,a.heap[--a.heap_max]=c,z[2*q]=z[2*h]+z[2*c],a.depth[q]=Math.max(a.depth[h],a.depth[c])+1,z[2*h+1]=z[2*c+1]=q,a.heap[1]=q++,a.pqdownheap(z,1);while(2<=a.heap_len);a.heap[--a.heap_max]=a.heap[1];h=b.dyn_tree;for(var A=b.stat_desc.static_tree,m=b.stat_desc.extra_bits,k=b.stat_desc.extra_base,t=b.stat_desc.max_length,w,H,v=0,g=0;g<=T;g++)a.bl_count[g]=0;h[2*a.heap[a.heap_max]+1]=0;for(q=a.heap_max+1;q<ta;q++)c=a.heap[q],g=h[2*h[2*c+1]+1]+1,g>t&&(g=t,v++),h[2*c+1]=g,c>b.max_code||
(a.bl_count[g]++,w=0,c>=k&&(w=m[c-k]),H=h[2*c],a.opt_len+=H*(g+w),A&&(a.static_len+=H*(A[2*c+1]+w)));if(0!==v){do{for(g=t-1;0===a.bl_count[g];)g--;a.bl_count[g]--;a.bl_count[g+1]+=2;a.bl_count[t]--;v-=2}while(0<v);for(g=t;0!==g;g--)for(c=a.bl_count[g];0!==c;)A=a.heap[--q],A>b.max_code||(h[2*A+1]!=g&&(a.opt_len+=(g-h[2*A+1])*h[2*A],h[2*A+1]=g),c--)}h=b.max_code;q=a.bl_count;a=[];c=0;for(g=1;g<=T;g++)a[g]=c=c+q[g-1]<<1;for(q=0;q<=h;q++)if(m=z[2*q+1],0!==m){c=z;g=2*q;A=a[m]++;k=0;do k|=A&1,A>>>=1,k<<=
1;while(0<--m);c[g]=k>>>1}}}function t(b,a,k,c,g){this.static_tree=b;this.extra_bits=a;this.extra_base=k;this.elems=c;this.max_length=g}function D(b,a,k,c,g){this.good_length=b;this.max_lazy=a;this.nice_length=k;this.max_chain=c;this.func=g}function Va(b,a,k,c){var g=b[2*a];b=b[2*k];return g<b||g==b&&c[a]<=c[k]}function cb(){function b(){var a;for(a=0;a<Da;a++)I[2*a]=0;for(a=0;a<Ea;a++)W[2*a]=0;for(a=0;a<Fa;a++)E[2*a]=0;I[2*ia]=1;M=Ga=l.opt_len=l.static_len=0}function a(a,r){var d,j=-1,s,b=a[1],g=
0,e=7,c=4;0===b&&(e=138,c=3);a[2*(r+1)+1]=65535;for(d=0;d<=r;d++)s=b,b=a[2*(d+1)+1],++g<e&&s==b||(g<c?E[2*s]+=g:0!==s?(s!=j&&E[2*s]++,E[2*Wa]++):10>=g?E[2*Xa]++:E[2*Ya]++,g=0,j=s,0===b?(e=138,c=3):s==b?(e=6,c=3):(e=7,c=4))}function z(a){l.pending_buf[l.pending++]=a}function c(a){z(a&255);z(a>>>8&255)}function g(a,r){B>Ha-r?(G|=a<<B&65535,c(G),G=a>>>Ha-B,B+=r-Ha):(G|=a<<B&65535,B+=r)}function h(a,r){var d=2*a;g(r[d]&65535,r[d+1]&65535)}function A(a,r){var d,j=-1,s,b=a[1],e=0,c=7,f=4;0===b&&(c=138,
f=3);for(d=0;d<=r;d++)if(s=b,b=a[2*(d+1)+1],!(++e<c&&s==b)){if(e<f){do h(s,E);while(0!==--e)}else 0!==s?(s!=j&&(h(s,E),e--),h(Wa,E),g(e-3,2)):10>=e?(h(Xa,E),g(e-3,3)):(h(Ya,E),g(e-11,7));e=0;j=s;0===b?(c=138,f=3):s==b?(c=6,f=3):(c=7,f=4)}}function q(){16==B?(c(G),B=G=0):8<=B&&(z(G&255),G>>>=8,B-=8)}function ha(a,r){var d,j,b;l.pending_buf[ja+2*M]=a>>>8&255;l.pending_buf[ja+2*M+1]=a&255;l.pending_buf[Ia+M]=r&255;M++;0===a?I[2*r]++:(Ga++,a--,I[2*(m._length_code[r]+ka+1)]++,W[2*m.d_code(a)]++);if(0===
(M&8191)&&2<F){d=8*M;j=e-N;for(b=0;b<Ea;b++)d+=W[2*b]*(5+m.extra_dbits[b]);if(Ga<Math.floor(M/2)&&d>>>3<Math.floor(j/2))return!0}return M==Z-1}function D(a,r){var d,j,b=0,e,c;if(0!==M){do d=l.pending_buf[ja+2*b]<<8&65280|l.pending_buf[ja+2*b+1]&255,j=l.pending_buf[Ia+b]&255,b++,0===d?h(j,a):(e=m._length_code[j],h(e+ka+1,a),c=m.extra_lbits[e],0!==c&&(j-=m.base_length[e],g(j,c)),d--,e=m.d_code(d),h(e,r),c=m.extra_dbits[e],0!==c&&(d-=m.base_dist[e],g(d,c)));while(b<M)}h(ia,a);la=a[2*ia+1]}function R(){8<
B?c(G):0<B&&z(G&255);B=G=0}function Ua(a,r,d){g((db<<1)+(d?1:0),3);R();la=8;c(r);c(~r);l.pending_buf.set(f.subarray(a,a+r),l.pending);l.pending+=r}function H(c){var r=0<=N?N:-1,d=e-N,j,s,f=0;if(0<F){if(l.data_type==Za){for(s=j=f=0;7>f;)s+=I[2*f],f++;for(;128>f;)j+=I[2*f],f++;for(;f<ka;)s+=I[2*f],f++;l.data_type=(s>j>>>2?eb:fb)&255}ma.build_tree(l);na.build_tree(l);a(I,ma.max_code);a(W,na.max_code);Ja.build_tree(l);for(f=Fa-1;3<=f&&0===E[2*m.bl_order[f]+1];f--);l.opt_len+=3*(f+1)+14;j=l.opt_len+3+
7>>>3;s=l.static_len+3+7>>>3;s<=j&&(j=s)}else j=s=d+5;if(d+4<=j&&-1!=r)Ua(r,d,c);else if(s==j)g((Ka<<1)+(c?1:0),3),D(t.static_ltree,t.static_dtree);else{g((gb<<1)+(c?1:0),3);r=ma.max_code+1;d=na.max_code+1;f+=1;g(r-257,5);g(d-1,5);g(f-4,4);for(j=0;j<f;j++)g(E[2*m.bl_order[j]+1],3);A(I,r-1);A(W,d-1);D(I,W)}b();c&&R();N=e;x.flush_pending()}function T(){var a,r,d,b;do{b=ra-p-e;if(0===b&&0===e&&0===p)b=u;else if(-1==b)b--;else if(e>=u+u-v){f.set(f.subarray(u,u+u),0);$-=u;e-=u;N-=u;d=a=aa;do r=y[--d]&
65535,y[d]=r>=u?r-u:0;while(0!==--a);d=a=u;do r=S[--d]&65535,S[d]=r>=u?r-u:0;while(0!==--a);b+=u}if(0===x.avail_in)break;a=x.read_buf(f,e+p,b);p+=a;p>=k&&(n=f[e]&255,n=(n<<U^f[e+1]&255)&V)}while(p<v&&0!==x.avail_in)}function ga(a){var b=65535,d;for(b>La-5&&(b=La-5);;){if(1>=p){T();if(0===p&&a==ba)return J;if(0===p)break}e+=p;p=0;d=N+b;if(0===e||e>=d)if(p=e-d,e=d,H(!1),0===x.avail_out)return J;if(e-N>=u-v&&(H(!1),0===x.avail_out))return J}H(a==w);return 0===x.avail_out?a==w?oa:J:a==w?ua:va}function fa(a){var b=
Ma,d=e,j,c=K,g=e>u-v?e-(u-v):0,h=Na,l=X,k=e+wa,n=f[d+c-1],q=f[d+c];K>=Oa&&(b>>=2);h>p&&(h=p);do if(j=a,!(f[j+c]!=q||f[j+c-1]!=n||f[j]!=f[d]||f[++j]!=f[d+1])){d+=2;j++;do;while(f[++d]==f[++j]&&f[++d]==f[++j]&&f[++d]==f[++j]&&f[++d]==f[++j]&&f[++d]==f[++j]&&f[++d]==f[++j]&&f[++d]==f[++j]&&f[++d]==f[++j]&&d<k);j=wa-(k-d);d=k-wa;if(j>c){$=a;c=j;if(j>=h)break;n=f[d+c-1];q=f[d+c]}}while((a=S[a&l]&65535)>g&&0!==--b);return c<=p?c:p}function ta(a){for(var b=0,d,c;;){if(p<v){T();if(p<v&&a==ba)return J;if(0===
p)break}p>=k&&(n=(n<<U^f[e+(k-1)]&255)&V,b=y[n]&65535,S[e&X]=y[n],y[n]=e);K=C;sa=$;C=k-1;if(0!==b&&(K<xa&&(e-b&65535)<=u-v)&&(pa!=ya&&(C=fa(b)),5>=C&&(pa==hb||C==k&&4096<e-$)))C=k-1;if(K>=k&&C<=K){c=e+p-k;d=ha(e-1-sa,K-k);p-=K-1;K-=2;do++e<=c&&(n=(n<<U^f[e+(k-1)]&255)&V,b=y[n]&65535,S[e&X]=y[n],y[n]=e);while(0!==--K);ca=0;C=k-1;e++;if(d&&(H(!1),0===x.avail_out))return J}else if(0!==ca){if((d=ha(0,f[e-1]&255))&&H(!1),e++,p--,0===x.avail_out)return J}else ca=1,e++,p--}0!==ca&&(ha(0,f[e-1]&255),ca=0);
H(a==w);return 0===x.avail_out?a==w?oa:J:a==w?ua:va}var l=this,x,L,La,da,u,Pa,X,f,ra,S,y,n,aa,Qa,V,U,N,C,sa,ca,e,$,p,K,Ma,xa,F,pa,Oa,Na,I,W,E,ma=new m,na=new m,Ja=new m;l.depth=[];var Ia,Z,M,ja,Ga,la,G,B;l.bl_count=[];l.heap=[];I=[];W=[];E=[];l.pqdownheap=function(a,b){for(var d=l.heap,c=d[b],e=b<<1;e<=l.heap_len;){e<l.heap_len&&Va(a,d[e+1],d[e],l.depth)&&e++;if(Va(a,c,d[e],l.depth))break;d[b]=d[e];b=e;e<<=1}d[b]=c};l.deflateInit=function(a,c,d,j,g,h){j||(j=Ra);g||(g=ib);h||(h=jb);a.msg=null;c==Sa&&
(c=6);if(1>g||g>kb||j!=Ra||9>d||15<d||0>c||9<c||0>h||h>ya)return O;a.dstate=l;Pa=d;u=1<<Pa;X=u-1;Qa=g+7;aa=1<<Qa;V=aa-1;U=Math.floor((Qa+k-1)/k);f=new Uint8Array(2*u);S=[];y=[];Z=1<<g+6;l.pending_buf=new Uint8Array(4*Z);La=4*Z;ja=Math.floor(Z/2);Ia=3*Z;F=c;pa=h;a.total_in=a.total_out=0;a.msg=null;a.data_type=Za;l.pending=0;l.pending_out=0;L=za;da=ba;ma.dyn_tree=I;ma.stat_desc=t.static_l_desc;na.dyn_tree=W;na.stat_desc=t.static_d_desc;Ja.dyn_tree=E;Ja.stat_desc=t.static_bl_desc;B=G=0;la=8;b();ra=2*
u;for(a=y[aa-1]=0;a<aa-1;a++)y[a]=0;xa=P[F].max_lazy;Oa=P[F].good_length;Na=P[F].nice_length;Ma=P[F].max_chain;p=N=e=0;C=K=k-1;n=ca=0;return Q};l.deflateEnd=function(){if(L!=Ta&&L!=za&&L!=qa)return O;f=S=y=l.pending_buf=null;l.dstate=null;return L==za?lb:Q};l.deflateParams=function(a,b,d){var c=Q;b==Sa&&(b=6);if(0>b||9<b||0>d||d>ya)return O;P[F].func!=P[b].func&&0!==a.total_in&&(c=a.deflate($a));F!=b&&(F=b,xa=P[F].max_lazy,Oa=P[F].good_length,Na=P[F].nice_length,Ma=P[F].max_chain);pa=d;return c};
l.deflateSetDictionary=function(a,b,d){a=d;var c=0;if(!b||L!=Ta)return O;if(a<k)return Q;a>u-v&&(a=u-v,c=d-a);f.set(b.subarray(c,c+a),0);N=e=a;n=f[0]&255;n=(n<<U^f[1]&255)&V;for(b=0;b<=a-k;b++)n=(n<<U^f[b+(k-1)]&255)&V,S[b&X]=y[n],y[n]=b;return Q};l.deflate=function(a,b){var d,c,s;if(b>w||0>b)return O;if(!a.next_out||!a.next_in&&0!==a.avail_in||L==qa&&b!=w)return a.msg=Aa[Ba-O],O;if(0===a.avail_out)return a.msg=Aa[Ba-ea],ea;x=a;d=da;da=b;L==Ta&&(c=Ra+(Pa-8<<4)<<8,s=(F-1&255)>>1,3<s&&(s=3),c|=s<<6,
0!==e&&(c|=mb),L=za,c+=31-c%31,z(c>>8&255),z(c&255));if(0!==l.pending){if(x.flush_pending(),0===x.avail_out)return da=-1,Q}else if(0===x.avail_in&&b<=d&&b!=w)return x.msg=Aa[Ba-ea],ea;if(L==qa&&0!==x.avail_in)return a.msg=Aa[Ba-ea],ea;if(0!==x.avail_in||0!==p||b!=ba&&L!=qa){d=-1;switch(P[F].func){case ab:d=ga(b);break;case Ca:a:{for(d=0;;){if(p<v){T();if(p<v&&b==ba){d=J;break a}if(0===p)break}p>=k&&(n=(n<<U^f[e+(k-1)]&255)&V,d=y[n]&65535,S[e&X]=y[n],y[n]=e);0!==d&&(e-d&65535)<=u-v&&pa!=ya&&(C=fa(d));
if(C>=k)if(c=ha(e-$,C-k),p-=C,C<=xa&&p>=k){C--;do e++,n=(n<<U^f[e+(k-1)]&255)&V,d=y[n]&65535,S[e&X]=y[n],y[n]=e;while(0!==--C);e++}else e+=C,C=0,n=f[e]&255,n=(n<<U^f[e+1]&255)&V;else c=ha(0,f[e]&255),p--,e++;if(c&&(H(!1),0===x.avail_out)){d=J;break a}}H(b==w);d=0===x.avail_out?b==w?oa:J:b==w?ua:va}break;case Y:d=ta(b)}if(d==oa||d==ua)L=qa;if(d==J||d==oa)return 0===x.avail_out&&(da=-1),Q;if(d==va){if(b==$a)g(Ka<<1,3),h(ia,t.static_ltree),q(),9>1+la+10-B&&(g(Ka<<1,3),h(ia,t.static_ltree),q()),la=7;
else if(Ua(0,0,!1),b==nb)for(d=0;d<aa;d++)y[d]=0;x.flush_pending();if(0===x.avail_out)return da=-1,Q}}return b!=w?Q:bb}}function ra(){this.total_out=this.avail_out=this.total_in=this.avail_in=this.next_out_index=this.next_in_index=0}function fa(b){var a=new ra,k=ba,c=new Uint8Array(512);"undefined"==typeof b&&(b=Sa);a.deflateInit(b);a.next_out=c;this.append=function(b,h){var m,q=[],t=0,v=0,w=0,D;if(b.length){a.next_in_index=0;a.next_in=b;a.avail_in=b.length;do{a.next_out_index=0;a.avail_out=512;m=
a.deflate(k);if(m!=Q)throw"deflating: "+a.msg;a.next_out_index&&(512==a.next_out_index?q.push(new Uint8Array(c)):q.push(new Uint8Array(c.subarray(0,a.next_out_index))));w+=a.next_out_index;h&&(0<a.next_in_index&&a.next_in_index!=t)&&(h(a.next_in_index),t=a.next_in_index)}while(0<a.avail_in||0===a.avail_out);D=new Uint8Array(w);q.forEach(function(a){D.set(a,v);v+=a.length});return D}};this.flush=function(){var b,h=[],k=0,q=0,m;do{a.next_out_index=0;a.avail_out=512;b=a.deflate(w);if(b!=bb&&b!=Q)throw"deflating: "+
a.msg;0<512-a.avail_out&&h.push(new Uint8Array(c.subarray(0,a.next_out_index)));q+=a.next_out_index}while(0<a.avail_in||0===a.avail_out);a.deflateEnd();m=new Uint8Array(q);h.forEach(function(a){m.set(a,k);k+=a.length});return m}}var T=15,Ea=30,Fa=19,ka=256,Da=ka+1+29,ta=2*Da+1,ia=256,Wa=16,Xa=17,Ya=18,Ha=16,Sa=-1,hb=1,ya=2,jb=0,ba=0,$a=1,nb=3,w=4,Q=0,bb=1,Ba=2,O=-2,lb=-3,ea=-5,sa=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,
11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,
28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];m._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,
16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,
26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28];m.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0];m.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576];m.d_code=function(b){return 256>b?sa[b]:sa[256+(b>>>7)]};m.extra_lbits=[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];m.extra_dbits=[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];m.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];m.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];t.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,
8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,
8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,
399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8];t.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5];t.static_l_desc=
new t(t.static_ltree,m.extra_lbits,ka+1,Da,T);t.static_d_desc=new t(t.static_dtree,m.extra_dbits,0,Ea,T);t.static_bl_desc=new t(null,m.extra_blbits,0,Fa,7);var kb=9,ib=8,ab=0,Ca=1,Y=2,P=[new D(0,0,0,0,ab),new D(4,4,8,4,Ca),new D(4,5,16,8,Ca),new D(4,6,32,32,Ca),new D(4,4,16,16,Y),new D(8,16,32,32,Y),new D(8,16,128,128,Y),new D(8,32,128,256,Y),new D(32,128,258,1024,Y),new D(32,258,258,4096,Y)],Aa="need dictionary;stream end;;;stream error;data error;;buffer error;;".split(";"),J=0,va=1,oa=2,ua=3,mb=
32,Ta=42,za=113,qa=666,Ra=8,db=0,Ka=1,gb=2,eb=0,fb=1,Za=2,k=3,wa=258,v=wa+k+1;ra.prototype={deflateInit:function(b,a){this.dstate=new cb;a||(a=T);return this.dstate.deflateInit(this,b,a)},deflate:function(b){return!this.dstate?O:this.dstate.deflate(this,b)},deflateEnd:function(){if(!this.dstate)return O;var b=this.dstate.deflateEnd();this.dstate=null;return b},deflateParams:function(b,a){return!this.dstate?O:this.dstate.deflateParams(this,b,a)},deflateSetDictionary:function(b,a){return!this.dstate?
O:this.dstate.deflateSetDictionary(this,b,a)},read_buf:function(b,a,k){var c=this.avail_in;c>k&&(c=k);if(0===c)return 0;this.avail_in-=c;b.set(this.next_in.subarray(this.next_in_index,this.next_in_index+c),a);this.next_in_index+=c;this.total_in+=c;return c},flush_pending:function(){var b=this.dstate.pending;b>this.avail_out&&(b=this.avail_out);0!==b&&(this.next_out.set(this.dstate.pending_buf.subarray(this.dstate.pending_out,this.dstate.pending_out+b),this.next_out_index),this.next_out_index+=b,this.dstate.pending_out+=
b,this.total_out+=b,this.avail_out-=b,this.dstate.pending-=b,0===this.dstate.pending&&(this.dstate.pending_out=0))}};var ga;R.zip?R.zip.Deflater=fa:(ga=new fa,R.addEventListener("message",function(b){b=b.data;b.init&&(ga=new fa(b.level),R.postMessage({oninit:!0}));b.append&&R.postMessage({onappend:!0,data:ga.append(b.data,function(a){R.postMessage({progress:!0,current:a})})});b.flush&&R.postMessage({onflush:!0,data:ga.flush()})},!1))})(this);
(function(R){function Y(){function h(a,h,s,p,J,C,b,c,g,e,d){var l,m,j,f,k,r,q,y,E,z;q=0;j=s;do n[a[h+q]]++,q++,j--;while(0!==j);if(n[0]==s)return b[0]=-1,c[0]=0,x;r=c[0];for(f=1;f<=G&&0===n[f];f++);k=f;r<f&&(r=f);for(j=G;0!==j&&0===n[j];j--);m=j;r>j&&(r=j);c[0]=r;for(c=1<<f;f<j;f++,c<<=1)if(0>(c-=n[f]))return B;if(0>(c-=n[j]))return B;n[j]+=c;w[1]=f=0;q=1;for(y=2;0!==--j;)w[y]=f+=n[q],y++,q++;q=j=0;do{if(0!==(f=a[h+q]))d[w[f]++]=j;q++}while(++j<s);s=w[m];q=w[0]=j=0;h=-1;E=-r;for(z=y=t[0]=0;k<=m;k++)for(a=
n[k];0!==a--;){for(;k>E+r;){h++;E+=r;z=m-E;z=z>r?r:z;if((l=1<<(f=k-E))>a+1)if(l-=a+1,y=k,f<z)for(;++f<z&&!((l<<=1)<=n[++y]);)l-=n[y];z=1<<f;if(e[0]+z>da)return B;t[h]=y=e[0];e[0]+=z;0!==h?(w[h]=j,u[0]=f,u[1]=r,f=j>>>E-r,u[2]=y-t[h-1]-f,g.set(u,3*(t[h-1]+f))):b[0]=y}u[1]=k-E;q>=s?u[0]=192:d[q]<p?(u[0]=256>d[q]?0:96,u[2]=d[q++]):(u[0]=C[d[q]-p]+16+64,u[2]=J[d[q++]-p]);l=1<<k-E;for(f=j>>>E;f<z;f+=l)g.set(u,3*(y+f));for(f=1<<k-1;0!==(j&f);f>>>=1)j^=f;j^=f;for(f=(1<<E)-1;(j&f)!=w[h];)h--,E-=r,f=(1<<E)-
1}return 0!==c&&1!=m?K:x}function p(h){var p;a||(a=[],s=[],n=new Int32Array(G+1),u=[],t=new Int32Array(G),w=new Int32Array(G+1));s.length<h&&(s=[]);for(p=0;p<h;p++)s[p]=0;for(p=0;p<G+1;p++)n[p]=0;for(p=0;3>p;p++)u[p]=0;t.set(n.subarray(0,G),0);w.set(n.subarray(0,G+1),0)}var a,s,n,u,t,w;this.inflate_trees_bits=function(n,u,x,w,t){p(19);a[0]=0;n=h(n,0,19,19,null,null,x,u,w,a,s);if(n==B)t.msg="oversubscribed dynamic bit lengths tree";else if(n==K||0===u[0])t.msg="incomplete dynamic bit lengths tree",
n=B;return n};this.inflate_trees_dynamic=function(n,u,t,w,J,C,b,c,g){p(288);a[0]=0;C=h(t,0,n,257,Aa,Ba,C,w,c,a,s);if(C!=x||0===w[0])return C==B?g.msg="oversubscribed literal/length tree":C!=ea&&(g.msg="incomplete literal/length tree",C=B),C;p(288);C=h(t,n,u,0,Ca,Da,b,J,c,a,s);return C!=x||0===J[0]&&257<n?(C==B?g.msg="oversubscribed distance tree":C==K?(g.msg="incomplete distance tree",C=B):C!=ea&&(g.msg="empty distance tree with lengths",C=B),C):x}}function Ea(){var h,p=0,a,s=0,n=0,u=0,t=0,w=0,Z=
0,O=0,M,P=0,J,C=0;this.init=function(b,c,g,e,d,l){h=U;Z=b;O=c;M=g;P=e;J=d;C=l;a=null};this.proc=function(b,c,g){var e,d,l=0,m=0,j=0,f,k,r,j=c.next_in_index;f=c.avail_in;l=b.bitb;m=b.bitk;k=b.write;for(r=k<b.read?b.read-k-1:b.end-k;;)switch(h){case U:if(258<=r&&10<=f){b.bitb=l;b.bitk=m;c.avail_in=f;c.total_in+=j-c.next_in_index;c.next_in_index=j;b.write=k;a:{g=M;l=P;m=J;j=C;f=b;k=c;var q=void 0,y=void 0,E=void 0,z=d=e=r=void 0,F=void 0,A=void 0,K=void 0,G=void 0,L=void 0,v=void 0,D=q=q=void 0,z=k.next_in_index,
F=k.avail_in;e=f.bitb;d=f.bitk;A=f.write;K=A<f.read?f.read-A-1:f.end-A;G=I[Z];L=I[O];do{for(;20>d;)F--,e|=(k.read_byte(z++)&255)<<d,d+=8;q=e&G;y=g;E=l;D=3*(E+q);if(0===(r=y[D]))e>>=y[D+1],d-=y[D+1],f.window[A++]=y[D+2],K--;else{do{e>>=y[D+1];d-=y[D+1];if(0!==(r&16)){r&=15;v=y[D+2]+(e&I[r]);e>>=r;for(d-=r;15>d;)F--,e|=(k.read_byte(z++)&255)<<d,d+=8;q=e&L;y=m;E=j;D=3*(E+q);r=y[D];do if(e>>=y[D+1],d-=y[D+1],0!==(r&16)){for(r&=15;d<r;)F--,e|=(k.read_byte(z++)&255)<<d,d+=8;q=y[D+2]+(e&I[r]);e>>=r;d-=r;
K-=v;if(A>=q)q=A-q,0<A-q&&2>A-q?(f.window[A++]=f.window[q++],f.window[A++]=f.window[q++]):(f.window.set(f.window.subarray(q,q+2),A),A+=2,q+=2),v-=2;else{q=A-q;do q+=f.end;while(0>q);r=f.end-q;if(v>r){v-=r;if(0<A-q&&r>A-q){do f.window[A++]=f.window[q++];while(0!==--r)}else f.window.set(f.window.subarray(q,q+r),A),A+=r;q=0}}if(0<A-q&&v>A-q){do f.window[A++]=f.window[q++];while(0!==--v)}else f.window.set(f.window.subarray(q,q+v),A),A+=v;break}else if(0===(r&64))q+=y[D+2],q+=e&I[r],D=3*(E+q),r=y[D];else{k.msg=
"invalid distance code";v=k.avail_in-F;v=d>>3<v?d>>3:v;F+=v;z-=v;d-=v<<3;f.bitb=e;f.bitk=d;k.avail_in=F;k.total_in+=z-k.next_in_index;k.next_in_index=z;f.write=A;g=B;break a}while(1);break}if(0===(r&64)){if(q+=y[D+2],q+=e&I[r],D=3*(E+q),0===(r=y[D])){e>>=y[D+1];d-=y[D+1];f.window[A++]=y[D+2];K--;break}}else{0!==(r&32)?(v=k.avail_in-F,v=d>>3<v?d>>3:v,F+=v,z-=v,d-=v<<3,f.bitb=e,f.bitk=d,k.avail_in=F,k.total_in+=z-k.next_in_index,k.next_in_index=z,f.write=A,g=N):(k.msg="invalid literal/length code",
v=k.avail_in-F,v=d>>3<v?d>>3:v,F+=v,z-=v,d-=v<<3,f.bitb=e,f.bitk=d,k.avail_in=F,k.total_in+=z-k.next_in_index,k.next_in_index=z,f.write=A,g=B);break a}}while(1)}}while(258<=K&&10<=F);v=k.avail_in-F;v=d>>3<v?d>>3:v;F+=v;z-=v;d-=v<<3;f.bitb=e;f.bitk=d;k.avail_in=F;k.total_in+=z-k.next_in_index;k.next_in_index=z;f.write=A;g=x}j=c.next_in_index;f=c.avail_in;l=b.bitb;m=b.bitk;k=b.write;r=k<b.read?b.read-k-1:b.end-k;if(g!=x){h=g==N?$:V;break}}n=Z;a=M;s=P;h=fa;case fa:for(e=n;m<e;){if(0!==f)g=x;else return b.bitb=
l,b.bitk=m,c.avail_in=f,c.total_in+=j-c.next_in_index,c.next_in_index=j,b.write=k,b.inflate_flush(c,g);f--;l|=(c.read_byte(j++)&255)<<m;m+=8}e=3*(s+(l&I[e]));l>>>=a[e+1];m-=a[e+1];d=a[e];if(0===d){u=a[e+2];h=ga;break}if(0!==(d&16)){t=d&15;p=a[e+2];h=ha;break}if(0===(d&64)){n=d;s=e/3+a[e+2];break}if(0!==(d&32)){h=$;break}h=V;c.msg="invalid literal/length code";g=B;b.bitb=l;b.bitk=m;c.avail_in=f;c.total_in+=j-c.next_in_index;c.next_in_index=j;b.write=k;return b.inflate_flush(c,g);case ha:for(e=t;m<
e;){if(0!==f)g=x;else return b.bitb=l,b.bitk=m,c.avail_in=f,c.total_in+=j-c.next_in_index,c.next_in_index=j,b.write=k,b.inflate_flush(c,g);f--;l|=(c.read_byte(j++)&255)<<m;m+=8}p+=l&I[e];l>>=e;m-=e;n=O;a=J;s=C;h=ia;case ia:for(e=n;m<e;){if(0!==f)g=x;else return b.bitb=l,b.bitk=m,c.avail_in=f,c.total_in+=j-c.next_in_index,c.next_in_index=j,b.write=k,b.inflate_flush(c,g);f--;l|=(c.read_byte(j++)&255)<<m;m+=8}e=3*(s+(l&I[e]));l>>=a[e+1];m-=a[e+1];d=a[e];if(0!==(d&16)){t=d&15;w=a[e+2];h=ja;break}if(0===
(d&64)){n=d;s=e/3+a[e+2];break}h=V;c.msg="invalid distance code";g=B;b.bitb=l;b.bitk=m;c.avail_in=f;c.total_in+=j-c.next_in_index;c.next_in_index=j;b.write=k;return b.inflate_flush(c,g);case ja:for(e=t;m<e;){if(0!==f)g=x;else return b.bitb=l,b.bitk=m,c.avail_in=f,c.total_in+=j-c.next_in_index,c.next_in_index=j,b.write=k,b.inflate_flush(c,g);f--;l|=(c.read_byte(j++)&255)<<m;m+=8}w+=l&I[e];l>>=e;m-=e;h=ka;case ka:for(e=k-w;0>e;)e+=b.end;for(;0!==p;){if(0===r&&(k==b.end&&0!==b.read&&(k=0,r=k<b.read?
b.read-k-1:b.end-k),0===r&&(b.write=k,g=b.inflate_flush(c,g),k=b.write,r=k<b.read?b.read-k-1:b.end-k,k==b.end&&0!==b.read&&(k=0,r=k<b.read?b.read-k-1:b.end-k),0===r)))return b.bitb=l,b.bitk=m,c.avail_in=f,c.total_in+=j-c.next_in_index,c.next_in_index=j,b.write=k,b.inflate_flush(c,g);b.window[k++]=b.window[e++];r--;e==b.end&&(e=0);p--}h=U;break;case ga:if(0===r&&(k==b.end&&0!==b.read&&(k=0,r=k<b.read?b.read-k-1:b.end-k),0===r&&(b.write=k,g=b.inflate_flush(c,g),k=b.write,r=k<b.read?b.read-k-1:b.end-
k,k==b.end&&0!==b.read&&(k=0,r=k<b.read?b.read-k-1:b.end-k),0===r)))return b.bitb=l,b.bitk=m,c.avail_in=f,c.total_in+=j-c.next_in_index,c.next_in_index=j,b.write=k,b.inflate_flush(c,g);g=x;b.window[k++]=u;r--;h=U;break;case $:7<m&&(m-=8,f++,j--);b.write=k;g=b.inflate_flush(c,g);k=b.write;if(b.read!=b.write)return b.bitb=l,b.bitk=m,c.avail_in=f,c.total_in+=j-c.next_in_index,c.next_in_index=j,b.write=k,b.inflate_flush(c,g);h=la;case la:return g=N,b.bitb=l,b.bitk=m,c.avail_in=f,c.total_in+=j-c.next_in_index,
c.next_in_index=j,b.write=k,b.inflate_flush(c,g);case V:return g=B,b.bitb=l,b.bitk=m,c.avail_in=f,c.total_in+=j-c.next_in_index,c.next_in_index=j,b.write=k,b.inflate_flush(c,g);default:return g=H,b.bitb=l,b.bitk=m,c.avail_in=f,c.total_in+=j-c.next_in_index,c.next_in_index=j,b.write=k,b.inflate_flush(c,g)}};this.free=function(){}}function Fa(h,p){var a=this,s=S,n=0,u=0,t=0,w,G=[0],O=[0],M=new Ea,P=0,J=new Int32Array(3*da),C=new Y;a.bitk=0;a.bitb=0;a.window=new Uint8Array(p);a.end=p;a.read=0;a.write=
0;a.reset=function(b,c){c&&(c[0]=0);s==W&&M.free(b);s=S;a.bitk=0;a.bitb=0;a.read=a.write=0};a.reset(h,null);a.inflate_flush=function(b,c){var g,e,d;e=b.next_out_index;d=a.read;g=(d<=a.write?a.write:a.end)-d;g>b.avail_out&&(g=b.avail_out);0!==g&&c==K&&(c=x);b.avail_out-=g;b.total_out+=g;b.next_out.set(a.window.subarray(d,d+g),e);e+=g;d+=g;d==a.end&&(d=0,a.write==a.end&&(a.write=0),g=a.write-d,g>b.avail_out&&(g=b.avail_out),0!==g&&c==K&&(c=x),b.avail_out-=g,b.total_out+=g,b.next_out.set(a.window.subarray(d,
d+g),e),e+=g,d+=g);b.next_out_index=e;a.read=d;return c};a.proc=function(b,c){var g,e,d,l,m,j,f;l=b.next_in_index;m=b.avail_in;e=a.bitb;d=a.bitk;j=a.write;for(f=j<a.read?a.read-j-1:a.end-j;;)switch(s){case S:for(;3>d;){if(0!==m)c=x;else return a.bitb=e,a.bitk=d,b.avail_in=m,b.total_in+=l-b.next_in_index,b.next_in_index=l,a.write=j,a.inflate_flush(b,c);m--;e|=(b.read_byte(l++)&255)<<d;d+=8}g=e&7;P=g&1;switch(g>>>1){case 0:e>>>=3;d-=3;g=d&7;e>>>=g;d-=g;s=aa;break;case 1:g=[];var k=[],h=[[]],q=[[]];
Y.inflate_trees_fixed(g,k,h,q);M.init(g[0],k[0],h[0],0,q[0],0);e>>>=3;d-=3;s=W;break;case 2:e>>>=3;d-=3;s=ma;break;case 3:return e>>>=3,d-=3,s=Q,b.msg="invalid block type",c=B,a.bitb=e,a.bitk=d,b.avail_in=m,b.total_in+=l-b.next_in_index,b.next_in_index=l,a.write=j,a.inflate_flush(b,c)}break;case aa:for(;32>d;){if(0!==m)c=x;else return a.bitb=e,a.bitk=d,b.avail_in=m,b.total_in+=l-b.next_in_index,b.next_in_index=l,a.write=j,a.inflate_flush(b,c);m--;e|=(b.read_byte(l++)&255)<<d;d+=8}if((~e>>>16&65535)!=
(e&65535))return s=Q,b.msg="invalid stored block lengths",c=B,a.bitb=e,a.bitk=d,b.avail_in=m,b.total_in+=l-b.next_in_index,b.next_in_index=l,a.write=j,a.inflate_flush(b,c);n=e&65535;e=d=0;s=0!==n?na:0!==P?X:S;break;case na:if(0===m||0===f&&(j==a.end&&0!==a.read&&(j=0,f=j<a.read?a.read-j-1:a.end-j),0===f&&(a.write=j,c=a.inflate_flush(b,c),j=a.write,f=j<a.read?a.read-j-1:a.end-j,j==a.end&&0!==a.read&&(j=0,f=j<a.read?a.read-j-1:a.end-j),0===f)))return a.bitb=e,a.bitk=d,b.avail_in=m,b.total_in+=l-b.next_in_index,
b.next_in_index=l,a.write=j,a.inflate_flush(b,c);c=x;g=n;g>m&&(g=m);g>f&&(g=f);a.window.set(b.read_buf(l,g),j);l+=g;m-=g;j+=g;f-=g;if(0!==(n-=g))break;s=0!==P?X:S;break;case ma:for(;14>d;){if(0!==m)c=x;else return a.bitb=e,a.bitk=d,b.avail_in=m,b.total_in+=l-b.next_in_index,b.next_in_index=l,a.write=j,a.inflate_flush(b,c);m--;e|=(b.read_byte(l++)&255)<<d;d+=8}u=g=e&16383;if(29<(g&31)||29<(g>>5&31))return s=Q,b.msg="too many length or distance symbols",c=B,a.bitb=e,a.bitk=d,b.avail_in=m,b.total_in+=
l-b.next_in_index,b.next_in_index=l,a.write=j,a.inflate_flush(b,c);g=258+(g&31)+(g>>5&31);if(!w||w.length<g)w=[];else for(f=0;f<g;f++)w[f]=0;e>>>=14;d-=14;t=0;s=oa;case oa:for(;t<4+(u>>>10);){for(;3>d;){if(0!==m)c=x;else return a.bitb=e,a.bitk=d,b.avail_in=m,b.total_in+=l-b.next_in_index,b.next_in_index=l,a.write=j,a.inflate_flush(b,c);m--;e|=(b.read_byte(l++)&255)<<d;d+=8}w[pa[t++]]=e&7;e>>>=3;d-=3}for(;19>t;)w[pa[t++]]=0;G[0]=7;g=C.inflate_trees_bits(w,G,O,J,b);if(g!=x)return c=g,c==B&&(w=null,
s=Q),a.bitb=e,a.bitk=d,b.avail_in=m,b.total_in+=l-b.next_in_index,b.next_in_index=l,a.write=j,a.inflate_flush(b,c);t=0;s=qa;case qa:for(;;){g=u;if(!(t<258+(g&31)+(g>>5&31)))break;for(g=G[0];d<g;){if(0!==m)c=x;else return a.bitb=e,a.bitk=d,b.avail_in=m,b.total_in+=l-b.next_in_index,b.next_in_index=l,a.write=j,a.inflate_flush(b,c);m--;e|=(b.read_byte(l++)&255)<<d;d+=8}g=J[3*(O[0]+(e&I[g]))+1];h=J[3*(O[0]+(e&I[g]))+2];if(16>h)e>>>=g,d-=g,w[t++]=h;else{f=18==h?7:h-14;for(k=18==h?11:3;d<g+f;){if(0!==m)c=
x;else return a.bitb=e,a.bitk=d,b.avail_in=m,b.total_in+=l-b.next_in_index,b.next_in_index=l,a.write=j,a.inflate_flush(b,c);m--;e|=(b.read_byte(l++)&255)<<d;d+=8}e>>>=g;d-=g;k+=e&I[f];e>>>=f;d-=f;f=t;g=u;if(f+k>258+(g&31)+(g>>5&31)||16==h&&1>f)return w=null,s=Q,b.msg="invalid bit length repeat",c=B,a.bitb=e,a.bitk=d,b.avail_in=m,b.total_in+=l-b.next_in_index,b.next_in_index=l,a.write=j,a.inflate_flush(b,c);h=16==h?w[f-1]:0;do w[f++]=h;while(0!==--k);t=f}}O[0]=-1;f=[];k=[];h=[];q=[];f[0]=9;k[0]=6;
g=u;g=C.inflate_trees_dynamic(257+(g&31),1+(g>>5&31),w,f,k,h,q,J,b);if(g!=x)return g==B&&(w=null,s=Q),c=g,a.bitb=e,a.bitk=d,b.avail_in=m,b.total_in+=l-b.next_in_index,b.next_in_index=l,a.write=j,a.inflate_flush(b,c);M.init(f[0],k[0],J,h[0],J,q[0]);s=W;case W:a.bitb=e;a.bitk=d;b.avail_in=m;b.total_in+=l-b.next_in_index;b.next_in_index=l;a.write=j;if((c=M.proc(a,b,c))!=N)return a.inflate_flush(b,c);c=x;M.free(b);l=b.next_in_index;m=b.avail_in;e=a.bitb;d=a.bitk;j=a.write;f=j<a.read?a.read-j-1:a.end-
j;if(0===P){s=S;break}s=X;case X:a.write=j;c=a.inflate_flush(b,c);j=a.write;if(a.read!=a.write)return a.bitb=e,a.bitk=d,b.avail_in=m,b.total_in+=l-b.next_in_index,b.next_in_index=l,a.write=j,a.inflate_flush(b,c);s=ra;case ra:return c=N,a.bitb=e,a.bitk=d,b.avail_in=m,b.total_in+=l-b.next_in_index,b.next_in_index=l,a.write=j,a.inflate_flush(b,c);case Q:return c=B,a.bitb=e,a.bitk=d,b.avail_in=m,b.total_in+=l-b.next_in_index,b.next_in_index=l,a.write=j,a.inflate_flush(b,c);default:return c=H,a.bitb=e,
a.bitk=d,b.avail_in=m,b.total_in+=l-b.next_in_index,b.next_in_index=l,a.write=j,a.inflate_flush(b,c)}};a.free=function(b){a.reset(b,null);J=a.window=null};a.set_dictionary=function(b,c,g){a.window.set(b.subarray(c,c+g),0);a.read=a.write=g};a.sync_point=function(){return s==aa?1:0}}function Ga(){function h(a){if(!a||!a.istate)return H;a.total_in=a.total_out=0;a.msg=null;a.istate.mode=T;a.istate.blocks.reset(a,null);return x}var p=this;p.mode=0;p.method=0;p.was=[0];p.need=0;p.marker=0;p.wbits=0;p.inflateEnd=
function(a){p.blocks&&p.blocks.free(a);p.blocks=null;return x};p.inflateInit=function(a,s){a.msg=null;p.blocks=null;if(8>s||15<s)return p.inflateEnd(a),H;p.wbits=s;a.istate.blocks=new Fa(a,1<<s);h(a);return x};p.inflate=function(a,h){var n,p;if(!a||!a.istate||!a.next_in)return H;h=h==Ha?K:x;for(n=K;;)switch(a.istate.mode){case Ia:if(0===a.avail_in)return n;n=h;a.avail_in--;a.total_in++;if(((a.istate.method=a.read_byte(a.next_in_index++))&15)!=Ja){a.istate.mode=L;a.msg="unknown compression method";
a.istate.marker=5;break}if((a.istate.method>>4)+8>a.istate.wbits){a.istate.mode=L;a.msg="invalid window size";a.istate.marker=5;break}a.istate.mode=sa;case sa:if(0===a.avail_in)return n;n=h;a.avail_in--;a.total_in++;p=a.read_byte(a.next_in_index++)&255;if(0!==((a.istate.method<<8)+p)%31){a.istate.mode=L;a.msg="incorrect header check";a.istate.marker=5;break}if(0===(p&Ka)){a.istate.mode=T;break}a.istate.mode=ta;case ta:if(0===a.avail_in)return n;n=h;a.avail_in--;a.total_in++;a.istate.need=(a.read_byte(a.next_in_index++)&
255)<<24&4278190080;a.istate.mode=ua;case ua:if(0===a.avail_in)return n;n=h;a.avail_in--;a.total_in++;a.istate.need+=(a.read_byte(a.next_in_index++)&255)<<16&16711680;a.istate.mode=va;case va:if(0===a.avail_in)return n;n=h;a.avail_in--;a.total_in++;a.istate.need+=(a.read_byte(a.next_in_index++)&255)<<8&65280;a.istate.mode=wa;case wa:if(0===a.avail_in)return n;a.avail_in--;a.total_in++;a.istate.need+=a.read_byte(a.next_in_index++)&255;a.istate.mode=ba;return La;case ba:return a.istate.mode=L,a.msg=
"need dictionary",a.istate.marker=0,H;case T:n=a.istate.blocks.proc(a,n);if(n==B){a.istate.mode=L;a.istate.marker=0;break}n==x&&(n=h);if(n!=N)return n;a.istate.blocks.reset(a,a.istate.was);a.istate.mode=xa;case xa:return N;case L:return B;default:return H}};p.inflateSetDictionary=function(a,h,n){var p=0,t=n;if(!a||!a.istate||a.istate.mode!=ba)return H;t>=1<<a.istate.wbits&&(t=(1<<a.istate.wbits)-1,p=n-t);a.istate.blocks.set_dictionary(h,p,t);a.istate.mode=T;return x};p.inflateSync=function(a){var p,
n,u;if(!a||!a.istate)return H;a.istate.mode!=L&&(a.istate.mode=L,a.istate.marker=0);if(0===(p=a.avail_in))return K;n=a.next_in_index;for(u=a.istate.marker;0!==p&&4>u;)a.read_byte(n)==Ma[u]?u++:u=0!==a.read_byte(n)?0:4-u,n++,p--;a.total_in+=n-a.next_in_index;a.next_in_index=n;a.avail_in=p;a.istate.marker=u;if(4!=u)return B;p=a.total_in;n=a.total_out;h(a);a.total_in=p;a.total_out=n;a.istate.mode=T;return x};p.inflateSyncPoint=function(a){return!a||!a.istate||!a.istate.blocks?H:a.istate.blocks.sync_point()}}
function ya(){}function za(){var h=new ya,p=Na,a=new Uint8Array(512),s=!1;h.inflateInit();h.next_out=a;this.append=function(n,u){var t,w=[],B=0,G=0,H=0,I;if(0!==n.length){h.next_in_index=0;h.next_in=n;h.avail_in=n.length;do{h.next_out_index=0;h.avail_out=512;0===h.avail_in&&!s&&(h.next_in_index=0,s=!0);t=h.inflate(p);if(s&&t==K)return-1;if(t!=x&&t!=N)throw"inflating: "+h.msg;if((s||t==N)&&h.avail_in==n.length)return-1;h.next_out_index&&(512==h.next_out_index?w.push(new Uint8Array(a)):w.push(new Uint8Array(a.subarray(0,
h.next_out_index))));H+=h.next_out_index;u&&(0<h.next_in_index&&h.next_in_index!=B)&&(u(h.next_in_index),B=h.next_in_index)}while(0<h.avail_in||0===h.avail_out);I=new Uint8Array(H);w.forEach(function(a){I.set(a,G);G+=a.length});return I}};this.flush=function(){h.inflateEnd()}}var x=0,N=1,La=2,H=-2,B=-3,ea=-4,K=-5,I=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],da=1440,Na=0,Ha=4,Oa=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,
0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,
0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,
8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,
84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,
8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,
0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,
9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,
0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],Pa=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,
12289,82,5,13,90,5,3073,86,5,193,192,5,24577],Aa=[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],Ba=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],Ca=[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],Da=[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],G=15;Y.inflate_trees_fixed=function(h,p,a,s){h[0]=9;p[0]=5;a[0]=Oa;s[0]=Pa;return x};var U=0,fa=1,ha=
2,ia=3,ja=4,ka=5,ga=6,$=7,la=8,V=9,pa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=0,aa=1,na=2,ma=3,oa=4,qa=5,W=6,X=7,ra=8,Q=9,Ka=32,Ja=8,Ia=0,sa=1,ta=2,ua=3,va=4,wa=5,ba=6,T=7,xa=12,L=13,Ma=[0,0,255,255];ya.prototype={inflateInit:function(h){this.istate=new Ga;h||(h=15);return this.istate.inflateInit(this,h)},inflate:function(h){return!this.istate?H:this.istate.inflate(this,h)},inflateEnd:function(){if(!this.istate)return H;var h=this.istate.inflateEnd(this);this.istate=null;return h},inflateSync:function(){return!this.istate?
H:this.istate.inflateSync(this)},inflateSetDictionary:function(h,p){return!this.istate?H:this.istate.inflateSetDictionary(this,h,p)},read_byte:function(h){return this.next_in.subarray(h,h+1)[0]},read_buf:function(h,p){return this.next_in.subarray(h,h+p)}};var ca;R.zip?R.zip.Inflater=za:(ca=new za,R.addEventListener("message",function(h){h=h.data;h.append&&R.postMessage({onappend:!0,data:ca.append(h.data,function(h){R.postMessage({progress:!0,current:h})})});h.flush&&(ca.flush(),R.postMessage({onflush:!0}))},
!1))})(this);
?>