303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary 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"}},{"./lib/request":38,events:36,url:61}],38:[function(t,e,r){varn=t("stream"),i=t("./response"),o=t("Base64"),s=t("inherits"),a=e.exports=function(t,e){varr=this;r.writable=!0,r.xhr=t,r.body=[],r.uri=(e.protocol||"http:")+"//"+e.host+(e.port?":"+e.port:"")+(e.path||"/"),"undefined"==typeofe.withCredentials&&(e.withCredentials=!0);try{t.withCredentials=e.withCredentials}catch(n){}if(e.responseType)try{t.responseType=e.responseType}catch(n){}if(t.open(e.method||"GET",r.uri,!0),t.onerror=function(t){r.emit("error",newError("Network error"))},r._headers={},e.headers)for(vars=u(e.headers),a=0;a<s.length;a++){varc=s[a];if(r.isSafeRequestHeader(c)){varh=e.headers[c];r.setHeader(c,h)}}e.auth&&this.setHeader("Authorization","Basic "+o.btoa(e.auth));varf=newi;f.on("close",function(){r.emit("close")}),f.on("ready",function(){r.emit("response",f)}),f.on("error",function(t){r.emit("error",t)}),t.onreadystatechange=function(){t.__aborted||f.handle(t)}};s(a,n),a.prototype.setHeader=function(t,e){this._headers[t.toLowerCase()]=e},a.prototype.getHeader=function(t){returnthis._headers[t.toLowerCase()]},a.prototype.removeHeader=function(t){deletethis._headers[t.toLowerCase()]},a.prototype.write=function(t){this.body.push(t)},a.prototype.destroy=function(t){this.xhr.__aborted=!0,this.xhr.abort(),this.emit("close")},a.prototype.end=function(t){void0!==t&&this.body.push(t);for(vare=u(this._headers),r=0;r<e.length;r++){varn=e[r],i=this._headers[n];if(c(i))for(varo=0;o<i.length;o++)this.xhr.setRequestHeader(n,i[o]);elsethis.xhr.setRequestHeader(n,i)}if(0===this.body.length)this.xhr.send("");elseif("string"==typeofthis.body[0])this.xhr.send(this.body.join(""));elseif(c(this.body[0])){for(vars=[],r=0;r<this.body.length;r++)s.push.apply(s,this.body[r]);this.xhr.send(s)}elseif(/Array/.test(Object.prototype.toString.call(this.body[0]))){for(vara=0,r=0;r<this.body.length;r++)a+=this.body[r].length;for(vars=newthis.body[0].constructor(a),h=0,r=0;r<this.body.length;r++)for(varl=this.body[r],o=0;o<l.length;o++)s[h++]=l[o];this.xhr.send(s)}elseif(f(this.body[0]))this.xhr.send(this.body[0]);else{for(vars="",r=0;r<this.body.length;r++)s+=this.body[r].toString();this.xhr.send(s)}},a.unsafeHeaders=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","content-transfer-encoding","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"],a.prototype.isSafeRequestHeader=function(t){returnt?-1===h(a.unsafeHeaders,t.toLowerCase()):!1};varu=Object.keys||function(t){vare=[];for(varrint)e.push(r);returne},c=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},h=function(t,e){if(t.indexOf)returnt.indexOf(e);for(varr=0;r<t.length;r++)if(t[r]===e)returnr;return-1},f=function(t){return"undefined"!=typeofBlob&&tinstanceofBlob?!0:"undefined"!=typeofArrayBuffer&&tinstanceofArrayBuffer?!0:"undefined"!=typeofFormData&&tinstanceofFormData?!0:void
this.charReceived<this.charLength)return"";t=t.slice(r,t.length),e=this.charBuffer.slice(0,this.charLength).toString(this.encoding);varn=e.charCodeAt(e.length-1);if(!(n>=55296&&56319>=n)){if(this.charReceived=this.charLength=0,0===t.length)returne;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);vari=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,i),i-=this.charReceived),e+=t.toString(this.encoding,0,i);vari=e.length-1,n=e.charCodeAt(i);if(n>=55296&&56319>=n){varo=this.surrogateSize;returnthis.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,i)}returne},c.prototype.detectIncompleteChar=function(t){for(vare=t.length>=3?3:t.length;e>0;e--){varr=t[t.length-e];if(1==e&&r>>5==6){this.charLength=2;break}if(2>=e&&r>>4==14){this.charLength=3;break}if(3>=e&&r>>3==30){this.charLength=4;break}}this.charReceived=e},c.prototype.end=function(t){vare="";if(t&&t.length&&(e=this.write(t)),this.charReceived){varr=this.charReceived,n=this.charBuffer,i=this.encoding;e+=n.slice(0,r).toString(i)}returne}},{buffer:32}],61:[function(t,e,r){functionn(){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}functioni(t,e,r){if(t&&c(t)&&tinstanceofn)returnt;vari=newn;returni.parse(t,e,r),i}functiono(t){returnu(t)&&(t=i(t)),tinstanceofn?t.format():n.prototype.format.call(t)}functions(t,e){returni(t,!1,!0).resolve(e)}functiona(t,e){returnt?i(t,!1,!0).resolveObject(e):e}functionu(t){return"string"==typeoft}functionc(t){return"object"==typeoft&&null!==t}functionh(t){returnnull===t}functionf(t){returnnull==t}varl=t("punycode");r.parse=i,r.resolve=s,r.resolveObject=a,r.format=o,r.Url=n;varp=/^([a-z0-9.+-]+:)/i,d=/:[0-9]*$/,m=["<",">",'"',"`"," ","\r","\n"," "],g=["{","}","|","\\","^","`"].concat(m),y=["'"].concat(g),v=["%","/","?",";","#"].concat(y),b=["/","?","#"],w=255,_=/^[a-z0-9A-Z_-]{0,63}$/,E=/^([a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},S={javascript:!0,"javascript:":!0},A={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},I=t("querystring");n.prototype.parse=function(t,e,r){if(!u(t))thrownewTypeError("Parameter 'url' must be a string, not "+typeoft);varn=t;n=n.trim();vari=p.exec(n);if(i){i=i[0];varo=i.toLowerCase();this.protocol=o,n=n.substr(i.length)}if(r||i||n.match(/^\/\/[^@\/]+@[^@\/]+/)){vars="//"===n.substr(0,2);!s||i&&S[i]||(n=n.substr(2),this.slashes=!0)}if(!S[i]&&(s||i&&!A[i])){for(vara=-1,c=0;c<b.length;c++){varh=n.indexOf(b[c]);-1!==h&&(-1===a||a>h)&&(a=h)}varf,d;d=-1===a?n.lastIndexOf("@"):n.lastIndexOf("@",a),-1!==d&&(f=n.slice(0,d),n=n.slice(d+1),this.auth=decodeURIComponent(f)),a=-1;for(varc=0;c<v.length;c++){varh=n.indexOf(v[c]);-1!==h&&(-1===a||a>h)&&(a=h)}-1===a&&(a=n.length),this.host=n.slice(0,a),n=n.slice(a),this.parseHost(),this.hostname=this.hostname||"";varm="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!m)for(varg=this.hostname.split(/\./),c=0,B=g.length;B>c;c++){varT=g[c];if(T&&!T.match(_)){for(varO="",k=0,R=T.length;R>k;k++)O+=T.charCodeAt(k)>127?"x":T[k];if(!O.match(_)){varL=g.slice(0,c),N=g.slice(c+1),P=T.match(E);P&&(L.push(P[1]),N.unshift(P[2])),N.length&&(n="/"+N.join(".")+n),this.hostname=L.join(".");break}}}if(this.hostname=this.hostname.length>w?"":this.hostname.toLowerCase(),!m){for(varj=this.hostname.split("."),C=[],c=0;c<j.length;++c){varD=j[c];C.push(D.match(/[^A-Za-z0-9_-]/)?"xn--"+l.encode(D):D)}this.hostname=C.join(".")}varF=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+F,this.href+=this.host,m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==n[0]&&(n="/"+n))}if(!x[o])for(varc=0,B=y.length;B>c;c++){varM=y[c],q=encodeURIComponent(M);q===M&&(q=escape(M)),n=n.split(M).join(q)}varH=n.indexOf("#");-1!==H&&(this.hash=n.substr(H),n=n.slice(0,H));varz=n.i