Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pako

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pako - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

lib/utils/common.js

2

bower.json
{
"name": "pako",
"main": "dist/pako.js",
"version": "0.1.1",
"version": "0.2.0",
"homepage": "https://github.com/nodeca/pako",

@@ -6,0 +6,0 @@ "authors": [

@@ -1,2 +0,2 @@

/* pako 0.1.1 nodeca/pako */
!function(t){if("object"==typeof exports)module.exports=t();else if("function"==typeof define&&define.amd)define(t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.pako=t()}}(function(){return function t(e,a,r){function n(s,_){if(!a[s]){if(!e[s]){var h="function"==typeof require&&require;if(!_&&h)return h(s,!0);if(i)return i(s,!0);throw new Error("Cannot find module '"+s+"'")}var l=a[s]={exports:{}};e[s][0].call(l.exports,function(t){var a=e[s][1][t];return n(a?a:t)},l,l.exports,t,e,a,r)}return a[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)n(r[s]);return n}({1:[function(t,e,a){"use strict";function r(t,e){var a=new v(e);if(a.push(t,!0),a.err)throw a.msg;return a.result}function n(t,e){return e=e||{},e.raw=!0,r(t,e)}function i(t,e){return e=e||{},e.gzip=!0,r(t,e)}var s=t("./zlib/deflate.js"),_=t("./zlib/utils"),h=t("./zlib/messages"),l=t("./zlib/zstream"),o=0,u=4,d=0,f=1,c=-1,p=0,w=8,v=function(t){this.options=_.assign({level:c,method:w,chunkSize:16384,windowBits:15,memLevel:8,strategy:p},t||{});var 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 l;var a=s.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==d)throw new Error(h[a])};v.prototype.push=function(t,e){var a,r,n=this.strm,i=this.options.chunkSize;if(this.ended)return!1;r=e===~~e?e:e===!0?u:o,n.next_in=t,n.next_in_index=0,n.avail_in=n.next_in.length,n.next_out=new _.Buf8(i);do{if(n.avail_out=this.options.chunkSize,n.next_out_index=0,a=s.deflate(n,r),a!==f&&a!==d)return this.onEnd(a),this.ended=!0,!1;n.next_out_index&&(this.onData(_.shrinkBuf(n.next_out,n.next_out_index)),(n.avail_in>0||0===n.avail_out)&&(n.next_out=new _.Buf8(this.options.chunkSize)))}while(n.avail_in>0||0===n.avail_out);return r===u?(a=s.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===d):!0},v.prototype.onData=function(t){this.chunks.push(t)},v.prototype.onEnd=function(t){t===d&&(this.result=_.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},a.Deflate=v,a.deflate=r,a.deflateRaw=n,a.gzip=i},{"./zlib/deflate.js":4,"./zlib/messages":5,"./zlib/utils":7,"./zlib/zstream":8}],2:[function(t,e){"use strict";function a(t,e,a,r){for(var n=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){s=a>2e3?2e3:a,a-=s;do n=n+e[r++]|0,i=i+n|0;while(--s);n%=65521,i%=65521}return n|i<<16|0}e.exports=a},{}],3:[function(t,e){"use strict";function a(){for(var t,e=[],a=0;256>a;a++){t=a;for(var r=0;8>r;r++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}function r(t,e,a,r){var i=n,s=r+a;t=-1^t;for(var _=r;s>_;_++)t=t>>>8^i[255&(t^e[_])];return-1^t}var n=a();e.exports=r},{}],4:[function(t,e,a){"use strict";function r(t,e){return t.msg=C[e],e}function n(t){return(t<<1)-(t>4?9:0)}function i(t){for(var e=t.length;--e;)t[e]=0}function s(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(S.arraySet(t.next_out,e.pending_buf,e.pending_out,a,t.next_out_index),t.next_out_index+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))}function _(t,e){E._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,s(t.strm)}function h(t,e){t.pending_buf[t.pending++]=e}function l(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function o(t,e,a,r){var n=t.avail_in;return n>r&&(n=r),0===n?0:(t.avail_in-=n,S.arraySet(e,t.next_in,t.next_in_index,n,a),1===t.state.wrap?t.adler=I(t.adler,e,n,a):2===t.state.wrap&&(t.adler=j(t.adler,e,n,a)),t.next_in_index+=n,t.total_in+=n,n)}function u(t,e){var a,r,n=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-he?t.strstart-(t.w_size-he):0,l=t.window,o=t.w_mask,u=t.prev,d=t.strstart+_e,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(n>>=2),_>t.lookahead&&(_=t.lookahead);do if(a=e,l[a+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do;while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&d>i);if(r=_e-(d-i),i=d-_e,r>s){if(t.match_start=e,s=r,r>=_)break;f=l[i+s-1],c=l[i+s]}}while((e=u[e&o])>h&&0!==--n);return s<=t.lookahead?s:t.lookahead}function d(t){var e,a,r,n,i,s=t.w_size;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-he)){S.arraySet(t.window,t.window,s,s,0),t.match_start-=s,t.strstart-=s,t.block_start-=s,a=t.hash_size,e=a;do r=t.head[--e],t.head[e]=r>=s?r-s:0;while(--a);a=s,e=a;do r=t.prev[--e],t.prev[e]=r>=s?r-s:0;while(--a);n+=s}if(0===t.strm.avail_in)break;if(a=o(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=a,t.lookahead+t.insert>=se)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=(t.ins_h<<t.hash_shift^t.window[i+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[i+se-1])&t.hash_mask,t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<se)););}while(t.lookahead<he&&0!==t.strm.avail_in)}function f(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(d(t),0===t.lookahead&&e===U)return ve;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+a;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,_(t,!1),0===t.strm.avail_out))return ve;if(t.strstart-t.block_start>=t.w_size-he&&(_(t,!1),0===t.strm.avail_out))return ve}return t.insert=0,e===T?(_(t,!0),0===t.strm.avail_out?me:ge):t.strstart>t.block_start&&(_(t,!1),0===t.strm.avail_out)?ve:ve}function c(t,e){for(var a,r;;){if(t.lookahead<he){if(d(t),t.lookahead<he&&e===U)return ve;if(0===t.lookahead)break}if(a=0,t.lookahead>=se&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+se-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-he&&(t.match_length=u(t,a)),t.match_length>=se)if(r=E._tr_tally(t,t.strstart-t.match_start,t.match_length-se),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=se){t.match_length--;do t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+se-1])&t.hash_mask,a=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=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=E._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(_(t,!1),0===t.strm.avail_out))return ve}return t.insert=t.strstart<se-1?t.strstart:se-1,e===T?(_(t,!0),0===t.strm.avail_out?me:ge):t.last_lit&&(_(t,!1),0===t.strm.avail_out)?ve:be}function p(t,e){for(var a,r,n;;){if(t.lookahead<he){if(d(t),t.lookahead<he&&e===U)return ve;if(0===t.lookahead)break}if(a=0,t.lookahead>=se&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+se-1])&t.hash_mask,a=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=se-1,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-he&&(t.match_length=u(t,a),t.match_length<=5&&(t.strategy===F||t.match_length===se&&t.strstart-t.match_start>4096)&&(t.match_length=se-1)),t.prev_length>=se&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-se,r=E._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-se),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=n&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+se-1])&t.hash_mask,a=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=se-1,t.strstart++,r&&(_(t,!1),0===t.strm.avail_out))return ve}else if(t.match_available){if(r=E._tr_tally(t,0,t.window[t.strstart-1]),r&&_(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return ve}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=E._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<se-1?t.strstart:se-1,e===T?(_(t,!0),0===t.strm.avail_out?me:ge):t.last_lit&&(_(t,!1),0===t.strm.avail_out)?ve:be}function w(t,e){for(var a,r,n,i,s=t.window;;){if(t.lookahead<=_e){if(d(t),t.lookahead<=_e&&e===U)return ve;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=se&&t.strstart>0&&(n=t.strstart-1,r=s[n],r===s[++n]&&r===s[++n]&&r===s[++n])){i=t.strstart+_e;do;while(r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&i>n);t.match_length=_e-(i-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=se?(a=E._tr_tally(t,1,t.match_length-se),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=E._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(_(t,!1),0===t.strm.avail_out))return ve}return t.insert=0,e===T?(_(t,!0),0===t.strm.avail_out?me:ge):t.last_lit&&(_(t,!1),0===t.strm.avail_out)?ve:be}function v(t,e){for(var a;;){if(0===t.lookahead&&(d(t),0===t.lookahead)){if(e===U)return ve;break}if(t.match_length=0,a=E._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(_(t,!1),0===t.strm.avail_out))return ve}return t.insert=0,e===T?(_(t,!0),0===t.strm.avail_out?me:ge):t.last_lit&&(_(t,!1),0===t.strm.avail_out)?ve:be}function b(t){t.window_size=2*t.w_size,i(t.head),t.max_lazy_match=A[t.level].max_lazy,t.good_match=A[t.level].good_length,t.nice_match=A[t.level].nice_length,t.max_chain_length=A[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=se-1,t.match_available=0,t.ins_h=0}function m(){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=V,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 S.Buf16(2*ne),this.dyn_dtree=new S.Buf16(2*(2*ae+1)),this.bl_tree=new S.Buf16(2*(2*re+1)),i(this.dyn_ltree),i(this.dyn_dtree),i(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new S.Buf16(ie+1),this.heap=new S.Buf16(2*ee+1),i(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new S.Buf16(2*ee+1),i(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0,this.high_water=0}function g(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=Q,e=t.state,e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?oe:pe,t.adler=2===e.wrap?0:1,e.last_flush=U,E._tr_init(e),P):r(t,G)}function y(t){var e=g(t);return e===P&&b(t.state),e}function k(t,e,a,n,i,s){if(!t)return r(t,G);var _=1;if(e===Z&&(e=6),0>n?(_=0,n=-n):n>15&&(_=2,n-=16),1>i||i>W||a!==V||8>n||n>15||0>e||e>9||0>s||s>K)return r(t,G);8===n&&(n=9);var h=new m;return t.state=h,h.strm=t,h.wrap=_,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=i+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+se-1)/se),h.window=new S.Buf8(2*h.w_size),h.head=new S.Buf16(h.hash_size),h.prev=new S.Buf16(h.w_size),h.high_water=0,h.lit_bufsize=1<<i+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new S.Buf8(h.pending_buf_size),h.d_buf=h.lit_bufsize>>1,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=s,h.method=a,y(t)}function x(t,e){return k(t,e,V,X,Y,M)}function z(t,e){var a,_;if(!t||!t.state||e>L||0>e)return r(t,G);if(_=t.state,!t.next_out||!t.next_in&&0!==t.avail_in||_.status===we&&e!==T)return r(t,0===t.avail_out?O:G);if(_.strm=t,a=_.last_flush,_.last_flush=e,_.status===oe)if(2===_.wrap){if(t.adler=0,h(_,31),h(_,139),h(_,8),_.gzhead)throw new Error("Custom GZIP headers not supported");h(_,0),h(_,0),h(_,0),h(_,0),h(_,0),h(_,9===_.level?2:_.strategy>=H||_.level<2?4:0),h(_,ye),_.status=pe}else{var o=V+(_.w_bits-8<<4)<<8,u=-1;u=_.strategy>=H||_.level<2?0:_.level<6?1:6===_.level?2:3,o|=u<<6,0!==_.strstart&&(o|=le),o+=31-o%31,_.status=pe,l(_,o),0!==_.strstart&&(l(_,t.adler>>>16),l(_,65535&t.adler)),t.adler=1}if(0!==_.pending){if(s(t),0===t.avail_out)return _.last_flush=-1,P}else if(0===t.avail_in&&n(e)<=n(a)&&e!==T)return r(t,O);if(_.status===we&&0!==t.avail_in)return r(t,O);if(0!==t.avail_in||0!==_.lookahead||e!==U&&_.status!==we){var d=_.strategy===H?v(_,e):_.strategy===J?w(_,e):A[_.level].func(_,e);if((d===me||d===ge)&&(_.status=we),d===ve||d===me)return 0===t.avail_out&&(_.last_flush=-1),P;if(d===be&&(e===q?E._tr_align(_):e!==L&&(E._tr_stored_block(_,0,0,!1),e===D&&(i(_.head),0===_.lookahead&&(_.strstart=0,_.block_start=0,_.insert=0))),s(t),0===t.avail_out))return _.last_flush=-1,P}return e!==T?P:_.wrap<=0?R:(2===_.wrap?(h(_,255&t.adler),h(_,t.adler>>8&255),h(_,t.adler>>16&255),h(_,t.adler>>24&255),h(_,255&t.total_in),h(_,t.total_in>>8&255),h(_,t.total_in>>16&255),h(_,t.total_in>>24&255)):(l(_,t.adler>>>16),l(_,65535&t.adler)),s(t),_.wrap>0&&(_.wrap=-_.wrap),0!==_.pending?P:R)}function B(t){var e=t.state.status;return e!==oe&&e!==ue&&e!==de&&e!==fe&&e!==ce&&e!==pe&&e!==we?r(t,G):(t.state=null,e===pe?r(t,N):P)}var A,S=t("./utils"),E=t("./trees"),I=t("./adler32"),j=t("./crc32"),C=t("./messages"),U=0,q=1,D=3,T=4,L=5,P=0,R=1,G=-2,N=-3,O=-5,Z=-1,F=1,H=2,J=3,K=4,M=0,Q=2,V=8,W=9,X=15,Y=8,$=29,te=256,ee=te+1+$,ae=30,re=19,ne=2*ee+1,ie=15,se=3,_e=258,he=_e+se+1,le=32,oe=42,ue=69,de=73,fe=91,ce=103,pe=113,we=666,ve=1,be=2,me=3,ge=4,ye=3,ke=function(t,e,a,r,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=r,this.func=n};A=[new ke(0,0,0,0,f),new ke(4,4,8,4,c),new ke(4,5,16,8,c),new ke(4,6,32,32,c),new ke(4,4,16,16,p),new ke(8,16,32,32,p),new ke(8,16,128,128,p),new ke(8,32,128,256,p),new ke(32,128,258,1024,p),new ke(32,258,258,4096,p)],a.deflateInit=x,a.deflateInit2=k,a.deflateReset=y,a.deflate=z,a.deflateEnd=B,a.deflateInfo="pako deflate (from Nodeca project)"},{"./adler32":2,"./crc32":3,"./messages":5,"./trees":6,"./utils":7}],5:[function(t,e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],6:[function(t,e,a){"use strict";function r(t){for(var e=t.length;--e;)t[e]=0}function n(t){return 256>t?se[t]:se[256+(t>>>7)]}function i(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function s(t,e,a){t.bi_valid>M-a?(t.bi_buf|=e<<t.bi_valid&65535,i(t,t.bi_buf),t.bi_buf=e>>M-t.bi_valid,t.bi_valid+=a-M):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)}function _(t,e,a){s(t,a[2*e],a[2*e+1])}function h(t,e){var a=0;do a|=1&t,t>>>=1,a<<=1;while(--e>0);return a>>>1}function l(t){16===t.bi_valid?(i(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)}function o(t,e){var a,r,n,i,s,_,h=e.dyn_tree,l=e.max_code,o=e.stat_desc.static_tree,u=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;K>=i;i++)t.bl_count[i]=0;for(h[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;J>a;a++)r=t.heap[a],i=h[2*h[2*r+1]+1]+1,i>c&&(i=c,p++),h[2*r+1]=i,r>l||(t.bl_count[i]++,s=0,r>=f&&(s=d[r-f]),_=h[2*r],t.opt_len+=_*(i+s),u&&(t.static_len+=_*(o[2*r+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(r=t.bl_count[i];0!==r;)n=t.heap[--a],n>l||(h[2*n+1]!==i&&(t.opt_len+=(i-h[2*n+1])*h[2*n],h[2*n+1]=i),r--)}}function u(t,e,a){var r,n,i=new Array(K+1),s=0;for(r=1;K>=r;r++)i[r]=s=s+a[r-1]<<1;for(n=0;e>=n;n++){var _=t[2*n+1];0!==_&&(t[2*n]=h(i[_]++,_))}}function d(){var t,e,a,r,n,i=new Array(K+1);for(a=0,r=0;N-1>r;r++)for(he[r]=a,t=0;t<1<<$[r];t++)_e[a++]=r;for(_e[a-1]=r,n=0,r=0;16>r;r++)for(le[r]=n,t=0;t<1<<te[r];t++)se[n++]=r;for(n>>=7;F>r;r++)for(le[r]=n<<7,t=0;t<1<<te[r]-7;t++)se[256+n++]=r;for(e=0;K>=e;e++)i[e]=0;for(t=0;143>=t;)ne[2*t+1]=8,t++,i[8]++;for(;255>=t;)ne[2*t+1]=9,t++,i[9]++;for(;279>=t;)ne[2*t+1]=7,t++,i[7]++;for(;287>=t;)ne[2*t+1]=8,t++,i[8]++;for(u(ne,Z+1,i),t=0;F>t;t++)ie[2*t+1]=5,ie[2*t]=h(t,5);oe=new fe(ne,$,O+1,Z,K),ue=new fe(ie,te,0,F,K),de=new fe(new Array(0),ee,0,H,Q)}function f(t){var e;for(e=0;Z>e;e++)t.dyn_ltree[2*e]=0;for(e=0;F>e;e++)t.dyn_dtree[2*e]=0;for(e=0;H>e;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*V]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function c(t){t.bi_valid>8?i(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function p(t,e,a,r){c(t),r&&(i(t,a),i(t,~a)),j.arraySet(t.pending_buf,t.window,e,a,t.pending),t.pending+=a}function w(t,e,a,r){var n=2*e,i=2*a;return t[n]<t[i]||t[n]===t[i]&&r[e]<=r[a]}function v(t,e,a){for(var r=t.heap[a],n=a<<1;n<=t.heap_len&&(n<t.heap_len&&w(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!w(e,r,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=r}function b(t,e,a){var r,i,h,l,o=0;if(0!==t.last_lit)do r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?_(t,i,e):(h=_e[i],_(t,h+O+1,e),l=$[h],0!==l&&(i-=he[h],s(t,i,l)),r--,h=n(r),_(t,h,a),l=te[h],0!==l&&(r-=le[h],s(t,r,l)));while(o<t.last_lit);_(t,V,e)}function m(t,e){var a,r,n,i=e.dyn_tree,s=e.stat_desc.static_tree,_=e.stat_desc.has_stree,h=e.stat_desc.elems,l=-1;for(t.heap_len=0,t.heap_max=J,a=0;h>a;a++)0!==i[2*a]?(t.heap[++t.heap_len]=l=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)n=t.heap[++t.heap_len]=2>l?++l:0,i[2*n]=1,t.depth[n]=0,t.opt_len--,_&&(t.static_len-=s[2*n+1]);for(e.max_code=l,a=t.heap_len>>1;a>=1;a--)v(t,i,a);n=h;do a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],v(t,i,1),r=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=r,i[2*n]=i[2*a]+i[2*r],t.depth[n]=(t.depth[a]>=t.depth[r]?t.depth[a]:t.depth[r])+1,i[2*a+1]=i[2*r+1]=n,t.heap[1]=n++,v(t,i,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],o(t,e),u(i,l,t.bl_count)}function g(t,e,a){var r,n,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,r=0;a>=r;r++)n=s,s=e[2*(r+1)+1],++_<h&&n===s||(l>_?t.bl_tree[2*n]+=_:0!==n?(n!==i&&t.bl_tree[2*n]++,t.bl_tree[2*W]++):10>=_?t.bl_tree[2*X]++:t.bl_tree[2*Y]++,_=0,i=n,0===s?(h=138,l=3):n===s?(h=6,l=3):(h=7,l=4))}function y(t,e,a){var r,n,i=-1,h=e[1],l=0,o=7,u=4;for(0===h&&(o=138,u=3),r=0;a>=r;r++)if(n=h,h=e[2*(r+1)+1],!(++l<o&&n===h)){if(u>l){do _(t,n,t.bl_tree);while(0!==--l)}else 0!==n?(n!==i&&(_(t,n,t.bl_tree),l--),_(t,W,t.bl_tree),s(t,l-3,2)):10>=l?(_(t,X,t.bl_tree),s(t,l-3,3)):(_(t,Y,t.bl_tree),s(t,l-11,7));l=0,i=n,0===h?(o=138,u=3):n===h?(o=6,u=3):(o=7,u=4)}}function k(t){var e;for(g(t,t.dyn_ltree,t.l_desc.max_code),g(t,t.dyn_dtree,t.d_desc.max_code),m(t,t.bl_desc),e=H-1;e>=3&&0===t.bl_tree[2*ae[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}function x(t,e,a,r){var n;for(s(t,e-257,5),s(t,a-1,5),s(t,r-4,4),n=0;r>n;n++)s(t,t.bl_tree[2*ae[n]+1],3);y(t,t.dyn_ltree,e-1),y(t,t.dyn_dtree,a-1)}function z(t){var e,a=4093624447;for(e=0;31>=e;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return U;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return q;for(e=32;O>e;e++)if(0!==t.dyn_ltree[2*e])return q;return U}function B(t){pe||(d(),pe=!0),t.l_desc=new ce(t.dyn_ltree,oe),t.d_desc=new ce(t.dyn_dtree,ue),t.bl_desc=new ce(t.bl_tree,de),t.bi_buf=0,t.bi_valid=0,f(t)}function A(t,e,a,r){s(t,(T<<1)+(r?1:0),3),p(t,e,a,!0)}function S(t){s(t,L<<1,3),_(t,V,ne),l(t)}function E(t,e,a,r){var n,i,_=0;t.level>0?(t.strm.data_type===D&&(t.strm.data_type=z(t)),m(t,t.l_desc),m(t,t.d_desc),_=k(t),n=t.opt_len+3+7>>>3,i=t.static_len+3+7>>>3,n>=i&&(n=i)):n=i=a+5,n>=a+4&&-1!==e?A(t,e,a,r):t.strategy===C||i===n?(s(t,(L<<1)+(r?1:0),3),b(t,ne,ie)):(s(t,(P<<1)+(r?1:0),3),x(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),b(t,t.dyn_ltree,t.dyn_dtree)),f(t),r&&c(t)}function I(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_e[a]+O+1)]++,t.dyn_dtree[2*n(e)]++),t.last_lit===t.lit_bufsize-1}var j=t("./utils"),C=4,U=0,q=1,D=2,T=0,L=1,P=2,R=3,G=258,N=29,O=256,Z=O+1+N,F=30,H=19,J=2*Z+1,K=15,M=16,Q=7,V=256,W=16,X=17,Y=18,$=[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],te=[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],ee=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],re=512,ne=new Array(2*(Z+2));r(ne);var ie=new Array(2*F);r(ie);var se=new Array(re);r(se);var _e=new Array(G-R+1);r(_e);var he=new Array(N);r(he);var le=new Array(F);r(le);var oe,ue,de,fe=function(t,e,a,r,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=r,this.max_length=n,this.has_stree=t&&t.length},ce=function(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e},pe=!1;a._tr_init=B,a._tr_stored_block=A,a._tr_flush_block=E,a._tr_tally=I,a._tr_align=S},{"./utils":7}],7:[function(t,e,a){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;a.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(var r in a)a.hasOwnProperty(r)&&(t[r]=a[r])}}return t},a.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var n={arraySet:function(t,e,a,r,n){if(e.subarray)return void t.set(e.subarray(a,a+r),n);for(var i=0;r>i;i++)t[n+i]=e[a+i]},flattenChunks:function(t){var e,a,r,n,i,s;for(r=0,e=0,a=t.length;a>e;e++)r+=t[e].length;for(s=new Uint8Array(r),n=0,e=0,a=t.length;a>e;e++)i=t[e],s.set(i,n),n+=i.length;return s}},i={arraySet:function(t,e,a,r,n){for(var i=0;r>i;i++)t[n+i]=e[a+i]},flattenChunks:function(t){return[].concat.apply([],t)}};a.setTyped=function(t){t?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,n)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,i))},a.setTyped(r)},{}],8:[function(t,e){"use strict";function a(){this.next_in=null,this.next_in_index=0,this.avail_in=0,this.total_in=0,this.next_out=null,this.next_out_index=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}e.exports=a},{}]},{},[1])(1)});
/* pako 0.2.0 nodeca/pako */
!function(t){if("object"==typeof exports)module.exports=t();else if("function"==typeof define&&define.amd)define(t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.pako=t()}}(function(){return function t(e,a,n){function r(s,h){if(!a[s]){if(!e[s]){var l="function"==typeof require&&require;if(!h&&l)return l(s,!0);if(i)return i(s,!0);throw new Error("Cannot find module '"+s+"'")}var o=a[s]={exports:{}};e[s][0].call(o.exports,function(t){var a=e[s][1][t];return r(a?a:t)},o,o.exports,t,e,a,n)}return a[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)r(n[s]);return r}({1:[function(t,e,a){"use strict";function n(t,e){var a=new b(e);if(a.push(t,!0),a.err)throw a.msg;return a.result}function r(t,e){return e=e||{},e.raw=!0,n(t,e)}function i(t,e){return e=e||{},e.gzip=!0,n(t,e)}var s=t("./zlib/deflate.js"),h=t("./utils/common"),l=t("./utils/strings"),o=t("./zlib/messages"),_=t("./zlib/zstream"),d=0,u=4,f=0,c=1,g=-1,p=0,m=8,b=function(t){this.options=h.assign({level:g,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},t||{});var 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 _,this.strm.avail_out=0;var a=s.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==f)throw new Error(o[a]);e.header&&s.deflateSetHeader(this.strm,e.header)};b.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;n=e===~~e?e:e===!0?u:d,r.input="string"==typeof t?l.string2buf(t):t,r.next_in=0,r.avail_in=r.input.length;do{if(0===r.avail_out&&(r.output=new h.Buf8(i),r.next_out=0,r.avail_out=i),a=s.deflate(r,n),a!==c&&a!==f)return this.onEnd(a),this.ended=!0,!1;(0===r.avail_out||0===r.avail_in&&n===u)&&this.onData("string"===this.options.to?l.buf2binstring(h.shrinkBuf(r.output,r.next_out)):h.shrinkBuf(r.output,r.next_out))}while((r.avail_in>0||0===r.avail_out)&&a!==c);return n===u?(a=s.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===f):!0},b.prototype.onData=function(t){this.chunks.push(t)},b.prototype.onEnd=function(t){t===f&&(this.result="string"===this.options.to?this.chunks.join(""):h.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},a.Deflate=b,a.deflate=n,a.deflateRaw=r,a.gzip=i},{"./utils/common":2,"./utils/strings":3,"./zlib/deflate.js":6,"./zlib/messages":7,"./zlib/zstream":9}],2:[function(t,e,a){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;a.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(var n in a)a.hasOwnProperty(n)&&(t[n]=a[n])}}return t},a.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,a,n,r){if(e.subarray&&t.subarray)return void t.set(e.subarray(a,a+n),r);for(var i=0;n>i;i++)t[r+i]=e[a+i]},flattenChunks:function(t){var e,a,n,r,i,s;for(n=0,e=0,a=t.length;a>e;e++)n+=t[e].length;for(s=new Uint8Array(n),r=0,e=0,a=t.length;a>e;e++)i=t[e],s.set(i,r),r+=i.length;return s}},i={arraySet:function(t,e,a,n,r){for(var i=0;n>i;i++)t[r+i]=e[a+i]},flattenChunks:function(t){return[].concat.apply([],t)}};a.setTyped=function(t){t?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,r)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,i))},a.setTyped(n)},{}],3:[function(t,e,a){"use strict";var n=t("./common"),r=!0;try{String.fromCharCode.apply(null,[0])}catch(i){r=!1}for(var s=new n.Buf8(256),h=0;256>h;h++)s[h]=h>=252?6:h>=248?5:h>=240?4:h>=224?3:h>=192?2:1;s[254]=s[254]=1,a.string2buf=function(t){var e,a,r,i,s,h=t.length,l=0;for(i=0;h>i;i++)a=t.charCodeAt(i),55296===(64512&a)&&h>i+1&&(r=t.charCodeAt(i+1),56320===(64512&r)&&(a=65536+(a-55296<<10)+(r-56320),i++)),l+=128>a?1:2048>a?2:65536>a?3:4;for(e=new n.Buf8(l),s=0,i=0;l>s;i++)a=t.charCodeAt(i),55296===(64512&a)&&h>i+1&&(r=t.charCodeAt(i+1),56320===(64512&r)&&(a=65536+(a-55296<<10)+(r-56320),i++)),128>a?e[s++]=a:2048>a?(e[s++]=192|a>>>6,e[s++]=128|63&a):65536>a?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},a.buf2binstring=function(t){if(r&&t.length<65537)return String.fromCharCode.apply(null,t);for(var e="",a=0,n=t.length;n>a;a++)e+=String.fromCharCode(t[a]);return e},a.binstring2buf=function(t){for(var e=new n.Buf8(t.length),a=0,r=e.length;r>a;a++)e[a]=t.charCodeAt(a);return e},a.buf2string=function(t,e){var a,i,h,l,o,_=e||t.length,d=new Array(2*_);for(h=0,i=0;_>i;)if(l=t[i++],128>l)d[h++]=l;else if(o=s[l],o>4)d[h++]=65533,i+=o-1;else{for(l&=2===o?31:3===o?15:7;o>1&&_>i;)l=l<<6|63&t[i++],o--;o>1?d[h++]=65533:65536>l?d[h++]=l:(l-=65536,d[h++]=55296|l>>10&1023,d[h++]=56320|1023&l)}if(r)return String.fromCharCode.apply(null,n.shrinkBuf(d,h));for(a="",i=0,_=h;_>i;i++)a+=String.fromCharCode(d[i]);return a},a.utf8border=function(t,e){var a;for(e=e||t.length,e>t.length&&(e=t.length),a=e-1;a>=0&&128===(192&t[a]);)a--;return 0>a?e:0===a?e:a+s[t[a]]>e?a:e}},{"./common":2}],4:[function(t,e){"use strict";function a(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){s=a>2e3?2e3:a,a-=s;do r=r+e[n++]|0,i=i+r|0;while(--s);r%=65521,i%=65521}return r|i<<16|0}e.exports=a},{}],5:[function(t,e){"use strict";function a(){for(var t,e=[],a=0;256>a;a++){t=a;for(var n=0;8>n;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}function n(t,e,a,n){var i=r,s=n+a;t=-1^t;for(var h=n;s>h;h++)t=t>>>8^i[255&(t^e[h])];return-1^t}var r=a();e.exports=n},{}],6:[function(t,e,a){"use strict";function n(t,e){return t.msg=U[e],e}function r(t){return(t<<1)-(t>4?9:0)}function i(t){for(var e=t.length;--e>=0;)t[e]=0}function s(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(S.arraySet(t.output,e.pending_buf,e.pending_out,a,t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))}function h(t,e){E._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,s(t.strm)}function l(t,e){t.pending_buf[t.pending++]=e}function o(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function _(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,S.arraySet(e,t.input,t.next_in,r,a),1===t.state.wrap?t.adler=j(t.adler,e,r,a):2===t.state.wrap&&(t.adler=I(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)}function d(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-oe?t.strstart-(t.w_size-oe):0,o=t.window,_=t.w_mask,d=t.prev,u=t.strstart+le,f=o[i+s-1],c=o[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do if(a=e,o[a+s]===c&&o[a+s-1]===f&&o[a]===o[i]&&o[++a]===o[i+1]){i+=2,a++;do;while(o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&o[++i]===o[++a]&&u>i);if(n=le-(u-i),i=u-le,n>s){if(t.match_start=e,s=n,n>=h)break;f=o[i+s-1],c=o[i+s]}}while((e=d[e&_])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead}function u(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-oe)){S.arraySet(t.window,t.window,s,s,0),t.match_start-=s,t.strstart-=s,t.block_start-=s,a=t.hash_size,e=a;do n=t.head[--e],t.head[e]=n>=s?n-s:0;while(--a);a=s,e=a;do n=t.prev[--e],t.prev[e]=n>=s?n-s:0;while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=_(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=he)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=(t.ins_h<<t.hash_shift^t.window[i+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[i+he-1])&t.hash_mask,t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<he)););}while(t.lookahead<oe&&0!==t.strm.avail_in)}function f(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(u(t),0===t.lookahead&&e===q)return be;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,h(t,!1),0===t.strm.avail_out))return be;if(t.strstart-t.block_start>=t.w_size-oe&&(h(t,!1),0===t.strm.avail_out))return be}return t.insert=0,e===T?(h(t,!0),0===t.strm.avail_out?we:ye):t.strstart>t.block_start&&(h(t,!1),0===t.strm.avail_out)?be:be}function c(t,e){for(var a,n;;){if(t.lookahead<oe){if(u(t),t.lookahead<oe&&e===q)return be;if(0===t.lookahead)break}if(a=0,t.lookahead>=he&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+he-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-oe&&(t.match_length=d(t,a)),t.match_length>=he)if(n=E._tr_tally(t,t.strstart-t.match_start,t.match_length-he),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=he){t.match_length--;do t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+he-1])&t.hash_mask,a=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=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=E._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(h(t,!1),0===t.strm.avail_out))return be}return t.insert=t.strstart<he-1?t.strstart:he-1,e===T?(h(t,!0),0===t.strm.avail_out?we:ye):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?be:ve}function g(t,e){for(var a,n,r;;){if(t.lookahead<oe){if(u(t),t.lookahead<oe&&e===q)return be;if(0===t.lookahead)break}if(a=0,t.lookahead>=he&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+he-1])&t.hash_mask,a=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=he-1,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-oe&&(t.match_length=d(t,a),t.match_length<=5&&(t.strategy===G||t.match_length===he&&t.strstart-t.match_start>4096)&&(t.match_length=he-1)),t.prev_length>=he&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-he,n=E._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-he),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+he-1])&t.hash_mask,a=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=he-1,t.strstart++,n&&(h(t,!1),0===t.strm.avail_out))return be}else if(t.match_available){if(n=E._tr_tally(t,0,t.window[t.strstart-1]),n&&h(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return be}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=E._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<he-1?t.strstart:he-1,e===T?(h(t,!0),0===t.strm.avail_out?we:ye):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?be:ve}function p(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=le){if(u(t),t.lookahead<=le&&e===q)return be;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=he&&t.strstart>0&&(r=t.strstart-1,n=s[r],n===s[++r]&&n===s[++r]&&n===s[++r])){i=t.strstart+le;do;while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&i>r);t.match_length=le-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=he?(a=E._tr_tally(t,1,t.match_length-he),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=E._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(h(t,!1),0===t.strm.avail_out))return be}return t.insert=0,e===T?(h(t,!0),0===t.strm.avail_out?we:ye):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?be:ve}function m(t,e){for(var a;;){if(0===t.lookahead&&(u(t),0===t.lookahead)){if(e===q)return be;break}if(t.match_length=0,a=E._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(h(t,!1),0===t.strm.avail_out))return be}return t.insert=0,e===T?(h(t,!0),0===t.strm.avail_out?we:ye):t.last_lit&&(h(t,!1),0===t.strm.avail_out)?be:ve}function b(t){t.window_size=2*t.w_size,i(t.head),t.max_lazy_match=C[t.level].max_lazy,t.good_match=C[t.level].good_length,t.nice_match=C[t.level].nice_length,t.max_chain_length=C[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=he-1,t.match_available=0,t.ins_h=0}function v(){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=X,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 S.Buf16(2*ie),this.dyn_dtree=new S.Buf16(2*(2*ne+1)),this.bl_tree=new S.Buf16(2*(2*re+1)),i(this.dyn_ltree),i(this.dyn_dtree),i(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new S.Buf16(se+1),this.heap=new S.Buf16(2*ae+1),i(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new S.Buf16(2*ae+1),i(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function w(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=W,e=t.state,e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?de:pe,t.adler=2===e.wrap?0:1,e.last_flush=q,E._tr_init(e),L):n(t,N)}function y(t){var e=w(t);return e===L&&b(t.state),e}function z(t,e){return t&&t.state?2!==t.state.wrap?N:(t.state.gzhead=e,L):N}function k(t,e,a,r,i,s){if(!t)return N;var h=1;if(e===F&&(e=6),0>r?(h=0,r=-r):r>15&&(h=2,r-=16),1>i||i>Y||a!==X||8>r||r>15||0>e||e>9||0>s||s>Q)return n(t,N);8===r&&(r=9);var l=new v;return t.state=l,l.strm=t,l.wrap=h,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+he-1)/he),l.window=new S.Buf8(2*l.w_size),l.head=new S.Buf16(l.hash_size),l.prev=new S.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new S.Buf8(l.pending_buf_size),l.d_buf=l.lit_bufsize>>1,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=a,y(t)}function x(t,e){return k(t,e,X,Z,$,V)}function B(t,e){var a,h,_,d;if(!t||!t.state||e>H||0>e)return t?n(t,N):N;if(h=t.state,!t.output||!t.input&&0!==t.avail_in||h.status===me&&e!==T)return n(t,0===t.avail_out?P:N);if(h.strm=t,a=h.last_flush,h.last_flush=e,h.status===de)if(2===h.wrap)t.adler=0,l(h,31),l(h,139),l(h,8),h.gzhead?(l(h,(h.gzhead.text?1:0)+(h.gzhead.hcrc?2:0)+(h.gzhead.extra?4:0)+(h.gzhead.name?8:0)+(h.gzhead.comment?16:0)),l(h,255&h.gzhead.time),l(h,h.gzhead.time>>8&255),l(h,h.gzhead.time>>16&255),l(h,h.gzhead.time>>24&255),l(h,9===h.level?2:h.strategy>=J||h.level<2?4:0),l(h,255&h.gzhead.os),h.gzhead.extra&&h.gzhead.extra.length&&(l(h,255&h.gzhead.extra.length),l(h,h.gzhead.extra.length>>8&255)),h.gzhead.hcrc&&(t.adler=I(t.adler,h.pending_buf,h.pending,0)),h.gzindex=0,h.status=ue):(l(h,0),l(h,0),l(h,0),l(h,0),l(h,0),l(h,9===h.level?2:h.strategy>=J||h.level<2?4:0),l(h,ze),h.status=pe);else{var u=X+(h.w_bits-8<<4)<<8,f=-1;f=h.strategy>=J||h.level<2?0:h.level<6?1:6===h.level?2:3,u|=f<<6,0!==h.strstart&&(u|=_e),u+=31-u%31,h.status=pe,o(h,u),0!==h.strstart&&(o(h,t.adler>>>16),o(h,65535&t.adler)),t.adler=1}if(h.status===ue)if(h.gzhead.extra){for(_=h.pending;h.gzindex<(65535&h.gzhead.extra.length)&&(h.pending!==h.pending_buf_size||(h.gzhead.hcrc&&h.pending>_&&(t.adler=I(t.adler,h.pending_buf,h.pending-_,_)),s(t),_=h.pending,h.pending!==h.pending_buf_size));)l(h,255&h.gzhead.extra[h.gzindex]),h.gzindex++;h.gzhead.hcrc&&h.pending>_&&(t.adler=I(t.adler,h.pending_buf,h.pending-_,_)),h.gzindex===h.gzhead.extra.length&&(h.gzindex=0,h.status=fe)}else h.status=fe;if(h.status===fe)if(h.gzhead.name){_=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>_&&(t.adler=I(t.adler,h.pending_buf,h.pending-_,_)),s(t),_=h.pending,h.pending===h.pending_buf_size)){d=1;break}d=h.gzindex<h.gzhead.name.length?255&h.gzhead.name.charCodeAt(h.gzindex++):0,l(h,d)}while(0!==d);h.gzhead.hcrc&&h.pending>_&&(t.adler=I(t.adler,h.pending_buf,h.pending-_,_)),0===d&&(h.gzindex=0,h.status=ce)}else h.status=ce;if(h.status===ce)if(h.gzhead.comment){_=h.pending;do{if(h.pending===h.pending_buf_size&&(h.gzhead.hcrc&&h.pending>_&&(t.adler=I(t.adler,h.pending_buf,h.pending-_,_)),s(t),_=h.pending,h.pending===h.pending_buf_size)){d=1;break}d=h.gzindex<h.gzhead.comment.length?255&h.gzhead.comment.charCodeAt(h.gzindex++):0,l(h,d)}while(0!==d);h.gzhead.hcrc&&h.pending>_&&(t.adler=I(t.adler,h.pending_buf,h.pending-_,_)),0===d&&(h.status=ge)}else h.status=ge;if(h.status===ge&&(h.gzhead.hcrc?(h.pending+2>h.pending_buf_size&&s(t),h.pending+2<=h.pending_buf_size&&(l(h,255&t.adler),l(h,t.adler>>8&255),t.adler=0,h.status=pe)):h.status=pe),0!==h.pending){if(s(t),0===t.avail_out)return h.last_flush=-1,L}else if(0===t.avail_in&&r(e)<=r(a)&&e!==T)return n(t,P);if(h.status===me&&0!==t.avail_in)return n(t,P);if(0!==t.avail_in||0!==h.lookahead||e!==q&&h.status!==me){var c=h.strategy===J?m(h,e):h.strategy===M?p(h,e):C[h.level].func(h,e);if((c===we||c===ye)&&(h.status=me),c===be||c===we)return 0===t.avail_out&&(h.last_flush=-1),L;if(c===ve&&(e===D?E._tr_align(h):e!==H&&(E._tr_stored_block(h,0,0,!1),e===R&&(i(h.head),0===h.lookahead&&(h.strstart=0,h.block_start=0,h.insert=0))),s(t),0===t.avail_out))return h.last_flush=-1,L}return e!==T?L:h.wrap<=0?K:(2===h.wrap?(l(h,255&t.adler),l(h,t.adler>>8&255),l(h,t.adler>>16&255),l(h,t.adler>>24&255),l(h,255&t.total_in),l(h,t.total_in>>8&255),l(h,t.total_in>>16&255),l(h,t.total_in>>24&255)):(o(h,t.adler>>>16),o(h,65535&t.adler)),s(t),h.wrap>0&&(h.wrap=-h.wrap),0!==h.pending?L:K)}function A(t){var e;return t&&t.state?(e=t.state.status,e!==de&&e!==ue&&e!==fe&&e!==ce&&e!==ge&&e!==pe&&e!==me?n(t,N):(t.state=null,e===pe?n(t,O):L)):N}var C,S=t("../utils/common"),E=t("./trees"),j=t("./adler32"),I=t("./crc32"),U=t("./messages"),q=0,D=1,R=3,T=4,H=5,L=0,K=1,N=-2,O=-3,P=-5,F=-1,G=1,J=2,M=3,Q=4,V=0,W=2,X=8,Y=9,Z=15,$=8,te=29,ee=256,ae=ee+1+te,ne=30,re=19,ie=2*ae+1,se=15,he=3,le=258,oe=le+he+1,_e=32,de=42,ue=69,fe=73,ce=91,ge=103,pe=113,me=666,be=1,ve=2,we=3,ye=4,ze=3,ke=function(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r};C=[new ke(0,0,0,0,f),new ke(4,4,8,4,c),new ke(4,5,16,8,c),new ke(4,6,32,32,c),new ke(4,4,16,16,g),new ke(8,16,32,32,g),new ke(8,16,128,128,g),new ke(8,32,128,256,g),new ke(32,128,258,1024,g),new ke(32,258,258,4096,g)],a.deflateInit=x,a.deflateInit2=k,a.deflateReset=y,a.deflateResetKeep=w,a.deflateSetHeader=z,a.deflate=B,a.deflateEnd=A,a.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":2,"./adler32":4,"./crc32":5,"./messages":7,"./trees":8}],7:[function(t,e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],8:[function(t,e,a){"use strict";function n(t){for(var e=t.length;--e>=0;)t[e]=0}function r(t){return 256>t?se[t]:se[256+(t>>>7)]}function i(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function s(t,e,a){t.bi_valid>Q-a?(t.bi_buf|=e<<t.bi_valid&65535,i(t,t.bi_buf),t.bi_buf=e>>Q-t.bi_valid,t.bi_valid+=a-Q):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)}function h(t,e,a){s(t,a[2*e],a[2*e+1])}function l(t,e){var a=0;do a|=1&t,t>>>=1,a<<=1;while(--e>0);return a>>>1}function o(t){16===t.bi_valid?(i(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)}function _(t,e){var a,n,r,i,s,h,l=e.dyn_tree,o=e.max_code,_=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,g=0;for(i=0;M>=i;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;J>a;a++)n=t.heap[a],i=l[2*l[2*n+1]+1]+1,i>c&&(i=c,g++),l[2*n+1]=i,n>o||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(_[2*n+1]+s)));if(0!==g){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,g-=2}while(g>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)r=t.heap[--a],r>o||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}function d(t,e,a){var n,r,i=new Array(M+1),s=0;for(n=1;M>=n;n++)i[n]=s=s+a[n-1]<<1;for(r=0;e>=r;r++){var h=t[2*r+1];0!==h&&(t[2*r]=l(i[h]++,h))}}function u(){var t,e,a,n,r,i=new Array(M+1);for(a=0,n=0;N-1>n;n++)for(le[n]=a,t=0;t<1<<$[n];t++)he[a++]=n;for(he[a-1]=n,r=0,n=0;16>n;n++)for(oe[n]=r,t=0;t<1<<te[n];t++)se[r++]=n;for(r>>=7;F>n;n++)for(oe[n]=r<<7,t=0;t<1<<te[n]-7;t++)se[256+r++]=n;for(e=0;M>=e;e++)i[e]=0;for(t=0;143>=t;)re[2*t+1]=8,t++,i[8]++;for(;255>=t;)re[2*t+1]=9,t++,i[9]++;for(;279>=t;)re[2*t+1]=7,t++,i[7]++;for(;287>=t;)re[2*t+1]=8,t++,i[8]++;for(d(re,P+1,i),t=0;F>t;t++)ie[2*t+1]=5,ie[2*t]=l(t,5);_e=new fe(re,$,O+1,P,M),de=new fe(ie,te,0,F,M),ue=new fe(new Array(0),ee,0,G,V)}function f(t){var e;for(e=0;P>e;e++)t.dyn_ltree[2*e]=0;for(e=0;F>e;e++)t.dyn_dtree[2*e]=0;for(e=0;G>e;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*W]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function c(t){t.bi_valid>8?i(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function g(t,e,a,n){c(t),n&&(i(t,a),i(t,~a)),j.arraySet(t.pending_buf,t.window,e,a,t.pending),t.pending+=a}function p(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]}function m(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&p(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!p(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n}function b(t,e,a){var n,i,l,o,_=0;if(0!==t.last_lit)do n=t.pending_buf[t.d_buf+2*_]<<8|t.pending_buf[t.d_buf+2*_+1],i=t.pending_buf[t.l_buf+_],_++,0===n?h(t,i,e):(l=he[i],h(t,l+O+1,e),o=$[l],0!==o&&(i-=le[l],s(t,i,o)),n--,l=r(n),h(t,l,a),o=te[l],0!==o&&(n-=oe[l],s(t,n,o)));while(_<t.last_lit);h(t,W,e)}function v(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=J,a=0;l>a;a++)0!==i[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)r=t.heap[++t.heap_len]=2>o?++o:0,i[2*r]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)m(t,i,a);r=l;do a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],m(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,m(t,i,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],_(t,e),d(i,o,t.bl_count)}function w(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,o=4;for(0===s&&(l=138,o=3),e[2*(a+1)+1]=65535,n=0;a>=n;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(o>h?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[2*X]++):10>=h?t.bl_tree[2*Y]++:t.bl_tree[2*Z]++,h=0,i=r,0===s?(l=138,o=3):r===s?(l=6,o=3):(l=7,o=4))}function y(t,e,a){var n,r,i=-1,l=e[1],o=0,_=7,d=4;for(0===l&&(_=138,d=3),n=0;a>=n;n++)if(r=l,l=e[2*(n+1)+1],!(++o<_&&r===l)){if(d>o){do h(t,r,t.bl_tree);while(0!==--o)}else 0!==r?(r!==i&&(h(t,r,t.bl_tree),o--),h(t,X,t.bl_tree),s(t,o-3,2)):10>=o?(h(t,Y,t.bl_tree),s(t,o-3,3)):(h(t,Z,t.bl_tree),s(t,o-11,7));o=0,i=r,0===l?(_=138,d=3):r===l?(_=6,d=3):(_=7,d=4)}}function z(t){var e;for(w(t,t.dyn_ltree,t.l_desc.max_code),w(t,t.dyn_dtree,t.d_desc.max_code),v(t,t.bl_desc),e=G-1;e>=3&&0===t.bl_tree[2*ae[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}function k(t,e,a,n){var r;for(s(t,e-257,5),s(t,a-1,5),s(t,n-4,4),r=0;n>r;r++)s(t,t.bl_tree[2*ae[r]+1],3);y(t,t.dyn_ltree,e-1),y(t,t.dyn_dtree,a-1)}function x(t){var e,a=4093624447;for(e=0;31>=e;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return U;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return q;for(e=32;O>e;e++)if(0!==t.dyn_ltree[2*e])return q;return U}function B(t){ge||(u(),ge=!0),t.l_desc=new ce(t.dyn_ltree,_e),t.d_desc=new ce(t.dyn_dtree,de),t.bl_desc=new ce(t.bl_tree,ue),t.bi_buf=0,t.bi_valid=0,f(t)}function A(t,e,a,n){s(t,(R<<1)+(n?1:0),3),g(t,e,a,!0)}function C(t){s(t,T<<1,3),h(t,W,re),o(t)}function S(t,e,a,n){var r,i,h=0;t.level>0?(t.strm.data_type===D&&(t.strm.data_type=x(t)),v(t,t.l_desc),v(t,t.d_desc),h=z(t),r=t.opt_len+3+7>>>3,i=t.static_len+3+7>>>3,r>=i&&(r=i)):r=i=a+5,r>=a+4&&-1!==e?A(t,e,a,n):t.strategy===I||i===r?(s(t,(T<<1)+(n?1:0),3),b(t,re,ie)):(s(t,(H<<1)+(n?1:0),3),k(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),b(t,t.dyn_ltree,t.dyn_dtree)),f(t),n&&c(t)}function E(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(he[a]+O+1)]++,t.dyn_dtree[2*r(e)]++),t.last_lit===t.lit_bufsize-1}var j=t("../utils/common"),I=4,U=0,q=1,D=2,R=0,T=1,H=2,L=3,K=258,N=29,O=256,P=O+1+N,F=30,G=19,J=2*P+1,M=15,Q=16,V=7,W=256,X=16,Y=17,Z=18,$=[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],te=[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],ee=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ne=512,re=new Array(2*(P+2));n(re);var ie=new Array(2*F);n(ie);var se=new Array(ne);n(se);var he=new Array(K-L+1);n(he);var le=new Array(N);n(le);var oe=new Array(F);n(oe);var _e,de,ue,fe=function(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length},ce=function(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e},ge=!1;a._tr_init=B,a._tr_stored_block=A,a._tr_flush_block=S,a._tr_tally=E,a._tr_align=C},{"../utils/common":2}],9:[function(t,e){"use strict";function a(){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}e.exports=a},{}]},{},[1])(1)});

@@ -1,2 +0,2 @@

/* pako 0.1.1 nodeca/pako */
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.pako=e()}}(function(){return function e(t,i,n){function a(r,o){if(!i[r]){if(!t[r]){var d="function"==typeof require&&require;if(!o&&d)return d(r,!0);if(s)return s(r,!0);throw new Error("Cannot find module '"+r+"'")}var f=i[r]={exports:{}};t[r][0].call(f.exports,function(e){var i=t[r][1][e];return a(i?i:e)},f,f.exports,e,t,i,n)}return i[r].exports}for(var s="function"==typeof require&&require,r=0;r<n.length;r++)a(n[r]);return a}({1:[function(e,t,i){"use strict";function n(e,t){var i=new l(t);if(i.push(e,!0),i.err)throw i.msg;return i.result}function a(e,t){return t=t||{},t.raw=!0,n(e,t)}var s=e("./zlib/inflate.js"),r=e("./zlib/utils"),o=e("./zlib/constants"),d=e("./zlib/messages"),f=e("./zlib/zstream"),l=function(e){this.options=r.assign({chunkSize:16384,windowBits:0},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f;var i=s.inflateInit2(this.strm,t.windowBits);if(i!==o.Z_OK)throw new Error(d[i])};l.prototype.push=function(e,t){var i,n,a=this.strm,d=this.options.chunkSize;if(this.ended)return!1;n=o.Z_NO_FLUSH,a.next_in=e,a.next_in_index=0,a.avail_in=a.next_in.length,a.next_out=new r.Buf8(d);do{if(a.avail_out=this.options.chunkSize,a.next_out_index=0,i=s.inflate(a,n),i!==o.Z_STREAM_END&&i!==o.Z_OK)return this.onEnd(i),this.ended=!0,!1;a.next_out_index&&(this.onData(r.shrinkBuf(a.next_out,a.next_out_index)),(a.avail_in>0||0===a.avail_out)&&(a.next_out=new r.Buf8(this.options.chunkSize)))}while(a.avail_in>0||0===a.avail_out);return n=t===~~t?t:t===!0?o.Z_FINISH:o.Z_NO_FLUSH,n===o.Z_FINISH?(i=s.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===o.Z_OK):!0},l.prototype.onData=function(e){this.chunks.push(e)},l.prototype.onEnd=function(e){e===o.Z_OK&&(this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},i.Inflate=l,i.inflate=n,i.inflateRaw=a},{"./zlib/constants":3,"./zlib/inflate.js":6,"./zlib/messages":8,"./zlib/utils":9,"./zlib/zstream":10}],2:[function(e,t){"use strict";function i(e,t,i,n){for(var a=65535&e|0,s=e>>>16&65535|0,r=0;0!==i;){r=i>2e3?2e3:i,i-=r;do a=a+t[n++]|0,s=s+a|0;while(--r);a%=65521,s%=65521}return a|s<<16|0}t.exports=i},{}],3:[function(e,t){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],4:[function(e,t){"use strict";function i(){for(var e,t=[],i=0;256>i;i++){e=i;for(var n=0;8>n;n++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t}function n(e,t,i,n){var s=a,r=n+i;e=-1^e;for(var o=n;r>o;o++)e=e>>>8^s[255&(e^t[o])];return-1^e}var a=i();t.exports=n},{}],5:[function(e,t){"use strict";var i=30,n=12;t.exports=function(e,t){var a,s,r,o,d,f,l,c,h,u,w,b,_,k,m,x,v,g,p,y,B,E,S,Z,z;a=e.state,s=e.next_in_index,Z=e.next_in,r=s+(e.avail_in-5),o=e.next_out_index,z=e.next_out,d=o-(t-e.avail_out),f=o+(e.avail_out-257),l=a.dmax,c=a.wsize,h=a.whave,u=a.wnext,w=a.window,b=a.hold,_=a.bits,k=a.lencode,m=a.distcode,x=(1<<a.lenbits)-1,v=(1<<a.distbits)-1;e:do{15>_&&(b+=Z[s++]<<_,_+=8,b+=Z[s++]<<_,_+=8),g=k[b&x];t:for(;;){if(p=g>>>24,b>>>=p,_-=p,p=g>>>16&255,0===p)z[o++]=65535&g;else{if(!(16&p)){if(0===(64&p)){g=k[(65535&g)+(b&(1<<p)-1)];continue t}if(32&p){a.mode=n;break e}e.msg="invalid literal/length code",a.mode=i;break e}y=65535&g,p&=15,p&&(p>_&&(b+=Z[s++]<<_,_+=8),y+=b&(1<<p)-1,b>>>=p,_-=p),15>_&&(b+=Z[s++]<<_,_+=8,b+=Z[s++]<<_,_+=8),g=m[b&v];i:for(;;){if(p=g>>>24,b>>>=p,_-=p,p=g>>>16&255,!(16&p)){if(0===(64&p)){g=m[(65535&g)+(b&(1<<p)-1)];continue i}e.msg="invalid distance code",a.mode=i;break e}if(B=65535&g,p&=15,p>_&&(b+=Z[s++]<<_,_+=8,p>_&&(b+=Z[s++]<<_,_+=8)),B+=b&(1<<p)-1,B>l){e.msg="invalid distance too far back",a.mode=i;break e}if(b>>>=p,_-=p,p=o-d,B>p){if(p=B-p,p>h&&a.sane){e.msg="invalid distance too far back",a.mode=i;break e}if(E=0,S=w,0===u){if(E+=c-p,y>p){y-=p;do z[o++]=w[E++];while(--p);E=o-B,S=z}}else if(p>u){if(E+=c+u-p,p-=u,y>p){y-=p;do z[o++]=w[E++];while(--p);if(E=0,y>u){p=u,y-=p;do z[o++]=w[E++];while(--p);E=o-B,S=z}}}else if(E+=u-p,y>p){y-=p;do z[o++]=w[E++];while(--p);E=o-B,S=z}for(;y>2;)z[o++]=S[E++],z[o++]=S[E++],z[o++]=S[E++],y-=3;y&&(z[o++]=S[E++],y>1&&(z[o++]=S[E++]))}else{E=o-B;do z[o++]=z[E++],z[o++]=z[E++],z[o++]=z[E++],y-=3;while(y>2);y&&(z[o++]=z[E++],y>1&&(z[o++]=z[E++]))}break}}break}}while(r>s&&f>o);y=_>>3,s-=y,_-=y<<3,b&=(1<<_)-1,e.next_in_index=s,e.next_out_index=o,e.avail_in=r>s?5+(r-s):5-(s-r),e.avail_out=f>o?257+(f-o):257-(o-f),a.hold=b,a.bits=_}},{}],6:[function(e,t,i){"use strict";function n(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function a(){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.next_index=0,this.lens=new m.Buf16(320),this.work=new m.Buf16(288),this.codes=new m.Buf32(kt),this.sane=0,this.back=0,this.was=0}function s(e,t,i,n,a,s,r,o){this.type=e,this.lens=t,this.lens_index=i,this.codes=n,this.table=a,this.table_index=s,this.bits=r,this.work=o}function r(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,t.wrap&&(e.adler=1&t.wrap),t.mode=L,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=new m.Buf32(kt),t.distcode=new m.Buf32(kt),t.sane=1,t.back=-1,R):N}function o(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,r(e)):N}function d(e,t){var i,n;return e&&e.state?(n=e.state,0>t?(i=0,t=-t):(i=(t>>4)+1,48>t&&(t&=15)),t&&(8>t||t>15)?N:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=i,n.wbits=t,o(e))):N}function f(e,t){var i,n;return e?(n=new a,e.state=n,n.window=null,i=d(e,t),i!==R&&(e.state=null),i):N}function l(e){return f(e,xt)}function c(e,t,i){var n;return e&&e.state?(n=e.state,0>t?(n.hold=0,n.bits=0,R):t>16||n.bits+t>32?N:(i&=(1<<t)-1,n.hold+=i<<n.bits,n.bits+=t,R)):N}function h(e){if(vt){var t,i;for(_=new m.Buf32(512),k=new m.Buf32(32),t=0;144>t;)e.lens[t++]=8;for(;256>t;)e.lens[t++]=9;for(;280>t;)e.lens[t++]=7;for(;288>t;)e.lens[t++]=8;for(i=9,p(new s(B,e.lens,0,288,_,0,i,e.work)),t=0;32>t;)e.lens[t++]=5;i=5,p(new s(E,e.lens,0,32,k,0,i,e.work)),vt=!1}e.lencode=_,e.lenbits=9,e.distcode=k,e.distbits=5}function u(e,t,i,n){var a,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new m.Buf8(s.wsize)),n>=s.wsize?(m.arraySet(s.window,t,i-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>n&&(a=n),m.arraySet(s.window,t,i-n,a,s.wnext),n-=a,n?(m.arraySet(s.window,t,i-n,n,0),s.wnext=n,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=a))),0}function w(e,t){var i,a,r,o,d,f,l,c,w,b,_,k,bt,_t,kt,mt,xt,vt,gt,pt,yt,Bt,Et,St,Zt=0,zt=new m.Buf8(4),Rt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];i=e.state,i.mode===G&&(i.mode=W),d=e.next_out_index,r=e.next_out,l=e.avail_out,o=e.next_in_index,a=e.next_in,f=e.avail_in,c=i.hold,w=i.bits,b=f,_=l,Bt=R;e:for(;;)switch(i.mode){case L:if(0===i.wrap){i.mode=W;break}for(;16>w;){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}if(2&i.wrap&&35615===c){i.check=0,zt[0]=255&c,zt[1]=c>>>8&255,i.check=v(i.check,zt,2,0),c=0,w=0,i.mode=D;break}if(i.flags=0,i.head&&(i.head.done=-1),!(1&i.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",i.mode=ht;break}if((15&c)!==U){e.msg="unknown compression method",i.mode=ht;break}if(c>>>=4,w-=4,yt=(15&c)+8,0===i.wbits)i.wbits=yt;else if(yt>i.wbits){e.msg="invalid window size",i.mode=ht;break}i.dmax=1<<yt,e.adler=i.check=1,i.mode=512&c?Y:G,c=0,w=0;break;case D:for(;16>w;){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}if(i.flags=c,(255&i.flags)!==U){e.msg="unknown compression method",i.mode=ht;break}if(57344&i.flags){e.msg="unknown header flags set",i.mode=ht;break}i.head&&(i.head.text=c>>8&1),512&i.flags&&(zt[0]=255&c,zt[1]=c>>>8&255,i.check=v(i.check,zt,2,0)),c=0,w=0,i.mode=C;case C:for(;32>w;){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}i.head&&(i.head.time=c),512&i.flags&&(zt[0]=255&c,zt[1]=c>>>8&255,zt[2]=c>>>16&255,zt[3]=c>>>24&255,i.check=v(i.check,zt,4,0)),c=0,w=0,i.mode=H;case H:for(;16>w;){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}i.head&&(i.head.xflags=255&c,i.head.os=c>>8),512&i.flags&&(zt[0]=255&c,zt[1]=c>>>8&255,i.check=v(i.check,zt,2,0)),c=0,w=0,i.mode=K;case K:if(1024&i.flags){for(;16>w;){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}i.length=c,i.head&&(i.head.extra_len=c),512&i.flags&&(zt[0]=255&c,zt[1]=c>>>8&255,i.check=v(i.check,zt,2,0)),c=0,w=0}else i.head&&(i.head.extra=null);i.mode=M;case M:if(1024&i.flags){if(k=i.length,k>f&&(k=f),k){if(i.head&&i.head.extra)throw yt=i.head.extra_len-i.length,"Review & implement right";512&i.flags&&(i.check=v(i.check,a,k,o)),f-=k,o+=k,i.length-=k}if(i.length)break e}i.length=0,i.mode=P;case P:if(2048&i.flags){if(0===f)break e;k=0;do yt=a[o+k++],i.head&&i.head.name&&i.length<i.head.name_max&&(i.head.name[i.length++]=yt);while(yt&&f>k);if(512&i.flags&&(i.check=v(i.check,a,k,o)),f-=k,o+=k,yt)break e}else i.head&&(i.head.name=null);i.length=0,i.mode=j;case j:if(4096&i.flags){if(0===f)break e;k=0;do yt=a[o+k++],i.head&&i.head.comment&&i.length<i.head.comm_max&&(i.head.comment[i.length++]=yt);while(yt&&f>k);if(512&i.flags&&(i.check=v(i.check,a,k,o)),f-=k,o+=k,yt)break e}else i.head&&(i.head.comment=null);i.mode=q;case q:if(512&i.flags){for(;16>w;){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}if(c!==(65535&i.check)){e.msg="header crc mismatch",i.mode=ht;break}c=0,w=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=1),e.adler=i.check=0,i.mode=G;break;case Y:for(;32>w;){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}e.adler=i.check=n(c),c=0,w=0,i.mode=X;case X:if(0===i.havedict)return e.next_out_index=d,e.avail_out=l,e.next_in_index=o,e.avail_in=f,i.hold=c,i.bits=w,O;e.adler=i.check=1,i.mode=G;case G:if(t===Z||t===z)break e;case W:if(i.last){c>>>=7&w,w-=7&w,i.mode=ft;break}for(;3>w;){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}switch(i.last=1&c,c>>>=1,w-=1,3&c){case 0:i.mode=J;break;case 1:if(h(i),i.mode=it,t===z){c>>>=2,w-=2;break e}break;case 2:i.mode=$;break;case 3:e.msg="invalid block type",i.mode=ht}c>>>=2,w-=2;break;case J:for(c>>>=7&w,w-=7&w;32>w;){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}if((65535&c)!==(c>>>16^65535)){e.msg="invalid stored block lengths",i.mode=ht;break}if(i.length=65535&c,c=0,w=0,i.mode=Q,t===z)break e;case Q:i.mode=V;case V:if(k=i.length){if(k>f&&(k=f),k>l&&(k=l),0===k)break e;m.arraySet(r,a,o,k,d),f-=k,o+=k,l-=k,d+=k,i.length-=k;break}i.mode=G;break;case $:for(;14>w;){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}if(i.nlen=(31&c)+257,c>>>=5,w-=5,i.ndist=(31&c)+1,c>>>=5,w-=5,i.ncode=(15&c)+4,c>>>=4,w-=4,i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols",i.mode=ht;break}i.have=0,i.mode=et;case et:for(;i.have<i.ncode;){for(;3>w;){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}i.lens[Rt[i.have++]]=7&c,c>>>=3,w-=3}for(;i.have<19;)i.lens[Rt[i.have++]]=0;if(m.arraySet(i.lencode,i.codes,0,i.codes.length,0),i.lenbits=7,Et=new s(y,i.lens,0,19,i.lencode,0,i.lenbits,i.work),Bt=p(Et),i.lenbits=Et.bits,Bt){e.msg="invalid code lengths set",i.mode=ht;break}i.have=0,i.mode=tt;case tt:for(;i.have<i.nlen+i.ndist;){for(;Zt=i.lencode[c&(1<<i.lenbits)-1],kt=Zt>>>24,mt=Zt>>>16&255,xt=65535&Zt,!(w>=kt);){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}if(16>xt)c>>>=kt,w-=kt,i.lens[i.have++]=xt;else{if(16===xt){for(St=kt+2;St>w;){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}if(c>>>=kt,w-=kt,0===i.have){e.msg="invalid bit length repeat",i.mode=ht;break}yt=i.lens[i.have-1],k=3+(3&c),c>>>=2,w-=2}else if(17===xt){for(St=kt+3;St>w;){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}c>>>=kt,w-=kt,yt=0,k=3+(7&c),c>>>=3,w-=3}else{for(St=kt+7;St>w;){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}c>>>=kt,w-=kt,yt=0,k=11+(127&c),c>>>=7,w-=7}if(i.have+k>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=ht;break}for(;k--;)i.lens[i.have++]=yt}}if(i.mode===ht)break;if(0===i.lens[256]){e.msg="invalid code -- missing end-of-block",i.mode=ht;break}if(m.arraySet(i.lencode,i.codes,0,i.codes.length,0),i.lenbits=9,Et=new s(B,i.lens,0,i.nlen,i.lencode,0,i.lenbits,i.work),Bt=p(Et),i.lenbits=Et.bits,Bt){e.msg="invalid literal/lengths set",i.mode=ht;break}if(i.distbits=6,m.arraySet(i.distcode,i.codes,0,i.codes.length,0),Et=new s(E,i.lens,i.nlen,i.ndist,i.distcode,0,i.distbits,i.work),Bt=p(Et),i.distbits=Et.bits,Bt){e.msg="invalid distances set",i.mode=ht;break}if(i.mode=it,t===z)break e;case it:i.mode=nt;case nt:if(f>=6&&l>=258){e.next_out_index=d,e.avail_out=l,e.next_in_index=o,e.avail_in=f,i.hold=c,i.bits=w,g(e,_),d=e.next_out_index,r=e.next_out,l=e.avail_out,o=e.next_in_index,a=e.next_in,f=e.avail_in,c=i.hold,w=i.bits,i.mode===G&&(i.back=-1);break}for(i.back=0;Zt=i.lencode[c&(1<<i.lenbits)-1],kt=Zt>>>24,mt=Zt>>>16&255,xt=65535&Zt,!(w>=kt);){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}if(mt&&0===(240&mt)){for(vt=kt,gt=mt,pt=xt;Zt=i.lencode[pt+((c&(1<<vt+gt)-1)>>vt)],kt=Zt>>>24,mt=Zt>>>16&255,xt=65535&Zt,!(w>=vt+kt);){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}c>>>=vt,w-=vt,i.back+=vt}if(c>>>=kt,w-=kt,i.back+=kt,i.length=xt,0===mt){i.mode=dt;break}if(32&mt){i.back=-1,i.mode=G;break}if(64&mt){e.msg="invalid literal/length code",i.mode=ht;break}i.extra=15&mt,i.mode=at;case at:if(i.extra){for(St=i.extra;St>w;){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}i.length+=c&(1<<i.extra)-1,c>>>=i.extra,w-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=st;case st:for(;Zt=i.distcode[c&(1<<i.distbits)-1],kt=Zt>>>24,mt=Zt>>>16&255,xt=65535&Zt,!(w>=kt);){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}if(0===(240&mt)){for(vt=kt,gt=mt,pt=xt;Zt=i.distcode[pt+((c&(1<<vt+gt)-1)>>vt)],kt=Zt>>>24,mt=Zt>>>16&255,xt=65535&Zt,!(w>=vt+kt);){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}c>>>=vt,w-=vt,i.back+=vt}if(c>>>=kt,w-=kt,i.back+=kt,64&mt){e.msg="invalid distance code",i.mode=ht;break}i.offset=xt,i.extra=15&mt,i.mode=rt;case rt:if(i.extra){for(St=i.extra;St>w;){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}i.offset+=c&(1<<i.extra)-1,c>>>=i.extra,w-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=ht;break}i.mode=ot;case ot:if(0===l)break e;if(k=_-l,i.offset>k){if(k=i.offset-k,k>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=ht;break}k>i.wnext?(k-=i.wnext,bt=i.wsize-k):bt=i.wnext-k,k>i.length&&(k=i.length),_t=i.window}else _t=r,bt=d-i.offset,k=i.length;k>l&&(k=l),l-=k,i.length-=k;do r[d++]=_t[bt++];while(--k);0===i.length&&(i.mode=nt);break;case dt:if(0===l)break e;r[d++]=i.length,l--,i.mode=nt;break;case ft:if(i.wrap){for(;32>w;){if(0===f)break e;f--,c|=a[o++]<<w,w+=8}if(_-=l,e.total_out+=_,i.total+=_,_&&(e.adler=i.check=i.flags?v(i.check,r,_,d-_):x(i.check,r,_,d-_)),_=l,(i.flags?c:n(c))!==i.check){e.msg="incorrect data check",i.mode=ht;break}c=0,w=0}i.mode=lt;case lt:if(i.wrap&&i.flags){for(;32>w;){if(0===f)break e;f--,c+=a[o++]<<w,w+=8}if(c!==(4294967295&i.total)){e.msg="incorrect length check",i.mode=ht;break}c=0,w=0}i.mode=ct;case ct:Bt=A;break e;case ht:Bt=I;break e;case ut:return T;case wt:default:return N}return e.next_out_index=d,e.avail_out=l,e.next_in_index=o,e.avail_in=f,i.hold=c,i.bits=w,(i.wsize||_!==e.avail_out&&i.mode<ht&&(i.mode<ft||t!==S))&&u(e,e.next_out,e.next_out_index,_-e.avail_out)?(i.mode=ut,T):(b-=e.avail_in,_-=e.avail_out,e.total_in+=b,e.total_out+=_,i.total+=_,i.wrap&&_&&(e.adler=i.check=i.flags?v(i.check,r,_,e.next_out_index-_):x(i.check,r,_,e.next_out_index-_)),e.data_type=i.bits+(i.last?64:0)+(i.mode===G?128:0)+(i.mode===it||i.mode===Q?256:0),(0===b&&0===_||t===S)&&Bt===R&&(Bt=F),Bt)}function b(e){var t=e.state;return t.window&&(t.window=null),e.state=null,R}var _,k,m=e("./utils"),x=e("./adler32"),v=e("./crc32"),g=e("./inffast"),p=e("./inftrees"),y=0,B=1,E=2,S=4,Z=5,z=6,R=0,A=1,O=2,N=-2,I=-3,T=-4,F=-5,U=8,L=1,D=2,C=3,H=4,K=5,M=6,P=7,j=8,q=9,Y=10,X=11,G=12,W=13,J=14,Q=15,V=16,$=17,et=18,tt=19,it=20,nt=21,at=22,st=23,rt=24,ot=25,dt=26,ft=27,lt=28,ct=29,ht=30,ut=31,wt=32,bt=852,_t=592,kt=bt+_t,mt=15,xt=mt,vt=!0;i.inflateReset=o,i.inflateReset2=d,i.inflateResetKeep=r,i.inflateInit=l,i.inflateInit2=f,i.inflatePrime=c,i.inflate=w,i.inflateEnd=b,i.inflateInfo="pako inflate (from Nodeca project)"},{"./adler32":2,"./crc32":4,"./inffast":5,"./inftrees":7,"./utils":9}],7:[function(e,t){"use strict";var i=e("./utils"),n=15,a=852,s=592,r=0,o=1,d=2,f=[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],l=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e){var t,u,w,b,_,k,m,x,v,g=e.type,p=e.lens,y=e.codes,B=e.table,E=e.bits,S=e.work,Z=0,z=0,R=0,A=0,O=0,N=0,I=0,T=0,F=0,U=0,L=null,D=0,C=new i.Buf16(n+1),H=new i.Buf16(n+1),K=null,M=0;for(Z=0;n>=Z;Z++)C[Z]=0;for(z=0;y>z;z++)C[p[e.lens_index+z]]++;for(O=E,A=n;A>=1&&0===C[A];A--);if(O>A&&(O=A),0===A)return B[e.table_index++]=20971520,B[e.table_index++]=20971520,e.bits=1,0;for(R=1;A>R&&0===C[R];R++);for(R>O&&(O=R),T=1,Z=1;n>=Z;Z++)if(T<<=1,T-=C[Z],0>T)return-1;if(T>0&&(g===r||1!==A))return-1;for(H[1]=0,Z=1;n>Z;Z++)H[Z+1]=H[Z]+C[Z];for(z=0;y>z;z++)0!==p[e.lens_index+z]&&(S[H[p[e.lens_index+z]]++]=z);switch(g){case r:L=K=S,k=19;break;case o:L=f,D-=257,K=l,M-=257,k=256;break;default:L=c,K=h,k=-1}if(U=0,z=0,Z=R,_=e.table_index,N=O,I=0,w=-1,F=1<<O,b=F-1,g===o&&F>a||g===d&&F>s)return 1;for(var P=0;;){P++,m=Z-I,S[z]<k?(x=0,v=S[z]):S[z]>k?(x=K[M+S[z]],v=L[D+S[z]]):(x=96,v=0),t=1<<Z-I,u=1<<N,R=u;do u-=t,B[_+(U>>I)+u]=m<<24|x<<16|v|0;while(0!==u);for(t=1<<Z-1;U&t;)t>>=1;if(0!==t?(U&=t-1,U+=t):U=0,z++,0===--C[Z]){if(Z===A)break;Z=p[e.lens_index+S[z]]}if(Z>O&&(U&b)!==w){for(0===I&&(I=O),_+=R,N=Z-I,T=1<<N;A>N+I&&(T-=C[N+I],!(0>=T));)N++,T<<=1;if(F+=1<<N,g===o&&F>a||g===d&&F>s)return 1;w=U&b,B[w]=O<<24|N<<16|_-e.table_index}}return 0!==U&&(B[_+U]=Z-I<<24|64<<16|0),e.table_index+=F,e.bits=O,0}},{"./utils":9}],8:[function(e,t){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],9:[function(e,t,i){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;i.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var i=t.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])}}return e},i.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,i,n,a){if(t.subarray)return void e.set(t.subarray(i,i+n),a);for(var s=0;n>s;s++)e[a+s]=t[i+s]},flattenChunks:function(e){var t,i,n,a,s,r;for(n=0,t=0,i=e.length;i>t;t++)n+=e[t].length;for(r=new Uint8Array(n),a=0,t=0,i=e.length;i>t;t++)s=e[t],r.set(s,a),a+=s.length;return r}},s={arraySet:function(e,t,i,n,a){for(var s=0;n>s;s++)e[a+s]=t[i+s]},flattenChunks:function(e){return[].concat.apply([],e)}};i.setTyped=function(e){e?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,a)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,s))},i.setTyped(n)},{}],10:[function(e,t){"use strict";function i(){this.next_in=null,this.next_in_index=0,this.avail_in=0,this.total_in=0,this.next_out=null,this.next_out_index=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}t.exports=i},{}]},{},[1])(1)});
/* pako 0.2.0 nodeca/pako */
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.pako=e()}}(function(){return function e(t,i,n){function a(o,s){if(!i[o]){if(!t[o]){var f="function"==typeof require&&require;if(!s&&f)return f(o,!0);if(r)return r(o,!0);throw new Error("Cannot find module '"+o+"'")}var l=i[o]={exports:{}};t[o][0].call(l.exports,function(e){var i=t[o][1][e];return a(i?i:e)},l,l.exports,e,t,i,n)}return i[o].exports}for(var r="function"==typeof require&&require,o=0;o<n.length;o++)a(n[o]);return a}({1:[function(e,t,i){"use strict";function n(e,t){var i=new c(t);if(i.push(e,!0),i.err)throw i.msg;return i.result}function a(e,t){return t=t||{},t.raw=!0,n(e,t)}var r=e("./zlib/inflate.js"),o=e("./utils/common"),s=e("./utils/strings"),f=e("./zlib/constants"),l=e("./zlib/messages"),d=e("./zlib/zstream"),h=e("./zlib/gzheader"),c=function(e){this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var i=r.inflateInit2(this.strm,t.windowBits);if(i!==f.Z_OK)throw new Error(l[i]);this.header=new h,r.inflateGetHeader(this.strm,this.header)};c.prototype.push=function(e,t){var i,n,a,l,d,h=this.strm,c=this.options.chunkSize;if(this.ended)return!1;n=t===~~t?t:t===!0?f.Z_FINISH:f.Z_NO_FLUSH,h.input="string"==typeof e?s.binstring2buf(e):e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new o.Buf8(c),h.next_out=0,h.avail_out=c),i=r.inflate(h,f.Z_NO_FLUSH),i!==f.Z_STREAM_END&&i!==f.Z_OK)return this.onEnd(i),this.ended=!0,!1;h.next_out&&(0===h.avail_out||i===f.Z_STREAM_END||0===h.avail_in&&n===f.Z_FINISH)&&("string"===this.options.to?(a=s.utf8border(h.output,h.next_out),l=h.next_out-a,d=s.buf2string(h.output,a),h.next_out=l,h.avail_out=c-l,l&&o.arraySet(h.output,h.output,a,l,0),this.onData(d)):this.onData(o.shrinkBuf(h.output,h.next_out)))}while((h.avail_in>0||0===h.avail_out)&&i!==f.Z_STREAM_END);return i===f.Z_STREAM_END&&(n=f.Z_FINISH),n===f.Z_FINISH?(i=r.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===f.Z_OK):!0},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){e===f.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},i.Inflate=c,i.inflate=n,i.inflateRaw=a,i.ungzip=n},{"./utils/common":2,"./utils/strings":3,"./zlib/constants":5,"./zlib/gzheader":7,"./zlib/inflate.js":9,"./zlib/messages":11,"./zlib/zstream":12}],2:[function(e,t,i){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;i.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var i=t.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])}}return e},i.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,i,n,a){if(t.subarray&&e.subarray)return void e.set(t.subarray(i,i+n),a);for(var r=0;n>r;r++)e[a+r]=t[i+r]},flattenChunks:function(e){var t,i,n,a,r,o;for(n=0,t=0,i=e.length;i>t;t++)n+=e[t].length;for(o=new Uint8Array(n),a=0,t=0,i=e.length;i>t;t++)r=e[t],o.set(r,a),a+=r.length;return o}},r={arraySet:function(e,t,i,n,a){for(var r=0;n>r;r++)e[a+r]=t[i+r]},flattenChunks:function(e){return[].concat.apply([],e)}};i.setTyped=function(e){e?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,a)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,r))},i.setTyped(n)},{}],3:[function(e,t,i){"use strict";var n=e("./common"),a=!0;try{String.fromCharCode.apply(null,[0])}catch(r){a=!1}for(var o=new n.Buf8(256),s=0;256>s;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;o[254]=o[254]=1,i.string2buf=function(e){var t,i,a,r,o,s=e.length,f=0;for(r=0;s>r;r++)i=e.charCodeAt(r),55296===(64512&i)&&s>r+1&&(a=e.charCodeAt(r+1),56320===(64512&a)&&(i=65536+(i-55296<<10)+(a-56320),r++)),f+=128>i?1:2048>i?2:65536>i?3:4;for(t=new n.Buf8(f),o=0,r=0;f>o;r++)i=e.charCodeAt(r),55296===(64512&i)&&s>r+1&&(a=e.charCodeAt(r+1),56320===(64512&a)&&(i=65536+(i-55296<<10)+(a-56320),r++)),128>i?t[o++]=i:2048>i?(t[o++]=192|i>>>6,t[o++]=128|63&i):65536>i?(t[o++]=224|i>>>12,t[o++]=128|i>>>6&63,t[o++]=128|63&i):(t[o++]=240|i>>>18,t[o++]=128|i>>>12&63,t[o++]=128|i>>>6&63,t[o++]=128|63&i);return t},i.buf2binstring=function(e){if(a&&e.length<65537)return String.fromCharCode.apply(null,e);for(var t="",i=0,n=e.length;n>i;i++)t+=String.fromCharCode(e[i]);return t},i.binstring2buf=function(e){for(var t=new n.Buf8(e.length),i=0,a=t.length;a>i;i++)t[i]=e.charCodeAt(i);return t},i.buf2string=function(e,t){var i,r,s,f,l,d=t||e.length,h=new Array(2*d);for(s=0,r=0;d>r;)if(f=e[r++],128>f)h[s++]=f;else if(l=o[f],l>4)h[s++]=65533,r+=l-1;else{for(f&=2===l?31:3===l?15:7;l>1&&d>r;)f=f<<6|63&e[r++],l--;l>1?h[s++]=65533:65536>f?h[s++]=f:(f-=65536,h[s++]=55296|f>>10&1023,h[s++]=56320|1023&f)}if(a)return String.fromCharCode.apply(null,n.shrinkBuf(h,s));for(i="",r=0,d=s;d>r;r++)i+=String.fromCharCode(h[r]);return i},i.utf8border=function(e,t){var i;for(t=t||e.length,t>e.length&&(t=e.length),i=t-1;i>=0&&128===(192&e[i]);)i--;return 0>i?t:0===i?t:i+o[e[i]]>t?i:t}},{"./common":2}],4:[function(e,t){"use strict";function i(e,t,i,n){for(var a=65535&e|0,r=e>>>16&65535|0,o=0;0!==i;){o=i>2e3?2e3:i,i-=o;do a=a+t[n++]|0,r=r+a|0;while(--o);a%=65521,r%=65521}return a|r<<16|0}t.exports=i},{}],5:[function(e,t){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],6:[function(e,t){"use strict";function i(){for(var e,t=[],i=0;256>i;i++){e=i;for(var n=0;8>n;n++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t}function n(e,t,i,n){var r=a,o=n+i;e=-1^e;for(var s=n;o>s;s++)e=e>>>8^r[255&(e^t[s])];return-1^e}var a=i();t.exports=n},{}],7:[function(e,t){"use strict";function i(){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}t.exports=i},{}],8:[function(e,t){"use strict";var i=30,n=12;t.exports=function(e,t){var a,r,o,s,f,l,d,h,c,u,b,w,m,k,g,_,v,p,x,y,S,B,E,Z,A;a=e.state,r=e.next_in,Z=e.input,o=r+(e.avail_in-5),s=e.next_out,A=e.output,f=s-(t-e.avail_out),l=s+(e.avail_out-257),d=a.dmax,h=a.wsize,c=a.whave,u=a.wnext,b=a.window,w=a.hold,m=a.bits,k=a.lencode,g=a.distcode,_=(1<<a.lenbits)-1,v=(1<<a.distbits)-1;e:do{15>m&&(w+=Z[r++]<<m,m+=8,w+=Z[r++]<<m,m+=8),p=k[w&_];t:for(;;){if(x=p>>>24,w>>>=x,m-=x,x=p>>>16&255,0===x)A[s++]=65535&p;else{if(!(16&x)){if(0===(64&x)){p=k[(65535&p)+(w&(1<<x)-1)];continue t}if(32&x){a.mode=n;break e}e.msg="invalid literal/length code",a.mode=i;break e}y=65535&p,x&=15,x&&(x>m&&(w+=Z[r++]<<m,m+=8),y+=w&(1<<x)-1,w>>>=x,m-=x),15>m&&(w+=Z[r++]<<m,m+=8,w+=Z[r++]<<m,m+=8),p=g[w&v];i:for(;;){if(x=p>>>24,w>>>=x,m-=x,x=p>>>16&255,!(16&x)){if(0===(64&x)){p=g[(65535&p)+(w&(1<<x)-1)];continue i}e.msg="invalid distance code",a.mode=i;break e}if(S=65535&p,x&=15,x>m&&(w+=Z[r++]<<m,m+=8,x>m&&(w+=Z[r++]<<m,m+=8)),S+=w&(1<<x)-1,S>d){e.msg="invalid distance too far back",a.mode=i;break e}if(w>>>=x,m-=x,x=s-f,S>x){if(x=S-x,x>c&&a.sane){e.msg="invalid distance too far back",a.mode=i;break e}if(B=0,E=b,0===u){if(B+=h-x,y>x){y-=x;do A[s++]=b[B++];while(--x);B=s-S,E=A}}else if(x>u){if(B+=h+u-x,x-=u,y>x){y-=x;do A[s++]=b[B++];while(--x);if(B=0,y>u){x=u,y-=x;do A[s++]=b[B++];while(--x);B=s-S,E=A}}}else if(B+=u-x,y>x){y-=x;do A[s++]=b[B++];while(--x);B=s-S,E=A}for(;y>2;)A[s++]=E[B++],A[s++]=E[B++],A[s++]=E[B++],y-=3;y&&(A[s++]=E[B++],y>1&&(A[s++]=E[B++]))}else{B=s-S;do A[s++]=A[B++],A[s++]=A[B++],A[s++]=A[B++],y-=3;while(y>2);y&&(A[s++]=A[B++],y>1&&(A[s++]=A[B++]))}break}}break}}while(o>r&&l>s);y=m>>3,r-=y,m-=y<<3,w&=(1<<m)-1,e.next_in=r,e.next_out=s,e.avail_in=o>r?5+(o-r):5-(r-o),e.avail_out=l>s?257+(l-s):257-(s-l),a.hold=w,a.bits=m}},{}],9:[function(e,t,i){"use strict";function n(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function a(){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 k.Buf16(320),this.work=new k.Buf16(288),this.codes=new k.Buf32(mt),this.sane=0,this.back=0,this.was=0}function r(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=F,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=new k.Buf32(mt),t.distcode=new k.Buf32(mt),t.sane=1,t.back=-1,A):C}function o(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,r(e)):C}function s(e,t){var i,n;return e&&e.state?(n=e.state,0>t?(i=0,t=-t):(i=(t>>4)+1,48>t&&(t&=15)),t&&(8>t||t>15)?C:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=i,n.wbits=t,o(e))):C}function f(e,t){var i,n;return e?(n=new a,e.state=n,n.window=null,i=s(e,t),i!==A&&(e.state=null),i):C}function l(e){return f(e,gt)}function d(e){if(_t){var t;for(w=new k.Buf32(512),m=new k.Buf32(32),t=0;144>t;)e.lens[t++]=8;for(;256>t;)e.lens[t++]=9;for(;280>t;)e.lens[t++]=7;for(;288>t;)e.lens[t++]=8;for(p(y,e.lens,0,288,w,0,e.work,{bits:9}),t=0;32>t;)e.lens[t++]=5;p(S,e.lens,0,32,m,0,e.work,{bits:5}),_t=!1}e.lencode=w,e.lenbits=9,e.distcode=m,e.distbits=5}function h(e,t,i,n){var a,r=e.state;return null===r.window&&(r.wsize=1<<r.wbits,r.wnext=0,r.whave=0,r.window=new k.Buf8(r.wsize)),n>=r.wsize?(k.arraySet(r.window,t,i-r.wsize,r.wsize,0),r.wnext=0,r.whave=r.wsize):(a=r.wsize-r.wnext,a>n&&(a=n),k.arraySet(r.window,t,i-n,a,r.wnext),n-=a,n?(k.arraySet(r.window,t,i-n,n,0),r.wnext=n,r.whave=r.wsize):(r.wnext+=a,r.wnext===r.wsize&&(r.wnext=0),r.whave<r.wsize&&(r.whave+=a))),0}function c(e,t){var i,a,r,o,s,f,l,c,u,b,w,m,bt,wt,mt,kt,gt,_t,vt,pt,xt,yt,St,Bt,Et=0,Zt=new k.Buf8(4),At=[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&&0!==e.avail_in)return C;i=e.state,i.mode===G&&(i.mode=X),s=e.next_out,r=e.output,l=e.avail_out,o=e.next_in,a=e.input,f=e.avail_in,c=i.hold,u=i.bits,b=f,w=l,yt=A;e:for(;;)switch(i.mode){case F:if(0===i.wrap){i.mode=X;break}for(;16>u;){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}if(2&i.wrap&&35615===c){i.check=0,Zt[0]=255&c,Zt[1]=c>>>8&255,i.check=_(i.check,Zt,2,0),c=0,u=0,i.mode=D;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",i.mode=ht;break}if((15&c)!==T){e.msg="unknown compression method",i.mode=ht;break}if(c>>>=4,u-=4,xt=(15&c)+8,0===i.wbits)i.wbits=xt;else if(xt>i.wbits){e.msg="invalid window size",i.mode=ht;break}i.dmax=1<<xt,e.adler=i.check=1,i.mode=512&c?q:G,c=0,u=0;break;case D:for(;16>u;){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}if(i.flags=c,(255&i.flags)!==T){e.msg="unknown compression method",i.mode=ht;break}if(57344&i.flags){e.msg="unknown header flags set",i.mode=ht;break}i.head&&(i.head.text=c>>8&1),512&i.flags&&(Zt[0]=255&c,Zt[1]=c>>>8&255,i.check=_(i.check,Zt,2,0)),c=0,u=0,i.mode=U;case U:for(;32>u;){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}i.head&&(i.head.time=c),512&i.flags&&(Zt[0]=255&c,Zt[1]=c>>>8&255,Zt[2]=c>>>16&255,Zt[3]=c>>>24&255,i.check=_(i.check,Zt,4,0)),c=0,u=0,i.mode=L;case L:for(;16>u;){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}i.head&&(i.head.xflags=255&c,i.head.os=c>>8),512&i.flags&&(Zt[0]=255&c,Zt[1]=c>>>8&255,i.check=_(i.check,Zt,2,0)),c=0,u=0,i.mode=H;case H:if(1024&i.flags){for(;16>u;){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}i.length=c,i.head&&(i.head.extra_len=c),512&i.flags&&(Zt[0]=255&c,Zt[1]=c>>>8&255,i.check=_(i.check,Zt,2,0)),c=0,u=0}else i.head&&(i.head.extra=null);i.mode=M;case M:if(1024&i.flags&&(m=i.length,m>f&&(m=f),m&&(i.head&&(xt=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),k.arraySet(i.head.extra,a,o,m,xt)),512&i.flags&&(i.check=_(i.check,a,m,o)),f-=m,o+=m,i.length-=m),i.length))break e;i.length=0,i.mode=K;case K:if(2048&i.flags){if(0===f)break e;m=0;do xt=a[o+m++],i.head&&xt&&i.length<65536&&(i.head.name+=String.fromCharCode(xt));while(xt&&f>m);if(512&i.flags&&(i.check=_(i.check,a,m,o)),f-=m,o+=m,xt)break e}else i.head&&(i.head.name=null);i.length=0,i.mode=j;case j:if(4096&i.flags){if(0===f)break e;m=0;do xt=a[o+m++],i.head&&xt&&i.length<65536&&(i.head.comment+=String.fromCharCode(xt));while(xt&&f>m);if(512&i.flags&&(i.check=_(i.check,a,m,o)),f-=m,o+=m,xt)break e}else i.head&&(i.head.comment=null);i.mode=P;case P:if(512&i.flags){for(;16>u;){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}if(c!==(65535&i.check)){e.msg="header crc mismatch",i.mode=ht;break}c=0,u=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=G;break;case q:for(;32>u;){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}e.adler=i.check=n(c),c=0,u=0,i.mode=Y;case Y:if(0===i.havedict)return e.next_out=s,e.avail_out=l,e.next_in=o,e.avail_in=f,i.hold=c,i.bits=u,R;e.adler=i.check=1,i.mode=G;case G:if(t===E||t===Z)break e;case X:if(i.last){c>>>=7&u,u-=7&u,i.mode=ft;break}for(;3>u;){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}switch(i.last=1&c,c>>>=1,u-=1,3&c){case 0:i.mode=W;break;case 1:if(d(i),i.mode=tt,t===Z){c>>>=2,u-=2;break e}break;case 2:i.mode=V;break;case 3:e.msg="invalid block type",i.mode=ht}c>>>=2,u-=2;break;case W:for(c>>>=7&u,u-=7&u;32>u;){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}if((65535&c)!==(c>>>16^65535)){e.msg="invalid stored block lengths",i.mode=ht;break}if(i.length=65535&c,c=0,u=0,i.mode=J,t===Z)break e;case J:i.mode=Q;case Q:if(m=i.length){if(m>f&&(m=f),m>l&&(m=l),0===m)break e;k.arraySet(r,a,o,m,s),f-=m,o+=m,l-=m,s+=m,i.length-=m;break}i.mode=G;break;case V:for(;14>u;){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}if(i.nlen=(31&c)+257,c>>>=5,u-=5,i.ndist=(31&c)+1,c>>>=5,u-=5,i.ncode=(15&c)+4,c>>>=4,u-=4,i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols",i.mode=ht;break}i.have=0,i.mode=$;case $:for(;i.have<i.ncode;){for(;3>u;){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}i.lens[At[i.have++]]=7&c,c>>>=3,u-=3}for(;i.have<19;)i.lens[At[i.have++]]=0;if(k.arraySet(i.lencode,i.codes,0,i.codes.length,0),i.lenbits=7,St={bits:i.lenbits},yt=p(x,i.lens,0,19,i.lencode,0,i.work,St),i.lenbits=St.bits,yt){e.msg="invalid code lengths set",i.mode=ht;break}i.have=0,i.mode=et;case et:for(;i.have<i.nlen+i.ndist;){for(;Et=i.lencode[c&(1<<i.lenbits)-1],mt=Et>>>24,kt=Et>>>16&255,gt=65535&Et,!(u>=mt);){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}if(16>gt)c>>>=mt,u-=mt,i.lens[i.have++]=gt;else{if(16===gt){for(Bt=mt+2;Bt>u;){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}if(c>>>=mt,u-=mt,0===i.have){e.msg="invalid bit length repeat",i.mode=ht;break}xt=i.lens[i.have-1],m=3+(3&c),c>>>=2,u-=2}else if(17===gt){for(Bt=mt+3;Bt>u;){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}c>>>=mt,u-=mt,xt=0,m=3+(7&c),c>>>=3,u-=3}else{for(Bt=mt+7;Bt>u;){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}c>>>=mt,u-=mt,xt=0,m=11+(127&c),c>>>=7,u-=7}if(i.have+m>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=ht;break}for(;m--;)i.lens[i.have++]=xt}}if(i.mode===ht)break;if(0===i.lens[256]){e.msg="invalid code -- missing end-of-block",i.mode=ht;break}if(k.arraySet(i.lencode,i.codes,0,i.codes.length,0),i.lenbits=9,St={bits:i.lenbits},yt=p(y,i.lens,0,i.nlen,i.lencode,0,i.work,St),i.lenbits=St.bits,yt){e.msg="invalid literal/lengths set",i.mode=ht;break}if(i.distbits=6,k.arraySet(i.distcode,i.codes,0,i.codes.length,0),St={bits:i.distbits},yt=p(S,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,St),i.distbits=St.bits,yt){e.msg="invalid distances set",i.mode=ht;break}if(i.mode=tt,t===Z)break e;case tt:i.mode=it;case it:if(f>=6&&l>=258){e.next_out=s,e.avail_out=l,e.next_in=o,e.avail_in=f,i.hold=c,i.bits=u,v(e,w),s=e.next_out,r=e.output,l=e.avail_out,o=e.next_in,a=e.input,f=e.avail_in,c=i.hold,u=i.bits,i.mode===G&&(i.back=-1);break}for(i.back=0;Et=i.lencode[c&(1<<i.lenbits)-1],mt=Et>>>24,kt=Et>>>16&255,gt=65535&Et,!(u>=mt);){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}if(kt&&0===(240&kt)){for(_t=mt,vt=kt,pt=gt;Et=i.lencode[pt+((c&(1<<_t+vt)-1)>>_t)],mt=Et>>>24,kt=Et>>>16&255,gt=65535&Et,!(u>=_t+mt);){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}c>>>=_t,u-=_t,i.back+=_t}if(c>>>=mt,u-=mt,i.back+=mt,i.length=gt,0===kt){i.mode=st;break}if(32&kt){i.back=-1,i.mode=G;break}if(64&kt){e.msg="invalid literal/length code",i.mode=ht;break}i.extra=15&kt,i.mode=nt;case nt:if(i.extra){for(Bt=i.extra;Bt>u;){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}i.length+=c&(1<<i.extra)-1,c>>>=i.extra,u-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=at;case at:for(;Et=i.distcode[c&(1<<i.distbits)-1],mt=Et>>>24,kt=Et>>>16&255,gt=65535&Et,!(u>=mt);){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}if(0===(240&kt)){for(_t=mt,vt=kt,pt=gt;Et=i.distcode[pt+((c&(1<<_t+vt)-1)>>_t)],mt=Et>>>24,kt=Et>>>16&255,gt=65535&Et,!(u>=_t+mt);){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}c>>>=_t,u-=_t,i.back+=_t}if(c>>>=mt,u-=mt,i.back+=mt,64&kt){e.msg="invalid distance code",i.mode=ht;break}i.offset=gt,i.extra=15&kt,i.mode=rt;case rt:if(i.extra){for(Bt=i.extra;Bt>u;){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}i.offset+=c&(1<<i.extra)-1,c>>>=i.extra,u-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=ht;break}i.mode=ot;case ot:if(0===l)break e;if(m=w-l,i.offset>m){if(m=i.offset-m,m>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=ht;break}m>i.wnext?(m-=i.wnext,bt=i.wsize-m):bt=i.wnext-m,m>i.length&&(m=i.length),wt=i.window}else wt=r,bt=s-i.offset,m=i.length;m>l&&(m=l),l-=m,i.length-=m;do r[s++]=wt[bt++];while(--m);0===i.length&&(i.mode=it);break;case st:if(0===l)break e;r[s++]=i.length,l--,i.mode=it;break;case ft:if(i.wrap){for(;32>u;){if(0===f)break e;f--,c|=a[o++]<<u,u+=8}if(w-=l,e.total_out+=w,i.total+=w,w&&(e.adler=i.check=i.flags?_(i.check,r,w,s-w):g(i.check,r,w,s-w)),w=l,(i.flags?c:n(c))!==i.check){e.msg="incorrect data check",i.mode=ht;break}c=0,u=0}i.mode=lt;case lt:if(i.wrap&&i.flags){for(;32>u;){if(0===f)break e;f--,c+=a[o++]<<u,u+=8}if(c!==(4294967295&i.total)){e.msg="incorrect length check",i.mode=ht;break}c=0,u=0}i.mode=dt;case dt:yt=z;break e;case ht:yt=N;break e;case ct:return I;case ut:default:return C}return e.next_out=s,e.avail_out=l,e.next_in=o,e.avail_in=f,i.hold=c,i.bits=u,(i.wsize||w!==e.avail_out&&i.mode<ht&&(i.mode<ft||t!==B))&&h(e,e.output,e.next_out,w-e.avail_out)?(i.mode=ct,I):(b-=e.avail_in,w-=e.avail_out,e.total_in+=b,e.total_out+=w,i.total+=w,i.wrap&&w&&(e.adler=i.check=i.flags?_(i.check,r,w,e.next_out-w):g(i.check,r,w,e.next_out-w)),e.data_type=i.bits+(i.last?64:0)+(i.mode===G?128:0)+(i.mode===tt||i.mode===J?256:0),(0===b&&0===w||t===B)&&yt===A&&(yt=O),yt)}function u(e){if(!e||!e.state)return C;var t=e.state;return t.window&&(t.window=null),e.state=null,A}function b(e,t){var i;return e&&e.state?(i=e.state,0===(2&i.wrap)?C:(i.head=t,t.done=!1,A)):C}var w,m,k=e("../utils/common"),g=e("./adler32"),_=e("./crc32"),v=e("./inffast"),p=e("./inftrees"),x=0,y=1,S=2,B=4,E=5,Z=6,A=0,z=1,R=2,C=-2,N=-3,I=-4,O=-5,T=8,F=1,D=2,U=3,L=4,H=5,M=6,K=7,j=8,P=9,q=10,Y=11,G=12,X=13,W=14,J=15,Q=16,V=17,$=18,et=19,tt=20,it=21,nt=22,at=23,rt=24,ot=25,st=26,ft=27,lt=28,dt=29,ht=30,ct=31,ut=32,bt=852,wt=592,mt=bt+wt,kt=15,gt=kt,_t=!0;i.inflateReset=o,i.inflateReset2=s,i.inflateResetKeep=r,i.inflateInit=l,i.inflateInit2=f,i.inflate=c,i.inflateEnd=u,i.inflateGetHeader=b,i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":2,"./adler32":4,"./crc32":6,"./inffast":8,"./inftrees":10}],10:[function(e,t){"use strict";var i=e("../utils/common"),n=15,a=852,r=592,o=0,s=1,f=2,l=[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],d=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],h=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,u,b,w,m,k,g){var _,v,p,x,y,S,B,E,Z,A=g.bits,z=0,R=0,C=0,N=0,I=0,O=0,T=0,F=0,D=0,U=0,L=null,H=0,M=new i.Buf16(n+1),K=new i.Buf16(n+1),j=null,P=0;for(z=0;n>=z;z++)M[z]=0;for(R=0;b>R;R++)M[t[u+R]]++;for(I=A,N=n;N>=1&&0===M[N];N--);if(I>N&&(I=N),0===N)return w[m++]=20971520,w[m++]=20971520,g.bits=1,0;for(C=1;N>C&&0===M[C];C++);for(C>I&&(I=C),F=1,z=1;n>=z;z++)if(F<<=1,F-=M[z],0>F)return-1;if(F>0&&(e===o||1!==N))return-1;for(K[1]=0,z=1;n>z;z++)K[z+1]=K[z]+M[z];for(R=0;b>R;R++)0!==t[u+R]&&(k[K[t[u+R]]++]=R);switch(e){case o:L=j=k,S=19;break;case s:L=l,H-=257,j=d,P-=257,S=256;break;default:L=h,j=c,S=-1}if(U=0,R=0,z=C,y=m,O=I,T=0,p=-1,D=1<<I,x=D-1,e===s&&D>a||e===f&&D>r)return 1;for(var q=0;;){q++,B=z-T,k[R]<S?(E=0,Z=k[R]):k[R]>S?(E=j[P+k[R]],Z=L[H+k[R]]):(E=96,Z=0),_=1<<z-T,v=1<<O,C=v;do v-=_,w[y+(U>>T)+v]=B<<24|E<<16|Z|0;while(0!==v);for(_=1<<z-1;U&_;)_>>=1;if(0!==_?(U&=_-1,U+=_):U=0,R++,0===--M[z]){if(z===N)break;z=t[u+k[R]]}if(z>I&&(U&x)!==p){for(0===T&&(T=I),y+=C,O=z-T,F=1<<O;N>O+T&&(F-=M[O+T],!(0>=F));)O++,F<<=1;if(D+=1<<O,e===s&&D>a||e===f&&D>r)return 1;p=U&x,w[p]=I<<24|O<<16|y-m|0}}return 0!==U&&(w[y+U]=z-T<<24|64<<16|0),g.bits=I,0}},{"../utils/common":2}],11:[function(e,t){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],12:[function(e,t){"use strict";function i(){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}t.exports=i},{}]},{},[1])(1)});

@@ -1,3 +0,3 @@

/* pako 0.1.1 nodeca/pako */
!function(t){if("object"==typeof exports)module.exports=t();else if("function"==typeof define&&define.amd)define(t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.pako=t()}}(function(){return function t(e,a,i){function n(r,o){if(!a[r]){if(!e[r]){var l="function"==typeof require&&require;if(!o&&l)return l(r,!0);if(s)return s(r,!0);throw new Error("Cannot find module '"+r+"'")}var h=a[r]={exports:{}};e[r][0].call(h.exports,function(t){var a=e[r][1][t];return n(a?a:t)},h,h.exports,t,e,a,i)}return a[r].exports}for(var s="function"==typeof require&&require,r=0;r<i.length;r++)n(i[r]);return n}({1:[function(t,e){"use strict";var a=t("./lib/zlib/utils").assign,i=t("./lib/deflate"),n=t("./lib/inflate"),s=t("./lib/zlib/constants"),r={};a(r,i,n,s),e.exports=r},{"./lib/deflate":2,"./lib/inflate":3,"./lib/zlib/constants":5,"./lib/zlib/utils":13}],2:[function(t,e,a){"use strict";function i(t,e){var a=new m(e);if(a.push(t,!0),a.err)throw a.msg;return a.result}function n(t,e){return e=e||{},e.raw=!0,i(t,e)}function s(t,e){return e=e||{},e.gzip=!0,i(t,e)}var r=t("./zlib/deflate.js"),o=t("./zlib/utils"),l=t("./zlib/messages"),h=t("./zlib/zstream"),d=0,_=4,f=0,u=1,c=-1,w=0,b=8,m=function(t){this.options=o.assign({level:c,method:b,chunkSize:16384,windowBits:15,memLevel:8,strategy:w},t||{});var 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 h;var a=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==f)throw new Error(l[a])};m.prototype.push=function(t,e){var a,i,n=this.strm,s=this.options.chunkSize;if(this.ended)return!1;i=e===~~e?e:e===!0?_:d,n.next_in=t,n.next_in_index=0,n.avail_in=n.next_in.length,n.next_out=new o.Buf8(s);do{if(n.avail_out=this.options.chunkSize,n.next_out_index=0,a=r.deflate(n,i),a!==u&&a!==f)return this.onEnd(a),this.ended=!0,!1;n.next_out_index&&(this.onData(o.shrinkBuf(n.next_out,n.next_out_index)),(n.avail_in>0||0===n.avail_out)&&(n.next_out=new o.Buf8(this.options.chunkSize)))}while(n.avail_in>0||0===n.avail_out);return i===_?(a=r.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===f):!0},m.prototype.onData=function(t){this.chunks.push(t)},m.prototype.onEnd=function(t){t===f&&(this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},a.Deflate=m,a.deflate=i,a.deflateRaw=n,a.gzip=s},{"./zlib/deflate.js":7,"./zlib/messages":11,"./zlib/utils":13,"./zlib/zstream":14}],3:[function(t,e,a){"use strict";function i(t,e){var a=new d(e);if(a.push(t,!0),a.err)throw a.msg;return a.result}function n(t,e){return e=e||{},e.raw=!0,i(t,e)}var s=t("./zlib/inflate.js"),r=t("./zlib/utils"),o=t("./zlib/constants"),l=t("./zlib/messages"),h=t("./zlib/zstream"),d=function(t){this.options=r.assign({chunkSize:16384,windowBits:0},t||{});var 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&&0===(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h;var a=s.inflateInit2(this.strm,e.windowBits);if(a!==o.Z_OK)throw new Error(l[a])};d.prototype.push=function(t,e){var a,i,n=this.strm,l=this.options.chunkSize;if(this.ended)return!1;i=o.Z_NO_FLUSH,n.next_in=t,n.next_in_index=0,n.avail_in=n.next_in.length,n.next_out=new r.Buf8(l);do{if(n.avail_out=this.options.chunkSize,n.next_out_index=0,a=s.inflate(n,i),a!==o.Z_STREAM_END&&a!==o.Z_OK)return this.onEnd(a),this.ended=!0,!1;n.next_out_index&&(this.onData(r.shrinkBuf(n.next_out,n.next_out_index)),(n.avail_in>0||0===n.avail_out)&&(n.next_out=new r.Buf8(this.options.chunkSize)))}while(n.avail_in>0||0===n.avail_out);return i=e===~~e?e:e===!0?o.Z_FINISH:o.Z_NO_FLUSH,i===o.Z_FINISH?(a=s.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===o.Z_OK):!0},d.prototype.onData=function(t){this.chunks.push(t)},d.prototype.onEnd=function(t){t===o.Z_OK&&(this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},a.Inflate=d,a.inflate=i,a.inflateRaw=n},{"./zlib/constants":5,"./zlib/inflate.js":9,"./zlib/messages":11,"./zlib/utils":13,"./zlib/zstream":14}],4:[function(t,e){"use strict";function a(t,e,a,i){for(var n=65535&t|0,s=t>>>16&65535|0,r=0;0!==a;){r=a>2e3?2e3:a,a-=r;do n=n+e[i++]|0,s=s+n|0;while(--r);n%=65521,s%=65521}return n|s<<16|0}e.exports=a},{}],5:[function(t,e){e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],6:[function(t,e){"use strict";function a(){for(var t,e=[],a=0;256>a;a++){t=a;for(var i=0;8>i;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}function i(t,e,a,i){var s=n,r=i+a;t=-1^t;for(var o=i;r>o;o++)t=t>>>8^s[255&(t^e[o])];return-1^t}var n=a();e.exports=i},{}],7:[function(t,e,a){"use strict";function i(t,e){return t.msg=I[e],e}function n(t){return(t<<1)-(t>4?9:0)}function s(t){for(var e=t.length;--e;)t[e]=0}function r(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(S.arraySet(t.next_out,e.pending_buf,e.pending_out,a,t.next_out_index),t.next_out_index+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))}function o(t,e){Z._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,r(t.strm)}function l(t,e){t.pending_buf[t.pending++]=e}function h(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function d(t,e,a,i){var n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,S.arraySet(e,t.next_in,t.next_in_index,n,a),1===t.state.wrap?t.adler=A(t.adler,e,n,a):2===t.state.wrap&&(t.adler=R(t.adler,e,n,a)),t.next_in_index+=n,t.total_in+=n,n)}function _(t,e){var a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match,l=t.strstart>t.w_size-le?t.strstart-(t.w_size-le):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+oe,u=h[s+r-1],c=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do if(a=e,h[a+r]===c&&h[a+r-1]===u&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do;while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&f>s);if(i=oe-(f-s),s=f-oe,i>r){if(t.match_start=e,r=i,i>=o)break;u=h[s+r-1],c=h[s+r]}}while((e=_[e&d])>l&&0!==--n);return r<=t.lookahead?r:t.lookahead}function f(t){var e,a,i,n,s,r=t.w_size;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=r+(r-le)){S.arraySet(t.window,t.window,r,r,0),t.match_start-=r,t.strstart-=r,t.block_start-=r,a=t.hash_size,e=a;do i=t.head[--e],t.head[e]=i>=r?i-r:0;while(--a);a=r,e=a;do i=t.prev[--e],t.prev[e]=i>=r?i-r:0;while(--a);n+=r}if(0===t.strm.avail_in)break;if(a=d(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=a,t.lookahead+t.insert>=re)for(s=t.strstart-t.insert,t.ins_h=t.window[s],t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[s+re-1])&t.hash_mask,t.prev[s&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=s,s++,t.insert--,!(t.lookahead+t.insert<re)););}while(t.lookahead<le&&0!==t.strm.avail_in)}function u(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(f(t),0===t.lookahead&&e===N)return me;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+a;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,o(t,!1),0===t.strm.avail_out))return me;if(t.strstart-t.block_start>=t.w_size-le&&(o(t,!1),0===t.strm.avail_out))return me}return t.insert=0,e===F?(o(t,!0),0===t.strm.avail_out?ke:ge):t.strstart>t.block_start&&(o(t,!1),0===t.strm.avail_out)?me:me}function c(t,e){for(var a,i;;){if(t.lookahead<le){if(f(t),t.lookahead<le&&e===N)return me;if(0===t.lookahead)break}if(a=0,t.lookahead>=re&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+re-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-le&&(t.match_length=_(t,a)),t.match_length>=re)if(i=Z._tr_tally(t,t.strstart-t.match_start,t.match_length-re),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=re){t.match_length--;do t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+re-1])&t.hash_mask,a=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=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=Z._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(o(t,!1),0===t.strm.avail_out))return me}return t.insert=t.strstart<re-1?t.strstart:re-1,e===F?(o(t,!0),0===t.strm.avail_out?ke:ge):t.last_lit&&(o(t,!1),0===t.strm.avail_out)?me:ve}function w(t,e){for(var a,i,n;;){if(t.lookahead<le){if(f(t),t.lookahead<le&&e===N)return me;if(0===t.lookahead)break}if(a=0,t.lookahead>=re&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+re-1])&t.hash_mask,a=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=re-1,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-le&&(t.match_length=_(t,a),t.match_length<=5&&(t.strategy===P||t.match_length===re&&t.strstart-t.match_start>4096)&&(t.match_length=re-1)),t.prev_length>=re&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-re,i=Z._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-re),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=n&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+re-1])&t.hash_mask,a=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=re-1,t.strstart++,i&&(o(t,!1),0===t.strm.avail_out))return me}else if(t.match_available){if(i=Z._tr_tally(t,0,t.window[t.strstart-1]),i&&o(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return me}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=Z._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<re-1?t.strstart:re-1,e===F?(o(t,!0),0===t.strm.avail_out?ke:ge):t.last_lit&&(o(t,!1),0===t.strm.avail_out)?me:ve}function b(t,e){for(var a,i,n,s,r=t.window;;){if(t.lookahead<=oe){if(f(t),t.lookahead<=oe&&e===N)return me;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=re&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+oe;do;while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&s>n);t.match_length=oe-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=re?(a=Z._tr_tally(t,1,t.match_length-re),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=Z._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(o(t,!1),0===t.strm.avail_out))return me}return t.insert=0,e===F?(o(t,!0),0===t.strm.avail_out?ke:ge):t.last_lit&&(o(t,!1),0===t.strm.avail_out)?me:ve}function m(t,e){for(var a;;){if(0===t.lookahead&&(f(t),0===t.lookahead)){if(e===N)return me;break}if(t.match_length=0,a=Z._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(o(t,!1),0===t.strm.avail_out))return me}return t.insert=0,e===F?(o(t,!0),0===t.strm.avail_out?ke:ge):t.last_lit&&(o(t,!1),0===t.strm.avail_out)?me:ve}function v(t){t.window_size=2*t.w_size,s(t.head),t.max_lazy_match=E[t.level].max_lazy,t.good_match=E[t.level].good_length,t.nice_match=E[t.level].nice_length,t.max_chain_length=E[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=re-1,t.match_available=0,t.ins_h=0}function k(){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=W,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 S.Buf16(2*ne),this.dyn_dtree=new S.Buf16(2*(2*ae+1)),this.bl_tree=new S.Buf16(2*(2*ie+1)),s(this.dyn_ltree),s(this.dyn_dtree),s(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new S.Buf16(se+1),this.heap=new S.Buf16(2*ee+1),s(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new S.Buf16(2*ee+1),s(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0,this.high_water=0}function g(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=X,e=t.state,e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?de:we,t.adler=2===e.wrap?0:1,e.last_flush=N,Z._tr_init(e),D):i(t,C)}function p(t){var e=g(t);return e===D&&v(t.state),e}function x(t,e,a,n,s,r){if(!t)return i(t,C);var o=1;if(e===K&&(e=6),0>n?(o=0,n=-n):n>15&&(o=2,n-=16),1>s||s>J||a!==W||8>n||n>15||0>e||e>9||0>r||r>Y)return i(t,C);8===n&&(n=9);var l=new k;return t.state=l,l.strm=t,l.wrap=o,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=s+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+re-1)/re),l.window=new S.Buf8(2*l.w_size),l.head=new S.Buf16(l.hash_size),l.prev=new S.Buf16(l.w_size),l.high_water=0,l.lit_bufsize=1<<s+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new S.Buf8(l.pending_buf_size),l.d_buf=l.lit_bufsize>>1,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=r,l.method=a,p(t)}function y(t,e){return x(t,e,W,Q,V,G)}function z(t,e){var a,o;if(!t||!t.state||e>L||0>e)return i(t,C);if(o=t.state,!t.next_out||!t.next_in&&0!==t.avail_in||o.status===be&&e!==F)return i(t,0===t.avail_out?j:C);if(o.strm=t,a=o.last_flush,o.last_flush=e,o.status===de)if(2===o.wrap){if(t.adler=0,l(o,31),l(o,139),l(o,8),o.gzhead)throw new Error("Custom GZIP headers not supported");l(o,0),l(o,0),l(o,0),l(o,0),l(o,0),l(o,9===o.level?2:o.strategy>=M||o.level<2?4:0),l(o,pe),o.status=we}else{var d=W+(o.w_bits-8<<4)<<8,_=-1;_=o.strategy>=M||o.level<2?0:o.level<6?1:6===o.level?2:3,d|=_<<6,0!==o.strstart&&(d|=he),d+=31-d%31,o.status=we,h(o,d),0!==o.strstart&&(h(o,t.adler>>>16),h(o,65535&t.adler)),t.adler=1}if(0!==o.pending){if(r(t),0===t.avail_out)return o.last_flush=-1,D}else if(0===t.avail_in&&n(e)<=n(a)&&e!==F)return i(t,j);if(o.status===be&&0!==t.avail_in)return i(t,j);if(0!==t.avail_in||0!==o.lookahead||e!==N&&o.status!==be){var f=o.strategy===M?m(o,e):o.strategy===q?b(o,e):E[o.level].func(o,e);if((f===ke||f===ge)&&(o.status=be),f===me||f===ke)return 0===t.avail_out&&(o.last_flush=-1),D;if(f===ve&&(e===O?Z._tr_align(o):e!==L&&(Z._tr_stored_block(o,0,0,!1),e===T&&(s(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),r(t),0===t.avail_out))return o.last_flush=-1,D}return e!==F?D:o.wrap<=0?U:(2===o.wrap?(l(o,255&t.adler),l(o,t.adler>>8&255),l(o,t.adler>>16&255),l(o,t.adler>>24&255),l(o,255&t.total_in),l(o,t.total_in>>8&255),l(o,t.total_in>>16&255),l(o,t.total_in>>24&255)):(h(o,t.adler>>>16),h(o,65535&t.adler)),r(t),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?D:U)}function B(t){var e=t.state.status;return e!==de&&e!==_e&&e!==fe&&e!==ue&&e!==ce&&e!==we&&e!==be?i(t,C):(t.state=null,e===we?i(t,H):D)}var E,S=t("./utils"),Z=t("./trees"),A=t("./adler32"),R=t("./crc32"),I=t("./messages"),N=0,O=1,T=3,F=4,L=5,D=0,U=1,C=-2,H=-3,j=-5,K=-1,P=1,M=2,q=3,Y=4,G=0,X=2,W=8,J=9,Q=15,V=8,$=29,te=256,ee=te+1+$,ae=30,ie=19,ne=2*ee+1,se=15,re=3,oe=258,le=oe+re+1,he=32,de=42,_e=69,fe=73,ue=91,ce=103,we=113,be=666,me=1,ve=2,ke=3,ge=4,pe=3,xe=function(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n};E=[new xe(0,0,0,0,u),new xe(4,4,8,4,c),new xe(4,5,16,8,c),new xe(4,6,32,32,c),new xe(4,4,16,16,w),new xe(8,16,32,32,w),new xe(8,16,128,128,w),new xe(8,32,128,256,w),new xe(32,128,258,1024,w),new xe(32,258,258,4096,w)],a.deflateInit=y,a.deflateInit2=x,a.deflateReset=p,a.deflate=z,a.deflateEnd=B,a.deflateInfo="pako deflate (from Nodeca project)"},{"./adler32":4,"./crc32":6,"./messages":11,"./trees":12,"./utils":13}],8:[function(t,e){"use strict";var a=30,i=12;e.exports=function(t,e){var n,s,r,o,l,h,d,_,f,u,c,w,b,m,v,k,g,p,x,y,z,B,E,S,Z;n=t.state,s=t.next_in_index,S=t.next_in,r=s+(t.avail_in-5),o=t.next_out_index,Z=t.next_out,l=o-(e-t.avail_out),h=o+(t.avail_out-257),d=n.dmax,_=n.wsize,f=n.whave,u=n.wnext,c=n.window,w=n.hold,b=n.bits,m=n.lencode,v=n.distcode,k=(1<<n.lenbits)-1,g=(1<<n.distbits)-1;t:do{15>b&&(w+=S[s++]<<b,b+=8,w+=S[s++]<<b,b+=8),p=m[w&k];e:for(;;){if(x=p>>>24,w>>>=x,b-=x,x=p>>>16&255,0===x)Z[o++]=65535&p;else{if(!(16&x)){if(0===(64&x)){p=m[(65535&p)+(w&(1<<x)-1)];continue e}if(32&x){n.mode=i;break t}t.msg="invalid literal/length code",n.mode=a;break t}y=65535&p,x&=15,x&&(x>b&&(w+=S[s++]<<b,b+=8),y+=w&(1<<x)-1,w>>>=x,b-=x),15>b&&(w+=S[s++]<<b,b+=8,w+=S[s++]<<b,b+=8),p=v[w&g];a:for(;;){if(x=p>>>24,w>>>=x,b-=x,x=p>>>16&255,!(16&x)){if(0===(64&x)){p=v[(65535&p)+(w&(1<<x)-1)];continue a}t.msg="invalid distance code",n.mode=a;break t}if(z=65535&p,x&=15,x>b&&(w+=S[s++]<<b,b+=8,x>b&&(w+=S[s++]<<b,b+=8)),z+=w&(1<<x)-1,z>d){t.msg="invalid distance too far back",n.mode=a;break t}if(w>>>=x,b-=x,x=o-l,z>x){if(x=z-x,x>f&&n.sane){t.msg="invalid distance too far back",n.mode=a;break t}if(B=0,E=c,0===u){if(B+=_-x,y>x){y-=x;do Z[o++]=c[B++];while(--x);B=o-z,E=Z}}else if(x>u){if(B+=_+u-x,x-=u,y>x){y-=x;do Z[o++]=c[B++];while(--x);if(B=0,y>u){x=u,y-=x;do Z[o++]=c[B++];while(--x);B=o-z,E=Z}}}else if(B+=u-x,y>x){y-=x;do Z[o++]=c[B++];while(--x);B=o-z,E=Z}for(;y>2;)Z[o++]=E[B++],Z[o++]=E[B++],Z[o++]=E[B++],y-=3;y&&(Z[o++]=E[B++],y>1&&(Z[o++]=E[B++]))}else{B=o-z;do Z[o++]=Z[B++],Z[o++]=Z[B++],Z[o++]=Z[B++],y-=3;while(y>2);y&&(Z[o++]=Z[B++],y>1&&(Z[o++]=Z[B++]))}break}}break}}while(r>s&&h>o);y=b>>3,s-=y,b-=y<<3,w&=(1<<b)-1,t.next_in_index=s,t.next_out_index=o,t.avail_in=r>s?5+(r-s):5-(s-r),t.avail_out=h>o?257+(h-o):257-(o-h),n.hold=w,n.bits=b}},{}],9:[function(t,e,a){"use strict";function i(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function n(){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.next_index=0,this.lens=new v.Buf16(320),this.work=new v.Buf16(288),this.codes=new v.Buf32(me),this.sane=0,this.back=0,this.was=0}function s(t,e,a,i,n,s,r,o){this.type=t,this.lens=e,this.lens_index=a,this.codes=i,this.table=n,this.table_index=s,this.bits=r,this.work=o}function r(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,e.wrap&&(t.adler=1&e.wrap),e.mode=D,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=new v.Buf32(me),e.distcode=new v.Buf32(me),e.sane=1,e.back=-1,A):N}function o(t){var e;return t&&t.state?(e=t.state,e.wsize=0,e.whave=0,e.wnext=0,r(t)):N}function l(t,e){var a,i;return t&&t.state?(i=t.state,0>e?(a=0,e=-e):(a=(e>>4)+1,48>e&&(e&=15)),e&&(8>e||e>15)?N:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,o(t))):N}function h(t,e){var a,i;return t?(i=new n,t.state=i,i.window=null,a=l(t,e),a!==A&&(t.state=null),a):N}function d(t){return h(t,ke)}function _(t,e,a){var i;return t&&t.state?(i=t.state,0>e?(i.hold=0,i.bits=0,A):e>16||i.bits+e>32?N:(a&=(1<<e)-1,i.hold+=a<<i.bits,i.bits+=e,A)):N}function f(t){if(ge){var e,a;for(b=new v.Buf32(512),m=new v.Buf32(32),e=0;144>e;)t.lens[e++]=8;for(;256>e;)t.lens[e++]=9;for(;280>e;)t.lens[e++]=7;for(;288>e;)t.lens[e++]=8;for(a=9,x(new s(z,t.lens,0,288,b,0,a,t.work)),e=0;32>e;)t.lens[e++]=5;a=5,x(new s(B,t.lens,0,32,m,0,a,t.work)),ge=!1}t.lencode=b,t.lenbits=9,t.distcode=m,t.distbits=5}function u(t,e,a,i){var n,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new v.Buf8(s.wsize)),i>=s.wsize?(v.arraySet(s.window,e,a-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),v.arraySet(s.window,e,a-i,n,s.wnext),i-=n,i?(v.arraySet(s.window,e,a-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0}function c(t,e){var a,n,r,o,l,h,d,_,c,w,b,m,we,be,me,ve,ke,ge,pe,xe,ye,ze,Be,Ee,Se=0,Ze=new v.Buf8(4),Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];a=t.state,a.mode===X&&(a.mode=W),l=t.next_out_index,r=t.next_out,d=t.avail_out,o=t.next_in_index,n=t.next_in,h=t.avail_in,_=a.hold,c=a.bits,w=h,b=d,ze=A;t:for(;;)switch(a.mode){case D:if(0===a.wrap){a.mode=W;break}for(;16>c;){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}if(2&a.wrap&&35615===_){a.check=0,Ze[0]=255&_,Ze[1]=_>>>8&255,a.check=g(a.check,Ze,2,0),_=0,c=0,a.mode=U;break}if(a.flags=0,a.head&&(a.head.done=-1),!(1&a.wrap)||(((255&_)<<8)+(_>>8))%31){t.msg="incorrect header check",a.mode=fe;break}if((15&_)!==L){t.msg="unknown compression method",a.mode=fe;break}if(_>>>=4,c-=4,ye=(15&_)+8,0===a.wbits)a.wbits=ye;else if(ye>a.wbits){t.msg="invalid window size",a.mode=fe;break}a.dmax=1<<ye,t.adler=a.check=1,a.mode=512&_?Y:X,_=0,c=0;break;case U:for(;16>c;){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}if(a.flags=_,(255&a.flags)!==L){t.msg="unknown compression method",a.mode=fe;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=fe;break}a.head&&(a.head.text=_>>8&1),512&a.flags&&(Ze[0]=255&_,Ze[1]=_>>>8&255,a.check=g(a.check,Ze,2,0)),_=0,c=0,a.mode=C;case C:for(;32>c;){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}a.head&&(a.head.time=_),512&a.flags&&(Ze[0]=255&_,Ze[1]=_>>>8&255,Ze[2]=_>>>16&255,Ze[3]=_>>>24&255,a.check=g(a.check,Ze,4,0)),_=0,c=0,a.mode=H;case H:for(;16>c;){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}a.head&&(a.head.xflags=255&_,a.head.os=_>>8),512&a.flags&&(Ze[0]=255&_,Ze[1]=_>>>8&255,a.check=g(a.check,Ze,2,0)),_=0,c=0,a.mode=j;case j:if(1024&a.flags){for(;16>c;){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}a.length=_,a.head&&(a.head.extra_len=_),512&a.flags&&(Ze[0]=255&_,Ze[1]=_>>>8&255,a.check=g(a.check,Ze,2,0)),_=0,c=0}else a.head&&(a.head.extra=null);a.mode=K;case K:if(1024&a.flags){if(m=a.length,m>h&&(m=h),m){if(a.head&&a.head.extra)throw ye=a.head.extra_len-a.length,"Review & implement right";512&a.flags&&(a.check=g(a.check,n,m,o)),h-=m,o+=m,a.length-=m}if(a.length)break t}a.length=0,a.mode=P;case P:if(2048&a.flags){if(0===h)break t;m=0;do ye=n[o+m++],a.head&&a.head.name&&a.length<a.head.name_max&&(a.head.name[a.length++]=ye);while(ye&&h>m);if(512&a.flags&&(a.check=g(a.check,n,m,o)),h-=m,o+=m,ye)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=M;case M:if(4096&a.flags){if(0===h)break t;m=0;do ye=n[o+m++],a.head&&a.head.comment&&a.length<a.head.comm_max&&(a.head.comment[a.length++]=ye);while(ye&&h>m);if(512&a.flags&&(a.check=g(a.check,n,m,o)),h-=m,o+=m,ye)break t}else a.head&&(a.head.comment=null);a.mode=q;case q:if(512&a.flags){for(;16>c;){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}if(_!==(65535&a.check)){t.msg="header crc mismatch",a.mode=fe;break}_=0,c=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=1),t.adler=a.check=0,a.mode=X;break;case Y:for(;32>c;){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}t.adler=a.check=i(_),_=0,c=0,a.mode=G;case G:if(0===a.havedict)return t.next_out_index=l,t.avail_out=d,t.next_in_index=o,t.avail_in=h,a.hold=_,a.bits=c,I;t.adler=a.check=1,a.mode=X;case X:if(e===S||e===Z)break t;case W:if(a.last){_>>>=7&c,c-=7&c,a.mode=he;break}for(;3>c;){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}switch(a.last=1&_,_>>>=1,c-=1,3&_){case 0:a.mode=J;break;case 1:if(f(a),a.mode=ae,e===Z){_>>>=2,c-=2;break t}break;case 2:a.mode=$;break;case 3:t.msg="invalid block type",a.mode=fe}_>>>=2,c-=2;break;case J:for(_>>>=7&c,c-=7&c;32>c;){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}if((65535&_)!==(_>>>16^65535)){t.msg="invalid stored block lengths",a.mode=fe;break}if(a.length=65535&_,_=0,c=0,a.mode=Q,e===Z)break t;case Q:a.mode=V;case V:if(m=a.length){if(m>h&&(m=h),m>d&&(m=d),0===m)break t;v.arraySet(r,n,o,m,l),h-=m,o+=m,d-=m,l+=m,a.length-=m;break}a.mode=X;break;case $:for(;14>c;){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}if(a.nlen=(31&_)+257,_>>>=5,c-=5,a.ndist=(31&_)+1,_>>>=5,c-=5,a.ncode=(15&_)+4,_>>>=4,c-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=fe;break}a.have=0,a.mode=te;case te:for(;a.have<a.ncode;){for(;3>c;){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}a.lens[Ae[a.have++]]=7&_,_>>>=3,c-=3}for(;a.have<19;)a.lens[Ae[a.have++]]=0;if(v.arraySet(a.lencode,a.codes,0,a.codes.length,0),a.lenbits=7,Be=new s(y,a.lens,0,19,a.lencode,0,a.lenbits,a.work),ze=x(Be),a.lenbits=Be.bits,ze){t.msg="invalid code lengths set",a.mode=fe;break}a.have=0,a.mode=ee;case ee:for(;a.have<a.nlen+a.ndist;){for(;Se=a.lencode[_&(1<<a.lenbits)-1],me=Se>>>24,ve=Se>>>16&255,ke=65535&Se,!(c>=me);){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}if(16>ke)_>>>=me,c-=me,a.lens[a.have++]=ke;else{if(16===ke){for(Ee=me+2;Ee>c;){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}if(_>>>=me,c-=me,0===a.have){t.msg="invalid bit length repeat",a.mode=fe;break}ye=a.lens[a.have-1],m=3+(3&_),_>>>=2,c-=2}else if(17===ke){for(Ee=me+3;Ee>c;){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}_>>>=me,c-=me,ye=0,m=3+(7&_),_>>>=3,c-=3}else{for(Ee=me+7;Ee>c;){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}_>>>=me,c-=me,ye=0,m=11+(127&_),_>>>=7,c-=7}if(a.have+m>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=fe;break}for(;m--;)a.lens[a.have++]=ye}}if(a.mode===fe)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=fe;break}if(v.arraySet(a.lencode,a.codes,0,a.codes.length,0),a.lenbits=9,Be=new s(z,a.lens,0,a.nlen,a.lencode,0,a.lenbits,a.work),ze=x(Be),a.lenbits=Be.bits,ze){t.msg="invalid literal/lengths set",a.mode=fe;break}if(a.distbits=6,v.arraySet(a.distcode,a.codes,0,a.codes.length,0),Be=new s(B,a.lens,a.nlen,a.ndist,a.distcode,0,a.distbits,a.work),ze=x(Be),a.distbits=Be.bits,ze){t.msg="invalid distances set",a.mode=fe;break}if(a.mode=ae,e===Z)break t;case ae:a.mode=ie;case ie:if(h>=6&&d>=258){t.next_out_index=l,t.avail_out=d,t.next_in_index=o,t.avail_in=h,a.hold=_,a.bits=c,p(t,b),l=t.next_out_index,r=t.next_out,d=t.avail_out,o=t.next_in_index,n=t.next_in,h=t.avail_in,_=a.hold,c=a.bits,a.mode===X&&(a.back=-1);break}for(a.back=0;Se=a.lencode[_&(1<<a.lenbits)-1],me=Se>>>24,ve=Se>>>16&255,ke=65535&Se,!(c>=me);){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}if(ve&&0===(240&ve)){for(ge=me,pe=ve,xe=ke;Se=a.lencode[xe+((_&(1<<ge+pe)-1)>>ge)],me=Se>>>24,ve=Se>>>16&255,ke=65535&Se,!(c>=ge+me);){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}_>>>=ge,c-=ge,a.back+=ge}if(_>>>=me,c-=me,a.back+=me,a.length=ke,0===ve){a.mode=le;break}if(32&ve){a.back=-1,a.mode=X;break}if(64&ve){t.msg="invalid literal/length code",a.mode=fe;break}a.extra=15&ve,a.mode=ne;case ne:if(a.extra){for(Ee=a.extra;Ee>c;){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}a.length+=_&(1<<a.extra)-1,_>>>=a.extra,c-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=se;case se:for(;Se=a.distcode[_&(1<<a.distbits)-1],me=Se>>>24,ve=Se>>>16&255,ke=65535&Se,!(c>=me);){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}if(0===(240&ve)){for(ge=me,pe=ve,xe=ke;Se=a.distcode[xe+((_&(1<<ge+pe)-1)>>ge)],me=Se>>>24,ve=Se>>>16&255,ke=65535&Se,!(c>=ge+me);){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}_>>>=ge,c-=ge,a.back+=ge}if(_>>>=me,c-=me,a.back+=me,64&ve){t.msg="invalid distance code",a.mode=fe;break}a.offset=ke,a.extra=15&ve,a.mode=re;case re:if(a.extra){for(Ee=a.extra;Ee>c;){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}a.offset+=_&(1<<a.extra)-1,_>>>=a.extra,c-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=fe;break}a.mode=oe;case oe:if(0===d)break t;if(m=b-d,a.offset>m){if(m=a.offset-m,m>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=fe;break}m>a.wnext?(m-=a.wnext,we=a.wsize-m):we=a.wnext-m,m>a.length&&(m=a.length),be=a.window}else be=r,we=l-a.offset,m=a.length;m>d&&(m=d),d-=m,a.length-=m;do r[l++]=be[we++];while(--m);0===a.length&&(a.mode=ie);break;case le:if(0===d)break t;r[l++]=a.length,d--,a.mode=ie;break;case he:if(a.wrap){for(;32>c;){if(0===h)break t;h--,_|=n[o++]<<c,c+=8}if(b-=d,t.total_out+=b,a.total+=b,b&&(t.adler=a.check=a.flags?g(a.check,r,b,l-b):k(a.check,r,b,l-b)),b=d,(a.flags?_:i(_))!==a.check){t.msg="incorrect data check",a.mode=fe;break}_=0,c=0}a.mode=de;case de:if(a.wrap&&a.flags){for(;32>c;){if(0===h)break t;h--,_+=n[o++]<<c,c+=8}if(_!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=fe;break}_=0,c=0}a.mode=_e;case _e:ze=R;break t;case fe:ze=O;break t;case ue:return T;case ce:default:return N}return t.next_out_index=l,t.avail_out=d,t.next_in_index=o,t.avail_in=h,a.hold=_,a.bits=c,(a.wsize||b!==t.avail_out&&a.mode<fe&&(a.mode<he||e!==E))&&u(t,t.next_out,t.next_out_index,b-t.avail_out)?(a.mode=ue,T):(w-=t.avail_in,b-=t.avail_out,t.total_in+=w,t.total_out+=b,a.total+=b,a.wrap&&b&&(t.adler=a.check=a.flags?g(a.check,r,b,t.next_out_index-b):k(a.check,r,b,t.next_out_index-b)),t.data_type=a.bits+(a.last?64:0)+(a.mode===X?128:0)+(a.mode===ae||a.mode===Q?256:0),(0===w&&0===b||e===E)&&ze===A&&(ze=F),ze)}function w(t){var e=t.state;return e.window&&(e.window=null),t.state=null,A}var b,m,v=t("./utils"),k=t("./adler32"),g=t("./crc32"),p=t("./inffast"),x=t("./inftrees"),y=0,z=1,B=2,E=4,S=5,Z=6,A=0,R=1,I=2,N=-2,O=-3,T=-4,F=-5,L=8,D=1,U=2,C=3,H=4,j=5,K=6,P=7,M=8,q=9,Y=10,G=11,X=12,W=13,J=14,Q=15,V=16,$=17,te=18,ee=19,ae=20,ie=21,ne=22,se=23,re=24,oe=25,le=26,he=27,de=28,_e=29,fe=30,ue=31,ce=32,we=852,be=592,me=we+be,ve=15,ke=ve,ge=!0;a.inflateReset=o,a.inflateReset2=l,a.inflateResetKeep=r,a.inflateInit=d,a.inflateInit2=h,a.inflatePrime=_,a.inflate=c,a.inflateEnd=w,a.inflateInfo="pako inflate (from Nodeca project)"},{"./adler32":4,"./crc32":6,"./inffast":8,"./inftrees":10,"./utils":13}],10:[function(t,e){"use strict";var a=t("./utils"),i=15,n=852,s=592,r=0,o=1,l=2,h=[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],d=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],_=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],f=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t){var e,u,c,w,b,m,v,k,g,p=t.type,x=t.lens,y=t.codes,z=t.table,B=t.bits,E=t.work,S=0,Z=0,A=0,R=0,I=0,N=0,O=0,T=0,F=0,L=0,D=null,U=0,C=new a.Buf16(i+1),H=new a.Buf16(i+1),j=null,K=0;for(S=0;i>=S;S++)C[S]=0;for(Z=0;y>Z;Z++)C[x[t.lens_index+Z]]++;for(I=B,R=i;R>=1&&0===C[R];R--);if(I>R&&(I=R),0===R)return z[t.table_index++]=20971520,z[t.table_index++]=20971520,t.bits=1,0;for(A=1;R>A&&0===C[A];A++);for(A>I&&(I=A),T=1,S=1;i>=S;S++)if(T<<=1,T-=C[S],0>T)return-1;if(T>0&&(p===r||1!==R))return-1;for(H[1]=0,S=1;i>S;S++)H[S+1]=H[S]+C[S];for(Z=0;y>Z;Z++)0!==x[t.lens_index+Z]&&(E[H[x[t.lens_index+Z]]++]=Z);switch(p){case r:D=j=E,m=19;break;case o:D=h,U-=257,j=d,K-=257,m=256;break;default:D=_,j=f,m=-1}if(L=0,Z=0,S=A,b=t.table_index,N=I,O=0,c=-1,F=1<<I,w=F-1,p===o&&F>n||p===l&&F>s)return 1;for(var P=0;;){P++,v=S-O,E[Z]<m?(k=0,g=E[Z]):E[Z]>m?(k=j[K+E[Z]],g=D[U+E[Z]]):(k=96,g=0),e=1<<S-O,u=1<<N,A=u;do u-=e,z[b+(L>>O)+u]=v<<24|k<<16|g|0;
while(0!==u);for(e=1<<S-1;L&e;)e>>=1;if(0!==e?(L&=e-1,L+=e):L=0,Z++,0===--C[S]){if(S===R)break;S=x[t.lens_index+E[Z]]}if(S>I&&(L&w)!==c){for(0===O&&(O=I),b+=A,N=S-O,T=1<<N;R>N+O&&(T-=C[N+O],!(0>=T));)N++,T<<=1;if(F+=1<<N,p===o&&F>n||p===l&&F>s)return 1;c=L&w,z[c]=I<<24|N<<16|b-t.table_index}}return 0!==L&&(z[b+L]=S-O<<24|64<<16|0),t.table_index+=F,t.bits=I,0}},{"./utils":13}],11:[function(t,e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],12:[function(t,e,a){"use strict";function i(t){for(var e=t.length;--e;)t[e]=0}function n(t){return 256>t?re[t]:re[256+(t>>>7)]}function s(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function r(t,e,a){t.bi_valid>G-a?(t.bi_buf|=e<<t.bi_valid&65535,s(t,t.bi_buf),t.bi_buf=e>>G-t.bi_valid,t.bi_valid+=a-G):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)}function o(t,e,a){r(t,a[2*e],a[2*e+1])}function l(t,e){var a=0;do a|=1&t,t>>>=1,a<<=1;while(--e>0);return a>>>1}function h(t){16===t.bi_valid?(s(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)}function d(t,e){var a,i,n,s,r,o,l=e.dyn_tree,h=e.max_code,d=e.stat_desc.static_tree,_=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,u=e.stat_desc.extra_base,c=e.stat_desc.max_length,w=0;for(s=0;Y>=s;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;q>a;a++)i=t.heap[a],s=l[2*l[2*i+1]+1]+1,s>c&&(s=c,w++),l[2*i+1]=s,i>h||(t.bl_count[s]++,r=0,i>=u&&(r=f[i-u]),o=l[2*i],t.opt_len+=o*(s+r),_&&(t.static_len+=o*(d[2*i+1]+r)));if(0!==w){do{for(s=c-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[c]--,w-=2}while(w>0);for(s=c;0!==s;s--)for(i=t.bl_count[s];0!==i;)n=t.heap[--a],n>h||(l[2*n+1]!==s&&(t.opt_len+=(s-l[2*n+1])*l[2*n],l[2*n+1]=s),i--)}}function _(t,e,a){var i,n,s=new Array(Y+1),r=0;for(i=1;Y>=i;i++)s[i]=r=r+a[i-1]<<1;for(n=0;e>=n;n++){var o=t[2*n+1];0!==o&&(t[2*n]=l(s[o]++,o))}}function f(){var t,e,a,i,n,s=new Array(Y+1);for(a=0,i=0;H-1>i;i++)for(le[i]=a,t=0;t<1<<$[i];t++)oe[a++]=i;for(oe[a-1]=i,n=0,i=0;16>i;i++)for(he[i]=n,t=0;t<1<<te[i];t++)re[n++]=i;for(n>>=7;P>i;i++)for(he[i]=n<<7,t=0;t<1<<te[i]-7;t++)re[256+n++]=i;for(e=0;Y>=e;e++)s[e]=0;for(t=0;143>=t;)ne[2*t+1]=8,t++,s[8]++;for(;255>=t;)ne[2*t+1]=9,t++,s[9]++;for(;279>=t;)ne[2*t+1]=7,t++,s[7]++;for(;287>=t;)ne[2*t+1]=8,t++,s[8]++;for(_(ne,K+1,s),t=0;P>t;t++)se[2*t+1]=5,se[2*t]=l(t,5);de=new ue(ne,$,j+1,K,Y),_e=new ue(se,te,0,P,Y),fe=new ue(new Array(0),ee,0,M,X)}function u(t){var e;for(e=0;K>e;e++)t.dyn_ltree[2*e]=0;for(e=0;P>e;e++)t.dyn_dtree[2*e]=0;for(e=0;M>e;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*W]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function c(t){t.bi_valid>8?s(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function w(t,e,a,i){c(t),i&&(s(t,a),s(t,~a)),R.arraySet(t.pending_buf,t.window,e,a,t.pending),t.pending+=a}function b(t,e,a,i){var n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]}function m(t,e,a){for(var i=t.heap[a],n=a<<1;n<=t.heap_len&&(n<t.heap_len&&b(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!b(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i}function v(t,e,a){var i,s,l,h,d=0;if(0!==t.last_lit)do i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?o(t,s,e):(l=oe[s],o(t,l+j+1,e),h=$[l],0!==h&&(s-=le[l],r(t,s,h)),i--,l=n(i),o(t,l,a),h=te[l],0!==h&&(i-=he[l],r(t,i,h)));while(d<t.last_lit);o(t,W,e)}function k(t,e){var a,i,n,s=e.dyn_tree,r=e.stat_desc.static_tree,o=e.stat_desc.has_stree,l=e.stat_desc.elems,h=-1;for(t.heap_len=0,t.heap_max=q,a=0;l>a;a++)0!==s[2*a]?(t.heap[++t.heap_len]=h=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)n=t.heap[++t.heap_len]=2>h?++h:0,s[2*n]=1,t.depth[n]=0,t.opt_len--,o&&(t.static_len-=r[2*n+1]);for(e.max_code=h,a=t.heap_len>>1;a>=1;a--)m(t,s,a);n=l;do a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],m(t,s,1),i=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=i,s[2*n]=s[2*a]+s[2*i],t.depth[n]=(t.depth[a]>=t.depth[i]?t.depth[a]:t.depth[i])+1,s[2*a+1]=s[2*i+1]=n,t.heap[1]=n++,m(t,s,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],d(t,e),_(s,h,t.bl_count)}function g(t,e,a){var i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;a>=i;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(h>o?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[2*J]++):10>=o?t.bl_tree[2*Q]++:t.bl_tree[2*V]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))}function p(t,e,a){var i,n,s=-1,l=e[1],h=0,d=7,_=4;for(0===l&&(d=138,_=3),i=0;a>=i;i++)if(n=l,l=e[2*(i+1)+1],!(++h<d&&n===l)){if(_>h){do o(t,n,t.bl_tree);while(0!==--h)}else 0!==n?(n!==s&&(o(t,n,t.bl_tree),h--),o(t,J,t.bl_tree),r(t,h-3,2)):10>=h?(o(t,Q,t.bl_tree),r(t,h-3,3)):(o(t,V,t.bl_tree),r(t,h-11,7));h=0,s=n,0===l?(d=138,_=3):n===l?(d=6,_=3):(d=7,_=4)}}function x(t){var e;for(g(t,t.dyn_ltree,t.l_desc.max_code),g(t,t.dyn_dtree,t.d_desc.max_code),k(t,t.bl_desc),e=M-1;e>=3&&0===t.bl_tree[2*ae[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}function y(t,e,a,i){var n;for(r(t,e-257,5),r(t,a-1,5),r(t,i-4,4),n=0;i>n;n++)r(t,t.bl_tree[2*ae[n]+1],3);p(t,t.dyn_ltree,e-1),p(t,t.dyn_dtree,a-1)}function z(t){var e,a=4093624447;for(e=0;31>=e;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return N;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return O;for(e=32;j>e;e++)if(0!==t.dyn_ltree[2*e])return O;return N}function B(t){we||(f(),we=!0),t.l_desc=new ce(t.dyn_ltree,de),t.d_desc=new ce(t.dyn_dtree,_e),t.bl_desc=new ce(t.bl_tree,fe),t.bi_buf=0,t.bi_valid=0,u(t)}function E(t,e,a,i){r(t,(F<<1)+(i?1:0),3),w(t,e,a,!0)}function S(t){r(t,L<<1,3),o(t,W,ne),h(t)}function Z(t,e,a,i){var n,s,o=0;t.level>0?(t.strm.data_type===T&&(t.strm.data_type=z(t)),k(t,t.l_desc),k(t,t.d_desc),o=x(t),n=t.opt_len+3+7>>>3,s=t.static_len+3+7>>>3,n>=s&&(n=s)):n=s=a+5,n>=a+4&&-1!==e?E(t,e,a,i):t.strategy===I||s===n?(r(t,(L<<1)+(i?1:0),3),v(t,ne,se)):(r(t,(D<<1)+(i?1:0),3),y(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),v(t,t.dyn_ltree,t.dyn_dtree)),u(t),i&&c(t)}function A(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(oe[a]+j+1)]++,t.dyn_dtree[2*n(e)]++),t.last_lit===t.lit_bufsize-1}var R=t("./utils"),I=4,N=0,O=1,T=2,F=0,L=1,D=2,U=3,C=258,H=29,j=256,K=j+1+H,P=30,M=19,q=2*K+1,Y=15,G=16,X=7,W=256,J=16,Q=17,V=18,$=[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],te=[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],ee=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ie=512,ne=new Array(2*(K+2));i(ne);var se=new Array(2*P);i(se);var re=new Array(ie);i(re);var oe=new Array(C-U+1);i(oe);var le=new Array(H);i(le);var he=new Array(P);i(he);var de,_e,fe,ue=function(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length},ce=function(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e},we=!1;a._tr_init=B,a._tr_stored_block=E,a._tr_flush_block=Z,a._tr_tally=A,a._tr_align=S},{"./utils":13}],13:[function(t,e,a){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;a.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(var i in a)a.hasOwnProperty(i)&&(t[i]=a[i])}}return t},a.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var n={arraySet:function(t,e,a,i,n){if(e.subarray)return void t.set(e.subarray(a,a+i),n);for(var s=0;i>s;s++)t[n+s]=e[a+s]},flattenChunks:function(t){var e,a,i,n,s,r;for(i=0,e=0,a=t.length;a>e;e++)i+=t[e].length;for(r=new Uint8Array(i),n=0,e=0,a=t.length;a>e;e++)s=t[e],r.set(s,n),n+=s.length;return r}},s={arraySet:function(t,e,a,i,n){for(var s=0;i>s;s++)t[n+s]=e[a+s]},flattenChunks:function(t){return[].concat.apply([],t)}};a.setTyped=function(t){t?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,n)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,s))},a.setTyped(i)},{}],14:[function(t,e){"use strict";function a(){this.next_in=null,this.next_in_index=0,this.avail_in=0,this.total_in=0,this.next_out=null,this.next_out_index=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}e.exports=a},{}]},{},[1])(1)});
/* pako 0.2.0 nodeca/pako */
!function(t){if("object"==typeof exports)module.exports=t();else if("function"==typeof define&&define.amd)define(t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.pako=t()}}(function(){return function t(e,a,i){function n(s,o){if(!a[s]){if(!e[s]){var l="function"==typeof require&&require;if(!o&&l)return l(s,!0);if(r)return r(s,!0);throw new Error("Cannot find module '"+s+"'")}var h=a[s]={exports:{}};e[s][0].call(h.exports,function(t){var a=e[s][1][t];return n(a?a:t)},h,h.exports,t,e,a,i)}return a[s].exports}for(var r="function"==typeof require&&require,s=0;s<i.length;s++)n(i[s]);return n}({1:[function(t,e){"use strict";var a=t("./lib/utils/common").assign,i=t("./lib/deflate"),n=t("./lib/inflate"),r=t("./lib/zlib/constants"),s={};a(s,i,n,r),e.exports=s},{"./lib/deflate":2,"./lib/inflate":3,"./lib/utils/common":4,"./lib/zlib/constants":7}],2:[function(t,e,a){"use strict";function i(t,e){var a=new w(e);if(a.push(t,!0),a.err)throw a.msg;return a.result}function n(t,e){return e=e||{},e.raw=!0,i(t,e)}function r(t,e){return e=e||{},e.gzip=!0,i(t,e)}var s=t("./zlib/deflate.js"),o=t("./utils/common"),l=t("./utils/strings"),h=t("./zlib/messages"),d=t("./zlib/zstream"),f=0,_=4,u=0,c=1,g=-1,b=0,m=8,w=function(t){this.options=o.assign({level:g,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:b,to:""},t||{});var 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 d,this.strm.avail_out=0;var a=s.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==u)throw new Error(h[a]);e.header&&s.deflateSetHeader(this.strm,e.header)};w.prototype.push=function(t,e){var a,i,n=this.strm,r=this.options.chunkSize;if(this.ended)return!1;i=e===~~e?e:e===!0?_:f,n.input="string"==typeof t?l.string2buf(t):t,n.next_in=0,n.avail_in=n.input.length;do{if(0===n.avail_out&&(n.output=new o.Buf8(r),n.next_out=0,n.avail_out=r),a=s.deflate(n,i),a!==c&&a!==u)return this.onEnd(a),this.ended=!0,!1;(0===n.avail_out||0===n.avail_in&&i===_)&&this.onData("string"===this.options.to?l.buf2binstring(o.shrinkBuf(n.output,n.next_out)):o.shrinkBuf(n.output,n.next_out))}while((n.avail_in>0||0===n.avail_out)&&a!==c);return i===_?(a=s.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===u):!0},w.prototype.onData=function(t){this.chunks.push(t)},w.prototype.onEnd=function(t){t===u&&(this.result="string"===this.options.to?this.chunks.join(""):o.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},a.Deflate=w,a.deflate=i,a.deflateRaw=n,a.gzip=r},{"./utils/common":4,"./utils/strings":5,"./zlib/deflate.js":9,"./zlib/messages":14,"./zlib/zstream":16}],3:[function(t,e,a){"use strict";function i(t,e){var a=new _(e);if(a.push(t,!0),a.err)throw a.msg;return a.result}function n(t,e){return e=e||{},e.raw=!0,i(t,e)}var r=t("./zlib/inflate.js"),s=t("./utils/common"),o=t("./utils/strings"),l=t("./zlib/constants"),h=t("./zlib/messages"),d=t("./zlib/zstream"),f=t("./zlib/gzheader"),_=function(t){this.options=s.assign({chunkSize:16384,windowBits:0,to:""},t||{});var 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&&0===(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var a=r.inflateInit2(this.strm,e.windowBits);if(a!==l.Z_OK)throw new Error(h[a]);this.header=new f,r.inflateGetHeader(this.strm,this.header)};_.prototype.push=function(t,e){var a,i,n,h,d,f=this.strm,_=this.options.chunkSize;if(this.ended)return!1;i=e===~~e?e:e===!0?l.Z_FINISH:l.Z_NO_FLUSH,f.input="string"==typeof t?o.binstring2buf(t):t,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new s.Buf8(_),f.next_out=0,f.avail_out=_),a=r.inflate(f,l.Z_NO_FLUSH),a!==l.Z_STREAM_END&&a!==l.Z_OK)return this.onEnd(a),this.ended=!0,!1;f.next_out&&(0===f.avail_out||a===l.Z_STREAM_END||0===f.avail_in&&i===l.Z_FINISH)&&("string"===this.options.to?(n=o.utf8border(f.output,f.next_out),h=f.next_out-n,d=o.buf2string(f.output,n),f.next_out=h,f.avail_out=_-h,h&&s.arraySet(f.output,f.output,n,h,0),this.onData(d)):this.onData(s.shrinkBuf(f.output,f.next_out)))}while((f.avail_in>0||0===f.avail_out)&&a!==l.Z_STREAM_END);return a===l.Z_STREAM_END&&(i=l.Z_FINISH),i===l.Z_FINISH?(a=r.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===l.Z_OK):!0},_.prototype.onData=function(t){this.chunks.push(t)},_.prototype.onEnd=function(t){t===l.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):s.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},a.Inflate=_,a.inflate=i,a.inflateRaw=n,a.ungzip=i},{"./utils/common":4,"./utils/strings":5,"./zlib/constants":7,"./zlib/gzheader":10,"./zlib/inflate.js":12,"./zlib/messages":14,"./zlib/zstream":16}],4:[function(t,e,a){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;a.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(var i in a)a.hasOwnProperty(i)&&(t[i]=a[i])}}return t},a.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var n={arraySet:function(t,e,a,i,n){if(e.subarray&&t.subarray)return void t.set(e.subarray(a,a+i),n);for(var r=0;i>r;r++)t[n+r]=e[a+r]},flattenChunks:function(t){var e,a,i,n,r,s;for(i=0,e=0,a=t.length;a>e;e++)i+=t[e].length;for(s=new Uint8Array(i),n=0,e=0,a=t.length;a>e;e++)r=t[e],s.set(r,n),n+=r.length;return s}},r={arraySet:function(t,e,a,i,n){for(var r=0;i>r;r++)t[n+r]=e[a+r]},flattenChunks:function(t){return[].concat.apply([],t)}};a.setTyped=function(t){t?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,n)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,r))},a.setTyped(i)},{}],5:[function(t,e,a){"use strict";var i=t("./common"),n=!0;try{String.fromCharCode.apply(null,[0])}catch(r){n=!1}for(var s=new i.Buf8(256),o=0;256>o;o++)s[o]=o>=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;s[254]=s[254]=1,a.string2buf=function(t){var e,a,n,r,s,o=t.length,l=0;for(r=0;o>r;r++)a=t.charCodeAt(r),55296===(64512&a)&&o>r+1&&(n=t.charCodeAt(r+1),56320===(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),l+=128>a?1:2048>a?2:65536>a?3:4;for(e=new i.Buf8(l),s=0,r=0;l>s;r++)a=t.charCodeAt(r),55296===(64512&a)&&o>r+1&&(n=t.charCodeAt(r+1),56320===(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),128>a?e[s++]=a:2048>a?(e[s++]=192|a>>>6,e[s++]=128|63&a):65536>a?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},a.buf2binstring=function(t){if(n&&t.length<65537)return String.fromCharCode.apply(null,t);for(var e="",a=0,i=t.length;i>a;a++)e+=String.fromCharCode(t[a]);return e},a.binstring2buf=function(t){for(var e=new i.Buf8(t.length),a=0,n=e.length;n>a;a++)e[a]=t.charCodeAt(a);return e},a.buf2string=function(t,e){var a,r,o,l,h,d=e||t.length,f=new Array(2*d);for(o=0,r=0;d>r;)if(l=t[r++],128>l)f[o++]=l;else if(h=s[l],h>4)f[o++]=65533,r+=h-1;else{for(l&=2===h?31:3===h?15:7;h>1&&d>r;)l=l<<6|63&t[r++],h--;h>1?f[o++]=65533:65536>l?f[o++]=l:(l-=65536,f[o++]=55296|l>>10&1023,f[o++]=56320|1023&l)}if(n)return String.fromCharCode.apply(null,i.shrinkBuf(f,o));for(a="",r=0,d=o;d>r;r++)a+=String.fromCharCode(f[r]);return a},a.utf8border=function(t,e){var a;for(e=e||t.length,e>t.length&&(e=t.length),a=e-1;a>=0&&128===(192&t[a]);)a--;return 0>a?e:0===a?e:a+s[t[a]]>e?a:e}},{"./common":4}],6:[function(t,e){"use strict";function a(t,e,a,i){for(var n=65535&t|0,r=t>>>16&65535|0,s=0;0!==a;){s=a>2e3?2e3:a,a-=s;do n=n+e[i++]|0,r=r+n|0;while(--s);n%=65521,r%=65521}return n|r<<16|0}e.exports=a},{}],7:[function(t,e){e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],8:[function(t,e){"use strict";function a(){for(var t,e=[],a=0;256>a;a++){t=a;for(var i=0;8>i;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}function i(t,e,a,i){var r=n,s=i+a;t=-1^t;for(var o=i;s>o;o++)t=t>>>8^r[255&(t^e[o])];return-1^t}var n=a();e.exports=i},{}],9:[function(t,e,a){"use strict";function i(t,e){return t.msg=I[e],e}function n(t){return(t<<1)-(t>4?9:0)}function r(t){for(var e=t.length;--e>=0;)t[e]=0}function s(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(A.arraySet(t.output,e.pending_buf,e.pending_out,a,t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))}function o(t,e){Z._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,s(t.strm)}function l(t,e){t.pending_buf[t.pending++]=e}function h(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function d(t,e,a,i){var n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,A.arraySet(e,t.input,t.next_in,n,a),1===t.state.wrap?t.adler=R(t.adler,e,n,a):2===t.state.wrap&&(t.adler=C(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)}function f(t,e){var a,i,n=t.max_chain_length,r=t.strstart,s=t.prev_length,o=t.nice_match,l=t.strstart>t.w_size-he?t.strstart-(t.w_size-he):0,h=t.window,d=t.w_mask,f=t.prev,_=t.strstart+le,u=h[r+s-1],c=h[r+s];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do if(a=e,h[a+s]===c&&h[a+s-1]===u&&h[a]===h[r]&&h[++a]===h[r+1]){r+=2,a++;do;while(h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&_>r);if(i=le-(_-r),r=_-le,i>s){if(t.match_start=e,s=i,i>=o)break;u=h[r+s-1],c=h[r+s]}}while((e=f[e&d])>l&&0!==--n);return s<=t.lookahead?s:t.lookahead}function _(t){var e,a,i,n,r,s=t.w_size;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-he)){A.arraySet(t.window,t.window,s,s,0),t.match_start-=s,t.strstart-=s,t.block_start-=s,a=t.hash_size,e=a;do i=t.head[--e],t.head[e]=i>=s?i-s:0;while(--a);a=s,e=a;do i=t.prev[--e],t.prev[e]=i>=s?i-s:0;while(--a);n+=s}if(0===t.strm.avail_in)break;if(a=d(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=a,t.lookahead+t.insert>=oe)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=(t.ins_h<<t.hash_shift^t.window[r+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[r+oe-1])&t.hash_mask,t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,t.insert--,!(t.lookahead+t.insert<oe)););}while(t.lookahead<he&&0!==t.strm.avail_in)}function u(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(_(t),0===t.lookahead&&e===N)return we;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+a;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,o(t,!1),0===t.strm.avail_out))return we;if(t.strstart-t.block_start>=t.w_size-he&&(o(t,!1),0===t.strm.avail_out))return we}return t.insert=0,e===D?(o(t,!0),0===t.strm.avail_out?ve:ke):t.strstart>t.block_start&&(o(t,!1),0===t.strm.avail_out)?we:we}function c(t,e){for(var a,i;;){if(t.lookahead<he){if(_(t),t.lookahead<he&&e===N)return we;if(0===t.lookahead)break}if(a=0,t.lookahead>=oe&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+oe-1])&t.hash_mask,a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-he&&(t.match_length=f(t,a)),t.match_length>=oe)if(i=Z._tr_tally(t,t.strstart-t.match_start,t.match_length-oe),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=oe){t.match_length--;do t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+oe-1])&t.hash_mask,a=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=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=Z._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(o(t,!1),0===t.strm.avail_out))return we}return t.insert=t.strstart<oe-1?t.strstart:oe-1,e===D?(o(t,!0),0===t.strm.avail_out?ve:ke):t.last_lit&&(o(t,!1),0===t.strm.avail_out)?we:pe}function g(t,e){for(var a,i,n;;){if(t.lookahead<he){if(_(t),t.lookahead<he&&e===N)return we;if(0===t.lookahead)break}if(a=0,t.lookahead>=oe&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+oe-1])&t.hash_mask,a=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=oe-1,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-he&&(t.match_length=f(t,a),t.match_length<=5&&(t.strategy===P||t.match_length===oe&&t.strstart-t.match_start>4096)&&(t.match_length=oe-1)),t.prev_length>=oe&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-oe,i=Z._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-oe),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=n&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+oe-1])&t.hash_mask,a=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=oe-1,t.strstart++,i&&(o(t,!1),0===t.strm.avail_out))return we}else if(t.match_available){if(i=Z._tr_tally(t,0,t.window[t.strstart-1]),i&&o(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return we}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=Z._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<oe-1?t.strstart:oe-1,e===D?(o(t,!0),0===t.strm.avail_out?ve:ke):t.last_lit&&(o(t,!1),0===t.strm.avail_out)?we:pe}function b(t,e){for(var a,i,n,r,s=t.window;;){if(t.lookahead<=le){if(_(t),t.lookahead<=le&&e===N)return we;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=oe&&t.strstart>0&&(n=t.strstart-1,i=s[n],i===s[++n]&&i===s[++n]&&i===s[++n])){r=t.strstart+le;do;while(i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&i===s[++n]&&r>n);t.match_length=le-(r-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=oe?(a=Z._tr_tally(t,1,t.match_length-oe),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=Z._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(o(t,!1),0===t.strm.avail_out))return we}return t.insert=0,e===D?(o(t,!0),0===t.strm.avail_out?ve:ke):t.last_lit&&(o(t,!1),0===t.strm.avail_out)?we:pe}function m(t,e){for(var a;;){if(0===t.lookahead&&(_(t),0===t.lookahead)){if(e===N)return we;break}if(t.match_length=0,a=Z._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(o(t,!1),0===t.strm.avail_out))return we}return t.insert=0,e===D?(o(t,!0),0===t.strm.avail_out?ve:ke):t.last_lit&&(o(t,!1),0===t.strm.avail_out)?we:pe}function w(t){t.window_size=2*t.w_size,r(t.head),t.max_lazy_match=E[t.level].max_lazy,t.good_match=E[t.level].good_length,t.nice_match=E[t.level].nice_length,t.max_chain_length=E[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=oe-1,t.match_available=0,t.ins_h=0}function p(){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=J,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 A.Buf16(2*re),this.dyn_dtree=new A.Buf16(2*(2*ie+1)),this.bl_tree=new A.Buf16(2*(2*ne+1)),r(this.dyn_ltree),r(this.dyn_dtree),r(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new A.Buf16(se+1),this.heap=new A.Buf16(2*ae+1),r(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new A.Buf16(2*ae+1),r(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function v(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=W,e=t.state,e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?fe:be,t.adler=2===e.wrap?0:1,e.last_flush=N,Z._tr_init(e),L):i(t,H)}function k(t){var e=v(t);return e===L&&w(t.state),e}function x(t,e){return t&&t.state?2!==t.state.wrap?H:(t.state.gzhead=e,L):H}function z(t,e,a,n,r,s){if(!t)return H;var o=1;if(e===K&&(e=6),0>n?(o=0,n=-n):n>15&&(o=2,n-=16),1>r||r>Q||a!==J||8>n||n>15||0>e||e>9||0>s||s>G)return i(t,H);8===n&&(n=9);var l=new p;return t.state=l,l.strm=t,l.wrap=o,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=r+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+oe-1)/oe),l.window=new A.Buf8(2*l.w_size),l.head=new A.Buf16(l.hash_size),l.prev=new A.Buf16(l.w_size),l.lit_bufsize=1<<r+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new A.Buf8(l.pending_buf_size),l.d_buf=l.lit_bufsize>>1,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=a,k(t)}function y(t,e){return z(t,e,J,V,$,X)}function B(t,e){var a,o,d,f;if(!t||!t.state||e>F||0>e)return t?i(t,H):H;if(o=t.state,!t.output||!t.input&&0!==t.avail_in||o.status===me&&e!==D)return i(t,0===t.avail_out?M:H);if(o.strm=t,a=o.last_flush,o.last_flush=e,o.status===fe)if(2===o.wrap)t.adler=0,l(o,31),l(o,139),l(o,8),o.gzhead?(l(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),l(o,255&o.gzhead.time),l(o,o.gzhead.time>>8&255),l(o,o.gzhead.time>>16&255),l(o,o.gzhead.time>>24&255),l(o,9===o.level?2:o.strategy>=q||o.level<2?4:0),l(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(l(o,255&o.gzhead.extra.length),l(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(t.adler=C(t.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=_e):(l(o,0),l(o,0),l(o,0),l(o,0),l(o,0),l(o,9===o.level?2:o.strategy>=q||o.level<2?4:0),l(o,xe),o.status=be);else{var _=J+(o.w_bits-8<<4)<<8,u=-1;u=o.strategy>=q||o.level<2?0:o.level<6?1:6===o.level?2:3,_|=u<<6,0!==o.strstart&&(_|=de),_+=31-_%31,o.status=be,h(o,_),0!==o.strstart&&(h(o,t.adler>>>16),h(o,65535&t.adler)),t.adler=1}if(o.status===_e)if(o.gzhead.extra){for(d=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>d&&(t.adler=C(t.adler,o.pending_buf,o.pending-d,d)),s(t),d=o.pending,o.pending!==o.pending_buf_size));)l(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>d&&(t.adler=C(t.adler,o.pending_buf,o.pending-d,d)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=ue)}else o.status=ue;if(o.status===ue)if(o.gzhead.name){d=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>d&&(t.adler=C(t.adler,o.pending_buf,o.pending-d,d)),s(t),d=o.pending,o.pending===o.pending_buf_size)){f=1;break}f=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,l(o,f)}while(0!==f);o.gzhead.hcrc&&o.pending>d&&(t.adler=C(t.adler,o.pending_buf,o.pending-d,d)),0===f&&(o.gzindex=0,o.status=ce)}else o.status=ce;if(o.status===ce)if(o.gzhead.comment){d=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>d&&(t.adler=C(t.adler,o.pending_buf,o.pending-d,d)),s(t),d=o.pending,o.pending===o.pending_buf_size)){f=1;break}f=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,l(o,f)}while(0!==f);o.gzhead.hcrc&&o.pending>d&&(t.adler=C(t.adler,o.pending_buf,o.pending-d,d)),0===f&&(o.status=ge)}else o.status=ge;if(o.status===ge&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&s(t),o.pending+2<=o.pending_buf_size&&(l(o,255&t.adler),l(o,t.adler>>8&255),t.adler=0,o.status=be)):o.status=be),0!==o.pending){if(s(t),0===t.avail_out)return o.last_flush=-1,L}else if(0===t.avail_in&&n(e)<=n(a)&&e!==D)return i(t,M);if(o.status===me&&0!==t.avail_in)return i(t,M);if(0!==t.avail_in||0!==o.lookahead||e!==N&&o.status!==me){var c=o.strategy===q?m(o,e):o.strategy===Y?b(o,e):E[o.level].func(o,e);if((c===ve||c===ke)&&(o.status=me),c===we||c===ve)return 0===t.avail_out&&(o.last_flush=-1),L;if(c===pe&&(e===O?Z._tr_align(o):e!==F&&(Z._tr_stored_block(o,0,0,!1),e===T&&(r(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),s(t),0===t.avail_out))return o.last_flush=-1,L}return e!==D?L:o.wrap<=0?U:(2===o.wrap?(l(o,255&t.adler),l(o,t.adler>>8&255),l(o,t.adler>>16&255),l(o,t.adler>>24&255),l(o,255&t.total_in),l(o,t.total_in>>8&255),l(o,t.total_in>>16&255),l(o,t.total_in>>24&255)):(h(o,t.adler>>>16),h(o,65535&t.adler)),s(t),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?L:U)}function S(t){var e;return t&&t.state?(e=t.state.status,e!==fe&&e!==_e&&e!==ue&&e!==ce&&e!==ge&&e!==be&&e!==me?i(t,H):(t.state=null,e===be?i(t,j):L)):H}var E,A=t("../utils/common"),Z=t("./trees"),R=t("./adler32"),C=t("./crc32"),I=t("./messages"),N=0,O=1,T=3,D=4,F=5,L=0,U=1,H=-2,j=-3,M=-5,K=-1,P=1,q=2,Y=3,G=4,X=0,W=2,J=8,Q=9,V=15,$=8,te=29,ee=256,ae=ee+1+te,ie=30,ne=19,re=2*ae+1,se=15,oe=3,le=258,he=le+oe+1,de=32,fe=42,_e=69,ue=73,ce=91,ge=103,be=113,me=666,we=1,pe=2,ve=3,ke=4,xe=3,ze=function(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n};E=[new ze(0,0,0,0,u),new ze(4,4,8,4,c),new ze(4,5,16,8,c),new ze(4,6,32,32,c),new ze(4,4,16,16,g),new ze(8,16,32,32,g),new ze(8,16,128,128,g),new ze(8,32,128,256,g),new ze(32,128,258,1024,g),new ze(32,258,258,4096,g)],a.deflateInit=y,a.deflateInit2=z,a.deflateReset=k,a.deflateResetKeep=v,a.deflateSetHeader=x,a.deflate=B,a.deflateEnd=S,a.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":4,"./adler32":6,"./crc32":8,"./messages":14,"./trees":15}],10:[function(t,e){"use strict";function a(){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}e.exports=a},{}],11:[function(t,e){"use strict";var a=30,i=12;e.exports=function(t,e){var n,r,s,o,l,h,d,f,_,u,c,g,b,m,w,p,v,k,x,z,y,B,S,E,A;n=t.state,r=t.next_in,E=t.input,s=r+(t.avail_in-5),o=t.next_out,A=t.output,l=o-(e-t.avail_out),h=o+(t.avail_out-257),d=n.dmax,f=n.wsize,_=n.whave,u=n.wnext,c=n.window,g=n.hold,b=n.bits,m=n.lencode,w=n.distcode,p=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;t:do{15>b&&(g+=E[r++]<<b,b+=8,g+=E[r++]<<b,b+=8),k=m[g&p];e:for(;;){if(x=k>>>24,g>>>=x,b-=x,x=k>>>16&255,0===x)A[o++]=65535&k;else{if(!(16&x)){if(0===(64&x)){k=m[(65535&k)+(g&(1<<x)-1)];continue e}if(32&x){n.mode=i;break t}t.msg="invalid literal/length code",n.mode=a;break t}z=65535&k,x&=15,x&&(x>b&&(g+=E[r++]<<b,b+=8),z+=g&(1<<x)-1,g>>>=x,b-=x),15>b&&(g+=E[r++]<<b,b+=8,g+=E[r++]<<b,b+=8),k=w[g&v];a:for(;;){if(x=k>>>24,g>>>=x,b-=x,x=k>>>16&255,!(16&x)){if(0===(64&x)){k=w[(65535&k)+(g&(1<<x)-1)];continue a}t.msg="invalid distance code",n.mode=a;break t}if(y=65535&k,x&=15,x>b&&(g+=E[r++]<<b,b+=8,x>b&&(g+=E[r++]<<b,b+=8)),y+=g&(1<<x)-1,y>d){t.msg="invalid distance too far back",n.mode=a;break t}if(g>>>=x,b-=x,x=o-l,y>x){if(x=y-x,x>_&&n.sane){t.msg="invalid distance too far back",n.mode=a;break t}if(B=0,S=c,0===u){if(B+=f-x,z>x){z-=x;do A[o++]=c[B++];while(--x);B=o-y,S=A}}else if(x>u){if(B+=f+u-x,x-=u,z>x){z-=x;do A[o++]=c[B++];while(--x);if(B=0,z>u){x=u,z-=x;do A[o++]=c[B++];while(--x);B=o-y,S=A}}}else if(B+=u-x,z>x){z-=x;do A[o++]=c[B++];while(--x);B=o-y,S=A}for(;z>2;)A[o++]=S[B++],A[o++]=S[B++],A[o++]=S[B++],z-=3;z&&(A[o++]=S[B++],z>1&&(A[o++]=S[B++]))}else{B=o-y;do A[o++]=A[B++],A[o++]=A[B++],A[o++]=A[B++],z-=3;while(z>2);z&&(A[o++]=A[B++],z>1&&(A[o++]=A[B++]))}break}}break}}while(s>r&&h>o);z=b>>3,r-=z,b-=z<<3,g&=(1<<b)-1,t.next_in=r,t.next_out=o,t.avail_in=s>r?5+(s-r):5-(r-s),t.avail_out=h>o?257+(h-o):257-(o-h),n.hold=g,n.bits=b}},{}],12:[function(t,e,a){"use strict";function i(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function n(){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 m.Buf16(320),this.work=new m.Buf16(288),this.codes=new m.Buf32(be),this.sane=0,this.back=0,this.was=0}function r(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=D,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=new m.Buf32(be),e.distcode=new m.Buf32(be),e.sane=1,e.back=-1,A):C}function s(t){var e;return t&&t.state?(e=t.state,e.wsize=0,e.whave=0,e.wnext=0,r(t)):C}function o(t,e){var a,i;return t&&t.state?(i=t.state,0>e?(a=0,e=-e):(a=(e>>4)+1,48>e&&(e&=15)),e&&(8>e||e>15)?C:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,s(t))):C}function l(t,e){var a,i;return t?(i=new n,t.state=i,i.window=null,a=o(t,e),a!==A&&(t.state=null),a):C}function h(t){return l(t,we)}function d(t){if(pe){var e;for(g=new m.Buf32(512),b=new m.Buf32(32),e=0;144>e;)t.lens[e++]=8;for(;256>e;)t.lens[e++]=9;for(;280>e;)t.lens[e++]=7;for(;288>e;)t.lens[e++]=8;for(k(z,t.lens,0,288,g,0,t.work,{bits:9}),e=0;32>e;)t.lens[e++]=5;k(y,t.lens,0,32,b,0,t.work,{bits:5}),pe=!1}t.lencode=g,t.lenbits=9,t.distcode=b,t.distbits=5}function f(t,e,a,i){var n,r=t.state;return null===r.window&&(r.wsize=1<<r.wbits,r.wnext=0,r.whave=0,r.window=new m.Buf8(r.wsize)),i>=r.wsize?(m.arraySet(r.window,e,a-r.wsize,r.wsize,0),r.wnext=0,r.whave=r.wsize):(n=r.wsize-r.wnext,n>i&&(n=i),m.arraySet(r.window,e,a-i,n,r.wnext),i-=n,i?(m.arraySet(r.window,e,a-i,i,0),r.wnext=i,r.whave=r.wsize):(r.wnext+=n,r.wnext===r.wsize&&(r.wnext=0),r.whave<r.wsize&&(r.whave+=n))),0}function _(t,e){var a,n,r,s,o,l,h,_,u,c,g,b,ce,ge,be,me,we,pe,ve,ke,xe,ze,ye,Be,Se=0,Ee=new m.Buf8(4),Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return C;a=t.state,a.mode===G&&(a.mode=X),o=t.next_out,r=t.output,h=t.avail_out,s=t.next_in,n=t.input,l=t.avail_in,_=a.hold,u=a.bits,c=l,g=h,ze=A;t:for(;;)switch(a.mode){case D:if(0===a.wrap){a.mode=X;break}for(;16>u;){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}if(2&a.wrap&&35615===_){a.check=0,Ee[0]=255&_,Ee[1]=_>>>8&255,a.check=p(a.check,Ee,2,0),_=0,u=0,a.mode=F;break}if(a.flags=0,a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&_)<<8)+(_>>8))%31){t.msg="incorrect header check",a.mode=fe;break}if((15&_)!==T){t.msg="unknown compression method",a.mode=fe;break}if(_>>>=4,u-=4,xe=(15&_)+8,0===a.wbits)a.wbits=xe;else if(xe>a.wbits){t.msg="invalid window size",a.mode=fe;break}a.dmax=1<<xe,t.adler=a.check=1,a.mode=512&_?q:G,_=0,u=0;break;case F:for(;16>u;){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}if(a.flags=_,(255&a.flags)!==T){t.msg="unknown compression method",a.mode=fe;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=fe;break}a.head&&(a.head.text=_>>8&1),512&a.flags&&(Ee[0]=255&_,Ee[1]=_>>>8&255,a.check=p(a.check,Ee,2,0)),_=0,u=0,a.mode=L;case L:for(;32>u;){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}a.head&&(a.head.time=_),512&a.flags&&(Ee[0]=255&_,Ee[1]=_>>>8&255,Ee[2]=_>>>16&255,Ee[3]=_>>>24&255,a.check=p(a.check,Ee,4,0)),_=0,u=0,a.mode=U;case U:for(;16>u;){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}a.head&&(a.head.xflags=255&_,a.head.os=_>>8),512&a.flags&&(Ee[0]=255&_,Ee[1]=_>>>8&255,a.check=p(a.check,Ee,2,0)),_=0,u=0,a.mode=H;case H:if(1024&a.flags){for(;16>u;){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}a.length=_,a.head&&(a.head.extra_len=_),512&a.flags&&(Ee[0]=255&_,Ee[1]=_>>>8&255,a.check=p(a.check,Ee,2,0)),_=0,u=0}else a.head&&(a.head.extra=null);a.mode=j;case j:if(1024&a.flags&&(b=a.length,b>l&&(b=l),b&&(a.head&&(xe=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Array(a.head.extra_len)),m.arraySet(a.head.extra,n,s,b,xe)),512&a.flags&&(a.check=p(a.check,n,b,s)),l-=b,s+=b,a.length-=b),a.length))break t;a.length=0,a.mode=M;case M:if(2048&a.flags){if(0===l)break t;b=0;do xe=n[s+b++],a.head&&xe&&a.length<65536&&(a.head.name+=String.fromCharCode(xe));while(xe&&l>b);if(512&a.flags&&(a.check=p(a.check,n,b,s)),l-=b,s+=b,xe)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=K;case K:if(4096&a.flags){if(0===l)break t;b=0;do xe=n[s+b++],a.head&&xe&&a.length<65536&&(a.head.comment+=String.fromCharCode(xe));while(xe&&l>b);if(512&a.flags&&(a.check=p(a.check,n,b,s)),l-=b,s+=b,xe)break t}else a.head&&(a.head.comment=null);a.mode=P;case P:if(512&a.flags){for(;16>u;){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}if(_!==(65535&a.check)){t.msg="header crc mismatch",a.mode=fe;break}_=0,u=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=G;break;case q:for(;32>u;){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}t.adler=a.check=i(_),_=0,u=0,a.mode=Y;case Y:if(0===a.havedict)return t.next_out=o,t.avail_out=h,t.next_in=s,t.avail_in=l,a.hold=_,a.bits=u,R;t.adler=a.check=1,a.mode=G;case G:if(e===S||e===E)break t;case X:if(a.last){_>>>=7&u,u-=7&u,a.mode=le;break}for(;3>u;){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}switch(a.last=1&_,_>>>=1,u-=1,3&_){case 0:a.mode=W;break;case 1:if(d(a),a.mode=ee,e===E){_>>>=2,u-=2;break t}break;case 2:a.mode=V;break;case 3:t.msg="invalid block type",a.mode=fe}_>>>=2,u-=2;break;case W:for(_>>>=7&u,u-=7&u;32>u;){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}if((65535&_)!==(_>>>16^65535)){t.msg="invalid stored block lengths",a.mode=fe;break}if(a.length=65535&_,_=0,u=0,a.mode=J,e===E)break t;case J:a.mode=Q;case Q:if(b=a.length){if(b>l&&(b=l),b>h&&(b=h),0===b)break t;m.arraySet(r,n,s,b,o),l-=b,s+=b,h-=b,o+=b,a.length-=b;break}a.mode=G;break;case V:for(;14>u;){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}if(a.nlen=(31&_)+257,_>>>=5,u-=5,a.ndist=(31&_)+1,_>>>=5,u-=5,a.ncode=(15&_)+4,_>>>=4,u-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=fe;break}a.have=0,a.mode=$;case $:for(;a.have<a.ncode;){for(;3>u;){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}a.lens[Ae[a.have++]]=7&_,_>>>=3,u-=3}for(;a.have<19;)a.lens[Ae[a.have++]]=0;if(m.arraySet(a.lencode,a.codes,0,a.codes.length,0),a.lenbits=7,ye={bits:a.lenbits},ze=k(x,a.lens,0,19,a.lencode,0,a.work,ye),a.lenbits=ye.bits,ze){t.msg="invalid code lengths set",a.mode=fe;break}a.have=0,a.mode=te;case te:for(;a.have<a.nlen+a.ndist;){for(;Se=a.lencode[_&(1<<a.lenbits)-1],be=Se>>>24,me=Se>>>16&255,we=65535&Se,!(u>=be);){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}if(16>we)_>>>=be,u-=be,a.lens[a.have++]=we;else{if(16===we){for(Be=be+2;Be>u;){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}if(_>>>=be,u-=be,0===a.have){t.msg="invalid bit length repeat",a.mode=fe;break}xe=a.lens[a.have-1],b=3+(3&_),_>>>=2,u-=2}else if(17===we){for(Be=be+3;Be>u;){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}_>>>=be,u-=be,xe=0,b=3+(7&_),_>>>=3,u-=3}else{for(Be=be+7;Be>u;){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}_>>>=be,u-=be,xe=0,b=11+(127&_),_>>>=7,u-=7}if(a.have+b>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=fe;break}for(;b--;)a.lens[a.have++]=xe}}if(a.mode===fe)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=fe;break}if(m.arraySet(a.lencode,a.codes,0,a.codes.length,0),a.lenbits=9,ye={bits:a.lenbits},ze=k(z,a.lens,0,a.nlen,a.lencode,0,a.work,ye),a.lenbits=ye.bits,ze){t.msg="invalid literal/lengths set",a.mode=fe;break}if(a.distbits=6,m.arraySet(a.distcode,a.codes,0,a.codes.length,0),ye={bits:a.distbits},ze=k(y,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,ye),a.distbits=ye.bits,ze){t.msg="invalid distances set",a.mode=fe;
break}if(a.mode=ee,e===E)break t;case ee:a.mode=ae;case ae:if(l>=6&&h>=258){t.next_out=o,t.avail_out=h,t.next_in=s,t.avail_in=l,a.hold=_,a.bits=u,v(t,g),o=t.next_out,r=t.output,h=t.avail_out,s=t.next_in,n=t.input,l=t.avail_in,_=a.hold,u=a.bits,a.mode===G&&(a.back=-1);break}for(a.back=0;Se=a.lencode[_&(1<<a.lenbits)-1],be=Se>>>24,me=Se>>>16&255,we=65535&Se,!(u>=be);){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}if(me&&0===(240&me)){for(pe=be,ve=me,ke=we;Se=a.lencode[ke+((_&(1<<pe+ve)-1)>>pe)],be=Se>>>24,me=Se>>>16&255,we=65535&Se,!(u>=pe+be);){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}_>>>=pe,u-=pe,a.back+=pe}if(_>>>=be,u-=be,a.back+=be,a.length=we,0===me){a.mode=oe;break}if(32&me){a.back=-1,a.mode=G;break}if(64&me){t.msg="invalid literal/length code",a.mode=fe;break}a.extra=15&me,a.mode=ie;case ie:if(a.extra){for(Be=a.extra;Be>u;){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}a.length+=_&(1<<a.extra)-1,_>>>=a.extra,u-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=ne;case ne:for(;Se=a.distcode[_&(1<<a.distbits)-1],be=Se>>>24,me=Se>>>16&255,we=65535&Se,!(u>=be);){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}if(0===(240&me)){for(pe=be,ve=me,ke=we;Se=a.distcode[ke+((_&(1<<pe+ve)-1)>>pe)],be=Se>>>24,me=Se>>>16&255,we=65535&Se,!(u>=pe+be);){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}_>>>=pe,u-=pe,a.back+=pe}if(_>>>=be,u-=be,a.back+=be,64&me){t.msg="invalid distance code",a.mode=fe;break}a.offset=we,a.extra=15&me,a.mode=re;case re:if(a.extra){for(Be=a.extra;Be>u;){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}a.offset+=_&(1<<a.extra)-1,_>>>=a.extra,u-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=fe;break}a.mode=se;case se:if(0===h)break t;if(b=g-h,a.offset>b){if(b=a.offset-b,b>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=fe;break}b>a.wnext?(b-=a.wnext,ce=a.wsize-b):ce=a.wnext-b,b>a.length&&(b=a.length),ge=a.window}else ge=r,ce=o-a.offset,b=a.length;b>h&&(b=h),h-=b,a.length-=b;do r[o++]=ge[ce++];while(--b);0===a.length&&(a.mode=ae);break;case oe:if(0===h)break t;r[o++]=a.length,h--,a.mode=ae;break;case le:if(a.wrap){for(;32>u;){if(0===l)break t;l--,_|=n[s++]<<u,u+=8}if(g-=h,t.total_out+=g,a.total+=g,g&&(t.adler=a.check=a.flags?p(a.check,r,g,o-g):w(a.check,r,g,o-g)),g=h,(a.flags?_:i(_))!==a.check){t.msg="incorrect data check",a.mode=fe;break}_=0,u=0}a.mode=he;case he:if(a.wrap&&a.flags){for(;32>u;){if(0===l)break t;l--,_+=n[s++]<<u,u+=8}if(_!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=fe;break}_=0,u=0}a.mode=de;case de:ze=Z;break t;case fe:ze=I;break t;case _e:return N;case ue:default:return C}return t.next_out=o,t.avail_out=h,t.next_in=s,t.avail_in=l,a.hold=_,a.bits=u,(a.wsize||g!==t.avail_out&&a.mode<fe&&(a.mode<le||e!==B))&&f(t,t.output,t.next_out,g-t.avail_out)?(a.mode=_e,N):(c-=t.avail_in,g-=t.avail_out,t.total_in+=c,t.total_out+=g,a.total+=g,a.wrap&&g&&(t.adler=a.check=a.flags?p(a.check,r,g,t.next_out-g):w(a.check,r,g,t.next_out-g)),t.data_type=a.bits+(a.last?64:0)+(a.mode===G?128:0)+(a.mode===ee||a.mode===J?256:0),(0===c&&0===g||e===B)&&ze===A&&(ze=O),ze)}function u(t){if(!t||!t.state)return C;var e=t.state;return e.window&&(e.window=null),t.state=null,A}function c(t,e){var a;return t&&t.state?(a=t.state,0===(2&a.wrap)?C:(a.head=e,e.done=!1,A)):C}var g,b,m=t("../utils/common"),w=t("./adler32"),p=t("./crc32"),v=t("./inffast"),k=t("./inftrees"),x=0,z=1,y=2,B=4,S=5,E=6,A=0,Z=1,R=2,C=-2,I=-3,N=-4,O=-5,T=8,D=1,F=2,L=3,U=4,H=5,j=6,M=7,K=8,P=9,q=10,Y=11,G=12,X=13,W=14,J=15,Q=16,V=17,$=18,te=19,ee=20,ae=21,ie=22,ne=23,re=24,se=25,oe=26,le=27,he=28,de=29,fe=30,_e=31,ue=32,ce=852,ge=592,be=ce+ge,me=15,we=me,pe=!0;a.inflateReset=s,a.inflateReset2=o,a.inflateResetKeep=r,a.inflateInit=h,a.inflateInit2=l,a.inflate=_,a.inflateEnd=u,a.inflateGetHeader=c,a.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":4,"./adler32":6,"./crc32":8,"./inffast":11,"./inftrees":13}],13:[function(t,e){"use strict";var a=t("../utils/common"),i=15,n=852,r=592,s=0,o=1,l=2,h=[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],d=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],_=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,u,c,g,b,m,w){var p,v,k,x,z,y,B,S,E,A=w.bits,Z=0,R=0,C=0,I=0,N=0,O=0,T=0,D=0,F=0,L=0,U=null,H=0,j=new a.Buf16(i+1),M=new a.Buf16(i+1),K=null,P=0;for(Z=0;i>=Z;Z++)j[Z]=0;for(R=0;c>R;R++)j[e[u+R]]++;for(N=A,I=i;I>=1&&0===j[I];I--);if(N>I&&(N=I),0===I)return g[b++]=20971520,g[b++]=20971520,w.bits=1,0;for(C=1;I>C&&0===j[C];C++);for(C>N&&(N=C),D=1,Z=1;i>=Z;Z++)if(D<<=1,D-=j[Z],0>D)return-1;if(D>0&&(t===s||1!==I))return-1;for(M[1]=0,Z=1;i>Z;Z++)M[Z+1]=M[Z]+j[Z];for(R=0;c>R;R++)0!==e[u+R]&&(m[M[e[u+R]]++]=R);switch(t){case s:U=K=m,y=19;break;case o:U=h,H-=257,K=d,P-=257,y=256;break;default:U=f,K=_,y=-1}if(L=0,R=0,Z=C,z=b,O=N,T=0,k=-1,F=1<<N,x=F-1,t===o&&F>n||t===l&&F>r)return 1;for(var q=0;;){q++,B=Z-T,m[R]<y?(S=0,E=m[R]):m[R]>y?(S=K[P+m[R]],E=U[H+m[R]]):(S=96,E=0),p=1<<Z-T,v=1<<O,C=v;do v-=p,g[z+(L>>T)+v]=B<<24|S<<16|E|0;while(0!==v);for(p=1<<Z-1;L&p;)p>>=1;if(0!==p?(L&=p-1,L+=p):L=0,R++,0===--j[Z]){if(Z===I)break;Z=e[u+m[R]]}if(Z>N&&(L&x)!==k){for(0===T&&(T=N),z+=C,O=Z-T,D=1<<O;I>O+T&&(D-=j[O+T],!(0>=D));)O++,D<<=1;if(F+=1<<O,t===o&&F>n||t===l&&F>r)return 1;k=L&x,g[k]=N<<24|O<<16|z-b|0}}return 0!==L&&(g[z+L]=Z-T<<24|64<<16|0),w.bits=N,0}},{"../utils/common":4}],14:[function(t,e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],15:[function(t,e,a){"use strict";function i(t){for(var e=t.length;--e>=0;)t[e]=0}function n(t){return 256>t?se[t]:se[256+(t>>>7)]}function r(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function s(t,e,a){t.bi_valid>G-a?(t.bi_buf|=e<<t.bi_valid&65535,r(t,t.bi_buf),t.bi_buf=e>>G-t.bi_valid,t.bi_valid+=a-G):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)}function o(t,e,a){s(t,a[2*e],a[2*e+1])}function l(t,e){var a=0;do a|=1&t,t>>>=1,a<<=1;while(--e>0);return a>>>1}function h(t){16===t.bi_valid?(r(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)}function d(t,e){var a,i,n,r,s,o,l=e.dyn_tree,h=e.max_code,d=e.stat_desc.static_tree,f=e.stat_desc.has_stree,_=e.stat_desc.extra_bits,u=e.stat_desc.extra_base,c=e.stat_desc.max_length,g=0;for(r=0;Y>=r;r++)t.bl_count[r]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;q>a;a++)i=t.heap[a],r=l[2*l[2*i+1]+1]+1,r>c&&(r=c,g++),l[2*i+1]=r,i>h||(t.bl_count[r]++,s=0,i>=u&&(s=_[i-u]),o=l[2*i],t.opt_len+=o*(r+s),f&&(t.static_len+=o*(d[2*i+1]+s)));if(0!==g){do{for(r=c-1;0===t.bl_count[r];)r--;t.bl_count[r]--,t.bl_count[r+1]+=2,t.bl_count[c]--,g-=2}while(g>0);for(r=c;0!==r;r--)for(i=t.bl_count[r];0!==i;)n=t.heap[--a],n>h||(l[2*n+1]!==r&&(t.opt_len+=(r-l[2*n+1])*l[2*n],l[2*n+1]=r),i--)}}function f(t,e,a){var i,n,r=new Array(Y+1),s=0;for(i=1;Y>=i;i++)r[i]=s=s+a[i-1]<<1;for(n=0;e>=n;n++){var o=t[2*n+1];0!==o&&(t[2*n]=l(r[o]++,o))}}function _(){var t,e,a,i,n,r=new Array(Y+1);for(a=0,i=0;H-1>i;i++)for(le[i]=a,t=0;t<1<<$[i];t++)oe[a++]=i;for(oe[a-1]=i,n=0,i=0;16>i;i++)for(he[i]=n,t=0;t<1<<te[i];t++)se[n++]=i;for(n>>=7;K>i;i++)for(he[i]=n<<7,t=0;t<1<<te[i]-7;t++)se[256+n++]=i;for(e=0;Y>=e;e++)r[e]=0;for(t=0;143>=t;)ne[2*t+1]=8,t++,r[8]++;for(;255>=t;)ne[2*t+1]=9,t++,r[9]++;for(;279>=t;)ne[2*t+1]=7,t++,r[7]++;for(;287>=t;)ne[2*t+1]=8,t++,r[8]++;for(f(ne,M+1,r),t=0;K>t;t++)re[2*t+1]=5,re[2*t]=l(t,5);de=new ue(ne,$,j+1,M,Y),fe=new ue(re,te,0,K,Y),_e=new ue(new Array(0),ee,0,P,X)}function u(t){var e;for(e=0;M>e;e++)t.dyn_ltree[2*e]=0;for(e=0;K>e;e++)t.dyn_dtree[2*e]=0;for(e=0;P>e;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*W]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function c(t){t.bi_valid>8?r(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function g(t,e,a,i){c(t),i&&(r(t,a),r(t,~a)),R.arraySet(t.pending_buf,t.window,e,a,t.pending),t.pending+=a}function b(t,e,a,i){var n=2*e,r=2*a;return t[n]<t[r]||t[n]===t[r]&&i[e]<=i[a]}function m(t,e,a){for(var i=t.heap[a],n=a<<1;n<=t.heap_len&&(n<t.heap_len&&b(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!b(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i}function w(t,e,a){var i,r,l,h,d=0;if(0!==t.last_lit)do i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],r=t.pending_buf[t.l_buf+d],d++,0===i?o(t,r,e):(l=oe[r],o(t,l+j+1,e),h=$[l],0!==h&&(r-=le[l],s(t,r,h)),i--,l=n(i),o(t,l,a),h=te[l],0!==h&&(i-=he[l],s(t,i,h)));while(d<t.last_lit);o(t,W,e)}function p(t,e){var a,i,n,r=e.dyn_tree,s=e.stat_desc.static_tree,o=e.stat_desc.has_stree,l=e.stat_desc.elems,h=-1;for(t.heap_len=0,t.heap_max=q,a=0;l>a;a++)0!==r[2*a]?(t.heap[++t.heap_len]=h=a,t.depth[a]=0):r[2*a+1]=0;for(;t.heap_len<2;)n=t.heap[++t.heap_len]=2>h?++h:0,r[2*n]=1,t.depth[n]=0,t.opt_len--,o&&(t.static_len-=s[2*n+1]);for(e.max_code=h,a=t.heap_len>>1;a>=1;a--)m(t,r,a);n=l;do a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],m(t,r,1),i=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=i,r[2*n]=r[2*a]+r[2*i],t.depth[n]=(t.depth[a]>=t.depth[i]?t.depth[a]:t.depth[i])+1,r[2*a+1]=r[2*i+1]=n,t.heap[1]=n++,m(t,r,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],d(t,e),f(r,h,t.bl_count)}function v(t,e,a){var i,n,r=-1,s=e[1],o=0,l=7,h=4;for(0===s&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;a>=i;i++)n=s,s=e[2*(i+1)+1],++o<l&&n===s||(h>o?t.bl_tree[2*n]+=o:0!==n?(n!==r&&t.bl_tree[2*n]++,t.bl_tree[2*J]++):10>=o?t.bl_tree[2*Q]++:t.bl_tree[2*V]++,o=0,r=n,0===s?(l=138,h=3):n===s?(l=6,h=3):(l=7,h=4))}function k(t,e,a){var i,n,r=-1,l=e[1],h=0,d=7,f=4;for(0===l&&(d=138,f=3),i=0;a>=i;i++)if(n=l,l=e[2*(i+1)+1],!(++h<d&&n===l)){if(f>h){do o(t,n,t.bl_tree);while(0!==--h)}else 0!==n?(n!==r&&(o(t,n,t.bl_tree),h--),o(t,J,t.bl_tree),s(t,h-3,2)):10>=h?(o(t,Q,t.bl_tree),s(t,h-3,3)):(o(t,V,t.bl_tree),s(t,h-11,7));h=0,r=n,0===l?(d=138,f=3):n===l?(d=6,f=3):(d=7,f=4)}}function x(t){var e;for(v(t,t.dyn_ltree,t.l_desc.max_code),v(t,t.dyn_dtree,t.d_desc.max_code),p(t,t.bl_desc),e=P-1;e>=3&&0===t.bl_tree[2*ae[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}function z(t,e,a,i){var n;for(s(t,e-257,5),s(t,a-1,5),s(t,i-4,4),n=0;i>n;n++)s(t,t.bl_tree[2*ae[n]+1],3);k(t,t.dyn_ltree,e-1),k(t,t.dyn_dtree,a-1)}function y(t){var e,a=4093624447;for(e=0;31>=e;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return I;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return N;for(e=32;j>e;e++)if(0!==t.dyn_ltree[2*e])return N;return I}function B(t){ge||(_(),ge=!0),t.l_desc=new ce(t.dyn_ltree,de),t.d_desc=new ce(t.dyn_dtree,fe),t.bl_desc=new ce(t.bl_tree,_e),t.bi_buf=0,t.bi_valid=0,u(t)}function S(t,e,a,i){s(t,(T<<1)+(i?1:0),3),g(t,e,a,!0)}function E(t){s(t,D<<1,3),o(t,W,ne),h(t)}function A(t,e,a,i){var n,r,o=0;t.level>0?(t.strm.data_type===O&&(t.strm.data_type=y(t)),p(t,t.l_desc),p(t,t.d_desc),o=x(t),n=t.opt_len+3+7>>>3,r=t.static_len+3+7>>>3,n>=r&&(n=r)):n=r=a+5,n>=a+4&&-1!==e?S(t,e,a,i):t.strategy===C||r===n?(s(t,(D<<1)+(i?1:0),3),w(t,ne,re)):(s(t,(F<<1)+(i?1:0),3),z(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),w(t,t.dyn_ltree,t.dyn_dtree)),u(t),i&&c(t)}function Z(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(oe[a]+j+1)]++,t.dyn_dtree[2*n(e)]++),t.last_lit===t.lit_bufsize-1}var R=t("../utils/common"),C=4,I=0,N=1,O=2,T=0,D=1,F=2,L=3,U=258,H=29,j=256,M=j+1+H,K=30,P=19,q=2*M+1,Y=15,G=16,X=7,W=256,J=16,Q=17,V=18,$=[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],te=[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],ee=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ie=512,ne=new Array(2*(M+2));i(ne);var re=new Array(2*K);i(re);var se=new Array(ie);i(se);var oe=new Array(U-L+1);i(oe);var le=new Array(H);i(le);var he=new Array(K);i(he);var de,fe,_e,ue=function(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length},ce=function(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e},ge=!1;a._tr_init=B,a._tr_stored_block=S,a._tr_flush_block=A,a._tr_tally=Z,a._tr_align=E},{"../utils/common":4}],16:[function(t,e){"use strict";function a(){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}e.exports=a},{}]},{},[1])(1)});

@@ -63,2 +63,3 @@ 'use strict';

browsers: browsers,
concurrency: 3,
testname: process.env.SAUCE_PROJ || 'mocha tests'

@@ -65,0 +66,0 @@ }

@@ -0,3 +1,13 @@

0.2.0 / 2014-04-18
------------------
- Added custom gzip headers support.
- Added strings support.
- Improved memory allocations for small chunks.
- ZStream properties rename/cleanup.
- More coverage tests.
0.1.1 / 2014-03-20
-------------------
------------------

@@ -8,4 +18,4 @@ - Bugfixes for inflate/deflate.

0.1.0 / 2014-03-15
-------------------
------------------
- First release.
// Top level file is just a mixin of submodules & constants
'use strict';
var assign = require('./lib/zlib/utils').assign;
var assign = require('./lib/utils/common').assign;

@@ -6,0 +6,0 @@ var deflate = require('./lib/deflate');

@@ -5,3 +5,4 @@ 'use strict';

var zlib_deflate = require('./zlib/deflate.js');
var utils = require('./zlib/utils');
var utils = require('./utils/common');
var strings = require('./utils/strings');
var msg = require('./zlib/messages');

@@ -85,4 +86,14 @@ var zstream = require('./zlib/zstream');

* - `chunkSize` - size of generated data chunks (16K by default)
* - `raw` (boolean) - do raw deflate
* - `gzip` (boolean) - create gzip wrapper
* - `raw` (Boolean) - do raw deflate
* - `gzip` (Boolean) - create gzip wrapper
* - `to` (String) - if equal to 'string', then result will be "binary string"
* (each char code [0..255])
* - `header` (Object) - custom header for gzip
* - `text` (Boolean) - true if compressed data believed to be text
* - `time` (Number) - modification time, unix timestamp
* - `os` (Number) - operation system code
* - `extra` (Array) - array of bytes with extra data (max 65536)
* - `name` (String) - file name (binary string)
* - `comment` (String) - comment (binary string)
* - `hcrc` (Boolean) - true if header crc should be added
*

@@ -114,3 +125,4 @@ * ##### Example:

memLevel: 8,
strategy: Z_DEFAULT_STRATEGY
strategy: Z_DEFAULT_STRATEGY,
to: ''
}, options || {});

@@ -134,2 +146,3 @@

this.strm = new zstream();
this.strm.avail_out = 0;

@@ -148,2 +161,6 @@ var status = zlib_deflate.deflateInit2(

}
if (opt.header) {
zlib_deflate.deflateSetHeader(this.strm, opt.header);
}
};

@@ -153,3 +170,4 @@

* Deflate#push(data[, mode]) -> Boolean
* - data (Uint8Array|Array): input data
* - data (Uint8Array|Array|String): input data. Strings will be converted to
* utf8 byte sequence.
* - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.

@@ -166,3 +184,3 @@ * See constants. Skipped or `false` means Z_NO_FLUSH, `true` meansh Z_FINISH.

* We strongly recommend to use `Uint8Array` on input for best speed (output
* format is detected automatically). Also, don't skip last param and always
* array format is detected automatically). Also, don't skip last param and always
* use the same type in your code (boolean or number). That will improve JS speed.

@@ -189,10 +207,19 @@ *

strm.next_in = data;
strm.next_in_index = 0;
strm.avail_in = strm.next_in.length;
strm.next_out = new utils.Buf8(chunkSize);
// Convert data if needed
if (typeof data === 'string') {
// If we need to compress text, change encoding to utf8.
strm.input = strings.string2buf(data);
} else {
strm.input = data;
}
strm.next_in = 0;
strm.avail_in = strm.input.length;
do {
strm.avail_out = this.options.chunkSize;
strm.next_out_index = 0;
if (strm.avail_out === 0) {
strm.output = new utils.Buf8(chunkSize);
strm.next_out = 0;
strm.avail_out = chunkSize;
}
status = zlib_deflate.deflate(strm, _mode); /* no bad return value */

@@ -205,10 +232,10 @@

}
if(strm.next_out_index) {
this.onData(utils.shrinkBuf(strm.next_out, strm.next_out_index));
// Allocate buffer for next chunk, if not last
if (strm.avail_in > 0 || strm.avail_out === 0) {
strm.next_out = new utils.Buf8(this.options.chunkSize);
if (strm.avail_out === 0 || (strm.avail_in === 0 && _mode === Z_FINISH)) {
if (this.options.to === 'string') {
this.onData(strings.buf2binstring(utils.shrinkBuf(strm.output, strm.next_out)));
} else {
this.onData(utils.shrinkBuf(strm.output, strm.next_out));
}
}
} while (strm.avail_in > 0 || strm.avail_out === 0);
} while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== Z_STREAM_END);

@@ -229,4 +256,5 @@ // Finalize on the last chunk.

* Deflate#onData(chunk) -> Void
* - chunk (Uint8Array|Array): ouput data. Type of array depends
* on js engine support.
* - chunk (Uint8Array|Array|String): ouput data. Type of array depends
* on js engine support. When string output requested, each chunk
* will be string.
*

@@ -253,3 +281,7 @@ * By default, stores data blocks in `chunks[]` property and glue

if (status === Z_OK) {
this.result = utils.flattenChunks(this.chunks);
if (this.options.to === 'string') {
this.result = this.chunks.join('');
} else {
this.result = utils.flattenChunks(this.chunks);
}
}

@@ -263,4 +295,4 @@ this.chunks = [];

/**
* deflate(data[, options]) -> Uint8Array|Array
* - data (Uint8Array|Array): input data to compress.
* deflate(data[, options]) -> Uint8Array|Array|String
* - data (Uint8Array|Array|String): input data to compress.
* - options (Object): zlib deflate options.

@@ -280,2 +312,9 @@ *

*
* Sugar (options):
*
* - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify
* negative windowBits implicitly.
* - `to` (String) - if equal to 'string', then result will be "binary string"
* (each char code [0..255])
*
* ##### Example:

@@ -303,4 +342,4 @@ *

/**
* deflateRaw(data[, options]) -> Uint8Array|Array
* - data (Uint8Array|Array): input data to compress.
* deflateRaw(data[, options]) -> Uint8Array|Array|String
* - data (Uint8Array|Array|String): input data to compress.
* - options (Object): zlib deflate options.

@@ -319,4 +358,4 @@ *

/**
* gzip(data[, options]) -> Uint8Array|Array
* - data (Uint8Array|Array): input data to compress.
* gzip(data[, options]) -> Uint8Array|Array|String
* - data (Uint8Array|Array|String): input data to compress.
* - options (Object): zlib deflate options.

@@ -323,0 +362,0 @@ *

@@ -5,6 +5,8 @@ 'use strict';

var zlib_inflate = require('./zlib/inflate.js');
var utils = require('./zlib/utils');
var utils = require('./utils/common');
var strings = require('./utils/strings');
var c = require('./zlib/constants');
var msg = require('./zlib/messages');
var zstream = require('./zlib/zstream');
var gzheader = require('./zlib/gzheader');

@@ -27,3 +29,3 @@

/**
* Inflate.result -> Uint8Array|Array
* Inflate.result -> Uint8Array|Array|String
*

@@ -64,3 +66,6 @@ * Uncompressed result, generated by default [[Inflate#onData]]

* - `chunkSize` - size of generated data chunks (16K by default)
* - `raw` (boolean) - do raw inflate
* - `raw` (Boolean) - do raw inflate
* - `to` (String) - if equal to 'string', then result will be converted
* from utf8 to utf16 (javascript) string. When string output requested,
* chunk length can differ from `chunkSize`, depending on content.
*

@@ -91,3 +96,4 @@ * By default, when no options set, autodetect deflate/gzip data format via

chunkSize: 16384,
windowBits: 0
windowBits: 0,
to: ''
}, options || {});

@@ -126,2 +132,3 @@

this.strm = new zstream();
this.strm.avail_out = 0;

@@ -136,2 +143,6 @@ var status = zlib_inflate.inflateInit2(

}
this.header = new gzheader();
zlib_inflate.inflateGetHeader(this.strm, this.header);
};

@@ -141,3 +152,3 @@

* Inflate#push(data[, mode]) -> Boolean
* - data (Uint8Array|Array): input data
* - data (Uint8Array|Array|String): input data
* - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.

@@ -171,16 +182,27 @@ * See constants. Skipped or `false` means Z_NO_FLUSH, `true` meansh Z_FINISH.

var status, _mode;
var next_out_utf8, tail, utf8str;
if (this.ended) { return false; }
_mode = c.Z_NO_FLUSH;
_mode = (mode === ~~mode) ? mode : ((mode === true) ? c.Z_FINISH : c.Z_NO_FLUSH);
strm.next_in = data;
strm.next_in_index = 0;
strm.avail_in = strm.next_in.length;
strm.next_out = new utils.Buf8(chunkSize);
// Convert data if needed
if (typeof data === 'string') {
// Only binary strings can be decompressed on practice
strm.input = strings.binstring2buf(data);
} else {
strm.input = data;
}
strm.next_in = 0;
strm.avail_in = strm.input.length;
do {
strm.avail_out = this.options.chunkSize;
strm.next_out_index = 0;
status = zlib_inflate.inflate(strm, _mode); /* no bad return value */
if (strm.avail_out === 0) {
strm.output = new utils.Buf8(chunkSize);
strm.next_out = 0;
strm.avail_out = chunkSize;
}
status = zlib_inflate.inflate(strm, c.Z_NO_FLUSH); /* no bad return value */
if (status !== c.Z_STREAM_END && status !== c.Z_OK) {

@@ -191,12 +213,30 @@ this.onEnd(status);

}
if(strm.next_out_index) {
this.onData(utils.shrinkBuf(strm.next_out, strm.next_out_index));
// Allocate buffer for next chunk, if not last
if (strm.avail_in > 0 || strm.avail_out === 0) {
strm.next_out = new utils.Buf8(this.options.chunkSize);
if (strm.next_out) {
if (strm.avail_out === 0 || status === c.Z_STREAM_END || (strm.avail_in === 0 && _mode === c.Z_FINISH)) {
if (this.options.to === 'string') {
next_out_utf8 = strings.utf8border(strm.output, strm.next_out);
tail = strm.next_out - next_out_utf8;
utf8str = strings.buf2string(strm.output, next_out_utf8);
// move tail
strm.next_out = tail;
strm.avail_out = chunkSize - tail;
if (tail) { utils.arraySet(strm.output, strm.output, next_out_utf8, tail, 0); }
this.onData(utf8str);
} else {
this.onData(utils.shrinkBuf(strm.output, strm.next_out));
}
}
}
} while (strm.avail_in > 0 || strm.avail_out === 0);
} while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== c.Z_STREAM_END);
_mode = (mode === ~~mode) ? mode : ((mode === true) ? c.Z_FINISH : c.Z_NO_FLUSH);
if (status === c.Z_STREAM_END) {
_mode = c.Z_FINISH;
}
// Finalize on the last chunk.

@@ -216,4 +256,5 @@ if (_mode === c.Z_FINISH) {

* Inflate#onData(chunk) -> Void
* - chunk (Uint8Array|Array): ouput data. Type of array depends
* on js engine support.
* - chunk (Uint8Array|Array|String): ouput data. Type of array depends
* on js engine support. When string output requested, each chunk
* will be string.
*

@@ -240,3 +281,9 @@ * By default, stores data blocks in `chunks[]` property and glue

if (status === c.Z_OK) {
this.result = utils.flattenChunks(this.chunks);
if (this.options.to === 'string') {
// Glue & convert here, until we teach pako to send
// utf8 alligned strings to onData
this.result = this.chunks.join('');
} else {
this.result = utils.flattenChunks(this.chunks);
}
}

@@ -250,4 +297,4 @@ this.chunks = [];

/**
* inflate(data[, options]) -> Uint8Array|Array
* - data (Uint8Array|Array): input data to compress.
* inflate(data[, options]) -> Uint8Array|Array|String
* - data (Uint8Array|Array|String): input data to compress.
* - options (Object): zlib inflate options.

@@ -268,4 +315,7 @@ *

*
* - raw (Boolean) - say that we work with raw stream, if you don't wish to specify
* - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify
* negative windowBits implicitly.
* - `to` (String) - if equal to 'string', then result will be converted
* from utf8 to utf16 (javascript) string. When string output requested,
* chunk length can differ from `chunkSize`, depending on content.
*

@@ -300,4 +350,4 @@ *

/**
* inflateRaw(data[, options]) -> Uint8Array|Array
* - data (Uint8Array|Array): input data to compress.
* inflateRaw(data[, options]) -> Uint8Array|Array|String
* - data (Uint8Array|Array|String): input data to compress.
* - options (Object): zlib inflate options.

@@ -315,4 +365,15 @@ *

/**
* ungzip(data[, options]) -> Uint8Array|Array|String
* - data (Uint8Array|Array|String): input data to compress.
* - options (Object): zlib inflate options.
*
* Just shortcut to [[inflate]], because it autodetects format
* by header.content. Done for convenience.
**/
exports.Inflate = Inflate;
exports.inflate = inflate;
exports.inflateRaw = inflateRaw;
exports.ungzip = inflate;

@@ -18,8 +18,8 @@ module.exports = {

Z_NEED_DICT: 2,
Z_ERRNO: (-1),
Z_STREAM_ERROR: (-2),
Z_DATA_ERROR: (-3),
//Z_MEM_ERROR: (-4),
Z_BUF_ERROR: (-5),
//Z_VERSION_ERROR: (-6),
Z_ERRNO: -1,
Z_STREAM_ERROR: -2,
Z_DATA_ERROR: -3,
//Z_MEM_ERROR: -4,
Z_BUF_ERROR: -5,
//Z_VERSION_ERROR: -6,

@@ -42,3 +42,3 @@ /* compression levels */

Z_TEXT: 1,
//Z_ASCII: 1, // = Z_TEXT (deprecated)
//Z_ASCII: 1, // = Z_TEXT (deprecated)
Z_UNKNOWN: 2,

@@ -48,3 +48,3 @@

Z_DEFLATED: 8
//Z_NULL: null // Use -1 or null, depending on var type
//Z_NULL: null // Use -1 or null inline, depending on var type
};
'use strict';
var utils = require('./utils');
var utils = require('../utils/common');
var trees = require('./trees');

@@ -115,3 +115,3 @@ var adler32 = require('./adler32');

function zero(buf) { var len = buf.length; while (--len) { buf[len] = 0; } }
function zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } }

@@ -122,3 +122,3 @@

* through this function so some applications may wish to modify it
* to avoid allocating a large strm->next_out buffer and copying into it.
* to avoid allocating a large strm->output buffer and copying into it.
* (See also read_buf()).

@@ -136,4 +136,4 @@ */

utils.arraySet(strm.next_out, s.pending_buf, s.pending_out, len, strm.next_out_index);
strm.next_out_index += len;
utils.arraySet(strm.output, s.pending_buf, s.pending_out, len, strm.next_out);
strm.next_out += len;
s.pending_out += len;

@@ -178,3 +178,3 @@ strm.total_out += len;

* this function so some applications may wish to modify it to avoid
* allocating a large strm->next_in buffer and copying from it.
* allocating a large strm->input buffer and copying from it.
* (See also flush_pending()).

@@ -190,3 +190,3 @@ */

utils.arraySet(buf, strm.next_in, strm.next_in_index, len, start);
utils.arraySet(buf, strm.input, strm.next_in, len, start);
if (strm.state.wrap === 1) {

@@ -200,3 +200,3 @@ strm.adler = adler32(strm.adler, buf, len, start);

strm.next_in_index += len;
strm.next_in += len;
strm.total_in += len;

@@ -339,2 +339,3 @@

// JS ints have 32 bit, block below not needed
/* Deal with !@#$% 64K limit: */

@@ -1188,9 +1189,2 @@ //if (sizeof(int) <= 2) {

// struct tree_desc_s l_desc; /* desc. for literal tree */
// struct tree_desc_s d_desc; /* desc. for distance tree */
// struct tree_desc_s bl_desc; /* desc. for bit length tree */
// Seems to init better from `tree` with direct structures,
// (?) with separate constructor for bl_desc or not?
// Make sure objects have the same hidden class if needed
this.l_desc = null; /* desc. for literal tree */

@@ -1264,3 +1258,5 @@ this.d_desc = null; /* desc. for distance tree */

this.high_water = 0;
// Used for window memory init. We safely ignore it for JS. That makes
// sense only for pointers and memory check tools.
//this.high_water = 0;
/* High water mark offset in window for initialized bytes -- bytes above

@@ -1273,2 +1269,3 @@ * this are set to zero in order to avoid memory check warnings when

function deflateResetKeep(strm) {

@@ -1302,2 +1299,3 @@ var s;

function deflateReset(strm) {

@@ -1311,5 +1309,14 @@ var ret = deflateResetKeep(strm);

function deflateSetHeader(strm, head) {
if (!strm || !strm.state) { return Z_STREAM_ERROR; }
if (strm.state.wrap !== 2) { return Z_STREAM_ERROR; }
strm.state.gzhead = head;
return Z_OK;
}
function deflateInit2(strm, level, method, windowBits, memLevel, strategy) {
if (!strm) { // === Z_NULL
return err(strm, Z_STREAM_ERROR);
return Z_STREAM_ERROR;
}

@@ -1365,3 +1372,4 @@ var wrap = 1;

s.high_water = 0; /* nothing written to s->window yet */
// Don't need mem init magic for JS.
//s.high_water = 0; /* nothing written to s->window yet */

@@ -1390,6 +1398,7 @@ s.lit_bufsize = 1 << (memLevel + 6); /* 16K elements by default */

var old_flush, s;
var beg, val; // for gzip header write only
if (!strm || !strm.state ||
flush > Z_BLOCK || flush < 0) {
return err(strm, Z_STREAM_ERROR);
return strm ? err(strm, Z_STREAM_ERROR) : Z_STREAM_ERROR;
}

@@ -1399,4 +1408,4 @@

if (!strm.next_out ||
(!strm.next_in && strm.avail_in !== 0) ||
if (!strm.output ||
(!strm.input && strm.avail_in !== 0) ||
(s.status === FINISH_STATE && flush !== Z_FINISH)) {

@@ -1431,3 +1440,25 @@ return err(strm, (strm.avail_out === 0) ? Z_BUF_ERROR : Z_STREAM_ERROR);

else {
throw new Error('Custom GZIP headers not supported');
put_byte(s, (s.gzhead.text ? 1 : 0) +
(s.gzhead.hcrc ? 2 : 0) +
(!s.gzhead.extra ? 0 : 4) +
(!s.gzhead.name ? 0 : 8) +
(!s.gzhead.comment ? 0 : 16)
);
put_byte(s, s.gzhead.time & 0xff);
put_byte(s, (s.gzhead.time >> 8) & 0xff);
put_byte(s, (s.gzhead.time >> 16) & 0xff);
put_byte(s, (s.gzhead.time >> 24) & 0xff);
put_byte(s, s.level === 9 ? 2 :
(s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?
4 : 0));
put_byte(s, s.gzhead.os & 0xff);
if (s.gzhead.extra && s.gzhead.extra.length) {
put_byte(s, s.gzhead.extra.length & 0xff);
put_byte(s, (s.gzhead.extra.length >> 8) & 0xff);
}
if (s.gzhead.hcrc) {
strm.adler = crc32(strm.adler, s.pending_buf, s.pending, 0);
}
s.gzindex = 0;
s.status = EXTRA_STATE;
}

@@ -1465,2 +1496,126 @@ }

//#ifdef GZIP
if (s.status === EXTRA_STATE) {
if (s.gzhead.extra/* != Z_NULL*/) {
beg = s.pending; /* start of bytes to update crc */
while (s.gzindex < (s.gzhead.extra.length & 0xffff)) {
if (s.pending === s.pending_buf_size) {
if (s.gzhead.hcrc && s.pending > beg) {
strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
}
flush_pending(strm);
beg = s.pending;
if (s.pending === s.pending_buf_size) {
break;
}
}
put_byte(s, s.gzhead.extra[s.gzindex] & 0xff);
s.gzindex++;
}
if (s.gzhead.hcrc && s.pending > beg) {
strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
}
if (s.gzindex === s.gzhead.extra.length) {
s.gzindex = 0;
s.status = NAME_STATE;
}
}
else {
s.status = NAME_STATE;
}
}
if (s.status === NAME_STATE) {
if (s.gzhead.name/* != Z_NULL*/) {
beg = s.pending; /* start of bytes to update crc */
//int val;
do {
if (s.pending === s.pending_buf_size) {
if (s.gzhead.hcrc && s.pending > beg) {
strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
}
flush_pending(strm);
beg = s.pending;
if (s.pending === s.pending_buf_size) {
val = 1;
break;
}
}
// JS specific: little magic to add zero terminator to end of string
if (s.gzindex < s.gzhead.name.length) {
val = s.gzhead.name.charCodeAt(s.gzindex++) & 0xff;
} else {
val = 0;
}
put_byte(s, val);
} while (val !== 0);
if (s.gzhead.hcrc && s.pending > beg){
strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
}
if (val === 0) {
s.gzindex = 0;
s.status = COMMENT_STATE;
}
}
else {
s.status = COMMENT_STATE;
}
}
if (s.status === COMMENT_STATE) {
if (s.gzhead.comment/* != Z_NULL*/) {
beg = s.pending; /* start of bytes to update crc */
//int val;
do {
if (s.pending === s.pending_buf_size) {
if (s.gzhead.hcrc && s.pending > beg) {
strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
}
flush_pending(strm);
beg = s.pending;
if (s.pending === s.pending_buf_size) {
val = 1;
break;
}
}
// JS specific: little magic to add zero terminator to end of string
if (s.gzindex < s.gzhead.comment.length) {
val = s.gzhead.comment.charCodeAt(s.gzindex++) & 0xff;
} else {
val = 0;
}
put_byte(s, val);
} while (val !== 0);
if (s.gzhead.hcrc && s.pending > beg) {
strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
}
if (val === 0) {
s.status = HCRC_STATE;
}
}
else {
s.status = HCRC_STATE;
}
}
if (s.status === HCRC_STATE) {
if (s.gzhead.hcrc) {
if (s.pending + 2 > s.pending_buf_size) {
flush_pending(strm);
}
if (s.pending + 2 <= s.pending_buf_size) {
put_byte(s, strm.adler & 0xff);
put_byte(s, (strm.adler >> 8) & 0xff);
strm.adler = 0; //crc32(0L, Z_NULL, 0);
s.status = BUSY_STATE;
}
}
else {
s.status = BUSY_STATE;
}
}
//#endif
/* Flush as much pending output as possible */

@@ -1580,3 +1735,9 @@ if (s.pending !== 0) {

function deflateEnd(strm) {
var status = strm.state.status;
var status;
if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) {
return Z_STREAM_ERROR;
}
status = strm.state.status;
if (status !== INIT_STATE &&

@@ -1608,2 +1769,4 @@ status !== EXTRA_STATE &&

exports.deflateReset = deflateReset;
exports.deflateResetKeep = deflateResetKeep;
exports.deflateSetHeader = deflateSetHeader;
exports.deflate = deflate;

@@ -1614,7 +1777,9 @@ exports.deflateEnd = deflateEnd;

/* Not implemented
exports.deflateBound = deflateBound;
exports.deflateCopy = deflateCopy;
exports.deflateSetDictionary = deflateSetDictionary;
exports.deflateParams = deflateParams;
exports.deflateSetHeader = deflateSetHeader;
exports.deflateBound = deflateBound;
exports.deflatePending = deflatePending;
exports.deflatePrime = deflatePrime;
exports.deflateTune = deflateTune;
*/

@@ -44,6 +44,6 @@ 'use strict';

var state;
var _in; /* local strm.next_in */
var _in; /* local strm.input */
var last; /* have enough input while in < last */
var _out; /* local strm.next_out */
var beg; /* inflate()'s initial strm.next_out */
var _out; /* local strm.output */
var beg; /* inflate()'s initial strm.output */
var end; /* while out < end, enough space available */

@@ -77,7 +77,7 @@ //#ifdef INFLATE_STRICT

//here = state.here;
_in = strm.next_in_index;
input = strm.next_in;
_in = strm.next_in;
input = strm.input;
last = _in + (strm.avail_in - 5);
_out = strm.next_out_index;
output = strm.next_out;
_out = strm.next_out;
output = strm.output;
beg = _out - (start - strm.avail_out);

@@ -188,3 +188,2 @@ end = _out + (strm.avail_out - 257);

// don't enable it for binary compatibility
//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR

@@ -322,4 +321,4 @@ // if (len <= op - whave) {

/* update state and return */
strm.next_in_index = _in;
strm.next_out_index = _out;
strm.next_in = _in;
strm.next_out = _out;
strm.avail_in = (_in < last ? 5 + (last - _in) : 5 - (_in - last));

@@ -326,0 +325,0 @@ strm.avail_out = (_out < end ? 257 + (end - _out) : 257 - (_out - end));

'use strict';
var utils = require('./utils');
var utils = require('../utils/common');
var adler32 = require('./adler32');

@@ -145,3 +145,2 @@ var crc32 = require('./crc32');

this.next = null; /* next available space in codes[] */
this.next_index = 0;

@@ -153,3 +152,2 @@ //unsigned short array

// TODO: 8 or 16 bits?
this.codes = new utils.Buf32(ENOUGH); /* space for code tables */

@@ -161,13 +159,2 @@ this.sane = 0; /* if false, allow invalid distance too far */

function InfTableOptions(type, lens, lens_index, codes, table, table_index, bits, work) {
this.type = type;
this.lens = lens;
this.lens_index = lens_index;
this.codes = codes;
this.table = table;
this.table_index = table_index;
this.bits = bits;
this.work = work;
}
function inflateResetKeep(strm) {

@@ -179,3 +166,3 @@ var state;

strm.total_in = strm.total_out = state.total = 0;
//strm.msg = Z_NULL;
strm.msg = ''; /*Z_NULL*/
if (state.wrap) { /* to support ill-conceived Java test suite */

@@ -188,3 +175,2 @@ strm.adler = state.wrap & 1;

state.dmax = 32768;
// TODO: may be {}
state.head = null/*Z_NULL*/;

@@ -194,4 +180,2 @@ state.hold = 0;

//state.lencode = state.distcode = state.next = state.codes;
//utils.arraySet(state.lencode,state.codes,0,state.codes.length,0);
//utils.arraySet(state.distcode,state.codes,0,state.codes.length,0);
state.lencode = new utils.Buf32(ENOUGH);

@@ -276,19 +260,3 @@ state.distcode = new utils.Buf32(ENOUGH);

function inflatePrime(strm, bits, value) {
var state;
if (!strm || !strm.state) { return Z_STREAM_ERROR; }
state = strm.state;
if (bits < 0) {
state.hold = 0;
state.bits = 0;
return Z_OK;
}
if (bits > 16 || state.bits + bits > 32) { return Z_STREAM_ERROR; }
value &= (1 << bits) - 1;
state.hold += value << state.bits;
state.bits += bits;
return Z_OK;
}
/*

@@ -306,4 +274,2 @@ Return state with length and distance decoding tables and index sizes set to

// TODO: check if we can use single array forbetter CPU cache use
// That will require to pass offset, when operating with distance tables.
var lenfix, distfix; // We have no pointers in JS, so keep tables separate

@@ -314,3 +280,3 @@

if (virgin) {
var sym, bits;
var sym;

@@ -327,4 +293,3 @@ lenfix = new utils.Buf32(512);

bits = 9;
inflate_table(new InfTableOptions(LENS, state.lens, 0, 288, lenfix, 0, bits, state.work));
inflate_table(LENS, state.lens, 0, 288, lenfix, 0, state.work, {bits: 9});

@@ -334,5 +299,4 @@ /* distance table */

while (sym < 32) { state.lens[sym++] = 5; }
bits = 5;
inflate_table(new InfTableOptions(DISTS, state.lens, 0, 32, distfix, 0, bits, state.work));
inflate_table(DISTS, state.lens, 0, 32, distfix, 0, state.work, {bits: 5});

@@ -419,5 +383,5 @@ /* do this just once */

var here = 0; /* current decoding table entry */
var here_bits, here_op, here_val;
var here_bits, here_op, here_val; // paked "here" denormalized (JS specific)
//var last; /* parent table entry */
var last_bits, last_op, last_val; // paked "last" denormalized
var last_bits, last_op, last_val; // paked "last" denormalized (JS specific)
var len; /* length to copy for repeats, bits to drop */

@@ -434,6 +398,6 @@ var ret; /* return code */

// TODO: check if needed and don't affect speed
//if (strm === Z_NULL || strm.state === Z_NULL || strm.next_out === Z_NULL ||
// (strm.next_in === Z_NULL && strm.avail_in !== 0))
// return Z_STREAM_ERROR;
if (!strm || !strm.state || !strm.output ||
(!strm.input && strm.avail_in !== 0)) {
return Z_STREAM_ERROR;
}

@@ -445,7 +409,7 @@ state = strm.state;

//--- LOAD() ---
put = strm.next_out_index;
output = strm.next_out;
put = strm.next_out;
output = strm.output;
left = strm.avail_out;
next = strm.next_in_index;
input = strm.next_in;
next = strm.next_in;
input = strm.input;
have = strm.avail_in;

@@ -493,3 +457,3 @@ hold = state.hold;

if (state.head) {
state.head.done = -1;
state.head.done = false;
}

@@ -654,9 +618,21 @@ if (!(state.wrap & 1) || /* check if zlib header allowed */

if (copy) {
if (state.head &&
state.head.extra) {
if (state.head) {
len = state.head.extra_len - state.length;
if (!state.head.extra) {
// Use untyped array for more conveniend processing later
state.head.extra = new Array(state.head.extra_len);
}
utils.arraySet(
state.head.extra,
input,
next,
// extra field is limited to 65536 bytes
// - no need for additional size check
copy,
/*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/
len
);
//zmemcpy(state.head.extra + len, next,
// len + copy > state.head.extra_max ?
// state.head.extra_max - len : copy);
throw 'Review & implement right';
}

@@ -682,7 +658,9 @@ if (state.flags & 0x0200) {

len = input[next + copy++];
if (state.head && state.head.name &&
(state.length < state.head.name_max)) {
state.head.name[state.length++] = len;
/* use constant limit because in js we should not preallocate memory */
if (state.head && len &&
(state.length < 65536 /*state.head.name_max*/)) {
state.head.name += String.fromCharCode(len);
}
} while (len && copy < have);
if (state.flags & 0x0200) {

@@ -707,5 +685,6 @@ state.check = crc32(state.check, input, copy, next);

len = input[next + copy++];
if (state.head && state.head.comment &&
(state.length < state.head.comm_max)) {
state.head.comment[state.length++] = len;
/* use constant limit because in js we should not preallocate memory */
if (state.head && len &&
(state.length < 65536 /*state.head.comm_max*/)) {
state.head.comment += String.fromCharCode(len);
}

@@ -747,3 +726,3 @@ } while (len && copy < have);

state.head.hcrc = ((state.flags >> 9) & 1);
state.head.done = 1;
state.head.done = true;
}

@@ -772,5 +751,5 @@ strm.adler = state.check = 0 /*crc32(0L, Z_NULL, 0)*/;

//--- RESTORE() ---
strm.next_out_index = put;
strm.next_out = put;
strm.avail_out = left;
strm.next_in_index = next;
strm.next_in = next;
strm.avail_in = have;

@@ -948,11 +927,10 @@ state.hold = hold;

}
// We have separate tables & no pointers. 2 commented lines below not needed.
//state.next = state.codes;
// TODO:
//state.lencode = state.next;
//state.lencode.copy(state.codes);
utils.arraySet(state.lencode, state.codes, 0, state.codes.length, 0);
state.lenbits = 7;
opts = new InfTableOptions(CODES, state.lens, 0, 19, state.lencode, 0, state.lenbits, state.work);
ret = inflate_table(opts);
opts = {bits: state.lenbits};
ret = inflate_table(CODES, state.lens, 0, 19, state.lencode, 0, state.work, opts);
state.lenbits = opts.bits;

@@ -1089,7 +1067,8 @@

opts = new InfTableOptions(LENS, state.lens, 0, state.nlen,state.lencode,0, state.lenbits, state.work);
ret = inflate_table(opts);
// state.next_index = opts.table_index;
opts = {bits: state.lenbits};
ret = inflate_table(LENS, state.lens, 0, state.nlen, state.lencode, 0, state.work, opts);
// We have separate tables & no pointers. 2 commented lines below not needed.
// state.next_index = opts.table_index;
state.lenbits = opts.bits;
// state.lencode = state.next;
// state.lencode = state.next;

@@ -1105,7 +1084,8 @@ if (ret) {

utils.arraySet(state.distcode, state.codes, 0, state.codes.length, 0);
opts = new InfTableOptions(DISTS, state.lens, state.nlen, state.ndist, state.distcode,0, state.distbits, state.work);
ret = inflate_table(opts);
// state.next_index = opts.table_index;
opts = {bits: state.distbits};
ret = inflate_table(DISTS, state.lens, state.nlen, state.ndist, state.distcode, 0, state.work, opts);
// We have separate tables & no pointers. 2 commented lines below not needed.
// state.next_index = opts.table_index;
state.distbits = opts.bits;
// state.distcode = state.next;
// state.distcode = state.next;

@@ -1127,5 +1107,5 @@ if (ret) {

//--- RESTORE() ---
strm.next_out_index = put;
strm.next_out = put;
strm.avail_out = left;
strm.next_in_index = next;
strm.next_in = next;
strm.avail_in = have;

@@ -1137,7 +1117,7 @@ state.hold = hold;

//--- LOAD() ---
put = strm.next_out_index;
output = strm.next_out;
put = strm.next_out;
output = strm.output;
left = strm.avail_out;
next = strm.next_in_index;
input = strm.next_in;
next = strm.next_in;
input = strm.input;
have = strm.avail_in;

@@ -1335,4 +1315,6 @@ hold = state.hold;

}
// (!) This block is disabled in zlib defailts,
// don't enable it for binary compatibility
//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR
//Trace((stderr, "inflate.c too far\n"));
// Trace((stderr, "inflate.c too far\n"));
// copy -= state.whave;

@@ -1462,5 +1444,5 @@ // if (copy > state.length) { copy = state.length; }

//--- RESTORE() ---
strm.next_out_index = put;
strm.next_out = put;
strm.avail_out = left;
strm.next_in_index = next;
strm.next_in = next;
strm.avail_in = have;

@@ -1473,3 +1455,3 @@ state.hold = hold;

(state.mode < CHECK || flush !== Z_FINISH))) {
if (updatewindow(strm, strm.next_out, strm.next_out_index, _out - strm.avail_out)) {
if (updatewindow(strm, strm.output, strm.next_out, _out - strm.avail_out)) {
state.mode = MEM;

@@ -1485,4 +1467,4 @@ return Z_MEM_ERROR;

if (state.wrap && _out) {
strm.adler = state.check = /*UPDATE(state.check, strm.next_out_index - _out, _out);*/
(state.flags ? crc32(state.check, output, _out, strm.next_out_index - _out) : adler32(state.check, output, _out, strm.next_out_index - _out));
strm.adler = state.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
(state.flags ? crc32(state.check, output, _out, strm.next_out - _out) : adler32(state.check, output, _out, strm.next_out - _out));
}

@@ -1499,4 +1481,7 @@ strm.data_type = state.bits + (state.last ? 64 : 0) +

function inflateEnd(strm) {
// if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0)
// return Z_STREAM_ERROR;
if (!strm || !strm.state /*|| strm->zfree == (free_func)0*/) {
return Z_STREAM_ERROR;
}
var state = strm.state;

@@ -1510,3 +1495,17 @@ if (state.window) {

function inflateGetHeader(strm, head) {
var state;
/* check state */
if (!strm || !strm.state) { return Z_STREAM_ERROR; }
state = strm.state;
if ((state.wrap & 2) === 0) { return Z_STREAM_ERROR; }
/* save header structure */
state.head = head;
head.done = false;
return Z_OK;
}
exports.inflateReset = inflateReset;

@@ -1517,16 +1516,16 @@ exports.inflateReset2 = inflateReset2;

exports.inflateInit2 = inflateInit2;
exports.inflatePrime = inflatePrime;
exports.inflate = inflate;
exports.inflateEnd = inflateEnd;
exports.inflateGetHeader = inflateGetHeader;
exports.inflateInfo = 'pako inflate (from Nodeca project)';
/* Not implemented
exports.inflateCopy = inflateCopy;
exports.inflateGetDictionary = inflateGetDictionary;
exports.inflateGetHeader = inflateGetHeader;
exports.inflateMark = inflateMark;
exports.inflatePrime = inflatePrime;
exports.inflateSetDictionary = inflateSetDictionary;
exports.inflateSync = inflateSync;
exports.inflateSyncPoint = inflateSyncPoint;
exports.inflateCopy = inflateCopy;
exports.inflateUndermine = inflateUndermine;
exports.inflateMark = inflateMark;
*/
'use strict';
var utils = require('./utils');
var utils = require('../utils/common');

@@ -37,10 +37,5 @@ var MAXBITS = 15;

module.exports = function inflate_table(opts)
module.exports = function inflate_table(type, lens, lens_index, codes, table, table_index, work, opts)
{
var type = opts.type,
lens = opts.lens,
codes = opts.codes,
table = opts.table,
bits = opts.bits,
work = opts.work;
var bits = opts.bits;
//here = opts.here; /* table entry for duplication */

@@ -109,3 +104,3 @@

for (sym = 0; sym < codes; sym++) {
count[lens[opts.lens_index + sym]]++;
count[lens[lens_index + sym]]++;
}

@@ -125,3 +120,3 @@

//table.val[opts.table_index++] = 0; //here.val = (var short)0;
table[opts.table_index++] = (1 << 24) | (64 << 16) | 0;
table[table_index++] = (1 << 24) | (64 << 16) | 0;

@@ -132,3 +127,3 @@

//table.val[opts.table_index++] = 0;
table[opts.table_index++] = (1 << 24) | (64 << 16) | 0;
table[table_index++] = (1 << 24) | (64 << 16) | 0;

@@ -166,4 +161,4 @@ opts.bits = 1;

for (sym = 0; sym < codes; sym++) {
if (lens[opts.lens_index + sym] !== 0) {
work[offs[lens[opts.lens_index + sym]]++] = sym;
if (lens[lens_index + sym] !== 0) {
work[offs[lens[lens_index + sym]]++] = sym;
}

@@ -226,3 +221,3 @@ }

len = min; /* starting code length */
next = opts.table_index; /* current table to fill in */
next = table_index; /* current table to fill in */
curr = root; /* current table index bits */

@@ -284,3 +279,3 @@ drop = 0; /* current bits to drop from code for index */

if (len === max) { break; }
len = lens[opts.lens_index + work[sym]];
len = lens[lens_index + work[sym]];
}

@@ -320,3 +315,3 @@

table.val[low] = next - opts.table_index;*/
table[low] = (root << 24) | (curr << 16) | (next - opts.table_index);
table[low] = (root << 24) | (curr << 16) | (next - table_index) |0;
}

@@ -332,9 +327,9 @@ }

//table.val[next + huff] = 0;
table[next + huff] = ((len - drop) << 24) | (64 << 16) | 0;
table[next + huff] = ((len - drop) << 24) | (64 << 16) |0;
}
/* set return parameters */
opts.table_index += used;
//opts.table_index += used;
opts.bits = root;
return 0;
};
'use strict';
var utils = require('./utils');
var utils = require('../utils/common');

@@ -10,7 +10,7 @@ /* Public constants ==========================================================*/

//var Z_FILTERED = 1;
//var Z_HUFFMAN_ONLY = 2;
//var Z_RLE = 3;
//var Z_FILTERED = 1;
//var Z_HUFFMAN_ONLY = 2;
//var Z_RLE = 3;
var Z_FIXED = 4;
//var Z_DEFAULT_STRATEGY = 0;
//var Z_DEFAULT_STRATEGY = 0;

@@ -20,3 +20,3 @@ /* Possible values of the data_type field (though see inflate()) */

var Z_TEXT = 1;
//var Z_ASCII = 1; // = Z_TEXT
//var Z_ASCII = 1; // = Z_TEXT
var Z_UNKNOWN = 2;

@@ -27,3 +27,3 @@

function zero(buf) { var len = buf.length; while (--len) { buf[len] = 0; } }
function zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } }

@@ -30,0 +30,0 @@ // From zutil.h

@@ -6,5 +6,5 @@ 'use strict';

/* next input byte */
this.next_in = null;
this.next_in_index = 0; // JS specific, offset in next_in
/* number of bytes available at next_in */
this.input = null; // JS specific, because we have no pointers
this.next_in = 0;
/* number of bytes available at input */
this.avail_in = 0;

@@ -14,5 +14,5 @@ /* total number of input bytes read so far */

/* next output byte should be put there */
this.next_out = null;
this.next_out_index = 0; // JS specific, offset in next_out
/* remaining free space at next_out */
this.output = null; // JS specific, because we have no pointers
this.next_out = 0;
/* remaining free space at output */
this.avail_out = 0;

@@ -19,0 +19,0 @@ /* total number of bytes output so far */

{
"name" : "pako",
"description" : "zlib port to javascript - fast, modularized, with browser support",
"version" : "0.1.1",
"version" : "0.2.0",
"keywords" : [ "zlib", "deflate", "inflate", "gzip" ],

@@ -30,7 +30,7 @@ "homepage" : "https://github.com/nodeca/pako",

"grunt": "~0.4.0",
"grunt": "~0.4.4",
"grunt-cli": "~0.1.13",
"grunt-saucelabs": "~5.0.1",
"grunt-saucelabs": "~5.1.1",
"grunt-contrib-connect": "~0.7.1"
}
}

@@ -10,4 +10,4 @@ pako - zlib port to javascript, very fast!

- Works in browsers, you can browserify any separate component.
- Both Sync & streamable (for big blobs) interfaces.
- It's fresh - ports the latest zlib version (now 1.2.8), results are binary equal.
- Chunking support for big blobs.
- Results are binary equal to well known [zlib](http://www.zlib.net/) (now v1.2.8 ported).

@@ -17,2 +17,10 @@ This project was done to understand how fast JS can be and is it necessary to

__Famous projects, using pako:__
- [browserify](http://browserify.org/) (via [browserify-zlib](https://github.com/devongovett/browserify-zlib))
- [JSZip](http://stuk.github.io/jszip/)
- [mincer](https://github.com/nodeca/mincer)
__Benchmarks:__

@@ -23,27 +31,31 @@

deflate-dankogai x 4.74 ops/sec ±0.68% (15 runs sampled)
deflate-gildas x 4.61 ops/sec ±1.73% (15 runs sampled)
deflate-imaya x 3.10 ops/sec ±3.73% (11 runs sampled)
! deflate-pako x 7.11 ops/sec ±0.26% (21 runs sampled)
deflate-pako-untyped x 4.34 ops/sec ±1.35% (14 runs sampled)
deflate-zlib x 14.34 ops/sec ±2.90% (68 runs sampled)
inflate-dankogai x 31.29 ops/sec ±0.72% (56 runs sampled)
inflate-imaya x 30.49 ops/sec ±0.84% (53 runs sampled)
! inflate-pako x 70.00 ops/sec ±1.60% (71 runs sampled)
inflate-pako-untyped x 17.67 ops/sec ±1.27% (33 runs sampled)
inflate-zlib x 70.82 ops/sec ±1.69% (81 runs sampled)
deflate-dankogai x 4.73 ops/sec ±0.82% (15 runs sampled)
deflate-gildas x 4.58 ops/sec ±2.33% (15 runs sampled)
deflate-imaya x 3.22 ops/sec ±3.95% (12 runs sampled)
! deflate-pako x 6.99 ops/sec ±0.51% (21 runs sampled)
deflate-pako-string x 5.89 ops/sec ±0.77% (18 runs sampled)
deflate-pako-untyped x 4.39 ops/sec ±1.58% (14 runs sampled)
* deflate-zlib x 14.71 ops/sec ±4.23% (59 runs sampled)
inflate-dankogai x 32.16 ops/sec ±0.13% (56 runs sampled)
inflate-imaya x 30.35 ops/sec ±0.92% (53 runs sampled)
! inflate-pako x 69.89 ops/sec ±1.46% (71 runs sampled)
inflate-pako-string x 19.22 ops/sec ±1.86% (49 runs sampled)
inflate-pako-untyped x 17.19 ops/sec ±0.85% (32 runs sampled)
* inflate-zlib x 70.03 ops/sec ±1.64% (81 runs sampled)
node v0.11.11, 1mb sample:
node v0.11.12, 1mb sample:
deflate-dankogai x 5.61 ops/sec ±0.30% (17 runs sampled)
deflate-gildas x 4.97 ops/sec ±5.68% (16 runs sampled)
deflate-imaya x 3.53 ops/sec ±4.19% (12 runs sampled)
! deflate-pako x 11.52 ops/sec ±0.23% (32 runs sampled)
deflate-pako-untyped x 5.12 ops/sec ±1.44% (17 runs sampled)
deflate-zlib x 14.33 ops/sec ±3.34% (63 runs sampled)
inflate-dankogai x 42.96 ops/sec ±0.19% (57 runs sampled)
inflate-imaya x 85.05 ops/sec ±1.07% (71 runs sampled)
! inflate-pako x 97.58 ops/sec ±0.69% (80 runs sampled)
inflate-pako-untyped x 18.06 ops/sec ±0.65% (56 runs sampled)
inflate-zlib x 60.60 ops/sec ±2.04% (67 runs sampled)
deflate-dankogai x 5.60 ops/sec ±0.49% (17 runs sampled)
deflate-gildas x 5.06 ops/sec ±6.00% (16 runs sampled)
deflate-imaya x 3.52 ops/sec ±3.71% (13 runs sampled)
! deflate-pako x 11.52 ops/sec ±0.22% (32 runs sampled)
deflate-pako-string x 9.53 ops/sec ±1.12% (27 runs sampled)
deflate-pako-untyped x 5.44 ops/sec ±0.72% (17 runs sampled)
* deflate-zlib x 14.05 ops/sec ±3.34% (63 runs sampled)
inflate-dankogai x 42.19 ops/sec ±0.09% (56 runs sampled)
inflate-imaya x 79.68 ops/sec ±1.07% (68 runs sampled)
! inflate-pako x 97.52 ops/sec ±0.83% (80 runs sampled)
inflate-pako-string x 45.19 ops/sec ±1.69% (57 runs sampled)
inflate-pako-untyped x 24.35 ops/sec ±2.59% (40 runs sampled)
* inflate-zlib x 60.32 ops/sec ±1.36% (69 runs sampled)
```

@@ -113,3 +125,21 @@

Sometime you can wish to work with strings. For example, to send
big objects as json to server. Pako detects input data type. You can
force output to be string with option `{ to: 'string' }`.
```javascript
var pako = require('pako');
var test = { my: 'super', puper: [456, 567], awesome: 'pako' };
var binaryString = pako.deflate(JSON.stringify(test), { to: 'string' });
//
// Here you can do base64 encode, make xhr requests and so on.
//
var restored = JSON.parse(pako.inflate(binaryString, { to: 'string' }));
```
Notes

@@ -120,7 +150,7 @@ -----

- __deflate__ - writing custom gzip headers and methods `deflateSetDictionary`,
`deflateParams`, `deflateSetHeader`, `deflateBound`, `deflatePending`.
- __inflate__ - getting custom gzip headers and methods `inflateGetDictionary`,
`inflateGetHeader`, `inflateSetDictionary`, `inflateSync`, `inflateSyncPoint`,
`inflateCopy`, `inflateUndermine`, `inflateMark`.
- __deflate__ - methods `deflateCopy`, `deflateBound`, `deflateParams`,
`deflatePending`, `deflatePrime`, `deflateSetDictionary`, `deflateTune`.
- __inflate__ - `inflateGetDictionary`, `inflateCopy`, `inflateMark`,
`inflatePrime`, `inflateSetDictionary`, `inflateSync`, `inflateSyncPoint`,
`inflateUndermine`.

@@ -127,0 +157,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc