mirror of https://github.com/embarklabs/embark.git
2 lines
742 KiB
JavaScript
2 lines
742 KiB
JavaScript
var _typeof2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){ return typeof e; }:function(e){ return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e; },_typeof=typeof Symbol=="function"&&_typeof2(Symbol.iterator)==="symbol"?function(e){ return void 0===e?"undefined":_typeof2(e); }:function(e){ return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof2(e); }; !(function(e){ if((typeof exports=="undefined"?"undefined":_typeof(exports))==="object"&&typeof module!="undefined")module.exports=e(); else if(typeof define=="function"&&define.amd)define([],e); else{ (typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this).Web3=e(); } }(function(){ var define,module,exports; return (function e(t,n,i){ function r(a,s){ if(!n[a]){ if(!t[a]){ var c=typeof require=="function"&&require; if(!s&&c)return c(a,!0); if(o)return o(a,!0); var u=new Error("Cannot find module '"+a+"'"); throw u.code="MODULE_NOT_FOUND",u;}var l=n[a]={exports:{}}; t[a][0].call(l.exports,function(e){ var n=t[a][1][e]; return r(n||e);},l,l.exports,e,t,n,i) }return n[a].exports }for(var o=typeof require=="function"&&require,a=0; a<i.length; a++)r(i[a]); return r }({1:[function(e,t,n){ var i=n; i.bignum=e("bn.js"),i.define=e("./asn1/api").define,i.base=e("./asn1/base"),i.constants=e("./asn1/constants"),i.decoders=e("./asn1/decoders"),i.encoders=e("./asn1/encoders") },{"./asn1/api":2,"./asn1/base":4,"./asn1/constants":8,"./asn1/decoders":10,"./asn1/encoders":13,"bn.js":"BN"}],2:[function(e,t,n){ function i(e,t){ this.name=e,this.body=t,this.decoders={},this.encoders={} }var r=e("../asn1"),o=e("inherits"); n.define=function(e,t){ return new i(e,t);},i.prototype._createNamed=function(t){ var n; try{ n=e("vm").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})") }catch(e){ n=function(e){ this._initNamed(e);};}return o(n,t),n.prototype._initNamed=function(e){ t.call(this,e);},new n(this) },i.prototype._getDecoder=function(e){ return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r.decoders[e])),this.decoders[e] },i.prototype.decode=function(e,t,n){ return this._getDecoder(t).decode(e,n);},i.prototype._getEncoder=function(e){ return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r.encoders[e])),this.encoders[e] },i.prototype.encode=function(e,t,n){ return this._getEncoder(t).encode(e,n) } },{"../asn1":1,inherits:101,vm:157}],3:[function(e,t,n){ function i(e,t){ a.call(this,t),s.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer") }function r(e,t){ if(Array.isArray(e))this.length=0,this.value=e.map(function(e){ return e instanceof r||(e=new r(e,t)),this.length+=e.length,e },this); else if(typeof e=="number"){ if(!(e>=0&&e<=255))return t.error("non-byte EncoderBuffer value"); this.value=e,this.length=1 }else if(typeof e=="string")this.value=e,this.length=s.byteLength(e); else{ if(!s.isBuffer(e))return t.error("Unsupported type: "+(void 0===e?"undefined":_typeof(e))); this.value=e,this.length=e.length;} }var o=e("inherits"),a=e("../base").Reporter,s=e("buffer").Buffer; o(i,a),n.DecoderBuffer=i,i.prototype.save=function(){ return{offset:this.offset,reporter:a.prototype.save.call(this)} },i.prototype.restore=function(e){ var t=new i(this.base); return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,a.prototype.restore.call(this,e.reporter),t },i.prototype.isEmpty=function(){ return this.offset===this.length },i.prototype.readUInt8=function(e){ return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun") },i.prototype.skip=function(e,t){ if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun"); var n=new i(this.base); return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n;},i.prototype.raw=function(e){ return this.base.slice(e?e.offset:this.offset,this.length);},n.EncoderBuffer=r,r.prototype.join=function(e,t){ return e||(e=new s(this.length)),t||(t=0),this.length===0?e:(Array.isArray(this.value)?this.value.forEach(function(n){ n.join(e,t),t+=n.length;}):(typeof this.value=="number"?e[t]=this.value:typeof this.value=="string"?e.write(this.value,t):s.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length),e) } },{"../base":4,buffer:47,inherits:101}],4:[function(e,t,n){ var i=n; i.Reporter=e("./reporter").Reporter,i.DecoderBuffer=e("./buffer").DecoderBuffer,i.EncoderBuffer=e("./buffer").EncoderBuffer,i.Node=e("./node") },{"./buffer":3,"./node":5,"./reporter":6}],5:[function(e,t,n){ function i(e,t){ var n={}; this._baseState=n,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap()) }var r=e("../base").Reporter,o=e("../base").EncoderBuffer,a=e("../base").DecoderBuffer,s=e("minimalistic-assert"),c=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(c),l=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"]; t.exports=i; var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"]; i.prototype.clone=function(){ var e=this._baseState,t={}; f.forEach(function(n){ t[n]=e[n] }); var n=new this.constructor(t.parent); return n._baseState=t,n },i.prototype._wrap=function(){ var e=this._baseState; u.forEach(function(t){ this[t]=function(){ var n=new this.constructor(this); return e.children.push(n),n[t].apply(n,arguments) };},this) },i.prototype._init=function(e){ var t=this._baseState; s(t.parent===null),e.call(this),t.children=t.children.filter(function(e){ return e._baseState.parent===this;},this),s.equal(t.children.length,1,"Root node can have only one child") },i.prototype._useArgs=function(e){ var t=this._baseState,n=e.filter(function(e){ return e instanceof this.constructor },this); e=e.filter(function(e){ return!(e instanceof this.constructor);},this),n.length!==0&&(s(t.children===null),t.children=n,n.forEach(function(e){ e._baseState.parent=this },this)),e.length!==0&&(s(t.args===null),t.args=e,t.reverseArgs=e.map(function(e){ if((void 0===e?"undefined":_typeof(e))!=="object"||e.constructor!==Object)return e; var t={}; return Object.keys(e).forEach(function(n){ n==(0|n)&&(n|=0); var i=e[n]; t[i]=n }),t;}));},l.forEach(function(e){ i.prototype[e]=function(){ var t=this._baseState; throw new Error(e+" not implemented for encoding: "+t.enc) } }),c.forEach(function(e){ i.prototype[e]=function(){ var t=this._baseState,n=Array.prototype.slice.call(arguments); return s(t.tag===null),t.tag=e,this._useArgs(n),this;} }),i.prototype.use=function(e){ s(e); var t=this._baseState; return s(t.use===null),t.use=e,this;},i.prototype.optional=function(){ return this._baseState.optional=!0,this;},i.prototype.def=function(e){ var t=this._baseState; return s(t.default===null),t.default=e,t.optional=!0,this;},i.prototype.explicit=function(e){ var t=this._baseState; return s(t.explicit===null&&t.implicit===null),t.explicit=e,this },i.prototype.implicit=function(e){ var t=this._baseState; return s(t.explicit===null&&t.implicit===null),t.implicit=e,this;},i.prototype.obj=function(){ var e=this._baseState,t=Array.prototype.slice.call(arguments); return e.obj=!0,t.length!==0&&this._useArgs(t),this },i.prototype.key=function(e){ var t=this._baseState; return s(t.key===null),t.key=e,this },i.prototype.any=function(){ return this._baseState.any=!0,this;},i.prototype.choice=function(e){ var t=this._baseState; return s(t.choice===null),t.choice=e,this._useArgs(Object.keys(e).map(function(t){ return e[t];})),this },i.prototype.contains=function(e){ var t=this._baseState; return s(t.use===null),t.contains=e,this;},i.prototype._decode=function(e,t){ var n=this._baseState; if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,t)); var i=n.default,r=!0,o=null; if(n.key!==null&&(o=e.enterKey(n.key)),n.optional){ var s=null; if(n.explicit!==null?s=n.explicit:n.implicit!==null?s=n.implicit:n.tag!==null&&(s=n.tag),s!==null||n.any){ if(r=this._peekTag(e,s,n.any),e.isError(r))return r;}else{ f=e.save(); try{ null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),r=!0 }catch(e){ r=!1 }e.restore(f) } }var c; if(n.obj&&r&&(c=e.enterObject()),r){ if(n.explicit!==null){ var u=this._decodeTag(e,n.explicit); if(e.isError(u))return u; e=u;}var l=e.offset; if(n.use===null&&n.choice===null){ if(n.any)var f=e.save(); var p=this._decodeTag(e,n.implicit!==null?n.implicit:n.tag,n.any); if(e.isError(p))return p; n.any?i=e.raw(f):e=p;}if(t&&t.track&&n.tag!==null&&t.track(e.path(),l,e.length,"tagged"),t&&t.track&&n.tag!==null&&t.track(e.path(),e.offset,e.length,"content"),i=n.any?i:n.choice===null?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),e.isError(i))return i; if(n.any||n.choice!==null||n.children===null||n.children.forEach(function(n){ n._decode(e,t);}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){ var d=new a(i); i=this._getUse(n.contains,e._reporterState.obj)._decode(d,t);} }return n.obj&&r&&(i=e.leaveObject(c)),n.key===null||i===null&&!0!==r?o!==null&&e.exitKey(o):e.leaveKey(o,n.key,i),i },i.prototype._decodeGeneric=function(e,t,n){ var i=this._baseState; returne==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(t,e,i.args[0],n):(/str$/).test(e)?this._decodeStr(t,e,n):e==="objid"&&i.args?this._decodeObjid(t,i.args[0],i.args[1],n):e==="objid"?this._decodeObjid(t,null,null,n):e==="gentime"||e==="utctime"?this._decodeTime(t,e,n):e==="null_"?this._decodeNull(t,n):e==="bool"?this._decodeBool(t,n):e==="objDesc"?this._decodeStr(t,e,n):e==="int"||e==="enum"?this._decodeInt(t,i.args&&i.args[0],n):i.use!==null?this._getUse(i.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e) },i.prototype._getUse=function(e,t){ var n=this._baseState; return n.useDecoder=this._use(e,t),s(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder },i.prototype._decodeChoice=function(e,t){ var n=this._baseState,i=null,r=!1; return Object.keys(n.choice).some(function(o){ var a=e.save(),s=n.choice[o]; try{ var c=s._decode(e,t); if(e.isError(c))return!1; i={type:o,value:c},r=!0;}catch(t){ return e.restore(a),!1;}return!0 },this),r?i:e.error("Choice not matched") },i.prototype._createEncoderBuffer=function(e){ return new o(e,this.reporter) },i.prototype._encode=function(e,t,n){ var i=this._baseState; if(i.default===null||i.default!==e){ var r=this._encodeValue(e,t,n); if(void 0!==r&&!this._skipDefault(r,t,n))return r;} },i.prototype._encodeValue=function(e,t,n){ var i=this._baseState; if(i.parent===null)return i.children[0]._encode(e,t||new r); c=null; if(this.reporter=t,i.optional&&void 0===e){ if(i.default===null)return; e=i.default;}var o=null,a=!1; if(i.any)c=this._createEncoderBuffer(e); else if(i.choice)c=this._encodeChoice(e,t); else if(i.contains)o=this._getUse(i.contains,n)._encode(e,t),a=!0; else if(i.children)o=i.children.map(function(n){ if(n._baseState.tag==="null_")return n._encode(null,t,e); if(n._baseState.key===null)return t.error("Child should have a key"); var i=t.enterKey(n._baseState.key); if((void 0===e?"undefined":_typeof(e))!=="object")return t.error("Child expected, but input is not object"); var r=n._encode(e[n._baseState.key],t,e); return t.leaveKey(i),r;},this).filter(function(e){ return e;}),o=this._createEncoderBuffer(o); else if(i.tag==="seqof"||i.tag==="setof"){ if(!i.args||i.args.length!==1)return t.error("Too many args for : "+i.tag); if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array"); var s=this.clone(); s._baseState.implicit=null,o=this._createEncoderBuffer(e.map(function(n){ var i=this._baseState; return this._getUse(i.args[0],e)._encode(n,t) },s));}else i.use!==null?c=this._getUse(i.use,n)._encode(e,t):(o=this._encodePrimitive(i.tag,e),a=!0); var c; if(!i.any&&i.choice===null){ var u=i.implicit!==null?i.implicit:i.tag,l=i.implicit===null?"universal":"context"; null===u?i.use===null&&t.error("Tag could be ommited only for .use()"):i.use===null&&(c=this._encodeComposite(u,a,l,o)) }return i.explicit!==null&&(c=this._encodeComposite(i.explicit,!1,"context",c)),c;},i.prototype._encodeChoice=function(e,t){ var n=this._baseState,i=n.choice[e.type]; return i||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),i._encode(e.value,t);},i.prototype._encodePrimitive=function(e,t){ var n=this._baseState; if(/str$/.test(e))return this._encodeStr(t,e); if(e==="objid"&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]); if(e==="objid")return this._encodeObjid(t,null,null); if(e==="gentime"||e==="utctime")return this._encodeTime(t,e); if(e==="null_")return this._encodeNull(); if(e==="int"||e==="enum")return this._encodeInt(t,n.args&&n.reverseArgs[0]); if(e==="bool")return this._encodeBool(t); if(e==="objDesc")return this._encodeStr(t,e); throw new Error("Unsupported tag: "+e) },i.prototype._isNumstr=function(e){ return(/^[0-9 ]*$/).test(e);},i.prototype._isPrintstr=function(e){ return(/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/).test(e) };},{"../base":4,"minimalistic-assert":106}],6:[function(e,t,n){ function i(e){ this._reporterState={obj:null,path:[],options:e||{},errors:[]};}function r(e,t){ this.path=e,this.rethrow(t) }var o=e("inherits"); n.Reporter=i,i.prototype.isError=function(e){ return e instanceof r },i.prototype.save=function(){ var e=this._reporterState; return{obj:e.obj,pathLen:e.path.length} },i.prototype.restore=function(e){ var t=this._reporterState; t.obj=e.obj,t.path=t.path.slice(0,e.pathLen) },i.prototype.enterKey=function(e){ return this._reporterState.path.push(e);},i.prototype.exitKey=function(e){ var t=this._reporterState; t.path=t.path.slice(0,e-1);},i.prototype.leaveKey=function(e,t,n){ var i=this._reporterState; this.exitKey(e),i.obj!==null&&(i.obj[t]=n) },i.prototype.path=function(){ return this._reporterState.path.join("/");},i.prototype.enterObject=function(){ var e=this._reporterState,t=e.obj; return e.obj={},t;},i.prototype.leaveObject=function(e){ var t=this._reporterState,n=t.obj; return t.obj=e,n },i.prototype.error=function(e){ var t,n=this._reporterState,i=e instanceof r; if(t=i?e:new r(n.path.map(function(e){ return"["+JSON.stringify(e)+"]" }).join(""),e.message||e,e.stack),!n.options.partial)throw t; return i||n.errors.push(t),t;},i.prototype.wrapResult=function(e){ var t=this._reporterState; return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e;},o(r,Error),r.prototype.rethrow=function(e){ if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,r),!this.stack)try{ throw new Error(this.message);}catch(e){ this.stack=e.stack;}return this };},{inherits:101}],7:[function(e,t,n){ var i=e("../constants"); n.tagClass={0:"universal",1:"application",2:"context",3:"private"},n.tagClassByName=i._reverse(n.tagClass),n.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},n.tagByName=i._reverse(n.tag);},{"../constants":8}],8:[function(e,t,n){ var i=n; i._reverse=function(e){ var t={}; return Object.keys(e).forEach(function(n){ (0|n)==n&&(n|=0); var i=e[n]; t[i]=n }),t;},i.der=e("./der");},{"./der":7}],9:[function(e,t,n){ function i(e){ this.enc="der",this.name=e.name,this.entity=e,this.tree=new r,this.tree._init(e.body) }function r(e){ u.Node.call(this,"der",e);}function o(e,t){ var n=e.readUInt8(t); if(e.isError(n))return n; var i=f.tagClass[n>>6],r=(32&n)==0; if((31&n)==31){ var o=n; for(n=0; 128==(128&o);){ if(o=e.readUInt8(t),e.isError(o))return o; n<<=7,n|=127&o } }else n&=31; return{cls:i,primitive:r,tag:n,tagStr:f.tag[n]} }function a(e,t,n){ var i=e.readUInt8(n); if(e.isError(i))return i; if(!t&&i===128)return null; if((128&i)==0)return i; var r=127&i; if(r>4)return e.error("length octect is too long"); i=0; for(var o=0; o<r; o++){ i<<=8; var a=e.readUInt8(n); if(e.isError(a))return a; i|=a }return i }var s=e("inherits"),c=e("../../asn1"),u=c.base,l=c.bignum,f=c.constants.der; t.exports=i,i.prototype.decode=function(e,t){ return e instanceof u.DecoderBuffer||(e=new u.DecoderBuffer(e,t)),this.tree._decode(e,t) },s(r,u.Node),r.prototype._peekTag=function(e,t,n){ if(e.isEmpty())return!1; var i=e.save(),r=o(e,'Failed to peek tag: "'+t+'"'); return e.isError(r)?r:(e.restore(i),r.tag===t||r.tagStr===t||r.tagStr+"of"===t||n) },r.prototype._decodeTag=function(e,t,n){ var i=o(e,'Failed to decode tag of "'+t+'"'); if(e.isError(i))return i; var r=a(e,i.primitive,'Failed to get length of "'+t+'"'); if(e.isError(r))return r; if(!n&&i.tag!==t&&i.tagStr!==t&&i.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"'); if(i.primitive||r!==null)return e.skip(r,'Failed to match body of: "'+t+'"'); var s=e.save(),c=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"'); return e.isError(c)?c:(r=e.offset-s.offset,e.restore(s),e.skip(r,'Failed to match body of: "'+t+'"'));},r.prototype._skipUntilEnd=function(e,t){ for(;;){ var n=o(e,t); if(e.isError(n))return n; var i=a(e,n.primitive,t); if(e.isError(i))return i; var r; if(r=n.primitive||i!==null?e.skip(i):this._skipUntilEnd(e,t),e.isError(r))return r; if(n.tagStr==="end")break;} },r.prototype._decodeList=function(e,t,n,i){ for(var r=[]; !e.isEmpty();){ var o=this._peekTag(e,"end"); if(e.isError(o))return o; var a=n.decode(e,"der",i); if(e.isError(a)&&o)break; r.push(a) }return r;},r.prototype._decodeStr=function(e,t){ if(t==="bitstr"){ var n=e.readUInt8(); return e.isError(n)?n:{unused:n,data:e.raw()};}if(t==="bmpstr"){ var i=e.raw(); if(i.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch"); for(var r="",o=0; o<i.length/2; o++)r+=String.fromCharCode(i.readUInt16BE(2*o)); return r;}if(t==="numstr"){ var a=e.raw().toString("ascii"); return this._isNumstr(a)?a:e.error("Decoding of string type: numstr unsupported characters") }if(t==="octstr")return e.raw(); if(t==="objDesc")return e.raw(); if(t==="printstr"){ var s=e.raw().toString("ascii"); return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters");}return(/str$/).test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported") },r.prototype._decodeObjid=function(e,t,n){ for(var i,r=[],o=0; !e.isEmpty();){ var a=e.readUInt8(); o<<=7,o|=127&a,(128&a)==0&&(r.push(o),o=0);}128&a&&r.push(o); var s=r[0]/40|0,c=r[0]%40; if(i=n?r:[s,c].concat(r.slice(1)),t){ var u=t[i.join(" ")]; void 0===u&&(u=t[i.join(".")]),void 0!==u&&(i=u) }return i;},r.prototype._decodeTime=function(e,t){ var n=e.raw().toString(); if(t==="gentime")var i=0|n.slice(0,4),r=0|n.slice(4,6),o=0|n.slice(6,8),a=0|n.slice(8,10),s=0|n.slice(10,12),c=0|n.slice(12,14); else{ if(t!=="utctime")return e.error("Decoding "+t+" time is not supported yet"); var i=0|n.slice(0,2),r=0|n.slice(2,4),o=0|n.slice(4,6),a=0|n.slice(6,8),s=0|n.slice(8,10),c=0|n.slice(10,12); i=i<70?2e3+i:1900+i }return Date.UTC(i,r-1,o,a,s,c,0) },r.prototype._decodeNull=function(e){ return null;},r.prototype._decodeBool=function(e){ var t=e.readUInt8(); return e.isError(t)?t:t!==0},r.prototype._decodeInt=function(e,t){ var n=e.raw(),i=new l(n); return t&&(i=t[i.toString(10)]||i),i;},r.prototype._use=function(e,t){ returntypeof e=="function"&&(e=e(t)),e._getDecoder("der").tree;};},{"../../asn1":1,inherits:101}],10:[function(e,t,n){ var i=n; i.der=e("./der"),i.pem=e("./pem");},{"./der":9,"./pem":11}],11:[function(e,t,n){ function i(e){ a.call(this,e),this.enc="pem";}var r=e("inherits"),o=e("buffer").Buffer,a=e("./der"); r(i,a),t.exports=i,i.prototype.decode=function(e,t){ for(var n=e.toString().split(/[\r\n]+/g),i=t.label.toUpperCase(),r=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1,u=0; u<n.length; u++){ var l=n[u].match(r); if(l!==null&&l[2]===i){ if(s!==-1){ if(l[1]!=="END")break; c=u; break;}if(l[1]!=="BEGIN")break; s=u;} }if(s===-1||c===-1)throw new Error("PEM section not found for: "+i); var f=n.slice(s+1,c).join(""); f.replace(/[^a-z0-9\+\/=]+/gi,""); var p=new o(f,"base64"); return a.prototype.decode.call(this,p,t) } },{"./der":9,buffer:47,inherits:101}],12:[function(e,t,n){ function i(e){ this.enc="der",this.name=e.name,this.entity=e,this.tree=new r,this.tree._init(e.body) }function r(e){ l.Node.call(this,"der",e);}function o(e){ return e<10?"0"+e:e }function a(e,t,n,i){ var r; if(e==="seqof"?e="seq":e==="setof"&&(e="set"),f.tagByName.hasOwnProperty(e))r=f.tagByName[e]; else{ if(typeof e!="number"||(0|e)!==e)return i.error("Unknown tag: "+e); r=e }return r>=31?i.error("Multi-octet tag encoding unsupported"):(t||(r|=32),r|=f.tagClassByName[n||"universal"]<<6) }var s=e("inherits"),c=e("buffer").Buffer,u=e("../../asn1"),l=u.base,f=u.constants.der; t.exports=i,i.prototype.encode=function(e,t){ return this.tree._encode(e,t).join();},s(r,l.Node),r.prototype._encodeComposite=function(e,t,n,i){ var r=a(e,t,n,this.reporter); if(i.length<128)return(u=new c(2))[0]=r,u[1]=i.length,this._createEncoderBuffer([u,i]); for(var o=1,s=i.length; s>=256; s>>=8)o++; var u=new c(2+o); u[0]=r,u[1]=128|o; for(var s=1+o,l=i.length; l>0; s--,l>>=8)u[s]=255&l; return this._createEncoderBuffer([u,i]);},r.prototype._encodeStr=function(e,t){ if(t==="bitstr")return this._createEncoderBuffer([0|e.unused,e.data]); if(t==="bmpstr"){ for(var n=new c(2*e.length),i=0; i<e.length; i++)n.writeUInt16BE(e.charCodeAt(i),2*i); return this._createEncoderBuffer(n);}returnt==="numstr"?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):t==="printstr"?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):(/str$/).test(t)?this._createEncoderBuffer(e):t==="objDesc"?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported");},r.prototype._encodeObjid=function(e,t,n){ if(typeof e=="string"){ if(!t)return this.reporter.error("string objid given, but no values map found"); if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map"); e=t[e].split(/[\s\.]+/g); for(r=0; r<e.length; r++)e[r]|=0 }else if(Array.isArray(e)){ e=e.slice(); for(r=0; r<e.length; r++)e[r]|=0;}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e)); if(!n){ if(e[1]>=40)return this.reporter.error("Second objid identifier OOB"); e.splice(0,2,40*e[0]+e[1]) }for(var i=0,r=0; r<e.length; r++){ s=e[r]; for(i++; s>=128; s>>=7)i++ }for(var o=new c(i),a=o.length-1,r=e.length-1; r>=0; r--){ var s=e[r]; for(o[a--]=127&s; (s>>=7)>0;)o[a--]=128|127&s }return this._createEncoderBuffer(o) },r.prototype._encodeTime=function(e,t){ var n,i=new Date(e); returnt==="gentime"?n=[o(i.getFullYear()),o(i.getUTCMonth()+1),o(i.getUTCDate()),o(i.getUTCHours()),o(i.getUTCMinutes()),o(i.getUTCSeconds()),"Z"].join(""):t==="utctime"?n=[o(i.getFullYear()%100),o(i.getUTCMonth()+1),o(i.getUTCDate()),o(i.getUTCHours()),o(i.getUTCMinutes()),o(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr") },r.prototype._encodeNull=function(){ return this._createEncoderBuffer("") },r.prototype._encodeInt=function(e,t){ if(typeof e=="string"){ if(!t)return this.reporter.error("String int or enum given, but no values map"); if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e)); e=t[e] }if(typeof e!="number"&&!c.isBuffer(e)){ var n=e.toArray(); !e.sign&&128&n[0]&&n.unshift(0),e=new c(n);}if(c.isBuffer(e)){ r=e.length; 0===e.length&&r++; var i=new c(r); return e.copy(i),e.length===0&&(i[0]=0),this._createEncoderBuffer(i);}if(e<128)return this._createEncoderBuffer(e); if(e<256)return this._createEncoderBuffer([0,e]); for(var r=1,o=e; o>=256; o>>=8)r++; for(o=(i=new Array(r)).length-1; o>=0; o--)i[o]=255&e,e>>=8; return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new c(i)) },r.prototype._encodeBool=function(e){ return this._createEncoderBuffer(e?255:0) },r.prototype._use=function(e,t){ returntypeof e=="function"&&(e=e(t)),e._getEncoder("der").tree },r.prototype._skipDefault=function(e,t,n){ var i,r=this._baseState; if(r.default===null)return!1; var o=e.join(); if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,t,n).join()),o.length!==r.defaultBuffer.length)return!1; for(i=0; i<o.length; i++)if(o[i]!==r.defaultBuffer[i])return!1; return!0;} },{"../../asn1":1,buffer:47,inherits:101}],13:[function(e,t,n){ var i=n; i.der=e("./der"),i.pem=e("./pem");},{"./der":12,"./pem":14}],14:[function(e,t,n){ function i(e){ o.call(this,e),this.enc="pem";}var r=e("inherits"),o=e("./der"); r(i,o),t.exports=i,i.prototype.encode=function(e,t){ for(var n=o.prototype.encode.call(this,e).toString("base64"),i=["-----BEGIN "+t.label+"-----"],r=0; r<n.length; r+=64)i.push(n.slice(r,r+64)); return i.push("-----END "+t.label+"-----"),i.join("\n") };},{"./der":12,inherits:101}],15:[function(e,t,n){ function i(e){ var t=e.length; if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4"); returne[t-2]==="="?2:e[t-1]==="="?1:0 }function r(e){ return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e] }function o(e,t,n){ for(var i,o=[],a=t; a<n; a+=3)i=(e[a]<<16)+(e[a+1]<<8)+e[a+2],o.push(r(i)); return o.join("");}n.byteLength=function(e){ return 3*e.length/4-i(e);},n.toByteArray=function(e){ var t,n,r,o,a,u=e.length; o=i(e),a=new c(3*u/4-o),n=o>0?u-4:u; var l=0; for(t=0; t<n; t+=4)r=s[e.charCodeAt(t)]<<18|s[e.charCodeAt(t+1)]<<12|s[e.charCodeAt(t+2)]<<6|s[e.charCodeAt(t+3)],a[l++]=r>>16&255,a[l++]=r>>8&255,a[l++]=255&r; return o===2?(r=s[e.charCodeAt(t)]<<2|s[e.charCodeAt(t+1)]>>4,a[l++]=255&r):o===1&&(r=s[e.charCodeAt(t)]<<10|s[e.charCodeAt(t+1)]<<4|s[e.charCodeAt(t+2)]>>2,a[l++]=r>>8&255,a[l++]=255&r),a;},n.fromByteArray=function(e){ for(var t,n=e.length,i=n%3,r="",s=[],c=0,u=n-i; c<u; c+=16383)s.push(o(e,c,c+16383>u?u:c+16383)); return i===1?(t=e[n-1],r+=a[t>>2],r+=a[t<<4&63],r+="=="):i===2&&(t=(e[n-2]<<8)+e[n-1],r+=a[t>>10],r+=a[t>>4&63],r+=a[t<<2&63],r+="="),s.push(r),s.join("");}; for(var a=[],s=[],c=typeof Uint8Array!="undefined"?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,f=u.length; l<f; ++l)a[l]=u[l],s[u.charCodeAt(l)]=l; s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63;},{}],16:[function(e,t,n){ function i(e){ this.rand=e }var r; if(t.exports=function(e){ return r||(r=new i(null)),r.generate(e) },t.exports.Rand=i,i.prototype.generate=function(e){ return this._rand(e) },i.prototype._rand=function(e){ if(this.rand.getBytes)return this.rand.getBytes(e); for(var t=new Uint8Array(e),n=0; n<t.length; n++)t[n]=this.rand.getByte(); return t },("undefined"==typeof self?"undefined":_typeof(self))==="object")self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){ var t=new Uint8Array(e); return self.crypto.getRandomValues(t),t }:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){ var t=new Uint8Array(e); return self.msCrypto.getRandomValues(t),t }:("undefined"==typeof window?"undefined":_typeof(window))==="object"&&(i.prototype._rand=function(){ throw new Error("Not implemented yet");}); else try{ var o=e("crypto"); if(typeof o.randomBytes!="function")throw new Error("Not supported"); i.prototype._rand=function(e){ return o.randomBytes(e) } }catch(e){} },{crypto:17}],17:[function(e,t,n){},{}],18:[function(e,t,n){ function i(e){ s.isBuffer(e)||(e=s.from(e)); for(var t=e.length/4|0,n=new Array(t),i=0; i<t; i++)n[i]=e.readUInt32BE(4*i); return n }function r(e){ for(;e.length>0; e++)e[0]=0 }function o(e,t,n,i,r){ for(var o,a,s,c,u=n[0],l=n[1],f=n[2],p=n[3],d=e[0]^t[0],h=e[1]^t[1],m=e[2]^t[2],v=e[3]^t[3],b=4,y=1; y<r; y++)o=u[d>>>24]^l[h>>>16&255]^f[m>>>8&255]^p[255&v]^t[b++],a=u[h>>>24]^l[m>>>16&255]^f[v>>>8&255]^p[255&d]^t[b++],s=u[m>>>24]^l[v>>>16&255]^f[d>>>8&255]^p[255&h]^t[b++],c=u[v>>>24]^l[d>>>16&255]^f[h>>>8&255]^p[255&m]^t[b++],d=o,h=a,m=s,v=c; return o=(i[d>>>24]<<24|i[h>>>16&255]<<16|i[m>>>8&255]<<8|i[255&v])^t[b++],a=(i[h>>>24]<<24|i[m>>>16&255]<<16|i[v>>>8&255]<<8|i[255&d])^t[b++],s=(i[m>>>24]<<24|i[v>>>16&255]<<16|i[d>>>8&255]<<8|i[255&h])^t[b++],c=(i[v>>>24]<<24|i[d>>>16&255]<<16|i[h>>>8&255]<<8|i[255&m])^t[b++],o>>>=0,a>>>=0,s>>>=0,c>>>=0,[o,a,s,c] }function a(e){ this._key=i(e),this._reset() }var s=e("safe-buffer").Buffer,c=[0,1,2,4,8,16,32,64,128,27,54],u=(function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],i=[],r=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,c=0;c<256;++c){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,n[a]=u,i[u]=a;var l=e[a],f=e[l],p=e[f],d=257*e[u]^16843008*u;r[0][a]=d<<24|d>>>8,r[1][a]=d<<16|d>>>16,r[2][a]=d<<8|d>>>24,r[3][a]=d,d=16843009*p^65537*f^257*l^16843008*a,o[0][u]=d<<24|d>>>8,o[1][u]=d<<16|d>>>16,o[2][u]=d<<8|d>>>24,o[3][u]=d,0===a?a=s=1:(a=l^e[e[e[p^l]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:i,SUB_MIX:r,INV_SUB_MIX:o}}()); a.blockSize=16,a.keySize=32,a.prototype.blockSize=a.blockSize,a.prototype.keySize=a.keySize,a.prototype._reset=function(){ for(var e=this._key,t=e.length,n=t+6,i=4*(n+1),r=[],o=0; o<t; o++)r[o]=e[o]; for(o=t; o<i; o++){ var a=r[o-1]; o%t==0?(a=a<<8|a>>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=c[o/t|0]<<24):t>6&&o%t==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),r[o]=r[o-t]^a }for(var s=[],l=0; l<i; l++){ var f=i-l,p=r[f-(l%4?0:4)]; s[l]=l<4||f<=4?p:u.INV_SUB_MIX[0][u.SBOX[p>>>24]]^u.INV_SUB_MIX[1][u.SBOX[p>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[p>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&p]];}this._nRounds=n,this._keySchedule=r,this._invKeySchedule=s },a.prototype.encryptBlockRaw=function(e){ return e=i(e),o(e,this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds);},a.prototype.encryptBlock=function(e){ var t=this.encryptBlockRaw(e),n=s.allocUnsafe(16); return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n },a.prototype.decryptBlock=function(e){ var t=(e=i(e))[1]; e[1]=e[3],e[3]=t; var n=o(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),r=s.allocUnsafe(16); return r.writeUInt32BE(n[0],0),r.writeUInt32BE(n[3],4),r.writeUInt32BE(n[2],8),r.writeUInt32BE(n[1],12),r },a.prototype.scrub=function(){ r(this._keySchedule),r(this._invKeySchedule),r(this._key);},t.exports.AES=a;},{"safe-buffer":144}],19:[function(e,t,n){ function i(e,t){ var n=0; e.length!==t.length&&n++; for(var i=Math.min(e.length,t.length),r=0; r<i; ++r)n+=e[r]^t[r]; return n;}function r(e,t,n,i){ s.call(this),this._finID=a.concat([n,a.from([0,0,0,1])]),n=a.concat([n,a.from([0,0,0,2])]),this._cipher=new o.AES(t),this._prev=a.from(n),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=i,this._alen=0,this._len=0,this._mode=e; var r=a.alloc(4,0); this._ghash=new u(this._cipher.encryptBlock(r)),this._authTag=null,this._called=!1 }var o=e("./aes"),a=e("safe-buffer").Buffer,s=e("cipher-base"),c=e("inherits"),u=e("./ghash"),l=e("buffer-xor"); c(r,s),r.prototype._update=function(e){ if(!this._called&&this._alen){ var t=16-this._alen%16; t<16&&(t=a.alloc(t,0),this._ghash.update(t));}this._called=!0; var n=this._mode.encrypt(this,e); return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n },r.prototype._final=function(){ if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data"); var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID)); if(this._decrypt&&i(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data"); this._authTag=e,this._cipher.scrub() },r.prototype.getAuthTag=function(){ if(this._decrypt||!a.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state"); return this._authTag },r.prototype.setAuthTag=function(e){ if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state"); this._authTag=e },r.prototype.setAAD=function(e){ if(this._called)throw new Error("Attempting to set AAD in unsupported state"); this._ghash.update(e),this._alen+=e.length },t.exports=r;},{"./aes":18,"./ghash":23,"buffer-xor":46,"cipher-base":48,inherits:101,"safe-buffer":144}],20:[function(e,t,n){ var i=e("./encrypter"),r=e("./decrypter"),o=e("./modes/list.json"); n.createCipher=n.Cipher=i.createCipher,n.createCipheriv=n.Cipheriv=i.createCipheriv,n.createDecipher=n.Decipher=r.createDecipher,n.createDecipheriv=n.Decipheriv=r.createDecipheriv,n.listCiphers=n.getCiphers=function(){ return Object.keys(o) } },{"./decrypter":21,"./encrypter":22,"./modes/list.json":31}],21:[function(e,t,n){ function i(e,t,n){ f.call(this),this._cache=new r,this._last=void 0,this._cipher=new p.AES(t),this._prev=c.from(n),this._mode=e,this._autopadding=!0;}function r(){ this.cache=c.allocUnsafe(0);}function o(e){ for(var t=e[15],n=-1; ++n<t;)if(e[n+(16-t)]!==t)throw new Error("unable to decrypt data"); if(t!==16)return e.slice(0,16-t) }function a(e,t,n){ var r=u[e.toLowerCase()]; if(!r)throw new TypeError("invalid suite type"); if(typeof n=="string"&&(n=c.from(n)),n.length!==r.iv)throw new TypeError("invalid iv length "+n.length); if(typeof t=="string"&&(t=c.from(t)),t.length!==r.key/8)throw new TypeError("invalid key length "+t.length); returnr.type==="stream"?new l(r.module,t,n,!0):r.type==="auth"?new s(r.module,t,n,!0):new i(r.module,t,n) }var s=e("./authCipher"),c=e("safe-buffer").Buffer,u=e("./modes"),l=e("./streamCipher"),f=e("cipher-base"),p=e("./aes"),d=e("evp_bytestokey"); e("inherits")(i,f),i.prototype._update=function(e){ this._cache.add(e); for(var t,n,i=[]; t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),i.push(n); return c.concat(i) },i.prototype._final=function(){ var e=this._cache.flush(); if(this._autopadding)return o(this._mode.decrypt(this,e)); if(e)throw new Error("data not multiple of block length");},i.prototype.setAutoPadding=function(e){ return this._autopadding=Boolean(e),this;},r.prototype.add=function(e){ this.cache=c.concat([this.cache,e]);},r.prototype.get=function(e){ var t; if(e){ if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t }else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t; return null },r.prototype.flush=function(){ if(this.cache.length)return this.cache;},n.createDecipher=function(e,t){ var n=u[e.toLowerCase()]; if(!n)throw new TypeError("invalid suite type"); var i=d(t,!1,n.key,n.iv); return a(e,i.key,i.iv) },n.createDecipheriv=a },{"./aes":18,"./authCipher":19,"./modes":30,"./streamCipher":33,"cipher-base":48,evp_bytestokey:84,inherits:101,"safe-buffer":144}],22:[function(e,t,n){ function i(e,t,n){ l.call(this),this._cache=new r,this._cipher=new f.AES(t),this._prev=c.from(n),this._mode=e,this._autopadding=!0 }function r(){ this.cache=c.allocUnsafe(0) }function o(e,t,n){ var r=a[e.toLowerCase()]; if(!r)throw new TypeError("invalid suite type"); if(typeof t=="string"&&(t=c.from(t)),t.length!==r.key/8)throw new TypeError("invalid key length "+t.length); if(typeof n=="string"&&(n=c.from(n)),n.length!==r.iv)throw new TypeError("invalid iv length "+n.length); returnr.type==="stream"?new u(r.module,t,n):r.type==="auth"?new s(r.module,t,n):new i(r.module,t,n) }var a=e("./modes"),s=e("./authCipher"),c=e("safe-buffer").Buffer,u=e("./streamCipher"),l=e("cipher-base"),f=e("./aes"),p=e("evp_bytestokey"); e("inherits")(i,l),i.prototype._update=function(e){ this._cache.add(e); for(var t,n,i=[]; t=this._cache.get();)n=this._mode.encrypt(this,t),i.push(n); return c.concat(i) }; var d=c.alloc(16,16); i.prototype._final=function(){ var e=this._cache.flush(); if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e; if(!e.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length");},i.prototype.setAutoPadding=function(e){ return this._autopadding=Boolean(e),this },r.prototype.add=function(e){ this.cache=c.concat([this.cache,e]);},r.prototype.get=function(){ if(this.cache.length>15){ var e=this.cache.slice(0,16); return this.cache=this.cache.slice(16),e;}return null },r.prototype.flush=function(){ for(var e=16-this.cache.length,t=c.allocUnsafe(e),n=-1; ++n<e;)t.writeUInt8(e,n); return c.concat([this.cache,t]) },n.createCipheriv=o,n.createCipher=function(e,t){ var n=a[e.toLowerCase()]; if(!n)throw new TypeError("invalid suite type"); var i=p(t,!1,n.key,n.iv); return o(e,i.key,i.iv) } },{"./aes":18,"./authCipher":19,"./modes":30,"./streamCipher":33,"cipher-base":48,evp_bytestokey:84,inherits:101,"safe-buffer":144}],23:[function(e,t,n){ function i(e){ return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)] }function r(e){ var t=a.allocUnsafe(16); return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t }function o(e){ this.h=e,this.state=a.alloc(16,0),this.cache=a.allocUnsafe(0) }var a=e("safe-buffer").Buffer,s=a.alloc(16,0); o.prototype.ghash=function(e){ for(var t=-1; ++t<e.length;)this.state[t]^=e[t]; this._multiply();},o.prototype._multiply=function(){ for(var e,t,n=i(this.h),o=[0,0,0,0],a=-1; ++a<128;){ for((this.state[~~(a/8)]&1<<7-a%8)!=0&&(o[0]^=n[0],o[1]^=n[1],o[2]^=n[2],o[3]^=n[3]),t=(1&n[3])!=0,e=3; e>0; e--)n[e]=n[e]>>>1|(1&n[e-1])<<31; n[0]=n[0]>>>1,t&&(n[0]=n[0]^225<<24);}this.state=r(o) },o.prototype.update=function(e){ this.cache=a.concat([this.cache,e]); for(var t; this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t);},o.prototype.final=function(e,t){ return this.cache.length&&this.ghash(a.concat([this.cache,s],16)),this.ghash(r([0,e,0,t])),this.state;},t.exports=o;},{"safe-buffer":144}],24:[function(e,t,n){ var i=e("buffer-xor"); n.encrypt=function(e,t){ var n=i(t,e._prev); return e._prev=e._cipher.encryptBlock(n),e._prev },n.decrypt=function(e,t){ var n=e._prev; e._prev=t; var r=e._cipher.decryptBlock(t); return i(r,n);};},{"buffer-xor":46}],25:[function(e,t,n){ function i(e,t,n){ var i=t.length,a=o(t,e._cache); return e._cache=e._cache.slice(i),e._prev=r.concat([e._prev,n?t:a]),a;}var r=e("safe-buffer").Buffer,o=e("buffer-xor"); n.encrypt=function(e,t,n){ for(var o,a=r.allocUnsafe(0); t.length;){ if(e._cache.length===0&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){ a=r.concat([a,i(e,t,n)]); break }o=e._cache.length,a=r.concat([a,i(e,t.slice(0,o),n)]),t=t.slice(o);}return a;} },{"buffer-xor":46,"safe-buffer":144}],26:[function(e,t,n){ function i(e,t,n){ for(var i,o,a,s=-1,c=0; ++s<8;)i=e._cipher.encryptBlock(e._prev),o=t&1<<7-s?128:0,c+=(128&(a=i[0]^o))>>s%8,e._prev=r(e._prev,n?o:a); return c }function r(e,t){ var n=e.length,i=-1,r=o.allocUnsafe(e.length); for(e=o.concat([e,o.from([t])]); ++i<n;)r[i]=e[i]<<1|e[i+1]>>7; return r }var o=e("safe-buffer").Buffer; n.encrypt=function(e,t,n){ for(var r=t.length,a=o.allocUnsafe(r),s=-1; ++s<r;)a[s]=i(e,t[s],n); return a;};},{"safe-buffer":144}],27:[function(e,t,n){ (function(e){ function t(t,n,i){ var r=t._cipher.encryptBlock(t._prev)[0]^n; return t._prev=e.concat([t._prev.slice(1),e.from([i?n:r])]),r }n.encrypt=function(n,i,r){ for(var o=i.length,a=e.allocUnsafe(o),s=-1; ++s<o;)a[s]=t(n,i[s],r); return a } }).call(this,e("buffer").Buffer) },{buffer:47}],28:[function(e,t,n){ (function(t){ function i(e){ for(var t,n=e.length; n--;){ if((t=e.readUInt8(n))!==255){ t++,e.writeUInt8(t,n); break;}e.writeUInt8(0,n) } }function r(e){ var t=e._cipher.encryptBlockRaw(e._prev); return i(e._prev),t }var o=e("buffer-xor"); n.encrypt=function(e,n){ var i=Math.ceil(n.length/16),a=e._cache.length; e._cache=t.concat([e._cache,t.allocUnsafe(16*i)]); for(var s=0; s<i; s++){ var c=r(e),u=a+16*s; e._cache.writeUInt32BE(c[0],u+0),e._cache.writeUInt32BE(c[1],u+4),e._cache.writeUInt32BE(c[2],u+8),e._cache.writeUInt32BE(c[3],u+12) }var l=e._cache.slice(0,n.length); return e._cache=e._cache.slice(n.length),o(n,l);} }).call(this,e("buffer").Buffer) },{buffer:47,"buffer-xor":46}],29:[function(e,t,n){ n.encrypt=function(e,t){ return e._cipher.encryptBlock(t) },n.decrypt=function(e,t){ return e._cipher.decryptBlock(t) } },{}],30:[function(e,t,n){ var i={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},r=e("./list.json"); for(var o in r)r[o].module=i[r[o].mode]; t.exports=r;},{"./cbc":24,"./cfb":25,"./cfb1":26,"./cfb8":27,"./ctr":28,"./ecb":29,"./list.json":31,"./ofb":32}],31:[function(e,t,n){ t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};},{}],32:[function(e,t,n){ (function(t){ function i(e){ return e._prev=e._cipher.encryptBlock(e._prev),e._prev;}var r=e("buffer-xor"); n.encrypt=function(e,n){ for(;e._cache.length<n.length;)e._cache=t.concat([e._cache,i(e)]); var o=e._cache.slice(0,n.length); return e._cache=e._cache.slice(n.length),r(n,o);};}).call(this,e("buffer").Buffer);},{buffer:47,"buffer-xor":46}],33:[function(e,t,n){ function i(e,t,n,i){ a.call(this),this._cipher=new r.AES(t),this._prev=o.from(n),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=i,this._mode=e }var r=e("./aes"),o=e("safe-buffer").Buffer,a=e("cipher-base"); e("inherits")(i,a),i.prototype._update=function(e){ return this._mode.encrypt(this,e,this._decrypt);},i.prototype._final=function(){ this._cipher.scrub();},t.exports=i;},{"./aes":18,"cipher-base":48,inherits:101,"safe-buffer":144}],34:[function(e,t,n){ function i(e,t,n){ if(e=e.toLowerCase(),u[e])return a.createCipheriv(e,t,n); if(c[e])return new s({key:t,iv:n,mode:e}); throw new TypeError("invalid suite type");}function r(e,t,n){ if(e=e.toLowerCase(),u[e])return a.createDecipheriv(e,t,n); if(c[e])return new s({key:t,iv:n,mode:e,decrypt:!0}); throw new TypeError("invalid suite type");}var o=e("evp_bytestokey"),a=e("browserify-aes/browser"),s=e("browserify-des"),c=e("browserify-des/modes"),u=e("browserify-aes/modes"); n.createCipher=n.Cipher=function(e,t){ var n,r; if(e=e.toLowerCase(),u[e])n=u[e].key,r=u[e].iv; else{ if(!c[e])throw new TypeError("invalid suite type"); n=8*c[e].key,r=c[e].iv;}var a=o(t,!1,n,r); return i(e,a.key,a.iv) },n.createCipheriv=n.Cipheriv=i,n.createDecipher=n.Decipher=function(e,t){ var n,i; if(e=e.toLowerCase(),u[e])n=u[e].key,i=u[e].iv; else{ if(!c[e])throw new TypeError("invalid suite type"); n=8*c[e].key,i=c[e].iv }var a=o(t,!1,n,i); return r(e,a.key,a.iv);},n.createDecipheriv=n.Decipheriv=r,n.listCiphers=n.getCiphers=function(){ return Object.keys(c).concat(a.getCiphers());};},{"browserify-aes/browser":20,"browserify-aes/modes":30,"browserify-des":35,"browserify-des/modes":36,evp_bytestokey:84}],35:[function(e,t,n){ (function(n){ function i(e){ r.call(this); var t,i=e.mode.toLowerCase(),o=s[i]; t=e.decrypt?"decrypt":"encrypt"; var a=e.key; "des-ede"!==i&&i!=="des-ede-cbc"||(a=n.concat([a,a.slice(0,8)])); var c=e.iv; this._des=o.create({key:a,iv:c,type:t}) }var r=e("cipher-base"),o=e("des.js"),a=e("inherits"),s={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES}; s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=i,a(i,r),i.prototype._update=function(e){ return new n(this._des.update(e));},i.prototype._final=function(){ return new n(this._des.final()) };}).call(this,e("buffer").Buffer) },{buffer:47,"cipher-base":48,"des.js":57,inherits:101}],36:[function(e,t,n){ n["des-ecb"]={key:8,iv:0},n["des-cbc"]=n.des={key:8,iv:8},n["des-ede3-cbc"]=n.des3={key:24,iv:8},n["des-ede3"]={key:24,iv:0},n["des-ede-cbc"]={key:16,iv:8},n["des-ede"]={key:16,iv:0} },{}],37:[function(e,t,n){ (function(n){ function i(e){ var t=o(e); return{blinder:t.toRed(a.mont(e.modulus)).redPow(new a(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)};}function r(e,t){ var r=i(t),o=t.modulus.byteLength(),s=(a.mont(t.modulus),new a(e).mul(r.blinder).umod(t.modulus)),c=s.toRed(a.mont(t.prime1)),u=s.toRed(a.mont(t.prime2)),l=t.coefficient,f=t.prime1,p=t.prime2,d=c.redPow(t.exponent1),h=u.redPow(t.exponent2); d=d.fromRed(),h=h.fromRed(); var m=d.isub(h).imul(l).umod(f); return m.imul(p),h.iadd(m),new n(h.imul(r.unblinder).umod(t.modulus).toArray(!1,o)) }function o(e){ for(var t=e.modulus.byteLength(),n=new a(s(t)); n.cmp(e.modulus)>=0||!n.umod(e.prime1)||!n.umod(e.prime2);)n=new a(s(t)); return n;}var a=e("bn.js"),s=e("randombytes"); t.exports=r,r.getr=o;}).call(this,e("buffer").Buffer);},{"bn.js":"BN",buffer:47,randombytes:127}],38:[function(e,t,n){ t.exports=e("./browser/algorithms.json");},{"./browser/algorithms.json":39}],39:[function(e,t,n){ t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}} },{}],40:[function(e,t,n){ t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"};},{}],41:[function(e,t,n){ (function(n){ function i(e){ c.Writable.call(this); var t=p[e]; if(!t)throw new Error("Unknown message digest"); this._hashType=t.hash,this._hash=s(t.hash),this._tag=t.id,this._signType=t.sign;}function r(e){ c.Writable.call(this); var t=p[e]; if(!t)throw new Error("Unknown message digest"); this._hash=s(t.hash),this._tag=t.id,this._signType=t.sign;}function o(e){ return new i(e);}function a(e){ return new r(e);}var s=e("create-hash"),c=e("stream"),u=e("inherits"),l=e("./sign"),f=e("./verify"),p=e("./algorithms.json"); Object.keys(p).forEach(function(e){ p[e].id=new n(p[e].id,"hex"),p[e.toLowerCase()]=p[e] }),u(i,c.Writable),i.prototype._write=function(e,t,n){ this._hash.update(e),n();},i.prototype.update=function(e,t){ returntypeof e=="string"&&(e=new n(e,t)),this._hash.update(e),this;},i.prototype.sign=function(e,t){ this.end(); var n=this._hash.digest(),i=l(n,e,this._hashType,this._signType,this._tag); return t?i.toString(t):i },u(r,c.Writable),r.prototype._write=function(e,t,n){ this._hash.update(e),n() },r.prototype.update=function(e,t){ returntypeof e=="string"&&(e=new n(e,t)),this._hash.update(e),this;},r.prototype.verify=function(e,t,i){ "string"==typeof t&&(t=new n(t,i)),this.end(); var r=this._hash.digest(); return f(t,r,e,this._signType,this._tag);},t.exports={Sign:o,Verify:a,createSign:o,createVerify:a} }).call(this,e("buffer").Buffer) },{"./algorithms.json":39,"./sign":42,"./verify":43,buffer:47,"create-hash":51,inherits:101,stream:155}],42:[function(e,t,n){ (function(n){ function i(e,t){ var i=v[t.curve.join(".")]; if(!i)throw new Error("unknown curve "+t.curve.join(".")); var r=new d(i).keyFromPrivate(t.privateKey).sign(e); return new n(r.toDER());}function r(e,t,n){ for(var i,r=t.params.priv_key,c=t.params.p,f=t.params.q,p=t.params.g,d=new h(0),m=s(e,f).mod(f),v=!1,b=a(r,f,e,n); !1===v;)d=l(p,i=u(f,b,n),c,f),(v=i.invm(f).imul(m.add(r.mul(d))).mod(f)).cmpn(0)===0&&(v=!1,d=new h(0)); return o(d,v) }function o(e,t){ e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t)); var i=[48,e.length+t.length+4,2,e.length]; return i=i.concat(e,[2,t.length],t),new n(i);}function a(e,t,i,r){ if((e=new n(e.toArray())).length<t.byteLength()){ var o=new n(t.byteLength()-e.length); o.fill(0),e=n.concat([o,e]) }var a=i.length,s=c(i,t),u=new n(a); u.fill(1); var l=new n(a); return l.fill(0),l=f(r,l).update(u).update(new n([0])).update(e).update(s).digest(),u=f(r,l).update(u).digest(),l=f(r,l).update(u).update(new n([1])).update(e).update(s).digest(),u=f(r,l).update(u).digest(),{k:l,v:u} }function s(e,t){ var n=new h(e),i=(e.length<<3)-t.bitLength(); return i>0&&n.ishrn(i),n }function c(e,t){ e=(e=s(e,t)).mod(t); var i=new n(e.toArray()); if(i.length<t.byteLength()){ var r=new n(t.byteLength()-i.length); r.fill(0),i=n.concat([r,i]);}return i;}function u(e,t,i){ var r,o; do{ for(r=new n(0); 8*r.length<e.bitLength();)t.v=f(i,t.k).update(t.v).digest(),r=n.concat([r,t.v]); o=s(r,e),t.k=f(i,t.k).update(t.v).update(new n([0])).digest(),t.v=f(i,t.k).update(t.v).digest() }while(o.cmp(e)!==-1);return o }function l(e,t,n,i){ return e.toRed(h.mont(n)).redPow(t).fromRed().mod(i);}var f=e("create-hmac"),p=e("browserify-rsa"),d=e("elliptic").ec,h=e("bn.js"),m=e("parse-asn1"),v=e("./curves.json"); t.exports=function(e,t,o,a,s){ var c=m(t); if(c.curve){ if(a!=="ecdsa"&&a!=="ecdsa/rsa")throw new Error("wrong private key type"); return i(e,c);}if(c.type==="dsa"){ if(a!=="dsa")throw new Error("wrong private key type"); return r(e,c,o);}if(a!=="rsa"&&a!=="ecdsa/rsa")throw new Error("wrong private key type"); e=n.concat([s,e]); for(var u=c.modulus.byteLength(),l=[0,1]; e.length+l.length+1<u;)l.push(255); l.push(0); for(var f=-1; ++f<e.length;)l.push(e[f]); return p(l,c);},t.exports.getKey=a,t.exports.makeKey=u;}).call(this,e("buffer").Buffer) },{"./curves.json":40,"bn.js":"BN","browserify-rsa":37,buffer:47,"create-hmac":54,elliptic:67,"parse-asn1":112}],43:[function(e,t,n){ (function(n){ function i(e,t,n){ var i=u[n.data.algorithm.curve.join(".")]; if(!i)throw new Error("unknown curve "+n.data.algorithm.curve.join(".")); var r=new s(i),o=n.data.subjectPrivateKey.data; return r.verify(t,e,o) }function r(e,t,n){ var i=n.data.p,r=n.data.q,s=n.data.g,u=n.data.pub_key,l=c.signature.decode(e,"der"),f=l.s,p=l.r; o(f,r),o(p,r); var d=a.mont(i),h=f.invm(r); return s.toRed(d).redPow(new a(t).mul(h).mod(r)).fromRed().mul(u.toRed(d).redPow(p.mul(h).mod(r)).fromRed()).mod(i).mod(r).cmp(p)===0}function o(e,t){ if(e.cmpn(0)<=0)throw new Error("invalid sig"); if(e.cmp(t)>=t)throw new Error("invalid sig");}var a=e("bn.js"),s=e("elliptic").ec,c=e("parse-asn1"),u=e("./curves.json"); t.exports=function(e,t,o,s,u){ var l=c(o); if(l.type==="ec"){ if(s!=="ecdsa"&&s!=="ecdsa/rsa")throw new Error("wrong public key type"); return i(e,t,l) }if(l.type==="dsa"){ if(s!=="dsa")throw new Error("wrong public key type"); return r(e,t,l);}if(s!=="rsa"&&s!=="ecdsa/rsa")throw new Error("wrong public key type"); t=n.concat([u,t]); for(var f=l.modulus.byteLength(),p=[1],d=0; t.length+p.length+2<f;)p.push(255),d++; p.push(0); for(var h=-1; ++h<t.length;)p.push(t[h]); p=new n(p); var m=a.mont(l.modulus); e=(e=new a(e).toRed(m)).redPow(new a(l.publicExponent)),e=new n(e.fromRed().toArray()); var v=d<8?1:0; for(f=Math.min(e.length,p.length),e.length!==p.length&&(v=1),h=-1; ++h<f;)v|=e[h]^p[h]; return v===0};}).call(this,e("buffer").Buffer) },{"./curves.json":40,"bn.js":"BN",buffer:47,elliptic:67,"parse-asn1":112}],44:[function(e,t,n){ arguments[4][17][0].apply(n,arguments) },{dup:17}],45:[function(e,t,n){ function i(e){ if(!e)return"utf8"; for(var t; ;)switch(e){ case"utf8": case"utf-8": return"utf8"; case"ucs2": case"ucs-2": case"utf16le": case"utf-16le": return"utf16le"; case"latin1": case"binary": return"latin1"; case"base64": case"ascii": case"hex": return e; default: if(t)return; e=(String(e)).toLowerCase(),t=!0;} }function r(e){ var t=i(e); if(typeof t!="string"&&(v.isEncoding===b||!b(e)))throw new Error("Unknown encoding: "+e); return t||e }function o(e){ this.encoding=r(e); var t; switch(this.encoding){ case"utf16le": this.text=l,this.end=f,t=4; break; case"utf8": this.fillLast=u,t=4; break; case"base64": this.text=p,this.end=d,t=3; break; default: return this.write=h,void (this.end=m) }this.lastNeed=0,this.lastTotal=0,this.lastChar=v.allocUnsafe(t);}function a(e){ return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1;}function s(e,t,n){ var i=t.length-1; if(i<n)return 0; var r=a(t[i]); return r>=0?(r>0&&(e.lastNeed=r-1),r):--i<n?0:(r=a(t[i]))>=0?(r>0&&(e.lastNeed=r-2),r):--i<n?0:(r=a(t[i]))>=0?(r>0&&(r===2?r=0:e.lastNeed=r-3),r):0;}function c(e,t,n){ if((192&t[0])!=128)return e.lastNeed=0,"<22>".repeat(n); if(e.lastNeed>1&&t.length>1){ if((192&t[1])!=128)return e.lastNeed=1,"<22>".repeat(n+1); if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"<22>".repeat(n+2);} }function u(e){ var t=this.lastTotal-this.lastNeed,n=c(this,e,t); return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void (this.lastNeed-=e.length)) }function l(e,t){ if((e.length-t)%2==0){ var n=e.toString("utf16le",t); if(n){ var i=n.charCodeAt(n.length-1); if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1) }return n }return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);}function f(e){ var t=e&&e.length?this.write(e):""; if(this.lastNeed){ var n=this.lastTotal-this.lastNeed; return t+this.lastChar.toString("utf16le",0,n);}return t }function p(e,t){ var n=(e.length-t)%3; return n===0?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n));}function d(e){ var t=e&&e.length?this.write(e):""; return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t;}function h(e){ return e.toString(this.encoding);}function m(e){ return e&&e.length?this.write(e):"" }var v=e("safe-buffer").Buffer,b=v.isEncoding||function(e){ switch((e=String(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;} }; n.StringDecoder=o,o.prototype.write=function(e){ if(e.length===0)return""; var t,n; if(this.lastNeed){ if(void 0===(t=this.fillLast(e)))return""; n=this.lastNeed,this.lastNeed=0;}else n=0; return n<e.length?t?t+this.text(e,n):this.text(e,n):t||"";},o.prototype.end=function(e){ var t=e&&e.length?this.write(e):""; return this.lastNeed?t+"<22>".repeat(this.lastTotal-this.lastNeed):t },o.prototype.text=function(e,t){ var n=s(this,e,t); if(!this.lastNeed)return e.toString("utf8",t); this.lastTotal=n; var i=e.length-(n-this.lastNeed); return e.copy(this.lastChar,0,i),e.toString("utf8",t,i) },o.prototype.fillLast=function(e){ if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal); e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length };},{"safe-buffer":144}],46:[function(e,t,n){ (function(e){ t.exports=function(t,n){ for(var i=Math.min(t.length,n.length),r=new e(i),o=0; o<i; ++o)r[o]=t[o]^n[o]; return r } }).call(this,e("buffer").Buffer) },{buffer:47}],47:[function(e,t,n){ function i(e){ if(e>$)throw new RangeError("Invalid typed array length"); var t=new Uint8Array(e); return t.__proto__=r.prototype,t }function r(e,t,n){ if(typeof e=="number"){ if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string"); return c(e);}return o(e,t,n);}function o(e,t,n){ if(typeof e=="number")throw new TypeError('"value" argument must not be a number'); return V(e)?f(e,t,n):typeof e=="string"?u(e,t):p(e);}function a(e){ if(typeof e!="number")throw new TypeError('"size" argument must be a number'); if(e<0)throw new RangeError('"size" argument must not be negative');}function s(e,t,n){ return a(e),e<=0?i(e):void 0!==t?typeof n=="string"?i(e).fill(t,n):i(e).fill(t):i(e) }function c(e){ return a(e),i(e<0?0:0|d(e)) }function u(e,t){ if(typeof t=="string"&&t!==""||(t="utf8"),!r.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding'); var n=0|h(e,t),o=i(n),a=o.write(e,t); return a!==n&&(o=o.slice(0,a)),o }function l(e){ for(var t=e.length<0?0:0|d(e.length),n=i(t),r=0; r<t; r+=1)n[r]=255&e[r]; return n }function f(e,t,n){ if(t<0||e.byteLength<t)throw new RangeError("'offset' is out of bounds"); if(e.byteLength<t+(n||0))throw new RangeError("'length' is out of bounds"); var i; return i=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),i.__proto__=r.prototype,i;}function p(e){ if(r.isBuffer(e)){ var t=0|d(e.length),n=i(t); return n.length===0?n:(e.copy(n,0,0,t),n) }if(e){ if(K(e)||"length"in e)returntypeof e.length!="number"||W(e.length)?i(0):l(e); if(e.type==="Buffer"&&Array.isArray(e.data))return l(e.data);}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.") }function d(e){ if(e>=$)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+$.toString(16)+" bytes"); return 0|e;}function h(e,t){ if(r.isBuffer(e))return e.length; if(K(e)||V(e))return e.byteLength; "string"!=typeof e&&(e=String(e)); var n=e.length; if(n===0)return 0; for(var i=!1; ;)switch(t){ case"ascii": case"latin1": case"binary": return n; case"utf8": case"utf-8": case void 0: return L(e).length; case"ucs2": case"ucs-2": case"utf16le": case"utf-16le": return 2*n; case"hex": return n>>>1; case"base64": return U(e).length; default: if(i)return L(e).length; t=(String(t)).toLowerCase(),i=!0 } }function m(e,t,n){ var i=!1; if((void 0===t||t<0)&&(t=0),t>this.length)return""; if((void 0===n||n>this.length)&&(n=this.length),n<=0)return""; if(n>>>=0,t>>>=0,n<=t)return""; for(e||(e="utf8"); ;)switch(e){ case"hex": return T(this,t,n); case"utf8": case"utf-8": return E(this,t,n); case"ascii": return C(this,t,n); case"latin1": case"binary": return M(this,t,n); case"base64": return S(this,t,n); case"ucs2": case"ucs-2": case"utf16le": case"utf-16le": return P(this,t,n); default: if(i)throw new TypeError("Unknown encoding: "+e); e=(String(e)).toLowerCase(),i=!0 } }function v(e,t,n){ var i=e[t]; e[t]=e[n],e[n]=i }function b(e,t,n,i,o){ if(e.length===0)return-1; if(typeof n=="string"?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=Number(n),W(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){ if(o)return-1; n=e.length-1 }else if(n<0){ if(!o)return-1; n=0;}if(typeof t=="string"&&(t=r.from(t,i)),r.isBuffer(t))return t.length===0?-1:y(e,t,n,i,o); if(typeof t=="number")return t&=255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,i,o); throw new TypeError("val must be string, number or Buffer");}function y(e,t,n,i,r){ function o(e,t){ return a===1?e[t]:e.readUInt16BE(t*a);}var a=1,s=e.length,c=t.length; if(void 0!==i&&((i=String(i).toLowerCase())==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){ if(e.length<2||t.length<2)return-1; a=2,s/=2,c/=2,n/=2 }var u; if(r){ var l=-1; for(u=n; u<s; u++)if(o(e,u)===o(t,l===-1?0:u-l)){ if(l===-1&&(l=u),u-l+1===c)return l*a;}elsel!==-1&&(u-=u-l),l=-1 }else for(n+c>s&&(n=s-c),u=n; u>=0; u--){ for(var f=!0,p=0; p<c; p++)if(o(e,u+p)!==o(t,p)){ f=!1; break;}if(f)return u }return-1 }function g(e,t,n,i){ n=Number(n)||0; var r=e.length-n; i?(i=Number(i))>r&&(i=r):i=r; var o=t.length; if(o%2!=0)throw new TypeError("Invalid hex string"); i>o/2&&(i=o/2); for(var a=0; a<i; ++a){ var s=parseInt(t.substr(2*a,2),16); if(W(s))return a; e[n+a]=s;}return a;}function _(e,t,n,i){ return H(L(t,e.length-n),e,n,i) }function x(e,t,n,i){ return H(q(t),e,n,i) }function w(e,t,n,i){ return x(e,t,n,i);}function k(e,t,n,i){ return H(U(t),e,n,i) }function j(e,t,n,i){ return H(z(t,e.length-n),e,n,i);}function S(e,t,n){ return t===0&&n===e.length?X.fromByteArray(e):X.fromByteArray(e.slice(t,n)) }function E(e,t,n){ n=Math.min(e.length,n); for(var i=[],r=t; r<n;){ var o=e[r],a=null,s=o>239?4:o>223?3:o>191?2:1; if(r+s<=n){ var c,u,l,f; switch(s){ case 1: o<128&&(a=o); break; case 2: 128==(192&(c=e[r+1]))&&(f=(31&o)<<6|63&c)>127&&(a=f); break; case 3: c=e[r+1],u=e[r+2],(192&c)==128&&(192&u)==128&&(f=(15&o)<<12|(63&c)<<6|63&u)>2047&&(f<55296||f>57343)&&(a=f); break; case 4: c=e[r+1],u=e[r+2],l=e[r+3],(192&c)==128&&(192&u)==128&&(192&l)==128&&(f=(15&o)<<18|(63&c)<<12|(63&u)<<6|63&l)>65535&&f<1114112&&(a=f);} }a===null?(a=65533,s=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|1023&a),i.push(a),r+=s }return A(i) }function A(e){ var t=e.length; if(t<=J)return String.fromCharCode.apply(String,e); for(var n="",i=0; i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=J)); return n;}function C(e,t,n){ var i=""; n=Math.min(e.length,n); for(var r=t; r<n; ++r)i+=String.fromCharCode(127&e[r]); return i }function M(e,t,n){ var i=""; n=Math.min(e.length,n); for(var r=t; r<n; ++r)i+=String.fromCharCode(e[r]); return i;}function T(e,t,n){ var i=e.length; (!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i); for(var r="",o=t; o<n; ++o)r+=D(e[o]); return r;}function P(e,t,n){ for(var i=e.slice(t,n),r="",o=0; o<i.length; o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]); return r;}function F(e,t,n){ if(e%1!=0||e<0)throw new RangeError("offset is not uint"); if(e+t>n)throw new RangeError("Trying to access beyond buffer length");}function I(e,t,n,i,o,a){ if(!r.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance'); if(t>o||t<a)throw new RangeError('"value" argument is out of bounds'); if(n+i>e.length)throw new RangeError("Index out of range");}function B(e,t,n,i,r,o){ if(n+i>e.length)throw new RangeError("Index out of range"); if(n<0)throw new RangeError("Index out of range");}function R(e,t,n,i,r){ return t=Number(t),n>>>=0,r||B(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),G.write(e,t,n,i,23,4),n+4 }function O(e,t,n,i,r){ return t=Number(t),n>>>=0,r||B(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),G.write(e,t,n,i,52,8),n+8 }function N(e){ if((e=e.trim().replace(Q,"")).length<2)return""; for(;e.length%4!=0;)e+="="; return e;}function D(e){ return e<16?"0"+e.toString(16):e.toString(16);}function L(e,t){ t=t||1/0; for(var n,i=e.length,r=null,o=[],a=0; a<i; ++a){ if((n=e.charCodeAt(a))>55295&&n<57344){ if(!r){ if(n>56319){ (t-=3)>-1&&o.push(239,191,189); continue;}if(a+1===i){ (t-=3)>-1&&o.push(239,191,189); continue;}r=n; continue }if(n<56320){ (t-=3)>-1&&o.push(239,191,189),r=n; continue }n=65536+(r-55296<<10|n-56320) }else r&&(t-=3)>-1&&o.push(239,191,189); if(r=null,n<128){ if((t-=1)<0)break; o.push(n);}else if(n<2048){ if((t-=2)<0)break; o.push(n>>6|192,63&n|128) }else if(n<65536){ if((t-=3)<0)break; o.push(n>>12|224,n>>6&63|128,63&n|128);}else{ if(!(n<1114112))throw new Error("Invalid code point"); if((t-=4)<0)break; o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128);} }return o }function q(e){ for(var t=[],n=0; n<e.length; ++n)t.push(255&e.charCodeAt(n)); return t;}function z(e,t){ for(var n,i,r,o=[],a=0; a<e.length&&!((t-=2)<0); ++a)i=(n=e.charCodeAt(a))>>8,r=n%256,o.push(r),o.push(i); return o;}function U(e){ return X.toByteArray(N(e));}function H(e,t,n,i){ for(var r=0; r<i&&!(r+n>=t.length||r>=e.length); ++r)t[r+n]=e[r]; return r }function V(e){ return e instanceof ArrayBuffer||e!=null&&e.constructor!=null&&e.constructor.name==="ArrayBuffer"&&typeof e.byteLength=="number"}function K(e){ returntypeof ArrayBuffer.isView=="function"&&ArrayBuffer.isView(e);}function W(e){ return e!==e }var X=e("base64-js"),G=e("ieee754"); n.Buffer=r,n.SlowBuffer=function(e){ return Number(e)!=e&&(e=0),r.alloc(Number(e));},n.INSPECT_MAX_BYTES=50; var $=2147483647; n.kMaxLength=$,r.TYPED_ARRAY_SUPPORT=(function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}()),r.TYPED_ARRAY_SUPPORT||typeof console=="undefined"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),typeof Symbol!="undefined"&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),r.poolSize=8192,r.from=function(e,t,n){ return o(e,t,n) },r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,r.alloc=function(e,t,n){ return s(e,t,n) },r.allocUnsafe=function(e){ return c(e) },r.allocUnsafeSlow=function(e){ return c(e) },r.isBuffer=function(e){ return e!=null&&!0===e._isBuffer },r.compare=function(e,t){ if(!r.isBuffer(e)||!r.isBuffer(t))throw new TypeError("Arguments must be Buffers"); if(e===t)return 0; for(var n=e.length,i=t.length,o=0,a=Math.min(n,i); o<a; ++o)if(e[o]!==t[o]){ n=e[o],i=t[o]; break }return n<i?-1:i<n?1:0;},r.isEncoding=function(e){ switch(String(e).toLowerCase()){ case"hex": case"utf8": case"utf-8": case"ascii": case"latin1": case"binary": case"base64": case"ucs2": case"ucs-2": case"utf16le": case"utf-16le": return!0; default: return!1;} },r.concat=function(e,t){ if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers'); if(e.length===0)return r.alloc(0); var n; if(void 0===t)for(t=0,n=0; n<e.length; ++n)t+=e[n].length; var i=r.allocUnsafe(t),o=0; for(n=0; n<e.length; ++n){ var a=e[n]; if(!r.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers'); a.copy(i,o),o+=a.length }return i;},r.byteLength=h,r.prototype._isBuffer=!0,r.prototype.swap16=function(){ var e=this.length; if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits"); for(var t=0; t<e; t+=2)v(this,t,t+1); return this;},r.prototype.swap32=function(){ var e=this.length; if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits"); for(var t=0; t<e; t+=4)v(this,t,t+3),v(this,t+1,t+2); return this;},r.prototype.swap64=function(){ var e=this.length; if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits"); for(var t=0; t<e; t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4); return this },r.prototype.toString=function(){ var e=this.length; return e===0?"":arguments.length===0?E(this,0,e):m.apply(this,arguments);},r.prototype.equals=function(e){ if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer"); return this===e||r.compare(this,e)===0},r.prototype.inspect=function(){ var e="",t=n.INSPECT_MAX_BYTES; return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">";},r.prototype.compare=function(e,t,n,i,o){ if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer"); if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),t<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index"); if(i>=o&&t>=n)return 0; if(i>=o)return-1; if(t>=n)return 1; if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0; for(var a=o-i,s=n-t,c=Math.min(a,s),u=this.slice(i,o),l=e.slice(t,n),f=0; f<c; ++f)if(u[f]!==l[f]){ a=u[f],s=l[f]; break;}return a<s?-1:s<a?1:0;},r.prototype.includes=function(e,t,n){ returnthis.indexOf(e,t,n)!==-1},r.prototype.indexOf=function(e,t,n){ return b(this,e,t,n,!0) },r.prototype.lastIndexOf=function(e,t,n){ return b(this,e,t,n,!1) },r.prototype.write=function(e,t,n,i){ if(void 0===t)i="utf8",n=this.length,t=0; else if(void 0===n&&typeof t=="string")i=t,n=this.length,t=0; else{ if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); t>>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0);}var r=this.length-t; if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds"); i||(i="utf8"); for(var o=!1; ;)switch(i){ case"hex": return g(this,e,t,n); case"utf8": case"utf-8": return _(this,e,t,n); case"ascii": return x(this,e,t,n); case"latin1": case"binary": return w(this,e,t,n); case"base64": return k(this,e,t,n); case"ucs2": case"ucs-2": case"utf16le": case"utf-16le": return j(this,e,t,n); default: if(o)throw new TypeError("Unknown encoding: "+i); i=(String(i)).toLowerCase(),o=!0 } },r.prototype.toJSON=function(){ return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)};}; var J=4096; r.prototype.slice=function(e,t){ var n=this.length; e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e); var i=this.subarray(e,t); return i.__proto__=r.prototype,i },r.prototype.readUIntLE=function(e,t,n){ e>>>=0,t>>>=0,n||F(e,t,this.length); for(var i=this[e],r=1,o=0; ++o<t&&(r*=256);)i+=this[e+o]*r; return i;},r.prototype.readUIntBE=function(e,t,n){ e>>>=0,t>>>=0,n||F(e,t,this.length); for(var i=this[e+--t],r=1; t>0&&(r*=256);)i+=this[e+--t]*r; return i },r.prototype.readUInt8=function(e,t){ return e>>>=0,t||F(e,1,this.length),this[e] },r.prototype.readUInt16LE=function(e,t){ return e>>>=0,t||F(e,2,this.length),this[e]|this[e+1]<<8 },r.prototype.readUInt16BE=function(e,t){ return e>>>=0,t||F(e,2,this.length),this[e]<<8|this[e+1];},r.prototype.readUInt32LE=function(e,t){ return e>>>=0,t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3];},r.prototype.readUInt32BE=function(e,t){ return e>>>=0,t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3]) },r.prototype.readIntLE=function(e,t,n){ e>>>=0,t>>>=0,n||F(e,t,this.length); for(var i=this[e],r=1,o=0; ++o<t&&(r*=256);)i+=this[e+o]*r; return r*=128,i>=r&&(i-=Math.pow(2,8*t)),i },r.prototype.readIntBE=function(e,t,n){ e>>>=0,t>>>=0,n||F(e,t,this.length); for(var i=t,r=1,o=this[e+--i]; i>0&&(r*=256);)o+=this[e+--i]*r; return r*=128,o>=r&&(o-=Math.pow(2,8*t)),o;},r.prototype.readInt8=function(e,t){ return e>>>=0,t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e];},r.prototype.readInt16LE=function(e,t){ e>>>=0,t||F(e,2,this.length); var n=this[e]|this[e+1]<<8; return 32768&n?4294901760|n:n },r.prototype.readInt16BE=function(e,t){ e>>>=0,t||F(e,2,this.length); var n=this[e+1]|this[e]<<8; return 32768&n?4294901760|n:n },r.prototype.readInt32LE=function(e,t){ return e>>>=0,t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24 },r.prototype.readInt32BE=function(e,t){ return e>>>=0,t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3];},r.prototype.readFloatLE=function(e,t){ return e>>>=0,t||F(e,4,this.length),G.read(this,e,!0,23,4);},r.prototype.readFloatBE=function(e,t){ return e>>>=0,t||F(e,4,this.length),G.read(this,e,!1,23,4) },r.prototype.readDoubleLE=function(e,t){ return e>>>=0,t||F(e,8,this.length),G.read(this,e,!0,52,8) },r.prototype.readDoubleBE=function(e,t){ return e>>>=0,t||F(e,8,this.length),G.read(this,e,!1,52,8) },r.prototype.writeUIntLE=function(e,t,n,i){ e=Number(e),t>>>=0,n>>>=0,i||I(this,e,t,n,Math.pow(2,8*n)-1,0); var r=1,o=0; for(this[t]=255&e; ++o<n&&(r*=256);)this[t+o]=e/r&255; return t+n },r.prototype.writeUIntBE=function(e,t,n,i){ e=Number(e),t>>>=0,n>>>=0,i||I(this,e,t,n,Math.pow(2,8*n)-1,0); var r=n-1,o=1; for(this[t+r]=255&e; --r>=0&&(o*=256);)this[t+r]=e/o&255; return t+n },r.prototype.writeUInt8=function(e,t,n){ return e=Number(e),t>>>=0,n||I(this,e,t,1,255,0),this[t]=255&e,t+1;},r.prototype.writeUInt16LE=function(e,t,n){ return e=Number(e),t>>>=0,n||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2 },r.prototype.writeUInt16BE=function(e,t,n){ return e=Number(e),t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2;},r.prototype.writeUInt32LE=function(e,t,n){ return e=Number(e),t>>>=0,n||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4;},r.prototype.writeUInt32BE=function(e,t,n){ return e=Number(e),t>>>=0,n||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4 },r.prototype.writeIntLE=function(e,t,n,i){ if(e=Number(e),t>>>=0,!i){ var r=Math.pow(2,8*n-1); I(this,e,t,n,r-1,-r);}var o=0,a=1,s=0; for(this[t]=255&e; ++o<n&&(a*=256);)e<0&&s===0&&this[t+o-1]!==0&&(s=1),this[t+o]=(e/a>>0)-s&255; return t+n },r.prototype.writeIntBE=function(e,t,n,i){ if(e=Number(e),t>>>=0,!i){ var r=Math.pow(2,8*n-1); I(this,e,t,n,r-1,-r);}var o=n-1,a=1,s=0; for(this[t+o]=255&e; --o>=0&&(a*=256);)e<0&&s===0&&this[t+o+1]!==0&&(s=1),this[t+o]=(e/a>>0)-s&255; return t+n },r.prototype.writeInt8=function(e,t,n){ return e=Number(e),t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1 },r.prototype.writeInt16LE=function(e,t,n){ return e=Number(e),t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2;},r.prototype.writeInt16BE=function(e,t,n){ return e=Number(e),t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2 },r.prototype.writeInt32LE=function(e,t,n){ return e=Number(e),t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4 },r.prototype.writeInt32BE=function(e,t,n){ return e=Number(e),t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4;},r.prototype.writeFloatLE=function(e,t,n){ return R(this,e,t,!0,n);},r.prototype.writeFloatBE=function(e,t,n){ return R(this,e,t,!1,n) },r.prototype.writeDoubleLE=function(e,t,n){ return O(this,e,t,!0,n) },r.prototype.writeDoubleBE=function(e,t,n){ return O(this,e,t,!1,n);},r.prototype.copy=function(e,t,n,i){ if(n||(n=0),i||i===0||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0; if(e.length===0||this.length===0)return 0; if(t<0)throw new RangeError("targetStart out of bounds"); if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds"); if(i<0)throw new RangeError("sourceEnd out of bounds"); i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n); var r,o=i-n; if(this===e&&n<t&&t<i)for(r=o-1; r>=0; --r)e[r+t]=this[r+n]; else if(o<1e3)for(r=0; r<o; ++r)e[r+t]=this[r+n]; else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t); return o },r.prototype.fill=function(e,t,n,i){ if(typeof e=="string"){ if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),e.length===1){ var o=e.charCodeAt(0); o<256&&(e=o);}if(void 0!==i&&typeof i!="string")throw new TypeError("encoding must be a string"); if(typeof i=="string"&&!r.isEncoding(i))throw new TypeError("Unknown encoding: "+i);}elsetypeof e=="number"&&(e&=255); if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index"); if(n<=t)return this; t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0); var a; if(typeof e=="number")for(a=t; a<n; ++a)this[a]=e; else{ var s=r.isBuffer(e)?e:new r(e,i),c=s.length; for(a=0; a<n-t; ++a)this[a+t]=s[a%c];}return this }; var Q=/[^+/0-9A-Za-z-_]/g },{"base64-js":15,ieee754:99}],48:[function(e,t,n){ function i(e){ o.call(this),this.hashMode=typeof e=="string",this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null;}var r=e("safe-buffer").Buffer,o=e("stream").Transform,a=e("string_decoder").StringDecoder; e("inherits")(i,o),i.prototype.update=function(e,t,n){ "string"==typeof e&&(e=r.from(e,t)); var i=this._update(e); return this.hashMode?this:(n&&(i=this._toString(i,n)),i);},i.prototype.setAutoPadding=function(){},i.prototype.getAuthTag=function(){ throw new Error("trying to get auth tag in unsupported state");},i.prototype.setAuthTag=function(){ throw new Error("trying to set auth tag in unsupported state");},i.prototype.setAAD=function(){ throw new Error("trying to set aad in unsupported state");},i.prototype._transform=function(e,t,n){ var i; try{ this.hashMode?this._update(e):this.push(this._update(e)) }catch(e){ i=e }finally{ n(i);} },i.prototype._flush=function(e){ var t; try{ this.push(this.__final());}catch(e){ t=e }e(t);},i.prototype._finalOrDigest=function(e){ var t=this.__final()||r.alloc(0); return e&&(t=this._toString(t,e,!0)),t;},i.prototype._toString=function(e,t,n){ if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings"); var i=this._decoder.write(e); return n&&(i+=this._decoder.end()),i },t.exports=i;},{inherits:101,"safe-buffer":144,stream:155,string_decoder:45}],49:[function(e,t,n){ (function(e){ function t(e){ return Object.prototype.toString.call(e);}n.isArray=function(e){ return Array.isArray?Array.isArray(e):t(e)==="[object Array]"},n.isBoolean=function(e){ returntypeof e=="boolean"},n.isNull=function(e){ return e===null},n.isNullOrUndefined=function(e){ return e==null},n.isNumber=function(e){ returntypeof e=="number"},n.isString=function(e){ returntypeof e=="string"},n.isSymbol=function(e){ return(void 0===e?"undefined":_typeof(e))==="symbol"},n.isUndefined=function(e){ return void 0===e;},n.isRegExp=function(e){ returnt(e)==="[object RegExp]"},n.isObject=function(e){ return(void 0===e?"undefined":_typeof(e))==="object"&&e!==null},n.isDate=function(e){ returnt(e)==="[object Date]"},n.isError=function(e){ returnt(e)==="[object Error]"||e instanceof Error },n.isFunction=function(e){ returntypeof e=="function"},n.isPrimitive=function(e){ return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||(void 0===e?"undefined":_typeof(e))==="symbol"||void 0===e },n.isBuffer=e.isBuffer;}).call(this,{isBuffer:e("../../is-buffer/index.js")}) },{"../../is-buffer/index.js":102}],50:[function(e,t,n){ (function(n){ function i(e){ this.curveType=s[e],this.curveType||(this.curveType={name:e}),this.curve=new o.ec(this.curveType.name),this.keys=void 0 }function r(e,t,i){ Array.isArray(e)||(e=e.toArray()); var r=new n(e); if(i&&r.length<i){ var o=new n(i-r.length); o.fill(0),r=n.concat([o,r]);}return t?r.toString(t):r }var o=e("elliptic"),a=e("bn.js"); t.exports=function(e){ return new i(e);}; var s={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}}; s.p224=s.secp224r1,s.p256=s.secp256r1=s.prime256v1,s.p192=s.secp192r1=s.prime192v1,s.p384=s.secp384r1,s.p521=s.secp521r1,i.prototype.generateKeys=function(e,t){ return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t) },i.prototype.computeSecret=function(e,t,i){ return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),r(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),i,this.curveType.byteLength);},i.prototype.getPublicKey=function(e,t){ var n=this.keys.getPublic(t==="compressed",!0); returnt==="hybrid"&&(n[n.length-1]%2?n[0]=7:n[0]=6),r(n,e) },i.prototype.getPrivateKey=function(e){ return r(this.keys.getPrivate(),e);},i.prototype.setPublicKey=function(e,t){ return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this.keys._importPublic(e),this },i.prototype.setPrivateKey=function(e,t){ t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)); var i=new a(e); return i=i.toString(16),this.keys._importPrivate(i),this } }).call(this,e("buffer").Buffer);},{"bn.js":"BN",buffer:47,elliptic:67}],51:[function(e,t,n){ (function(n){ function i(e){ u.call(this,"digest"),this._hash=e,this.buffers=[];}function r(e){ u.call(this,"digest"),this._hash=e }var o=e("inherits"),a=e("./md5"),s=e("ripemd160"),c=e("sha.js"),u=e("cipher-base"); o(i,u),i.prototype._update=function(e){ this.buffers.push(e);},i.prototype._final=function(){ var e=n.concat(this.buffers),t=this._hash(e); return this.buffers=null,t },o(r,u),r.prototype._update=function(e){ this._hash.update(e);},r.prototype._final=function(){ return this._hash.digest();},t.exports=function(e){ return(e=e.toLowerCase())==="md5"?new i(a):new r(e==="rmd160"||e==="ripemd160"?new s:c(e));};}).call(this,e("buffer").Buffer) },{"./md5":53,buffer:47,"cipher-base":48,inherits:101,ripemd160:143,"sha.js":148}],52:[function(e,t,n){ (function(e){ function n(t){ if(t.length%i!=0){ var n=t.length+(i-t.length%i); t=e.concat([t,r],n);}for(var o=new Array(t.length>>>2),a=0,s=0; a<t.length; a+=i,s++)o[s]=t.readInt32LE(a); return o;}var i=4,r=new e(i); r.fill(0); t.exports=function(t,i){ var r=i(n(t),8*t.length); t=new e(16); for(var o=0; o<r.length; o++)t.writeInt32LE(r[o],o<<2,!0); return t;} }).call(this,e("buffer").Buffer);},{buffer:47}],53:[function(e,t,n){ function i(e,t){ e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t; for(var n=1732584193,i=-271733879,r=-1732584194,l=271733878,f=0; f<e.length; f+=16){ var p=n,d=i,h=r,m=l; i=c(i=c(i=c(i=c(i=s(i=s(i=s(i=s(i=a(i=a(i=a(i=a(i=o(i=o(i=o(i=o(i,r=o(r,l=o(l,n=o(n,i,r,l,e[f+0],7,-680876936),i,r,e[f+1],12,-389564586),n,i,e[f+2],17,606105819),l,n,e[f+3],22,-1044525330),r=o(r,l=o(l,n=o(n,i,r,l,e[f+4],7,-176418897),i,r,e[f+5],12,1200080426),n,i,e[f+6],17,-1473231341),l,n,e[f+7],22,-45705983),r=o(r,l=o(l,n=o(n,i,r,l,e[f+8],7,1770035416),i,r,e[f+9],12,-1958414417),n,i,e[f+10],17,-42063),l,n,e[f+11],22,-1990404162),r=o(r,l=o(l,n=o(n,i,r,l,e[f+12],7,1804603682),i,r,e[f+13],12,-40341101),n,i,e[f+14],17,-1502002290),l,n,e[f+15],22,1236535329),r=a(r,l=a(l,n=a(n,i,r,l,e[f+1],5,-165796510),i,r,e[f+6],9,-1069501632),n,i,e[f+11],14,643717713),l,n,e[f+0],20,-373897302),r=a(r,l=a(l,n=a(n,i,r,l,e[f+5],5,-701558691),i,r,e[f+10],9,38016083),n,i,e[f+15],14,-660478335),l,n,e[f+4],20,-405537848),r=a(r,l=a(l,n=a(n,i,r,l,e[f+9],5,568446438),i,r,e[f+14],9,-1019803690),n,i,e[f+3],14,-187363961),l,n,e[f+8],20,1163531501),r=a(r,l=a(l,n=a(n,i,r,l,e[f+13],5,-1444681467),i,r,e[f+2],9,-51403784),n,i,e[f+7],14,1735328473),l,n,e[f+12],20,-1926607734),r=s(r,l=s(l,n=s(n,i,r,l,e[f+5],4,-378558),i,r,e[f+8],11,-2022574463),n,i,e[f+11],16,1839030562),l,n,e[f+14],23,-35309556),r=s(r,l=s(l,n=s(n,i,r,l,e[f+1],4,-1530992060),i,r,e[f+4],11,1272893353),n,i,e[f+7],16,-155497632),l,n,e[f+10],23,-1094730640),r=s(r,l=s(l,n=s(n,i,r,l,e[f+13],4,681279174),i,r,e[f+0],11,-358537222),n,i,e[f+3],16,-722521979),l,n,e[f+6],23,76029189),r=s(r,l=s(l,n=s(n,i,r,l,e[f+9],4,-640364487),i,r,e[f+12],11,-421815835),n,i,e[f+15],16,530742520),l,n,e[f+2],23,-995338651),r=c(r,l=c(l,n=c(n,i,r,l,e[f+0],6,-198630844),i,r,e[f+7],10,1126891415),n,i,e[f+14],15,-1416354905),l,n,e[f+5],21,-57434055),r=c(r,l=c(l,n=c(n,i,r,l,e[f+12],6,1700485571),i,r,e[f+3],10,-1894986606),n,i,e[f+10],15,-1051523),l,n,e[f+1],21,-2054922799),r=c(r,l=c(l,n=c(n,i,r,l,e[f+8],6,1873313359),i,r,e[f+15],10,-30611744),n,i,e[f+6],15,-1560198380),l,n,e[f+13],21,1309151649),r=c(r,l=c(l,n=c(n,i,r,l,e[f+4],6,-145523070),i,r,e[f+11],10,-1120210379),n,i,e[f+2],15,718787259),l,n,e[f+9],21,-343485551),n=u(n,p),i=u(i,d),r=u(r,h),l=u(l,m) }return[n,i,r,l];}function r(e,t,n,i,r,o){ return u(l(u(u(t,e),u(i,o)),r),n);}function o(e,t,n,i,o,a,s){ return r(t&n|~t&i,e,t,o,a,s);}function a(e,t,n,i,o,a,s){ return r(t&i|n&~i,e,t,o,a,s);}function s(e,t,n,i,o,a,s){ return r(t^n^i,e,t,o,a,s) }function c(e,t,n,i,o,a,s){ return r(n^(t|~i),e,t,o,a,s) }function u(e,t){ var n=(65535&e)+(65535&t); return(e>>16)+(t>>16)+(n>>16)<<16|65535&n }function l(e,t){ return e<<t|e>>>32-t }var f=e("./make-hash"); t.exports=function(e){ return f(e,i);};},{"./make-hash":52}],54:[function(e,t,n){ function i(e,t){ a.call(this,"digest"),typeof t=="string"&&(t=s.from(t)); var n=e==="sha512"||e==="sha384"?128:64; this._alg=e,this._key=t,t.length>n?t=(e==="rmd160"?new u:l(e)).update(t).digest():t.length<n&&(t=s.concat([t,f],n)); for(var i=this._ipad=s.allocUnsafe(n),r=this._opad=s.allocUnsafe(n),o=0; o<n; o++)i[o]=54^t[o],r[o]=92^t[o]; this._hash=e==="rmd160"?new u:l(e),this._hash.update(i) }var r=e("inherits"),o=e("./legacy"),a=e("cipher-base"),s=e("safe-buffer").Buffer,c=e("create-hash/md5"),u=e("ripemd160"),l=e("sha.js"),f=s.alloc(128); r(i,a),i.prototype._update=function(e){ this._hash.update(e) },i.prototype._final=function(){ var e=this._hash.digest(); return(this._alg==="rmd160"?new u:l(this._alg)).update(this._opad).update(e).digest();},t.exports=function(e,t){ return(e=e.toLowerCase())==="rmd160"||e==="ripemd160"?new i("rmd160",t):e==="md5"?new o(c,t):new i(e,t);};},{"./legacy":55,"cipher-base":48,"create-hash/md5":53,inherits:101,ripemd160:143,"safe-buffer":144,"sha.js":148}],55:[function(e,t,n){ function i(e,t){ a.call(this,"digest"),typeof t=="string"&&(t=o.from(t)),this._alg=e,this._key=t,t.length>c?t=e(t):t.length<c&&(t=o.concat([t,s],c)); for(var n=this._ipad=o.allocUnsafe(c),i=this._opad=o.allocUnsafe(c),r=0; r<c; r++)n[r]=54^t[r],i[r]=92^t[r]; this._hash=[n];}var r=e("inherits"),o=e("safe-buffer").Buffer,a=e("cipher-base"),s=o.alloc(128),c=64; r(i,a),i.prototype._update=function(e){ this._hash.push(e);},i.prototype._final=function(){ var e=this._alg(o.concat(this._hash)); return this._alg(o.concat([this._opad,e])) },t.exports=i },{"cipher-base":48,inherits:101,"safe-buffer":144}],56:[function(e,t,n){ n.randomBytes=n.rng=n.pseudoRandomBytes=n.prng=e("randombytes"),n.createHash=n.Hash=e("create-hash"),n.createHmac=n.Hmac=e("create-hmac"); var i=e("browserify-sign/algos"),r=Object.keys(i),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(r); n.getHashes=function(){ return o }; var a=e("pbkdf2"); n.pbkdf2=a.pbkdf2,n.pbkdf2Sync=a.pbkdf2Sync; var s=e("browserify-cipher"); n.Cipher=s.Cipher,n.createCipher=s.createCipher,n.Cipheriv=s.Cipheriv,n.createCipheriv=s.createCipheriv,n.Decipher=s.Decipher,n.createDecipher=s.createDecipher,n.Decipheriv=s.Decipheriv,n.createDecipheriv=s.createDecipheriv,n.getCiphers=s.getCiphers,n.listCiphers=s.listCiphers; var c=e("diffie-hellman"); n.DiffieHellmanGroup=c.DiffieHellmanGroup,n.createDiffieHellmanGroup=c.createDiffieHellmanGroup,n.getDiffieHellman=c.getDiffieHellman,n.createDiffieHellman=c.createDiffieHellman,n.DiffieHellman=c.DiffieHellman; var u=e("browserify-sign"); n.createSign=u.createSign,n.Sign=u.Sign,n.createVerify=u.createVerify,n.Verify=u.Verify,n.createECDH=e("create-ecdh"); var l=e("public-encrypt"); n.publicEncrypt=l.publicEncrypt,n.privateEncrypt=l.privateEncrypt,n.publicDecrypt=l.publicDecrypt,n.privateDecrypt=l.privateDecrypt,n.createCredentials=function(){ throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"));},n.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6};},{"browserify-cipher":34,"browserify-sign":41,"browserify-sign/algos":38,"create-ecdh":50,"create-hash":51,"create-hmac":54,"diffie-hellman":63,pbkdf2:114,"public-encrypt":121,randombytes:127}],57:[function(e,t,n){ n.utils=e("./des/utils"),n.Cipher=e("./des/cipher"),n.DES=e("./des/des"),n.CBC=e("./des/cbc"),n.EDE=e("./des/ede") },{"./des/cbc":58,"./des/cipher":59,"./des/des":60,"./des/ede":61,"./des/utils":62}],58:[function(e,t,n){ function i(e){ r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8); for(var t=0; t<this.iv.length; t++)this.iv[t]=e[t];}var r=e("minimalistic-assert"),o=e("inherits"),a={}; n.instantiate=function(e){ function t(t){ e.call(this,t),this._cbcInit() }o(t,e); for(var n=Object.keys(a),i=0; i<n.length; i++){ var r=n[i]; t.prototype[r]=a[r];}return t.create=function(e){ return new t(e);},t },a._cbcInit=function(){ var e=new i(this.options.iv); this._cbcState=e;},a._update=function(e,t,n,i){ var r=this._cbcState,o=this.constructor.super_.prototype,a=r.iv; if(this.type==="encrypt"){ for(s=0; s<this.blockSize; s++)a[s]^=e[t+s]; o._update.call(this,a,0,n,i); for(s=0; s<this.blockSize; s++)a[s]=n[i+s] }else{ o._update.call(this,e,t,n,i); for(s=0; s<this.blockSize; s++)n[i+s]^=a[s]; for(var s=0; s<this.blockSize; s++)a[s]=e[t+s];} } },{inherits:101,"minimalistic-assert":106}],59:[function(e,t,n){ function i(e){ this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0 }var r=e("minimalistic-assert"); t.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){ return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e) },i.prototype._buffer=function(e,t){ for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),i=0; i<n; i++)this.buffer[this.bufferOff+i]=e[t+i]; return this.bufferOff+=n,n },i.prototype._flushBuffer=function(e,t){ return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize;},i.prototype._updateEncrypt=function(e){ var t=0,n=0,i=(this.bufferOff+e.length)/this.blockSize|0,r=new Array(i*this.blockSize); 0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(r,n))); for(var o=e.length-(e.length-t)%this.blockSize; t<o; t+=this.blockSize)this._update(e,t,r,n),n+=this.blockSize; for(;t<e.length; t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t]; return r;},i.prototype._updateDecrypt=function(e){ for(var t=0,n=0,i=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,r=new Array(i*this.blockSize); i>0; i--)t+=this._buffer(e,t),n+=this._flushBuffer(r,n); return t+=this._buffer(e,t),r;},i.prototype.final=function(e){ var t; e&&(t=this.update(e)); var n; return n=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n;},i.prototype._pad=function(e,t){ if(t===0)return!1; for(;t<e.length;)e[t++]=0; return!0;},i.prototype._finalEncrypt=function(){ if(!this._pad(this.buffer,this.bufferOff))return[]; var e=new Array(this.blockSize); return this._update(this.buffer,0,e,0),e;},i.prototype._unpad=function(e){ return e;},i.prototype._finalDecrypt=function(){ r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt"); var e=new Array(this.blockSize); return this._flushBuffer(e,0),this._unpad(e) };},{"minimalistic-assert":106}],60:[function(e,t,n){ function i(){ this.tmp=new Array(2),this.keys=null }function r(e){ u.call(this,e); var t=new i; this._desState=t,this.deriveKeys(t,e.key);}var o=e("minimalistic-assert"),a=e("inherits"),s=e("../des"),c=s.utils,u=s.Cipher; a(r,u),t.exports=r,r.create=function(e){ return new r(e) }; var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1]; r.prototype.deriveKeys=function(e,t){ e.keys=new Array(32),o.equal(t.length,this.blockSize,"Invalid key length"); var n=c.readUInt32BE(t,0),i=c.readUInt32BE(t,4); c.pc1(n,i,e.tmp,0),n=e.tmp[0],i=e.tmp[1]; for(var r=0; r<e.keys.length; r+=2){ var a=l[r>>>1]; n=c.r28shl(n,a),i=c.r28shl(i,a),c.pc2(n,i,e.keys,r);} },r.prototype._update=function(e,t,n,i){ var r=this._desState,o=c.readUInt32BE(e,t),a=c.readUInt32BE(e,t+4); c.ip(o,a,r.tmp,0),o=r.tmp[0],a=r.tmp[1],this.type==="encrypt"?this._encrypt(r,o,a,r.tmp,0):this._decrypt(r,o,a,r.tmp,0),o=r.tmp[0],a=r.tmp[1],c.writeUInt32BE(n,o,i),c.writeUInt32BE(n,a,i+4) },r.prototype._pad=function(e,t){ for(var n=e.length-t,i=t; i<e.length; i++)e[i]=n; return!0 },r.prototype._unpad=function(e){ for(var t=e[e.length-1],n=e.length-t; n<e.length; n++)o.equal(e[n],t); return e.slice(0,e.length-t);},r.prototype._encrypt=function(e,t,n,i,r){ for(var o=t,a=n,s=0; s<e.keys.length; s+=2){ var u=e.keys[s],l=e.keys[s+1]; c.expand(a,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1]; var f=c.substitute(u,l),p=a; a=(o^c.permute(f))>>>0,o=p;}c.rip(a,o,i,r);},r.prototype._decrypt=function(e,t,n,i,r){ for(var o=n,a=t,s=e.keys.length-2; s>=0; s-=2){ var u=e.keys[s],l=e.keys[s+1]; c.expand(o,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1]; var f=c.substitute(u,l),p=o; o=(a^c.permute(f))>>>0,a=p }c.rip(o,a,i,r);} },{"../des":57,inherits:101,"minimalistic-assert":106}],61:[function(e,t,n){ function i(e,t){ o.equal(t.length,24,"Invalid key length"); var n=t.slice(0,8),i=t.slice(8,16),r=t.slice(16,24); this.ciphers=e==="encrypt"?[u.create({type:"encrypt",key:n}),u.create({type:"decrypt",key:i}),u.create({type:"encrypt",key:r})]:[u.create({type:"decrypt",key:r}),u.create({type:"encrypt",key:i}),u.create({type:"decrypt",key:n})];}function r(e){ c.call(this,e); var t=new i(this.type,this.options.key); this._edeState=t;}var o=e("minimalistic-assert"),a=e("inherits"),s=e("../des"),c=s.Cipher,u=s.DES; a(r,c),t.exports=r,r.create=function(e){ return new r(e);},r.prototype._update=function(e,t,n,i){ var r=this._edeState; r.ciphers[0]._update(e,t,n,i),r.ciphers[1]._update(n,i,n,i),r.ciphers[2]._update(n,i,n,i) },r.prototype._pad=u.prototype._pad,r.prototype._unpad=u.prototype._unpad;},{"../des":57,inherits:101,"minimalistic-assert":106}],62:[function(e,t,n){ n.readUInt32BE=function(e,t){ return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0;},n.writeUInt32BE=function(e,t,n){ e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t },n.ip=function(e,t,n,i){ for(var r=0,o=0,a=6; a>=0; a-=2){ for(s=0; s<=24; s+=8)r<<=1,r|=t>>>s+a&1; for(s=0; s<=24; s+=8)r<<=1,r|=e>>>s+a&1 }for(a=6; a>=0; a-=2){ for(s=1; s<=25; s+=8)o<<=1,o|=t>>>s+a&1; for(var s=1; s<=25; s+=8)o<<=1,o|=e>>>s+a&1 }n[i+0]=r>>>0,n[i+1]=o>>>0;},n.rip=function(e,t,n,i){ for(var r=0,o=0,a=0; a<4; a++)for(s=24; s>=0; s-=8)r<<=1,r|=t>>>s+a&1,r<<=1,r|=e>>>s+a&1; for(a=4; a<8; a++)for(var s=24; s>=0; s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1; n[i+0]=r>>>0,n[i+1]=o>>>0 },n.pc1=function(e,t,n,i){ for(var r=0,o=0,a=7; a>=5; a--){ for(s=0; s<=24; s+=8)r<<=1,r|=t>>s+a&1; for(s=0; s<=24; s+=8)r<<=1,r|=e>>s+a&1 }for(s=0; s<=24; s+=8)r<<=1,r|=t>>s+a&1; for(a=1; a<=3; a++){ for(s=0; s<=24; s+=8)o<<=1,o|=t>>s+a&1; for(s=0; s<=24; s+=8)o<<=1,o|=e>>s+a&1 }for(var s=0; s<=24; s+=8)o<<=1,o|=e>>s+a&1; n[i+0]=r>>>0,n[i+1]=o>>>0;},n.r28shl=function(e,t){ return e<<t&268435455|e>>>28-t;}; var i=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24]; n.pc2=function(e,t,n,r){ for(var o=0,a=0,s=i.length>>>1,c=0; c<s; c++)o<<=1,o|=e>>>i[c]&1; for(c=s; c<i.length; c++)a<<=1,a|=t>>>i[c]&1; n[r+0]=o>>>0,n[r+1]=a>>>0 },n.expand=function(e,t,n){ var i=0,r=0; i=(1&e)<<5|e>>>27; for(o=23; o>=15; o-=4)i<<=6,i|=e>>>o&63; for(var o=11; o>=3; o-=4)r|=e>>>o&63,r<<=6; r|=(31&e)<<1|e>>>31,t[n+0]=i>>>0,t[n+1]=r>>>0;}; var r=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11]; n.substitute=function(e,t){ for(var n=0,i=0; i<4; i++)n<<=4,n|=a=r[64*i+(o=e>>>18-6*i&63)]; for(i=0; i<4; i++){ var o=t>>>18-6*i&63,a=r[256+64*i+o]; n<<=4,n|=a }return n>>>0;}; var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7]; n.permute=function(e){ for(var t=0,n=0; n<o.length; n++)t<<=1,t|=e>>>o[n]&1; return t>>>0;},n.padSplit=function(e,t,n){ for(var i=e.toString(2); i.length<t;)i="0"+i; for(var r=[],o=0; o<t; o+=n)r.push(i.slice(o,o+n)); return r.join(" ") };},{}],63:[function(e,t,n){ (function(t){ function i(e,n,o,c){ return t.isBuffer(n)||void 0===s[n]?i(e,"binary",n,o):(n=n||"binary",c=c||"binary",o=o||new t([2]),t.isBuffer(o)||(o=new t(o,c)),typeof e=="number"?new a(r(e,o),o,!0):(t.isBuffer(e)||(e=new t(e,n)),new a(e,o,!0)));}var r=e("./lib/generatePrime"),o=e("./lib/primes.json"),a=e("./lib/dh"),s={binary:!0,hex:!0,base64:!0}; n.DiffieHellmanGroup=n.createDiffieHellmanGroup=n.getDiffieHellman=function(e){ var n=new t(o[e].prime,"hex"),i=new t(o[e].gen,"hex"); return new a(n,i) },n.createDiffieHellman=n.DiffieHellman=i;}).call(this,e("buffer").Buffer);},{"./lib/dh":64,"./lib/generatePrime":65,"./lib/primes.json":66,buffer:47}],64:[function(e,t,n){ (function(n){ function i(e,t){ return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._pub=new c(e),this }function r(e,t){ return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._priv=new c(e),this;}function o(e,t){ var n=t.toString("hex"),i=[n,e.toString(16)].join("_"); if(i in b)return b[i]; var r=0; if(e.isEven()||!m.simpleSieve||!m.fermatTest(e)||!u.test(e))return r+=1,r+=n==="02"||n==="05"?8:4,b[i]=r,r; u.test(e.shrn(1))||(r+=2); var o; switch(n){ case"02": e.mod(l).cmp(f)&&(r+=8); break; case"05": (o=e.mod(p)).cmp(d)&&o.cmp(h)&&(r+=8); break; default: r+=4 }return b[i]=r,r }function a(e,t,n){ this.setGenerator(t),this.__prime=new c(e),this._prime=c.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=i,this.setPrivateKey=r):this._primeCode=8;}function s(e,t){ var i=new n(e.toArray()); return t?i.toString(t):i }var c=e("bn.js"),u=new (e("miller-rabin")),l=new c(24),f=new c(11),p=new c(10),d=new c(3),h=new c(7),m=e("./generatePrime"),v=e("randombytes"); t.exports=a; var b={}; Object.defineProperty(a.prototype,"verifyError",{enumerable:!0,get:function(){ returntypeof this._primeCode!="number"&&(this._primeCode=o(this.__prime,this.__gen)),this._primeCode;}}),a.prototype.generateKeys=function(){ return this._priv||(this._priv=new c(v(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey();},a.prototype.computeSecret=function(e){ var t=(e=(e=new c(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new n(t.toArray()),r=this.getPrime(); if(i.length<r.length){ var o=new n(r.length-i.length); o.fill(0),i=n.concat([o,i]);}return i },a.prototype.getPublicKey=function(e){ return s(this._pub,e);},a.prototype.getPrivateKey=function(e){ return s(this._priv,e);},a.prototype.getPrime=function(e){ return s(this.__prime,e) },a.prototype.getGenerator=function(e){ return s(this._gen,e);},a.prototype.setGenerator=function(e,t){ return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this.__gen=e,this._gen=new c(e),this;} }).call(this,e("buffer").Buffer);},{"./generatePrime":65,"bn.js":"BN",buffer:47,"miller-rabin":105,randombytes:127}],65:[function(e,t,n){ function i(){ if(y!==null)return y; var e=[]; e[0]=2; for(var t=1,n=3; n<1048576; n+=2){ for(var i=Math.ceil(Math.sqrt(n)),r=0; r<t&&e[r]<=i&&n%e[r]!=0; r++);t!==r&&e[r]<=i||(e[t++]=n);}return y=e,e;}function r(e){ for(var t=i(),n=0; n<t.length; n++)if(e.modn(t[n])===0)return e.cmpn(t[n])===0; return!0 }function o(e){ var t=c.mont(e); return p.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)===0}function a(e,t){ if(e<16)return new c(t===2||t===5?[140,123]:[140,39]); t=new c(t); for(var n,i; ;){ for(n=new c(s(Math.ceil(e/8))); n.bitLength()>e;)n.ishrn(1); if(n.isEven()&&n.iadd(f),n.testn(1)||n.iadd(p),t.cmp(p)){ if(!t.cmp(d))for(;n.mod(h).cmp(m);)n.iadd(b);}else for(;n.mod(u).cmp(v);)n.iadd(b); if(i=n.shrn(1),r(i)&&r(n)&&o(i)&&o(n)&&l.test(i)&&l.test(n))return n;} }var s=e("randombytes"); t.exports=a,a.simpleSieve=r,a.fermatTest=o; var c=e("bn.js"),u=new c(24),l=new (e("miller-rabin")),f=new c(1),p=new c(2),d=new c(5),h=(new c(16),new c(8),new c(10)),m=new c(3),v=(new c(7),new c(11)),b=new c(4),y=(new c(12),null) },{"bn.js":"BN","miller-rabin":105,randombytes:127}],66:[function(e,t,n){ t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}} },{}],67:[function(e,t,n){ var i=n; i.version=e("../package.json").version,i.utils=e("./elliptic/utils"),i.rand=e("brorand"),i.curve=e("./elliptic/curve"),i.curves=e("./elliptic/curves"),i.ec=e("./elliptic/ec"),i.eddsa=e("./elliptic/eddsa");},{"../package.json":82,"./elliptic/curve":70,"./elliptic/curves":73,"./elliptic/ec":74,"./elliptic/eddsa":77,"./elliptic/utils":81,brorand:16}],68:[function(e,t,n){ function i(e,t){ this.type=e,this.p=new o(t.p,16),this.red=t.prime?o.red(t.prime):o.mont(this.p),this.zero=new o(0).toRed(this.red),this.one=new o(1).toRed(this.red),this.two=new o(2).toRed(this.red),this.n=t.n&&new o(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4); var n=this.n&&this.p.div(this.n); !n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red));}function r(e,t){ this.curve=e,this.type=t,this.precomputed=null }var o=e("bn.js"),a=e("../../elliptic").utils,s=a.getNAF,c=a.getJSF,u=a.assert; t.exports=i,i.prototype.point=function(){ throw new Error("Not implemented");},i.prototype.validate=function(){ throw new Error("Not implemented");},i.prototype._fixedNafMul=function(e,t){ u(e.precomputed); var n=e._getDoubles(),i=s(t,1),r=(1<<n.step+1)-(n.step%2==0?2:1); r/=3; for(var o=[],a=0; a<i.length; a+=n.step){ for(var c=0,t=a+n.step-1; t>=a; t--)c=(c<<1)+i[t]; o.push(c) }for(var l=this.jpoint(null,null,null),f=this.jpoint(null,null,null),p=r; p>0; p--){ for(a=0; a<o.length; a++)(c=o[a])===p?f=f.mixedAdd(n.points[a]):c===-p&&(f=f.mixedAdd(n.points[a].neg())); l=l.add(f);}return l.toP() },i.prototype._wnafMul=function(e,t){ var n=4,i=e._getNAFPoints(n); n=i.wnd; for(var r=i.points,o=s(t,n),a=this.jpoint(null,null,null),c=o.length-1; c>=0; c--){ for(var t=0; c>=0&&o[c]===0; c--)t++; if(c>=0&&t++,a=a.dblp(t),c<0)break; var l=o[c]; u(l!==0),a=e.type==="affine"?l>0?a.mixedAdd(r[l-1>>1]):a.mixedAdd(r[-l-1>>1].neg()):l>0?a.add(r[l-1>>1]):a.add(r[-l-1>>1].neg()) }returne.type==="affine"?a.toP():a;},i.prototype._wnafMulAdd=function(e,t,n,i,r){ for(var o=this._wnafT1,a=this._wnafT2,u=this._wnafT3,l=0,f=0; f<i; f++){ var p=(S=t[f])._getNAFPoints(e); o[f]=p.wnd,a[f]=p.points;}for(f=i-1; f>=1; f-=2){ var d=f-1,h=f; if(o[d]===1&&o[h]===1){ var m=[t[d],null,null,t[h]]; 0===t[d].y.cmp(t[h].y)?(m[1]=t[d].add(t[h]),m[2]=t[d].toJ().mixedAdd(t[h].neg())):t[d].y.cmp(t[h].y.redNeg())===0?(m[1]=t[d].toJ().mixedAdd(t[h]),m[2]=t[d].add(t[h].neg())):(m[1]=t[d].toJ().mixedAdd(t[h]),m[2]=t[d].toJ().mixedAdd(t[h].neg())); var v=[-3,-1,-5,-7,0,7,5,1,3],b=c(n[d],n[h]); l=Math.max(b[0].length,l),u[d]=new Array(l),u[h]=new Array(l); for(j=0; j<l; j++){ var y=0|b[0][j],g=0|b[1][j]; u[d][j]=v[3*(y+1)+(g+1)],u[h][j]=0,a[d]=m } }else u[d]=s(n[d],o[d]),u[h]=s(n[h],o[h]),l=Math.max(u[d].length,l),l=Math.max(u[h].length,l);}for(var _=this.jpoint(null,null,null),x=this._wnafT4,f=l; f>=0; f--){ for(var w=0; f>=0;){ for(var k=!0,j=0; j<i; j++)x[j]=0|u[j][f],x[j]!==0&&(k=!1); if(!k)break; w++,f-- }if(f>=0&&w++,_=_.dblp(w),f<0)break; for(j=0; j<i; j++){ var S,E=x[j]; 0!==E&&(E>0?S=a[j][E-1>>1]:E<0&&(S=a[j][-E-1>>1].neg()),_=S.type==="affine"?_.mixedAdd(S):_.add(S));} }for(f=0; f<i; f++)a[f]=null; return r?_:_.toP();},i.BasePoint=r,r.prototype.eq=function(){ throw new Error("Not implemented") },r.prototype.validate=function(){ return this.curve.validate(this);},i.prototype.decodePoint=function(e,t){ e=a.toArray(e,t); var n=this.p.byteLength(); if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1==2*n)return e[0]===6?u(e[e.length-1]%2==0):e[0]===7&&u(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n)); if((e[0]===2||e[0]===3)&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),e[0]===3); throw new Error("Unknown point format");},r.prototype.encodeCompressed=function(e){ return this.encode(e,!0);},r.prototype._encode=function(e){ var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t); return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t));},r.prototype.encode=function(e,t){ return a.encode(this._encode(t),e) },r.prototype.precompute=function(e){ if(this.precomputed)return this; var t={doubles:null,naf:null,beta:null}; return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this },r.prototype._hasDoubles=function(e){ if(!this.precomputed)return!1; var t=this.precomputed.doubles; return Boolean(t)&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step);},r.prototype._getDoubles=function(e,t){ if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles; for(var n=[this],i=this,r=0; r<t; r+=e){ for(var o=0; o<e; o++)i=i.dbl(); n.push(i);}return{step:e,points:n};},r.prototype._getNAFPoints=function(e){ if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf; for(var t=[this],n=(1<<e)-1,i=n===1?null:this.dbl(),r=1; r<n; r++)t[r]=t[r-1].add(i); return{wnd:e,points:t};},r.prototype._getBeta=function(){ return null;},r.prototype.dblp=function(e){ for(var t=this,n=0; n<e; n++)t=t.dbl(); return t;};},{"../../elliptic":67,"bn.js":"BN"}],69:[function(e,t,n){ function i(e){ this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,u.call(this,"edwards",e),this.a=new s(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new s(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new s(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),l(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|e.c)==1}function r(e,t,n,i,r){ u.BasePoint.call(this,e,"projective"),t===null&&n===null&&i===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new s(t,16),this.y=new s(n,16),this.z=i?new s(i,16):this.curve.one,this.t=r&&new s(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm())))) }var o=e("../curve"),a=e("../../elliptic"),s=e("bn.js"),c=e("inherits"),u=o.base,l=a.utils.assert; c(i,u),t.exports=i,i.prototype._mulA=function(e){ return this.mOneA?e.redNeg():this.a.redMul(e) },i.prototype._mulC=function(e){ return this.oneC?e:this.c.redMul(e);},i.prototype.jpoint=function(e,t,n,i){ return this.point(e,t,n,i);},i.prototype.pointFromX=function(e,t){ (e=new s(e,16)).red||(e=e.toRed(this.red)); var n=e.redSqr(),i=this.c2.redSub(this.a.redMul(n)),r=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=i.redMul(r.redInvm()),a=o.redSqrt(); if(a.redSqr().redSub(o).cmp(this.zero)!==0)throw new Error("invalid point"); var c=a.fromRed().isOdd(); return(t&&!c||!t&&c)&&(a=a.redNeg()),this.point(e,a);},i.prototype.pointFromY=function(e,t){ (e=new s(e,16)).red||(e=e.toRed(this.red)); var n=e.redSqr(),i=n.redSub(this.one),r=n.redMul(this.d).redAdd(this.one),o=i.redMul(r.redInvm()); if(o.cmp(this.zero)===0){ if(t)throw new Error("invalid point"); return this.point(this.zero,e);}var a=o.redSqrt(); if(a.redSqr().redSub(o).cmp(this.zero)!==0)throw new Error("invalid point"); return a.isOdd()!==t&&(a=a.redNeg()),this.point(a,e) },i.prototype.validate=function(e){ if(e.isInfinity())return!0; e.normalize(); var t=e.x.redSqr(),n=e.y.redSqr(),i=t.redMul(this.a).redAdd(n),r=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n))); return i.cmp(r)===0},c(r,u.BasePoint),i.prototype.pointFromJSON=function(e){ return r.fromJSON(this,e);},i.prototype.point=function(e,t,n,i){ return new r(this,e,t,n,i);},r.fromJSON=function(e,t){ return new r(e,t[0],t[1],t[2]);},r.prototype.inspect=function(){ return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">" },r.prototype.isInfinity=function(){ return this.x.cmpn(0)===0&&this.y.cmp(this.z)===0},r.prototype._extDbl=function(){ var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(); n=n.redIAdd(n); var i=this.curve._mulA(e),r=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=i.redAdd(t),a=o.redSub(n),s=i.redSub(t),c=r.redMul(a),u=o.redMul(s),l=r.redMul(s),f=a.redMul(o); return this.curve.point(c,u,f,l) },r.prototype._projDbl=function(){ var e,t,n,i=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),o=this.y.redSqr(); if(this.curve.twisted){ var a=(u=this.curve._mulA(r)).redAdd(o); if(this.zOne)e=i.redSub(r).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(u.redSub(o)),n=a.redSqr().redSub(a).redSub(a); else{ var s=this.z.redSqr(),c=a.redSub(s).redISub(s); e=i.redSub(r).redISub(o).redMul(c),t=a.redMul(u.redSub(o)),n=a.redMul(c) } }else{ var u=r.redAdd(o),s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),c=u.redSub(s).redSub(s); e=this.curve._mulC(i.redISub(u)).redMul(c),t=this.curve._mulC(u).redMul(r.redISub(o)),n=u.redMul(c) }return this.curve.point(e,t,n);},r.prototype.dbl=function(){ return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl();},r.prototype._extAdd=function(e){ var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),r=this.z.redMul(e.z.redAdd(e.z)),o=n.redSub(t),a=r.redSub(i),s=r.redAdd(i),c=n.redAdd(t),u=o.redMul(a),l=s.redMul(c),f=o.redMul(c),p=a.redMul(s); return this.curve.point(u,l,p,f);},r.prototype._projAdd=function(e){ var t,n,i=this.z.redMul(e.z),r=i.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=r.redSub(s),u=r.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),f=i.redMul(c).redMul(l); return this.curve.twisted?(t=i.redMul(u).redMul(a.redSub(this.curve._mulA(o))),n=c.redMul(u)):(t=i.redMul(u).redMul(a.redSub(o)),n=this.curve._mulC(c).redMul(u)),this.curve.point(f,t,n);},r.prototype.add=function(e){ return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e);},r.prototype.mul=function(e){ return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e);},r.prototype.mulAdd=function(e,t,n){ return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1) },r.prototype.jmulAdd=function(e,t,n){ return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0) },r.prototype.normalize=function(){ if(this.zOne)return this; var e=this.z.redInvm(); return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this },r.prototype.neg=function(){ return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg());},r.prototype.getX=function(){ return this.normalize(),this.x.fromRed();},r.prototype.getY=function(){ return this.normalize(),this.y.fromRed() },r.prototype.eq=function(e){ return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0},r.prototype.eqXToP=function(e){ var t=e.toRed(this.curve.red).redMul(this.z); if(this.x.cmp(t)===0)return!0; for(var n=e.clone(),i=this.curve.redN.redMul(this.z); ;){ if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1; if(t.redIAdd(i),this.x.cmp(t)===0)return!0;}return!1;},r.prototype.toP=r.prototype.normalize,r.prototype.mixedAdd=r.prototype.add;},{"../../elliptic":67,"../curve":70,"bn.js":"BN",inherits:101}],70:[function(e,t,n){ var i=n; i.base=e("./base"),i.short=e("./short"),i.mont=e("./mont"),i.edwards=e("./edwards");},{"./base":68,"./edwards":69,"./mont":71,"./short":72}],71:[function(e,t,n){ function i(e){ c.call(this,"mont",e),this.a=new a(e.a,16).toRed(this.red),this.b=new a(e.b,16).toRed(this.red),this.i4=new a(4).toRed(this.red).redInvm(),this.two=new a(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two));}function r(e,t,n){ c.BasePoint.call(this,e,"projective"),t===null&&n===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new a(t,16),this.z=new a(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)));}var o=e("../curve"),a=e("bn.js"),s=e("inherits"),c=o.base,u=e("../../elliptic").utils; s(i,c),t.exports=i,i.prototype.validate=function(e){ var t=e.normalize().x,n=t.redSqr(),i=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t); return i.redSqrt().redSqr().cmp(i)===0},s(r,c.BasePoint),i.prototype.decodePoint=function(e,t){ return this.point(u.toArray(e,t),1);},i.prototype.point=function(e,t){ return new r(this,e,t) },i.prototype.pointFromJSON=function(e){ return r.fromJSON(this,e);},r.prototype.precompute=function(){},r.prototype._encode=function(){ return this.getX().toArray("be",this.curve.p.byteLength());},r.fromJSON=function(e,t){ return new r(e,t[0],t[1]||e.one);},r.prototype.inspect=function(){ return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">" },r.prototype.isInfinity=function(){ return this.z.cmpn(0)===0},r.prototype.dbl=function(){ var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),i=e.redMul(t),r=n.redMul(t.redAdd(this.curve.a24.redMul(n))); return this.curve.point(i,r);},r.prototype.add=function(){ throw new Error("Not supported on Montgomery curve");},r.prototype.diffAdd=function(e,t){ var n=this.x.redAdd(this.z),i=this.x.redSub(this.z),r=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(n),a=r.redMul(i),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr()); return this.curve.point(s,c);},r.prototype.mul=function(e){ for(var t=e.clone(),n=this,i=this.curve.point(null,null),r=this,o=[]; 0!==t.cmpn(0); t.iushrn(1))o.push(t.andln(1)); for(var a=o.length-1; a>=0; a--)o[a]===0?(n=n.diffAdd(i,r),i=i.dbl()):(i=n.diffAdd(i,r),n=n.dbl()); return i },r.prototype.mulAdd=function(){ throw new Error("Not supported on Montgomery curve") },r.prototype.jumlAdd=function(){ throw new Error("Not supported on Montgomery curve") },r.prototype.eq=function(e){ return this.getX().cmp(e.getX())===0},r.prototype.normalize=function(){ return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this;},r.prototype.getX=function(){ return this.normalize(),this.x.fromRed() };},{"../../elliptic":67,"../curve":70,"bn.js":"BN",inherits:101}],72:[function(e,t,n){ function i(e){ l.call(this,"short",e),this.a=new c(e.a,16).toRed(this.red),this.b=new c(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4) }function r(e,t,n,i){ l.BasePoint.call(this,e,"affine"),t===null&&n===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new c(t,16),this.y=new c(n,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1);}function o(e,t,n,i){ l.BasePoint.call(this,e,"jacobian"),t===null&&n===null&&i===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new c(0)):(this.x=new c(t,16),this.y=new c(n,16),this.z=new c(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one;}var a=e("../curve"),s=e("../../elliptic"),c=e("bn.js"),u=e("inherits"),l=a.base,f=s.utils.assert; u(i,l),t.exports=i,i.prototype._getEndomorphism=function(e){ if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){ var t,n; if(e.beta)t=new c(e.beta,16).toRed(this.red); else{ var i=this._getEndoRoots(this.p); t=(t=i[0].cmp(i[1])<0?i[0]:i[1]).toRed(this.red) }if(e.lambda)n=new c(e.lambda,16); else{ var r=this._getEndoRoots(this.n); 0===this.g.mul(r[0]).x.cmp(this.g.x.redMul(t))?n=r[0]:(n=r[1],f(this.g.mul(n).x.cmp(this.g.x.redMul(t))===0)) }var o; return o=e.basis?e.basis.map(function(e){ return{a:new c(e.a,16),b:new c(e.b,16)} }):this._getEndoBasis(n),{beta:t,lambda:n,basis:o} } },i.prototype._getEndoRoots=function(e){ var t=e===this.p?this.red:c.mont(e),n=new c(2).toRed(t).redInvm(),i=n.redNeg(),r=new c(3).toRed(t).redNeg().redSqrt().redMul(n); return[i.redAdd(r).fromRed(),i.redSub(r).fromRed()];},i.prototype._getEndoBasis=function(e){ for(var t,n,i,r,o,a,s,u,l,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),p=e,d=this.n.clone(),h=new c(1),m=new c(0),v=new c(0),b=new c(1),y=0; 0!==p.cmpn(0);){ var g=d.div(p); u=d.sub(g.mul(p)),l=v.sub(g.mul(h)); var _=b.sub(g.mul(m)); if(!i&&u.cmp(f)<0)t=s.neg(),n=h,i=u.neg(),r=l; else if(i&&++y==2)break; s=u,d=p,p=u,v=h,h=l,b=m,m=_;}o=u.neg(),a=l; var x=i.sqr().add(r.sqr()); return o.sqr().add(a.sqr()).cmp(x)>=0&&(o=t,a=n),i.negative&&(i=i.neg(),r=r.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:i,b:r},{a:o,b:a}] },i.prototype._endoSplit=function(e){ var t=this.endo.basis,n=t[0],i=t[1],r=i.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=r.mul(n.a),s=o.mul(i.a),c=r.mul(n.b),u=o.mul(i.b); return{k1:e.sub(a).sub(s),k2:c.add(u).neg()} },i.prototype.pointFromX=function(e,t){ (e=new c(e,16)).red||(e=e.toRed(this.red)); var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=n.redSqrt(); if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point"); var r=i.fromRed().isOdd(); return(t&&!r||!t&&r)&&(i=i.redNeg()),this.point(e,i);},i.prototype.validate=function(e){ if(e.inf)return!0; var t=e.x,n=e.y,i=this.a.redMul(t),r=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b); return n.redSqr().redISub(r).cmpn(0)===0},i.prototype._endoWnafMulAdd=function(e,t,n){ for(var i=this._endoWnafT1,r=this._endoWnafT2,o=0; o<e.length; o++){ var a=this._endoSplit(t[o]),s=e[o],c=s._getBeta(); a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),c=c.neg(!0)),i[2*o]=s,i[2*o+1]=c,r[2*o]=a.k1,r[2*o+1]=a.k2 }for(var u=this._wnafMulAdd(1,i,r,2*o,n),l=0; l<2*o; l++)i[l]=null,r[l]=null; return u;},u(r,l.BasePoint),i.prototype.point=function(e,t,n){ return new r(this,e,t,n) },i.prototype.pointFromJSON=function(e,t){ return r.fromJSON(this,e,t) },r.prototype._getBeta=function(){ if(this.curve.endo){ var e=this.precomputed; if(e&&e.beta)return e.beta; var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y); if(e){ var n=this.curve,i=function(e){ return n.point(e.x.redMul(n.endo.beta),e.y);}; e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(i)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(i)}} }return t } },r.prototype.toJSON=function(){ return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y] },r.fromJSON=function(e,t,n){ function i(t){ return e.point(t[0],t[1],n);}typeof t=="string"&&(t=JSON.parse(t)); var r=e.point(t[0],t[1],n); if(!t[2])return r; var o=t[2]; return r.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[r].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[r].concat(o.naf.points.map(i))}},r },r.prototype.inspect=function(){ return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">";},r.prototype.isInfinity=function(){ return this.inf;},r.prototype.add=function(e){ if(this.inf)return e; if(e.inf)return this; if(this.eq(e))return this.dbl(); if(this.neg().eq(e))return this.curve.point(null,null); if(this.x.cmp(e.x)===0)return this.curve.point(null,null); var t=this.y.redSub(e.y); 0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm())); var n=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(n)).redISub(this.y); return this.curve.point(n,i);},r.prototype.dbl=function(){ if(this.inf)return this; var e=this.y.redAdd(this.y); if(e.cmpn(0)===0)return this.curve.point(null,null); var t=this.curve.a,n=this.x.redSqr(),i=e.redInvm(),r=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(i),o=r.redSqr().redISub(this.x.redAdd(this.x)),a=r.redMul(this.x.redSub(o)).redISub(this.y); return this.curve.point(o,a) },r.prototype.getX=function(){ return this.x.fromRed();},r.prototype.getY=function(){ return this.y.fromRed();},r.prototype.mul=function(e){ return e=new c(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e);},r.prototype.mulAdd=function(e,t,n){ var i=[this,t],r=[e,n]; return this.curve.endo?this.curve._endoWnafMulAdd(i,r):this.curve._wnafMulAdd(1,i,r,2);},r.prototype.jmulAdd=function(e,t,n){ var i=[this,t],r=[e,n]; return this.curve.endo?this.curve._endoWnafMulAdd(i,r,!0):this.curve._wnafMulAdd(1,i,r,2,!0);},r.prototype.eq=function(e){ return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0);},r.prototype.neg=function(e){ if(this.inf)return this; var t=this.curve.point(this.x,this.y.redNeg()); if(e&&this.precomputed){ var n=this.precomputed,i=function(e){ return e.neg() }; t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}};}return t;},r.prototype.toJ=function(){ return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one) },u(o,l.BasePoint),i.prototype.jpoint=function(e,t,n){ return new o(this,e,t,n);},o.prototype.toP=function(){ if(this.isInfinity())return this.curve.point(null,null); var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),i=this.y.redMul(t).redMul(e); return this.curve.point(n,i);},o.prototype.neg=function(){ return this.curve.jpoint(this.x,this.y.redNeg(),this.z);},o.prototype.add=function(e){ if(this.isInfinity())return e; if(e.isInfinity())return this; var t=e.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(t),r=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=i.redSub(r),c=o.redSub(a); if(s.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl(); var u=s.redSqr(),l=u.redMul(s),f=i.redMul(u),p=c.redSqr().redIAdd(l).redISub(f).redISub(f),d=c.redMul(f.redISub(p)).redISub(o.redMul(l)),h=this.z.redMul(e.z).redMul(s); return this.curve.jpoint(p,d,h);},o.prototype.mixedAdd=function(e){ if(this.isInfinity())return e.toJ(); if(e.isInfinity())return this; var t=this.z.redSqr(),n=this.x,i=e.x.redMul(t),r=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(i),s=r.redSub(o); if(a.cmpn(0)===0)return s.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl(); var c=a.redSqr(),u=c.redMul(a),l=n.redMul(c),f=s.redSqr().redIAdd(u).redISub(l).redISub(l),p=s.redMul(l.redISub(f)).redISub(r.redMul(u)),d=this.z.redMul(a); return this.curve.jpoint(f,p,d);},o.prototype.dblp=function(e){ if(e===0)return this; if(this.isInfinity())return this; if(!e)return this.dbl(); if(this.curve.zeroA||this.curve.threeA){ for(var t=this,n=0; n<e; n++)t=t.dbl(); return t }for(var i=this.curve.a,r=this.curve.tinv,o=this.x,a=this.y,s=this.z,c=s.redSqr().redSqr(),u=a.redAdd(a),n=0; n<e; n++){ var l=o.redSqr(),f=u.redSqr(),p=f.redSqr(),d=l.redAdd(l).redIAdd(l).redIAdd(i.redMul(c)),h=o.redMul(f),m=d.redSqr().redISub(h.redAdd(h)),v=h.redISub(m),b=d.redMul(v); b=b.redIAdd(b).redISub(p); var y=u.redMul(s); n+1<e&&(c=c.redMul(p)),o=m,s=y,u=b }return this.curve.jpoint(o,u.redMul(r),s) },o.prototype.dbl=function(){ return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl() },o.prototype._zeroDbl=function(){ var e,t,n; if(this.zOne){ var i=this.x.redSqr(),r=this.y.redSqr(),o=r.redSqr(),a=this.x.redAdd(r).redSqr().redISub(i).redISub(o); a=a.redIAdd(a); var s=i.redAdd(i).redIAdd(i),c=s.redSqr().redISub(a).redISub(a),u=o.redIAdd(o); u=(u=u.redIAdd(u)).redIAdd(u),e=c,t=s.redMul(a.redISub(c)).redISub(u),n=this.y.redAdd(this.y);}else{ var l=this.x.redSqr(),f=this.y.redSqr(),p=f.redSqr(),d=this.x.redAdd(f).redSqr().redISub(l).redISub(p); d=d.redIAdd(d); var h=l.redAdd(l).redIAdd(l),m=h.redSqr(),v=p.redIAdd(p); v=(v=v.redIAdd(v)).redIAdd(v),e=m.redISub(d).redISub(d),t=h.redMul(d.redISub(e)).redISub(v),n=(n=this.y.redMul(this.z)).redIAdd(n) }return this.curve.jpoint(e,t,n);},o.prototype._threeDbl=function(){ var e,t,n; if(this.zOne){ var i=this.x.redSqr(),r=this.y.redSqr(),o=r.redSqr(),a=this.x.redAdd(r).redSqr().redISub(i).redISub(o); a=a.redIAdd(a); var s=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),c=s.redSqr().redISub(a).redISub(a); e=c; var u=o.redIAdd(o); u=(u=u.redIAdd(u)).redIAdd(u),t=s.redMul(a.redISub(c)).redISub(u),n=this.y.redAdd(this.y);}else{ var l=this.z.redSqr(),f=this.y.redSqr(),p=this.x.redMul(f),d=this.x.redSub(l).redMul(this.x.redAdd(l)); d=d.redAdd(d).redIAdd(d); var h=p.redIAdd(p),m=(h=h.redIAdd(h)).redAdd(h); e=d.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(f).redISub(l); var v=f.redSqr(); v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v),t=d.redMul(h.redISub(e)).redISub(v);}return this.curve.jpoint(e,t,n);},o.prototype._dbl=function(){ var e=this.curve.a,t=this.x,n=this.y,i=this.z,r=i.redSqr().redSqr(),o=t.redSqr(),a=n.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(r)),c=t.redAdd(t),u=(c=c.redIAdd(c)).redMul(a),l=s.redSqr().redISub(u.redAdd(u)),f=u.redISub(l),p=a.redSqr(); p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p); var d=s.redMul(f).redISub(p),h=n.redAdd(n).redMul(i); return this.curve.jpoint(l,d,h) },o.prototype.trpl=function(){ if(!this.curve.zeroA)return this.dbl().add(this); var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),i=t.redSqr(),r=e.redAdd(e).redIAdd(e),o=r.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(i),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),c=i.redIAdd(i); c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c); var u=r.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(c),l=t.redMul(u); l=(l=l.redIAdd(l)).redIAdd(l); var f=this.x.redMul(s).redISub(l); f=(f=f.redIAdd(f)).redIAdd(f); var p=this.y.redMul(u.redMul(c.redISub(u)).redISub(a.redMul(s))); p=(p=(p=p.redIAdd(p)).redIAdd(p)).redIAdd(p); var d=this.z.redAdd(a).redSqr().redISub(n).redISub(s); return this.curve.jpoint(f,p,d) },o.prototype.mul=function(e,t){ return e=new c(e,t),this.curve._wnafMul(this,e);},o.prototype.eq=function(e){ if(e.type==="affine")return this.eq(e.toJ()); if(this===e)return!0; var t=this.z.redSqr(),n=e.z.redSqr(); if(this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0)!==0)return!1; var i=t.redMul(this.z),r=n.redMul(e.z); return this.y.redMul(r).redISub(e.y.redMul(i)).cmpn(0)===0},o.prototype.eqXToP=function(e){ var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t); if(this.x.cmp(n)===0)return!0; for(var i=e.clone(),r=this.curve.redN.redMul(t); ;){ if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1; if(n.redIAdd(r),this.x.cmp(n)===0)return!0 }return!1;},o.prototype.inspect=function(){ return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">" },o.prototype.isInfinity=function(){ return this.z.cmpn(0)===0} },{"../../elliptic":67,"../curve":70,"bn.js":"BN",inherits:101}],73:[function(e,t,n){ function i(e){ "short"===e.type?this.curve=new s.curve.short(e):e.type==="edwards"?this.curve=new s.curve.edwards(e):this.curve=new s.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,c(this.g.validate(),"Invalid curve"),c(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O");}function r(e,t){ Object.defineProperty(o,e,{configurable:!0,enumerable:!0,get:function(){ var n=new i(t); return Object.defineProperty(o,e,{configurable:!0,enumerable:!0,value:n}),n;}});}var o=n,a=e("hash.js"),s=e("../elliptic"),c=s.utils.assert; o.PresetCurve=i,r("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),r("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),r("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),r("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),r("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),r("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),r("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]}); var u; try{ u=e("./precomputed/secp256k1") }catch(e){ u=void 0 }r("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",u]}) },{"../elliptic":67,"./precomputed/secp256k1":80,"hash.js":86}],74:[function(e,t,n){ function i(e){ if(!(this instanceof i))return new i(e); "string"==typeof e&&(s(a.curves.hasOwnProperty(e),"Unknown curve "+e),e=a.curves[e]),e instanceof a.curves.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash }var r=e("bn.js"),o=e("hmac-drbg"),a=e("../../elliptic"),s=a.utils.assert,c=e("./key"),u=e("./signature"); t.exports=i,i.prototype.keyPair=function(e){ return new c(this,e);},i.prototype.keyFromPrivate=function(e,t){ return c.fromPrivate(this,e,t) },i.prototype.keyFromPublic=function(e,t){ return c.fromPublic(this,e,t);},i.prototype.genKeyPair=function(e){ e||(e={}); for(var t=new o({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a.rand(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new r(2)); ;){ var s=new r(t.generate(n)); if(!(s.cmp(i)>0))return s.iaddn(1),this.keyFromPrivate(s);} },i.prototype._truncateToN=function(e,t){ var n=8*e.byteLength()-this.n.bitLength(); return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e },i.prototype.sign=function(e,t,n,i){ "object"===(void 0===n?"undefined":_typeof(n))&&(i=n,n=null),i||(i={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16)); for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),c=e.toArray("be",a),l=new o({hash:this.hash,entropy:s,nonce:c,pers:i.pers,persEnc:i.persEnc||"utf8"}),f=this.n.sub(new r(1)),p=0; !0; p++){ var d=i.k?i.k(p):new r(l.generate(this.n.byteLength())); if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(f)>=0)){ var h=this.g.mul(d); if(!h.isInfinity()){ var m=h.getX(),v=m.umod(this.n); if(v.cmpn(0)!==0){ var b=d.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e)); if((b=b.umod(this.n)).cmpn(0)!==0){ var y=(h.getY().isOdd()?1:0)|(m.cmp(v)!==0?2:0); return i.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),y^=1),new u({r:v,s:b,recoveryParam:y}) } } } } } },i.prototype.verify=function(e,t,n,i){ e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,i); var o=(t=new u(t,"hex")).r,a=t.s; if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1; if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1; var s=a.invm(this.n),c=s.mul(e).umod(this.n),l=s.mul(o).umod(this.n); if(!this.curve._maxwellTrick)return!(f=this.g.mulAdd(c,n.getPublic(),l)).isInfinity()&&f.getX().umod(this.n).cmp(o)===0; var f=this.g.jmulAdd(c,n.getPublic(),l); return!f.isInfinity()&&f.eqXToP(o);},i.prototype.recoverPubKey=function(e,t,n,i){ s((3&n)===n,"The recovery param is more than two bits"),t=new u(t,i); var o=this.n,a=new r(e),c=t.r,l=t.s,f=1&n,p=n>>1; if(c.cmp(this.curve.p.umod(this.curve.n))>=0&&p)throw new Error("Unable to find sencond key candinate"); c=p?this.curve.pointFromX(c.add(this.curve.n),f):this.curve.pointFromX(c,f); var d=t.r.invm(o),h=o.sub(a).mul(d).umod(o),m=l.mul(d).umod(o); return this.g.mulAdd(h,c,m);},i.prototype.getKeyRecoveryParam=function(e,t,n,i){ if((t=new u(t,i)).recoveryParam!==null)return t.recoveryParam; for(var r=0; r<4; r++){ var o; try{ o=this.recoverPubKey(e,t,r) }catch(e){ continue;}if(o.eq(n))return r }throw new Error("Unable to find valid recovery factor") };},{"../../elliptic":67,"./key":75,"./signature":76,"bn.js":"BN","hmac-drbg":98}],75:[function(e,t,n){ function i(e,t){ this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc) }var r=e("bn.js"),o=e("../../elliptic").utils.assert; t.exports=i,i.fromPublic=function(e,t,n){ return t instanceof i?t:new i(e,{pub:t,pubEnc:n});},i.fromPrivate=function(e,t,n){ return t instanceof i?t:new i(e,{priv:t,privEnc:n});},i.prototype.validate=function(){ var e=this.getPublic(); return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"} },i.prototype.getPublic=function(e,t){ returntypeof e=="string"&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub;},i.prototype.getPrivate=function(e){ returne==="hex"?this.priv.toString(16,2):this.priv;},i.prototype._importPrivate=function(e,t){ this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n) },i.prototype._importPublic=function(e,t){ if(e.x||e.y)returnthis.ec.curve.type==="mont"?o(e.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||o(e.x&&e.y,"Need both x and y coordinate"),void (this.pub=this.ec.curve.point(e.x,e.y)); this.pub=this.ec.curve.decodePoint(e,t);},i.prototype.derive=function(e){ return e.mul(this.priv).getX() },i.prototype.sign=function(e,t,n){ return this.ec.sign(e,this,t,n) },i.prototype.verify=function(e,t){ return this.ec.verify(e,t,this) },i.prototype.inspect=function(){ return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >";} },{"../../elliptic":67,"bn.js":"BN"}],76:[function(e,t,n){ function i(e,t){ if(e instanceof i)return e; this._importDER(e,t)||(l(e.r&&e.s,"Signature without r or s"),this.r=new c(e.r,16),this.s=new c(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam) }function r(){ this.place=0 }function o(e,t){ var n=e[t.place++]; if(!(128&n))return n; for(var i=15&n,r=0,o=0,a=t.place; o<i; o++,a++)r<<=8,r|=e[a]; return t.place=a,r;}function a(e){ for(var t=0,n=e.length-1; !e[t]&&!(128&e[t+1])&&t<n;)t++; return t===0?e:e.slice(t);}function s(e,t){ if(t<128)e.push(t); else{ var n=1+(Math.log(t)/Math.LN2>>>3); for(e.push(128|n); --n;)e.push(t>>>(n<<3)&255); e.push(t);} }var c=e("bn.js"),u=e("../../elliptic").utils,l=u.assert; t.exports=i,i.prototype._importDER=function(e,t){ e=u.toArray(e,t); var n=new r; if(e[n.place++]!==48)return!1; if(o(e,n)+n.place!==e.length)return!1; if(e[n.place++]!==2)return!1; var i=o(e,n),a=e.slice(n.place,i+n.place); if(n.place+=i,e[n.place++]!==2)return!1; var s=o(e,n); if(e.length!==s+n.place)return!1; var l=e.slice(n.place,s+n.place); return a[0]===0&&128&a[1]&&(a=a.slice(1)),l[0]===0&&128&l[1]&&(l=l.slice(1)),this.r=new c(a),this.s=new c(l),this.recoveryParam=null,!0;},i.prototype.toDER=function(e){ var t=this.r.toArray(),n=this.s.toArray(); for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=a(t),n=a(n); !(n[0]||128&n[1]);)n=n.slice(1); var i=[2]; s(i,t.length),(i=i.concat(t)).push(2),s(i,n.length); var r=i.concat(n),o=[48]; return s(o,r.length),o=o.concat(r),u.encode(o,e);} },{"../../elliptic":67,"bn.js":"BN"}],77:[function(e,t,n){ function i(e){ if(s(e==="ed25519","only tested with ed25519 so far"),!(this instanceof i))return new i(e); var e=o.curves[e].curve; this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512;}var r=e("hash.js"),o=e("../../elliptic"),a=o.utils,s=a.assert,c=a.parseBytes,u=e("./key"),l=e("./signature"); t.exports=i,i.prototype.sign=function(e,t){ e=c(e); var n=this.keyFromSecret(t),i=this.hashInt(n.messagePrefix(),e),r=this.g.mul(i),o=this.encodePoint(r),a=this.hashInt(o,n.pubBytes(),e).mul(n.priv()),s=i.add(a).umod(this.curve.n); return this.makeSignature({R:r,S:s,Rencoded:o});},i.prototype.verify=function(e,t,n){ e=c(e),t=this.makeSignature(t); var i=this.keyFromPublic(n),r=this.hashInt(t.Rencoded(),i.pubBytes(),e),o=this.g.mul(t.S()); return t.R().add(i.pub().mul(r)).eq(o) },i.prototype.hashInt=function(){ for(var e=this.hash(),t=0; t<arguments.length; t++)e.update(arguments[t]); return a.intFromLE(e.digest()).umod(this.curve.n);},i.prototype.keyFromPublic=function(e){ return u.fromPublic(this,e) },i.prototype.keyFromSecret=function(e){ return u.fromSecret(this,e);},i.prototype.makeSignature=function(e){ return e instanceof l?e:new l(this,e);},i.prototype.encodePoint=function(e){ var t=e.getY().toArray("le",this.encodingLength); return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t;},i.prototype.decodePoint=function(e){ var t=(e=a.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),i=(128&e[t])!=0,r=a.intFromLE(n); return this.curve.pointFromY(r,i);},i.prototype.encodeInt=function(e){ return e.toArray("le",this.encodingLength);},i.prototype.decodeInt=function(e){ return a.intFromLE(e);},i.prototype.isPoint=function(e){ return e instanceof this.pointClass;} },{"../../elliptic":67,"./key":78,"./signature":79,"hash.js":86}],78:[function(e,t,n){ function i(e,t){ this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub) }var r=e("../../elliptic").utils,o=r.assert,a=r.parseBytes,s=r.cachedProperty; i.fromPublic=function(e,t){ return t instanceof i?t:new i(e,{pub:t}) },i.fromSecret=function(e,t){ return t instanceof i?t:new i(e,{secret:t});},i.prototype.secret=function(){ return this._secret;},s(i,"pubBytes",function(){ return this.eddsa.encodePoint(this.pub());}),s(i,"pub",function(){ return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv());}),s(i,"privBytes",function(){ var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,i=t.slice(0,e.encodingLength); return i[0]&=248,i[n]&=127,i[n]|=64,i }),s(i,"priv",function(){ return this.eddsa.decodeInt(this.privBytes()) }),s(i,"hash",function(){ return this.eddsa.hash().update(this.secret()).digest();}),s(i,"messagePrefix",function(){ return this.hash().slice(this.eddsa.encodingLength) }),i.prototype.sign=function(e){ return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this) },i.prototype.verify=function(e,t){ return this.eddsa.verify(e,t,this) },i.prototype.getSecret=function(e){ return o(this._secret,"KeyPair is public only"),r.encode(this.secret(),e);},i.prototype.getPublic=function(e){ return r.encode(this.pubBytes(),e) },t.exports=i;},{"../../elliptic":67}],79:[function(e,t,n){ function i(e,t){ this.eddsa=e,(void 0===t?"undefined":_typeof(t))!=="object"&&(t=c(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded;}var r=e("bn.js"),o=e("../../elliptic").utils,a=o.assert,s=o.cachedProperty,c=o.parseBytes; s(i,"S",function(){ return this.eddsa.decodeInt(this.Sencoded());}),s(i,"R",function(){ return this.eddsa.decodePoint(this.Rencoded()) }),s(i,"Rencoded",function(){ return this.eddsa.encodePoint(this.R());}),s(i,"Sencoded",function(){ return this.eddsa.encodeInt(this.S()) }),i.prototype.toBytes=function(){ return this.Rencoded().concat(this.Sencoded()) },i.prototype.toHex=function(){ return o.encode(this.toBytes(),"hex").toUpperCase();},t.exports=i },{"../../elliptic":67,"bn.js":"BN"}],80:[function(e,t,n){ t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}} },{}],81:[function(e,t,n){ var i=n,r=e("bn.js"),o=e("minimalistic-assert"),a=e("minimalistic-crypto-utils"); i.assert=o,i.toArray=a.toArray,i.zero2=a.zero2,i.toHex=a.toHex,i.encode=a.encode,i.getNAF=function(e,t){ for(var n=[],i=1<<t+1,r=e.clone(); r.cmpn(1)>=0;){ var o; if(r.isOdd()){ var a=r.andln(i-1); o=a>(i>>1)-1?(i>>1)-a:a,r.isubn(o);}else o=0; n.push(o); for(var s=r.cmpn(0)!==0&&r.andln(i-1)===0?t+1:1,c=1; c<s; c++)n.push(0); r.iushrn(s);}return n;},i.getJSF=function(e,t){ var n=[[],[]]; e=e.clone(),t=t.clone(); for(var i=0,r=0; e.cmpn(-i)>0||t.cmpn(-r)>0;){ var o=e.andln(3)+i&3,a=t.andln(3)+r&3; 3===o&&(o=-1),a===3&&(a=-1); var s; s=(1&o)==0?0:(u=e.andln(7)+i&7)!=3&&u!==5||a!==2?o:-o,n[0].push(s); var c; if((1&a)==0)c=0; else{ var u=t.andln(7)+r&7; c=u!==3&&u!==5||o!==2?a:-a }n[1].push(c),2*i===s+1&&(i=1-i),2*r===c+1&&(r=1-r),e.iushrn(1),t.iushrn(1) }return n;},i.cachedProperty=function(e,t,n){ var i="_"+t; e.prototype[t]=function(){ return void 0!==this[i]?this[i]:this[i]=n.call(this);} },i.parseBytes=function(e){ returntypeof e=="string"?i.toArray(e,"hex"):e;},i.intFromLE=function(e){ return new r(e,"hex","le") };},{"bn.js":"BN","minimalistic-assert":106,"minimalistic-crypto-utils":107}],82:[function(e,t,n){ t.exports={name:"elliptic",version:"6.4.0",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"}};},{}],83:[function(e,t,n){ function i(){ this._events=this._events||{},this._maxListeners=this._maxListeners||void 0 }function r(e){ returntypeof e=="function"}function o(e){ returntypeof e=="number"}function a(e){ return(void 0===e?"undefined":_typeof(e))==="object"&&e!==null}function s(e){ return void 0===e }t.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(e){ if(!o(e)||e<0||isNaN(e))throw TypeError("n must be a positive number"); return this._maxListeners=e,this;},i.prototype.emit=function(e){ var t,n,i,o,c,u; if(this._events||(this._events={}),e==="error"&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){ if((t=arguments[1])instanceof Error)throw t; var l=new Error('Uncaught, unspecified "error" event. ('+t+")"); throw l.context=t,l }if(n=this._events[e],s(n))return!1; if(r(n))switch(arguments.length){ case 1: n.call(this); break; case 2: n.call(this,arguments[1]); break; case 3: n.call(this,arguments[1],arguments[2]); break; default: o=Array.prototype.slice.call(arguments,1),n.apply(this,o) }else if(a(n))for(o=Array.prototype.slice.call(arguments,1),i=(u=n.slice()).length,c=0; c<i; c++)u[c].apply(this,o); return!0;},i.prototype.addListener=function(e,t){ var n; if(!r(t))throw TypeError("listener must be a function"); return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned&&(n=s(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(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),typeof console.trace=="function"&&console.trace()),this;},i.prototype.on=i.prototype.addListener,i.prototype.once=function(e,t){ function n(){ this.removeListener(e,n),i||(i=!0,t.apply(this,arguments));}if(!r(t))throw TypeError("listener must be a function"); var i=!1; return n.listener=t,this.on(e,n),this },i.prototype.removeListener=function(e,t){ var n,i,o,s; if(!r(t))throw TypeError("listener must be a function"); if(!this._events||!this._events[e])return this; if(n=this._events[e],o=n.length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t); else if(a(n)){ for(s=o; s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){ i=s; break }if(i<0)return this; 1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t) }return this },i.prototype.removeAllListeners=function(e){ var t,n; if(!this._events)return this; if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[e]&&delete this._events[e],this; if(arguments.length===0){ for(t in this._events)t!=="removeListener"&&this.removeAllListeners(t); return this.removeAllListeners("removeListener"),this._events={},this }if(n=this._events[e],r(n))this.removeListener(e,n); else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]); return delete this._events[e],this },i.prototype.listeners=function(e){ return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[];},i.prototype.listenerCount=function(e){ if(this._events){ var t=this._events[e]; if(r(t))return 1; if(t)return t.length }return 0;},i.listenerCount=function(e,t){ return e.listenerCount(t) };},{}],84:[function(e,t,n){ var i=e("safe-buffer").Buffer,r=e("md5.js"); t.exports=function(e,t,n,o){ if(i.isBuffer(e)||(e=i.from(e,"binary")),t&&(i.isBuffer(t)||(t=i.from(t,"binary")),t.length!==8))throw new RangeError("salt should be Buffer with 8 byte length"); for(var a=n/8,s=i.alloc(a),c=i.alloc(o||0),u=i.alloc(0); a>0||o>0;){ var l=new r; l.update(u),l.update(e),t&&l.update(t),u=l.digest(); var f=0; if(a>0){ var p=s.length-a; f=Math.min(a,u.length),u.copy(s,p,0,f),a-=f;}if(f<u.length&&o>0){ var d=c.length-o,h=Math.min(o,u.length-f); u.copy(c,d,f,f+h),o-=h } }return u.fill(0),{key:s,iv:c};} },{"md5.js":103,"safe-buffer":144}],85:[function(e,t,n){ (function(n){ function i(e){ r.call(this),this._block=new n(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1;}var r=e("stream").Transform; e("inherits")(i,r),i.prototype._transform=function(e,t,i){ var r=null; try{ "buffer"!==t&&(e=new n(e,t)),this.update(e) }catch(e){ r=e }i(r);},i.prototype._flush=function(e){ var t=null; try{ this.push(this._digest()) }catch(e){ t=e }e(t);},i.prototype.update=function(e,t){ if(!n.isBuffer(e)&&typeof e!="string")throw new TypeError("Data must be a string or a buffer"); if(this._finalized)throw new Error("Digest already called"); n.isBuffer(e)||(e=new n(e,t||"binary")); for(var i=this._block,r=0; this._blockOffset+e.length-r>=this._blockSize;){ for(var o=this._blockOffset; o<this._blockSize;)i[o++]=e[r++]; this._update(),this._blockOffset=0;}for(;r<e.length;)i[this._blockOffset++]=e[r++]; for(var a=0,s=8*e.length; s>0; ++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s); return this },i.prototype._update=function(e){ throw new Error("_update is not implemented");},i.prototype.digest=function(e){ if(this._finalized)throw new Error("Digest already called"); this._finalized=!0; var t=this._digest(); return void 0!==e&&(t=t.toString(e)),t },i.prototype._digest=function(){ throw new Error("_digest is not implemented") },t.exports=i;}).call(this,e("buffer").Buffer);},{buffer:47,inherits:101,stream:155}],86:[function(e,t,n){ var i=n; i.utils=e("./hash/utils"),i.common=e("./hash/common"),i.sha=e("./hash/sha"),i.ripemd=e("./hash/ripemd"),i.hmac=e("./hash/hmac"),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160;},{"./hash/common":87,"./hash/hmac":88,"./hash/ripemd":89,"./hash/sha":90,"./hash/utils":97}],87:[function(e,t,n){ function i(){ this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32;}var r=e("./utils"),o=e("minimalistic-assert"); n.BlockHash=i,i.prototype.update=function(e,t){ if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){ var n=(e=this.pending).length%this._delta8; this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian); for(var i=0; i<e.length; i+=this._delta32)this._update(e,i,i+this._delta32);}return this;},i.prototype.digest=function(e){ return this.update(this._pad()),o(this.pending===null),this._digest(e);},i.prototype._pad=function(){ var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,i=new Array(n+this.padLength); i[0]=128; for(var r=1; r<n; r++)i[r]=0; if(e<<=3,this.endian==="big"){ for(var o=8; o<this.padLength; o++)i[r++]=0; i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=e>>>24&255,i[r++]=e>>>16&255,i[r++]=e>>>8&255,i[r++]=255&e }else for(i[r++]=255&e,i[r++]=e>>>8&255,i[r++]=e>>>16&255,i[r++]=e>>>24&255,i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=0,o=8; o<this.padLength; o++)i[r++]=0; return i } },{"./utils":97,"minimalistic-assert":106}],88:[function(e,t,n){ function i(e,t,n){ if(!(this instanceof i))return new i(e,t,n); this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n)) }var r=e("./utils"),o=e("minimalistic-assert"); t.exports=i,i.prototype._init=function(e){ e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),o(e.length<=this.blockSize); for(var t=e.length; t<this.blockSize; t++)e.push(0); for(t=0; t<e.length; t++)e[t]^=54; for(this.inner=(new this.Hash).update(e),t=0; t<e.length; t++)e[t]^=106; this.outer=(new this.Hash).update(e) },i.prototype.update=function(e,t){ return this.inner.update(e,t),this },i.prototype.digest=function(e){ return this.outer.update(this.inner.digest()),this.outer.digest(e) };},{"./utils":97,"minimalistic-assert":106}],89:[function(e,t,n){ function i(){ if(!(this instanceof i))return new i; d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little";}function r(e,t,n,i){ return e<=15?t^n^i:e<=31?t&n|~t&i:e<=47?(t|~n)^i:e<=63?t&i|n&~i:t^(n|~i);}function o(e){ return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838;}function a(e){ return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0 }var s=e("./utils"),c=e("./common"),u=s.rotl32,l=s.sum32,f=s.sum32_3,p=s.sum32_4,d=c.BlockHash; s.inherits(i,d),n.ripemd160=i,i.blockSize=512,i.outSize=160,i.hmacStrength=192,i.padLength=64,i.prototype._update=function(e,t){ for(var n=this.h[0],i=this.h[1],s=this.h[2],c=this.h[3],d=this.h[4],y=n,g=i,_=s,x=c,w=d,k=0; k<80; k++){ var j=l(u(p(n,r(k,i,s,c),e[h[k]+t],o(k)),v[k]),d); n=d,d=c,c=u(s,10),s=i,i=j,j=l(u(p(y,r(79-k,g,_,x),e[m[k]+t],a(k)),b[k]),w),y=w,w=x,x=u(_,10),_=g,g=j }j=f(this.h[1],s,x),this.h[1]=f(this.h[2],c,w),this.h[2]=f(this.h[3],d,y),this.h[3]=f(this.h[4],n,g),this.h[4]=f(this.h[0],i,_),this.h[0]=j },i.prototype._digest=function(e){ returne==="hex"?s.toHex32(this.h,"little"):s.split32(this.h,"little");}; var h=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],b=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];},{"./common":87,"./utils":97}],90:[function(e,t,n){ n.sha1=e("./sha/1"),n.sha224=e("./sha/224"),n.sha256=e("./sha/256"),n.sha384=e("./sha/384"),n.sha512=e("./sha/512") },{"./sha/1":91,"./sha/224":92,"./sha/256":93,"./sha/384":94,"./sha/512":95}],91:[function(e,t,n){ function i(){ if(!(this instanceof i))return new i; f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80) }var r=e("../utils"),o=e("../common"),a=e("./common"),s=r.rotl32,c=r.sum32,u=r.sum32_5,l=a.ft_1,f=o.BlockHash,p=[1518500249,1859775393,2400959708,3395469782]; r.inherits(i,f),t.exports=i,i.blockSize=512,i.outSize=160,i.hmacStrength=80,i.padLength=64,i.prototype._update=function(e,t){ for(var n=this.W,i=0; i<16; i++)n[i]=e[t+i]; for(;i<n.length; i++)n[i]=s(n[i-3]^n[i-8]^n[i-14]^n[i-16],1); var r=this.h[0],o=this.h[1],a=this.h[2],f=this.h[3],d=this.h[4]; for(i=0; i<n.length; i++){ var h=~~(i/20),m=u(s(r,5),l(h,o,a,f),d,n[i],p[h]); d=f,f=a,a=s(o,30),o=r,r=m;}this.h[0]=c(this.h[0],r),this.h[1]=c(this.h[1],o),this.h[2]=c(this.h[2],a),this.h[3]=c(this.h[3],f),this.h[4]=c(this.h[4],d) },i.prototype._digest=function(e){ returne==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big");};},{"../common":87,"../utils":97,"./common":96}],92:[function(e,t,n){ function i(){ if(!(this instanceof i))return new i; o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428];}var r=e("../utils"),o=e("./256"); r.inherits(i,o),t.exports=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(e){ returne==="hex"?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big") };},{"../utils":97,"./256":93}],93:[function(e,t,n){ function i(){ if(!(this instanceof i))return new i; b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64) }var r=e("../utils"),o=e("../common"),a=e("./common"),s=e("minimalistic-assert"),c=r.sum32,u=r.sum32_4,l=r.sum32_5,f=a.ch32,p=a.maj32,d=a.s0_256,h=a.s1_256,m=a.g0_256,v=a.g1_256,b=o.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]; r.inherits(i,b),t.exports=i,i.blockSize=512,i.outSize=256,i.hmacStrength=192,i.padLength=64,i.prototype._update=function(e,t){ for(var n=this.W,i=0; i<16; i++)n[i]=e[t+i]; for(;i<n.length; i++)n[i]=u(v(n[i-2]),n[i-7],m(n[i-15]),n[i-16]); var r=this.h[0],o=this.h[1],a=this.h[2],b=this.h[3],y=this.h[4],g=this.h[5],_=this.h[6],x=this.h[7]; for(s(this.k.length===n.length),i=0; i<n.length; i++){ var w=l(x,h(y),f(y,g,_),this.k[i],n[i]),k=c(d(r),p(r,o,a)); x=_,_=g,g=y,y=c(b,w),b=a,a=o,o=r,r=c(w,k);}this.h[0]=c(this.h[0],r),this.h[1]=c(this.h[1],o),this.h[2]=c(this.h[2],a),this.h[3]=c(this.h[3],b),this.h[4]=c(this.h[4],y),this.h[5]=c(this.h[5],g),this.h[6]=c(this.h[6],_),this.h[7]=c(this.h[7],x);},i.prototype._digest=function(e){ returne==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big");};},{"../common":87,"../utils":97,"./common":96,"minimalistic-assert":106}],94:[function(e,t,n){ function i(){ if(!(this instanceof i))return new i; o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428];}var r=e("../utils"),o=e("./512"); r.inherits(i,o),t.exports=i,i.blockSize=1024,i.outSize=384,i.hmacStrength=192,i.padLength=128,i.prototype._digest=function(e){ returne==="hex"?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big");} },{"../utils":97,"./512":95}],95:[function(e,t,n){ function i(){ if(!(this instanceof i))return new i; T.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=P,this.W=new Array(160);}function r(e,t,n,i,r){ var o=e&n^~e&r; return o<0&&(o+=4294967296),o;}function o(e,t,n,i,r,o){ var a=t&i^~t&o; return a<0&&(a+=4294967296),a }function a(e,t,n,i,r){ var o=e&n^e&r^n&r; return o<0&&(o+=4294967296),o }function s(e,t,n,i,r,o){ var a=t&i^t&o^i&o; return a<0&&(a+=4294967296),a }function c(e,t){ var n=g(e,t,28)^g(t,e,2)^g(t,e,7); return n<0&&(n+=4294967296),n;}function u(e,t){ var n=_(e,t,28)^_(t,e,2)^_(t,e,7); return n<0&&(n+=4294967296),n;}function l(e,t){ var n=g(e,t,14)^g(e,t,18)^g(t,e,9); return n<0&&(n+=4294967296),n }function f(e,t){ var n=_(e,t,14)^_(e,t,18)^_(t,e,9); return n<0&&(n+=4294967296),n;}function p(e,t){ var n=g(e,t,1)^g(e,t,8)^x(e,t,7); return n<0&&(n+=4294967296),n;}function d(e,t){ var n=_(e,t,1)^_(e,t,8)^w(e,t,7); return n<0&&(n+=4294967296),n }function h(e,t){ var n=g(e,t,19)^g(t,e,29)^x(e,t,6); return n<0&&(n+=4294967296),n }function m(e,t){ var n=_(e,t,19)^_(t,e,29)^w(e,t,6); return n<0&&(n+=4294967296),n }var v=e("../utils"),b=e("../common"),y=e("minimalistic-assert"),g=v.rotr64_hi,_=v.rotr64_lo,x=v.shr64_hi,w=v.shr64_lo,k=v.sum64,j=v.sum64_hi,S=v.sum64_lo,E=v.sum64_4_hi,A=v.sum64_4_lo,C=v.sum64_5_hi,M=v.sum64_5_lo,T=b.BlockHash,P=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]; v.inherits(i,T),t.exports=i,i.blockSize=1024,i.outSize=512,i.hmacStrength=192,i.padLength=128,i.prototype._prepareBlock=function(e,t){ for(var n=this.W,i=0; i<32; i++)n[i]=e[t+i]; for(;i<n.length; i+=2){ var r=h(n[i-4],n[i-3]),o=m(n[i-4],n[i-3]),a=n[i-14],s=n[i-13],c=p(n[i-30],n[i-29]),u=d(n[i-30],n[i-29]),l=n[i-32],f=n[i-31]; n[i]=E(r,o,a,s,c,u,l,f),n[i+1]=A(r,o,a,s,c,u,l,f);} },i.prototype._update=function(e,t){ this._prepareBlock(e,t); var n=this.W,i=this.h[0],p=this.h[1],d=this.h[2],h=this.h[3],m=this.h[4],v=this.h[5],b=this.h[6],g=this.h[7],_=this.h[8],x=this.h[9],w=this.h[10],E=this.h[11],A=this.h[12],T=this.h[13],P=this.h[14],F=this.h[15]; y(this.k.length===n.length); for(var I=0; I<n.length; I+=2){ var B=P,R=F,O=l(_,x),N=f(_,x),D=r(_,0,w,0,A),L=o(0,x,0,E,0,T),q=this.k[I],z=this.k[I+1],U=n[I],H=n[I+1],V=C(B,R,O,N,D,L,q,z,U,H),K=M(B,R,O,N,D,L,q,z,U,H); B=c(i,p),R=u(i,p),O=a(i,0,d,0,m),N=s(0,p,0,h,0,v); var W=j(B,R,O,N),X=S(B,R,O,N); P=A,F=T,A=w,T=E,w=_,E=x,_=j(b,g,V,K),x=S(g,g,V,K),b=m,g=v,m=d,v=h,d=i,h=p,i=j(V,K,W,X),p=S(V,K,W,X);}k(this.h,0,i,p),k(this.h,2,d,h),k(this.h,4,m,v),k(this.h,6,b,g),k(this.h,8,_,x),k(this.h,10,w,E),k(this.h,12,A,T),k(this.h,14,P,F);},i.prototype._digest=function(e){ returne==="hex"?v.toHex32(this.h,"big"):v.split32(this.h,"big") } },{"../common":87,"../utils":97,"minimalistic-assert":106}],96:[function(e,t,n){ function i(e,t,n){ return e&t^~e&n }function r(e,t,n){ return e&t^e&n^t&n }function o(e,t,n){ return e^t^n;}var a=e("../utils").rotr32; n.ft_1=function(e,t,n,a){ return e===0?i(t,n,a):e===1||e===3?o(t,n,a):e===2?r(t,n,a):void 0 },n.ch32=i,n.maj32=r,n.p32=o,n.s0_256=function(e){ return a(e,2)^a(e,13)^a(e,22) },n.s1_256=function(e){ return a(e,6)^a(e,11)^a(e,25) },n.g0_256=function(e){ return a(e,7)^a(e,18)^e>>>3 },n.g1_256=function(e){ return a(e,17)^a(e,19)^e>>>10 };},{"../utils":97}],97:[function(e,t,n){ function i(e){ return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0;}function r(e){ return e.length===1?"0"+e:e;}function o(e){ return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e }var a=e("minimalistic-assert"),s=e("inherits"); n.inherits=s,n.toArray=function(e,t){ if(Array.isArray(e))return e.slice(); if(!e)return[]; var n=[]; if(typeof e=="string")if(t){ if(t==="hex")for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0; i<e.length; i+=2)n.push(parseInt(e[i]+e[i+1],16)) }else for(var i=0; i<e.length; i++){ var r=e.charCodeAt(i),o=r>>8,a=255&r; o?n.push(o,a):n.push(a);}else for(i=0; i<e.length; i++)n[i]=0|e[i]; return n },n.toHex=function(e){ for(var t="",n=0; n<e.length; n++)t+=r(e[n].toString(16)); return t },n.htonl=i,n.toHex32=function(e,t){ for(var n="",r=0; r<e.length; r++){ var a=e[r]; "little"===t&&(a=i(a)),n+=o(a.toString(16));}return n;},n.zero2=r,n.zero8=o,n.join32=function(e,t,n,i){ var r=n-t; a(r%4==0); for(var o=new Array(r/4),s=0,c=t; s<o.length; s++,c+=4){ var u; u=i==="big"?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],o[s]=u>>>0 }return o },n.split32=function(e,t){ for(var n=new Array(4*e.length),i=0,r=0; i<e.length; i++,r+=4){ var o=e[i]; "big"===t?(n[r]=o>>>24,n[r+1]=o>>>16&255,n[r+2]=o>>>8&255,n[r+3]=255&o):(n[r+3]=o>>>24,n[r+2]=o>>>16&255,n[r+1]=o>>>8&255,n[r]=255&o);}return n },n.rotr32=function(e,t){ return e>>>t|e<<32-t },n.rotl32=function(e,t){ return e<<t|e>>>32-t },n.sum32=function(e,t){ return e+t>>>0;},n.sum32_3=function(e,t,n){ return e+t+n>>>0 },n.sum32_4=function(e,t,n,i){ return e+t+n+i>>>0;},n.sum32_5=function(e,t,n,i,r){ return e+t+n+i+r>>>0;},n.sum64=function(e,t,n,i){ var r=e[t],o=i+e[t+1]>>>0,a=(o<i?1:0)+n+r; e[t]=a>>>0,e[t+1]=o },n.sum64_hi=function(e,t,n,i){ return(t+i>>>0<t?1:0)+e+n>>>0;},n.sum64_lo=function(e,t,n,i){ return t+i>>>0;},n.sum64_4_hi=function(e,t,n,i,r,o,a,s){ var c=0,u=t; return c+=(u=u+i>>>0)<t?1:0,c+=(u=u+o>>>0)<o?1:0,e+n+r+a+(c+=(u=u+s>>>0)<s?1:0)>>>0 },n.sum64_4_lo=function(e,t,n,i,r,o,a,s){ return t+i+o+s>>>0;},n.sum64_5_hi=function(e,t,n,i,r,o,a,s,c,u){ var l=0,f=t; return l+=(f=f+i>>>0)<t?1:0,l+=(f=f+o>>>0)<o?1:0,l+=(f=f+s>>>0)<s?1:0,e+n+r+a+c+(l+=(f=f+u>>>0)<u?1:0)>>>0 },n.sum64_5_lo=function(e,t,n,i,r,o,a,s,c,u){ return t+i+o+s+u>>>0;},n.rotr64_hi=function(e,t,n){ return(t<<32-n|e>>>n)>>>0 },n.rotr64_lo=function(e,t,n){ return(e<<32-n|t>>>n)>>>0 },n.shr64_hi=function(e,t,n){ return e>>>n;},n.shr64_lo=function(e,t,n){ return(e<<32-n|t>>>n)>>>0 } },{inherits:101,"minimalistic-assert":106}],98:[function(e,t,n){ function i(e){ if(!(this instanceof i))return new i(e); this.hash=e.hash,this.predResist=Boolean(e.predResist),this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null; var t=o.toArray(e.entropy,e.entropyEnc||"hex"),n=o.toArray(e.nonce,e.nonceEnc||"hex"),r=o.toArray(e.pers,e.persEnc||"hex"); a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r) }var r=e("hash.js"),o=e("minimalistic-crypto-utils"),a=e("minimalistic-assert"); t.exports=i,i.prototype._init=function(e,t,n){ var i=e.concat(t).concat(n); this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8); for(var r=0; r<this.V.length; r++)this.K[r]=0,this.V[r]=1; this._update(i),this._reseed=1,this.reseedInterval=281474976710656 },i.prototype._hmac=function(){ return new r.hmac(this.hash,this.K) },i.prototype._update=function(e){ var t=this._hmac().update(this.V).update([0]); e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest());},i.prototype.reseed=function(e,t,n,i){ "string"!=typeof t&&(i=n,n=t,t=null),e=o.toArray(e,t),n=o.toArray(n,i),a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1 },i.prototype.generate=function(e,t,n,i){ if(this._reseed>this.reseedInterval)throw new Error("Reseed is required"); "string"!=typeof t&&(i=n,n=t,t=null),n&&(n=o.toArray(n,i||"hex"),this._update(n)); for(var r=[]; r.length<e;)this.V=this._hmac().update(this.V).digest(),r=r.concat(this.V); var a=r.slice(0,e); return this._update(n),this._reseed++,o.encode(a,t) };},{"hash.js":86,"minimalistic-assert":106,"minimalistic-crypto-utils":107}],99:[function(e,t,n){ n.read=function(e,t,n,i,r){ var o,a,s=8*r-i-1,c=(1<<s)-1,u=c>>1,l=-7,f=n?r-1:0,p=n?-1:1,d=e[t+f]; for(f+=p,o=d&(1<<-l)-1,d>>=-l,l+=s; l>0; o=256*o+e[t+f],f+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=i; l>0; a=256*a+e[t+f],f+=p,l-=8);if(o===0)o=1-u; else{ if(o===c)return a?NaN:1/0*(d?-1:1); a+=Math.pow(2,i),o-=u;}return(d?-1:1)*a*Math.pow(2,o-i) },n.write=function(e,t,n,i,r,o){ var a,s,c,u=8*o-r-1,l=(1<<u)-1,f=l>>1,p=r===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,h=i?1:-1,m=t<0||t===0&&1/t<0?1:0; for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,r),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,r),a=0)); r>=8; e[n+d]=255&s,d+=h,s/=256,r-=8);for(a=a<<r|s,u+=r; u>0; e[n+d]=255&a,d+=h,a/=256,u-=8);e[n+d-h]|=128*m } },{}],100:[function(e,t,n){ var i=[].indexOf; t.exports=function(e,t){ if(i)return e.indexOf(t); for(var n=0; n<e.length; ++n)if(e[n]===t)return n; return-1;};},{}],101:[function(e,t,n){ "function"==typeof Object.create?t.exports=function(e,t){ e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});}:t.exports=function(e,t){ e.super_=t; var n=function(){}; n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e;};},{}],102:[function(e,t,n){ function i(e){ return Boolean(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e) }function r(e){ returntypeof e.readFloatLE=="function"&&typeof e.slice=="function"&&i(e.slice(0,0)) }t.exports=function(e){ return e!=null&&(i(e)||r(e)||Boolean(e._isBuffer));} },{}],103:[function(e,t,n){ (function(n){ function i(){ l.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878;}function r(e,t){ return e<<t|e>>>32-t }function o(e,t,n,i,o,a,s){ return r(e+(t&n|~t&i)+o+a|0,s)+t|0;}function a(e,t,n,i,o,a,s){ return r(e+(t&i|n&~i)+o+a|0,s)+t|0 }function s(e,t,n,i,o,a,s){ return r(e+(t^n^i)+o+a|0,s)+t|0;}function c(e,t,n,i,o,a,s){ return r(e+(n^(t|~i))+o+a|0,s)+t|0;}var u=e("inherits"),l=e("hash-base"),f=new Array(16); u(i,l),i.prototype._update=function(){ for(var e=f,t=0; t<16; ++t)e[t]=this._block.readInt32LE(4*t); var n=this._a,i=this._b,r=this._c,u=this._d; i=c(i=c(i=c(i=c(i=s(i=s(i=s(i=s(i=a(i=a(i=a(i=a(i=o(i=o(i=o(i=o(i,r=o(r,u=o(u,n=o(n,i,r,u,e[0],3614090360,7),i,r,e[1],3905402710,12),n,i,e[2],606105819,17),u,n,e[3],3250441966,22),r=o(r,u=o(u,n=o(n,i,r,u,e[4],4118548399,7),i,r,e[5],1200080426,12),n,i,e[6],2821735955,17),u,n,e[7],4249261313,22),r=o(r,u=o(u,n=o(n,i,r,u,e[8],1770035416,7),i,r,e[9],2336552879,12),n,i,e[10],4294925233,17),u,n,e[11],2304563134,22),r=o(r,u=o(u,n=o(n,i,r,u,e[12],1804603682,7),i,r,e[13],4254626195,12),n,i,e[14],2792965006,17),u,n,e[15],1236535329,22),r=a(r,u=a(u,n=a(n,i,r,u,e[1],4129170786,5),i,r,e[6],3225465664,9),n,i,e[11],643717713,14),u,n,e[0],3921069994,20),r=a(r,u=a(u,n=a(n,i,r,u,e[5],3593408605,5),i,r,e[10],38016083,9),n,i,e[15],3634488961,14),u,n,e[4],3889429448,20),r=a(r,u=a(u,n=a(n,i,r,u,e[9],568446438,5),i,r,e[14],3275163606,9),n,i,e[3],4107603335,14),u,n,e[8],1163531501,20),r=a(r,u=a(u,n=a(n,i,r,u,e[13],2850285829,5),i,r,e[2],4243563512,9),n,i,e[7],1735328473,14),u,n,e[12],2368359562,20),r=s(r,u=s(u,n=s(n,i,r,u,e[5],4294588738,4),i,r,e[8],2272392833,11),n,i,e[11],1839030562,16),u,n,e[14],4259657740,23),r=s(r,u=s(u,n=s(n,i,r,u,e[1],2763975236,4),i,r,e[4],1272893353,11),n,i,e[7],4139469664,16),u,n,e[10],3200236656,23),r=s(r,u=s(u,n=s(n,i,r,u,e[13],681279174,4),i,r,e[0],3936430074,11),n,i,e[3],3572445317,16),u,n,e[6],76029189,23),r=s(r,u=s(u,n=s(n,i,r,u,e[9],3654602809,4),i,r,e[12],3873151461,11),n,i,e[15],530742520,16),u,n,e[2],3299628645,23),r=c(r,u=c(u,n=c(n,i,r,u,e[0],4096336452,6),i,r,e[7],1126891415,10),n,i,e[14],2878612391,15),u,n,e[5],4237533241,21),r=c(r,u=c(u,n=c(n,i,r,u,e[12],1700485571,6),i,r,e[3],2399980690,10),n,i,e[10],4293915773,15),u,n,e[1],2240044497,21),r=c(r,u=c(u,n=c(n,i,r,u,e[8],1873313359,6),i,r,e[15],4264355552,10),n,i,e[6],2734768916,15),u,n,e[13],1309151649,21),r=c(r,u=c(u,n=c(n,i,r,u,e[4],4149444226,6),i,r,e[11],3174756917,10),n,i,e[2],718787259,15),u,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+i|0,this._c=this._c+r|0,this._d=this._d+u|0;},i.prototype._digest=function(){ this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update(); var e=new n(16); return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e;},t.exports=i;}).call(this,e("buffer").Buffer) },{buffer:47,"hash-base":104,inherits:101}],104:[function(e,t,n){ function i(e,t){ if(!o.isBuffer(e)&&typeof e!="string")throw new TypeError(t+" must be a string or a buffer");}function r(e){ a.call(this),this._block=o.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1;}var o=e("safe-buffer").Buffer,a=e("stream").Transform; e("inherits")(r,a),r.prototype._transform=function(e,t,n){ var i=null; try{ this.update(e,t);}catch(e){ i=e }n(i);},r.prototype._flush=function(e){ var t=null; try{ this.push(this.digest());}catch(e){ t=e }e(t);},r.prototype.update=function(e,t){ if(i(e,"Data"),this._finalized)throw new Error("Digest already called"); o.isBuffer(e)||(e=o.from(e,t)); for(var n=this._block,r=0; this._blockOffset+e.length-r>=this._blockSize;){ for(var a=this._blockOffset; a<this._blockSize;)n[a++]=e[r++]; this._update(),this._blockOffset=0;}for(;r<e.length;)n[this._blockOffset++]=e[r++]; for(var s=0,c=8*e.length; c>0; ++s)this._length[s]+=c,(c=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*c); return this },r.prototype._update=function(){ throw new Error("_update is not implemented");},r.prototype.digest=function(e){ if(this._finalized)throw new Error("Digest already called"); this._finalized=!0; var t=this._digest(); void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0; for(var n=0; n<4; ++n)this._length[n]=0; return t;},r.prototype._digest=function(){ throw new Error("_digest is not implemented");},t.exports=r },{inherits:101,"safe-buffer":144,stream:155}],105:[function(e,t,n){ function i(e){ this.rand=e||new o.Rand }var r=e("bn.js"),o=e("brorand"); t.exports=i,i.create=function(e){ return new i(e);},i.prototype._randbelow=function(e){ var t=e.bitLength(),n=Math.ceil(t/8); do{ var i=new r(this.rand.generate(n)) }while(i.cmp(e)>=0);return i },i.prototype._randrange=function(e,t){ var n=t.sub(e); return e.add(this._randbelow(n));},i.prototype.test=function(e,t,n){ var i=e.bitLength(),o=r.mont(e),a=new r(1).toRed(o); t||(t=Math.max(1,i/48|0)); for(var s=e.subn(1),c=0; !s.testn(c); c++);for(var u=e.shrn(c),l=s.toRed(o); t>0; t--){ var f=this._randrange(new r(2),s); n&&n(f); var p=f.toRed(o).redPow(u); if(p.cmp(a)!==0&&p.cmp(l)!==0){ for(var d=1; d<c; d++){ if((p=p.redSqr()).cmp(a)===0)return!1; if(p.cmp(l)===0)break }if(d===c)return!1 } }return!0;},i.prototype.getDivisor=function(e,t){ var n=e.bitLength(),i=r.mont(e),o=new r(1).toRed(i); t||(t=Math.max(1,n/48|0)); for(var a=e.subn(1),s=0; !a.testn(s); s++);for(var c=e.shrn(s),u=a.toRed(i); t>0; t--){ var l=this._randrange(new r(2),a),f=e.gcd(l); if(f.cmpn(1)!==0)return f; var p=l.toRed(i).redPow(c); if(p.cmp(o)!==0&&p.cmp(u)!==0){ for(var d=1; d<s; d++){ if((p=p.redSqr()).cmp(o)===0)return p.fromRed().subn(1).gcd(e); if(p.cmp(u)===0)break;}if(d===s)return(p=p.redSqr()).fromRed().subn(1).gcd(e);} }return!1 };},{"bn.js":"BN",brorand:16}],106:[function(e,t,n){ function i(e,t){ if(!e)throw new Error(t||"Assertion failed") }t.exports=i,i.equal=function(e,t,n){ if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t) } },{}],107:[function(e,t,n){ function i(e){ return e.length===1?"0"+e:e;}function r(e){ for(var t="",n=0; n<e.length; n++)t+=i(e[n].toString(16)); return t;}var o=n; o.toArray=function(e,t){ if(Array.isArray(e))return e.slice(); if(!e)return[]; var n=[]; if(typeof e!="string"){ for(i=0; i<e.length; i++)n[i]=0|e[i]; return n }if(t==="hex")for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0; i<e.length; i+=2)n.push(parseInt(e[i]+e[i+1],16)); else for(var i=0; i<e.length; i++){ var r=e.charCodeAt(i),o=r>>8,a=255&r; o?n.push(o,a):n.push(a);}return n },o.zero2=i,o.toHex=r,o.encode=function(e,t){ returnt==="hex"?r(e):e };},{}],108:[function(e,t,n){ t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"};},{}],109:[function(e,t,n){ var i=e("asn1.js"); n.certificate=e("./certificate"); var r=i.define("RSAPrivateKey",function(){ this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int()) }); n.RSAPrivateKey=r; var o=i.define("RSAPublicKey",function(){ this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int());}); n.RSAPublicKey=o; var a=i.define("SubjectPublicKeyInfo",function(){ this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr()) }); n.PublicKey=a; var s=i.define("AlgorithmIdentifier",function(){ this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional());}),c=i.define("PrivateKeyInfo",function(){ this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr()) }); n.PrivateKey=c; var u=i.define("EncryptedPrivateKeyInfo",function(){ this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr()) }); n.EncryptedPrivateKey=u; var l=i.define("DSAPrivateKey",function(){ this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int());}); n.DSAPrivateKey=l,n.DSAparam=i.define("DSAparam",function(){ this.int();}); var f=i.define("ECPrivateKey",function(){ this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(p),this.key("publicKey").optional().explicit(1).bitstr());}); n.ECPrivateKey=f; var p=i.define("ECParameters",function(){ this.choice({namedCurve:this.objid()});}); n.signature=i.define("signature",function(){ this.seq().obj(this.key("r").int(),this.key("s").int()) }) },{"./certificate":110,"asn1.js":1}],110:[function(e,t,n){ var i=e("asn1.js"),r=i.define("Time",function(){ this.choice({utcTime:this.utctime(),generalTime:this.gentime()});}),o=i.define("AttributeTypeValue",function(){ this.seq().obj(this.key("type").objid(),this.key("value").any());}),a=i.define("AlgorithmIdentifier",function(){ this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional()) }),s=i.define("SubjectPublicKeyInfo",function(){ this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr()) }),c=i.define("RelativeDistinguishedName",function(){ this.setof(o) }),u=i.define("RDNSequence",function(){ this.seqof(c);}),l=i.define("Name",function(){ this.choice({rdnSequence:this.use(u)});}),f=i.define("Validity",function(){ this.seq().obj(this.key("notBefore").use(r),this.key("notAfter").use(r));}),p=i.define("Extension",function(){ this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr()) }),d=i.define("TBSCertificate",function(){ this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(l),this.key("validity").use(f),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(p).optional());}),h=i.define("X509Certificate",function(){ this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr()) }); t.exports=h },{"asn1.js":1}],111:[function(e,t,n){ (function(n){ var i=/Proc-Type: 4,ENCRYPTED\n\r?DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\n\r?\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?/m,r=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m,o=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,a=e("evp_bytestokey"),s=e("browserify-aes"); t.exports=function(e,t){ var c,u=e.toString(),l=u.match(i); if(l){ var f="aes"+l[1],p=new n(l[2],"hex"),d=new n(l[3].replace(/\r?\n/g,""),"base64"),h=a(t,p.slice(0,8),parseInt(l[1],10)).key,m=[],v=s.createDecipheriv(f,h,p); m.push(v.update(d)),m.push(v.final()),c=n.concat(m);}else{ var b=u.match(o); c=new n(b[2].replace(/\r?\n/g,""),"base64");}return{tag:u.match(r)[1],data:c} } }).call(this,e("buffer").Buffer);},{"browserify-aes":20,buffer:47,evp_bytestokey:84}],112:[function(e,t,n){ (function(n){ function i(e){ var t; "object"!==(void 0===e?"undefined":_typeof(e))||n.isBuffer(e)||(t=e.passphrase,e=e.key),typeof e=="string"&&(e=new n(e)); var i,a,c=s(e,t),u=c.tag,l=c.data; switch(u){ case"CERTIFICATE": a=o.certificate.decode(l,"der").tbsCertificate.subjectPublicKeyInfo; case"PUBLIC KEY": switch(a||(a=o.PublicKey.decode(l,"der")),i=a.algorithm.algorithm.join(".")){ case"1.2.840.113549.1.1.1": return o.RSAPublicKey.decode(a.subjectPublicKey.data,"der"); case"1.2.840.10045.2.1": return a.subjectPrivateKey=a.subjectPublicKey,{type:"ec",data:a}; case"1.2.840.10040.4.1": return a.algorithm.params.pub_key=o.DSAparam.decode(a.subjectPublicKey.data,"der"),{type:"dsa",data:a.algorithm.params}; default: throw new Error("unknown key id "+i) }throw new Error("unknown key type "+u); case"ENCRYPTED PRIVATE KEY": l=r(l=o.EncryptedPrivateKey.decode(l,"der"),t); case"PRIVATE KEY": switch(a=o.PrivateKey.decode(l,"der"),i=a.algorithm.algorithm.join(".")){ case"1.2.840.113549.1.1.1": return o.RSAPrivateKey.decode(a.subjectPrivateKey,"der"); case"1.2.840.10045.2.1": return{curve:a.algorithm.curve,privateKey:o.ECPrivateKey.decode(a.subjectPrivateKey,"der").privateKey}; case"1.2.840.10040.4.1": return a.algorithm.params.priv_key=o.DSAparam.decode(a.subjectPrivateKey,"der"),{type:"dsa",params:a.algorithm.params}; default: throw new Error("unknown key id "+i) }throw new Error("unknown key type "+u); case"RSA PUBLIC KEY": return o.RSAPublicKey.decode(l,"der"); case"RSA PRIVATE KEY": return o.RSAPrivateKey.decode(l,"der"); case"DSA PRIVATE KEY": return{type:"dsa",params:o.DSAPrivateKey.decode(l,"der")}; case"EC PRIVATE KEY": return l=o.ECPrivateKey.decode(l,"der"),{curve:l.parameters.value,privateKey:l.privateKey}; default: throw new Error("unknown key type "+u);} }function r(e,t){ var i=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=a[e.algorithm.decrypt.cipher.algo.join(".")],s=e.algorithm.decrypt.cipher.iv,l=e.subjectPrivateKey,f=parseInt(o.split("-")[1],10)/8,p=u.pbkdf2Sync(t,i,r,f),d=c.createDecipheriv(o,p,s),h=[]; return h.push(d.update(l)),h.push(d.final()),n.concat(h) }var o=e("./asn1"),a=e("./aesid.json"),s=e("./fixProc"),c=e("browserify-aes"),u=e("pbkdf2"); t.exports=i,i.signature=o.signature }).call(this,e("buffer").Buffer);},{"./aesid.json":108,"./asn1":109,"./fixProc":111,"browserify-aes":20,buffer:47,pbkdf2:114}],113:[function(e,t,n){ (function(e){ function t(e,t){ for(var n=0,i=e.length-1; i>=0; i--){ var r=e[i]; "."===r?e.splice(i,1):r===".."?(e.splice(i,1),n++):n&&(e.splice(i,1),n--) }if(t)for(;n--; n)e.unshift(".."); return e;}function i(e,t){ if(e.filter)return e.filter(t); for(var n=[],i=0; i<e.length; i++)t(e[i],i,e)&&n.push(e[i]); return n;}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){ return r.exec(e).slice(1) }; n.resolve=function(){ for(var n="",r=!1,o=arguments.length-1; o>=-1&&!r; o--){ var a=o>=0?arguments[o]:e.cwd(); if(typeof a!="string")throw new TypeError("Arguments to path.resolve must be strings"); a&&(n=a+"/"+n,r=a.charAt(0)==="/");}return n=t(i(n.split("/"),function(e){ return Boolean(e)}),!r).join("/"),(r?"/":"")+n||"." },n.normalize=function(e){ var r=n.isAbsolute(e),o=a(e,-1)==="/"; return(e=t(i(e.split("/"),function(e){ return Boolean(e)}),!r).join("/"))||r||(e="."),e&&o&&(e+="/"),(r?"/":"")+e },n.isAbsolute=function(e){ returne.charAt(0)==="/"},n.join=function(){ var e=Array.prototype.slice.call(arguments,0); return n.normalize(i(e,function(e,t){ if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings"); return e }).join("/"));},n.relative=function(e,t){ function i(e){ for(var t=0; t<e.length&&e[t]===""; t++);for(var n=e.length-1; n>=0&&e[n]===""; n--);return t>n?[]:e.slice(t,n-t+1);}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1); for(var r=i(e.split("/")),o=i(t.split("/")),a=Math.min(r.length,o.length),s=a,c=0; c<a; c++)if(r[c]!==o[c]){ s=c; break }for(var u=[],c=s; c<r.length; c++)u.push(".."); return(u=u.concat(o.slice(s))).join("/");},n.sep="/",n.delimiter=":",n.dirname=function(e){ var t=o(e),n=t[0],i=t[1]; return n||i?(i&&(i=i.substr(0,i.length-1)),n+i):"." },n.basename=function(e,t){ var n=o(e)[2]; return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n },n.extname=function(e){ return o(e)[3] }; var a="ab".substr(-1)==="b"?function(e,t,n){ return e.substr(t,n);}:function(e,t,n){ return t<0&&(t=e.length+t),e.substr(t,n);};}).call(this,e("_process")) },{_process:120}],114:[function(e,t,n){ n.pbkdf2=e("./lib/async"),n.pbkdf2Sync=e("./lib/sync");},{"./lib/async":115,"./lib/sync":118}],115:[function(e,t,n){ (function(n,i){ function r(e){ if(i.process&&!i.process.browser)return Promise.resolve(!1); if(!p||!p.importKey||!p.deriveBits)return Promise.resolve(!1); if(void 0!==h[e])return h[e]; var t=o(s=s||f.alloc(8),s,10,128,e).then(function(){ return!0;}).catch(function(){ return!1 }); return h[e]=t,t }function o(e,t,n,i,r){ return p.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){ return p.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:r}},e,i<<3) }).then(function(e){ return f.from(e);});}function a(e,t){ e.then(function(e){ n.nextTick(function(){ t(null,e) }) },function(e){ n.nextTick(function(){ t(e) }) }) }var s,c=e("./precondition"),u=e("./default-encoding"),l=e("./sync"),f=e("safe-buffer").Buffer,p=i.crypto&&i.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[]; t.exports=function(e,t,s,p,h,m){ if(f.isBuffer(e)||(e=f.from(e,u)),f.isBuffer(t)||(t=f.from(t,u)),c(s,p),typeof h=="function"&&(m=h,h=void 0),typeof m!="function")throw new Error("No callback provided to pbkdf2"); var v=d[(h=h||"sha1").toLowerCase()]; if(!v||typeof i.Promise!="function")return n.nextTick(function(){ var n; try{ n=l(e,t,s,p,h) }catch(e){ return m(e);}m(null,n);}); a(r(v).then(function(n){ return n?o(e,t,s,p,v):l(e,t,s,p,h) }),m) };}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{});},{"./default-encoding":116,"./precondition":117,"./sync":118,_process:120,"safe-buffer":144}],116:[function(e,t,n){ (function(e){ var n; n=e.browser?"utf-8":parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary",t.exports=n }).call(this,e("_process"));},{_process:120}],117:[function(e,t,n){ var i=Math.pow(2,30)-1; t.exports=function(e,t){ if(typeof e!="number")throw new TypeError("Iterations not a number"); if(e<0)throw new TypeError("Bad iterations"); if(typeof t!="number")throw new TypeError("Key length not a number"); if(t<0||t>i||t!==t)throw new TypeError("Bad key length");};},{}],118:[function(e,t,n){ function i(e,t,n){ var i=r(e),o=e==="sha512"||e==="sha384"?128:64; t.length>o?t=i(t):t.length<o&&(t=l.concat([t,f],o)); for(var a=l.allocUnsafe(o+p[e]),s=l.allocUnsafe(o+p[e]),c=0; c<o; c++)a[c]=54^t[c],s[c]=92^t[c]; var u=l.allocUnsafe(o+n+4); a.copy(u,0,0,o),this.ipad1=u,this.ipad2=a,this.opad=s,this.alg=e,this.blocksize=o,this.hash=i,this.size=p[e] }function r(e){ returne==="rmd160"||e==="ripemd160"?a:e==="md5"?o:function(t){ return s(e).update(t).digest() } }var o=e("create-hash/md5"),a=e("ripemd160"),s=e("sha.js"),c=e("./precondition"),u=e("./default-encoding"),l=e("safe-buffer").Buffer,f=l.alloc(128),p={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20}; i.prototype.run=function(e,t){ return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad);},t.exports=function(e,t,n,r,o){ l.isBuffer(e)||(e=l.from(e,u)),l.isBuffer(t)||(t=l.from(t,u)),c(n,r); var a=new i(o=o||"sha1",e,t.length),s=l.allocUnsafe(r),f=l.allocUnsafe(t.length+4); t.copy(f,0,0,t.length); for(var d=0,h=p[o],m=Math.ceil(r/h),v=1; v<=m; v++){ f.writeUInt32BE(v,t.length); for(var b=a.run(f,a.ipad1),y=b,g=1; g<n; g++){ y=a.run(y,a.ipad2); for(var _=0; _<h; _++)b[_]^=y[_] }b.copy(s,d),d+=h;}return s } },{"./default-encoding":116,"./precondition":117,"create-hash/md5":53,ripemd160:143,"safe-buffer":144,"sha.js":148}],119:[function(e,t,n){ (function(e){ !e.version||e.version.indexOf("v0.")===0||e.version.indexOf("v1.")===0&&e.version.indexOf("v1.8.")!==0?t.exports=function(t,n,i,r){ if(typeof t!="function")throw new TypeError('"callback" argument must be a function'); var o,a,s=arguments.length; switch(s){ case 0: case 1: return e.nextTick(t); case 2: return e.nextTick(function(){ t.call(null,n);}); case 3: return e.nextTick(function(){ t.call(null,n,i);}); case 4: return e.nextTick(function(){ t.call(null,n,i,r) }); default: for(o=new Array(s-1),a=0; a<o.length;)o[a++]=arguments[a]; return e.nextTick(function(){ t.apply(null,o) });} }:t.exports=e.nextTick;}).call(this,e("_process"));},{_process:120}],120:[function(e,t,n){ function i(){ throw new Error("setTimeout has not been defined");}function r(){ throw new Error("clearTimeout has not been defined") }function o(e){ if(f===setTimeout)return setTimeout(e,0); if((f===i||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0); try{ return f(e,0) }catch(t){ try{ return f.call(null,e,0);}catch(t){ return f.call(this,e,0);} } }function a(e){ if(p===clearTimeout)return clearTimeout(e); if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e); try{ return p(e) }catch(t){ try{ return p.call(null,e);}catch(t){ return p.call(this,e) } } }function s(){ v&&h&&(v=!1,h.length?m=h.concat(m):b=-1,m.length&&c());}function c(){ if(!v){ var e=o(s); v=!0; for(var t=m.length; t;){ for(h=m,m=[]; ++b<t;)h&&h[b].run(); b=-1,t=m.length;}h=null,v=!1,a(e) } }function u(e,t){ this.fun=e,this.array=t }function l(){}var f,p,d=t.exports={}; !(function(){try{f="function"==typeof setTimeout?setTimeout:i}catch(e){f=i}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(e){p=r}}()); var h,m=[],v=!1,b=-1; d.nextTick=function(e){ var t=new Array(arguments.length-1); if(arguments.length>1)for(var n=1; n<arguments.length; n++)t[n-1]=arguments[n]; m.push(new u(e,t)),m.length!==1||v||o(c);},u.prototype.run=function(){ this.fun.apply(null,this.array) },d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(e){ return[];},d.binding=function(e){ throw new Error("process.binding is not supported") },d.cwd=function(){ return"/";},d.chdir=function(e){ throw new Error("process.chdir is not supported") },d.umask=function(){ return 0 };},{}],121:[function(e,t,n){ n.publicEncrypt=e("./publicEncrypt"),n.privateDecrypt=e("./privateDecrypt"),n.privateEncrypt=function(e,t){ return n.publicEncrypt(e,t,!0) },n.publicDecrypt=function(e,t){ return n.privateDecrypt(e,t,!0);} },{"./privateDecrypt":123,"./publicEncrypt":124}],122:[function(e,t,n){ (function(n){ function i(e){ var t=new n(4); return t.writeUInt32BE(e,0),t;}var r=e("create-hash"); t.exports=function(e,t){ for(var o,a=new n(""),s=0; a.length<t;)o=i(s++),a=n.concat([a,r("sha1").update(e).update(o).digest()]); return a.slice(0,t) } }).call(this,e("buffer").Buffer) },{buffer:47,"create-hash":51}],123:[function(e,t,n){ (function(n){ function i(e,t){ e.modulus; var i=e.modulus.byteLength(),r=(t.length,f("sha1").update(new n("")).digest()),a=r.length; if(t[0]!==0)throw new Error("decryption error"); var u=t.slice(1,a+1),l=t.slice(a+1),p=c(u,s(l,a)),d=c(l,s(p,i-a-1)); if(o(r,d.slice(0,a)))throw new Error("decryption error"); for(var h=a; 0===d[h];)h++; if(d[h++]!==1)throw new Error("decryption error"); return d.slice(h) }function r(e,t,n){ for(var i=t.slice(0,2),r=2,o=0; 0!==t[r++];)if(r>=t.length){ o++; break }var a=t.slice(2,r-1); t.slice(r-1,r); if((i.toString("hex")!=="0002"&&!n||i.toString("hex")!=="0001"&&n)&&o++,a.length<8&&o++,o)throw new Error("decryption error"); return t.slice(r);}function o(e,t){ e=new n(e),t=new n(t); var i=0,r=e.length; e.length!==t.length&&(i++,r=Math.min(e.length,t.length)); for(var o=-1; ++o<r;)i+=e[o]^t[o]; return i;}var a=e("parse-asn1"),s=e("./mgf"),c=e("./xor"),u=e("bn.js"),l=e("browserify-rsa"),f=e("create-hash"),p=e("./withPublic"); t.exports=function(e,t,o){ var s; s=e.padding?e.padding:o?1:4; var c=a(e),f=c.modulus.byteLength(); if(t.length>f||new u(t).cmp(c.modulus)>=0)throw new Error("decryption error"); var d; d=o?p(new u(t),c):l(t,c); var h=new n(f-d.length); if(h.fill(0),d=n.concat([h,d],f),s===4)return i(c,d); if(s===1)return r(0,d,o); if(s===3)return d; throw new Error("unknown padding");};}).call(this,e("buffer").Buffer);},{"./mgf":122,"./withPublic":125,"./xor":126,"bn.js":"BN","browserify-rsa":37,buffer:47,"create-hash":51,"parse-asn1":112}],124:[function(e,t,n){ (function(n){ function i(e,t){ var i=e.modulus.byteLength(),r=t.length,o=c("sha1").update(new n("")).digest(),a=o.length,p=2*a; if(r>i-p-2)throw new Error("message too long"); var d=new n(i-r-p-2); d.fill(0); var h=i-a-1,m=s(a),v=l(n.concat([o,d,new n([1]),t],h),u(m,h)),b=l(m,u(v,a)); return new f(n.concat([new n([0]),b,v],i));}function r(e,t,i){ var r=t.length,a=e.modulus.byteLength(); if(r>a-11)throw new Error("message too long"); var s; return i?(s=new n(a-r-3)).fill(255):s=o(a-r-3),new f(n.concat([new n([0,i?1:2]),s,new n([0]),t],a));}function o(e,t){ for(var i,r=new n(e),o=0,a=s(2*e),c=0; o<e;)c===a.length&&(a=s(2*e),c=0),(i=a[c++])&&(r[o++]=i); return r }var a=e("parse-asn1"),s=e("randombytes"),c=e("create-hash"),u=e("./mgf"),l=e("./xor"),f=e("bn.js"),p=e("./withPublic"),d=e("browserify-rsa"); t.exports=function(e,t,n){ var o; o=e.padding?e.padding:n?1:4; var s,c=a(e); if(o===4)s=i(c,t); else if(o===1)s=r(c,t,n); else{ if(o!==3)throw new Error("unknown padding"); if((s=new f(t)).cmp(c.modulus)>=0)throw new Error("data too long for modulus");}return n?d(s,c):p(s,c);} }).call(this,e("buffer").Buffer);},{"./mgf":122,"./withPublic":125,"./xor":126,"bn.js":"BN","browserify-rsa":37,buffer:47,"create-hash":51,"parse-asn1":112,randombytes:127}],125:[function(e,t,n){ (function(n){ var i=e("bn.js"); t.exports=function(e,t){ return new n(e.toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed().toArray()) } }).call(this,e("buffer").Buffer);},{"bn.js":"BN",buffer:47}],126:[function(e,t,n){ t.exports=function(e,t){ for(var n=e.length,i=-1; ++i<n;)e[i]^=t[i]; return e;} },{}],127:[function(e,t,n){ (function(n,i){ var r=e("safe-buffer").Buffer,o=i.crypto||i.msCrypto; o&&o.getRandomValues?t.exports=function(e,t){ if(e>65536)throw new Error("requested too many random bytes"); var a=new i.Uint8Array(e); e>0&&o.getRandomValues(a); var s=r.from(a.buffer); returntypeof t=="function"?n.nextTick(function(){ t(null,s) }):s;}:t.exports=function(){ throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11");};}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{});},{_process:120,"safe-buffer":144}],128:[function(e,t,n){ t.exports=e("./lib/_stream_duplex.js");},{"./lib/_stream_duplex.js":129}],129:[function(e,t,n){ function i(e){ if(!(this instanceof i))return new i(e); u.call(this,e),l.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",r);}function r(){ this.allowHalfOpen||this._writableState.ended||a(o,this);}function o(e){ e.end();}var a=e("process-nextick-args"),s=Object.keys||function(e){ var t=[]; for(var n in e)t.push(n); return t }; t.exports=i; var c=e("core-util-is"); c.inherits=e("inherits"); var u=e("./_stream_readable"),l=e("./_stream_writable"); c.inherits(i,u); for(var f=s(l.prototype),p=0; p<f.length; p++){ var d=f[p]; i.prototype[d]||(i.prototype[d]=l.prototype[d]) }Object.defineProperty(i.prototype,"destroyed",{get:function(){ return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed);},set:function(e){ void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e) }}),i.prototype._destroy=function(e,t){ this.push(null),this.end(),a(t,e);};},{"./_stream_readable":131,"./_stream_writable":133,"core-util-is":49,inherits:101,"process-nextick-args":119}],130:[function(e,t,n){ function i(e){ if(!(this instanceof i))return new i(e); r.call(this,e);}t.exports=i; var r=e("./_stream_transform"),o=e("core-util-is"); o.inherits=e("inherits"),o.inherits(i,r),i.prototype._transform=function(e,t,n){ n(null,e);} },{"./_stream_transform":132,"core-util-is":49,inherits:101}],131:[function(e,t,n){ (function(n,i){ function r(e){ return N.from(e) }function o(e){ return N.isBuffer(e)||e instanceof D;}function a(e,t,n){ if(typeof e.prependListener=="function")return e.prependListener(t,n); e._events&&e._events[t]?B(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n) }function s(t,n){ I=I||e("./_stream_duplex"),t=t||{},this.objectMode=Boolean(t.objectMode),n instanceof I&&(this.objectMode=this.objectMode||Boolean(t.readableObjectMode)); var i=t.highWaterMark,r=this.objectMode?16:16384; this.highWaterMark=i||i===0?i:r,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new H,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.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(U||(U=e("string_decoder/").StringDecoder),this.decoder=new U(t.encoding),this.encoding=t.encoding) }function c(t){ if(I=I||e("./_stream_duplex"),!(this instanceof c))return new c(t); this._readableState=new s(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),O.call(this) }function u(e,t,n,i,o){ var a=e._readableState; if(t===null)a.reading=!1,m(e,a); else{ var s; o||(s=f(a,t)),s?e.emit("error",s):a.objectMode||t&&t.length>0?(typeof t=="string"||a.objectMode||Object.getPrototypeOf(t)===N.prototype||(t=r(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):l(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||t.length!==0?l(e,a,t,!1):y(e,a)):l(e,a,t,!1))):i||(a.reading=!1) }return p(a);}function l(e,t,n,i){ t.flowing&&t.length===0&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&v(e)),y(e,t);}function f(e,t){ var n; return o(t)||typeof t=="string"||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n;}function p(e){ return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0);}function d(e){ return e>=W?e=W:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e }function h(e,t){ return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=d(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));}function m(e,t){ if(!t.ended){ if(t.decoder){ var n=t.decoder.end(); n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length) }t.ended=!0,v(e);} }function v(e){ var t=e._readableState; t.needReadable=!1,t.emittedReadable||(z("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?F(b,e):b(e));}function b(e){ z("emit readable"),e.emit("readable"),j(e) }function y(e,t){ t.readingMore||(t.readingMore=!0,F(g,e,t));}function g(e,t){ for(var n=t.length; !t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(z("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length; t.readingMore=!1 }function _(e){ return function(){ var t=e._readableState; z("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&R(e,"data")&&(t.flowing=!0,j(e));} }function x(e){ z("readable nexttick read 0"),e.read(0);}function w(e,t){ t.resumeScheduled||(t.resumeScheduled=!0,F(k,e,t)) }function k(e,t){ t.reading||(z("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0);}function j(e){ var t=e._readableState; for(z("flow",t.flowing); t.flowing&&e.read()!==null;); }function S(e,t){ if(t.length===0)return null; var n; return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):t.buffer.length===1?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=E(e,t.buffer,t.decoder),n }function E(e,t,n){ var i; return e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):i=e===t.head.data.length?t.shift():n?A(e,t):C(e,t),i }function A(e,t){ var n=t.head,i=1,r=n.data; for(e-=r.length; n=n.next;){ var o=n.data,a=e>o.length?o.length:e; if(a===o.length?r+=o:r+=o.slice(0,e),(e-=a)===0){ a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a)); break }++i }return t.length-=i,r }function C(e,t){ var n=N.allocUnsafe(e),i=t.head,r=1; for(i.data.copy(n),e-=i.data.length; i=i.next;){ var o=i.data,a=e>o.length?o.length:e; if(o.copy(n,n.length-e,0,a),(e-=a)===0){ a===o.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=o.slice(a)); break;}++r }return t.length-=r,n }function M(e){ var t=e._readableState; if(t.length>0)throw new Error('"endReadable()" called on non-empty stream'); t.endEmitted||(t.ended=!0,F(T,t,e));}function T(e,t){ e.endEmitted||e.length!==0||(e.endEmitted=!0,t.readable=!1,t.emit("end"));}function P(e,t){ for(var n=0,i=e.length; n<i; n++)if(e[n]===t)return n; return-1;}var F=e("process-nextick-args"); t.exports=c; var I,B=e("isarray"); c.ReadableState=s; e("events").EventEmitter; var R=function(e,t){ return e.listeners(t).length;},O=e("./internal/streams/stream"),N=e("safe-buffer").Buffer,D=i.Uint8Array||function(){},L=e("core-util-is"); L.inherits=e("inherits"); var q=e("util"),z=void 0; z=q&&q.debuglog?q.debuglog("stream"):function(){}; var U,H=e("./internal/streams/BufferList"),V=e("./internal/streams/destroy"); L.inherits(c,O); var K=["error","close","destroy","pause","resume"]; Object.defineProperty(c.prototype,"destroyed",{get:function(){ return void 0!==this._readableState&&this._readableState.destroyed;},set:function(e){ this._readableState&&(this._readableState.destroyed=e) }}),c.prototype.destroy=V.destroy,c.prototype._undestroy=V.undestroy,c.prototype._destroy=function(e,t){ this.push(null),t(e);},c.prototype.push=function(e,t){ var n,i=this._readableState; return i.objectMode?n=!0:typeof e=="string"&&((t=t||i.defaultEncoding)!==i.encoding&&(e=N.from(e,t),t=""),n=!0),u(this,e,t,!1,n);},c.prototype.unshift=function(e){ return u(this,e,null,!0,!1) },c.prototype.isPaused=function(){ return!1===this._readableState.flowing;},c.prototype.setEncoding=function(t){ return U||(U=e("string_decoder/").StringDecoder),this._readableState.decoder=new U(t),this._readableState.encoding=t,this }; var W=8388608; c.prototype.read=function(e){ z("read",e),e=parseInt(e,10); var t=this._readableState,n=e; if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return z("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?M(this):v(this),null; if((e=h(e,t))===0&&t.ended)return t.length===0&&M(this),null; var i=t.needReadable; z("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&z("length less than watermark",i=!0),t.ended||t.reading?z("reading or ended",i=!1):i&&(z("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=h(n,t))); var r; return (r=e>0?S(e,t):null)===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&M(this)),r!==null&&this.emit("data",r),r },c.prototype._read=function(e){ this.emit("error",new Error("_read() is not implemented")) },c.prototype.pipe=function(e,t){ function i(e,t){ z("onunpipe"),e===p&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,o());}function r(){ z("onend"),e.end() }function o(){ z("cleanup"),e.removeListener("close",u),e.removeListener("finish",l),e.removeListener("drain",m),e.removeListener("error",c),e.removeListener("unpipe",i),p.removeListener("end",r),p.removeListener("end",f),p.removeListener("data",s),v=!0,!d.awaitDrain||e._writableState&&!e._writableState.needDrain||m();}function s(t){ z("ondata"),b=!1,!1!==e.write(t)||b||((d.pipesCount===1&&d.pipes===e||d.pipesCount>1&&P(d.pipes,e)!==-1)&&!v&&(z("false write response, pause",p._readableState.awaitDrain),p._readableState.awaitDrain++,b=!0),p.pause()) }function c(t){ z("onerror",t),f(),e.removeListener("error",c),R(e,"error")===0&&e.emit("error",t);}function u(){ e.removeListener("finish",l),f() }function l(){ z("onfinish"),e.removeListener("close",u),f() }function f(){ z("unpipe"),p.unpipe(e) }var p=this,d=this._readableState; switch(d.pipesCount){ case 0: d.pipes=e; break; case 1: d.pipes=[d.pipes,e]; break; default: d.pipes.push(e);}d.pipesCount+=1,z("pipe count=%d opts=%j",d.pipesCount,t); var h=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?r:f; d.endEmitted?F(h):p.once("end",h),e.on("unpipe",i); var m=_(p); e.on("drain",m); var v=!1,b=!1; return p.on("data",s),a(e,"error",c),e.once("close",u),e.once("finish",l),e.emit("pipe",p),d.flowing||(z("pipe resume"),p.resume()),e },c.prototype.unpipe=function(e){ var t=this._readableState,n={hasUnpiped:!1}; if(t.pipesCount===0)return this; if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this); if(!e){ var i=t.pipes,r=t.pipesCount; t.pipes=null,t.pipesCount=0,t.flowing=!1; for(var o=0; o<r; o++)i[o].emit("unpipe",this,n); return this }var a=P(t.pipes,e); returna===-1?this:(t.pipes.splice(a,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this);},c.prototype.on=function(e,t){ var n=O.prototype.on.call(this,e,t); if(e==="data")!1!==this._readableState.flowing&&this.resume(); else if(e==="readable"){ var i=this._readableState; i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&v(this):F(x,this));}return n },c.prototype.addListener=c.prototype.on,c.prototype.resume=function(){ var e=this._readableState; return e.flowing||(z("resume"),e.flowing=!0,w(this,e)),this;},c.prototype.pause=function(){ return z("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(z("pause"),this._readableState.flowing=!1,this.emit("pause")),this;},c.prototype.wrap=function(e){ var t=this._readableState,n=!1,i=this; e.on("end",function(){ if(z("wrapped end"),t.decoder&&!t.ended){ var e=t.decoder.end(); e&&e.length&&i.push(e);}i.push(null);}),e.on("data",function(r){ z("wrapped data"),t.decoder&&(r=t.decoder.write(r)),(!t.objectMode||r!==null&&void 0!==r)&&(t.objectMode||r&&r.length)&&(i.push(r)||(n=!0,e.pause()));}); for(var r in e)void 0===this[r]&&typeof e[r]=="function"&&(this[r]=(function(t){return function(){return e[t].apply(e,arguments)}}(r))); for(var o=0; o<K.length; o++)e.on(K[o],i.emit.bind(i,K[o])); return i._read=function(t){ z("wrapped _read",t),n&&(n=!1,e.resume()) },i },c._fromList=S }).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{}) },{"./_stream_duplex":129,"./internal/streams/BufferList":134,"./internal/streams/destroy":135,"./internal/streams/stream":136,_process:120,"core-util-is":49,events:83,inherits:101,isarray:137,"process-nextick-args":119,"safe-buffer":144,"string_decoder/":138,util:17}],132:[function(e,t,n){ function i(e){ this.afterTransform=function(t,n){ return r(e,t,n);},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null }function r(e,t,n){ var i=e._transformState; i.transforming=!1; var r=i.writecb; if(!r)return e.emit("error",new Error("write callback called multiple times")); i.writechunk=null,i.writecb=null,n!==null&&void 0!==n&&e.push(n),r(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); s.call(this,e),this._transformState=new i(this); var t=this; this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.once("prefinish",function(){ "function"==typeof this._flush?this._flush(function(e,n){ a(t,e,n) }):a(t);});}function a(e,t,n){ if(t)return e.emit("error",t); null!==n&&void 0!==n&&e.push(n); var i=e._writableState,r=e._transformState; if(i.length)throw new Error("Calling transform done when ws.length != 0"); if(r.transforming)throw new Error("Calling transform done when still transforming"); return e.push(null) }t.exports=o; var s=e("./_stream_duplex"),c=e("core-util-is"); c.inherits=e("inherits"),c.inherits(o,s),o.prototype.push=function(e,t){ return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t);},o.prototype._transform=function(e,t,n){ throw new Error("_transform() is not implemented");},o.prototype._write=function(e,t,n){ var i=this._transformState; if(i.writecb=n,i.writechunk=e,i.writeencoding=t,!i.transforming){ var r=this._readableState; (i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.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;},o.prototype._destroy=function(e,t){ var n=this; s.prototype._destroy.call(this,e,function(e){ t(e),n.emit("close") }) };},{"./_stream_duplex":129,"core-util-is":49,inherits:101}],133:[function(e,t,n){ (function(n,i){ function r(e){ var t=this; this.next=null,this.entry=null,this.finish=function(){ E(t,e);} }function o(e){ return I.from(e);}function a(e){ return I.isBuffer(e)||e instanceof B;}function s(){}function c(t,n){ C=C||e("./_stream_duplex"),t=t||{},this.objectMode=Boolean(t.objectMode),n instanceof C&&(this.objectMode=this.objectMode||Boolean(t.writableObjectMode)); var i=t.highWaterMark,o=this.objectMode?16:16384; this.highWaterMark=i||i===0?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1; var a=!1===t.decodeStrings; this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){ b(n,e) },this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this) }function u(t){ if(C=C||e("./_stream_duplex"),!(O.call(u,this)||this instanceof C))return new u(t); this._writableState=new c(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),F.call(this) }function l(e,t){ var n=new Error("write after end"); e.emit("error",n),A(t,n) }function f(e,t,n,i){ var r=!0,o=!1; return n===null?o=new TypeError("May not write null values to stream"):typeof n=="string"||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),A(i,o),r=!1),r;}function p(e,t,n){ return e.objectMode||!1===e.decodeStrings||typeof t!="string"||(t=I.from(t,n)),t;}function d(e,t,n,i,r,o){ if(!n){ var a=p(t,i,r); i!==a&&(n=!0,r="buffer",i=a);}var s=t.objectMode?1:i.length; t.length+=s; var c=t.length<t.highWaterMark; if(c||(t.needDrain=!0),t.writing||t.corked){ var u=t.lastBufferedRequest; t.lastBufferedRequest={chunk:i,encoding:r,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1 }else h(e,t,!1,s,i,r,o); return c;}function h(e,t,n,i,r,o,a){ t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(r,t.onwrite):e._write(r,o,t.onwrite),t.sync=!1;}function m(e,t,n,i,r){ --t.pendingcb,n?(A(r,i),A(j,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(r(i),e._writableState.errorEmitted=!0,e.emit("error",i),j(e,t));}function v(e){ e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0 }function b(e,t){ var n=e._writableState,i=n.sync,r=n.writecb; if(v(n),t)m(e,n,i,t,r); else{ var o=x(n); o||n.corked||n.bufferProcessing||!n.bufferedRequest||_(e,n),i?M(y,e,n,o,r):y(e,n,o,r) } }function y(e,t,n,i){ n||g(e,t),t.pendingcb--,i(),j(e,t) }function g(e,t){ 0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));}function _(e,t){ t.bufferProcessing=!0; var n=t.bufferedRequest; if(e._writev&&n&&n.next){ var i=t.bufferedRequestCount,o=new Array(i),a=t.corkedRequestsFree; a.entry=n; for(var s=0,c=!0; n;)o[s]=n,n.isBuf||(c=!1),n=n.next,s+=1; o.allBuffers=c,h(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new r(t) }else{ for(;n;){ var u=n.chunk,l=n.encoding,f=n.callback; if(h(e,t,!1,t.objectMode?1:u.length,u,l,f),n=n.next,t.writing)break }n===null&&(t.lastBufferedRequest=null);}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1;}function x(e){ return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing }function w(e,t){ e._final(function(n){ t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),j(e,t) }) }function k(e,t){ t.prefinished||t.finalCalled||(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,A(w,e,t)):(t.prefinished=!0,e.emit("prefinish")));}function j(e,t){ var n=x(t); return n&&(k(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),n }function S(e,t,n){ t.ending=!0,j(e,t),n&&(t.finished?A(n):e.once("finish",n)),t.ended=!0,e.writable=!1;}function E(e,t,n){ var i=e.entry; for(e.entry=null; i;){ var r=i.callback; t.pendingcb--,r(n),i=i.next }t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e;}var A=e("process-nextick-args"); t.exports=u; var C,M=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?setImmediate:A; u.WritableState=c; var T=e("core-util-is"); T.inherits=e("inherits"); var P={deprecate:e("util-deprecate")},F=e("./internal/streams/stream"),I=e("safe-buffer").Buffer,B=i.Uint8Array||function(){},R=e("./internal/streams/destroy"); T.inherits(u,F),c.prototype.getBuffer=function(){ for(var e=this.bufferedRequest,t=[]; e;)t.push(e),e=e.next; return t },(function(){try{Object.defineProperty(c.prototype,"buffer",{get:P.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}()); var O; "function"==typeof Symbol&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(O=Function.prototype[Symbol.hasInstance],Object.defineProperty(u,Symbol.hasInstance,{value:function(e){ return Boolean(O.call(this,e))||e&&e._writableState instanceof c;}})):O=function(e){ return e instanceof this },u.prototype.pipe=function(){ this.emit("error",new Error("Cannot pipe, not readable")) },u.prototype.write=function(e,t,n){ var i=this._writableState,r=!1,c=a(e)&&!i.objectMode; return c&&!I.isBuffer(e)&&(e=o(e)),typeof t=="function"&&(n=t,t=null),c?t="buffer":t||(t=i.defaultEncoding),typeof n!="function"&&(n=s),i.ended?l(this,n):(c||f(this,i,e,n))&&(i.pendingcb++,r=d(this,i,c,e,t,n)),r },u.prototype.cork=function(){ this._writableState.corked++;},u.prototype.uncork=function(){ var e=this._writableState; e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e));},u.prototype.setDefaultEncoding=function(e){ if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((String(e)).toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e); return this._writableState.defaultEncoding=e,this },u.prototype._write=function(e,t,n){ n(new Error("_write() is not implemented")) },u.prototype._writev=null,u.prototype.end=function(e,t,n){ var i=this._writableState; "function"==typeof e?(n=e,e=null,t=null):typeof t=="function"&&(n=t,t=null),e!==null&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||S(this,i,n) },Object.defineProperty(u.prototype,"destroyed",{get:function(){ return void 0!==this._writableState&&this._writableState.destroyed;},set:function(e){ this._writableState&&(this._writableState.destroyed=e) }}),u.prototype.destroy=R.destroy,u.prototype._undestroy=R.undestroy,u.prototype._destroy=function(e,t){ this.end(),t(e);};}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{}) },{"./_stream_duplex":129,"./internal/streams/destroy":135,"./internal/streams/stream":136,_process:120,"core-util-is":49,inherits:101,"process-nextick-args":119,"safe-buffer":144,"util-deprecate":156}],134:[function(e,t,n){ function i(e,t){ if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}function r(e,t,n){ e.copy(t,n);}var o=e("safe-buffer").Buffer; t.exports=(function(){function e(){i(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var t=o.allocUnsafe(e>>>0),n=this.head,i=0;n;)r(n.data,t,i),i+=n.data.length,n=n.next;return t},e}())},{"safe-buffer":144}],135:[function(e,t,n){ function i(e,t){ e.emit("error",t) }var r=e("process-nextick-args"); t.exports={destroy:function(e,t){ var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed; o||a?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r(i,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){ !t&&e?(r(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e);})) },undestroy:function(){ this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1) }};},{"process-nextick-args":119}],136:[function(e,t,n){ t.exports=e("events").EventEmitter },{events:83}],137:[function(e,t,n){ var i={}.toString; t.exports=Array.isArray||function(e){ returni.call(e)=="[object Array]"};},{}],138:[function(e,t,n){ arguments[4][45][0].apply(n,arguments) },{dup:45,"safe-buffer":144}],139:[function(e,t,n){ t.exports=e("./readable").PassThrough },{"./readable":140}],140:[function(e,t,n){ (n=t.exports=e("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js");},{"./lib/_stream_duplex.js":129,"./lib/_stream_passthrough.js":130,"./lib/_stream_readable.js":131,"./lib/_stream_transform.js":132,"./lib/_stream_writable.js":133}],141:[function(e,t,n){ t.exports=e("./readable").Transform;},{"./readable":140}],142:[function(e,t,n){ t.exports=e("./lib/_stream_writable.js") },{"./lib/_stream_writable.js":133}],143:[function(e,t,n){ (function(n){ function i(){ f.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520 }function r(e,t){ return e<<t|e>>>32-t;}function o(e,t,n,i,o,a,s,c){ return r(e+(t^n^i)+a+s|0,c)+o|0 }function a(e,t,n,i,o,a,s,c){ return r(e+(t&n|~t&i)+a+s|0,c)+o|0;}function s(e,t,n,i,o,a,s,c){ return r(e+((t|~n)^i)+a+s|0,c)+o|0;}function c(e,t,n,i,o,a,s,c){ return r(e+(t&i|n&~i)+a+s|0,c)+o|0 }function u(e,t,n,i,o,a,s,c){ return r(e+(t^(n|~i))+a+s|0,c)+o|0 }var l=e("inherits"),f=e("hash-base"); l(i,f),i.prototype._update=function(){ for(var e=new Array(16),t=0; t<16; ++t)e[t]=this._block.readInt32LE(4*t); var n=this._a,i=this._b,l=this._c,f=this._d,p=this._e; p=o(p,n=o(n,i,l,f,p,e[0],0,11),i,l=r(l,10),f,e[1],0,14),i=o(i=r(i,10),l=o(l,f=o(f,p,n,i,l,e[2],0,15),p,n=r(n,10),i,e[3],0,12),f,p=r(p,10),n,e[4],0,5),f=o(f=r(f,10),p=o(p,n=o(n,i,l,f,p,e[5],0,8),i,l=r(l,10),f,e[6],0,7),n,i=r(i,10),l,e[7],0,9),n=o(n=r(n,10),i=o(i,l=o(l,f,p,n,i,e[8],0,11),f,p=r(p,10),n,e[9],0,13),l,f=r(f,10),p,e[10],0,14),l=o(l=r(l,10),f=o(f,p=o(p,n,i,l,f,e[11],0,15),n,i=r(i,10),l,e[12],0,6),p,n=r(n,10),i,e[13],0,7),p=a(p=r(p,10),n=o(n,i=o(i,l,f,p,n,e[14],0,9),l,f=r(f,10),p,e[15],0,8),i,l=r(l,10),f,e[7],1518500249,7),i=a(i=r(i,10),l=a(l,f=a(f,p,n,i,l,e[4],1518500249,6),p,n=r(n,10),i,e[13],1518500249,8),f,p=r(p,10),n,e[1],1518500249,13),f=a(f=r(f,10),p=a(p,n=a(n,i,l,f,p,e[10],1518500249,11),i,l=r(l,10),f,e[6],1518500249,9),n,i=r(i,10),l,e[15],1518500249,7),n=a(n=r(n,10),i=a(i,l=a(l,f,p,n,i,e[3],1518500249,15),f,p=r(p,10),n,e[12],1518500249,7),l,f=r(f,10),p,e[0],1518500249,12),l=a(l=r(l,10),f=a(f,p=a(p,n,i,l,f,e[9],1518500249,15),n,i=r(i,10),l,e[5],1518500249,9),p,n=r(n,10),i,e[2],1518500249,11),p=a(p=r(p,10),n=a(n,i=a(i,l,f,p,n,e[14],1518500249,7),l,f=r(f,10),p,e[11],1518500249,13),i,l=r(l,10),f,e[8],1518500249,12),i=s(i=r(i,10),l=s(l,f=s(f,p,n,i,l,e[3],1859775393,11),p,n=r(n,10),i,e[10],1859775393,13),f,p=r(p,10),n,e[14],1859775393,6),f=s(f=r(f,10),p=s(p,n=s(n,i,l,f,p,e[4],1859775393,7),i,l=r(l,10),f,e[9],1859775393,14),n,i=r(i,10),l,e[15],1859775393,9),n=s(n=r(n,10),i=s(i,l=s(l,f,p,n,i,e[8],1859775393,13),f,p=r(p,10),n,e[1],1859775393,15),l,f=r(f,10),p,e[2],1859775393,14),l=s(l=r(l,10),f=s(f,p=s(p,n,i,l,f,e[7],1859775393,8),n,i=r(i,10),l,e[0],1859775393,13),p,n=r(n,10),i,e[6],1859775393,6),p=s(p=r(p,10),n=s(n,i=s(i,l,f,p,n,e[13],1859775393,5),l,f=r(f,10),p,e[11],1859775393,12),i,l=r(l,10),f,e[5],1859775393,7),i=c(i=r(i,10),l=c(l,f=s(f,p,n,i,l,e[12],1859775393,5),p,n=r(n,10),i,e[1],2400959708,11),f,p=r(p,10),n,e[9],2400959708,12),f=c(f=r(f,10),p=c(p,n=c(n,i,l,f,p,e[11],2400959708,14),i,l=r(l,10),f,e[10],2400959708,15),n,i=r(i,10),l,e[0],2400959708,14),n=c(n=r(n,10),i=c(i,l=c(l,f,p,n,i,e[8],2400959708,15),f,p=r(p,10),n,e[12],2400959708,9),l,f=r(f,10),p,e[4],2400959708,8),l=c(l=r(l,10),f=c(f,p=c(p,n,i,l,f,e[13],2400959708,9),n,i=r(i,10),l,e[3],2400959708,14),p,n=r(n,10),i,e[7],2400959708,5),p=c(p=r(p,10),n=c(n,i=c(i,l,f,p,n,e[15],2400959708,6),l,f=r(f,10),p,e[14],2400959708,8),i,l=r(l,10),f,e[5],2400959708,6),i=u(i=r(i,10),l=c(l,f=c(f,p,n,i,l,e[6],2400959708,5),p,n=r(n,10),i,e[2],2400959708,12),f,p=r(p,10),n,e[4],2840853838,9),f=u(f=r(f,10),p=u(p,n=u(n,i,l,f,p,e[0],2840853838,15),i,l=r(l,10),f,e[5],2840853838,5),n,i=r(i,10),l,e[9],2840853838,11),n=u(n=r(n,10),i=u(i,l=u(l,f,p,n,i,e[7],2840853838,6),f,p=r(p,10),n,e[12],2840853838,8),l,f=r(f,10),p,e[2],2840853838,13),l=u(l=r(l,10),f=u(f,p=u(p,n,i,l,f,e[10],2840853838,12),n,i=r(i,10),l,e[14],2840853838,5),p,n=r(n,10),i,e[1],2840853838,12),p=u(p=r(p,10),n=u(n,i=u(i,l,f,p,n,e[3],2840853838,13),l,f=r(f,10),p,e[8],2840853838,14),i,l=r(l,10),f,e[11],2840853838,11),i=u(i=r(i,10),l=u(l,f=u(f,p,n,i,l,e[6],2840853838,8),p,n=r(n,10),i,e[15],2840853838,5),f,p=r(p,10),n,e[13],2840853838,6),f=r(f,10); var d=this._a,h=this._b,m=this._c,v=this._d,b=this._e; b=u(b,d=u(d,h,m,v,b,e[5],1352829926,8),h,m=r(m,10),v,e[14],1352829926,9),h=u(h=r(h,10),m=u(m,v=u(v,b,d,h,m,e[7],1352829926,9),b,d=r(d,10),h,e[0],1352829926,11),v,b=r(b,10),d,e[9],1352829926,13),v=u(v=r(v,10),b=u(b,d=u(d,h,m,v,b,e[2],1352829926,15),h,m=r(m,10),v,e[11],1352829926,15),d,h=r(h,10),m,e[4],1352829926,5),d=u(d=r(d,10),h=u(h,m=u(m,v,b,d,h,e[13],1352829926,7),v,b=r(b,10),d,e[6],1352829926,7),m,v=r(v,10),b,e[15],1352829926,8),m=u(m=r(m,10),v=u(v,b=u(b,d,h,m,v,e[8],1352829926,11),d,h=r(h,10),m,e[1],1352829926,14),b,d=r(d,10),h,e[10],1352829926,14),b=c(b=r(b,10),d=u(d,h=u(h,m,v,b,d,e[3],1352829926,12),m,v=r(v,10),b,e[12],1352829926,6),h,m=r(m,10),v,e[6],1548603684,9),h=c(h=r(h,10),m=c(m,v=c(v,b,d,h,m,e[11],1548603684,13),b,d=r(d,10),h,e[3],1548603684,15),v,b=r(b,10),d,e[7],1548603684,7),v=c(v=r(v,10),b=c(b,d=c(d,h,m,v,b,e[0],1548603684,12),h,m=r(m,10),v,e[13],1548603684,8),d,h=r(h,10),m,e[5],1548603684,9),d=c(d=r(d,10),h=c(h,m=c(m,v,b,d,h,e[10],1548603684,11),v,b=r(b,10),d,e[14],1548603684,7),m,v=r(v,10),b,e[15],1548603684,7),m=c(m=r(m,10),v=c(v,b=c(b,d,h,m,v,e[8],1548603684,12),d,h=r(h,10),m,e[12],1548603684,7),b,d=r(d,10),h,e[4],1548603684,6),b=c(b=r(b,10),d=c(d,h=c(h,m,v,b,d,e[9],1548603684,15),m,v=r(v,10),b,e[1],1548603684,13),h,m=r(m,10),v,e[2],1548603684,11),h=s(h=r(h,10),m=s(m,v=s(v,b,d,h,m,e[15],1836072691,9),b,d=r(d,10),h,e[5],1836072691,7),v,b=r(b,10),d,e[1],1836072691,15),v=s(v=r(v,10),b=s(b,d=s(d,h,m,v,b,e[3],1836072691,11),h,m=r(m,10),v,e[7],1836072691,8),d,h=r(h,10),m,e[14],1836072691,6),d=s(d=r(d,10),h=s(h,m=s(m,v,b,d,h,e[6],1836072691,6),v,b=r(b,10),d,e[9],1836072691,14),m,v=r(v,10),b,e[11],1836072691,12),m=s(m=r(m,10),v=s(v,b=s(b,d,h,m,v,e[8],1836072691,13),d,h=r(h,10),m,e[12],1836072691,5),b,d=r(d,10),h,e[2],1836072691,14),b=s(b=r(b,10),d=s(d,h=s(h,m,v,b,d,e[10],1836072691,13),m,v=r(v,10),b,e[0],1836072691,13),h,m=r(m,10),v,e[4],1836072691,7),h=a(h=r(h,10),m=a(m,v=s(v,b,d,h,m,e[13],1836072691,5),b,d=r(d,10),h,e[8],2053994217,15),v,b=r(b,10),d,e[6],2053994217,5),v=a(v=r(v,10),b=a(b,d=a(d,h,m,v,b,e[4],2053994217,8),h,m=r(m,10),v,e[1],2053994217,11),d,h=r(h,10),m,e[3],2053994217,14),d=a(d=r(d,10),h=a(h,m=a(m,v,b,d,h,e[11],2053994217,14),v,b=r(b,10),d,e[15],2053994217,6),m,v=r(v,10),b,e[0],2053994217,14),m=a(m=r(m,10),v=a(v,b=a(b,d,h,m,v,e[5],2053994217,6),d,h=r(h,10),m,e[12],2053994217,9),b,d=r(d,10),h,e[2],2053994217,12),b=a(b=r(b,10),d=a(d,h=a(h,m,v,b,d,e[13],2053994217,9),m,v=r(v,10),b,e[9],2053994217,12),h,m=r(m,10),v,e[7],2053994217,5),h=o(h=r(h,10),m=a(m,v=a(v,b,d,h,m,e[10],2053994217,15),b,d=r(d,10),h,e[14],2053994217,8),v,b=r(b,10),d,e[12],0,8),v=o(v=r(v,10),b=o(b,d=o(d,h,m,v,b,e[15],0,5),h,m=r(m,10),v,e[10],0,12),d,h=r(h,10),m,e[4],0,9),d=o(d=r(d,10),h=o(h,m=o(m,v,b,d,h,e[1],0,12),v,b=r(b,10),d,e[5],0,5),m,v=r(v,10),b,e[8],0,14),m=o(m=r(m,10),v=o(v,b=o(b,d,h,m,v,e[7],0,6),d,h=r(h,10),m,e[6],0,8),b,d=r(d,10),h,e[2],0,13),b=o(b=r(b,10),d=o(d,h=o(h,m,v,b,d,e[13],0,6),m,v=r(v,10),b,e[14],0,5),h,m=r(m,10),v,e[0],0,15),h=o(h=r(h,10),m=o(m,v=o(v,b,d,h,m,e[3],0,13),b,d=r(d,10),h,e[9],0,11),v,b=r(b,10),d,e[11],0,11),v=r(v,10); var y=this._b+l+v|0; this._b=this._c+f+b|0,this._c=this._d+p+d|0,this._d=this._e+n+h|0,this._e=this._a+i+m|0,this._a=y;},i.prototype._digest=function(){ this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update(); var e=new n(20); return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e;},t.exports=i;}).call(this,e("buffer").Buffer);},{buffer:47,"hash-base":85,inherits:101}],144:[function(e,t,n){ function i(e,t){ for(var n in e)t[n]=e[n];}function r(e,t,n){ return a(e,t,n);}var o=e("buffer"),a=o.Buffer; a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=o:(i(o,n),n.Buffer=r),i(a,r),r.from=function(e,t,n){ if(typeof e=="number")throw new TypeError("Argument must not be a number"); return a(e,t,n);},r.alloc=function(e,t,n){ if(typeof e!="number")throw new TypeError("Argument must be a number"); var i=a(e); return void 0!==t?typeof n=="string"?i.fill(t,n):i.fill(t):i.fill(0),i;},r.allocUnsafe=function(e){ if(typeof e!="number")throw new TypeError("Argument must be a number"); return a(e) },r.allocUnsafeSlow=function(e){ if(typeof e!="number")throw new TypeError("Argument must be a number"); return o.SlowBuffer(e) };},{buffer:47}],145:[function(e,t,n){ t.exports=e("scryptsy") },{scryptsy:146}],146:[function(e,t,n){ (function(n){ function i(e,t,i,r,o){ if(n.isBuffer(e)&&n.isBuffer(i))e.copy(i,r,t,t+o); else for(;o--;)i[r++]=e[t++];}var r=e("pbkdf2").pbkdf2Sync,o=2147483647; t.exports=function(e,t,a,s,c,u,l){ function f(e,t,n,r){ var o; for(i(e,t+64*(2*r-1),_,0,64),o=0; o<2*r; o++)h(e,64*o,_,0,64),d(_),i(_,0,e,n+64*o,64); for(o=0; o<r; o++)i(e,n+2*o*64,e,t+64*o,64); for(o=0; o<r; o++)i(e,n+64*(2*o+1),e,t+64*(o+r),64) }function p(e,t){ return e<<t|e>>>32-t }function d(e){ var t; for(t=0; t<16; t++)y[t]=(255&e[4*t+0])<<0,y[t]|=(255&e[4*t+1])<<8,y[t]|=(255&e[4*t+2])<<16,y[t]|=(255&e[4*t+3])<<24; for(i(y,0,g,0,16),t=8; t>0; t-=2)g[4]^=p(g[0]+g[12],7),g[8]^=p(g[4]+g[0],9),g[12]^=p(g[8]+g[4],13),g[0]^=p(g[12]+g[8],18),g[9]^=p(g[5]+g[1],7),g[13]^=p(g[9]+g[5],9),g[1]^=p(g[13]+g[9],13),g[5]^=p(g[1]+g[13],18),g[14]^=p(g[10]+g[6],7),g[2]^=p(g[14]+g[10],9),g[6]^=p(g[2]+g[14],13),g[10]^=p(g[6]+g[2],18),g[3]^=p(g[15]+g[11],7),g[7]^=p(g[3]+g[15],9),g[11]^=p(g[7]+g[3],13),g[15]^=p(g[11]+g[7],18),g[1]^=p(g[0]+g[3],7),g[2]^=p(g[1]+g[0],9),g[3]^=p(g[2]+g[1],13),g[0]^=p(g[3]+g[2],18),g[6]^=p(g[5]+g[4],7),g[7]^=p(g[6]+g[5],9),g[4]^=p(g[7]+g[6],13),g[5]^=p(g[4]+g[7],18),g[11]^=p(g[10]+g[9],7),g[8]^=p(g[11]+g[10],9),g[9]^=p(g[8]+g[11],13),g[10]^=p(g[9]+g[8],18),g[12]^=p(g[15]+g[14],7),g[13]^=p(g[12]+g[15],9),g[14]^=p(g[13]+g[12],13),g[15]^=p(g[14]+g[13],18); for(t=0; t<16; ++t)y[t]=g[t]+y[t]; for(t=0; t<16; t++){ var n=4*t; e[n+0]=y[t]>>0&255,e[n+1]=y[t]>>8&255,e[n+2]=y[t]>>16&255,e[n+3]=y[t]>>24&255;} }function h(e,t,n,i,r){ for(var o=0; o<r; o++)n[i+o]^=e[t+o];}if(a===0||(a&a-1)!=0)throw Error("N must be > 0 and a power of 2"); if(a>o/128/s)throw Error("Parameter N is too large"); if(s>o/128/c)throw Error("Parameter r is too large"); var m,v=new n(256*s),b=new n(128*s*a),y=new Int32Array(16),g=new Int32Array(16),_=new n(64),x=r(e,t,1,128*c*s,"sha256"); if(l){ var w=c*a*2,k=0; m=function(){ ++k%1e3==0&&l({current:k,total:w,percent:k/w*100}) };}for(var j=0; j<c; j++)!(function(e,t,n,i,r,o){var a,s=128*n;for(e.copy(o,0,t,t+s),a=0;a<i;a++)o.copy(r,a*s,0,0+s),f(o,0,s,n),m&&m();for(a=0;a<i;a++){var c=0+64*(2*n-1);h(r,(o.readUInt32LE(c)&i-1)*s,o,0,s),f(o,0,s,n),m&&m()}o.copy(e,t,0,0+s)}(x,128*j*s,s,a,b,v)); return r(e,x,1,u,"sha256");};}).call(this,e("buffer").Buffer) },{buffer:47,pbkdf2:114}],147:[function(e,t,n){ function i(e,t){ this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0;}var r=e("safe-buffer").Buffer; i.prototype.update=function(e,t){ "string"==typeof e&&(t=t||"utf8",e=r.from(e,t)); for(var n=this._block,i=this._blockSize,o=e.length,a=this._len,s=0; s<o;){ for(var c=a%i,u=Math.min(o-s,i-c),l=0; l<u; l++)n[c+l]=e[s+l]; s+=u,(a+=u)%i==0&&this._update(n);}return this._len+=o,this },i.prototype.digest=function(e){ var t=this._len%this._blockSize; this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0)); var n=8*this._len; if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4); else{ var i=4294967295&n,r=(n-i)/4294967296; this._block.writeUInt32BE(r,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4) }this._update(this._block); var o=this._hash(); return e?o.toString(e):o },i.prototype._update=function(){ throw new Error("_update must be implemented by subclass") },t.exports=i;},{"safe-buffer":144}],148:[function(e,t,n){ (n=t.exports=function(e){ e=e.toLowerCase(); var t=n[e]; if(!t)throw new Error(e+" is not supported (we accept pull requests)"); return new t }).sha=e("./sha"),n.sha1=e("./sha1"),n.sha224=e("./sha224"),n.sha256=e("./sha256"),n.sha384=e("./sha384"),n.sha512=e("./sha512") },{"./sha":149,"./sha1":150,"./sha224":151,"./sha256":152,"./sha384":153,"./sha512":154}],149:[function(e,t,n){ function i(){ this.init(),this._w=f,c.call(this,64,56);}function r(e){ return e<<5|e>>>27;}function o(e){ return e<<30|e>>>2;}function a(e,t,n,i){ return e===0?t&n|~t&i:e===2?t&n|t&i|n&i:t^n^i }var s=e("inherits"),c=e("./hash"),u=e("safe-buffer").Buffer,l=[1518500249,1859775393,-1894007588,-899497514],f=new Array(80); s(i,c),i.prototype.init=function(){ return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this },i.prototype._update=function(e){ for(var t=this._w,n=0|this._a,i=0|this._b,s=0|this._c,c=0|this._d,u=0|this._e,f=0; f<16; ++f)t[f]=e.readInt32BE(4*f); for(;f<80; ++f)t[f]=t[f-3]^t[f-8]^t[f-14]^t[f-16]; for(var p=0; p<80; ++p){ var d=~~(p/20),h=r(n)+a(d,i,s,c)+u+t[p]+l[d]|0; u=c,c=s,s=o(i),i=n,n=h }this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=c+this._d|0,this._e=u+this._e|0 },i.prototype._hash=function(){ var e=u.allocUnsafe(20); return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e;},t.exports=i },{"./hash":147,inherits:101,"safe-buffer":144}],150:[function(e,t,n){ function i(){ this.init(),this._w=p,u.call(this,64,56);}function r(e){ return e<<1|e>>>31 }function o(e){ return e<<5|e>>>27 }function a(e){ return e<<30|e>>>2 }function s(e,t,n,i){ return e===0?t&n|~t&i:e===2?t&n|t&i|n&i:t^n^i }var c=e("inherits"),u=e("./hash"),l=e("safe-buffer").Buffer,f=[1518500249,1859775393,-1894007588,-899497514],p=new Array(80); c(i,u),i.prototype.init=function(){ return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this;},i.prototype._update=function(e){ for(var t=this._w,n=0|this._a,i=0|this._b,c=0|this._c,u=0|this._d,l=0|this._e,p=0; p<16; ++p)t[p]=e.readInt32BE(4*p); for(;p<80; ++p)t[p]=r(t[p-3]^t[p-8]^t[p-14]^t[p-16]); for(var d=0; d<80; ++d){ var h=~~(d/20),m=o(n)+s(h,i,c,u)+l+t[d]+f[h]|0; l=u,u=c,c=a(i),i=n,n=m }this._a=n+this._a|0,this._b=i+this._b|0,this._c=c+this._c|0,this._d=u+this._d|0,this._e=l+this._e|0;},i.prototype._hash=function(){ var e=l.allocUnsafe(20); return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e;},t.exports=i },{"./hash":147,inherits:101,"safe-buffer":144}],151:[function(e,t,n){ function i(){ this.init(),this._w=c,a.call(this,64,56);}var r=e("inherits"),o=e("./sha256"),a=e("./hash"),s=e("safe-buffer").Buffer,c=new Array(64); r(i,o),i.prototype.init=function(){ return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this },i.prototype._hash=function(){ var e=s.allocUnsafe(28); return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e },t.exports=i },{"./hash":147,"./sha256":152,inherits:101,"safe-buffer":144}],152:[function(e,t,n){ function i(){ this.init(),this._w=h,f.call(this,64,56);}function r(e,t,n){ return n^e&(t^n) }function o(e,t,n){ return e&t|n&(e|t);}function a(e){ return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10);}function s(e){ return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7);}function c(e){ return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3 }function u(e){ return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10 }var l=e("inherits"),f=e("./hash"),p=e("safe-buffer").Buffer,d=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],h=new Array(64); l(i,f),i.prototype.init=function(){ return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this;},i.prototype._update=function(e){ for(var t=this._w,n=0|this._a,i=0|this._b,l=0|this._c,f=0|this._d,p=0|this._e,h=0|this._f,m=0|this._g,v=0|this._h,b=0; b<16; ++b)t[b]=e.readInt32BE(4*b); for(;b<64; ++b)t[b]=u(t[b-2])+t[b-7]+c(t[b-15])+t[b-16]|0; for(var y=0; y<64; ++y){ var g=v+s(p)+r(p,h,m)+d[y]+t[y]|0,_=a(n)+o(n,i,l)|0; v=m,m=h,h=p,p=f+g|0,f=l,l=i,i=n,n=g+_|0;}this._a=n+this._a|0,this._b=i+this._b|0,this._c=l+this._c|0,this._d=f+this._d|0,this._e=p+this._e|0,this._f=h+this._f|0,this._g=m+this._g|0,this._h=v+this._h|0;},i.prototype._hash=function(){ var e=p.allocUnsafe(32); return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e },t.exports=i;},{"./hash":147,inherits:101,"safe-buffer":144}],153:[function(e,t,n){ function i(){ this.init(),this._w=c,a.call(this,128,112) }var r=e("inherits"),o=e("./sha512"),a=e("./hash"),s=e("safe-buffer").Buffer,c=new Array(160); r(i,o),i.prototype.init=function(){ return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this;},i.prototype._hash=function(){ function e(e,n,i){ t.writeInt32BE(e,i),t.writeInt32BE(n,i+4) }var t=s.allocUnsafe(48); return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t },t.exports=i },{"./hash":147,"./sha512":154,inherits:101,"safe-buffer":144}],154:[function(e,t,n){ function i(){ this.init(),this._w=b,h.call(this,128,112);}function r(e,t,n){ return n^e&(t^n);}function o(e,t,n){ return e&t|n&(e|t) }function a(e,t){ return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25);}function s(e,t){ return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23) }function c(e,t){ return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7 }function u(e,t){ return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25);}function l(e,t){ return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6 }function f(e,t){ return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26);}function p(e,t){ return e>>>0<t>>>0?1:0 }var d=e("inherits"),h=e("./hash"),m=e("safe-buffer").Buffer,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],b=new Array(160); d(i,h),i.prototype.init=function(){ return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this },i.prototype._update=function(e){ for(var t=this._w,n=0|this._ah,i=0|this._bh,d=0|this._ch,h=0|this._dh,m=0|this._eh,b=0|this._fh,y=0|this._gh,g=0|this._hh,_=0|this._al,x=0|this._bl,w=0|this._cl,k=0|this._dl,j=0|this._el,S=0|this._fl,E=0|this._gl,A=0|this._hl,C=0; C<32; C+=2)t[C]=e.readInt32BE(4*C),t[C+1]=e.readInt32BE(4*C+4); for(;C<160; C+=2){ var M=t[C-30],T=t[C-30+1],P=c(M,T),F=u(T,M),I=l(M=t[C-4],T=t[C-4+1]),B=f(T,M),R=t[C-14],O=t[C-14+1],N=t[C-32],D=t[C-32+1],L=F+O|0,q=P+R+p(L,F)|0; q=(q=q+I+p(L=L+B|0,B)|0)+N+p(L=L+D|0,D)|0,t[C]=q,t[C+1]=L }for(var z=0; z<160; z+=2){ q=t[z],L=t[z+1]; var U=o(n,i,d),H=o(_,x,w),V=a(n,_),K=a(_,n),W=s(m,j),X=s(j,m),G=v[z],$=v[z+1],J=r(m,b,y),Q=r(j,S,E),Y=A+X|0,Z=g+W+p(Y,A)|0; Z=(Z=(Z=Z+J+p(Y=Y+Q|0,Q)|0)+G+p(Y=Y+$|0,$)|0)+q+p(Y=Y+L|0,L)|0; var ee=K+H|0,te=V+U+p(ee,K)|0; g=y,A=E,y=b,E=S,b=m,S=j,m=h+Z+p(j=k+Y|0,k)|0,h=d,k=w,d=i,w=x,i=n,x=_,n=Z+te+p(_=Y+ee|0,Y)|0 }this._al=this._al+_|0,this._bl=this._bl+x|0,this._cl=this._cl+w|0,this._dl=this._dl+k|0,this._el=this._el+j|0,this._fl=this._fl+S|0,this._gl=this._gl+E|0,this._hl=this._hl+A|0,this._ah=this._ah+n+p(this._al,_)|0,this._bh=this._bh+i+p(this._bl,x)|0,this._ch=this._ch+d+p(this._cl,w)|0,this._dh=this._dh+h+p(this._dl,k)|0,this._eh=this._eh+m+p(this._el,j)|0,this._fh=this._fh+b+p(this._fl,S)|0,this._gh=this._gh+y+p(this._gl,E)|0,this._hh=this._hh+g+p(this._hl,A)|0;},i.prototype._hash=function(){ function e(e,n,i){ t.writeInt32BE(e,i),t.writeInt32BE(n,i+4) }var t=m.allocUnsafe(64); return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t;},t.exports=i },{"./hash":147,inherits:101,"safe-buffer":144}],155:[function(e,t,n){ function i(){ r.call(this);}t.exports=i; var r=e("events").EventEmitter; e("inherits")(i,r),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(e,t){ function n(t){ e.writable&&!1===e.write(t)&&u.pause&&u.pause();}function i(){ u.readable&&u.resume&&u.resume();}function o(){ l||(l=!0,e.end()) }function a(){ l||(l=!0,typeof e.destroy=="function"&&e.destroy()) }function s(e){ if(c(),r.listenerCount(this,"error")===0)throw e }function c(){ u.removeListener("data",n),e.removeListener("drain",i),u.removeListener("end",o),u.removeListener("close",a),u.removeListener("error",s),e.removeListener("error",s),u.removeListener("end",c),u.removeListener("close",c),e.removeListener("close",c) }var u=this; u.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(u.on("end",o),u.on("close",a)); var l=!1; return u.on("error",s),e.on("error",s),u.on("end",c),u.on("close",c),e.on("close",c),e.emit("pipe",u),e } },{events:83,inherits:101,"readable-stream/duplex.js":128,"readable-stream/passthrough.js":139,"readable-stream/readable.js":140,"readable-stream/transform.js":141,"readable-stream/writable.js":142}],156:[function(e,t,n){ (function(e){ function n(t){ try{ if(!e.localStorage)return!1;}catch(e){ return!1 }var n=e.localStorage[t]; return n!=null&&String(n).toLowerCase()==="true"}t.exports=function(e,t){ if(n("noDeprecation"))return e; var i=!1; return function(){ if(!i){ if(n("throwDeprecation"))throw new Error(t); n("traceDeprecation")?console.trace(t):console.warn(t),i=!0 }return e.apply(this,arguments) };} }).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{});},{}],157:[function(require,module,exports){ function Context(){}var indexOf=require("indexof"),Object_keys=function(e){ if(Object.keys)return Object.keys(e); var t=[]; for(var n in e)t.push(n); return t;},forEach=function(e,t){ if(e.forEach)return e.forEach(t); for(var n=0; n<e.length; n++)t(e[n],n,e);},defineProp=(function(){try{return Object.defineProperty({},"_",{}),function(e,t,n){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(e){return function(e,t,n){e[t]=n}}}()),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]; Context.prototype={}; var Script=exports.Script=function(e){ if(!(this instanceof Script))return new Script(e); this.code=e }; Script.prototype.runInContext=function(e){ if(!(e instanceof Context))throw new TypeError("needs a 'context' argument."); var t=document.createElement("iframe"); t.style||(t.style={}),t.style.display="none",document.body.appendChild(t); var n=t.contentWindow,i=n.eval,r=n.execScript; !i&&r&&(r.call(n,"null"),i=n.eval),forEach(Object_keys(e),function(t){ n[t]=e[t] }),forEach(globals,function(t){ e[t]&&(n[t]=e[t]) }); var o=Object_keys(n),a=i.call(n,this.code); return forEach(Object_keys(n),function(t){ (t in e||indexOf(o,t)===-1)&&(e[t]=n[t]);}),forEach(globals,function(t){ t in e||defineProp(e,t,n[t]);}),document.body.removeChild(t),a;},Script.prototype.runInThisContext=function(){ return eval(this.code) },Script.prototype.runInNewContext=function(e){ var t=Script.createContext(e),n=this.runInContext(t); return forEach(Object_keys(t),function(n){ e[n]=t[n] }),n },forEach(Object_keys(Script.prototype),function(e){ exports[e]=Script[e]=function(t){ var n=Script(t); return n[e].apply(n,[].slice.call(arguments,1)) } }),exports.createScript=function(e){ return exports.Script(e);},exports.createContext=Script.createContext=function(e){ var t=new Context; return(void 0===e?"undefined":_typeof(e))==="object"&&forEach(Object_keys(e),function(n){ t[n]=e[n] }),t };},{indexof:100}],158:[function(e,t,n){ function i(e,t,n){ for(var i=0,r=e.length; i<r; i++)c.call(e,i)&&t.call(n,e[i],i,e) }function r(e,t,n){ for(var i=0,r=e.length; i<r; i++)t.call(n,e.charAt(i),i,e) }function o(e,t,n){ for(var i in e)c.call(e,i)&&t.call(n,e[i],i,e) }var a=e("is-function"); t.exports=function(e,t,n){ if(!a(t))throw new TypeError("iterator must be a function"); arguments.length<3&&(n=this),s.call(e)==="[object Array]"?i(e,t,n):typeof e=="string"?r(e,t,n):o(e,t,n) }; var s=Object.prototype.toString,c=Object.prototype.hasOwnProperty },{"is-function":160}],159:[function(e,t,n){ (function(e){ var n; n=typeof window!="undefined"?window:void 0!==e?e:typeof self!="undefined"?self:{},t.exports=n;}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{}) },{}],160:[function(e,t,n){ t.exports=function(e){ var t=i.call(e); returnt==="[object Function]"||typeof e=="function"&&t!=="[object RegExp]"||typeof window!="undefined"&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt) }; var i=Object.prototype.toString;},{}],161:[function(e,t,n){ t.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana"},"application/3gpp-ims+xml":{source:"iana"},"application/a2l":{source:"iana"},"application/activemessage":{source:"iana"},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana"},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",extensions:["atomsvc"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana"},"application/bacnet-xdd+zip":{source:"iana"},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana"},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana"},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/cbor":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana"},"application/ccxml+xml":{source:"iana",extensions:["ccxml"]},"application/cdfx+xml":{source:"iana"},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana"},"application/cellml+xml":{source:"iana"},"application/cfw":{source:"iana"},"application/clue_info+xml":{source:"iana"},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana"},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana"},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana"},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana"},"application/cstadata+xml":{source:"iana"},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",extensions:["mpd"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana"},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana"},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/docbook+xml":{source:"apache",extensions:["dbk"]},"application/dskpp+xml":{source:"iana"},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/emergencycalldata.comment+xml":{source:"iana"},"application/emergencycalldata.control+xml":{source:"iana"},"application/emergencycalldata.deviceinfo+xml":{source:"iana"},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana"},"application/emergencycalldata.serviceinfo+xml":{source:"iana"},"application/emergencycalldata.subscriberinfo+xml":{source:"iana"},"application/emergencycalldata.veds+xml":{source:"iana"},"application/emma+xml":{source:"iana",extensions:["emma"]},"application/emotionml+xml":{source:"iana"},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana"},"application/epub+zip":{source:"iana",extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana"},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1,extensions:["woff"]},"application/font-woff2":{compressible:!1,extensions:["woff2"]},"application/framework-attributes+xml":{source:"iana"},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geoxacml+xml":{source:"iana"},"application/gml+xml":{source:"iana",extensions:["gml"]},"application/gpx+xml":{source:"apache",extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana"},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana"},"application/ibe-pkg-reply+xml":{source:"iana"},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana"},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana"},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana"},"application/kpml-response+xml":{source:"iana"},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana"},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana"},"application/lost+xml":{source:"iana",extensions:["lostxml"]},"application/lostsync+xml":{source:"iana"},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",extensions:["mads"]},"application/manifest+json":{charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",extensions:["mathml"]},"application/mathml-content+xml":{source:"iana"},"application/mathml-presentation+xml":{source:"iana"},"application/mbms-associated-procedure-description+xml":{source:"iana"},"application/mbms-deregister+xml":{source:"iana"},"application/mbms-envelope+xml":{source:"iana"},"application/mbms-msk+xml":{source:"iana"},"application/mbms-msk-response+xml":{source:"iana"},"application/mbms-protection-description+xml":{source:"iana"},"application/mbms-reception-report+xml":{source:"iana"},"application/mbms-register+xml":{source:"iana"},"application/mbms-register-response+xml":{source:"iana"},"application/mbms-schedule+xml":{source:"iana"},"application/mbms-user-service-description+xml":{source:"iana"},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana"},"application/media_control+xml":{source:"iana"},"application/mediaservercontrol+xml":{source:"iana",extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",extensions:["metalink"]},"application/metalink4+xml":{source:"iana",extensions:["meta4"]},"application/mets+xml":{source:"iana",extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mmt-usd+xml":{source:"iana"},"application/mods+xml":{source:"iana",extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana"},"application/mrb-publish+xml":{source:"iana"},"application/msc-ivr+xml":{source:"iana"},"application/msc-mixer+xml":{source:"iana"},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana"},"application/n-triples":{source:"iana"},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana"},"application/news-groupinfo":{source:"iana"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana"},"application/nss":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p2p-overlay+xml":{source:"iana"},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana"},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana"},"application/pidf-diff+xml":{source:"iana"},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",extensions:["pls"]},"application/poc-settings+xml":{source:"iana"},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana"},"application/provenance+xml":{source:"iana"},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.hpub+zip":{source:"iana"},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana"},"application/pskc+xml":{source:"iana",extensions:["pskcxml"]},"application/qsig":{source:"iana"},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf"]},"application/reginfo+xml":{source:"iana",extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",extensions:["rld"]},"application/rfc+xml":{source:"iana"},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana"},"application/rls-services+xml":{source:"iana",extensions:["rs"]},"application/route-apd+xml":{source:"iana"},"application/route-s-tsid+xml":{source:"iana"},"application/route-usd+xml":{source:"iana"},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana"},"application/samlmetadata+xml":{source:"iana"},"application/sbml+xml":{source:"iana",extensions:["sbml"]},"application/scaip+xml":{source:"iana"},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/sep+xml":{source:"iana"},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",extensions:["shf"]},"application/sieve":{source:"iana"},"application/simple-filter+xml":{source:"iana"},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",extensions:["srx"]},"application/spirits-event+xml":{source:"iana"},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",extensions:["grxml"]},"application/sru+xml":{source:"iana",extensions:["sru"]},"application/ssdl+xml":{source:"apache",extensions:["ssdl"]},"application/ssml+xml":{source:"iana",extensions:["ssml"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/tei+xml":{source:"iana",extensions:["tei","teicorpus"]},"application/thraud+xml":{source:"iana",extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/trig":{source:"iana"},"application/ttml+xml":{source:"iana"},"application/tve-trigger":{source:"iana"},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana"},"application/urc-ressheet+xml":{source:"iana"},"application/urc-targetdesc+xml":{source:"iana"},"application/urc-uisocketdesc+xml":{source:"iana"},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana"},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana"},"application/vnd.3gpp-prose+xml":{source:"iana"},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana"},"application/vnd.3gpp.bsf+xml":{source:"iana"},"application/vnd.3gpp.gmop+xml":{source:"iana"},"application/vnd.3gpp.mcptt-info+xml":{source:"iana"},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana"},"application/vnd.3gpp.mid-call+xml":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana"},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana"},"application/vnd.3gpp.srvcc-info+xml":{source:"iana"},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana"},"application/vnd.3gpp.ussd+xml":{source:"iana"},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana"},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",extensions:["mpkg"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avistar+xml":{source:"iana"},"application/vnd.balsamiq.bmml+xml":{source:"iana"},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana"},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana"},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",extensions:["wbs"]},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana"},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana"},"application/vnd.cybank":{source:"iana"},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume-movie":{source:"iana"},"application/vnd.desmume.movie":{source:"apache"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana"},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana"},"application/vnd.dvb.notif-container+xml":{source:"iana"},"application/vnd.dvb.notif-generic+xml":{source:"iana"},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana"},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana"},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana"},"application/vnd.dvb.notif-init+xml":{source:"iana"},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana"},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana"},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana"},"application/vnd.eszigno3+xml":{source:"iana",extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana"},"application/vnd.etsi.asic-e+zip":{source:"iana"},"application/vnd.etsi.asic-s+zip":{source:"iana"},"application/vnd.etsi.cug+xml":{source:"iana"},"application/vnd.etsi.iptvcommand+xml":{source:"iana"},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana"},"application/vnd.etsi.iptvprofile+xml":{source:"iana"},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana"},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana"},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana"},"application/vnd.etsi.iptvservice+xml":{source:"iana"},"application/vnd.etsi.iptvsync+xml":{source:"iana"},"application/vnd.etsi.iptvueprofile+xml":{source:"iana"},"application/vnd.etsi.mcid+xml":{source:"iana"},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana"},"application/vnd.etsi.pstn+xml":{source:"iana"},"application/vnd.etsi.sci+xml":{source:"iana"},"application/vnd.etsi.simservs+xml":{source:"iana"},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana"},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana"},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana"},"application/vnd.gov.sk.e-form+zip":{source:"iana"},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana"},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana"},"application/vnd.imagemeter.image+zip":{source:"iana"},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana"},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana"},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana"},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana"},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana"},"application/vnd.iptc.g2.newsitem+xml":{source:"iana"},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana"},"application/vnd.iptc.g2.packageitem+xml":{source:"iana"},"application/vnd.iptc.g2.planningitem+xml":{source:"iana"},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",extensions:["lasxml"]},"application/vnd.liberty-request+xml":{source:"iana"},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",extensions:["lbe"]},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana"},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana"},"application/vnd.marlin.drm.conftoken+xml":{source:"iana"},"application/vnd.marlin.drm.license+xml":{source:"iana"},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana"},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana"},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana"},"application/vnd.ms-printing.printticket+xml":{source:"apache"},"application/vnd.ms-printschematicket+xml":{source:"iana"},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana"},"application/vnd.nokia.iptv.config+xml":{source:"iana"},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana"},"application/vnd.nokia.landmarkcollection+xml":{source:"iana"},"application/vnd.nokia.n-gage.ac+xml":{source:"iana"},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana"},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana"},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana"},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana"},"application/vnd.oipf.dae.xhtml+xml":{source:"iana"},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana"},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana"},"application/vnd.oipf.spdlist+xml":{source:"iana"},"application/vnd.oipf.ueprofile+xml":{source:"iana"},"application/vnd.oipf.userprofile+xml":{source:"iana"},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana"},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana"},"application/vnd.oma.bcast.imd+xml":{source:"iana"},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana"},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana"},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana"},"application/vnd.oma.bcast.sprov+xml":{source:"iana"},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana"},"application/vnd.oma.cab-feature-handler+xml":{source:"iana"},"application/vnd.oma.cab-pcc+xml":{source:"iana"},"application/vnd.oma.cab-subs-invite+xml":{source:"iana"},"application/vnd.oma.cab-user-prefs+xml":{source:"iana"},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana"},"application/vnd.oma.group-usage-list+xml":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana"},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana"},"application/vnd.oma.poc.final-report+xml":{source:"iana"},"application/vnd.oma.poc.groups+xml":{source:"iana"},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana"},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana"},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana"},"application/vnd.oma.xcap-directory+xml":{source:"iana"},"application/vnd.omads-email+xml":{source:"iana"},"application/vnd.omads-file+xml":{source:"iana"},"application/vnd.omads-folder+xml":{source:"iana"},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana"},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml-template":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"apache",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml-template":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"apache",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml-template":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"apache",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana"},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana"},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana"},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana"},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana"},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos+xml":{source:"iana"},"application/vnd.paos.xml":{source:"apache"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana"},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana"},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana"},"application/vnd.radisys.msml+xml":{source:"iana"},"application/vnd.radisys.msml-audit+xml":{source:"iana"},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana"},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana"},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana"},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana"},"application/vnd.radisys.msml-conf+xml":{source:"iana"},"application/vnd.radisys.msml-dialog+xml":{source:"iana"},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana"},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana"},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana"},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana"},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana"},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana"},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana"},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.software602.filler.form+xml":{source:"iana"},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana"},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana"},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.tmd.mediaflex.api+xml":{source:"iana"},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana"},"application/vnd.wv.ssp+xml":{source:"iana"},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana"},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",extensions:["zaz"]},"application/voicexml+xml":{source:"iana",extensions:["vxml"]},"application/vq-rtcpxr":{source:"iana"},"application/watcherinfo+xml":{source:"iana"},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-otf":{source:"apache",compressible:!0,extensions:["otf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-ttf":{source:"apache",compressible:!0,extensions:["ttf","ttc"]},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"apache",extensions:["der","crt","pem"]},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana"},"application/xaml+xml":{source:"apache",extensions:["xaml"]},"application/xcap-att+xml":{source:"iana"},"application/xcap-caps+xml":{source:"iana"},"application/xcap-diff+xml":{source:"iana",extensions:["xdf"]},"application/xcap-el+xml":{source:"iana"},"application/xcap-error+xml":{source:"iana"},"application/xcap-ns+xml":{source:"iana"},"application/xcon-conference-info+xml":{source:"iana"},"application/xcon-conference-info-diff+xml":{source:"iana"},"application/xenc+xml":{source:"iana",extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache"},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana"},"application/xmpp+xml":{source:"iana"},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",extensions:["xpl"]},"application/xslt+xml":{source:"iana",extensions:["xslt"]},"application/xspf+xml":{source:"apache",extensions:["xspf"]},"application/xv+xml":{source:"iana",extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana"},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana"},"application/yin+xml":{source:"iana",extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana"},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana"},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tone":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/otf":{compressible:!0,extensions:["otf"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana"},"image/emf":{source:"iana"},"image/fits":{source:"iana"},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana"},"image/jp2":{source:"iana"},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jpm":{source:"iana"},"image/jpx":{source:"iana"},"image/ktx":{source:"iana",extensions:["ktx"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana"},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana"},"image/tiff":{source:"iana",compressible:!1,extensions:["tiff","tif"]},"image/tiff-fx":{source:"iana"},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana"},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana"},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana"},"image/vnd.valve.source.texture":{source:"iana"},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana"},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana"},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana"},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana"},"message/global-delivery-status":{source:"iana"},"message/global-disposition-notification":{source:"iana"},"message/global-headers":{source:"iana"},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana"},"model/3mf":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/vnd.collada+xml":{source:"iana",extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana"},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana"},"model/vnd.parasolid.transmit.binary":{source:"iana"},"model/vnd.parasolid.transmit.text":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.valve.source.compiled-map":{source:"iana"},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana"},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana"},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana",compressible:!1},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fwdred":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/hjson":{extensions:["hjson"]},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/slim":{extensions:["slim","slm"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana"},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vp8":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}} },{}],162:[function(e,t,n){ t.exports=e("./db.json");},{"./db.json":161}],163:[function(e,t,n){ function i(e){ if(!e||typeof e!="string")return!1; var t=a.exec(e),n=t&&r[t[1].toLowerCase()]; return n&&n.charset?n.charset:!(!t||!s.test(t[1]))&&"UTF-8";}var r=e("mime-db"),o=e("path").extname,a=/^\s*([^;\s]*)(?:;|\s|$)/,s=/^text\//i; n.charset=i,n.charsets={lookup:i},n.contentType=function(e){ if(!e||typeof e!="string")return!1; var t=e.indexOf("/")===-1?n.lookup(e):e; if(!t)return!1; if(t.indexOf("charset")===-1){ var i=n.charset(t); i&&(t+="; charset="+i.toLowerCase()) }return t },n.extension=function(e){ if(!e||typeof e!="string")return!1; var t=a.exec(e),i=t&&n.extensions[t[1].toLowerCase()]; return!(!i||!i.length)&&i[0] },n.extensions=Object.create(null),n.lookup=function(e){ if(!e||typeof e!="string")return!1; var t=o("x."+e).toLowerCase().substr(1); return Boolean(t)&&(n.types[t]||!1) },n.types=Object.create(null),(function(e,t){var n=["nginx","apache",void 0,"iana"];Object.keys(r).forEach(function(i){var o=r[i],a=o.extensions;if(a&&a.length){e[i]=a;for(var s=0;s<a.length;s++){var c=a[s];if(t[c]){var u=n.indexOf(r[t[c]].source),l=n.indexOf(o.source);if("application/octet-stream"!==t[c]&&(u>l||u===l&&"application/"===t[c].substr(0,12)))continue}t[c]=i}}})}(n.extensions,n.types))},{"mime-db":162,path:113}],164:[function(e,t,n){ var i=e("trim"),r=e("for-each"),o=function(e){ returnObject.prototype.toString.call(e)==="[object Array]"}; t.exports=function(e){ if(!e)return{}; var t={}; return r(i(e).split("\n"),function(e){ var n=e.indexOf(":"),r=i(e.slice(0,n)).toLowerCase(),a=i(e.slice(n+1)); void 0===t[r]?t[r]=a:o(t[r])?t[r].push(a):t[r]=[t[r],a] }),t };},{"for-each":158,trim:171}],165:[function(e,t,n){ var i=e("strict-uri-encode"); n.extract=function(e){ return e.split("?")[1]||"";},n.parse=function(e){ returntypeof e!="string"?{}:(e=e.trim().replace(/^(\?|#|&)/,""))?e.split("&").reduce(function(e,t){ var n=t.replace(/\+/g," ").split("="),i=n.shift(),r=n.length>0?n.join("="):void 0; return i=decodeURIComponent(i),r=void 0===r?null:decodeURIComponent(r),e.hasOwnProperty(i)?Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]:e[i]=r,e },{}):{};},n.stringify=function(e){ return e?Object.keys(e).sort().map(function(t){ var n=e[t]; return Array.isArray(n)?n.sort().map(function(e){ return i(t)+"="+i(e) }).join("&"):i(t)+"="+i(n) }).filter(function(e){ return e.length>0;}).join("&"):"" };},{"strict-uri-encode":166}],166:[function(e,t,n){ t.exports=function(e){ return encodeURIComponent(e).replace(/[!'()*]/g,function(e){ return"%"+e.charCodeAt(0).toString(16).toUpperCase() });} },{}],167:[function(e,t,n){ t.exports={"windows-amd64":{archive:"swarm-windows-amd64-1.6.7.exe",binaryMD5:"c2d827dc4553d9b91a7d6c1d5a6140fd",archiveMD5:"059196d21548060a18a12e17cc0ee59a"},"linux-amd64":{archive:"swarm-linux-amd64-1.6.7",binaryMD5:"85002d79b8ebc2d2f2f10fb198636a81",archiveMD5:"3e8874299ab8c0e3043d70ebb6673879"},"linux-386":{archive:"swarm-linux-386-1.6.7",binaryMD5:"35bc2ab976f60f96a2cede117e0df19d",archiveMD5:"7868a86c9cbdf8ac7ac2e5682b4ce40f"},"darwin-amd64":{archive:"swarm-darwin-amd64-1.6.7",binaryMD5:"c499b186645229260dd6ab685dd58f07",archiveMD5:"0794d111e5018eac3b657bcb29851121"},"linux-arm5":{archive:"swarm-linux-arm5-1.6.7",binaryMD5:"516fcd85246c905529442cd9b689c12f",archiveMD5:"47312708d417cb196b07ba0af1d3abb4"},"linux-arm6":{archive:"swarm-linux-arm6-1.6.7",binaryMD5:"82ff7bdbe388b4a190f4101c5150d3b4",archiveMD5:"350276de7bb175a15c314cfc4cb7f8fd"},"linux-mips":{archive:"swarm-linux-mips-1.6.7",binaryMD5:"e1e95280441c0ca35633927792ef5317",archiveMD5:"8fb4b64e94cd73aa718db787b9d4c53e"},"linux-arm7":{archive:"swarm-linux-arm7-1.6.7",binaryMD5:"bfc0b4d1c86d8a975af052fc7854bdd3",archiveMD5:"4378641d8e1e1fbb947f941c8fca8613"},"linux-arm64":{archive:"swarm-linux-arm64-1.6.7",binaryMD5:"bbac21a6c6fa8208f67ca4123d3f948a",archiveMD5:"4e503160327c5fbcca0414f17c54e5ee"},"linux-mipsle":{archive:"swarm-linux-mipsle-1.6.7",binaryMD5:"a82f191b2f9d2c470d0273219c820657",archiveMD5:"3016bdb6d237ae654c0cdf36fe85dc7c"},"windows-386":{archive:"swarm-windows-386-1.6.7.exe",binaryMD5:"ce0b34640642e58068ae5a359faef102",archiveMD5:"640aede4da08a3a9d8a6ac0434ba7c0f"},"linux-mips64":{archive:"swarm-linux-mips64-1.6.7",binaryMD5:"9da967664f384817adb5083fd1ffe8f1",archiveMD5:"357a33be470f8f89ba2619957a08deff"},"linux-mips64le":{archive:"swarm-linux-mips64le-1.6.7",binaryMD5:"ec1abcf7b216e87645ec83954d8344cd",archiveMD5:"a81fd0158190d99813c738ffa4f87627"}};},{}],168:[function(e,t,n){ var i=function(){ throw"This swarm.js function isn't available on the browser.";},r={readFile:i},o={download:i,safeDownloadArchived:i,directoryTree:i},a={platform:i,arch:i},s={join:i,slice:i},c={spawn:i},u=e("./swarm"); t.exports=u({fsp:r,files:o,os:a,path:s,child_process:c});},{"./swarm":170}],169:[function(e,t,n){ (function(e){ var n=function(t){ return function(){ return new Promise(function(n,i){ var r=function(i){ var r={},o=i.target.files.length,a=0; [].map.call(i.target.files,function(i){ var s=new FileReader; s.onload=function(s){ var c=new e(s.target.result); if(t==="directory"){ var u=i.webkitRelativePath; r[u.slice(u.indexOf("/")+1)]={type:"text/plain",data:c},++a===o&&n(r);}else if(t==="file"){ var l=i.webkitRelativePath; n({type:mimetype.lookup(l),data:c}) }else n(c);},s.readAsArrayBuffer(i);}) },o=void 0; "directory"===t?((o=document.createElement("input")).addEventListener("change",r),o.type="file",o.webkitdirectory=!0,o.mozdirectory=!0,o.msdirectory=!0,o.odirectory=!0,o.directory=!0):((o=document.createElement("input")).addEventListener("change",r),o.type="file"); var a=document.createEvent("MouseEvents"); a.initEvent("click",!0,!1),o.dispatchEvent(a) });};}; t.exports={data:n("data"),file:n("file"),directory:n("directory")};}).call(this,e("buffer").Buffer);},{buffer:47}],170:[function(e,t,n){ var i=e("mime-types"),r=e("./pick.js"),o=e("xhr-request-promise"),a=e("./../archives/archives.json"),s=e("buffer").Buffer; t.exports=function(e){ var t=e.fsp,n=e.files,c=e.os,u=e.path,l=e.child_process,f=function(e){ return function(t){ return function(n){ return n[e]=t,n;} } },p=function(e){ return function(t){ for(var n={},i=0,r=e.length; i<r; ++i)n[e[i]]=t[i]; return n;} },d=function(e){ return function(t){ var n={}; for(var i in e)n[i]=e[i]; for(var r in t)n[r]=t[r]; return n;};},h=function(e){ return function(t){ return e+"/bzzr:/"+t;} },m=function(e){ return function(t){ return o(h(e)(t),{responseType:"arraybuffer"}).then(function(e){ return new s(e) });} },v=function(e){ return function(t){ return (function t(n){return function(i){return function(r){var o=function(e){return{type:e.contentType,hash:e.hash}},a=function(e){return void 0===e.path?Promise.resolve():"application/bzz-manifest+json"===e.contentType?t(e.hash)(i+e.path)(r):Promise.resolve(f(i+e.path)(o(e))(r))};return m(e)(n).then(function(e){return JSON.parse(e.toString()).entries}).then(function(e){return Promise.all(e.map(a))}).then(function(){return r})}}}(t))("")({}) };},b=function(e){ return function(t){ return v(e)(t).then(function(e){ return p(Object.keys(e))(Object.keys(e).map(function(t){ return e[t].hash }));}) } },y=function(e){ return function(t){ return v(e)(t).then(function(t){ var n=Object.keys(t),i=n.map(function(e){ return t[e].hash;}),r=n.map(function(e){ return t[e].type;}),o=i.map(m(e)),a=function(e){ return e.map(function(e,t){ return{type:r[t],data:e} }) }; return Promise.all(o).then(function(e){ return p(n)(a(e)) });}) };},g=function(e){ return function(t){ return function(i){ return n.download(h(e)(t))(i) } } },_=function(e){ return function(t){ return function(n){ return b(e)(t).then(function(t){ var i=[]; for(var r in t)if(r.length>0){ var o=u.join(n,r); i.push(g(e)(t[r])(o));}return Promise.all(i).then(function(){ return n });}) };} },x=function(e){ return function(t){ return o(e+"/bzzr:/",{body:typeof t=="string"?new s(t):t,method:"POST"});} },w=function(e){ return function(t){ return function(n){ return function(i){ return (function r(a){var s="/"===n[0]?n:"/"+n,c=e+"/bzz:/"+t+s,u={method:"PUT",headers:{"Content-Type":i.type},body:i.data};return o(c,u).catch(function(e){return a>0&&r(a-1)})}(3))} } } },k=function(e){ return function(t){ return S(e)({"":t}) };},j=function(e){ return function(n){ return t.readFile(n).then(function(t){ return k(e)({type:i.lookup(n),data:t});}) } },S=function(e){ return function(t){ return x(e)("{}").then(function(n){ var i=function(n){ return function(i){ return w(e)(i)(n)(t[n]) };}; return Object.keys(t).reduce(function(e,t){ return e.then(i(t)) },Promise.resolve(n));}) } },E=function(e){ return function(n){ return t.readFile(n).then(x(e));};},A=function(e){ return function(r){ return function(o){ return n.directoryTree(o).then(function(e){ return Promise.all(e.map(function(e){ return t.readFile(e) })).then(function(t){ var n=e.map(function(e){ return e.slice(o.length);}),r=e.map(function(e){ return i.lookup(e)||"text/plain";}); return p(n)(t.map(function(e,t){ return{type:r[t],data:e} }));}) }).then(function(e){ return d(r?{"":e[r]}:{})(e) }).then(S(e));} };},C=function(e){ return function(t){ if(t.pick==="data")return r.data().then(x(e)); if(t.pick==="file")return r.file().then(k(e)); if(t.pick==="directory")return r.directory().then(S(e)); if(t.path)switch(t.kind){ case"data": return E(e)(t.path); case"file": return j(e)(t.path); case"directory": return A(e)(t.defaultFile)(t.path);}else{ if(typeof t=="string")return x(e)(new s(t)); if(t.length)return x(e)(t); if(t instanceof Object)return S(e)(t) }return Promise.reject(new Error("Bad arguments"));};},M=function(e){ return function(t){ return function(n){ return B(e)(t).then(function(i){ return i?n?_(e)(t)(n):y(e)(t):n?g(e)(t)(n):m(e)(t);});};} },T=function(e,t){ var i=c.platform().replace("win32","windows")+"-"+(c.arch()==="x64"?"amd64":"386"),r=(t||a)[i],o="http://ethereum-mist.s3.amazonaws.com/swarm/"+r.archive+".tar.gz",s=r.archiveMD5,u=r.binaryMD5; return n.safeDownloadArchived(o)(s)(u)(e) },P=function(e){ return new Promise(function(t,n){ var i=l.spawn,r=function(e){ return function(t){ return(""+t).indexOf(e)!==-1};},o=e.account,a=e.password,s=e.dataDir,c=e.ensApi,u=e.privateKey,f=0,p=i(e.binPath,["--bzzaccount",o||u,"--datadir",s,"--ens-api",c]),d=function(e){ 0===f&&r("Passphrase")(e)?setTimeout(function(){ f=1,p.stdin.write(a+"\n") },500):r("Swarm http proxy started")(e)&&(f=2,clearTimeout(h),t(p)) }; p.stdout.on("data",d),p.stderr.on("data",d); var h=setTimeout(function(){ return n(new Error("Couldn't start swarm process.")) },2e4) }) },F=function(e){ return new Promise(function(t,n){ e.stderr.removeAllListeners("data"),e.stdout.removeAllListeners("data"),e.stdin.removeAllListeners("error"),e.removeAllListeners("error"),e.removeAllListeners("exit"),e.kill("SIGINT"); var i=setTimeout(function(){ return e.kill("SIGKILL");},8e3); e.once("close",function(){ clearTimeout(i),t();});}) },I=function(e){ return x(e)("test").then(function(e){ returne==="c9a99c7d326dcc6316f32fe2625b311f6dc49a175e6877681ded93137d3569e7"}).catch(function(){ return!1 }) },B=function(e){ return function(t){ return m(e)(t).then(function(e){ return Boolean(JSON.parse(e.toString()).entries)}).catch(function(){ return!1 });} },R=function(e){ return function(t,n,i,r,o){ return void 0!==t&&(e=e(t)),void 0!==n&&(e=e(n)),void 0!==i&&(e=e(i)),void 0!==r&&(e=e(r)),void 0!==o&&(e=e(o)),e };},O=function(e){ return{download:function(t,n){ return M(e)(t)(n);},downloadData:R(m(e)),downloadDataToDisk:R(g(e)),downloadDirectory:R(y(e)),downloadDirectoryToDisk:R(_(e)),downloadEntries:R(v(e)),downloadRoutes:R(b(e)),isAvailable:function(){ return I(e) },upload:function(t){ return C(e)(t) },uploadData:R(x(e)),uploadFile:R(k(e)),uploadFileFromDisk:R(k(e)),uploadDataFromDisk:R(E(e)),uploadDirectory:R(S(e)),uploadDirectoryFromDisk:R(A(e)),uploadToManifest:R(w(e)),pick:r};}; return{at:O,local:function(e){ return function(t){ return I("http://localhost:8500").then(function(n){ return n?t(O("http://localhost:8500")).then(function(){}):T(e.binPath,e.archives).onData(function(t){ return(e.onProgress||function(){})(t.length) }).then(function(){ return P(e) }).then(function(e){ return t(O("http://localhost:8500")).then(function(){ return e;}) }).then(F);}) };},download:M,downloadBinary:T,downloadData:m,downloadDataToDisk:g,downloadDirectory:y,downloadDirectoryToDisk:_,downloadEntries:v,downloadRoutes:b,isAvailable:I,startProcess:P,stopProcess:F,upload:C,uploadData:x,uploadDataFromDisk:E,uploadFile:k,uploadFileFromDisk:j,uploadDirectory:S,uploadDirectoryFromDisk:A,uploadToManifest:w,pick:r} };},{"./../archives/archives.json":167,"./pick.js":169,buffer:47,"mime-types":163,"xhr-request-promise":174}],171:[function(e,t,n){ (n=t.exports=function(e){ return e.replace(/^\s*|\s*$/g,"");}).left=function(e){ return e.replace(/^\s*/,"");},n.right=function(e){ return e.replace(/\s*$/,"");};},{}],172:[function(e,t,n){ (function(){ function e(e){ function t(t,n,i,r,o,a){ for(;o>=0&&o<a; o+=e){ var s=r?r[o]:o; i=n(i,t[s],s,t);}return i;}return function(n,i,r,o){ i=x(i,o,4); var a=!C(n)&&_.keys(n),s=(a||n).length,c=e>0?0:s-1; return arguments.length<3&&(r=n[a?a[c]:c],c+=e),t(n,i,r,a,c,s) } }function i(e){ return function(t,n,i){ n=w(n,i); for(var r=A(t),o=e>0?0:r-1; o>=0&&o<r; o+=e)if(n(t[o],o,t))return o; return-1 } }function r(e,t,n){ return function(i,r,o){ var a=0,s=A(i); if(typeof o=="number")e>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1; else if(n&&o&&s)return o=n(i,r),i[o]===r?o:-1; if(r!==r)return(o=t(p.call(i,a,s),_.isNaN))>=0?o+a:-1; for(o=e>0?a:s-1; o>=0&&o<s; o+=e)if(i[o]===r)return o; return-1;};}function o(e,t){ var n=I.length,i=e.constructor,r=_.isFunction(i)&&i.prototype||u,o="constructor"; for(_.has(e,o)&&!_.contains(t,o)&&t.push(o); n--;)(o=I[n])in e&&e[o]!==r[o]&&!_.contains(t,o)&&t.push(o) }var a=this,s=a._,c=Array.prototype,u=Object.prototype,l=Function.prototype,f=c.push,p=c.slice,d=u.toString,h=u.hasOwnProperty,m=Array.isArray,v=Object.keys,b=l.bind,y=Object.create,g=function(){},_=function e(t){ return t instanceof e?t:this instanceof e?void (this._wrapped=t):new e(t);}; void 0!==n?(void 0!==t&&t.exports&&(n=t.exports=_),n._=_):a._=_,_.VERSION="1.8.3"; var x=function(e,t,n){ if(void 0===t)return e; switch(n==null?3:n){ case 1: return function(n){ return e.call(t,n);}; case 2: return function(n,i){ return e.call(t,n,i) }; case 3: return function(n,i,r){ return e.call(t,n,i,r);}; case 4: return function(n,i,r,o){ return e.call(t,n,i,r,o) } }return function(){ return e.apply(t,arguments) };},w=function(e,t,n){ return e==null?_.identity:_.isFunction(e)?x(e,t,n):_.isObject(e)?_.matcher(e):_.property(e);}; _.iteratee=function(e,t){ return w(e,t,1/0);}; var k=function(e,t){ return function(n){ var i=arguments.length; if(i<2||n==null)return n; for(var r=1; r<i; r++)for(var o=arguments[r],a=e(o),s=a.length,c=0; c<s; c++){ var u=a[c]; t&&void 0!==n[u]||(n[u]=o[u]);}return n;} },j=function(e){ if(!_.isObject(e))return{}; if(y)return y(e); g.prototype=e; var t=new g; return g.prototype=null,t;},S=function(e){ return function(t){ return t==null?void 0:t[e] } },E=Math.pow(2,53)-1,A=S("length"),C=function(e){ var t=A(e); returntypeof t=="number"&&t>=0&&t<=E;}; _.each=_.forEach=function(e,t,n){ t=x(t,n); var i,r; if(C(e))for(i=0,r=e.length; i<r; i++)t(e[i],i,e); else{ var o=_.keys(e); for(i=0,r=o.length; i<r; i++)t(e[o[i]],o[i],e);}return e;},_.map=_.collect=function(e,t,n){ t=w(t,n); for(var i=!C(e)&&_.keys(e),r=(i||e).length,o=Array(r),a=0; a<r; a++){ var s=i?i[a]:a; o[a]=t(e[s],s,e);}return o;},_.reduce=_.foldl=_.inject=e(1),_.reduceRight=_.foldr=e(-1),_.find=_.detect=function(e,t,n){ var i; if(void 0!==(i=C(e)?_.findIndex(e,t,n):_.findKey(e,t,n))&&i!==-1)return e[i] },_.filter=_.select=function(e,t,n){ var i=[]; return t=w(t,n),_.each(e,function(e,n,r){ t(e,n,r)&&i.push(e) }),i },_.reject=function(e,t,n){ return _.filter(e,_.negate(w(t)),n) },_.every=_.all=function(e,t,n){ t=w(t,n); for(var i=!C(e)&&_.keys(e),r=(i||e).length,o=0; o<r; o++){ var a=i?i[o]:o; if(!t(e[a],a,e))return!1 }return!0 },_.some=_.any=function(e,t,n){ t=w(t,n); for(var i=!C(e)&&_.keys(e),r=(i||e).length,o=0; o<r; o++){ var a=i?i[o]:o; if(t(e[a],a,e))return!0 }return!1;},_.contains=_.includes=_.include=function(e,t,n,i){ return C(e)||(e=_.values(e)),(typeof n!="number"||i)&&(n=0),_.indexOf(e,t,n)>=0;},_.invoke=function(e,t){ var n=p.call(arguments,2),i=_.isFunction(t); return _.map(e,function(e){ var r=i?t:e[t]; return r==null?r:r.apply(e,n);});},_.pluck=function(e,t){ return _.map(e,_.property(t));},_.where=function(e,t){ return _.filter(e,_.matcher(t));},_.findWhere=function(e,t){ return _.find(e,_.matcher(t)) },_.max=function(e,t,n){ var i,r,o=-1/0,a=-1/0; if(t==null&&e!=null)for(var s=0,c=(e=C(e)?e:_.values(e)).length; s<c; s++)(i=e[s])>o&&(o=i); else t=w(t,n),_.each(e,function(e,n,i){ ((r=t(e,n,i))>a||r===-1/0&&o===-1/0)&&(o=e,a=r) }); return o },_.min=function(e,t,n){ var i,r,o=1/0,a=1/0; if(t==null&&e!=null)for(var s=0,c=(e=C(e)?e:_.values(e)).length; s<c; s++)(i=e[s])<o&&(o=i); else t=w(t,n),_.each(e,function(e,n,i){ ((r=t(e,n,i))<a||r===1/0&&o===1/0)&&(o=e,a=r) }); return o },_.shuffle=function(e){ for(var t,n=C(e)?e:_.values(e),i=n.length,r=Array(i),o=0; o<i; o++)(t=_.random(0,o))!==o&&(r[o]=r[t]),r[t]=n[o]; return r },_.sample=function(e,t,n){ return t==null||n?(C(e)||(e=_.values(e)),e[_.random(e.length-1)]):_.shuffle(e).slice(0,Math.max(0,t)) },_.sortBy=function(e,t,n){ return t=w(t,n),_.pluck(_.map(e,function(e,n,i){ return{value:e,index:n,criteria:t(e,n,i)} }).sort(function(e,t){ var n=e.criteria,i=t.criteria; if(n!==i){ if(n>i||void 0===n)return 1; if(n<i||void 0===i)return-1 }return e.index-t.index;}),"value") }; var M=function(e){ return function(t,n,i){ var r={}; return n=w(n,i),_.each(t,function(i,o){ var a=n(i,o,t); e(r,i,a);}),r };}; _.groupBy=M(function(e,t,n){ _.has(e,n)?e[n].push(t):e[n]=[t] }),_.indexBy=M(function(e,t,n){ e[n]=t;}),_.countBy=M(function(e,t,n){ _.has(e,n)?e[n]++:e[n]=1 }),_.toArray=function(e){ return e?_.isArray(e)?p.call(e):C(e)?_.map(e,_.identity):_.values(e):[] },_.size=function(e){ return e==null?0:C(e)?e.length:_.keys(e).length;},_.partition=function(e,t,n){ t=w(t,n); var i=[],r=[]; return _.each(e,function(e,n,o){ (t(e,n,o)?i:r).push(e) }),[i,r];},_.first=_.head=_.take=function(e,t,n){ if(e!=null)return t==null||n?e[0]:_.initial(e,e.length-t);},_.initial=function(e,t,n){ return p.call(e,0,Math.max(0,e.length-(t==null||n?1:t))) },_.last=function(e,t,n){ if(e!=null)return t==null||n?e[e.length-1]:_.rest(e,Math.max(0,e.length-t)) },_.rest=_.tail=_.drop=function(e,t,n){ return p.call(e,t==null||n?1:t) },_.compact=function(e){ return _.filter(e,_.identity) }; var T=function e(t,n,i,r){ for(var o=[],a=0,s=r||0,c=A(t); s<c; s++){ var u=t[s]; if(C(u)&&(_.isArray(u)||_.isArguments(u))){ n||(u=e(u,n,i)); var l=0,f=u.length; for(o.length+=f; l<f;)o[a++]=u[l++] }else i||(o[a++]=u) }return o }; _.flatten=function(e,t){ return T(e,t,!1);},_.without=function(e){ return _.difference(e,p.call(arguments,1)) },_.uniq=_.unique=function(e,t,n,i){ _.isBoolean(t)||(i=n,n=t,t=!1),n!=null&&(n=w(n,i)); for(var r=[],o=[],a=0,s=A(e); a<s; a++){ var c=e[a],u=n?n(c,a,e):c; t?(a&&o===u||r.push(c),o=u):n?_.contains(o,u)||(o.push(u),r.push(c)):_.contains(r,c)||r.push(c);}return r;},_.union=function(){ return _.uniq(T(arguments,!0,!0));},_.intersection=function(e){ for(var t=[],n=arguments.length,i=0,r=A(e); i<r; i++){ var o=e[i]; if(!_.contains(t,o)){ for(var a=1; a<n&&_.contains(arguments[a],o); a++);a===n&&t.push(o);} }return t;},_.difference=function(e){ var t=T(arguments,!0,!0,1); return _.filter(e,function(e){ return!_.contains(t,e);});},_.zip=function(){ return _.unzip(arguments) },_.unzip=function(e){ for(var t=e&&_.max(e,A).length||0,n=Array(t),i=0; i<t; i++)n[i]=_.pluck(e,i); return n;},_.object=function(e,t){ for(var n={},i=0,r=A(e); i<r; i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1]; return n },_.findIndex=i(1),_.findLastIndex=i(-1),_.sortedIndex=function(e,t,n,i){ for(var r=(n=w(n,i,1))(t),o=0,a=A(e); o<a;){ var s=Math.floor((o+a)/2); n(e[s])<r?o=s+1:a=s }return o },_.indexOf=r(1,_.findIndex,_.sortedIndex),_.lastIndexOf=r(-1,_.findLastIndex),_.range=function(e,t,n){ null==t&&(t=e||0,e=0),n=n||1; for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0; o<i; o++,e+=n)r[o]=e; return r }; var P=function(e,t,n,i,r){ if(!(i instanceof t))return e.apply(n,r); var o=j(e.prototype),a=e.apply(o,r); return _.isObject(a)?a:o;}; _.bind=function(e,t){ if(b&&e.bind===b)return b.apply(e,p.call(arguments,1)); if(!_.isFunction(e))throw new TypeError("Bind must be called on a function"); var n=p.call(arguments,2); return function i(){ return P(e,i,t,this,n.concat(p.call(arguments))) };},_.partial=function(e){ var t=p.call(arguments,1); return function n(){ for(var i=0,r=t.length,o=Array(r),a=0; a<r; a++)o[a]=t[a]===_?arguments[i++]:t[a]; for(;i<arguments.length;)o.push(arguments[i++]); return P(e,n,this,this,o);};},_.bindAll=function(e){ var t,n,i=arguments.length; if(i<=1)throw new Error("bindAll must be passed function names"); for(t=1; t<i; t++)e[n=arguments[t]]=_.bind(e[n],e); return e },_.memoize=function(e,t){ var n=function n(i){ var r=n.cache,o=String(t?t.apply(this,arguments):i); return _.has(r,o)||(r[o]=e.apply(this,arguments)),r[o];}; return n.cache={},n },_.delay=function(e,t){ var n=p.call(arguments,2); return setTimeout(function(){ return e.apply(null,n);},t) },_.defer=_.partial(_.delay,_,1),_.throttle=function(e,t,n){ var i,r,o,a=null,s=0; n||(n={}); var c=function(){ s=!1===n.leading?0:_.now(),a=null,o=e.apply(i,r),a||(i=r=null);}; return function(){ var u=_.now(); s||!1!==n.leading||(s=u); var l=t-(u-s); return i=this,r=arguments,l<=0||l>t?(a&&(clearTimeout(a),a=null),s=u,o=e.apply(i,r),a||(i=r=null)):a||!1===n.trailing||(a=setTimeout(c,l)),o;} },_.debounce=function(e,t,n){ var i,r,o,a,s,c=function c(){ var u=_.now()-a; u<t&&u>=0?i=setTimeout(c,t-u):(i=null,n||(s=e.apply(o,r),i||(o=r=null)));}; return function(){ o=this,r=arguments,a=_.now(); var u=n&&!i; return i||(i=setTimeout(c,t)),u&&(s=e.apply(o,r),o=r=null),s;};},_.wrap=function(e,t){ return _.partial(t,e) },_.negate=function(e){ return function(){ return!e.apply(this,arguments) } },_.compose=function(){ var e=arguments,t=e.length-1; return function(){ for(var n=t,i=e[t].apply(this,arguments); n--;)i=e[n].call(this,i); return i };},_.after=function(e,t){ return function(){ if(--e<1)return t.apply(this,arguments);} },_.before=function(e,t){ var n; return function(){ return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n;} },_.once=_.partial(_.before,2); var F=!{toString:null}.propertyIsEnumerable("toString"),I=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"]; _.keys=function(e){ if(!_.isObject(e))return[]; if(v)return v(e); var t=[]; for(var n in e)_.has(e,n)&&t.push(n); return F&&o(e,t),t;},_.allKeys=function(e){ if(!_.isObject(e))return[]; var t=[]; for(var n in e)t.push(n); return F&&o(e,t),t },_.values=function(e){ for(var t=_.keys(e),n=t.length,i=Array(n),r=0; r<n; r++)i[r]=e[t[r]]; return i },_.mapObject=function(e,t,n){ t=w(t,n); for(var i,r=_.keys(e),o=r.length,a={},s=0; s<o; s++)a[i=r[s]]=t(e[i],i,e); return a },_.pairs=function(e){ for(var t=_.keys(e),n=t.length,i=Array(n),r=0; r<n; r++)i[r]=[t[r],e[t[r]]]; return i;},_.invert=function(e){ for(var t={},n=_.keys(e),i=0,r=n.length; i<r; i++)t[e[n[i]]]=n[i]; return t;},_.functions=_.methods=function(e){ var t=[]; for(var n in e)_.isFunction(e[n])&&t.push(n); return t.sort() },_.extend=k(_.allKeys),_.extendOwn=_.assign=k(_.keys),_.findKey=function(e,t,n){ t=w(t,n); for(var i,r=_.keys(e),o=0,a=r.length; o<a; o++)if(i=r[o],t(e[i],i,e))return i;},_.pick=function(e,t,n){ var i,r,o={},a=e; if(a==null)return o; _.isFunction(t)?(r=_.allKeys(a),i=x(t,n)):(r=T(arguments,!1,!1,1),i=function(e,t,n){ return t in n },a=Object(a)); for(var s=0,c=r.length; s<c; s++){ var u=r[s],l=a[u]; i(l,u,a)&&(o[u]=l) }return o;},_.omit=function(e,t,n){ if(_.isFunction(t))t=_.negate(t); else{ var i=_.map(T(arguments,!1,!1,1),String); t=function(e,t){ return!_.contains(i,t) } }return _.pick(e,t,n) },_.defaults=k(_.allKeys,!0),_.create=function(e,t){ var n=j(e); return t&&_.extendOwn(n,t),n;},_.clone=function(e){ return _.isObject(e)?_.isArray(e)?e.slice():_.extend({},e):e;},_.tap=function(e,t){ return t(e),e;},_.isMatch=function(e,t){ var n=_.keys(t),i=n.length; if(e==null)return!i; for(var r=Object(e),o=0; o<i; o++){ var a=n[o]; if(t[a]!==r[a]||!(a in r))return!1 }return!0;}; var B=function e(t,n,i,r){ if(t===n)return t!==0||1/t==1/n; if(t==null||n==null)return t===n; t instanceof _&&(t=t._wrapped),n instanceof _&&(n=n._wrapped); var o=d.call(t); if(o!==d.call(n))return!1; switch(o){ case"[object RegExp]": case"[object String]": return String(t)==String(n); case"[object Number]": return Number(t)!=Number(t)?Number(n)!=Number(n):+t==0?1/Number(t)==1/n:Number(t)==Number(n); case"[object Date]": case"[object Boolean]": return Number(t)==Number(n)}var a=o==="[object Array]"; if(!a){ if((void 0===t?"undefined":_typeof(t))!="object"||(void 0===n?"undefined":_typeof(n))!="object")return!1; var s=t.constructor,c=n.constructor; if(s!==c&&!(_.isFunction(s)&&s instanceof s&&_.isFunction(c)&&c instanceof c)&&"constructor"in t&&"constructor"in n)return!1 }i=i||[],r=r||[]; for(var u=i.length; u--;)if(i[u]===t)return r[u]===n; if(i.push(t),r.push(n),a){ if((u=t.length)!==n.length)return!1; for(;u--;)if(!e(t[u],n[u],i,r))return!1;}else{ var l,f=_.keys(t); if(u=f.length,_.keys(n).length!==u)return!1; for(;u--;)if(l=f[u],!_.has(n,l)||!e(t[l],n[l],i,r))return!1;}return i.pop(),r.pop(),!0 }; _.isEqual=function(e,t){ return B(e,t);},_.isEmpty=function(e){ return e==null||(C(e)&&(_.isArray(e)||_.isString(e)||_.isArguments(e))?e.length===0:_.keys(e).length===0) },_.isElement=function(e){ return!(!e||e.nodeType!==1);},_.isArray=m||function(e){ returnd.call(e)==="[object Array]"},_.isObject=function(e){ var t=void 0===e?"undefined":_typeof(e); returnt==="function"||t==="object"&&Boolean(e)},_.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){ _["is"+e]=function(t){ return d.call(t)==="[object "+e+"]" } }),_.isArguments(arguments)||(_.isArguments=function(e){ return _.has(e,"callee");}),typeof/./!="function"&&("undefined"==typeof Int8Array?"undefined":_typeof(Int8Array))!="object"&&(_.isFunction=function(e){ returntypeof e=="function"||!1;}),_.isFinite=function(e){ return isFinite(e)&&!isNaN(parseFloat(e));},_.isNaN=function(e){ return _.isNumber(e)&&e!==Number(e)},_.isBoolean=function(e){ return!0===e||!1===e||d.call(e)==="[object Boolean]"},_.isNull=function(e){ return e===null},_.isUndefined=function(e){ return void 0===e },_.has=function(e,t){ return e!=null&&h.call(e,t);},_.noConflict=function(){ return a._=s,this },_.identity=function(e){ return e;},_.constant=function(e){ return function(){ return e;} },_.noop=function(){},_.property=S,_.propertyOf=function(e){ return e==null?function(){}:function(t){ return e[t];} },_.matcher=_.matches=function(e){ return e=_.extendOwn({},e),function(t){ return _.isMatch(t,e);};},_.times=function(e,t,n){ var i=Array(Math.max(0,e)); t=x(t,n,1); for(var r=0; r<e; r++)i[r]=t(r); return i;},_.random=function(e,t){ return t==null&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1)) },_.now=Date.now||function(){ return(new Date).getTime();}; var R={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},O=_.invert(R),N=function(e){ var t=function(t){ return e[t] },n="(?:"+_.keys(e).join("|")+")",i=RegExp(n),r=RegExp(n,"g"); return function(e){ return e=e==null?"":String(e),i.test(e)?e.replace(r,t):e;} }; _.escape=N(R),_.unescape=N(O),_.result=function(e,t,n){ var i=e==null?void 0:e[t]; return void 0===i&&(i=n),_.isFunction(i)?i.call(e):i }; var D=0; _.uniqueId=function(e){ var t=String(++D); return e?e+t:t;},_.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g}; var L=/(.)^/,q={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},z=/\\|'|\r|\n|\u2028|\u2029/g,U=function(e){ return"\\"+q[e] }; _.template=function(e,t,n){ !t&&n&&(t=n),t=_.defaults({},t,_.templateSettings); var i=RegExp([(t.escape||L).source,(t.interpolate||L).source,(t.evaluate||L).source].join("|")+"|$","g"),r=0,o="__p+='"; e.replace(i,function(t,n,i,a,s){ return o+=e.slice(r,s).replace(z,U),r=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?o+="'+\n((__t=("+i+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t }),o+="';\n",t.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n"; try{ var a=new Function(t.variable||"obj","_",o) }catch(e){ throw e.source=o,e;}var s=function(e){ return a.call(this,e,_);},c=t.variable||"obj"; return s.source="function("+c+"){\n"+o+"}",s },_.chain=function(e){ var t=_(e); return t._chain=!0,t;}; var H=function(e,t){ return e._chain?_(t).chain():t;}; _.mixin=function(e){ _.each(_.functions(e),function(t){ var n=_[t]=e[t]; _.prototype[t]=function(){ var e=[this._wrapped]; return f.apply(e,arguments),H(this,n.apply(_,e)) };}) },_.mixin(_),_.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){ var t=c[e]; _.prototype[e]=function(){ var n=this._wrapped; return t.apply(n,arguments),e!=="shift"&&e!=="splice"||n.length!==0||delete n[0],H(this,n);};}),_.each(["concat","join","slice"],function(e){ var t=c[e]; _.prototype[e]=function(){ return H(this,t.apply(this._wrapped,arguments)) } }),_.prototype.value=function(){ return this._wrapped;},_.prototype.valueOf=_.prototype.toJSON=_.prototype.value,_.prototype.toString=function(){ return String(this._wrapped)},typeof define=="function"&&define.amd&&define("underscore",[],function(){ return _ });}).call(this) },{}],173:[function(e,t,n){ t.exports=function(e,t){ if(t){ t=(t=t.trim().replace(/^(\?|#|&)/,""))?"?"+t:t; var n=e.split(/[\?\#]/)[0]; t&&(/\:\/\/[^\/]*$/).test(n)&&(n+="/"); var i=e.match(/(\#.*)$/); e=n+t,i&&(e+=i[0]);}return e;};},{}],174:[function(e,t,n){ var i=e("xhr-request"); t.exports=function(e,t){ return new Promise(function(n,r){ i(e,t,function(e,t){ e?r(e):n(t) });});} },{"xhr-request":175}],175:[function(e,t,n){ var i=e("query-string"),r=e("url-set-query"),o=e("object-assign"),a=e("./lib/ensure-header.js"),s=e("./lib/request.js"),c="application/json",u=function(){}; t.exports=function(e,t,n){ if(!e||typeof e!="string")throw new TypeError("must specify a URL"); if(typeof t=="function"&&(n=t,t={}),n&&typeof n!="function")throw new TypeError("expected cb to be undefined or a function"); n=n||u; var l=(t=t||{}).json?"json":"text",f=(t=o({responseType:l},t)).headers||{},p=(t.method||"GET").toUpperCase(),d=t.query; return d&&(typeof d!="string"&&(d=i.stringify(d)),e=r(e,d)),t.responseType==="json"&&a(f,"Accept",c),t.json&&p!=="GET"&&p!=="HEAD"&&(a(f,"Content-Type",c),t.body=JSON.stringify(t.body)),t.method=p,t.url=e,t.headers=f,delete t.query,delete t.json,s(t,n);};},{"./lib/ensure-header.js":176,"./lib/request.js":178,"object-assign":179,"query-string":165,"url-set-query":173}],176:[function(e,t,n){ t.exports=function(e,t,n){ var i=t.toLowerCase(); e[t]||e[i]||(e[t]=n) };},{}],177:[function(e,t,n){ t.exports=function(e,t){ return t?{statusCode:t.statusCode,headers:t.headers,method:e.method,url:e.url,rawRequest:t.rawRequest?t.rawRequest:t}:null };},{}],178:[function(e,t,n){ var i=e("xhr"),r=e("./normalize-response"); t.exports=function(e,t){ delete e.uri; var n=!1; returne.responseType==="json"&&(e.responseType="text",n=!0),i(e,function(i,o,a){ if(n&&!i)try{ var s=o.rawRequest.responseText; a=JSON.parse(s);}catch(e){ i=e }o=r(e,o),i?t(i,null,o):t(i,a,o);});};},{"./normalize-response":177,xhr:180}],179:[function(e,t,n){ function i(e){ if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined"); return Object(e) }function r(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 n,o,a=i(e),s=1; s<arguments.length; s++){ n=arguments[s],o=r(Object(n)); for(var c=0; c<o.length; c++)a[o[c]]=n[o[c]] }return a;};},{}],180:[function(e,t,n){ function i(e){ for(var t in e)if(e.hasOwnProperty(t))return!1; return!0;}function r(e,t,n){ var i=e; return u(t)?(n=t,typeof e=="string"&&(i={uri:e})):i=f(t,{uri:e}),i.callback=n,i }function o(e,t,n){ return t=r(e,t,n),a(t);}function a(e){ function t(){ var e=void 0; if(e=u.response?u.response:u.responseText||s(u),g)try{ e=JSON.parse(e) }catch(e){}return e;}function n(e){ return clearTimeout(d),e instanceof Error||(e=new Error(String(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,c(e,_);}function r(){ if(!p){ var n; clearTimeout(d),n=e.useXDR&&void 0===u.status?200:u.status===1223?204:u.status; var i=_,r=null; return n!==0?(i={body:t(),statusCode:n,method:m,headers:{},url:h,rawRequest:u},u.getAllResponseHeaders&&(i.headers=l(u.getAllResponseHeaders()))):r=new Error("Internal XMLHttpRequest Error"),c(r,i,i.body) } }if(void 0===e.callback)throw new Error("callback argument missing"); var a=!1,c=function(t,n,i){ a||(a=!0,e.callback(t,n,i)) },u=e.xhr||null; u||(u=e.cors||e.useXDR?new o.XDomainRequest:new o.XMLHttpRequest); var f,p,d,h=u.url=e.uri||e.url,m=u.method=e.method||"GET",v=e.body||e.data,b=u.headers=e.headers||{},y=Boolean(e.sync),g=!1,_={body:void 0,headers:{},statusCode:0,method:m,url:h,rawRequest:u}; if("json"in e&&!1!==e.json&&(g=!0,b.accept||b.Accept||(b.Accept="application/json"),m!=="GET"&&m!=="HEAD"&&(b["content-type"]||b["Content-Type"]||(b["Content-Type"]="application/json"),v=JSON.stringify(!0===e.json?v:e.json))),u.onreadystatechange=function(){ 4===u.readyState&&setTimeout(r,0) },u.onload=r,u.onerror=n,u.onprogress=function(){},u.onabort=function(){ p=!0;},u.ontimeout=n,u.open(m,h,!y,e.username,e.password),y||(u.withCredentials=Boolean(e.withCredentials)),!y&&e.timeout>0&&(d=setTimeout(function(){ if(!p){ p=!0,u.abort("timeout"); var e=new Error("XMLHttpRequest timeout"); e.code="ETIMEDOUT",n(e);} },e.timeout)),u.setRequestHeader)for(f in b)b.hasOwnProperty(f)&&u.setRequestHeader(f,b[f]); else if(e.headers&&!i(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object"); return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&typeof e.beforeSend=="function"&&e.beforeSend(u),u.send(v||null),u }function s(e){ if(e.responseType==="document")return e.responseXML; var t=e.responseXML&&e.responseXML.documentElement.nodeName==="parsererror"; returne.responseType!==""||t?null:e.responseXML }var c=e("global/window"),u=e("is-function"),l=e("parse-headers"),f=e("xtend"); t.exports=o,o.XMLHttpRequest=c.XMLHttpRequest||function(){},o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:c.XDomainRequest,(function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],function(e){o["delete"===e?"del":e]=function(t,n,i){return n=r(t,n,i),n.method=e.toUpperCase(),a(n)}}))},{"global/window":159,"is-function":160,"parse-headers":164,xtend:181}],181:[function(e,t,n){ t.exports=function(){ for(var e={},t=0; t<arguments.length; t++){ var n=arguments[t]; for(var r in n)i.call(n,r)&&(e[r]=n[r]);}return e;}; var i=Object.prototype.hasOwnProperty },{}],182:[function(e,t,n){ var i=e("underscore"),r=e("swarm-js"),o=function e(t){ this.givenProvider=e.givenProvider,t&&t._requestManager&&(t=t.currentProvider),typeof document!="undefined"&&(this.pick=r.pick),this.setProvider(t);}; o.givenProvider=null,typeof ethereumProvider!="undefined"&ðereumProvider.bzz&&(o.givenProvider=ethereumProvider.bzz),o.prototype.setProvider=function(e){ return i.isObject(e)&&i.isString(e.bzz)&&(e=e.bzz),i.isString(e)?(this.currentProvider=e,this.download=r.at(e).download,this.upload=r.at(e).upload,this.isAvailable=r.at(e).isAvailable,!0):(this.currentProvider=null,!1) },t.exports=o;},{"swarm-js":168,underscore:172}],183:[function(e,t,n){ arguments[4][172][0].apply(n,arguments);},{dup:172}],184:[function(e,t,n){ t.exports={ErrorResponse:function(e){ var t=e&&e.error&&e.error.message?e.error.message:JSON.stringify(e); return new Error("Returned error: "+t);},InvalidNumberOfParams:function(e,t,n){ return new Error('Invalid number of parameters for "'+n+'". Got '+e+" expected "+t+"!");},InvalidConnection:function(e){ return new Error("CONNECTION ERROR: Couldn't connect to node "+e+".") },InvalidProvider:function(){ return new Error("Provider not set or invalid") },InvalidResponse:function(e){ var t=e&&e.error&&e.error.message?e.error.message:"Invalid JSON RPC response: "+JSON.stringify(e); return new Error(t);},ConnectionTimeout:function(e){ return new Error("CONNECTION TIMEOUT: timeout of "+e+" ms achived") }} },{}],185:[function(e,t,n){ var i=e("underscore"),r=e("web3-utils"),o=e("web3-eth-iban"),a=function(e){ return r.toBN(e).toString(10) },s=function(e){ returne==="latest"||e==="pending"||e==="earliest"},c=function(e){ if(void 0!==e)return s(e)?e:r.isHex(e)?i.isString(e)?e.toLowerCase():e:r.numberToHex(e) },u=function(e){ return e.blockNumber!==null&&(e.blockNumber=r.hexToNumber(e.blockNumber)),e.transactionIndex!==null&&(e.transactionIndex=r.hexToNumber(e.transactionIndex)),e.nonce=r.hexToNumber(e.nonce),e.gas=r.hexToNumber(e.gas),e.gasPrice=a(e.gasPrice),e.value=a(e.value),e.to&&r.isAddress(e.to)?e.to=r.toChecksumAddress(e.to):e.to=null,e.from&&(e.from=r.toChecksumAddress(e.from)),e;},l=function(e){ if(typeof e.blockHash=="string"&&typeof e.transactionHash=="string"&&typeof e.logIndex=="string"){ var t=r.sha3(e.blockHash.replace("0x","")+e.transactionHash.replace("0x","")+e.logIndex.replace("0x","")); e.id="log_"+t.replace("0x","").substr(0,8) }else e.id||(e.id=null); return e.blockNumber!==null&&(e.blockNumber=r.hexToNumber(e.blockNumber)),e.transactionIndex!==null&&(e.transactionIndex=r.hexToNumber(e.transactionIndex)),e.logIndex!==null&&(e.logIndex=r.hexToNumber(e.logIndex)),e.address&&(e.address=r.toChecksumAddress(e.address)),e },f=function(e){ var t=new o(e); if(t.isValid()&&t.isDirect())return t.toAddress().toLowerCase(); if(r.isAddress(e))return"0x"+e.toLowerCase().replace("0x",""); throw new Error('Provided address "'+e+"\" is invalid, the capitalization checksum test failed, or its an indrect IBAN address which can't be converted.") }; t.exports={inputDefaultBlockNumberFormatter:function(e){ return!this||void 0!==e&&e!==null?e==="genesis"||e==="earliest"?"0x0":c(e):this.defaultBlock },inputBlockNumberFormatter:c,inputCallFormatter:function(e){ var t=e.from||(this?this.defaultAccount:null); return t&&(e.from=f(t)),e.to&&(e.to=f(e.to)),(e.gas||e.gasLimit)&&(e.gas=e.gas||e.gasLimit),["gasPrice","gas","value","nonce"].filter(function(t){ return void 0!==e[t] }).forEach(function(t){ e[t]=r.numberToHex(e[t]);}),e },inputTransactionFormatter:function(e){ if(!i.isNumber(e.from)&&!i.isObject(e.from)){ if(e.from=e.from||(this?this.defaultAccount:null),!e.from&&!i.isNumber(e.from))throw new Error('The send transactions "from" field must be defined!'); e.from=f(e.from);}return e.to&&(e.to=f(e.to)),(e.gas||e.gasLimit)&&(e.gas=e.gas||e.gasLimit),["gasPrice","gas","value","nonce"].filter(function(t){ return void 0!==e[t] }).forEach(function(t){ e[t]=r.numberToHex(e[t]);}),e },inputAddressFormatter:f,inputPostFormatter:function(e){ return e.ttl&&(e.ttl=r.numberToHex(e.ttl)),e.workToProve&&(e.workToProve=r.numberToHex(e.workToProve)),e.priority&&(e.priority=r.numberToHex(e.priority)),i.isArray(e.topics)||(e.topics=e.topics?[e.topics]:[]),e.topics=e.topics.map(function(e){ return e.indexOf("0x")===0?e:r.fromUtf8(e);}),e;},inputLogFormatter:function(e){ var t=function(e){ return e===null||void 0===e?null:(e=String(e)).indexOf("0x")===0?e:r.fromUtf8(e) }; return e.topics=e.topics||[],e.topics=e.topics.map(function(e){ return i.isArray(e)?e.map(t):t(e) }),t=null,e.address&&(e.address=f(e.address)),e },inputSignFormatter:function(e){ return r.isHex(e)?e:r.utf8ToHex(e);},outputBigNumberFormatter:a,outputTransactionFormatter:u,outputTransactionReceiptFormatter:function(e){ if((void 0===e?"undefined":_typeof(e))!=="object")throw new Error("Received receipt is invalid: "+e); return e.blockNumber!==null&&(e.blockNumber=r.hexToNumber(e.blockNumber)),e.transactionIndex!==null&&(e.transactionIndex=r.hexToNumber(e.transactionIndex)),e.cumulativeGasUsed=r.hexToNumber(e.cumulativeGasUsed),e.gasUsed=r.hexToNumber(e.gasUsed),i.isArray(e.logs)&&(e.logs=e.logs.map(l)),e.contractAddress&&(e.contractAddress=r.toChecksumAddress(e.contractAddress)),e },outputBlockFormatter:function(e){ return e.gasLimit=r.hexToNumber(e.gasLimit),e.gasUsed=r.hexToNumber(e.gasUsed),e.size=r.hexToNumber(e.size),e.timestamp=r.hexToNumber(e.timestamp),e.number!==null&&(e.number=r.hexToNumber(e.number)),e.difficulty&&(e.difficulty=a(e.difficulty)),e.totalDifficulty&&(e.totalDifficulty=a(e.totalDifficulty)),i.isArray(e.transactions)&&e.transactions.forEach(function(e){ if(!i.isString(e))return u(e);}),e.miner&&(e.miner=r.toChecksumAddress(e.miner)),e;},outputLogFormatter:l,outputPostFormatter:function(e){ return e.expiry=r.hexToNumber(e.expiry),e.sent=r.hexToNumber(e.sent),e.ttl=r.hexToNumber(e.ttl),e.workProved=r.hexToNumber(e.workProved),e.topics||(e.topics=[]),e.topics=e.topics.map(function(e){ return r.toUtf8(e) }),e },outputSyncingFormatter:function(e){ return e.startingBlock=r.hexToNumber(e.startingBlock),e.currentBlock=r.hexToNumber(e.currentBlock),e.highestBlock=r.hexToNumber(e.highestBlock),e.knownStates&&(e.knownStates=r.hexToNumber(e.knownStates),e.pulledStates=r.hexToNumber(e.pulledStates)),e;}};},{underscore:183,"web3-eth-iban":249,"web3-utils":273}],186:[function(e,t,n){ var i=e("./errors"),r=e("./formatters"); t.exports={errors:i,formatters:r} },{"./errors":184,"./formatters":185}],187:[function(e,t,n){ arguments[4][172][0].apply(n,arguments);},{dup:172}],188:[function(e,t,n){ var i=e("underscore"),r=e("web3-core-helpers").errors,o=e("web3-core-helpers").formatters,a=e("web3-utils"),s=e("web3-core-promievent"),c=e("web3-core-subscriptions").subscriptions,u=function(e){ if(!e.call||!e.name)throw new Error('When creating a method you need to provide at least the "name" and "call" property.'); this.name=e.name,this.call=e.call,this.params=e.params||0,this.inputFormatter=e.inputFormatter,this.outputFormatter=e.outputFormatter,this.transformPayload=e.transformPayload,this.extraFormatters=e.extraFormatters,this.requestManager=e.requestManager,this.accounts=e.accounts,this.defaultBlock=e.defaultBlock||"latest",this.defaultAccount=e.defaultAccount||null }; u.prototype.setRequestManager=function(e,t){ this.requestManager=e,t&&(this.accounts=t) },u.prototype.createFunction=function(e,t){ var n=this.buildCall(); return n.call=this.call,this.setRequestManager(e||this.requestManager,t||this.accounts),n },u.prototype.attachToObject=function(e){ var t=this.buildCall(); t.call=this.call; var n=this.name.split("."); n.length>1?(e[n[0]]=e[n[0]]||{},e[n[0]][n[1]]=t):e[n[0]]=t;},u.prototype.getCall=function(e){ return i.isFunction(this.call)?this.call(e):this.call },u.prototype.extractCallback=function(e){ if(i.isFunction(e[e.length-1]))return e.pop() },u.prototype.validateArgs=function(e){ if(e.length!==this.params)throw r.InvalidNumberOfParams(e.length,this.params,this.name) },u.prototype.formatInput=function(e){ var t=this; return this.inputFormatter?this.inputFormatter.map(function(n,i){ return n?n.call(t,e[i]):e[i] }):e;},u.prototype.formatOutput=function(e){ var t=this; return i.isArray(e)?e.map(function(e){ return t.outputFormatter&&e?t.outputFormatter(e):e;}):this.outputFormatter&&e?this.outputFormatter(e):e;},u.prototype.toPayload=function(e){ var t=this.getCall(e),n=this.extractCallback(e),i=this.formatInput(e); this.validateArgs(i); var r={method:t,params:i,callback:n}; return this.transformPayload&&(r=this.transformPayload(r)),r },u.prototype._confirmTransaction=function(e,t,n){ var r=this,l=!1,f=!0,p=0,d=0,h=null,m=i.isObject(n.params[0])&&n.params[0].gas?n.params[0].gas:null,v=i.isObject(n.params[0])&&n.params[0].data&&n.params[0].from&&!n.params[0].to,b=[new u({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:o.outputTransactionReceiptFormatter}),new u({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[o.inputAddressFormatter,o.inputDefaultBlockNumberFormatter]}),new c({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:o.outputBlockFormatter}}})],y={}; i.each(b,function(e){ e.attachToObject(y),e.requestManager=r.requestManager;}); var g=function(n,i,o,c){ return n?(o.unsubscribe(),l=!0,a._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:n},e.eventEmitter,e.reject)):(o||(o={unsubscribe:function(){ clearInterval(h);}}),(c?s.resolve(c):y.getTransactionReceipt(t)).catch(function(t){ o.unsubscribe(),l=!0,a._fireError({message:"Failed to check for transaction receipt:",data:t},e.eventEmitter,e.reject) }).then(function(t){ if(!t||!t.blockHash)throw new Error("Receipt missing or blockHash null"); return r.extraFormatters&&r.extraFormatters.receiptFormatter&&(t=r.extraFormatters.receiptFormatter(t)),e.eventEmitter.listeners("confirmation").length>0&&(e.eventEmitter.emit("confirmation",d,t),f=!1,++d===25&&(o.unsubscribe(),e.eventEmitter.removeAllListeners())),t }).then(function(t){ if(v&&!l){ if(!t.contractAddress)return f&&(o.unsubscribe(),l=!0),a._fireError(new Error("The transaction receipt didn't contain a contract address."),e.eventEmitter,e.reject); y.getCode(t.contractAddress,function(n,i){ i&&(i.length>2?(e.eventEmitter.emit("receipt",t),r.extraFormatters&&r.extraFormatters.contractDeployFormatter?e.resolve(r.extraFormatters.contractDeployFormatter(t)):e.resolve(t),f&&e.eventEmitter.removeAllListeners()):a._fireError(new Error("The contract code couldn't be stored, please check your gas limit."),e.eventEmitter,e.reject),f&&o.unsubscribe(),l=!0) });}return t;}).then(function(t){ v||l||(t.outOfGas||m&&m===t.gasUsed?(t&&(t=JSON.stringify(t,null,2)),a._fireError(new Error("Transaction ran out of gas. Please provide more gas:\n"+t),e.eventEmitter,e.reject)):(e.eventEmitter.emit("receipt",t),e.resolve(t),f&&e.eventEmitter.removeAllListeners()),f&&o.unsubscribe(),l=!0) }).catch(function(){ if(++p-1>=50)return o.unsubscribe(),l=!0,a._fireError(new Error("Transaction was not mined within 50 blocks, please make sure your transaction was properly send. Be aware that it might still be mined!"),e.eventEmitter,e.reject) }));},_=function(){ i.isFunction(this.requestManager.provider.on)?y.subscribe("newBlockHeaders",g):h=setInterval(g,1e3) }.bind(this); y.getTransactionReceipt(t).then(function(t){ if(t&&t.blockHash)return e.eventEmitter.listeners("confirmation").length>0&&setTimeout(function(){ l||_() },1e3),g(null,0,null,t); l||_();}).catch(function(){ l||_() }) }; var l=function(e,t){ return i.isNumber(e)?t.wallet[e]:i.isObject(e)&&e.address&&e.privateKey?e:t.wallet[e.toLowerCase()] }; u.prototype.buildCall=function(){ var e=this,t=e.call==="eth_sendTransaction"||e.call==="eth_sendRawTransaction",n=function(){ var n=s(!t),r=e.toPayload(Array.prototype.slice.call(arguments)),o=function(i,o){ try{ o=e.formatOutput(o);}catch(e){ i=e }if(o instanceof Error&&(i=o),i)return i.error&&(i=i.error),a._fireError(i,n.eventEmitter,n.reject,r.callback); r.callback&&r.callback(null,o),t?(n.eventEmitter.emit("transactionHash",o),e._confirmTransaction(n,o,r)):i||n.resolve(o) },c=function(t){ r.method="eth_sendRawTransaction",r.params=[t.rawTransaction],e.requestManager.send(r,o) },f=function(e,t){ if(t&&t.accounts&&t.accounts.wallet&&t.accounts.wallet.length){ var r; if(e.method==="eth_sendTransaction"){ var a=e.params[0]; if((r=l(i.isObject(a)?a.from:null,t.accounts))&&r.privateKey){ delete a.from; var s=t.accounts.signTransaction(a,r.privateKey); return i.isFunction(s.then)?s.then(c):c(s) } }else if(e.method==="eth_sign"){ var u=e.params[1]; if((r=l(e.params[0],t.accounts))&&r.privateKey){ var f=t.accounts.sign(u,r.privateKey); return e.callback&&e.callback(null,f.signature),void n.resolve(f.signature) } } }return t.requestManager.send(e,o) }; return t&&i.isObject(r.params[0])&&!r.params[0].gasPrice?new u({name:"getGasPrice",call:"eth_gasPrice",params:0}).createFunction(e.requestManager)(function(t,n){ n&&(r.params[0].gasPrice=n),f(r,e);}):f(r,e),n.eventEmitter }; return n.method=e,n.request=this.request.bind(this),n },u.prototype.request=function(){ var e=this.toPayload(Array.prototype.slice.call(arguments)); return e.format=this.formatOutput.bind(this),e },t.exports=u;},{underscore:187,"web3-core-helpers":186,"web3-core-promievent":191,"web3-core-subscriptions":199,"web3-utils":273}],189:[function(e,t,n){ (function(e,i){ !(function(e){if("object"==(void 0===n?"undefined":_typeof(n))&&void 0!==t)t.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r;"undefined"!=typeof window?r=window:void 0!==i?r=i:"undefined"!=typeof self&&(r=self),r.Promise=e()}}(function(){var t,n,r;return function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof _dereq_&&_dereq_;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return r(n||e)},l,l.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof _dereq_&&_dereq_,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(e,t,n){t.exports=function(e){function t(e){var t=new n(e),i=t.promise();return t.setHowMany(1),t.setUnwrap(),t.init(),i}var n=e._SomePromiseArray;e.any=function(e){return t(e)},e.prototype.any=function(){return t(this)}}},{}],2:[function(t,n,i){function r(){this._isTickUsed=!1,this._lateQueue=new l(16),this._normalQueue=new l(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=u}function o(e,t,n){this._lateQueue.push(e,t,n),this._queueTick()}function a(e,t,n){this._normalQueue.push(e,t,n),this._queueTick()}function s(e){this._normalQueue._pushOne(e),this._queueTick()}var c;try{throw new Error}catch(e){c=e}var u=t("./schedule"),l=t("./queue"),f=t("./util");r.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},r.prototype.disableTrampolineIfNecessary=function(){f.hasDevTools&&(this._trampolineEnabled=!1)},r.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},r.prototype.fatalError=function(t,n){n?(e.stderr.write("Fatal "+(t instanceof Error?t.stack:t)),e.exit(2)):this.throwLater(t)},r.prototype.throwLater=function(e,t){if(1===arguments.length&&(t=e,e=function(){throw t}),"undefined"!=typeof setTimeout)setTimeout(function(){e(t)},0);else try{this._schedule(function(){e(t)})}catch(e){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},f.hasDevTools?(r.prototype.invokeLater=function(e,t,n){this._trampolineEnabled?o.call(this,e,t,n):this._schedule(function(){setTimeout(function(){e.call(t,n)},100)})},r.prototype.invoke=function(e,t,n){this._trampolineEnabled?a.call(this,e,t,n):this._schedule(function(){e.call(t,n)})},r.prototype.settlePromises=function(e){this._trampolineEnabled?s.call(this,e):this._schedule(function(){e._settlePromises()})}):(r.prototype.invokeLater=o,r.prototype.invoke=a,r.prototype.settlePromises=s),r.prototype.invokeFirst=function(e,t,n){this._normalQueue.unshift(e,t,n),this._queueTick()},r.prototype._drainQueue=function(e){for(;e.length()>0;){var t=e.shift();if("function"==typeof t){var n=e.shift(),i=e.shift();t.call(n,i)}else t._settlePromises()}},r.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},r.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},r.prototype._reset=function(){this._isTickUsed=!1},n.exports=r,n.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(e,t,n){t.exports=function(e,t,n,i){var r=!1,o=function(e,t){this._reject(t)},a=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(o,o,null,this,e)},s=function(e,t){0==(50397184&this._bitField)&&this._resolveCallback(t.target)},c=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(o){r||(r=!0,e.prototype._propagateFrom=i.propagateFromFunction(),e.prototype._boundValue=i.boundValueFunction());var u=n(o),l=new e(t);l._propagateFrom(this,1);var f=this._target();if(l._setBoundTo(u),u instanceof e){var p={promiseRejectionQueued:!1,promise:l,target:f,bindingPromise:u};f._then(t,a,void 0,l,p),u._then(s,c,void 0,l,p),l._setOnCancel(u)}else l._resolveCallback(f);return l},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},{}],4:[function(e,t,n){var i;"undefined"!=typeof Promise&&(i=Promise);var r=e("./promise")();r.noConflict=function(){try{Promise===r&&(Promise=i)}catch(e){}return r},t.exports=r},{"./promise":22}],5:[function(e,t,n){var i=Object.create;if(i){var r=i(null),o=i(null);r[" size"]=o[" size"]=0}t.exports=function(t){function n(e,n){var i;if(null!=e&&(i=e[n]),"function"!=typeof i){var r="Object "+s.classString(e)+" has no method '"+s.toString(n)+"'";throw new t.TypeError(r)}return i}function i(e){return n(e,this.pop()).apply(e,this)}function r(e){return e[this]}function o(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}var a,s=e("./util"),c=s.canEvaluate;s.isIdentifier;t.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(i,void 0,void 0,t,void 0)},t.prototype.get=function(e){var t;if("number"==typeof e)t=o;else if(c){var n=a(e);t=null!==n?n:r}else t=r;return this._then(t,void 0,void 0,e,void 0)}}},{"./util":36}],6:[function(e,t,n){t.exports=function(t,n,i,r){var o=e("./util"),a=o.tryCatch,s=o.errorObj,c=t._async;t.prototype.break=t.prototype.cancel=function(){if(!r.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e.isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n.isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),t=e,e=n}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this.isCancellable()&&(this._setCancelled(),c.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(o.isArray(e))for(var n=0;n<e.length;++n)this._doInvokeOnCancel(e[n],t);else if(void 0!==e)if("function"==typeof e){if(!t){var i=a(e).call(this._boundValue());i===s&&(this._attachExtraTrace(i.e),c.throwLater(i.e))}}else e._resultCancelled(this)},t.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),c.invoke(this._doInvokeOnCancel,this,e)},t.prototype._invokeInternalOnCancel=function(){this.isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},t.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(e,t,n){t.exports=function(t){var n=e("./util"),i=e("./es5").keys,r=n.tryCatch,o=n.errorObj;return function(e,a,s){return function(c){var u=s._boundValue();e:for(var l=0;l<e.length;++l){var f=e[l];if(f===Error||null!=f&&f.prototype instanceof Error){if(c instanceof f)return r(a).call(u,c)}else if("function"==typeof f){var p=r(f).call(u,c);if(p===o)return p;if(p)return r(a).call(u,c)}else if(n.isObject(c)){for(var d=i(f),h=0;h<d.length;++h){var m=d[h];if(f[m]!=c[m])continue e}return r(a).call(u,c)}}return t}}}},{"./es5":13,"./util":36}],8:[function(e,t,n){t.exports=function(e){function t(){this._trace=new t.CapturedTrace(n())}function n(){var e=r.length-1;if(e>=0)return r[e]}var i=!1,r=[];return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},t.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,r.push(this._trace))},t.prototype._popContext=function(){if(void 0!==this._trace){var e=r.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},t.CapturedTrace=null,t.create=function(){if(i)return new t},t.deactivateLongStackTraces=function(){},t.activateLongStackTraces=function(){var r=e.prototype._pushContext,o=e.prototype._popContext,a=e._peekContext,s=e.prototype._peekContext,c=e.prototype._promiseCreated;t.deactivateLongStackTraces=function(){e.prototype._pushContext=r,e.prototype._popContext=o,e._peekContext=a,e.prototype._peekContext=s,e.prototype._promiseCreated=c,i=!1},i=!0,e.prototype._pushContext=t.prototype._pushContext,e.prototype._popContext=t.prototype._popContext,e._peekContext=e.prototype._peekContext=n,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},t}},{}],9:[function(t,n,i){n.exports=function(n,i){function r(e,t){return{promise:t}}function o(){return!1}function a(e,t,n){var i=this;try{e(t,n,function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+R.toString(e));i._attachCancellationCallback(e)})}catch(e){return e}}function s(e){if(!this.isCancellable())return this;var t=this._onCancel();void 0!==t?R.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function c(){return this._onCancelField}function u(e){this._onCancelField=e}function l(){this._cancellationParent=void 0,this._onCancelField=void 0}function f(e,t){if(0!=(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;void 0===n&&(n=0),e._branchesRemainingToCancel=n+1}0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}function p(){var e=this._boundTo;return void 0!==e&&e instanceof n?e.isFulfilled()?e.value():void 0:e}function d(){this._trace=new C(this._peekContext())}function h(e,t){if(O(e)){var n=this._trace;if(void 0!==n&&t&&(n=n._parent),void 0!==n)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var i=x(e);R.notEnumerableProp(e,"stack",i.message+"\n"+i.stack.join("\n")),R.notEnumerableProp(e,"__stackCleaned__",!0)}}}function m(e,t,i){if(ee.warnings){var r,o=new B(e);if(t)i._attachExtraTrace(o);else if(ee.longStackTraces&&(r=n._peekContext()))r.attachExtraTrace(o);else{var a=x(o);o.stack=a.message+"\n"+a.stack.join("\n")}$("warning",o)||w(o,"",!0)}}function v(e,t){for(var n=0;n<t.length-1;++n)t[n].push("From previous event:"),t[n]=t[n].join("\n");return n<t.length&&(t[n]=t[n].join("\n")),e+"\n"+t.join("\n")}function b(e){for(var t=0;t<e.length;++t)(0===e[t].length||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}function y(e){for(var t=e[0],n=1;n<e.length;++n){for(var i=e[n],r=t.length-1,o=t[r],a=-1,s=i.length-1;s>=0;--s)if(i[s]===o){a=s;break}for(s=a;s>=0;--s){var c=i[s];if(t[r]!==c)break;t.pop(),r--}t=i}}function g(e){for(var t=[],n=0;n<e.length;++n){var i=e[n],r=" (No stack trace)"===i||D.test(i),o=r&&Q(i);r&&!o&&(q&&" "!==i.charAt(0)&&(i=" "+i),t.push(i))}return t}function _(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n<t.length;++n){var i=t[n];if(" (No stack trace)"===i||D.test(i))break}return n>0&&(t=t.slice(n)),t}function x(e){var t=e.stack,n=e.toString();return t="string"==typeof t&&t.length>0?_(e):[" (No stack trace)"],{message:n,stack:g(t)}}function w(e,t,n){if("undefined"!=typeof console){var i;if(R.isObject(e)){var r=e.stack;i=t+L(r,e)}else i=t+String(e);"function"==typeof P?P(i,n):"function"!=typeof console.log&&"object"!==_typeof(console.log)||console.log(i)}}function k(e,t,n,i){var r=!1;try{"function"==typeof t&&(r=!0,"rejectionHandled"===e?t(i):t(n,i))}catch(e){I.throwLater(e)}"unhandledRejection"===e?$(e,n,i)||r||w(n,"Unhandled rejection "):$(e,i)}function j(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{if(t=e&&"function"==typeof e.toString?e.toString():R.toString(e),/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch(e){}0===t.length&&(t="(empty array)")}return"(<"+S(t)+">, no stack trace)"}function S(e){return e.length<41?e:e.substr(0,38)+"..."}function E(){return"function"==typeof Z}function A(e){var t=e.match(Y);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function C(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);Z(this,C),t>32&&this.uncycle()}var M,T,P,F=n._getDomain,I=n._async,B=t("./errors").Warning,R=t("./util"),O=R.canAttachTrace,N=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,D=null,L=null,q=!1,z=!(0==R.env("BLUEBIRD_DEBUG")),U=!(0==R.env("BLUEBIRD_WARNINGS")||!z&&!R.env("BLUEBIRD_WARNINGS")),H=!(0==R.env("BLUEBIRD_LONG_STACK_TRACES")||!z&&!R.env("BLUEBIRD_LONG_STACK_TRACES")),V=0!=R.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(U||!!R.env("BLUEBIRD_W_FORGOTTEN_RETURN"));n.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},n.prototype._ensurePossibleRejectionHandled=function(){0==(524288&this._bitField)&&(this._setRejectionIsUnhandled(),I.invokeLater(this._notifyUnhandledRejection,this,void 0))},n.prototype._notifyUnhandledRejectionIsHandled=function(){k("rejectionHandled",M,void 0,this)},n.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},n.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},n.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),k("unhandledRejection",T,e,this)}},n.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},n.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},n.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},n.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},n.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},n.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},n.prototype._warn=function(e,t,n){return m(e,t,n||this)},n.onPossiblyUnhandledRejection=function(e){var t=F();T="function"==typeof e?null===t?e:t.bind(e):void 0},n.onUnhandledRejectionHandled=function(e){var t=F();M="function"==typeof e?null===t?e:t.bind(e):void 0};var K=function(){};n.longStackTraces=function(){if(I.haveItemsQueued()&&!ee.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!ee.longStackTraces&&E()){var e=n.prototype._captureStackTrace,t=n.prototype._attachExtraTrace;ee.longStackTraces=!0,K=function(){if(I.haveItemsQueued()&&!ee.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");n.prototype._captureStackTrace=e,n.prototype._attachExtraTrace=t,i.deactivateLongStackTraces(),I.enableTrampoline(),ee.longStackTraces=!1},n.prototype._captureStackTrace=d,n.prototype._attachExtraTrace=h,i.activateLongStackTraces(),I.disableTrampolineIfNecessary()}},n.hasLongStackTraces=function(){return ee.longStackTraces&&E()};var W=function(){try{var e=document.createEvent("CustomEvent");return e.initCustomEvent("testingtheevent",!1,!0,{}),R.global.dispatchEvent(e),function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!R.global.dispatchEvent(n)}}catch(e){}return function(){return!1}}(),X=R.isNode?function(){return e.emit.apply(e,arguments)}:R.global?function(e){var t="on"+e.toLowerCase(),n=R.global[t];return!!n&&(n.apply(R.global,[].slice.call(arguments,1)),!0)}:function(){return!1},G={promiseCreated:r,promiseFulfilled:r,promiseRejected:r,promiseResolved:r,promiseCancelled:r,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:r},$=function(e){var t=!1;try{t=X.apply(null,arguments)}catch(e){I.throwLater(e),t=!0}var n=!1;try{n=W(e,G[e].apply(null,arguments))}catch(e){I.throwLater(e),n=!0}return n||t};n.config=function(e){if("longStackTraces"in(e=Object(e))&&(e.longStackTraces?n.longStackTraces():!e.longStackTraces&&n.hasLongStackTraces()&&K()),"warnings"in e){var t=e.warnings;ee.warnings=!!t,V=ee.warnings,R.isObject(t)&&"wForgottenReturn"in t&&(V=!!t.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!ee.cancellation){if(I.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");n.prototype._clearCancellationData=l,n.prototype._propagateFrom=f,n.prototype._onCancel=c,n.prototype._setOnCancel=u,n.prototype._attachCancellationCallback=s,n.prototype._execute=a,J=f,ee.cancellation=!0}"monitoring"in e&&(e.monitoring&&!ee.monitoring?(ee.monitoring=!0,n.prototype._fireEvent=$):!e.monitoring&&ee.monitoring&&(ee.monitoring=!1,n.prototype._fireEvent=o))},n.prototype._fireEvent=o,n.prototype._execute=function(e,t,n){try{e(t,n)}catch(e){return e}},n.prototype._onCancel=function(){},n.prototype._setOnCancel=function(e){},n.prototype._attachCancellationCallback=function(e){},n.prototype._captureStackTrace=function(){},n.prototype._attachExtraTrace=function(){},n.prototype._clearCancellationData=function(){},n.prototype._propagateFrom=function(e,t){};var J=function(e,t){0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)},Q=function(){return!1},Y=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;R.inherits(C,Error),i.CapturedTrace=C,C.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},i=0,r=this;void 0!==r;++i)t.push(r),r=r._parent;for(i=(e=this._length=i)-1;i>=0;--i){var o=t[i].stack;void 0===n[o]&&(n[o]=i)}for(i=0;i<e;++i){var a=n[t[i].stack];if(void 0!==a&&a!==i){a>0&&(t[a-1]._parent=void 0,t[a-1]._length=1),t[i]._parent=void 0,t[i]._length=1;var s=i>0?t[i-1]:this;a<e-1?(s._parent=t[a+1],s._parent.uncycle(),s._length=s._parent._length+1):(s._parent=void 0,s._length=1);for(var c=s._length+1,u=i-2;u>=0;--u)t[u]._length=c,c++;return}}}},C.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=x(e),n=t.message,i=[t.stack],r=this;void 0!==r;)i.push(g(r.stack.split("\n"))),r=r._parent;y(i),b(i),R.notEnumerableProp(e,"stack",v(n,i)),R.notEnumerableProp(e,"__stackCleaned__",!0)}};var Z=function(){var e=/^\s*at\s*/,t=function(e,t){return"string"==typeof e?e:void 0!==t.name&&void 0!==t.message?t.toString():j(t)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,D=e,L=t;var n=Error.captureStackTrace;return Q=function(e){return N.test(e)},function(e,t){Error.stackTraceLimit+=6,n(e,t),Error.stackTraceLimit-=6}}var i=new Error;if("string"==typeof i.stack&&i.stack.split("\n")[0].indexOf("stackDetection@")>=0)return D=/@/,L=t,q=!0,function(e){e.stack=(new Error).stack};var r;try{throw new Error}catch(e){r="stack"in e}return"stack"in i||!r||"number"!=typeof Error.stackTraceLimit?(L=function(e,t){return"string"==typeof e?e:"object"!==(void 0===t?"undefined":_typeof(t))&&"function"!=typeof t||void 0===t.name||void 0===t.message?j(t):t.toString()},null):(D=e,L=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6})}();"undefined"!=typeof console&&void 0!==console.warn&&(P=function(e){console.warn(e)},R.isNode&&e.stderr.isTTY?P=function(e,t){var n=t?"[33m":"[31m";console.warn(n+e+"[0m\n")}:R.isNode||"string"!=typeof(new Error).stack||(P=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var ee={warnings:U,longStackTraces:!1,cancellation:!1,monitoring:!1};return H&&n.longStackTraces(),{longStackTraces:function(){return ee.longStackTraces},warnings:function(){return ee.warnings},cancellation:function(){return ee.cancellation},monitoring:function(){return ee.monitoring},propagateFromFunction:function(){return J},boundValueFunction:function(){return p},checkForgottenReturns:function(e,t,n,i,r){if(void 0===e&&null!==t&&V){if(void 0!==r&&r._returnedNonUndefined())return;n&&(n+=" ");var o="a promise was created in a "+n+"handler but was not returned from it";i._warn(o,!0,t)}},setBounds:function(e,t){if(E()){for(var n,i,r=e.stack.split("\n"),o=t.stack.split("\n"),a=-1,s=-1,c=0;c<r.length;++c)if(u=A(r[c])){n=u.fileName,a=u.line;break}for(c=0;c<o.length;++c){var u=A(o[c]);if(u){i=u.fileName,s=u.line;break}}a<0||s<0||!n||!i||n!==i||a>=s||(Q=function(e){if(N.test(e))return!0;var t=A(e);return!!(t&&t.fileName===n&&a<=t.line&&t.line<=s)})}},warn:m,deprecated:function(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),m(n)},CapturedTrace:C,fireDomEvent:W,fireGlobalEvent:X}}},{"./errors":12,"./util":36}],10:[function(e,t,n){t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1];return this.caught(e,function(){throw t})},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var i=arguments[1];i instanceof e&&i.suppressUnhandledRejections();return this.caught(n,function(){return i})}}},{}],11:[function(e,t,n){t.exports=function(e,t){function n(){return o(this)}function i(e,n){return r(e,n,t,t)}var r=e.reduce,o=e.all;e.prototype.each=function(e){return this.mapSeries(e)._then(n,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return r(this,e,t,t)},e.each=function(e,t){return i(e,t)._then(n,void 0,void 0,e,void 0)},e.mapSeries=i}},{}],12:[function(e,t,n){function i(e,t){function n(i){if(!(this instanceof n))return new n(i);f(this,"message","string"==typeof i?i:t),f(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return l(n,Error),n}function r(e){if(!(this instanceof r))return new r(e);f(this,"name","OperationalError"),f(this,"message",e),this.cause=e,this.isOperational=!0,e instanceof Error?(f(this,"message",e.message),f(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}var o,a,s=e("./es5"),c=s.freeze,u=e("./util"),l=u.inherits,f=u.notEnumerableProp,p=i("Warning","warning"),d=i("CancellationError","cancellation error"),h=i("TimeoutError","timeout error"),m=i("AggregateError","aggregate error");try{o=TypeError,a=RangeError}catch(e){o=i("TypeError","type error"),a=i("RangeError","range error")}for(var v="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),b=0;b<v.length;++b)"function"==typeof Array.prototype[v[b]]&&(m.prototype[v[b]]=Array.prototype[v[b]]);s.defineProperty(m.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),m.prototype.isOperational=!0;var y=0;m.prototype.toString=function(){var e=Array(4*y+1).join(" "),t="\n"+e+"AggregateError of:\n";y++,e=Array(4*y+1).join(" ");for(var n=0;n<this.length;++n){for(var i=this[n]===this?"[Circular AggregateError]":this[n]+"",r=i.split("\n"),o=0;o<r.length;++o)r[o]=e+r[o];t+=(i=r.join("\n"))+"\n"}return y--,t},l(r,Error);var g=Error.__BluebirdErrorTypes__;g||(g=c({CancellationError:d,TimeoutError:h,OperationalError:r,RejectionError:r,AggregateError:m}),s.defineProperty(Error,"__BluebirdErrorTypes__",{value:g,writable:!1,enumerable:!1,configurable:!1})),t.exports={Error:Error,TypeError:o,RangeError:a,CancellationError:g.CancellationError,OperationalError:g.OperationalError,TimeoutError:g.TimeoutError,AggregateError:g.AggregateError,Warning:p}},{"./es5":13,"./util":36}],13:[function(e,t,n){var i=function(){return void 0===this}();if(i)t.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:i,propertyIsWritable:function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!(n&&!n.writable&&!n.set)}};else{var r={}.hasOwnProperty,o={}.toString,a={}.constructor.prototype,s=function(e){var t=[];for(var n in e)r.call(e,n)&&t.push(n);return t};t.exports={isArray:function(e){try{return"[object Array]"===o.call(e)}catch(e){return!1}},keys:s,names:s,defineProperty:function(e,t,n){return e[t]=n.value,e},getDescriptor:function(e,t){return{value:e[t]}},freeze:function(e){return e},getPrototypeOf:function(e){try{return Object(e).constructor.prototype}catch(e){return a}},isES5:i,propertyIsWritable:function(){return!0}}}},{}],14:[function(e,t,n){t.exports=function(e,t){var n=e.map;e.prototype.filter=function(e,i){return n(this,e,i,t)},e.filter=function(e,i,r){return n(e,i,r,t)}}},{}],15:[function(e,t,n){t.exports=function(t,n){function i(e,t,n){this.promise=e,this.type=t,this.handler=n,this.called=!1,this.cancelPromise=null}function r(e){this.finallyHandler=e}function o(e,t){return null!=e.cancelPromise&&(arguments.length>1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function a(){return c.call(this,this.promise._target()._settledValue())}function s(e){if(!o(this,e))return f.e=e,f}function c(e){var i=this.promise,c=this.handler;if(!this.called){this.called=!0;var u=this.isFinallyHandler()?c.call(i._boundValue()):c.call(i._boundValue(),e);if(void 0!==u){i._setReturnedNonUndefined();var p=n(u,i);if(p instanceof t){if(null!=this.cancelPromise){if(p.isCancelled()){var d=new l("late cancellation observer");return i._attachExtraTrace(d),f.e=d,f}p.isPending()&&p._attachCancellationCallback(new r(this))}return p._then(a,s,void 0,this,void 0)}}}return i.isRejected()?(o(this),f.e=e,f):(o(this),e)}var u=e("./util"),l=t.CancellationError,f=u.errorObj;return i.prototype.isFinallyHandler=function(){return 0===this.type},r.prototype._resultCancelled=function(){o(this.finallyHandler)},t.prototype._passThrough=function(e,t,n,r){return"function"!=typeof e?this.then():this._then(n,r,void 0,new i(this,t,e),void 0)},t.prototype.lastly=t.prototype.finally=function(e){return this._passThrough(e,0,c,c)},t.prototype.tap=function(e){return this._passThrough(e,1,c)},i}},{"./util":36}],16:[function(e,t,n){t.exports=function(t,n,i,r,o,a){function s(e,n,i){for(var o=0;o<n.length;++o){i._pushContext();var a=p(n[o])(e);if(i._popContext(),a===f){i._pushContext();var s=t.reject(f.e);return i._popContext(),s}var c=r(a,i);if(c instanceof t)return c}return null}function c(e,n,r,o){var a=this._promise=new t(i);a._captureStackTrace(),a._setOnCancel(this),this._stack=o,this._generatorFunction=e,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"==typeof r?[r].concat(d):d,this._yieldedPromise=null}var u=e("./errors").TypeError,l=e("./util"),f=l.errorObj,p=l.tryCatch,d=[];l.inherits(c,o),c.prototype._isResolved=function(){return null===this._promise},c.prototype._cleanup=function(){this._promise=this._generator=null},c.prototype._promiseCancelled=function(){if(!this._isResolved()){var e;if(void 0!==this._generator.return)this._promise._pushContext(),e=p(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var n=new t.CancellationError("generator .return() sentinel");t.coroutine.returnSentinel=n,this._promise._attachExtraTrace(n),this._promise._pushContext(),e=p(this._generator.throw).call(this._generator,n),this._promise._popContext(),e===f&&e.e===n&&(e=null)}var i=this._promise;this._cleanup(),e===f?i._rejectCallback(e.e,!1):i.cancel()}},c.prototype._promiseFulfilled=function(e){this._yieldedPromise=null,this._promise._pushContext();var t=p(this._generator.next).call(this._generator,e);this._promise._popContext(),this._continue(t)},c.prototype._promiseRejected=function(e){this._yieldedPromise=null,this._promise._attachExtraTrace(e),this._promise._pushContext();var t=p(this._generator.throw).call(this._generator,e);this._promise._popContext(),this._continue(t)},c.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof t){var e=this._yieldedPromise;this._yieldedPromise=null,e.cancel()}},c.prototype.promise=function(){return this._promise},c.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},c.prototype._continue=function(e){var n=this._promise;if(e===f)return this._cleanup(),n._rejectCallback(e.e,!1);var i=e.value;if(!0===e.done)return this._cleanup(),n._resolveCallback(i);var o=r(i,this._promise);if(o instanceof t||null!==(o=s(o,this._yieldHandlers,this._promise))){var a=(o=o._target())._bitField;0==(50397184&a)?(this._yieldedPromise=o,o._proxy(this,null)):0!=(33554432&a)?this._promiseFulfilled(o._value()):0!=(16777216&a)?this._promiseRejected(o._reason()):this._promiseCancelled()}else this._promiseRejected(new u("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",i)+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")))},t.coroutine=function(e,t){if("function"!=typeof e)throw new u("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=Object(t).yieldHandler,i=c,r=(new Error).stack;return function(){var t=e.apply(this,arguments),o=new i(void 0,void 0,n,r),a=o.promise();return o._generator=t,o._promiseFulfilled(void 0),a}},t.coroutine.addYieldHandler=function(e){if("function"!=typeof e)throw new u("expecting a function but got "+l.classString(e));d.push(e)},t.spawn=function(e){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof e)return n("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var i=new c(e,this),r=i.promise();return i._run(t.spawn),r}}},{"./errors":12,"./util":36}],17:[function(e,t,n){t.exports=function(t,n,i,r){var o=e("./util");o.canEvaluate,o.tryCatch,o.errorObj;t.join=function(){var e,t=arguments.length-1;if(t>0&&"function"==typeof arguments[t]){e=arguments[t]}var i=[].slice.call(arguments);e&&i.pop();var r=new n(i).promise();return void 0!==e?r.spread(e):r}}},{"./util":36}],18:[function(e,t,n){t.exports=function(t,n,i,r,o,a){function s(e,t,n,i){this.constructor$(e),this._promise._captureStackTrace();var r=u();this._callback=null===r?t:r.bind(t),this._preservedValues=i===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=n>=1?[]:d,this._init$(void 0,-2)}function c(e,t,n,r){if("function"!=typeof t)return i("expecting a function but got "+l.classString(t));var o="object"===(void 0===n?"undefined":_typeof(n))&&null!==n?n.concurrency:0;return o="number"==typeof o&&isFinite(o)&&o>=1?o:0,new s(e,t,o,r).promise()}var u=t._getDomain,l=e("./util"),f=l.tryCatch,p=l.errorObj,d=[];l.inherits(s,n),s.prototype._init=function(){},s.prototype._promiseFulfilled=function(e,n){var i=this._values,o=this.length(),s=this._preservedValues,c=this._limit;if(n<0){if(n=-1*n-1,i[n]=e,c>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(c>=1&&this._inFlight>=c)return i[n]=e,this._queue.push(n),!1;null!==s&&(s[n]=e);var u=this._promise,l=this._callback,d=u._boundValue();u._pushContext();var h=f(l).call(d,e,n,o),m=u._popContext();if(a.checkForgottenReturns(h,m,null!==s?"Promise.filter":"Promise.map",u),h===p)return this._reject(h.e),!0;var v=r(h,this._promise);if(v instanceof t){var b=(v=v._target())._bitField;if(0==(50397184&b))return c>=1&&this._inFlight++,i[n]=v,v._proxy(this,-1*(n+1)),!1;if(0==(33554432&b))return 0!=(16777216&b)?(this._reject(v._reason()),!0):(this._cancel(),!0);h=v._value()}i[n]=h}return++this._totalResolved>=o&&(null!==s?this._filter(i,s):this._resolve(i),!0)},s.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,n=this._values;e.length>0&&this._inFlight<t;){if(this._isResolved())return;var i=e.pop();this._promiseFulfilled(n[i],i)}},s.prototype._filter=function(e,t){for(var n=t.length,i=new Array(n),r=0,o=0;o<n;++o)e[o]&&(i[r++]=t[o]);i.length=r,this._resolve(i)},s.prototype.preservedValues=function(){return this._preservedValues},t.prototype.map=function(e,t){return c(this,e,t,null)},t.map=function(e,t,n,i){return c(e,t,n,i)}}},{"./util":36}],19:[function(e,t,n){t.exports=function(t,n,i,r,o){var a=e("./util"),s=a.tryCatch;t.method=function(e){if("function"!=typeof e)throw new t.TypeError("expecting a function but got "+a.classString(e));return function(){var i=new t(n);i._captureStackTrace(),i._pushContext();var r=s(e).apply(this,arguments),a=i._popContext();return o.checkForgottenReturns(r,a,"Promise.method",i),i._resolveFromSyncValue(r),i}},t.attempt=t.try=function(e){if("function"!=typeof e)return r("expecting a function but got "+a.classString(e));var i=new t(n);i._captureStackTrace(),i._pushContext();var c;if(arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],l=arguments[2];c=a.isArray(u)?s(e).apply(l,u):s(e).call(l,u)}else c=s(e)();var f=i._popContext();return o.checkForgottenReturns(c,f,"Promise.try",i),i._resolveFromSyncValue(c),i},t.prototype._resolveFromSyncValue=function(e){e===a.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(e,t,n){function i(e){return e instanceof Error&&c.getPrototypeOf(e)===Error.prototype}function r(e){var t;if(i(e)){(t=new s(e)).name=e.name,t.message=e.message,t.stack=e.stack;for(var n=c.keys(e),r=0;r<n.length;++r){var a=n[r];u.test(a)||(t[a]=e[a])}return t}return o.markAsOriginatingFromRejection(e),e}var o=e("./util"),a=o.maybeWrapAsError,s=e("./errors").OperationalError,c=e("./es5"),u=/^(?:name|message|stack|cause)$/;t.exports=function(e,t){return function(n,i){if(null!==e){if(n){var o=r(a(n));e._attachExtraTrace(o),e._reject(o)}else if(t){var s=[].slice.call(arguments,1);e._fulfill(s)}else e._fulfill(i);e=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(e,t,n){t.exports=function(t){function n(e,t){var n=this;if(!o.isArray(e))return i.call(n,e,t);var r=s(t).apply(n._boundValue(),[null].concat(e));r===c&&a.throwLater(r.e)}function i(e,t){var n=this._boundValue(),i=void 0===e?s(t).call(n,null):s(t).call(n,null,e);i===c&&a.throwLater(i.e)}function r(e,t){var n=this;if(!e){var i=new Error(e+"");i.cause=e,e=i}var r=s(t).call(n._boundValue(),e);r===c&&a.throwLater(r.e)}var o=e("./util"),a=t._async,s=o.tryCatch,c=o.errorObj;t.prototype.asCallback=t.prototype.nodeify=function(e,t){if("function"==typeof e){var o=i;void 0!==t&&Object(t).spread&&(o=n),this._then(o,r,void 0,this,e)}return this}}},{"./util":36}],22:[function(t,n,i){n.exports=function(){function n(){}function i(e,t){if("function"!=typeof t)throw new y("expecting a function but got "+d.classString(t));if(e.constructor!==r)throw new y("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n")}function r(e){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,e!==_&&(i(this,e),this._resolveFromExecutor(e)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function o(e){this.promise._resolveCallback(e)}function a(e){this.promise._rejectCallback(e,!1)}function s(e){var t=new r(_);t._fulfillmentHandler0=e,t._rejectionHandler0=e,t._promise0=e,t._receiver0=e}var c,u=function(){return new y("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},l=function(){return new r.PromiseInspection(this._target())},f=function(e){return r.reject(new y(e))},p={},d=t("./util");c=d.isNode?function(){var t=e.domain;return void 0===t&&(t=null),t}:function(){return null},d.notEnumerableProp(r,"_getDomain",c);var h=t("./es5"),m=t("./async"),v=new m;h.defineProperty(r,"_async",{value:v});var b=t("./errors"),y=r.TypeError=b.TypeError;r.RangeError=b.RangeError;var g=r.CancellationError=b.CancellationError;r.TimeoutError=b.TimeoutError,r.OperationalError=b.OperationalError,r.RejectionError=b.OperationalError,r.AggregateError=b.AggregateError;var _=function(){},x={},w={},k=t("./thenables")(r,_),j=t("./promise_array")(r,_,k,f,n),S=t("./context")(r),E=S.create,A=t("./debuggability")(r,S),C=(A.CapturedTrace,t("./finally")(r,k)),M=t("./catch_filter")(w),T=t("./nodeback"),P=d.errorObj,F=d.tryCatch;return r.prototype.toString=function(){return"[object Promise]"},r.prototype.caught=r.prototype.catch=function(e){var t=arguments.length;if(t>1){var n,i=new Array(t-1),r=0;for(n=0;n<t-1;++n){var o=arguments[n];if(!d.isObject(o))return f("expecting an object but got "+d.classString(o));i[r++]=o}return i.length=r,e=arguments[n],this.then(void 0,M(i,e,this))}return this.then(void 0,e)},r.prototype.reflect=function(){return this._then(l,l,void 0,this,void 0)},r.prototype.then=function(e,t){if(A.warnings()&&arguments.length>0&&"function"!=typeof e&&"function"!=typeof t){var n=".then() only accepts functions but was passed: "+d.classString(e);arguments.length>1&&(n+=", "+d.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},r.prototype.done=function(e,t){this._then(e,t,void 0,void 0,void 0)._setIsFinal()},r.prototype.spread=function(e){return"function"!=typeof e?f("expecting a function but got "+d.classString(e)):this.all()._then(e,void 0,void 0,x,void 0)},r.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},r.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new j(this).promise()},r.prototype.error=function(e){return this.caught(d.originatesFromRejection,e)},r.is=function(e){return e instanceof r},r.fromNode=r.fromCallback=function(e){var t=new r(_);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,i=F(e)(T(t,n));return i===P&&t._rejectCallback(i.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},r.all=function(e){return new j(e).promise()},r.cast=function(e){var t=k(e);return t instanceof r||((t=new r(_))._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},r.resolve=r.fulfilled=r.cast,r.reject=r.rejected=function(e){var t=new r(_);return t._captureStackTrace(),t._rejectCallback(e,!0),t},r.setScheduler=function(e){if("function"!=typeof e)throw new y("expecting a function but got "+d.classString(e));var t=v._schedule;return v._schedule=e,t},r.prototype._then=function(e,t,n,i,o){var a=void 0!==o,s=a?o:new r(_),u=this._target(),l=u._bitField;a||(s._propagateFrom(this,3),s._captureStackTrace(),void 0===i&&0!=(2097152&this._bitField)&&(i=0!=(50397184&l)?this._boundValue():u===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,s));var f=c();if(0!=(50397184&l)){var p,d,h=u._settlePromiseCtx;0!=(33554432&l)?(d=u._rejectionHandler0,p=e):0!=(16777216&l)?(d=u._fulfillmentHandler0,p=t,u._unsetRejectionIsUnhandled()):(h=u._settlePromiseLateCancellationObserver,d=new g("late cancellation observer"),u._attachExtraTrace(d),p=t),v.invoke(h,u,{handler:null===f?p:"function"==typeof p&&f.bind(p),promise:s,receiver:i,value:d})}else u._addCallbacks(e,t,s,i,f);return s},r.prototype._length=function(){return 65535&this._bitField},r.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},r.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},r.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},r.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},r.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},r.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},r.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},r.prototype._isFinal=function(){return(4194304&this._bitField)>0},r.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},r.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},r.prototype._setAsyncGuaranteed=function(){this._bitField=134217728|this._bitField},r.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==p)return void 0===t&&this._isBound()?this._boundValue():t},r.prototype._promiseAt=function(e){return this[4*e-4+2]},r.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},r.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},r.prototype._boundValue=function(){},r.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,n=e._rejectionHandler0,i=e._promise0,r=e._receiverAt(0);void 0===r&&(r=p),this._addCallbacks(t,n,i,r,null)},r.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),i=e._rejectionHandlerAt(t),r=e._promiseAt(t),o=e._receiverAt(t);void 0===o&&(o=p),this._addCallbacks(n,i,r,o,null)},r.prototype._addCallbacks=function(e,t,n,i,r){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=i,"function"==typeof e&&(this._fulfillmentHandler0=null===r?e:r.bind(e)),"function"==typeof t&&(this._rejectionHandler0=null===r?t:r.bind(t));else{var a=4*o-4;this[a+2]=n,this[a+3]=i,"function"==typeof e&&(this[a+0]=null===r?e:r.bind(e)),"function"==typeof t&&(this[a+1]=null===r?t:r.bind(t))}return this._setLength(o+1),o},r.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},r.prototype._resolveCallback=function(e,t){if(0==(117506048&this._bitField)){if(e===this)return this._rejectCallback(u(),!1);var n=k(e,this);if(!(n instanceof r))return this._fulfill(e);t&&this._propagateFrom(n,2);var i=n._target(),o=i._bitField;if(0==(50397184&o)){var a=this._length();a>0&&i._migrateCallback0(this);for(var s=1;s<a;++s)i._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(i)}else if(0!=(33554432&o))this._fulfill(i._value());else if(0!=(16777216&o))this._reject(i._reason());else{var c=new g("late cancellation observer");i._attachExtraTrace(c),this._reject(c)}}},r.prototype._rejectCallback=function(e,t,n){var i=d.ensureErrorObject(e),r=i===e;if(!r&&!n&&A.warnings()){var o="a promise was rejected with a non-error: "+d.classString(e);this._warn(o,!0)}this._attachExtraTrace(i,!!t&&r),this._reject(e)},r.prototype._resolveFromExecutor=function(e){var t=this;this._captureStackTrace(),this._pushContext();var n=!0,i=this._execute(e,function(e){t._resolveCallback(e)},function(e){t._rejectCallback(e,n)});n=!1,this._popContext(),void 0!==i&&t._rejectCallback(i,!0)},r.prototype._settlePromiseFromHandler=function(e,t,n,i){var r=i._bitField;if(0==(65536&r)){i._pushContext();var o;t===x?n&&"number"==typeof n.length?o=F(e).apply(this._boundValue(),n):(o=P).e=new y("cannot .spread() a non-array: "+d.classString(n)):o=F(e).call(t,n);var a=i._popContext();if(0==(65536&(r=i._bitField)))if(o===w)i._reject(n);else if(o===P||o===i){var s=o===i?u():o.e;i._rejectCallback(s,!1)}else A.checkForgottenReturns(o,a,"",i,this),i._resolveCallback(o)}},r.prototype._target=function(){for(var e=this;e._isFollowing();)e=e._followee();return e},r.prototype._followee=function(){return this._rejectionHandler0},r.prototype._setFollowee=function(e){this._rejectionHandler0=e},r.prototype._settlePromise=function(e,t,i,o){var a=e instanceof r,s=this._bitField,c=0!=(134217728&s);0!=(65536&s)?(a&&e._invokeInternalOnCancel(),i instanceof C&&i.isFinallyHandler()?(i.cancelPromise=e,F(t).call(i,o)===P&&e._reject(P.e)):t===l?e._fulfill(l.call(i)):i instanceof n?i._promiseCancelled(e):a||e instanceof j?e._cancel():i.cancel()):"function"==typeof t?a?(c&&e._setAsyncGuaranteed(),this._settlePromiseFromHandler(t,i,o,e)):t.call(i,o,e):i instanceof n?i._isResolved()||(0!=(33554432&s)?i._promiseFulfilled(o,e):i._promiseRejected(o,e)):a&&(c&&e._setAsyncGuaranteed(),0!=(33554432&s)?e._fulfill(o):e._reject(o))},r.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler,n=e.promise,i=e.receiver,o=e.value;"function"==typeof t?n instanceof r?this._settlePromiseFromHandler(t,i,o,n):t.call(i,o,n):n instanceof r&&n._reject(o)},r.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)},r.prototype._settlePromise0=function(e,t,n){var i=this._promise0,r=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(i,e,r,t)},r.prototype._clearCallbackDataAtIndex=function(e){var t=4*e-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=void 0},r.prototype._fulfill=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(e===this){var n=u();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(0!=(134217728&t)?this._settlePromises():v.settlePromises(this))}},r.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return v.fatalError(e,d.isNode);(65535&t)>0?0!=(134217728&t)?this._settlePromises():v.settlePromises(this):this._ensurePossibleRejectionHandled()}},r.prototype._fulfillPromises=function(e,t){for(var n=1;n<e;n++){var i=this._fulfillmentHandlerAt(n),r=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(r,i,o,t)}},r.prototype._rejectPromises=function(e,t){for(var n=1;n<e;n++){var i=this._rejectionHandlerAt(n),r=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(r,i,o,t)}},r.prototype._settlePromises=function(){var e=this._bitField,t=65535&e;if(t>0){if(0!=(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var i=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,i,e),this._fulfillPromises(t,i)}this._setLength(0)}this._clearCancellationData()},r.prototype._settledValue=function(){var e=this._bitField;return 0!=(33554432&e)?this._rejectionHandler0:0!=(16777216&e)?this._fulfillmentHandler0:void 0},r.defer=r.pending=function(){return A.deprecated("Promise.defer","new Promise"),{promise:new r(_),resolve:o,reject:a}},d.notEnumerableProp(r,"_makeSelfResolutionError",u),t("./method")(r,_,k,f,A),t("./bind")(r,_,k,A),t("./cancel")(r,j,f,A),t("./direct_resolve")(r),t("./synchronous_inspection")(r),t("./join")(r,j,k,_,A),r.Promise=r,t("./map.js")(r,j,f,k,_,A),t("./using.js")(r,f,k,E,_,A),t("./timers.js")(r,_,A),t("./generators.js")(r,f,_,k,n,A),t("./nodeify.js")(r),t("./call_get.js")(r),t("./props.js")(r,j,k,f),t("./race.js")(r,_,k,f),t("./reduce.js")(r,j,f,k,_,A),t("./settle.js")(r,j,A),t("./some.js")(r,j,f),t("./promisify.js")(r,_),t("./any.js")(r),t("./each.js")(r,_),t("./filter.js")(r,_),d.toFastProperties(r),d.toFastProperties(r.prototype),s({a:1}),s({b:2}),s({c:3}),s(1),s(function(){}),s(void 0),s(!1),s(new r(_)),A.setBounds(m.firstLineError,d.lastLineError),r}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(e,t,n){t.exports=function(t,n,i,r,o){function a(e){switch(e){case-2:return[];case-3:return{}}}function s(e){var i=this._promise=new t(n);e instanceof t&&i._propagateFrom(e,3),i._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var c=e("./util");c.isArray;return c.inherits(s,o),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function e(n,o){var s=i(this._values,this._promise);if(s instanceof t){var u=(s=s._target())._bitField;if(this._values=s,0==(50397184&u))return this._promise._setAsyncGuaranteed(),s._then(e,this._reject,void 0,this,o);if(0==(33554432&u))return 0!=(16777216&u)?this._reject(s._reason()):this._cancel();s=s._value()}if(null!==(s=c.asArray(s)))0!==s.length?this._iterate(s):-5===o?this._resolveEmptyArray():this._resolve(a(o));else{var l=r("expecting an array or an iterable object but got "+c.classString(s)).reason();this._promise._rejectCallback(l,!1)}},s.prototype._iterate=function(e){var n=this.getActualLength(e.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var r=this._promise,o=!1,a=null,s=0;s<n;++s){var c=i(e[s],r);a=c instanceof t?(c=c._target())._bitField:null,o?null!==a&&c.suppressUnhandledRejections():null!==a?0==(50397184&a)?(c._proxy(this,s),this._values[s]=c):o=0!=(33554432&a)?this._promiseFulfilled(c._value(),s):0!=(16777216&a)?this._promiseRejected(c._reason(),s):this._promiseCancelled(s):o=this._promiseFulfilled(c,s)}o||r._setAsyncGuaranteed()},s.prototype._isResolved=function(){return null===this._values},s.prototype._resolve=function(e){this._values=null,this._promise._fulfill(e)},s.prototype._cancel=function(){!this._isResolved()&&this._promise.isCancellable()&&(this._values=null,this._promise._cancel())},s.prototype._reject=function(e){this._values=null,this._promise._rejectCallback(e,!1)},s.prototype._promiseFulfilled=function(e,t){return this._values[t]=e,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var n=0;n<e.length;++n)e[n]instanceof t&&e[n].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(e){return e},s}},{"./util":36}],24:[function(e,t,n){t.exports=function(t,n){function i(e){return!_.test(e)}function r(e){try{return!0===e.__isPromisified__}catch(e){return!1}}function o(e,t,n){var i=p.getDataPropertyOrDefault(e,t+n,y);return!!i&&r(i)}function a(e,t,n){for(var i=0;i<e.length;i+=2){var r=e[i];if(n.test(r))for(var o=r.replace(n,""),a=0;a<e.length;a+=2)if(e[a]===o)throw new b("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",t))}}function s(e,t,n,i){for(var s=p.inheritedDataKeys(e),c=[],u=0;u<s.length;++u){var l=s[u],f=e[l],d=i===x||x(l,f,e);"function"!=typeof f||r(f)||o(e,l,t)||!i(l,f,e,d)||c.push(l,f)}return a(c,t,n),c}function c(e,t,n,i,r){for(var o=new RegExp(w(t)+"$"),a=s(e,t,o,n),c=0,u=a.length;c<u;c+=2){var l=a[c],d=a[c+1],h=l+t;if(i===k)e[h]=k(l,f,l,d,t,r);else{var m=i(d,function(){return k(l,f,l,d,t,r)});p.notEnumerableProp(m,"__isPromisified__",!0),e[h]=m}}return p.toFastProperties(e),e}function u(e,t,n){return k(e,t,void 0,e,null,n)}var l,f={},p=e("./util"),d=e("./nodeback"),h=p.withAppended,m=p.maybeWrapAsError,v=p.canEvaluate,b=e("./errors").TypeError,y={__isPromisified__:!0},g=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],_=new RegExp("^(?:"+g.join("|")+")$"),x=function(e){return p.isIdentifier(e)&&"_"!==e.charAt(0)&&"constructor"!==e},w=function(e){return e.replace(/([$])/,"\\$")},k=v?l:function(e,i,r,o,a,s){function c(){var r=i;i===f&&(r=this);var o=new t(n);o._captureStackTrace();var a="string"==typeof l&&this!==u?this[l]:e,c=d(o,s);try{a.apply(r,h(arguments,c))}catch(e){o._rejectCallback(m(e),!0,!0)}return o._isFateSealed()||o._setAsyncGuaranteed(),o}var u=function(){return this}(),l=e;return"string"==typeof l&&(e=o),p.notEnumerableProp(c,"__isPromisified__",!0),c};t.promisify=function(e,t){if("function"!=typeof e)throw new b("expecting a function but got "+p.classString(e));if(r(e))return e;var n=u(e,void 0===(t=Object(t)).context?f:t.context,!!t.multiArgs);return p.copyDescriptors(e,n,i),n},t.promisifyAll=function(e,t){if("function"!=typeof e&&"object"!==(void 0===e?"undefined":_typeof(e)))throw new b("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");var n=!!(t=Object(t)).multiArgs,i=t.suffix;"string"!=typeof i&&(i="Async");var r=t.filter;"function"!=typeof r&&(r=x);var o=t.promisifier;if("function"!=typeof o&&(o=k),!p.isIdentifier(i))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var a=p.inheritedDataKeys(e),s=0;s<a.length;++s){var u=e[a[s]];"constructor"!==a[s]&&p.isClass(u)&&(c(u.prototype,i,r,o,n),c(u,i,r,o,n))}return c(e,i,r,o,n)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(e,t,n){t.exports=function(t,n,i,r){function o(e){var t,n=!1;if(void 0!==s&&e instanceof s)t=f(e),n=!0;else{var i=l.keys(e),r=i.length;t=new Array(2*r);for(var o=0;o<r;++o){var a=i[o];t[o]=e[a],t[o+r]=a}}this.constructor$(t),this._isMap=n,this._init$(void 0,-3)}function a(e){var n,a=i(e);return u(a)?(n=a instanceof t?a._then(t.props,void 0,void 0,void 0,void 0):new o(a).promise(),a instanceof t&&n._propagateFrom(a,2),n):r("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}var s,c=e("./util"),u=c.isObject,l=e("./es5");"function"==typeof Map&&(s=Map);var f=function(){function e(e,i){this[t]=e,this[t+n]=i,t++}var t=0,n=0;return function(i){n=i.size,t=0;var r=new Array(2*i.size);return i.forEach(e,r),r}}(),p=function(e){for(var t=new s,n=e.length/2|0,i=0;i<n;++i){var r=e[n+i],o=e[i];t.set(r,o)}return t};c.inherits(o,n),o.prototype._init=function(){},o.prototype._promiseFulfilled=function(e,t){if(this._values[t]=e,++this._totalResolved>=this._length){var n;if(this._isMap)n=p(this._values);else{n={};for(var i=this.length(),r=0,o=this.length();r<o;++r)n[this._values[r+i]]=this._values[r]}return this._resolve(n),!0}return!1},o.prototype.shouldCopyValues=function(){return!1},o.prototype.getActualLength=function(e){return e>>1},t.prototype.props=function(){return a(this)},t.props=function(e){return a(e)}}},{"./es5":13,"./util":36}],26:[function(e,t,n){function i(e,t,n,i,r){for(var o=0;o<r;++o)n[o+i]=e[o+t],e[o+t]=void 0}function r(e){this._capacity=e,this._length=0,this._front=0}r.prototype._willBeOverCapacity=function(e){return this._capacity<e},r.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1),this[this._front+t&this._capacity-1]=e,this._length=t+1},r.prototype._unshiftOne=function(e){var t=this._capacity;this._checkCapacity(this.length()+1);var n=(this._front-1&t-1^t)-t;this[n]=e,this._front=n,this._length=this.length()+1},r.prototype.unshift=function(e,t,n){this._unshiftOne(n),this._unshiftOne(t),this._unshiftOne(e)},r.prototype.push=function(e,t,n){var i=this.length()+3;if(this._willBeOverCapacity(i))return this._pushOne(e),this._pushOne(t),void this._pushOne(n);var r=this._front+i-3;this._checkCapacity(i);var o=this._capacity-1;this[r+0&o]=e,this[r+1&o]=t,this[r+2&o]=n,this._length=i},r.prototype.shift=function(){var e=this._front,t=this[e];return this[e]=void 0,this._front=e+1&this._capacity-1,this._length--,t},r.prototype.length=function(){return this._length},r.prototype._checkCapacity=function(e){this._capacity<e&&this._resizeTo(this._capacity<<1)},r.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e,i(this,0,this,t,this._front+this._length&t-1)},t.exports=r},{}],27:[function(e,t,n){t.exports=function(t,n,i,r){function o(e,o){var c=i(e);if(c instanceof t)return s(c);if(null===(e=a.asArray(e)))return r("expecting an array or an iterable object but got "+a.classString(e));var u=new t(n);void 0!==o&&u._propagateFrom(o,3);for(var l=u._fulfill,f=u._reject,p=0,d=e.length;p<d;++p){var h=e[p];(void 0!==h||p in e)&&t.cast(h)._then(l,f,void 0,u,null)}return u}var a=e("./util"),s=function(e){return e.then(function(t){return o(t,e)})};t.race=function(e){return o(e,void 0)},t.prototype.race=function(){return o(this,void 0)}}},{"./util":36}],28:[function(e,t,n){t.exports=function(t,n,i,r,o,a){function s(e,n,i,r){this.constructor$(e);var a=p();this._fn=null===a?n:a.bind(n),void 0!==i&&(i=t.resolve(i))._attachCancellationCallback(this),this._initialValue=i,this._currentCancellable=null,this._eachValues=r===o?[]:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function c(e,t){this.isFulfilled()?t._resolve(e):t._reject(e)}function u(e,t,n,r){return"function"!=typeof t?i("expecting a function but got "+d.classString(t)):new s(e,t,n,r).promise()}function l(e){this.accum=e,this.array._gotAccum(e);var n=r(this.value,this.array._promise);return n instanceof t?(this.array._currentCancellable=n,n._then(f,void 0,void 0,this,void 0)):f.call(this,n)}function f(e){var n=this.array,i=n._promise,r=h(n._fn);i._pushContext();var o;(o=void 0!==n._eachValues?r.call(i._boundValue(),e,this.index,this.length):r.call(i._boundValue(),this.accum,e,this.index,this.length))instanceof t&&(n._currentCancellable=o);var s=i._popContext();return a.checkForgottenReturns(o,s,void 0!==n._eachValues?"Promise.each":"Promise.reduce",i),o}var p=t._getDomain,d=e("./util"),h=d.tryCatch;d.inherits(s,n),s.prototype._gotAccum=function(e){void 0!==this._eachValues&&e!==o&&this._eachValues.push(e)},s.prototype._eachComplete=function(e){return this._eachValues.push(e),this._eachValues},s.prototype._init=function(){},s.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},s.prototype.shouldCopyValues=function(){return!1},s.prototype._resolve=function(e){this._promise._resolveCallback(e),this._values=null},s.prototype._resultCancelled=function(e){if(e===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof t&&this._currentCancellable.cancel(),this._initialValue instanceof t&&this._initialValue.cancel())},s.prototype._iterate=function(e){this._values=e;var n,i,r=e.length;if(void 0!==this._initialValue?(n=this._initialValue,i=0):(n=t.resolve(e[0]),i=1),this._currentCancellable=n,!n.isRejected())for(;i<r;++i){var o={accum:null,value:e[i],index:i,length:r,array:this};n=n._then(l,void 0,void 0,o,void 0)}void 0!==this._eachValues&&(n=n._then(this._eachComplete,void 0,void 0,this,void 0)),n._then(c,c,void 0,n,this)},t.prototype.reduce=function(e,t){return u(this,e,t,null)},t.reduce=function(e,t,n,i){return u(e,t,n,i)}}},{"./util":36}],29:[function(t,n,r){var o,a=t("./util");if(a.isNode&&"undefined"==typeof MutationObserver){var s=i.setImmediate,c=e.nextTick;o=a.isRecentNode?function(e){s.call(i,e)}:function(t){c.call(e,t)}}else o="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&window.navigator.standalone?"undefined"!=typeof setImmediate?function(e){setImmediate(e)}:"undefined"!=typeof setTimeout?function(e){setTimeout(e,0)}:function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}:function(){var e=document.createElement("div"),t={attributes:!0},n=!1,i=document.createElement("div");new MutationObserver(function(){e.classList.toggle("foo"),n=!1}).observe(i,t);var r=function(){n||(n=!0,i.classList.toggle("foo"))};return function(n){var i=new MutationObserver(function(){i.disconnect(),n()});i.observe(e,t),r()}}();n.exports=o},{"./util":36}],30:[function(e,t,n){t.exports=function(t,n,i){function r(e){this.constructor$(e)}var o=t.PromiseInspection;e("./util").inherits(r,n),r.prototype._promiseResolved=function(e,t){return this._values[e]=t,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},r.prototype._promiseFulfilled=function(e,t){var n=new o;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},r.prototype._promiseRejected=function(e,t){var n=new o;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},t.settle=function(e){return i.deprecated(".settle()",".reflect()"),new r(e).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(e,t,n){t.exports=function(t,n,i){function r(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function o(e,t){if((0|t)!==t||t<0)return i("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new r(e),o=n.promise();return n.setHowMany(t),n.init(),o}var a=e("./util"),s=e("./errors").RangeError,c=e("./errors").AggregateError,u=a.isArray,l={};a.inherits(r,n),r.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var e=u(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},r.prototype.init=function(){this._initialized=!0,this._init()},r.prototype.setUnwrap=function(){this._unwrap=!0},r.prototype.howMany=function(){return this._howMany},r.prototype.setHowMany=function(e){this._howMany=e},r.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},r.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},r.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(l),this._checkOutcome())},r.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new c,t=this.length();t<this._values.length;++t)this._values[t]!==l&&e.push(this._values[t]);return e.length>0?this._reject(e):this._cancel(),!0}return!1},r.prototype._fulfilled=function(){return this._totalResolved},r.prototype._rejected=function(){return this._values.length-this.length()},r.prototype._addRejected=function(e){this._values.push(e)},r.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},r.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},r.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new s(t)},r.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(e,t){return o(e,t)},t.prototype.some=function(e){return o(this,e)},t._SomePromiseArray=r}},{"./errors":12,"./util":36}],32:[function(e,t,n){t.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},o=t.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},a=t.prototype.isPending=function(){return 0==(50397184&this._bitField)},s=t.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};t.prototype.isCancelled=e.prototype._isCancelled=function(){return 65536==(65536&this._bitField)},e.prototype.isCancelled=function(){return this._target()._isCancelled()},e.prototype.isPending=function(){return a.call(this._target())},e.prototype.isRejected=function(){return o.call(this._target())},e.prototype.isFulfilled=function(){return r.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),i.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],33:[function(e,t,n){t.exports=function(t,n){function i(e){return e.then}function r(e){try{return i(e)}catch(e){return c.e=e,c}}function o(e){return l.call(e,"_promise0")}function a(e,i,r){var o=new t(n),a=o;r&&r._pushContext(),o._captureStackTrace(),r&&r._popContext();var u=!0,l=s.tryCatch(i).call(e,function(e){o&&(o._resolveCallback(e),o=null)},function(e){o&&(o._rejectCallback(e,u,!0),o=null)});return u=!1,o&&l===c&&(o._rejectCallback(l.e,!0,!0),o=null),a}var s=e("./util"),c=s.errorObj,u=s.isObject,l={}.hasOwnProperty;return function(e,i){if(u(e)){if(e instanceof t)return e;var s=r(e);if(s===c)return i&&i._pushContext(),l=t.reject(s.e),i&&i._popContext(),l;if("function"==typeof s){if(o(e)){var l=new t(n);return e._then(l._fulfill,l._reject,void 0,l,null),l}return a(e,s,i)}}return e}}},{"./util":36}],34:[function(e,t,n){t.exports=function(t,n,i){function r(e){this.handle=e}function o(e){return clearTimeout(this.handle),e}function a(e){throw clearTimeout(this.handle),e}var s=e("./util"),c=t.TimeoutError;r.prototype._resultCancelled=function(){clearTimeout(this.handle)};var u=function(e){return l(+this).thenReturn(e)},l=t.delay=function(e,o){var a,s;return void 0!==o?(a=t.resolve(o)._then(u,null,null,e,void 0),i.cancellation()&&o instanceof t&&a._setOnCancel(o)):(a=new t(n),s=setTimeout(function(){a._fulfill()},+e),i.cancellation()&&a._setOnCancel(new r(s))),a._setAsyncGuaranteed(),a};t.prototype.delay=function(e){return l(e,this)};var f=function(e,t,n){var i;i="string"!=typeof t?t instanceof Error?t:new c("operation timed out"):new c(t),s.markAsOriginatingFromRejection(i),e._attachExtraTrace(i),e._reject(i),null!=n&&n.cancel()};t.prototype.timeout=function(e,t){e=+e;var n,s,c=new r(setTimeout(function(){n.isPending()&&f(n,t,s)},e));return i.cancellation()?(s=this.then(),(n=s._then(o,a,void 0,c,void 0))._setOnCancel(c)):n=this._then(o,a,void 0,c,void 0),n}}},{"./util":36}],35:[function(e,t,n){t.exports=function(t,n,i,r,o,a){function s(e){setTimeout(function(){throw e},0)}function c(e){var t=i(e);return t!==e&&"function"==typeof e._isDisposable&&"function"==typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}function u(e,n){function r(){if(a>=u)return l._fulfill();var o=c(e[a++]);if(o instanceof t&&o._isDisposable()){try{o=i(o._getDisposer().tryDispose(n),e.promise)}catch(e){return s(e)}if(o instanceof t)return o._then(r,s,null,null,null)}r()}var a=0,u=e.length,l=new t(o);return r(),l}function l(e,t,n){this._data=e,this._promise=t,this._context=n}function f(e,t,n){this.constructor$(e,t,n)}function p(e){return l.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function d(e){this.length=e,this.promise=null,this[e-1]=null}var h=e("./util"),m=e("./errors").TypeError,v=e("./util").inherits,b=h.errorObj,y=h.tryCatch;l.prototype.data=function(){return this._data},l.prototype.promise=function(){return this._promise},l.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():null},l.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;void 0!==n&&n._pushContext();var i=null!==t?this.doDispose(t,e):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,i},l.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},v(f,l),f.prototype.doDispose=function(e,t){return this.data().call(e,e,t)},d.prototype._resultCancelled=function(){for(var e=this.length,n=0;n<e;++n){var i=this[n];i instanceof t&&i.cancel()}},t.using=function(){var e=arguments.length;if(e<2)return n("you must pass at least 2 arguments to Promise.using");var r=arguments[e-1];if("function"!=typeof r)return n("expecting a function but got "+h.classString(r));var o,s=!0;2===e&&Array.isArray(arguments[0])?(e=(o=arguments[0]).length,s=!1):(o=arguments,e--);for(var c=new d(e),f=0;f<e;++f){var m=o[f];if(l.isDisposer(m)){var v=m;(m=m.promise())._setDisposable(v)}else{var g=i(m);g instanceof t&&(m=g._then(p,null,null,{resources:c,index:f},void 0))}c[f]=m}for(var _=new Array(c.length),f=0;f<_.length;++f)_[f]=t.resolve(c[f]).reflect();var x=t.all(_).then(function(e){for(var t=0;t<e.length;++t){var n=e[t];if(n.isRejected())return b.e=n.error(),b;if(!n.isFulfilled())return void x.cancel();e[t]=n.value()}w._pushContext(),r=y(r);var i=s?r.apply(void 0,e):r(e),o=w._popContext();return a.checkForgottenReturns(i,o,"Promise.using",w),i}),w=x.lastly(function(){var e=new t.PromiseInspection(x);return u(c,e)});return c.promise=w,w._setOnCancel(c),w},t.prototype._setDisposable=function(e){this._bitField=131072|this._bitField,this._disposer=e},t.prototype._isDisposable=function(){return(131072&this._bitField)>0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},t.prototype.disposer=function(e){if("function"==typeof e)return new f(e,this,r());throw new m}}},{"./errors":12,"./util":36}],36:[function(t,n,r){function o(){try{var e=M;return M=null,e.apply(this,arguments)}catch(e){return C.e=e,C}}function a(e){return M=e,o}function s(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function c(e){return"function"==typeof e||"object"===(void 0===e?"undefined":_typeof(e))&&null!==e}function u(e){return s(e)?new Error(y(e)):e}function l(e,t){var n,i=e.length,r=new Array(i+1);for(n=0;n<i;++n)r[n]=e[n];return r[n]=t,r}function f(e,t,n){if(!E.isES5)return{}.hasOwnProperty.call(e,t)?e[t]:void 0;var i=Object.getOwnPropertyDescriptor(e,t);return null!=i?null==i.get&&null==i.set?i.value:n:void 0}function p(e,t,n){if(s(e))return e;var i={value:n,configurable:!0,enumerable:!1,writable:!0};return E.defineProperty(e,t,i),e}function d(e){throw e}function h(e){try{if("function"==typeof e){var t=E.names(e.prototype),n=E.isES5&&t.length>1,i=t.length>0&&!(1===t.length&&"constructor"===t[0]),r=I.test(e+"")&&E.names(e).length>0;if(n||i||r)return!0}return!1}catch(e){return!1}}function m(e){function t(){}t.prototype=e;for(var n=8;n--;)new t;return e}function v(e){return B.test(e)}function b(e,t,n){for(var i=new Array(e),r=0;r<e;++r)i[r]=t+r+n;return i}function y(e){try{return e+""}catch(e){return"[no string representation]"}}function g(e){return null!==e&&"object"===(void 0===e?"undefined":_typeof(e))&&"string"==typeof e.message&&"string"==typeof e.name}function _(e){try{p(e,"isOperational",!0)}catch(e){}}function x(e){return null!=e&&(e instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===e.isOperational)}function w(e){return g(e)&&E.propertyIsWritable(e,"stack")}function k(e){return{}.toString.call(e)}function j(e,t,n){for(var i=E.names(e),r=0;r<i.length;++r){var o=i[r];if(n(o))try{E.defineProperty(t,o,E.getDescriptor(e,o))}catch(e){}}}function S(t,n){return D?e.env[t]:n}var E=t("./es5"),A="undefined"==typeof navigator,C={e:{}},M,T="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i?i:void 0!==this?this:null,P=function(e,t){function n(){this.constructor=e,this.constructor$=t;for(var n in t.prototype)i.call(t.prototype,n)&&"$"!==n.charAt(n.length-1)&&(this[n+"$"]=t.prototype[n])}var i={}.hasOwnProperty;return n.prototype=t.prototype,e.prototype=new n,e.prototype},F=function(){var e=[Array.prototype,Object.prototype,Function.prototype],t=function(t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1};if(E.isES5){var n=Object.getOwnPropertyNames;return function(e){for(var i=[],r=Object.create(null);null!=e&&!t(e);){var o;try{o=n(e)}catch(e){return i}for(var a=0;a<o.length;++a){var s=o[a];if(!r[s]){r[s]=!0;var c=Object.getOwnPropertyDescriptor(e,s);null!=c&&null==c.get&&null==c.set&&i.push(s)}}e=E.getPrototypeOf(e)}return i}}var i={}.hasOwnProperty;return function(n){if(t(n))return[];var r=[];e:for(var o in n)if(i.call(n,o))r.push(o);else{for(var a=0;a<e.length;++a)if(i.call(e[a],o))continue e;r.push(o)}return r}}(),I=/this\s*\.\s*\S+\s*=/,B=/^[a-z$_][a-z$_0-9]*$/i,R="stack"in new Error?function(e){return w(e)?e:new Error(y(e))}:function(e){if(w(e))return e;try{throw new Error(y(e))}catch(e){return e}},O=function(e){return E.isArray(e)?e:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var N="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){for(var t,n=[],i=e[Symbol.iterator]();!(t=i.next()).done;)n.push(t.value);return n};O=function(e){return E.isArray(e)?e:null!=e&&"function"==typeof e[Symbol.iterator]?N(e):null}}var D=void 0!==e&&"[object process]"===k(e).toLowerCase(),L={isClass:h,isIdentifier:v,inheritedDataKeys:F,getDataPropertyOrDefault:f,thrower:d,isArray:E.isArray,asArray:O,notEnumerableProp:p,isPrimitive:s,isObject:c,isError:g,canEvaluate:A,errorObj:C,tryCatch:a,inherits:P,withAppended:l,maybeWrapAsError:u,toFastProperties:m,filledRange:b,toString:y,canAttachTrace:w,ensureErrorObject:R,originatesFromRejection:x,markAsOriginatingFromRejection:_,classString:k,copyDescriptors:j,hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:D,env:S,global:T};L.isRecentNode=L.isNode&&function(){var t=e.versions.node.split(".").map(Number);return 0===t[0]&&t[1]>10||t[0]>0}(),L.isNode&&L.toFastProperties(e);try{throw new Error}catch(e){L.lastLineError=e}n.exports=L},{"./es5":13}]},{},[4])(4)})),typeof window!="undefined"&&window!==null?window.P=window.Promise:typeof self!="undefined"&&self!==null&&(self.P=self.Promise) }).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{}) },{_process:120}],190:[function(e,t,n){ function i(e,t,n){ this.fn=e,this.context=t,this.once=n||!1 }function r(){}var o=typeof Object.create!="function"&&"~"; r.prototype._events=void 0,r.prototype.listeners=function(e,t){ var n=o?o+e:e,i=this._events&&this._events[n]; if(t)return Boolean(i); if(!i)return[]; if(i.fn)return[i.fn]; for(var r=0,a=i.length,s=new Array(a); r<a; r++)s[r]=i[r].fn; return s },r.prototype.emit=function(e,t,n,i,r,a){ var s=o?o+e:e; if(!this._events||!this._events[s])return!1; var c,u,l=this._events[s],f=arguments.length; if(typeof l.fn=="function"){ switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){ case 1: return l.fn.call(l.context),!0; case 2: return l.fn.call(l.context,t),!0; case 3: return l.fn.call(l.context,t,n),!0; case 4: return l.fn.call(l.context,t,n,i),!0; case 5: return l.fn.call(l.context,t,n,i,r),!0; case 6: return l.fn.call(l.context,t,n,i,r,a),!0;}for(u=1,c=new Array(f-1); u<f; u++)c[u-1]=arguments[u]; l.fn.apply(l.context,c) }else{ var p,d=l.length; for(u=0; u<d; u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){ case 1: l[u].fn.call(l[u].context); break; case 2: l[u].fn.call(l[u].context,t); break; case 3: l[u].fn.call(l[u].context,t,n); break; default: if(!c)for(p=1,c=new Array(f-1); p<f; p++)c[p-1]=arguments[p]; l[u].fn.apply(l[u].context,c);} }return!0;},r.prototype.on=function(e,t,n){ var r=new i(t,n||this),a=o?o+e:e; return this._events||(this._events=o?{}:Object.create(null)),this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):this._events[a]=r,this;},r.prototype.once=function(e,t,n){ var r=new i(t,n||this,!0),a=o?o+e:e; return this._events||(this._events=o?{}:Object.create(null)),this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):this._events[a]=r,this },r.prototype.removeListener=function(e,t,n,i){ var r=o?o+e:e; if(!this._events||!this._events[r])return this; var a=this._events[r],s=[]; if(t)if(a.fn)(a.fn!==t||i&&!a.once||n&&a.context!==n)&&s.push(a); else for(var c=0,u=a.length; c<u; c++)(a[c].fn!==t||i&&!a[c].once||n&&a[c].context!==n)&&s.push(a[c]); return s.length?this._events[r]=s.length===1?s[0]:s:delete this._events[r],this;},r.prototype.removeAllListeners=function(e){ return this._events?(e?delete this._events[o?o+e:e]:this._events=o?{}:Object.create(null),this):this },r.prototype.off=r.prototype.removeListener,r.prototype.addListener=r.prototype.on,r.prototype.setMaxListeners=function(){ return this;},r.prefixed=o,void 0!==t&&(t.exports=r);},{}],191:[function(e,t,n){ var i=e("eventemitter3"),r=e("bluebird"),o=function(e){ var t,n,o=new r(function(){ t=arguments[0],n=arguments[1];}); if(e)return{resolve:t,reject:n,eventEmitter:o}; var a=new i; return o._events=a._events,o.emit=a.emit,o.on=a.on,o.once=a.once,o.off=a.off,o.listeners=a.listeners,o.addListener=a.addListener,o.removeListener=a.removeListener,o.removeAllListeners=a.removeAllListeners,{resolve:t,reject:n,eventEmitter:o} }; o.resolve=function(e){ var t=o(!0); return t.resolve(e),t.eventEmitter },t.exports=o },{bluebird:189,eventemitter3:190}],192:[function(e,t,n){ arguments[4][172][0].apply(n,arguments);},{dup:172}],193:[function(e,t,n){ var i=e("./jsonrpc"),r=e("web3-core-helpers").errors,o=function(e){ this.requestManager=e,this.requests=[] }; o.prototype.add=function(e){ this.requests.push(e) },o.prototype.execute=function(){ var e=this.requests; this.requestManager.sendBatch(e,function(t,n){ n=n||[],e.map(function(e,t){ return n[t]||{};}).forEach(function(t,n){ if(e[n].callback){ if(t&&t.error)return e[n].callback(r.ErrorResponse(t)); if(!i.isValidResponse(t))return e[n].callback(r.InvalidResponse(t)); e[n].callback(null,e[n].format?e[n].format(t.result):t.result) } });}) },t.exports=o;},{"./jsonrpc":196,"web3-core-helpers":186}],194:[function(e,t,n){ var i=null,r=Function("return this")(); void 0!==r.ethereumProvider?i=r.ethereumProvider:void 0!==r.web3&&r.web3.currentProvider&&(r.web3.currentProvider.sendAsync&&(r.web3.currentProvider.send=r.web3.currentProvider.sendAsync,delete r.web3.currentProvider.sendAsync),!r.web3.currentProvider.on&&r.web3.currentProvider.connection&&r.web3.currentProvider.connection.constructor.name==="ipcProviderWrapper"&&(r.web3.currentProvider.on=function(e,t){ if(typeof t!="function")throw new Error("The second parameter callback must be a function."); switch(e){ case"data": this.connection.on("data",function(e){ var n=""; e=e.toString(); try{ n=JSON.parse(e);}catch(n){ return t(new Error("Couldn't parse response data"+e)) }n.id||n.method.indexOf("_subscription")===-1||t(null,n) }); break; default: this.connection.on(e,t) } }),i=r.web3.currentProvider),t.exports=i;},{}],195:[function(e,t,n){ var i=e("underscore"),r=e("web3-core-helpers").errors,o=e("./jsonrpc.js"),a=e("./batch.js"),s=e("./givenProvider.js"),c=function e(t){ this.provider=null,this.providers=e.providers,this.setProvider(t),this.subscriptions={} }; c.givenProvider=s,c.providers={WebsocketProvider:e("web3-providers-ws"),HttpProvider:e("web3-providers-http"),IpcProvider:e("web3-providers-ipc")},c.prototype.setProvider=function(e,t){ var n=this; if(e&&typeof e=="string"&&this.providers)if(/^http(s)?:\/\//i.test(e))e=new this.providers.HttpProvider(e); else if(/^ws(s)?:\/\//i.test(e))e=new this.providers.WebsocketProvider(e); else if(e&&(void 0===t?"undefined":_typeof(t))==="object"&&typeof t.connect=="function")e=new this.providers.IpcProvider(e,t); else if(e)throw new Error("Can't autodetect provider for \""+e+'"'); this.provider&&this.clearSubscriptions(),this.provider=e||null,this.provider&&this.provider.on&&this.provider.on("data",function(e,t){ e?Object.keys(n.subscriptions).forEach(function(t){ n.subscriptions[t].callback&&n.subscriptions[t].callback(e);}):n.subscriptions[t.params.subscription]&&n.subscriptions[t.params.subscription].callback&&n.subscriptions[t.params.subscription].callback(null,t.params.result);});},c.prototype.send=function(e,t){ if(t=t||function(){},!this.provider)return t(r.InvalidProvider()); var n=o.toPayload(e.method,e.params); this.provider[this.provider.sendAsync?"sendAsync":"send"](n,function(e,i){ return i&&i.id&&n.id!==i.id?t(new Error('Wrong response id "'+i.id+'" (expected: "'+n.id+'") in '+JSON.stringify(n))):e?t(e):i&&i.error?t(r.ErrorResponse(i)):o.isValidResponse(i)?void t(null,i.result):t(r.InvalidResponse(i));}) },c.prototype.sendBatch=function(e,t){ if(!this.provider)return t(r.InvalidProvider()); var n=o.toBatchPayload(e); this.provider.send(n,function(e,n){ return e?t(e):i.isArray(n)?void t(null,n):t(r.InvalidResponse(n)) }) },c.prototype.addSubscription=function(e,t,n,i){ if(!this.provider.on)throw new Error("The provider doesn't support subscriptions: "+this.provider.constructor.name); this.subscriptions[e]={callback:i,type:n,name:t};},c.prototype.removeSubscription=function(e,t){ var n=this; this.subscriptions[e]&&(this.send({method:this.subscriptions[e].type+"_unsubscribe",params:[e]},t),delete n.subscriptions[e]) },c.prototype.clearSubscriptions=function(e){ var t=this; Object.keys(this.subscriptions).forEach(function(n){ e&&t.subscriptions[n].name==="syncing"||t.removeSubscription(n);}),this.provider.reset&&this.provider.reset();},t.exports={Manager:c,BatchManager:a} },{"./batch.js":193,"./givenProvider.js":194,"./jsonrpc.js":196,underscore:192,"web3-core-helpers":186,"web3-providers-http":256,"web3-providers-ipc":259,"web3-providers-ws":261}],196:[function(e,t,n){ var i={messageId:0}; i.toPayload=function(e,t){ if(!e)throw new Error('JSONRPC method should be specified for params: "'+JSON.stringify(t)+'"!'); return i.messageId++,{jsonrpc:"2.0",id:i.messageId,method:e,params:t||[]} },i.isValidResponse=function(e){ function t(e){ return!(!e||e.error||e.jsonrpc!=="2.0"||typeof e.id!="number"&&typeof e.id!="string"||void 0===e.result);}return Array.isArray(e)?e.every(t):t(e);},i.toBatchPayload=function(e){ return e.map(function(e){ return i.toPayload(e.method,e.params) }) },t.exports=i },{}],197:[function(e,t,n){ arguments[4][190][0].apply(n,arguments);},{dup:190}],198:[function(e,t,n){ arguments[4][172][0].apply(n,arguments);},{dup:172}],199:[function(e,t,n){ var i=e("./subscription.js"),r=function(e){ this.name=e.name,this.type=e.type,this.subscriptions=e.subscriptions||{},this.requestManager=null;}; r.prototype.setRequestManager=function(e){ this.requestManager=e;},r.prototype.attachToObject=function(e){ var t=this.buildCall(); t.call=this.call; var n=this.name.split("."); n.length>1?(e[n[0]]=e[n[0]]||{},e[n[0]][n[1]]=t):e[n[0]]=t;},r.prototype.buildCall=function(){ var e=this; return function(){ e.subscriptions[arguments[0]]||console.warn("Subscription "+JSON.stringify(arguments[0])+" doesn't exist. Subscribing anyway."); var t=new i({subscription:e.subscriptions[arguments[0]],requestManager:e.requestManager,type:e.type}); return t.subscribe.apply(t,arguments);} },t.exports={subscriptions:r,subscription:i} },{"./subscription.js":200}],200:[function(e,t,n){ function i(e){ a.call(this),this.id=null,this.callback=null,this.arguments=null,this._reconnectIntervalId=null,this.options={subscription:e.subscription,type:e.type,requestManager:e.requestManager};}var r=e("underscore"),o=e("web3-core-helpers").errors,a=e("eventemitter3"); (i.prototype=Object.create(a.prototype)).constructor=i,i.prototype._extractCallback=function(e){ if(r.isFunction(e[e.length-1]))return e.pop() },i.prototype._validateArgs=function(e){ var t=this.options.subscription; if(t||(t={}),t.params||(t.params=0),e.length!==t.params)throw o.InvalidNumberOfParams(e.length,t.params+1,e[0]);},i.prototype._formatInput=function(e){ var t=this.options.subscription; return t&&t.inputFormatter?t.inputFormatter.map(function(t,n){ return t?t(e[n]):e[n];}):e;},i.prototype._formatOutput=function(e){ var t=this.options.subscription; return t&&t.outputFormatter&&e?t.outputFormatter(e):e },i.prototype._toPayload=function(e){ var t=[]; if(this.callback=this._extractCallback(e),this.subscriptionMethod||(this.subscriptionMethod=e.shift(),this.options.subscription.subscriptionName&&(this.subscriptionMethod=this.options.subscription.subscriptionName)),this.arguments||(this.arguments=this._formatInput(e),this._validateArgs(this.arguments),e=[]),t.push(this.subscriptionMethod),t=t.concat(this.arguments),e.length)throw new Error("Only a callback is allowed as parameter on an already instantiated subscription."); return{method:this.options.type+"_subscribe",params:t};},i.prototype.unsubscribe=function(e){ this.options.requestManager.removeSubscription(this.id,e),this.id=null,this.removeAllListeners(),clearInterval(this._reconnectIntervalId) },i.prototype.subscribe=function(){ var e=this,t=Array.prototype.slice.call(arguments),n=this._toPayload(t); if(!n)return this; if(!this.options.requestManager.provider){ var i=new Error("No provider set."); return this.callback(i,null,this),this.emit("error",i),this }if(!this.options.requestManager.provider.on){ var o=new Error("The current provider doesn't support subscriptions: "+this.options.requestManager.provider.constructor.name); return this.callback(o,null,this),this.emit("error",o),this;}return this.id&&this.unsubscribe(),this.options.params=n.params[1],n.params[0]==="logs"&&r.isObject(n.params[1])&&n.params[1].hasOwnProperty("fromBlock")&&isFinite(n.params[1].fromBlock)&&this.options.requestManager.send({method:"eth_getLogs",params:[n.params[1]]},function(t,n){ t?(e.callback(t,null,e),e.emit("error",t)):n.forEach(function(t){ var n=e._formatOutput(t); e.callback(null,n,e),e.emit("data",n);});}),_typeof(n.params[1])==="object"&&delete n.params[1].fromBlock,this.options.requestManager.send(n,function(t,i){ !t&&i?(e.id=i,e.options.requestManager.addSubscription(e.id,n.params[0],e.options.type,function(t,n){ r.isArray(n)&&(n=n[0]); var i=e._formatOutput(n); if(t)e.options.requestManager.removeSubscription(e.id),e.options.requestManager.provider.once&&(e._reconnectIntervalId=setInterval(function(){ e.options.requestManager.provider.reconnect();},500),e.options.requestManager.provider.once("connect",function(){ clearInterval(e._reconnectIntervalId),e.subscribe(e.callback) })),e.emit("error",t); else{ if(r.isFunction(e.options.subscription.subscriptionHandler))return e.options.subscription.subscriptionHandler.call(e,i); e.emit("data",i);}r.isFunction(e.callback)&&e.callback(t,i,e);})):r.isFunction(e.callback)&&(e.callback(t,null,e),e.emit("error",t));}),this },t.exports=i },{eventemitter3:197,underscore:198,"web3-core-helpers":186}],201:[function(e,t,n){ var i=e("web3-core-helpers").formatters,r=e("web3-core-method"),o=e("web3-utils"); t.exports=function(e){ var t=function(t){ var n; return t.property?(e[t.property]||(e[t.property]={}),n=e[t.property]):n=e,t.methods&&t.methods.forEach(function(t){ t instanceof r||(t=new r(t)),t.attachToObject(n),t.setRequestManager(e._requestManager);}),e }; return t.formatters=i,t.utils=o,t.Method=r,t;};},{"web3-core-helpers":186,"web3-core-method":188,"web3-utils":273}],202:[function(e,t,n){ var i=e("web3-core-requestmanager"),r=e("./extend.js"); t.exports={packageInit:function(e,t){ if(t=Array.prototype.slice.call(t),!e)throw new Error('You need to instantiate using the "new" keyword.'); Object.defineProperty(e,"currentProvider",{get:function(){ return e._provider },set:function(t){ return e.setProvider(t);},enumerable:!0,configurable:!0}),t[0]&&t[0]._requestManager?e._requestManager=new i.Manager(t[0].currentProvider):(e._requestManager=new i.Manager,e._requestManager.setProvider(t[0],t[1])),e.givenProvider=i.Manager.givenProvider,e.providers=i.Manager.providers,e._provider=e._requestManager.provider,e.setProvider||(e.setProvider=function(t,n){ return e._requestManager.setProvider(t,n),e._provider=e._requestManager.provider,!0 }),e.BatchRequest=i.BatchManager.bind(null,e._requestManager),e.extend=r(e) },addProviders:function(e){ e.givenProvider=i.Manager.givenProvider,e.providers=i.Manager.providers;}};},{"./extend.js":201,"web3-core-requestmanager":195}],203:[function(e,t,n){ arguments[4][172][0].apply(n,arguments);},{dup:172}],204:[function(e,t,n){ var i=e("underscore"),r=e("web3-utils"),o=e("bn.js"),a=e("./param"),s=function(e){ return i.isNumber(e)&&(e=Math.trunc(e)),new a(r.toTwosComplement(e).replace("0x","")) },c=function(e){ returnnew o(e.substr(0,1),16).toString(2).substr(0,1)==="1"}; t.exports={formatInputInt:s,formatInputBytes:function(e){ if(!r.isHex(e))throw new Error('Given parameter is not bytes: "'+e+'"'); var t=e.replace(/^0x/i,""); if(t.length%2!=0)throw new Error('Given parameter bytes has an invalid length: "'+e+'"'); var n=Math.floor((t.length+63)/64); return t=r.padRight(t,64*n),new a(t);},formatInputDynamicBytes:function(e){ if(!r.isHex(e))throw new Error('Given parameter is not bytes: "'+e+'"'); var t=e.replace(/^0x/i,""); if(t.length%2!=0)throw new Error('Given parameter bytes has an invalid length: "'+e+'"'); var n=t.length/2,i=Math.floor((t.length+63)/64); return t=r.padRight(t,64*i),new a(s(n).value+t);},formatInputString:function(e){ var t=r.utf8ToHex(e).replace(/^0x/i,""),n=t.length/2,i=Math.floor((t.length+63)/64); return t=r.padRight(t,64*i),new a(s(n).value+t) },formatInputBool:function(e){ return new a("000000000000000000000000000000000000000000000000000000000000000"+(e?"1":"0")) },formatOutputInt:function(e){ var t=e.staticPart()||"0"; return c(t)?new o(t,16).fromTwos(256).toString(10):new o(t,16).toString(10) },formatOutputUInt:function(e,t){ var n=e.staticPart(); if(!n)throw new Error("Couldn't decode "+t+" from ABI: 0x"+e.rawValue); return new o(n,16).toString(10) },formatOutputBool:function(e,t){ var n=e.staticPart(); if(!n)throw new Error("Couldn't decode "+t+" from ABI: 0x"+e.rawValue); returnn==="0000000000000000000000000000000000000000000000000000000000000001"},formatOutputBytes:function(e,t){ var n=t.match(/^bytes([0-9]*)/),i=parseInt(n[1]); if(e.staticPart().slice(0,2*i).length!==2*i)throw new Error("Couldn't decode "+t+" from ABI: 0x"+e.rawValue+" The size doesn't match."); return"0x"+e.staticPart().slice(0,2*i);},formatOutputDynamicBytes:function(e){ var t=2*new o(e.dynamicPart().slice(0,64),16).toNumber(); return"0x"+e.dynamicPart().substr(64,t);},formatOutputString:function(e){ var t=e.dynamicPart().slice(0,64); if(t){ var n=2*new o(t,16).toNumber(); return n?r.hexToUtf8("0x"+e.dynamicPart().substr(64,n).replace(/^0x/i,"")):"";}throw new Error("ERROR: The returned value is not a convertible string:"+t);},formatOutputAddress:function(e){ var t=e.staticPart(); return r.toChecksumAddress("0x"+t.slice(t.length-40,t.length));},toTwosComplement:r.toTwosComplement};},{"./param":206,"bn.js":"BN",underscore:203,"web3-utils":273}],205:[function(e,t,n){ function i(){}var r=e("underscore"),o=e("web3-utils"),a=e("./formatters"),s=e("./types/address"),c=e("./types/bool"),u=e("./types/int"),l=e("./types/uint"),f=e("./types/dynamicbytes"),p=e("./types/string"),d=e("./types/bytes"),h=function(e,t){ return e.isDynamicType(t)||e.isDynamicArray(t);},m=function(e){ this._types=e;}; m.prototype._requireType=function(e){ var t=this._types.filter(function(t){ return t.isType(e);})[0]; if(!t)throw Error("Invalid solidity type: "+e); return t },m.prototype._getOffsets=function(e,t){ for(var n=t.map(function(t,n){ return t.staticPartLength(e[n]);}),i=1; i<n.length; i++)n[i]+=n[i-1]; return n.map(function(n,i){ return n-t[i].staticPartLength(e[i]);});},m.prototype._getSolidityTypes=function(e){ var t=this; return e.map(function(e){ return t._requireType(e);}) },m.prototype._encodeMultiWithOffset=function(e,t,n,i){ var r="",o=this; return e.forEach(function(s,c){ if(h(t[c],e[c])){ r+=a.formatInputInt(i).encode(); var u=o._encodeWithOffset(e[c],t[c],n[c],i); i+=u.length/2 }else r+=o._encodeWithOffset(e[c],t[c],n[c],i) }),e.forEach(function(a,s){ if(h(t[s],e[s])){ var c=o._encodeWithOffset(e[s],t[s],n[s],i); i+=c.length/2,r+=c;} }),r;},m.prototype._encodeWithOffset=function(e,t,n,i){ var r=this; return t.isDynamicArray(e)?(function(){var o=t.nestedName(e),s=t.staticPartLength(o),c=n[0];return function(){var e=2;if(t.isDynamicArray(o))for(var r=1;r<n.length;r++)e+=+n[r-1][0]||0,c+=a.formatInputInt(i+r*s+32*e).encode()}(),function(){for(var e=0;e<n.length-1;e++){var a=c/2;c+=r._encodeWithOffset(o,t,n[e+1],i+a)}}(),c}()):t.isStaticArray(e)?(function(){var o=t.nestedName(e),s=t.staticPartLength(o),c="";return t.isDynamicArray(o)&&function(){for(var e=0,t=0;t<n.length;t++)e+=+(n[t-1]||[])[0]||0,c+=a.formatInputInt(i+t*s+32*e).encode()}(),function(){for(var e=0;e<n.length;e++){var a=c/2;c+=r._encodeWithOffset(o,t,n[e],i+a)}}(),c}()):n },m.prototype.encodeFunctionSignature=function(e){ return r.isObject(e)&&(e=o._jsonInterfaceMethodToString(e)),o.sha3(e).slice(0,10) },m.prototype.encodeEventSignature=function(e){ return r.isObject(e)&&(e=o._jsonInterfaceMethodToString(e)),o.sha3(e);},m.prototype.encodeParameter=function(e,t){ return this.encodeParameters([e],[t]);},m.prototype.encodeParameters=function(e,t){ r.isObject(e)&&e.inputs&&(e=r.map(e.inputs,function(e){ return e.type })); var n=this._getSolidityTypes(e),i=n.map(function(n,i){ return n.encode(t[i],e[i]) }),o=n.reduce(function(t,i,r){ var o=i.staticPartLength(e[r]),a=32*Math.floor((o+31)/32); return t+(h(n[r],e[r])?32:a);},0); return"0x"+this._encodeMultiWithOffset(e,n,i,o);},m.prototype.encodeFunctionCall=function(e,t){ return this.encodeFunctionSignature(e)+this.encodeParameters(e,t).replace("0x","") },m.prototype.decodeParameter=function(e,t){ if(!r.isString(e))throw new Error("Given parameter type is not a string: "+e); return this.decodeParameters([{type:e}],t)[0] },m.prototype.decodeParameters=function(e,t){ var n=r.isArray(e)&&r.isString(e[0]),o=n?e:[]; n||e.forEach(function(e){ o.push(e.type);}); var a=this._getSolidityTypes(o),s=this._getOffsets(o,a),c=new i; c.__length__=0; var u=0; return e.forEach(function(e,n){ var i=a[u].decode(t.replace(/^0x/i,""),s[u],o[u],u); i=i==="0x"?null:i,c[n]=i,r.isObject(e)&&e.name&&(c[e.name]=i),c.__length__++,u++;}),c },m.prototype.decodeLog=function(e,t,n){ var o=[],a=[]; e.forEach(function(e,t){ e.indexed?a[t]=e:o[t]=e }); var s=t.slice(2),c=r.isArray(n)?n.map(function(e){ return e.slice(2) }).join(""):n,u=this.decodeParameters(o,s),l=this.decodeParameters(a,c),f=new i; return f.__length__=0,e.forEach(function(e,t){ f[t]=e.type==="string"?"":null,u[t]&&(f[t]=u[t]),l[t]&&(f[t]=l[t]),e.name&&(f[e.name]=f[t]),f.__length__++ }),f }; var v=new m([new s,new c,new u,new l,new f,new d,new p]); t.exports=v },{"./formatters":204,"./types/address":208,"./types/bool":209,"./types/bytes":210,"./types/dynamicbytes":211,"./types/int":212,"./types/string":213,"./types/uint":214,underscore:203,"web3-utils":273}],206:[function(e,t,n){ var i=e("./formatters.js"),r=function(e,t,n){ this.value=e||"",this.offset=t,this.rawValue=n }; r.prototype.dynamicPartLength=function(){ return this.dynamicPart().length/2;},r.prototype.withOffset=function(e){ return new r(this.value,e) },r.prototype.combine=function(e){ return new r(this.value+e.value) },r.prototype.isDynamic=function(){ return void 0!==this.offset;},r.prototype.offsetAsBytes=function(){ return this.isDynamic()?i.toTwosComplement(this.offset).replace("0x",""):"";},r.prototype.staticPart=function(){ return this.isDynamic()?this.offsetAsBytes():this.value },r.prototype.dynamicPart=function(){ return this.isDynamic()?this.value:"";},r.prototype.encode=function(){ return this.staticPart()+this.dynamicPart();},r.encodeList=function(e){ var t=32*e.length,n=e.map(function(e){ if(!e.isDynamic())return e; var n=t; return t+=e.dynamicPartLength(),e.withOffset(n) }); return n.reduce(function(e,t){ return e+t.dynamicPart() },n.reduce(function(e,t){ return e+t.staticPart() },"")) },t.exports=r;},{"./formatters.js":204}],207:[function(e,t,n){ var i=e("./formatters"),r=e("./param"),o=function(e){ this._inputFormatter=e.inputFormatter,this._outputFormatter=e.outputFormatter;}; o.prototype.isType=function(e){ throw"This method should be overwritten for type "+e;},o.prototype.staticPartLength=function(e){ return(this.nestedTypes(e)||["[1]"]).map(function(e){ return parseInt(e.slice(1,-1),10)||1 }).reduce(function(e,t){ return e*t },32);},o.prototype.isDynamicArray=function(e){ var t=this.nestedTypes(e); return Boolean(t)&&!t[t.length-1].match(/[0-9]{1,}/g) },o.prototype.isStaticArray=function(e){ var t=this.nestedTypes(e); return Boolean(t)&&Boolean(t[t.length-1].match(/[0-9]{1,}/g))},o.prototype.staticArrayLength=function(e){ var t=this.nestedTypes(e); return t?parseInt(t[t.length-1].match(/[0-9]{1,}/g)||1):1 },o.prototype.nestedName=function(e){ var t=this.nestedTypes(e); return t?e.substr(0,e.length-t[t.length-1].length):e;},o.prototype.isDynamicType=function(){ return!1;},o.prototype.nestedTypes=function(e){ return e.match(/(\[[0-9]*\])/g) },o.prototype.encode=function(e,t){ var n=this; return this.isDynamicArray(t)?(function(){var r=e.length,o=n.nestedName(t),a=[];return a.push(i.formatInputInt(r).encode()),e.forEach(function(e){a.push(n.encode(e,o))}),a}()):this.isStaticArray(t)?(function(){for(var i=n.staticArrayLength(t),r=n.nestedName(t),o=[],a=0;a<i;a++)o.push(n.encode(e[a],r));return o}()):this._inputFormatter(e,t).encode() },o.prototype.decode=function(e,t,n){ var i=this; if(this.isDynamicArray(n))return (function(){for(var r=parseInt("0x"+e.substr(2*t,64)),o=parseInt("0x"+e.substr(2*r,64)),a=r+32,s=i.nestedName(n),c=i.staticPartLength(s),u=32*Math.floor((c+31)/32),l=[],f=0;f<o*u;f+=u)l.push(i.decode(e,a+f,s));return l}()); if(this.isStaticArray(n))return (function(){for(var r=i.staticArrayLength(n),o=t,a=i.nestedName(n),s=i.staticPartLength(a),c=32*Math.floor((s+31)/32),u=[],l=0;l<r*c;l+=c)u.push(i.decode(e,o+l,a));return u}()); if(this.isDynamicType(n))return (function(){var o=parseInt("0x"+e.substr(2*t,64)),a=parseInt("0x"+e.substr(2*o,64)),s=Math.floor((a+31)/32),c=new r(e.substr(2*o,64*(1+s)),0,e);return i._outputFormatter(c,n)}()); var o=this.staticPartLength(n),a=new r(e.substr(2*t,2*o),void 0,e); return this._outputFormatter(a,n);},t.exports=o },{"./formatters":204,"./param":206}],208:[function(e,t,n){ var i=e("../formatters"),r=e("web3-core-helpers").formatters,o=e("../type"),a=function(){ this._inputFormatter=function(){ var e=Array.prototype.slice.call(arguments); return e[0]=e[0]&&e[0]!=="0x0"?r.inputAddressFormatter(e[0]):"",i.formatInputInt.apply(this,e);},this._outputFormatter=i.formatOutputAddress }; (a.prototype=new o({})).constructor=a,a.prototype.isType=function(e){ return Boolean(e.match(/address(\[([0-9]*)\])?/))},t.exports=a;},{"../formatters":204,"../type":207,"web3-core-helpers":186}],209:[function(e,t,n){ var i=e("../formatters"),r=e("../type"),o=function(){ this._inputFormatter=i.formatInputBool,this._outputFormatter=i.formatOutputBool }; (o.prototype=new r({})).constructor=o,o.prototype.isType=function(e){ return Boolean(e.match(/^bool(\[([0-9]*)\])*$/))},t.exports=o;},{"../formatters":204,"../type":207}],210:[function(e,t,n){ var i=e("../formatters"),r=e("../type"),o=function(){ this._inputFormatter=i.formatInputBytes,this._outputFormatter=i.formatOutputBytes }; (o.prototype=new r({})).constructor=o,o.prototype.isType=function(e){ return Boolean(e.match(/^bytes([0-9]{1,})(\[([0-9]*)\])*$/))},t.exports=o },{"../formatters":204,"../type":207}],211:[function(e,t,n){ var i=e("../formatters"),r=e("../type"),o=function(){ this._inputFormatter=i.formatInputDynamicBytes,this._outputFormatter=i.formatOutputDynamicBytes;}; (o.prototype=new r({})).constructor=o,o.prototype.isType=function(e){ return Boolean(e.match(/^bytes(\[([0-9]*)\])*$/))},o.prototype.isDynamicType=function(){ return!0 },t.exports=o },{"../formatters":204,"../type":207}],212:[function(e,t,n){ var i=e("../formatters"),r=e("../type"),o=function(){ this._inputFormatter=i.formatInputInt,this._outputFormatter=i.formatOutputInt }; (o.prototype=new r({})).constructor=o,o.prototype.isType=function(e){ return Boolean(e.match(/^int([0-9]*)?(\[([0-9]*)\])*$/))},t.exports=o },{"../formatters":204,"../type":207}],213:[function(e,t,n){ var i=e("../formatters"),r=e("../type"),o=function(){ this._inputFormatter=i.formatInputString,this._outputFormatter=i.formatOutputString;}; (o.prototype=new r({})).constructor=o,o.prototype.isType=function(e){ return Boolean(e.match(/^string(\[([0-9]*)\])*$/))},o.prototype.isDynamicType=function(){ return!0 },t.exports=o },{"../formatters":204,"../type":207}],214:[function(e,t,n){ var i=e("../formatters"),r=e("../type"),o=function(){ this._inputFormatter=i.formatInputInt,this._outputFormatter=i.formatOutputUInt }; (o.prototype=new r({})).constructor=o,o.prototype.isType=function(e){ return Boolean(e.match(/^uint([0-9]*)?(\[([0-9]*)\])*$/))},t.exports=o },{"../formatters":204,"../type":207}],215:[function(e,t,n){ (function(e,i){ !(function(e){if("object"==(void 0===n?"undefined":_typeof(n))&&void 0!==t)t.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r;"undefined"!=typeof window?r=window:void 0!==i?r=i:"undefined"!=typeof self&&(r=self),r.Promise=e()}}(function(){var t,n,r;return function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof _dereq_&&_dereq_;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return r(n||e)},l,l.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof _dereq_&&_dereq_,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(e,t,n){t.exports=function(e){function t(e){var t=new n(e),i=t.promise();return t.setHowMany(1),t.setUnwrap(),t.init(),i}var n=e._SomePromiseArray;e.any=function(e){return t(e)},e.prototype.any=function(){return t(this)}}},{}],2:[function(t,n,i){function r(){this._isTickUsed=!1,this._lateQueue=new l(16),this._normalQueue=new l(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=u}function o(e,t,n){this._lateQueue.push(e,t,n),this._queueTick()}function a(e,t,n){this._normalQueue.push(e,t,n),this._queueTick()}function s(e){this._normalQueue._pushOne(e),this._queueTick()}var c;try{throw new Error}catch(e){c=e}var u=t("./schedule"),l=t("./queue"),f=t("./util");r.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},r.prototype.disableTrampolineIfNecessary=function(){f.hasDevTools&&(this._trampolineEnabled=!1)},r.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},r.prototype.fatalError=function(t,n){n?(e.stderr.write("Fatal "+(t instanceof Error?t.stack:t)),e.exit(2)):this.throwLater(t)},r.prototype.throwLater=function(e,t){if(1===arguments.length&&(t=e,e=function(){throw t}),"undefined"!=typeof setTimeout)setTimeout(function(){e(t)},0);else try{this._schedule(function(){e(t)})}catch(e){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},f.hasDevTools?(r.prototype.invokeLater=function(e,t,n){this._trampolineEnabled?o.call(this,e,t,n):this._schedule(function(){setTimeout(function(){e.call(t,n)},100)})},r.prototype.invoke=function(e,t,n){this._trampolineEnabled?a.call(this,e,t,n):this._schedule(function(){e.call(t,n)})},r.prototype.settlePromises=function(e){this._trampolineEnabled?s.call(this,e):this._schedule(function(){e._settlePromises()})}):(r.prototype.invokeLater=o,r.prototype.invoke=a,r.prototype.settlePromises=s),r.prototype.invokeFirst=function(e,t,n){this._normalQueue.unshift(e,t,n),this._queueTick()},r.prototype._drainQueue=function(e){for(;e.length()>0;){var t=e.shift();if("function"==typeof t){var n=e.shift(),i=e.shift();t.call(n,i)}else t._settlePromises()}},r.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},r.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},r.prototype._reset=function(){this._isTickUsed=!1},n.exports=r,n.exports.firstLineError=c},{"./queue":26,"./schedule":29,"./util":36}],3:[function(e,t,n){t.exports=function(e,t,n,i){var r=!1,o=function(e,t){this._reject(t)},a=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(o,o,null,this,e)},s=function(e,t){0==(50397184&this._bitField)&&this._resolveCallback(t.target)},c=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(o){r||(r=!0,e.prototype._propagateFrom=i.propagateFromFunction(),e.prototype._boundValue=i.boundValueFunction());var u=n(o),l=new e(t);l._propagateFrom(this,1);var f=this._target();if(l._setBoundTo(u),u instanceof e){var p={promiseRejectionQueued:!1,promise:l,target:f,bindingPromise:u};f._then(t,a,void 0,l,p),u._then(s,c,void 0,l,p),l._setOnCancel(u)}else l._resolveCallback(f);return l},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},{}],4:[function(e,t,n){var i;"undefined"!=typeof Promise&&(i=Promise);var r=e("./promise")();r.noConflict=function(){try{Promise===r&&(Promise=i)}catch(e){}return r},t.exports=r},{"./promise":22}],5:[function(e,t,n){var i=Object.create;if(i){var r=i(null),o=i(null);r[" size"]=o[" size"]=0}t.exports=function(t){function n(e,n){var i;if(null!=e&&(i=e[n]),"function"!=typeof i){var r="Object "+s.classString(e)+" has no method '"+s.toString(n)+"'";throw new t.TypeError(r)}return i}function i(e){return n(e,this.pop()).apply(e,this)}function r(e){return e[this]}function o(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}var a,s=e("./util"),c=s.canEvaluate;s.isIdentifier;t.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(i,void 0,void 0,t,void 0)},t.prototype.get=function(e){var t;if("number"==typeof e)t=o;else if(c){var n=a(e);t=null!==n?n:r}else t=r;return this._then(t,void 0,void 0,e,void 0)}}},{"./util":36}],6:[function(e,t,n){t.exports=function(t,n,i,r){var o=e("./util"),a=o.tryCatch,s=o.errorObj,c=t._async;t.prototype.break=t.prototype.cancel=function(){if(!r.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e.isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n.isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),t=e,e=n}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this.isCancellable()&&(this._setCancelled(),c.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(o.isArray(e))for(var n=0;n<e.length;++n)this._doInvokeOnCancel(e[n],t);else if(void 0!==e)if("function"==typeof e){if(!t){var i=a(e).call(this._boundValue());i===s&&(this._attachExtraTrace(i.e),c.throwLater(i.e))}}else e._resultCancelled(this)},t.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),c.invoke(this._doInvokeOnCancel,this,e)},t.prototype._invokeInternalOnCancel=function(){this.isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},t.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(e,t,n){t.exports=function(t){var n=e("./util"),i=e("./es5").keys,r=n.tryCatch,o=n.errorObj;return function(e,a,s){return function(c){var u=s._boundValue();e:for(var l=0;l<e.length;++l){var f=e[l];if(f===Error||null!=f&&f.prototype instanceof Error){if(c instanceof f)return r(a).call(u,c)}else if("function"==typeof f){var p=r(f).call(u,c);if(p===o)return p;if(p)return r(a).call(u,c)}else if(n.isObject(c)){for(var d=i(f),h=0;h<d.length;++h){var m=d[h];if(f[m]!=c[m])continue e}return r(a).call(u,c)}}return t}}}},{"./es5":13,"./util":36}],8:[function(e,t,n){t.exports=function(e){function t(){this._trace=new t.CapturedTrace(n())}function n(){var e=r.length-1;if(e>=0)return r[e]}var i=!1,r=[];return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},t.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,r.push(this._trace))},t.prototype._popContext=function(){if(void 0!==this._trace){var e=r.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},t.CapturedTrace=null,t.create=function(){if(i)return new t},t.deactivateLongStackTraces=function(){},t.activateLongStackTraces=function(){var r=e.prototype._pushContext,o=e.prototype._popContext,a=e._peekContext,s=e.prototype._peekContext,c=e.prototype._promiseCreated;t.deactivateLongStackTraces=function(){e.prototype._pushContext=r,e.prototype._popContext=o,e._peekContext=a,e.prototype._peekContext=s,e.prototype._promiseCreated=c,i=!1},i=!0,e.prototype._pushContext=t.prototype._pushContext,e.prototype._popContext=t.prototype._popContext,e._peekContext=e.prototype._peekContext=n,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},t}},{}],9:[function(t,n,i){n.exports=function(n,i){function r(e,t){return{promise:t}}function o(){return!1}function a(e,t,n){var i=this;try{e(t,n,function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+R.toString(e));i._attachCancellationCallback(e)})}catch(e){return e}}function s(e){if(!this.isCancellable())return this;var t=this._onCancel();void 0!==t?R.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function c(){return this._onCancelField}function u(e){this._onCancelField=e}function l(){this._cancellationParent=void 0,this._onCancelField=void 0}function f(e,t){if(0!=(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;void 0===n&&(n=0),e._branchesRemainingToCancel=n+1}0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}function p(){var e=this._boundTo;return void 0!==e&&e instanceof n?e.isFulfilled()?e.value():void 0:e}function d(){this._trace=new C(this._peekContext())}function h(e,t){if(O(e)){var n=this._trace;if(void 0!==n&&t&&(n=n._parent),void 0!==n)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var i=x(e);R.notEnumerableProp(e,"stack",i.message+"\n"+i.stack.join("\n")),R.notEnumerableProp(e,"__stackCleaned__",!0)}}}function m(e,t,i){if(ee.warnings){var r,o=new B(e);if(t)i._attachExtraTrace(o);else if(ee.longStackTraces&&(r=n._peekContext()))r.attachExtraTrace(o);else{var a=x(o);o.stack=a.message+"\n"+a.stack.join("\n")}$("warning",o)||w(o,"",!0)}}function v(e,t){for(var n=0;n<t.length-1;++n)t[n].push("From previous event:"),t[n]=t[n].join("\n");return n<t.length&&(t[n]=t[n].join("\n")),e+"\n"+t.join("\n")}function b(e){for(var t=0;t<e.length;++t)(0===e[t].length||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}function y(e){for(var t=e[0],n=1;n<e.length;++n){for(var i=e[n],r=t.length-1,o=t[r],a=-1,s=i.length-1;s>=0;--s)if(i[s]===o){a=s;break}for(s=a;s>=0;--s){var c=i[s];if(t[r]!==c)break;t.pop(),r--}t=i}}function g(e){for(var t=[],n=0;n<e.length;++n){var i=e[n],r=" (No stack trace)"===i||D.test(i),o=r&&Q(i);r&&!o&&(q&&" "!==i.charAt(0)&&(i=" "+i),t.push(i))}return t}function _(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n<t.length;++n){var i=t[n];if(" (No stack trace)"===i||D.test(i))break}return n>0&&(t=t.slice(n)),t}function x(e){var t=e.stack,n=e.toString();return t="string"==typeof t&&t.length>0?_(e):[" (No stack trace)"],{message:n,stack:g(t)}}function w(e,t,n){if("undefined"!=typeof console){var i;if(R.isObject(e)){var r=e.stack;i=t+L(r,e)}else i=t+String(e);"function"==typeof P?P(i,n):"function"!=typeof console.log&&"object"!==_typeof(console.log)||console.log(i)}}function k(e,t,n,i){var r=!1;try{"function"==typeof t&&(r=!0,"rejectionHandled"===e?t(i):t(n,i))}catch(e){I.throwLater(e)}"unhandledRejection"===e?$(e,n,i)||r||w(n,"Unhandled rejection "):$(e,i)}function j(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{if(t=e&&"function"==typeof e.toString?e.toString():R.toString(e),/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch(e){}0===t.length&&(t="(empty array)")}return"(<"+S(t)+">, no stack trace)"}function S(e){return e.length<41?e:e.substr(0,38)+"..."}function E(){return"function"==typeof Z}function A(e){var t=e.match(Y);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function C(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);Z(this,C),t>32&&this.uncycle()}var M,T,P,F=n._getDomain,I=n._async,B=t("./errors").Warning,R=t("./util"),O=R.canAttachTrace,N=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,D=null,L=null,q=!1,z=!(0==R.env("BLUEBIRD_DEBUG")),U=!(0==R.env("BLUEBIRD_WARNINGS")||!z&&!R.env("BLUEBIRD_WARNINGS")),H=!(0==R.env("BLUEBIRD_LONG_STACK_TRACES")||!z&&!R.env("BLUEBIRD_LONG_STACK_TRACES")),V=0!=R.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(U||!!R.env("BLUEBIRD_W_FORGOTTEN_RETURN"));n.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},n.prototype._ensurePossibleRejectionHandled=function(){0==(524288&this._bitField)&&(this._setRejectionIsUnhandled(),I.invokeLater(this._notifyUnhandledRejection,this,void 0))},n.prototype._notifyUnhandledRejectionIsHandled=function(){k("rejectionHandled",M,void 0,this)},n.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},n.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},n.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),k("unhandledRejection",T,e,this)}},n.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},n.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},n.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},n.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},n.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},n.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},n.prototype._warn=function(e,t,n){return m(e,t,n||this)},n.onPossiblyUnhandledRejection=function(e){var t=F();T="function"==typeof e?null===t?e:t.bind(e):void 0},n.onUnhandledRejectionHandled=function(e){var t=F();M="function"==typeof e?null===t?e:t.bind(e):void 0};var K=function(){};n.longStackTraces=function(){if(I.haveItemsQueued()&&!ee.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!ee.longStackTraces&&E()){var e=n.prototype._captureStackTrace,t=n.prototype._attachExtraTrace;ee.longStackTraces=!0,K=function(){if(I.haveItemsQueued()&&!ee.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");n.prototype._captureStackTrace=e,n.prototype._attachExtraTrace=t,i.deactivateLongStackTraces(),I.enableTrampoline(),ee.longStackTraces=!1},n.prototype._captureStackTrace=d,n.prototype._attachExtraTrace=h,i.activateLongStackTraces(),I.disableTrampolineIfNecessary()}},n.hasLongStackTraces=function(){return ee.longStackTraces&&E()};var W=function(){try{var e=document.createEvent("CustomEvent");return e.initCustomEvent("testingtheevent",!1,!0,{}),R.global.dispatchEvent(e),function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!R.global.dispatchEvent(n)}}catch(e){}return function(){return!1}}(),X=R.isNode?function(){return e.emit.apply(e,arguments)}:R.global?function(e){var t="on"+e.toLowerCase(),n=R.global[t];return!!n&&(n.apply(R.global,[].slice.call(arguments,1)),!0)}:function(){return!1},G={promiseCreated:r,promiseFulfilled:r,promiseRejected:r,promiseResolved:r,promiseCancelled:r,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:r},$=function(e){var t=!1;try{t=X.apply(null,arguments)}catch(e){I.throwLater(e),t=!0}var n=!1;try{n=W(e,G[e].apply(null,arguments))}catch(e){I.throwLater(e),n=!0}return n||t};n.config=function(e){if("longStackTraces"in(e=Object(e))&&(e.longStackTraces?n.longStackTraces():!e.longStackTraces&&n.hasLongStackTraces()&&K()),"warnings"in e){var t=e.warnings;ee.warnings=!!t,V=ee.warnings,R.isObject(t)&&"wForgottenReturn"in t&&(V=!!t.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!ee.cancellation){if(I.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");n.prototype._clearCancellationData=l,n.prototype._propagateFrom=f,n.prototype._onCancel=c,n.prototype._setOnCancel=u,n.prototype._attachCancellationCallback=s,n.prototype._execute=a,J=f,ee.cancellation=!0}"monitoring"in e&&(e.monitoring&&!ee.monitoring?(ee.monitoring=!0,n.prototype._fireEvent=$):!e.monitoring&&ee.monitoring&&(ee.monitoring=!1,n.prototype._fireEvent=o))},n.prototype._fireEvent=o,n.prototype._execute=function(e,t,n){try{e(t,n)}catch(e){return e}},n.prototype._onCancel=function(){},n.prototype._setOnCancel=function(e){},n.prototype._attachCancellationCallback=function(e){},n.prototype._captureStackTrace=function(){},n.prototype._attachExtraTrace=function(){},n.prototype._clearCancellationData=function(){},n.prototype._propagateFrom=function(e,t){};var J=function(e,t){0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)},Q=function(){return!1},Y=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;R.inherits(C,Error),i.CapturedTrace=C,C.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},i=0,r=this;void 0!==r;++i)t.push(r),r=r._parent;for(i=(e=this._length=i)-1;i>=0;--i){var o=t[i].stack;void 0===n[o]&&(n[o]=i)}for(i=0;i<e;++i){var a=n[t[i].stack];if(void 0!==a&&a!==i){a>0&&(t[a-1]._parent=void 0,t[a-1]._length=1),t[i]._parent=void 0,t[i]._length=1;var s=i>0?t[i-1]:this;a<e-1?(s._parent=t[a+1],s._parent.uncycle(),s._length=s._parent._length+1):(s._parent=void 0,s._length=1);for(var c=s._length+1,u=i-2;u>=0;--u)t[u]._length=c,c++;return}}}},C.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=x(e),n=t.message,i=[t.stack],r=this;void 0!==r;)i.push(g(r.stack.split("\n"))),r=r._parent;y(i),b(i),R.notEnumerableProp(e,"stack",v(n,i)),R.notEnumerableProp(e,"__stackCleaned__",!0)}};var Z=function(){var e=/^\s*at\s*/,t=function(e,t){return"string"==typeof e?e:void 0!==t.name&&void 0!==t.message?t.toString():j(t)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,D=e,L=t;var n=Error.captureStackTrace;return Q=function(e){return N.test(e)},function(e,t){Error.stackTraceLimit+=6,n(e,t),Error.stackTraceLimit-=6}}var i=new Error;if("string"==typeof i.stack&&i.stack.split("\n")[0].indexOf("stackDetection@")>=0)return D=/@/,L=t,q=!0,function(e){e.stack=(new Error).stack};var r;try{throw new Error}catch(e){r="stack"in e}return"stack"in i||!r||"number"!=typeof Error.stackTraceLimit?(L=function(e,t){return"string"==typeof e?e:"object"!==(void 0===t?"undefined":_typeof(t))&&"function"!=typeof t||void 0===t.name||void 0===t.message?j(t):t.toString()},null):(D=e,L=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6})}();"undefined"!=typeof console&&void 0!==console.warn&&(P=function(e){console.warn(e)},R.isNode&&e.stderr.isTTY?P=function(e,t){var n=t?"[33m":"[31m";console.warn(n+e+"[0m\n")}:R.isNode||"string"!=typeof(new Error).stack||(P=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var ee={warnings:U,longStackTraces:!1,cancellation:!1,monitoring:!1};return H&&n.longStackTraces(),{longStackTraces:function(){return ee.longStackTraces},warnings:function(){return ee.warnings},cancellation:function(){return ee.cancellation},monitoring:function(){return ee.monitoring},propagateFromFunction:function(){return J},boundValueFunction:function(){return p},checkForgottenReturns:function(e,t,n,i,r){if(void 0===e&&null!==t&&V){if(void 0!==r&&r._returnedNonUndefined())return;n&&(n+=" ");var o="a promise was created in a "+n+"handler but was not returned from it";i._warn(o,!0,t)}},setBounds:function(e,t){if(E()){for(var n,i,r=e.stack.split("\n"),o=t.stack.split("\n"),a=-1,s=-1,c=0;c<r.length;++c)if(u=A(r[c])){n=u.fileName,a=u.line;break}for(c=0;c<o.length;++c){var u=A(o[c]);if(u){i=u.fileName,s=u.line;break}}a<0||s<0||!n||!i||n!==i||a>=s||(Q=function(e){if(N.test(e))return!0;var t=A(e);return!!(t&&t.fileName===n&&a<=t.line&&t.line<=s)})}},warn:m,deprecated:function(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),m(n)},CapturedTrace:C,fireDomEvent:W,fireGlobalEvent:X}}},{"./errors":12,"./util":36}],10:[function(e,t,n){t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1];return this.caught(e,function(){throw t})},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var i=arguments[1];i instanceof e&&i.suppressUnhandledRejections();return this.caught(n,function(){return i})}}},{}],11:[function(e,t,n){t.exports=function(e,t){function n(){return o(this)}function i(e,n){return r(e,n,t,t)}var r=e.reduce,o=e.all;e.prototype.each=function(e){return this.mapSeries(e)._then(n,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return r(this,e,t,t)},e.each=function(e,t){return i(e,t)._then(n,void 0,void 0,e,void 0)},e.mapSeries=i}},{}],12:[function(e,t,n){function i(e,t){function n(i){if(!(this instanceof n))return new n(i);f(this,"message","string"==typeof i?i:t),f(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return l(n,Error),n}function r(e){if(!(this instanceof r))return new r(e);f(this,"name","OperationalError"),f(this,"message",e),this.cause=e,this.isOperational=!0,e instanceof Error?(f(this,"message",e.message),f(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}var o,a,s=e("./es5"),c=s.freeze,u=e("./util"),l=u.inherits,f=u.notEnumerableProp,p=i("Warning","warning"),d=i("CancellationError","cancellation error"),h=i("TimeoutError","timeout error"),m=i("AggregateError","aggregate error");try{o=TypeError,a=RangeError}catch(e){o=i("TypeError","type error"),a=i("RangeError","range error")}for(var v="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),b=0;b<v.length;++b)"function"==typeof Array.prototype[v[b]]&&(m.prototype[v[b]]=Array.prototype[v[b]]);s.defineProperty(m.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),m.prototype.isOperational=!0;var y=0;m.prototype.toString=function(){var e=Array(4*y+1).join(" "),t="\n"+e+"AggregateError of:\n";y++,e=Array(4*y+1).join(" ");for(var n=0;n<this.length;++n){for(var i=this[n]===this?"[Circular AggregateError]":this[n]+"",r=i.split("\n"),o=0;o<r.length;++o)r[o]=e+r[o];t+=(i=r.join("\n"))+"\n"}return y--,t},l(r,Error);var g=Error.__BluebirdErrorTypes__;g||(g=c({CancellationError:d,TimeoutError:h,OperationalError:r,RejectionError:r,AggregateError:m}),s.defineProperty(Error,"__BluebirdErrorTypes__",{value:g,writable:!1,enumerable:!1,configurable:!1})),t.exports={Error:Error,TypeError:o,RangeError:a,CancellationError:g.CancellationError,OperationalError:g.OperationalError,TimeoutError:g.TimeoutError,AggregateError:g.AggregateError,Warning:p}},{"./es5":13,"./util":36}],13:[function(e,t,n){var i=function(){return void 0===this}();if(i)t.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:i,propertyIsWritable:function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!(n&&!n.writable&&!n.set)}};else{var r={}.hasOwnProperty,o={}.toString,a={}.constructor.prototype,s=function(e){var t=[];for(var n in e)r.call(e,n)&&t.push(n);return t};t.exports={isArray:function(e){try{return"[object Array]"===o.call(e)}catch(e){return!1}},keys:s,names:s,defineProperty:function(e,t,n){return e[t]=n.value,e},getDescriptor:function(e,t){return{value:e[t]}},freeze:function(e){return e},getPrototypeOf:function(e){try{return Object(e).constructor.prototype}catch(e){return a}},isES5:i,propertyIsWritable:function(){return!0}}}},{}],14:[function(e,t,n){t.exports=function(e,t){var n=e.map;e.prototype.filter=function(e,i){return n(this,e,i,t)},e.filter=function(e,i,r){return n(e,i,r,t)}}},{}],15:[function(e,t,n){t.exports=function(t,n){function i(e,t,n){this.promise=e,this.type=t,this.handler=n,this.called=!1,this.cancelPromise=null}function r(e){this.finallyHandler=e}function o(e,t){return null!=e.cancelPromise&&(arguments.length>1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function a(){return c.call(this,this.promise._target()._settledValue())}function s(e){if(!o(this,e))return f.e=e,f}function c(e){var i=this.promise,c=this.handler;if(!this.called){this.called=!0;var u=this.isFinallyHandler()?c.call(i._boundValue()):c.call(i._boundValue(),e);if(void 0!==u){i._setReturnedNonUndefined();var p=n(u,i);if(p instanceof t){if(null!=this.cancelPromise){if(p.isCancelled()){var d=new l("late cancellation observer");return i._attachExtraTrace(d),f.e=d,f}p.isPending()&&p._attachCancellationCallback(new r(this))}return p._then(a,s,void 0,this,void 0)}}}return i.isRejected()?(o(this),f.e=e,f):(o(this),e)}var u=e("./util"),l=t.CancellationError,f=u.errorObj;return i.prototype.isFinallyHandler=function(){return 0===this.type},r.prototype._resultCancelled=function(){o(this.finallyHandler)},t.prototype._passThrough=function(e,t,n,r){return"function"!=typeof e?this.then():this._then(n,r,void 0,new i(this,t,e),void 0)},t.prototype.lastly=t.prototype.finally=function(e){return this._passThrough(e,0,c,c)},t.prototype.tap=function(e){return this._passThrough(e,1,c)},i}},{"./util":36}],16:[function(e,t,n){t.exports=function(t,n,i,r,o,a){function s(e,n,i){for(var o=0;o<n.length;++o){i._pushContext();var a=p(n[o])(e);if(i._popContext(),a===f){i._pushContext();var s=t.reject(f.e);return i._popContext(),s}var c=r(a,i);if(c instanceof t)return c}return null}function c(e,n,r,o){var a=this._promise=new t(i);a._captureStackTrace(),a._setOnCancel(this),this._stack=o,this._generatorFunction=e,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"==typeof r?[r].concat(d):d,this._yieldedPromise=null}var u=e("./errors").TypeError,l=e("./util"),f=l.errorObj,p=l.tryCatch,d=[];l.inherits(c,o),c.prototype._isResolved=function(){return null===this._promise},c.prototype._cleanup=function(){this._promise=this._generator=null},c.prototype._promiseCancelled=function(){if(!this._isResolved()){var e;if(void 0!==this._generator.return)this._promise._pushContext(),e=p(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var n=new t.CancellationError("generator .return() sentinel");t.coroutine.returnSentinel=n,this._promise._attachExtraTrace(n),this._promise._pushContext(),e=p(this._generator.throw).call(this._generator,n),this._promise._popContext(),e===f&&e.e===n&&(e=null)}var i=this._promise;this._cleanup(),e===f?i._rejectCallback(e.e,!1):i.cancel()}},c.prototype._promiseFulfilled=function(e){this._yieldedPromise=null,this._promise._pushContext();var t=p(this._generator.next).call(this._generator,e);this._promise._popContext(),this._continue(t)},c.prototype._promiseRejected=function(e){this._yieldedPromise=null,this._promise._attachExtraTrace(e),this._promise._pushContext();var t=p(this._generator.throw).call(this._generator,e);this._promise._popContext(),this._continue(t)},c.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof t){var e=this._yieldedPromise;this._yieldedPromise=null,e.cancel()}},c.prototype.promise=function(){return this._promise},c.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},c.prototype._continue=function(e){var n=this._promise;if(e===f)return this._cleanup(),n._rejectCallback(e.e,!1);var i=e.value;if(!0===e.done)return this._cleanup(),n._resolveCallback(i);var o=r(i,this._promise);if(o instanceof t||null!==(o=s(o,this._yieldHandlers,this._promise))){var a=(o=o._target())._bitField;0==(50397184&a)?(this._yieldedPromise=o,o._proxy(this,null)):0!=(33554432&a)?this._promiseFulfilled(o._value()):0!=(16777216&a)?this._promiseRejected(o._reason()):this._promiseCancelled()}else this._promiseRejected(new u("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",i)+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")))},t.coroutine=function(e,t){if("function"!=typeof e)throw new u("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=Object(t).yieldHandler,i=c,r=(new Error).stack;return function(){var t=e.apply(this,arguments),o=new i(void 0,void 0,n,r),a=o.promise();return o._generator=t,o._promiseFulfilled(void 0),a}},t.coroutine.addYieldHandler=function(e){if("function"!=typeof e)throw new u("expecting a function but got "+l.classString(e));d.push(e)},t.spawn=function(e){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof e)return n("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var i=new c(e,this),r=i.promise();return i._run(t.spawn),r}}},{"./errors":12,"./util":36}],17:[function(e,t,n){t.exports=function(t,n,i,r){var o=e("./util");o.canEvaluate,o.tryCatch,o.errorObj;t.join=function(){var e,t=arguments.length-1;if(t>0&&"function"==typeof arguments[t]){e=arguments[t]}var i=[].slice.call(arguments);e&&i.pop();var r=new n(i).promise();return void 0!==e?r.spread(e):r}}},{"./util":36}],18:[function(e,t,n){t.exports=function(t,n,i,r,o,a){function s(e,t,n,i){this.constructor$(e),this._promise._captureStackTrace();var r=u();this._callback=null===r?t:r.bind(t),this._preservedValues=i===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=n>=1?[]:d,this._init$(void 0,-2)}function c(e,t,n,r){if("function"!=typeof t)return i("expecting a function but got "+l.classString(t));var o="object"===(void 0===n?"undefined":_typeof(n))&&null!==n?n.concurrency:0;return o="number"==typeof o&&isFinite(o)&&o>=1?o:0,new s(e,t,o,r).promise()}var u=t._getDomain,l=e("./util"),f=l.tryCatch,p=l.errorObj,d=[];l.inherits(s,n),s.prototype._init=function(){},s.prototype._promiseFulfilled=function(e,n){var i=this._values,o=this.length(),s=this._preservedValues,c=this._limit;if(n<0){if(n=-1*n-1,i[n]=e,c>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(c>=1&&this._inFlight>=c)return i[n]=e,this._queue.push(n),!1;null!==s&&(s[n]=e);var u=this._promise,l=this._callback,d=u._boundValue();u._pushContext();var h=f(l).call(d,e,n,o),m=u._popContext();if(a.checkForgottenReturns(h,m,null!==s?"Promise.filter":"Promise.map",u),h===p)return this._reject(h.e),!0;var v=r(h,this._promise);if(v instanceof t){var b=(v=v._target())._bitField;if(0==(50397184&b))return c>=1&&this._inFlight++,i[n]=v,v._proxy(this,-1*(n+1)),!1;if(0==(33554432&b))return 0!=(16777216&b)?(this._reject(v._reason()),!0):(this._cancel(),!0);h=v._value()}i[n]=h}return++this._totalResolved>=o&&(null!==s?this._filter(i,s):this._resolve(i),!0)},s.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,n=this._values;e.length>0&&this._inFlight<t;){if(this._isResolved())return;var i=e.pop();this._promiseFulfilled(n[i],i)}},s.prototype._filter=function(e,t){for(var n=t.length,i=new Array(n),r=0,o=0;o<n;++o)e[o]&&(i[r++]=t[o]);i.length=r,this._resolve(i)},s.prototype.preservedValues=function(){return this._preservedValues},t.prototype.map=function(e,t){return c(this,e,t,null)},t.map=function(e,t,n,i){return c(e,t,n,i)}}},{"./util":36}],19:[function(e,t,n){t.exports=function(t,n,i,r,o){var a=e("./util"),s=a.tryCatch;t.method=function(e){if("function"!=typeof e)throw new t.TypeError("expecting a function but got "+a.classString(e));return function(){var i=new t(n);i._captureStackTrace(),i._pushContext();var r=s(e).apply(this,arguments),a=i._popContext();return o.checkForgottenReturns(r,a,"Promise.method",i),i._resolveFromSyncValue(r),i}},t.attempt=t.try=function(e){if("function"!=typeof e)return r("expecting a function but got "+a.classString(e));var i=new t(n);i._captureStackTrace(),i._pushContext();var c;if(arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],l=arguments[2];c=a.isArray(u)?s(e).apply(l,u):s(e).call(l,u)}else c=s(e)();var f=i._popContext();return o.checkForgottenReturns(c,f,"Promise.try",i),i._resolveFromSyncValue(c),i},t.prototype._resolveFromSyncValue=function(e){e===a.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(e,t,n){function i(e){return e instanceof Error&&c.getPrototypeOf(e)===Error.prototype}function r(e){var t;if(i(e)){(t=new s(e)).name=e.name,t.message=e.message,t.stack=e.stack;for(var n=c.keys(e),r=0;r<n.length;++r){var a=n[r];u.test(a)||(t[a]=e[a])}return t}return o.markAsOriginatingFromRejection(e),e}var o=e("./util"),a=o.maybeWrapAsError,s=e("./errors").OperationalError,c=e("./es5"),u=/^(?:name|message|stack|cause)$/;t.exports=function(e,t){return function(n,i){if(null!==e){if(n){var o=r(a(n));e._attachExtraTrace(o),e._reject(o)}else if(t){var s=[].slice.call(arguments,1);e._fulfill(s)}else e._fulfill(i);e=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(e,t,n){t.exports=function(t){function n(e,t){var n=this;if(!o.isArray(e))return i.call(n,e,t);var r=s(t).apply(n._boundValue(),[null].concat(e));r===c&&a.throwLater(r.e)}function i(e,t){var n=this._boundValue(),i=void 0===e?s(t).call(n,null):s(t).call(n,null,e);i===c&&a.throwLater(i.e)}function r(e,t){var n=this;if(!e){var i=new Error(e+"");i.cause=e,e=i}var r=s(t).call(n._boundValue(),e);r===c&&a.throwLater(r.e)}var o=e("./util"),a=t._async,s=o.tryCatch,c=o.errorObj;t.prototype.asCallback=t.prototype.nodeify=function(e,t){if("function"==typeof e){var o=i;void 0!==t&&Object(t).spread&&(o=n),this._then(o,r,void 0,this,e)}return this}}},{"./util":36}],22:[function(t,n,i){n.exports=function(){function n(){}function i(e,t){if("function"!=typeof t)throw new y("expecting a function but got "+d.classString(t));if(e.constructor!==r)throw new y("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n")}function r(e){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,e!==_&&(i(this,e),this._resolveFromExecutor(e)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function o(e){this.promise._resolveCallback(e)}function a(e){this.promise._rejectCallback(e,!1)}function s(e){var t=new r(_);t._fulfillmentHandler0=e,t._rejectionHandler0=e,t._promise0=e,t._receiver0=e}var c,u=function(){return new y("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},l=function(){return new r.PromiseInspection(this._target())},f=function(e){return r.reject(new y(e))},p={},d=t("./util");c=d.isNode?function(){var t=e.domain;return void 0===t&&(t=null),t}:function(){return null},d.notEnumerableProp(r,"_getDomain",c);var h=t("./es5"),m=t("./async"),v=new m;h.defineProperty(r,"_async",{value:v});var b=t("./errors"),y=r.TypeError=b.TypeError;r.RangeError=b.RangeError;var g=r.CancellationError=b.CancellationError;r.TimeoutError=b.TimeoutError,r.OperationalError=b.OperationalError,r.RejectionError=b.OperationalError,r.AggregateError=b.AggregateError;var _=function(){},x={},w={},k=t("./thenables")(r,_),j=t("./promise_array")(r,_,k,f,n),S=t("./context")(r),E=S.create,A=t("./debuggability")(r,S),C=(A.CapturedTrace,t("./finally")(r,k)),M=t("./catch_filter")(w),T=t("./nodeback"),P=d.errorObj,F=d.tryCatch;return r.prototype.toString=function(){return"[object Promise]"},r.prototype.caught=r.prototype.catch=function(e){var t=arguments.length;if(t>1){var n,i=new Array(t-1),r=0;for(n=0;n<t-1;++n){var o=arguments[n];if(!d.isObject(o))return f("expecting an object but got "+d.classString(o));i[r++]=o}return i.length=r,e=arguments[n],this.then(void 0,M(i,e,this))}return this.then(void 0,e)},r.prototype.reflect=function(){return this._then(l,l,void 0,this,void 0)},r.prototype.then=function(e,t){if(A.warnings()&&arguments.length>0&&"function"!=typeof e&&"function"!=typeof t){var n=".then() only accepts functions but was passed: "+d.classString(e);arguments.length>1&&(n+=", "+d.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},r.prototype.done=function(e,t){this._then(e,t,void 0,void 0,void 0)._setIsFinal()},r.prototype.spread=function(e){return"function"!=typeof e?f("expecting a function but got "+d.classString(e)):this.all()._then(e,void 0,void 0,x,void 0)},r.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},r.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new j(this).promise()},r.prototype.error=function(e){return this.caught(d.originatesFromRejection,e)},r.is=function(e){return e instanceof r},r.fromNode=r.fromCallback=function(e){var t=new r(_);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,i=F(e)(T(t,n));return i===P&&t._rejectCallback(i.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},r.all=function(e){return new j(e).promise()},r.cast=function(e){var t=k(e);return t instanceof r||((t=new r(_))._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},r.resolve=r.fulfilled=r.cast,r.reject=r.rejected=function(e){var t=new r(_);return t._captureStackTrace(),t._rejectCallback(e,!0),t},r.setScheduler=function(e){if("function"!=typeof e)throw new y("expecting a function but got "+d.classString(e));var t=v._schedule;return v._schedule=e,t},r.prototype._then=function(e,t,n,i,o){var a=void 0!==o,s=a?o:new r(_),u=this._target(),l=u._bitField;a||(s._propagateFrom(this,3),s._captureStackTrace(),void 0===i&&0!=(2097152&this._bitField)&&(i=0!=(50397184&l)?this._boundValue():u===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,s));var f=c();if(0!=(50397184&l)){var p,d,h=u._settlePromiseCtx;0!=(33554432&l)?(d=u._rejectionHandler0,p=e):0!=(16777216&l)?(d=u._fulfillmentHandler0,p=t,u._unsetRejectionIsUnhandled()):(h=u._settlePromiseLateCancellationObserver,d=new g("late cancellation observer"),u._attachExtraTrace(d),p=t),v.invoke(h,u,{handler:null===f?p:"function"==typeof p&&f.bind(p),promise:s,receiver:i,value:d})}else u._addCallbacks(e,t,s,i,f);return s},r.prototype._length=function(){return 65535&this._bitField},r.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},r.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},r.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},r.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},r.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},r.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},r.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},r.prototype._isFinal=function(){return(4194304&this._bitField)>0},r.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},r.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},r.prototype._setAsyncGuaranteed=function(){this._bitField=134217728|this._bitField},r.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==p)return void 0===t&&this._isBound()?this._boundValue():t},r.prototype._promiseAt=function(e){return this[4*e-4+2]},r.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},r.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},r.prototype._boundValue=function(){},r.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,n=e._rejectionHandler0,i=e._promise0,r=e._receiverAt(0);void 0===r&&(r=p),this._addCallbacks(t,n,i,r,null)},r.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),i=e._rejectionHandlerAt(t),r=e._promiseAt(t),o=e._receiverAt(t);void 0===o&&(o=p),this._addCallbacks(n,i,r,o,null)},r.prototype._addCallbacks=function(e,t,n,i,r){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=i,"function"==typeof e&&(this._fulfillmentHandler0=null===r?e:r.bind(e)),"function"==typeof t&&(this._rejectionHandler0=null===r?t:r.bind(t));else{var a=4*o-4;this[a+2]=n,this[a+3]=i,"function"==typeof e&&(this[a+0]=null===r?e:r.bind(e)),"function"==typeof t&&(this[a+1]=null===r?t:r.bind(t))}return this._setLength(o+1),o},r.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},r.prototype._resolveCallback=function(e,t){if(0==(117506048&this._bitField)){if(e===this)return this._rejectCallback(u(),!1);var n=k(e,this);if(!(n instanceof r))return this._fulfill(e);t&&this._propagateFrom(n,2);var i=n._target(),o=i._bitField;if(0==(50397184&o)){var a=this._length();a>0&&i._migrateCallback0(this);for(var s=1;s<a;++s)i._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(i)}else if(0!=(33554432&o))this._fulfill(i._value());else if(0!=(16777216&o))this._reject(i._reason());else{var c=new g("late cancellation observer");i._attachExtraTrace(c),this._reject(c)}}},r.prototype._rejectCallback=function(e,t,n){var i=d.ensureErrorObject(e),r=i===e;if(!r&&!n&&A.warnings()){var o="a promise was rejected with a non-error: "+d.classString(e);this._warn(o,!0)}this._attachExtraTrace(i,!!t&&r),this._reject(e)},r.prototype._resolveFromExecutor=function(e){var t=this;this._captureStackTrace(),this._pushContext();var n=!0,i=this._execute(e,function(e){t._resolveCallback(e)},function(e){t._rejectCallback(e,n)});n=!1,this._popContext(),void 0!==i&&t._rejectCallback(i,!0)},r.prototype._settlePromiseFromHandler=function(e,t,n,i){var r=i._bitField;if(0==(65536&r)){i._pushContext();var o;t===x?n&&"number"==typeof n.length?o=F(e).apply(this._boundValue(),n):(o=P).e=new y("cannot .spread() a non-array: "+d.classString(n)):o=F(e).call(t,n);var a=i._popContext();if(0==(65536&(r=i._bitField)))if(o===w)i._reject(n);else if(o===P||o===i){var s=o===i?u():o.e;i._rejectCallback(s,!1)}else A.checkForgottenReturns(o,a,"",i,this),i._resolveCallback(o)}},r.prototype._target=function(){for(var e=this;e._isFollowing();)e=e._followee();return e},r.prototype._followee=function(){return this._rejectionHandler0},r.prototype._setFollowee=function(e){this._rejectionHandler0=e},r.prototype._settlePromise=function(e,t,i,o){var a=e instanceof r,s=this._bitField,c=0!=(134217728&s);0!=(65536&s)?(a&&e._invokeInternalOnCancel(),i instanceof C&&i.isFinallyHandler()?(i.cancelPromise=e,F(t).call(i,o)===P&&e._reject(P.e)):t===l?e._fulfill(l.call(i)):i instanceof n?i._promiseCancelled(e):a||e instanceof j?e._cancel():i.cancel()):"function"==typeof t?a?(c&&e._setAsyncGuaranteed(),this._settlePromiseFromHandler(t,i,o,e)):t.call(i,o,e):i instanceof n?i._isResolved()||(0!=(33554432&s)?i._promiseFulfilled(o,e):i._promiseRejected(o,e)):a&&(c&&e._setAsyncGuaranteed(),0!=(33554432&s)?e._fulfill(o):e._reject(o))},r.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler,n=e.promise,i=e.receiver,o=e.value;"function"==typeof t?n instanceof r?this._settlePromiseFromHandler(t,i,o,n):t.call(i,o,n):n instanceof r&&n._reject(o)},r.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)},r.prototype._settlePromise0=function(e,t,n){var i=this._promise0,r=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(i,e,r,t)},r.prototype._clearCallbackDataAtIndex=function(e){var t=4*e-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=void 0},r.prototype._fulfill=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(e===this){var n=u();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(0!=(134217728&t)?this._settlePromises():v.settlePromises(this))}},r.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return v.fatalError(e,d.isNode);(65535&t)>0?0!=(134217728&t)?this._settlePromises():v.settlePromises(this):this._ensurePossibleRejectionHandled()}},r.prototype._fulfillPromises=function(e,t){for(var n=1;n<e;n++){var i=this._fulfillmentHandlerAt(n),r=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(r,i,o,t)}},r.prototype._rejectPromises=function(e,t){for(var n=1;n<e;n++){var i=this._rejectionHandlerAt(n),r=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(r,i,o,t)}},r.prototype._settlePromises=function(){var e=this._bitField,t=65535&e;if(t>0){if(0!=(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var i=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,i,e),this._fulfillPromises(t,i)}this._setLength(0)}this._clearCancellationData()},r.prototype._settledValue=function(){var e=this._bitField;return 0!=(33554432&e)?this._rejectionHandler0:0!=(16777216&e)?this._fulfillmentHandler0:void 0},r.defer=r.pending=function(){return A.deprecated("Promise.defer","new Promise"),{promise:new r(_),resolve:o,reject:a}},d.notEnumerableProp(r,"_makeSelfResolutionError",u),t("./method")(r,_,k,f,A),t("./bind")(r,_,k,A),t("./cancel")(r,j,f,A),t("./direct_resolve")(r),t("./synchronous_inspection")(r),t("./join")(r,j,k,_,A),r.Promise=r,t("./map.js")(r,j,f,k,_,A),t("./using.js")(r,f,k,E,_,A),t("./timers.js")(r,_,A),t("./generators.js")(r,f,_,k,n,A),t("./nodeify.js")(r),t("./call_get.js")(r),t("./props.js")(r,j,k,f),t("./race.js")(r,_,k,f),t("./reduce.js")(r,j,f,k,_,A),t("./settle.js")(r,j,A),t("./some.js")(r,j,f),t("./promisify.js")(r,_),t("./any.js")(r),t("./each.js")(r,_),t("./filter.js")(r,_),d.toFastProperties(r),d.toFastProperties(r.prototype),s({a:1}),s({b:2}),s({c:3}),s(1),s(function(){}),s(void 0),s(!1),s(new r(_)),A.setBounds(m.firstLineError,d.lastLineError),r}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(e,t,n){t.exports=function(t,n,i,r,o){function a(e){switch(e){case-2:return[];case-3:return{}}}function s(e){var i=this._promise=new t(n);e instanceof t&&i._propagateFrom(e,3),i._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var c=e("./util");c.isArray;return c.inherits(s,o),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function e(n,o){var s=i(this._values,this._promise);if(s instanceof t){var u=(s=s._target())._bitField;if(this._values=s,0==(50397184&u))return this._promise._setAsyncGuaranteed(),s._then(e,this._reject,void 0,this,o);if(0==(33554432&u))return 0!=(16777216&u)?this._reject(s._reason()):this._cancel();s=s._value()}if(null!==(s=c.asArray(s)))0!==s.length?this._iterate(s):-5===o?this._resolveEmptyArray():this._resolve(a(o));else{var l=r("expecting an array or an iterable object but got "+c.classString(s)).reason();this._promise._rejectCallback(l,!1)}},s.prototype._iterate=function(e){var n=this.getActualLength(e.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var r=this._promise,o=!1,a=null,s=0;s<n;++s){var c=i(e[s],r);a=c instanceof t?(c=c._target())._bitField:null,o?null!==a&&c.suppressUnhandledRejections():null!==a?0==(50397184&a)?(c._proxy(this,s),this._values[s]=c):o=0!=(33554432&a)?this._promiseFulfilled(c._value(),s):0!=(16777216&a)?this._promiseRejected(c._reason(),s):this._promiseCancelled(s):o=this._promiseFulfilled(c,s)}o||r._setAsyncGuaranteed()},s.prototype._isResolved=function(){return null===this._values},s.prototype._resolve=function(e){this._values=null,this._promise._fulfill(e)},s.prototype._cancel=function(){!this._isResolved()&&this._promise.isCancellable()&&(this._values=null,this._promise._cancel())},s.prototype._reject=function(e){this._values=null,this._promise._rejectCallback(e,!1)},s.prototype._promiseFulfilled=function(e,t){return this._values[t]=e,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var n=0;n<e.length;++n)e[n]instanceof t&&e[n].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(e){return e},s}},{"./util":36}],24:[function(e,t,n){t.exports=function(t,n){function i(e){return!_.test(e)}function r(e){try{return!0===e.__isPromisified__}catch(e){return!1}}function o(e,t,n){var i=p.getDataPropertyOrDefault(e,t+n,y);return!!i&&r(i)}function a(e,t,n){for(var i=0;i<e.length;i+=2){var r=e[i];if(n.test(r))for(var o=r.replace(n,""),a=0;a<e.length;a+=2)if(e[a]===o)throw new b("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",t))}}function s(e,t,n,i){for(var s=p.inheritedDataKeys(e),c=[],u=0;u<s.length;++u){var l=s[u],f=e[l],d=i===x||x(l,f,e);"function"!=typeof f||r(f)||o(e,l,t)||!i(l,f,e,d)||c.push(l,f)}return a(c,t,n),c}function c(e,t,n,i,r){for(var o=new RegExp(w(t)+"$"),a=s(e,t,o,n),c=0,u=a.length;c<u;c+=2){var l=a[c],d=a[c+1],h=l+t;if(i===k)e[h]=k(l,f,l,d,t,r);else{var m=i(d,function(){return k(l,f,l,d,t,r)});p.notEnumerableProp(m,"__isPromisified__",!0),e[h]=m}}return p.toFastProperties(e),e}function u(e,t,n){return k(e,t,void 0,e,null,n)}var l,f={},p=e("./util"),d=e("./nodeback"),h=p.withAppended,m=p.maybeWrapAsError,v=p.canEvaluate,b=e("./errors").TypeError,y={__isPromisified__:!0},g=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],_=new RegExp("^(?:"+g.join("|")+")$"),x=function(e){return p.isIdentifier(e)&&"_"!==e.charAt(0)&&"constructor"!==e},w=function(e){return e.replace(/([$])/,"\\$")},k=v?l:function(e,i,r,o,a,s){function c(){var r=i;i===f&&(r=this);var o=new t(n);o._captureStackTrace();var a="string"==typeof l&&this!==u?this[l]:e,c=d(o,s);try{a.apply(r,h(arguments,c))}catch(e){o._rejectCallback(m(e),!0,!0)}return o._isFateSealed()||o._setAsyncGuaranteed(),o}var u=function(){return this}(),l=e;return"string"==typeof l&&(e=o),p.notEnumerableProp(c,"__isPromisified__",!0),c};t.promisify=function(e,t){if("function"!=typeof e)throw new b("expecting a function but got "+p.classString(e));if(r(e))return e;var n=u(e,void 0===(t=Object(t)).context?f:t.context,!!t.multiArgs);return p.copyDescriptors(e,n,i),n},t.promisifyAll=function(e,t){if("function"!=typeof e&&"object"!==(void 0===e?"undefined":_typeof(e)))throw new b("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");var n=!!(t=Object(t)).multiArgs,i=t.suffix;"string"!=typeof i&&(i="Async");var r=t.filter;"function"!=typeof r&&(r=x);var o=t.promisifier;if("function"!=typeof o&&(o=k),!p.isIdentifier(i))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var a=p.inheritedDataKeys(e),s=0;s<a.length;++s){var u=e[a[s]];"constructor"!==a[s]&&p.isClass(u)&&(c(u.prototype,i,r,o,n),c(u,i,r,o,n))}return c(e,i,r,o,n)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(e,t,n){t.exports=function(t,n,i,r){function o(e){var t,n=!1;if(void 0!==s&&e instanceof s)t=f(e),n=!0;else{var i=l.keys(e),r=i.length;t=new Array(2*r);for(var o=0;o<r;++o){var a=i[o];t[o]=e[a],t[o+r]=a}}this.constructor$(t),this._isMap=n,this._init$(void 0,-3)}function a(e){var n,a=i(e);return u(a)?(n=a instanceof t?a._then(t.props,void 0,void 0,void 0,void 0):new o(a).promise(),a instanceof t&&n._propagateFrom(a,2),n):r("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}var s,c=e("./util"),u=c.isObject,l=e("./es5");"function"==typeof Map&&(s=Map);var f=function(){function e(e,i){this[t]=e,this[t+n]=i,t++}var t=0,n=0;return function(i){n=i.size,t=0;var r=new Array(2*i.size);return i.forEach(e,r),r}}(),p=function(e){for(var t=new s,n=e.length/2|0,i=0;i<n;++i){var r=e[n+i],o=e[i];t.set(r,o)}return t};c.inherits(o,n),o.prototype._init=function(){},o.prototype._promiseFulfilled=function(e,t){if(this._values[t]=e,++this._totalResolved>=this._length){var n;if(this._isMap)n=p(this._values);else{n={};for(var i=this.length(),r=0,o=this.length();r<o;++r)n[this._values[r+i]]=this._values[r]}return this._resolve(n),!0}return!1},o.prototype.shouldCopyValues=function(){return!1},o.prototype.getActualLength=function(e){return e>>1},t.prototype.props=function(){return a(this)},t.props=function(e){return a(e)}}},{"./es5":13,"./util":36}],26:[function(e,t,n){function i(e,t,n,i,r){for(var o=0;o<r;++o)n[o+i]=e[o+t],e[o+t]=void 0}function r(e){this._capacity=e,this._length=0,this._front=0}r.prototype._willBeOverCapacity=function(e){return this._capacity<e},r.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1),this[this._front+t&this._capacity-1]=e,this._length=t+1},r.prototype._unshiftOne=function(e){var t=this._capacity;this._checkCapacity(this.length()+1);var n=(this._front-1&t-1^t)-t;this[n]=e,this._front=n,this._length=this.length()+1},r.prototype.unshift=function(e,t,n){this._unshiftOne(n),this._unshiftOne(t),this._unshiftOne(e)},r.prototype.push=function(e,t,n){var i=this.length()+3;if(this._willBeOverCapacity(i))return this._pushOne(e),this._pushOne(t),void this._pushOne(n);var r=this._front+i-3;this._checkCapacity(i);var o=this._capacity-1;this[r+0&o]=e,this[r+1&o]=t,this[r+2&o]=n,this._length=i},r.prototype.shift=function(){var e=this._front,t=this[e];return this[e]=void 0,this._front=e+1&this._capacity-1,this._length--,t},r.prototype.length=function(){return this._length},r.prototype._checkCapacity=function(e){this._capacity<e&&this._resizeTo(this._capacity<<1)},r.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e,i(this,0,this,t,this._front+this._length&t-1)},t.exports=r},{}],27:[function(e,t,n){t.exports=function(t,n,i,r){function o(e,o){var c=i(e);if(c instanceof t)return s(c);if(null===(e=a.asArray(e)))return r("expecting an array or an iterable object but got "+a.classString(e));var u=new t(n);void 0!==o&&u._propagateFrom(o,3);for(var l=u._fulfill,f=u._reject,p=0,d=e.length;p<d;++p){var h=e[p];(void 0!==h||p in e)&&t.cast(h)._then(l,f,void 0,u,null)}return u}var a=e("./util"),s=function(e){return e.then(function(t){return o(t,e)})};t.race=function(e){return o(e,void 0)},t.prototype.race=function(){return o(this,void 0)}}},{"./util":36}],28:[function(e,t,n){t.exports=function(t,n,i,r,o,a){function s(e,n,i,r){this.constructor$(e);var a=p();this._fn=null===a?n:a.bind(n),void 0!==i&&(i=t.resolve(i))._attachCancellationCallback(this),this._initialValue=i,this._currentCancellable=null,this._eachValues=r===o?[]:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function c(e,t){this.isFulfilled()?t._resolve(e):t._reject(e)}function u(e,t,n,r){return"function"!=typeof t?i("expecting a function but got "+d.classString(t)):new s(e,t,n,r).promise()}function l(e){this.accum=e,this.array._gotAccum(e);var n=r(this.value,this.array._promise);return n instanceof t?(this.array._currentCancellable=n,n._then(f,void 0,void 0,this,void 0)):f.call(this,n)}function f(e){var n=this.array,i=n._promise,r=h(n._fn);i._pushContext();var o;(o=void 0!==n._eachValues?r.call(i._boundValue(),e,this.index,this.length):r.call(i._boundValue(),this.accum,e,this.index,this.length))instanceof t&&(n._currentCancellable=o);var s=i._popContext();return a.checkForgottenReturns(o,s,void 0!==n._eachValues?"Promise.each":"Promise.reduce",i),o}var p=t._getDomain,d=e("./util"),h=d.tryCatch;d.inherits(s,n),s.prototype._gotAccum=function(e){void 0!==this._eachValues&&e!==o&&this._eachValues.push(e)},s.prototype._eachComplete=function(e){return this._eachValues.push(e),this._eachValues},s.prototype._init=function(){},s.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},s.prototype.shouldCopyValues=function(){return!1},s.prototype._resolve=function(e){this._promise._resolveCallback(e),this._values=null},s.prototype._resultCancelled=function(e){if(e===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof t&&this._currentCancellable.cancel(),this._initialValue instanceof t&&this._initialValue.cancel())},s.prototype._iterate=function(e){this._values=e;var n,i,r=e.length;if(void 0!==this._initialValue?(n=this._initialValue,i=0):(n=t.resolve(e[0]),i=1),this._currentCancellable=n,!n.isRejected())for(;i<r;++i){var o={accum:null,value:e[i],index:i,length:r,array:this};n=n._then(l,void 0,void 0,o,void 0)}void 0!==this._eachValues&&(n=n._then(this._eachComplete,void 0,void 0,this,void 0)),n._then(c,c,void 0,n,this)},t.prototype.reduce=function(e,t){return u(this,e,t,null)},t.reduce=function(e,t,n,i){return u(e,t,n,i)}}},{"./util":36}],29:[function(t,n,r){var o,a=t("./util");if(a.isNode&&"undefined"==typeof MutationObserver){var s=i.setImmediate,c=e.nextTick;o=a.isRecentNode?function(e){s.call(i,e)}:function(t){c.call(e,t)}}else o="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&window.navigator.standalone?"undefined"!=typeof setImmediate?function(e){setImmediate(e)}:"undefined"!=typeof setTimeout?function(e){setTimeout(e,0)}:function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}:function(){var e=document.createElement("div"),t={attributes:!0},n=!1,i=document.createElement("div");new MutationObserver(function(){e.classList.toggle("foo"),n=!1}).observe(i,t);var r=function(){n||(n=!0,i.classList.toggle("foo"))};return function(n){var i=new MutationObserver(function(){i.disconnect(),n()});i.observe(e,t),r()}}();n.exports=o},{"./util":36}],30:[function(e,t,n){t.exports=function(t,n,i){function r(e){this.constructor$(e)}var o=t.PromiseInspection;e("./util").inherits(r,n),r.prototype._promiseResolved=function(e,t){return this._values[e]=t,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},r.prototype._promiseFulfilled=function(e,t){var n=new o;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},r.prototype._promiseRejected=function(e,t){var n=new o;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},t.settle=function(e){return i.deprecated(".settle()",".reflect()"),new r(e).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(e,t,n){t.exports=function(t,n,i){function r(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function o(e,t){if((0|t)!==t||t<0)return i("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new r(e),o=n.promise();return n.setHowMany(t),n.init(),o}var a=e("./util"),s=e("./errors").RangeError,c=e("./errors").AggregateError,u=a.isArray,l={};a.inherits(r,n),r.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var e=u(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},r.prototype.init=function(){this._initialized=!0,this._init()},r.prototype.setUnwrap=function(){this._unwrap=!0},r.prototype.howMany=function(){return this._howMany},r.prototype.setHowMany=function(e){this._howMany=e},r.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},r.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},r.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(l),this._checkOutcome())},r.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new c,t=this.length();t<this._values.length;++t)this._values[t]!==l&&e.push(this._values[t]);return e.length>0?this._reject(e):this._cancel(),!0}return!1},r.prototype._fulfilled=function(){return this._totalResolved},r.prototype._rejected=function(){return this._values.length-this.length()},r.prototype._addRejected=function(e){this._values.push(e)},r.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},r.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},r.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new s(t)},r.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(e,t){return o(e,t)},t.prototype.some=function(e){return o(this,e)},t._SomePromiseArray=r}},{"./errors":12,"./util":36}],32:[function(e,t,n){t.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},o=t.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},a=t.prototype.isPending=function(){return 0==(50397184&this._bitField)},s=t.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};t.prototype.isCancelled=e.prototype._isCancelled=function(){return 65536==(65536&this._bitField)},e.prototype.isCancelled=function(){return this._target()._isCancelled()},e.prototype.isPending=function(){return a.call(this._target())},e.prototype.isRejected=function(){return o.call(this._target())},e.prototype.isFulfilled=function(){return r.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),i.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],33:[function(e,t,n){t.exports=function(t,n){function i(e){return e.then}function r(e){try{return i(e)}catch(e){return c.e=e,c}}function o(e){return l.call(e,"_promise0")}function a(e,i,r){var o=new t(n),a=o;r&&r._pushContext(),o._captureStackTrace(),r&&r._popContext();var u=!0,l=s.tryCatch(i).call(e,function(e){o&&(o._resolveCallback(e),o=null)},function(e){o&&(o._rejectCallback(e,u,!0),o=null)});return u=!1,o&&l===c&&(o._rejectCallback(l.e,!0,!0),o=null),a}var s=e("./util"),c=s.errorObj,u=s.isObject,l={}.hasOwnProperty;return function(e,i){if(u(e)){if(e instanceof t)return e;var s=r(e);if(s===c)return i&&i._pushContext(),l=t.reject(s.e),i&&i._popContext(),l;if("function"==typeof s){if(o(e)){var l=new t(n);return e._then(l._fulfill,l._reject,void 0,l,null),l}return a(e,s,i)}}return e}}},{"./util":36}],34:[function(e,t,n){t.exports=function(t,n,i){function r(e){this.handle=e}function o(e){return clearTimeout(this.handle),e}function a(e){throw clearTimeout(this.handle),e}var s=e("./util"),c=t.TimeoutError;r.prototype._resultCancelled=function(){clearTimeout(this.handle)};var u=function(e){return l(+this).thenReturn(e)},l=t.delay=function(e,o){var a,s;return void 0!==o?(a=t.resolve(o)._then(u,null,null,e,void 0),i.cancellation()&&o instanceof t&&a._setOnCancel(o)):(a=new t(n),s=setTimeout(function(){a._fulfill()},+e),i.cancellation()&&a._setOnCancel(new r(s))),a._setAsyncGuaranteed(),a};t.prototype.delay=function(e){return l(e,this)};var f=function(e,t,n){var i;i="string"!=typeof t?t instanceof Error?t:new c("operation timed out"):new c(t),s.markAsOriginatingFromRejection(i),e._attachExtraTrace(i),e._reject(i),null!=n&&n.cancel()};t.prototype.timeout=function(e,t){e=+e;var n,s,c=new r(setTimeout(function(){n.isPending()&&f(n,t,s)},e));return i.cancellation()?(s=this.then(),(n=s._then(o,a,void 0,c,void 0))._setOnCancel(c)):n=this._then(o,a,void 0,c,void 0),n}}},{"./util":36}],35:[function(e,t,n){t.exports=function(t,n,i,r,o,a){function s(e){setTimeout(function(){throw e},0)}function c(e){var t=i(e);return t!==e&&"function"==typeof e._isDisposable&&"function"==typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}function u(e,n){function r(){if(a>=u)return l._fulfill();var o=c(e[a++]);if(o instanceof t&&o._isDisposable()){try{o=i(o._getDisposer().tryDispose(n),e.promise)}catch(e){return s(e)}if(o instanceof t)return o._then(r,s,null,null,null)}r()}var a=0,u=e.length,l=new t(o);return r(),l}function l(e,t,n){this._data=e,this._promise=t,this._context=n}function f(e,t,n){this.constructor$(e,t,n)}function p(e){return l.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function d(e){this.length=e,this.promise=null,this[e-1]=null}var h=e("./util"),m=e("./errors").TypeError,v=e("./util").inherits,b=h.errorObj,y=h.tryCatch;l.prototype.data=function(){return this._data},l.prototype.promise=function(){return this._promise},l.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():null},l.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;void 0!==n&&n._pushContext();var i=null!==t?this.doDispose(t,e):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,i},l.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},v(f,l),f.prototype.doDispose=function(e,t){return this.data().call(e,e,t)},d.prototype._resultCancelled=function(){for(var e=this.length,n=0;n<e;++n){var i=this[n];i instanceof t&&i.cancel()}},t.using=function(){var e=arguments.length;if(e<2)return n("you must pass at least 2 arguments to Promise.using");var r=arguments[e-1];if("function"!=typeof r)return n("expecting a function but got "+h.classString(r));var o,s=!0;2===e&&Array.isArray(arguments[0])?(e=(o=arguments[0]).length,s=!1):(o=arguments,e--);for(var c=new d(e),f=0;f<e;++f){var m=o[f];if(l.isDisposer(m)){var v=m;(m=m.promise())._setDisposable(v)}else{var g=i(m);g instanceof t&&(m=g._then(p,null,null,{resources:c,index:f},void 0))}c[f]=m}for(var _=new Array(c.length),f=0;f<_.length;++f)_[f]=t.resolve(c[f]).reflect();var x=t.all(_).then(function(e){for(var t=0;t<e.length;++t){var n=e[t];if(n.isRejected())return b.e=n.error(),b;if(!n.isFulfilled())return void x.cancel();e[t]=n.value()}w._pushContext(),r=y(r);var i=s?r.apply(void 0,e):r(e),o=w._popContext();return a.checkForgottenReturns(i,o,"Promise.using",w),i}),w=x.lastly(function(){var e=new t.PromiseInspection(x);return u(c,e)});return c.promise=w,w._setOnCancel(c),w},t.prototype._setDisposable=function(e){this._bitField=131072|this._bitField,this._disposer=e},t.prototype._isDisposable=function(){return(131072&this._bitField)>0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},t.prototype.disposer=function(e){if("function"==typeof e)return new f(e,this,r());throw new m}}},{"./errors":12,"./util":36}],36:[function(t,n,r){function o(){try{var e=M;return M=null,e.apply(this,arguments)}catch(e){return C.e=e,C}}function a(e){return M=e,o}function s(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function c(e){return"function"==typeof e||"object"===(void 0===e?"undefined":_typeof(e))&&null!==e}function u(e){return s(e)?new Error(y(e)):e}function l(e,t){var n,i=e.length,r=new Array(i+1);for(n=0;n<i;++n)r[n]=e[n];return r[n]=t,r}function f(e,t,n){if(!E.isES5)return{}.hasOwnProperty.call(e,t)?e[t]:void 0;var i=Object.getOwnPropertyDescriptor(e,t);return null!=i?null==i.get&&null==i.set?i.value:n:void 0}function p(e,t,n){if(s(e))return e;var i={value:n,configurable:!0,enumerable:!1,writable:!0};return E.defineProperty(e,t,i),e}function d(e){throw e}function h(e){try{if("function"==typeof e){var t=E.names(e.prototype),n=E.isES5&&t.length>1,i=t.length>0&&!(1===t.length&&"constructor"===t[0]),r=I.test(e+"")&&E.names(e).length>0;if(n||i||r)return!0}return!1}catch(e){return!1}}function m(e){function t(){}t.prototype=e;for(var n=8;n--;)new t;return e}function v(e){return B.test(e)}function b(e,t,n){for(var i=new Array(e),r=0;r<e;++r)i[r]=t+r+n;return i}function y(e){try{return e+""}catch(e){return"[no string representation]"}}function g(e){return null!==e&&"object"===(void 0===e?"undefined":_typeof(e))&&"string"==typeof e.message&&"string"==typeof e.name}function _(e){try{p(e,"isOperational",!0)}catch(e){}}function x(e){return null!=e&&(e instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===e.isOperational)}function w(e){return g(e)&&E.propertyIsWritable(e,"stack")}function k(e){return{}.toString.call(e)}function j(e,t,n){for(var i=E.names(e),r=0;r<i.length;++r){var o=i[r];if(n(o))try{E.defineProperty(t,o,E.getDescriptor(e,o))}catch(e){}}}function S(t,n){return D?e.env[t]:n}var E=t("./es5"),A="undefined"==typeof navigator,C={e:{}},M,T="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i?i:void 0!==this?this:null,P=function(e,t){function n(){this.constructor=e,this.constructor$=t;for(var n in t.prototype)i.call(t.prototype,n)&&"$"!==n.charAt(n.length-1)&&(this[n+"$"]=t.prototype[n])}var i={}.hasOwnProperty;return n.prototype=t.prototype,e.prototype=new n,e.prototype},F=function(){var e=[Array.prototype,Object.prototype,Function.prototype],t=function(t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1};if(E.isES5){var n=Object.getOwnPropertyNames;return function(e){for(var i=[],r=Object.create(null);null!=e&&!t(e);){var o;try{o=n(e)}catch(e){return i}for(var a=0;a<o.length;++a){var s=o[a];if(!r[s]){r[s]=!0;var c=Object.getOwnPropertyDescriptor(e,s);null!=c&&null==c.get&&null==c.set&&i.push(s)}}e=E.getPrototypeOf(e)}return i}}var i={}.hasOwnProperty;return function(n){if(t(n))return[];var r=[];e:for(var o in n)if(i.call(n,o))r.push(o);else{for(var a=0;a<e.length;++a)if(i.call(e[a],o))continue e;r.push(o)}return r}}(),I=/this\s*\.\s*\S+\s*=/,B=/^[a-z$_][a-z$_0-9]*$/i,R="stack"in new Error?function(e){return w(e)?e:new Error(y(e))}:function(e){if(w(e))return e;try{throw new Error(y(e))}catch(e){return e}},O=function(e){return E.isArray(e)?e:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var N="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){for(var t,n=[],i=e[Symbol.iterator]();!(t=i.next()).done;)n.push(t.value);return n};O=function(e){return E.isArray(e)?e:null!=e&&"function"==typeof e[Symbol.iterator]?N(e):null}}var D=void 0!==e&&"[object process]"===k(e).toLowerCase(),L={isClass:h,isIdentifier:v,inheritedDataKeys:F,getDataPropertyOrDefault:f,thrower:d,isArray:E.isArray,asArray:O,notEnumerableProp:p,isPrimitive:s,isObject:c,isError:g,canEvaluate:A,errorObj:C,tryCatch:a,inherits:P,withAppended:l,maybeWrapAsError:u,toFastProperties:m,filledRange:b,toString:y,canAttachTrace:w,ensureErrorObject:R,originatesFromRejection:x,markAsOriginatingFromRejection:_,classString:k,copyDescriptors:j,hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:D,env:S,global:T};L.isRecentNode=L.isNode&&function(){var t=e.versions.node.split(".").map(Number);return 0===t[0]&&t[1]>10||t[0]>0}(),L.isNode&&L.toFastProperties(e);try{throw new Error}catch(e){L.lastLineError=e}n.exports=L},{"./es5":13}]},{},[4])(4)})),typeof window!="undefined"&&window!==null?window.P=window.Promise:typeof self!="undefined"&&self!==null&&(self.P=self.Promise);}).call(this,e("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{});},{_process:120}],216:[function(e,t,n){ arguments[4][16][0].apply(n,arguments) },{crypto:17,dup:16}],217:[function(e,t,n){ arguments[4][67][0].apply(n,arguments) },{"../package.json":232,"./elliptic/curve":220,"./elliptic/curves":223,"./elliptic/ec":224,"./elliptic/eddsa":227,"./elliptic/utils":231,brorand:216,dup:67}],218:[function(e,t,n){ arguments[4][68][0].apply(n,arguments) },{"../../elliptic":217,"bn.js":"BN",dup:68}],219:[function(e,t,n){ arguments[4][69][0].apply(n,arguments) },{"../../elliptic":217,"../curve":220,"bn.js":"BN",dup:69,inherits:240}],220:[function(e,t,n){ arguments[4][70][0].apply(n,arguments);},{"./base":218,"./edwards":219,"./mont":221,"./short":222,dup:70}],221:[function(e,t,n){ arguments[4][71][0].apply(n,arguments);},{"../../elliptic":217,"../curve":220,"bn.js":"BN",dup:71,inherits:240}],222:[function(e,t,n){ arguments[4][72][0].apply(n,arguments);},{"../../elliptic":217,"../curve":220,"bn.js":"BN",dup:72,inherits:240}],223:[function(e,t,n){ arguments[4][73][0].apply(n,arguments) },{"../elliptic":217,"./precomputed/secp256k1":230,dup:73,"hash.js":86}],224:[function(e,t,n){ arguments[4][74][0].apply(n,arguments);},{"../../elliptic":217,"./key":225,"./signature":226,"bn.js":"BN",dup:74,"hmac-drbg":239}],225:[function(e,t,n){ arguments[4][75][0].apply(n,arguments);},{"../../elliptic":217,"bn.js":"BN",dup:75}],226:[function(e,t,n){ arguments[4][76][0].apply(n,arguments);},{"../../elliptic":217,"bn.js":"BN",dup:76}],227:[function(e,t,n){ arguments[4][77][0].apply(n,arguments);},{"../../elliptic":217,"./key":228,"./signature":229,dup:77,"hash.js":86}],228:[function(e,t,n){ arguments[4][78][0].apply(n,arguments) },{"../../elliptic":217,dup:78}],229:[function(e,t,n){ arguments[4][79][0].apply(n,arguments);},{"../../elliptic":217,"bn.js":"BN",dup:79}],230:[function(e,t,n){ arguments[4][80][0].apply(n,arguments) },{dup:80}],231:[function(e,t,n){ arguments[4][81][0].apply(n,arguments);},{"bn.js":"BN",dup:81,"minimalistic-assert":241,"minimalistic-crypto-utils":242}],232:[function(e,t,n){ t.exports={_args:[[{raw:"elliptic@^6.4.0",scope:null,escapedName:"elliptic",name:"elliptic",rawSpec:"^6.4.0",spec:">=6.4.0 <7.0.0",type:"range"},"/Users/iurimatias/Projects/opensource/web3.js/packages/web3-eth-accounts/node_modules/eth-lib"]],_from:"elliptic@>=6.4.0 <7.0.0",_id:"elliptic@6.4.0",_inCache:!0,_location:"/elliptic",_nodeVersion:"7.0.0",_npmOperationalInternal:{host:"packages-18-east.internal.npmjs.com",tmp:"tmp/elliptic-6.4.0.tgz_1487798866428_0.30510620190761983"},_npmUser:{name:"indutny",email:"fedor@indutny.com"},_npmVersion:"3.10.8",_phantomChildren:{},_requested:{raw:"elliptic@^6.4.0",scope:null,escapedName:"elliptic",name:"elliptic",rawSpec:"^6.4.0",spec:">=6.4.0 <7.0.0",type:"range"},_requiredBy:["/eth-lib"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",_shrinkwrap:null,_spec:"elliptic@^6.4.0",_where:"/Users/iurimatias/Projects/opensource/web3.js/packages/web3-eth-accounts/node_modules/eth-lib",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},directories:{},dist:{shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",tarball:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz"},files:["lib"],gitHead:"6b0d2b76caae91471649c8e21f0b1d3ba0f96090",homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",maintainers:[{name:"indutny",email:"fedor@indutny.com"}],name:"elliptic",optionalDependencies:{},readme:"ERROR: No README data found!",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.0"};},{}],233:[function(e,t,n){ (function(n){ var i=(function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()),r=e("./bytes"),o=e("./nat"),a=e("elliptic"),s=e("./rlp"),c=new a.ec("secp256k1"),u=e("./hash"),l=u.keccak256,f=u.keccak256s,p=function(e){ for(var t=f(e.slice(2)),n="0x",i=0; i<40; i++)n+=parseInt(t[i+2],16)>7?e[i+2].toUpperCase():e[i+2]; return n },d=function(e){ var t=new n(e.slice(2),"hex"),i="0x"+c.keyFromPrivate(t).getPublic(!1,"hex").slice(2),r=l(i); return{address:p("0x"+r.slice(-40)),privateKey:e};},h=function(e){ var t=i(e,3),n=t[0],o=t[1],a=t[2]; return r.flatten([o,a,n]);},m=function(e){ return[r.slice(64,65,e),r.slice(0,32,e),r.slice(32,64,e)] },v=function(e){ return function(t,i){ var o=c.keyFromPrivate(new n(i.slice(2),"hex")).sign(new n(t.slice(2),"hex"),{canonical:!0}); return h([r.pad(1,r.fromNumber(e+o.recoveryParam)),r.pad(32,r.fromNat("0x"+o.r.toString(16))),r.pad(32,r.fromNat("0x"+o.s.toString(16)))]);} },b=v(27),y=function(e,t){ var i=m(t),o={v:r.toNumber(i[0]),r:i[1].slice(2),s:i[2].slice(2)},a="0x"+c.recoverPubKey(new n(e.slice(2),"hex"),o,o.v<2?o.v:1-o.v%2).encode("hex",!1).slice(2),s=l(a); return p("0x"+s.slice(-40)) },g=function(e){ return s.encode([r.fromNat(e.nonce),r.fromNat(e.gasPrice),r.fromNat(e.gas),e.to.toLowerCase(),r.fromNat(e.value),e.data,r.fromNat(e.chainId||"0x1"),"0x","0x"]) }; t.exports={create:function(e){ var t=l(r.concat(r.random(32),e||r.random(32))),n=r.concat(r.concat(r.random(32),t),r.random(32)),i=l(n); return d(i);},toChecksum:p,fromPrivate:d,sign:b,recover:y,signTransaction:function(e,t){ var n=g(e),i=v(2*o.toNumber(e.chainId||"0x1")+35)(l(n),t),r=s.decode(n).slice(0,6).concat(m(i)); return s.encode(r);},recoverTransaction:function(e){ var t=s.decode(e),n=h(t.slice(6,9)),i=r.toNumber(t[6]),o=i<35?[]:[r.fromNumber(i-35>>1),"0x","0x"],a=t.slice(0,6).concat(o),c=s.encode(a); return y(l(c),n) },transactionSigningData:g,encodeSignature:h,decodeSignature:m} }).call(this,e("buffer").Buffer);},{"./bytes":235,"./hash":236,"./nat":237,"./rlp":238,buffer:47,elliptic:217}],234:[function(e,t,n){ var i=function(e,t){ for(var n=[],i=0; i<e; ++i)n.push(t(i)); return n }; t.exports={generate:i,replicate:function(e,t){ return i(e,function(){ return t }) },concat:function(e,t){ return e.concat(t) },flatten:function(e){ for(var t=[],n=0,i=e.length; n<i; ++n)for(var r=0,o=e[n].length; r<o; ++r)t.push(e[n][r]); return t;},chunksOf:function(e,t){ for(var n=[],i=0,r=t.length; i<r; i+=e)n.push(t.slice(i,i+e)); return n;}} },{}],235:[function(e,t,n){ e("./array.js"); var i=function(e,t){ return parseInt(e.slice(2*t+2,2*t+4),16);},r=function(e){ return(e.length-2)/2;},o=function(e){ for(var t=[],n=2,i=e.length; n<i; n+=2)t.push(parseInt(e.slice(n,n+2),16)); return t;},a=function(e){ for(var t="0x",n=0,i=e.length; n<i; ++n){ var r=e[n]; t+=(r<16?"0":"")+r.toString(16) }return t;}; t.exports={random:function(t){ var n=void 0; if(typeof window!="undefined"&&window.crypto&&window.crypto.getRandomValues)n=window.crypto.getRandomValues(new Uint8Array(t)); else{ if(void 0===e)throw"Safe random numbers not available."; n=e("crypto").randomBytes(t);}for(var i="0x",r=0; r<t; ++r)i+=("00"+n[r].toString(16)).slice(-2); return i },length:r,concat:function(e,t){ return e.concat(t.slice(2)) },flatten:function(e){ return"0x"+e.reduce(function(e,t){ return e+t.slice(2);},"") },slice:function(e,t,n){ return"0x"+n.slice(2*e+2,2*t+2) },reverse:function(e){ for(var t="0x",n=0,i=r(e); n<i; ++n)t+=e.slice(2*(i-n),2*(i-n+1)); return t;},pad:function e(t,n){ return n.length===2*t+2?n:e(t,"0x0"+n.slice(2));},padRight:function e(t,n){ return n.length===2*t+2?n:e(t,n+"0") },fromAscii:function(e){ for(var t="0x",n=0; n<e.length; ++n)t+=("00"+e.charCodeAt(n).toString(16)).slice(-2); return t },toAscii:function(e){ for(var t="",n=2; n<e.length; n+=2)t+=String.fromCharCode(parseInt(e.slice(n,n+2),16)); return t;},fromString:function(e){ for(var t=function(e){ var t=e.toString(16); return t.length<2?"0"+t:t },n="0x",i=0; i!=e.length; i++){ var r=e.charCodeAt(i); if(r<128)n+=t(r); else{ if(r<2048)n+=t(r>>6|192); else{ if(r>55295&&r<56320){ if(++i==e.length)return null; var o=e.charCodeAt(i); if(o<56320||o>57343)return null; n+=t((r=65536+((1023&r)<<10)+(1023&o))>>18|240),n+=t(r>>12&63|128);}else n+=t(r>>12|224); n+=t(r>>6&63|128) }n+=t(63&r|128) } }return n },toString:function(e){ for(var t="",n=0,o=r(e); n<o;){ var a=i(e,n++); if(a>127){ if(a>191&&a<224){ if(n>=o)return null; a=(31&a)<<6|63&i(e,n);}else if(a>223&&a<240){ if(n+1>=o)return null; a=(15&a)<<12|(63&i(e,n))<<6|63&i(e,++n) }else{ if(!(a>239&&a<248))return null; if(n+2>=o)return null; a=(7&a)<<18|(63&i(e,n))<<12|(63&i(e,++n))<<6|63&i(e,++n) }++n;}if(a<=65535)t+=String.fromCharCode(a); else{ if(!(a<=1114111))return null; a-=65536,t+=String.fromCharCode(a>>10|55296),t+=String.fromCharCode(1023&a|56320) } }return t;},fromNumber:function(e){ var t=e.toString(16); return t.length%2==0?"0x"+t:"0x0"+t },toNumber:function(e){ return parseInt(e.slice(2),16);},fromNat:function(e){ returne==="0x0"?"0x":e.length%2==0?e:"0x0"+e.slice(2) },toNat:function(e){ returne[2]==="0"?"0x"+e.slice(3):e;},fromArray:a,toArray:o,fromUint8Array:function(e){ return a([].slice.call(e,0));},toUint8Array:function(e){ return new Uint8Array(o(e)) }};},{"./array.js":234}],236:[function(e,t,n){ var i="0123456789abcdef".split(""),r=[1,256,65536,16777216],o=[0,8,16,24],a=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],s=function(e){ return{blocks:[],reset:!0,block:0,start:0,blockCount:1600-(e<<1)>>5,outputBlocks:e>>5,s:(function(e){return[].concat(e,e,e,e,e)}([0,0,0,0,0,0,0,0,0,0]))};},c=function(e,t){ for(var n,a=t.length,s=e.blocks,c=e.blockCount<<2,l=e.blockCount,f=e.outputBlocks,p=e.s,d=0; d<a;){ if(e.reset)for(e.reset=!1,s[0]=e.block,v=1; v<l+1; ++v)s[v]=0; if(typeof t!="string")for(v=e.start; d<a&&v<c; ++d)s[v>>2]|=t[d]<<o[3&v++]; else for(v=e.start; d<a&&v<c; ++d)(n=t.charCodeAt(d))<128?s[v>>2]|=n<<o[3&v++]:n<2048?(s[v>>2]|=(192|n>>6)<<o[3&v++],s[v>>2]|=(128|63&n)<<o[3&v++]):n<55296||n>=57344?(s[v>>2]|=(224|n>>12)<<o[3&v++],s[v>>2]|=(128|n>>6&63)<<o[3&v++],s[v>>2]|=(128|63&n)<<o[3&v++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++d)),s[v>>2]|=(240|n>>18)<<o[3&v++],s[v>>2]|=(128|n>>12&63)<<o[3&v++],s[v>>2]|=(128|n>>6&63)<<o[3&v++],s[v>>2]|=(128|63&n)<<o[3&v++]); if(e.lastByteIndex=v,v>=c){ for(e.start=v-c,e.block=s[l],v=0; v<l; ++v)p[v]^=s[v]; u(p),e.reset=!0 }else e.start=v;}if(v=e.lastByteIndex,s[v>>2]|=r[3&v],e.lastByteIndex===c)for(s[0]=s[l],v=1; v<l+1; ++v)s[v]=0; for(s[l-1]|=2147483648,v=0; v<l; ++v)p[v]^=s[v]; u(p); for(var h,m="",v=0,b=0; b<f;){ for(v=0; v<l&&b<f; ++v,++b)h=p[v],m+=i[h>>4&15]+i[15&h]+i[h>>12&15]+i[h>>8&15]+i[h>>20&15]+i[h>>16&15]+i[h>>28&15]+i[h>>24&15]; b%l==0&&(u(p),v=0) }return"0x"+m;},u=function(e){ var t,n,i,r,o,s,c,u,l,f,p,d,h,m,v,b,y,g,_,x,w,k,j,S,E,A,C,M,T,P,F,I,B,R,O,N,D,L,q,z,U,H,V,K,W,X,G,$,J,Q,Y,Z,ee,te,ne,ie,re,oe,ae,se,ce,ue,le; for(i=0; i<48; i+=2)r=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],c=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],p=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(s<<1|c>>>31),n=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(c<<1|s>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=r^(u<<1|l>>>31),n=o^(l<<1|u>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=s^(f<<1|p>>>31),n=c^(p<<1|f>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=u^(d<<1|h>>>31),n=l^(h<<1|d>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=f^(r<<1|o>>>31),n=p^(o<<1|r>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,m=e[0],v=e[1],X=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,T=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,V=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,O=e[3]<<1|e[2]>>>31,b=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,$=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,F=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,N=e[14]<<6|e[15]>>>26,D=e[15]<<6|e[14]>>>26,g=e[25]<<11|e[24]>>>21,_=e[24]<<11|e[25]>>>21,Q=e[34]<<15|e[35]>>>17,Y=e[35]<<15|e[34]>>>17,I=e[45]<<29|e[44]>>>3,B=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,ie=e[17]<<23|e[16]>>>9,re=e[16]<<23|e[17]>>>9,L=e[26]<<25|e[27]>>>7,q=e[27]<<25|e[26]>>>7,x=e[36]<<21|e[37]>>>11,w=e[37]<<21|e[36]>>>11,Z=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,K=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,A=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,U=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,j=e[49]<<14|e[48]>>>18,e[0]=m^~b&g,e[1]=v^~y&_,e[10]=S^~A&M,e[11]=E^~C&T,e[20]=R^~N&L,e[21]=O^~D&q,e[30]=K^~X&$,e[31]=W^~G&J,e[40]=te^~ie&oe,e[41]=ne^~re&ae,e[2]=b^~g&x,e[3]=y^~_&w,e[12]=A^~M&P,e[13]=C^~T&F,e[22]=N^~L&z,e[23]=D^~q&U,e[32]=X^~$&Q,e[33]=G^~J&Y,e[42]=ie^~oe&se,e[43]=re^~ae&ce,e[4]=g^~x&k,e[5]=_^~w&j,e[14]=M^~P&I,e[15]=T^~F&B,e[24]=L^~z&H,e[25]=q^~U&V,e[34]=$^~Q&Z,e[35]=J^~Y&ee,e[44]=oe^~se&ue,e[45]=ae^~ce&le,e[6]=x^~k&m,e[7]=w^~j&v,e[16]=P^~I&S,e[17]=F^~B&E,e[26]=z^~H&R,e[27]=U^~V&O,e[36]=Q^~Z&K,e[37]=Y^~ee&W,e[46]=se^~ue&te,e[47]=ce^~le&ne,e[8]=k^~m&b,e[9]=j^~v&y,e[18]=I^~S&A,e[19]=B^~E&C,e[28]=H^~R&N,e[29]=V^~O&D,e[38]=Z^~K&X,e[39]=ee^~W&G,e[48]=ue^~te&ie,e[49]=le^~ne&re,e[0]^=a[i],e[1]^=a[i+1];},l=function(e){ return function(t){ var n; if(t.slice(0,2)==="0x"){ n=[]; for(var i=2,r=t.length; i<r; i+=2)n.push(parseInt(t.slice(i,i+2),16));}else n=t; return c(s(e),n);};}; t.exports={keccak256:l(256),keccak512:l(512),keccak256s:l(256),keccak512s:l(512)};},{}],237:[function(e,t,n){ var i=e("bn.js"),r=e("./bytes"),o=function(e){ return"0x"+e.toString("hex");},a=function(e){ return new i(e.slice(2),16);},s=function(e){ var t="0x"+(e.slice(0,2)==="0x"?new i(e.slice(2),16):new i(e,10)).toString("hex"); returnt==="0x0"?"0x":t;},c=function(e){ returntypeof e=="string"?(/^0x/).test(e)?e:"0x"+e:"0x"+new i(e).toString("hex");},u=function(e){ return a(e).toNumber() },l=function(e){ return function(t,n){ return o(a(t)[e](a(n)));} },f=l("add"),p=l("mul"),d=l("div"),h=l("sub"); t.exports={toString:function(e){ return a(e).toString(10);},fromString:s,toNumber:u,fromNumber:c,toEther:function(e){ return u(d(e,s("10000000000")))/1e8;},fromEther:function(e){ return p(c(Math.floor(1e8*e)),s("10000000000"));},toUint256:function(e){ return r.pad(32,e);},add:f,mul:p,div:d,sub:h} },{"./bytes":235,"bn.js":"BN"}],238:[function(e,t,n){ t.exports={encode:function(e){ var t=function(e){ return e.length%2==0?e:"0"+e;},n=function(e){ return t(e.toString(16)) },i=function(e,t){ return e<56?n(t+e):n(t+n(e).length/2+55)+n(e);}; return"0x"+(function e(t){if("string"==typeof t){var n=t.slice(2);return(2!=n.length||n>="80"?i(n.length/2,128):"")+n}var r=t.map(e).join("");return i(r.length/2,192)+r}(e))},decode:function(e){ var t=2,n=function(){ if(t>=e.length)throw""; var n=e.slice(t,t+2); return n<"80"?(t+=2,"0x"+n):n<"c0"?r():o();},i=function(){ var n=parseInt(e.slice(t,t+=2),16)%64; return n<56?n:parseInt(e.slice(t,t+=2*(n-55)),16);},r=function(){ var n=i(); return"0x"+e.slice(t,t+=2*n) },o=function(){ for(var e=2*i()+t,r=[]; t<e;)r.push(n()); return r }; try{ return n();}catch(e){ return[];} }};},{}],239:[function(e,t,n){ arguments[4][98][0].apply(n,arguments);},{dup:98,"hash.js":86,"minimalistic-assert":241,"minimalistic-crypto-utils":242}],240:[function(e,t,n){ arguments[4][101][0].apply(n,arguments) },{dup:101}],241:[function(e,t,n){ arguments[4][106][0].apply(n,arguments) },{dup:106}],242:[function(e,t,n){ arguments[4][107][0].apply(n,arguments);},{dup:107}],243:[function(e,t,n){ arguments[4][172][0].apply(n,arguments) },{dup:172}],244:[function(e,t,n){ (function(e){ var n; if(e.crypto&&crypto.getRandomValues){ var i=new Uint8Array(16); n=function(){ return crypto.getRandomValues(i),i };}if(!n){ var r=new Array(16); n=function(){ for(var e,t=0; t<16; t++)(3&t)==0&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255; return r;} }t.exports=n }).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{});},{}],245:[function(e,t,n){ function i(e,t){ var n=t||0,i=a; return i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]] }function r(e,t,n){ var r=t&&n||0; "string"==typeof e&&(t=e=="binary"?new Array(16):null,e=null); var a=(e=e||{}).random||(e.rng||o)(); if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0; s<16; s++)t[r+s]=a[s]; return t||i(a) }for(var o=e("./rng"),a=[],s={},c=0; c<256; c++)a[c]=(c+256).toString(16).substr(1),s[a[c]]=c; var u=o(),l=[1|u[0],u[1],u[2],u[3],u[4],u[5]],f=16383&(u[6]<<8|u[7]),p=0,d=0,h=r; h.v1=function(e,t,n){ var r=t&&n||0,o=t||[],a=void 0!==(e=e||{}).clockseq?e.clockseq:f,s=void 0!==e.msecs?e.msecs:(new Date).getTime(),c=void 0!==e.nsecs?e.nsecs:d+1,u=s-p+(c-d)/1e4; if(u<0&&void 0===e.clockseq&&(a=a+1&16383),(u<0||s>p)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); p=s,d=c,f=a; var h=(1e4*(268435455&(s+=122192928e5))+c)%4294967296; o[r++]=h>>>24&255,o[r++]=h>>>16&255,o[r++]=h>>>8&255,o[r++]=255&h; var m=s/4294967296*1e4&268435455; o[r++]=m>>>8&255,o[r++]=255&m,o[r++]=m>>>24&15|16,o[r++]=m>>>16&255,o[r++]=a>>>8|128,o[r++]=255&a; for(var v=e.node||l,b=0; b<6; b++)o[r+b]=v[b]; return t||i(o);},h.v4=r,h.parse=function(e,t,n){ var i=t&&n||0,r=0; for(t=t||[],e.toLowerCase().replace(/[0-9a-f]{2}/g,function(e){ r<16&&(t[i+r++]=s[e]) }); r<16;)t[i+r++]=0; return t },h.unparse=i,t.exports=h },{"./rng":244}],246:[function(e,t,n){ (function(n){ function i(e){ this.length=0,this._accounts=e,this.defaultKeyName="web3js_wallet";}var r=e("underscore"),o=e("web3-core"),a=e("web3-core-method"),s=e("bluebird"),c=e("eth-lib/lib/account"),u=e("eth-lib/lib/hash"),l=e("eth-lib/lib/rlp"),f=e("crypto"),p=e("scrypt.js"),d=e("uuid"),h=e("web3-utils"),m=e("web3-core-helpers"),v=function(e){ return r.isUndefined(e)||r.isNull(e);},b=function(){ var e=this; o.packageInit(this,arguments),delete this.BatchRequest,delete this.extend; var t=[new a({name:"getId",call:"net_version",params:0,outputFormatter:h.hexToNumber}),new a({name:"getGasPrice",call:"eth_gasPrice",params:0}),new a({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[function(e){ if(h.isAddress(e))return e; throw new Error("Address "+e+' is not a valid address to get the "transactionCount".') },function(){ return"latest";}]})]; this._ethereumCall={},r.each(t,function(t){ t.attachToObject(e._ethereumCall),t.setRequestManager(e._requestManager);}),this.wallet=new i(this);}; b.prototype._addAccountFunctions=function(e){ var t=this; return e.signTransaction=function(n,i){ return t.signTransaction(n,e.privateKey,i);},e.sign=function(n){ return t.sign(n,e.privateKey) },e.encrypt=function(n,i){ return t.encrypt(e.privateKey,n,i);},e;},b.prototype.create=function(e){ return this._addAccountFunctions(c.create(e||h.randomHex(32))) },b.prototype.privateKeyToAccount=function(e){ return this._addAccountFunctions(c.fromPrivate(e)) },b.prototype.signTransaction=function(e,t,n){ function i(e){ if(!e.gas&&!e.gasLimit)throw new Error('"gas" is missing'); var i={nonce:h.numberToHex(e.nonce),to:e.to?m.formatters.inputAddressFormatter(e.to):"0x",data:e.data||"0x",value:e.value?h.numberToHex(e.value):"0x",gas:h.numberToHex(e.gasLimit||e.gas),gasPrice:h.numberToHex(e.gasPrice),chainId:h.numberToHex(e.chainId)},o=u.keccak256(c.transactionSigningData(i)),a=c.signTransaction(i,t),s=l.decode(a),f={messageHash:o,v:s[6],r:s[7],s:s[8],rawTransaction:a}; return r.isFunction(n)&&n(null,f),f;}var o=this; return void 0!==e.nonce&&void 0!==e.chainId&&void 0!==e.gasPrice?i(e):s.all([v(e.chainId)?o._ethereumCall.getId():e.chainId,v(e.gasPrice)?o._ethereumCall.getGasPrice():e.gasPrice,v(e.nonce)?o._ethereumCall.getTransactionCount(o.privateKeyToAccount(t).address):e.nonce]).then(function(t){ if(v(t[0])||v(t[1])||v(t[2]))throw new Error('One of the values "chainId", "gasPrice", or "nonce" couldn\'t be fetched: '+JSON.stringify(t)); return i(r.extend(e,{chainId:t[0],gasPrice:t[1],nonce:t[2]})) }) },b.prototype.recoverTransaction=function(e){ return c.recoverTransaction(e);},b.prototype.hashMessage=function(e){ var t=h.isHex(e)?h.hexToUtf8(e):e,n="Ethereum Signed Message:\n"+t.length+t; return u.keccak256s(n) },b.prototype.sign=function(e,t){ var n=this.hashMessage(e),i=c.sign(n,t),r=c.decodeSignature(i); return{message:e,messageHash:n,v:r[0],r:r[1],s:r[2],signature:i};},b.prototype.recover=function(e,t){ return r.isObject(e)?this.recover(e.messageHash,c.encodeSignature([e.v,e.r,e.s])):(h.isHex(e)||(e=this.hashMessage(e)),arguments.length===4?this.recover(e,c.encodeSignature([].slice.call(arguments,1,4))):c.recover(e,t)) },b.prototype.decrypt=function(e,t,i){ if(!r.isString(t))throw new Error("No password given."); var o=r.isObject(e)?e:JSON.parse(i?e.toLowerCase():e); if(o.version!==3)throw new Error("Not a valid V3 wallet"); var a,s; if(o.crypto.kdf==="scrypt")s=o.crypto.kdfparams,a=p(new n(t),new n(s.salt,"hex"),s.n,s.r,s.p,s.dklen); else{ if(o.crypto.kdf!=="pbkdf2")throw new Error("Unsupported key derivation scheme"); if((s=o.crypto.kdfparams).prf!=="hmac-sha256")throw new Error("Unsupported parameters to PBKDF2"); a=f.pbkdf2Sync(new n(t),new n(s.salt,"hex"),s.c,s.dklen,"sha256");}var c=new n(o.crypto.ciphertext,"hex"); if(h.sha3(n.concat([a.slice(16,32),c])).replace("0x","")!==o.crypto.mac)throw new Error("Key derivation failed - possibly wrong password"); var u=f.createDecipheriv(o.crypto.cipher,a.slice(0,16),new n(o.crypto.cipherparams.iv,"hex")),l="0x"+n.concat([u.update(c),u.final()]).toString("hex"); return this.privateKeyToAccount(l);},b.prototype.encrypt=function(e,t,i){ var r,o=this.privateKeyToAccount(e),a=(i=i||{}).salt||f.randomBytes(32),s=i.iv||f.randomBytes(16),c=i.kdf||"scrypt",u={dklen:i.dklen||32,salt:a.toString("hex")}; if(c==="pbkdf2")u.c=i.c||262144,u.prf="hmac-sha256",r=f.pbkdf2Sync(new n(t),a,u.c,u.dklen,"sha256"); else{ if(c!=="scrypt")throw new Error("Unsupported kdf"); u.n=i.n||8192,u.r=i.r||8,u.p=i.p||1,r=p(new n(t),a,u.n,u.r,u.p,u.dklen) }var l=f.createCipheriv(i.cipher||"aes-128-ctr",r.slice(0,16),s); if(!l)throw new Error("Unsupported cipher"); var m=n.concat([l.update(new n(o.privateKey.replace("0x",""),"hex")),l.final()]),v=h.sha3(n.concat([r.slice(16,32),new n(m,"hex")])).replace("0x",""); return{version:3,id:d.v4({random:i.uuid||f.randomBytes(16)}),address:o.address.toLowerCase().replace("0x",""),crypto:{ciphertext:m.toString("hex"),cipherparams:{iv:s.toString("hex")},cipher:i.cipher||"aes-128-ctr",kdf:c,kdfparams:u,mac:v.toString("hex")}};},i.prototype._findSafeIndex=function(e){ return e=e||0,r.has(this,e)?this._findSafeIndex(e+1):e;},i.prototype._currentIndexes=function(){ return Object.keys(this).map(function(e){ return parseInt(e) }).filter(function(e){ return e<9e20;}) },i.prototype.create=function(e,t){ for(var n=0; n<e; ++n)this.add(this._accounts.create(t).privateKey); return this },i.prototype.add=function(e){ return r.isString(e)&&(e=this._accounts.privateKeyToAccount(e)),this[e.address]?this[e.address]:(e=this._accounts.privateKeyToAccount(e.privateKey),e.index=this._findSafeIndex(),this[e.index]=e,this[e.address]=e,this[e.address.toLowerCase()]=e,this.length++,e) },i.prototype.remove=function(e){ var t=this[e]; return Boolean(t)&&(this[t.address].privateKey=null,delete this[t.address],this[t.address.toLowerCase()].privateKey=null,delete this[t.address.toLowerCase()],this[t.index].privateKey=null,delete this[t.index],this.length--,!0) },i.prototype.clear=function(){ var e=this; return this._currentIndexes().forEach(function(t){ e.remove(t);}),this;},i.prototype.encrypt=function(e,t){ var n=this; return this._currentIndexes().map(function(i){ return n[i].encrypt(e,t) }) },i.prototype.decrypt=function(e,t){ var n=this; return e.forEach(function(e){ var i=n._accounts.decrypt(e,t); if(!i)throw new Error("Couldn't decrypt accounts. Password wrong?"); n.add(i);}),this },i.prototype.save=function(e,t){ return localStorage.setItem(t||this.defaultKeyName,JSON.stringify(this.encrypt(e))),!0;},i.prototype.load=function(e,t){ var n=localStorage.getItem(t||this.defaultKeyName); if(n)try{ n=JSON.parse(n);}catch(e){}return this.decrypt(n||[],e) },typeof localStorage=="undefined"&&(delete i.prototype.save,delete i.prototype.load),t.exports=b;}).call(this,e("buffer").Buffer) },{bluebird:215,buffer:47,crypto:56,"eth-lib/lib/account":233,"eth-lib/lib/hash":236,"eth-lib/lib/rlp":238,"scrypt.js":145,underscore:243,uuid:245,"web3-core":202,"web3-core-helpers":186,"web3-core-method":188,"web3-utils":273}],247:[function(e,t,n){ arguments[4][172][0].apply(n,arguments) },{dup:172}],248:[function(e,t,n){ var i=e("underscore"),r=e("web3-core"),o=e("web3-core-method"),a=e("web3-utils"),s=e("web3-core-subscriptions").subscription,c=e("web3-core-helpers").formatters,u=e("web3-core-helpers").errors,l=e("web3-core-promievent"),f=e("web3-eth-abi"),p=function e(t,n,o){ var s=this,u=Array.prototype.slice.call(arguments); if(r.packageInit(this,[e.currentProvider]),this.clearSubscriptions=this._requestManager.clearSubscriptions,!(this instanceof e))throw new Error('Please use the "new" keyword to instantiate a web3.eth.contract() object!'); if(!t||!Array.isArray(t))throw new Error("You must provide the json interface of the contract when instantiating a contract object."); this.options={}; var l=u[u.length-1]; i.isObject(l)&&!i.isArray(l)&&(o=l,this.options=i.extend(this.options,this._getOrSetDefaultOptions(o)),i.isObject(n)&&(n=null)),Object.defineProperty(this.options,"address",{set:function(e){ e&&(s._address=a.toChecksumAddress(c.inputAddressFormatter(e)));},get:function(){ return s._address },enumerable:!0}),Object.defineProperty(this.options,"jsonInterface",{set:function(e){ return s.methods={},s.events={},s._jsonInterface=e.map(function(e){ var t,n; if(e.name&&(n=a._jsonInterfaceMethodToString(e)),e.type==="function")e.signature=f.encodeFunctionSignature(n),t=s._createTxObject.bind({method:e,parent:s}),s.methods[e.name]||(s.methods[e.name]=t),s.methods[e.signature]=t,s.methods[n]=t; else if(e.type==="event"){ e.signature=f.encodeEventSignature(n); var i=s._on.bind(s,e.signature); s.events[e.name]&&s.events[e.name].name!=="bound "||(s.events[e.name]=i),s.events[e.signature]=i,s.events[n]=i }return e }),s.events.allEvents=s._on.bind(s,"allevents"),s._jsonInterface;},get:function(){ return s._jsonInterface;},enumerable:!0}); var p=e.defaultAccount,d=e.defaultBlock||"latest"; Object.defineProperty(this,"defaultAccount",{get:function(){ return p },set:function(e){ return e&&(p=a.toChecksumAddress(c.inputAddressFormatter(e))),e;},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){ return d;},set:function(e){ return d=e,e },enumerable:!0}),this.methods={},this.events={},this._address=null,this._jsonInterface=[],this.options.address=n,this.options.jsonInterface=t;}; p.setProvider=function(e,t){ r.packageInit(p,[e]),p._ethAccounts=t;},p.prototype._getCallback=function(e){ if(e&&i.isFunction(e[e.length-1]))return e.pop();},p.prototype._checkListener=function(e,t){ if(t===e)throw new Error('The event "'+e+"\" is a reserved event name, you can't use it.");},p.prototype._getOrSetDefaultOptions=function(e){ var t=e.gasPrice?String(e.gasPrice):null,n=e.from?a.toChecksumAddress(c.inputAddressFormatter(e.from)):null; return e.data=e.data||this.options.data,e.from=n||this.options.from,e.gasPrice=t||this.options.gasPrice,e.gas=e.gas||e.gasLimit||this.options.gas,delete e.gasLimit,e },p.prototype._encodeEventABI=function(e,t){ var n=(t=t||{}).filter||{},r={}; if(["fromBlock","toBlock"].filter(function(e){ return void 0!==t[e];}).forEach(function(e){ r[e]=c.inputBlockNumberFormatter(t[e]);}),i.isArray(t.topics))r.topics=t.topics; else{ if(r.topics=[],e&&!e.anonymous&&e.name!=="ALLEVENTS"&&r.topics.push(e.signature),e.name!=="ALLEVENTS"){ var o=e.inputs.filter(function(e){ return!0===e.indexed }).map(function(e){ var t=n[e.name]; return t?i.isArray(t)?t.map(function(t){ return f.encodeParameter(e.type,t);}):f.encodeParameter(e.type,t):null }); r.topics=r.topics.concat(o);}r.topics.length||delete r.topics }return this.options.address&&(r.address=this.options.address.toLowerCase()),r },p.prototype._decodeEventABI=function(e){ var t=this; e.data=e.data||"",e.topics=e.topics||[]; var n=c.outputLogFormatter(e); "ALLEVENTS"===t.name&&(t=t.jsonInterface.find(function(t){ return t.signature===e.topics[0];})||{anonymous:!0}),t.inputs=t.inputs||[]; var i=t.anonymous?e.topics:e.topics.slice(1); return n.returnValues=f.decodeLog(t.inputs,e.data,i),delete n.returnValues.__length__,n.event=t.name,n.signature=t.anonymous||!e.topics[0]?null:e.topics[0],n.raw={data:n.data,topics:n.topics},delete n.data,delete n.topics,n },p.prototype._encodeMethodABI=function(){ var e=this._method.signature,t=this.arguments||[],n=!1,r=this._parent.options.jsonInterface.filter(function(t){ returne==="constructor"&&t.type===e||(t.signature===e||t.signature===e.replace("0x","")||t.name===e)&&t.type==="function"}).map(function(e){ var r=i.isArray(e.inputs)?e.inputs.length:0; if(r!==t.length)throw new Error("The number of arguments is not matching the methods required number. You need to pass "+r+" arguments."); returne.type==="function"&&(n=e.signature),i.isArray(e.inputs)?e.inputs.map(function(e){ return e.type;}):[];}).map(function(e){ return f.encodeParameters(e,t).replace("0x","") })[0]||""; if(e==="constructor"){ if(!this._deployData)throw new Error("The contract has no contract data option set. This is necessary to append the constructor parameters."); return this._deployData+r }var o=n?n+r:r; if(o)return o; throw new Error("Couldn't find a matching contract method named \""+this._method.name+'".');},p.prototype._decodeMethodReturn=function(e,t){ if(!t)return null; t=t.length>=2?t.slice(2):t; var n=f.decodeParameters(e,t); return n.__length__===1?n[0]:(delete n.__length__,n) },p.prototype.deploy=function(e,t){ if(e=e||{},e.arguments=e.arguments||[],!(e=this._getOrSetDefaultOptions(e)).data)return a._fireError(new Error('No "data" specified in neither the given options, nor the default options.'),null,null,t); var n=i.find(this.options.jsonInterface,function(e){ returne.type==="constructor"})||{}; return n.signature="constructor",this._createTxObject.apply({method:n,parent:this,deployData:e.data},e.arguments);},p.prototype._generateEventOptions=function(){ var e=Array.prototype.slice.call(arguments),t=this._getCallback(e),n=i.isObject(e[e.length-1])?e.pop():{},r=i.isString(e[0])?e[0]:"allevents"; if(!(r=r.toLowerCase()==="allevents"?{name:"ALLEVENTS",jsonInterface:this.options.jsonInterface}:this.options.jsonInterface.find(function(e){ returne.type==="event"&&(e.name===r||e.signature==="0x"+r.replace("0x","")) })))throw new Error('Event "'+r.name+"\" doesn't exist in this contract."); if(!a.isAddress(this.options.address))throw new Error("This contract object doesn't have address set yet, please set an address first."); return{params:this._encodeEventABI(r,n),event:r,callback:t};},p.prototype.clone=function(){ return new p(this.options.jsonInterface,this.options.address,this.options);},p.prototype.once=function(e,t,n){ var r=Array.prototype.slice.call(arguments); if(!(n=this._getCallback(r)))throw new Error("Once requires a callback as the second parameter."); t&&delete t.fromBlock,this._on(e,t,function(e,t,r){ r.unsubscribe(),i.isFunction(n)&&n(e,t,r) });},p.prototype._on=function(){ var e=this._generateEventOptions.apply(this,arguments); this._checkListener("newListener",e.event.name,e.callback),this._checkListener("removeListener",e.event.name,e.callback); var t=new s({subscription:{params:1,inputFormatter:[c.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event),subscriptionHandler:function(e){ e.removed?this.emit("changed",e):this.emit("data",e),i.isFunction(this.callback)&&this.callback(null,e,this) }},type:"eth",requestManager:this._requestManager}); return t.subscribe("logs",e.params,e.callback||function(){}),t;},p.prototype.getPastEvents=function(){ var e=this._generateEventOptions.apply(this,arguments),t=new o({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[c.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event)}); t.setRequestManager(this._requestManager); var n=t.buildCall(); return t=null,n(e.params,e.callback) },p.prototype._createTxObject=function(){ var e=Array.prototype.slice.call(arguments),t={}; if(this.method.type==="function"&&(t.call=this.parent._executeMethod.bind(t,"call"),t.call.request=this.parent._executeMethod.bind(t,"call",!0)),t.send=this.parent._executeMethod.bind(t,"send"),t.send.request=this.parent._executeMethod.bind(t,"send",!0),t.encodeABI=this.parent._encodeMethodABI.bind(t),t.estimateGas=this.parent._executeMethod.bind(t,"estimate"),e&&this.method.inputs&&e.length!==this.method.inputs.length)throw u.InvalidNumberOfParams(e.length,this.method.inputs.length,this.method.name); return t.arguments=e||[],t._method=this.method,t._parent=this.parent,this.deployData&&(t._deployData=this.deployData),t },p.prototype._processExecuteArguments=function(e,t){ var n={}; if(n.type=e.shift(),n.callback=this._parent._getCallback(e),n.type==="call"&&!0!==e[e.length-1]&&(i.isString(e[e.length-1])||isFinite(e[e.length-1]))&&(n.defaultBlock=e.pop()),n.options=i.isObject(e[e.length-1])?e.pop():{},n.generateRequest=!0===e[e.length-1]&&e.pop(),n.options=this._parent._getOrSetDefaultOptions(n.options),n.options.data=this.encodeABI(),!this._deployData&&!a.isAddress(this._parent.options.address))throw new Error("This contract object doesn't have address set yet, please set an address first."); return this._deployData||(n.options.to=this._parent.options.address),n.options.data?n:a._fireError(new Error("Couldn't find a matching contract method, or the number of parameters is wrong."),t.eventEmitter,t.reject,n.callback);},p.prototype._executeMethod=function(){ var e=this,t=this._parent._processExecuteArguments.call(this,Array.prototype.slice.call(arguments),n),n=l(t.type!=="send"); if(t.generateRequest){ var r={params:[c.inputCallFormatter.call(this._parent,t.options),c.inputDefaultBlockNumberFormatter.call(this._parent,t.defaultBlock)],callback:t.callback}; returnt.type==="call"?(r.method="eth_call",r.format=this._parent._decodeMethodReturn.bind(null,this._method.outputs)):r.method="eth_sendTransaction",r }switch(t.type){ case"estimate": return new o({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[c.inputCallFormatter],outputFormatter:a.hexToNumber,requestManager:e._parent._requestManager,accounts:p._ethAccounts,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock}).createFunction()(t.options,t.callback); case"call": return new o({name:"call",call:"eth_call",params:2,inputFormatter:[c.inputCallFormatter,c.inputDefaultBlockNumberFormatter],outputFormatter:function(t){ return e._parent._decodeMethodReturn(e._method.outputs,t) },requestManager:e._parent._requestManager,accounts:p._ethAccounts,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock}).createFunction()(t.options,t.defaultBlock,t.callback); case"send": if(!a.isAddress(t.options.from))return a._fireError(new Error('No "from" address specified in neither the given options, nor the default options.'),n.eventEmitter,n.reject,t.callback); if(i.isBoolean(this._method.payable)&&!this._method.payable&&t.options.value&&t.options.value>0)return a._fireError(new Error("Can not send value to non-payable contract method or constructor"),n.eventEmitter,n.reject,t.callback); var s={receiptFormatter:function(t){ if(i.isArray(t.logs)){ var n=i.map(t.logs,function(t){ return e._parent._decodeEventABI.call({name:"ALLEVENTS",jsonInterface:e._parent.options.jsonInterface},t);}); t.events={}; var r=0; n.forEach(function(e){ e.event?t.events[e.event]?Array.isArray(t.events[e.event])?t.events[e.event].push(e):t.events[e.event]=[t.events[e.event],e]:t.events[e.event]=e:(t.events[r]=e,r++) }),delete t.logs;}return t },contractDeployFormatter:function(t){ var n=e._parent.clone(); return n.options.address=t.contractAddress,n }}; return new o({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[c.inputTransactionFormatter],requestManager:e._parent._requestManager,accounts:p._ethAccounts,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock,extraFormatters:s}).createFunction()(t.options,t.callback);} },t.exports=p },{underscore:247,"web3-core":202,"web3-core-helpers":186,"web3-core-method":188,"web3-core-promievent":191,"web3-core-subscriptions":199,"web3-eth-abi":205,"web3-utils":273}],249:[function(e,t,n){ var i=e("web3-utils"),r=e("bn.js"),o=function(e,t){ for(var n=e; n.length<2*t;)n="0"+n; return n;},a=function(e){ var t="A".charCodeAt(0),n="Z".charCodeAt(0); return e=e.toUpperCase(),(e=e.substr(4)+e.substr(0,4)).split("").map(function(e){ var i=e.charCodeAt(0); return i>=t&&i<=n?i-t+10:e }).join("") },s=function(e){ for(var t,n=e; n.length>2;)t=n.slice(0,9),n=parseInt(t,10)%97+n.slice(t.length); return parseInt(n,10)%97 },c=function(e){ this._iban=e }; c.toAddress=function(e){ if(!(e=new c(e)).isDirect())throw new Error("IBAN is indirect and can't be converted"); return e.toAddress();},c.toIban=function(e){ return c.fromAddress(e).toString() },c.fromAddress=function(e){ if(!i.isAddress(e))throw new Error("Provided address is not a valid address: "+e); e=e.replace("0x","").replace("0X",""); var t=new r(e,16).toString(36),n=o(t,15); return c.fromBban(n.toUpperCase()) },c.fromBban=function(e){ var t=("0"+(98-s(a("XE00"+e)))).slice(-2); return new c("XE"+t+e) },c.createIndirect=function(e){ return c.fromBban("ETH"+e.institution+e.identifier) },c.isValid=function(e){ return new c(e).isValid();},c.prototype.isValid=function(){ return(/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/).test(this._iban)&&s(a(this._iban))===1},c.prototype.isDirect=function(){ return this._iban.length===34||this._iban.length===35},c.prototype.isIndirect=function(){ return this._iban.length===20},c.prototype.checksum=function(){ return this._iban.substr(2,2);},c.prototype.institution=function(){ return this.isIndirect()?this._iban.substr(7,4):"";},c.prototype.client=function(){ return this.isIndirect()?this._iban.substr(11):"";},c.prototype.toAddress=function(){ if(this.isDirect()){ var e=this._iban.substr(4),t=new r(e,36); return i.toChecksumAddress(t.toString(16,20)) }return"" },c.prototype.toString=function(){ return this._iban;},t.exports=c;},{"bn.js":"BN","web3-utils":273}],250:[function(e,t,n){ var i=e("web3-core"),r=e("web3-core-method"),o=e("web3-utils"),a=e("web3-net"),s=e("web3-core-helpers").formatters,c=function(){ var e=this; i.packageInit(this,arguments),this.net=new a(this.currentProvider); var t=null,n="latest"; Object.defineProperty(this,"defaultAccount",{get:function(){ return t },set:function(e){ return e&&(t=o.toChecksumAddress(s.inputAddressFormatter(e))),c.forEach(function(e){ e.defaultAccount=t;}),e;},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){ return n;},set:function(e){ return n=e,c.forEach(function(e){ e.defaultBlock=n }),e;},enumerable:!0}); var c=[new r({name:"getAccounts",call:"personal_listAccounts",params:0,outputFormatter:o.toChecksumAddress}),new r({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:o.toChecksumAddress}),new r({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[s.inputAddressFormatter,null,null]}),new r({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[s.inputAddressFormatter]}),new r({name:"importRawKey",call:"personal_importRawKey",params:2}),new r({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[s.inputTransactionFormatter,null]}),new r({name:"sign",call:"personal_sign",params:3,inputFormatter:[s.inputSignFormatter,s.inputAddressFormatter,null]}),new r({name:"ecRecover",call:"personal_ecRecover",params:2,inputFormatter:[s.inputSignFormatter,null]})]; c.forEach(function(t){ t.attachToObject(e),t.setRequestManager(e._requestManager),t.defaultBlock=e.defaultBlock,t.defaultAccount=e.defaultAccount;});}; i.addProviders(c),t.exports=c;},{"web3-core":202,"web3-core-helpers":186,"web3-core-method":188,"web3-net":254,"web3-utils":273}],251:[function(e,t,n){ arguments[4][172][0].apply(n,arguments) },{dup:172}],252:[function(e,t,n){ var i=e("underscore"); t.exports=function(e){ var t,n=this; return this.net.getId().then(function(e){ return t=e,n.getBlock(0) }).then(function(n){ var r="private"; returnn.hash==="0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3"&&t===1&&(r="main"),n.hash==="0cd786a2425d16f152c658316c423e6ce1181e15c3295826d7c9904cba9ce303"&&t===2&&(r="morden"),n.hash==="0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d"&&t===3&&(r="ropsten"),n.hash==="0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177"&&t===4&&(r="rinkeby"),n.hash==="0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9"&&t===42&&(r="kovan"),i.isFunction(e)&&e(null,r),r;}).catch(function(t){ if(!i.isFunction(e))throw t; e(t);});} },{underscore:251}],253:[function(e,t,n){ var i=e("underscore"),r=e("web3-core"),o=e("web3-core-helpers"),a=e("web3-core-subscriptions").subscriptions,s=e("web3-core-method"),c=e("web3-utils"),u=e("web3-net"),l=e("web3-eth-personal"),f=e("web3-eth-contract"),p=e("web3-eth-iban"),d=e("web3-eth-accounts"),h=e("web3-eth-abi"),m=e("./getNetworkType.js"),v=o.formatters,b=function(e){ return i.isString(e[0])&&e[0].indexOf("0x")===0?"eth_getBlockByHash":"eth_getBlockByNumber";},y=function(e){ return i.isString(e[0])&&e[0].indexOf("0x")===0?"eth_getTransactionByBlockHashAndIndex":"eth_getTransactionByBlockNumberAndIndex" },g=function(e){ return i.isString(e[0])&&e[0].indexOf("0x")===0?"eth_getUncleByBlockHashAndIndex":"eth_getUncleByBlockNumberAndIndex";},_=function(e){ return i.isString(e[0])&&e[0].indexOf("0x")===0?"eth_getBlockTransactionCountByHash":"eth_getBlockTransactionCountByNumber" },x=function(e){ return i.isString(e[0])&&e[0].indexOf("0x")===0?"eth_getUncleCountByBlockHash":"eth_getUncleCountByBlockNumber";},w=function(){ var e=this; r.packageInit(this,arguments); var t=this.setProvider; this.setProvider=function(){ t.apply(e,arguments),e.net.setProvider.apply(e,arguments),e.personal.setProvider.apply(e,arguments),e.accounts.setProvider.apply(e,arguments),e.Contract.setProvider(e.currentProvider,e.accounts) }; var n=null,o="latest"; Object.defineProperty(this,"defaultAccount",{get:function(){ return n },set:function(t){ return t&&(n=c.toChecksumAddress(v.inputAddressFormatter(t))),e.Contract.defaultAccount=n,e.personal.defaultAccount=n,w.forEach(function(e){ e.defaultAccount=n }),t;},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){ return o;},set:function(t){ return o=t,e.Contract.defaultBlock=o,e.personal.defaultBlock=o,w.forEach(function(e){ e.defaultBlock=o }),t;},enumerable:!0}),this.clearSubscriptions=e._requestManager.clearSubscriptions,this.net=new u(this.currentProvider),this.net.getNetworkType=m.bind(this),this.accounts=new d(this.currentProvider),this.personal=new l(this.currentProvider),this.personal.defaultAccount=this.defaultAccount,this.Contract=f,this.Contract.defaultAccount=this.defaultAccount,this.Contract.defaultBlock=this.defaultBlock,this.Contract.setProvider(this.currentProvider,this.accounts),this.Iban=p,this.abi=h; var w=[new s({name:"getProtocolVersion",call:"eth_protocolVersion",params:0}),new s({name:"getCoinbase",call:"eth_coinbase",params:0}),new s({name:"isMining",call:"eth_mining",params:0}),new s({name:"getHashrate",call:"eth_hashrate",params:0,outputFormatter:c.hexToNumber}),new s({name:"isSyncing",call:"eth_syncing",params:0,outputFormatter:v.outputSyncingFormatter}),new s({name:"getGasPrice",call:"eth_gasPrice",params:0,outputFormatter:v.outputBigNumberFormatter}),new s({name:"getAccounts",call:"eth_accounts",params:0,outputFormatter:c.toChecksumAddress}),new s({name:"getBlockNumber",call:"eth_blockNumber",params:0,outputFormatter:c.hexToNumber}),new s({name:"getBalance",call:"eth_getBalance",params:2,inputFormatter:[v.inputAddressFormatter,v.inputDefaultBlockNumberFormatter],outputFormatter:v.outputBigNumberFormatter}),new s({name:"getStorageAt",call:"eth_getStorageAt",params:3,inputFormatter:[v.inputAddressFormatter,c.numberToHex,v.inputDefaultBlockNumberFormatter]}),new s({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[v.inputAddressFormatter,v.inputDefaultBlockNumberFormatter]}),new s({name:"getBlock",call:b,params:2,inputFormatter:[v.inputBlockNumberFormatter,function(e){ return Boolean(e)}],outputFormatter:v.outputBlockFormatter}),new s({name:"getUncle",call:g,params:2,inputFormatter:[v.inputBlockNumberFormatter,c.numberToHex],outputFormatter:v.outputBlockFormatter}),new s({name:"getBlockTransactionCount",call:_,params:1,inputFormatter:[v.inputBlockNumberFormatter],outputFormatter:c.hexToNumber}),new s({name:"getBlockUncleCount",call:x,params:1,inputFormatter:[v.inputBlockNumberFormatter],outputFormatter:c.hexToNumber}),new s({name:"getTransaction",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:v.outputTransactionFormatter}),new s({name:"getTransactionFromBlock",call:y,params:2,inputFormatter:[v.inputBlockNumberFormatter,c.numberToHex],outputFormatter:v.outputTransactionFormatter}),new s({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:v.outputTransactionReceiptFormatter}),new s({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[v.inputAddressFormatter,v.inputDefaultBlockNumberFormatter],outputFormatter:c.hexToNumber}),new s({name:"sendSignedTransaction",call:"eth_sendRawTransaction",params:1,inputFormatter:[null]}),new s({name:"signTransaction",call:"eth_signTransaction",params:1,inputFormatter:[v.inputTransactionFormatter]}),new s({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[v.inputTransactionFormatter]}),new s({name:"sign",call:"eth_sign",params:2,inputFormatter:[v.inputSignFormatter,v.inputAddressFormatter],transformPayload:function(e){ return e.params.reverse(),e }}),new s({name:"call",call:"eth_call",params:2,inputFormatter:[v.inputCallFormatter,v.inputDefaultBlockNumberFormatter]}),new s({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[v.inputCallFormatter],outputFormatter:c.hexToNumber}),new s({name:"getCompilers",call:"eth_getCompilers",params:0}),new s({name:"compile.solidity",call:"eth_compileSolidity",params:1}),new s({name:"compile.lll",call:"eth_compileLLL",params:1}),new s({name:"compile.serpent",call:"eth_compileSerpent",params:1}),new s({name:"submitWork",call:"eth_submitWork",params:3}),new s({name:"getWork",call:"eth_getWork",params:0}),new s({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[v.inputLogFormatter],outputFormatter:v.outputLogFormatter}),new a({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:v.outputBlockFormatter},pendingTransactions:{subscriptionName:"newPendingTransactions",params:0},logs:{params:1,inputFormatter:[v.inputLogFormatter],outputFormatter:v.outputLogFormatter,subscriptionHandler:function(e){ e.removed?this.emit("changed",e):this.emit("data",e),i.isFunction(this.callback)&&this.callback(null,e,this) }},syncing:{params:0,outputFormatter:v.outputSyncingFormatter,subscriptionHandler:function(e){ var t=this; !0!==this._isSyncing?(this._isSyncing=!0,this.emit("changed",t._isSyncing),i.isFunction(this.callback)&&this.callback(null,t._isSyncing,this),setTimeout(function(){ t.emit("data",e),i.isFunction(t.callback)&&t.callback(null,e,t) },0)):(this.emit("data",e),i.isFunction(t.callback)&&this.callback(null,e,this),clearTimeout(this._isSyncingTimeout),this._isSyncingTimeout=setTimeout(function(){ e.currentBlock>e.highestBlock-200&&(t._isSyncing=!1,t.emit("changed",t._isSyncing),i.isFunction(t.callback)&&t.callback(null,t._isSyncing,t)) },500)) }}}})]; w.forEach(function(t){ t.attachToObject(e),t.setRequestManager(e._requestManager,e.accounts),t.defaultBlock=e.defaultBlock,t.defaultAccount=e.defaultAccount;});}; r.addProviders(w),t.exports=w;},{"./getNetworkType.js":252,underscore:251,"web3-core":202,"web3-core-helpers":186,"web3-core-method":188,"web3-core-subscriptions":199,"web3-eth-abi":205,"web3-eth-accounts":246,"web3-eth-contract":248,"web3-eth-iban":249,"web3-eth-personal":250,"web3-net":254,"web3-utils":273}],254:[function(e,t,n){ var i=e("web3-core"),r=e("web3-core-method"),o=e("web3-utils"),a=function(){ var e=this; i.packageInit(this,arguments),[new r({name:"getId",call:"net_version",params:0,outputFormatter:o.hexToNumber}),new r({name:"isListening",call:"net_listening",params:0}),new r({name:"getPeerCount",call:"net_peerCount",params:0,outputFormatter:o.hexToNumber})].forEach(function(t){ t.attachToObject(e),t.setRequestManager(e._requestManager);});}; i.addProviders(a),t.exports=a;},{"web3-core":202,"web3-core-method":188,"web3-utils":273}],255:[function(e,t,n){ t.exports=XMLHttpRequest },{}],256:[function(e,t,n){ var i=e("web3-core-helpers").errors,r=e("xhr2"),o=function(e,t){ this.host=e||"http://localhost:8545",this.timeout=t||0,this.connected=!1 }; o.prototype.send=function(e,t){ var n=this,o=new r; o.open("POST",this.host,!0),o.setRequestHeader("Content-Type","application/json"),o.onreadystatechange=function(){ if(o.readyState===4&&o.timeout!==1){ var e=o.responseText,r=null; try{ e=JSON.parse(e) }catch(e){ r=i.InvalidResponse(o.responseText);}n.connected=!0,t(r,e);} },o.ontimeout=function(){ n.connected=!1,t(i.ConnectionTimeout(this.timeout));}; try{ o.send(JSON.stringify(e)) }catch(e){ this.connected=!1,t(i.InvalidConnection(this.host));} },t.exports=o;},{"web3-core-helpers":186,xhr2:255}],257:[function(e,t,n){ !(function(e,i,r,o,a,s){function c(e,t){return function(){return e.call(this,t.apply(this,arguments))}}function u(e){return function(t){return t[e]}}function l(e,t){return t.apply(s,e)}function f(e){var t=e.length-1,n=r.prototype.slice;if(0==t)return function(){return e.call(this,n.call(arguments))};if(1==t)return function(){return e.call(this,arguments[0],n.call(arguments,1))};var i=r(e.length);return function(){for(var r=0;r<t;r++)i[r]=arguments[r];return i[t]=n.call(arguments,t),e.apply(this,i)}}function p(e){return function(t,n){return e(n,t)}}function d(e,t){return function(n){return e(n)&&t(n)}}function h(){}function m(){return!0}function v(e){return function(){return e}}function b(e,t){return t&&t.constructor===e}function y(e){return e!==s}function g(e,t){return t instanceof i&&E(function(e){return e in t},e)}function _(e,t){return[e,t]}function x(e){return C(e.reduce(p(_),Q))}function w(e){return j(function(e,t){return e.unshift(t),e},[],e)}function k(e,t){return t?_(e(Y(t)),k(e,Z(t))):Q}function j(e,t,n){return n?e(j(e,t,Z(n)),Y(n)):t}function S(e,t,n){function i(e,n){return e?t(Y(e))?(n(Y(e)),Z(e)):_(Y(e),i(Z(e),n)):Q}return i(e,n||h)}function E(e,t){return!t||e(Y(t))&&E(e,Z(t))}function A(e,t){e&&(Y(e).apply(null,t),A(Z(e),t))}function C(e){function t(e,n){return e?t(Z(e),_(Y(e),n)):n}return t(e,Q)}function M(e,t){return t&&(e(Y(t))?Y(t):M(e,Z(t)))}function T(e){function t(){var e=0;D!==s&&D.length>d&&(n("Max buffer length exceeded: textNode"),e=Math.max(e,D.length)),L.length>d&&(n("Max buffer length exceeded: numberNode"),e=Math.max(e,L.length)),N=d-e+G}function n(e){D!==s&&(l(D),f(),D=s),r=o(e+"\nLn: "+J+"\nCol: "+$+"\nChr: "+a),p(z(s,s,r))}function i(e){return"\r"==e||"\n"==e||" "==e||"\t"==e}var r,a,c,u=e(ye).emit,l=e(ge).emit,f=e(_e).emit,p=e(fe).emit,d=65536,h=/[\\"\n]/g,m=0,v=m++,b=m++,y=m++,g=m++,_=m++,x=m++,w=m++,k=m++,j=m++,S=m++,E=m++,A=m++,C=m++,M=m++,T=m++,P=m++,F=m++,I=m++,B=m++,R=m++,O=m,N=d,D=s,L="",q=!1,U=!1,H=v,V=[],K=null,W=0,X=0,G=0,$=0,J=1;e(me).on(function(e){if(!r){if(U)return n("Cannot write after close");var o=0;for(a=e[0];a&&(c=a,a=e[o++]);)switch(G++,"\n"==a?(J++,$=0):$++,H){case v:if("{"===a)H=y;else if("["===a)H=_;else if(!i(a))return n("Non-whitespace before {[.");continue;case k:case y:if(i(a))continue;if(H===k)V.push(j);else{if("}"===a){l({}),f(),H=V.pop()||b;continue}V.push(g)}if('"'!==a)return n('Malformed object key should start with " ');H=w;continue;case j:case g:if(i(a))continue;if(":"===a)H===g?(V.push(g),D!==s&&(l({}),u(D),D=s),X++):D!==s&&(u(D),D=s),H=b;else if("}"===a)D!==s&&(l(D),f(),D=s),f(),X--,H=V.pop()||b;else{if(","!==a)return n("Bad object");H===g&&V.push(g),D!==s&&(l(D),f(),D=s),H=k}continue;case _:case b:if(i(a))continue;if(H===_){if(l([]),X++,H=b,"]"===a){f(),X--,H=V.pop()||b;continue}V.push(x)}if('"'===a)H=w;else if("{"===a)H=y;else if("["===a)H=_;else if("t"===a)H=S;else if("f"===a)H=C;else if("n"===a)H=F;else if("-"===a)L+=a;else if("0"===a)L+=a,H=O;else{if(-1==="123456789".indexOf(a))return n("Bad value");L+=a,H=O}continue;case x:if(","===a)V.push(x),D!==s&&(l(D),f(),D=s),H=b;else{if("]"!==a){if(i(a))continue;return n("Bad array")}D!==s&&(l(D),f(),D=s),f(),X--,H=V.pop()||b}continue;case w:D===s&&(D="");var p=o-1;e:for(;;){for(;W>0;)if(K+=a,a=e.charAt(o++),4===W?(D+=String.fromCharCode(parseInt(K,16)),W=0,p=o-1):W++,!a)break e;if('"'===a&&!q){H=V.pop()||b,D+=e.substring(p,o-1);break}if(!("\\"!==a||q||(q=!0,D+=e.substring(p,o-1),a=e.charAt(o++))))break;if(q){if(q=!1,"n"===a?D+="\n":"r"===a?D+="\r":"t"===a?D+="\t":"f"===a?D+="\f":"b"===a?D+="\b":"u"===a?(W=1,K=""):D+=a,a=e.charAt(o++),p=o-1,a)continue;break}h.lastIndex=o;var d=h.exec(e);if(!d){o=e.length+1,D+=e.substring(p,o-1);break}if(o=d.index+1,!(a=e.charAt(d.index))){D+=e.substring(p,o-1);break}}continue;case S:if(!a)continue;if("r"!==a)return n("Invalid true started with t"+a);H=E;continue;case E:if(!a)continue;if("u"!==a)return n("Invalid true started with tr"+a);H=A;continue;case A:if(!a)continue;if("e"!==a)return n("Invalid true started with tru"+a);l(!0),f(),H=V.pop()||b;continue;case C:if(!a)continue;if("a"!==a)return n("Invalid false started with f"+a);H=M;continue;case M:if(!a)continue;if("l"!==a)return n("Invalid false started with fa"+a);H=T;continue;case T:if(!a)continue;if("s"!==a)return n("Invalid false started with fal"+a);H=P;continue;case P:if(!a)continue;if("e"!==a)return n("Invalid false started with fals"+a);l(!1),f(),H=V.pop()||b;continue;case F:if(!a)continue;if("u"!==a)return n("Invalid null started with n"+a);H=I;continue;case I:if(!a)continue;if("l"!==a)return n("Invalid null started with nu"+a);H=B;continue;case B:if(!a)continue;if("l"!==a)return n("Invalid null started with nul"+a);l(null),f(),H=V.pop()||b;continue;case R:if("."!==a)return n("Leading zero not followed by .");L+=a,H=O;continue;case O:if(-1!=="0123456789".indexOf(a))L+=a;else if("."===a){if(-1!==L.indexOf("."))return n("Invalid number has two dots");L+=a}else if("e"===a||"E"===a){if(-1!==L.indexOf("e")||-1!==L.indexOf("E"))return n("Invalid number has two exponential");L+=a}else if("+"===a||"-"===a){if("e"!==c&&"E"!==c)return n("Invalid symbol in number");L+=a}else L&&(l(parseFloat(L)),f(),L=""),o--,H=V.pop()||b;continue;default:return n("Unknown state: "+H)}G>=N&&t()}}),e(ve).on(function(){if(H==v)return l({}),f(),void(U=!0);H===b&&0===X||n("Unexpected end"),D!==s&&(l(D),f(),D=s),U=!0})}function P(e,t){var n,i={};for(var r in t)e(r).on(function(e){return function(t){n=e(n,t)}}(t[r]),i);e(ue).on(function(e){var t=Y(n),i=ne(t),r=Z(n);r&&(ie(Y(r))[i]=e)}),e(le).on(function(){var e=Y(n),t=ne(e),i=Z(n);i&&delete ie(Y(i))[t]}),e(be).on(function(){for(var n in t)e(n).un(i)})}function F(e){var t={};return e&&e.split("\r\n").forEach(function(e){var n=e.indexOf(": ");t[e.substring(0,n)]=e.substring(n+2)}),t}function I(e,t){function n(e){return{"http:":80,"https:":443}[e]}function i(t){return t.port||n(t.protocol||e.protocol)}return!!(t.protocol&&t.protocol!=e.protocol||t.host&&t.host!=e.host||t.host&&i(t)!=i(e))}function B(e){var t=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(e)||[];return{protocol:t[1]||"",host:t[2]||"",port:t[3]||""}}function R(){return new XMLHttpRequest}function O(t,n,i,r,o,a,c){function u(){var e=n.responseText,t=e.substr(p);t&&l(t),p=$(e)}var l=t(me).emit,f=t(fe).emit,p=0,d=!0;t(be).on(function(){n.onreadystatechange=null,n.abort()}),"onprogress"in n&&(n.onprogress=u),n.onreadystatechange=function(){function e(){try{d&&t(he).emit(n.status,F(n.getAllResponseHeaders())),d=!1}catch(e){}}switch(n.readyState){case 2:case 3:return e();case 4:e(),2==String(n.status)[0]?(u(),t(ve).emit()):f(z(n.status,n.responseText))}};try{n.open(i,r,!0);for(var h in a)n.setRequestHeader(h,a[h]);I(e.location,B(r))||n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.withCredentials=c,n.send(o)}catch(t){e.setTimeout(X(f,z(s,s,t)),0)}}function N(e,t){return{key:e,node:t}}function D(e){function t(e,t){var n=ie(Y(e));return b(r,n)?i(e,$(n),t):e}function n(e,t,n){ie(Y(e))[t]=n}function i(e,t,i){e&&n(e,t,i);var r=_(N(t,i),e);return o(r),r}var o=e(se).emit,a=e(ce).emit,s=e(de).emit,c=e(pe).emit,u={};return u[ge]=function(e,r){if(!e)return s(r),i(e,re,r);var o=t(e,r),a=Z(o),c=ne(Y(o));return n(a,c,r),_(N(c,r),a)},u[_e]=function(e){return a(e),Z(e)||c(ie(Y(e)))},u[ye]=i,u}function L(e,t,n){function i(e){return function(t){return t.id==e}}var r,o;return{on:function(n,i){var a={listener:n,id:i||n};return t&&t.emit(e,n,a.id),r=_(a,r),o=_(n,o),this},emit:function(){A(o,arguments)},un:function(t){var a;r=S(r,i(t),function(e){a=e}),a&&(o=S(o,function(e){return e==a.listener}),n&&n.emit(e,a.listener,a.id))},listeners:function(){return o},hasListener:function(e){return y(M(e?i(e):m,r))}}}function q(){function e(e){return n[e]=L(e,i,r)}function t(t){return n[t]||e(t)}var n={},i=e("newListener"),r=e("removeListener");return["emit","on","un"].forEach(function(e){t[e]=f(function(n,i){l(i,t(n)[e])})}),t}function z(e,t,n){try{var i=a.parse(t)}catch(e){}return{statusCode:e,body:t,jsonBody:i,thrown:n}}function U(e,t){function n(e,t,n){var i=C(n);e(t,w(Z(k(ne,i))),w(k(ie,i)))}function i(t,i,r){var o=e(t).emit;i.on(function(e){var t=r(e);!1!==t&&n(o,ie(t),e)},t),e("removeListener").on(function(n){n==t&&(e(n).listeners()||i.un(t))})}var r={node:e(ce),path:e(se)};e("newListener").on(function(e){var n=/(node|path):(.*)/.exec(e);if(n){var o=r[n[1]];o.hasListener(e)||i(e,o,t(n[2]))}})}function H(e,t){function n(e,t,n){n=n||t;var r=i(t);return e.on(function(){var t=!1;u.forget=function(){t=!0},l(arguments,r),delete u.forget,t&&e.un(n)},n),u}function i(e){return function(){try{return e.apply(u,arguments)}catch(e){setTimeout(function(){throw e})}}}function r(t,n){return e(t+":"+n)}function o(e){return function(){var t=e.apply(this,arguments);y(t)&&(t==W.drop?m():b(t))}}function a(e,t,i){var a;a="node"==e?o(i):i,n(r(e,t),a,i)}function s(e,t){for(var n in t)a(e,n,t[n])}function c(e,t,n){return J(t)?a(e,t,n):s(e,t),u}var u,p=/^(node|path):./,d=e(pe),m=e(le).emit,b=e(ue).emit,g=f(function(t,i){if(u[t])l(i,u[t]);else{var r=e(t),o=i[0];p.test(t)?n(r,o):r.on(o)}return u});return e(de).on(function(e){u.root=v(e)}),e(he).on(function(e,t){u.header=function(e){return e?t[e]:t}}),u={on:g,addListener:g,removeListener:function(t,n,i){if("done"==t)d.un(n);else if("node"==t||"path"==t)e.un(t+":"+n,i);else{var r=n;e(t).un(r)}return u},emit:e.emit,node:X(c,"node"),path:X(c,"path"),done:X(n,d),start:X(function(t,n){return e(t).on(i(n),n),u},he),fail:e(fe).on,abort:e(be).emit,header:h,root:h,source:t}}function V(e,t,n,i,r){var o=q();return t&&O(o,R(),e,t,n,i,r),T(o),P(o,D(o)),U(o,oe),H(o,t)}function K(e,t,n,i,r,o,s){return r=r?a.parse(a.stringify(r)):{},i?J(i)||(i=a.stringify(i),r["Content-Type"]=r["Content-Type"]||"application/json"):i=null,e(n||"GET",function(e,t){return!1===t&&(-1==e.indexOf("?")?e+="?":e+="&",e+="_="+(new Date).getTime()),e}(t,s),i,r,o||!1)}function W(e){var t=ee("resume","pause","pipe"),n=X(g,t);return e?n(e)||J(e)?K(V,e):K(V,e.url,e.method,e.body,e.headers,e.withCredentials,e.cached):V()}var X=f(function(e,t){var n=t.length;return f(function(i){for(var r=0;r<i.length;r++)t[n+r]=i[r];return t.length=n+i.length,e.apply(this,t)})}),G=(f(function(e){function t(e,t){return[l(e,t)]}var n=x(e);return f(function(e){return j(t,e,n)[0]})}),f(function(e){return f(function(t){for(var n,i=0;i<$(e);i++)if(n=l(t,e[i]))return n})})),$=u("length"),J=X(b,String),Q=null,Y=u(0),Z=u(1),ee=f(x),te=function(){var e=function(e){return e.exec.bind(e)},t=f(function(t){return t.unshift(/^/),e(RegExp(t.map(u("source")).join("")))}),n=/(\$?)/,i=/()/,r=/\["([^"]+)"\]/,o=/\[(\d+|\*)\]/,a=/{([\w ]*?)}/,s=/(?:{([\w ]*?)})?/,c=t(n,/([\w-_]+|\*)/,s),l=t(n,r,s),p=t(n,o,s),d=t(n,i,a),h=t(/\.\./),m=t(/\./),v=t(n,/!/),b=t(/$/);return function(e){return e(G(c,l,p,d),h,m,v,b)}}(),ne=u("key"),ie=u("node"),re={},oe=te(function(e,t,n,i,r){function a(e,t){return!!t[b]?d(e,Y):e}function s(e){return e==m?m:d(function(e){return w(e)!=re},c(e,Z))}function u(){return function(e){return w(e)==re}}function l(e,t,n){return j(function(e,t){return t(e,n)},t,e)}function f(e,t,n,i,r){var o=e(n);if(o){var a=l(t,i,o);return r(n.substr($(o[0])),a)}}function p(e,t){return X(f,e,t)}function h(e,t){return t}function v(e,t){return S(e,t,e?v:h)}var b=1,y=2,_=3,w=c(ne,Y),k=c(ie,Y),S=G(p(e,ee(a,function(e,t){var n=t[_];return n?d(c(X(g,x(n.split(/\W+/))),k),e):e},function(e,t){var n=t[y];return d(n&&"*"!=n?function(e){return w(e)==n}:m,e)},s)),p(t,ee(function(e){if(e==m)return m;var t=u(),n=e,i=s(function(e){return r(e)}),r=G(t,n,i);return r})),p(n,ee()),p(i,ee(a,u)),p(r,ee(function(e){return function(t){var n=e(t);return!0===n?Y(t):n}})),function(e){throw o('"'+e+'" could not be tokenised')});return function(e){try{return v(e,m)}catch(t){throw o('Could not compile "'+e+'" because '+t.message)}}}),ae=1,se=ae++,ce=ae++,ue=ae++,le=ae++,fe="fail",pe=ae++,de=ae++,he="start",me="data",ve="end",be=ae++,ye=ae++,ge=ae++,_e=ae++;W.drop=function(){return W.drop},"function"==typeof define&&define.amd?define("oboe",[],function(){return W}):"object"===(void 0===n?"undefined":_typeof(n))?t.exports=W:e.oboe=W}(function(){try{return window}catch(e){return self}}(),Object,Array,Error,JSON))},{}],258:[function(e,t,n){ arguments[4][172][0].apply(n,arguments);},{dup:172}],259:[function(e,t,n){ var i=e("underscore"),r=e("web3-core-helpers").errors,o=e("oboe"),a=function(e,t){ var n=this; this.responseCallbacks={},this.notificationCallbacks=[],this.path=e,this.connection=t.connect({path:this.path}),this.addDefaultEvents(); var r=function(e){ var t=null; i.isArray(e)?e.forEach(function(e){ n.responseCallbacks[e.id]&&(t=e.id) }):t=e.id,t||e.method.indexOf("_subscription")===-1?n.responseCallbacks[t]&&(n.responseCallbacks[t](null,e),delete n.responseCallbacks[t]):n.notificationCallbacks.forEach(function(t){ i.isFunction(t)&&t(null,e);});}; "Socket"===t.constructor.name?o(this.connection).done(r):this.connection.on("data",function(e){ n._parseResponse(e.toString()).forEach(r) });}; a.prototype.addDefaultEvents=function(){ var e=this; this.connection.on("connect",function(){}),this.connection.on("error",function(){ e._timeout();}),this.connection.on("end",function(){ e._timeout(),e.notificationCallbacks.forEach(function(e){ i.isFunction(e)&&e(new Error("IPC socket connection closed"));}) }),this.connection.on("timeout",function(){ e._timeout() });},a.prototype._parseResponse=function(e){ var t=this,n=[]; return e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach(function(e){ t.lastChunk&&(e=t.lastChunk+e); var i=null; try{ i=JSON.parse(e) }catch(n){ return t.lastChunk=e,clearTimeout(t.lastChunkTimeout),void (t.lastChunkTimeout=setTimeout(function(){ throw t._timeout(),r.InvalidResponse(e);},15e3)) }clearTimeout(t.lastChunkTimeout),t.lastChunk=null,i&&n.push(i);}),n },a.prototype._addResponseCallback=function(e,t){ var n=e.id||e[0].id,i=e.method||e[0].method; this.responseCallbacks[n]=t,this.responseCallbacks[n].method=i },a.prototype._timeout=function(){ for(var e in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(e)&&(this.responseCallbacks[e](r.InvalidConnection("on IPC")),delete this.responseCallbacks[e]);},a.prototype.reconnect=function(){ this.connection.connect({path:this.path}) },a.prototype.send=function(e,t){ this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(e)),this._addResponseCallback(e,t);},a.prototype.on=function(e,t){ if(typeof t!="function")throw new Error("The second parameter callback must be a function."); switch(e){ case"data": this.notificationCallbacks.push(t); break; default: this.connection.on(e,t);} },a.prototype.once=function(e,t){ if(typeof t!="function")throw new Error("The second parameter callback must be a function."); this.connection.once(e,t) },a.prototype.removeListener=function(e,t){ var n=this; switch(e){ case"data": this.notificationCallbacks.forEach(function(e,i){ e===t&&n.notificationCallbacks.splice(i,1) }); break; default: this.connection.removeListener(e,t);} },a.prototype.removeAllListeners=function(e){ switch(e){ case"data": this.notificationCallbacks=[]; break; default: this.connection.removeAllListeners(e) } },a.prototype.reset=function(){ this._timeout(),this.notificationCallbacks=[],this.connection.removeAllListeners("error"),this.connection.removeAllListeners("end"),this.connection.removeAllListeners("timeout"),this.addDefaultEvents() },t.exports=a;},{oboe:257,underscore:258,"web3-core-helpers":186}],260:[function(e,t,n){ arguments[4][172][0].apply(n,arguments);},{dup:172}],261:[function(e,t,n){ var i=e("underscore"),r=e("web3-core-helpers").errors,o=null; o=typeof window!="undefined"?window.WebSocket:e("websocket").w3cwebsocket; var a=function(e){ var t=this; this.responseCallbacks={},this.notificationCallbacks=[],this.connection=new o(e),this.addDefaultEvents(),this.connection.onmessage=function(e){ var n=typeof e.data=="string"?e.data:""; t._parseResponse(n).forEach(function(e){ var n=null; i.isArray(e)?e.forEach(function(e){ t.responseCallbacks[e.id]&&(n=e.id);}):n=e.id,n||e.method.indexOf("_subscription")===-1?t.responseCallbacks[n]&&(t.responseCallbacks[n](null,e),delete t.responseCallbacks[n]):t.notificationCallbacks.forEach(function(t){ i.isFunction(t)&&t(null,e) });}) } }; a.prototype.addDefaultEvents=function(){ var e=this; this.connection.onerror=function(){ e._timeout() },this.connection.onclose=function(t){ e._timeout(); var n=e.notificationCallbacks; e.reset(),n.forEach(function(e){ i.isFunction(e)&&e(t) });};},a.prototype._parseResponse=function(e){ var t=this,n=[]; return e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach(function(e){ t.lastChunk&&(e=t.lastChunk+e); var i=null; try{ i=JSON.parse(e);}catch(n){ return t.lastChunk=e,clearTimeout(t.lastChunkTimeout),void (t.lastChunkTimeout=setTimeout(function(){ throw t._timeout(),r.InvalidResponse(e);},15e3)) }clearTimeout(t.lastChunkTimeout),t.lastChunk=null,i&&n.push(i);}),n },a.prototype._addResponseCallback=function(e,t){ var n=e.id||e[0].id,i=e.method||e[0].method; this.responseCallbacks[n]=t,this.responseCallbacks[n].method=i },a.prototype._timeout=function(){ for(var e in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(e)&&(this.responseCallbacks[e](r.InvalidConnection("on IPC")),delete this.responseCallbacks[e]);},a.prototype.send=function(e,t){ var n=this; this.connection.readyState!==this.connection.CONNECTING?(this.connection.send(JSON.stringify(e)),this._addResponseCallback(e,t)):setTimeout(function(){ n.send(e,t);},10) },a.prototype.on=function(e,t){ if(typeof t!="function")throw new Error("The second parameter callback must be a function."); switch(e){ case"data": this.notificationCallbacks.push(t); break; case"connect": this.connection.onopen=t; break; case"end": this.connection.onclose=t; break; case"error": this.connection.onerror=t } },a.prototype.removeListener=function(e,t){ var n=this; switch(e){ case"data": this.notificationCallbacks.forEach(function(e,i){ e===t&&n.notificationCallbacks.splice(i,1) });} },a.prototype.removeAllListeners=function(e){ switch(e){ case"data": this.notificationCallbacks=[]; break; case"connect": this.connection.onopen=null; break; case"end": this.connection.onclose=null; break; case"error": this.connection.onerror=null } },a.prototype.reset=function(){ this._timeout(),this.notificationCallbacks=[],this.addDefaultEvents();},t.exports=a;},{underscore:260,"web3-core-helpers":186,websocket:44}],262:[function(e,t,n){ var i=e("web3-core"),r=e("web3-core-subscriptions").subscriptions,o=e("web3-core-method"),a=e("web3-net"),s=function(){ var e=this; i.packageInit(this,arguments); var t=this.setProvider; this.setProvider=function(){ t.apply(e,arguments),e.net.setProvider.apply(e,arguments);},this.clearSubscriptions=e._requestManager.clearSubscriptions,this.net=new a(this.currentProvider),[new r({name:"subscribe",type:"shh",subscriptions:{messages:{params:1}}}),new o({name:"getVersion",call:"shh_version",params:0}),new o({name:"getInfo",call:"shh_info",params:0}),new o({name:"setMaxMessageSize",call:"shh_setMaxMessageSize",params:1}),new o({name:"setMinPoW",call:"shh_setMinPoW",params:1}),new o({name:"markTrustedPeer",call:"shh_markTrustedPeer",params:1}),new o({name:"newKeyPair",call:"shh_newKeyPair",params:0}),new o({name:"addPrivateKey",call:"shh_addPrivateKey",params:1}),new o({name:"deleteKeyPair",call:"shh_deleteKeyPair",params:1}),new o({name:"hasKeyPair",call:"shh_hasKeyPair",params:1}),new o({name:"getPublicKey",call:"shh_getPublicKey",params:1}),new o({name:"getPrivateKey",call:"shh_getPrivateKey",params:1}),new o({name:"newSymKey",call:"shh_newSymKey",params:0}),new o({name:"addSymKey",call:"shh_addSymKey",params:1}),new o({name:"generateSymKeyFromPassword",call:"shh_generateSymKeyFromPassword",params:1}),new o({name:"hasSymKey",call:"shh_hasSymKey",params:1}),new o({name:"getSymKey",call:"shh_getSymKey",params:1}),new o({name:"deleteSymKey",call:"shh_deleteSymKey",params:1}),new o({name:"newMessageFilter",call:"shh_newMessageFilter",params:1}),new o({name:"getFilterMessages",call:"shh_getFilterMessages",params:1}),new o({name:"deleteMessageFilter",call:"shh_deleteMessageFilter",params:1}),new o({name:"post",call:"shh_post",params:1,inputFormatter:[null]})].forEach(function(t){ t.attachToObject(e),t.setRequestManager(e._requestManager) }) }; i.addProviders(s),t.exports=s },{"web3-core":202,"web3-core-method":188,"web3-core-subscriptions":199,"web3-net":254}],263:[function(e,t,n){ arguments[4][236][0].apply(n,arguments) },{dup:236}],264:[function(e,t,n){ function i(e){ var t=e?e.toLowerCase():"ether",n=u[t]; if(typeof n!="string")throw new Error("[ethjs-unit] the unit provided "+e+" doesn't exists, please use the one of the following units "+JSON.stringify(u,null,2)); return new o(n,10) }function r(e){ if(typeof e=="string"){ if(!e.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+e+"', should be a number matching (^-?[0-9.]+)."); return e;}if(typeof e=="number")return String(e); if((void 0===e?"undefined":_typeof(e))==="object"&&e.toString&&(e.toTwos||e.dividedToIntegerBy))return e.toPrecision?String(e.toPrecision()):e.toString(10); throw new Error("while converting number to string, invalid number value '"+e+"' type "+(void 0===e?"undefined":_typeof(e))+".") }var o=e("bn.js"),a=e("number-to-bn"),s=new o(0),c=new o(-1),u={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"}; t.exports={unitMap:u,numberToString:r,getValueOfUnit:i,fromWei:function(e,t,n){ var r=a(e),o=r.lt(s),l=i(t),f=u[t].length-1||1,p=n||{}; o&&(r=r.mul(c)); for(var d=r.mod(l).toString(10); d.length<f;)d="0"+d; p.pad||(d=d.match(/^([0-9]*[1-9]|0)(0*)/)[1]); var h=r.div(l).toString(10); p.commify&&(h=h.replace(/\B(?=(\d{3})+(?!\d))/g,",")); var m=h+(d=="0"?"":"."+d); return o&&(m="-"+m),m;},toWei:function(e,t){ var n=r(e),a=i(t),s=u[t].length-1||1,l=n.substring(0,1)==="-"; if(l&&(n=n.substring(1)),n===".")throw new Error("[ethjs-unit] while converting number "+e+" to wei, invalid value"); var f=n.split("."); if(f.length>2)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal points"); var p=f[0],d=f[1]; if(p||(p="0"),d||(d="0"),d.length>s)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal places"); for(;d.length<s;)d+="0"; p=new o(p),d=new o(d); var h=p.mul(a).add(d); return l&&(h=h.mul(c)),new o(h.toString(10),10) }} },{"bn.js":"BN","number-to-bn":266}],265:[function(e,t,n){ t.exports=function(e){ if(typeof e!="string")throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+(void 0===e?"undefined":_typeof(e))+", while checking isHexPrefixed."); returne.slice(0,2)==="0x"};},{}],266:[function(e,t,n){ var i=e("bn.js"),r=e("strip-hex-prefix"); t.exports=function(e){ if(typeof e=="string"||typeof e=="number"){ var t=new i(1),n=String(e).toLowerCase().trim(),o=n.substr(0,2)==="0x"||n.substr(0,3)==="-0x",a=r(n); if(a.substr(0,1)==="-"&&(a=r(a.slice(1)),t=new i(-1,10)),!(a=a===""?"0":a).match(/^-?[0-9]+$/)&&a.match(/^[0-9A-Fa-f]+$/)||a.match(/^[a-fA-F]+$/)||!0===o&&a.match(/^[0-9A-Fa-f]+$/))return new i(a,16).mul(t); if((a.match(/^-?[0-9]+$/)||a==="")&&!1===o)return new i(a,10).mul(t);}else if((void 0===e?"undefined":_typeof(e))==="object"&&e.toString&&!e.pop&&!e.push&&e.toString(10).match(/^-?[0-9]+$/)&&(e.mul||e.dividedToIntegerBy))return new i(e.toString(10),10); throw new Error("[number-to-bn] while converting number "+JSON.stringify(e)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.") } },{"bn.js":"BN","strip-hex-prefix":270}],267:[function(e,t,n){ t.exports=window.crypto },{}],268:[function(e,t,n){ t.exports=e("crypto") },{crypto:267}],269:[function(e,t,n){ t.exports=function(t,n){ var i=e("./crypto.js"),r=typeof n=="function"; if(t>65536){ if(!r)throw new Error("Requested too many random bytes."); n(new Error("Requested too many random bytes.")) }if(void 0!==i&&i.randomBytes){ if(!r)return"0x"+i.randomBytes(t).toString("hex"); i.randomBytes(t,function(e,t){ e?n(c):n(null,"0x"+t.toString("hex"));}) }else{ var o; if(void 0!==i?o=i:typeof msCrypto!="undefined"&&(o=msCrypto),o&&o.getRandomValues){ var a=o.getRandomValues(new Uint8Array(t)),s="0x"+Array.from(a).map(function(e){ return e.toString(16);}).join(""); if(!r)return s; n(null,s);}else{ var c=new Error('No "crypto" object available. This Browser doesn\'t support generating secure random bytes.'); if(!r)throw c; n(c) } } } },{"./crypto.js":268}],270:[function(e,t,n){ var i=e("is-hex-prefixed"); t.exports=function(e){ returntypeof e!="string"?e:i(e)?e.slice(2):e } },{"is-hex-prefixed":265}],271:[function(e,t,n){ arguments[4][172][0].apply(n,arguments);},{dup:172}],272:[function(e,t,n){ (function(e){ !(function(i){function r(e){for(var t,n,i=[],r=0,o=e.length;r<o;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<o?56320==(64512&(n=e.charCodeAt(r++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),r--):i.push(t);return i}function o(e){for(var t,n=e.length,i=-1,r="";++i<n;)(t=e[i])>65535&&(r+=b((t-=65536)>>>10&1023|55296),t=56320|1023&t),r+=b(t);return r}function a(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function s(e,t){return b(e>>t&63|128)}function c(e){if(0==(4294967168&e))return b(e);var t="";return 0==(4294965248&e)?t=b(e>>6&31|192):0==(4294901760&e)?(a(e),t=b(e>>12&15|224),t+=s(e,6)):0==(4292870144&e)&&(t=b(e>>18&7|240),t+=s(e,12),t+=s(e,6)),t+=b(63&e|128)}function u(){if(v>=m)throw Error("Invalid byte index");var e=255&h[v];if(v++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function l(){var e,t,n,i,r;if(v>m)throw Error("Invalid byte index");if(v==m)return!1;if(e=255&h[v],v++,0==(128&e))return e;if(192==(224&e)){if((r=(31&e)<<6|(t=u()))>=128)return r;throw Error("Invalid continuation byte")}if(224==(240&e)){if(t=u(),n=u(),(r=(15&e)<<12|t<<6|n)>=2048)return a(r),r;throw Error("Invalid continuation byte")}if(240==(248&e)&&(t=u(),n=u(),i=u(),(r=(15&e)<<18|t<<12|n<<6|i)>=65536&&r<=1114111))return r;throw Error("Invalid UTF-8 detected")}var f="object"==(void 0===n?"undefined":_typeof(n))&&n,p="object"==(void 0===t?"undefined":_typeof(t))&&t&&t.exports==f&&t,d="object"==(void 0===e?"undefined":_typeof(e))&&e;d.global!==d&&d.window!==d||(i=d);var h,m,v,b=String.fromCharCode,y={version:"2.0.0",encode:function(e){for(var t=r(e),n=t.length,i=-1,o="";++i<n;)o+=c(t[i]);return o},decode:function(e){h=r(e),m=h.length,v=0;for(var t,n=[];!1!==(t=l());)n.push(t);return o(n)}};if("function"==typeof define&&"object"==_typeof(define.amd)&&define.amd)define(function(){return y});else if(f&&!f.nodeType)if(p)p.exports=y;else{var g={}.hasOwnProperty;for(var _ in y)g.call(y,_)&&(f[_]=y[_])}else i.utf8=y}(this))}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{});},{}],273:[function(e,t,n){ var i=e("underscore"),r=e("ethjs-unit"),o=e("./utils.js"),a=e("./soliditySha3.js"),s=e("randomhex"),c=function(e){ if(!o.isHex(e))throw new Error("The parameter must be a valid HEX string."); var t="",n=0,i=e.length; for(e.substring(0,2)==="0x"&&(n=2); n<i; n+=2){ var r=parseInt(e.substr(n,2),16); t+=String.fromCharCode(r) }return t;},u=function(e){ for(var t="",n=0; n<e.length; n++){ var i=e.charCodeAt(n).toString(16); t+=i.length<2?"0"+i:i }return"0x"+t },l=function(e){ if(e=e?e.toLowerCase():"ether",!r.unitMap[e])throw new Error('This unit "'+e+"\" doesn't exist, please use the one of the following units"+JSON.stringify(r.unitMap,null,2)); return e;}; t.exports={_fireError:function(e,t,n,r){ return!i.isObject(e)||e instanceof Error||!e.data||((i.isObject(e.data)||i.isArray(e.data))&&(e.data=JSON.stringify(e.data,null,2)),e=e.message+"\n"+e.data),i.isString(e)&&(e=new Error(e)),i.isFunction(r)&&r(e),i.isFunction(n)&&(t&&i.isFunction(t.listeners)&&t.listeners("error").length&&i.isFunction(t.suppressUnhandledRejections)?t.suppressUnhandledRejections():i.isFunction(r)&&i.isFunction(t.suppressUnhandledRejections)&&t.suppressUnhandledRejections(),setTimeout(function(){ n(e);},1)),t&&i.isFunction(t.emit)&&setTimeout(function(){ t.emit("error",e),t.removeAllListeners() },1),t },_jsonInterfaceMethodToString:function(e){ if(i.isObject(e)&&e.name&&e.name.indexOf("(")!==-1)return e.name; var t=e.inputs.map(function(e){ return e.type;}).join(","); return e.name+"("+t+")" },randomHex:s,_:i,BN:o.BN,isBN:o.isBN,isBigNumber:o.isBigNumber,isHex:o.isHex,sha3:o.sha3,keccak256:o.sha3,soliditySha3:a,isAddress:o.isAddress,checkAddressChecksum:o.checkAddressChecksum,toChecksumAddress:function(e){ if(void 0===e)return""; if(!(/^(0x)?[0-9a-f]{40}$/i).test(e))throw new Error('Given address "'+e+'" is not a valid Ethereum address.'); e=e.toLowerCase().replace(/^0x/i,""); for(var t=o.sha3(e).replace(/^0x/i,""),n="0x",i=0; i<e.length; i++)parseInt(t[i],16)>7?n+=e[i].toUpperCase():n+=e[i]; return n;},toHex:o.toHex,toBN:o.toBN,bytesToHex:o.bytesToHex,hexToBytes:o.hexToBytes,hexToNumberString:o.hexToNumberString,hexToNumber:o.hexToNumber,toDecimal:o.hexToNumber,numberToHex:o.numberToHex,fromDecimal:o.numberToHex,hexToUtf8:o.hexToUtf8,hexToString:o.hexToUtf8,toUtf8:o.hexToUtf8,utf8ToHex:o.utf8ToHex,stringToHex:o.utf8ToHex,fromUtf8:o.utf8ToHex,hexToAscii:c,toAscii:c,asciiToHex:u,fromAscii:u,unitMap:r.unitMap,toWei:function(e,t){ return t=l(t),o.isBN(e)?r.toWei(e,t):r.toWei(e,t).toString(10);},fromWei:function(e,t){ return t=l(t),o.isBN(e)?r.fromWei(e,t):r.fromWei(e,t).toString(10) },padLeft:o.leftPad,leftPad:o.leftPad,padRight:o.rightPad,rightPad:o.rightPad,toTwosComplement:o.toTwosComplement};},{"./soliditySha3.js":274,"./utils.js":275,"ethjs-unit":264,randomhex:269,underscore:271}],274:[function(e,t,n){ var i=e("underscore"),r=e("bn.js"),o=e("./utils.js"),a=function(e){ return e.startsWith("int[")?"int256"+e.slice(3):e==="int"?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):e==="uint"?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):e==="fixed"?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):e==="ufixed"?"ufixed128x128":e;},s=function(e){ var t=(/^\D+(\d+).*$/).exec(e); return t?parseInt(t[1],10):null },c=function(e){ var t=(/^\D+\d*\[(\d+)\]$/).exec(e); return t?parseInt(t[1],10):null },u=function(e){ var t=void 0===e?"undefined":_typeof(e); if(t==="string")return o.isHex(e)?new r(e.replace(/0x/i,""),16):new r(e,10); if(t==="number")return new r(e); if(o.isBigNumber(e))return new r(e.toString(10)); if(o.isBN(e))return e; throw new Error(e+" is not a number") },l=function(e,t,n){ var i,c; if((e=a(e))==="bytes"){ if(t.replace(/^0x/i,"").length%2!=0)throw new Error("Invalid bytes characters "+t.length); return t;}if(e==="string")return o.utf8ToHex(t); if(e==="bool")return t?"01":"00"; if(e.startsWith("address")){ if(i=n?64:40,!o.isAddress(t))throw new Error(t+" is not a valid address, or the checksum is invalid."); return o.leftPad(t.toLowerCase(),i) }if(i=s(e),e.startsWith("bytes")){ if(!i)throw new Error("bytes[] not yet supported in solidity"); if(n&&(i=32),i<1||i>32||i<t.replace(/^0x/i,"").length/2)throw new Error("Invalid bytes"+i+" for "+t); return o.rightPad(t,2*i) }if(e.startsWith("uint")){ if(i%8||i<8||i>256)throw new Error("Invalid uint"+i+" size"); if((c=u(t)).bitLength()>i)throw new Error("Supplied uint exceeds width: "+i+" vs "+c.bitLength()); if(c.lt(new r(0)))throw new Error("Supplied uint "+c.toString()+" is negative"); return i?o.leftPad(c.toString("hex"),i/8*2):c }if(e.startsWith("int")){ if(i%8||i<8||i>256)throw new Error("Invalid int"+i+" size"); if((c=u(t)).bitLength()>i)throw new Error("Supplied int exceeds width: "+i+" vs "+c.bitLength()); return c.lt(new r(0))?c.toTwos(i).toString("hex"):i?o.leftPad(c.toString("hex"),i/8*2):c }throw new Error("Unsupported or invalid type: "+e);},f=function(e){ if(i.isArray(e))throw new Error("Autodetection of array types is not supported."); var t,n,a=""; if(i.isObject(e)&&(e.hasOwnProperty("v")||e.hasOwnProperty("t")||e.hasOwnProperty("value")||e.hasOwnProperty("type"))?(t=e.t||e.type,a=e.v||e.value):(t=o.toHex(e,!0),a=o.toHex(e),t.startsWith("int")||t.startsWith("uint")||(t="bytes")),!t.startsWith("int")&&!t.startsWith("uint")||typeof a!="string"||(/^(-)?0x/i).test(a)||(a=new r(a)),i.isArray(a)){ if((n=c(t))&&a.length!==n)throw new Error(t+" is not matching the given array "+JSON.stringify(a)); n=a.length;}return i.isArray(a)?a.map(function(e){ return l(t,e,n).toString("hex").replace("0x","");}).join(""):l(t,a,n).toString("hex").replace("0x","");}; t.exports=function(){ var e=Array.prototype.slice.call(arguments),t=i.map(e,f); return o.sha3("0x"+t.join(""));} },{"./utils.js":275,"bn.js":"BN",underscore:271}],275:[function(e,t,n){ var i=e("underscore"),r=e("bn.js"),o=e("number-to-bn"),a=e("utf8"),s=e("eth-lib/lib/hash"),c=function(e){ return e instanceof r||e&&e.constructor&&e.constructor.name==="BN"},u=function(e){ return e&&e.constructor&&e.constructor.name==="BigNumber"},l=function(e){ try{ return o.apply(null,arguments);}catch(t){ throw new Error(t+' Given value: "'+e+'"');} },f=function(e){ return Boolean(/^(0x)?[0-9a-f]{40}$/i.test(e))&&(!(!(/^(0x|0X)?[0-9a-f]{40}$/).test(e)&&!(/^(0x|0X)?[0-9A-F]{40}$/).test(e))||p(e));},p=function(e){ e=e.replace(/^0x/i,""); for(var t=b(e.toLowerCase()).replace(/^0x/i,""),n=0; n<40; n++)if(parseInt(t[n],16)>7&&e[n].toUpperCase()!==e[n]||parseInt(t[n],16)<=7&&e[n].toLowerCase()!==e[n])return!1; return!0;},d=function(e){ var t=""; e=(e=(e=(e=(e=a.encode(e)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join(""); for(var n=0; n<e.length; n++){ var i=e.charCodeAt(n).toString(16); t+=i.length<2?"0"+i:i }return"0x"+t;},h=function(e){ if(!isFinite(e)&&!i.isString(e))return e; var t=l(e),n=t.toString(16); return t.lt(new r(0))?"-0x"+n.substr(1):"0x"+n;},m=function(e){ if(e=e.toString(16),!v(e))throw new Error('Given value "'+e+'" is not a valid hex string.'); e=e.replace(/^0x/i,""); for(var t=[],n=0; n<e.length; n+=2)t.push(parseInt(e.substr(n,2),16)); return t;},v=function(e){ return(i.isString(e)||i.isNumber(e))&&(/^(-)?0x[0-9a-f]*$/i).test(e) },b=function(e){ v(e)&&(/^0x/i).test(e.toString())&&(e=m(e)); var t=s.keccak256(e); returnt==="0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"?null:t;}; b._Hash=s,t.exports={BN:r,isBN:c,isBigNumber:u,toBN:l,isAddress:f,isBloom:function(e){ return!(!(/^(0x)?[0-9a-f]{512}$/i).test(e)||!(/^(0x)?[0-9a-f]{512}$/).test(e)&&!(/^(0x)?[0-9A-F]{512}$/).test(e));},isTopic:function(e){ return!(!(/^(0x)?[0-9a-f]{64}$/i).test(e)||!(/^(0x)?[0-9a-f]{64}$/).test(e)&&!(/^(0x)?[0-9A-F]{64}$/).test(e)) },checkAddressChecksum:p,utf8ToHex:d,hexToUtf8:function(e){ if(!v(e))throw new Error('The parameter "'+e+'" must be a valid HEX string.'); for(var t="",n=0,i=(e=(e=(e=(e=(e=e.replace(/^0x/i,"")).replace(/^(?:00)*/,"")).split("").reverse().join("")).replace(/^(?:00)*/,"")).split("").reverse().join("")).length,r=0; r<i; r+=2)n=parseInt(e.substr(r,2),16),t+=String.fromCharCode(n); return a.decode(t) },hexToNumber:function(e){ return e?l(e).toNumber():e;},hexToNumberString:function(e){ return e?l(e).toString(10):e;},numberToHex:h,toHex:function(e,t){ if(f(e))return t?"address":"0x"+e.toLowerCase().replace(/^0x/i,""); if(i.isBoolean(e))return t?"bool":e?"0x01":"0x00"; if(i.isObject(e)&&!u(e)&&!c(e))return t?"string":d(JSON.stringify(e)); if(i.isString(e)){ if(e.indexOf("-0x")===0||e.indexOf("-0X")===0)return t?"int256":h(e); if(e.indexOf("0x")===0||e.indexOf("0X")===0)return t?"bytes":e; if(!isFinite(e))return t?"string":d(e) }return t?e<0?"int256":"uint256":h(e) },hexToBytes:m,bytesToHex:function(e){ for(var t=[],n=0; n<e.length; n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16)); return"0x"+t.join("");},isHex:v,leftPad:function(e,t,n){ var i=(/^0x/i).test(e)||typeof e=="number",r=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0; return(i?"0x":"")+new Array(r).join(n||"0")+e;},rightPad:function(e,t,n){ var i=(/^0x/i).test(e)||typeof e=="number",r=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0; return(i?"0x":"")+e+new Array(r).join(n||"0");},toTwosComplement:function(e){ return"0x"+l(e).toTwos(256).toString(16,64) },sha3:b} },{"bn.js":"BN","eth-lib/lib/hash":263,"number-to-bn":266,underscore:271,utf8:272}],276:[function(e,t,n){ t.exports={name:"web3",namespace:"ethereum",version:"1.0.0-beta.22",description:"Ethereum JavaScript API",repository:"https://github.com/ethereum/web3.js/tree/master/packages/web3",license:"LGPL-3.0",main:"src/index.js",bugs:{url:"https://github.com/ethereum/web3.js/issues"},keywords:["Ethereum","JavaScript","API"],author:"ethereum.org",authors:[{name:"Fabian Vogelsteller",email:"fabian@ethereum.org",homepage:"http://frozeman.de"},{name:"Marek Kotewicz",email:"marek@parity.io",url:"https://github.com/debris"},{name:"Marian Oancea",url:"https://github.com/cubedro"},{name:"Gav Wood",email:"g@parity.io",homepage:"http://gavwood.com"},{name:"Jeffery Wilcke",email:"jeffrey.wilcke@ethereum.org",url:"https://github.com/obscuren"}],dependencies:{"web3-bzz":"^1.0.0-beta.22","web3-core":"^1.0.0-beta.22","web3-eth":"^1.0.0-beta.22","web3-eth-personal":"^1.0.0-beta.22","web3-net":"^1.0.0-beta.22","web3-shh":"^1.0.0-beta.22","web3-utils":"^1.0.0-beta.22"}};},{}],BN:[function(e,t,n){ !(function(t,n){function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}function a(e,t,n){for(var i=0,r=Math.min(e.length,n),o=t;o<r;o++){var a=e.charCodeAt(o)-48;i<<=4,i|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function s(e,t,n,i){for(var r=0,o=Math.min(e.length,n),a=t;a<o;a++){var s=e.charCodeAt(a)-48;r*=i,r+=s>=49?s-49+10:s>=17?s-17+10:s}return r}function c(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var i=n/26|0,r=n%26;t[n]=(e.words[i]&1<<r)>>>r}return t}function u(e,t,n){n.negative=t.negative^e.negative;var i=e.length+t.length|0;n.length=i,i=i-1|0;var r=0|e.words[0],o=0|t.words[0],a=r*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var u=1;u<i;u++){for(var l=c>>>26,f=67108863&c,p=Math.min(u,t.length-1),d=Math.max(0,u-e.length+1);d<=p;d++){var h=u-d|0;l+=(a=(r=0|e.words[h])*(o=0|t.words[d])+f)/67108864|0,f=67108863&a}n.words[u]=0|f,c=0|l}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}function l(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var i=0,r=0,o=0;o<n.length-1;o++){var a=r;r=0;for(var s=67108863&i,c=Math.min(o,t.length-1),u=Math.max(0,o-e.length+1);u<=c;u++){var l=o-u,f=(0|e.words[l])*(0|t.words[u]),p=67108863&f;s=67108863&(p=p+s|0),r+=(a=(a=a+(f/67108864|0)|0)+(p>>>26)|0)>>>26,a&=67108863}n.words[o]=s,i=a,a=r}return 0!==i?n.words[o]=i:n.length--,n.strip()}function f(e,t,n){return(new p).mulp(e,t,n)}function p(e,t){this.x=e,this.y=t}function d(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function h(){d.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function m(){d.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){d.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function b(){d.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function y(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function g(e){y.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"===(void 0===t?"undefined":_typeof(t))?t.exports=o:n.BN=o,o.BN=o,o.wordSize=26;var _;try{_=e("buffer").Buffer}catch(e){}o.isBN=function(e){return e instanceof o||null!==e&&"object"===(void 0===e?"undefined":_typeof(e))&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"===(void 0===e?"undefined":_typeof(e)))return this._initArray(e,t,n);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&r++,16===t?this._parseHex(e,r):this._parseBase(e,t,r),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var o,a,s=0;if("be"===n)for(r=e.length-1,o=0;r>=0;r-=3)a=e[r]|e[r-1]<<8|e[r-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(r=0,o=0;r<e.length;r+=3)a=e[r]|e[r+1]<<8|e[r+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,r,o=0;for(n=e.length-6,i=0;n>=t;n-=6)r=a(e,n,n+6),this.words[i]|=r<<o&67108863,this.words[i+1]|=r>>>26-o&4194303,(o+=24)>=26&&(o-=26,i++);n+6!==t&&(r=a(e,t,n+6),this.words[i]|=r<<o&67108863,this.words[i+1]|=r>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var i=0,r=1;r<=67108863;r*=t)i++;i--,r=r/t|0;for(var o=e.length-n,a=o%i,c=Math.min(o,o-a)+n,u=0,l=n;l<c;l+=i)u=s(e,l,l+i,t),this.imuln(r),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=s(e,l,e.length,t),l=0;l<a;l++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var x=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],w=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],k=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){e=e||10,t=0|t||1;var n;if(16===e||"hex"===e){n="";for(var r=0,o=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<r|o)).toString(16);n=0!==(o=s>>>24-r&16777215)||a!==this.length-1?x[6-c.length]+c+n:c+n,(r+=2)>=26&&(r-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=w[e],l=k[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var p=f.modn(l).toString(e);n=(f=f.idivn(l)).isZero()?p+n:x[u-p.length]+p+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return i(void 0!==_),this.toArrayLike(_,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var r=this.byteLength(),o=n||Math.max(1,r);i(r<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,u=new e(o),l=this.clone();if(c){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),u[s]=a;for(;s<o;s++)u[s]=0}else{for(s=0;s<o-r;s++)u[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),u[o-s-1]=a}return u},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return i(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return i(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var i=0;i<n.length;i++)this.words[i]=t.words[i]^n.words[i];if(this!==t)for(;i<t.length;i++)this.words[i]=t.words[i];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return i(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var r=0;r<t;r++)this.words[r]=67108863&~this.words[r];return n>0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var n=e/26|0,r=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<r:this.words[n]&~(1<<r),this.strip()},o.prototype.iadd=function(e){var t;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();var n,i;this.length>e.length?(n=this,i=e):(n=e,i=this);for(var r=0,o=0;o<i.length;o++)t=(0|n.words[o])+(0|i.words[o])+r,this.words[o]=67108863&t,r=t>>>26;for(;0!==r&&o<n.length;o++)t=(0|n.words[o])+r,this.words[o]=67108863&t,r=t>>>26;if(this.length=n.length,0!==r)this.words[this.length]=r,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;var i,r;n>0?(i=this,r=e):(i=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|i.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<i.length;a++)o=(t=(0|i.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var j=function(e,t,n){var i,r,o,a=e.words,s=t.words,c=n.words,u=0,l=0|a[0],f=8191&l,p=l>>>13,d=0|a[1],h=8191&d,m=d>>>13,v=0|a[2],b=8191&v,y=v>>>13,g=0|a[3],_=8191&g,x=g>>>13,w=0|a[4],k=8191&w,j=w>>>13,S=0|a[5],E=8191&S,A=S>>>13,C=0|a[6],M=8191&C,T=C>>>13,P=0|a[7],F=8191&P,I=P>>>13,B=0|a[8],R=8191&B,O=B>>>13,N=0|a[9],D=8191&N,L=N>>>13,q=0|s[0],z=8191&q,U=q>>>13,H=0|s[1],V=8191&H,K=H>>>13,W=0|s[2],X=8191&W,G=W>>>13,$=0|s[3],J=8191&$,Q=$>>>13,Y=0|s[4],Z=8191&Y,ee=Y>>>13,te=0|s[5],ne=8191&te,ie=te>>>13,re=0|s[6],oe=8191&re,ae=re>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],fe=8191&le,pe=le>>>13,de=0|s[9],he=8191&de,me=de>>>13;n.negative=e.negative^t.negative,n.length=19;var ve=(u+(i=Math.imul(f,z))|0)+((8191&(r=(r=Math.imul(f,U))+Math.imul(p,z)|0))<<13)|0;u=((o=Math.imul(p,U))+(r>>>13)|0)+(ve>>>26)|0,ve&=67108863,i=Math.imul(h,z),r=(r=Math.imul(h,U))+Math.imul(m,z)|0,o=Math.imul(m,U);var be=(u+(i=i+Math.imul(f,V)|0)|0)+((8191&(r=(r=r+Math.imul(f,K)|0)+Math.imul(p,V)|0))<<13)|0;u=((o=o+Math.imul(p,K)|0)+(r>>>13)|0)+(be>>>26)|0,be&=67108863,i=Math.imul(b,z),r=(r=Math.imul(b,U))+Math.imul(y,z)|0,o=Math.imul(y,U),i=i+Math.imul(h,V)|0,r=(r=r+Math.imul(h,K)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,K)|0;var ye=(u+(i=i+Math.imul(f,X)|0)|0)+((8191&(r=(r=r+Math.imul(f,G)|0)+Math.imul(p,X)|0))<<13)|0;u=((o=o+Math.imul(p,G)|0)+(r>>>13)|0)+(ye>>>26)|0,ye&=67108863,i=Math.imul(_,z),r=(r=Math.imul(_,U))+Math.imul(x,z)|0,o=Math.imul(x,U),i=i+Math.imul(b,V)|0,r=(r=r+Math.imul(b,K)|0)+Math.imul(y,V)|0,o=o+Math.imul(y,K)|0,i=i+Math.imul(h,X)|0,r=(r=r+Math.imul(h,G)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,G)|0;var ge=(u+(i=i+Math.imul(f,J)|0)|0)+((8191&(r=(r=r+Math.imul(f,Q)|0)+Math.imul(p,J)|0))<<13)|0;u=((o=o+Math.imul(p,Q)|0)+(r>>>13)|0)+(ge>>>26)|0,ge&=67108863,i=Math.imul(k,z),r=(r=Math.imul(k,U))+Math.imul(j,z)|0,o=Math.imul(j,U),i=i+Math.imul(_,V)|0,r=(r=r+Math.imul(_,K)|0)+Math.imul(x,V)|0,o=o+Math.imul(x,K)|0,i=i+Math.imul(b,X)|0,r=(r=r+Math.imul(b,G)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,G)|0,i=i+Math.imul(h,J)|0,r=(r=r+Math.imul(h,Q)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Q)|0;var _e=(u+(i=i+Math.imul(f,Z)|0)|0)+((8191&(r=(r=r+Math.imul(f,ee)|0)+Math.imul(p,Z)|0))<<13)|0;u=((o=o+Math.imul(p,ee)|0)+(r>>>13)|0)+(_e>>>26)|0,_e&=67108863,i=Math.imul(E,z),r=(r=Math.imul(E,U))+Math.imul(A,z)|0,o=Math.imul(A,U),i=i+Math.imul(k,V)|0,r=(r=r+Math.imul(k,K)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,K)|0,i=i+Math.imul(_,X)|0,r=(r=r+Math.imul(_,G)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,G)|0,i=i+Math.imul(b,J)|0,r=(r=r+Math.imul(b,Q)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,Q)|0,i=i+Math.imul(h,Z)|0,r=(r=r+Math.imul(h,ee)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,ee)|0;var xe=(u+(i=i+Math.imul(f,ne)|0)|0)+((8191&(r=(r=r+Math.imul(f,ie)|0)+Math.imul(p,ne)|0))<<13)|0;u=((o=o+Math.imul(p,ie)|0)+(r>>>13)|0)+(xe>>>26)|0,xe&=67108863,i=Math.imul(M,z),r=(r=Math.imul(M,U))+Math.imul(T,z)|0,o=Math.imul(T,U),i=i+Math.imul(E,V)|0,r=(r=r+Math.imul(E,K)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,K)|0,i=i+Math.imul(k,X)|0,r=(r=r+Math.imul(k,G)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,G)|0,i=i+Math.imul(_,J)|0,r=(r=r+Math.imul(_,Q)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,Q)|0,i=i+Math.imul(b,Z)|0,r=(r=r+Math.imul(b,ee)|0)+Math.imul(y,Z)|0,o=o+Math.imul(y,ee)|0,i=i+Math.imul(h,ne)|0,r=(r=r+Math.imul(h,ie)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,ie)|0;var we=(u+(i=i+Math.imul(f,oe)|0)|0)+((8191&(r=(r=r+Math.imul(f,ae)|0)+Math.imul(p,oe)|0))<<13)|0;u=((o=o+Math.imul(p,ae)|0)+(r>>>13)|0)+(we>>>26)|0,we&=67108863,i=Math.imul(F,z),r=(r=Math.imul(F,U))+Math.imul(I,z)|0,o=Math.imul(I,U),i=i+Math.imul(M,V)|0,r=(r=r+Math.imul(M,K)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,K)|0,i=i+Math.imul(E,X)|0,r=(r=r+Math.imul(E,G)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,G)|0,i=i+Math.imul(k,J)|0,r=(r=r+Math.imul(k,Q)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Q)|0,i=i+Math.imul(_,Z)|0,r=(r=r+Math.imul(_,ee)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,ee)|0,i=i+Math.imul(b,ne)|0,r=(r=r+Math.imul(b,ie)|0)+Math.imul(y,ne)|0,o=o+Math.imul(y,ie)|0,i=i+Math.imul(h,oe)|0,r=(r=r+Math.imul(h,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var ke=(u+(i=i+Math.imul(f,ce)|0)|0)+((8191&(r=(r=r+Math.imul(f,ue)|0)+Math.imul(p,ce)|0))<<13)|0;u=((o=o+Math.imul(p,ue)|0)+(r>>>13)|0)+(ke>>>26)|0,ke&=67108863,i=Math.imul(R,z),r=(r=Math.imul(R,U))+Math.imul(O,z)|0,o=Math.imul(O,U),i=i+Math.imul(F,V)|0,r=(r=r+Math.imul(F,K)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,K)|0,i=i+Math.imul(M,X)|0,r=(r=r+Math.imul(M,G)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,G)|0,i=i+Math.imul(E,J)|0,r=(r=r+Math.imul(E,Q)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Q)|0,i=i+Math.imul(k,Z)|0,r=(r=r+Math.imul(k,ee)|0)+Math.imul(j,Z)|0,o=o+Math.imul(j,ee)|0,i=i+Math.imul(_,ne)|0,r=(r=r+Math.imul(_,ie)|0)+Math.imul(x,ne)|0,o=o+Math.imul(x,ie)|0,i=i+Math.imul(b,oe)|0,r=(r=r+Math.imul(b,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,i=i+Math.imul(h,ce)|0,r=(r=r+Math.imul(h,ue)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,ue)|0;var je=(u+(i=i+Math.imul(f,fe)|0)|0)+((8191&(r=(r=r+Math.imul(f,pe)|0)+Math.imul(p,fe)|0))<<13)|0;u=((o=o+Math.imul(p,pe)|0)+(r>>>13)|0)+(je>>>26)|0,je&=67108863,i=Math.imul(D,z),r=(r=Math.imul(D,U))+Math.imul(L,z)|0,o=Math.imul(L,U),i=i+Math.imul(R,V)|0,r=(r=r+Math.imul(R,K)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,K)|0,i=i+Math.imul(F,X)|0,r=(r=r+Math.imul(F,G)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,G)|0,i=i+Math.imul(M,J)|0,r=(r=r+Math.imul(M,Q)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,Q)|0,i=i+Math.imul(E,Z)|0,r=(r=r+Math.imul(E,ee)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,ee)|0,i=i+Math.imul(k,ne)|0,r=(r=r+Math.imul(k,ie)|0)+Math.imul(j,ne)|0,o=o+Math.imul(j,ie)|0,i=i+Math.imul(_,oe)|0,r=(r=r+Math.imul(_,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,i=i+Math.imul(b,ce)|0,r=(r=r+Math.imul(b,ue)|0)+Math.imul(y,ce)|0,o=o+Math.imul(y,ue)|0,i=i+Math.imul(h,fe)|0,r=(r=r+Math.imul(h,pe)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,pe)|0;var Se=(u+(i=i+Math.imul(f,he)|0)|0)+((8191&(r=(r=r+Math.imul(f,me)|0)+Math.imul(p,he)|0))<<13)|0;u=((o=o+Math.imul(p,me)|0)+(r>>>13)|0)+(Se>>>26)|0,Se&=67108863,i=Math.imul(D,V),r=(r=Math.imul(D,K))+Math.imul(L,V)|0,o=Math.imul(L,K),i=i+Math.imul(R,X)|0,r=(r=r+Math.imul(R,G)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,G)|0,i=i+Math.imul(F,J)|0,r=(r=r+Math.imul(F,Q)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,Q)|0,i=i+Math.imul(M,Z)|0,r=(r=r+Math.imul(M,ee)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,ee)|0,i=i+Math.imul(E,ne)|0,r=(r=r+Math.imul(E,ie)|0)+Math.imul(A,ne)|0,o=o+Math.imul(A,ie)|0,i=i+Math.imul(k,oe)|0,r=(r=r+Math.imul(k,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,i=i+Math.imul(_,ce)|0,r=(r=r+Math.imul(_,ue)|0)+Math.imul(x,ce)|0,o=o+Math.imul(x,ue)|0,i=i+Math.imul(b,fe)|0,r=(r=r+Math.imul(b,pe)|0)+Math.imul(y,fe)|0,o=o+Math.imul(y,pe)|0;var Ee=(u+(i=i+Math.imul(h,he)|0)|0)+((8191&(r=(r=r+Math.imul(h,me)|0)+Math.imul(m,he)|0))<<13)|0;u=((o=o+Math.imul(m,me)|0)+(r>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,i=Math.imul(D,X),r=(r=Math.imul(D,G))+Math.imul(L,X)|0,o=Math.imul(L,G),i=i+Math.imul(R,J)|0,r=(r=r+Math.imul(R,Q)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Q)|0,i=i+Math.imul(F,Z)|0,r=(r=r+Math.imul(F,ee)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,ee)|0,i=i+Math.imul(M,ne)|0,r=(r=r+Math.imul(M,ie)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,ie)|0,i=i+Math.imul(E,oe)|0,r=(r=r+Math.imul(E,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,i=i+Math.imul(k,ce)|0,r=(r=r+Math.imul(k,ue)|0)+Math.imul(j,ce)|0,o=o+Math.imul(j,ue)|0,i=i+Math.imul(_,fe)|0,r=(r=r+Math.imul(_,pe)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,pe)|0;var Ae=(u+(i=i+Math.imul(b,he)|0)|0)+((8191&(r=(r=r+Math.imul(b,me)|0)+Math.imul(y,he)|0))<<13)|0;u=((o=o+Math.imul(y,me)|0)+(r>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,i=Math.imul(D,J),r=(r=Math.imul(D,Q))+Math.imul(L,J)|0,o=Math.imul(L,Q),i=i+Math.imul(R,Z)|0,r=(r=r+Math.imul(R,ee)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,ee)|0,i=i+Math.imul(F,ne)|0,r=(r=r+Math.imul(F,ie)|0)+Math.imul(I,ne)|0,o=o+Math.imul(I,ie)|0,i=i+Math.imul(M,oe)|0,r=(r=r+Math.imul(M,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,i=i+Math.imul(E,ce)|0,r=(r=r+Math.imul(E,ue)|0)+Math.imul(A,ce)|0,o=o+Math.imul(A,ue)|0,i=i+Math.imul(k,fe)|0,r=(r=r+Math.imul(k,pe)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,pe)|0;var Ce=(u+(i=i+Math.imul(_,he)|0)|0)+((8191&(r=(r=r+Math.imul(_,me)|0)+Math.imul(x,he)|0))<<13)|0;u=((o=o+Math.imul(x,me)|0)+(r>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,i=Math.imul(D,Z),r=(r=Math.imul(D,ee))+Math.imul(L,Z)|0,o=Math.imul(L,ee),i=i+Math.imul(R,ne)|0,r=(r=r+Math.imul(R,ie)|0)+Math.imul(O,ne)|0,o=o+Math.imul(O,ie)|0,i=i+Math.imul(F,oe)|0,r=(r=r+Math.imul(F,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,i=i+Math.imul(M,ce)|0,r=(r=r+Math.imul(M,ue)|0)+Math.imul(T,ce)|0,o=o+Math.imul(T,ue)|0,i=i+Math.imul(E,fe)|0,r=(r=r+Math.imul(E,pe)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,pe)|0;var Me=(u+(i=i+Math.imul(k,he)|0)|0)+((8191&(r=(r=r+Math.imul(k,me)|0)+Math.imul(j,he)|0))<<13)|0;u=((o=o+Math.imul(j,me)|0)+(r>>>13)|0)+(Me>>>26)|0,Me&=67108863,i=Math.imul(D,ne),r=(r=Math.imul(D,ie))+Math.imul(L,ne)|0,o=Math.imul(L,ie),i=i+Math.imul(R,oe)|0,r=(r=r+Math.imul(R,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,i=i+Math.imul(F,ce)|0,r=(r=r+Math.imul(F,ue)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,ue)|0,i=i+Math.imul(M,fe)|0,r=(r=r+Math.imul(M,pe)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,pe)|0;var Te=(u+(i=i+Math.imul(E,he)|0)|0)+((8191&(r=(r=r+Math.imul(E,me)|0)+Math.imul(A,he)|0))<<13)|0;u=((o=o+Math.imul(A,me)|0)+(r>>>13)|0)+(Te>>>26)|0,Te&=67108863,i=Math.imul(D,oe),r=(r=Math.imul(D,ae))+Math.imul(L,oe)|0,o=Math.imul(L,ae),i=i+Math.imul(R,ce)|0,r=(r=r+Math.imul(R,ue)|0)+Math.imul(O,ce)|0,o=o+Math.imul(O,ue)|0,i=i+Math.imul(F,fe)|0,r=(r=r+Math.imul(F,pe)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,pe)|0;var Pe=(u+(i=i+Math.imul(M,he)|0)|0)+((8191&(r=(r=r+Math.imul(M,me)|0)+Math.imul(T,he)|0))<<13)|0;u=((o=o+Math.imul(T,me)|0)+(r>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,i=Math.imul(D,ce),r=(r=Math.imul(D,ue))+Math.imul(L,ce)|0,o=Math.imul(L,ue),i=i+Math.imul(R,fe)|0,r=(r=r+Math.imul(R,pe)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,pe)|0;var Fe=(u+(i=i+Math.imul(F,he)|0)|0)+((8191&(r=(r=r+Math.imul(F,me)|0)+Math.imul(I,he)|0))<<13)|0;u=((o=o+Math.imul(I,me)|0)+(r>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,i=Math.imul(D,fe),r=(r=Math.imul(D,pe))+Math.imul(L,fe)|0,o=Math.imul(L,pe);var Ie=(u+(i=i+Math.imul(R,he)|0)|0)+((8191&(r=(r=r+Math.imul(R,me)|0)+Math.imul(O,he)|0))<<13)|0;u=((o=o+Math.imul(O,me)|0)+(r>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Be=(u+(i=Math.imul(D,he))|0)+((8191&(r=(r=Math.imul(D,me))+Math.imul(L,he)|0))<<13)|0;return u=((o=Math.imul(L,me))+(r>>>13)|0)+(Be>>>26)|0,Be&=67108863,c[0]=ve,c[1]=be,c[2]=ye,c[3]=ge,c[4]=_e,c[5]=xe,c[6]=we,c[7]=ke,c[8]=je,c[9]=Se,c[10]=Ee,c[11]=Ae,c[12]=Ce,c[13]=Me,c[14]=Te,c[15]=Pe,c[16]=Fe,c[17]=Ie,c[18]=Be,0!==u&&(c[19]=u,n.length++),n};Math.imul||(j=u),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?j(this,e,t):n<63?u(this,e,t):n<1024?l(this,e,t):f(this,e,t)},p.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,n,e);return t},p.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var i=0,r=0;r<t;r++)i|=(1&e)<<t-r-1,e>>=1;return i},p.prototype.permute=function(e,t,n,i,r,o){for(var a=0;a<o;a++)i[a]=t[e[a]],r[a]=n[e[a]]},p.prototype.transform=function(e,t,n,i,r,o){this.permute(o,e,t,n,i,r);for(var a=1;a<r;a<<=1)for(var s=a<<1,c=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),l=0;l<r;l+=s)for(var f=c,p=u,d=0;d<a;d++){var h=n[l+d],m=i[l+d],v=n[l+d+a],b=i[l+d+a],y=f*v-p*b;b=f*b+p*v,v=y,n[l+d]=h+v,i[l+d]=m+b,n[l+d+a]=h-v,i[l+d+a]=m-b,d!==s&&(y=c*f-u*p,p=c*p+u*f,f=y)}},p.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),i=1&n,r=0;for(n=n/2|0;n;n>>>=1)r++;return 1<<r+1+i},p.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=e[i];e[i]=e[n-i-1],e[n-i-1]=r,r=t[i],t[i]=-t[n-i-1],t[n-i-1]=-r}},p.prototype.normalize13b=function(e,t){for(var n=0,i=0;i<t/2;i++){var r=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+n;e[i]=67108863&r,n=r<67108864?0:r/67108864|0}return e},p.prototype.convert13b=function(e,t,n,r){for(var o=0,a=0;a<t;a++)o+=0|e[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<r;++a)n[a]=0;i(0===o),i(0==(-8192&o))},p.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},p.prototype.mulp=function(e,t,n){var i=2*this.guessLen13b(e.length,t.length),r=this.makeRBT(i),o=this.stub(i),a=new Array(i),s=new Array(i),c=new Array(i),u=new Array(i),l=new Array(i),f=new Array(i),p=n.words;p.length=i,this.convert13b(e.words,e.length,a,i),this.convert13b(t.words,t.length,u,i),this.transform(a,o,s,c,i,r),this.transform(u,o,l,f,i,r);for(var d=0;d<i;d++){var h=s[d]*l[d]-c[d]*f[d];c[d]=s[d]*f[d]+c[d]*l[d],s[d]=h}return this.conjugate(s,c,i),this.transform(s,c,p,o,i,r),this.conjugate(p,o,i),this.normalize13b(p,i),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),f(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){i("number"==typeof e),i(e<67108864);for(var t=0,n=0;n<this.length;n++){var r=(0|this.words[n])*e,o=(67108863&r)+(67108863&t);t>>=26,t+=r/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=c(e);if(0===t.length)return new o(1);for(var n=this,i=0;i<t.length&&0===t[i];i++,n=n.sqr());if(++i<t.length)for(var r=n.sqr();i<t.length;i++,r=r.sqr())0!==t[i]&&(n=n.mul(r));return n},o.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,n=e%26,r=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,c=(0|this.words[t])-s<<n;this.words[t]=c|a,a=s>>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==r){for(t=this.length-1;t>=0;t--)this.words[t+r]=this.words[t];for(t=0;t<r;t++)this.words[t]=0;this.length+=r}return this.strip()},o.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){i("number"==typeof e&&e>=0);var r;r=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,c=n;if(r-=a,r=Math.max(0,r),c){for(var u=0;u<a;u++)c.words[u]=this.words[u];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=r);u--){var f=0|this.words[u];this.words[u]=l<<26-o|f>>>o,l=f&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return i(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,r=1<<t;return!(this.length<=n)&&!!(this.words[n]&r)},o.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var r=67108863^67108863>>>t<<t;this.words[this.length-1]&=r}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return i("number"==typeof e),i(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var r,o=e.length+n;this._expand(o);var a,s=0;for(r=0;r<e.length;r++){a=(0|this.words[r+n])+s;var c=(0|e.words[r])*t;s=((a-=67108863&c)>>26)-(c/67108864|0),this.words[r+n]=67108863&a}for(;r<this.length-n;r++)s=(a=(0|this.words[r+n])+s)>>26,this.words[r+n]=67108863&a;if(0===s)return this.strip();for(i(-1===s),s=0,r=0;r<this.length;r++)s=(a=-(0|this.words[r])+s)>>26,this.words[r]=67108863&a;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=this.length-e.length,i=this.clone(),r=e,a=0|r.words[r.length-1];0!==(n=26-this._countBits(a))&&(r=r.ushln(n),i.iushln(n),a=0|r.words[r.length-1]);var s,c=i.length-r.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var l=i.clone()._ishlnsubmul(r,1,c);0===l.negative&&(i=l,s&&(s.words[c]=1));for(var f=c-1;f>=0;f--){var p=67108864*(0|i.words[r.length+f])+(0|i.words[r.length+f-1]);for(p=Math.min(p/a|0,67108863),i._ishlnsubmul(r,p,f);0!==i.negative;)p--,i.negative=0,i._ishlnsubmul(r,1,f),i.isZero()||(i.negative^=1);s&&(s.words[f]=p)}return s&&s.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:s||null,mod:i}},o.prototype.divmod=function(e,t,n){if(i(!e.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var r,a,s;return 0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(r=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:r,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(r=s.div.neg()),{div:r,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),r=e.andln(1),o=n.cmp(i);return o<0||1===r&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){i(e<=67108863);for(var t=(1<<26)%e,n=0,r=this.length-1;r>=0;r--)n=(t*n+(0|this.words[r]))%e;return n},o.prototype.idivn=function(e){i(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*t;this.words[n]=r/e|0,t=r%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var l=n.clone(),f=t.clone();!t.isZero();){for(var p=0,d=1;0==(t.words[0]&d)&&p<26;++p,d<<=1);if(p>0)for(t.iushrn(p);p-- >0;)(r.isOdd()||a.isOdd())&&(r.iadd(l),a.isub(f)),r.iushrn(1),a.iushrn(1);for(var h=0,m=1;0==(n.words[0]&m)&&h<26;++h,m<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),r.isub(s),a.isub(c)):(n.isub(t),s.isub(r),c.isub(a))}return{a:s,b:c,gcd:n.iushln(u)}},o.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var r=new o(1),a=new o(0),s=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)r.isOdd()&&r.iadd(s),r.iushrn(1);for(var l=0,f=1;0==(n.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(n.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);t.cmp(n)>=0?(t.isub(n),r.isub(a)):(n.isub(t),a.isub(r))}var p;return(p=0===t.cmpn(1)?r:a).cmpn(0)<0&&p.iadd(e),p},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var i=0;t.isEven()&&n.isEven();i++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var r=t.cmp(n);if(r<0){var o=t;t=n,n=o}else if(0===r||0===n.cmpn(1))break;t.isub(n)}return n.iushln(i)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,n=(e-t)/26,r=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=r,this;for(var o=r,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t=e<0;if(0!==this.negative&&!t)return-1;if(0===this.negative&&t)return 1;this.strip();var n;if(this.length>1)n=1;else{t&&(e=-e),i(e<=67108863,"Number is too big");var r=0|this.words[0];n=r===e?0:r<e?-1:1}return 0!==this.negative?0|-n:n},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var i=0|this.words[n],r=0|e.words[n];if(i!==r){i<r?t=-1:i>r&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new y(e)},o.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var S={k256:null,p224:null,p192:null,p25519:null};d.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},d.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var i=t<this.n?-1:n.ucmp(this.p);return 0===i?(n.words[0]=0,n.length=1):i>0?n.isub(this.p):n.strip(),n},d.prototype.split=function(e,t){e.iushrn(this.n,0,t)},d.prototype.imulK=function(e){return e.imul(this.k)},r(h,d),h.prototype.split=function(e,t){for(var n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var r=e.words[9];for(t.words[t.length++]=4194303&r,i=10;i<e.length;i++){var o=0|e.words[i];e.words[i-10]=(4194303&o)<<4|r>>>22,r=o}r>>>=22,e.words[i-10]=r,0===r&&e.length>10?e.length-=10:e.length-=9},h.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var i=0|e.words[n];t+=977*i,e.words[n]=67108863&t,t=64*i+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(m,d),r(v,d),r(b,d),b.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var i=19*(0|e.words[n])+t,r=67108863&i;i>>>=26,e.words[n]=r,t=i}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(S[e])return S[e];var t;if("k256"===e)t=new h;else if("p224"===e)t=new m;else if("p192"===e)t=new v;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new b}return S[e]=t,t},y.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},y.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},y.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},y.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},y.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},y.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},y.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},y.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},y.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},y.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},y.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},y.prototype.isqr=function(e){return this.imul(e,e.clone())},y.prototype.sqr=function(e){return this.mul(e,e)},y.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var r=this.m.subn(1),a=0;!r.isZero()&&0===r.andln(1);)a++,r.iushrn(1);i(!r.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var f=this.pow(l,r),p=this.pow(e,r.addn(1).iushrn(1)),d=this.pow(e,r),h=a;0!==d.cmp(s);){for(var m=d,v=0;0!==m.cmp(s);v++)m=m.redSqr();i(v<h);var b=this.pow(f,new o(1).iushln(h-v-1));p=p.redMul(b),f=b.redSqr(),d=d.redMul(f),h=v}return p},y.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},y.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],e);var r=n[0],a=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),i=t.length-1;i>=0;i--){for(var u=t.words[i],l=c-1;l>=0;l--){var f=u>>l&1;r!==n[0]&&(r=this.sqr(r)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===i&&0===l)&&(r=this.mul(r,n[a]),s=0,a=0)):s=0}c=26}return r},y.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},y.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new g(e)},r(g,y),g.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},g.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},g.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},g.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},g.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this))},{buffer:17}],Web3:[function(e,t,n){ var i=e("../package.json").version,r=e("web3-core"),o=e("web3-eth"),a=e("web3-net"),s=e("web3-eth-personal"),c=e("web3-shh"),u=e("web3-bzz"),l=e("web3-utils"),f=function(){ var e=this; r.packageInit(this,arguments),this.version=i,this.utils=l,this.eth=new o(this),this.shh=new c(this),this.bzz=new u(this); var t=this.setProvider; this.setProvider=function(n,i){ return t.apply(e,arguments),this.eth.setProvider(n,i),this.shh.setProvider(n,i),this.bzz.setProvider(n),!0 };}; f.version=i,f.utils=l,f.modules={Eth:o,Net:a,Personal:s,Shh:c,Bzz:u},r.addProviders(f),t.exports=f },{"../package.json":276,"web3-bzz":182,"web3-core":202,"web3-eth":253,"web3-eth-personal":250,"web3-net":254,"web3-shh":262,"web3-utils":273}]},{},["Web3"]))("Web3"); }));
|