(function(){var e=16,b=null,l=32768,L=0,R=1,T=2,Q=9,P=6,U=32768,S=64,j,h,v=b,y,u,V,q,o,i,r,f,n,k,x,g,m,t,w,M=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],E=[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],F=[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,99,99],D=[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],C=[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],B=[e,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],z=function(){this.next=b;this.list=b},A=function(){var a=this;a.e=0;a.b=0;a.n=0;a.t=b},p=function(E,u,F,G,H,q){var d=this;d.BMAX=e;d.N_MAX=288;d.status=0;d.root=b;d.m=0;var B,j=new Array(d.BMAX+1),y,t,x,f,a,c,m,l=new Array(d.BMAX+1),k,i,n,g=new A,s=new Array(d.BMAX),D=new Array(d.N_MAX),h,o=new Array(d.BMAX+1),w,v,p,C,r;r=d.root=b;for(a=0;a<j.length;a++)j[a]=0;for(a=0;a<l.length;a++)l[a]=0;for(a=0;a<s.length;a++)s[a]=b;for(a=0;a<D.length;a++)D[a]=0;for(a=0;a<o.length;a++)o[a]=0;y=u>256?E[256]:d.BMAX;k=E;i=0;a=u;do{j[k[i]]++;i++}while(--a>0);if(j[0]==u){d.root=b;d.m=0;d.status=0;return}for(c=1;c<=d.BMAX;c++)if(j[c]!=0)break;m=c;if(q<c)q=c;for(a=d.BMAX;a!=0;a--)if(j[a]!=0)break;x=a;if(q>a)q=a;for(v=1<<c;c<a;c++,v<<=1)if((v-=j[c])<0){d.status=2;d.m=q;return}if((v-=j[a])<0){d.status=2;d.m=q;return}j[a]+=v;o[1]=c=0;k=j;i=1;w=2;while(--a>0)o[w++]=c+=k[i++];k=E;i=0;a=0;do if((c=k[i++])!=0)D[o[c]++]=a;while(++a<u);u=o[x];o[0]=a=0;k=D;i=0;f=-1;h=l[0]=0;n=b;p=0;for(;m<=x;m++){B=j[m];while(B-->0){while(m>h+l[1+f]){h+=l[1+f];f++;p=(p=x-h)>q?q:p;if((t=1<<(c=m-h))>B+1){t-=B+1;w=m;while(++c<p){if((t<<=1)<=j[++w])break;t-=j[w]}}if(h+c>y&&h<y)c=y-h;p=1<<c;l[1+f]=c;n=new Array(p);for(C=0;C<p;C++)n[C]=new A;if(r==b)r=d.root=new z;else r=r.next=new z;r.next=b;r.list=n;s[f]=n;if(f>0){o[f]=a;g.b=l[f];g.e=e+c;g.t=n;c=(a&(1<<h)-1)>>h-l[f];s[f-1][c].e=g.e;s[f-1][c].b=g.b;s[f-1][c].n=g.n;s[f-1][c].t=g.t}}g.b=m-h;if(i>=u)g.e=99;else if(k[i]<F){g.e=k[i]<256?e:15;g.n=k[i++]}else{g.e=H[k[i]-F];g.n=G[k[i++]-F]}t=1<<m-h;for(c=a>>h;c<p;c+=t){n[c].e=g.e;n[c].b=g.b;n[c].n=g.n;n[c].t=g.t}for(c=1<<m-1;(a&c)!=0;c>>=1)a^=c;a^=c;while((a&(1<<h)-1)!=o[f]){h-=l[f];f--}}}d.m=l[1];d.status=v!=0&&x!=1?1:0},N=function(){return t.length==w?-1:t.charCodeAt(w++)&255},c=function(a){while(o<a){q|=N()<<o;o+=8}},d=function(a){return q&M[a]},a=function(a){q>>=a;o-=a},s=function(r,s,q){var b,o,p;if(q==0)return 0;p=0;for(;;){c(g);o=k.list[d(g)];b=o.e;while(b>e){if(b==99)return-1;a(o.b);b-=e;c(b);o=o.t[d(b)];b=o.e}a(o.b);if(b==e){h&=l-1;r[s+p++]=j[h++]=o.n;if(p==q)return q;continue}if(b==15)break;c(b);f=o.n+d(b);a(b);c(m);o=x.list[d(m)];b=o.e;while(b>e){if(b==99)return-1;a(o.b);b-=e;c(b);o=o.t[d(b)];b=o.e}a(o.b);c(b);n=h-o.n-d(b);a(b);while(f>0&&p<q){f--;n&=l-1;h&=l-1;r[s+p++]=j[h++]=j[n++]}if(p==q)return q}i=-1;return p},I=function(g,m,k){var b;b=o&7;a(b);c(e);b=d(e);a(e);c(e);if(b!=(~q&65535))return-1;a(e);f=b;b=0;while(f>0&&b<k){f--;h&=l-1;c(8);g[m+b++]=j[h++]=d(8);a(8)}if(f==0)i=-1;return b},J=function(f,i,h){var e="HufBuild error: ";if(v==b){for(var d=new Array(288),c,a=0;a<144;a++)d[a]=8;for(;a<256;a++)d[a]=9;for(;a<280;a++)d[a]=7;for(;a<288;a++)d[a]=8;u=7;c=new p(d,288,257,E,F,u);if(c.status!=0){alert(e+c.status);return-1}v=c.root;u=c.m;for(a=0;a<30;a++)d[a]=5;zip_fixed_bd=5;c=new p(d,30,0,D,C,zip_fixed_bd);if(c.status>1){v=b;alert(e+c.status);return-1}y=c.root;zip_fixed_bd=c.m}k=v;x=y;g=u;m=zip_fixed_bd;return s(f,i,h)},H=function(u,w,v){for(var f,o,q,r,t,l,n,j=new Array(316),i,h=0;h<j.length;h++)j[h]=0;c(5);l=257+d(5);a(5);c(5);n=1+d(5);a(5);c(4);t=4+d(4);a(4);if(l>286||n>30)return-1;for(f=0;f<t;f++){c(3);j[B[f]]=d(3);a(3)}for(;f<19;f++)j[B[f]]=0;g=7;i=new p(j,19,19,b,b,g);if(i.status!=0)return-1;k=i.root;g=i.m;q=l+n;h=o=0;while(h<q){c(g);r=k.list[d(g)];f=r.b;a(f);f=r.n;if(f<e)j[h++]=o=f;else if(f==e){c(2);f=3+d(2);a(2);if(h+f>q)return-1;while(f-->0)j[h++]=o}else if(f==17){c(3);f=3+d(3);a(3);if(h+f>q)return-1;while(f-->0)j[h++]=0;o=0}else{c(7);f=11+d(7);a(7);if(h+f>q)return-1;while(f-->0)j[h++]=0;o=0}}g=Q;i=new p(j,l,257,E,F,g);if(g==0)i.status=1;if(i.status!=0){i.status==1;return-1}k=i.root;g=i.m;for(h=0;h<n;h++)j[h]=j[h+l];m=P;i=new p(j,n,0,D,C,m);x=i.root;m=i.m;if(m==0&&l>257)return-1;i.status==1;return i.status!=0?-1:s(u,w,v)},K=function(){var a;if(j==b)j=new Array(2*l);h=0;q=0;o=0;i=-1;r=false;f=n=0;k=b},G=function(o,p,g){var e,m;e=0;while(e<g){if(r&&i==-1)return e;if(f>0){if(i!=L)while(f>0&&e<g){f--;n&=l-1;h&=l-1;o[p+e++]=j[h++]=j[n++]}else{while(f>0&&e<g){f--;h&=l-1;c(8);o[p+e++]=j[h++]=d(8);a(8)}if(f==0)i=-1}if(e==g)return e}if(i==-1){if(r)break;c(1);if(d(1)!=0)r=true;a(1);c(2);i=d(2);a(2);k=b;f=0}switch(i){case 0:m=I(o,p+e,g-e);break;case 1:if(k!=b)m=s(o,p+e,g-e);else m=J(o,p+e,g-e);break;case 2:if(k!=b)m=s(o,p+e,g-e);else m=H(o,p+e,g-e);break;default:m=-1}if(m==-1)return r?0:-1;e+=m}return e},O=function(g){var e,a;K();t=g;w=0;var d=new Array(1024),c=[];while((e=G(d,0,d.length))>0){var f=new Array(e);for(a=0;a<e;a++)f[a]=String.fromCharCode(d[a]);c[c.length]=f.join("")}t=b;return c.join("")};if(!window.RawDeflate)RawDeflate={};RawDeflate.inflate=O})()
