UNPKG

156 kBJavaScriptView Raw
1/**
2 * meaning-cloud - NodeJS Client for interact with Meaning Cloud API.
3 * @version v1.1.5
4 * @link https://github.com/Kikobeats/meaningcloud
5 * @license MIT
6 */require=function e(t,r,n){function i(s,a){if(!r[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var h=new Error("Cannot find module '"+s+"'");throw h.code="MODULE_NOT_FOUND",h}var f=r[s]={exports:{}};t[s][0].call(f.exports,function(e){var r=t[s][1][e];return i(r?r:e)},f,f.exports,e,t,r,n)}return r[s].exports}for(var o="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(e,t,r){"use strict";var n,i;n=e("./Meaning.DEFAULT"),i=e("existential-default"),t.exports=function(e){var t,r,o;if(!e.key)throw Error("You need to provide an API credentials");return t={key:e.key},o=i(e.uri,n.URI),r=i(e.secure,n.SECURE),t.url=n.SECURE_MODE[r],t.url+="://"+o,t}},{"./Meaning.DEFAULT":2,"existential-default":63}],2:[function(e,t,r){"use strict";t.exports={URI:"api.meaningcloud.com",SECURE:!0,SECURE_MODE:{"true":"https","false":"http"},ENDPOINTS:function(){return{user_profiling:"/userprofiling-2.0",text_classification:"/class-1.1",topics_extraction:"/topics-1.2",sentiment_analysis:"/sentiment-2.0",language_identification:"/lang-1.1",parsing:"/parser-1.2",spelling:"/stilus-1.2",reputation:"/reputation-1.0"}}}},{}],3:[function(e,t,r){"use strict";var n;n=e("./Meaning.default"),t.exports=function(e){var t,r,i,o;r=n.ENDPOINTS(),o=e.endpoints;for(t in o)i=o[t],r[t]=i;return r}},{"./Meaning.default":5}],4:[function(e,t,r){"use strict";var n,i,o,s,a,u;a=e("got"),u=e("./../package.json"),i=e("./Meaning.DEFAULT"),o=e("./Meaning.Endpoints"),n=e("./Meaning.Credentials"),s=function(e,t){return function(r,n){var i;return r.key=t,i={body:r,headers:{"user-agent":u.homepage}},n?a.post(e,i,n):a.post(e,i)}},t.exports=function(e){var t,r,i,a,u;null==e&&(e={}),t=n(e),i=o(e),a={};for(r in i)u=i[r],a[r]=s(t.url+u,t.key);return a}},{"./../package.json":109,"./Meaning.Credentials":1,"./Meaning.DEFAULT":2,"./Meaning.Endpoints":3,got:65}],5:[function(e,t,r){"use strict";t.exports={URI:"api.meaningcloud.com",SECURE:!0,SECURE_MODE:{"true":"https","false":"http"},ENDPOINTS:function(){return{user_profiling:"/userprofiling-2.0",text_classification:"/class-1.1",topics_extraction:"/topics-1.2",sentiment_analysis:"/sentiment-2.0",language_identification:"/lang-1.1",parsing:"/parser-1.2",spelling:"/stilus-1.2",reputation:"/reputation-1.0"}}}},{}],6:[function(e,t,r){},{}],7:[function(e,t,r){function n(e,t){return d.isUndefined(t)?""+t:d.isNumber(t)&&!isFinite(t)?t.toString():d.isFunction(t)||d.isRegExp(t)?t.toString():t}function i(e,t){return d.isString(e)?e.length<t?e:e.slice(0,t):e}function o(e){return i(JSON.stringify(e.actual,n),128)+" "+e.operator+" "+i(JSON.stringify(e.expected,n),128)}function s(e,t,r,n,i){throw new _.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:i})}function a(e,t){e||s(e,!0,t,"==",_.ok)}function u(e,t){if(e===t)return!0;if(d.isBuffer(e)&&d.isBuffer(t)){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return d.isDate(e)&&d.isDate(t)?e.getTime()===t.getTime():d.isRegExp(e)&&d.isRegExp(t)?e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase:d.isObject(e)||d.isObject(t)?f(e,t):e==t}function h(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function f(e,t){if(d.isNullOrUndefined(e)||d.isNullOrUndefined(t))return!1;if(e.prototype!==t.prototype)return!1;if(d.isPrimitive(e)||d.isPrimitive(t))return e===t;var r=h(e),n=h(t);if(r&&!n||!r&&n)return!1;if(r)return e=p.call(e),t=p.call(t),u(e,t);var i,o,s=m(e),a=m(t);if(s.length!=a.length)return!1;for(s.sort(),a.sort(),o=s.length-1;o>=0;o--)if(s[o]!=a[o])return!1;for(o=s.length-1;o>=0;o--)if(i=s[o],!u(e[i],t[i]))return!1;return!0}function l(e,t){return e&&t?"[object RegExp]"==Object.prototype.toString.call(t)?t.test(e):e instanceof t?!0:t.call({},e)===!0?!0:!1:!1}function c(e,t,r,n){var i;d.isString(r)&&(n=r,r=null);try{t()}catch(o){i=o}if(n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&s(i,r,"Missing expected exception"+n),!e&&l(i,r)&&s(i,r,"Got unwanted exception"+n),e&&i&&r&&!l(i,r)||!e&&i)throw i}var d=e("util/"),p=Array.prototype.slice,g=Object.prototype.hasOwnProperty,_=t.exports=a;_.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=o(this),this.generatedMessage=!0);var t=e.stackStartFunction||s;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=t.name,a=n.indexOf("\n"+i);if(a>=0){var u=n.indexOf("\n",a+1);n=n.substring(u+1)}this.stack=n}}},d.inherits(_.AssertionError,Error),_.fail=s,_.ok=a,_.equal=function(e,t,r){e!=t&&s(e,t,r,"==",_.equal)},_.notEqual=function(e,t,r){e==t&&s(e,t,r,"!=",_.notEqual)},_.deepEqual=function(e,t,r){u(e,t)||s(e,t,r,"deepEqual",_.deepEqual)},_.notDeepEqual=function(e,t,r){u(e,t)&&s(e,t,r,"notDeepEqual",_.notDeepEqual)},_.strictEqual=function(e,t,r){e!==t&&s(e,t,r,"===",_.strictEqual)},_.notStrictEqual=function(e,t,r){e===t&&s(e,t,r,"!==",_.notStrictEqual)},_["throws"]=function(e,t,r){c.apply(this,[!0].concat(p.call(arguments)))},_.doesNotThrow=function(e,t){c.apply(this,[!1].concat(p.call(arguments)))},_.ifError=function(e){if(e)throw e};var m=Object.keys||function(e){var t=[];for(var r in e)g.call(e,r)&&t.push(r);return t}},{"util/":61}],8:[function(e,t,r){arguments[4][6][0].apply(r,arguments)},{dup:6}],9:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)return void e.set(t.subarray(r,r+n),i);for(var o=0;n>o;o++)e[i+o]=t[r+o]},flattenChunks:function(e){var t,r,n,i,o,s;for(n=0,t=0,r=e.length;r>t;t++)n+=e[t].length;for(s=new Uint8Array(n),i=0,t=0,r=e.length;r>t;t++)o=e[t],s.set(o,i),i+=o.length;return s}},o={arraySet:function(e,t,r,n,i){for(var o=0;n>o;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],10:[function(e,t,r){"use strict";function n(e,t,r,n){for(var i=65535&e|0,o=e>>>16&65535|0,s=0;0!==r;){s=r>2e3?2e3:r,r-=s;do i=i+t[n++]|0,o=o+i|0;while(--s);i%=65521,o%=65521}return i|o<<16|0}t.exports=n},{}],11:[function(e,t,r){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}},{}],12:[function(e,t,r){"use strict";function n(){for(var e,t=[],r=0;256>r;r++){e=r;for(var n=0;8>n;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}function i(e,t,r,n){var i=o,s=n+r;e=-1^e;for(var a=n;s>a;a++)e=e>>>8^i[255&(e^t[a])];return-1^e}var o=n();t.exports=i},{}],13:[function(e,t,r){"use strict";function n(e,t){return e.msg=j[t],t}function i(e){return(e<<1)-(e>4?9:0)}function o(e){for(var t=e.length;--t>=0;)e[t]=0}function s(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(L.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function a(e,t){T._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,s(e.strm)}function u(e,t){e.pending_buf[e.pending++]=t}function h(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function f(e,t,r,n){var i=e.avail_in;return i>n&&(i=n),0===i?0:(e.avail_in-=i,L.arraySet(t,e.input,e.next_in,i,r),1===e.state.wrap?e.adler=I(e.adler,t,i,r):2===e.state.wrap&&(e.adler=O(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)}function l(e,t){var r,n,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match,u=e.strstart>e.w_size-he?e.strstart-(e.w_size-he):0,h=e.window,f=e.w_mask,l=e.prev,c=e.strstart+ue,d=h[o+s-1],p=h[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do if(r=t,h[r+s]===p&&h[r+s-1]===d&&h[r]===h[o]&&h[++r]===h[o+1]){o+=2,r++;do;while(h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&c>o);if(n=ue-(c-o),o=c-ue,n>s){if(e.match_start=t,s=n,n>=a)break;d=h[o+s-1],p=h[o+s]}}while((t=l[t&f])>u&&0!==--i);return s<=e.lookahead?s:e.lookahead}function c(e){var t,r,n,i,o,s=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=s+(s-he)){L.arraySet(e.window,e.window,s,s,0),e.match_start-=s,e.strstart-=s,e.block_start-=s,r=e.hash_size,t=r;do n=e.head[--t],e.head[t]=n>=s?n-s:0;while(--r);r=s,t=r;do n=e.prev[--t],e.prev[t]=n>=s?n-s:0;while(--r);i+=s}if(0===e.strm.avail_in)break;if(r=f(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=r,e.lookahead+e.insert>=ae)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+ae-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<ae)););}while(e.lookahead<he&&0!==e.strm.avail_in)}function d(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(c(e),0===e.lookahead&&t===U)return be;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,a(e,!1),0===e.strm.avail_out))return be;if(e.strstart-e.block_start>=e.w_size-he&&(a(e,!1),0===e.strm.avail_out))return be}return e.insert=0,t===z?(a(e,!0),0===e.strm.avail_out?ve:ye):e.strstart>e.block_start&&(a(e,!1),0===e.strm.avail_out)?be:be}function p(e,t){for(var r,n;;){if(e.lookahead<he){if(c(e),e.lookahead<he&&t===U)return be;if(0===e.lookahead)break}if(r=0,e.lookahead>=ae&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-he&&(e.match_length=l(e,r)),e.match_length>=ae)if(n=T._tr_tally(e,e.strstart-e.match_start,e.match_length-ae),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ae){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=T._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(a(e,!1),0===e.strm.avail_out))return be}return e.insert=e.strstart<ae-1?e.strstart:ae-1,t===z?(a(e,!0),0===e.strm.avail_out?ve:ye):e.last_lit&&(a(e,!1),0===e.strm.avail_out)?be:we}function g(e,t){for(var r,n,i;;){if(e.lookahead<he){if(c(e),e.lookahead<he&&t===U)return be;if(0===e.lookahead)break}if(r=0,e.lookahead>=ae&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ae-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-he&&(e.match_length=l(e,r),e.match_length<=5&&(e.strategy===H||e.match_length===ae&&e.strstart-e.match_start>4096)&&(e.match_length=ae-1)),e.prev_length>=ae&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-ae,n=T._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-ae),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(0!==--e.prev_length);if(e.match_available=0,e.match_length=ae-1,e.strstart++,n&&(a(e,!1),0===e.strm.avail_out))return be}else if(e.match_available){if(n=T._tr_tally(e,0,e.window[e.strstart-1]),n&&a(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return be}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=T._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<ae-1?e.strstart:ae-1,t===z?(a(e,!0),0===e.strm.avail_out?ve:ye):e.last_lit&&(a(e,!1),0===e.strm.avail_out)?be:we}function _(e,t){for(var r,n,i,o,s=e.window;;){if(e.lookahead<=ue){if(c(e),e.lookahead<=ue&&t===U)return be;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=ae&&e.strstart>0&&(i=e.strstart-1,n=s[i],n===s[++i]&&n===s[++i]&&n===s[++i])){o=e.strstart+ue;do;while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&o>i);e.match_length=ue-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ae?(r=T._tr_tally(e,1,e.match_length-ae),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=T._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(a(e,!1),0===e.strm.avail_out))return be}return e.insert=0,t===z?(a(e,!0),0===e.strm.avail_out?ve:ye):e.last_lit&&(a(e,!1),0===e.strm.avail_out)?be:we}function m(e,t){for(var r;;){if(0===e.lookahead&&(c(e),0===e.lookahead)){if(t===U)return be;break}if(e.match_length=0,r=T._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(a(e,!1),0===e.strm.avail_out))return be}return e.insert=0,t===z?(a(e,!0),0===e.strm.avail_out?ve:ye):e.last_lit&&(a(e,!1),0===e.strm.avail_out)?be:we}function b(e){e.window_size=2*e.w_size,o(e.head),e.max_lazy_match=A[e.level].max_lazy,e.good_match=A[e.level].good_length,e.nice_match=A[e.level].nice_length,e.max_chain_length=A[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ae-1,e.match_available=0,e.ins_h=0}function w(){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 L.Buf16(2*oe),this.dyn_dtree=new L.Buf16(2*(2*ne+1)),this.bl_tree=new L.Buf16(2*(2*ie+1)),o(this.dyn_ltree),o(this.dyn_dtree),o(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new L.Buf16(se+1),this.heap=new L.Buf16(2*re+1),o(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new L.Buf16(2*re+1),o(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(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=V,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?le:_e,e.adler=2===t.wrap?0:1,t.last_flush=U,T._tr_init(t),C):n(e,P)}function y(e){var t=v(e);return t===C&&b(e.state),t}function E(e,t){return e&&e.state?2!==e.state.wrap?P:(e.state.gzhead=t,C):P}function k(e,t,r,i,o,s){if(!e)return P;var a=1;if(t===q&&(t=6),0>i?(a=0,i=-i):i>15&&(a=2,i-=16),1>o||o>J||r!==X||8>i||i>15||0>t||t>9||0>s||s>G)return n(e,P);8===i&&(i=9);var u=new w;return e.state=u,u.strm=e,u.wrap=a,u.gzhead=null,u.w_bits=i,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+ae-1)/ae),u.window=new L.Buf8(2*u.w_size),u.head=new L.Buf16(u.hash_size),u.prev=new L.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new L.Buf8(u.pending_buf_size),u.d_buf=u.lit_bufsize>>1,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=s,u.method=r,y(e)}function x(e,t){return k(e,t,X,$,Q,K)}function S(e,t){var r,a,f,l;if(!e||!e.state||t>N||0>t)return e?n(e,P):P;if(a=e.state,!e.output||!e.input&&0!==e.avail_in||a.status===me&&t!==z)return n(e,0===e.avail_out?Z:P);if(a.strm=e,r=a.last_flush,a.last_flush=t,a.status===le)if(2===a.wrap)e.adler=0,u(a,31),u(a,139),u(a,8),a.gzhead?(u(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),u(a,255&a.gzhead.time),u(a,a.gzhead.time>>8&255),u(a,a.gzhead.time>>16&255),u(a,a.gzhead.time>>24&255),u(a,9===a.level?2:a.strategy>=W||a.level<2?4:0),u(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(u(a,255&a.gzhead.extra.length),u(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=O(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=ce):(u(a,0),u(a,0),u(a,0),u(a,0),u(a,0),u(a,9===a.level?2:a.strategy>=W||a.level<2?4:0),u(a,Ee),a.status=_e);else{var c=X+(a.w_bits-8<<4)<<8,d=-1;d=a.strategy>=W||a.level<2?0:a.level<6?1:6===a.level?2:3,c|=d<<6,0!==a.strstart&&(c|=fe),c+=31-c%31,a.status=_e,h(a,c),0!==a.strstart&&(h(a,e.adler>>>16),h(a,65535&e.adler)),e.adler=1}if(a.status===ce)if(a.gzhead.extra){for(f=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>f&&(e.adler=O(e.adler,a.pending_buf,a.pending-f,f)),s(e),f=a.pending,a.pending!==a.pending_buf_size));)u(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>f&&(e.adler=O(e.adler,a.pending_buf,a.pending-f,f)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=de)}else a.status=de;if(a.status===de)if(a.gzhead.name){f=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>f&&(e.adler=O(e.adler,a.pending_buf,a.pending-f,f)),s(e),f=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,u(a,l)}while(0!==l);a.gzhead.hcrc&&a.pending>f&&(e.adler=O(e.adler,a.pending_buf,a.pending-f,f)),0===l&&(a.gzindex=0,a.status=pe)}else a.status=pe;if(a.status===pe)if(a.gzhead.comment){f=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>f&&(e.adler=O(e.adler,a.pending_buf,a.pending-f,f)),s(e),f=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,u(a,l)}while(0!==l);a.gzhead.hcrc&&a.pending>f&&(e.adler=O(e.adler,a.pending_buf,a.pending-f,f)),0===l&&(a.status=ge)}else a.status=ge;if(a.status===ge&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&s(e),a.pending+2<=a.pending_buf_size&&(u(a,255&e.adler),u(a,e.adler>>8&255),e.adler=0,a.status=_e)):a.status=_e),0!==a.pending){if(s(e),0===e.avail_out)return a.last_flush=-1,C}else if(0===e.avail_in&&i(t)<=i(r)&&t!==z)return n(e,Z);if(a.status===me&&0!==e.avail_in)return n(e,Z);if(0!==e.avail_in||0!==a.lookahead||t!==U&&a.status!==me){var p=a.strategy===W?m(a,t):a.strategy===Y?_(a,t):A[a.level].func(a,t);if((p===ve||p===ye)&&(a.status=me),p===be||p===ve)return 0===e.avail_out&&(a.last_flush=-1),C;if(p===we&&(t===B?T._tr_align(a):t!==N&&(T._tr_stored_block(a,0,0,!1),t===M&&(o(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),s(e),0===e.avail_out))return a.last_flush=-1,C}return t!==z?C:a.wrap<=0?D:(2===a.wrap?(u(a,255&e.adler),u(a,e.adler>>8&255),u(a,e.adler>>16&255),u(a,e.adler>>24&255),u(a,255&e.total_in),u(a,e.total_in>>8&255),u(a,e.total_in>>16&255),u(a,e.total_in>>24&255)):(h(a,e.adler>>>16),h(a,65535&e.adler)),s(e),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?C:D)}function R(e){var t;return e&&e.state?(t=e.state.status,t!==le&&t!==ce&&t!==de&&t!==pe&&t!==ge&&t!==_e&&t!==me?n(e,P):(e.state=null,t===_e?n(e,F):C)):P}var A,L=e("../utils/common"),T=e("./trees"),I=e("./adler32"),O=e("./crc32"),j=e("./messages"),U=0,B=1,M=3,z=4,N=5,C=0,D=1,P=-2,F=-3,Z=-5,q=-1,H=1,W=2,Y=3,G=4,K=0,V=2,X=8,J=9,$=15,Q=8,ee=29,te=256,re=te+1+ee,ne=30,ie=19,oe=2*re+1,se=15,ae=3,ue=258,he=ue+ae+1,fe=32,le=42,ce=69,de=73,pe=91,ge=103,_e=113,me=666,be=1,we=2,ve=3,ye=4,Ee=3,ke=function(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i};A=[new ke(0,0,0,0,d),new ke(4,4,8,4,p),new ke(4,5,16,8,p),new ke(4,6,32,32,p),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)],r.deflateInit=x,r.deflateInit2=k,r.deflateReset=y,r.deflateResetKeep=v,r.deflateSetHeader=E,r.deflate=S,r.deflateEnd=R,r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":9,"./adler32":10,"./crc32":12,"./messages":17,"./trees":18}],14:[function(e,t,r){"use strict";var n=30,i=12;t.exports=function(e,t){var r,o,s,a,u,h,f,l,c,d,p,g,_,m,b,w,v,y,E,k,x,S,R,A,L;r=e.state,o=e.next_in,A=e.input,s=o+(e.avail_in-5),a=e.next_out,L=e.output,u=a-(t-e.avail_out),h=a+(e.avail_out-257),f=r.dmax,l=r.wsize,c=r.whave,d=r.wnext,p=r.window,g=r.hold,_=r.bits,m=r.lencode,b=r.distcode,w=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;e:do{15>_&&(g+=A[o++]<<_,_+=8,g+=A[o++]<<_,_+=8),y=m[g&w];t:for(;;){if(E=y>>>24,g>>>=E,_-=E,E=y>>>16&255,0===E)L[a++]=65535&y;else{if(!(16&E)){if(0===(64&E)){y=m[(65535&y)+(g&(1<<E)-1)];continue t}if(32&E){r.mode=i;break e}e.msg="invalid literal/length code",r.mode=n;break e}k=65535&y,E&=15,E&&(E>_&&(g+=A[o++]<<_,_+=8),k+=g&(1<<E)-1,g>>>=E,_-=E),15>_&&(g+=A[o++]<<_,_+=8,g+=A[o++]<<_,_+=8),y=b[g&v];r:for(;;){if(E=y>>>24,g>>>=E,_-=E,E=y>>>16&255,!(16&E)){if(0===(64&E)){y=b[(65535&y)+(g&(1<<E)-1)];continue r}e.msg="invalid distance code",r.mode=n;break e}if(x=65535&y,E&=15,E>_&&(g+=A[o++]<<_,_+=8,E>_&&(g+=A[o++]<<_,_+=8)),x+=g&(1<<E)-1,x>f){e.msg="invalid distance too far back",r.mode=n;break e}if(g>>>=E,_-=E,E=a-u,x>E){if(E=x-E,E>c&&r.sane){e.msg="invalid distance too far back",r.mode=n;break e}if(S=0,R=p,0===d){if(S+=l-E,k>E){k-=E;do L[a++]=p[S++];while(--E);S=a-x,R=L}}else if(E>d){if(S+=l+d-E,E-=d,k>E){k-=E;do L[a++]=p[S++];while(--E);if(S=0,k>d){E=d,k-=E;do L[a++]=p[S++];while(--E);S=a-x,R=L}}}else if(S+=d-E,k>E){k-=E;do L[a++]=p[S++];while(--E);S=a-x,R=L}for(;k>2;)L[a++]=R[S++],L[a++]=R[S++],L[a++]=R[S++],k-=3;k&&(L[a++]=R[S++],k>1&&(L[a++]=R[S++]))}else{S=a-x;do L[a++]=L[S++],L[a++]=L[S++],L[a++]=L[S++],k-=3;while(k>2);k&&(L[a++]=L[S++],k>1&&(L[a++]=L[S++]))}break}}break}}while(s>o&&h>a);k=_>>3,o-=k,_-=k<<3,g&=(1<<_)-1,e.next_in=o,e.next_out=a,e.avail_in=s>o?5+(s-o):5-(o-s),e.avail_out=h>a?257+(h-a):257-(a-h),r.hold=g,r.bits=_}},{}],15:[function(e,t,r){"use strict";function n(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function i(){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.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function o(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=z,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new m.Buf32(pe),t.distcode=t.distdyn=new m.Buf32(ge),t.sane=1,t.back=-1,L):O}function s(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,o(e)):O}function a(e,t){var r,n;return e&&e.state?(n=e.state,0>t?(r=0,t=-t):(r=(t>>4)+1,48>t&&(t&=15)),t&&(8>t||t>15)?O:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,s(e))):O}function u(e,t){var r,n;return e?(n=new i,e.state=n,n.window=null,r=a(e,t),r!==L&&(e.state=null),r):O}function h(e){return u(e,me)}function f(e){if(be){var t;for(g=new m.Buf32(512),_=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(y(k,e.lens,0,288,g,0,e.work,{bits:9}),t=0;32>t;)e.lens[t++]=5;y(x,e.lens,0,32,_,0,e.work,{bits:5}),be=!1}e.lencode=g,e.lenbits=9,e.distcode=_,e.distbits=5}function l(e,t,r,n){var i,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new m.Buf8(o.wsize)),n>=o.wsize?(m.arraySet(o.window,t,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>n&&(i=n),m.arraySet(o.window,t,r-n,i,o.wnext),n-=i,n?(m.arraySet(o.window,t,r-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}function c(e,t){var r,i,o,s,a,u,h,c,d,p,g,_,pe,ge,_e,me,be,we,ve,ye,Ee,ke,xe,Se,Re=0,Ae=new m.Buf8(4),Le=[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 O;r=e.state,r.mode===G&&(r.mode=K),a=e.next_out,o=e.output,h=e.avail_out,s=e.next_in,i=e.input,u=e.avail_in,c=r.hold,d=r.bits,p=u,g=h,ke=L;e:for(;;)switch(r.mode){case z:if(0===r.wrap){r.mode=K;break}for(;16>d;){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}if(2&r.wrap&&35615===c){r.check=0,Ae[0]=255&c,Ae[1]=c>>>8&255,r.check=w(r.check,Ae,2,0),c=0,d=0,r.mode=N;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",r.mode=le;break}if((15&c)!==M){e.msg="unknown compression method",r.mode=le;break}if(c>>>=4,d-=4,Ee=(15&c)+8,0===r.wbits)r.wbits=Ee;else if(Ee>r.wbits){e.msg="invalid window size",r.mode=le;break}r.dmax=1<<Ee,e.adler=r.check=1,r.mode=512&c?W:G,c=0,d=0;break;case N:for(;16>d;){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}if(r.flags=c,(255&r.flags)!==M){e.msg="unknown compression method",r.mode=le;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=le;break}r.head&&(r.head.text=c>>8&1),512&r.flags&&(Ae[0]=255&c,Ae[1]=c>>>8&255,r.check=w(r.check,Ae,2,0)),c=0,d=0,r.mode=C;case C:for(;32>d;){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}r.head&&(r.head.time=c),512&r.flags&&(Ae[0]=255&c,Ae[1]=c>>>8&255,Ae[2]=c>>>16&255,Ae[3]=c>>>24&255,r.check=w(r.check,Ae,4,0)),c=0,d=0,r.mode=D;case D:for(;16>d;){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}r.head&&(r.head.xflags=255&c,r.head.os=c>>8),512&r.flags&&(Ae[0]=255&c,Ae[1]=c>>>8&255,r.check=w(r.check,Ae,2,0)),c=0,d=0,r.mode=P;case P:if(1024&r.flags){for(;16>d;){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}r.length=c,r.head&&(r.head.extra_len=c),512&r.flags&&(Ae[0]=255&c,Ae[1]=c>>>8&255,r.check=w(r.check,Ae,2,0)),c=0,d=0}else r.head&&(r.head.extra=null);r.mode=F;case F:if(1024&r.flags&&(_=r.length,_>u&&(_=u),_&&(r.head&&(Ee=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),m.arraySet(r.head.extra,i,s,_,Ee)),512&r.flags&&(r.check=w(r.check,i,_,s)),u-=_,s+=_,r.length-=_),r.length))break e;r.length=0,r.mode=Z;case Z:if(2048&r.flags){if(0===u)break e;_=0;do Ee=i[s+_++],r.head&&Ee&&r.length<65536&&(r.head.name+=String.fromCharCode(Ee));while(Ee&&u>_);if(512&r.flags&&(r.check=w(r.check,i,_,s)),u-=_,s+=_,Ee)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=q;case q:if(4096&r.flags){if(0===u)break e;_=0;do Ee=i[s+_++],r.head&&Ee&&r.length<65536&&(r.head.comment+=String.fromCharCode(Ee));while(Ee&&u>_);if(512&r.flags&&(r.check=w(r.check,i,_,s)),u-=_,s+=_,Ee)break e}else r.head&&(r.head.comment=null);r.mode=H;case H:if(512&r.flags){for(;16>d;){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}if(c!==(65535&r.check)){e.msg="header crc mismatch",r.mode=le;break}c=0,d=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=G;break;case W:for(;32>d;){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}e.adler=r.check=n(c),c=0,d=0,r.mode=Y;case Y:if(0===r.havedict)return e.next_out=a,e.avail_out=h,e.next_in=s,e.avail_in=u,r.hold=c,r.bits=d,I;e.adler=r.check=1,r.mode=G;case G:if(t===R||t===A)break e;case K:if(r.last){c>>>=7&d,d-=7&d,r.mode=ue;break}for(;3>d;){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}switch(r.last=1&c,c>>>=1,d-=1,3&c){case 0:r.mode=V;break;case 1:if(f(r),r.mode=te,t===A){c>>>=2,d-=2;break e}break;case 2:r.mode=$;break;case 3:e.msg="invalid block type",r.mode=le}c>>>=2,d-=2;break;case V:for(c>>>=7&d,d-=7&d;32>d;){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}if((65535&c)!==(c>>>16^65535)){e.msg="invalid stored block lengths",r.mode=le;break}if(r.length=65535&c,c=0,d=0,r.mode=X,t===A)break e;case X:r.mode=J;case J:if(_=r.length){if(_>u&&(_=u),_>h&&(_=h),0===_)break e;m.arraySet(o,i,s,_,a),u-=_,s+=_,h-=_,a+=_,r.length-=_;break}r.mode=G;break;case $:for(;14>d;){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}if(r.nlen=(31&c)+257,c>>>=5,d-=5,r.ndist=(31&c)+1,c>>>=5,d-=5,r.ncode=(15&c)+4,c>>>=4,d-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=le;break}r.have=0,r.mode=Q;case Q:for(;r.have<r.ncode;){for(;3>d;){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}r.lens[Le[r.have++]]=7&c,c>>>=3,d-=3}for(;r.have<19;)r.lens[Le[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,xe={bits:r.lenbits},ke=y(E,r.lens,0,19,r.lencode,0,r.work,xe),r.lenbits=xe.bits,ke){e.msg="invalid code lengths set",r.mode=le;break}r.have=0,r.mode=ee;case ee:for(;r.have<r.nlen+r.ndist;){for(;Re=r.lencode[c&(1<<r.lenbits)-1],_e=Re>>>24,me=Re>>>16&255,be=65535&Re,!(d>=_e);){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}if(16>be)c>>>=_e,d-=_e,r.lens[r.have++]=be;else{if(16===be){for(Se=_e+2;Se>d;){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}if(c>>>=_e,d-=_e,0===r.have){e.msg="invalid bit length repeat",r.mode=le;break}Ee=r.lens[r.have-1],_=3+(3&c),c>>>=2,d-=2}else if(17===be){for(Se=_e+3;Se>d;){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}c>>>=_e,d-=_e,Ee=0,_=3+(7&c),c>>>=3,d-=3}else{for(Se=_e+7;Se>d;){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}c>>>=_e,d-=_e,Ee=0,_=11+(127&c),c>>>=7,d-=7}if(r.have+_>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=le;break}for(;_--;)r.lens[r.have++]=Ee}}if(r.mode===le)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=le;break}if(r.lenbits=9,xe={bits:r.lenbits},ke=y(k,r.lens,0,r.nlen,r.lencode,0,r.work,xe),r.lenbits=xe.bits,ke){e.msg="invalid literal/lengths set",r.mode=le;break}if(r.distbits=6,r.distcode=r.distdyn,xe={bits:r.distbits},ke=y(x,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,xe),r.distbits=xe.bits,ke){e.msg="invalid distances set",r.mode=le;break}if(r.mode=te,t===A)break e;case te:r.mode=re;case re:if(u>=6&&h>=258){e.next_out=a,e.avail_out=h,e.next_in=s,e.avail_in=u,r.hold=c,r.bits=d,v(e,g),a=e.next_out,o=e.output,h=e.avail_out,s=e.next_in,i=e.input,u=e.avail_in,c=r.hold,d=r.bits,r.mode===G&&(r.back=-1);break}for(r.back=0;Re=r.lencode[c&(1<<r.lenbits)-1],_e=Re>>>24,me=Re>>>16&255,be=65535&Re,!(d>=_e);){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}if(me&&0===(240&me)){for(we=_e,ve=me,ye=be;Re=r.lencode[ye+((c&(1<<we+ve)-1)>>we)],_e=Re>>>24,me=Re>>>16&255,be=65535&Re,!(d>=we+_e);){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}c>>>=we,d-=we,r.back+=we}if(c>>>=_e,d-=_e,r.back+=_e,r.length=be,0===me){r.mode=ae;break}if(32&me){r.back=-1,r.mode=G;break}if(64&me){e.msg="invalid literal/length code",r.mode=le;break}r.extra=15&me,r.mode=ne;case ne:if(r.extra){for(Se=r.extra;Se>d;){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,d-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=ie;case ie:for(;Re=r.distcode[c&(1<<r.distbits)-1],_e=Re>>>24,me=Re>>>16&255,be=65535&Re,!(d>=_e);){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}if(0===(240&me)){for(we=_e,ve=me,ye=be;Re=r.distcode[ye+((c&(1<<we+ve)-1)>>we)],_e=Re>>>24,me=Re>>>16&255,be=65535&Re,!(d>=we+_e);){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}c>>>=we,d-=we,r.back+=we}if(c>>>=_e,d-=_e,r.back+=_e,64&me){e.msg="invalid distance code",
7r.mode=le;break}r.offset=be,r.extra=15&me,r.mode=oe;case oe:if(r.extra){for(Se=r.extra;Se>d;){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,d-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=le;break}r.mode=se;case se:if(0===h)break e;if(_=g-h,r.offset>_){if(_=r.offset-_,_>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=le;break}_>r.wnext?(_-=r.wnext,pe=r.wsize-_):pe=r.wnext-_,_>r.length&&(_=r.length),ge=r.window}else ge=o,pe=a-r.offset,_=r.length;_>h&&(_=h),h-=_,r.length-=_;do o[a++]=ge[pe++];while(--_);0===r.length&&(r.mode=re);break;case ae:if(0===h)break e;o[a++]=r.length,h--,r.mode=re;break;case ue:if(r.wrap){for(;32>d;){if(0===u)break e;u--,c|=i[s++]<<d,d+=8}if(g-=h,e.total_out+=g,r.total+=g,g&&(e.adler=r.check=r.flags?w(r.check,o,g,a-g):b(r.check,o,g,a-g)),g=h,(r.flags?c:n(c))!==r.check){e.msg="incorrect data check",r.mode=le;break}c=0,d=0}r.mode=he;case he:if(r.wrap&&r.flags){for(;32>d;){if(0===u)break e;u--,c+=i[s++]<<d,d+=8}if(c!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=le;break}c=0,d=0}r.mode=fe;case fe:ke=T;break e;case le:ke=j;break e;case ce:return U;case de:default:return O}return e.next_out=a,e.avail_out=h,e.next_in=s,e.avail_in=u,r.hold=c,r.bits=d,(r.wsize||g!==e.avail_out&&r.mode<le&&(r.mode<ue||t!==S))&&l(e,e.output,e.next_out,g-e.avail_out)?(r.mode=ce,U):(p-=e.avail_in,g-=e.avail_out,e.total_in+=p,e.total_out+=g,r.total+=g,r.wrap&&g&&(e.adler=r.check=r.flags?w(r.check,o,g,e.next_out-g):b(r.check,o,g,e.next_out-g)),e.data_type=r.bits+(r.last?64:0)+(r.mode===G?128:0)+(r.mode===te||r.mode===X?256:0),(0===p&&0===g||t===S)&&ke===L&&(ke=B),ke)}function d(e){if(!e||!e.state)return O;var t=e.state;return t.window&&(t.window=null),e.state=null,L}function p(e,t){var r;return e&&e.state?(r=e.state,0===(2&r.wrap)?O:(r.head=t,t.done=!1,L)):O}var g,_,m=e("../utils/common"),b=e("./adler32"),w=e("./crc32"),v=e("./inffast"),y=e("./inftrees"),E=0,k=1,x=2,S=4,R=5,A=6,L=0,T=1,I=2,O=-2,j=-3,U=-4,B=-5,M=8,z=1,N=2,C=3,D=4,P=5,F=6,Z=7,q=8,H=9,W=10,Y=11,G=12,K=13,V=14,X=15,J=16,$=17,Q=18,ee=19,te=20,re=21,ne=22,ie=23,oe=24,se=25,ae=26,ue=27,he=28,fe=29,le=30,ce=31,de=32,pe=852,ge=592,_e=15,me=_e,be=!0;r.inflateReset=s,r.inflateReset2=a,r.inflateResetKeep=o,r.inflateInit=h,r.inflateInit2=u,r.inflate=c,r.inflateEnd=d,r.inflateGetHeader=p,r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":9,"./adler32":10,"./crc32":12,"./inffast":14,"./inftrees":16}],16:[function(e,t,r){"use strict";var n=e("../utils/common"),i=15,o=852,s=592,a=0,u=1,h=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],d=[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,r,p,g,_,m,b){var w,v,y,E,k,x,S,R,A,L=b.bits,T=0,I=0,O=0,j=0,U=0,B=0,M=0,z=0,N=0,C=0,D=null,P=0,F=new n.Buf16(i+1),Z=new n.Buf16(i+1),q=null,H=0;for(T=0;i>=T;T++)F[T]=0;for(I=0;p>I;I++)F[t[r+I]]++;for(U=L,j=i;j>=1&&0===F[j];j--);if(U>j&&(U=j),0===j)return g[_++]=20971520,g[_++]=20971520,b.bits=1,0;for(O=1;j>O&&0===F[O];O++);for(O>U&&(U=O),z=1,T=1;i>=T;T++)if(z<<=1,z-=F[T],0>z)return-1;if(z>0&&(e===a||1!==j))return-1;for(Z[1]=0,T=1;i>T;T++)Z[T+1]=Z[T]+F[T];for(I=0;p>I;I++)0!==t[r+I]&&(m[Z[t[r+I]]++]=I);if(e===a?(D=q=m,x=19):e===u?(D=f,P-=257,q=l,H-=257,x=256):(D=c,q=d,x=-1),C=0,I=0,T=O,k=_,B=U,M=0,y=-1,N=1<<U,E=N-1,e===u&&N>o||e===h&&N>s)return 1;for(var W=0;;){W++,S=T-M,m[I]<x?(R=0,A=m[I]):m[I]>x?(R=q[H+m[I]],A=D[P+m[I]]):(R=96,A=0),w=1<<T-M,v=1<<B,O=v;do v-=w,g[k+(C>>M)+v]=S<<24|R<<16|A|0;while(0!==v);for(w=1<<T-1;C&w;)w>>=1;if(0!==w?(C&=w-1,C+=w):C=0,I++,0===--F[T]){if(T===j)break;T=t[r+m[I]]}if(T>U&&(C&E)!==y){for(0===M&&(M=U),k+=O,B=T-M,z=1<<B;j>B+M&&(z-=F[B+M],!(0>=z));)B++,z<<=1;if(N+=1<<B,e===u&&N>o||e===h&&N>s)return 1;y=C&E,g[y]=U<<24|B<<16|k-_|0}}return 0!==C&&(g[k+C]=T-M<<24|64<<16|0),b.bits=U,0}},{"../utils/common":9}],17:[function(e,t,r){"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"}},{}],18:[function(e,t,r){"use strict";function n(e){for(var t=e.length;--t>=0;)e[t]=0}function i(e){return 256>e?se[e]:se[256+(e>>>7)]}function o(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function s(e,t,r){e.bi_valid>G-r?(e.bi_buf|=t<<e.bi_valid&65535,o(e,e.bi_buf),e.bi_buf=t>>G-e.bi_valid,e.bi_valid+=r-G):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function a(e,t,r){s(e,r[2*t],r[2*t+1])}function u(e,t){var r=0;do r|=1&e,e>>>=1,r<<=1;while(--t>0);return r>>>1}function h(e){16===e.bi_valid?(o(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function f(e,t){var r,n,i,o,s,a,u=t.dyn_tree,h=t.max_code,f=t.stat_desc.static_tree,l=t.stat_desc.has_stree,c=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,g=0;for(o=0;Y>=o;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;W>r;r++)n=e.heap[r],o=u[2*u[2*n+1]+1]+1,o>p&&(o=p,g++),u[2*n+1]=o,n>h||(e.bl_count[o]++,s=0,n>=d&&(s=c[n-d]),a=u[2*n],e.opt_len+=a*(o+s),l&&(e.static_len+=a*(f[2*n+1]+s)));if(0!==g){do{for(o=p-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,g-=2}while(g>0);for(o=p;0!==o;o--)for(n=e.bl_count[o];0!==n;)i=e.heap[--r],i>h||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}function l(e,t,r){var n,i,o=new Array(Y+1),s=0;for(n=1;Y>=n;n++)o[n]=s=s+r[n-1]<<1;for(i=0;t>=i;i++){var a=e[2*i+1];0!==a&&(e[2*i]=u(o[a]++,a))}}function c(){var e,t,r,n,i,o=new Array(Y+1);for(r=0,n=0;P-1>n;n++)for(ue[n]=r,e=0;e<1<<Q[n];e++)ae[r++]=n;for(ae[r-1]=n,i=0,n=0;16>n;n++)for(he[n]=i,e=0;e<1<<ee[n];e++)se[i++]=n;for(i>>=7;q>n;n++)for(he[n]=i<<7,e=0;e<1<<ee[n]-7;e++)se[256+i++]=n;for(t=0;Y>=t;t++)o[t]=0;for(e=0;143>=e;)ie[2*e+1]=8,e++,o[8]++;for(;255>=e;)ie[2*e+1]=9,e++,o[9]++;for(;279>=e;)ie[2*e+1]=7,e++,o[7]++;for(;287>=e;)ie[2*e+1]=8,e++,o[8]++;for(l(ie,Z+1,o),e=0;q>e;e++)oe[2*e+1]=5,oe[2*e]=u(e,5);fe=new de(ie,Q,F+1,Z,Y),le=new de(oe,ee,0,q,Y),ce=new de(new Array(0),te,0,H,K)}function d(e){var t;for(t=0;Z>t;t++)e.dyn_ltree[2*t]=0;for(t=0;q>t;t++)e.dyn_dtree[2*t]=0;for(t=0;H>t;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*V]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function p(e){e.bi_valid>8?o(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function g(e,t,r,n){p(e),n&&(o(e,r),o(e,~r)),I.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function _(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function m(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&_(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!_(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function b(e,t,r){var n,o,u,h,f=0;if(0!==e.last_lit)do n=e.pending_buf[e.d_buf+2*f]<<8|e.pending_buf[e.d_buf+2*f+1],o=e.pending_buf[e.l_buf+f],f++,0===n?a(e,o,t):(u=ae[o],a(e,u+F+1,t),h=Q[u],0!==h&&(o-=ue[u],s(e,o,h)),n--,u=i(n),a(e,u,r),h=ee[u],0!==h&&(n-=he[u],s(e,n,h)));while(f<e.last_lit);a(e,V,t)}function w(e,t){var r,n,i,o=t.dyn_tree,s=t.stat_desc.static_tree,a=t.stat_desc.has_stree,u=t.stat_desc.elems,h=-1;for(e.heap_len=0,e.heap_max=W,r=0;u>r;r++)0!==o[2*r]?(e.heap[++e.heap_len]=h=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)i=e.heap[++e.heap_len]=2>h?++h:0,o[2*i]=1,e.depth[i]=0,e.opt_len--,a&&(e.static_len-=s[2*i+1]);for(t.max_code=h,r=e.heap_len>>1;r>=1;r--)m(e,o,r);i=u;do r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],m(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,m(e,o,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],f(e,t),l(o,h,e.bl_count)}function v(e,t,r){var n,i,o=-1,s=t[1],a=0,u=7,h=4;for(0===s&&(u=138,h=3),t[2*(r+1)+1]=65535,n=0;r>=n;n++)i=s,s=t[2*(n+1)+1],++a<u&&i===s||(h>a?e.bl_tree[2*i]+=a:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*X]++):10>=a?e.bl_tree[2*J]++:e.bl_tree[2*$]++,a=0,o=i,0===s?(u=138,h=3):i===s?(u=6,h=3):(u=7,h=4))}function y(e,t,r){var n,i,o=-1,u=t[1],h=0,f=7,l=4;for(0===u&&(f=138,l=3),n=0;r>=n;n++)if(i=u,u=t[2*(n+1)+1],!(++h<f&&i===u)){if(l>h){do a(e,i,e.bl_tree);while(0!==--h)}else 0!==i?(i!==o&&(a(e,i,e.bl_tree),h--),a(e,X,e.bl_tree),s(e,h-3,2)):10>=h?(a(e,J,e.bl_tree),s(e,h-3,3)):(a(e,$,e.bl_tree),s(e,h-11,7));h=0,o=i,0===u?(f=138,l=3):i===u?(f=6,l=3):(f=7,l=4)}}function E(e){var t;for(v(e,e.dyn_ltree,e.l_desc.max_code),v(e,e.dyn_dtree,e.d_desc.max_code),w(e,e.bl_desc),t=H-1;t>=3&&0===e.bl_tree[2*re[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}function k(e,t,r,n){var i;for(s(e,t-257,5),s(e,r-1,5),s(e,n-4,4),i=0;n>i;i++)s(e,e.bl_tree[2*re[i]+1],3);y(e,e.dyn_ltree,t-1),y(e,e.dyn_dtree,r-1)}function x(e){var t,r=4093624447;for(t=0;31>=t;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return j;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return U;for(t=32;F>t;t++)if(0!==e.dyn_ltree[2*t])return U;return j}function S(e){ge||(c(),ge=!0),e.l_desc=new pe(e.dyn_ltree,fe),e.d_desc=new pe(e.dyn_dtree,le),e.bl_desc=new pe(e.bl_tree,ce),e.bi_buf=0,e.bi_valid=0,d(e)}function R(e,t,r,n){s(e,(M<<1)+(n?1:0),3),g(e,t,r,!0)}function A(e){s(e,z<<1,3),a(e,V,ie),h(e)}function L(e,t,r,n){var i,o,a=0;e.level>0?(e.strm.data_type===B&&(e.strm.data_type=x(e)),w(e,e.l_desc),w(e,e.d_desc),a=E(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,i>=o&&(i=o)):i=o=r+5,i>=r+4&&-1!==t?R(e,t,r,n):e.strategy===O||o===i?(s(e,(z<<1)+(n?1:0),3),b(e,ie,oe)):(s(e,(N<<1)+(n?1:0),3),k(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),b(e,e.dyn_ltree,e.dyn_dtree)),d(e),n&&p(e)}function T(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(ae[r]+F+1)]++,e.dyn_dtree[2*i(t)]++),e.last_lit===e.lit_bufsize-1}var I=e("../utils/common"),O=4,j=0,U=1,B=2,M=0,z=1,N=2,C=3,D=258,P=29,F=256,Z=F+1+P,q=30,H=19,W=2*Z+1,Y=15,G=16,K=7,V=256,X=16,J=17,$=18,Q=[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],ee=[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],te=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],re=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ne=512,ie=new Array(2*(Z+2));n(ie);var oe=new Array(2*q);n(oe);var se=new Array(ne);n(se);var ae=new Array(D-C+1);n(ae);var ue=new Array(P);n(ue);var he=new Array(q);n(he);var fe,le,ce,de=function(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length},pe=function(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t},ge=!1;r._tr_init=S,r._tr_stored_block=R,r._tr_flush_block=L,r._tr_tally=T,r._tr_align=A},{"../utils/common":9}],19:[function(e,t,r){"use strict";function n(){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=n},{}],20:[function(e,t,r){(function(t,n){function i(e){if(e<r.DEFLATE||e>r.UNZIP)throw new TypeError("Bad argument");this.mode=e,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function o(e,t){for(var r=0;r<e.length;r++)this[t+r]=e[r]}var s=e("pako/lib/zlib/messages"),a=e("pako/lib/zlib/zstream"),u=e("pako/lib/zlib/deflate.js"),h=e("pako/lib/zlib/inflate.js"),f=e("pako/lib/zlib/constants");for(var l in f)r[l]=f[l];r.NONE=0,r.DEFLATE=1,r.INFLATE=2,r.GZIP=3,r.GUNZIP=4,r.DEFLATERAW=5,r.INFLATERAW=6,r.UNZIP=7,i.prototype.init=function(e,t,n,i,o){switch(this.windowBits=e,this.level=t,this.memLevel=n,this.strategy=i,(this.mode===r.GZIP||this.mode===r.GUNZIP)&&(this.windowBits+=16),this.mode===r.UNZIP&&(this.windowBits+=32),(this.mode===r.DEFLATERAW||this.mode===r.INFLATERAW)&&(this.windowBits=-this.windowBits),this.strm=new a,this.mode){case r.DEFLATE:case r.GZIP:case r.DEFLATERAW:var s=u.deflateInit2(this.strm,this.level,r.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case r.INFLATE:case r.GUNZIP:case r.INFLATERAW:case r.UNZIP:var s=h.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}return s!==r.Z_OK?void this._error(s):(this.write_in_progress=!1,void(this.init_done=!0))},i.prototype.params=function(){throw new Error("deflateParams Not supported")},i.prototype._writeCheck=function(){if(!this.init_done)throw new Error("write before init");if(this.mode===r.NONE)throw new Error("already finalized");if(this.write_in_progress)throw new Error("write already in progress");if(this.pending_close)throw new Error("close is pending")},i.prototype.write=function(e,r,n,i,o,s,a){this._writeCheck(),this.write_in_progress=!0;var u=this;return t.nextTick(function(){u.write_in_progress=!1;var t=u._write(e,r,n,i,o,s,a);u.callback(t[0],t[1]),u.pending_close&&u.close()}),this},i.prototype.writeSync=function(e,t,r,n,i,o,s){return this._writeCheck(),this._write(e,t,r,n,i,o,s)},i.prototype._write=function(e,t,i,s,a,f,l){if(this.write_in_progress=!0,e!==r.Z_NO_FLUSH&&e!==r.Z_PARTIAL_FLUSH&&e!==r.Z_SYNC_FLUSH&&e!==r.Z_FULL_FLUSH&&e!==r.Z_FINISH&&e!==r.Z_BLOCK)throw new Error("Invalid flush value");null==t&&(t=new n(0),s=0,i=0),a.set=a._set?a._set:o;var c=this.strm;switch(c.avail_in=s,c.input=t,c.next_in=i,c.avail_out=l,c.output=a,c.next_out=f,this.mode){case r.DEFLATE:case r.GZIP:case r.DEFLATERAW:var d=u.deflate(c,e);break;case r.UNZIP:case r.INFLATE:case r.GUNZIP:case r.INFLATERAW:var d=h.inflate(c,e);break;default:throw new Error("Unknown mode "+this.mode)}return d!==r.Z_STREAM_END&&d!==r.Z_OK&&this._error(d),this.write_in_progress=!1,[c.avail_in,c.avail_out]},i.prototype.close=function(){return this.write_in_progress?void(this.pending_close=!0):(this.pending_close=!1,this.mode===r.DEFLATE||this.mode===r.GZIP||this.mode===r.DEFLATERAW?u.deflateEnd(this.strm):h.inflateEnd(this.strm),void(this.mode=r.NONE))},i.prototype.reset=function(){switch(this.mode){case r.DEFLATE:case r.DEFLATERAW:var e=u.deflateReset(this.strm);break;case r.INFLATE:case r.INFLATERAW:var e=h.inflateReset(this.strm)}e!==r.Z_OK&&this._error(e)},i.prototype._error=function(e){this.onerror(s[e]+": "+this.strm.msg,e),this.write_in_progress=!1,this.pending_close&&this.close()},r.Zlib=i}).call(this,e("_process"),e("buffer").Buffer)},{_process:30,buffer:22,"pako/lib/zlib/constants":11,"pako/lib/zlib/deflate.js":13,"pako/lib/zlib/inflate.js":15,"pako/lib/zlib/messages":17,"pako/lib/zlib/zstream":19}],21:[function(e,t,r){(function(t,n){function i(e,t,r){function i(){for(var t;null!==(t=e.read());)a.push(t),u+=t.length;e.once("readable",i)}function o(t){e.removeListener("end",s),e.removeListener("readable",i),r(t)}function s(){var t=n.concat(a,u);a=[],r(null,t),e.close()}var a=[],u=0;e.on("error",o),e.on("end",s),e.end(t),i()}function o(e,t){if("string"==typeof t&&(t=new n(t)),!n.isBuffer(t))throw new TypeError("Not a string or buffer");var r=g.Z_FINISH;return e._processChunk(t,r)}function s(e){return this instanceof s?void d.call(this,e,g.DEFLATE):new s(e)}function a(e){return this instanceof a?void d.call(this,e,g.INFLATE):new a(e)}function u(e){return this instanceof u?void d.call(this,e,g.GZIP):new u(e)}function h(e){return this instanceof h?void d.call(this,e,g.GUNZIP):new h(e)}function f(e){return this instanceof f?void d.call(this,e,g.DEFLATERAW):new f(e)}function l(e){return this instanceof l?void d.call(this,e,g.INFLATERAW):new l(e)}function c(e){return this instanceof c?void d.call(this,e,g.UNZIP):new c(e)}function d(e,t){if(this._opts=e=e||{},this._chunkSize=e.chunkSize||r.Z_DEFAULT_CHUNK,p.call(this,e),e.flush&&e.flush!==g.Z_NO_FLUSH&&e.flush!==g.Z_PARTIAL_FLUSH&&e.flush!==g.Z_SYNC_FLUSH&&e.flush!==g.Z_FULL_FLUSH&&e.flush!==g.Z_FINISH&&e.flush!==g.Z_BLOCK)throw new Error("Invalid flush flag: "+e.flush);if(this._flushFlag=e.flush||g.Z_NO_FLUSH,e.chunkSize&&(e.chunkSize<r.Z_MIN_CHUNK||e.chunkSize>r.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<r.Z_MIN_WINDOWBITS||e.windowBits>r.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<r.Z_MIN_LEVEL||e.level>r.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<r.Z_MIN_MEMLEVEL||e.memLevel>r.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=r.Z_FILTERED&&e.strategy!=r.Z_HUFFMAN_ONLY&&e.strategy!=r.Z_RLE&&e.strategy!=r.Z_FIXED&&e.strategy!=r.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!n.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new g.Zlib(t);var i=this;this._hadError=!1,this._binding.onerror=function(e,t){i._binding=null,i._hadError=!0;var n=new Error(e);n.errno=t,n.code=r.codes[t],i.emit("error",n)};var o=r.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(o=e.level);var s=r.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(s=e.strategy),this._binding.init(e.windowBits||r.Z_DEFAULT_WINDOWBITS,o,e.memLevel||r.Z_DEFAULT_MEMLEVEL,s,e.dictionary),this._buffer=new n(this._chunkSize),this._offset=0,this._closed=!1,this._level=o,this._strategy=s,this.once("end",this.close)}var p=e("_stream_transform"),g=e("./binding"),_=e("util"),m=e("assert").ok;g.Z_MIN_WINDOWBITS=8,g.Z_MAX_WINDOWBITS=15,g.Z_DEFAULT_WINDOWBITS=15,g.Z_MIN_CHUNK=64,g.Z_MAX_CHUNK=1/0,g.Z_DEFAULT_CHUNK=16384,g.Z_MIN_MEMLEVEL=1,g.Z_MAX_MEMLEVEL=9,g.Z_DEFAULT_MEMLEVEL=8,g.Z_MIN_LEVEL=-1,g.Z_MAX_LEVEL=9,g.Z_DEFAULT_LEVEL=g.Z_DEFAULT_COMPRESSION,Object.keys(g).forEach(function(e){e.match(/^Z/)&&(r[e]=g[e])}),r.codes={Z_OK:g.Z_OK,Z_STREAM_END:g.Z_STREAM_END,Z_NEED_DICT:g.Z_NEED_DICT,Z_ERRNO:g.Z_ERRNO,Z_STREAM_ERROR:g.Z_STREAM_ERROR,Z_DATA_ERROR:g.Z_DATA_ERROR,Z_MEM_ERROR:g.Z_MEM_ERROR,Z_BUF_ERROR:g.Z_BUF_ERROR,Z_VERSION_ERROR:g.Z_VERSION_ERROR},Object.keys(r.codes).forEach(function(e){r.codes[r.codes[e]]=e}),r.Deflate=s,r.Inflate=a,r.Gzip=u,r.Gunzip=h,r.DeflateRaw=f,r.InflateRaw=l,r.Unzip=c,r.createDeflate=function(e){return new s(e)},r.createInflate=function(e){return new a(e)},r.createDeflateRaw=function(e){return new f(e)},r.createInflateRaw=function(e){return new l(e)},r.createGzip=function(e){return new u(e)},r.createGunzip=function(e){return new h(e)},r.createUnzip=function(e){return new c(e)},r.deflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),i(new s(t),e,r)},r.deflateSync=function(e,t){return o(new s(t),e)},r.gzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),i(new u(t),e,r)},r.gzipSync=function(e,t){return o(new u(t),e)},r.deflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),i(new f(t),e,r)},r.deflateRawSync=function(e,t){return o(new f(t),e)},r.unzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),i(new c(t),e,r)},r.unzipSync=function(e,t){return o(new c(t),e)},r.inflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),i(new a(t),e,r)},r.inflateSync=function(e,t){return o(new a(t),e)},r.gunzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),i(new h(t),e,r)},r.gunzipSync=function(e,t){return o(new h(t),e)},r.inflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),i(new l(t),e,r)},r.inflateRawSync=function(e,t){return o(new l(t),e)},_.inherits(d,p),d.prototype.params=function(e,n,i){if(e<r.Z_MIN_LEVEL||e>r.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(n!=r.Z_FILTERED&&n!=r.Z_HUFFMAN_ONLY&&n!=r.Z_RLE&&n!=r.Z_FIXED&&n!=r.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+n);if(this._level!==e||this._strategy!==n){var o=this;this.flush(g.Z_SYNC_FLUSH,function(){o._binding.params(e,n),o._hadError||(o._level=e,o._strategy=n,i&&i())})}else t.nextTick(i)},d.prototype.reset=function(){return this._binding.reset()},d.prototype._flush=function(e){this._transform(new n(0),"",e)},d.prototype.flush=function(e,r){var i=this._writableState;if(("function"==typeof e||void 0===e&&!r)&&(r=e,e=g.Z_FULL_FLUSH),i.ended)r&&t.nextTick(r);else if(i.ending)r&&this.once("end",r);else if(i.needDrain){var o=this;this.once("drain",function(){o.flush(r)})}else this._flushFlag=e,this.write(new n(0),"",r)},d.prototype.close=function(e){if(e&&t.nextTick(e),!this._closed){this._closed=!0,this._binding.close();var r=this;t.nextTick(function(){r.emit("close")})}},d.prototype._transform=function(e,t,r){var i,o=this._writableState,s=o.ending||o.ended,a=s&&(!e||o.length===e.length);if(null===!e&&!n.isBuffer(e))return r(new Error("invalid input"));a?i=g.Z_FINISH:(i=this._flushFlag,e.length>=o.length&&(this._flushFlag=this._opts.flush||g.Z_NO_FLUSH));this._processChunk(e,i,r)},d.prototype._processChunk=function(e,t,r){function i(f,d){if(!u._hadError){var p=s-d;if(m(p>=0,"have should not go down"),p>0){var g=u._buffer.slice(u._offset,u._offset+p);u._offset+=p,h?u.push(g):(l.push(g),c+=g.length)}if((0===d||u._offset>=u._chunkSize)&&(s=u._chunkSize,u._offset=0,u._buffer=new n(u._chunkSize)),0===d){if(a+=o-f,o=f,!h)return!0;var _=u._binding.write(t,e,a,o,u._buffer,u._offset,u._chunkSize);return _.callback=i,void(_.buffer=e)}return h?void r():!1}}var o=e&&e.length,s=this._chunkSize-this._offset,a=0,u=this,h="function"==typeof r;if(!h){var f,l=[],c=0;this.on("error",function(e){f=e});do var d=this._binding.writeSync(t,e,a,o,this._buffer,this._offset,s);while(!this._hadError&&i(d[0],d[1]));if(this._hadError)throw f;var p=n.concat(l,c);return this.close(),p}var g=this._binding.write(t,e,a,o,this._buffer,this._offset,s);g.buffer=e,g.callback=i},_.inherits(s,d),_.inherits(a,d),_.inherits(u,d),_.inherits(h,d),_.inherits(f,d),_.inherits(l,d),_.inherits(c,d)}).call(this,e("_process"),e("buffer").Buffer)},{"./binding":20,_process:30,_stream_transform:46,assert:7,buffer:22,util:61}],22:[function(e,t,r){function n(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e){return this instanceof i?(this.length=0,this.parent=void 0,"number"==typeof e?o(this,e):"string"==typeof e?s(this,e,arguments.length>1?arguments[1]:"utf8"):a(this,e)):arguments.length>1?new i(e,arguments[1]):new i(e)}function o(e,t){if(e=d(e,0>t?0:0|p(t)),!i.TYPED_ARRAY_SUPPORT)for(var r=0;t>r;r++)e[r]=0;return e}function s(e,t,r){("string"!=typeof r||""===r)&&(r="utf8");var n=0|_(t,r);return e=d(e,n),e.write(t,r),e}function a(e,t){if(i.isBuffer(t))return u(e,t);if(K(t))return h(e,t);if(null==t)throw new TypeError("must start with number, buffer, array or string");return"undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer?f(e,t):t.length?l(e,t):c(e,t)}function u(e,t){var r=0|p(t.length);return e=d(e,r),t.copy(e,0,0,r),e}function h(e,t){var r=0|p(t.length);e=d(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function f(e,t){var r=0|p(t.length);e=d(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function l(e,t){var r=0|p(t.length);e=d(e,r);for(var n=0;r>n;n+=1)e[n]=255&t[n];return e}function c(e,t){var r,n=0;"Buffer"===t.type&&K(t.data)&&(r=t.data,n=0|p(r.length)),e=d(e,n);for(var i=0;n>i;i+=1)e[i]=255&r[i];return e}function d(e,t){i.TYPED_ARRAY_SUPPORT?e=i._augment(new Uint8Array(t)):(e.length=t,e._isBuffer=!0);var r=0!==t&&t<=i.poolSize>>>1;return r&&(e.parent=V),e}function p(e){if(e>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function g(e,t){if(!(this instanceof g))return new g(e,t);var r=new i(e,t);return delete r.parent,r}function _(e,t){"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return r;case"utf8":case"utf-8":return P(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return q(e).length;default:if(n)return P(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var n=!1;if(t=0|t,r=void 0===r||r===1/0?this.length:0|r,e||(e="utf8"),0>t&&(t=0),r>this.length&&(r=this.length),t>=r)return"";for(;;)switch(e){case"hex":return L(this,t,r);case"utf8":case"utf-8":return S(this,t,r);case"ascii":return R(this,t,r);case"binary":return A(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function b(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=t.length;if(o%2!==0)throw new Error("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;n>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw new Error("Invalid hex string");e[r+s]=a}return s}function w(e,t,r,n){return H(P(t,e.length-r),e,r,n)}function v(e,t,r,n){return H(F(t),e,r,n)}function y(e,t,r,n){return v(e,t,r,n)}function E(e,t,r,n){return H(q(t),e,r,n)}function k(e,t,r,n){return H(Z(t,e.length-r),e,r,n)}function x(e,t,r){return Y.fromByteArray(0===t&&r===e.length?e:e.slice(t,r))}function S(e,t,r){var n="",i="";r=Math.min(e.length,r);for(var o=t;r>o;o++)e[o]<=127?(n+=W(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return n+W(i)}function R(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;r>i;i++)n+=String.fromCharCode(127&e[i]);return n}function A(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;r>i;i++)n+=String.fromCharCode(e[i]);return n}function L(e,t,r){var n=e.length;(!t||0>t)&&(t=0),(!r||0>r||r>n)&&(r=n);for(var i="",o=t;r>o;o++)i+=D(e[o]);return i}function T(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function I(e,t,r){if(e%1!==0||0>e)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,r,n,o,s){if(!i.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(t>o||s>t)throw new RangeError("value is out of bounds");if(r+n>e.length)throw new RangeError("index out of range")}function j(e,t,r,n){0>t&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);o>i;i++)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function U(e,t,r,n){0>t&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);o>i;i++)e[r+i]=t>>>8*(n?i:3-i)&255}function B(e,t,r,n,i,o){if(t>i||o>t)throw new RangeError("value is out of bounds");if(r+n>e.length)throw new RangeError("index out of range");if(0>r)throw new RangeError("index out of range")}function M(e,t,r,n,i){return i||B(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),G.write(e,t,r,n,23,4),r+4}function z(e,t,r,n,i){return i||B(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),G.write(e,t,r,n,52,8),r+8}function N(e){if(e=C(e).replace(J,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function C(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function D(e){return 16>e?"0"+e.toString(16):e.toString(16)}function P(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],s=0;n>s;s++){if(r=e.charCodeAt(s),r>55295&&57344>r){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(56320>r){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&((t-=3)>-1&&o.push(239,191,189),i=null);if(128>r){if((t-=1)<0)break;o.push(r)}else if(2048>r){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(65536>r){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(2097152>r))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t}function Z(e,t){for(var r,n,i,o=[],s=0;s<e.length&&!((t-=2)<0);s++)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}function q(e){return Y.toByteArray(N(e))}function H(e,t,r,n){for(var i=0;n>i&&!(i+r>=t.length||i>=e.length);i++)t[i+r]=e[i];return i}function W(e){try{return decodeURIComponent(e)}catch(t){return String.fromCharCode(65533)}}var Y=e("base64-js"),G=e("ieee754"),K=e("is-array");r.Buffer=i,r.SlowBuffer=g,r.INSPECT_MAX_BYTES=50,i.poolSize=8192;var V={};i.TYPED_ARRAY_SUPPORT=function(){function e(){}try{var t=new ArrayBuffer(0),r=new Uint8Array(t);return r.foo=function(){return 42},r.constructor=e,42===r.foo()&&r.constructor===e&&"function"==typeof r.subarray&&0===new Uint8Array(1).subarray(1,1).byteLength}catch(n){return!1}}(),i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.compare=function(e,t){if(!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,s=Math.min(r,n);s>o&&e[o]===t[o];)++o;return o!==s&&(r=e[o],n=t[o]),n>r?-1:r>n?1:0},i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(e,t){if(!K(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new i(0);if(1===e.length)return e[0];var r;if(void 0===t)for(t=0,r=0;r<e.length;r++)t+=e[r].length;var n=new i(t),o=0;for(r=0;r<e.length;r++){var s=e[r];s.copy(n,o),o+=s.length}return n},i.byteLength=_,i.prototype.length=void 0,i.prototype.parent=void 0,i.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):m.apply(this,arguments)},i.prototype.equals=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===i.compare(this,e)},i.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},i.prototype.compare=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:i.compare(this,e)},i.prototype.indexOf=function(e,t){function r(e,t,r){for(var n=-1,i=0;r+i<e.length;i++)if(e[r+i]===t[-1===n?0:i-n]){if(-1===n&&(n=i),i-n+1===t.length)return r+n}else n=-1;return-1}if(t>2147483647?t=2147483647:-2147483648>t&&(t=-2147483648),t>>=0,0===this.length)return-1;if(t>=this.length)return-1;if(0>t&&(t=Math.max(this.length+t,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,t);if(i.isBuffer(e))return r(this,e,t);if("number"==typeof e)return i.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,t):r(this,[e],t);throw new TypeError("val must be string, number or Buffer")},i.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},i.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},i.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t=0|t,isFinite(r)?(r=0|r,void 0===n&&(n="utf8")):(n=r,r=void 0);else{var i=n;n=t,t=0|r,r=i}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(0>r||0>t)||t>this.length)throw new RangeError("attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return v(this,e,t,r);case"binary":return y(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,
80>e?(e+=r,0>e&&(e=0)):e>r&&(e=r),0>t?(t+=r,0>t&&(t=0)):t>r&&(t=r),e>t&&(t=e);var n;if(i.TYPED_ARRAY_SUPPORT)n=i._augment(this.subarray(e,t));else{var o=t-e;n=new i(o,void 0);for(var s=0;o>s;s++)n[s]=this[s+e]}return n.length&&(n.parent=this.parent||this),n},i.prototype.readUIntLE=function(e,t,r){e=0|e,t=0|t,r||I(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},i.prototype.readUIntBE=function(e,t,r){e=0|e,t=0|t,r||I(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},i.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},i.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},i.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readIntLE=function(e,t,r){e=0|e,t=0|t,r||I(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},i.prototype.readIntBE=function(e,t,r){e=0|e,t=0|t,r||I(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},i.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),G.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),G.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),G.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),G.read(this,e,!1,52,8)},i.prototype.writeUIntLE=function(e,t,r,n){e=+e,t=0|t,r=0|r,n||O(this,e,t,r,Math.pow(2,8*r),0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},i.prototype.writeUIntBE=function(e,t,r,n){e=+e,t=0|t,r=0|r,n||O(this,e,t,r,Math.pow(2,8*r),0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},i.prototype.writeUInt8=function(e,t,r){return e=+e,t=0|t,r||O(this,e,t,1,255,0),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=e,t+1},i.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=0|t,r||O(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},i.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=0|t,r||O(this,e,t,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):j(this,e,t,!1),t+2},i.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=0|t,r||O(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e):U(this,e,t,!0),t+4},i.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=0|t,r||O(this,e,t,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):U(this,e,t,!1),t+4},i.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=0|t,!n){var i=Math.pow(2,8*r-1);O(this,e,t,r,i-1,-i)}var o=0,s=1,a=0>e?1:0;for(this[t]=255&e;++o<r&&(s*=256);)this[t+o]=(e/s>>0)-a&255;return t+r},i.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=0|t,!n){var i=Math.pow(2,8*r-1);O(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0>e?1:0;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=(e/s>>0)-a&255;return t+r},i.prototype.writeInt8=function(e,t,r){return e=+e,t=0|t,r||O(this,e,t,1,127,-128),i.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[t]=e,t+1},i.prototype.writeInt16LE=function(e,t,r){return e=+e,t=0|t,r||O(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},i.prototype.writeInt16BE=function(e,t,r){return e=+e,t=0|t,r||O(this,e,t,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e):j(this,e,t,!1),t+2},i.prototype.writeInt32LE=function(e,t,r){return e=+e,t=0|t,r||O(this,e,t,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[t]=e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):U(this,e,t,!0),t+4},i.prototype.writeInt32BE=function(e,t,r){return e=+e,t=0|t,r||O(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),i.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e):U(this,e,t,!1),t+4},i.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},i.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},i.prototype.writeDoubleLE=function(e,t,r){return z(this,e,t,!0,r)},i.prototype.writeDoubleBE=function(e,t,r){return z(this,e,t,!1,r)},i.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&r>n&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(0>t)throw new RangeError("targetStart out of bounds");if(0>r||r>=this.length)throw new RangeError("sourceStart out of bounds");if(0>n)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;if(1e3>o||!i.TYPED_ARRAY_SUPPORT)for(var s=0;o>s;s++)e[s+t]=this[s+r];else e._set(this.subarray(r,r+o),t);return o},i.prototype.fill=function(e,t,r){if(e||(e=0),t||(t=0),r||(r=this.length),t>r)throw new RangeError("end < start");if(r!==t&&0!==this.length){if(0>t||t>=this.length)throw new RangeError("start out of bounds");if(0>r||r>this.length)throw new RangeError("end out of bounds");var n;if("number"==typeof e)for(n=t;r>n;n++)this[n]=e;else{var i=P(e.toString()),o=i.length;for(n=t;r>n;n++)this[n]=i[n%o]}return this}},i.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(i.TYPED_ARRAY_SUPPORT)return new i(this).buffer;for(var e=new Uint8Array(this.length),t=0,r=e.length;r>t;t+=1)e[t]=this[t];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var X=i.prototype;i._augment=function(e){return e.constructor=i,e._isBuffer=!0,e._set=e.set,e.get=X.get,e.set=X.set,e.write=X.write,e.toString=X.toString,e.toLocaleString=X.toString,e.toJSON=X.toJSON,e.equals=X.equals,e.compare=X.compare,e.indexOf=X.indexOf,e.copy=X.copy,e.slice=X.slice,e.readUIntLE=X.readUIntLE,e.readUIntBE=X.readUIntBE,e.readUInt8=X.readUInt8,e.readUInt16LE=X.readUInt16LE,e.readUInt16BE=X.readUInt16BE,e.readUInt32LE=X.readUInt32LE,e.readUInt32BE=X.readUInt32BE,e.readIntLE=X.readIntLE,e.readIntBE=X.readIntBE,e.readInt8=X.readInt8,e.readInt16LE=X.readInt16LE,e.readInt16BE=X.readInt16BE,e.readInt32LE=X.readInt32LE,e.readInt32BE=X.readInt32BE,e.readFloatLE=X.readFloatLE,e.readFloatBE=X.readFloatBE,e.readDoubleLE=X.readDoubleLE,e.readDoubleBE=X.readDoubleBE,e.writeUInt8=X.writeUInt8,e.writeUIntLE=X.writeUIntLE,e.writeUIntBE=X.writeUIntBE,e.writeUInt16LE=X.writeUInt16LE,e.writeUInt16BE=X.writeUInt16BE,e.writeUInt32LE=X.writeUInt32LE,e.writeUInt32BE=X.writeUInt32BE,e.writeIntLE=X.writeIntLE,e.writeIntBE=X.writeIntBE,e.writeInt8=X.writeInt8,e.writeInt16LE=X.writeInt16LE,e.writeInt16BE=X.writeInt16BE,e.writeInt32LE=X.writeInt32LE,e.writeInt32BE=X.writeInt32BE,e.writeFloatLE=X.writeFloatLE,e.writeFloatBE=X.writeFloatBE,e.writeDoubleLE=X.writeDoubleLE,e.writeDoubleBE=X.writeDoubleBE,e.fill=X.fill,e.inspect=X.inspect,e.toArrayBuffer=X.toArrayBuffer,e};var J=/[^+\/0-9A-z\-]/g},{"base64-js":23,ieee754:24,"is-array":25}],23:[function(e,t,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";function t(e){var t=e.charCodeAt(0);return t===s||t===l?62:t===a||t===c?63:u>t?-1:u+10>t?t-u+26+26:f+26>t?t-f:h+26>t?t-h+26:void 0}function r(e){function r(e){h[l++]=e}var n,i,s,a,u,h;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=e.length;u="="===e.charAt(f-2)?2:"="===e.charAt(f-1)?1:0,h=new o(3*e.length/4-u),s=u>0?e.length-4:e.length;var l=0;for(n=0,i=0;s>n;n+=4,i+=3)a=t(e.charAt(n))<<18|t(e.charAt(n+1))<<12|t(e.charAt(n+2))<<6|t(e.charAt(n+3)),r((16711680&a)>>16),r((65280&a)>>8),r(255&a);return 2===u?(a=t(e.charAt(n))<<2|t(e.charAt(n+1))>>4,r(255&a)):1===u&&(a=t(e.charAt(n))<<10|t(e.charAt(n+1))<<4|t(e.charAt(n+2))>>2,r(a>>8&255),r(255&a)),h}function i(e){function t(e){return n.charAt(e)}function r(e){return t(e>>18&63)+t(e>>12&63)+t(e>>6&63)+t(63&e)}var i,o,s,a=e.length%3,u="";for(i=0,s=e.length-a;s>i;i+=3)o=(e[i]<<16)+(e[i+1]<<8)+e[i+2],u+=r(o);switch(a){case 1:o=e[e.length-1],u+=t(o>>2),u+=t(o<<4&63),u+="==";break;case 2:o=(e[e.length-2]<<8)+e[e.length-1],u+=t(o>>10),u+=t(o>>4&63),u+=t(o<<2&63),u+="="}return u}var o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="+".charCodeAt(0),a="/".charCodeAt(0),u="0".charCodeAt(0),h="a".charCodeAt(0),f="A".charCodeAt(0),l="-".charCodeAt(0),c="_".charCodeAt(0);e.toByteArray=r,e.fromByteArray=i}("undefined"==typeof r?this.base64js={}:r)},{}],24:[function(e,t,r){r.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,h=u>>1,f=-7,l=r?i-1:0,c=r?-1:1,d=e[t+l];for(l+=c,o=d&(1<<-f)-1,d>>=-f,f+=a;f>0;o=256*o+e[t+l],l+=c,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=n;f>0;s=256*s+e[t+l],l+=c,f-=8);if(0===o)o=1-h;else{if(o===u)return s?0/0:(d?-1:1)*(1/0);s+=Math.pow(2,n),o-=h}return(d?-1:1)*s*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var s,a,u,h=8*o-i-1,f=(1<<h)-1,l=f>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=f):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),t+=s+l>=1?c/u:c*Math.pow(2,1-l),t*u>=2&&(s++,u/=2),s+l>=f?(a=0,s=f):s+l>=1?(a=(t*u-1)*Math.pow(2,i),s+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;e[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,h+=i;h>0;e[r+d]=255&s,d+=p,s/=256,h-=8);e[r+d-p]|=128*g}},{}],25:[function(e,t,r){var n=Array.isArray,i=Object.prototype.toString;t.exports=n||function(e){return!!e&&"[object Array]"==i.call(e)}},{}],26:[function(e,t,r){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function o(e){return"number"==typeof e}function s(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!o(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,r,n,o,u,h;if(this._events||(this._events={}),"error"===e&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(r=this._events[e],a(r))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),u=1;n>u;u++)o[u-1]=arguments[u];r.apply(this,o)}else if(s(r)){for(n=arguments.length,o=new Array(n-1),u=1;n>u;u++)o[u-1]=arguments[u];for(h=r.slice(),n=h.length,u=0;n>u;u++)h[u].apply(this,o)}return!0},n.prototype.addListener=function(e,t){var r;if(!i(t))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?s(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,s(this._events[e])&&!this._events[e].warned){var r;r=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,r&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())}return this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var n=!1;return r.listener=t,this.on(e,r),this},n.prototype.removeListener=function(e,t){var r,n,o,a;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],o=r.length,n=-1,r===t||i(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(s(r)){for(a=o;a-->0;)if(r[a]===t||r[a].listener&&r[a].listener===t){n=a;break}if(0>n)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],i(r))this.removeListener(e,r);else for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.listenerCount=function(e,t){var r;return r=e._events&&e._events[t]?i(e._events[t])?1:e._events[t].length:0}},{}],27:[function(e,t,r){var n=e("http"),i=t.exports;for(var o in n)n.hasOwnProperty(o)&&(i[o]=n[o]);i.request=function(e,t){return e||(e={}),e.scheme="https",n.request.call(this,e,t)}},{http:49}],28:[function(e,t,r){t.exports="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],29:[function(e,t,r){t.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},{}],30:[function(e,t,r){function n(){f=!1,a.length?h=a.concat(h):l=-1,h.length&&i()}function i(){if(!f){var e=setTimeout(n);f=!0;for(var t=h.length;t;){for(a=h,h=[];++l<t;)a[l].run();l=-1,t=h.length}a=null,f=!1,clearTimeout(e)}}function o(e,t){this.fun=e,this.array=t}function s(){}var a,u=t.exports={},h=[],f=!1,l=-1;u.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new o(e,t)),1!==h.length||f||setTimeout(i,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=s,u.addListener=s,u.once=s,u.off=s,u.removeListener=s,u.removeAllListeners=s,u.emit=s,u.binding=function(e){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(e){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},{}],31:[function(e,t,r){(function(e){!function(n){function i(e){throw RangeError(U[e])}function o(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function s(e,t){var r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(j,".");var i=e.split("."),s=o(i,t).join(".");return n+s}function a(e){for(var t,r,n=[],i=0,o=e.length;o>i;)t=e.charCodeAt(i++),t>=55296&&56319>=t&&o>i?(r=e.charCodeAt(i++),56320==(64512&r)?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--)):n.push(t);return n}function u(e){return o(e,function(e){var t="";return e>65535&&(e-=65536,t+=z(e>>>10&1023|55296),e=56320|1023&e),t+=z(e)}).join("")}function h(e){return 10>e-48?e-22:26>e-65?e-65:26>e-97?e-97:E}function f(e,t){return e+22+75*(26>e)-((0!=t)<<5)}function l(e,t,r){var n=0;for(e=r?M(e/R):e>>1,e+=M(e/t);e>B*x>>1;n+=E)e=M(e/B);return M(n+(B+1)*e/(e+S))}function c(e){var t,r,n,o,s,a,f,c,d,p,g=[],_=e.length,m=0,b=L,w=A;for(r=e.lastIndexOf(T),0>r&&(r=0),n=0;r>n;++n)e.charCodeAt(n)>=128&&i("not-basic"),g.push(e.charCodeAt(n));for(o=r>0?r+1:0;_>o;){for(s=m,a=1,f=E;o>=_&&i("invalid-input"),c=h(e.charCodeAt(o++)),(c>=E||c>M((y-m)/a))&&i("overflow"),m+=c*a,d=w>=f?k:f>=w+x?x:f-w,!(d>c);f+=E)p=E-d,a>M(y/p)&&i("overflow"),a*=p;t=g.length+1,w=l(m-s,t,0==s),M(m/t)>y-b&&i("overflow"),b+=M(m/t),m%=t,g.splice(m++,0,b)}return u(g)}function d(e){var t,r,n,o,s,u,h,c,d,p,g,_,m,b,w,v=[];for(e=a(e),_=e.length,t=L,r=0,s=A,u=0;_>u;++u)g=e[u],128>g&&v.push(z(g));for(n=o=v.length,o&&v.push(T);_>n;){for(h=y,u=0;_>u;++u)g=e[u],g>=t&&h>g&&(h=g);for(m=n+1,h-t>M((y-r)/m)&&i("overflow"),r+=(h-t)*m,t=h,u=0;_>u;++u)if(g=e[u],t>g&&++r>y&&i("overflow"),g==t){for(c=r,d=E;p=s>=d?k:d>=s+x?x:d-s,!(p>c);d+=E)w=c-p,b=E-p,v.push(z(f(p+w%b,0))),c=M(w/b);v.push(z(f(c,0))),s=l(r,m,n==o),r=0,++n}++r,++t}return v.join("")}function p(e){return s(e,function(e){return I.test(e)?c(e.slice(4).toLowerCase()):e})}function g(e){return s(e,function(e){return O.test(e)?"xn--"+d(e):e})}var _="object"==typeof r&&r&&!r.nodeType&&r,m="object"==typeof t&&t&&!t.nodeType&&t,b="object"==typeof e&&e;(b.global===b||b.window===b||b.self===b)&&(n=b);var w,v,y=2147483647,E=36,k=1,x=26,S=38,R=700,A=72,L=128,T="-",I=/^xn--/,O=/[^\x20-\x7E]/,j=/[\x2E\u3002\uFF0E\uFF61]/g,U={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},B=E-k,M=Math.floor,z=String.fromCharCode;if(w={version:"1.3.2",ucs2:{decode:a,encode:u},decode:c,encode:d,toASCII:g,toUnicode:p},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return w});else if(_&&m)if(t.exports==_)m.exports=w;else for(v in w)w.hasOwnProperty(v)&&(_[v]=w[v]);else n.punycode=w}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],32:[function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,o){t=t||"&",r=r||"=";var s={};if("string"!=typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var h=e.length;u>0&&h>u&&(h=u);for(var f=0;h>f;++f){var l,c,d,p,g=e[f].replace(a,"%20"),_=g.indexOf(r);_>=0?(l=g.substr(0,_),c=g.substr(_+1)):(l=g,c=""),d=decodeURIComponent(l),p=decodeURIComponent(c),n(s,d)?i(s[d])?s[d].push(p):s[d]=[s[d],p]:s[d]=p}return s};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],33:[function(e,t,r){"use strict";function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var i=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,a){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?n(s(e),function(s){var a=encodeURIComponent(i(s))+r;return o(e[s])?n(e[s],function(e){return a+encodeURIComponent(i(e))}).join(t):a+encodeURIComponent(i(e[s]))}).join(t):a?encodeURIComponent(i(a))+r+encodeURIComponent(i(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},{}],34:[function(e,t,r){"use strict";r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":32,"./encode":33}],35:[function(e,t,r){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":36}],36:[function(e,t,r){"use strict";function n(e){return this instanceof n?(h.call(this,e),f.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",i)):new n(e)}function i(){this.allowHalfOpen||this._writableState.ended||a(o,this)}function o(e){e.end()}var s=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=n;var a=e("process-nextick-args"),u=e("core-util-is");u.inherits=e("inherits");var h=e("./_stream_readable"),f=e("./_stream_writable");u.inherits(n,h);for(var l=s(f.prototype),c=0;c<l.length;c++){var d=l[c];n.prototype[d]||(n.prototype[d]=f.prototype[d])}},{"./_stream_readable":38,"./_stream_writable":40,"core-util-is":41,inherits:28,"process-nextick-args":42}],37:[function(e,t,r){"use strict";function n(e){return this instanceof n?void i.call(this,e):new n(e)}t.exports=n;var i=e("./_stream_transform"),o=e("core-util-is");o.inherits=e("inherits"),o.inherits(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":39,"core-util-is":41,inherits:28}],38:[function(e,t,r){(function(r){"use strict";function n(t,r){var n=e("./_stream_duplex");t=t||{},this.objectMode=!!t.objectMode,r instanceof n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,o=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:o,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(j||(j=e("string_decoder/").StringDecoder),this.decoder=new j(t.encoding),this.encoding=t.encoding)}function i(t){e("./_stream_duplex");return this instanceof i?(this._readableState=new n(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),void T.call(this)):new i(t)}function o(e,t,r,n,i){var o=h(t,r);if(o)e.emit("error",o);else if(null===r)t.reading=!1,f(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!i){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){var a=new Error("stream.unshift() after end event");e.emit("error",a)}else!t.decoder||i||n||(r=t.decoder.write(r)),i||(t.reading=!1),t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&l(e)),d(e,t);else i||(t.reading=!1);return s(t)}function s(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function a(e){if(e>=U)e=U;else{e--;for(var t=1;32>t;t<<=1)e|=e>>t;e++}return e}function u(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:0>=e?0:(e>t.highWaterMark&&(t.highWaterMark=a(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function h(e,t){var r=null;return A.isBuffer(t)||"string"==typeof t||null===t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function f(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,l(e)}}function l(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(O("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?S(c,e):c(e))}function c(e){O("emit readable"),e.emit("readable"),w(e)}function d(e,t){t.readingMore||(t.readingMore=!0,S(p,e,t))}function p(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(O("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function g(e){return function(){var t=e._readableState;O("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&L.listenerCount(e,"data")&&(t.flowing=!0,w(e))}}function _(e){O("readable nexttick read 0"),e.read(0)}function m(e,t){t.resumeScheduled||(t.resumeScheduled=!0,S(b,e,t))}function b(e,t){t.reading||(O("resume read 0"),e.read(0)),t.resumeScheduled=!1,e.emit("resume"),w(e),t.flowing&&!t.reading&&e.read(0)}function w(e){var t=e._readableState;if(O("flow",t.flowing),t.flowing)do var r=e.read();while(null!==r&&t.flowing)}function v(e,t){var r,n=t.buffer,i=t.length,o=!!t.decoder,s=!!t.objectMode;if(0===n.length)return null;if(0===i)r=null;else if(s)r=n.shift();else if(!e||e>=i)r=o?n.join(""):A.concat(n,i),n.length=0;else if(e<n[0].length){var a=n[0];r=a.slice(0,e),n[0]=a.slice(e)}else if(e===n[0].length)r=n.shift();else{r=o?"":new A(e);for(var u=0,h=0,f=n.length;f>h&&e>u;h++){var a=n[0],l=Math.min(e-u,a.length);o?r+=a.slice(0,l):a.copy(r,u,0,l),l<a.length?n[0]=a.slice(l):n.shift(),u+=l}}return r}function y(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,S(E,t,e))}function E(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function k(e,t){for(var r=0,n=e.length;n>r;r++)t(e[r],r)}function x(e,t){for(var r=0,n=e.length;n>r;r++)if(e[r]===t)return r;return-1}t.exports=i;var S=e("process-nextick-args"),R=e("isarray"),A=e("buffer").Buffer;i.ReadableState=n;var L=e("events").EventEmitter;L.listenerCount||(L.listenerCount=function(e,t){return e.listeners(t).length});var T;!function(){try{T=e("stream")}catch(t){}finally{T||(T=e("events").EventEmitter)}}();var A=e("buffer").Buffer,I=e("core-util-is");I.inherits=e("inherits");var O=e("util");O=O&&O.debuglog?O.debuglog("stream"):function(){};var j;I.inherits(i,T),i.prototype.push=function(e,t){var r=this._readableState;return r.objectMode||"string"!=typeof e||(t=t||r.defaultEncoding,t!==r.encoding&&(e=new A(e,t),t="")),o(this,r,e,t,!1)},i.prototype.unshift=function(e){var t=this._readableState;return o(this,t,e,"",!0)},i.prototype.isPaused=function(){return this._readableState.flowing===!1},i.prototype.setEncoding=function(t){return j||(j=e("string_decoder/").StringDecoder),this._readableState.decoder=new j(t),this._readableState.encoding=t,this};var U=8388608;i.prototype.read=function(e){O("read",e);var t=this._readableState,r=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return O("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?y(this):l(this),null;if(e=u(e,t),0===e&&t.ended)return 0===t.length&&y(this),null;var n=t.needReadable;O("need readable",n),(0===t.length||t.length-e<t.highWaterMark)&&(n=!0,O("length less than watermark",n)),(t.ended||t.reading)&&(n=!1,O("reading or ended",n)),n&&(O("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),n&&!t.reading&&(e=u(r,t));var i;return i=e>0?v(e,t):null,null===i&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),r!==e&&t.ended&&0===t.length&&y(this),null!==i&&this.emit("data",i),i},i.prototype._read=function(e){this.emit("error",new Error("not implemented"))},i.prototype.pipe=function(e,t){function n(e){O("onunpipe"),e===l&&o()}function i(){O("onend"),e.end()}function o(){O("cleanup"),e.removeListener("close",u),e.removeListener("finish",h),e.removeListener("drain",_),e.removeListener("error",a),e.removeListener("unpipe",n),l.removeListener("end",i),l.removeListener("end",o),l.removeListener("data",s),!c.awaitDrain||e._writableState&&!e._writableState.needDrain||_()}function s(t){O("ondata");var r=e.write(t);!1===r&&(O("false write response, pause",l._readableState.awaitDrain),l._readableState.awaitDrain++,l.pause())}function a(t){O("onerror",t),f(),e.removeListener("error",a),0===L.listenerCount(e,"error")&&e.emit("error",t)}function u(){e.removeListener("finish",h),f()}function h(){O("onfinish"),e.removeListener("close",u),f()}function f(){O("unpipe"),l.unpipe(e)}var l=this,c=this._readableState;switch(c.pipesCount){case 0:c.pipes=e;break;case 1:c.pipes=[c.pipes,e];break;default:c.pipes.push(e)}c.pipesCount+=1,O("pipe count=%d opts=%j",c.pipesCount,t);var d=(!t||t.end!==!1)&&e!==r.stdout&&e!==r.stderr,p=d?i:o;c.endEmitted?S(p):l.once("end",p),e.on("unpipe",n);var _=g(l);return e.on("drain",_),l.on("data",s),e._events&&e._events.error?R(e._events.error)?e._events.error.unshift(a):e._events.error=[a,e._events.error]:e.on("error",a),e.once("close",u),e.once("finish",h),e.emit("pipe",l),c.flowing||(O("pipe resume"),l.resume()),e},i.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this),this);if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;n>i;i++)r[i].emit("unpipe",this);return this}var i=x(t.pipes,e);return-1===i?this:(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this),this)},i.prototype.on=function(e,t){var r=T.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&l(this,n):S(_,this))}return r},i.prototype.addListener=i.prototype.on,i.prototype.resume=function(){var e=this._readableState;return e.flowing||(O("resume"),e.flowing=!0,m(this,e)),this},i.prototype.pause=function(){return O("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(O("pause"),this._readableState.flowing=!1,this.emit("pause")),this},i.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;e.on("end",function(){if(O("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)}),e.on("data",function(i){if(O("wrapped data"),t.decoder&&(i=t.decoder.write(i)),(!t.objectMode||null!==i&&void 0!==i)&&(t.objectMode||i&&i.length)){var o=n.push(i);o||(r=!0,e.pause())}});for(var i in e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));var o=["error","close","destroy","pause","resume"];return k(o,function(t){e.on(t,n.emit.bind(n,t))}),n._read=function(t){O("wrapped _read",t),r&&(r=!1,e.resume())},n},i._fromList=v}).call(this,e("_process"))},{"./_stream_duplex":36,_process:30,buffer:22,"core-util-is":41,events:26,inherits:28,isarray:29,"process-nextick-args":42,"string_decoder/":58,util:8}],39:[function(e,t,r){"use strict";function n(e){this.afterTransform=function(t,r){return i(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function i(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!==r&&void 0!==r&&e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);a.call(this,e),this._transformState=new n(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e){s(t,e)}):s(t)})}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=e._transformState;if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}t.exports=o;var a=e("./_stream_duplex"),u=e("core-util-is");u.inherits=e("inherits"),u.inherits(o,a),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,a.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,r){throw new Error("not implemented")},o.prototype._write=function(e,t,r){var n=this._transformState;
9if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},{"./_stream_duplex":36,"core-util-is":41,inherits:28}],40:[function(e,t,r){"use strict";function n(){}function i(e,t,r){this.chunk=e,this.encoding=t,this.callback=r,this.next=null}function o(t,r){var n=e("./_stream_duplex");t=t||{},this.objectMode=!!t.objectMode,r instanceof n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,o=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:o,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var s=t.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){p(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function s(t){var r=e("./_stream_duplex");return this instanceof s||this instanceof r?(this._writableState=new o(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),void S.call(this)):new s(t)}function a(e,t){var r=new Error("write after end");e.emit("error",r),E(t,r)}function u(e,t,r,n){var i=!0;if(!k.isBuffer(r)&&"string"!=typeof r&&null!==r&&void 0!==r&&!t.objectMode){var o=new TypeError("Invalid non-string/buffer chunk");e.emit("error",o),E(n,o),i=!1}return i}function h(e,t,r){return e.objectMode||e.decodeStrings===!1||"string"!=typeof t||(t=new k(t,r)),t}function f(e,t,r,n,o){r=h(t,r,n),k.isBuffer(r)&&(n="buffer");var s=t.objectMode?1:r.length;t.length+=s;var a=t.length<t.highWaterMark;if(a||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest=new i(r,n,o),u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest}else l(e,t,!1,s,r,n,o);return a}function l(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function c(e,t,r,n,i){--t.pendingcb,r?E(i,n):i(n),e._writableState.errorEmitted=!0,e.emit("error",n)}function d(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function p(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(d(r),t)c(e,r,n,t,i);else{var o=b(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||m(e,r),n?E(g,e,r,o,i):g(e,r,o,i)}}function g(e,t,r,n){r||_(e,t),t.pendingcb--,n(),v(e,t)}function _(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function m(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){for(var n=[],i=[];r;)i.push(r.callback),n.push(r),r=r.next;t.pendingcb++,t.lastBufferedRequest=null,l(e,t,!0,t.length,n,"",function(e){for(var r=0;r<i.length;r++)t.pendingcb--,i[r](e)})}else{for(;r;){var o=r.chunk,s=r.encoding,a=r.callback,u=t.objectMode?1:o.length;if(l(e,t,!1,u,o,s,a),r=r.next,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function b(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function w(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function v(e,t){var r=b(t);return r&&(0===t.pendingcb?(w(e,t),t.finished=!0,e.emit("finish")):w(e,t)),r}function y(e,t,r){t.ending=!0,v(e,t),r&&(t.finished?E(r):e.once("finish",r)),t.ended=!0}t.exports=s;var E=e("process-nextick-args"),k=e("buffer").Buffer;s.WritableState=o;var x=e("core-util-is");x.inherits=e("inherits");var S;!function(){try{S=e("stream")}catch(t){}finally{S||(S=e("events").EventEmitter)}}();var k=e("buffer").Buffer;x.inherits(s,S),o.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(o.prototype,"buffer",{get:e("util-deprecate")(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer() instead.")})}catch(t){}}(),s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},s.prototype.write=function(e,t,r){var i=this._writableState,o=!1;return"function"==typeof t&&(r=t,t=null),k.isBuffer(e)?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=n),i.ended?a(this,r):u(this,i,e,r)&&(i.pendingcb++,o=f(this,i,e,t,r)),o},s.prototype.cork=function(){var e=this._writableState;e.corked++},s.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||m(this,e))},s.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e},s.prototype._write=function(e,t,r){r(new Error("not implemented"))},s.prototype._writev=null,s.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||y(this,n,r)}},{"./_stream_duplex":36,buffer:22,"core-util-is":41,events:26,inherits:28,"process-nextick-args":42,"util-deprecate":43}],41:[function(e,t,r){(function(e){function t(e){return Array.isArray(e)}function n(e){return"boolean"==typeof e}function i(e){return null===e}function o(e){return null==e}function s(e){return"number"==typeof e}function a(e){return"string"==typeof e}function u(e){return"symbol"==typeof e}function h(e){return void 0===e}function f(e){return l(e)&&"[object RegExp]"===m(e)}function l(e){return"object"==typeof e&&null!==e}function c(e){return l(e)&&"[object Date]"===m(e)}function d(e){return l(e)&&("[object Error]"===m(e)||e instanceof Error)}function p(e){return"function"==typeof e}function g(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function _(t){return e.isBuffer(t)}function m(e){return Object.prototype.toString.call(e)}r.isArray=t,r.isBoolean=n,r.isNull=i,r.isNullOrUndefined=o,r.isNumber=s,r.isString=a,r.isSymbol=u,r.isUndefined=h,r.isRegExp=f,r.isObject=l,r.isDate=c,r.isError=d,r.isFunction=p,r.isPrimitive=g,r.isBuffer=_}).call(this,e("buffer").Buffer)},{buffer:22}],42:[function(e,t,r){(function(e){"use strict";function r(t){for(var r=new Array(arguments.length-1),n=0;n<arguments.length;)r[n++]=arguments[n];e.nextTick(function(){t.apply(null,r)})}t.exports=r}).call(this,e("_process"))},{_process:30}],43:[function(e,t,r){(function(e){function r(e,t){function r(){if(!i){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),i=!0}return e.apply(this,arguments)}if(n("noDeprecation"))return e;var i=!1;return r}function n(t){if(!e.localStorage)return!1;var r=e.localStorage[t];return null==r?!1:"true"===String(r).toLowerCase()}t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],44:[function(e,t,r){t.exports=e("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":37}],45:[function(e,t,r){var n=function(){try{return e("stream")}catch(t){}}();r=t.exports=e("./lib/_stream_readable.js"),r.Stream=n||r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":36,"./lib/_stream_passthrough.js":37,"./lib/_stream_readable.js":38,"./lib/_stream_transform.js":39,"./lib/_stream_writable.js":40}],46:[function(e,t,r){t.exports=e("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":39}],47:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":40}],48:[function(e,t,r){function n(){i.call(this)}t.exports=n;var i=e("events").EventEmitter,o=e("inherits");o(n,i),n.Readable=e("readable-stream/readable.js"),n.Writable=e("readable-stream/writable.js"),n.Duplex=e("readable-stream/duplex.js"),n.Transform=e("readable-stream/transform.js"),n.PassThrough=e("readable-stream/passthrough.js"),n.Stream=n,n.prototype.pipe=function(e,t){function r(t){e.writable&&!1===e.write(t)&&h.pause&&h.pause()}function n(){h.readable&&h.resume&&h.resume()}function o(){f||(f=!0,e.end())}function s(){f||(f=!0,"function"==typeof e.destroy&&e.destroy())}function a(e){if(u(),0===i.listenerCount(this,"error"))throw e}function u(){h.removeListener("data",r),e.removeListener("drain",n),h.removeListener("end",o),h.removeListener("close",s),h.removeListener("error",a),e.removeListener("error",a),h.removeListener("end",u),h.removeListener("close",u),e.removeListener("close",u)}var h=this;h.on("data",r),e.on("drain",n),e._isStdio||t&&t.end===!1||(h.on("end",o),h.on("close",s));var f=!1;return h.on("error",a),e.on("error",a),h.on("end",u),h.on("close",u),e.on("close",u),e.emit("pipe",h),e}},{events:26,inherits:28,"readable-stream/duplex.js":35,"readable-stream/passthrough.js":44,"readable-stream/readable.js":45,"readable-stream/transform.js":46,"readable-stream/writable.js":47}],49:[function(e,t,r){var n=e("./lib/request"),i=e("xtend"),o=e("builtin-status-codes"),s=e("url"),a=r;a.request=function(e,t){e="string"==typeof e?s.parse(e):i(e);var r=e.host?e.host.split(":")[0]:null,o=e.host?parseInt(e.host.split(":")[1],10):null;e.method=e.method||"GET",e.headers=e.headers||{},e.path=e.path||"/",e.protocol=e.protocol||window.location.protocol;var a=e.hostname||r?"https:"===e.protocol?443:80:window.location.port;e.hostname=e.hostname||r||window.location.hostname,e.port=e.port||o||a;var u=new n(e);return t&&u.on("response",t),u},a.get=function(e,t){var r=a.request(e,t);return r.end(),r},a.Agent=function(){},a.Agent.defaultMaxSockets=4,a.STATUS_CODES=o,a.METHODS=["GET","POST","PUT","DELETE"]},{"./lib/request":51,"builtin-status-codes":53,url:59,xtend:62}],50:[function(e,t,r){function n(e){try{return s.responseType=e,s.responseType===e}catch(t){}return!1}function i(e){return"function"==typeof e}r.fetch=i(window.fetch)&&i(window.ReadableByteStream),r.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),r.blobConstructor=!0}catch(o){}var s=new window.XMLHttpRequest;s.open("GET","/");var a=i(window.ArrayBuffer),u=a&&i(window.ArrayBuffer.prototype.slice);r.arraybuffer=a&&n("arraybuffer"),r.msstream=u&&n("ms-stream"),r.mozchunkedarraybuffer=a&&n("moz-chunked-arraybuffer"),r.overrideMimeType=i(s.overrideMimeType),r.vbArray=i(window.VBArray),s=null},{}],51:[function(e,t,r){(function(r,n){function i(e){return s.fetch?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&e?"arraybuffer":s.vbArray&&e?"text:vbarray":"text"}function o(e){try{return null!==e.status}catch(t){return!1}}var s=e("./capability"),a=e("foreach"),u=e("indexof"),h=e("inherits"),f=e("object-keys"),l=e("./response"),c=e("stream"),d=l.IncomingMessage,p=l.readyStates,g=t.exports=function(e){var t=this;c.Writable.call(t),t._opts=e,t._url=e.protocol+"//"+e.hostname+":"+e.port+e.path,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+new n(e.auth).toString("base64")),a(f(e.headers),function(r){t.setHeader(r,e.headers[r])});var r;if("prefer-streaming"===e.mode)r=!1;else if("prefer-fast"===e.mode)r=!0;else{if(e.mode&&"default"!==e.mode)throw new Error("Invalid value for opts.mode");r=!s.overrideMimeType}t._mode=i(r),t.on("finish",function(){t._onFinish()})};h(g,c.Writable),g.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();-1===u(_,n)&&(r._headers[n]={name:e,value:t})},g.prototype.getHeader=function(e){var t=this;return t._headers[e.toLowerCase()].value},g.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},g.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t,i=e._opts,o=e._headers;if(("POST"===i.method||"PUT"===i.method)&&(t=s.blobConstructor?new window.Blob(e._body.map(function(e){return e.toArrayBuffer()}),{type:(o["content-type"]||{}).value||""}):n.concat(e._body).toString()),"fetch"===e._mode){var u=f(o).map(function(e){return[o[e].name,o[e].value]});window.fetch(e._url,{method:e._opts.method,headers:u,body:t,mode:"cors",credentials:i.withCredentials?"include":"same-origin"}).then(function(t){e._fetchResponse=t,e._connect()}).then(void 0,function(t){e.emit("error",t)})}else{var h=e._xhr=new window.XMLHttpRequest;try{h.open(e._opts.method,e._url,!0)}catch(l){return void r.nextTick(function(){e.emit("error",l)})}"responseType"in h&&(h.responseType=e._mode.split(":")[0]),"withCredentials"in h&&(h.withCredentials=!!i.withCredentials),"text"===e._mode&&"overrideMimeType"in h&&h.overrideMimeType("text/plain; charset=x-user-defined"),a(f(o),function(e){h.setRequestHeader(o[e].name,o[e].value)}),e._response=null,h.onreadystatechange=function(){switch(h.readyState){case p.LOADING:case p.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(h.onprogress=function(){e._onXHRProgress()}),h.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{h.send(t)}catch(l){return void r.nextTick(function(){e.emit("error",l)})}}}},g.prototype._onXHRProgress=function(){var e=this;o(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},g.prototype._connect=function(){var e=this;e._destroyed||(e._response=new d(e._xhr,e._fetchResponse,e._mode),e.emit("response",e._response))},g.prototype._write=function(e,t,r){var n=this;n._body.push(e),r()},g.prototype.abort=g.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},g.prototype.end=function(e,t,r){var n=this;"function"==typeof e&&(r=e,e=void 0),e&&c.Writable.push.call(n,e,t),c.Writable.prototype.end.call(n,r)},g.prototype.flushHeaders=function(){},g.prototype.setTimeout=function(){},g.prototype.setNoDelay=function(){},g.prototype.setSocketKeepAlive=function(){};var _=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,e("_process"),e("buffer").Buffer)},{"./capability":50,"./response":52,_process:30,buffer:22,foreach:54,indexof:55,inherits:28,"object-keys":56,stream:48}],52:[function(e,t,r){(function(t,n){var i=e("./capability"),o=e("foreach"),s=e("inherits"),a=e("stream"),u=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},h=r.IncomingMessage=function(e,r,s){function u(){d.read().then(function(e){if(!h._destroyed){if(e.done)return void h.push(null);h.push(new n(e.value)),u()}})}var h=this;if(a.Readable.call(h),h._mode=s,h.headers={},h.rawHeaders=[],h.trailers={},h.rawTrailers=[],h.on("end",function(){t.nextTick(function(){h.emit("close")})}),"fetch"===s){h._fetchResponse=r,h.statusCode=r.status,h.statusMessage=r.statusText;for(var f,l,c=r.headers[Symbol.iterator]();f=(l=c.next()).value,!l.done;)h.headers[f[0].toLowerCase()]=f[1],h.rawHeaders.push(f[0],f[1]);var d=r.body.getReader();u()}else{h._xhr=e,h._pos=0,h.statusCode=e.status,h.statusMessage=e.statusText;var p=e.getAllResponseHeaders().split(/\r?\n/);if(o(p,function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();void 0!==h.headers[r]?h.headers[r]+=", "+t[2]:h.headers[r]=t[2],h.rawHeaders.push(t[1],t[2])}}),h._charset="x-user-defined",!i.overrideMimeType){var g=h.rawHeaders["mime-type"];if(g){var _=g.match(/;\s*charset=([^;])(;|$)/);_&&(h._charset=_[1].toLowerCase())}h._charset||(h._charset="utf-8")}}};s(h,a.Readable),h.prototype._read=function(){},h.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==u.DONE)break;try{r=new window.VBArray(t.responseBody).toArray()}catch(i){}if(null!==r){e.push(new n(r));break}case"text":try{r=t.responseText}catch(i){e._mode="text:vbarray";break}if(r.length>e._pos){var o=r.substr(e._pos);if("x-user-defined"===e._charset){for(var s=new n(o.length),a=0;a<o.length;a++)s[a]=255&o.charCodeAt(a);e.push(s)}else e.push(o,e._charset);e._pos=r.length}break;case"arraybuffer":if(t.readyState!==u.DONE)break;r=t.response,e.push(new n(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=t.response,t.readyState!==u.LOADING||!r)break;e.push(new n(new Uint8Array(r)));break;case"ms-stream":if(r=t.response,t.readyState!==u.LOADING)break;var h=new window.MSStreamReader;h.onprogress=function(){h.result.byteLength>e._pos&&(e.push(new n(new Uint8Array(h.result.slice(e._pos)))),e._pos=h.result.byteLength)},h.onload=function(){e.push(null)},h.readAsArrayBuffer(r)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,e("_process"),e("buffer").Buffer)},{"./capability":50,_process:30,buffer:22,foreach:54,inherits:28,stream:48}],53:[function(e,t,r){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],54:[function(e,t,r){var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString;t.exports=function(e,t,r){if("[object Function]"!==i.call(t))throw new TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var s=0;o>s;s++)t.call(r,e[s],s,e);else for(var a in e)n.call(e,a)&&t.call(r,e[a],a,e)}},{}],55:[function(e,t,r){var n=[].indexOf;t.exports=function(e,t){if(n)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}},{}],56:[function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Array.prototype.slice,s=e("./isArguments"),a=!{toString:null}.propertyIsEnumerable("toString"),u=function(){}.propertyIsEnumerable("prototype"),h=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===i.call(e),o=s(e),f=t&&"[object String]"===i.call(e),l=[];if(!t&&!r&&!o)throw new TypeError("Object.keys called on a non-object");var c=u&&r;if(f&&e.length>0&&!n.call(e,0))for(var d=0;d<e.length;++d)l.push(String(d));if(o&&e.length>0)for(var p=0;p<e.length;++p)l.push(String(p));else for(var g in e)c&&"prototype"===g||!n.call(e,g)||l.push(String(g));if(a)for(var _=e.constructor,m=_&&_.prototype===e,b=0;b<h.length;++b)m&&"constructor"===h[b]||!n.call(e,h[b])||l.push(h[b]);return l};f.shim=function(){if(Object.keys){var e=function(){return 2===(Object.keys(arguments)||"").length}(1,2);if(!e){var t=Object.keys;Object.keys=function(e){return t(s(e)?o.call(e):e)}}}else Object.keys=f;return Object.keys||f},t.exports=f},{"./isArguments":57}],57:[function(e,t,r){"use strict";var n=Object.prototype.toString;t.exports=function(e){var t=n.call(e),r="[object Arguments]"===t;return r||(r="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===n.call(e.callee)),r}},{}],58:[function(e,t,r){function n(e){if(e&&!u(e))throw new Error("Unknown encoding: "+e)}function i(e){return e.toString(this.encoding)}function o(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function s(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}var a=e("buffer").Buffer,u=a.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},h=r.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),n(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=s;break;default:return void(this.write=i)}this.charBuffer=new a(6),this.charReceived=0,this.charLength=0};h.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";e=e.slice(r,e.length),t=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var n=t.charCodeAt(t.length-1);if(!(n>=55296&&56319>=n)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),t+=e.toString(this.encoding,0,i);var i=t.length-1,n=t.charCodeAt(i);if(n>=55296&&56319>=n){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},h.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(2>=t&&r>>4==14){this.charLength=3;break}if(3>=t&&r>>3==30){this.charLength=4;break}}this.charReceived=t},h.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},{buffer:22}],59:[function(e,t,r){function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(e,t,r){if(e&&h(e)&&e instanceof n)return e;var i=new n;return i.parse(e,t,r),i}function o(e){return u(e)&&(e=i(e)),e instanceof n?e.format():n.prototype.format.call(e)}function s(e,t){return i(e,!1,!0).resolve(t)}function a(e,t){return e?i(e,!1,!0).resolveObject(t):t}function u(e){return"string"==typeof e}function h(e){return"object"==typeof e&&null!==e}function f(e){return null===e}function l(e){return null==e}var c=e("punycode");r.parse=i,r.resolve=s,r.resolveObject=a,r.format=o,r.Url=n;var d=/^([a-z0-9.+-]+:)/i,p=/:[0-9]*$/,g=["<",">",'"',"`"," ","\r","\n"," "],_=["{","}","|","\\","^","`"].concat(g),m=["'"].concat(_),b=["%","/","?",";","#"].concat(m),w=["/","?","#"],v=255,y=/^[a-z0-9A-Z_-]{0,63}$/,E=/^([a-z0-9A-Z_-]{0,63})(.*)$/,k={javascript:!0,"javascript:":!0},x={javascript:!0,"javascript:":!0},S={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},R=e("querystring");n.prototype.parse=function(e,t,r){if(!u(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e;n=n.trim();var i=d.exec(n);if(i){i=i[0];var o=i.toLowerCase();this.protocol=o,n=n.substr(i.length)}if(r||i||n.match(/^\/\/[^@\/]+@[^@\/]+/)){var s="//"===n.substr(0,2);!s||i&&x[i]||(n=n.substr(2),this.slashes=!0)}if(!x[i]&&(s||i&&!S[i])){for(var a=-1,h=0;h<w.length;h++){var f=n.indexOf(w[h]);-1!==f&&(-1===a||a>f)&&(a=f)}var l,p;p=-1===a?n.lastIndexOf("@"):n.lastIndexOf("@",a),-1!==p&&(l=n.slice(0,p),n=n.slice(p+1),this.auth=decodeURIComponent(l)),a=-1;for(var h=0;h<b.length;h++){var f=n.indexOf(b[h]);-1!==f&&(-1===a||a>f)&&(a=f)}-1===a&&(a=n.length),this.host=n.slice(0,a),n=n.slice(a),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var _=this.hostname.split(/\./),h=0,A=_.length;A>h;h++){var L=_[h];if(L&&!L.match(y)){for(var T="",I=0,O=L.length;O>I;I++)T+=L.charCodeAt(I)>127?"x":L[I];if(!T.match(y)){var j=_.slice(0,h),U=_.slice(h+1),B=L.match(E);B&&(j.push(B[1]),U.unshift(B[2])),U.length&&(n="/"+U.join(".")+n),this.hostname=j.join(".");break}}}if(this.hostname=this.hostname.length>v?"":this.hostname.toLowerCase(),!g){for(var M=this.hostname.split("."),z=[],h=0;h<M.length;++h){var N=M[h];z.push(N.match(/[^A-Za-z0-9_-]/)?"xn--"+c.encode(N):N)}this.hostname=z.join(".")}var C=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+C,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==n[0]&&(n="/"+n))}if(!k[o])for(var h=0,A=m.length;A>h;h++){var P=m[h],F=encodeURIComponent(P);F===P&&(F=escape(P)),n=n.split(P).join(F)}var Z=n.indexOf("#");-1!==Z&&(this.hash=n.substr(Z),n=n.slice(0,Z));var q=n.indexOf("?");if(-1!==q?(this.search=n.substr(q),this.query=n.substr(q+1),t&&(this.query=R.parse(this.query)),n=n.slice(0,q)):t&&(this.search="",this.query={}),n&&(this.pathname=n),S[o]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var C=this.pathname||"",N=this.search||"";this.path=C+N}return this.href=this.format(),this},n.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&h(this.query)&&Object.keys(this.query).length&&(o=R.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||S[t])&&i!==!1?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),s=s.replace("#","%23"),t+i+r+s+n},n.prototype.resolve=function(e){return this.resolveObject(i(e,!1,!0)).format()},n.prototype.resolveObject=function(e){if(u(e)){var t=new n;t.parse(e,!1,!0),e=t}var r=new n;if(Object.keys(this).forEach(function(e){r[e]=this[e]},this),r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol)return Object.keys(e).forEach(function(t){"protocol"!==t&&(r[t]=e[t])}),S[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r;if(e.protocol&&e.protocol!==r.protocol){if(!S[e.protocol])return Object.keys(e).forEach(function(t){r[t]=e[t]}),r.href=r.format(),r;if(r.protocol=e.protocol,e.host||x[e.protocol])r.pathname=e.pathname;else{for(var i=(e.pathname||"").split("/");i.length&&!(e.host=i.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==i[0]&&i.unshift(""),i.length<2&&i.unshift(""),r.pathname=i.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var o=r.pathname||"",s=r.search||"";r.path=o+s}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var a=r.pathname&&"/"===r.pathname.charAt(0),h=e.host||e.pathname&&"/"===e.pathname.charAt(0),c=h||a||r.host&&e.pathname,d=c,p=r.pathname&&r.pathname.split("/")||[],i=e.pathname&&e.pathname.split("/")||[],g=r.protocol&&!S[r.protocol];if(g&&(r.hostname="",r.port=null,r.host&&(""===p[0]?p[0]=r.host:p.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===i[0]?i[0]=e.host:i.unshift(e.host)),e.host=null),c=c&&(""===i[0]||""===p[0])),h)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,p=i;else if(i.length)p||(p=[]),p.pop(),p=p.concat(i),r.search=e.search,r.query=e.query;else if(!l(e.search)){if(g){r.hostname=r.host=p.shift();var _=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;_&&(r.auth=_.shift(),r.host=r.hostname=_.shift())}return r.search=e.search,r.query=e.query,f(r.pathname)&&f(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!p.length)return r.pathname=null,r.path=r.search?"/"+r.search:null,r.href=r.format(),r;for(var m=p.slice(-1)[0],b=(r.host||e.host)&&("."===m||".."===m)||""===m,w=0,v=p.length;v>=0;v--)m=p[v],"."==m?p.splice(v,1):".."===m?(p.splice(v,1),w++):w&&(p.splice(v,1),w--);if(!c&&!d)for(;w--;w)p.unshift("..");!c||""===p[0]||p[0]&&"/"===p[0].charAt(0)||p.unshift(""),b&&"/"!==p.join("/").substr(-1)&&p.push("");var y=""===p[0]||p[0]&&"/"===p[0].charAt(0);if(g){r.hostname=r.host=y?"":p.length?p.shift():"";var _=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;_&&(r.auth=_.shift(),r.host=r.hostname=_.shift())}return c=c||r.host&&p.length,c&&!y&&p.unshift(""),p.length?r.pathname=p.join("/"):(r.pathname=null,r.path=null),f(r.pathname)&&f(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=p.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{punycode:31,querystring:34}],60:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],61:[function(e,t,r){(function(t,n){function i(e,t){var n={seen:[],stylize:s};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(t)?n.showHidden=t:t&&r._extend(n,t),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=o),u(n,e,n.depth)}function o(e,t){var r=i.styles[t];return r?"["+i.colors[r][0]+"m"+e+"["+i.colors[r][1]+"m":e}function s(e,t){return e}function a(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function u(e,t,n){if(e.customInspect&&t&&R(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return w(i)||(i=u(e,i,n)),i}var o=h(e,t);if(o)return o;var s=Object.keys(t),g=a(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),S(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(t);if(0===s.length){if(R(t)){var _=t.name?": "+t.name:"";return e.stylize("[Function"+_+"]","special")}if(E(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(x(t))return e.stylize(Date.prototype.toString.call(t),"date");if(S(t))return f(t)}var m="",b=!1,v=["{","}"];if(p(t)&&(b=!0,v=["[","]"]),R(t)){var y=t.name?": "+t.name:"";m=" [Function"+y+"]"}if(E(t)&&(m=" "+RegExp.prototype.toString.call(t)),x(t)&&(m=" "+Date.prototype.toUTCString.call(t)),S(t)&&(m=" "+f(t)),0===s.length&&(!b||0==t.length))return v[0]+m+v[1];if(0>n)return E(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var k;return k=b?l(e,t,n,g,s):s.map(function(r){return c(e,t,n,g,r,b)}),e.seen.pop(),d(k,m,v)}function h(e,t){if(y(t))return e.stylize("undefined","undefined");if(w(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";
10
11return e.stylize(r,"string")}return b(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):_(t)?e.stylize("null","null"):void 0}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function l(e,t,r,n,i){for(var o=[],s=0,a=t.length;a>s;++s)o.push(O(t,String(s))?c(e,t,r,n,String(s),!0):"");return i.forEach(function(i){i.match(/^\d+$/)||o.push(c(e,t,r,n,i,!0))}),o}function c(e,t,r,n,i,o){var s,a,h;if(h=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},h.get?a=h.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):h.set&&(a=e.stylize("[Setter]","special")),O(n,i)||(s="["+i+"]"),a||(e.seen.indexOf(h.value)<0?(a=_(r)?u(e,h.value,null):u(e,h.value,r-1),a.indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n"))):a=e.stylize("[Circular]","special")),y(s)){if(o&&i.match(/^\d+$/))return a;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function d(e,t,r){var n=0,i=e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function p(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function _(e){return null===e}function m(e){return null==e}function b(e){return"number"==typeof e}function w(e){return"string"==typeof e}function v(e){return"symbol"==typeof e}function y(e){return void 0===e}function E(e){return k(e)&&"[object RegExp]"===L(e)}function k(e){return"object"==typeof e&&null!==e}function x(e){return k(e)&&"[object Date]"===L(e)}function S(e){return k(e)&&("[object Error]"===L(e)||e instanceof Error)}function R(e){return"function"==typeof e}function A(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function L(e){return Object.prototype.toString.call(e)}function T(e){return 10>e?"0"+e.toString(10):e.toString(10)}function I(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),M[e.getMonth()],t].join(" ")}function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var j=/%[sdj%]/g;r.format=function(e){if(!w(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(i(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,o=n.length,s=String(e).replace(j,function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}}),a=n[r];o>r;a=n[++r])s+=_(a)||!k(a)?" "+a:" "+i(a);return s},r.deprecate=function(e,i){function o(){if(!s){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),s=!0}return e.apply(this,arguments)}if(y(n.process))return function(){return r.deprecate(e,i).apply(this,arguments)};if(t.noDeprecation===!0)return e;var s=!1;return o};var U,B={};r.debuglog=function(e){if(y(U)&&(U=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!B[e])if(new RegExp("\\b"+e+"\\b","i").test(U)){var n=t.pid;B[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else B[e]=function(){};return B[e]},r.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=p,r.isBoolean=g,r.isNull=_,r.isNullOrUndefined=m,r.isNumber=b,r.isString=w,r.isSymbol=v,r.isUndefined=y,r.isRegExp=E,r.isObject=k,r.isDate=x,r.isError=S,r.isFunction=R,r.isPrimitive=A,r.isBuffer=e("./support/isBuffer");var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){console.log("%s - %s",I(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!k(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":60,_process:30,inherits:28}],62:[function(e,t,r){function n(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}t.exports=n},{}],63:[function(e,t,r){"use strict";var n=e("existential");t.exports=function(e,t){return n(e)?e:t}},{existential:64}],64:[function(e,t,r){"use strict";t.exports=function(e){return"undefined"!=typeof e&&null!==e}},{}],65:[function(e,t,r){(function(r){"use strict";function n(e){e=e||{};var t=new f,r=0,n=function(e){var i="https:"===e.protocol?c:l,o=i.request(e,function(i){var o=i.statusCode;if(E(o)&&"location"in i.headers&&("GET"===e.method||"HEAD"===e.method)){if(i.resume(),++r>10)return void t.emit("error",new u.MaxRedirectsError(o,e),null,i);var s=d.resolve(d.format(e),i.headers.location),a=g({},e,d.parse(s));return t.emit("redirect",i,a),void n(a)}t.emit("response",x(i))}).once("error",function(r){t.emit("error",new u.RequestError(r,e))});e.timeout&&(console.log("TIMEOUT SETTED TO",e.timeout),w(o,e.timeout)),setImmediate(t.emit.bind(t),"request",o)};return n(e),t}function i(e,t){var r=n(e);r.on("request",function(t){return m.readable(e.body)?(e.body.pipe(t),void(e.body=void 0)):void t.end(e.body)}),r.on("response",function(r){b(r,e.encoding,function(n,i){if(n)return void t(new u.ReadError(n,e),null,r);var o=r.statusCode;if((200>o||o>299)&&(n=new u.HTTPError(o,e)),e.json&&204!==o)try{i=JSON.parse(i)}catch(s){n=new u.ParseError(s,e)}t(n,i,r)})}),r.on("error",t)}function o(e){return new k(function(t,r){i(e,function(e,n,i){return i&&(i.body=n),e?(e.response=i,void r(e)):void t(i)})})}function s(e){var t=_();if(e.json)throw new Error("got can not be used as stream when options.json is used");e.body&&(t.write=function(){throw new Error("got's stream is not writable when options.body is used")});var r=n(e);return r.on("request",function(r){return t.emit("request",r),m.readable(e.body)?void e.body.pipe(r):e.body?void r.end(e.body):"POST"===e.method||"PUT"===e.method||"PATCH"===e.method?void t.setWritable(r):void r.end()}),r.on("response",function(e){t.setReadable(e),t.emit("response",e)}),r.on("redirect",t.emit.bind(t,"redirect")),t}function a(e,t){if("string"!=typeof e&&"object"!=typeof e)throw new Error("Parameter `url` must be a string or object, not "+typeof e);t=g({protocol:"http:",path:""},"string"==typeof e?d.parse(v(e)):e,t),t.headers=g({"user-agent":"https://github.com/sindresorhus/got","accept-encoding":"gzip,deflate"},y(t.headers));var n=t.query;n&&("string"!=typeof n&&(t.query=p.stringify(n)),t.path=t.path.split("?")[0]+"?"+t.query,delete t.query),t.json&&(t.headers.accept=t.headers.accept||"application/json");var i=t.body;if(i){if("string"!=typeof i&&!r.isBuffer(i)&&!m.readable(i)&&!A(i))throw new Error("options.body must be a ReadableStream, string, Buffer or plain Object");if(t.method=t.method||"POST",A(i)&&(t.headers["content-type"]=t.headers["content-type"]||"application/x-www-form-urlencoded",i=t.body=p.stringify(i)),!t.headers["content-length"]&&!t.headers["transfer-encoding"]&&!m.readable(i)){var o="string"==typeof i?r.byteLength(i):i.length;t.headers["content-length"]=o}}return t.method=t.method||"GET",t}function u(e,t,r){return"function"==typeof t&&(r=t,t={}),t=a(e,t),r?void i(t,r):o(t)}function h(e,t){g(this,{message:e.message,code:e.code,host:t.host,hostname:t.hostname,method:t.method,path:t.path})}var f=e("events").EventEmitter,l=e("http"),c=e("https"),d=e("url"),p=e("querystring"),g=e("object-assign"),_=e("duplexify"),m=e("is-stream"),b=e("read-all-stream"),w=e("timed-out"),v=e("prepend-http"),y=e("lowercase-keys"),E=e("is-redirect"),k=e("pinkie-promise"),x=e("unzip-response"),S=e("create-error-class"),R=e("node-status-codes"),A=e("is-plain-obj"),L=["get","post","put","patch","head","delete"];L.forEach(function(e){u[e]=function(t,r,n){return"function"==typeof r&&(n=r,r={}),u(t,g({},r,{method:e.toUpperCase()}),n)}}),u.stream=function(e,t){return s(a(e,t))},L.forEach(function(e){u.stream[e]=function(t,r){return u.stream(t,g({},r,{method:e.toUpperCase()}))}}),u.RequestError=S("RequestError",h),u.ReadError=S("ReadError",h),u.ParseError=S("ParseError",h),u.HTTPError=S("HTTPError",function(e,t){h.call(this,{},t),this.statusCode=e,this.statusMessage=R[this.statusCode],this.message="Response code "+this.statusCode+" ("+this.statusMessage+")"}),u.MaxRedirectsError=S("MaxRedirectsError",function(e,t){h.call(this,{},t),this.statusCode=e,this.statusMessage=R[this.statusCode],this.message="Redirected 10 times. Aborting."}),t.exports=u}).call(this,e("buffer").Buffer)},{buffer:22,"create-error-class":66,duplexify:69,events:26,http:49,https:27,"is-plain-obj":85,"is-redirect":86,"is-stream":87,"lowercase-keys":88,"node-status-codes":89,"object-assign":90,"pinkie-promise":91,"prepend-http":93,querystring:34,"read-all-stream":94,"timed-out":107,"unzip-response":108,url:59}],66:[function(require,module,exports){"use strict";var inherits=require("inherits"),captureStackTrace=require("capture-stack-trace");module.exports=function createErrorClass(className,setup){if("string"!=typeof className)throw new TypeError("Expected className to be a string");if(/[^0-9a-zA-Z_$]/.test(className))throw new Error("className contains invalid characters");setup=setup||function(){};var ErrorClass=eval("(function "+className+"() { captureStackTrace(this, this.constructor); setup.apply(this, arguments); })");return inherits(ErrorClass,Error),ErrorClass.prototype.name=className,ErrorClass}},{"capture-stack-trace":67,inherits:68}],67:[function(e,t,r){"use strict";t.exports=Error.captureStackTrace||function(e){var t=new Error;Object.defineProperty(e,"stack",{configurable:!0,get:function(){var e=t.stack;return Object.defineProperty(this,"stack",{value:e}),e}})}},{}],68:[function(e,t,r){arguments[4][28][0].apply(r,arguments)},{dup:28}],69:[function(e,t,r){(function(r,n){var i=e("readable-stream"),o=e("end-of-stream"),s=e("util"),a=new n([0]),u=function(e,t){e._corked?e.once("uncork",t):t()},h=function(e,t){return function(r){r?e.destroy("premature close"===r.message?null:r):t&&!e._ended&&e.end()}},f=function(e,t){return e?e._writableState&&e._writableState.finished?t():e._writableState?e.end(t):(e.end(),void t()):t()},l=function(e){return new i.Readable({objectMode:!0,highWaterMark:16}).wrap(e)},c=function(e,t,r){return this instanceof c?(i.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._forwardDestroy=!r||r.destroy!==!1,this._forwardEnd=!r||r.end!==!1,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),void(t&&this.setReadable(t))):new c(e,t,r)};s.inherits(c,i.Duplex),c.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new c(e,t,r)},c.prototype.cork=function(){1===++this._corked&&this.emit("cork")},c.prototype.uncork=function(){this._corked&&0===--this._corked&&this.emit("uncork")},c.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed)return void(e&&e.destroy&&e.destroy());if(null===e||e===!1)return void this.end();var t=this,n=o(e,{writable:!0,readable:!1},h(this,this._forwardEnd)),i=function(){var e=t._ondrain;t._ondrain=null,e&&e()},s=function(){t._writable.removeListener("drain",i),n()};this._unwrite&&r.nextTick(i),this._writable=e,this._writable.on("drain",i),this._unwrite=s,this.uncork()},c.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed)return void(e&&e.destroy&&e.destroy());if(null===e||e===!1)return this.push(null),void this.resume();var t=this,r=o(e,{writable:!1,readable:!0},h(this)),n=function(){t._forward()},i=function(){t.push(null)},s=function(){t._readable2.removeListener("readable",n),t._readable2.removeListener("end",i),r()};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:l(e),this._readable2.on("readable",n),this._readable2.on("end",i),this._unread=s,this._forward()},c.prototype._read=function(){this._drained=!0,this._forward()},c.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){this._forwarding=!0;for(var e,t=this._readable2._readableState;null!==(e=this._readable2.read(t.buffer.length?t.buffer[0].length:t.length));)this._drained=this.push(e);this._forwarding=!1}},c.prototype.destroy=function(e){if(!this.destroyed){this.destroyed=!0;var t=this;r.nextTick(function(){t._destroy(e)})}},c.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},c.prototype._write=function(e,t,r){return this.destroyed?r():this._corked?u(this,this._write.bind(this,e,t,r)):e===a?this._finish(r):this._writable?void(this._writable.write(e)===!1?this._ondrain=r:r()):r()},c.prototype._finish=function(e){var t=this;this.emit("preend"),u(this,function(){f(t._forwardEnd&&t._writable,function(){t._writableState.prefinished===!1&&(t._writableState.prefinished=!0),t.emit("prefinish"),u(t,e)})})},c.prototype.end=function(e,t,r){return"function"==typeof e?this.end(null,null,e):"function"==typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this.write(a),i.Writable.prototype.end.call(this,r))},t.exports=c}).call(this,e("_process"),e("buffer").Buffer)},{_process:30,buffer:22,"end-of-stream":70,"readable-stream":84,util:61}],70:[function(e,t,r){var n=e("once"),i=function(){},o=function(e){return e.setHeader&&"function"==typeof e.abort},s=function(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=n(r||i);var a=e._writableState,u=e._readableState,h=t.readable||t.readable!==!1&&e.readable,f=t.writable||t.writable!==!1&&e.writable,l=function(){e.writable||c()},c=function(){f=!1,h||r()},d=function(){h=!1,f||r()},p=function(){return(!h||u&&u.ended)&&(!f||a&&a.ended)?void 0:r(new Error("premature close"))},g=function(){e.req.on("finish",c)};return o(e)?(e.on("complete",c),e.on("abort",p),e.req?g():e.on("request",g)):f&&!a&&(e.on("end",l),e.on("close",l)),e.on("end",d),e.on("finish",c),t.error!==!1&&e.on("error",r),e.on("close",p),function(){e.removeListener("complete",c),e.removeListener("abort",p),e.removeListener("request",g),e.req&&e.req.removeListener("finish",c),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",c),e.removeListener("end",d),e.removeListener("error",r),e.removeListener("close",p)}};t.exports=s},{once:72}],71:[function(e,t,r){function n(e,t){function r(){for(var t=new Array(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];var n=e.apply(this,t),i=t[t.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach(function(e){n[e]=i[e]}),n}if(e&&t)return n(e)(t);if("function"!=typeof e)throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(t){r[t]=e[t]}),r}t.exports=n},{}],72:[function(e,t,r){function n(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}var i=e("wrappy");t.exports=i(n),n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0})})},{wrappy:71}],73:[function(e,t,r){arguments[4][36][0].apply(r,arguments)},{"./_stream_readable":75,"./_stream_writable":77,"core-util-is":78,dup:36,inherits:79,"process-nextick-args":81}],74:[function(e,t,r){arguments[4][37][0].apply(r,arguments)},{"./_stream_transform":76,"core-util-is":78,dup:37,inherits:79}],75:[function(e,t,r){arguments[4][38][0].apply(r,arguments)},{"./_stream_duplex":73,_process:30,buffer:22,"core-util-is":78,dup:38,events:26,inherits:79,isarray:80,"process-nextick-args":81,"string_decoder/":82,util:8}],76:[function(e,t,r){arguments[4][39][0].apply(r,arguments)},{"./_stream_duplex":73,"core-util-is":78,dup:39,inherits:79}],77:[function(e,t,r){arguments[4][40][0].apply(r,arguments)},{"./_stream_duplex":73,buffer:22,"core-util-is":78,dup:40,events:26,inherits:79,"process-nextick-args":81,"util-deprecate":83}],78:[function(e,t,r){arguments[4][41][0].apply(r,arguments)},{buffer:22,dup:41}],79:[function(e,t,r){arguments[4][28][0].apply(r,arguments)},{dup:28}],80:[function(e,t,r){arguments[4][29][0].apply(r,arguments)},{dup:29}],81:[function(e,t,r){arguments[4][42][0].apply(r,arguments)},{_process:30,dup:42}],82:[function(e,t,r){arguments[4][58][0].apply(r,arguments)},{buffer:22,dup:58}],83:[function(e,t,r){arguments[4][43][0].apply(r,arguments)},{dup:43}],84:[function(e,t,r){arguments[4][45][0].apply(r,arguments)},{"./lib/_stream_duplex.js":73,"./lib/_stream_passthrough.js":74,"./lib/_stream_readable.js":75,"./lib/_stream_transform.js":76,"./lib/_stream_writable.js":77,dup:45}],85:[function(e,t,r){"use strict";var n=Object.prototype.toString,i=Object.prototype.hasOwnProperty;t.exports=function(e){var t;return"[object Object]"===n.call(e)&&(t=e.constructor,i.call(e,"constructor")||"function"!=typeof t||t instanceof t)}},{}],86:[function(e,t,r){"use strict";t.exports=function(e){if("number"!=typeof e)throw new TypeError("Expected a number");return 300===e||301===e||302===e||303===e||305===e||307===e||308===e}},{}],87:[function(e,t,r){"use strict";var n=t.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe};n.writable=function(e){return n(e)&&e.writable!==!1&&"function"==typeof e._write&&"object"==typeof e._writableState},n.readable=function(e){return n(e)&&e.readable!==!1&&"function"==typeof e._read&&"object"==typeof e._readableState},n.duplex=function(e){return n.writable(e)&&n.readable(e)}},{}],88:[function(e,t,r){"use strict";t.exports=function(e){for(var t={},r=Object.keys(Object(e)),n=0;n<r.length;n++)t[r[n].toLowerCase()]=e[r[n]];return t}},{}],89:[function(e,t,r){"use strict";t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],90:[function(e,t,r){"use strict";function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function i(e){var t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e))),t.filter(function(t){return o.call(e,t)})}var o=Object.prototype.propertyIsEnumerable;t.exports=Object.assign||function(e,t){for(var r,o,s=n(e),a=1;a<arguments.length;a++){r=arguments[a],o=i(Object(r));for(var u=0;u<o.length;u++)s[o[u]]=r[o[u]]}return s}},{}],91:[function(e,t,r){(function(r){"use strict";t.exports=r.Promise||e("pinkie")}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{pinkie:92}],92:[function(e,t,r){"use strict";function n(){for(var e=0;e<E.length;e++)E[e][0](E[e][1]);E=[],g=!1}function i(e,t){E.push([e,t]),g||(g=!0,y(n,0))}function o(e,t){function r(e){u(t,e)}function n(e){f(t,e)}try{e(r,n)}catch(i){n(i)}}function s(e){var t=e.owner,r=t._state,n=t._data,i=e[r],o=e.then;if("function"==typeof i){r=b;try{n=i(n)}catch(s){f(o,s)}}a(o,n)||(r===b&&u(o,n),r===w&&f(o,n))}function a(e,t){var r;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"==typeof t)){var n=t.then;if("function"==typeof n)return n.call(t,function(n){r||(r=!0,t!==n?u(e,n):h(e,n))},function(t){r||(r=!0,f(e,t))}),!0}}catch(i){return r||f(e,i),!0}return!1}function u(e,t){e!==t&&a(e,t)||h(e,t)}function h(e,t){e._state===_&&(e._state=m,e._data=t,i(c,e))}function f(e,t){e._state===_&&(e._state=m,e._data=t,i(d,e))}function l(e){e._then=e._then.forEach(s)}function c(e){e._state=b,l(e)}function d(e){e._state=w,l(e)}function p(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof p==!1)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],o(e,this)}var g,_="pending",m="settled",b="fulfilled",w="rejected",v=function(){},y="undefined"!=typeof setImmediate?setImmediate:setTimeout,E=[];p.prototype={constructor:p,_state:_,_then:null,_data:void 0,then:function(e,t){var r={owner:this,then:new this.constructor(v),fulfilled:e,rejected:t};return this._state===b||this._state===w?i(s,r):this._then.push(r),r.then},"catch":function(e){return this.then(null,e)}},p.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new p(function(t,r){function n(e){return s++,function(r){o[e]=r,--s||t(o)}}for(var i,o=[],s=0,a=0;a<e.length;a++)i=e[a],i&&"function"==typeof i.then?i.then(n(a),r):o[a]=i;s||t(o)})},p.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new p(function(t,r){for(var n,i=0;i<e.length;i++)n=e[i],n&&"function"==typeof n.then?n.then(t,r):t(n)})},p.resolve=function(e){return e&&"object"==typeof e&&e.constructor===p?e:new p(function(t){t(e)})},p.reject=function(e){return new p(function(t,r){r(e)})},t.exports=p},{}],93:[function(e,t,r){"use strict";t.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e=e.trim(),/^\.?\//.test(e)?e:e.replace(/^(?!(?:\w+:)?\/\/)/,"http://")}},{}],94:[function(e,t,r){(function(r){"use strict";function n(){i.call(this,{objectMode:!0}),this.buffer=[],this.length=0}var i=e("readable-stream").Writable,o=e("util").inherits,s=e("pinkie-promise");o(n,i),n.prototype._write=function(e,t,n){r.isBuffer(e)||(e=new r(e)),this.buffer.push(e),this.length+=e.length,n()},t.exports=function(e,t,i){if(!e)throw new Error("stream argument is required");"function"==typeof t&&(i=t,t={}),("string"==typeof t||void 0===t||null===t)&&(t={encoding:t}),void 0===t.encoding&&(t.encoding="utf8");var o;if(!i){var a,u;o=new s(function(e,t){a=e,u=t}),i=function(e,t){return e?u(e):void a(t)}}var h=new n;return h.on("finish",function(){var e=r.concat(this.buffer,this.length);t.encoding&&(e=e.toString(t.encoding)),i(null,e)}),e.once("error",i),e.pipe(h),o}}).call(this,e("buffer").Buffer)},{buffer:22,"pinkie-promise":91,"readable-stream":106,util:61}],95:[function(e,t,r){arguments[4][36][0].apply(r,arguments)},{"./_stream_readable":97,"./_stream_writable":99,"core-util-is":100,dup:36,inherits:101,"process-nextick-args":103}],96:[function(e,t,r){arguments[4][37][0].apply(r,arguments)},{"./_stream_transform":98,"core-util-is":100,dup:37,inherits:101}],97:[function(e,t,r){arguments[4][38][0].apply(r,arguments)},{"./_stream_duplex":95,_process:30,buffer:22,"core-util-is":100,dup:38,events:26,inherits:101,isarray:102,"process-nextick-args":103,"string_decoder/":104,util:8}],98:[function(e,t,r){arguments[4][39][0].apply(r,arguments)},{"./_stream_duplex":95,"core-util-is":100,dup:39,inherits:101}],99:[function(e,t,r){arguments[4][40][0].apply(r,arguments)},{"./_stream_duplex":95,buffer:22,"core-util-is":100,dup:40,events:26,inherits:101,"process-nextick-args":103,"util-deprecate":105}],100:[function(e,t,r){arguments[4][41][0].apply(r,arguments)},{buffer:22,dup:41}],101:[function(e,t,r){arguments[4][28][0].apply(r,arguments)},{dup:28}],102:[function(e,t,r){arguments[4][29][0].apply(r,arguments)},{dup:29}],103:[function(e,t,r){arguments[4][42][0].apply(r,arguments)},{_process:30,dup:42}],104:[function(e,t,r){arguments[4][58][0].apply(r,arguments)},{buffer:22,dup:58}],105:[function(e,t,r){arguments[4][43][0].apply(r,arguments)},{dup:43}],106:[function(e,t,r){arguments[4][45][0].apply(r,arguments)},{"./lib/_stream_duplex.js":95,"./lib/_stream_passthrough.js":96,"./lib/_stream_readable.js":97,"./lib/_stream_transform.js":98,"./lib/_stream_writable.js":99,dup:45}],107:[function(e,t,r){"use strict";t.exports=function(e,t){function r(){e.timeoutTimer&&(clearTimeout(e.timeoutTimer),e.timeoutTimer=null)}if(e.timeoutTimer)return e;var n=e._headers?" to "+e._headers.host:"";return e.timeoutTimer=setTimeout(function(){e.abort();var t=new Error("Connection timed out on request"+n);t.code="ETIMEDOUT",e.emit("error",t)},t),e.setTimeout(t,function(){e.abort();var t=new Error("Socket timed out on request"+n);t.code="ESOCKETTIMEDOUT",e.emit("error",t)}),e.on("response",r).on("error",r)}},{}],108:[function(e,t,r){"use strict";var n=e("zlib");t.exports=function(e){if(-1!==["gzip","deflate"].indexOf(e.headers["content-encoding"])){var t=n.createUnzip();t.httpVersion=e.httpVersion,t.headers=e.headers,t.rawHeaders=e.rawHeaders,t.trailers=e.trailers,t.rawTrailers=e.rawTrailers,t.setTimeout=e.setTimeout.bind(e),t.statusCode=e.statusCode,t.statusMessage=e.statusMessage,t.socket=e.socket,e.on("close",function(){t.emit("close")}),e=e.pipe(t)}return e}},{zlib:21}],109:[function(e,t,r){t.exports={name:"meaning-cloud",description:"NodeJS Client for interact with Meaning Cloud API.",homepage:"https://github.com/Kikobeats/meaningcloud",version:"1.1.5",main:"./index.js",author:{email:"josefrancisco.verdu@gmail.com",name:"Kiko Beats",url:"https://github.com/Kikobeats"},repository:"Kikobeats/meaningcloud",bugs:{url:"https://github.com/Kikobeats/meaningcloud/issues"},keywords:["meaning-cloud","meaningcloud","textalytics"],dependencies:{"coffee-script":"latest","existential-default":"latest",got:"latest"},devDependencies:{browserify:"latest","coffee-script":"latest",coffeeify:"latest",gulp:"latest","gulp-header":"latest","gulp-uglify":"latest","gulp-util":"latest",mocha:"latest",should:"latest","vinyl-buffer":"latest","vinyl-source-stream":"latest"},engines:{node:">= 0.10.0",npm:">= 1.4.0"},scripts:{test:"sh test/test.sh"},license:"MIT"}},{}],"meaning-cloud":[function(e,t,r){"use strict";e("coffee-script/register"),t.exports=e("./lib/Meaning")},{"./lib/Meaning":4,"coffee-script/register":6}]},{},[]);
\No newline at end of file